Removing java sanitization!
[external/binutils.git] / gdb / ChangeLog-98
1 Thu Dec 31 15:26:13 1998  Stan Shebs  <shebs@andros.cygnus.com>
2
3         * corelow.c (core_ops): Don't initialize statically.
4         (init_core_ops): New function, fills in core_ops.
5         (_initialize_corelow): Use it.
6
7 Thu Dec 31 16:54:30 1998  David Taylor  <taylor@texas.cygnus.com>
8
9         The following changes were made by
10         Elena Zannoni <ezannoni@kwikemart.cygnus.com>
11         Edith Epstein  <eepstein@sophia.cygnus.com>
12         David Taylor  <taylor@texas.cygnus.com>
13
14         * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Change to read
15         nullify instruction bit from IPSW only when we are not in a system
16         call.
17         (STRCAT_REGISTER, pa_do_strcat_registers_info): Additional
18         parameter -- precision.
19
20         * Makefile.in (BUILD_TUI): To build the tui, only when configured
21         with --enable-tui.
22         (YLWRAP): Use ylwrap to avoid problems on systems w/o bison.
23         (gdb$(EXEEXT)): Make it dependent on BUILD_TUI.
24         (all-tui): Remove dependency from phony target.
25         (c-exp.tab.c): Use ylwrap instead of bison.
26         (jv-exp.tab.c): Ditto.
27         (f-exp.tab.c): Ditto.
28         (m2-exp.tab.c): Ditto.
29
30         * configure.in (ENABLE_CFLAGS): Define and export BUILD_TUI.
31         
32         * configure: Regenerated.
33
34         * c-typeprint.c (c_type_print_base): Get to the method name by
35         skipping over all the namespaces,  classes and '::'.
36
37         * infcmd.c (run_command): Only call SOLIB_RESTART if it's
38         defined.
39         (detach_command): Ditto.
40
41         * infptrace.c (call_ptrace): Add some debugging code.
42
43         * infrun.c (follow_inferior_fork): Only define on HP.
44         (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have
45         shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE
46         removed by HP.
47         
48         * Makefile.in (ALLDEPFILES): Add somread.c, hp-psymtab-read.c,
49         hp-symtab-read.c.
50         (SFILES): Remove the above files
51         (COMMON_OBS): Remove somread.o
52         (SFILES): Add the tui files to this, so they get
53         included in etags tables.
54         (all-tui): New rule, which does a recursive make in the tui
55         subdir.
56         (gdb$(EXEEXT)): Add tui-all to the list of
57         dependencies, and add tui/libtui.a to the link list.
58         (tui/libtui.a): When recursing, pass down
59         ${FLAGS_TO_PASS}.  And don't echo the make command.  This is
60         closer to what the other recursions do.
61         (HFILES_NO_SRCDIR) add hpread.h.
62         (COMMON_OBS): Add hp-psymtab-read.o, hp-symtab-read.o
63         Allow the TUI code to be conditionally enabled.
64         (TUI_TARGET, TUI_LIBRARY): New variables, whose values are set by
65         the configuration script.  They're set to the empty string when
66         the TUI isn't enabled.
67         (gdb$(GDBEXT)): Use those, instead of referring to tui-all and
68         tui/libtui.a directly.
69
70         * Makefile.in: Avoid spurious relinking.
71         (gdb$(EXEEXT)): Depend on the actual tui library, not on a
72         fictitious target.  Since the fictitious target never existed, make
73         would always relink.
74         (tui/libtui.a): Renamed from all-tui.  Always recurse to make sure
75         the library is up to date.
76         (TUI_TARGET): Variable removed; there's no need for it any more.
77
78         * Makefile.in: Look for tui include files in the tui source dir.
79
80         * Use automake's `aclocal' program to generate aclocal.m4, to allow
81         us to use automake macros in configure.in with impunity.
82
83         * acconfig.h: Add an entry for the `TUI' symbol.
84
85         * acinclude.m4: New file, containing the code from the old
86         aclocal.m4.  Incorporate (by reference) ../bfd/acinclude.m4, not
87         ../bfd/aclocal.m4, since we only want bfd's local macros.
88
89         * aclocal.m4: Now automagically generated.  Just run aclocal!
90         
91         * annotate.c (annotate_catchpoint): New function.
92
93         * annotate.h: Taking the new includes (symtab.h and gdbtypes.h).
94         not taking the ansic C build fix.
95         (annotate_catchpoint): Declare.
96
97         * blockframe.c (blockvector_for_pc_sect): Check that the end of
98         the block is >= to the pc, not just >.
99
100         * breakpoint.c (create_temp_exception_breakpoint): #If it out --
101         nothing calls it.
102         (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not
103         defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined.
104         (bpstat_get_triggered_catchpoints): If we don't have shared
105         library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor
106         SOLIB_UNLOADED_LIBRARY_PATHNAME.
107         (watch_command_1): Don't require a run before a watch command
108         unless we're on HP [it's an HP OS bug, not a generic limitation]
109         (catch_load_command_1): Don't define if no shared libraries.
110         (catch_command_1): Don't claim to support fork catchpoints unless
111         CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support
112         vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined,
113         don't clain to support shared library load catchpoints if shared
114         libraries aren't supported, and don't claim to support exec
115         catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined
116
117         (bpstat_do_actions): If we just set cmd to NULL, don't then try to
118         set it to cmd->next as we'll SEGV.
119         (bpstat_do_actions): Simplify significantly.  It's
120         now almost as simple as before the merge and it no longer has the
121         HP bug that breakpoint commands are executed repeatedly.
122
123         (break_at_finish_command_1): Rewrite and make sure
124         selected_frame points to a frame before using it. Fix string
125         termination error.
126         (break_at_finish_at_depth_command_1): Ditto.
127         
128         (can_use_hw_watchpoints): New static variable.
129         (read_memory_nobpt): Test for breakpoint type bp_none.
130         (insert_breakpoints): Test for breakpoint type bp_catch_exec;
131         insure have a current frame before getting the frame address.
132         (remove_breakpoints): Check for breakpoints of types bp_none,
133         bp_catch_fork, bp_catch_vfork, and bp_catch_exec.
134         (bpstat_stop_status): Fix updates of b->hit_count.
135         (bpstat_have_active_hw_watchpoints): New function.
136         (create_exec_event_watchpoint): New function.
137         (watch_command_1): Use can_use_hw_watchpoints.
138         (catch_fork_command_1): Change name of function to call from
139         target_create_catch_(v)fork_hook to create_(v)fork_even_catchpoint.
140         (delete_breakpoint): Test for already deleted breakpoints; add
141         support for bp_catch_fork, bp_catch_vfork, and bp_catch_exec
142         breakpoints.
143         (_initialize_breakpoint): Add can-use-hw-watchpoints to list of
144         user settable debugger variables.
145
146         (clear_command): When there is no argument
147         to the clear command, delete all breakpoints that are hit at 
148         default line. This will include a breakpoint whose line number
149         does not correspond to the default line, but has been set at 
150         the default address.
151
152         (delete_breakpoint): Don't call bpstat_clear_actions, instead
153         clear things explicitly; if clearing breakpoint_at, then also
154         clear any associated actions so that bpstat_do_actions won't try
155         to execute them.
156         (_initialize_breakpoint): Fix function name for bx command.
157
158         (tbreak_command): Remove static from declaration.
159         (maintenance_info_breakpoints): Ditto.
160
161         (reattach_breakpoints): New funct definition, used with with
162         hardware watchpoints
163         (breakpoint_1): Change format and add entries to bptypes[]
164         (maintenance_info_breakpoints): Function is no longer static
165
166         (_initialize_breakpoint): Removed a comment.
167         (exception_catchpoints_are_fragile,
168         exception_support_initialized): Define.
169         (breakpoint_here_p): Fixed syntax error in conditional
170         (disable_watchpoints_before_interactive_call_start): Fixed call to
171         check_duplicates. Need a section parameter.
172         (enable_watchpoints_after_interactive_call_stop): Fixed call to
173         check_duplicates. Need a section parameter.
174         (breakpoint_re_set_one): Fixed call to check_duplicates. Need a
175         section parameter.
176         (delete_command): Fixed syntax error in conditional
177         (breakpoint_re_set): Fixed some typos.
178         
179         (args_for_catchpoint_enable): New type for handling exceptions.
180         (current_exception_event): New variable for handling exceptions.
181         (insert_breakpoints): Check for additional breakpoint types --
182         bp_catch_throw, bp_catch_catch, call_disabled.  Also, do some
183         additional work to handle an exception catchpoint.
184         (remove_breakpoint): There are additional breakpoint types to
185         check for: Bp_catch_throw, bp_catch_catch, call_disabled. Also do
186         some additional work to remove the exception catchpoints
187         (breakpoint_init_inferior): New input parameter. If there are
188         exception catchpoints delete them.
189         (breakpoint_here_p): There are additional breakpoint enable
190         settings to check for: Shlib_disabled, call_disabled
191         (breakpoint_thread_match): There are additional breakpoint enable
192         settings to check for: Call_disabled
193         (ep_is_catchpoint): There are additional breakpoint types to check
194         for: Bp_catch_throw, bp_catch_catch
195         (ep_is_exception_catchpoint): New function
196         (bpstat_find_step_resume_breakpoint): New function
197         (bpstat_do_actions): Introduce a local copy of the bpstat
198         structure.
199         (print_it_normal): There are additional breakpoint types to check
200         for: Bp_catch_throw, bp_catch_catch Changeing the control
201         structure a bit (adding else ifs) Add code to print out info about
202         exceptions.
203         (bpstat_stop_status): There are additional breakpoint enable
204         settings to check for: Call_disabled. there are additional
205         breakpoint types to chack for: Bp_catch_catch and bp_catch_throw.
206         Check to see if stopped due to an exception. Minor fixes to the
207         catch_errors calls. Make sure to count all encountered
208         breakpoints. There was something funky going on previously with
209         the counting.
210         (bpstat_what): Add cases for new breakpoint types:
211         bp_catch_catch, bp_catch_throw.
212         (bpstat_get_triggered_catchpoints): Check for new breakpoint types
213         : Bp_catch_catch, bp _catch_throw.
214         (breakpoint_1): Account for new breakpoint types.
215         (describe_other_breakpoints): Account for new breakpoint enable
216         setting (call_disabled)
217         (check_duplicates): Account for new breakpoint enable setting
218         (call_disabled)
219         (disable_breakpoints_in_shlibs): New function
220         (disable_watchpoints_before_interactive_call_start): New function
221         (mention): Account for new breakpoint types.
222         (break_command_1): Some additional checking for a valid PC.
223         (watch_command_1): Some dditional checking to prevent a watch
224         before a run command.
225         (ep_parse_optional_filename): Simplified for loop.
226         (create_exception_catchpoint): New function
227         (cover_target_enable_exception_callback): New function
228         (handle_gnu_4_16_catch_command): This used to be thcatch_command_1
229         function.e
230         (create_temp_exception_breakpoint): New function
231         (catch_command_1): Differs from gdb 4.16 and gdb 4.17. Is now
232         calling catch_exception_command_1 using the EX_EVENT_CATCH and
233         EX_EVENT_THROW values as parameters.
234         (clear_command): Additional comments
235         (delete_breakpoint): Handle exceptions. Check for additional
236         breakpoint enable settings: Shlib_disabled, call_disabled.
237         (delete_command): Hp folks are claiming that we should not delete
238         shlib_event breakpoints
239         (breakpoint_re_set_one): Moved call to check_duplicates.  Add new
240         breakpoint types to switch statement.
241         (breakpoint_re_set_thread): New function
242         (enable_command): Account for new breakpoint types.
243
244         (insertion_state_t): New enumerated type.
245         (remove_breakpoint): New param in funct prototype.
246         (insert_breakpoints): Check for bp_catch_fork and bp_catch_vfork.
247         (remove_breakpoints): Changed call to remove_breakpoint.
248         (detach_breakpoints): New function.
249         (remove_breakpoint): New parameter, is. Also changed the
250         way b->inserted is set.
251         (ep_is_catchpoint): New function.
252         (ep_is_shlib_catchpoint): New function.
253         (print_it_normal): Check for bp_catch_load, bp_catch_unload, 
254         bp_catch_fork, bp_catch_vfork, bp_catch_exec. Also new code 
255         to print out catchpoints properly.
256         (bpstat_stop_status): Check for bp_catch_fork, bp_catch_vfork,
257         and bp_catch_exec. Also, some code to check for catching a 
258         shared library load/unload.
259         (bpstat_what): Added catch_shlib_event to class enumeration.
260         Defined new macro, shlr. Expanded the bpstat_what_main_action
261         table. Add cases for bp_catch_load, bp_catch_unload, 
262         bp_catch_fork, bp_catch_vfork, and bp_catch_exec.
263         (bpstat_get_triggered_catchpoints): New function.
264         (breakpoint_1): Changes to bptypes definition. Also check for
265         bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork,
266         bp_catch_exec. Similar changes to the switch statement.
267         (set_raw_breakpoint): Initialize new breakpoint structure fields.
268         dll_pathname, triggered_dll_pathname, forked_inferior_pid,
269         exec_pathname.
270         (create_solib_load_unload_event_breakpoint): New function.
271         (create_solib_load_event_breakpoint): New function.
272         (create_solib_unload_event_breakpoint): New function.
273         (create_fork_vfork_event_catchpoint): New function.
274         (create_fork_event_catchpoint): New function.
275         (create_vfork_event_catchpoint): New function.
276         (mention): New cases for bp_catch_load, bp_catch_unload, 
277         bp_catch_fork, bp_catch_vfork, bp_catch_exec.
278         (ep_skip_leading_whitespace): New function.
279         (ep_find_event_name_end): New function.
280         (ep_parse_optional_if_clause): New function.
281         (ep_parse_optional_filename): New function.
282         (catch_fork_kind): New enumerated type.
283         (catch_fork_command_1): New function.
284         (catch_exec_command_1): New function.
285         (catch_load_command_1): New function.
286         (catch_unload_command_1): New function.
287         (catch_throw_command_1): New function.
288         (catch_command_1): Now calls catch_throw_command_1.
289         (tcatch_command): New function.
290         (delete_breakpoint): Changed call to remove_breakpoint.
291         Also free the new fields in the breakpoint structure.
292         (breakpoint_re_set_one): Handle bp_catch_load, bp_catch_unload,
293         bp_catch_fork, bp_catch_vfork, bp_catch_exec.
294         (disable_command): Handle bp_catch_load, bp_catch_unload,
295         bp_catch_fork, bp_catch_vfork, bp_catch_exec.
296         (enable_command): Handle bp_catch_load, bp_catch_unload,
297         bp_catch_fork, bp_catch_vfork, bp_catch_exec.
298         (_initialize_breakpoint): Alter add_com call for catchpoints,
299         add add_com call for watchpoints.
300
301         * breakpoint.h (enum bptype): New entries bp_catch_catch,
302         bp_catch_throw, and bp_none, bp_catch_load, bp_catch_unload,
303         bp_catch_fork, bp_catch_vfork,bp_catch_exec.  Add declarations for
304         new functions bpstat_have_active_hw_watchpoints and
305         create_exec_event_catchpoint.
306         (tbreak_command): Add prototype.
307         (update_breakpoints_after_exec): Add prototype; update comments.
308         (reattach_breakpoints): New funct prototype declaration.
309         (enable): New enumerated value call_disabled.
310         (bpstat_find_step_resume_breakpoint): New funct decl.
311         (inf_context): New enumerated type.
312         (breakpoint_re_set_thread): New funct decl.
313         (breakpoint_init_inferior): New parameter.
314         (disable_watchpoints_before_interactive_call_start): New funct decl.
315         (enable_watchpoints_after_interactive_call_stop): New funct decl.
316         (disable_breakpoints_in_shlibs): New funct decl.
317         (struct breakpoint): New fields, dll_pathname,triggered_dll_pathname,
318         forked_inferior_pid,exec_pathname BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
319         (bpstat_get_triggered_catchpoints): New function.
320         (detach_breakpoints): New function.
321         (create_solib_load_event_breakpoint): New function.
322         (create_solib_unload_event_breakpoint) New function.
323         (create_fork_event_catchpoint): New function.
324         (create_vfork_event_catchpoint): New function.
325         (ep_is_catchpoint): New function.
326         (ep_is_shlib_catchpoint) New function.
327         (enum bpstat_what_main_action): New entry.
328
329         * buildsym.c (finish_block): Get rid of processing_hp_compilation;
330         handle LOC_INDIRECT case.  Set the BLOCK_GCC_COMPILED to the right
331         compiler.
332         (push_context): Add symbols for parameters to the context_stack.
333         (merge_symbol_lists): New function. Merges two symbol lists.
334         (struct context_stack): Add new field param.
335
336         (processing_hp_compilation): New external var.
337
338         * c-exp.y: Use external flag hp_som_som_object_present to decide
339         whether code was compiled by HP's compilers.  Add two new C++
340         tokens for true and false.
341         (yylex): Check for template name is done differently for the
342         HP/aCC compiler case; change some of the template processing code
343         for handling HP aCC templates.
344
345         * c-lang.c (c_create_fundamental_type): Added case to handle
346         template args.  Handle FT_BOOLEAN type.  Set no sign flag for
347         FT_CHAR.
348         (cplus_builtin_types): New structure for c++ builtin types.
349         (cplus_language_defn): Use cplus_builtin_types instead of
350         c_builtin_types.
351
352         * c-typeprint.c (c_type_print_base): Don't print 'privete' label
353         for a class if all members are private, similarly don't print
354         'public' for a struct.  Add support for sized enums (HP/aCC).  get
355         rid of the 'static' keyword printed by the demangler for member
356         function, when printing the type of a class. 'static' will be
357         added by this function.  If the demangled name is null, and the
358         method is not stubbed, get the signature by looking at the
359         information stored in the symbol structure.  Remove printing of
360         'const' and 'volatile' keywords for methods. This is now taken
361         care as part of the demangled member names.
362         (cp_type_print_method_args): New function. To print a C++ method
363         arguments and name to the output stream.
364
365         (c_type_print_cv_qualifier): New function. Print out "const" and
366         "volatile" attributes.
367         (c_type_print_varspec_prefix): Print const or volatile qualifiers.
368         (c_type_print_args): Print 'void' for c++.
369         (c_type_print_varspec_suffix): Print 'void' for a no argument
370         function.
371         (c_type_print_base): Print const or volatile qualifiers.  Do not
372         print 'unnamed union' if HP aCC compiler used.  Distinguish
373         between struct and class based on the DECLARED_TYPE.  Handle
374         HP/aCC compiler case for not printing vtable.  Add Template
375         support.
376
377         (cp_type_print_derivation_info): Print out 'protected' when
378         appropriate. This applies only to HP's compilers, not gcc.
379
380         (c_val_print): Added parameter embedded_offset.  Add
381         embedded_offset to valaddr in function calls; fix calls to
382         val_print and cp_print_value_fields.  process TYPE_CODE_METHOD as
383         well.  moved call to check_typedef out of conditional.  added
384         embedded offset param to val_print call.
385
386         (c_value_print): Add new parameter to call to val_print.
387         handle pointer to class case.  Attempt to
388         determine the real type of the object to be printed.
389         ensure that const char *, const unsigned char *
390         come out without the type but the volatile variants
391         and the signed variants don't.
392
393         * coff-solib.c (coff_solib_add): Add parameters to call
394         to symbol_file_add.
395
396         * coff-solib.h: (Solib_REMOVE_INFERIOR_HOOK): New macro. defined
397         to 0.  functionality not implemented for coff.
398         (SOLIB_CREATE_CATCH_LOAD_HOOK): New macro, generate error message
399         for coff.
400         (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Ditto.
401         (SOLIB_HAVE_LOAD_EVENT): Ditto.
402         (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
403         (SOLIB_HAVE_UNLOAD_EVENT): Ditto.
404         (SOLIB_UNLOADED_LIBRARY_PATHNAME): Ditto.
405         (SOLIB_IN_DYNAMIC_LINKER): Ditto.
406         (SOLIB_RESTART): Ditto.
407
408         * command.c (find_cmd): New function.  (lookup_cmd_1): Call it,
409         change parsing if tui_version or xdb_commands is set.
410         (_initialize_command): Install new alias if xdb_commands is set.
411
412         * complaints.h: Add ifdef...endif pair at beginning and end of file.
413         
414         * config.in, configure: Regenerated.
415
416         * config/pa/hppabsd.mh (NATDEPFILES): Added new files 
417         hp-psymtab-read.o and hp-symtab-read.o.
418         * config/pa/hppahpux.mh (NATDEPFILES): Ditto.
419
420         * config/pa/hppahpux.mh (TERMCAP): Use -lHcurses.
421         * config/pa/hppaosf.mh (NATDEPFILES): Ditto.
422
423         * config/pa/hpux1020.mh (TERMCAP): Use -lHcurses.
424         (MH_CFLAGS): New flag, -D__HP_CURSES, this define
425         is used by HP's linker to find the correct curses library.
426
427         * config/pa/hpux1020.mh: New file.
428
429         * config/pa/hpux1020.mt: New file.
430
431         * config/pa/hpux1100.mh (TERMCAP): Link against -lcurses, not
432         -lHcurses.  The latter does not contain mvwaddstr, wscrl, or
433         wstbwlmkfzz.
434
435         * config/pa/hpux1100.mh (TERMCAP): Use -lHcurses.
436         (MH_CFLAGS): New flag, -D__HP_CURSES, this define
437         is used by HP's linker to find the correct curses library.
438
439         * config/pa/hpux1100.mh (TERMCAP): When hosting on hpux 11.00, use
440         -lHcurses rather than -lcurses.
441
442         * config/pa/hpux1100.mh: New file.
443
444         * config/pa/hpux1100.mt: New file.
445
446         * config/pa/nm-hppah.h (CHILD_HAS_SYSCALL_EVENT): New macro
447         (CHILD_THREAD_ALIVE): New macro
448         (STOPPED_BY_WATCHPOINT): Add a condition to the macro, 
449         ! stepped_after_stopped_by_watchpoint
450         (TARGET_ENABLE_HW_WATCHPOINTS): New macro
451         (hppa_enable_hw_watchpoints): New funct decl
452         (TARGET_DISABLE_HW_WATCHPOINTS): New macro
453         ( hppa_disable_hw_watchpoints): New funct decl
454              these are for HP's implementation of fast 
455         watchpoints (via page protection).
456         (target_pid_to_str): New macro, calls hppa_pid_to_str
457         (target_tid_to_str): New macro, calls hppa_tid_to_str
458
459         * config/pa/nm-hppah.h (CHILD_POST_WAIT): Delete;
460         (CHILD_CREATE_CATCH_FORK_HOOK): Replace with
461         CHILD_INSERT_FORK_CATCHPOINT and CHILD_REMOVE_FORK_CATCHPOINT.
462         (CHILD_CREATE_CATCH_VFORK_HOOK): Replace with
463         CHILD_INSERT_VFORK_CATCHPOINT and CHILD_REMOVE_VFORK_CATCHPOINT.
464         (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC,
465         CHILD_INSERT_EXEC_CATCHPOINT, CHILD_REMOVE_EXEC_CATCHPOINT,
466         CHILD_HAS_EXECD, CHILD_REPORTED_EXEC_EVENTS_PER_EXEC_CALL,
467         CHILD_POST_ATTACH, TARGET_HAS_HARDWARE_WATCHPOINTS,
468         TARGET_CAN_USE_HARDWARE_WATCHPOINT,
469         TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT,
470         TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT,
471         HAVE_NONSTEPPABLE_WATCHPOINT, target_insert_watchpoint,
472         target_remote_watchpoint): New macros.
473
474         * config/pa/nm-hppah.h (CHILD_XFER_MEMORY): Reinsert accidentally
475         deleted define.
476
477         * config/pa/nm-hppah.h:
478         (PREPARE_TO_PROCEED): Defined macro to use 
479         hppa_prepare_to_proceed.
480         (hppa_pid_to_str): Extern decl.
481         (hppa_tid_to_str): Extern decl.
482         (target_pid_or_tid_to_str): New macro definition.
483         (hppa_pid_or_tid_to_str): Extern decl.
484         (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): New macro - for
485         handling events caused by a call to vfork.
486         (hppa_ensure_vforking_parent_remains_stopped): Extern decl.
487         (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): New macro -
488         for handling events caused by a call to vfork.
489         (hppa_resume_execd_vforking_child_to_get_parent_vfork): Extern decl.
490
491         * config/pa/nm-hppah.h: Fix PREPARE_TO_PROCEED macro.
492
493         * config/pa/nm-hppah.h: Fix for gcc compile on HPUX, change
494         PT_RDUAREA to PT_RUAREA.
495
496         * config/pa/nm-hppah.h: Introduced an HPUXHPPA define.
497         A bit of a hack so that I can ifdef some code that 
498         only works for the HP wildebeest debugger.
499
500         * config/pa/nm-hppah.h: Lots of new CHILD_ defines;
501         process_event_kind enum.
502
503         * config/pa/tm-hppa.h (BREAKPOINT32): New define.
504         (CALL_DUMMY_HAS_COMPLETED): New define.
505
506         * config/pa/tm-hppa.h (STACK_ALIGN): New macro.
507         (NO_EXTRA_ALIGNMENT_NEEDED): New macro.
508         (PC_REQUIRES_RUN_BEFORE_USE): New macro. 
509         (REGISTER_NAMES): Formatting in file changed.
510         (CR27_REGNUM): Base register for thread local storage. 
511         (USE_STRUCT_CONVENTION): New macro used to decide whether
512         a function returning a value of type type will
513         put it on the stack or into registers (based on the 
514         PA risc calling conventions).
515         (EXTRACT_RETURN_VALUE): Fixed calculation for extracting return value.
516         (VALUE_RETURNED_FROM_STACK): New macro.
517         (TARGET_READ_PC): Declared the function used in the definition.
518         (SKIP_TRAMPOLINE_CODE): Declared the function used in the definition.
519         (TARGET_WRITE_PC): Declared the function used in the definition.
520         (TARGET_READ_FP): Declared the function used in the definition.
521
522         * config/pa/tm-hppa.h (STRCAT_REGISTER): Define macro for 
523         future use.
524         (pa_do_strcat_registers_info): Moved function decl from
525         defs.h to this HPUX specific .h file.
526
527         * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Type_LENGTH returns
528         bytes, not bits; fix off by 8 error.
529
530         * config/pa/tm-hppa.h: 
531         New comment for obj_unwind_info definition
532         New typedef, obj_private_struct
533
534         * config/pa/tm-hppa.h: Delete most target_ macros -- use default
535         versions instead; remove extraneous comma from proc_wait macro.
536
537         * config/pa/tm-hppa.h: Get rid of macro HP_COMPILED_TARGET.
538
539         * config/pa/tm-hppa.h: Removed redefinitions of 
540         USE_STRUCT_CONVENTION and STACK_ALIGN macros.
541         
542         * config/pa/tm-hppa.h: Some new definitions
543           New macros: Arg0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM.
544             target_pid_to_exec_file, target_acknowledge_forked_child,
545             target_create_catch_fork_hook, target_create_catch_vfork_hook,
546             target_has_forked, target_has_vforked, require_attach, 
547             require_detach, proc_wait
548           New funct decls: Hppa_pid_to_exec_file,
549             hppa_acknowledge_forked_child, hppa_create_catch_fork_hook,
550             hppa_create_catch_vfork_hook, hppa_target_has_forked, 
551             hppa_target_has_vforked, hppa_require_attach, 
552             hppa_require_detach, process_wait
553           (unwind_table_entry): Added comments to describe struct fields.
554
555         * config/pa/tm-hppah.h (somsolib.h): Include it.
556
557         * config/pa/tm-hppah.h: 
558         (CHILD_ENABLE_EXCEPTION_CALLBACK): New define
559         (CHILD_GET_CURRENT_EXCEPTION_EVENT): New define
560
561         * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
562
563         * configure.in (AC_CHECK_HEADERS): Add check for term.h.
564         
565         * configure.in: Add an --enable-tui argument.
566
567         * configure.in: Construct tui/Makefile from tui/Makefile.in.
568
569         * configure.in: Use AM_PROG_CC_STDC.  If we have the GUI, then we
570         need this to process libgui.h.
571
572         * convex-tdep.c (decout): Change FILE to GDB_FILE.
573
574         * corefile.c: Include objfiles.h, symfile.h.
575         (core_file_command): Attempt to determine the name of the symbol
576         file from the core file.
577         (read_memory_string): New function.
578         
579         * corefile.c (core_file_command): Temporary hack to make non-hpux
580         work. For, non-hpux, t->to_core_file_to_sym_file does not have a
581         reasonable value. No target_ops vector on the stack gives it a
582         non-zero value. fix later.
583
584         * corelow.c (core_file_to_sym_file): Added new local variable,
585         failing command, and do some explicit type castings.
586         (core_ops): Add three new fields: to_has_syscall_event,
587         to_enable_exception_callback, to_get_current_exception_event.
588         Necessary since we still have oldstyle initialization in
589         this file
590
591         * corelow.c: Include unistd.h
592         (core_file_to_sym_file): New function 
593         (core_file_thread_alive): New function
594         (core_ops): Added new target ops vector fields. see below. And
595           yes we definitiely need to initialize them here, as long as
596           we're using static initialization.
597
598         * cxux-nat.c (add_shared_symbol_files): Additonal params for calls
599         to symbol_file_add.
600
601         * defs.h (gdb_file_isatty): New function decl.
602
603         * defs.h (GDB_FILE): If TUI is defined, define a structure rather
604         than making this an alias for FILE.
605         (gdb_stdout, gdb_stderr): If TUI is defined, then define these
606         as pointers to variables of type GDB_FILE rather than making them
607         be aliases for stdout and stderr.
608
609         * defs.h (TUIDO): Add definition conditionalized on definition
610         (or lack thereof) of TUI.
611
612         * defs.h (command_class): Add two additional values.
613         (precision_type): New enum.
614
615         * defs.h (gdb_fclose): Add declaration.
616
617         * defs.h (store_address): Change prototype to match function.
618
619         * defs.h (tui_version, xdb_commands, dbx_commands): Add decl's.
620
621         * defs.h (gdb_file_deallocate): New function declaration
622
623         * defs.h: 
624         (streamtype): New enumerated type to distinguish between
625         output to a FILE and output to a buffer.
626         (tui_stream): New struct type, named GDB_FILE. Contains,
627          streamtype, FILE, buffer, and bufferlength fields.
628         (gdb_stdout): Of type GDB_FILE, will pass this around gdb
629         rather than stdout.
630         (gdb_stderr): Of type GDB_FILE, will pass this around gdb
631         rather than stderr.
632         (fputs_unfiltered_hook): Change stream parameter from FILE to
633         GDB_FILE
634         (flush_hook): Change stream parameter from FILE to GDB_FILE
635         (gdb_fclose): Fix declaration for gdb_fclose; parameter is now of 
636         type GDB_FILE **
637         (gdb_file_adjust_strbuf): New function declaration. function lives in
638         utils.c.
639         (gdb_file_init_astring): New function declaration. function lives
640         in utils.c
641         (gdb_file_get_strbuf): New function declaration. function lives
642         in utils.c
643         
644         * defs.h: Additional include files included when TUI is defined.
645
646         * defs.h: Funct decl source_full_path_of.
647
648         * demangle.c: Add HP_DEMANGLING_STYLE_STRING.
649
650         * demangle.c: Added new demangling style, EDG_DEMANGLING_STYLE_STRING,
651           to the demanglers structure. This is for support of 
652           Kuck & Assoc.'s changes for demangling.
653
654         * eval.c (evaluate_subexp_standard): C++ member function changes.
655
656         * eval.c (evaluate_subexp_standard): Verify TYPE_TARGET_TYPE is
657         non NULL before dereferencing it.
658
659         * eval.c (evaluate_subexp_standard): With HP/aCC compiler it is not possible
660         to perform inferior calls via function pointers.
661         Resolve calls to overloaded functions using find_overload_match.
662         We cannot handle HP/aCC pointers to member functions.
663         Deal with HP/aCC pointers to members in various kind of expressions.
664
665         * f-lang.c (f_printchar): Change FILE to GDB_FILE.
666         (f_printstr): Ditto.
667         (emit_char): Ditto.
668
669         * f-lang.c (f_printstr): Change stdout to gdb_stdout.
670         
671         * f-typeprint.c (f_print_type): Change FILE to GDB_FILE.
672         (f_type_print_varspec_prefix): Ditto.
673         (f_type_print_args): Ditto.
674         (f_type_print_varspec_suffix): Ditto.
675         (print_equivalent_f77_float_type): Ditto.
676         (f_type_print_base): Ditto.
677
678         * findvar.c (): Hp snapshot 3 changes.  (extract_address): Coerce
679         return value from extract_unsigned_integer to CORE_ADDR.
680         (store_address): Change val from CORE_ADDR to LONGEST; changes to
681         support machines where CORE_ADDR and LONGEST are different sizes.
682         (get_saved_register): Coerce arg to store_address to LONGEST.
683         (read_relative_register_raw_bytes): Cast last arg to
684         store_address to LONGEST.  (read_register): Cast return from
685         extract_address to a CORE_ADDR.  (write_register_pid): Change val
686         from LONGEST to CORE_ADDR.  (read_pc_pid): Save and restore
687         inferior_pid if necessary.  (write_pc_pid): Ditto.
688         (read_var_value): Cast arg to store_address.
689
690         * findvar.c (read_relative_register_raw_bytes_for_frame): New
691         function.
692         (read_relative_register_raw_bytes): Call it.
693
694         * findvar.c (symbol_read_needs_frame): Handle LOC_THREAD_LOCAL_STATIC and
695         LOC_INDIRECT.
696
697         * fork-child.c (fork_inferior): Chenge fifth parameter to be a
698         function returning void.
699
700         * fork-child.c (fork_inferior): Delete unused variable f.
701         
702         * fork-child.c: 
703         (Startup_WITH_SHELL): New macro -- interim fix for a bug
704         (breakup_args): New function -- breaks up an argument string into
705           an argument suitable for passing into execvp().
706         (fork_inferior): Handling problems with starting up gdb with a shell.
707           -- again, this appears to be an interim fix.
708
709         * fork-child.c: 
710         (fork_inferior): Added a comment
711         (clone_and_follow_inferior): New function. 
712         (startup_inferior): Minor formatting changes.
713         
714         * fork-child.c: 
715         (fork_inferior): Hp change is problematic. The -f option has 
716         different meanings for different shells. It is particularly 
717         inappropriate for bourne shells.
718
719         * fork-child.c: 
720         (fork_inferior): Added new parameter, pre_trace_fun.
721         pre_trace_fun is a function pointer. For some targets,
722         like HPUX, this function gets called to prepare for forking
723         a child.
724
725         * fork-child.c: 
726         (fork_inferior): Fixed call to init_trace_fun
727
728         * fork-child.c: 
729         Moved definition of STARTUP_WITH_SHELL to inferior.h
730         Added a DEBUGGING macro. Currently set to 0. May remove
731         later.
732         breakup_args: Add DEBUGGING ifdefs. more sophisticated 
733         parsing to break up args.
734         (fork_inferior): Rename kshell variable to shell. new local
735         variable, tryname. Make use of STARTUP_WITH_SHELL macro. 
736         More error processing if starting up with a shell.
737         (startup_inferior): Distinguish between starting up with a shell 
738         and not doing so. 
739
740         * gdbthread.h: 
741         Declarations for load_infrun_state and save_infrun_state take
742         an additional parameter.
743
744         * gdbthread.h: Note that sometime between gdb 4.16 and 4.17,
745             thread.h was renamed gdbthread.h
746           (load_infrun_state): Additional parameters
747           (store_infrun_state): Additional parameters
748         
749         * gdbthread.h: Include breakpoint.h
750         
751         * hp-psymtab-read.c (QUICK_LOOK_UP): Redefine to be 0.
752         (hpread_build_psymtabs): Deal with enums.
753         (hpread_start_psymtab): Include section offset.
754         (hpread_end_psymtab): Take care of offset.
755         
756         * hp-psymtab-read.c (TRUE): Define.
757         (FALSE): Define.
758         (file_exists): New function. Checks for existance of file.
759         (hpread_pxdb_needed): Rewrite.
760         (hpread_quick_traverse): Use correct demangling style.
761         Handle F77 case.
762         (hpread_get_header): Rewrite.
763         (hpread_get_textlow): Add support for DOC_FUNCTION.
764         (hpread_build_psymtabs): Make sure we do the right thing
765         for pxdb and F77.
766
767         * hp-psymtab-read.c (hpread_pxdb_check): Change parenthesis positions.
768
769         * hp-psymtab-read.c (hpread_quick_traverse): Compare CORE_ADDR
770         variable end_addr to 0 instaed of NULL to get rif of gcc warning.
771
772         * hp-psymtab-read.c: 
773         (Hpread_get_textlow): Added param to function 
774         Defined convennience macros and some datatypes and variables for 
775         processing the quick lookup-tables. Looks like the code existed
776         before, but has been munged.
777         (hpread_pxdb_needed): Major rearrangements of code. Additional local
778         variables. Also, more extensive checking for various scenarios:
779         debug info for optimized code vs. unoptimized code, pxdb has been
780         run vs. pxdb has not been run.
781         (VALID_FILE): New macro
782         (VALID_MODULE): New macro
783         (VALID_PROC): New macro
784         (VALID_CLASS): New macro
785         (FILE_START): New macro
786         (MODULE_START): New macro
787         (PROC_START): New macro
788         (FILE_END): New macro
789         (MODULE_END): New macro
790         (PROC_END): New macro
791         (FILE_ISYM): New macro
792         (MODULE_ISYM): New macro
793         (PROC_ISYM): New macro
794         (VALID_CURR_FILE): New macro
795         (VALID_CURR_MODULE): New macro
796         (VALID_CURR_PROC): New macro
797         (VALID_CURR_CLASS): New macro
798         (CURR_FILE_START): New macro
799         (CURR_MODULE_START): New macro
800         (CURR_PROC_END): New macro
801         (CURR_FILE_ISYM): New macro
802         (CURR_MODULE_ISYM): New macro
803         (CURR_PROC_ISYM): New macro
804         (TELL_OBJFILE): New macro
805         (pst_syms_struct): New typedef to keep track of the start/end symbol
806         table (LNTT) indices of psymtabs created so far.
807         (pst_syms_count): New variable
808         (pst_syms_size): New variable
809         (told_objfile): New variable 
810         (init_pst_syms): New function. sets up psymtab symbol index stuff.
811         (clear_pst_syms): New function. clean up psymtab symbol index stuff.
812         (record_pst_syms): New function. add info about newest psymtab to symbol 
813         index table.
814         (find_next_pst_start): New function. Find a suitable symbol table index.
815         (find_next_file_isym): New function
816         (find_next_proc_isym): New function
817         (find_next_module_isym): New function
818         (scan_procs): New function. Scan and record partial symbols for all 
819         functions starting from specified index and in a specified code range.
820         (hpread_quick_traverse: Major rearrangement of code. The function
821         now uses all the nifty macros. There are some new local variables.
822         Check for EDG_DEMANGLING style. ifdef out some code for handling F77.
823         Previously, the function looped over all the modules in the table.
824         Now, the function loops over all the files, modules, and procedures.
825         With HP aCC and CTTI, it is possible for a compiled object to have a 
826         file and no module.
827         (hpread_build_psymtabs): Added a section of code ifdefed by 
828         QUICK_LOOK_UP. It check to see whether or not there are any globals 
829         in the executable. Fix number of params to hpread_start_psymtab call.
830         Some changes to the way DNTT_TYPE_MODULE is handled.
831         (hpread_get_textlow): Change in signature, minor code changes. The 
832         function finds the low address associated with a specified symbol.
833         In looking for the address for the symbol avoid going of the end of
834         the LNTT file.
835
836         * hp-psymtab-read.c: Change TRUE to 1 and FALSE to 0. Do some
837         reformatting.
838
839         * hp-psymtab-read.c: Include demangle.h
840         (trans_lang): New function to let gdb know the correct language.
841         (hpread_quick_traverse): Use ARM style demangling.
842         Demangle procedures names. 
843         Use gdb language names instead of hp language names.
844         Add symbol to list using its demangled name.
845
846         * hp-psymtab-read.c: New file.
847         (hpread_call_pxdb): New function. Call PXDB to process our file.
848         (hpread_pxdb_check): New function. Return TRUE if the file needs 
849         pre-processing by PXDB and we have thus called PXDB to do this 
850         processing and the file needs to be re-loaded.
851         (hpread_quick_traverse): New function. Traverse the quick look-up 
852         tables, building a set of psymtabs.
853         (hpread_get_header): New function. Get appropriate header from obj
854         file, based on pxdb type
855         (hpread_symfile_init): No change from hpread.c
856         (hpread_build_psymtabs): If there are quick lookup tables, read those,
857         then scan the global section LNTT. Otherwise, just scan the whole LNTT.
858         Changed: Add a global function entry to the global partial symbol list.
859         Handle end of symbols, for QLT case.
860         In case of TAGDEF, if it is a class or a template, add the name to the
861         var_namespace, so that it is known as a type by gdb.
862         In case of CONSTANT, and it is global, add it to the globals.
863         (hpread_symfile_finish): No change from hpread.c
864         (hpread_get_lntt): Make it not static
865         (hpread_get_gntt): No change from hpread.c
866         (hpread_get_slt): Make it not static
867         (hpread_get_textlow): No change from hpread.c
868         (hpread_start_psymtab): No change from hpread.c
869         (hpread_end_psymtab): No change from hpread.c
870
871         * hp-symtab-read.c (hpread_get_scope_start): Renamed. It was
872         hpread_get_depth.
873         (hpread_type_translate): Distinguish between signed and unsigned char
874         types.
875         (hpread_psymtab_to_symtab): Set flag for hp compilation.
876         (hpread_read_function_type): Append symbols for parameters to local 
877         list as well as to the global list. Get the parameters types from the
878         local list instead of the global list.
879         (hpread_read_struct_type): Add new field num_fn_fields to next_fn_field
880         structure. Rewrite handling of templates
881         (hpread_type_lookup): Change handling of dntt_type_modifier.
882         (hpread_process_one_debug_symbol): Call hpread_get_scope_start instea
883         of hpread_get_depth. Handle enum as well.
884         (hpread_get_scope_depth): New function. Get nesting depth for a 
885         DNTT entry.
886
887         * hp-symtab-read.c (hpread_psymtab_to_symtab): Set 
888         processing_gcc_compilation to 0.
889         
890         * hp-symtab-read.c (hpread_psymtab_to_symtab_1): Change stdout to
891         gdb_stdout; change fflush to gdb_flush.
892         (hpread_psymtab_to_symtab): Change fflush to gdb_flush.
893
894         * hp-symtab-read.c (hpread_read_enum_type): Declare variable.
895         (hpread_read_struct_type): Eliminate references 
896         to 'args' member of fn_field.
897
898         * hp-symtab-read.c (hpread_read_struct_type): A static member
899         is now indicated by the bitsize field, not the bitpos.
900         Initialize physname to empty.
901         (fix_static_member_physnames): Use new macros to deal with
902         physnames.
903
904         * hp-symtab-read.c (hpread_read_struct_type): Change references
905         to bitpos member of struct field to use the FIELD_BITPOS macro.
906
907         * hp-symtab-read.c (hpread_read_struct_type): Comment out reference to
908         obsolete field fn_field.args.
909         Add struct complaint definitions for complaints.
910         (hpread_read_struct_type): Change call to complain.
911         (hpread_read_array_type): Change call to complain. 
912         (hpread_type_lookup): Change call to complain.
913         (hpread_process_one_debug_symbol): Change calls to complain.
914         (hpread_type_translate): Change calls to complain.
915         
916         * hp-symtab-read.c (hpread_read_struct_type): Make sure bitvector
917         has been allocated before calling has_vtable.
918
919         * hp-symtab-read.c (hpread_read_struct_type): Revert change, 
920         just check for vtable without checking for bitvectors too.
921
922         * hp-symtab-read.c: 
923         (Hpread_expand_symtab): Change name of local variable from
924         at_end_of_module to at_module_boundary. 
925         Also, if demangling style is already EDG, do not reset it 
926         to the HP demangling style.
927         Change at_end_of_module param to hpread_process_one_debug_symbol
928         call to at_module_boundary.
929         No longer break out of loop when reach end of module. With CTTI,
930         the compiler can generate function symbols which are not in 
931         any module. Typically they show up after the end of one
932         module and before the start of the next module.
933         (hpread_read_struct_type): Check that the debug info for 
934         a TEMPLATE_ARG is correct.
935         (hpread_process_one_debug_symbol): Change name of at_end_of_module_p
936         param to at_module_boundary_p. 
937         Also set *at_module_boundary_p = -1 if missing a module end and set 
938         it to 1 when finished expanding the debug info.
939         Handle TLS variable.
940
941         * hp-symtab-read.c: Include defs.h, symtab.h, gdbtypes.h, complaints.h.
942         (fixup_class): New static variable.
943         (fixup_method): New static variable.
944         (hpread_get_location): Rewrite.
945         (hpread_has_name): Add cases for DNTT_TYPE_DOC_FUNCTION and 
946         DNTT_TYPE_DOC_MEMFUNC
947         (hpread_expand_symtab): Use HP demangling style. 
948         Set hp_som_som_object_present to 1.
949         (hpread_type_translate): Error out if not immediate. Issue warning
950         if there is an unhandled type code.
951         (error_in_hpread_type_translate_complaint): Remove this structure.
952         (hpread_read_enum_type): Don't assume size of enum is always 4 bytes.
953         (hpread_read_function_type): Add new parameter to indicate a new block.
954         Do not add the parameters to the symbol list.
955         If the type was read in earlier, do not modify the type structure.
956         If we are creating a new block, set the local symbol list to be the
957         param list.
958         Need to mark this type as preprocessed.
959         (hpread_read_doc_function_type): New function. Read and internalize 
960         a native DOC function debug symbol.
961         (hpread_read_struct_type): A method can be of type doc_function and
962         doc_memfunc too.
963         Handle case in which a method is read before its class. Deal with 
964         incomplete method types.
965         Handle cases in which HP/aCC compiler creates operator names w/o
966         the 'operator' keyword. Rewrite the loop over the fileds.
967         (fix_static_member_physnames): New function. Adjust the physnames for 
968         each static member.
969         (fixup_class_method_type): New function. Fix-up the type structure for a 
970         class.
971         (hpread_read_array_type): Change complaint to warning.
972         (hpread_type_lookup): Add case for DNTT_TYPE_DOC_FUNCTION.
973         For structures/classes set static member to point to strings with full
974         names.
975         Change calls to hpread_read_function_type to pass extra parameter.
976         (hpread_record_lines): Handle case for SLT_NORMAL_OFFSET.
977         (class_of): New function. Given a function "f" which is a member of a class,
978         find the classname that it is a member of.
979         (hpread_process_one_debug_symbol): Deal with possible alias field from the
980         som record for the Function or Entry type.
981         Do the demangling ourselves if the gdb demangler failed.
982         Add support for DOC functions.
983         For function types, add parameters to local list.
984         (hpread_get_scope_depth): Make this function a no-op.
985         (hpread_adjust_bitoffsets): New function. Adjust the bitoffsets for all 
986         fields of an anonymous union.
987         (hpread_get_next_skip_over_anon_unions): New function. Skip over anonymous 
988         unions.
989
990         * hp-symtab-read.c: Include demangle.h
991         (hpread_expand_symtab): Ensure we are using ARM-style demangling.
992         (hpread_process_one_debug_symbol): Set the mangled and demangled 
993         names for functions.
994         Record the class name to generate the demangled names of member 
995         functions.
996
997         * hp-symtab-read.c: New file.
998         (hpread_get_depth): No change from hpread.c
999         (hpread_get_line): No change from hpread.c
1000         (hpread_get_location): No change from hpread.c
1001         (hpread_has_name): Make it not static. Return 1 for DNTT_TYPE_BLOCKDATA
1002         and DNTT_TYPE_MEMFUNC. Return 0 for CLASS_SCOPE, REFERENCE,PTRMEM,
1003         PTRMEMFUNC, CLASS, GENFIELD, VFUNC, MEMACCESS, INHERITANCE, 
1004         FRIEND_CLASS, FRIEND_FUNC, MODIFIER, OBJECT_ID, TEMPLATE, TEMPLATE_ARG,
1005         FUNC_TEMPLATE, LINK.
1006         (hpread_psymtab_to_symtab_1): No changes from hpread.c
1007         (hpread_psymtab_to_symtab): Make it a static function
1008         (hpread_expand_symtab): Modified
1009         (hpread_type_translate): If not typep.dntti.immediate do not abort, 
1010         but complain and return. Same for default action. Handle more HP_TYPEs.
1011         (hpread_lookup_type): Initially allocate a correct-size type-vector.
1012         (hpread_alloc_type): Reset type_addr only if a type was allocated.
1013         (hpread_read_enum_type): If this has already a type associated, return.
1014         (hpread_read_function_type): Do different things depending on whether 
1015         function is a MEMFUNC, a TEMPLATE, a FUNCTION som record.
1016         Do not use the LOC_REGPARM_ADDR symbol class.
1017         (hpread_read_struct_type): Handle classes and templates too. Major 
1018         rewrite.
1019         (hpread_get_nth_template_arg): New function. 
1020         (hpread_read_templ_arg_type): New function.
1021         (hpread_read_set_type): No change from hpread.c
1022         (hpread_read_array_type): Modified
1023         (hpread_read_subrange_type): Add handling of more DNTT entries.
1024         added support for templates, classes, references, virtual functions.
1025         (hpread_type_lookup): Handle DNNT_TYPE_MODULE.
1026         (hpread_record_lines): No changes from hpread.c
1027         (hpread_process_one_debug_symbol): Handle WITH, COMMON, 
1028         CLASS_SCOPE. Expand TAGDEF case to handle classes and templates.
1029
1030         * hppa-tdep.c (pa_do_strcat_registers_info): Has a new parameter,
1031         precision, which is passed into the call to pa_strcat_fp_reg to
1032         indicate whether to display the floating point registers using
1033         single or double preceision.
1034         (pa_strcat_registers): Introduce local variable, precision, and 
1035         pass it into call to pa_strcat_fp_reg.
1036         (pa_strcat_fp_reg): Modified function. New parameter, precision,
1037         used by function to decide whether to use single or double
1038         precision. Also added the code to put a double precision value
1039         into a buffer.
1040
1041         * hppa-tdep.c: Add'l includes <machine/save_state.h>,
1042         <unistd.h>, declare pa_register_look_aside, define is_pa_2.
1043         (rp_saved): Check for where to read the return pointer from.
1044         (pa_do_registers_info): Handle is_pa_2. (pa_register_look_aside):
1045         new function. (pa_print_registers): Handle is_pa_2.
1046         (in_solib_call_trampoline): Handle a compiler/linker error.
1047         (skip_trampoline_code): Changes to some masks used in examining
1048         instructions.  (inst_saves_fr): Test for FSTWS instruction.
1049         (skip_prologue): Renamed to skip_prologue_hard_way.
1050         (after_prologue): New function.  (skip_prologue): New function.
1051
1052         * hppa-tdep.c (after_prologue): If f is NULL, don't dereference
1053         it.
1054
1055         * hppa-tdep.c (after_prologue): If no debug info, return zero
1056         telling caller that we need to find the end of the prologue via
1057         the hard way (instruction examination).
1058
1059         * hppa-tdep.c (find_unwind_entry): Avoid dereferencing a null
1060         pointer.
1061
1062         * hppa-tdep.c (hppa_pid_to_exec_file): Deleted -- no longer used.
1063
1064         * hppa-tdep.c (hppa_prepare_to_proceeed): Add prototype.
1065         (read_unwind_info): Purecov comments, bug fixes.
1066         (find_unwind_entry): Purecov comments, bug fixes.
1067         (find_stub_with_shl_get): Purecov comments.
1068         (frame_chain): Additional parens.
1069         (hppa_push_arguments): Changes to commented out version of routine.
1070         (hppa_fix_call_dummy): Purecov comments, fix location of end.o.
1071         (in_solib_call_trampoline): Purecov comments.
1072         (in_solib_return_trampoline): Purecov comments.
1073         (setup_d_pid_in_inferior): Fix location of end.o.
1074         (initialize_hp_cxx_exception_support): Fix location of end.o.
1075         (child_enable_exception_callback): Purecov comments.
1076
1077         * hppa-tdep.c: 
1078         (Pa_do_strcat_registers_info): New routine. called by 
1079         tui/tuiRegs.c:_tuiRegisterFormat to place a register name 
1080         and value into a string buffer. Interface may change in
1081         future. Checking this in so that we have something 
1082         functional for HP.
1083         (pa_strcat_registers): New routine, called by 
1084         pa_do_strcat_registers_info. Does same thing as 
1085         pa_print_registers except it takes a stream parameter. 
1086         This routine should disappear in future. Checking in
1087         so that we have something functional to give HP
1088         (pa_strcat_fp_reg): New routine, called by 
1089         pa_do_strcat_registers_info and pa_strvat_registers
1090         to place a floating point register name and value into
1091         a buffer. This interface may change in future. 
1092         Checking in so that we have something functional to give HP.
1093
1094         * hppa-tdep.c: (Pa_print_fp_reg): Change prototype to match def'n.
1095         (pa_register_look_aside): Fix comment immediately before function.
1096
1097         * hppa-tdep.c: Changes to better support stack unwinding, 
1098             reading and writing registers for HPUX. The HP folks had
1099             an advantage ... access to a runtime architecture spec ;-}.
1100           New includes: Ptrace.h
1101           (internalize_unwinds): Initialize new fields in table.
1102           (read_unwind_info): Entries in the table are now more complex
1103             structures. References of the form ...->table[index].stub_type
1104             are now ...->table[index].stub_unwind.stub_type.
1105           (find_proc_framesize): Added a check for pc == 0.
1106           (rp_saved): Entries in the table are now more complex
1107             structures. References of the form ...->table[index].stub_type
1108             are now ...->table[index].stub_unwind.stub_type.
1109           (frameless_function_invocation): Stub_type becomes
1110             stub_unwind.stub_type
1111           (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type
1112           (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type
1113           (frame_chain_valid): Stub_type becomes stub_unwind.stub_type
1114           (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type
1115           (pa_print_fp_reg): Additional params to call val_print
1116           (in_solib_call_trampoline): Stub_type becomes stub_unwind.stub_type
1117           (in_solib_return_trampoline): Stub_type becomes stub_unwind.stub_typ
1118           (skip_trampoline_code): Additional code to handle external
1119              dyncalls. Also stub_type becomes stub_unwind.stub_type
1120           (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there
1121              is an explicit ptrace request for getting the pathname associated
1122              with a process id (pid).
1123         
1124         * hppa-tdep.c: Fix for gcc compile on HPUX
1125           (hppa_pid_to_exec_file): Remove unwanted param from 
1126              call to call_ptrace. Note, hppa_pid_to_exec_file goes
1127              away in subsequent hp snapshots.
1128
1129         * hppa-tdep.c: Include bfd.h.
1130         include dl.h
1131         (args_for_find_stub): New structure.
1132         (find_unwind_entry): Deal with null input pc value.
1133         (rp_saved): Ditto.
1134         For the import stub, return -24 always.
1135         (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop.
1136         (init_extra_frame_info): Use TARGET_READ_FP.
1137         (frame_chain): Include thread support.
1138         If the caller's pc is zero, we loose and return, just like stack bottom.
1139         Disable warning about being unable to find unwind info.
1140         (hppa_push_arguments): Rewrite.
1141         (hppa_value_returned_from_stack): New function. Handles returning a value
1142         larger that 64 bits, stored on the stack.
1143         (find_stub_with_shl_get): New function. To look up symbols in shlibs.
1144         (cover_find_stub_with_shl_get): New function. Cover routine for 
1145         find_stub_with_shl_get to pass to catch_errors.
1146         (hppa_fix_call_dummy): Comment out old stub mechanism. Rewrite using dyncall.
1147         (target_read_fp): New function.
1148         (pa_do_registers_info): Floating point registers start at FP4.
1149         (pa_print_registers): Use FP4_REGNUM instead of 72.
1150         (skip_trampoline_code): Do machine instruction matching for PA2.0.
1151         (setup_d_pid_in_inferior): New function. Exception handling support.
1152         (initialize_hp_cxx_exception_support): Ditto.
1153         (child_enable_exception_callback): Ditto.
1154         (child_get_current_exception_event): Ditto.
1155
1156         * hppah-nat.c (child_post_wait, child_post_follow_vfork,
1157         child_post_follow_inferior_by_clone): New functions.
1158
1159         * hppah-nat.c (child_xfer_memory): Make sure the call to ptrace really
1160         fails before we give up.
1161         (hppa_pid_to_str): New function. Format a process id.
1162         (hppa_tid_to_str): New function. Format a thread id. 
1163
1164         * hppah-nat.c (child_xfer_memory): Use xmalloc, not alloca.
1165         (child_post_wait): Delete.
1166         (child_post_follow_vfork): Delete decl of child_ops; delete
1167         large chunks of function -- let it be handled by the normal
1168         mechanism that notices and handles exec events, in resume().
1169
1170         * hppah-nat.c (require_notification_of_exec_events): New function;
1171         just notify of exec events, not all events, and just the specified
1172         pid, don't include it's children (10.20 version).
1173         (child_acknowledge_created_inferior): Call new function
1174         require_notification_of_exec_events instead of
1175         require_notification_of_events.
1176         
1177         * hppah-nat.c [!GDB_NATIVE_HPUX_11]: Move HPUX 10.x-specific
1178         support code here from infptrace.c.
1179
1180         * hppah-nat.c: Removed #define ptrace call_ptrace
1181         replaced all calls to ptrace with calls to call_ptrace
1182         (parent_attach_all): Removed call to ptrace
1183
1184         * hpread.c (hpread_psymtab_to_symtab_1): Change fflush to
1185         gdb_flush; change stdout to gdb_stdout.
1186         (hpread_psymtab_to_symtab): Change fflush to gdb_flush.
1187         
1188         * hpread.h: New file. Includes all includes, struct defs, defines
1189         from hpread.c. 
1190
1191         * infcmd.c 
1192         (attach_command): New local variable, exec_file, added code to
1193           determine exec_file from pid if exec_file is not already known,
1194           call new target operation, target_post_attach -- a no-op unless
1195           on HPUXHPPA
1196         (detach_command): After detaching, do a SOLIB_RESTART
1197
1198         * infcmd.c (objfiles.h): Fix typo on include line.
1199
1200         * infcmd.c (run_command): Only call SOLIB_RESTART if it's
1201         defined.
1202         (detach_command): Ditto.
1203
1204         * infcmd.c: 
1205         (run_stack_dummy): Add calls to 
1206         disable_watchpoints_before_interactive_call_start and
1207         enable_watchpoints_after_interactive_call_stops
1208         (finish_command): Alter code handling the evaluation and printing
1209         of the target function's return value.
1210         (attach_command): When given a pid, but no exec file, try to determine
1211         the exec file from the process. If the process does not record a 
1212         full path name, try to qualify the filename against the source path.
1213         (_initialize_infcmd): Add some verbiage about how to use the attach command
1214
1215         * infcmd.c: 
1216         Include objfiles.h
1217         (run_command): If program has already been started, and decide
1218         to restart it, then kill the target, flush the caches, 
1219         call init_wait_for_inferior. Also purge old solib objfiles.
1220
1221         * infcmd.c: Changed calls to val_print, using a new macro,
1222           SOLIB_RESTART
1223           (run_command): Calls SOLIB_RESTART
1224           (do_registers_info): Changed calls to val_print
1225
1226         * infcmd.c: Made the symfile.h include preceed the 
1227         objfiles.h include. The other ordering caused a 
1228         compile problem (incompletely defined types).
1229
1230         * inferior.h (REQUIRE_DETACH): Fix default definition.
1231         * inftarg.c (child_post_attach): Fix declaration, make static.
1232         (proc_wait): Make globally visible.
1233         (child_insert_fork_catchpoint, etc): Fix return type.
1234
1235         * inferior.h (STARTUP_WITH_SHELL): New define.
1236         (START_INFERIOR_TRAPS_EXPECTED): New define
1237
1238         * inferior.h (fork_inferior): Change fifth parameter to be a function 
1239         returning void. 
1240
1241         * inferior.h (proc_wait): Declare.
1242
1243         * inferior.h: 
1244           (Require_ATTACH): New macro
1245           (REQUIRE_DETACH): New macro
1246           (detach): Definition is now an extern
1247           (clone_and_follow_inferior): New definition, it's also an extern
1248
1249         * inferior.h: 
1250           (Require_attach): Default definition for require_attach funct
1251           (require_detach): Default definition for require_detach funct
1252           (pre_fork_inferior): New funct decl for function defined in
1253            infptrace.c
1254           (fork_inferior): New parameter in funct decl.
1255
1256         * inferior.h: 
1257           New variable decls: Inferior_ignoring_startup_exec_events,
1258             inferior_ignoring_leading_exec_events -- these variables 
1259             are used when processing an exec call.
1260           (CALL_DUMMY_HAS_COMPLETED): New default macro -- for targets
1261             where PC in call dummy implies that call dummy has 
1262             completed. Note, that on HPUX this inference does not hold.
1263
1264         * infptrace.c
1265           (require_notification_of_events): New function
1266           (child_acknowledge_created_inferior): Previously named
1267              hppa_acknowledge_forked_child. Also calling 
1268              require_notification_of_events and clearing some semaphore 
1269              variables
1270           (child_post_startup_inferior): New function
1271           (child_create_catch_fork_hook): Previously named
1272              hppa_create_catch_fork_hook
1273           (child_create_catch_vfork_hook): Previously named
1274              hppa_create_catch_vfork_hook 
1275           (child_has_forked): Previously named hppa_target_has_forked
1276           (child_has_vforked): Previously named hppa_target_has_vforked
1277           (process_wait): Changed to call target_post_wait
1278           (attach): Add call to require_notification_of_events
1279           (child_pid_to_exec_file): New function
1280           (hppa_require_attach): New local variable, pt_status
1281           (hppa_get_process_events): New function
1282
1283         * infptrace.c (call_ptrace): Simplify control flow.
1284         (proc_wait): Move here from inftarg.c, add target_post_wait call.
1285
1286         * infptrace.c (call_ptrace): Add some debugging code.
1287
1288         * infptrace.c (child_pid_to_exec_file): Declare variable.
1289
1290         * infptrace.c (kill_inferior): Clean up call to proc_wait.
1291
1292         * infptrace.c: 
1293         (Call_ptrace): When the ptrace request is PT_SETTRC,
1294         call ptrace and then call parent_attach_all.
1295
1296         * infptrace.c: 
1297         (Child_has_syscall_event): New function. only applicable
1298         (for now) on HPUX 10.30 and beyond via the ttrace call.
1299         In infptrace.c there is a default operation.
1300         With ttrace, it is possible to tell the kernel to
1301         notify the debugger that the target program is about to make
1302         or return from a syscall.
1303         (child_thread_alive): New function. a default function.
1304         ptrace doesn't support kernel threads.
1305         (hppa_enable_page_protection_events): Defualt function
1306         (hppa_disable_page_protection_events): Default function
1307
1308         * infptrace.c (child_pid_to_exec_file): Fix number of params to
1309         cal_ptrace call.
1310
1311         * infptrace.c (hppa_pid_or_tid_to_str): New function.
1312         (hppa_switched_threads): New function.
1313         (hppa_ensure_vforking_parent_remains_stopped): New function.
1314         (hppa_resume_execd_vforking_child_to_get_parent_vfork): New function.
1315
1316         * infptrace.c: Most of the changes found in infptrace.c should
1317             be moved to hppah-nat.c
1318           (PT_VERSION): A new define
1319           (startup_semaphore_t): A new struct type. it is used to 
1320             coordinate the parent and child processes after a fork and 
1321             before an exec on HPUX.
1322           (call_ptrace): Changes to determine whether the ptrace
1323             request is for starting the tracing of the target process.
1324           (parent_attach_all): New funct. used on HPUX for coordinating
1325             the parent and child processes after a fork and before and exec.
1326           (hppa_acknowledge_forked_child): New funct. prabably belongs 
1327             in hppah-nat.c
1328           (hppa_enable_catch_fork): New funct. probably belongs in 
1329             hppah-nat.c
1330           (hppa_disable_catch_fork): New funct. probably belongs in
1331             hppah-nat.c
1332           (hppa_create_catch_fork_hook): New funct. probably belongs in 
1333             hppah-nat.c
1334           (hppa_enable_catch_vfork): New funct. probably belongs in 
1335             hppah-nat.c
1336           (hppa_disable_catch_vfork): New funct. probably belongs in
1337             hppah-nat.c
1338           (hppa_create_catch_vfork_hook): New funct. probably belongs to
1339             hppah-nat.c
1340           (hppa_target_has_forked): New funct. probably belongs in 
1341             hppah-nat.c
1342           (hppa_target_has_vforked): New funct. probably belongs in
1343             hppah-nat.c
1344           (process_wait): New funct. also ifdefed for proc_wait.
1345           (kill_inferior):  Call proc_wait rather than wait. this is 
1346             pretty hacky. 
1347           (pre_fork_inferior): New function. used only by HPUX.
1348             probably should be defined elsewhere.
1349
1350         * infrun.c (follow_inferior_fork): Only define on HP.
1351         (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have
1352         shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE
1353         removed by HP.
1354
1355         * infrun.c (normal_stop): Add a call to the TUIDO 
1356         macro just before the annotate_stopped label. This
1357         updates the windows after each program stop.
1358
1359         * infrun.c (normal_stop): Verify stop_command is non-zero before
1360         dereferencing it (it won't be set if dbx_commands is set).
1361
1362         * infrun.c (resume): Add #ifdef HPPAHPUX around HPUX-specific
1363         code.
1364
1365         * infrun.c (resume): Add missing semicolon.
1366
1367         * infrun.c (wait_for_inferior): Fix syntax error.
1368
1369         * infrun.c (follow_fork_mode_kind_names): Removed "both" option.
1370         (follow_fork): Added parameters. additional code for handling
1371         following of parent, following of child
1372         (resume): Added code for deciding how to resume in presence of
1373         fork. Additional params to follow_fork call.
1374
1375         * infrun.c (follow_exec): Ifdef for HPUXHPPA for the moment, the
1376         code in here assumes the existance of the child_ops target
1377         vector. This is incorrect for Solaris.
1378
1379         * infrun.c (resume): Fixed ifdefs, HPPAHPUX -> HPUXHPPA.
1380
1381         * infrun.c (wait_for_inferior): Fixed a matching parens problem --
1382         matching curly brace inside ifdefed code which is not being
1383         compiled. Change local validFlag to be an 'int' rather than a
1384         'bool' and fixed the corresponding assignment statements.
1385
1386         * infrun.c: 
1387         Two new global variables: Inferior_ignoring_startup_exec_events and
1388         inferior_ignoring_leading_exec_events.
1389         New static variables: Parent_of_vfork_trap_expected_and_ignorable,
1390         step_resume_breakpoint, through_sigtramp_breakpoint, pending_follow,
1391         follow_vfork_when_exec
1392         (follow_inferior_fork): Does what follow_fork did! 
1393         (follow_fork): Is now a wrapper function for follow_inferior_fork
1394         (follow_vfork): Is now a wrapper function for follow_inferior_fork
1395         (follow_exec): New function, handles an exec event.
1396         (resume): Remove 3 local variables: Child_pid, has_forked, has_vforked.
1397         move and expand code that tries to follow a fork (i.e. also check
1398         for vfork and exec
1399         (init_wait_for_inferior): Initialize the new structure, pending_follow
1400         (delete_breakpoint_current_contents): When deleting all the breakpoints also 
1401         set the breakpoint struct pointer to NULL.
1402         (wait_for_inferior): A number of changes.
1403         The step_resume_breakpoint and through_sigtramp_breakpoint local 
1404         variables are now visible in entire module. 
1405         Changed name of variable from child_inferior_pid to saved_inferior_pid.
1406         Added several cases to the event processing switch statement: 
1407         Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD.
1408         Also, for TARGET_WAITKIND_STOPPED, check to see if expecting a trap
1409         from the parent of a vfork (ignorable) otherwise break as usual.
1410         When determining the value of 'random_signal' (0 or 1), no longer check for 
1411         catchpoints. 
1412         When determining how to handle unexpected signals, must now take into
1413         account fork, vfork, and exec.
1414         Change call to PC_IN_CALL_DUMMY to a call to CALL_DUMMY_HAS_COMPLETED
1415         At stop_stepping label, check to see if stopped for fork or
1416         vfork event.
1417
1418         * infrun.c: New code is related to threads and fork/vfork/exec.
1419         New static variable: Thread_step_needed
1420         Deleted static variable: Parent_of_vfork_trap_expected_and_ignorable
1421         Altered the pending_follow and fork_event structs
1422         (follow_inferior_fork): Before detaching from child and removing
1423         all breakpoints form it -- but only if forking or following 
1424         vforks as soon as they happen. Also reset the solib inferior hook.
1425         The same kind of logic applies to hitting step_resume_breakpoints
1426         (calling breakpoint_re_set_thread) and to resetting and inserting 
1427         breakpoints. 
1428         (follow_exec): Forward decl
1429         (follow_vfork): Check to see if gdb followed the child. If
1430         the child exec'd before gdb saw the parent's vfork event
1431         then call follow_exec.
1432         (follow_exec): If the exec occured after a vfork, then follow
1433         the vfork as well. Do it before following the exec.
1434         Make sure to update breakpoints after and exec
1435         (resume): New local variable, should_resume. 
1436         Change parameters in calls to follow_fork, follow_vfork, and 
1437         follow_exec. Some changes to the way various pending_follow.kind
1438         situations are handled (there's TARGET_WAITKIND_FORKED, 
1439         TARGET_WAITKIND_VFORKED, ARGET_WAITKIND_EXECD. Some additional
1440         conditions to check before deciding to resume the target (i.e.
1441         should_resume=1, stepping?, thread_step_needed?i, regular 
1442         resume?)
1443         (proceed): When proceeded at location that does not have a breakpoint
1444         set thread_step_needed=0 to indicate that it is not necessary to
1445         single step thread over breakpoint. SOme additional checks to see
1446         if it is necessary to step thread over breakpoint.
1447         (start_remote): Remove call to clear_proceed_status.
1448         (init_wait_for_inferior): Initialize new fields in fork_event
1449         structure and add a call to clear_proceed_status.
1450         (wait_for_inferior): New local variable: New_thread_event.
1451         Initialize thread_step_needed = 0. 
1452         Minor massaging of conditions for adding a new thread to the thread list. 
1453         No longer resuming execution after adding a new thread. Let user play with thread first.
1454         Some changes in the way TARGET_WAITKIND_FORKED, ARGET_WAITKIND_VFORKED,
1455         TARGET_WAITKIND_EXECD are handled -- this is all HPUX related. 
1456         Simplified TARGET_WAITKIND_STOPPED -- HP previously had some
1457         more complicated code in here. 
1458         Moved the code to resume threads to after the large case statement that processes the events.
1459         Additional processing for stop_signal=TARGET_SIGNAL_TRAP. 
1460         Cleanup code at process_event_stop_test label. 
1461         Set thread_step_needed when processing a BPSTAT_WHAT_SINGLE.
1462         Minor massaging of fork/vfork/exec part of stop_stepping code.
1463         (normal_stop): Minor changes. calling show_and_print_stack_frame.
1464         (xdb_handle_command): New function
1465         (_initialize_infrun): Handle xdb_commands. also handle dbx commands
1466
1467         * infrun.c: Changes to support following forks, and handling
1468             catchpoints.
1469           (follow_fork_mode_kind_names): New array
1470           (follow_fork): New function. implements the follow parent,
1471             or child functionality.
1472           (resume): Additions to check whether the target process 
1473             just forked and decide which process to follow.
1474           (wait_for_inferior): Additional variables (child_inferior_pid,
1475               stepping_through_solib_after_catch, 
1476             -  stepping_through_solib_catchpoints.
1477             -  Altered CURRENTLY_STEPPING macro to check for stepping through
1478                a shared library after hitting a catchpoint.
1479             - Add parameters to save_infrun_state call
1480             - Check for fork and vfork when deciding if event is a random
1481                signal
1482             - When considering stops due to breakpoints, check for 
1483               BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK
1484             - Check for stop due to an explicit catchpoint
1485             - When checking for single stepping event, also check for
1486               stepping to get out of dynamic linker's hook after catching
1487               a shlib event
1488           (is_internal_shlib_eventpoint): New funct. check to see if 
1489               event type is bp_shlib_event.
1490           (stopped_for_internal_shlib_event): New funct. check for shlib
1491               events
1492           (stopped_for_shlib_catchpoint): New funct. check for catchpoints.
1493           (normal_stop): Additions to check for shlib event
1494           (set_follow_fork_mode_command): New funct. handles the new follow
1495               fork command.
1496           (_initialize_infrun): Additions for follow-fork-mode command.
1497
1498         * infrun.c: Ifdefing references to 
1499         switched_from_inferior_pid for HPUXHPPA. They don't seem 
1500         useful for Solaris (i.e. non-HPUX)
1501
1502         * infrun.c: Included tuiData.h and tuiDataWin.h, ifdefed for TUI.
1503         Included top.h. New static variables: Switched_from_inferior_pid, 
1504         number_of_threads_in_syscalls. 
1505         (follow_inferior_fork): If there is a step_resume breakpoint
1506         explicitly reset the thread number. 
1507         (resume): For TARGET_WAITKIND_VFORKED, removed a check for getting 
1508         the vfork event to soon.
1509         (init_wait_for_inferior): Added parameter to call to 
1510         breakpoint_init_inferior. Initialize number_of_threads_in_syscalls.
1511         (wait_for_inferior): New local variables: Prev_sal,
1512         enable_hw_watchpoints_after_wait, stepping_through_sigtramp,
1513         stepped_after_stopped_by_watchpoint. Enable watchpoints after a wait.
1514         Added cases for TARGET_WAITKIND_SYSCALL_ENTRY and 
1515         TARGET_WAITKIND_SYSCALL_RETURN.
1516         Do additional processing if stop due to breakpoint, but breakpoint is
1517         only valid for a thread other than the one currently running. Additional
1518         parameters to save_infrun_state and load_infrun_state. Some additional
1519         processing for BPSTAT_WHAT_STEP_RESUME. Some additional processing to 
1520         handle stepping over a function.
1521         (normal_stop): Added notification of switching threads. ifdefing some
1522         TUI changes and leaving out non-essential TUI changes.
1523         (restore_selected_frame): Ifdefing some TUI changes
1524         (restore_inferior_status): Ifdefing some TUI changes
1525
1526         * infrun.c: Removed the TUI ifdefs and TUI code. Also removed
1527         include for top.h. HP introduced this. I'm taking it out.
1528
1529         * inftarg.c (child_detach_from_process): Declare.
1530         (child_attach_to_process): Declare.
1531         (child_stop): Make static to match declaration.
1532
1533         * inftarg.c (ptrace_him): Change prototype back to return int. 
1534
1535         * inftarg.c (ptrace_me): Remove debug output, pass NULL to
1536         fork_inferior if not HPUX.
1537
1538         * inftarg.c: 
1539           (child_require_attach): New funct prototype and definition
1540           (child_require_detach): New funct prototype and definition
1541           (proc_wait): Funct prototype and definition are enclosed by
1542             proc_wait ifndef
1543           (child_attach_to_process): New function, does most of the 
1544             work that child_attach used to do and some additional 
1545             work to determine whether gdb is already attached to the
1546             target how to react.
1547           (child_attach): Altered. It's now a wrapper for
1548             child_attach_to_process.
1549           (child_require_attach): New function, called if should attach
1550             even when gdb is already attached to target.
1551           (child_detach_from_process): New function, does most of the 
1552             work that child_detach used to do and some additional work
1553             to determine whether gdb is currently attached to the target.
1554           (child_detach): Altered. It's now a wrapper for 
1555             child_detach_from_process.
1556           (child_require_detach): New function, called if should try to 
1557             detach even when gdb is not attached to target.
1558           (ptrace_him): Calls a new function, target_acknowledge_forked_child.
1559             Currently, target_acknowledge_forked_child, is only defined to
1560             do something for HPUX.
1561           (child_create_inferior): Changed call to fork_inferior.
1562           (child_ops): Added to_require_attach and to_require_detach fields
1563             to the child_ops target ops vector.
1564
1565         * inftarg.c: 
1566           Some hacks for ttrace work 
1567           (child_wait): Additional local variables, additional code in
1568             while loop to check for: Process exited, process forked, 
1569             process vforked, process execd
1570           (child_thread_alive): John B. seems to think that the kill 
1571             call is inapproapriate for HPUX.
1572           (child_attach_to_process): Using strtol rather than atoi.
1573             no longer check for case where there is no known exec file.
1574           (child_post_attach): New function, a default, a no-op
1575           (child_insert_fork_catchpoint): New function, a default, a no-op
1576           (child_remove_fork_catchpoint): New function, a default, a no-op
1577           (child_create_catch_fork_hook): Deleted
1578           (child_create_catch_vfork_hook): Deleted
1579           (child_insert_vfork_catchpoint): New function, a default, a no-op
1580           (child_remove_vfork_catchpoint): New function, a default, a no-op
1581           (child_can_follow_vfork_prior_to_exec ):new function, a default, 
1582              a no-op
1583           (child_insert_exec_catchpoint): New function, a default, a no-op
1584           (child_remove_exec_catchpoint): New function, a default, a no-op
1585           (child_has_execd): New function, a default, returns 0
1586           (child_reported_exec_events_per_exec_call): New function, a 
1587              default, returns 1
1588           (child_has_exited): New function, a default.
1589           (child_core_file_to_sym_file): New function, a default, returns NULL.
1590           (child_ops): Initialize new target_ops vector fields to the 
1591              child* functions.
1592         * infptrace.c: 
1593         (Call_ptrace): For HPUX, handle additional requests: Pt_CONTIN1,
1594           PT_STEP1.
1595         (require_notification_of_events): Add several signals to the
1596           set of events requiring notification: Ptrace_SIGNAL, 
1597           PTRACE_EXEC, PTRACE_FORK, PTRACE_VFORK
1598         (child_acknowledge_created_inferior): This function is only
1599           defined if CHILD_ACKNOWLEDGE_CREATED_INFERIOR is defined.
1600         (child_post_startup_inferior): Function is only defined if
1601           CHILD_POST_STARTUP_INFERIOR is defiend. Also, now call
1602           require_notification_of_events.
1603         (child_create_catch_fork_hook): Deleted
1604         (child_create_catch_vfork_hook): Deleted
1605         (child_insert_fork_catchpoint): New function
1606         (child_remove_fork_catchpoint): New function
1607         (child_insert_vfork_catchpoint): New function
1608         (child_remove_vfork_catchpoint): New function
1609         (child_has_forked): Now enclosed by a CHILD_HAS_FORKED ifdef
1610         (child_has_vforked): Now enclosed by CHILD_HAS_VFORKED ifdef
1611         (child_can_follow_vfork_prior_to_exec): New function
1612         (child_insert_exec_catchpoint): New function
1613         (attach): Removed call to require_notification_of_events 
1614         (child_post_attach): New function, call to 
1615           require_notification_of_events moved here.
1616         (child_pid_to_exec_file): New enclosed by CHILD_PID_TO_EXEC_FILE ifdef 
1617           introduced the concept of a saved_inferior_pid
1618         (hppa_require_attach): Add some code to decide if gdb is already 
1619           attached to process. Can not figure this out via a ptrace call.
1620         (hppa_insert_hw_watchpoint): New function
1621         (hppa_remove_hw_watchpoint): New function
1622
1623         * inftarg.c: 
1624         (child_attach_to_process): Change position in file
1625         (child_detach_from_process): Change position in file
1626
1627         * inftarg.c: 
1628         (child_attach_to_process): Changed parameter to child_wait call
1629
1630         * inftarg.c: 
1631         (child_post_wait): New function declaration and definition
1632         (ptrace_him):
1633            - change return value to a void.
1634            - change target_acknowledge_forked_child call to 
1635              target_acknowledge_created_inferior
1636            - call target_post_startup_inferior rather than returning pid.
1637         (child_attach_to_process): Change param name, fail_if_already_attached
1638           -> after_fork.
1639           Invert a couple of if-then-else statments.
1640           Use REQUIRE_ATTACH macro
1641           (child_attach): Change params in child_attach_to_process call
1642           (child_require_attach): Change params in child_attach_to_process call
1643           (child_detach_to_process): Change param name, 
1644             fail_if_already_attached -> after_fork.
1645           Invert a couple of if-then-else statments.
1646           Use REQUIRE_DETACH macro
1647           (child_detach): Change params in child_detach_from_process call
1648           (child_require_detach): Change params in child_detach_from_process
1649              call
1650           (child_post_startup_inferior): New function
1651           (child_acknowledge_created_inferior): New function
1652           (child_clone_and_follow_inferior): New function
1653           (child_post_follow_inferior_by_clone): New function
1654           (child_create_catch_fork_hook): New function
1655           (child_create_catch_vfork_hook): New function
1656           (child_has_forked): New function
1657           (child_has_vforked): New function
1658           (child_post_follow_vfork): New function
1659           (child_stop): No longer a static function
1660           (child_pid_to_exec_file): New function
1661
1662         * inftarg.c: 
1663         (child_wait): Child_pid becomes related pid. return pid
1664         rather than inferior_pid. Changes are in code handling fork
1665         and vfork
1666
1667         * inftarg.c: 
1668         Include gdb_stat.h and sys/unistd.h
1669         (child_wait): New local variables. Check for live threads.
1670         Check for syscall events
1671         (child_thread_alive): No longer a static funct. 
1672         (ptrace_him): Remove some code inserted in snap3
1673         (child_create_inferior): Added a bunch of code to handle a 
1674         bad interaction between start-up-with-shell and the HP
1675         catch-fork/catch-exec logic. I am ifdefing this for 
1676         HPUXHPPA for now.
1677         (child_has_syscall_event): New default target_ops function
1678         (child_enable_exception_callback): New default target_ops function
1679         (child_get_current_exception_event): New default target_ops function
1680         (child_ops): 3 new fields
1681
1682         * inftarg.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs
1683
1684         * inftarg.c: Reverted previous change.
1685         
1686         * infttrace.c (hppa_remove_hw_watchpoint): Fix check for write
1687         access hardware watchpoint.
1688
1689         * infttrace.c (proc_wait): Rename from proc_wait.
1690
1691         * infttrace.c (require_notification_of_exec_events): New function;
1692         just notify of exec events, not all events, and just the specified
1693         pid, don't include it's children.
1694         (child_acknowledge_created_inferior): Call new function
1695         require_notification_of_exec_events instead of
1696         require_notification_of_events.
1697         (child_post_startup_inferior): Call require_notification_of_events
1698
1699         * infttrace.c: Changed all references to boolean to int.
1700         Changed all references to TRUE and FALSE to 1 and 0.
1701
1702         * irix5-nat.c (symbol_add_stub): Add params to call to
1703         symbol_file_add.
1704
1705         * jv-lang.c (get_dynamics_objfile): Add 2 more parameters to call
1706         to allocate_objfile.
1707
1708         * main.c (fputs_unfiltered): Changes to prevent cursor form
1709         jumping around in the TUI. Altered where tuiTermUnsetup and
1710         tuiTermSetup are called
1711
1712         * main.c (fputs_unfiltered): Changed function so that it
1713         checks to see if output is to a string buffer or to a 
1714         FILE stream and does the correct action (i.e. strcat or
1715         fputs). Fixed params for fputs call.
1716
1717         * main.c (fputs_unfiltered): Don't try to call the TUI's
1718         CommandCharCount functions when the TUI isn't enabled.
1719
1720         * main.c (fputs_unfiltered): Change FILE to GDB_FILE.
1721
1722         * main.c (main): If the user gives the --version or --help flags,
1723         disable the TUI.
1724
1725         * main.c (tui_version, xdb_commands, dbx_commands): New variables.
1726         (main): New command line arguments --tui, --xdb, --dbx; add call
1727         to tyiCleanUp via tuiDo to main loop.
1728         (fputs_unfiltered): Tui related changes.
1729
1730         * main.c: Define 2 new global variables, gdb_stdout and gdb_stderr
1731         of type GDB_FILE.
1732         (main): Allocate space for and initialize gdb_stdout and gdb_stdin.
1733
1734         * objfiles.c (find_pc_sect_section): Make end condition be less
1735         than s->endaddr, not less than or equal to s->endaddr.
1736
1737         * objfiles.c: 
1738         (allocate_objfile): 2 new parameters: User_loaded and is_solib.
1739         When appropriate, record in the object file that it is user loaded.
1740         The run command can use this information to purge object file
1741         entries associated with the old inferior and keep user loaded 
1742         object files loaded via the add-symbol-file command.
1743         (objfile_purge_solibs): New function. deletes all objectfile entries
1744         that are not explicitly loaded by the user.
1745         
1746         * objfiles.c: 
1747         (objfile_relocate): Check for LOC_INDIRECT
1748         (find_pc_sect_section): Change condition from 
1749         pc < s->endaddr to pc <= s->endaddr
1750
1751         * objfiles.h: 
1752         New variables: User_loaded and is_solib
1753         (OBJF_SHARED): New macro. used to distinguish objfile for
1754         shared library from "vanilla" objfile.
1755         (allocate_objfile): Add new parameters to function decl.
1756         (objfile_purge_solibs): New function decl.
1757         
1758         * objfiles.h: Add some typedefs: Importentry, ExportEntry.
1759         Add some new variables: Import_list, import_list_size,
1760         export_list, export_list_size
1761         
1762         * osfsolib.c: 
1763         (symbol_add_stub): Added params to call to symbol_file_add
1764
1765         * pa/hpux1020.mh (NATDEPFILES): Add corelow.o, symbol table and
1766         solib files.
1767         
1768         * pa/hpux1100.mh (NAT_FILE): Use nm-hppah11.h.
1769         (NATDEPFILES): Add symbol table and solib files.
1770
1771         * pa/nm-hppah11.h: New file, HPUX11-only definitions.
1772
1773         * pa/tm-hppa.h (proc_wait): Remove decl and macro.
1774
1775         * parse.c (write_dollar_variable): Handle cases in which variables
1776         besides the debugger ones start with $ and $$.
1777         (parse_nested_classes_for_hpacc): New function.  Parse a string that 
1778         is possibly a namespace / nested class specification.
1779         (find_template_name_end): New function. 
1780
1781         * procfs.c: 
1782         (procfs_init_inferior): Return value is now a void.
1783
1784         * procfs.c (procfs_ops): Initializing new target ops vector fields. see list below.
1785         
1786         * procfs.c: 
1787         (procfs_ops): Adding new target_ops vector fields and
1788           removing a few. see list below
1789
1790         * procfs.c: Added new fields to procfs_ops. 
1791         Necessary since we still have oldstyle initialization in
1792         this file
1793
1794         * pyr-tdep.c (pyr_do_registers_info): Change stdout to gdb_stdout.
1795         (frame_locals_address): Change stderr to gdb_stderr.
1796         (frame_args_addr): Ditto.
1797
1798         * pyr-xdep.c (fetch_inferior_registers): Change stderr to
1799         gdb_stderr.
1800
1801         * serial.c (serial_close): Call gdb_fclose, not fclose on a
1802         GDB_FILE.
1803
1804         * serial.c (serial_logchar): Change chtype to ch_type.  sigh.
1805
1806         * solib.c (look_for_base): The parameter to file must be 
1807         of type FILE *. So cast exec_bfd -> iostream in the call
1808         to fileno as a FILE *, not a GDB_FILE *. This will work because
1809         exec_bfd -> iostream is declared and given a value in bdf and 
1810         bfd will continue to use FILE rather than GDB_FILE.
1811
1812         * solib.c: 
1813         (solib_add): Remove references to exec_ops.
1814
1815         * solib.c: 
1816         (solib_add): Update exec_ops.to_sections
1817
1818         * solib.c: 
1819         (symbol_add_stub): Added params to call to symbol_file_add
1820
1821         * solib.h: 
1822         (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to 0.
1823         functionality not implemented for this target.
1824
1825         * solib.h: Added macro definitions. These macros generate
1826           error messages for solaris??
1827           (SOLIB_CREATE_CATCH_LOAD_HOOK)
1828           (SOLIB_CREATE_CATCH_UNLOAD_HOOK)
1829           (SOLIB_HAVE_LOAD_EVENT)
1830           (SOLIB_LOADED_LIBRARY_PATHNAME)
1831           (SOLIB_HAVE_UNLOAD_EVENT)
1832           (SOLIB_UNLOADED_LIBRARY_PATHNAME)
1833           (SOLIB_IN_DYNAMIC_LINKER)
1834           (SOLIB_RESTART)
1835
1836         * somread.c (is_in_import_list): Ditto.
1837
1838         * somread.c (som_symfile_read): Added some comments
1839
1840         * somread.c (som_symfile_read): Read in import and export lists.
1841         (som_symtab_read): Change test for dynamic executable.
1842         (is_in_import_list): New function. Check if a given symbol name
1843         is in the import list.
1844         (init_import_symbols): New function. Read in and initialize the 
1845         som import list.
1846         (init_export_symbols): New function. Read in and initialize the 
1847         som export list.
1848
1849         * somread.c: 
1850         (som_symfile_read): Fix missing comment delimiters
1851
1852         * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro. 
1853         Define bit of __dld_flags in HP-UX a.out files.
1854         (DLD_FLAGS_HOOKVALID): Ditto.
1855         (DLD_FLAGS_LISTVALID): Ditto.
1856         (DLD_FLAGS_BOR_ENABLE): Ditto.
1857         (som_solib_total_st_size): Cumulative size in bytes of the 
1858         symbol tables of all shared objects on the so_list_head list.
1859         (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols
1860         for shlibs.
1861         (som_solib_sizeof_symbol_table): New function. Computes size of 
1862         symbol table for a shlib.
1863         (som_solib_load_symbols): New function. Load symbols from shlib.
1864         (som_solib_add): Detect if __dld_list is not valid. 
1865         Record main program's symbol table size.
1866         Load symbols if called from command line.
1867         Keep threshold into account when loading shlib symbols.
1868         (som_solib_create_inferior_hook): Use dld_flags macros.
1869         (som_sharedlibrary_info_command): Let user know if symbols were 
1870         not loaded.
1871         (som_solib_restart): Discard all the shlibs descriptors.
1872         (_initialize_som_solib): Chenge help message for auto-solib-add
1873         command.
1874         Set threshold for symbol table to 50 megabytes.
1875
1876         * somsolib.c (_initialize_som_solib): Added call to som_solib_restart.
1877         (som_solib_restart): New function
1878         (som_solib_in_dynamic_linker): New function
1879         (som_solib_desire_dynamic_linker_symbols): New function
1880         (som_solib_unloaded_library_pathname): New function
1881         (som_solib_loaded_library_pathname): New function
1882         (som_solib_library_pathname): New function
1883         (som_solib_have_unload_event): New function
1884         (som_solib_have_load_event): New function
1885         (som_solib_create_catch_unload_hook): New function
1886         (som_solib_create_catch_load_hook): New function
1887         (som_solib_create_inferior_hook): Rewritten
1888         dld_cache: New struct
1889         addr_and_unwind_t: New struct
1890         (find_unwind_entry) added prototype
1891
1892         * somsolib.c (som_solib_create_inferior_hook): Introduce new local
1893         msymbol2 and change some msymbol's to msymbol2's -- was clobbering
1894         msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline,
1895         and ultimately core dumping with a SEGV.
1896
1897         * somsolib.c: 
1898         Include assert.h
1899         (som_solib_mapped_entry): Additional comments for text_addr, 
1900         text_link_addr, text_end, and tsd_start_addr fields. Commenting
1901         out 2 tsd fields, __data_start and __data_end. 
1902         (som_solib_add_solib_objfile): Add params to calls to symbol_file_add.
1903         Add some code for distinguishing between a shared library and other 
1904         objfiles. This appears to be a prelude to thread local storage. 
1905         (som_solib_load_symbols): Changes to printf statement 
1906         enclosed by SOLIB_DEBUG ifdef.
1907         (som_solib_add): Change comment to correctly specify path
1908         to end.o -- /opt/langtools/lib/end.o. changes to printf statement
1909         enclosed by SOLIB_DEBUG ifdef.
1910         Removed several SOLIB_DEBUG ifdefs and the associated printfs.
1911         Add code to find the start address for the object file's thread 
1912         local storage
1913         (som_solib_create_inferior_hook): Fix warning messages use correct
1914         path to end.o -- /opt/langtools/lib/end.o. Change control flow. 
1915         No longer user early returns from function is cases of error.
1916         (reset_inferior_pid): New function
1917         (som_solib_remove_inferior_hook): New function
1918         (so_lib_thread_start_addr): New function. used for tsd.
1919
1920         * somsolib.c: Removed references to ASSERT macro.
1921
1922         * somsolib.c: Add debugging macro.
1923         (struct som_solib_mapped_entry): Add new field tsd_start_addr.
1924         (struct so_list): Added new field solib_addr.
1925         (som_solib_add_solib_objfile): New function. 
1926         (som_solib_load_symbols): Rewritten.
1927         (som_solib_add): Make sure we don't load the symbols in if the 
1928         threshold was exceeded.
1929         (som_solib_get_solib_by_pc): New function. Return the address of
1930         handle of the shared library.
1931         (som_solib_restart): Disable breakpoints at restart.
1932         (_initialize_som_solib): Set threshold to 100 megabytes.
1933
1934         * somsolib.c: Add include of fcntl.h so that O_RDONLY is defined.
1935
1936         * somsolib.h (DISABLE_UNSETTABLE_BREAK): New macro.
1937         (PC_SOLIB): New macro.
1938
1939         * somsolib.h: 
1940         (SOLIB_CREATE_CATCH_LOAD_HOOK): Define
1941         (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Define
1942         (SOLIB_HAVE_LOAD_EVENT): Define
1943         (SOLIB_LOADED_LIBRARY_PATHNAME): Define
1944         (SOLIB_HAVE_UNLOAD_EVENT): Define
1945         (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define
1946         (SOLIB_IN_DYNAMIC_LINKER): Define
1947         (SOLIB_RESTART): Define
1948
1949         * somsolib.h: 
1950         (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to use 
1951         som_solib_remove_inferior_hook.
1952
1953         * somsolib.h: 
1954         (som_solib_create_catch_load_hook) 
1955         (som_solib_create_catch_unload_hook)
1956         (som_solib_have_load_event)
1957         (som_solib_loaded_library_pathname)
1958         (som_solib_have_unload_event)
1959         (som_solib_unloaded_library_pathname)
1960         (som_solib_in_dynamic_linker)
1961         Fix prototypes to use type names, not parameter names.
1962
1963         * source.c (find_source_lines): Make non static.
1964         (open_source_file): Ditto.
1965         (source_full_path_of): New function.
1966         (print_source_lines): Rename to print_source_lines_base and make
1967         static; formatting.
1968         (print_source_lines): New function.
1969         (forward_search_command): Tui changes.
1970         (reverse_search_command): Tui changes.
1971         (_initialize_source): Add xdb and dbx compatibility commands.
1972
1973         * source.c (list_command): Handle case of odd number of source 
1974         lines to display.
1975
1976         * source.c: 
1977         (source_full_path_of): New function. file was overlooked
1978         in merge ;-/.
1979         
1980         * stack.c (func_command): Make high bound be <, not <=.
1981
1982         * stack.c (_initialize_stack): For the backtrace command, delete
1983         the help line about usage, since this has to be a valid help
1984         message for the 'where' command too.
1985         
1986         * stack.c (current_frame_command): Add a check for the 
1987         existance of a stack. If there is no stack produce an
1988         error message and exit.
1989         
1990         * stack.c (down_silently_base, up_silently_base,
1991         args_plus_locals_info, print_frame_info_base,
1992         print_stack_frame_base, print_stack_frame_base_stub): Declare.
1993         (print_frame_local_vars): Add'l parameter.
1994         (print_stack_frame_stub): New version created, old version renamed
1995         to show_and_print_stack_frame_base_stub.
1996         (print_stack_frame_base_stub, print_only_stack_frame_stub,
1997         show_and_print_stack_frame, print_only_stack_frame,
1998         stack_publish_stopped_with_no_frame, print_frame_info,
1999         show_stack_frame, backtrace_full_command, args_plus_locals_info,
2000         select_and_print_frame, select_and_maybe_print_frame,
2001         current_frame_command, func_command): New functions.
2002         (backtrace_command): New function, old renamed to
2003         backtrace_command_1.
2004         (print_block_frame_locals, print_frame_local_vars): Additional
2005         parameter, number of tabs.
2006         (up_silently_command): New function, old renamed to
2007         up_silently_command_base.
2008         (down_silently_command): New function, old renamed to
2009         down_silently_base.
2010         (_initialize_stack): Register new commands based on values of
2011         xdb_commands and dbx_commands variables.
2012         
2013         * stack.c (func_command): Make high bound be <, not <=.
2014         
2015         * stack.c (parse_frame_specification): Fix prototype to match
2016         function definition.
2017         (show_and_print_stack_frame_stub): Fix name.
2018         (select_and_print_frame): Change uncaught tuiDO call.
2019         
2020         * stack.c (up_silent_base): Rename from up_silently_command_base.
2021         
2022         * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's
2023         defined.
2024
2025         * symfile.c (add_psymbol_with_dem_name_to_list): New function.
2026         Adds a symbol with a long value to a psymtab. Differs from 
2027         add_psymbol_to_list in taking both a mangled and a demangled name.
2028         
2029         * symfile.c (compare_psymbols): Call strcmp directly, instead of
2030         using macro.
2031         
2032         * symfile.c (symbol_file_add): Reindent portions.
2033         (symbol_file_command): Add call to tuiDo.
2034         
2035         * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's
2036         defined.
2037
2038         * symfile.c (symfile_bfd_open): Add code to call PXDB on hpux, if
2039         the file has not already been processed by pxdb.
2040         Added define USE_PXDB.
2041         
2042         * symfile.c (symfile_bfd_open): Change parenthesis positioning
2043         around call to hpread_pxdb_check.
2044         
2045         * symfile.c (symfile_bfd_open): Make not static. 
2046         (RESET_HP_UX_GLOBALS): New macro. Resets globals when new symbol
2047         file loaded.
2048         (USE_PXDB): Not needed. Removed.
2049         (symbol_file_add): Add HP specific code to deal with pxdb.
2050         (symbol_file_command): Reset HP specific globals if new symbol file
2051         loaded.
2052         (symfile_bfd_open): Comment out checking for pxdb.
2053         (reread_symbols): Reset HP specific globals.
2054         
2055         * symfile.c (symfile_bfd_open): Uncomment hpus specific code.
2056         
2057         * symfile.c: 
2058         (symbol_file_add): Add user_loaded and is_solib parameters.
2059         fixed number of parameters in call to allocate_objfile
2060         (symbol_file_command): Added call to SOLIB_RESTART macro.
2061         fixed number of parameters in calls to symbol_file_add.
2062         (add_symbol_file_command): Fixed number of parameters in calls to 
2063         symbol_file_add.
2064         
2065         * symfile.c: Added prototype for hpread_pxdb_check.
2066         
2067         * symfile.c: Changed HPUX_SNAP1 ifdef to HPUXHPPA. enclosed calls to 
2068           RESET_HP_UX_GLOBALS with an HPUXHPPA ifdef
2069         
2070         * symfile.h (symfile_bfd_open): Add protptype.
2071         
2072         * symfile.h: Add prototype for add_psymbol_with_dem_name_to_list.
2073         
2074         * symfile.h: Clarify purpose of auto_solib_add.
2075         
2076         * symmisc.c (maintenance_print_symbols): Call gdb_fclose, not
2077         fclose on a GDB_FILE* during cleanup.
2078         (maintenance_print_psymbols): Call gdb_fclose, not fclose on a
2079         GDB_FILE* during cleanup.
2080         (maintenance_print_msymbols): Call gdb_fclose, not fclose on a
2081         GDB_FILE* during cleanup.
2082         
2083         * symmisc.c (maintenance_print_symbols): Gdb_fclose now takes a
2084         GDB_FILE ** parameter. Fix the local GDB_FILE variables and the 
2085         call to make_cleanup.
2086         (maintenance_print_psymbols): Ditto
2087         (maintenance_print_msymbols): Ditto
2088         
2089         * symmisc.c (print_objfile_statistics): Close quotes in 
2090         output strings.
2091
2092         * symmisc.c: 
2093         (Print_symbol): Add LOC_INDIRECT to switch statement
2094         (print_partial_symbols): Add LOC_INDIRECT to switch statement
2095
2096         * symtab.c (find_pc_sect_psymtab): High bounds should be <, not <=.
2097         (find_pc_sect_symtab): Ditto.
2098
2099         * symtab.c (hp_som_som_object_present): New flag to indicate HP 
2100         compiled code.
2101         (find_pc_sect_psymtab): Change tests to make sure we are checking
2102         the texthigh adress as well.
2103         (lookup_transparent_type): New function.  Look up a type name
2104         in the struct_namespace.  The type returned must not be opaque.
2105         (find_pc_sect_symtab): Make sure we check the address 'pc' itself,
2106         too.
2107         (find_addr_symbol): Prepare to handle LOC_INDIRECT address class, but
2108         leave it commented out.
2109         (find_pc_sect_line): Return correct information if pc is in import
2110         or export stub (trampoline).
2111         (decode_line_1): Skip two chars, if they are '$$'. Like for HP's
2112         $$dyncall. Handle cases in which varaible and function names can start 
2113         with $.
2114         (overload_list_add_symbol): If cannot demangle name, use it as is.
2115         Free string after use.
2116         (make_symbol_overload_list): Initialize oload_name to NULL and 
2117         oload_name_len to 0. If demangle not successful, use name as it is.
2118         Free string after use.
2119
2120         * symtab.c (lookup_symbol): Changed call to find_pc_sect_symtab,
2121         to the original find_pc_symtab, in HP added fragment.
2122
2123         * symtab.c (lookup_symbol): Change HPUX_SNAP1 ifdef to a HPUXHPPA ifdef
2124
2125         * symtab.c (lookup_symbol): Ifdef the searching of symbol in the 
2126         minimal symbol tables, for hpux we move this check at the end 
2127         of the function.
2128         Before we error out if symbol is not found in the symtab, look 
2129         in the statics. 
2130         Before erroring out if static symbol not found look in the globals.
2131
2132         * symtab.c (lookup_symbol): Return symbol as soon as found.
2133         (decode_line_1): Check whether we have a conditional break. Temporarily
2134         remove it from the line, to not confure perenthesis checking.
2135         Handle namespaces.
2136         (overload_list_add_symbol): New function. Overload
2137         resolution support.
2138         (make_symbol_overload_list): Ditto.
2139         
2140         * symtab.c: 
2141         (find_template_name_end): New prototype decl.
2142         (lookup_symbol):  When a global or static symbol shows up in the 
2143         psymtab table, but not the symtab table, tell the user that
2144         the symbol may be an inlined function or a template function and
2145         provide some guidance to the user about how to more fully 
2146         specify the symbol.
2147         (lookup_transparent_type):  When a global or static symbol shows up 
2148         in the psymtab table, but not the symtab table, tell the user that
2149         the symbol may be an inlined function or a template function and
2150         provide some guidance to the user about how to more fully 
2151         specify the symbol. 
2152         (decode_line_1): Handle template function specification when decoding a
2153         line. May need to be ifdefed for HP's aCC?
2154         (_initialize_symtab): Handle dbx commands.
2155
2156         * symtab.h (address_class): Add new address calss for 
2157         LOC_THREAD_LOCAL_STATIC and LOC_INDIRECT.
2158         (lookup_transparent_type): Add prototype.
2159         (exception_event_kind): New enum for exception catchpoints.
2160         (exception_event_record): New structure for exception catchpoints.
2161         (CURRENT_EXCEPTION_KIND): New macro.
2162         (CURRENT_EXCEPTION_CATCH_SAL): New macro. 
2163         (CURRENT_EXCEPTION_CATCH_LINE): New macro. 
2164         (CURRENT_EXCEPTION_CATCH_FILE): New macro. 
2165         (CURRENT_EXCEPTION_CATCH_PC): New macro. 
2166         (CURRENT_EXCEPTION_THROW_SAL): New macro. 
2167         (CURRENT_EXCEPTION_THROW_LINE): New macro. 
2168         (CURRENT_EXCEPTION_THROW_FILE) new macro.: 
2169         (Current_EXCEPTION_THROW_PC): New macro. 
2170
2171         * symtab.h(make_symbol_overload_list): Add prototype.
2172
2173         * symtab.h: 
2174         (symbol_file_add): Add new params to function decl.
2175
2176         * target.c (cleanup_target): Changed casting of default functions for
2177         to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid of
2178         warnings.
2179
2180         * target.c (cleanup_target): Changed the default functions for
2181           to_pid_to_exec_file and to_core_file_to_sym_file
2182
2183         * target.c (cleanup_target): Fixed PARAMS for to_has_syscall_event
2184
2185         * target.c (cleanup_target): Syntax error, mismatched paranthesis.
2186
2187         * target.c: 
2188           (Default_clone_and_follow_inferior): New funct prototype declaration
2189             and function definition
2190           (dummy_target): More target_ops vector changes for HPUX
2191              new fields. ifdefed for HPUX_SNAP2. New fields are
2192              to_post_wait, to_post_startup_inferior
2193              to_acknowledge_created_inferior, to_clone_and_follow_inferior,
2194              to_post_follow_inferior_by_clone,  to_create_catch_fork_hook,
2195              to_create_catch_vfork_hook, to_has_forked, to_has_vforked,
2196              to_post_follow_vfork, to_pid_to_exec_file
2197           (de_fault): Add new HPUX specific target_ops operations to
2198              the de_fault macro
2199           (INHERIT): Add new HPUX specific target_ops operations to the
2200              INHERIT macro
2201           (find_default_clone_and_follow_inferior): New funct definition
2202           (debug_to_post_wait): New funct
2203           (debug_to_post_startup_inferior): New funct
2204           (debug_to_acknowledge_created_inferior): New funct
2205           (debug_to_clone_and_follow_inferior): New funct
2206           (debug_to_post_follow_inferior_by_clone): New funct
2207           (debug_to_create_catch_fork_hook): New funct
2208           (debug_to_create_catch_vfork_hook): New funct
2209           (debug_to_has_forked): New funct
2210           (debug_to_has_vforked): New funct
2211           (debug_to_post_follow_vfork): New funct
2212           (setup_target_debug): Initialize new target_ops vector fields.
2213
2214         * target.c: 
2215         (Cleanup_target): Fixed the return type on a few of the 
2216           default function values.
2217
2218         * target.c: 
2219         (Dummy_target): Add 3 new fields
2220         (nosupport_runtime): New function, used in cleanup_target
2221         (cleanup_target): Changes in the de_fault macro, both to
2222         accomodate the new target_ops vector fields and to use
2223         more accurate default functions.
2224         (update_current_target): Add new target_ops vector fields to the 
2225         INHERIT macro
2226         (generic_mourn_inferior): The call to breakpoint_init_inferior now takes a 
2227         parameter
2228         (normal_pid_to_str): Adding a \0 to the end of buf.
2229         (debug_to_has_syscall_event): New func
2230         (debug_to_enable_exception_callback): New func
2231         (debug_to_get_current_exception_event): New func
2232         (setup_target_debug): Initialize the 3 new target_ops vector fields
2233
2234         * target.c: 
2235         (Struct signals): Fix message associated with SIGRETRACT.
2236
2237         * target.c: 
2238           (Dummy_target): Fix syntax error
2239           (cleanup_target): Changed the default values for the new 
2240              target_ops vector fields. HP folks inappropriately set
2241              most of them to noprocess(). They should be a mixture
2242              of ignore() and return_zero().
2243
2244         * target.c: 
2245         (Dummy_target): Add new target_ops vector fields and their initializations
2246         (cleanup_target): Added new new target_ops vector fields to the de_fault 
2247           macro definition.
2248         (update_current_target): Added new new target_ops vector fields to the INHERIT 
2249           macro definition
2250         (return_one): New function, used by the de_fault macro
2251         (debug_to_post_attach): New function
2252         (debug_to_wait): Added new cases: Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
2253           TARGET_WAITKIND_EXECD
2254         (debug_to_insert_fork_catchpoint): New function
2255         (debug_to_remove_fork_catchpoint): New function
2256         (debug_to_insert_vfork_catchpoint): New function 
2257         (debug_to_remove_vfork_catchpoint): New function
2258         (debug_to_can_follow_vfork_prior_to_exec): New function
2259         (debug_to_insert_exec_catchpoint): New function 
2260         (debug_to_remove_exec_catchpoint): New function
2261         (debug_to_core_file_to_sym_file): New function
2262         (setup_target_debug): Give new fields in current_target target_ops vector values.
2263
2264         * target.c: Hp merge, 4/15/98 snapshot
2265           There are new target_ops fields that pertain only
2266           to HPUX. All the changes relate to this. First,
2267           new fields are added to the dummy_target target_ops
2268           vector: To_require_attach, to_require_detach.
2269
2270         * target.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs
2271
2272         * thread.c (info_threads_command): Call print_only_stack_frame
2273         instead of print_stack_frame.
2274         (_initialize_thread): Make t an alias for thread only if
2275         xdb_commands is not set.
2276
2277         * thread.c (thread_command): If no arguments, don't generate an
2278         error, instead tell the user which thread is current.
2279         (info_threads_commands): Don't lose the users position within the
2280         current thread -- remember it and then restore it.
2281
2282         * thread.c: 
2283         (struct thread_info): Add stepping_through_sigtramp field
2284         (add_thread): Initialize stepping_through_sigtramp field
2285         (load_infrun_state): Add stepping_through_sigtramp param and
2286         make sure it gets assigned a value.
2287         (save_infrun_state): Add stepping_through_sigtramp param and
2288         make sure that the value gets saved.
2289         (info_threads_command): Ifdefing some local variables and 
2290         code for HPUXHPPA. HP folks want print the tid rather than pid?
2291         Also, looks like the HP folks solved the same thread switching
2292         problem that 4.17 solves. Taking 4.17.
2293         (restore_current_thread): Print out the current frame after 
2294         switching threads.
2295         (thread_apply_all_command): Ifdefing a print statement for
2296         HPUXHPPA. The HP folks want to print out a tid rather than pid?
2297         (thread_apply_command): Ifdefing a print statement for
2298         HPUXHPPA. The HP folks want to print out a tid rather than pid?
2299         (thread_command): Decided not to take HP change.
2300
2301         * thread.c: Fixing gdb core dump problem causing many testsuite
2302             failures.
2303             (add_thread): Remove call to bpstat_clear, initialize
2304               tp->stepping_through_solib_catchpoints = NULL;
2305
2306         * thread.c: Changes for catchpoints, shared libaries, 
2307           (thread_info): Additional fields in the thread_info struct
2308              for stepping_through_solib_after_catch and 
2309              stepping_through_solib_catchpoints.
2310           (add_thread): Initialize the new thread_info fields.
2311           (load_infrun_state): Additional parameters for handling
2312              catchpoints and shared libraries.
2313           (save_infrun_state): Additional parameters for handling
2314              catchpoints and shared libraries.
2315
2316         * top.c (command_loop): Initialize space_at_cmd_start to 0.
2317         (set_prompt): New function.
2318         (togglelist, stoplist): New command lists.
2319         (command_loop): Tui changes -- paranoia to make sure
2320         insert mode is off when not editing.
2321         (quit_force): Clean up tui on exit.
2322         (init_main): Make definition of info status command dependent upon
2323         dbx mode not being set.
2324         (fputs_unfiltered_hook): Changed stream parameter from FILE 
2325         to GDB_FILE
2326         (flush_hook): Changed stream parameter from FILE to GDB_FILE
2327
2328         * top.h (set_prompt): Declare.
2329         
2330         * typeprint.c (whatis_exp): Decide real runtime type. For the vtable
2331         case.
2332
2333         * utils.c (query): Changes to prevent cursor from jumping around in the
2334         TUI. Call tuiBufferGetc explicitly, rather than passing it 
2335         into tuiDo. The tuiDo function does some additional work
2336         that is inappropriate when handling queries. 
2337         (GDB_FILE_ISATTY): New macro that takes a GDB_FILE param and 
2338         determines whether or not it's using a tty.
2339         (gdb_file_isatty); called by the GDB_FILE_ISATTY macro. Does
2340         the actual work
2341         (init_page_info): Call GDB_FILE_ISATTY rather than ISATTY
2342         (print_spaces): Fix parameter to fputc. fix call to 
2343         gdb_file_adjust_strbuf.
2344         (gdb_file_init_astring): Fix parameter to xmalloc
2345         (gdb_file_deallocate): New function to deallocate
2346         a GDB_FILE object and possibly a string buffer
2347         (gdb_file_init_astring): Initialize buffer as the empty
2348         string.  Indent GNU style.
2349         (gdb_fopen): Gdb_fopen is called if the GDB_FILE object is
2350         actually afile rather than astring. The routine now allocates space
2351         for a GDB_FILE object and initializes its fields in addition to 
2352         performing an fopen.
2353         (gdb_flush): Fix the parameter passed into fflush. It's now
2354         stream->ts_filestream.
2355         (gdb_fclose): Pass in an object of type GDB_FILE **. Fix parameter
2356         to fclose. It's now tmpstream->ts_filestream. Make sure to free
2357         the GDB_FILE object and set the GDB_FILE * object to NULL.
2358         (gdb_adjust_strbuf): New function. Determine if the current
2359         ts_strbuf field contains sufficient space to concatenate a string
2360         of length n on the end.  If not, then reallocate the ts_strbuf.
2361         (print_spaces): Check to see if the GDB_FILE is afile or
2362         astring. If it is astring, then adjust the size of the ts_strbuf
2363         field and concatenate the correct number of spaces onto the end of
2364         the buffer. Otherwise continue to use fputc.
2365         (gdb_file_get_strbuf): New function. return a ptr to the ts_strbuf
2366         field in a GDB_FILE object.
2367         (gdb_file_init_astring): New function to allocate space for and
2368         initialize a GDB_FILE object when it is an astring.
2369         (set_width): Declare it.
2370         (pagination_enabled): Define it.
2371         (query): Tui changes.
2372         (init_page_info, set_width): New functions.
2373         (set_width_command): Call set_width.
2374         (_initialize_utils): Replace termcap stuff with call to
2375         init_page_info; if xdb_commands set, define am and sm commands;
2376         define pagination as a set/show command.
2377         (vfprintf_maybe_filtered): Change FILE to GDB_FILE.
2378         (fputs_maybe_filtered): Ditto.
2379         (print_spaces): Ditto.
2380         (gdb_printchar): Ditto.
2381         (gdb_flush): Ditto.
2382         (fputs_filtered): Ditto.
2383         (vfprintf_filtered): Ditto.
2384         (vfprintf_unfiltered): Ditto.
2385         (fprintf_filtered): Ditto.
2386         (fprintf_unfiltered): Ditto.
2387         (fprintfi_filtered): Ditto.
2388         (print_spaces_filtered): Ditto.
2389         (fprintf_symbol_filtered): Ditto.
2390         (gdb_fclose): New function.
2391
2392         * valops.c (call_function_by_hand): Assign to param_type only
2393         if function has parameters.
2394
2395         * valops.c (call_function_by_hand): Ifdef the
2396         HP_COMPILED_TARGET stuff.
2397         (value_arg_coerce): Ditto.
2398
2399         * valops.c (call_function_by_hand): Make sure param_type is 
2400         initialized to NULL.
2401
2402         * valops.c (find_rt_vbase_offset): Add parameter to value_at.
2403         (value_rtti_type): Ditto.
2404         (value_full_object): Ditto.
2405
2406         * valops.c (search_struct_field_aux): Fixed mismatching parenths
2407
2408         * valops.c (search_struct_field_aux): Make sure TYPE_TAG_NAME
2409         is not null before copying it. 
2410         
2411
2412         * valops.c (search_struct_field_aux): Set found_class_name to null
2413         if class has no name (anon unions case). Adjust base_addr 
2414         computation.
2415
2416         * valops.c (value_arg_coerce): Change final arg to int.
2417
2418         * valops.c (value_arg_coerce): Remove the conditional on HP
2419         compiled target, for doing coercion of float to double. Removed
2420         third parameter, using_gcc.
2421         (call_function_by_hand): Do not use HP_COMPILED_TARGET, just
2422         use the gcc_compiled variable.
2423
2424         * valops.c (value_cast): Take case of the enclosing_type and 
2425         pointer_to_offset fields.
2426         (value_at): Use VALUE_CONTENTS_ALL_RAW
2427         (value_fetch_lazy): Ditto
2428         (value_assign): Handle enclosing_type, embedded_offset and 
2429         pointed_to_offset fields.
2430         (value_repeat): Use VALUE_CONTENTS_ALL_RAW and VALUE_ENCLOSING_TYPE.
2431         (value_ind): Set enclosing_type and embedded_offset correctly,
2432         for a pointer value being dereferenced. Target memory bytes 
2433         corresponding to the size of the enclosing type are retreived.
2434         (value_addr): Handle enclosing_type and pointed_to_offset.
2435         (value_push): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE.
2436         (value_arg_coerce): Coerce floats to doubles only if gcc was not
2437         used to compile the target.
2438         (call_function_by_hand): Handle pointers to functions as paramters.
2439         (value_array): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE.
2440         (search_struct_method): Produce more informative error message.
2441         (find_rt_vbase_offset): Deal with negative offsets.
2442         (value_find_oload_method_list): New function. Return the list of 
2443         overloaded methods of a specified name.
2444         (find_method_list): New function. Search through the methods of an 
2445         object (and its bases) to find a specified method.
2446         (value_full_object): New function. Given a value, check its real 
2447         run-time type.
2448         (value_rtti_target_type): New function. Given a pointer value V, find 
2449         the real (RTTI) type of the object it points to.
2450         (value_rtti_type): New function. Find the real run-time type of a 
2451         value using RTTI.
2452
2453         * valops.c: Include gdbcmd.h
2454         Set global overload_resolution to 0.
2455         (find_function_in_inferior): Modify error message.
2456         (value_allocate_space_in_inferior): Modify error message.
2457         (value_cast): Deal with HP/aCC peculiarities.
2458         (value_of_variable): Use SYMBOL_SOURCE_NAME instead of SYMBOL_NAME.
2459         (value_addr): Modify address value by adding the embedded offset.
2460         (value_ind): Modify the address of the object by the pointed_to_offset.
2461         (call_function_by_hand): Do not do any extra alignment if not needed.
2462         Fetch the return value from the stack rather then from the register, 
2463         for the hppa architecture.
2464         (search_struct_field): Rewritten. Now this function uses 
2465         search_struct_field_aux to do all the work.
2466         (search_struct_field_aux): New function. This is the old 
2467         search_struct_field rewritten.
2468         (find_rt_vbase_offset): Give error if virtual table pointer is not good.
2469         (find_overload_match): New function. Find the best function that
2470         matches on the argument types according to the overload resolution
2471         rules.
2472         (_initialize_valops): Add new set/show command for overload-resolution.
2473         
2474         * value.h (VALUE_POINTED_TO_OFFSET): New macro.
2475         Add field pointed_to_offset to value structure.
2476         Add prototypes for new functions in valops.c.
2477
2478         * value.h (write_register_pid): Change prototype to match
2479         function.
2480
2481         * value.h: Hp merge, 4/15/98 snapshot
2482           Added parameter to val_print func decl.
2483           Added new macro, VALUE_EMBEDDED_OFFSET, and
2484           new func decl, find_rt_vbase_offset, for C++
2485           support.
2486         
2487         * values.c (allocate_value): Allocate also for value_embedded_offset 
2488         and value_enclosing_type.
2489         (value_copy): Copy value_embedded_offset and value_enclosing_type too.
2490         Use all_raw in copying the value itself.
2491         (value_primitive_field): Add handling of base subobjects.
2492
2493         * values.c (value_copy): Copy the pointed_to_offset as well.
2494         (allocate_value): Allocate the pointed_to_offset as well.
2495         (value_virtual_fn_field): Rewrite.
2496
2497         * values.c (value_primitive_field): Adjust embedded offset and
2498         offset calculation.
2499
2500         * values.c (value_static_field): Take into consideration that static 
2501         data members can be minimal symbols too.
2502
2503         * values.c (value_virtual_fn_field): Fix call to value_at.
2504
2505         * win32-nat.c (handle_load_dll): Added params to call to symbol_file_add.
2506
2507         Other changes have to do with XDB compatability. Leave oout
2508         for now.
2509
2510         defs.h (vfprintf_filtered): Change FILE to GDB_FILE in decl.
2511         (fprintf_filtered): Ditto.
2512         (fprintfi_filtered): Ditto.
2513         (vfprintf_unfiltered): Ditto.
2514         (fprintf_unfiltered): Ditto.
2515
2516         infcmd.c (_initialize_infcmd): If xdb_commands is set, make S an
2517         alias for next and define R, lr, g.  Define go.
2518          
2519         pyr-tdep.c (pyr_print_insn): Change FILE to GDB_FILE.
2520
2521
2522         * breakpoint.c (create_temp_exception_breakpoint): #If it out --
2523         nothing calls it.
2524         (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not
2525         defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined.
2526         (bpstat_get_triggered_catchpoints): If we don't have shared
2527         library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor
2528         SOLIB_UNLOADED_LIBRARY_PATHNAME.
2529         (watch_command_1): Don't require a run before a watch command
2530         unless we're on HP [it's an HP OS bug, not a generic limitation]
2531         (catch_load_command_1): Don't define if no shared libraries.
2532         (catch_command_1): Don't claim to support fork catchpoints unless
2533         CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support
2534         vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined,
2535         don't clain to support shared library load catchpoints if shared
2536         libraries aren't supported, and don't claim to support exec
2537         catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined
2538
2539           There are new target_ops vector fields that pertain
2540           only to HPUX. Added the to_require_attach and 
2541           to_require_detach fields to exec_ops. These new
2542           fields are ifdef'ed for HPUX_SNAP1.
2543
2544         * breakpoint.h:
2545             Fix compile error in enum bptype.
2546
2547         * coff-solib.h:
2548             Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME,
2549             SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT, 
2550             SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These
2551             macros are only meaningful (for now) for SOM. So, all 
2552             the macros were defined as error(...), but were used in
2553             conditions. This caused the compile to crap out. I redefined 
2554             these (for now) to be 0. 
2555
2556         * procfs.c:
2557             (procfs_create_inferior): Fix call to fork_inferior -- need another
2558                parameter. 
2559         
2560         * solib.h:
2561             Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME,
2562             SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT, 
2563             SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These
2564             macros are only meaningful (for now) for SOM. So, all 
2565             the macros were defined as error(...), but were used in
2566             conditions. This caused the compile to crap out. I redefined 
2567             these (for now) to be 0. 
2568
2569         * valops.c:
2570             (search_struct_field): Undeclared local variable, "assigned".
2571             (find_rt_vbase_offset): Fixed call to value_at
2572
2573         * value.h: Fix signature for find_rt_vbase_offset funct decl
2574         (missing a param)
2575
2576 Wed Dec 30 17:48:12 1998  Stan Shebs  <shebs@andros.cygnus.com>
2577
2578         From J.T. Conklin  <jtc@redbacknetworks.com>:
2579         * i386-stub.c: Fix error string in last change.
2580
2581 1998-12-30  Jason Molenda  (jsm@bugshack.cygnus.com)
2582
2583         * utils.c: <Readline/readline.h> instead of "readline/readline.h".
2584
2585         * configure.in (TERM_LIB): Search for the appropriate term library
2586         on the host system.
2587         * configure: Regenerated.
2588         * Makefile.in (TERMCAP): Set based on autoconf check.
2589         * config/*/*.mh: Don't override TERMCAP setting.
2590
2591 Wed Dec 30 17:23:14 1998  Mark Alexander  <marka@cygnus.com>
2592
2593         * value.c (value_virtual_fn_field): Handle the situation where
2594         vtbl is a pointer to a structure instead of a pointer to an array.
2595
2596 Mon Dec 28 17:43:36 1998  David Taylor  <taylor@texas.cygnus.com>
2597
2598         The following changes were made by Jim Blandy <jimb@cygnus.com>,
2599         Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
2600         <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
2601         Taylor <taylor@cygnus.com>, as part of the project to merge in
2602         changes originally made by HP; HP did not create ChangeLog
2603         entries.
2604
2605         * c-lang.h (cp_print_value_fields): Update prototype; fixed
2606         prototype decl for c_val_print function -- it needed an
2607         embedded_offset param; fixed prototype of cp_print_value_fields.
2608         Include value.h.
2609         (C_LANG_H): Define.
2610
2611         * c-valprint.c (c_val_print): Add new parameter embedded_offset.
2612         Add embedded_offset to valaddr in function calls.  fix calls to
2613         val_print, and cp_print_value_fields.  Attempt to determine the
2614         real type of the object to be printed.  fixed call to
2615         cp_print_value_fields.  process TYPE_CODE_METHOD as well.  moved
2616         call to check_typedef out of conditional.  add embedded offset
2617         param to val_print call.
2618
2619         (c_value_print): Add new parameter to call to val_print.  Handle
2620         pointer to class case.  Ensure that const char *, const unsigned
2621         char * come out without the type but the volatile variants and the
2622         signed variants don't.
2623         
2624         * ch-lang.h (chill_val_print): Add parameter to decl.
2625
2626         * ch-valprint.c: The various print routines have an additional
2627         parameter. Currently, the new parameter is only used when printing
2628         C++ expressions. So, in ch-valprint.c, the new parameter is always
2629         0.  Changes in calls to val_print, chill_val_print, c_val_print
2630         Affected functions are chill_val_print_array_elements,
2631         chill_val_print, chill_print_value_fields, chill_value_print.
2632
2633         * cp-valprint.c add vtable pointers names for aCC (HP) compiler.
2634         (cp_print_class_method): Print message for HP/aCC case.
2635         (cp_print_class_member): Add comments.
2636         (cp_print_value): Adjust address computations for virtual base
2637         classes.  add new parameter 'offset'.  Find correct offset for
2638         base class in HP/aCC case.  Change call to cp_print_value_fields
2639         to have extra par.
2640         (cp_print_value_fields): Do not print also if the only field is
2641         the vtable pointer.  Print out vtable ptr, for HP/aCC compiled
2642         case.  do not print leading '=' in case of anonymous union, or
2643         struct.  add new parameter 'offset'.  Do not print the vtable
2644         pointer as a member, in the HP aCC case.  Changed calls to
2645         val_print to have extra parameter.
2646         (cp_print_hpacc_virtual_table_entries): New function. Print vtable
2647         entries, in HP/aCC compiled case.
2648         (cp_print_static_field): Change call to cp_print_value_fields, and
2649         val_print.
2650
2651         * d30v-tdep.c (d30v_print_register): Add embedded_offset param
2652         to val_print call.
2653
2654         * defs.h: Additional include files included when TUI is defined.
2655         (gdb_file_isatty): New function decl.
2656         (GDB_FILE): If TUI is defined, define a structure rather
2657         than making this an alias for FILE.
2658         (gdb_stdout, gdb_stderr): If TUI is defined, then define these
2659         as pointers to variables of type GDB_FILE rather than making them
2660         be aliases for stdout and stderr.
2661         (TUIDO): Add definition conditionalized on definition
2662         (or lack thereof) of TUI.
2663         (command_class): Add two additional values.
2664         (precision_type): New enum.
2665         (gdb_fclose): Add decl.
2666         (store_address): Change prototype to match function.
2667         (tui_version, xdb_commands, dbx_commands): Add decls.
2668         (gdb_file_deallocate): New function decl
2669         (pa_do_strcat_registers_info): New function decl.
2670         (streamtype): New enumerated type to distinguish between output to
2671         a FILE and output to a buffer.
2672         (tui_stream): New struct type, named GDB_FILE.
2673         (gdb_stdout): Of type GDB_FILE, will pass this around gdb rather
2674         than stdout.
2675         (gdb_stderr): Of type GDB_FILE, will pass this around gdb rather
2676         than stderr.
2677         (fputs_unfiltered_hook): Change stream parameter from FILE to
2678         GDB_FILE.
2679         (flush_hook): Change stream parameter from FILE to GDB_FILE.
2680         (gdb_fclose): Fix decl for gdb_fclose; parameter is now of
2681         type GDB_FILE **.
2682         (gdb_file_adjust_strbuf): New function decl. function lives
2683         in utils.c.
2684         (gdb_file_init_astring): New function decl. function lives
2685         in utils.c.
2686         (gdb_file_get_strbuf): New function decl. function lives in
2687         utils.c.
2688         (source_full_path_of): Declare.
2689
2690         * exec.c (_initialize_exec): Make definition of file command be
2691         dependent upon dbx_commands not being set.
2692         (exec_file_attach): New function.
2693         (exec_file_command): Call it.
2694         (exec_ops): Add new target vector fields.
2695
2696         * f-lang.h (f_print_type): Change FILE to GDB_FILE in decl.
2697         (f_val_print): Ditto.
2698         (f_val_print): Add parameter to the function decl.
2699
2700         * f-valprint.c (_initialize_f_valprint): If xdb_commands is set,
2701         define lc command.
2702         (f77_create_arrayprint_offset_tbl): Change FILE to GDB_FILE.
2703         (f77_print_array): Ditto.
2704         (f77_print_array_1): Ditto.
2705         (f_val_print): Ditto.
2706         (f_val_print): Add a parameter; this new parameter is currently
2707         only non-zero when handling C++ expressions.  In this file its
2708         value is always 0.  changed fflush to gdb_flush.
2709
2710         * gnu-nat.c: (init_gnu_ops): Add new target vector fields.
2711         (gnu_create_inferior): Add param to fork_inferior call.
2712
2713         * hppa-tdep.c (after_prologue): If f is NULL, don't dereference
2714         it.  if no debug info, return zero telling caller that we need to
2715         find the end of the prologue via the hard way (instruction
2716         examination).
2717         (find_unwind_entry): Avoid dereferencing a null
2718         pointer.
2719         (hppa_pid_to_exec_file): Deleted -- no longer used.
2720         (hppa_prepare_to_proceeed): Add prototype.
2721         (read_unwind_info): Purecov comments, bug fixes.
2722         (find_unwind_entry): Purecov comments, bug fixes.
2723         (find_stub_with_shl_get): Purecov comments.
2724         (frame_chain): Additional parens.
2725         (hppa_push_arguments): Changes to commented out version of routine.
2726         (hppa_fix_call_dummy): Purecov comments, fix location of end.o.
2727         (in_solib_call_trampoline): Purecov comments.
2728         (in_solib_return_trampoline): Purecov comments.
2729         (setup_d_pid_in_inferior): Fix location of end.o.
2730         (initialize_hp_cxx_exception_support): Fix location of end.o.
2731         (child_enable_exception_callback): Purecov comments.
2732         (pa_do_strcat_registers_info): Has a new parameter, precision, 
2733         which is passed into the call to pa_strcat_fp_reg to indicate
2734         whether to display the floating point registers using 
2735         single or double preceision.
2736         (pa_strcat_registers): Introduce local variable, precision, and 
2737         pass it into call to pa_strcat_fp_reg.
2738         (pa_strcat_fp_reg): Modified function. New parameter, precision,
2739         used by function to decide whether to use single or double
2740         precision. Also add the code to put a double precision value
2741         into a buffer.
2742         (pa_do_strcat_registers_info): New routine. called by 
2743         tui/tuiRegs.c:_tuiRegisterFormat to place a register name 
2744         and value into a string buffer. Interface may change in
2745         future. Checking this in so that we have something 
2746         functional for HP.
2747         (pa_strcat_registers): New routine, called by 
2748         pa_do_strcat_registers_info. Does same thing as 
2749         pa_print_registers except it takes a stream parameter. 
2750         This routine should disappear in future. Checking in
2751         so that we have something functional to give HP
2752         (pa_strcat_fp_reg): New routine, called by 
2753         pa_do_strcat_registers_info and pa_strvat_registers
2754         to place a floating point register name and value into
2755         a buffer. This interface may change in future. 
2756         Checking in so that we have something functional to give HP.
2757         (pa_print_fp_reg): Change prototype to match def'n.
2758         (pa_register_look_aside): Fix comment immediately before function.
2759         Changes to better support stack unwinding, reading and writing
2760         registers for HPUX.  New includes ptrace.h, bfd.h, dl.h.
2761         (internalize_unwinds): Initialize new fields in table.
2762         (read_unwind_info): Entries in the table are now more complex
2763         structures. References of the form ...->table[index].stub_type are
2764         now ...->table[index].stub_unwind.stub_type.
2765         (find_proc_framesize): Add a check for pc == 0.
2766         (rp_saved): Entries in the table are now more complex
2767         structures. References of the form ...->table[index].stub_type are
2768         now ...->table[index].stub_unwind.stub_type.
2769         (frameless_function_invocation): Stub_type becomes
2770         stub_unwind.stub_type
2771         (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type
2772         (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type
2773         (frame_chain_valid): Stub_type becomes stub_unwind.stub_type
2774         (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type
2775         (pa_print_fp_reg): Additional params to call val_print
2776         (in_solib_call_trampoline): Stub_type becomes
2777         stub_unwind.stub_type
2778         (in_solib_return_trampoline): Stub_type becomes
2779         stub_unwind.stub_typ
2780         (skip_trampoline_code): Additional code to handle external
2781         dyncalls. Also stub_type becomes stub_unwind.stub_type
2782         (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there
2783         is an explicit ptrace request for getting the pathname associated
2784         with a process id (pid).
2785         (hppa_pid_to_exec_file): Remove unwanted param from call to
2786         call_ptrace.
2787         (args_for_find_stub): New structure.
2788         (find_unwind_entry): Deal with null input pc value.
2789         (rp_saved): Ditto.
2790         For the import stub, return -24 always.
2791         (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop.
2792         (init_extra_frame_info): Use TARGET_READ_FP.
2793         (frame_chain): Include thread support.
2794         If the caller's pc is zero, we lose and return, just like stack
2795         bottom.
2796         Disable warning about being unable to find unwind info.
2797         (hppa_push_arguments): Rewrite.
2798         (hppa_value_returned_from_stack): New function. Handles returning
2799         a value larger than 64 bits, stored on the stack.
2800         (find_stub_with_shl_get): New function. To look up symbols in shlibs.
2801         (cover_find_stub_with_shl_get): New function. Cover routine for 
2802         find_stub_with_shl_get to pass to catch_errors.
2803         (hppa_fix_call_dummy): Comment out old stub mechanism.
2804         Rewrite using dyncall.
2805         (target_read_fp): New function.
2806         (pa_do_registers_info): Floating point registers start at FP4.
2807         (pa_print_registers): Use FP4_REGNUM instead of 72.
2808         (skip_trampoline_code): Do machine instruction matching for PA2.0.
2809         (setup_d_pid_in_inferior): New function. Exception handling support.
2810         (initialize_hp_cxx_exception_support): Ditto.
2811         (child_enable_exception_callback): Ditto.
2812         (child_get_current_exception_event): Ditto.
2813
2814         * hpux-thread.c (hpux_thread_ops): Add new target vector fields.
2815
2816         * infcmd.c: Include objfiles.h.
2817         (attach_command): New local variable, exec_file, add code to
2818         determine exec_file from pid if exec_file is not already known,
2819         call new target operation, target_post_attach -- a no-op unless
2820         on HPUXHPPA.
2821         (detach_command): After detaching, do a SOLIB_RESTART.
2822         (objfiles.h): Fix typo on include line.
2823         (run_command): Only call SOLIB_RESTART if it's defined.
2824         (detach_command): Ditto.
2825         (run_command): If program has already been started, and decide
2826         to restart it, the kill the target, flush the caches, 
2827         call init_wait_for_inferior. Also purge old solib objfiles.
2828         (run_stack_dummy): Add calls to
2829         disable_watchpoints_before_interactive_call_start and
2830         enable_watchpoints_after_interactive_call_stops.
2831         (finish_command): Alter code handling the evaluation and printing
2832         of the target function's return value.
2833         (attach_command): When given a pid, but no exec file, try to
2834         determine the exec file from the process. If the process does not
2835         record a full path name, try to qualify the filename against the
2836         source path.
2837         (_initialize_infcmd): Add some verbiage about how to use the
2838         attach command.
2839         (do_registers_info): Changed calls to val_print
2840         made the symfile.h include preceed the 
2841         objfiles.h include. The other ordering caused a 
2842         compile problem (incompletely defined types).
2843
2844         * inftarg.c (child_post_attach): Fix decl, make static.
2845         (proc_wait): Make globally visible.
2846         (child_insert_fork_catchpoint, etc): Fix return type.
2847         (child_detach_from_process): Declare.
2848         (child_attach_to_process): Declare.
2849         (child_stop): Make static to match decl.
2850         (ptrace_him): Change prototype back to return int. 
2851         (ptrace_me): Remove debug output, pass NULL to fork_inferior if
2852         not HPUX.
2853         (proc_wait): function prototype and definition are enclosed by
2854         proc_wait ifndef
2855         (child_attach_to_process): New function, does most of the work
2856         that child_attach used to do and some additional work to determine
2857         whether gdb is already attached to the target how to react.
2858         (child_attach): Altered. It's now a wrapper for
2859         child_attach_to_process.
2860         (child_require_attach): New function, called if should attach even
2861         when gdb is already attached to target.
2862         (child_detach_from_process): New function, does most of the work
2863         that child_detach used to do and some additional work to determine
2864         whether gdb is currently attached to the target.
2865         (child_detach): Altered. It's now a wrapper for
2866         child_detach_from_process.
2867         (child_require_detach): New function, called if should try to
2868         detach even when gdb is not attached to target.
2869         (ptrace_him): Calls a new function,
2870         target_acknowledge_forked_child.  Currently,
2871         target_acknowledge_forked_child, is only defined to do something
2872         for HPUX.
2873         (child_create_inferior): Changed call to fork_inferior.
2874         (child_ops): Add to_require_attach and to_require_detach fields
2875         to the child_ops target ops vector.
2876         Some hacks for ttrace work:
2877         (child_wait): Additional local variables, additional code in
2878         while loop to check for process exited, process forked, 
2879         process vforked, process execd.
2880         (child_thread_alive): John B. seems to think that the kill 
2881         call is inapproapriate for HPUX.
2882         (child_attach_to_process): Using strtol rather than atoi.
2883         no longer check for case where there is no known exec file.
2884         (child_post_attach): New function, a default, a no-op.
2885         (child_insert_fork_catchpoint): New function, a default, a no-op.
2886         (child_remove_fork_catchpoint): New function, a default, a no-op.
2887         (child_insert_vfork_catchpoint): New function, a default, a no-op.
2888         (child_remove_vfork_catchpoint): New function, a default, a no-op.
2889         (child_can_follow_vfork_prior_to_exec ):new function, a default, 
2890         a no-op.
2891         (child_insert_exec_catchpoint): New function, a default, a no-op.
2892         (child_remove_exec_catchpoint): New function, a default, a no-op.
2893         (child_has_execd): New function, a default, returns 0.
2894         (child_reported_exec_events_per_exec_call): New function, a 
2895         default, returns 1.
2896         (child_has_exited): New function, a default.
2897         (child_core_file_to_sym_file): New function, a default, returns NULL.
2898         (child_ops): Initialize new target vector fields.
2899
2900         * jv-lang.h: (Java_val_print): Add embedded_offset param to func
2901         decl.
2902
2903         * jv-valprint.c: Changing calls to val_print to accomodate new param.
2904         (java_value_print): Add embedded_offset param to val_print call
2905         (java_print_value_fields): Add embedded_offset param to val_print
2906         call.
2907         (java_val_print): Add embedded_offset param. alter call to 
2908         c_val_print to accomodate embedded_offset param.
2909
2910         * language.c (lang_bool_type): Return builtin_type_bool in c++
2911         case.
2912         (unk_lang_val_print): Add embedded_offset param to 
2913         prototype decl and definition.
2914
2915         * language.h (LA_VAL_PRINT macro, la_val_print function decl):
2916         altered to accomodate the new parameter to the various print
2917         functions.
2918         
2919         * m2-lang.h (m2_val_print): Add a parameter to the function decl.
2920
2921         * m2-valprint.c (m2_val_print): Add a parameter.
2922         This parameter is currently only used when evaluating C++
2923         expressions. So, it is always 0 in this file.
2924
2925         * m3-nat.c (m3_create_inferior): Add param to fork_inferior call
2926         (m3_pid_to_exec_file): New function
2927         (m3_ops): Add new target vector fields.
2928
2929         * mac-nat.c (init_child_ops): Add new target vector fields.
2930
2931         * mips-tdep.c: Chnages to accomodate additional parameter
2932         to val_print.
2933         (mips_print_register): Alter calls to val_print
2934
2935         * monitor.c (monitor_write): Change stderr to gdb_stderr.
2936         (monitor_remove_breakpoint): Ditto.
2937         (init_base_monitor_ops): Add new target vector fields.
2938
2939         * ppc-bdm.c (init_bdm_ppc_ops): Add new target vector fields.
2940         
2941         * printcmd.c (do_examine): When saving a value_ptr, remove it from
2942         the list of value_ptr's to be freed automatically; when discarding
2943         a previously saved value_ptr, free it.
2944         (print_formatted): Update comments; add new comments.
2945         (printf_command, print_insn): Purecov comments.
2946         (_initialize_printcmd): Add assign as a command if dbx_commands is
2947         set; create va as an alias for disassemble if xdb_commands is set.
2948         (address_info): New cases LOC_INDIRECT and
2949         LOC_THREAD_LOCAL_STATIC.
2950         (display_command): If tui_version and exp starts with a '$', then
2951         don't display it unless tui_vSetLayoutTo fails.
2952         (disassemble_command): Add tuiDo calls.
2953         (print_scalar_formatted): For integers that are long long, check
2954         the print format and print out in binary octal, decimal, or
2955         hex. Call the new print_*_chars functions in valprint.c
2956         (print_frame_args): Altered calls to val_print, to reflect
2957         additional parameter to val_print (case LOC_BASEREG_ARG).
2958
2959         * procfs.c: (Procfs_init_inferior): Return value is now a void.
2960         (procfs_ops): Add new target vector fields.
2961         (procfs_create_inferior): Fix call to fork_inferior -- need another
2962         parameter. 
2963
2964         * remote-adapt.c (adapt_open): Change stderr to gdb_stderr.
2965         (adpat_insert_breakpoint): Ditto.
2966         (init_adapt_ops): Add new target vector fields.
2967
2968         * remote-array.c (array_wait): Change fflush to gdb_flush and
2969         stdout to gdb_stdout.
2970         (init_array_ops): Add new target vector fields.
2971
2972         * remote-bug.c (bug_load): Change fflush to gdb_flush; stdout to
2973         gdb_stdout.
2974         (bug_wait): Change stderr to gdb_stderr.
2975         (bug_insert_breakpoint): Ditto.
2976         (init_bug_ops): Add new target vector fields.
2977
2978         * remote-e7000.c
2979         (init_e7000_ops): Add new target vector fields.
2980         * remote-eb.c (init_eb_ops): Ditto.
2981         * remote-es.c (init_es1800_ops): Ditto.
2982         (init_es1800_child_ops): Ditto.
2983         * remote-es.c (init_es1800_ops): Ditto.
2984         (init_es1800_child_ops): Ditto.
2985         * remote-hms.c (init_hms_ops):  Ditto.
2986         * remote-hms.c (init_hms_ops): Ditto.
2987         * remote-nindy.c (init_nindy_ops): Ditto.
2988         * remote-nrom.c (init_nrom_ops): Ditto.
2989         * remote-os9k.c (init_rombug_ops): Ditto.
2990         * remote-rdp.c (init_remote_rdp_ops): Ditto.
2991         * remote-sds.c (init_sds_ops): Ditto.
2992         * remote-sim.c (init_gdbsim_ops): Ditto.
2993         * remote-st.c (init_st2000_ops): Ditto.
2994         * remote-udi.c (init_udi_ops): Ditto.
2995         * remote-vx.c (init_vx_ops): Ditto.
2996         (init_vx_run_ops): Ditto.
2997         * remote-vx.c: (Init_vx_ops): Ditto.
2998         (init_vx_run_ops): Ditto.
2999
3000         * remote-mips.c (mips_getstring): Change stderr to gdb_stderr.
3001         (pmon_insert_breakpoint): Ditto.
3002         (pmon_remove_breakpoint): Ditto.
3003         (check_lsi_error): Ditto.
3004         (common_breakpoint): Ditto.
3005         (pmon_makeb64): Ditto.
3006
3007         * remote-mips.c (mips_xfer_memory): Change fflush to gdb_flush;
3008         change stdout to gdb_stdout.
3009
3010         * remote-mm.c (mm_open): Change stderr to gdb_stderr.
3011         (init_mm_ops): Add new target vector fields.
3012         (mm_load): Fixed params in commented out call to symbol_file_add.
3013
3014         * remote-nindy.c (instream): Change decl to FILE.
3015
3016         * remote-udi.c (udi_load): Fixed params in call to symbol_file_add.
3017
3018         * remote-vx.c (vx_add_symbols): Fixed params in call to
3019         symbol_file_add.
3020
3021         * remote.c (init_remote_ops): Cosmetic change to match expected
3022         test output.
3023
3024         * rs6000-nat.c (add_vmap): Add params to call to allocate_objfile.
3025
3026         * scm-lang.h:  Add parameter to scm_val_print function decl.
3027
3028         * scm-valprint.c (scm_scmval_print): Cast svalue to (int); new
3029         parameter.  This parameter is currently only used when evaluating
3030         C++ expressions. So, it is always 0 in this file.
3031         (c_val_print): Fixed prototype decl; it needed an embedded_offset
3032         param.
3033
3034         * sol-thread.c (sol_core_ops): Add new target vector fields.
3035         (sol_thread_ops): Ditto.
3036         
3037         * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro. 
3038         Define bit of __dld_flags in HP-UX a.out files.
3039         (DLD_FLAGS_HOOKVALID): Ditto.
3040         (DLD_FLAGS_LISTVALID): Ditto.
3041         (DLD_FLAGS_BOR_ENABLE): Ditto.
3042         (som_solib_total_st_size): Cumulative size in bytes of the 
3043         symbol tables of all shared objects on the so_list_head list.
3044         (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols
3045         for shlibs.
3046         (som_solib_sizeof_symbol_table): New function. Computes size of 
3047         symbol table for a shlib.
3048         (som_solib_load_symbols): New function. Load symbols from shlib.
3049         (som_solib_add): Detect if __dld_list is not valid. 
3050         Record main program's symbol table size.
3051         Load symbols if called from command line.
3052         Keep threshold into account when loading shlib symbols.
3053         (som_solib_create_inferior_hook): Use dld_flags macros.
3054         (som_sharedlibrary_info_command): Let user know if symbols were 
3055         not loaded.
3056         (som_solib_restart): Discard all the shlibs descriptors.
3057         (_initialize_som_solib): Chenge help message for auto-solib-add
3058         command.
3059         Set threshold for symbol table to 50 megabytes.
3060         (_initialize_som_solib): Add call to som_solib_restart.
3061         (som_solib_restart): New function
3062         (som_solib_in_dynamic_linker): New function
3063         (som_solib_desire_dynamic_linker_symbols): New function
3064         (som_solib_unloaded_library_pathname): New function
3065         (som_solib_loaded_library_pathname): New function
3066         (som_solib_library_pathname): New function
3067         (som_solib_have_unload_event): New function
3068         (som_solib_have_load_event): New function
3069         (som_solib_create_catch_unload_hook): New function
3070         (som_solib_create_catch_load_hook): New function
3071         (som_solib_create_inferior_hook): Rewritten
3072         dld_cache: New struct
3073         addr_and_unwind_t: New struct
3074         (find_unwind_entry) add prototype
3075         Include assert.h, remove references to ASSERT macro,
3076         add include of fcntl.h so that O_RDONLY is defined.
3077         (som_solib_create_inferior_hook): Introduce new local
3078         msymbol2 and change some msymbol's to msymbol2's -- was clobbering
3079         msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline,
3080         and ultimately core dumping with a SEGV.
3081         (som_solib_mapped_entry): Additional comments for text_addr, 
3082         text_link_addr, text_end, and tsd_start_addr fields. Commenting
3083         out 2 tsd fields, __data_start and __data_end. 
3084         (som_solib_add_solib_objfile): Add params to calls to symbol_file_add.
3085         Add some code for distinguishing between a shared library and other 
3086         objfiles. This appears to be a prelude to thread local storage. 
3087         (som_solib_load_symbols): Changes to printf statement 
3088         enclosed by SOLIB_DEBUG ifdef.
3089         (som_solib_add): Change comment to correctly specify path
3090         to end.o -- /opt/langtools/lib/end.o. changes to printf statement
3091         enclosed by SOLIB_DEBUG ifdef.
3092         Removed several SOLIB_DEBUG ifdefs and the associated printfs.
3093         Add code to find the start address for the object file's thread 
3094         local storage
3095         (som_solib_create_inferior_hook): Fix warning messages use correct
3096         path to end.o -- /opt/langtools/lib/end.o. Change control flow. 
3097         No longer user early returns from function is cases of error.
3098         (reset_inferior_pid): New function
3099         (som_solib_remove_inferior_hook): New function
3100         (so_lib_thread_start_addr): New function. used for tsd.
3101         (struct som_solib_mapped_entry): Add new field tsd_start_addr.
3102         (struct so_list): Add new field solib_addr.
3103         (som_solib_add_solib_objfile): New function. 
3104         (som_solib_load_symbols): Rewritten.
3105         (som_solib_add): Make sure we don't load the symbols in if the 
3106         threshold was exceeded.
3107         (som_solib_get_solib_by_pc): New function. Return the address of
3108         handle of the shared library.
3109         (som_solib_restart): Disable breakpoints at restart.
3110
3111         * sparcl-tdep.c (init_sparclite_ops): Add new target vector fields.
3112
3113         * target.c (cleanup_target): Changed casting of default functions
3114         for to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid
3115         of warnings.  Fixed PARAMS for to_has_syscall_event.  Fixed the
3116         return type on a few of the default function values.
3117         (cleanup_target): Changes in the de_fault macro, both to
3118         accomodate the new target_ops vector fields and to use
3119         more accurate default functions.
3120         (debug_to_open): Change stderr to gdb_stderr.
3121         (debug_to_close): Ditto.
3122         (debug_to_attach): Ditto.
3123         (debug_to_post_attach): Ditto.
3124         (debug_to_require_attach): Ditto.
3125         (debug_to_detach): Ditto.
3126         (debug_to_require_detach): Ditto.
3127         (debug_to_resume): Ditto.
3128         (debug_to_wait): Ditto.
3129         (debug_to_post_wait): Ditto.
3130         (debug_to_fetch_registers): Ditto.
3131         (debug_to_store_registers): Ditto.
3132         (debug_to_prepare_to_store): Ditto.
3133         (debug_to_xfer_memory): Ditto.
3134         (debug_to_files_info): Ditto.
3135         (debug_to_insert_breakpoint): Ditto.
3136         (debug_to_remove_breakpoint): Ditto.
3137         (debug_to_terminal_init): Ditto.
3138         (debug_to_terminal_inferior): Ditto.
3139         (debug_to_terminal_ours_for_output): Ditto.
3140         (debug_to_terminal_ours): Ditto.
3141         (debug_to_terminal_info): Ditto.
3142         (debug_to_kill): Ditto.
3143         (debug_to_load): Ditto.
3144         (debug_to_lookup_symbol): Ditto.
3145         (debug_to_create_inferior): Ditto.
3146         (debug_to_post_startup_inferior): Ditto.
3147         (debug_to_acknowledge_created_inferior): Ditto.
3148         (debug_to_clone_and_follow_inferior): Ditto.
3149         (debug_to_post_follow_inferior_by_clone): Ditto.
3150         (debug_to_insert_fork_catchpoint): Ditto.
3151         (debug_to_remove_fork_catchpoint): Ditto.
3152         (debug_to_insert_vfork_catchpoint): Ditto.
3153         (debug_to_remove_vfork_catchpoint): Ditto.
3154         (debug_to_has_forked): Ditto.
3155         (debug_to_has_vforked): Ditto.
3156         (debug_to_can_follow_vfork_prior_to_exec): Ditto.
3157         (debug_to_post_follow_vfork): Ditto.
3158         (debug_to_insert_exec_catchpoint): Ditto.
3159         (debug_to_remove_exec_catchpoint): Ditto.
3160         (debug_to_has_execd): Ditto.
3161         (debug_to_reported_exec_events_per_exec_call): Ditto.
3162         (debug_to_has_syscall_event): Ditto.
3163         (debug_to_has_exited): Ditto.
3164         (debug_to_mourn_inferior): Ditto.
3165         (debug_to_can_run): Ditto.
3166         (debug_to_notice_signals): Ditto.
3167         (debug_to_thread_alive): Ditto.
3168         (debug_to_stop): Ditto.
3169         (debug_to_enable_exception_callback): Ditto.
3170         (debug_to_get_current_exception_event): Ditto.
3171         (debug_to_pid_to_exec_file): Ditto.
3172         (debug_to_core_file_to_sym_file): Ditto.
3173         (default_clone_and_follow_inferior): New function prototype
3174         decl and function definition.
3175         (dummy_target): Add new target_ops vector fields and their
3176         initializations.  More target_ops vector changes for HPUX new
3177         fields.
3178         (de_fault): Add new HPUX specific target_ops operations to the
3179         de_fault macro
3180         (INHERIT): Add new HPUX specific target_ops operations.
3181         (debug_to_post_wait): New function.
3182         (debug_to_post_startup_inferior): Ditto.
3183         (debug_to_acknowledge_created_inferior): Ditto.
3184         (debug_to_clone_and_follow_inferior): Ditto.
3185         (debug_to_post_follow_inferior_by_clone): Ditto.
3186         (debug_to_create_catch_fork_hook): Ditto.
3187         (debug_to_create_catch_vfork_hook): Ditto.
3188         (debug_to_has_forked): Ditto.
3189         (debug_to_has_vforked): Ditto.
3190         (debug_to_post_follow_vfork): Ditto.
3191         (setup_target_debug): Initialize new target_ops vector fields.
3192         (nosupport_runtime): New function, used in cleanup_target
3193         (update_current_target): Add new new target_ops vector fields to
3194         the INHERIT macro definition.
3195         (generic_mourn_inferior): The call to breakpoint_init_inferior now
3196         takes a parameter.
3197         (normal_pid_to_str): Add a \0 to the end of buf.
3198         (debug_to_has_syscall_event): New function.
3199         (debug_to_enable_exception_callback): New function.
3200         (debug_to_get_current_exception_event): New function.
3201         (setup_target_debug): Initialize the 3 new target_ops vector fields
3202         (struct signals): Fix message associated with SIGRETRACT.
3203         (return_one): New function, used by the de_fault macro
3204         (debug_to_post_attach): New function.
3205         (debug_to_wait): Add new cases TARGET_WAITKIND_FORKED,
3206         TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD.
3207         (debug_to_insert_fork_catchpoint): New function.
3208         (debug_to_remove_fork_catchpoint): Ditto.
3209         (debug_to_insert_vfork_catchpoint): Ditto.
3210         (debug_to_remove_vfork_catchpoint): Ditto.
3211         (debug_to_can_follow_vfork_prior_to_exec): Ditto.
3212         (debug_to_insert_exec_catchpoint): Ditto.
3213         (debug_to_remove_exec_catchpoint): Ditto.
3214         (debug_to_core_file_to_sym_file): Ditto.
3215         (setup_target_debug): Give new fields in current_target target_ops
3216         vector values.
3217
3218         * target.h: Include symtab.h.
3219         (target_waitkind): New enumerated values
3220         TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_SYSCALL_RETURN,
3221         TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, 
3222         TARGET_WAITKIND_EXECD.
3223         (target_waitstatus): Add a syscall_id field to structure.
3224         (child_has_syscall_event): New decl.
3225         (child_thread_alive): New decl.
3226         (target_ops): Add 3 new fields: To_has_syscall_event,
3227         to_enable_exception_callback, to_get_current_exception_event 
3228         (target_enable_exception_callback): New macro.
3229         (target_has_syscall_event): New macro. 
3230         (target_get_current_exception_event): New macro.
3231         (TARGET_DISABLE_HW_WATCHPOINTS): New macro.
3232         (TARGET_ENABLE_HW_WATCHPOINTS): New macro.
3233         (PC_REQUIRES_RUN_BEFORE_USE): New macro.
3234         (target_tid_to_str): New macro.
3235         (target_waitstatus): Additional fields in struct to keep track
3236         of child pid and pathname to execd file.
3237         (target_ops): Add in the new target_ops function pointer fields.
3238         New macros to go along with new target_ops fields.
3239         In target_waitstatus.value, change name of child_pid field to
3240         related_pid.
3241         (target_pid_or_tid_to_str): Define default macro.
3242         Add missing #endif after PC_REQUIRES_RUN_BEFORE_USE definition
3243         (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Define default macro.
3244         (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Define default
3245         macro.
3246         There are new function decls for to_require_attach
3247         and to_require_detach. There are also new macros, 
3248         target_require_attach and target_require_detach. There are
3249         also new function decls for find_default_require_detach
3250         and find_default_require_attach.
3251         (target_ops): New fields to_post_wait, to_post_startup_inferior
3252         to_acknowledge_created_inferior, to_clone_and_follow_inferior,
3253         to_post_follow_inferior_by_clone, to_create_catch_fork_hook,
3254         to_create_catch_vfork_hook, to_has_forked, to_has_vforked,
3255         to_post_follow_vfork, to_pid_to_exec_file.
3256         New function definitions child_pid_to_exec_file, child_post_wait,
3257         child_post_startup_inferior, child_acknowledge_created_inferior,
3258         child_clone_and_follow_inferior,
3259         child_post_follow_inferior_by_clone, child_create_catch_fork_hook,
3260         child_create_catch_vfork_hook, child_has_forked,
3261         child_has_vforked, child_acknowledge_created_inferior,
3262         child_post_follow_vfork.
3263         New macros target_post_startup_inferior,
3264         target_acknowledge_created_inferior,
3265         target_clone_and_follow_inferior,
3266         target_post_follow_inferior_by_clone,
3267         target_create_catch_fork_hook, target_create_catch_vfork_hook,
3268         target_pid_to_exec_file.
3269         (find_default_clone_and_follow_inferior): New function prototype.
3270
3271 start-sanitize-sky
3272         * txvu-tdep.c (txvu_print_register): Add embedded_offset param
3273         to val_print call.
3274 end-sanitize-sky
3275
3276         * v850ice.c (init_850ice_ops): Init new target vector fields.
3277
3278         * valprint.c (print_binary_chars): Print out long long as
3279         a binary number.
3280         (print_octal_chars): Print out long long as an octal number
3281         (print_decimal_chars): Print out long long as a decimal number
3282         (strcat_longest): Define it.
3283         * valprint.c: Hp merge, 4/15/98 snapshot
3284         Add parameter to val_print. This is used for
3285         evaluating C++ expressions. 
3286         
3287         * value.h (VALUE_POINTED_TO_OFFSET): New macro.
3288         Add field pointed_to_offset to value structure.
3289         Add prototypes for new functions in valops.c.
3290         (write_register_pid): Change prototype to match
3291         function.
3292         (val_print function decl): Additional parameter.
3293         (VALUE_EMBEDDED_OFFSET): New macro.
3294         (find_rt_vbase_offset): New function decl -- for C++ support.
3295
3296 Wed Dec 23 15:03:42 1998  Per Bothner  <bothner@cygnus.com>
3297
3298         * Makefile.in (READLINE_CFLAGS):  Search $(READLINE_SRC)/.. rather
3299         than $(READLINE_SRC) so #include <readline/readline.h> will work.
3300         * top.c:  #include <readline/history.h> instead of "history.h".
3301         * tracepoint.c:  Likewise.
3302         * mac-xdep.c:  Likewise.
3303
3304 Wed Dec 23 12:32:00 1998  Andrew Cagney  <cagney@chook.cygnus.com>
3305
3306         * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT): Define using
3307         TARGET_BYTE_ORDER and not target_byte_order.
3308
3309 Tue Dec 22 10:51:33 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3310
3311         * config/i386/cygwin.mh (TERMCAP): define.
3312         (from Chris Faylor, cgf@cygnus.com)
3313
3314         * top.c: specify directory name for including readline.h
3315
3316         * tracepoint.c: ditto.
3317
3318         * utils.c: ditto.
3319
3320 Mon Dec 21 13:30:34 1998  Mark Alexander  <marka@cygnus.com>
3321
3322         * value.c (value_virtual_fn_field): Handle the situation where
3323         vtbl is a pointer to a structure instead of a pointer to an array.
3324
3325 Mon Dec 21 10:38:11 1998  Andrew Cagney  <cagney@chook>
3326
3327         * mips-tdep.c: (MIPS_DEFAULT_FPU_TYPE): Default to
3328         MIPS_FPU_DOUBLE.
3329
3330 1998-12-17  J.T. Conklin  <jtc@redbacknetworks.com>
3331
3332         * blockframe.c (get_frame_saved_regs): If the saved_regs_addr ptr
3333         is null, ensure that saved registers are copied from the local
3334         variable that was used to obtain them.
3335
3336 Sat Dec 19 09:55:09 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
3337
3338         * mips-tdep.c (mips32_heuristic_proc_desc):  Clear temp_saved_regs
3339         on restart.  Fixes problem with backtracing through functions that
3340         use virtual frame pointers.
3341
3342 Fri Dec 18 14:23:34 1998  Andrew Cagney  <cagney@chook>
3343
3344         * mips-tdep.c (mips_push_arguments): Don't left-shift small
3345         structs being passed in a register when an O64 target.
3346
3347         * config/mips/tm-mips.h (enum mips_fpu_type, mips_fpu): Move to
3348         mips-tdep.c.
3349
3350         * mips-tdep.c (mips_fpu_string): Delete variable.
3351         (mips_fpu_type_auto): New variable.
3352         (mips_fpu_type): Rename mips_fpu.
3353         (_initialize_mips_tdep): Delete initialization of mips_fpu et.al.
3354         Rewrite ``set mipsfpu'' command set.
3355         (set_mipsfpu_command, show_mipsfpu_command,
3356         set_mipsfpu_single_command, set_mipsfpu_double_command,
3357         set_mipsfpu_none_command, set_mipsfpu_auto_command): New
3358         functions, handle commands.
3359         (mips_push_arguments, mips_push_dummy_frame, mips_pop_frame,
3360         mips_extract_return_value): Update.
3361         (start-sanitize-carp start-sanitize-vr4xxx);
3362         (_initialize_mips_tdep): Set mips_fpu_type according to current
3363         processor.
3364         (_initialize_mips_tdep): Only define ``set processor'' command
3365         when not multi-sim.
3366         (end-sanitize-carp end-sanitize-vr4xxx)
3367         
3368 start-sanitize-carp start-sanitize-vr4xxx
3369 Fri Dec 18 12:56:56 1998  Andrew Cagney  <cagney@chook>
3370
3371         * gdbarch.h (gdbarch_init_ftype): Pass struct gdbarch_info
3372         by-value.
3373         (struct gdbarch_info): Add struct gdbarch_tdep_info *tdep_info.
3374         * gdbarch.c (gdbarch_update): Update.
3375         * mips-tdep.c: (mips_gdbarch_init): Update
3376
3377         * gdbarch.c (gdbarch_update): Add more tracing.
3378         
3379 end-sanitize-carp end-sanitize-vr4xxx
3380 Thu Dec 17 02:15:40 1998  Andrew Cagney  <cagney@chook.cygnus.com>
3381
3382         * configure.tgt (gdb_target): Identify mips64*vr4100*-*-elf* as
3383         vr4100.
3384 start-sanitize-vr4xxx
3385         * config/mips/vr4100.mt, config/mips/tm-vr4100.h: Replace
3386         vr4xxx.mt and tm-vr4xxx.h.
3387         * configure.tgt (gdb_target): Identify mips64*vr4xxx*-*-elf* as
3388         vr4xxx.
3389         * config/mips/vr4xxx.mt, config/mips/tm-vr4xxx.h: New files.
3390         Define GDB_MULTI_ARCH and MIPS_DEFAULT_FPU_TYPE.
3391 end-sanitize-vr4xxx
3392         
3393 start-sanitize-carp start-sanitize-vr4xxx
3394 Thu Dec 17 02:06:17 1998  Andrew Cagney  <cagney@chook.cygnus.com>
3395
3396         * mips-tdep.c (mips_gdbarch_init): New function. Initialize a MIPS
3397         architecture vector.
3398         (_initialize_mips_tdep): Register MIPS with GDBARCH.
3399         (struct gdbarch_tdep): Define.
3400         (MIPS_EABI, MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM): When
3401         multi-arch, get value from gdbarch->tdep.
3402
3403 Thu Dec 17 02:01:58 1998  Andrew Cagney  <cagney@chook>
3404
3405         * gdbtypes.c (_initialize_gdbtypes): Register all builtin types
3406         with gdbarch so that they are updated whenever the architecture is
3407         changed.
3408
3409 Thu Dec 17 01:58:16 1998  Andrew Cagney  <cagney@chook>
3410
3411         * gdbarch.h (GDB_MULTI_ARCH): New macro, default to zero.
3412         (current_gdbarch): Current architecture pointer.
3413         * gdbarch.c (struct gdbarch): Define.
3414
3415         * gdbarch.h (TARGET_ARCHITECTURE, TARGET_BYTE_ORDER,
3416         TARGET_LONG_BIT, TARGET_LONG_LONG_BIT, TARGET_PTR_BIT): When
3417         multi-arch force definition.
3418         * gdbarch.h, gdbarch.c (gdbarch_tdep, gdbarch_bfd_arch_info,
3419         gdbarch_byte_order, {set,}gdbarch_long_bit,
3420         {set,}gdbarch_long_long_bit, {set,}gdbarch_ptr_bit): Corresponding
3421         functions.
3422
3423         * gdbarch.h (struct gdbarch_list, struct gdbarch_info,
3424         gdbarch_init_ftype), gdbarch.c (register_gdbarch_init): Mechanism
3425         for registering an architecture with GDB.
3426         (gdbarch_list_lookup_by_info, gdbarch_alloc, gdbarch_update,
3427         verify_gdbarch): Support functions.
3428
3429         * gdbarch.h (gdbarch_data_ftype), gdbarch.c
3430         (register_gdbarch_data, gdbarch_data): Mechanism for maintaining
3431         per-architecture pointers.
3432         (init_gdbarch_data): Support functions.
3433         
3434         * gdbarch.h (gdbarch_swap_ftype), gdbarch.c
3435         (register_gdbarch_swap): Ditto for swapped memory regions.
3436         (init_gdbarch_swap, swapout_gdbarch_swap, swapin_gdbarch_swap):
3437         Support functions.
3438         
3439         * gdbarch.c (set_endian_big, set_endian_little, set_architecture,
3440         info_architecture, set_gdbarch_from_file): Hook in multi-arch
3441         code by calling gdbarch_update.
3442         (default_gdbarch): Default multi-arch vector.  Use host's type
3443         system for values.
3444         
3445 end-sanitize-carp end-sanitize-vr4xxx
3446 Thu Dec 17 01:34:36 1998  Andrew Cagney  <cagney@chook>
3447
3448         * gdbtypes.c (build_gdbtypes): New function.
3449         (_initialize_gdbtypes): Call.
3450
3451 Wed Dec 16 11:47:00 1998  Andrew Cagney  <cagney@chook>
3452
3453         * gdbarch.c (show_architecture): Use TARGET_ARCHITECTURE.
3454         * gdbarch.h, gdbarch.c: Fix typo's. Use struct's in preference to
3455         types.
3456         * gdbarch.h, gdbarch.c (gdbarch_debug): Add ``set archdebug'' to
3457         command set.
3458
3459 Tue Dec 15 23:46:40 1998  Andrew Cagney  <cagney@chook>
3460
3461         * config/mips/tm-*.h: (TARGET_BYTE_ORDER_DEFAULT,
3462         TARGET_BYTE_ORDER_SELECTABLE_P): Replace TARGET_BYTE_ORDER and
3463         TARGET_BYTE_ORDER_SELECTABLE.
3464         
3465 1998-12-14  Anthony Thompson   (athompso@cambridge.arm.com)
3466
3467         * remote-rdp.c (rdp_init): Don't discard first character on reset.
3468         (translate_open_mode): Define table.
3469         (exec_swi): Handle SWI_Clock.  SWI_Open now handles stdin/stdout.
3470         SWI_Write returns number of bytes not written.  SWI_Read does the
3471         same.  SWI_Seek should return success/failure flag.  Fix SWI_Flen.
3472
3473 1998-12-14  J.T. Conklin  <jtc@redbacknetworks.com>
3474
3475         * config/i386/nbsd.mh, config/m68k/nbsd.mh, config/ns32k/nbsd.mh
3476         (XDEPFILES): Add ser-tcp.o.
3477
3478 Mon Dec 14 14:46:13 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3479
3480         * monitor.c (monitor_expect, monitor_printf_noecho,
3481         monitor_printf): Always compile EXTRA_RDEBUG code.
3482         (RDEBUG): Ditto.
3483
3484         From Michael Meissner <meissner@cygnus.com>:
3485         * ppcbug-rom.c (init_ppc_cmds): Cleanup formatting.
3486
3487 1998-12-08  Michael Meissner  <meissner@cygnus.com>
3488
3489         * monitor.c (monitor_printable_string): New function to convert a
3490         string into a printable representation.
3491         (monitor_error): Call error after converting string into printable
3492         format.
3493         (monitor_printf{,_noecho}): If EXTRA_RDEBUG is defined, convert
3494         string into printable form before printing.
3495         (monitor_expect): Ditto.
3496         (monitor_read_memory{,_single}): Call monitor_error, not error.
3497         (monitor_read_memory): Return immediately if length is 0.
3498
3499         * ppcbug-rom.c (init_ppc_cmds): Fill in dump_registers field,
3500         which is now required.
3501
3502 Mon Dec 14 11:01:39 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3503
3504         * gdbarch.h, gdbarch.c: Consolidate the semi-dynamic target system
3505         dependant GDB parameters.
3506         (set_gdbarch_from_file): Combine set_architecture_from_file and
3507         set_byte_order_from_file.
3508         * top.c, defs.h, printcmd.c: Delete them from here.
3509         * Makefile.in: Add gdbarch.[ch].
3510         * exec.c (exec_file_command): Call set_gdbarch_from_file.
3511
3512 Sun Dec 13 09:52:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3513
3514         * defs.h (TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN): Define.
3515         (TARGET_ARCHITECTURE, TARGET_ARCHITECTURE_AUTO): Define.
3516         (TARGET_BYTE_ORDER_AUTO): Define.
3517         (TARGET_BYTE_ORDER_SELECTABLE_P): Provide default. Replaces
3518         TARGET_BYTE_ORDER_SELECTABLE. Handle compat issues.
3519         (BITS_BIG_ENDIAN): Simplify.
3520         (TARGET_FLOAT_FORMAT): Ditto.
3521         (TARGET_DOUBLE_FORMAT): 
3522
3523         * remote-e7000.c, sh-tdep.c, printcmd.c, remote-sim.c,
3524         remote-rdi.c, sparc-tdep.c: Update.
3525         
3526         * config/powerpc/tm-ppcle-eabi.h, config/rs6000/tm-rs6000.h,
3527         config/powerpc/tm-ppc-eabi.h, config/mn10300/tm-mn10300.h:
3528         Convert.
3529
3530 Sat Dec 12 09:28:13 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3531
3532         * frame.h (struct frame_info): Add CORE_ADDR *saved_regs and
3533         struct frame_extra_info *extra_info.
3534         (frame_obstack_alloc, frame_saved_regs_zalloc): Prototype.
3535         (SIZEOF_FRAME_SAVED_REGS): Provide default.
3536         (FRAME_INIT_SAVED_REGS): Provide default.
3537         (struct frame_saved_regs): Deprecate.
3538         (EXTRA_FRAME_INFO): Deprecate.
3539         
3540         * blockframe.c (frame_obstack_alloc, frame_saved_regs_zalloc): New
3541         function.
3542         (generic_get_saved_register): Use FRAME_INIT_SAVED_REGS and
3543         frame->saved_regs.
3544         (frame_cache_obstack): Make static.
3545         (get_frame_saved_regs): Deprecate. Copy the saved regs into the
3546         frame buffer.
3547
3548         * stack.c (frame_info): Rewrite using frame->saved_regs and
3549         FRAME_INIT_SAVED_REGS.
3550         * findvar.c (find_saved_register): Ditto.
3551
3552         * config/mn10300/tm-mn10300.h (EXTRA_FRAME_INFO): Delete.
3553         (FRAME_FIND_SAVED_REGS): Replace with FRAME_INIT_SAVED_REGS. No-op.
3554         * mn10300-tdep.c: Update.
3555         (analyze_dummy_frame): New function.
3556         (struct frame_extra_info): Define.
3557         (mn10300_init_extra_frame_info): Update.
3558         
3559         * config/rs6000/tm-rs6000.h: (EXTRA_FRAME_INFO): Delete.
3560         (FRAME_FIND_SAVED_REGS): Replace with FRAME_INIT_SAVED_REGS.
3561         (FRAME_ARGS_ADDRESS): Replace with function.
3562
3563         * rs6000-tdep.c (frame_get_saved_regs): Rename from
3564         frame_get_cache_fsr.
3565         (rs6000_init_extra_frame_info): New function.
3566         (rs6000_frame_init_saved_regs): Call frame_get_saved_regs.
3567         (FUNCTION_START_OFFSET): Delete references, was ZERO.
3568         (rs6000_frame_args_address): New function.
3569         (frame_initial_stack_address): Update
3570         
3571         * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Remove saved_regs.
3572         (FRAME_INIT_SAVED_REGS): Rename FRAME_FIND_SAVED_REGS, update.
3573         * mips-tdep.c (mips_find_saved_regs, read_next_frame_reg,
3574         init_extra_frame_info, mips_pop_frame): Update.
3575         * config/alpha/tm-alpha.h (FRAME_INIT_SAVED_REGS,
3576         EXTRA_FRAME_INFO), alpha-tdep.c (alpha_find_saved_regs,
3577         alpha_pop_frame, init_extra_frame_info): Ditto.
3578         
3579         * i960-tdep.c, m88k-tdep.c, h8300-tdep.c: Update.
3580         * config/sparc/tm-sparc.h, config/a29k/tm-a29k.h: Define
3581         FRAME_INIT_SAVED_REGS as no-op.
3582
3583         * z8k-tdep.c (z8k_init_frame_saved_regs): Rename
3584         get_frame_saved_regs.
3585         (examine_frame, z8k_skip_prologue): Update.
3586         * config/z8k/tm-z8k.h (FRAME_INIT_SAVED_REGS): Define.
3587
3588 1998-12-11  Fernando Nasser  <fnasser@totem.to.cygnus.com>
3589
3590         From J.T. Conklin  <jtc@redbacknetworks.com>:
3591         * i386-stub.c (handle_exception): Add support for 'P' command.
3592         (NUMREGS): New macro.
3593
3594 start-sanitize-sky
3595 1998-12-11  Jeff Law (law@cygnus.com)
3596
3597         * txvu-tdep.c (set_vxtu_prompt): Rename set_prompt.
3598
3599         * configure.in (with-sim-gpu2): Do not emit a -L argument without
3600         an associated pathname.  Link in the math library after the gpu2
3601         library.
3602
3603 end-sanitize-sky
3604 Fri Dec 11 09:07:05 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3605
3606         * i386b-nat.c: Include "expression.h".
3607
3608         * symtab.h: Don't include "gnu-regex.h".
3609         
3610         * solib.c (solib_add_common_symbols): Cast parameters passed to
3611         make_cleanup to use the new make_cleanup_func typedef.
3612
3613         * inftarg.c: Include "wait.h" after, rather than before, <wait.h>.
3614         "wait.h" was defining all WIF* macro's instead of filling in those
3615         that <wait.h> missed.
3616
3617 Fri Dec 11 09:52:04 1998  Andrew Cagney  <cagney@chook>
3618
3619         * mipsm3-nat.c, hppah-nat.c, infptrace.c, i386gnu-nat.c,
3620         hppab-nat.c, core-aout.c, arm-xdep.c, alpha-nat.c, altos-xdep.c,
3621         pyr-xdep.c, remote-st.c, remote-os9k.c, tahoe-tdep.c, pyr-tdep.c,
3622         vax-tdep.c: Replace reg_name with REGISTER_NAME.
3623
3624 Thu Dec 10 15:19:40 1998  David Taylor  <taylor@texas.cygnus.com>
3625
3626         The following changes were made by Jim Blandy <jimb@cygnus.com>,
3627         Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
3628         <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
3629         Taylor <taylor@cygnus.com>, as part of the project to merge in
3630         changes originally made by HP; HP did not create ChangeLog
3631         entries.
3632         
3633         * annotate.c (annotate_catchpoint): New function.
3634
3635         * annotate.h (annotate_catchpoint): declare it; add new includes
3636         (symtab.h and gdbtypes.h).
3637
3638         * buildsym.h: add external var processing_hp_compilation.
3639
3640         * coff-solib.h: 
3641         (SOLIB_REMOVE_INFERIOR_HOOK): new macro. defined to 0.
3642         functionality not implemented for coff.
3643         (SOLIB_CREATE_CATCH_LOAD_HOOK): New macro; generate error msg for coff.
3644         (SOLIB_CREATE_CATCH_UNLOAD_HOOK): ditto.
3645         (SOLIB_HAVE_LOAD_EVENT): ditto.
3646         (SOLIB_LOADED_LIBRARY_PATHNAME): ditto.
3647         (SOLIB_HAVE_UNLOAD_EVENT): ditto.
3648         (SOLIB_UNLOADED_LIBRARY_PATHNAME): ditto.
3649         (SOLIB_IN_DYNAMIC_LINKER): ditto.
3650         (SOLIB_RESTART): ditto.
3651
3652         * complaints.h: add ifdef...endif pair at beginning and end of file.
3653
3654         * dstread.c (dst_symfile_read): the parameter to fileno
3655         must be of type FILE *. So cast abfd->iostream in the 
3656         call to fileno must be cast as a FILE *, not a GDB_FILE *.
3657         This will work because abfd->iostream is declared and 
3658         given a value in bdf and bfd will continue to use FILE 
3659         rather than GDB_FILE.
3660
3661         * dwarf2read.c (dwarf_bool_name): change parameter from bool
3662         to mybool.  sigh.
3663
3664         * expression.h: include symtab.h
3665         
3666         * frame.h (print_only_stack_frame, show_stack_frame,
3667         show_frame_info): add prototypes.
3668
3669         * gdbcmd.h (togglelist, stoplist): declare.
3670
3671         * gdbcore.h (read_memory_string): declare it.
3672         (exec_file_attach): add prototype.
3673
3674         * inflow.c (terminal_is_ours): make non static.
3675
3676         * minsyms.c: minor spacing change.
3677
3678         * parser-defs.h (parse_nested_classes_for_hpacc): add prototype.
3679         (find_template_name_end): add prototype.
3680
3681         * scm-lang.c (scm_unpack): cast svalue to (int).
3682
3683         * top.h: declare it.
3684         
3685         * valprint.h (print_binary_chars): new prototype definition.
3686         (print_octal_chars): new prototype definition.
3687         (print_decimal_chars): new prototype definition.
3688
3689 Thu Dec 10 07:14:56 1998  Andrew Cagney  <cagney@chook>
3690
3691         * config/arm/tm-arm.h, arm-tdep.c: Replace REGISTER_NAMES with
3692         REGISTER_NAME.
3693         * mn10300-tdep.c, config/mn10300/tm-mn10300.h: Ditto.
3694         * sh-tdep.c, config/sh/tm-sh.h: Ditto.
3695
3696         * defs.h (REGISTER_NAME): Provide default for old targets.
3697         * defs.h, infcmd.c: Rename reg_names to gdb_register_names.
3698         
3699         * tracepoint.c, target.c, parse.c, infcmd.c, remote-udi.c,
3700         expprint.c, infcmd.c, printcmd.c, eval.c, stack.c, findvar.c,
3701         remote-udi.c, config/alpha/tm-alpha.h, remote-sim.c, d30v-tdep.c,
3702         config/mips/tm-mips.h, hppa-tdep.c: Use REGISTER_NAME.
3703 start-sanitize-sky
3704         * config/mips/tm-txvu.h, txvu-tdep.c: Ditto.
3705 end-sanitize-sky
3706
3707 1998-12-08  James E Wilson  <wilson@wilson-pc.cygnus.com>
3708
3709         * config/i960/mon960.mt (SIM_OBJS, SIM): Define.
3710
3711 Tue Dec  8 16:49:24 1998  Stan Shebs  <shebs@andros.cygnus.com>
3712
3713         * NEWS: Add mentions of newly-added configurations.
3714
3715 1998-12-08  Philippe De Muyter  <phdm@macqel.be>
3716
3717         * config/xm-aix4.h (SIGWINCH_HANDLER): Function `aix_resize_window'
3718         must accept a signal number as parameter.
3719         * config/rs6000/xm-rs6000.h (SIGWINCH_HANDLER): Ditto.
3720         * utils.c (initialize_utils): Give a parameter to `SIGWINCH_HANDLER'.
3721
3722         * inferior.h (register_valid): Variable's type is `SIGNED char', not
3723         `char'.
3724         * findvar.c (register_valid): Ditto.
3725
3726         * defs.h (make_cleanup_func): Protect parameter list by `PARAMS'.
3727         * gdbthread.h (unbind_target_thread_vector): Likewise. 
3728
3729 Tue Dec  8 15:09:44 1998  Edith Epstein  <eepstein@sophia.cygnus.com>
3730
3731         Merged in m68k-linux patch from Andreas Schwab
3732  
3733         1998-12-01  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
3734  
3735         * Makefile.in, configure.host, configure.tgt: Add support for
3736         m68k-linux.
3737         * config/m68k/linux.mh: New file.
3738         * config/m68k/linux.mt: New file.
3739         * config/m68k/nm-linux.h: New file.
3740         * config/m68k/tm-linux.h: New file.
3741         * config/m68k/xm-linux.h: New file.
3742         * gdb/m68klinux-nat.c: New file.
3743         * gdbserver/low-linux.c: Add support for m68k-linux.
3744         * gdb/config/m68k/tm-m68k.h (NUM_FREGS): New macro.
3745
3746 1998-12-07  Jason Molenda  (jsm@bugshack.cygnus.com)
3747
3748         * config/i386/xm-cygwin.h: Remove REQUEST_QUIT definition.
3749         * config/powerpc/xm-cygwin.h: Ditto.
3750
3751 1998-12-07  Jim Blandy  <jimb@zwingli.cygnus.com>
3752
3753         * rs6000-tdep.c (pop_frame): Correctly find the registers saved in
3754         the stack frame.  Their offset from the previous stack frame is in
3755         fdata.gpr_offset and fdata.fpr_offset, not fdata.offset.
3756         (gdb.base/return.exp)
3757         * config/rs6000/tm-rs6000.h: Doc fixes.
3758
3759 1998-12-03  Jason Molenda  (jsm@bugshack.cygnus.com)
3760
3761         * monitor.c (monitor_read_memory): Zero out pattern buffers
3762         before calling re_search.
3763         (parse_register_dump): Ditto.
3764
3765 Thu Dec  3 10:37:22 EST 1998  Zdenek Radouch   (radouch@cygnus.com)
3766
3767         FR30 updates - still very preliminary.
3768         * configure.tgt
3769         * fr30-tdep.c
3770         * config/fr30/tm-fr30.h
3771         
3772 Thu Dec  3 16:30:35 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3773
3774         * ax-gdb.c: Include target.h.
3775
3776 Tue Dec  3 10:59:00 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3777
3778         * ax-gdb.c (_initialize_ax_gdb), i960-tdep.c (pop_frame),
3779         monitor.c (flush_monitor_dcache, longlongendswap), remote-array.c
3780         (hexword2ascii), w89k-rom.c (init_w89k_cmds), z8k-tdep.c
3781         (init_frame_pc, extract_return_value): Make return type void.
3782         * monitor.c (monitor_write_even_block): Make return type explicit.
3783         (monotor_read_memory_block): Delete function.
3784         * monitor.h: Update.
3785         * remote.c (remote_get_threadlist, remote_update_threads),
3786         remote-array.c (array_get_packet), remote-rdi.c (Fail): Always
3787         return a value.
3788         * m32r-tdep.c (m32r_fix_call_dummy): From Michael Snyder, void
3789         function.
3790         * jv-valprint.c (java_val_print): From Stu Grossman. Return 0 by
3791         default.
3792         
3793 Wed Dec  2 15:11:38 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
3794
3795         * tracepoint.c: Move default definition of 
3796         TARGET_VIRTUAL_FRAME_POINTER from here to target.h.
3797         * target.h: Add default definition of TARGET_VIRTUAL_FRAME_POINTER.
3798         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address):
3799         use TARGET_VIRTUAL_FRAME_POINTER to determine frame pointer.
3800         (gen_trace_for_expr): new argument, address of tracepoint, 
3801         gets passed to new_agent_expr and added to struct agent_expr.
3802         (is_nontrivial_conversion): call to new_agent_expr now requires
3803         a dummy argument.  (agent_command): use get_current_frame() to
3804         get current PC scope; pass it to gen_trace_for_expr.
3805         * ax-general.c (new_agent_expr): new argument, address of 
3806         tracepoint; store it in new field of struct agent_expr.
3807         * ax.h (struct agent_expr): add new field for tracepoint address.
3808         * ax-gdb.h: change prototypes to match above changes.
3809
3810         * m32r-tdep.c (decode_prologue): If no branch or push fp is found,
3811         but there's a stack adjust, then use that as the end of prologue.
3812         (m32r_skip_prologue): don't skip past the first line if there is 
3813         line info.  (m32r_virtual_frame_pointer): new function.
3814         (m32r_fix_call_dummy): no return value needed.
3815         
3816 Tue Dec  1 10:59:00 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3817
3818         * ocd.c (remote_timeout), (BDM_BREAKPOINT), monitor.c (readchar),
3819         remote.c: Cleanup closing of open comments.
3820
3821 Mon Nov 30 16:04:03 1998  Doug Evans  <devans@canuck.cygnus.com>
3822
3823         * config/fr30/tm-fr30.h (INNER_THAN): Add parameters.
3824
3825 Mon Nov 30 11:18:48 1998  Andrew Cagney  <cagney@chook>
3826
3827         * frame.h (FRAME_CHAIN_VALID): Default to
3828         default_frame_chain_valid.
3829         * blockframe.c (default_frame_chain_valid): New function.
3830         
3831         * frame.h (FRAME_CHAIN_VALID_ALTERNATIVE): Delete references
3832         * blockframe.c (alternate_frame_chain_valid): New function.
3833         * config/mips/tm-mipsv4.h, config/m88k/tm-delta88v4.h,
3834         config/m68k/tm-monitor.h, config/m68k/tm-m68kv4.h,
3835         config/i386/tm-i386v4.h, config/i386/tm-i386nw.h,
3836         config/h8300/tm-h8300.h: Update.
3837
3838         * blockframe.c (nonnull_frame_chain_valid): New function.
3839         * config/m68k/tm-os68k.h, config/m68k/tm-vx68.h,
3840         config/m68k/tm-apollo68b.h, config/i960/tm-vx960.h,
3841         config/arc/tm-arc.h: Update FRAME_CHAIN_VALID.
3842
3843         * hppa-tdep.c (frame_chain_valid, hppa_frame_chain_valid),
3844         remote-vx29k.c (get_fp_contents, vx29k_frame_chain_valid),
3845         arm-tdep.c (frame_chain_valid, arm_frame_chain_valid): Rename
3846         functions so that they are name space clean.
3847         * config/pa/tm-hppa.h, config/a29k/tm-vx29k.h,
3848         config/arm/tm-arm.h: Update FRAME_CHAIN_VALID.
3849         
3850         * gould-tdep.c (gould_frame_chain_valid), d30v-tdep.c
3851         (d30v_frame_chain_valid), d10v-tdep.c (d10v_frame_chain_valid):
3852         New functions.
3853         * config/gould/tm-np1.h, config/gould/tm-pn.h,
3854         config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Update
3855         FRAME_CHAIN_VALID.
3856
3857 Sun Nov 29 11:18:37 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3858
3859         * z8k-tdep.c (z8k_addr_bits_remove), w65-tdep.c
3860         (w65_addr_bits_remove), h8500-tdep.c (h8500_addr_bits_remove),
3861         m88k-tdep.c (m88k_addr_bits_remove): Function to clean up an
3862         address.
3863         * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/m88k/tm-m88k.h,
3864         config/h8500/tm-h8500.h: Define ADDR_BITS_REMOVE to call targets
3865         corresponding function.
3866         * z8k-tdep.c (saved_pc_after_call): Update.
3867
3868 Sat Nov 28 12:24:31 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3869
3870         * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
3871         config/v850/tm-v850.h, config/tahoe/tm-tahoe.h,
3872         config/sparc/tm-sparc.h, config/sh/tm-sh.h,
3873         config/rs6000/tm-rs6000.h, config/pyr/tm-pyr.h,
3874         config/pa/tm-hppa.h, config/ns32k/tm-umax.h,
3875         config/ns32k/tm-merlin.h, config/none/tm-none.h,
3876         config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3877         config/mips/tm-mips.h, config/m88k/tm-m88k.h,
3878         config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
3879         config/i960/tm-i960.h, config/i386/tm-i386.h,
3880         config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
3881         config/gould/tm-pn.h, config/gould/tm-np1.h, config/arm/tm-arm.h,
3882         config/convex/tm-convex.h, config/d10v/tm-d10v.h,
3883         config/alpha/tm-alpha.h, config/a29k/tm-a29k.h: Add parameters to
3884         macro INNER_THAN.
3885
3886         * valops.c (push_word, value_push, call_function_by_hand),
3887         breakpoint.c (bpstat_stop_status), blockframe.c
3888         (generic_push_dummy_frame, generic_frame_chain_valid), inferior.h
3889         (PC_IN_CALL_DUMMY), infrun.c (wait_for_inferior): Update use of
3890         INNER_THAN.
3891
3892 Fri Nov 27 11:00:25 1998  Andrew Cagney  <cagney@chook>
3893
3894         * target.h (one_stepped): Move global from here.
3895         * infrun.c (singlestep_breakpoints_inserted_p): To here. Rename.
3896         Make static.
3897         (wait_for_inferior): Update.
3898         (resume): Update. Set variable after call to SOFTWARE_SINGLE_STEP.
3899         
3900         * target.h (NO_SINGLE_STEP): Replace with SOFTWARE_SINGLE_STEP_P
3901         and SOFTWARE_SINGLE_STEP.
3902         * config/sparc/tm-sparc.h, config/rs6000/tm-rs6000.h,
3903         config/arc/tm-arc.h: Update.
3904         * rs6000-tdep.c (rs6000_software_single_step), sparc-tdep.c
3905         (sparc_software_single_step), arc-tdep.c (arc_single_step): New
3906         functions. Replace function single_step.
3907         
3908         * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P): Define.
3909         * infrun.c (proceed): Cleanup.
3910 start-sanitize-sky
3911         * config/mips/tm-txvu.h (STEP_SKIPS_DELAY), txvu-tdep.c
3912         (txvu_step_skips_delay): Change macro to function.
3913 end-sanitize-sky
3914
3915 Thu Nov 26 11:19:15 1998  Andrew Cagney  <cagney@amy.cygnus.com>
3916
3917         * config/alpha/tm-alpha.h (ABOUT_TO_RETURN): Replace macro.
3918         * alpha-tdep.c (alpha_about_to_return): With new function.
3919         (heuristic_proc_start): Update.
3920         * config/mips/tm-mips.h (ABOUT_TO_RETURN), mips-tdep.c
3921         (heuristic_proc_start, mips_about_to_return): Ditto.
3922         * config/ns32k/tm-merlin.h (ABOUT_TO_RETURN),
3923         config/ns32k/tm-umax.h (ABOUT_TO_RETURN), ns32k-tdep.c
3924         (ns32k_about_to_return, ns32k_get_enter_addr): Ditto.
3925
3926         * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
3927         config/tahoe/tm-tahoe.h, config/sparc/tm-sparc.h,
3928         config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pyr/tm-pyr.h,
3929         config/pa/tm-hppa.h, config/m88k/tm-m88k.h, config/m68k/tm-m68k.h,
3930         config/i960/tm-i960.h, config/i386/tm-i386.h,
3931         config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
3932         config/gould/tm-pn.h, config/gould/tm-np1.h,
3933         config/convex/tm-convex.h, config/arm/tm-arm.h,
3934         config/arc/tm-arc.h, config/a29k/tm-a29k.h: Delete macro
3935         ABOUT_TO_RETURN.
3936         * config/w65/tm-w65.h (RTL, RTS): Delete macros.
3937         * h8500-tdep.c (about_to_return): Delete function.
3938
3939 Thu Nov 26 11:19:15 1998  Andrew Cagney  <cagney@chook.cygnus.com>
3940
3941         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
3942         and little_breakpoint to char[] from char*.
3943         * remote-array.c (array_insert_breakpoint): Change bp_addr to
3944         CORE_ADDR type.
3945
3946 Wed Nov 25 00:13:06 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3947
3948         * vx-share/xdr_ld.c (xdr_ldtabl): Cast second arg to char**
3949         instead of char*.
3950
3951         * configure.tgt (v850): Only build v850ice when cygwin and gui.
3952         * configure.in: Add parameter to --enable-build-warnings.
3953         * configure: Re-build.
3954
3955         * c-exp.y (parse_number): Rewrite shift to pacify GCC.
3956
3957         * config/i960/tm-i960.h (BREAKPOINT): Delete definition - simply
3958         wrong.
3959
3960         * monitor.c (compile_pattern): Make val const char*.
3961         (monitor_wait_cleanup): Make old_timeout void*, pointing at
3962         old_timeout.
3963         (monitor_wait): Update.
3964
3965         * remote-udi.c, remote-sim.c, remote-e7000.c, hppa-tdep.c,
3966         remote-mips.c, sparcl-tdep.c, xcoffread.c: Cast parameters passed
3967         to make_cleanup to use the new make_cleanup_func typedef.
3968
3969         * alpha-tdep.c (MASK): Use LONGEST to avoid arithmetic overflow.
3970
3971         * config/a29k/tm-a29k.h (TRANSPARENT): Rename macro to
3972         TRANSPARENT_FRAME. Avoid name-space clash.
3973         * a29k-tdep.c (init_frame_info): Update.
3974
3975 Wed Nov 25 20:37:00 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3976
3977         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
3978         and little_breakpoint to char[] from char*.
3979         * mem-break.c (memory_insert_breakpoint,
3980         memory_remove_breakpoint): Pass address of bplen.
3981         * remote-array.c (array_insert_breakpoint): Change bp_addr to
3982         CORE_ADDR type.
3983
3984 start-sanitize-vr4xxx
3985 1998-11-24  Gavin Romig-Koch  <gavin@cygnus.com>
3986
3987         * configure.tgt: Handle mips64*vr4xxx.
3988
3989 end-sanitize-vr4xxx
3990 Tue Nov 24 15:46:33 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
3991
3992         * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER):
3993         new target macro.
3994         * mn10300-tdep.c (mn10300_virtual_frame_pointer): new function.
3995         * tracepoint.c (encode_actions): Use the new target macro to
3996         determine the virtual frame pointer, for collecting locals/args.
3997         (add_local_symbols, collect_symbol): add a register/offset pair of
3998         arguments so that the virtual frame pointer can be passed in.
3999
4000 1998-11-24  Felix Lee  <flee@cygnus.com>
4001
4002         * procfs.c (procfs_wait): handle syscall events first.
4003         
4004         * procfs.c (GDB_GREGSET_TYPE, GDB_FPREGSET_TYPE): new macros.
4005         * config/sparc/xm-sun4sol2.h: use them.
4006         * core-sol2.c: don't #undef gregset_t and fpregset_t.
4007         * sol-thread.c: ditto.
4008         * sparc-tdep.c: ditto.
4009         
4010 Tue Nov 24 14:13:10 1998  Andrew Cagney  <cagney@chook>
4011
4012         * breakpoint.c (memory_breakpoint_size): Delete global.
4013         (read_memory_nobpt): Determine real breakpoint address and size
4014         using BREAKPOINT_FROM_PC.
4015
4016         * defs.h (breakpoint_from_pc_fn): BREAKPOINT_FROM_PC function
4017         template.
4018         * target.h, mem-break.c (memory_breakpoint_from_pc):
4019         Rewrite. Always define.  Return NULL when memory breakpoints are
4020         not supported.
4021         (memory_insert_breakpoint, memory_remove_breakpoint): Call
4022         BREAKPOINT_FROM_PC.
4023         * target.h (BREAKPOINT_FROM_PC): Provide default.
4024         * gdbint.texinfo (BREAKPOINT_FROM_PC): Document.
4025
4026         * config/rs6000/tm-rs6000.h (BREAKPOINT): Delete macro.
4027         (BREAKPOINT_FROM_PC): Define.
4028         ({BIG,LITTLE}_BREAKPOINT): Move macros from here.
4029         * rs6000-tdep.c: To here.
4030         (rs6000_breakpoint_from_pc): New function.
4031
4032         * config/mn10300/tm-mn10300.h (BREAKPOINT): Delete macro.
4033         (BREAKPOINT_FROM_PC): Define, call.
4034         * mn10300-tdep.c (mn10300_breakpoint_from_pc): New function.
4035
4036         * config/mips/tm-mips.h ({BIG,LITTLE}_BREAKPOINT,
4037         IDT_{BIG,LITTLE}_BREAKPOINT, PMON_{BIG,LITTLE}_BREAKPOINT,
4038         MIPS16_{BIG,LITTLE}_BREAKPOINT): Move macros from here.
4039         * mips-tdep.c: To here.
4040 start-sanitize-sky
4041         * txvu-tdep.c (core_break_insn): Delete variable.
4042         (txvu_insert_breakpoint): Update, use BREAKPOINT_FROM_PC.
4043 end-sanitize-sky
4044
4045         * config/arm/tm-arm.h ({BIG,LITTLE}_BREAKPOINT): Delete macros.
4046         ({ARM,THUMB}_{BE,LE}_BREAKPOINT): Move macros from here.
4047         * arm-tdep.c: To here.
4048         
4049         * remote-array.c (memory_breakpoint_size): Delete variable.
4050         (array_insert_breakpoint): Obtain breakpoint size using
4051         BREAKPOINT_FROM_PC.
4052         * remote-st.c (memory_breakpoint_size, st2000_insert_breakpoint):
4053         Ditto.
4054         * remote-os9k.c (memory_breakpoint_size,
4055         rombug_insert_breakpoint): Ditto.
4056         * remote-e7000.c (memory_breakpoint_size): Ditto.
4057
4058 Mon Nov 23 11:38:40 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4059
4060         * symfile.c (deduce_language_from_filename): rewrite so as to 
4061         work from a table of filename extensions, modifiable by the user.
4062         (filename_language_table): new data structure.
4063         (set_ext_lang_command): new function for new command, "set
4064         extension-language".  (info_extension_language_command): new
4065         function for new command "info extension-languages".
4066         (add_filename_language, init_filename_language_table): new
4067         support functions for the above.
4068         * language.c (language_enum): new function.  Support for above.
4069
4070 Mon Nov 23 10:47:54 1998  Andrew Cagney  <cagney@chook.cygnus.com>
4071
4072         * config/sh/tm-sh.h, config/mn10200/tm-mn10200.h,
4073         config/m32r/tm-m32r.h, config/arm/tm-arm.h, config/i960/tm-i960.h,
4074         config/gould/tm-np1.h, config/d10v/tm-d10v.h,
4075         config/v850/tm-v850.h, config/pa/tm-hppa.h, config/a29k/tm-a29k.h,
4076         config/mn10300/tm-mn10300.h, config/mips/tm-mips.h
4077         (USE_STRUCT_CONVENTION): Cleanup, define macro as function.
4078         
4079         * sh-tdep.c (sh_use_struct_convention), mn10200-tdep.c
4080         (mn10200_use_struct_convention), i960-tdep.c
4081         (i960_use_struct_convention), gould-tdep.c
4082         (gould_use_struct_convention), d10v-tdep.c
4083         (d10v_use_struct_convention), v850-tdep.c
4084         (v850_use_struct_convention), hppa-tdep.c
4085         (hpha_use_struct_convention), m32r-tdep.c
4086         (m32r_use_struct_convention), arm-tdep.c
4087         (arm_use_struct_convention), mn10300-tdep.c
4088         (mn10300_use_struct_convention), a29k-tdep.c
4089         (a29k_use_struct_convention), mips-tdep.c
4090         (mips_use_struct_convention): New functions
4091
4092         * value.h, values.c (generic_use_struct_convention): New function,
4093         replace macro.
4094         * values.c (USE_STRUCT_CONVENTION): Macro defaults to function
4095         generic_use_struct_convention.
4096
4097 Sat Nov 21 17:15:40 1998  Philippe De Muyter  <phdm@macqel.be>
4098
4099         * breakpoint.c (bpstat_stop_status): Do not increment hit_count
4100         of breakpoint if condition is not true. 
4101
4102         * coffread.c (coff_symtab_read): Discard C_LABEL's that are not
4103         function entry points, to avoid getting them in the stack dump
4104         instead of the actual function.
4105
4106         * config/m68k/delta68.mh (NAT_FILE): Undo 1998-08-18 change;
4107         without NAT_FILE definition, configure will assume that GDB cannot
4108         run native.
4109         * config/m68k/nm-delta68.h (KERNEL_U_SIZE): New macro.
4110         * delta68-nat.c (kernel_u_size): New function.
4111
4112 Fri Nov 20 10:13:03 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4113
4114         * buildsym.c (end_symtab): Cleanup PROCESS_LINENUMBER_HOOK.
4115
4116 Thu Nov 19 15:21:04 1998  Geoffrey Noer  <noer@cygnus.com>
4117
4118         * rdi-share/host.h: if compiling under Cygwin, make sure new
4119         preprocessor define is defined.  Define it if not.
4120         * rdi-share/hostchan.h: ditto
4121         * rdi-share/aclocal.m4: regenerate
4122         * rdi-share/configure: regenerate
4123
4124 Thu Nov 19 14:43:44 1998  Geoffrey Noer  <noer@cygnus.com>
4125
4126         * configure.in: switch back to checking __CYGWIN32__
4127         * configure: regenerate
4128
4129 Thu Nov 19 09:53:00 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4130
4131         * exec.c (exec_file_command): Cleanup. Replace #if
4132         NEED_TEXT_START_END with if().
4133         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Redefine to be 1.
4134         * config/convex/tm-convex.h (NEED_TEXT_START_END): Ditto.
4135         * config/gould/tm-np1.h (NEED_TEXT_START_END): Ditto.
4136         * config/a29k/tm-a29k.h (NEED_TEXT_START_END): Ditto.
4137
4138 Thu Nov 19 13:06:22 1998  Geoffrey Noer  <noer@cygnus.com>
4139
4140         * main.c: Wait until more time has passed before calling
4141         new cygwin_ funcs, revert back to the cygwin32_ ones for now.
4142         * win32-nat.c: Ditto.
4143
4144 Wed Nov 18 15:03:17 1998  Andrew Cagney  <cagney@chook.cygnus.com>
4145
4146         * 29k-share/udi/udip2soc.c (UDIConnect): Replace sys_errlist with
4147         strerror.
4148
4149 Mon Nov 16 14:17:05 1998  Geoffrey Noer  <noer@cygnus.com>
4150
4151         * defs.h: if compiling under Cygwin, define __CYGWIN__ if
4152         __CYGWIN32__ is defined and __CYGWIN__ isn't for backwards
4153         compatibility.
4154
4155 Fri Nov 13 00:15:08 1998  Geoffrey Noer  <noer@cygnus.com>
4156
4157         Changes to account for name change from cygwin32 to cygwin and
4158         clean up Win32-related ifdefs.
4159         
4160         * configure.tgt: check for cygwin* instead of cygwin32.
4161         New cygwin gdb_target variable loses the "32".
4162         * configure.host: check for cygwin* instead of cygwin32.
4163         New cygwin gdb_host variable loses the "32".
4164         * configure.in: test __CYGWIN__ instead of __CYGWIN32__,
4165         rename gdb_cv_os_cygwin32 variable to drop the "32".  Call
4166         AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
4167         autoconf yet.
4168         * configure: regenerate.
4169
4170         * main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h where
4171         cygwin path conv protos live, instead of adding a proto here for
4172         them here.
4173         * {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
4174         instead of __CYGWIN32__.
4175         * source.c: thoughout, check _WIN32 instead of WIN32.
4176         
4177         * config/i386/cygwin32.mh: delete.
4178         * config/i386/cygwin.mh: new file, was cygwin32.mh.
4179         * config/i386/cygwin32.mt: delete.
4180         * config/i386/cygwin.mt: new file, was cygwin32.mt.
4181         * config/i386/tm-cygwin32.h: delete.
4182         * config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
4183         * config/i386/xm-cygwin32.h: delete.
4184         * config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
4185         * config/i386/xm-windows.h: #include xm-cygwin.h now.
4186         * config/powerpc/cygwin32.mh: delete.
4187         * config/powerpc/cygwin.mh: new file, was cygwin32.mh.
4188         * config/powerpc/cygwin32.mt: delete.
4189         * config/powerpc/cygwin.mt: new file, was cygwin32.mt.
4190         * config/powerpc/tm-cygwin32.h: delete.
4191         * config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
4192         * config/powerpc/xm-cygwin32.h: delete.
4193         * config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.
4194
4195         * rdi-share/aclocal.m4: regenerate with aclocal.
4196         * rdi-share/configure: regenerate with autoconf.
4197         * rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c, serpardr.c,
4198         unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
4199
4200 Thu Nov 12 17:19:43 1998  John Metzler  <jmetzler@cygnus.com>
4201
4202         * remote.c (remote_get_threadinfo): Support for remote
4203         multithread debugging.
4204         (remote_get_threadlist): get a partial list of threads
4205         (remote_threadlist_iterator): Step through all the threads
4206         (init_remote_threadtests): Optional builtin unit test commands.
4207
4208         * thread.c (bind_target_thread_vector): Implementa a more dynamic
4209         way of accessing target specific thread info functions than 
4210         FIND_NEW_THREADS.
4211         (target_thread_info): Function to get extended thread information.
4212
4213         * gdbthread.h: Export internal data structures corresponding to
4214         external detailed thread info response. This is more like a 'ps'
4215         command than what might be expected of host based threads. This
4216         is for embedded systems.
4217
4218 Wed Nov 11 15:47:00 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4219
4220         * procfs.c (proc_set_exec_trap): don't set PR_ASYNC or PR_FORK
4221         in the child process for UnixWare (causes processes forked by 
4222         the debuggee to hang).
4223
4224 Mon Nov  9 12:00:36 1998  Dave Brolley  <brolley@cygnus.com>
4225
4226         * config/fr30/fr30.mt: New file.
4227         * config/fr30/tm-fr30.h: New file.
4228
4229 1998-11-05  Jim Wilson  <wilson@cygnus.com>
4230
4231         * remote-vx.c (net_read_registers, net_write_registers, 
4232         vx_xver_memory, vx_resume, vx_attach, vx_detach, vx_kill): 
4233         Change errno to errno_num.
4234         * vx-share/xdr_ptrace.c (xdr_ptrace_return): Likewise.
4235         * vx-share/xdr_ptrace.h (struct ptrace_return): Likewise.
4236
4237 Thu Nov  5 08:41:33 1998  Christopher Faylor <cgf@cygnus.com>
4238
4239         * top.c (gdb_readline): Allow CRLF line termination on systems
4240         which define CRLF_SOURCE_FILES.
4241         * win32-nat.c: 1) Add thread support, 2) fix ability to attach to
4242         a running process, and 3) implement limited support for cygwin
4243         signals.
4244         (thread_rec): New function.
4245         (child_add_thread): Ditto.
4246         (child_init_thread_list): Ditto.
4247         (child_delete_thread): Ditto.
4248         (do_child_fetch_inferior_registers): Ditto.
4249         (do_child_store_inferior_registers): Ditto.
4250         (handle_output_debug_string): Ditto.
4251         (child_fetch_inferior_registers): Use do_* function to perform
4252         operation.
4253         (child_store_inferior_registers): Ditto.
4254         (child_continue): Ditto.
4255         (child_thread_alive): Ditto.
4256         (cygwin_pid_to_str): Ditto.
4257         (handle_load_dll): Reorganize, add first attempt at reading
4258         dll names from attached processes.  Change info messages to provide
4259         more information when dll is already loaded.
4260         (handle_exception): Changes mandated by new thread-aware structures.
4261         (child_wait): Track thread creation/destruction.  Handle cygwin
4262         signals.
4263         (child_create_inferior): Ditto.
4264         (child_resume): Ditto.
4265         (child_kill_inferior): Ditto.  Close child process handle to avoid a
4266         handle leak.
4267         (child_ops): Fill out child_ops fields that deal with threads.
4268         * config/i386/tm-cygwin32.h: Declare function and macro needed
4269         for converting a cygwin "pid" to a string.
4270         * config/i386/xm-cygwin32.h: define HAVE_SIGSETMASK as 0 since
4271         sigsetmask is not defined in cygwin.
4272
4273 Thu Nov  5 08:38:18 1998  Christopher Faylor <cgf@cygnus.com>
4274
4275         * win32-nat.c: Remove obsolete PPC conditionals.
4276
4277 Wed Nov  4 18:44:31 1998  Dave Brolley  <brolley@cygnus.com>
4278
4279         * configure.tgt: Add fr30-*-elf*.
4280
4281 1998-11-03  Jim Wilson  <wilson@cygnus.com>
4282
4283         * c-exp.y (parse_number): Check TARGET_LONG_LONG_BIT when setting
4284         high_bit to avoid undefined negative shift.
4285
4286 Mon Nov  2 15:26:33 1998  Geoffrey Noer  <noer@cygnus.com>
4287
4288         * configure.in: Check cygwin* instead of cygwin32*.
4289         * configure: regenerate
4290
4291 Thu Oct 29 10:04:20 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4292
4293         [Support for trace debugging: registers that were not collected.]
4294         * remote.c (remote_fetch_registers): accept 'xxxx' in the register
4295         packet, with the meaning "register value is not available".
4296         Set register_valid to -1, which will connote "no value available".
4297         * findvar.c (read_relative_register_raw_bytes): return failure if
4298         register_valid == -1.  (value_of_register): return failure if 
4299         register_valid == -1.  (read_var_value): return error if 
4300         value_of_register fails for a register variable.
4301         (value_from_register): return failure if register_valid == -1.
4302         * eval.c (evaluate_subexp_standard): return error if 
4303         value_of_register fails for a register used in an expression.
4304         * infcmd.c (do_registers_info): display "value not available"
4305         for registers for which register_valid == -1.
4306
4307         * tracepoint.c (set_raw_tracepoint): just save the filename as is
4308         from the symbol table, rather than trying to prepend the dir name.
4309         Also save the bfd section.  (tracepoints_info): use the section
4310         when looking up the function name.
4311         * tracepoint.h: add section field to tracepoint struct.
4312
4313 start-sanitize-sky
4314 Wed Oct 28 12:33:52 EST 1998  Frank Ch. Eigler <fche@cygnus.com>
4315
4316         * configure.in: Accept both -skyb- and -sky- for
4317         --with-sim-funit/gpu2 options.
4318         * configure: Rebuilt.
4319
4320 end-sanitize-sky
4321 Wed Oct 28 08:01:38 1998  Mark Alexander  <marka@cygnus.com>
4322
4323         * sparcl-tdep.c (send_resp, sparclite_serial_start,
4324         sparclite_serial_write): Use remote_timeout instead of hardcoded
4325         two second timeout.
4326         (download): Fix adjustment of a.out load addresses.
4327
4328 Wed Oct 28 12:32:58 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4329
4330         * configure.in (--enable-build-warnings): Finish rename from
4331         --enable-warnings.
4332         (enable-build-warnings): Add -Wpointer-arth, allow =* for
4333         sim/common compatibility.
4334         * configure: Re-generate.
4335
4336 Wed Oct 21 08:44:30 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4337
4338         * 29k-share/udi/udip2soc.c: Replace sys_errlist with strerror().
4339
4340 Thu Oct 22 09:56:55 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4341
4342         * config/rs6000/aix4.mh (NATDEPFILES): Move xcoffread.o from here.
4343         * config/rs6000/aix4.mt (TDEPFILES): To here.
4344
4345 Wed Oct 21 10:02:31 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4346
4347         * rdi-share/unixcomm.c: Provide definitions of SERPORT and PARPORT
4348         on BSD hosts.
4349
4350 1998-10-19  Jason Molenda  (jsm@bugshack.cygnus.com)
4351
4352         * configure.in (AM_EXEEXT): Use AC_EXEEXT instead.
4353         * configure: Regenerated.
4354
4355 Sat Oct 17 17:39:23 1998  Felix Lee  <flee@cygnus.com>
4356
4357         * core-sol2.c: #include <sys/types.h>, for sol2.7 weirdness.
4358
4359 Fri Oct 16 15:31:38 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4360
4361         * m32r-tdep.c (decode_prologue): Return failure if we reach 
4362         the end of the function without finding the end of the prologue.
4363
4364 1998-10-16  Jason Molenda  (jsm@bugshack.cygnus.com)
4365
4366         * command.c copying.c copying.awk core-aout.c core-regset.c
4367           corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c
4368           infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c
4369           symmisc.c valarith.c: Add prototypes.
4370
4371         * defs.h: Add prototype for utils.c::do_run_cleanups.
4372
4373         * gdbtypes.c: Add prototypes.
4374         (make_pointer_type): Add braces to remove nested if-else ambiguity.
4375         (make_reference_type): Ditto.
4376
4377         * printcmd.c (printf_command): Initialize 'f' and 'string' at 
4378         function startup to suppress possibly-used-before-initialized warning.
4379
4380         * remote-utils.c: Add prototypes.
4381         (sr_pollchar): Add braces to remove nested if-else ambiguity.
4382
4383         * ser-tcp.c: Add prototypes.
4384         (wait_for): Add braces to remove nested if-else ambiguity.
4385         (tcp_readchar): Ditto.
4386
4387         * ser-unix.c: Add prototypes.
4388         (get_tty_state): Don't define errno here.
4389         (hardwire_readchar): Only define 't' if we are compiling in a Cygwin
4390         environment.
4391
4392         * symtab.c: Add prototypes.
4393         (find_methods): Add braces to remove nested if-else ambiguity.
4394         (search_symbols): Set 'i' to an initial value to suppress a
4395         possibly-used-before-initialized warning.
4396
4397         * valops.c: Add prototypes.
4398         (value_cast): Set 'eltype2' to an initial value to suppress a
4399         possibly-used-before-initialized warning.
4400         (value_of_variable): Add braces to remove nested if-else ambiguity.
4401         (value_of_this): Ditto.
4402
4403         * valprint.c: Add prototypes.
4404         (print_floating): Add braces to remove nested if-else ambiguity.
4405
4406 Thu Oct 15 19:50:48 1998  Stan Shebs  <shebs@andros.cygnus.com>
4407
4408         * tm-sp64.h (SETUP_ARBITRARY_FRAME, FRAME_SPECIFICATION_DYADIC):
4409         Remove, nevermore used.
4410
4411 Thu Oct 15 16:55:00 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4412
4413         * command.c: Include "wait.h" after, rather than before, <wait.h>.
4414         "wait.h" was defining all WIF* macro's instead of filling in those
4415         that <wait.h> missed.
4416
4417 1998-10-14  Jason Molenda  (jsm@bugshack.cygnus.com)
4418
4419         * defs.h: Move _initialize_printcmd, _initialize_stack,
4420         _initialize_blockframe out of here and in to their respective .c
4421         files.
4422         * blockframe.c: Move _initialize_blockframe prototype to here.
4423         * printcmd.c: Move _initialize_printcmd prototype to here.
4424         * stack.c: Move _initialize_stack prototype to here.
4425
4426         * source.c, symtab.h: Move _initialize_source prototype to the .c
4427         file.
4428         * values.c, value.h: Move _initialize_values prototype to the .c file.
4429         * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c 
4430         file.
4431         * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype 
4432         to the .c file.
4433
4434         * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c:
4435         Standardize comments for the prototype section of these files.
4436
4437         * configure.in: Look in libc for wctype before looking for it in libc.
4438
4439 Tue Oct 13 18:56:51 1998  Felix Lee  <flee@cygnus.com>
4440
4441         * sol-thread.c (ps_pstop, etc): simple test for proc_service.h
4442         version didn't work for sol2.6; pushed it to autoconf.
4443         * configure.in (gdb_cv_proc_service_is_old): new test.
4444         * acconfig.h (PROC_SERVICE_IS_OLD): new define.
4445         * configure, config.in: regenerate.
4446
4447 1998-10-13  Jason Molenda  (jsm@bugshack.cygnus.com)
4448
4449         * blockframe.c (find_pc_sect_partial_function): Add braces to avoid
4450         possible nested-if confusion.
4451         * breakpoint.c (breakpoint_here_p): Ditto.
4452         (breakpoint_inserted_here_p): Ditto.
4453         (breakpoint_thread_match): Ditto.
4454
4455         * gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined.
4456         * gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability 
4457         prototypes.
4458
4459         * symtab.h: Add prototype for _initialize_source.
4460         * value.h: Add prototype for _initialize_value.
4461
4462         * defs.h: Include sys/types.h or stddef.h to get size_t.
4463         (make_cleanup): Add make_cleanup_func typedef and switch to using 
4464         a prototype for this function.
4465         (mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't
4466         using mmalloc.
4467
4468         * ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c
4469         dwarf2read.c dwarfread.c elfread.c eval.c exec.c infcmd.c infrun.c
4470         mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c
4471         symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c
4472         valops.c: Cast parameters passed to make_cleanup to use the new
4473         make_cleanup_func typedef.
4474
4475 Tue Oct 13 00:51:48 1998  Felix Lee  <flee@cygnus.com>
4476
4477         * sol-thread.c (ps_pstop, etc): different solaris versions have
4478         slightly different prototypes in proc_service.h; compensate.
4479
4480 1998-10-12  Jason Molenda  (jsm@bugshack.cygnus.com)
4481
4482         * Makefile.in (AWK): Unused; remove.
4483         * configure.in: Remove unused autoconf checks for MINIX, memcpy,
4484         poll, select, strings.h.
4485         * config.in: Regenerated.
4486         * configure: Regenerated.
4487
4488 1998-10-12  Jason Molenda  (jsm@bugshack.cygnus.com)
4489
4490         * configure.in: Check for sys/debugreg.h, asm/debugreg.h.
4491         * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not
4492         present.
4493
4494 Sun Oct 11 12:08:07 1998  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4495
4496         * dwarf2read.c (dwarf2_build_psymtabs_hard):  Do not adjust the
4497         address range of a compilation unit without children.
4498
4499         * mdebugread.c (parse_partial_symbols):  Fix handling of stabs
4500         continuations, use xmalloc and xrealloc.
4501
4502 Fri Oct  9 18:14:43 1998  Mark Alexander  <marka@cygnus.com>
4503
4504         * rs6000-tdep.c: Don't include tm.h twice.
4505
4506 1998-10-08  Keith Seitz  <keiths@cygnus.com>
4507
4508         * main.c (main): Remove calls to {pre,post}_add_symbol_hooks.
4509         There should be sufficient information/hooks now to eliminate
4510         this hack.
4511
4512         * exec.c (file_command): Add a new hook here to inform ui's
4513         when the exec file has changed. Adding it here allows the
4514         ui to be informed after symbol reading.
4515
4516         * gdbcore.h: Add declaration of file_changed_hook.
4517
4518 Thu Oct  8 08:40:42 1998  Mark Alexander  <marka@cygnus.com>
4519
4520         * rs6000-tdep.c (get_saved_register): Define only if
4521         USE_GENERIC_DUMMY_FRAMES is defined.
4522
4523 start-sanitize-carp
4524 Tue Oct  6 21:35:10 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4525
4526         * configure.in (--enable-targets): New config option.  Code taken
4527         from ../opcode/configure.in.
4528 start-sanitize-cygnus
4529         (--enable-carp): New config option. Overrides configure.tgt and
4530         sets gdb_target + gdb_target_cpu to carp. XXX - this is tempoary.
4531 end-sanitize-cygnus
4532         * configure: Re-generate.
4533
4534         * Makefile.in (DEPFILES): Add TARGET_OBS.
4535         (TARGET_OBS): Defined by configure.
4536
4537 start-sanitize-cygnus
4538         * config/carp/carp.mt, config/carp/tm-carp.h: Pseudo configuration
4539         for carp target. XXX - this is tempoary.
4540 end-sanitize-cygnus
4541
4542 end-sanitize-carp
4543 1998-10-06  Jason Molenda  (jsm@bugshack.cygnus.com)
4544
4545         Eliminate a few warnings from the compiler.
4546         * breakpoint.h: Add prototype.
4547         * breakpoint.c (do_enable_breakpoint): cast mem_cnt, i to (void).
4548         * configure.in: Check if strdup declaration is necessary.
4549         * configure: Regenerated.
4550         * defs.h: Add prototypes.
4551         * gdb_string.h: Only define strdup if necessary.
4552         * gdbthread.h: Add prototypes.
4553         * printcmd.c: Add prototyptes.
4554         (disassemble_command): Remove unused variable 'section'.
4555         * symtab.c: Add prototypes.
4556         * symtab.h: Include gnu-regex.h, add prototype.
4557         * thread.c: Add prototype.
4558
4559 Mon Oct  5 19:44:39 1998  Stan Shebs  <shebs@andros.cygnus.com>
4560
4561         From David Purves  <purves@apogee.com>:
4562         * stabsread.c (rs6000_builtin_type): Create a complex float instead
4563         of an error.
4564         (read_sun_floating_type): Similarly.
4565         (read_range_type): Create a complex float if self_subrange is
4566         true.
4567
4568 Fri Oct  2 19:42:31 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
4569
4570         * c-lang.c (emit_char c_printchar c_printstr), c-lang.h (c_printstr)
4571         ch-lang.c (chill_printstr chill_printchar) c-valprint.c (c_val_print)
4572         ch-valprint.c (chill_val_print) expprint.c (print_subexp) f-lang.c
4573         (f_printstr f_printchar emit_char) f-valprint.c (f_val_print) 
4574         jv-lang.c (java_printchar java_emit_char) jv-valprint.c 
4575         (java_value_print java_val_print) language.c (unk_lang_printchar 
4576         unk_lang_printstr unk_lang_emit_char) language.h (struct 
4577         language_defn LA_PRINT_STRING LA_EMIT_CHAR) m2-lang.c (m2_printstr 
4578         m2_printchar emit_char) printcmd.c (print_formatted) scm-lang.c 
4579         (scm_printstr) valprint.c (val_print_string) value.h 
4580         (val_print_string):  Add emit_char routines to language_desc struct 
4581         to allow finer control over language specific character output issues.
4582         Add character width arg to printstr routines to allow handling of 
4583         wchar_t/Unicode strings.  Fix c_printstr to handle wide characters.
4584         Supply width argument to LA_PRINT_STRING and val_print_string.
4585
4586         * jv-lang.c (java_object_type dynamics_objfile java_link_class_type
4587         get_dynamics_objfile get_java_object_type) jv-lang.h
4588         (get_java_object_type):  Make lots of things static.
4589
4590         * expprint.c (dump_prefix_expression dump_subexp):  Move opcode name
4591         printing to common routine (op_name).
4592         * (dump_subexp):  Add support for OP_SCOPE.
4593
4594 Fri Oct  2 16:25:54 1998  Stan Shebs  <shebs@andros.cygnus.com>
4595
4596         * configure.host (i[3456]86-*-windows): Remove, no longer used.
4597         * mswin: Remove directory, no longer used.
4598
4599 Fri Oct  2 18:52:20 1998  Fernando Nasser  <fnasser@cygnus.com>
4600
4601         * sol-thread.c: Fixed prototypes and calls to supply_fpregset and
4602         fill_fpregset
4603
4604 1998-10-02  Keith Seitz  <keiths@cygnus.com>
4605
4606         * remote.c (remote_interrupt): Rewrite to use remote_stop.
4607         (remote_interrupt_twice): Remove. remote_stop now handles it.
4608         (remote_stop): New function which handles interrupting the
4609         remote target so that CLUI and GUI use the same core functions
4610         to achieve the same goal.
4611         (remote_wait): Change to handle remote_stop properly.
4612         [interrupted_already]: New static global to help remote_stop.
4613         [remote_ops, extended_remote_ops]: Add remote_stop for to_stop member.
4614
4615         * target.c: Rename static function "ignore" to "target_ignore" and
4616         export it so that gdb can determin if some target vector member is
4617         actually not defined. Replace all occurances of ignore.
4618
4619         * target.h: Export target_ignore.
4620
4621 Fri Oct  2 03:51:48 1998  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4622
4623         * target.c (target_xfer_memory):  Handle requests with zero
4624         transfer length right away.
4625
4626         * values.c (unpack_double):  Set up code, length and signedness of
4627         type _after_ checking for typedef.
4628
4629 Thu Oct  1 15:39:27 EDT 1998 Frank Ch. Eigler <fche@cygnus.com>
4630
4631         * breakpoint.c (bpstat_stop_status): Do not consider an
4632         untripped watchpoint as a "hit".
4633
4634 Thu Oct  1 20:52:39 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4635
4636         * exec.c (exec_file_command), convex-tdep.c (exec_file_command),
4637         arm-xdep.c (exec_file_command), remote-rdp.c
4638         (remote_rdp_create_inferior), remote-os9k.c
4639         (rombug_create_inferior), remote-mm.c (mm_create_inferior),
4640         remote-eb.c (eb_create_inferior), remote-es.c
4641         (es1800_create_inferior), remote-rdi.c (arm_rdi_create_inferior),
4642         remote-sim.c (gdbsim_create_inferior), remote-utils.c
4643         (gr_create_inferior), remote-st.c (st2000_create_inferior),
4644         remote-nindy.c (nindy_create_inferior), remote-hms.c
4645         (hms_create_inferior), remote-e7000.c (e7000_create_inferior),
4646         remote-array.c (array_create_inferior), remote-adapt.c
4647         (adapt_create_inferior): Replace "exec" with "executable" in
4648         messages.
4649
4650 1998-09-25  Keith Seitz  <keiths@cygnus.com>
4651
4652         * rdi-share/unixcomm.c: If using cygwin32, also use the SERPORT and
4653         PARPORT defines for win32.
4654         (Unix_MatchValidSerialDevice): For cygwin32, valid serial port names
4655         start with "com", not "/dev/tty".
4656         (Unix_OpenSerial): Do not use O_NONBLOCK on cygwin32.
4657
4658         * rdi-share/devsw.c (DevSW_Close): Free the device's state 
4659         (SwitcherState) so that the device may be reopened.
4660
4661         * remote-rdi.c (mywritec): Send all output through gdb's *_unfiltered
4662         functions, ignoring non-ASCII chars, so that non-tty UI's can snarf
4663         the output from fputs_hook.
4664         (mywrite): Ditto.
4665         (arm_rdi_open): Set inferior_pid.
4666         (arm_rdi_detach): Pop the target off the target stack so that
4667         users can attach and detach multiple times.
4668         (arm_rdi_close): Close the opened device and reset inferior_pid, too.
4669
4670 1998-09-24  Jason Molenda  (jsm@bugshack.cygnus.com)
4671
4672         * configure.in: Change --enable-warnings to --enable-build-warnings.
4673         * configure: Updated.
4674
4675 1998-09-24  Jason Molenda  (jsm@bugshack.cygnus.com)
4676
4677         * configure.in (WARN_CFLAGS): Add -Wmissing-prototypes.
4678         * configure: Regenerated.
4679
4680 1998-09-24  Jason Molenda  (jsm@bugshack.cygnus.com)
4681
4682         * configure.in: Add --enable-warnings.
4683         Adjust whitespace of other --with and --enable options so that
4684         configure --help lines up correctly.
4685         * aclocal.m4: Ditto.
4686         * Makefile.in (WARN_CFLAGS): Add.  Set by configure.
4687         * configure: Regenerated.
4688
4689 Thu Sep 24 15:44:34 1998  Stan Shebs  <shebs@andros.cygnus.com>
4690
4691         * remote-rdi.c: Fix formatting, remove some commented-out code.
4692         (init_rdi_ops): Omit needless initializations.
4693
4694 Wed Sep 23 18:21:03 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4695
4696         * remote.c (remote_address_masked): New function - mask address
4697         according to REMOTE_ADDRESS_SIZE.
4698         (remote_address_size): New global.
4699         (hexnumstr): New function - convert arbitrary unsigned to hex.
4700         (remote_write_bytes, remote_read_bytes): Use hexnumstr to
4701         construct packet address.  Mask address when necessary.
4702         (_initialize_remote): Add "set remoteaddresssize" command, set
4703         REMOTE_ADDRESS_SIZE variable.
4704
4705         * NEWS: Update.
4706
4707 Wed Sep 23 18:08:52 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4708
4709         * remote.c (_initialize_remote, packet_command, print_packet):
4710         Pretty print code.
4711
4712 Wed Sep 23 12:32:54 1998    <cagney@amy.cygnus.com>
4713
4714         * remote.c (packet_command): Test REMOTE_DESC to determine if
4715         remote connection is open.
4716
4717 Tue Sep 22 22:27:24 1998  Mark Alexander  <marka@cygnus.com>
4718
4719         Patch from Dawn Perchik <dawn@cygnus.com>:
4720         * rs6000-tdep.c (pop_frame): Handle generic dummy frames.
4721         (push_arguments): Likewise.
4722         (frame_saved_pc): Likewise.
4723         (rs6000_frame_chain): Likewise.
4724         (ppc_push_return_address): New function.
4725         (get_saved_register): New function.
4726         * config/powerpc/tm-ppc-eabi.h: Add generic dummy frame macros.
4727
4728 Mon Sep 21 19:29:32 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
4729
4730         * defs.h utils.c (fputc_filtered):  New function.  Does the obvious...
4731         * jv-lang.c (java_printchar):  Fix output of chars > 0xff.  Fold
4732         java_emit_char into java_printchar.
4733         * language.h (PRINT_LITERAL_FORM):  Reformat for readability.
4734
4735 Mon Sep 21 14:38:03 1998  Catherine Moore <clm@cygnus.com>
4736
4737         * config/arm/tm-arm.h (*_BREAKPOINT): Define both little endian
4738         and big endian breakpoint patterns.
4739
4740         * arm-tdep.c (arm_break_point_from_pc):  Insert either big endian
4741         or little endian breakpoints depending upon target byte order.
4742
4743 start-sanitize-sky
4744 Sun Sep 20 23:11:41 1998  Ron Unrau  <runrau@cygnus.com>
4745
4746         * incorporate SKY-B changes (makes dual maintenance easier).
4747         * txvu-tdep.c (check_overlap): new function to guarantee that 
4748           overlays are either mapped or unmapped in their entirety.
4749         * txvu-tdep.c (compress_blockvector): compress blockvectors correctly
4750
4751 end-sanitize-sky
4752 Fri Sep 18 07:53:08 1998  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4753
4754         * sol-thread.c (sol_thread_notice_signals):  Use PIDGET when
4755         passing pid down to procfs_notice_signals.
4756
4757 Wed Sep 16 14:57:14 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
4758
4759         * stabsread.c (resolve_symbol_reference):  Return 1 on success, 0 on
4760         failure.
4761         * (define_symbol):  Check return value from resolve_symbol_reference,
4762         and drop symbol if it fails.
4763
4764 Tue Sep 15 15:24:16 1998  Stu Grossman  <grossman@fencer.cygnus.com>
4765
4766         * stabsread.c:  Make all complaints static.
4767         * Fix formatting of live range splitting code.
4768         * (resolve_symbol_reference define_symbol resolve_live_range):  Change
4769         errors to complaints so that bad live range symbols won't abort the
4770         entire symbol table.  Handle errors by aborting just the current
4771         symbol.
4772         * (ref_init):  Goes away.  Folded into ref_add().
4773         * (REF_MAP_SIZE):  Put parens around parameter so that args like
4774         `1 + 2' get handled correctly (yes, this was a real bug).
4775         * (ref_add):  Remove check for allocation failures.  Not necessary
4776         when using xrealloc().  Fix pointer arithmetic problem when clearing
4777         memory.  This and the previous patch prevent random SEGV's when there
4778         are lots of live range symbols.
4779
4780 Tue Sep 15 14:02:01 1998  Nick Clifton  <nickc@cygnus.com>
4781
4782         * remote-rdi.c: Prevent multiple attempts to close the remote
4783         connection. 
4784
4785 Tue Sep 15 10:24:17 1998  Andrew Cagney  <cagney@b1.cygnus.com>
4786
4787         * printcmd.c (examine_i_type): New static - type for instructions.
4788         (do_examine): For "i" format, specify examine_i_type.
4789         (do_examine): Call value_at_lazy instead of value_at so that
4790         examine data is only fetched if it is used.
4791         (x_command): If examine data was not fetched, set convenience
4792         variable "__" to void.
4793         (_initialize_printcmd): Initialize examine_i_type.
4794
4795 Sun Sep 13 01:34:59 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4796
4797         * blockframe.c (find_pc_sect_partial_function): use bfd section 
4798           of msymbol for end of section comparison.
4799
4800 Fri Sep 11 14:02:49 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4801
4802         * tracepoint.c: clean up several unused variables and such.
4803
4804 Fri Sep 11 12:38:34 EDT 1998  Zdenek Radouch   (radouch@cygnus.com)
4805
4806         * arm-tdep.c (arm_push_arguments): fixed frame construction
4807
4808 Thu Sep 10 20:51:23 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4809
4810         * mn10300-tdep.c (mn10300_analyze_prologue): guard against NULL.
4811
4812 Wed Sep  9 19:37:36 1998  Stan Shebs  <shebs@andros.cygnus.com>
4813
4814         * dbxread.c (IGNORE_SYMBOL): Remove definition, is never used.
4815         * os9kread.c: Remove comment mentioning IGNORE_SYMBOL.
4816
4817 Wed Sep  9 11:39:05 1998  Ron Unrau  <runrau@cygnus.com>
4818
4819         * blockframe.c(find_pc_sect_partial_function): look for min syms in
4820           the same section when trying to guess the end of a function.
4821         * symfile.c(list_overlays_command): use print_address_numeric
4822         * remote-sim.c: export simulator_command
4823 start-sanitize-r5900
4824         * tm-r5900.h: add COP0 registers
4825 end-sanitize-r5900
4826 start-sanitize-sky
4827         * txvu-tdep.c: printvector and printvector-order commands
4828         * tm-txvu.h: add COP0 registers
4829         * mips-tdep.c: use NUM_CORE_REGS
4830 end-sanitize-sky
4831
4832 1998-09-08  Jason Molenda  (jsm@bugshack.cygnus.com)
4833
4834         * breakpoint.c (bpstat_stop_status):  Declare a bp match if the
4835         current fp matches the bp->fp OR if the current fp is less than
4836         the bp->fp if we're looking at a bp_step_resume breakpoint.
4837
4838 Tue Sep  8 19:42:58 1998  Stan Shebs  <shebs@andros.cygnus.com>
4839
4840         * symtab.h (struct symtab): Remove EXTRA_SYMTAB_INFO hook,
4841         not currently used.
4842         * symfile.c (allocate_symtab): Deprecate use of
4843         INIT_EXTRA_SYMTAB_INFO here.
4844
4845 Fri Sep  4 15:33:25 1998  Stan Shebs  <shebs@andros.cygnus.com>
4846
4847         * README: Update remote debugging and testsuite info.
4848
4849 Thu Sep  3 13:50:20 1998  Mark Alexander  <marka@cygnus.com>
4850
4851         * config/mn10300/tm-mn10300.h (FP_REGNUM): Redefine to be a
4852         pseudo-register, not the same as a3.
4853         (D2_REGNUM, D3_REGNUM, A2_REGNUM, A3_REGNUM): Define.
4854         * mn10300-tdep.c (fix_frame_pointer): New function.
4855         (set_movm_offsets): Use register number macros instead of
4856         hard-coded constants.
4857         (mn10300_analyze_prologue): Fix to handle redefinition of FP_REGNUM.
4858         (mn10300_frame_chain):  Fix to handle redefinition of FP_REGNUM;
4859         use register number macros instead of hard-coded constants;
4860         add missing parameter to call of mn10300_analyze_prologue.
4861         (mn10300_frame_saved_pc): Use register number macros instead of
4862         hard-coded constants.
4863
4864 Tue Sep  1 12:04:57 EDT 1998  Zdenek Radouch   (radouch@cygnus.com)
4865
4866         Changes to support/fix ARM/ELF port.  Use MAKE_MSYMBOL_SPECIAL for
4867         both ELF and COFF;
4868         * elfread.c (elf_symtab_read): use ELF specific macro
4869         * coffread.c (coff_symtab_read): use COFF_MAKE_MSYMBOL_SPECIAL()
4870         * arm-tdep.c: separate COFF and ELF thumb processing
4871                         disable --mapcs-float processing
4872         * dwarf2read.c: Disabled building of minimal symbols
4873         * config/arm/tm-arm.h: new macros for distinguishing arm/thumb
4874         * config/mips/tm-mips.h: use ELF specific macro
4875
4876 Mon Aug 31 15:42:10 1998  Tom Tromey  <tromey@cygnus.com>
4877
4878         * top.c (context_hook): Define.
4879
4880 Tue Aug 25 13:21:58 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4881
4882         * ax-gdb.c (gen_var_ref): Allow for typedef types.
4883         (gen_cast, gen_bitfield_ref, gen_expr, gen_deref): ditto.
4884
4885 Mon Aug 24 18:29:03 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4886
4887         * tracepoint.c (collect_symbol): Handle register doubles that
4888         are stored in two registers.
4889
4890 Mon Aug 24 14:39:08 1998  Mark Alexander  <marka@cygnus.com>
4891
4892         * sh-stub.c (undoSStep): Improve comment.
4893         * sparc-tdep.c (sparc_extract_struct_value_address): Simplify to use
4894         same method on both 32-bit and 64-bit machines.
4895         * sparcl-tdep.c (sparclite_check_watch_resources): Simulator doesn't
4896         support hardware breakpoints.
4897         * config/sparc/tm-sparc.h (CALL_DUMMY): Improve comments.
4898
4899 1998-08-20  Jason Molenda  (jsm@bugshack.cygnus.com)
4900
4901         * rdi-share/Makefile.am (INCLUDES): Fix typeo.
4902         * rdi-share/Makefile.in: Regenerated.
4903
4904 1998-08-19  Jason Molenda  (jsm@bugshack.cygnus.com)
4905
4906         * rdi-share/Makefile.am: Use just `INCLUDES' not `libname_INCLUDES'.
4907         * rdi-share/Makefile.in: Regenerated.
4908
4909 1998-08-19  Keith Seitz  <keiths@cygnus.com>
4910
4911         * v850ice.c (v850ice_stop): New function to stop the ICE.
4912         (v850ice_load) Pass filename to ICE DLL.
4913         (ice_stepi, ice_nexti, ice_cont): Do not directly call the gdb
4914         commands -- let the GUI do it so that it can retain control
4915         of the display.
4916
4917 Wed Aug 19 15:53:52 1998  Anthony Green  <green@hoser.cygnus.com>
4918
4919         * i386v4-nat.c: Include sys/reg.h if present.
4920
4921 Wed Aug 19 03:07:53 1998  Richard Henderson  <rth@cygnus.com>
4922
4923         * config/alpha/alpha-linux (XDEPFILES): Build ser-tcp.
4924
4925 1998-08-18  Fernando Nasser  <fnasser@totem.to.cygnus.com>
4926
4927         * symtab.c (decode_line_1): For minimal symbol, SKIP_PROLOG to
4928         make sure we stop after the frame pointer is locaded and backtrace
4929         prints an accurate stack.  Complements changes made on Mon Jul 27
4930         10:45:56 1998
4931         (decode_line_2): Replaced the whitespace after ">" in a prompt
4932         which has been taken away by changes made on Sun Jul 19 02:11:45
4933         1998
4934
4935 1998-08-18  Keith Seitz  <keiths@cygnus.com>
4936
4937         * stack.c: Define new hook, selected_frame_level_changed_hook, which
4938         will be called whenever the selected stack level changes.
4939         (select_frame): Call the selected_frame_level_changed_hook.
4940
4941 Tue Aug 18 18:03:42 1998  Stan Shebs  <shebs@andros.cygnus.com>
4942
4943         * remote-rdi.c (arm_rdi_open): Pass serial device name to
4944         Adp_OpenDevice, and include it in error reports.
4945
4946 1998-08-18  Jason Molenda  (jsm@bugshack.cygnus.com)
4947
4948         * configure.in: Add more header files to AC_CHECK_HEADERS.
4949         * configure: Regenerated.
4950
4951         * command.c: Include wait.h or sys/wait.h if present.
4952         * inftarg.c: Ditto.
4953         * core-aout.c: Include ptrace.h or sys/ptrace.h if present, based
4954         on autoconf test.
4955         * infptrace.c: Ditto.
4956
4957         * expprint.c: Include ctype.h for isprint prototype.
4958         * i386aix-nat.c: Include sys/reg.h if autoconf says it is present.
4959         * i386v-nat.c: Include ptrace.h, sys/ptrace.h, and sys/reg.h if 
4960         present, based on autoconf test.  
4961
4962         * utils.c: Include curses.h and term.h if present.
4963         (puts_debug): Change 'carriage_return' local variable to return_p
4964         to avoid name clash.
4965
4966         * config/m68k/nm-apollo68b.h: Don't define PTRACE_IN_WRONG_PLACE,
4967         determine it with autoconf.
4968         * config/i386/nm-linux.h: Don't define NO_SYS_REG_H, determine it
4969         with autoconf.
4970         * config/i386/nm-i386sco.h: Don't define NO_PTRACE_H, determine it 
4971         with autoconf.
4972         * config/i386/nm-i386v.h: Ditto.
4973         * config/i386/nm-symmetry.h: Ditto.
4974         * config/m88k/xm-cxux.h: Ditto.
4975         * config/m88k/xm-dgux.h: Ditto.
4976
4977         * config/m68k/delta68.mh (NAT_FILE): nm-delta68.h no longer necessary.
4978         * config/m68k/nm-delta68.h: Removed.
4979
4980 Fri Aug 14 11:14:03 1998  Jeffrey A Law  (law@cygnus.com)
4981
4982         * mn10300-tdep.c (set_movm_offsets): Change second argument to
4983         be the actual args to movm itself.  All callers changed.  Only set
4984         fi->fsr.regs[x] if reg X is saved by the movm instruction.
4985
4986 Fri Aug 14 04:18:23 1998  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4987
4988         * sol-thread.c (lwp_to_thread):  Fix error message for failing
4989         td_ta_map_lwp2thr call.
4990         (ps_lgetLDT):  Mask off upper bits in GS register when comparing
4991         with selector.
4992
4993 Wed Aug 12 16:30:01 1998  Frank Ch. Eigler  <fche@cygnus.com>
4994  
4995         * remote-sim.c (simulator_command): Reset register cache after
4996         simulator command.
4997
4998 Wed Aug 12 09:00:26 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
4999
5000         * expprint.c (dump_prefix/postfix_expression):  Don't try to print
5001         type expressions.
5002
5003 Tue Aug 11 11:33:25 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
5004
5005         * c-typeprint.c (c_print_type):  Don't crash if varstring is null.
5006         * expprint.c expression.h (dump_expression):  Rename to
5007         dump_prefix_expression. 
5008         * Print out the expression in normal form.  Call print_longest
5009         instead of trying to do it ourselves.
5010         * (dump_postfix_expression):  New function, prints out the expression
5011         with indentation and better formatting and interpretation.
5012         * parse.c (parse_exp_1):  Put calls to dump expressions under ifdef
5013         MAINTENANCE_CMDS and expressiondebug variable.
5014
5015 Thu Aug 6 13:20:02 1998  Ron Unrau  <runrau@cygnus.com>
5016
5017         * infrun.c (wait_for_inferior): use stop_func_name instead of 
5018           stop_func_start to decide that no debug info exists.
5019
5020 start-sanitize-sky
5021 Thu Aug 6 13:15:05 1998  Ron Unrau  <runrau@cygnus.com>
5022
5023         * txvu-tdep.c: add VU0/1 control registers
5024         * config/mips/tm-txvu.h: ditto
5025
5026 Tue Aug 4 11:02:50 1998  Ron Unrau  <runrau@cygnus.com>
5027
5028         * txvu-tdep.c (txvu_insert_breakpoint): make sure CPU context is
5029           set to correct VU memory space.
5030           (txvu_remove_breakpoint): use this instead of txvu_breakpoint_from_pc
5031         * config/tm-txvu.h: use new track-table address
5032           Do note define BREAKPOINT_FROM_PC anymore
5033
5034 Fri Jul 31 16:06:05 1998  Ron Unrau  <runrau@cygnus.com>
5035
5036         * config/tm-txvu.h: use NUM_CORE_REGS instead of NUM_R5900_REGS
5037         * mips-tdep.c: use NUM_CORE_REGS
5038         * txvu-tdep.c: use NUM_CORE_REGS, add function prototypes
5039         (txvu_insert_breakpoints): use VIF interrupt bit
5040
5041 end-sanitize-sky
5042 Thu Jul 30 13:53:50 1998  Mark Alexander  <marka@cygnus.com>
5043
5044         * mips-tdep.c (mask_address_p): New variable.
5045         (mips_addr_bits_remove): Test mask_address_p to decide whether
5046         to mask off the upper 32 bits of addresses.
5047         (_initialize_mips_tdep): Add command to set mask_address_p.
5048         (mips_call_dummy_address): New function.
5049         * config/mips/tm-mips.h (CALL_DUMMY_ADDRESS): Redefine to
5050         call mips_call_dummy_address.
5051
5052 1998-07-29  Fernando Nasser  <fnasser@totem.to.cygnus.com>
5053
5054         * symfile.c (add_symbol_file_command): Test for the from_tty
5055         parameter and avoid query when not interactive.
5056
5057 start-sanitize-cygnus
5058 Wed Jul 29 10:39:29 1998  Jeffrey A Law  (law@cygnus.com)
5059
5060         * mn10300-tdep.c (set_movm_offsets): Do nothing for the am33
5061         registers if we are not in am33 mode.
5062         (mn10300_frame_chain, mn10300_frame_saved_pc): Similarly.
5063         (set_machine_hook): Keep track of whether or not we're in am33 mode.
5064
5065 end-sanitize-cygnus
5066 Mon Jul 27 16:11:42 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5067
5068         * tracepoint.c (remote_set_transparent_ranges): new function.
5069         Send the start and end addresses of all loadable read-only
5070         sections down to the trace target, so that it can treat them
5071         as "transparent" (ie. don't care if they were collected or not).
5072
5073 Mon Jul 27 15:38:07 1998  Mark Alexander  <marka@cygnus.com>
5074
5075         * mn10300-tdep.c (mn10300_analyze_prologue): Undo previous fix
5076         for setting frame address in optimized code; made unnecessary
5077         by compiler fixes.
5078
5079 Mon Jul 27 10:45:56 1998  Martin M. Hunt  <hunt@cygnus.com>
5080
5081         * symtab.c (decode_line_1): For minimal symbol, call 
5082         find_pc_sect_line() to make sure the line number gets set 
5083         properly.
5084         (print_symbol_info): Redeclare function void.
5085
5086 1998-07-27  Jason Molenda  (jsm@bugshack.cygnus.com)
5087
5088         * config/d10v/tm-d10v.h (REGISTER_NAMES): sp -> r15.  The
5089         stack pointer et al are synthesized from the SP_REGNUM (etc)
5090         defines and should not be mentioned in REGISTER_NAMES.
5091
5092 start-sanitize-cygnus
5093 Mon Jul 27 08:54:41 1998  Jeffrey A Law  (law@cygnus.com)
5094
5095         * mn10300-tdep.c (mn10300_frame_chain): Account for space saved
5096         by am33 register saves.
5097         (mn10300_frame_saved_pc): Similarly.
5098
5099 end-sanitize-cygnus
5100 Fri Jul 24 14:41:19 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5101
5102         * tracepoint.c (encode_actions): Treat register names and simple
5103         variable names as special cases and don't convert them to byte-
5104         codes: these things can be collected far more efficiently 
5105         without invoking the bytecode interpreter.
5106
5107 Fri Jul 24 13:32:46 1998  Mark Alexander  <marka@cygnus.com>
5108
5109         * config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
5110         work on hosts of any endianness.
5111         * config/i386/tm-i386v.h: Ditto.
5112
5113 Fri Jul 24 07:41:12 1998  Mark Alexander  <marka@cygnus.com>
5114
5115         * mn10300-tdep.c (set_movm_offsets): New helper function
5116         for mn10300_analyze_prologue.
5117         (mn10300_analyze_prologue): Simplify by factoring out common code.
5118         Fix bugs in setting frame address for optimized code.
5119         Use read_memory_nobpt instead of target_read_memory.
5120
5121 Thu Jul 23 17:01:17 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5122
5123         * tracepoint.c (collect_symbol): handle LOC_ARG case.
5124
5125 Thu Jul 23 15:07:40 1998  Dawn Perchik  <dawn@cygnus.com>
5126
5127         * sparc-tdep.c (sparc_init_extra_frame_info): Recognize when we're
5128         in a function prologue before the SAVE instruction.
5129         (sparc_frame_saved_pc): Ditto.
5130         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Add in_prologue flag.
5131
5132 Thu Jul 23 14:58:09 1998  Dawn Perchik  <dawn@cygnus.com>
5133
5134         * i386-tdep.c (i386_get_frame_setup): Recognize function
5135         prologues in code compiled with -fcheck-stack.
5136
5137 Thu Jul 23 14:49:27 1998  Dawn Perchik  <dawn@cygnus.com>
5138
5139         * remote-mips.c (remote_mips_insert_hw_breakpoint,
5140         remote_mips_remove_hw_breakpoint): New functions for hardware
5141         breakpoints on LSI targets.
5142         * config/mips/tm-embed.h (target_remove_hw_breakpoint,
5143         target_insert_hw_breakpoint): Define to call
5144         remote_mips_insert_hw_breakpoint and remote_mips_remove_hw_breakpoint,
5145         respectively.
5146
5147 start-sanitize-sky
5148 Thu Jul 23 13:00:28 1998  Ian Carmichael  <iancarm@cygnus.com>
5149
5150         * txvu-tdep.c (VU0_MEM0_WINDOW_START, VU1_MEM0_WINDOW_START)
5151         Changed to use addresses in kseg1 range.
5152
5153 end-sanitize-sky
5154 1998-07-21  Fernando Nasser  <fnasser@totem.to.cygnus.com>
5155
5156         * source.c (print_source_lines): Print "No such file or directory"
5157         just once.
5158         (directory_command): same as above; resets if user issues dir.
5159
5160 Sun Jul 19 02:11:45 1998  Martin M. Hunt  <hunt@cygnus.com>
5161
5162         * symtab.c (decode_line_2): Instead of printing a prompt
5163         and calling command_line_input() without a prompt, just
5164         call it with the proper args.  This makes the GUI work too.
5165
5166 Fri Jul 17 9:26:50 1998  Ron Unrau  <runrau@cygnus.com>
5167
5168         * blockframe.c (find_pc_sect_partial_function): allow for the possi-
5169           bility of multiple symbols at the same address when finding high.
5170         * breakpoint.c (resolve_sal_pc): if the function based section lookup
5171           fails, try getting the section from the minimal symbol table.
5172         * parse.c (write_exp_msymbol): use symbol_overlayed_address to get
5173           the LMA of a minimal symbol if unmapped.
5174         * symtab.c (find_line_symtab): change interface to return symtab 
5175           containing the best linetable found.
5176           (decode_line_1): use find_line_symtab to set val.symtab. This should
5177           improve support for source files with multiple symtabs.
5178 start-sanitize-sky
5179         * tm-txvu.h: include tm-mips64.h instead of starting from scratch.
5180 end-sanitize-sky
5181
5182 Wed Jul 15 11:51:33 1998  Keith Seitz  <keiths@cygnus.com>
5183
5184         * main.c (main): Fix violations of GNU coding standard.
5185
5186         * breakpoint.c: Export delete_command.
5187
5188         * infcmd.c: Export continue_command, stepi_command, and nexti_command.
5189
5190         * Makefile.in: Add target for v850ice.o.
5191
5192         * configure.tgt: Add cygwin32 dependencies for v850 ice.
5193
5194 Wed Jul 15 10:58:29 1998  Nick Clifton  <nickc@cygnus.com>
5195
5196         * tracepoint.c (set_raw_tracepoint): Cope with symbols that do not
5197         have an associated directory.
5198
5199 Mon Jul 13 15:21:04 1998  Mark Alexander  <marka@cygnus.com>
5200
5201         * utils.c (puts_debug): Display non-printable characters in hex
5202         instead of octal.
5203
5204 Thu Jul  9 16:16:47 1998  Jeffrey A Law  (law@cygnus.com)
5205
5206         * mn10300-tdep.c (mn10300_generic_register_names): New variable.
5207         (set_machine_hook): New function.  Copy the appropriate register
5208         names into reg_names.
5209         (_initialize_mn10300_tdep): Set up to call set_machine_hook.
5210         * tm-mn10300 (NUM_REGS): Bump to 32.
5211         (REGISTER_NAMES): Updated accordingly.
5212
5213 start-sanitize-cygnus
5214         * mn10300-tdep.c (am33_register_names): New variable.
5215         (mn10300_analyze_prologue): Handle regs saved by am33 prologues.
5216         * tm-mn10300.h (E0_REGNUM): Define.
5217 end-sanitize-cygnus
5218
5219 Tue Jul 7 7:40:13 1998  Ron Unrau  <runrau@cygnus.com>
5220
5221         * symtab.c (find_pc_sect_psymbol): allow case where textlow is 0
5222
5223 Thu Jul  2 15:57:58 1998  Frank Ch. Eigler  <fche@cygnus.com>
5224
5225         * breakpoint.c (resolve_sal_pc): Accept absence of innermost
5226         Lexical block for breakpoint resolution.
5227
5228 Thu Jul 2 10:22:00 1998  Dawn Perchik  <dawn@cygnus.com>
5229
5230         * mdebugread.c (parse_partial_symbols): Go ahead and read the .mdebug
5231         section, but just don't add a 2nd minimal symbol if this is an .mdebug 
5232         section in an ELF file.
5233
5234 1998-07-01  Jim Blandy  <jimb@zwingli.cygnus.com>
5235
5236         * Makefile.in (ax-general.o): Depend on $(defs_h) too.
5237         (ax_h): Bother to define this.
5238
5239 Mon Jun 29 19:01:18 1998  Jim Wilson  <wilson@cygnus.com>
5240
5241         * gnu-regex.c (re_comp): Add cast to char * before gettext calls.
5242
5243 Sun Jun 28 11:35:48 1998  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5244
5245         Improve support for SunPro F77.
5246         * dbxread.c (end_psymtab, process_one_symbol):  Handle minimal
5247         symbols with trailing underscore names.
5248         * minsyms.c (find_stab_function_addr):  Ditto.
5249         * dbxread.c (process_one_symbol):  Ignore N_ALIAS for now.
5250         * partial-stab.h (case N_ALIAS):  Ditto.
5251         * stabsread.c (read_sun_builtin_type):  Handle boolean types.
5252
5253 Fri Jun 26 14:03:01 1998  Keith Seitz  <keiths@cygnus.com>
5254
5255         * symtab.h (enum namespace): Add new namespaces FUNCTIONS_NAMESPACE,
5256         TYPES_NAMESPACE, METHODS_NAMESPACE, and VARIABLES_NAMESPACE used by
5257         new search_symbols.
5258         Add prototype for search_symbols and free_search_symbols.
5259
5260         * symtab.c (list_symbols): Rewrite to use new search_symbols.
5261         (file_matches): New helper function for search_symbols.
5262         (free_search_symbols): New function which frees data returned from
5263         search_symbols.
5264         (print_symbol_info): New helper function which prints info about a
5265         matched symbol to stdout. Extracted from old list_symbols.
5266         (print_msymbol_info): New helper function which prints info about
5267         a matched msymbol to stdout. Extracted from old list_symbols.
5268         (symtab_symbol_info): Extracted from old list_symbols.
5269         (variables_info): Use symtab_symbol_info.
5270         (functions_info): Use symtab_symbol_info.
5271         (types_info): Use symtab_symbol_info.
5272         (rbreak_command): Rewrite to use new search_symbols.
5273
5274 Thu Jun 25 22:38:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
5275
5276         * mips-tdep.c (mips_push_arguments): Use 128-bit stack frame
5277         alignment for inferior calls.
5278
5279 Wed Jun 24 23:17:12 1998  Mark Alexander  <marka@cygnus.com>
5280
5281         * mn10200-tdep.c (mn10200_analyze_prologue): Fix calculation
5282         of jsr target address.
5283
5284 Tue Jun 23 19:37:46 1998  Mark Alexander  <marka@cygnus.com>
5285
5286         * config/mn10200/tm-mn10200.h (SAVED_PC_AFTER_CALL):  Don't
5287         zero upper byte of address.
5288
5289 Tue Jun 23 17:32:26 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5290
5291         * rs6000-tdep.c (pop_dummy_frame): use memcpy. 
5292         (push_arguments): use memset.
5293         (various other places): fix up indentation and long lines.
5294
5295 Tue Jun 23 11:58:35 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5296
5297         * configure.in: s/lXext/-lXext/ for Jillian's change.
5298
5299 Tue Jun 23 11:14:04 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5300
5301         * source.c (find_source_lines): fix indentation.
5302
5303         * config/mips/tm-irix5.h: Modify to work better on irix 6, by
5304         making FP registers 8 bytes instead of 4.
5305         REGISTER_BYTES: redefine.  REGISTER_BYTE(): redefine.
5306         REGISTER_VIRTUAL_TYPE: redefine.  MIPS_LAST_ARG_REGNUM: redefine.
5307         * irix5-nat.c (fetch_core_registers): read 8 bytes per FP register.
5308         * mips-tdep.c (FP_REGISTER_DOUBLE): new macro to distinguish 
5309         targets with 8-byte FP registers (don't use TARGET_MIPS64).
5310         (STACK_ARGSIZE): new macro, how much space is taken up on the
5311         stack for each function argument (don't use TARGET_MIPS64).
5312         (mips_push_arguments): modify logic to work better on Irix 6
5313         (n32 ABI).
5314
5315 Tue Jun 23 12:29:53 1998  Jillian Ye  <jillian@cygnus.com>
5316
5317         * configure.in: Add -lXext to mips_extra_libs
5318         * configure: Regenerated.
5319    
5320 Sun Jun 21 09:31:12 1998  Ron Unrau  (runrau@cygnus.com)
5321
5322         * symtab.c (find_line_pc): assumed that a PC of 0 is illegal.
5323         Changed to pass PC as arg and return 1 if valid (0 otherwise).
5324         * symtab.h: Change prototype to match.
5325         * symtab.c (find_line_pc_range): Use new interface.
5326         * breakpoint.c (resolve_sal_pc): Ditto.
5327
5328 Wed Jun 17 15:50:00 1998  Ron Unrau  (runrau@cygnus.com)
5329
5330         * parse.c (target_map_name_to_register): Check target specific 
5331           aliases *first* so that it can over-ride architectural names
5332
5333 Wed Jun 17 17:13:38 1998  Said Ziouani  (saidz@park-street.cygnus.com)
5334
5335         * remote-sds.c (sds_start_remote): Fix printf call.
5336
5337 Tue Jun 16 16:32:08 1998  Mark Alexander  <marka@cygnus.com>
5338
5339         * mn10200-tdep.c (mn10200_analyze_prologue): Fix null pointer
5340         crash when in "start".
5341
5342 Tue Jun 16 14:38:40 1998  Ron Unrau  (runrau@cygnus.com)
5343
5344         * dbxread.c: reset function_start_offset after a finishing N_FUN 
5345           is seen.
5346         * remote-sim.c: allow TARGET_REDEFINE_DEFAULT_OPS to override
5347           target vectors as needed.
5348
5349 Sun Jun 14 08:46:25 1998  Ron Unrau  (runrau@cygnus.com)
5350
5351         * partial-stab.h: 'F' and 'f' type N_FUN psymbols should pass
5352           CUR_SYMBOL_VALUE as CORE_ADDR instead of long
5353         * buildsym.[ch]: export pending_blocks list
5354
5355 Sat Jun 13 13:02:32 1998  Dawn Perchik (dawn@cygnus.com)
5356
5357         * remote.c: Fix remote help string to match that of help.exp.
5358
5359 Fri Jun 12 14:22:55 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5360
5361         * configure.in (LIBS): Add -lw to the list of libraries if needed.
5362
5363 Thu Jun 11 15:05:10 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5364
5365         * btowc.c: Removed.
5366         * configure.in: Don't see if we need to replace btowc().
5367         * Makefile.in: Don't include LIBOBJS.
5368         * configure: Regenerated.
5369         * gnu-regex.c (regex_compile): Only support i18n [:foo:] if
5370         we have btowc().
5371
5372 Wed Jun 10 15:39:14 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
5373
5374         * c-exp.y:  Fix problems with parsing "'foo.bar'::func".  
5375         Some languages allow symbols with dots.
5376
5377         * gdbtypes.c (check_stub_method):  Cosmetic.  Use more descriptive
5378         names for parameters.
5379
5380         * jv-exp.y:  Parser now accepts primitive types.
5381         * (parse_number):  Use correct ifdef for scanf long double support.
5382         * jv-lang.c (java_array_type):  Initial cut at array support.
5383
5384         * language.c language.h (set_language):  Now returns previous language.
5385
5386         * symtab.c (find_methods):  Make static.  Cosmetic changes, including
5387         indentation, and adding descriptive comments.  Move local variable 
5388         defs into the block they are used in.
5389         * Don't call check_stub_method any more.  Use gdb_mangle_name to
5390         generate the full method name.  find_method doesn't need all the other
5391         goobldegook that check_stub_method does.
5392         * (gdb_mangle_name):  Use more descriptive names for parameters.  Fix
5393         comment.
5394         * (lookup_partial_symbol lookup_block_symbol):  Check for java to
5395         ensure we can find mangled names.
5396         * (decode_line_1):  Move local variable defs into the block they are
5397         used in.  (Improves code readability.)
5398
5399 Wed Jun 10 18:04:35 1998  Frank Ch. Eigler  <fche@cygnus.com>
5400  
5401         * gdbtypes.c (get_discrete_bounds): Assign unsigned type flag for
5402         all-positive enum.
5403         (create_set_type): Ditto for all-positive set values.
5404         * values.c (unpack_field_as_long): Check for typedef in struct
5405         field unpacking.
5406
5407 Wed Jun 10 14:06:05 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5408
5409         * configure.in: Add some tests for gnu-regex.c's benefit.
5410         See if btowc() function is provided in C library.
5411         * configure, config.in: Regenerated.
5412         * Makefile.in (CLIBS, CDEPS): Add @LIBOBJS@ to build btowc.c
5413         if necessary.
5414         * btowc.c: New file.
5415
5416         * gnu-regex.c: Reorder wchar.h and wctype.h includes for Solaris'
5417         benefit.
5418         Drop namespace preserving defines for now.
5419
5420 Wed Jun 10 11:53:42 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5421
5422         * gnu-regex.c: Include "gnu-regex.h", not "regex.h".
5423
5424 Wed Jun 10 11:34:07 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5425
5426         * gnu-regex.c, gnu-regex.h: Change LGPL license to GPL license
5427         to stay consistent with the rest of GDB.
5428
5429 Wed Jun 10 11:27:39 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5430
5431         * gnu-regex.c, gnu-regex.h: Update to current FSF (glibc) versions.
5432
5433 Wed Jun 10 10:58:18 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5434
5435         * printcmd.c (disassemble_command): move overlay mapping code
5436         "up" into find_pc_partial_function.
5437         * blockframe.c (find_pc_partial_function): adjust start address
5438         and end address for overlays (mapped vs. unmapped addresses),
5439         so that all callers of this function may benefit.
5440         * m32r-tdep.c (m32r_skip_prologue): adjust indentation.
5441
5442 Mon Jun  8 16:08:10 1998  Ron Unrau  <runrau@cygnus.com>
5443
5444         * objfiles.c (add_to_objfile_sections): All targets to define
5445           TARGET_KEEP_SECTION to permit them to retain bfd sections that
5446           GDB would otherwise have discarded.
5447
5448 Fri Jun  5 13:56:19 1998  Doug Evans  <devans@canuck.cygnus.com>
5449
5450         * dbxread.c (read_dbx_symtab): Don't lower texthigh for last psymtab.
5451
5452 Thu Jun  4 18:35:04 1998  Stan Shebs  <shebs@andros.cygnus.com>
5453
5454         * remote.c (init_extended_remote_ops): Make extended_remote_ops
5455         by copying from remote_ops, move it and init_remote_ops to
5456         usual place at end of file, remove "void" from arg lists.
5457
5458 Thu Jun  4 17:51:06 1998  Mark Alexander  <marka@cygnus.com>
5459
5460         * sparc-tdep.c (sparc_fix_call_dummy): Byte-swap the call dummy
5461         on bi-endian machines.
5462         (sparc_extract_return_value): Handle values smaller than int on
5463         machines with little-endian data.
5464         (sparc_target_architecture_hook): Set bi_endian flag.
5465
5466 Thu Jun  4 12:14:48 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5467
5468         * printcmd.c (disassemble_command): Fix off-by-one error for
5469         disassembling functions in unmapped overlay sections.
5470
5471 Thu Jun  4 10:15:03 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5472
5473         * remote.c: merged.
5474
5475         - Jim Blandy  <jimb@zwingli.cygnus.com>
5476         (print_packet, remote_packet_command): New functions.
5477         (_initialize_remote): Register the remote-packet command.
5478         - David Taylor  <taylor@texas.cygnus.com> 
5479         (_initialize_remote): remote-compare is now
5480         compare-sections.
5481         - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5482          (remote_compare_command): added warning, issued in case
5483         of mismatch only.
5484
5485 Thu Jun  4 08:25:38 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5486
5487         * remote.c (remote_compare_command): New function, new command.
5488         Compare object file binary image with corresponding memory on
5489         remote target.  Report differences.
5490
5491 Tue Jun  2 19:05:04 1998  Mark Alexander  <marka@cygnus.com>
5492
5493         * sparc-tdep.c (sparc_target_architecture_hook): Set target
5494         byte order only when it's selectable.
5495
5496 Tue Jun  2 02:01:56 1998  Mark Alexander  <marka@cygnus.com>
5497
5498         * sparc-tdep.c (sparc_target_architecture_hook): New function to
5499         set endianness based on machine type.
5500         (_initialize_sparc_tdep): Initialize target_architecture_hook.
5501         (sparc_print_register_hook): Print PSR and FPSR in fancy format
5502         on 32-bit machines.
5503         * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Redefine to
5504         call sparc_print_register_hook instead of using inline code.
5505         * config/sparc/tm-sp64.h (PRINT_REGISTER_HOOK): Remove.
5506
5507 Thu May 28 17:19:14 1998  Keith Seitz  <keiths@cygnus.com>
5508
5509         * main.c (main): Check for NULL from getenv on CYGWIN32.
5510
5511 Thu May 28 09:41:44 1998  Nick Clifton  <nickc@cygnus.com>
5512
5513         * monitor.c (monitor_vsprintf): Handle %%.  Patch courtesy of
5514         Felix Lee (flee@cygnus.com)
5515
5516 Thu May 28 00:27:35 1998  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5517
5518         * mips-tdep.c (mips_push_dummy_frame):  Fix calculation of
5519         PROC_REG_OFFSET and PROC_FREG_OFFSET.
5520
5521 Mon Apr 27 14:37:49 1998  Andrew Cagney  <cagney@b1.cygnus.com>
5522
5523         * config/v850/tm-v850.h (REGISTER_BYTE): FP_REGNUM and
5524         FP_RAW_REGNUM use the same register location.
5525
5526         * v850-tdep.c (v850_scan_prologue): Use FP_RAW_REGNUM instead of
5527         FP_REGNUM.
5528         (v850_frame_chain): Ditto.
5529
5530         * config/v850/tm-v850.h (REGISTER_NAMES): Add "fp".
5531         (NUM_REGS): Update.
5532         (FP_REGNUM): Update.
5533         (FP_RAW_REGNUM): Define.
5534
5535 Wed May 27 14:22:31 1998  Keith Seitz  <keiths@cygnus.com>
5536
5537         * main.c (main): Convert the path returned from getenv to a posix
5538         path on cygwin32 hosts.
5539
5540 Mon May 25 13:31:27 1998  Keith Seitz  <keiths@cygnus.com>
5541
5542         * remote.c (remote_open_1): If an error occurs starting the remote, 
5543         pop the target AND return.
5544
5545 Sat May 23 02:23:09 1998  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5546
5547         * dwarf2read.c (read_subroutine_type):  Set TYPE_FLAG_PROTOTYPED
5548         on C++ functions.
5549         * valops.c (value_arg_coerce):  Add new argument to indicate whether
5550         the function has a prototype, handle integer and float promotions
5551         accordingly.
5552         (call_function_by_hand):  Always call value_arg_coerce, pass down
5553         prototype information.
5554
5555 Fri May 22 10:56:36 1998  John Metzler  <jmetzler@cygnus.com>
5556
5557         * remote.c (_initialize_remote): Typo extended__remote
5558
5559 Thu May 21 13:14:25 1998  John Metzler  <jmetzler@cygnus.com>
5560
5561         * gnu-nat.c (init_gnu_ops): Initialization of target ops by assignment.
5562         (_initialize_gnu_nat): Call new init
5563         * mac-nat.c (init_child_ops): Ditto.
5564         (_initialize_mac_nat): Ditto.
5565         * monitor.c (init_base_monitor_ops): Ditto.
5566         (_initialize_remote_monitors): Ditto.
5567         * ppc-bdm.c (init_bdm_ppc_ops): Ditto.
5568         (_initialize_bdm_ppc): Ditto.
5569         * remote-adapt.c (init_adapt_ops): Ditto.
5570         (_initialize_remote_adapt): Ditto.
5571         * remote-array.c (init_array_ops): Ditto.
5572         (_initialize_array): Ditto.
5573         * remote-bug (init_bug_ops): Ditto.
5574         (_initialize_remote_bug): Ditto.
5575         * remote-e7000.c (init_e7000_ops): Ditto.
5576         (_initialize_remote_e7000): Ditto.
5577         * remote-eb.c (init_eb_ops): Ditto.
5578         (_initialize_remote_eb): Ditto.
5579         * remote-es.c (init_es1800_ops): Ditto.
5580         (init_es1800_child_ops): Ditto.
5581         (_initialize_es1800): Ditto.
5582         * remote-hms.c (init_hms_ops): Ditto.
5583         (_initialize_remote_hms): Ditto.
5584         * remote-mm.c (init_mm_ops): Ditto.
5585         (_initialize_remote_mm): Ditto.
5586         * remote-nindy.c (init_nindy_ops): Ditto.
5587         (_initialize_nindy): Ditto.
5588         * remote_nrom.c (init_nrom_ops): Ditto.
5589         (_initialize_remote_nrom): Ditto.
5590         * remote-os9k (init_rombug_ops): Ditto.
5591         (_initialize_remote_os9k): Ditto.
5592         * remote-rdi.c (init_rdi_ops): Ditto.
5593         (_initialize_remote_rdi): Ditto.
5594         * remote-rdp.c (init_remote_rdp_ops): Ditto.
5595         (_initialize_remote_rdp): Ditto.
5596         * remote-sds.c (init_sds_ops): Ditto.
5597         (_initialize_remote_sds): Ditto.
5598         * remote-sim.c (init_gdbsim_ops): Ditto.
5599         (_initialize_remote_sim): Ditto.
5600         * remote-st.c (init_st2000_ops): Ditto.
5601         (_initialize_remote_st2000): Ditto.
5602         * remote-udi.c (init_udi_ops): Ditto.
5603         (_initialize_remote_udi): Ditto.
5604         * remote-vx.c (init_vx_ops): Ditto.
5605         (init_vx_run_ops): Ditto.
5606         (_initialize_vx): Ditto.
5607         * remote.c (init_remote_ops): Ditto.
5608         (init_extended_remote_ops): Ditto.
5609         (_initialize_remote): Ditto.
5610         * sparcl-tdep.c (init_sparclite_ops): Ditto.
5611         (_initialize_sparcl_tdep): Ditto.
5612         * v850ice.c (init_850ice_ops): Ditto.
5613         (_initialize_v850ice): Ditto.
5614         * win32-nat.c (init_child_ops): Ditto.
5615         (_initialize_inftarg): Ditto.
5616
5617 1998-05-21  Jim Blandy  <jimb@zwingli.cygnus.com>
5618
5619         * ax-gdb.c (const_var_ref): Don't handle function names.  I don't
5620         want to implement all the "usual unary conversion" rules for
5621         constants.
5622         (gen_usual_unary): Turn "function" values into "pointer to
5623         function" values, in accordance with ANSI.
5624         (gen_deref): Don't do the usual unary conversions here.  Let the
5625         caller do it.  Note that dereferencing a function pointer yields
5626         a function designator, which we call an rvalue, not an lvalue.
5627         (gen_address_of): Handle functions specially.
5628         (gen_struct_ref): Perform the usual unary conversions before
5629         calling gen_deref.
5630         (gen_expr): In case for the prefix '*' operator, call
5631         gen_usual_unary manually.
5632
5633 Wed May 20 15:29:41 1998  Gavin Koch  <gavin@cygnus.com>
5634
5635         * mips/tm-tx39.h (MIPS_DEFAULT_FPU_TYPE): Defined as MIPS_FPU_NONE.
5636         * mips/tm-tx39l.h: Same.
5637
5638 Wed May 20 10:12:11 1998  John Metzler  <jmetzler@cygnus.com>
5639
5640         * m32r-tdep.c (decode_prologue): Handle frames compiled with -Os.
5641         Split out as separate function called by skip prologue and scan
5642         prologue. new formula handles optimization in which the prologue
5643         is interleaved with the body of the function. Also recognizes new
5644         variations of prologue encoding.  Use of frame pointer is
5645         essential to debugging, -fno-omit-frame-pointer
5646         (m32r_skip_prologue): Call decode prologue, ignore line info
5647         (m32r_scan_prologue): Call decode prologue, ignore line info.
5648
5649 Tue May 19 17:23:54 1998  John Metzler  <jmetzler@cygnus.com>
5650
5651         * w89k-rom.c (_initialize_w89k): Call new init function
5652         (init_w89k_cmds): Convert to dynamic initialization of monitor_ops 
5653         data structure for forward compatability with additions to the
5654         data structure.
5655         * dbug-rom.c (_initialize_dbug_rom): ditto
5656         (init_dbug_cmds): ditto
5657         * m32r-rom.c (_initialize_m32r_rom): ditto
5658         (init_m32r_cmds): ditto
5659
5660 Tue May 19 14:54:11 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5661
5662         * tracepoint.c (memrange_cmp): use const void * args to avoid
5663         ANSI compiler warnings.
5664
5665 1998-05-19  Jim Blandy  <jimb@zwingli.cygnus.com>
5666
5667         * ax-gdb.c (gen_fetch, gen_var_ref, gen_deref, find_field,
5668         gen_bitfield_ref, gen_expr): Call error, not abort.
5669         * ax-general.c (read_const, generic_ext, ax_trace_quick,
5670         ax_label, ax_const_d, ax_reg, ax_print): Same.
5671
5672         * tracepoint.c: Remove the $(...) syntax for memranges.
5673         (validate_actionline, encode_actions, trace_dump_command): Remove
5674         clauses for the $(...) syntax.
5675         (parse_and_eval_memrange): Function deleted.
5676         (_initialize_tracepoint): Update function description. 
5677
5678         * ax-gdb.c (_initialize_ax_gdb): Make the "agent" command a
5679         subcommand of "maintenance", as it should have been from the
5680         beginning.  #include "gdbcmd.h", to get the declaration for
5681         maintenancelist.
5682         * Makefile.in: Document that dependency.
5683
5684 Tue May 19 12:00:58 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5685
5686         * tracepoint.c (get_tracepoint_by_number): new function, to access
5687         traceframe_number for use of the GUI.
5688
5689         * tracepoint.h: added prototype for get_traceframe_number.
5690
5691 Mon May 18 13:34:27 1998  Keith Seitz  <keiths@cygnus.com>
5692
5693         * dbxread.c (process_one_symbol): If block addresses are relative to
5694         function start addresses, reset function_start_address whenever a new
5695         source file is seen.
5696
5697 Mon May 18 13:04:27 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5698
5699         * tracepoint.c (get_tracepoint_by_number): make sure to advance
5700         arg pointer even if we fail to parse a useful number.  Otherwise,
5701         since this function is called in a loop, it may loop forever!
5702         Also change strtol call to allow arbitrary radix.
5703         (map_args_over_tracepoints (and other places)): add QUIT; call
5704         to loop, to allow breakout using control-C.  Not all loops were
5705         analyzed to make sure they could terminate cleanly, but even
5706         terminating with a messed-up tracepoint list would be better 
5707         than not terminating at all!
5708         (tdump_command): check to see if we're connected to a trace-
5709         capable target (currently only "remote") before doing anything 
5710         else.
5711
5712 Sat May 16 22:21:48 1998  Frank Ch. Eigler  <fche@cygnus.com>
5713
5714         * config/d30v/tm-d30v.h (INIT_FRAME_PC_FIRST): Fill in PC into
5715         frame struct before extracting saved register offsets.
5716
5717 Fri May 15 22:47:45 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5718
5719         * tracepoint.c (encode_actions): fix typo in printf format string.
5720
5721 1998-05-15  Jim Blandy  <jimb@zwingli.cygnus.com>
5722
5723         Implement a few more tracing operators: ^ | & ~ !
5724         * ax-gdb.c (gen_integral_promotions, gen_logical_not,
5725         gen_complement): New functions.
5726         (gen_binop): New argument MAY_CARRY, indicating whether we need to
5727         correct the upper bits of the value after performing the
5728         operation.  Callers changed.
5729         (gen_expr): Handle BINOP_BITWISE_AND, BINOP_BITWISE_IOR, and
5730         BINOP_BITWISE_XOR here as well, by calling gen_binop.  Handle
5731         UNOP_LOGICAL_NOT, UNOP_COMPLEMENT.
5732
5733         * ax-gdb.c (gen_conversion): Reworked to avoid some unnecessary
5734         sign extension.
5735
5736         * ax-gdb.c (gen_usual_arithmetic): Renamed from gen_usual_binary,
5737         to match the ANSI C standard better.  Callers changed.
5738
5739         * ax-gdb.c (gen_traced_pop): Add prototyped declaration.
5740
5741 Fri May 15 18:18:38 1998  David Taylor  <taylor@texas.cygnus.com>
5742
5743         * tracepoint.c (stringify_collections_list): return a collection
5744         of strings rather than a single string.
5745         (free_actions_list): new function.
5746         (encode_actions): process collection of strings returned by
5747         stringify_collections_list.
5748
5749 1998-05-15  Jim Blandy  <jimb@zwingli.cygnus.com>
5750
5751         * ax-gdb.c (gen_traced_pop): New function.
5752         (gen_expr): Call it for comma operator.
5753         (gen_trace_for_expr): Call it, instead of writing it out.
5754
5755         Add facilities for sending arbitrary packets to the remote agent.
5756         There are a bunch of improvements to make (make it generic; handle
5757         'O' replies properly), but I just want to get this onto the branch.
5758         * remote.c (print_packet, remote_packet_command): New functions.
5759         (_initialize_remote): Register the remote-packet command.
5760
5761 Thu May 14 17:52:31 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5762
5763         * tracepoint.c: move actionline_type definition to tracepoint.h.
5764         (validate_actionline): make non static.
5765
5766         * tracepoint.h: move actioline_type definition  from tracepoint.c.
5767         (validate_actionline) moved prototype from tracepoint.c.
5768
5769 Thu May 14 11:49:18 1998  David Taylor  <taylor@texas.cygnus.com>
5770
5771         * tracepoint.c (validate_actionline): add additional error
5772         checking, remove some dead code.
5773         (encode_actions): additional cleanups.
5774         (trace_find_command): remove some dead code.
5775         (trace_find_pc_command): ditto.
5776         (trace_find_tracepoint_command): ditto.
5777         (trace_find_line_command): ditto.
5778         (trace_find_range_command): ditto.
5779         (trace_find_outside_command): ditto.
5780
5781 Thu May 14 5:51:00 1998  Ron Unrau  <runrau@cygnus.com>
5782
5783         * symtab.c (decode_line_1): set section for "break *<addr>"
5784
5785 Wed May 13 20:58:02 1998  Mark Alexander  <marka@cygnus.com>
5786
5787         * corefile.c (reopen_exec_file): Reopen the exec file if
5788         it has changed.
5789
5790 Wed May 13 15:22:02 1998  Mark Alexander  <marka@cygnus.com>
5791
5792         * sparc-tdep.c (fetch_instruction): New function.
5793         (single_step, sparc_init_extra_frame_info, examine_prologue):
5794         Use fetch_instruction instead of read_memory_integer
5795         to ensure that instructions are always read as big-endian.
5796
5797 Wed May 13 14:42:21 1998  Ian Lance Taylor  <ian@cygnus.com>
5798
5799         * configure.in: Add AC_FUNC_ALLOCA.
5800         * defs.h: Check HAVE_ALLOCA_H rather than sparc.  Add _AIX pragma
5801         alloca.
5802         * configure: Rebuild.
5803         * Makefile.in (jv-lang.o, jv-typeprint.o, jv-valprint.o): New
5804         targets.
5805
5806 Wed May 13 11:19:08 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5807
5808         * tracepoint.c (trace_command): Remove old diagnostic code that was
5809         preventing tracepoints from being defined with a full-path filename.
5810
5811 Tue May 12 13:17:35 1998  Frank Ch. Eigler  <fche@cygnus.com>
5812
5813         * stabsread.c (read_one_struct_field): Check for typedef in type
5814         tree before clearing bitfield information.
5815
5816 1998-05-11  Jim Blandy  <jimb@zwingli.cygnus.com>
5817
5818         * ax-gdb.c (gen_binop): New function, based on gen_mul, to replace
5819         gen_mul and gen_div, and handle `%' op as well.  Correctly tests
5820         type of arguments.
5821         (gen_expr): Factor out common code in binary arithmetic operators.
5822         Add support for `%'.
5823         (gen_mul, gen_div): Removed.
5824
5825 Thu May  7 14:49:38 1998  Bob Manson  <manson@charmed.cygnus.com>
5826
5827         * config/sparc/tm-sp64.h (CALL_DUMMY): Store and retrieve
5828         %o0-%o5 as 64-bit values; compensate for stack bias.
5829         (USE_STRUCT_CONVENTION): We only pass pointers to structs
5830         if they're larger than 32 bytes.
5831         (REG_STRUCT_HAS_ADDR): Ditto.
5832
5833         * sparc-tdep.c (sparc_init_extra_frame_info): Use read_sp()
5834         instead of read_register. If the target is a sparc64 and the frame
5835         pointer is odd, compensate for the stack bias.
5836         (get_saved_register): Use read_sp().
5837         (DUMMY_STACK_REG_BUF_SIZE): Use FP_REGISTER_BYTES.
5838         (sparc_push_dummy_frame): Use read_sp()/write_sp(). On sparc64,
5839         save the PC, NPC, CCR, FSR, FPRS, Y and ASI registers.
5840         (sparc_frame_find_saved_regs): Use read_sp(). Read the PC, NPC,
5841         CCR, FSR, FPRS, Y and ASI registers from the frame, if it's a
5842         dummy frame.
5843         (sparc_pop_frame): Use write_sp(). If the target is a sparc64 and
5844         the FP is odd, compensate for stack bias.
5845         (sparc_store_return_value): Right-justify the return value before
5846         writing it to %o0.
5847         (sparc_fix_call_dummy): Don't NOP out part of the call dummy on
5848         sparc64.
5849         (sparc64_read_sp, sparc64_read_fp, sparc64_write_sp,
5850         sparc64_write_fp, sp64_push_arguments,
5851         sparc64_extract_return_value): New functions to support the
5852         sparc64 ABI.
5853
5854         * dwarfread.c (handle_producer): Set processing_gcc_compilation to
5855         the right version number.
5856
5857         * dwarf2read.c (read_file_scope): Assume we're processing
5858         GCC2 output.
5859
5860 Wed May  6 16:34:03 1998  Jeffrey A Law  (law@cygnus.com)
5861
5862         * somsolib.c: Include gdb_stat.h.
5863
5864 Mon May  4 18:34:01 1998  David Taylor  <taylor@texas.cygnus.com>
5865
5866         * ax-gdb.c (gen_mul): new function; (gen_div): new function;
5867         (gen_expr): add support for * and / operators, call gen_mul and
5868         gen_div as appropriate.
5869
5870 Mon May  4 16:24:22 1998  Mark Alexander  <marka@cygnus.com>
5871
5872         * defs.h (make_run_cleanup): Declare.
5873         * solib.c (find_solib): Pass correct number of arguments to
5874         make_run_cleanup.
5875
5876 Mon May  4 07:08:25 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
5877
5878         * tracepoint.c (trace_actions_command): actions command must set
5879         step_count to zero (in case previous actions have set it but the
5880         new set does not).
5881
5882 Sat May  2 09:35:07 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
5883
5884         * ocd.h:  Add new flags, function codes, and processor types to 
5885         support new Wiggler capabilities.
5886         * (ocd_write_bytes_size):  New function to allow atomic writes of
5887         memory in sizes larger than a byte.
5888
5889         * ser-unix.c (baudtab):  Add 57600, 115200, 230400, and 460800 baud.
5890
5891 Fri May  1 19:51:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
5892
5893         * stabsread.c (read_one_struct_field): Do not override supplied
5894         bitfield size for a range type value.
5895
5896         * gdbtypes.c (create_range_type): For a range with positive 
5897         lower limit, declare range type as unsigned.
5898
5899 Fri May  1 10:58:34 1998  John Metzler  <jmetzler@cygnus.com>
5900
5901         * monitor.c: Turn off debug
5902
5903 Fri May  1 09:29:56 1998  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5904
5905         * breakpoint.c (delete_command):  Skip internal breakpoints when
5906         all breakpoints are requested.
5907
5908         * stabsread.c (define_symbol):  Record parameter types from Sunpro
5909         function stabs in the TYPE_FIELDS of the function type.
5910
5911 Thu Apr 30 15:59:54 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5912
5913         * Makefile.in (config-check-targets, config-check-hosts): Removed.
5914
5915 1998-04-30  Paul Eggert  <eggert@twinsun.com>
5916
5917         * Makefile.in (maintainer-clean):
5918         Don't get ahead of yourself and delete Makefile
5919         before running `make'.
5920         (local-maintainer-clean, do-maintainer-clean): New rules.
5921
5922 Wed Apr 29 14:02:59 1998  David Taylor  <taylor@texas.cygnus.com>
5923
5924         * ax-gdb.c (gen_add): when adding a pointer and an int, use
5925         the size of the pointer, not the int (typo) to decide how
5926         to extend the result.
5927
5928 Wed Apr 29 10:20:40 1998  John Metzler  <jmetzler@cygnus.com>
5929 start-sanitize-vr4xxx
5930
5931         * nec4102rom.c: New file implements ROM monitor adapter for
5932         nec-vr4102 board.  This board hosts the vr4111 chip.  This file
5933         required extensions to the monitor_ops structure, hooks for wait
5934         filter, new flags. This version does not support more than one
5935         breakpoint and resuming after a breakpoint in 16 bit mode is
5936         completely disfunctional.  
5937 end-sanitize-vr4xxx
5938
5939         * monitor.h: Defined additional hooks for dmpregs, configure_hooks
5940         and wait_filter. These additions require that all ROM monitor
5941         interfaces be recoded to initialize monitor ops using assignments
5942         rather than static structure initialization.  Added new bits to
5943         flags MO_EXACT_DUMPADDR, MO_HAS_BLOCKWRITES.
5944
5945         * monitor.c (RDEBUG): Conditional tracing throughout the file.
5946         (fromhex): Now recognized upper cse hex digits
5947         (monitor_printf_noecho):
5948         (monitor_readchar): Tracing interferes with input timing.
5949         (monitor_open): Register different memory write functions with
5950         dcache_init if MO_HAS_BLOCKWRITES.
5951         (flush_monior_dcache): Added as an additional utilty.
5952         (monitor-resume): Call continue hook if one has been supplied.
5953         (monitor_wait_filter): New function Factored out of monitor wait
5954         and used if alternate wait-filter has not been provided.
5955         (monitor_wait): call alternate wait filter if provided.  Call
5956         monitor_dump_regs, a new function factored out from inline code.
5957         (monitor_dump_block): A new function used as a utility when
5958         monitors must dump several blocks of registers using different
5959         commands.
5960         (monitor_dump_regs): Call alternate function if provided. Uses new
5961         hook in monitor.h.
5962         (monitor_write_memory): Engage previouly added hook
5963         MO_FILL_USES_ADDR.
5964         (monitor_write_even_block): new function supports writing long
5965         blocks of 4byte words.
5966         (longlongendswap): new internal function
5967         (monitor_write_memory_longlongs): new function writes large blocks
5968         using command to enter a long long.
5969         (monitor_write-memory_block): new Function figures out which block
5970         mod to use.
5971         (monitor_read_memory): Can now handle dump formats in which the bytes 
5972         preceeding the requested data is not printed.
5973
5974 Tue Apr 28 19:41:33 1998  Tom Tromey  <tromey@cygnus.com>
5975
5976         * tracepoint.c (memrange_cmp): Another typo fix; `memrbnge' ->
5977         `memrange'.
5978
5979         * tracepoint.c (memrange_cmp): Fixed typo in function intro.
5980
5981 Tue Apr 28 17:41:20 1998  Philippe De Muyter  <phdm@macqel.be>
5982
5983         * symfile.c (overlay_auto_command): Add forgotten parameter
5984         definitions.
5985         (overlay_manual_command, overlay_off_command): Likewise.
5986         (overlay_load_command): Likewise.
5987         * tracepoint.c (memrange_cmp): Parameters have type void *, not
5988         struct memrange *.
5989
5990 Tue Apr 28 11:08:25 1998  John Metzler  <jmetzler@cygnus.com>
5991
5992         * rom68k-rom.c (_initialize_rom68k): Fix unresolved init_rom_68kcmds.
5993
5994 Mon Apr 27 14:32:21 1998  Mark Alexander  <marka@cygnus.com>
5995
5996         * config/sparc/tm-sparc.h (CALL_DUMMY): Shorten it drastically,
5997         make it work on the simulator.
5998         (FIX_CALL_DUMMY): Convert to function call instead of inline code.
5999         (sparc_fix_call_dummy): Declare.
6000         * sparc-tdep.c (sparc_fix_call_dummy): New function, taken from
6001         old FIX_CALL_DUMMY macro, with additional fixes for simulator.
6002         (sparc_push_dummy_frame): Set registers differently on simulator
6003         to prevent corrupted register window save areas.
6004
6005 Mon Apr 27 13:46:40 1998  John Metzler  <jmetzler@cygnus.com>
6006
6007         * rom68k-rom.c (_initialize_rom68k, init_rom68k_cmds):
6008         Convert all static initializations of monitor ops structures to
6009         executable initializations in order that additions to the data
6010         structure definition can me made without repeating this editing
6011         exercise.                                            
6012         * abug-rom.c (_initialize_abug_rom, init_abug-cmds): Ditto.
6013         * cpu32bug-rom.c (_initialize_cpu32bug_rom, init_cpu32bug_cmds): Ditto.
6014         * mon960-rom.c (initialize_mon960, init_mon960_cmds): Ditto.
6015         * op50-rom.c (initialize_op50n, init_op50n_cmds): Ditto.       
6016         * ppcbug-rom.c (_initialize_ppcbug_rom, init_ppc_cmds): Ditto.
6017         * sh3-rom.c (_initialize_sh3_rom, init_sh3_cmds): Ditto.
6018         * sparclet-rom.c (_initialize_sparclet, init_sparclet_cmds): Ditto.
6019         * remote-est.c (_initialize_est, init_est_cmds): Ditto.
6020         * remote-hms.c ( _initialize_remote_hms, init_hms_cmds): Ditto.
6021
6022 Mon Apr 27 10:43:04 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6023
6024         * gdb_string.h (strdup): Don't specify arguments in prototype.
6025
6026 Sun Apr 26 07:57:21 1998  Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6027
6028         * rs6000-nat.c (vmap_ldinfo):  Issue warning instead of error if
6029         fstat on ldinfo_fd fails.  Use objfile->obfd instead of vp->bfd
6030         to check for reference to the same file.
6031
6032         * target.c (target_read_string):  Handle string transfers at the
6033         end of a memory section gracefully.
6034
6035 Fri Apr 24 17:18:56 1998  Geoffrey Noer  <noer@cygnus.com>
6036
6037         * Makefile.in: enable EXEEXT setting
6038
6039 Fri Apr 24 11:53:49 1998  David Taylor  <taylor@texas.cygnus.com>
6040
6041         * tracepoint.c (add_local_symbols): change type of type from
6042         char to int so that type shows up as 'A' or 'L' not 0.
6043
6044 start-sanitize-r5900
6045 Fri Apr 24 11:25:07 1998  Jeffrey A Law  (law@cygnus.com)
6046
6047         * mips-tdep.c (mips32_decode_reg_save): Handle 128bit wide
6048         GPR loads/stores generated on the r5900.
6049         (mips_find_saved_regs, mips32_skip_prologue): Likewise.
6050         * mips/tm-r5900.h (R5900_128BIT_GPR_HACK): Define.
6051         * mips/tm-txvu.h (R5900_128BIT_GPR_HACK): Likewise.
6052
6053 end-sanitize-r5900
6054 Thu Apr 23 16:37:20 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6055
6056         * README:  Minor changes for 4.17 release.
6057
6058 Thu Apr 23 15:44:39 1998  Per Bothner  <bothner@cygnus.com>
6059
6060         * symfile.c (deduce_language_from_filename):  .class implies java.
6061
6062 Thu Apr 23 12:52:21 1998  Philippe De Muyter  <phdm@macqel.be>
6063
6064         * configure.in (strerror): Check if function must be declared.
6065         * acconfig.h (NEED_DECLARATION_STRERROR): New define slot.
6066         * gdb_string.h (strerror): Function declaration issued if
6067         NEED_DECLARATION_STRERROR.
6068         * configure, config.in: Files regenerated.
6069
6070 Thu Apr 23 12:27:43 1998  Philippe De Muyter  <phdm@macqel.be>
6071
6072         * symfile.c (simple_overlay_update_1): Do not prefix array address
6073         by `&'.
6074         * bcache.h (BCACHE_DATA_ALIGNMENT): Ditto.
6075         * tracepoint.c (encode_actions): Ditto.
6076         * language.c, complaints.c, utils.c (varargs.h): Do not include that
6077         file here, it is already included indirectly by defs.h.
6078         * dbxread.c (dbx_symfile_init, process_one_symbol): Cast xmalloc return
6079         value to the appropriate pointer type.
6080         * utils.c (floatformat_from_doublest): Ditto.
6081         * tracepoint.c (read_actions, _initialize_tracepoint): Ditto.
6082         (add_memrange): Likewise with xrealloc return value.
6083         * stabsread.c (ref_add): Ditto.
6084         * coffread.c (coff_symfile_init): Likewise for xmmalloc return value.
6085         * elfread.c (elf_symfile_read): Ditto.
6086         * os9kread.c (os9k_symfile_init): Ditto.
6087
6088 Thu Apr 23 00:32:08 1998  Tom Tromey  <tromey@cygnus.com>
6089
6090         * config.in: Rebuilt.
6091         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_STPCPY, HAVE_GETTEXT,
6092         HAVE_LC_MESSAGES): Define.
6093
6094 Wed Apr 22 15:38:56 1998  Tom Tromey  <tromey@cygnus.com>
6095
6096         * configure: Rebuilt.
6097         * configure.in: Call CY_GNU_GETTEXT.
6098         * Makefile.in (top_builddir): New macro.
6099         (INTL): Define to @INTLLIBS@.
6100         (INTL_DEPS): New macro.
6101         (CDEPS): Reference INTL_DEPS, not INTL.
6102
6103 start-sanitize-sky
6104 Wed Apr 22 13:40:16 1998  Doug Evans  <devans@canuck.cygnus.com>
6105
6106         * txvu-tdep.c (txvu_print_insn): Fix thinko.
6107
6108 end-sanitize-sky
6109 Wed Apr 22 12:58:23 1998 Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
6110
6111         Handle missing shared libraries during the examination of a core
6112         dump gracefully.
6113         * solib.c (find_solib):  Use catch_errors around call to
6114         solib_map_sections. Use warning instead of error if reading of
6115         the shared library name fails.
6116         (solib_map_sections):  Change return and argument types to make
6117         it callable from catch_errors.
6118         (symbol_add_stub):  Avoid GDB core dump if solib->abfd is NULL.
6119         * irix5-nat.c, osfsolib.c (xfer_link_map_member, solib_map_sections,
6120         symbol_add_stub):  Ditto.
6121
6122 Wed Apr 22 14:34:49 1998  Michael Meissner  <meissner@cygnus.com>
6123
6124         * Makefile.in (INTL*): Add support to link in the intl library,
6125         and to add -I options to its source and object directories.
6126         (INTERNAL_CFLAGS): Ditto.
6127         (C{LIBS,DEPS}): Ditto.
6128
6129 start-sanitize-sky
6130 Wed Tue 21 17:29:48 1998  Jim Lemke  <jlemke@cygnus.com>
6131         * configure.in: Add configure option --with-sim-funit.
6132
6133 end-sanitize-sky
6134 Tue Apr 21 11:20:54 1998  Frank Ch. Eigler  <fche@cygnus.com>
6135
6136         * mips-tdep.c (gdb_print_insn_mips): Disassemble MIPS instructions
6137         with subtarget-specific `mach', rather than fixed default.
6138         * config/mips/tm-mips.h (TM_PRINT_INSN_MACH): New macro, default
6139         disassembly `mach'.
6140 start-sanitize-r5900
6141         * config/mips/tm-r5900.h (TM_PRINT_INSN_MACH): Override.
6142 end-sanitize-r5900
6143 start-sanitize-sky
6144         * config/mips/tm-txvu.h (TM_PRINT_INSN_MACH): Override.
6145 end-sanitize-sky
6146
6147 Mon Apr 20 15:35:03 1998  Philippe De Muyter  <phdm@macqel.be>
6148
6149         * coffread.c (decode_base_type): Treat a long field with size greater
6150         than TARGET_LONG_BIT as long long.
6151         * values.c (value_from_longest): Print code value in error message.
6152
6153 Mon Apr 20 15:32:21 1998   Mark Kettenis  <kettenis@phys.uva.nl>
6154
6155         * gdb/gdb_string.h (strdup): Declare only if not defined as a
6156         macro.
6157
6158 Mon Apr 20 14:18:45 1998  J. Kean Johnston  <jkj@sco.com>
6159
6160         * procfs.c: Added replacement macros for LWP stuff.  Fixed support 
6161         for UnixWare / SVR4.2MP targets and any targets which use
6162         multi-file /proc entries.  Fixed support for hardware watchpoints.
6163         * solib.c: SCO needs some of the same code as SunOS. Change
6164         preprocessor conditionals.
6165
6166         * config/i386/i386sco5.mt: New file.
6167         * config/i386/tm-i386sco5.h: New file.
6168         * config/i386/i386sco5.mh (NATDEPFILES): add i386v-nat.o.
6169         * config/i386/nm-i386v42mp.h 
6170         (TARGET_HAS_HARDWARE_WATCHPOINTS): define.  
6171         Add other macros for hardware assisted watchpoints.
6172         * config/i386/nm-i386sco5.h: Correct attributions.
6173         (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
6174         * config/i386/nm-linux.h (target_remote_watchpoint): Pass
6175         'type' through to i386_insert_watchpoint.
6176
6177 Mon Apr 20 14:12:30 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6178
6179         * infrun.c (wait_for_inferior): Don't add signalled processes
6180         as new threads.
6181         * procfs.c (wait_fd): Note if LWP has exited.
6182         (procfs_wait): use GETPID to get process ID.
6183
6184 Sat Apr 18 15:21:04 1998  Stan Cox  <scox@cygnus.com>
6185
6186         * configure.tgt: Added sparc86x support.
6187
6188 Thu Apr 16 13:13:24 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6189
6190         * rdi-share/etherdrv.c (EthernetWrite): Use strerror to get
6191         error string if in an ANSI C-ish environment.
6192
6193 Wed Apr 15 18:59:48 1998  Mark Alexander  <marka@cygnus.com>
6194
6195         * sparc-tdep.c (SPARC_HAS_FPU): Define.
6196         (sparc_extract_return_value): New function, required to handle
6197         machines without floating point.
6198         (sparc_store_return_value): Ditto.
6199         * config/sparc/tm-sparc.h (EXTRACT_RETURN_VALUE): Call
6200         sparc_extract_return_value instead of using inline code.
6201         (sparc_extract_return_value): Declare.
6202         (STORE_RETURN_VALUE): Call sparc_store_return_value instead
6203         of using inline code.
6204         (sparc_store_return_value): Declare.
6205
6206 Wed Apr 15 12:19:42 1998  Martin M. Hunt  <hunt@cygnus.com>
6207
6208         * solib.c (enable_break): Only call warning once
6209         instead of three times.
6210
6211 Tue Apr 14 16:52:59 1998  Mark Alexander  <marka@cygnus.com>
6212
6213         * sparc-tdep.c (sparc_extract_struct_value_address): Make it
6214         work correctly on little-endian hosts.
6215         (sparc_push_arguments): New function.
6216         (gdb_print_insn_sparc): New function.
6217         (_initialize_sparc_tdep): Make gdb_print_insn_sparc the default
6218         disassembler, so that SPARClite-specific instructions will
6219         be recognized.
6220         * sparcl-tdep.c (readchar): Print debugging information.
6221         (debug_serial_write): New function, a replacement for SERIAL_WRITE
6222         that prints debugging information.
6223         * config/sparc/tm-sparc.h (PUSH_ARGUMENTS): Define.
6224         (sparc_push_arguments): Declare.
6225
6226 Tue Apr 14 15:43:49 1998  John Metzler  <jmetzler@cygnus.com>
6227
6228         * gdbcfgxref (xref_menu): Call new regex and wild card searches
6229         Now you can type in a specific triple like mips64-vr4300-elf or
6230         somthing like mips*.h
6231         (triple_search, wildcardsearch): The new functions
6232
6233 start-sanitize-vr4320
6234         * configure.tgt: Switch over to use tm-4320.h. Since I switched to
6235         MIPS EABI the fixes are no longer backward compatible with 4300.
6236         * tm-vr4320.h: Added
6237         * vr4320.mt:   Added
6238
6239 end-sanitize-vr4320
6240 Mon Apr 13 16:28:07 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6241
6242         * utils.c (warning): added call to warning_hook
6243
6244         * source.c (find_source_lines): modified to call warning in case
6245         of source vs. executable time stamp mismatch. Simplified object
6246         file check. Initialized mtime to 0.
6247
6248         * defs.h: added warning_hook prototype
6249
6250         * top.c: added warning_hook prototype.
6251
6252 Mon Apr 13 09:54:08 1998  Keith Seitz  <keiths@andros.cygnus.com>
6253
6254         * config/sparc/tm-sun4os4.h (IS_STATIC_TRANSFORM_NAME): Add missing
6255         definition.
6256
6257 Fri Apr 10 22:36:28 1998  Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6258
6259         Update support for x86 Solaris 2.
6260         * config/i386/tm-i386sol2.h, nm-i386sol2.h:  New configuration
6261         files for x86 Solaris 2.                                              
6262         * config/i386/i386sol2.mt, i386sol2.mh:  Use them.                    
6263         * config/sparc/tm-sun4sol2.h (PROCFS_GET_CARRY):  New macro, extract  
6264         carry flag from a given regset.                                     
6265         (IS_STATIC_TRANSFORM_NAME):  New macro, check if a symbol name      
6266         is a SunPro transformed name.                                 
6267         * i386-tdep.c (sunpro_static_transform_name):  New function to
6268         extract the source name from a SunPro transformed name.           
6269         * inferior.h (procfs_first_available, procfs_get_pid_fd):        
6270         Add prototypes.                                          
6271         * infrun.c (wait_for_inferior):  Handle breakpoint hit in
6272         signal handler without intervening stop in sigtramp.     
6273         * procfs.c (procfs_lwp_creation_handler):  Use PROCFS_GET_CARRY
6274         instead of direct access to the status register.               
6275         (procfs_get_pid_fd):  New function, returns procfs fd for a given pid.
6276         * sol-thread.c (ps_lgetLDT):  New function, returns LDT for a given   
6277         lwpid.                                                                
6278         (sol_find_new_threads):  Handle failed libthread_db initialization 
6279         gracefully.                                                       
6280         * stabsread.c (define_symbol):  Use IS_STATIC_TRANSFORM_NAME      
6281         to check for a SunPro transformed symbol name.              
6282
6283 Fri Apr 10 10:35:35 1998  John Metzler  <jmetzler@cygnus.com>
6284
6285         * utils.c (fmthex): A formatting function for hexdumps
6286
6287         * mips-tdep.c (unpack_mips16): Fixed instruction decoding, lots of
6288         bit pattern interpretations. mips_fetch_instruction does not work
6289         for 16 bit instructions. Some confusion remains about sign
6290         extension in backward branches.
6291         (mips32_relative_offset): Sign extension
6292         (mips32_next_pc): Major debugging, bit pattern interpretation
6293         (print_unpack): debugging printf
6294         (fetch_mips_16): new funtion, key on PC low bit, not symbol table
6295         (mips16_next_16): Initial major debugging of this function. Lots
6296         of bit pattern mistakes.
6297         (mips_next_pc): key on low bit of PC, not symbol table.
6298         * symfile.c (generic_load): Added a download verification which
6299         reads back the loaded code. Download chunk size is now a defined
6300         macro. Fixed a bug in which downloading slips into loading one
6301         byte at a time. Lower level functions in monitor.c can load long
6302         sequences of bytes and make use of these fixups.  Referencing
6303         bfd-start_address directly was incorrectly getting zero for start.
6304
6305 Thu Apr  9 19:20:32 1998  Ian Lance Taylor  <ian@cygnus.com>
6306
6307         * mips-tdep.c (do_fp_register_row): Use alloca rather than arrays
6308         with dynamic size.
6309
6310 Wed Apr  8 19:21:42 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6311
6312         * top.c (print_gdb_version): Print 1998 now.
6313
6314 Wed Apr  8 16:57:22 1998  Philippe De Muyter  <phdm@macqel.be>
6315
6316         * source.c: Remove obsolete decl of strstr().
6317
6318 Wed Apr  8 16:47:33 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6319
6320         * solib.c (solib_create_inferior_hook): Remove Ulrich Drepper's
6321         patch of March 23 1998.
6322         * breakpoint.c (breakpoint_re_set_one): Remove Ulrich Drepper's
6323         patch of March 23 1998.
6324
6325 Sat Apr  4 10:05:00 1998  Dawn Perchik  <dawn@cygnus.com>
6326
6327         * mdebugread.c (parse_partial_symbols): If this is an .mdebug 
6328         section in an ELF file, override a symbol's ECOFF section with its 
6329         ELF section.  Also, fix stabs continuation where a stabs string 
6330         continues for more than one continuation.
6331
6332 Mon Apr  6 09:17:48 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6333
6334         * mips-tdep.c (mips_push_arguments): Specify dimention of valbuf
6335         using MAX_REGISTER_RAW_SIZE.
6336
6337 Sat Apr  4 10:05:00 1998  Dawn Perchik  <dawn@cygnus.com>
6338
6339         * infrun.c: Fix prototype of signals_info to match static funtion.
6340
6341 Thu Apr  2 12:47:41 1998  Frank Ch. Eigler  <fche@cygnus.com>
6342
6343         * sol-thread.c (sol_thread_store_registers): Save & restore new
6344         value of single updated register to prevent accidental clobbering.
6345
6346 Wed Apr  1 22:01:09 1998  Mark Alexander  <marka@cygnus.com>
6347
6348         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
6349         * config/sparc/sparclite.mt: Link in the erc32 simulator.
6350
6351 Wed Apr  1 16:30:49 1998  Ian Dall  <Ian.Dall@dsto.defence.gov.au>
6352
6353         * ns32k-tdep.c (flip_bytes, ns32k_localcount,
6354         ns32k_get_enter_addr, sign_extend): Restore functions mysteriously
6355         deleted.
6356
6357         * ns32knbsd-nat.c: New (?) file to support fetching and storing
6358         registers on NetBSD hosts.
6359
6360         * nbsd.mh (NATDEPFILES): put ns32knbsd-nat.o instead of
6361         ns32k-nat.o
6362
6363         * ns32km3-nat.c (reg_offset): Get order of floating point
6364         registers correct. Add extra 32382 register offsets.
6365         (REG_ADDRESS): define to point at correct part of thread
6366         state. Use calls to "warning" instead of "message".
6367
6368         * tm-nbsd.h, tm-ns32km3.h (REGISTER_NAMES, NUM_REGS,
6369         REGISTER_BYTES, REGISTER_BYTE): redefine allowing for 32382
6370         fpu registers.
6371
6372 Wed Apr  1 13:43:07 1998  Philippe De Muyter  <phdm@macqel.be>
6373
6374         * NEWS: m68k-motorola-sysv host support added.
6375         * coffread.c (coff_start_symtab): Accept the filename as an argument,
6376         set it here.  Callers updated.
6377
6378 Wed Apr  1 23:13:23 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6379
6380         * config/mips/tm-mips.h (REGISTER_VIRTUAL_TYPE): Handle 32 bit SR,
6381         FSR and FIR registers.
6382         (REGISTER_VIRTUAL_SIZE): Compute using REGISTER_VIRTUAL_TYPE.
6383         (REGISTER_RAW_SIZE): Define using REGISTER_VIRTUAL_SIZE.
6384
6385         * config/mips/tm-mips64.h: Ditto.
6386
6387 Tue Mar 31 21:30:39 1998  Nick Clifton  <nickc@cygnus.com>
6388
6389         * arm-tdep.c (gdb_print_insn_arm): Attach a fake Thumb symbol
6390         vector to the info structure when disassembling thumb
6391         instructions. 
6392
6393         * coffread.c (coff_symtab_read, read_one_sym,
6394         process_coff_symbol):  Support Thumb symbol types. 
6395
6396         * dbxread.c (process_one_symbol): Call SMASH_TEXT_ADDRESS (if it
6397         is defined) for function symbols.  
6398
6399 Tue Mar 31 16:39:28 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
6400
6401         * tracepoint.c (get_tracepoint_by_number): change warning to note.
6402         (delete_trace_command): suppress y/n query if no tracepoints, or
6403         if not from_tty.  (trace_pass_command): reject junk at end of args.
6404         (read_actions): an action list consisting only of "end" is discarded.
6405         (validate_actionline (for collect command)): an argument beginning
6406         with a dollar_sign but not recognized as a special argument is
6407         parsed like any other expression -- if it isn't a register name,
6408         it's rejected.  Also reject an empty argument to while-stepping.
6409         (trace_find_command): reject a negative frame number argument.
6410         (_initialize_tracepoint): set $traceframe initially to -1.
6411
6412 Mon Mar 30 16:42:12 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6413
6414         * rdi-share/Makefile.am, rdi-share/aclocal.m4,
6415         rdi-share/configure: New files.
6416         * rdi-share/configure.in:  Rewritten to be an autoconf input file.
6417         * rdi-share/Makefile.in, rdi-share/configure: Generated by 
6418         automake/autoconf.
6419         * rdi-share/dbg_hif.h, etherdrv.c, hostchan.c: Use autoconf tests
6420         to check environment.
6421
6422 Sun Mar 29 15:17:16 1998  Keith Seitz  <keiths@onions.cygnus.com>
6423
6424         * tracepoint.c (trace_start_command): Set trace_running_p.
6425         (trace_stop_command): Clear trace_running_p.
6426
6427 Sat Mar 28 15:19:48 1998  Stan Shebs  <shebs@andros.cygnus.com>
6428
6429         * NEWS: Update for 4.17 release.
6430
6431 Fri Mar 27 10:15:50 1998  David Taylor  <taylor@tito.cygnus.com>
6432
6433         * tracepoint.c (parse_and_eval_memrange): Fix memory leaks.
6434         (encode_actions): Use the new gen_trace_for_expr function
6435         instead of expr_to_address_and_size; collect registers when
6436         using expressions.  (clear_collection_list): Fix memory leak.
6437
6438 1998-03-26  Jim Blandy  <jimb@zwingli.cygnus.com>
6439
6440         * ax-gdb.h (gen_trace_for_expr): Add prototype.
6441
6442 Thu Mar 26 17:24:23 1998  David Taylor  <taylor@texas.cygnus.com>
6443
6444         * tracepoint.c (validate_actionline): Fix memory leak.
6445         (encode_actions): Fix memory leak.
6446
6447 Thu Mar 26 16:16:55 1998  David Taylor  <taylor@tito.cygnus.com>
6448
6449         * tracepoint.c (trace_mention): New function.
6450         (trace_command): Call it.
6451
6452 1998-03-26  Jim Blandy  <jimb@zwingli.cygnus.com>
6453
6454         * ax-general.c (ax_reqs): New function.
6455         * ax.h (enum agent_flaws, struct agent_reqs): New types.
6456         (agent_reqs): New extern prototype.  Well, actually, this was
6457         there before, due to a premature checkin.
6458         (struct aop_map): Add new `data_size' member.
6459         * ax-general.c (aop_map): Supply its value.
6460         * ax-gdb.c (agent_command): Call ax_reqs, for testing.
6461
6462         * ax-general.c (ax_print): If we encounter an invalid or
6463         incomplete opcode, don't abort; just print an error message.
6464
6465         * ax-gdb.c: Generate trace bytecodes, as appropriate.
6466         (trace_kludge): New variable.
6467         (gen_fetch, gen_bitfield_ref): Emit trace bytecodes, if asked
6468         nicely.
6469         (expr_to_agent): Ask for no trace bytecodes.
6470         (gen_trace_for_expr): New function.
6471         (agent_command): Call it, and display the result appropriately ---
6472         no struct axs_value, so no type or kind information.
6473
6474         * ax-gdb.c: Use TARGET_CHAR_BIT throughout, not HOST_CHAR_BIT.
6475
6476 Thu Mar 26 22:29:28 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6477
6478         * tracepoint.c (trace_status_command): Recognize a boolean return
6479         value from the stub to indicate whether trace experiment is
6480         running.  Export this value as a global state variable.
6481         (trace_running_p) for use by the GUI. (from Michael Snyder)
6482         (trace_pass_command) added call to modify_tracepoint_hook.
6483
6484         * tracepoint.h export trace_running_p.
6485
6486 Thu Mar 26 13:08:01 1998  David Taylor  <taylor@texas.cygnus.com>
6487
6488         * tracepoint.c (validate_actionline): do not error out if
6489         exp->elts[0].opcode is not on short line -- let
6490         expr_to_address_and_size handle it.
6491
6492 1998-03-26  Jim Blandy  <jimb@zwingli.cygnus.com>
6493
6494         * tracepoint.c: Include "ax.h", not "agentexpr.h".
6495
6496         * tracepoint.c (encode_actions): Call expr_to_address_and_size,
6497         not simply expr_to_agent.
6498
6499         * ax-general.c: Comment out code in progress, so everyone else can
6500         at least compile.
6501
6502         * gdbtypes.c: Doc fix.
6503
6504         * ax.h, ax-gdb.h, ax-general.c, ax-gdb.c: New files.
6505         * Makefile.in (REMOTE_OBJS): Add ax-general.o and ax-gdb.o.
6506         (SFILES): Add ax-general.c, ax-gdb.c.
6507         (ax_h): New variable.
6508         (ax-general.o, ax-gdb.o): New rules.
6509
6510 start-sanitize-sky
6511 Wed Mar 25 11:45:19 1998  Frank Ch. Eigler  <fche@cygnus.com>
6512
6513         * configure.in (sim-gpu2): Added target type checking to make
6514         --with-sim-gpu2 option only valid for sky target.
6515         * configure: Regenerated.
6516 end-sanitize-sky
6517
6518 Tue Mar 24 16:22:40 1998  Stu Grossman  <grossman@bhuna.cygnus.co.uk>
6519
6520         * Makefile.in:  Derive SHELL from configure.
6521         * config/d10v/d10v.mt config/m32r/m32r.mt
6522         config/mn10200/mn10200.mt config/mn10300/mn10300.mt
6523         config/d30v/d30v.mt:  Remove -lm from SIM.  This prevents
6524         dependency checking of -lm (under NT native builds).  (It is
6525         automatically added by configure if it exists.)
6526         * doc/configure mswin/configure nlm/configure
6527         testsuite/gdb.base/configure testsuite/gdb.c++/configure
6528         testsuite/gdb.chill/configure testsuite/gdb.disasm/configure
6529         testsuite/gdb.stabs/configure testsuite/gdb.threads/configure:
6530         Regenerate with autoconf 2.12.1 to fix shell issues for NT native
6531         builds.
6532
6533 Mon Mar 23 18:10:57 1998  Ulrich Drepper  (drepper@cygnus.com)
6534
6535         * solib.c (solib_create_inferior_hook):  Rewrite previous
6536         change to check the type of file via BFD.
6537
6538 Mon Mar 23 13:52:28 1998  Ulrich Drepper  (drepper@cygnus.com) 
6539  
6540         * breakpoint.c (breakpoint_re_set_one): Treat bp_shlib_events
6541         like bp_breakpoints.
6542         * solib.c (solib_create_inferior_hook): Relocate section addresses
6543         if the alleged start address doesn't agree with the PC.
6544
6545 start-sanitize-sky
6546 Mon Mar 23 13:07:22 1998  Frank Ch. Eigler  <fche@cygnus.com>
6547
6548         * configure.in (sim-gpu2): Added --with-sim-gpu2 as configure
6549         option, to allow gdb+sim linking with sky GPU2 library.
6550         * configure: Regenerated.
6551
6552 end-sanitize-sky
6553 Sat Mar 21 19:34:49 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6554
6555         merged changes from Foundry (list follows by file/author):
6556
6557         - Tom Tromey  <tromey@cygnus.com>
6558         * Makefile.in (gdbres.o): New target.
6559         (WINDRES): New define.
6560         * configure: Rebuilt.
6561         * configure.in (WINDRES): Define.
6562         (CONFIG_OBS): Include gdbres.o on Windows.
6563         * gdbtool.ico: New file.
6564         * gdb.rc: New file.
6565
6566         * ser-unix.c
6567         - Keith Seitz  <keiths@onions.cygnus.com>
6568         (wait_for): Don't reset the timeout_remaining for CYGWIN32,
6569         since we now effectively poll the serial port.
6570         Don't reset the current_timeout, either, since this member is used
6571         by hardwire_readchar to track the timeout and call the ui_loop_hook.
6572         (hardwire_readchar): Poll the serial port for Cygwin32. We timeout
6573         every second, update the UI, and loop around doing this until we
6574         have hit the real timeout or we get data or an error. This will
6575         allow the UI to stay active while gdb is "blocked" talking to the
6576         target.
6577         - Martin M. Hunt  <hunt@cygnus.com>
6578         (wait_for): Do reset current_timeout because it is only used to
6579         keep track of what the current timeout for the scb is.
6580
6581         * top.c
6582         - Martin M. Hunt  <hunt@cygnus.com>
6583         (quit_confirm): Change exit message again
6584         for GUI.
6585         (pc_changed_hook): Add prototype.
6586         - Tom Tromey  <tromey@cygnus.com>
6587         (quit_confirm): Added missing `else'.
6588         (quit_confirm): Special-case message if init_ui_hook is
6589         set.
6590
6591         * symtab.c
6592         - Martin M. Hunt  <hunt@cygnus.com>
6593         (find_pc_sect_line): If no symbol information
6594         is found, return correct pc anyway.
6595         (find_methods): Comment out an apparently
6596         bogus error message because it messes up Foundry.
6597
6598         * serial.c
6599         - Martin M. Hunt  <hunt@cygnus.com>
6600         (_initialize_serial): Add a description of
6601         "set remotelogbase".
6602
6603         * findvar.c
6604         - Martin M. Hunt  <hunt@cygnus.com>
6605         (write_register_gen): Add call to
6606         pc_changed_hook if the PC is being changed.
6607
6608         * defs.h
6609         - Martin M. Hunt  <hunt@cygnus.com>
6610         (pc_changed_hook): Define.
6611
6612         * command.c
6613         -  Martin M. Hunt  <hunt@cygnus.com>
6614         (do_setshow_command): If no arguments are supplied,
6615         don't dump core, instead print out an error message.
6616
6617         * breakpoint.c
6618         - Martin M. Hunt  <hunt@cygnus.com>
6619         Make set_raw_breakpoint, set_breakpoint_count,
6620         and breakpoint_count non-static so they are accessible from
6621         elsewhere.
6622         (enable_breakpoint): Enable breakpoint
6623         with same disposition instead of changing all breakpoints
6624         to donttouch.
6625
6626         * annotate.h
6627         - Keith Seitz  <keiths@onions.cygnus.com>
6628         Add declarations for annotation hooks.
6629  
6630         * annotate.c
6631         - Keith Seitz  <keiths@onions.cygnus.com>
6632         Add hooks: annotate_starting_hook, annotate_stopped_hook,
6633         annotate_signalled_hook, annotate_exited_hook.
6634         (annotate_starting): If hook exists, call it instead.
6635         (annotate_stopped): If hook exists, call it instead.
6636         (annotate_exited): If hook exists, call it instead.
6637         (annotate_signalled): If hook exists, call it instead.
6638
6639 Fri Mar 20 14:45:36 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
6640
6641         * gdbserver/Makefile.in: add dependency on XM_CLIBS.
6642         * gdbserver/low-sim.c (registers) force into alignment.
6643         (create_inferior): Fix typo on new_argv; add abfd arg to 
6644         sim_open, sim_create_inferior.  Add reg_size arg to 
6645         sim_fetch_register, sim_store_register.  Make simulator
6646         take a single-step to get into a known running state.
6647         * gdbserver/gdbreplay.c: include fcntl.h for def'n of F_SETFL.
6648         * gdbserver/server.c: Add remote_debug variable to control 
6649         debug output.
6650         * gdbserver/server.h: Add prototypes for enable/disable_async_io.
6651         * gdbserver/remote-utils.c: add verbose debugging output controlled 
6652         by "remote_debug" variable.  Add call to "disable_async_io()"
6653         to avoid being killed by async SIGIO signals.
6654         * config/m32r/m32r.mt: define GDBSERVER_(LIBS and DEPFILES),
6655         so that gdbserver can be built with the m32r simulator.
6656
6657 Fri Mar 20 09:04:06 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6658
6659 start-sanitize-r5900
6660         * config/mips/tm-r5900.h (REGISTER_VIRTUAL_SIZE): Redefine as
6661         expression from REGISTER_VIRTUAL_TYPE.
6662         (REGISTER_RAW_SIZE): Ditto.
6663         (REGISTER_VIRTUAL_TYPE): Redefine, use explicit size for 32 bit
6664         registers.
6665
6666 end-sanitize-r5900
6667         * gdbtypes.h (builtin_type_{,u}int{8,16,32,64}): New gdb builtin
6668         types.
6669 start-sanitize-r5900
6670         (builtin_type_{,u}int128): Ditto.
6671 end-sanitize-r5900
6672
6673         * gdbtypes.c (_initialize_gdbtypes): Initialize new types.
6674
6675         * mips-tdep.c (do_gp_register_row): Pad register value when GP
6676         register is smaller than MIPS_REGSIZE.
6677
6678         * findvar.c (value_of_register): When raw and virtual register
6679         values identical, check that sizes are consistent.
6680
6681 Thu Mar 19 11:32:15 1998  Michael Snyder  (msnyder@cleaver.cygnus.com)
6682
6683         * minsyms.c (compare_minimal_symbols): If addresses are identical,
6684         then compare on names.  Sorted list should have symbols with 
6685         identical addresses AND names adjacent, so dups can be discarded.
6686
6687 Wed Mar 18 12:50:17 1998  Jeff Law  (law@cygnus.com)
6688
6689         * stabsread.c (define_symbol): Don't look for ',' as a LRS
6690         indicator.
6691
6692 Wed Mar 18 10:34:51 1998  Nick Clifton  <nickc@cygnus.com>
6693
6694         * rdi-share/etherdrv.c: Set sys_errlist[] as char * not const char *.
6695
6696 Fri Mar 13 15:43:53 1998  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
6697
6698         * config/mips/xm-mips.h (CC_HAS_LONG_LONG):  Undefine for Ultrix
6699         when compiling with native cc, the compiler has broken long long
6700         support.
6701
6702 Fri Mar 13 15:37:02 1998  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
6703
6704         * config/m68k/xm-sun3os4.h:  Remove malloc declarations, they
6705         are handled via autoconf now.
6706         * remote.c (remote_ops, extended_remote_ops):  Replace static
6707         forward declaration by moving the static definition to the top of
6708         the file, for old K&R compilers.
6709         * tracepoint.c (collect_symbol, trace_start_command):
6710         Replace ANSI string concatenation with K&R compatible simple string.
6711
6712 1998-03-11  Fred Fish  <fnf@ninemoons.com>
6713
6714         * source.c (select_source_symtab): Don't reach error if we have
6715         a current_source_symtab from reading in partial symbol table.
6716
6717 start-sanitize-vr4320
6718 Tue Mar 10 16:15:13 1998  Gavin Koch  <gavin@cygnus.com>
6719
6720         * configure.tgt (mips64*vr4320*el-*-elf*): Removed spurious case.
6721
6722 end-sanitize-vr4320
6723 Fri Mar  6 13:10:27 1998  Fred Fish  <fnf@cygnus.com>
6724
6725         * utils.c (quit): Call SERIAL_DRAIN_OUTPUT rather than
6726         SERIAL_FLUSH_OUTPUT.
6727         * serial.h (struct serial_ops): Add drain_output, pointer to
6728         function that waits for output to drain.
6729         (SERIAL_DRAIN_OUTPUT): Macro to wait for output to drain.
6730         * ser-unix.c (hardwire_drain_output): New function and prototype.
6731
6732         * ser-unix.c (hardwire_ops): Add entry for drain_output function.
6733         * ser-tcp.c (tcp_ops): Ditto.
6734         * ser-ocd.c (ocd_ops): Ditto.
6735         * ser-mac.c (mac_ops): Ditto.
6736         * ser-go32.c (dos_ops): Ditto.
6737         * ser-e7kpc.c (e7000pc_ops): Ditto.
6738
6739 Thu Mar  5 16:07:41 1998  Michael Snyder  (msnyder@cleaver.cygnus.com)
6740
6741         * sparcl-tdep.c: fix #endif comments
6742
6743 Thu Mar  5 15:10:35 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6744
6745         * Makefile.in (BISON): Configure substitutes in @YACC@, not @BISON@.
6746
6747 Thu Mar  5 14:42:41 1998  Keith Seitz  <keiths@onions.cygnus.com>
6748
6749         * ocd.c (ocd_open): If we fail ocd_start_remote, make sure we
6750         error () so that we abort out of bdm_ppc_open.
6751
6752 Wed Mar  4 16:53:52 1998  Martin M. Hunt  <hunt@cygnus.com>
6753
6754         * serial.c (_initialize_serial): Add a description of 
6755         "set remotelogbase".
6756
6757         * command.c (do_setshow_command): If no arguments are supplied,
6758         don't dump core, instead print out an error message.
6759
6760 Wed Mar  4 01:39:08 1998  Ron Unrau  <runrau@cygnus.com>
6761
6762         * elfread.c (elf_symtab_read): merge SYMBOL_IS_SPECIAL into
6763         MAKE_MSYMBOL_SPECIAL
6764         * config/mips/tm-mips.h: ditto
6765
6766 Tue Mar  3 17:19:08 1998  John Metzler  <jmetzler@cygnus.com>
6767
6768 start-sanitize-vr4xxx
6769         * config/mips/tm-vr4xxx.h:  implements vr4111 as separate from 4300
6770         * config/mips/vr4xxx.tm:    implements vr4111 as separate from 4300
6771         * configure.tgt:  Recognise mips64vr4111-*-elf as vr4xxx
6772 end-sanitize-vr4xxx
6773         * dwarfread.c (read_tag_pointer_type): Pointer sizes now come from
6774         TARGET_PTR_BIT rather from sizeof(char *) on host.
6775
6776 Tue Mar  3 14:37:02 1998  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
6777
6778         * alpha-nat.c (fetch_osf_core_registers):  Renamed from
6779         fetch_aout_core_registers.
6780         (alpha_osf_core_fns):  Renamed from alpha_aout_core_fns, change
6781         flavour to bfd_target_unknown_flavour for OSF core files.
6782
6783 start-sanitize-vr4320
6784 Tue Mar  3 11:12:39 1998  Gavin Koch  <gavin@cygnus.com>
6785
6786         * configure.tgt (mips64*vr4320*el-*-elf*,mips64*vr4320*-*-elf*): 
6787         Added.
6788
6789 end-sanitize-vr4320
6790 Mon Mar  2 17:44:13 1998  Michael Snyder  (msnyder@cleaver.cygnus.com)
6791
6792         * breakpoint.c (_initialize_breakpoint): Make "en" an alias
6793         for "enable" (so that it doesn't conflict with "end").
6794
6795 Mon Mar  2 17:04:25 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6796
6797         * Makefile (VERSION): Bump to 4.17.1.
6798
6799 Mon Mar  2 16:59:15 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6800
6801         * rdi-share/etherdrv.c (sys_errlist): Add correct decl for Linux.
6802
6803 Mon Mar  2 16:51:44 1998  Jason Molenda  (crash@bugshack.cygnus.com)
6804
6805         * Makefile.in (YYFILES): Remove in maintainer-clean, not distclean.
6806
6807 Mon Mar  2 16:47:11 1998  Philippe De Muyter  <phdm@macqel.be>
6808
6809         * Makefile.in (distclean): Add `rm $(YYFILES)'.
6810
6811 Mon Mar  2 16:45:48 1998  Philippe De Muyter  <phdm@macqel.be>
6812
6813         * coffread.c (coff_read_enum_type): Set TYPE_FLAG_UNSIGNED if enum
6814         is unsigned.
6815
6816 Sun Mar  2 15:16:13 1998 Richard Henderson  <rth@cygnus.com>         
6817
6818         * configure.host, configure.tgt: Add sparc-linux.               
6819         * sparc-nat.c: Include <asm/reg.h> not <machine/reg.h> for Linux.
6820         * config/sparc/*linux*: New files.                         
6821
6822 Mon Mar  2 12:12:41 1998  Anthony Thompson   (athompso@cambridge.arm.com)
6823
6824         * arm-tdep.c (gdb_print_insn_arm): Call print_insn_big_arm
6825         if we're big endian; else call print_insn_little_arm.
6826
6827 Mon Feb 24 11:24:57 1998  Richard Henderson  <rth@cygnus.com>
6828
6829         * Makefile.in (BISON): Don't even pretend to use yacc.
6830         (c-exp.tab.o): Use bison -o to use a unique intermediate file.
6831         (f-exp.tab.o, m2-exp.tab.o): Likewise.
6832         (jv-exp.tab.o): Likewise.
6833
6834 Tue Feb 24 03:32:59 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6835
6836         * remote-sim.c (gdbsim_fetch_register): Don't abort when the
6837         register size is wrong.
6838
6839 start-sanitize-r5900
6840 Tue Feb 24 02:53:41 1998  And<rew Cagney  <cagney@b1.cygnus.com>
6841
6842         * config/mips/tm-r5900.h (REGISTER_VIRTUAL_SIZE,
6843         REGISTE_RAW_SIZE): Re-define.
6844
6845 end-sanitize-r5900
6846 Thu Feb 19 16:49:48 1998 John Metzler  <jmetzler@cygnus.com>
6847
6848         * target.c (debug_to_fetch_registers,debug_to_store_registers,
6849         debug-to_insert_breakpoint,debug_to_remove_breakpoint): tracing
6850         64 bit targets crashed long long printfs.
6851
6852 Tue Feb 17 16:36:22 1998  Michael Snyder  (msnyder@cleaver.cygnus.com)
6853
6854         * symfile.c (read_target_int_array): rename read_target_long_array
6855         and force the sizeof an ovly_table element to sizeof(long),
6856         instead of sizeof(int).
6857
6858 Tue Feb 17 18:05:05 1998  Frank Ch. Eigler  <fche@cygnus.com>
6859
6860         * remote-mips.c (mips_request): Use unsigned long during parsing
6861         returned value from monitor, to prevent accidental sign extension.
6862
6863 Tue Feb 17 14:28:33 1998  Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6864
6865         * acconfig.h: FORCE_MMCHECK changed to MMCHECK_FORCE.
6866         * configure.in: Ditto.
6867         * configure: Regenerated.
6868
6869 Tue Feb 17 14:07:34 1998  Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6870
6871         * gdbtypes.c (check_typedef): Do not try to resolve the length of      
6872         a type which has TYPE_FLAG_TARGET_STUB set, if the target type has
6873         set TYPE_FLAG_TARGET_STUB as well.
6874
6875 Tue Feb 17 14:32:18 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6876
6877         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
6878         Pass register size to sim_{fetch,store}_register.  Check nr of
6879         register bytes transfered is correct.
6880
6881 Mon Feb 16 14:05:54 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6882
6883         * remote-d10v.c (remote_d10v_open): Call push_remote_target
6884         instead of open_remote_target.
6885
6886         * remote.c (remote_xfer_memory): Use REMOTE_TRANSLATE_XFER_ADDRESS
6887         to translate addr/size when defined.
6888         (open_remote_target): Delete.
6889
6890         * target.h (open_remote_target): Delete.
6891
6892         * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Define.
6893
6894 Mon Feb 16 14:05:54 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6895
6896         * d10v-tdep.c (d10v_extract_return_value): Wierd.  GCC wants to
6897         return odd sized register quantities with only half of the first
6898         register used!
6899
6900         * config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Use stack when
6901         size > 8.
6902
6903 Mon Feb 16 14:05:54 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6904
6905         * config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Define. True when
6906         sizeof type > 1.
6907
6908 Sun Feb 15 16:10:50 1998  Ron Unrau   <runrau@cygnus.com>
6909
6910         * parse.c (write_dollar_variable): call new function 
6911           target_map_name_to_register to allow targets to define their own 
6912           register name aliases.
6913         * infcmd.c (registers_info): use target_map_name_to_register so that
6914           "print $reg" and "info reg $reg" use the same register name aliases.
6915
6916 Fri Feb 13 16:40:30 1998  Stan Shebs  <shebs@andros.cygnus.com>
6917
6918         * config/i386/i386mk.mt (OBJFORMATS): Delete, no longer used.
6919         * config/i386/xm-i386mk.h: Fix an include.
6920         * config/pyr/tm-pyr.h (PC_INNER_THAN): Remove, never used.
6921
6922 Thu Feb 12 16:12:07 1998  Frank Ch. Eigler  <fche@cygnus.com>
6923
6924         * remote-mips.c (mips_enter_debug): Sleep before sending CR to
6925         monitor.
6926         (mips_exit_debug): Accept any whitespace / verbiage before monitor
6927         prompt reappears.
6928
6929 Thu Feb 12 18:25:42 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6930
6931         * d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte
6932         accumulators.
6933
6934 Thu Feb 12 17:10:22 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6935
6936         * valops.c (value_at): For d10v, make read pointers with
6937         read_target_unsigned_integer, keep addresses unsigned.
6938         (value_fetch_lazy): Ditto.
6939
6940 Thu Feb 12 12:14:02 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6941
6942         * remote-d10v.c: New file.  Layer the d10v GDB->remote memory map
6943         on top of the remote serial memory transfer functions.
6944
6945         * config/d10v/d10v.mt (TDEPFILES): Add remote-d10v.o
6946
6947         * Makefile.in (remote-d10v.o): Add dependencies.
6948
6949         * remote.c (remote_open_1): Add arg extended_p, engage extended
6950         protocol when extended_p.
6951         (remote_open, extended_remote_open): Pass !extended_p /
6952         extended_p to remote_open_1.
6953
6954         * remote.c (open_remote_target), target.h: New function.
6955
6956 Wed Feb 11 08:41:15 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6957
6958         * config/i386/fbsd.mh (XDEPFILES): Add ser-tcp.o.
6959
6960 Tue Feb 10 17:50:37 1998  Keith Seitz  <keiths@onions.cygnus.com>
6961
6962         * tracepoint.c (tracepoint_operation): Call the modify_tracepoint_hook
6963         if it exists.
6964         Remove static declaration of free_actions.
6965
6966         * tracepoint.h: Add declaration of free_actions.
6967                 
6968 Tue Feb 10 12:17:13 1998  Fred Fish  <fnf@cygnus.com>
6969
6970         * symtab.c (decode_line_1): Revert change that mistakenly
6971         removed assignment of sals[0].pc field.
6972
6973 Mon Feb 10 12:37:47 1998  Philippe De Muyter  <phdm@macqel.be>
6974
6975         * m68k/tm-delta68.h (EXTRACT_RETURN_VALUE): Type argument for
6976         `REGISTER_CONVERT_TO_VIRTUAL is `TYPE', not
6977         `REGISTER_VIRTUAL_TYPE (FP0_REGNUM)';
6978         (STORE_RETURN_VALUE): Ditto, and offset for `write_register_bytes'
6979         is `REGISTER_BYTE (FP0_REGNUM)', not `FP0_REGNUM'.
6980         (FRAME_NUM_ARGS): New macro.
6981         * m68k/tm-news.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Ditto.
6982         * delta68-nat.c (clear_insn_cache): New function, forgotten in previous
6983         patch.
6984
6985 Mon Feb  9 11:10:06 1998  Andrew Cagney  <cagney@b1.cygnus.com>
6986
6987         * d10v-tdep.c: Replace references to IMEM_ADDR and DMEM_ADDR with
6988         D10V_MAKE_[DI]ADDR and D10V_CONVERT_[ID]ADDR_TO_RAW macros.
6989
6990         * config/d10v/tm-d10v.h (IMEM_START): Move to 0x01......
6991         (DMEM_START): Move to 0x00......
6992         (STACK_START): Move to 0x00..7ffe.
6993         (D10V_MAKE_IADDR, D10V_MAKE_DADDR): Translate unconditionally.
6994
6995         * d10v-tdep.c (d10v_xlate_addr): Delete function.
6996
6997 Mon Feb  9 15:10:21 1998  Fred Fish  <fnf@cygnus.com>
6998
6999         * symtab.c (fixup_psymbol_section): Move forward declaration to
7000         top of file with other such decls.  Make it a static function.
7001         * symtab.h: Minor formatting tweaks.
7002
7003 Mon Feb  9 13:14:12 1998  Stan Shebs  <shebs@andros.cygnus.com>
7004
7005         * config/a29k-udi.mt, config/i960/vxworks960.mt (REMOTE_OBS):
7006         Remove redefinition.
7007         * config/i960/tm-i960.h (BREAKPOINT): Define.
7008
7009 Mon Feb  9 15:35:38 1998  Ian Lance Taylor  <ian@cygnus.com>
7010
7011         * Makefile.in (init.c): Ignore errors when making init.c.  Seems
7012         necessary to work around bug in Solaris make.
7013
7014 Sun Feb  6 02:44:28 1998  Philippe De Muyter  <phdm@macqel.be>
7015
7016         * m68k/tm-delta68.h (CPLUS_MARKER): Macro deleted.
7017         (EXTRACT_STRUCT_VALUE_ADDRESS): Macro defined.
7018         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Macros modified
7019         because floating-point values return via %fp0.
7020         (CLEAR_INSN_CACHE): New macro.
7021         * m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL): Macro fixed
7022         to use DOUBLEST.
7023         (REGISTER_CONVERT_TO_RAW): Ditto.
7024         * infptrace.c (child_xfer_memory): If CLEAR_INSN_CACHE is defined,
7025         call it after having written in child process's memory.
7026         * inflow.c (PROCESS_GROUP_TYPE): Macro defined if HAVE_TERMIO.
7027         (gdb_has_a_terminal, terminal_ours_1): Functions fixed for HAVE_TERMIO.
7028
7029 Fri Feb  6 16:17:30 1998  Jeffrey A Law  (law@cygnus.com)
7030
7031         * config/mips/tm-mips64.h (TARGET_LONG_BIT): Allow final target to
7032         override.
7033         (TARGET_LONG_LONG_BIT): Likewise.
7034         (TARGET_PTR_BIT): Likewise.
7035 start-sanitize-r5900
7036         * config/mips/tm-r5900.h (TARGET_PTR_BIT): Define to 32 bits.
7037 end-sanitize-r5900
7038
7039 start-sanitize-sky
7040 Fri Feb  6 14:33:34 1998  Doug Evans  <devans@canuck.cygnus.com>
7041
7042         * configure.tgt (mips64r5900*-sky-elf*): Replaces txvu-elf.
7043         * config/mips/txvu.mt (SIM): txvu -> mips.
7044
7045 end-sanitize-sky
7046 Fri Feb  6 17:42:22 1998  Andrew Cagney  <cagney@b1.cygnus.com>
7047
7048         * config/d10v/tm-d10v.h (D10V_CONVERT_IADDR_TO_RAW,
7049         D10V_CONVERT_DADDR_TO_RAW): Define.
7050
7051         * d10v-tdep.c (d10v_push_arguments): Re-write.  Pass arguments in
7052         registers, regardless of their size, when they fit.
7053
7054 Thu Feb  5 13:16:36 1998  Andrew Cagney  <cagney@b1.cygnus.com>
7055
7056         * d10v-tdep.c (d10v_extract_return_value): For function pointers
7057         translate address to IMAP area.
7058
7059         * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete dummy from
7060         struct.
7061         (POP_FRAME): Point at generic_pop_current_frame.
7062
7063         * d10v-tdep.c (d10v_pop_frame): Delete code handling dummy frames,
7064         handled earlier.
7065         (d10v_push_return_address): New function.
7066         (d10v_pop_dummy_frame): Delete.
7067         (d10v_fix_call_dummy): Delete.
7068         (d10v_call_dummy_address): Delete.
7069
7070         * d10v-tdep.c (d10v_init_extra_frame_info): Clear dummy and
7071         frameless.
7072
7073         * d10v-tdep.c (d10v_push_arguments): Keep stack word aligned.
7074
7075         * config/d10v/tm-d10v.h (EXTRACT_STRUCT_VALUE_ADDRESS): Extract
7076         address of structure from first ARG1_REGNUM.
7077
7078         * d10v-tdep.c (d10v_push_arguments): Force 4 byte args into
7079         even-odd register pair.  Store 1 and 2 byte args in registers.
7080
7081         * valops.c (value_fetch_lazy): Ensure that a D10V function pointer
7082         is fetched in the correct byte order.
7083         (value_at): Ditto. Also ensure data pointers are mapped to data
7084         segment.
7085
7086         * config/d10v/tm-d10v.h (D10V_DADDR_P, D10V_IADDR_P): 
7087
7088         * d10v-tdep.c: Replace 2 with REGISTER_RAW_SIZE.
7089         (d10v_pop_frame): Replace R13 with LR_REGNUM.
7090         (d10v_push_arguments): Replace R2 with ARG1_REGNUM.
7091         (d10v_push_arguments): Replace 6 with ARGN_REGNUM.
7092         (d10v_extract_return_value): Access return value with RET1_REGNUM.
7093
7094         * config/d10v/tm-d10v.h (ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM):
7095         Define.
7096         (STORE_RETURN_VALUE): Specify return register using RET1_REGNUM.
7097         (STORE_STRUCT_RETURN): Specify ARG1_REGNUM as the struct ptr
7098         location.
7099
7100 Thu Feb  5 13:16:36 1998  Andrew Cagney  <cagney@b1.cygnus.com>
7101
7102         * blockframe.c (generic_pop_dummy_frame): Flush the frame, no
7103         longer valid.
7104
7105         * blockframe.c (generic_pop_current_frame), frames.h: New
7106         function.
7107
7108 Thu Feb  5 17:18:16 1998  Andrew Cagney  <cagney@b1.cygnus.com>
7109
7110         * remote-sim.c (gdbsim_create_inferior): clear_proceed_status
7111         before /re/starting the simulator.
7112
7113 Thu Feb  5 15:55:31 1998  C. M. Heard (heard@vvnet.com)
7114
7115         * top.c (do_nothing): Remove signal handler after signal is caught.
7116
7117 Thu Feb  5 11:57:06 1998  Michael Snyder  (msnyder@cleaver.cygnus.com)
7118
7119         * tracepoint.c (tracepoint_operation): call free_actions instead
7120         of free.  (free_actions): eliminate some memory leaks for actions.
7121         (validate_actionline): pass string arg by reference, so we can 
7122         change the pointer.  Change all memrange collection arguments to
7123         canonical form (literal address and size), to enforce early
7124         evaluation.  Accept UNOP_MEMVAL (assembly variables) for 
7125         trace collection.  (parse_and_eval_memrange): accept expressions
7126         for the address and size fields of a memrange (and evaluate
7127         them immediately).  (several places): use -1 instead of zero
7128         to distinguish an absolute memrange from a register-relative one.
7129         (encode_actions): add handling for UNOP_MEMVAL (assembly variable).
7130
7131 Wed Feb  4 17:40:21 1998  Jason Molenda  (crash@bugshack.cygnus.com)
7132
7133         * Makefile.in (SFILES): add tracepoint.c.
7134         (LINTFILES): add @CONFIG_SRCS@.
7135         (SOURCES): Ditto.
7136         * configure.in (CONFIG_SRCS): Mirror use of CONFIG_OBS.
7137         * configure: Regenerated.
7138
7139 Tue Feb  3 16:12:32 1998  Gordon W. Ross (gwr@mc.com)
7140
7141         * infptrace.c (child_resume): Don't try to step if 
7142         NO_SINGLE_STEP is defined.
7143
7144 Mon Feb  2 19:06:13 1998  Jason Molenda  (crash@bugshack.cygnus.com)
7145
7146         * Makefile.in (VERSION): Bump to 4.16.2.
7147
7148 Mon Feb  2 17:18:25 1998  Richard Henderson  <rth@cygnus.com>
7149
7150         * alpha-nat.c (fetch_aout_core_registers): Rename from
7151         fetch_core_registers.
7152         (fetch_elf_core_registers): New function.
7153         (supply_gregset): Use ALPHA_REGSET_BASE.
7154         (supply_fpregset): Likewise.
7155         (fill_fpregset): Likewise.
7156         (alpha_aout_core_fns): Rename from alpha_core_fns.
7157         (alpha_elf_core_fns): New.
7158         * config/alpha/alpha-linux.mh (NATDEPFILES): solib.o not osfsolib.o.
7159         Disable MMALLOC.
7160         * config/alpha/nm-linux.h (SVR4_SHARED_LIBS): Define if ELF.
7161         (TARGET_ELF64): Likewise.
7162         (ALPHA_REGSET_BASE): New.
7163         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): New.
7164         * config/alpha/tm-alphalinux.h: Include tm-sysv4.h.
7165
7166         * solib.c (elf_locate_base): Add TARGET_ELF64 support.
7167         (info_sharedlibary_command): Likewise.
7168
7169         * configure.host: Match alpha*.
7170         * configure.tgt: Likewise.
7171
7172 Fri Jan 30 15:11:38 1998  David Taylor  <taylor@texas.cygnus.com>
7173
7174         Changes by <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7175         * infrun.c (IN_SOLIB_DYNSYM_RESOLVE_CODE): new macro for detecting
7176         whether we are in the dynamic symbol resolution code 
7177         (wait_for_inferior): invoke it.
7178         * solib.c (in_svr4_dynsym_resolve_code): new function
7179         (enable_break): record start and end of the dynamic linker
7180         text and plt sections for use in in_svr4_dynsym_resolve_code.
7181         * solib.h (IN_SOLIB_DYNSYM_RESOLVE_CODE): add svr4 definition;
7182         (in_svr4_dynsym_resolve_code): declare it.
7183         * config/nm-gnu.h (solib.h): move inclusion to after definition
7184         of SVR4_SHARED_LIBS.
7185         * config/nm-sysv4.h (solib.h): ditto.
7186         * config/i386/nm-i386sco5.h (solib.h): ditto.
7187         * config/i386/nm-linux.h (solib.h): ditto.
7188         * config/mips/nm-irix5.h (IN_SOLIB_DYNSYM_RESOLVE_CODE): undefine.
7189
7190 Thu Jan 29 19:39:31 1998  Stan Shebs  <shebs@andros.cygnus.com>
7191
7192         * coffread.c (coff_symtab_read) [SEM]: Remove code, macro can
7193         never be defined.
7194         * dbxread.c (process_one_symbol) [BLOCK_ADDRESS_ABSOLUTE]:
7195         Remove, no longer needed.
7196         * hppa-tdep.c (N_SET_MAGIC): Remove, no longer used.
7197         * config/pa/xm-hppab.h (SEEK_SET, SEEK_CUR, SEEK_END): Ditto.
7198         * config/mips/tm-mipsm3.h (NUMERIC_REG_NAMES): Ditto.
7199         * config/mips/mipsm3.mt (TDEPFILES): Remove mipsread.o.
7200
7201 Wed Jan 28 14:46:52 1998  Stan Shebs  <shebs@andros.cygnus.com>
7202
7203         Suggested by Chris Walter <walter@budoe.bu.edu>:
7204         * dwarfread.c (set_cu_language): Recognize Fortran.
7205         * dwarf2read.c (set_cu_language): Ditto.
7206         (read_array_type): Fix language test.
7207
7208 Wed Jan 28 12:51:08 1998  Michael Snyder  (msnyder@cleaver.cygnus.com)
7209  
7210         * blockframe.c (generic_frame_chain_valid): A frame pointer may
7211         be valid if it is equal to the frame pointer of its caller (ie.
7212         not necessarily strictly INNER_THAN).  Allows frameless functions.
7213  
7214 Wed Jan 28 11:23:25 1998  Mark Alexander  <marka@cygnus.com>
7215
7216         * monitor.c (monitor_vsprintf): New function to handle
7217         printing of large addresses using %A format specifier.
7218         (monitor_printf_noecho, monitor_printf): Use monitor_vsprintf
7219         instead of vsprintf.
7220         * dve3900-rom.c (_initialize_r3900_rom): Use %A instead of %Lx
7221         to print addresses.
7222
7223 Tue Jan 27 16:14:23 1998  Jason Molenda  (crash@bugshack.cygnus.com)
7224
7225         * configure.in (CONFIG_LDFLAGS): Only add -export-dynamic
7226         when using GNU ld.
7227
7228 Mon Jan 26 19:07:46 1998  Jason Molenda  (crash@bugshack.cygnus.com)
7229
7230         * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset):
7231         Add closing parenthesis.  From HJ Lu.
7232
7233 Mon Jan 26 17:54:45 1998  Mark Alexander  <marka@cygnus.com>
7234
7235         * dve3900-rom.c: Improve performance by using memory commands
7236         that print less fluff.  Minor cosmetic changes.
7237         Eliminate compiler warnings.
7238
7239 Sat Jan 24 23:44:43 1998  Martin M. Hunt  <hunt@cygnus.com>
7240
7241         * breakpoint.c (enable_breakpoint): Preserve breakpoint
7242         disposition when enabling a breakpoint.
7243
7244         * symtab.c (find_pc_sect_line): If no symbol information
7245         is found, return correct pc anyway.
7246
7247 Fri Jan 23 17:26:22 1998  Stan Shebs  <shebs@andros.cygnus.com>
7248
7249         * configure.host (i[3456]86-*-osf1mk*, mips-*-mach3*,
7250         ns32k-*-mach3*): Fix file names.
7251         (i[3456]86-*-os9k, m88*-*-mach3*, w65-*-*): Remove config
7252         recognition, no source files for these.
7253         * configure.tgt (powerpc-*-aix4*): Remove config, now identical
7254         to powerpc-*-aix*.
7255         * config/powerpc/{aix4.mh,aix4.mt,tm-ppc-aix4.h}: Remove files,
7256         no longer needed.
7257
7258 Fri Jan 23 16:49:41 1998  Mark Alexander  <marka@cygnus.com>
7259
7260         * monitor.c (monitor_write, monitor_readchar): New functions.
7261         * monitor.h (monitor_write, monitor_readchar): Declare.
7262         * dve3900-rom.c: Add support for fast loading on ethernet connections.
7263
7264 Fri Jan 23 07:47:06 1998  Fred Fish  <fnf@cygnus.com>
7265
7266         * config/d10v/tm-d10v.h (CALL_DUMMY): Define as "{ 0 }".
7267         (TARGET_READ_FP): Define to d10v_read_fp rather than d10v_read_sp.
7268         (TARGET_WRITE_FP): Define to d10v_write_fp rather than d10v_write_sp.
7269         (d10v_write_fp, d10v_read_fp): Add prototypes.
7270         * symtab.c (decode_line_1): Remove assignment of sals[0].pc field.
7271         * symfile.c (simple_overlay_update, simple_overlay_update_1):
7272         Ignore the size of overlay sections.  This check is redundant anyway.
7273         * printcmd.c (print_frame_args): Ditto.
7274         * valops.c (value_fetch_lazy): Ditto.
7275         * values.c (unpack_long): Ditto.
7276         * d10v-tdep.c (d10v_frame_chain, d10v_frame_find_saved_regs,
7277         d10v_init_extra_frame_info): Fix some minor bugs so the finish command
7278         works properly.
7279         (show_regs): Change num1 and num2 types from "long long" to "LONGEST".
7280         (d10v_read_fp, d10v_write_fp): New functions.
7281         (d10v_push_arguments): Remove unneeded assigns to "val" and "contents".
7282         (d10v_push_arguments): Fix for pointers and structs.
7283         (d10v_extract_return_value): Fix for pointers and chars.
7284
7285 Tue Jan 20 18:53:18 1998  Stan Shebs  <shebs@andros.cygnus.com>
7286
7287         * configure.tgt (i386-*-mach*, m88*-*-mach3*): Remove config
7288         recognition, no source files for these (note that the i386 Mach
7289         config is for pre-Mach 3).
7290         (mips*-*-mach3*, ns32k-*-mach3*): Fix file names.
7291         * config/mips/mipsel64.mt: Remove, never referenced.
7292
7293 Mon Jan 19 14:01:28 1998  Stan Shebs  <shebs@andros.cygnus.com>
7294
7295         * top.c (print_gdb_version): Restore to original message.
7296
7297 Mon Jan 19 13:34:40 1998  Ian Lance Taylor  <ian@cygnus.com>
7298
7299         From cgf@bbc.com (Chris Faylor):
7300         * win32-nat.c (child_mourn_inferior): Call ContinueDebugEvent to
7301         let the child exit.
7302         (child_kill_inferior): Respond to all debug events as the child is
7303         terminating.
7304
7305         * Makefile.in (all): Change gdb dependency to gdb$(EXEEXT).
7306         (uninstall): Add $(EXEEXT) to file name to remove.
7307         (gdb$(EXEEXT)): Rename target from plain gdb.
7308         (gdb1$(EXEEXT)): Rename target from plain gdb1.
7309         (clean, mostlyclean): Add $(EXEEXT) to binary names to remove.
7310
7311 1998-01-16  Felix Lee  <flee@cygnus.com>
7312
7313         * top.c (print_gdb_version): delete stutter.
7314
7315 Thu Jan 15 12:29:13 1998  Nick Clifton  <nickc@cygnus.com>
7316
7317         * remote-rdi.c (arm_rdi_open): Patch from Tony.Thompson@arm.com
7318         to prevent spurous error messages on non-ICE targets.
7319
7320 Wed Jan 14 19:27:02 1998  Stan Shebs  <shebs@andros.cygnus.com>
7321
7322         * config/mips/{r3900.mt,r3900l.mt,tm-r3900.h,tm-r3900l.h}:
7323         Remove, no longer used.
7324
7325 Wed Jan 14 18:11:26 1998  Michael Meissner  <meissner@cygnus.com>
7326
7327         Patch from Jim Wilson.
7328         * d30v-tdep.c (d30v_frame_find_saved_regs_offsets): Properly
7329         declare void function before use.
7330
7331         * config/d30v/tm-d30v.h (CALL_DUMMY): Initialize as { 0 }, not {}.
7332
7333 Tue Jan 13 16:38:48 1998  Fred Fish  <fnf@cygnus.com>
7334
7335         * configure.in (--with-mmalloc): Add new configure arg to use the
7336         mmalloc package.  Default is to not use it.
7337         (START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not
7338         the string "2".
7339         * acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef.
7340         * configure: Regenerated.
7341         * config.in: Regenerated.
7342         * Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove.
7343         (MMALLOC): Set using configure.
7344         (MMALLOC_CFLAGS): Set using configure.
7345
7346         * config/i386/tm-linux.h (sys_quotactl): Define to 1 rather
7347         than just defining it.
7348         * mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC.
7349         * utils.c (NO_MMALLOC): Use USE_MMALLOC instead.
7350         * objfiles.c: ditto.
7351         * defs.h: ditto.
7352
7353         * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove.
7354         * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove.
7355         * config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove.
7356         * config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove.
7357         * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove.
7358         * gdbserver/Makefile.in (MMALLOC_*): Remove.
7359         * config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7360         * config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7361         * config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7362         * config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7363         * config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7364         * config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7365         * config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7366         * config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7367         * config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove.
7368         * config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7369         * config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7370         * config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7371         * config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7372         * config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7373
7374 Mon Jan 12 11:46:51 1998  Michael Snyder  (msnyder@cleaver.cygnus.com)
7375
7376         * config/m68k/tm-m68k.h (REGISTER_VIRTUAL_TYPE): make A0 thru A7
7377         default to void pointer type (so that their default radix is hex).
7378
7379         * symtab.c: move rbreak_command from no_class to class_breakpoint
7380         so it will be listed under "help breakpoints".
7381
7382 Sat Jan 10 14:58:04 1998  Stan Shebs  <shebs@andros.cygnus.com>
7383
7384         * rdi-share/hostchan.c: Remove gettimeofday declaration.
7385
7386 Thu Jan  8 11:03:59 1998  Nick Clifton  <nickc@cygnus.com>
7387
7388         * remote-rdp.c: Applied patches submitted by Tony.Thompson@arm.com
7389         to implement the Angel remote debugging interface.
7390
7391         * Makefile.in: Add build rules for remote-rdi.c and
7392         rdi-share/libangsd.a.
7393
7394         * configure.tgt: Updated from source on branch.
7395         * config/arm/tm-arm.h: Updated from source on branch.
7396         * arm-tdep.c: Updated from source on branch.
7397
7398         * rdi-share: New directory, RDI library contributed by ARM.
7399
7400 Mon Jan  5 20:21:59 1998  Mark Alexander  <marka@cygnus.com>
7401
7402         * monitor.h (MO_PRINT_PROGRAM_OUTPUT): Define.
7403         * monitor.c (monitor_wait): Echo program output.
7404         * dve3900-rom.c (_initialize_r3900_rom): Remove MO_HANDLE_NL flag,
7405         add MO_PRINT_PROGRAM_OUTPUT flag.
7406
7407 Mon Jan  5 18:21:11 1998  David Taylor  <taylor@texas.cygnus.com>
7408
7409         * top.h (HAVE_SIGSETJMP): define SIGJMP_BUF, SIGSETJMP, and
7410         SIGLONGJMP appropriately based on whether HAVE_SIGSETJMP is
7411         defined.
7412         * top.c (return_to_top_level, catch_errors): use the new macros
7413         * main.c (SET_TOP_LEVEL): ditto.
7414         * config/xm-sysv4.h (HAVE_SIGSETJMP): Define.
7415
7416 Fri Jan  2 18:48:58 1998  Mark Alexander  <marka@cygnus.com>
7417
7418         * configure.in: Double up brackets in shell case pattern.
7419
7420 Fri Jan  2 17:06:05 1998  Michael Snyder  (msnyder@cleaver.cygnus.com)
7421
7422         * tracepoint.c (finish_tfind_command): improved algorithm for
7423         deciding when we've "stepped" into a new stack frame.
7424         (map_args_over_tracepoints): loop over tracepoint list "safely", 
7425         since list elements may be deleted during loop.
7426         (read_actions): add actions to history list.
7427
7428 For older changes see ChangeLog-97
7429 \f
7430 Local Variables:
7431 mode: change-log
7432 left-margin: 8
7433 fill-column: 74
7434 version-control: never
7435 End: