3 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
4 inits of new fields, including ref to bogus field.
5 (vx_ops, vx_run_ops): Make static.
9 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
10 already defined in tm.h.
12 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
13 conditionalize its inclusion.
18 * corelow.c (core_ops): Don't initialize statically.
19 (init_core_ops): New function, fills in core_ops.
20 (_initialize_corelow): Use it.
24 The following changes were made by
29 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Change to read
30 nullify instruction bit from IPSW only when we are not in a system
32 (STRCAT_REGISTER, pa_do_strcat_registers_info): Additional
33 parameter -- precision.
35 * Makefile.in (BUILD_TUI): To build the tui, only when configured
37 (YLWRAP): Use ylwrap to avoid problems on systems w/o bison.
38 (gdb$(EXEEXT)): Make it dependent on BUILD_TUI.
39 (all-tui): Remove dependency from phony target.
40 (c-exp.tab.c): Use ylwrap instead of bison.
41 (jv-exp.tab.c): Ditto.
43 (m2-exp.tab.c): Ditto.
45 * configure.in (ENABLE_CFLAGS): Define and export BUILD_TUI.
47 * configure: Regenerated.
49 * c-typeprint.c (c_type_print_base): Get to the method name by
50 skipping over all the namespaces, classes and '::'.
52 * infcmd.c (run_command): Only call SOLIB_RESTART if it's
54 (detach_command): Ditto.
56 * infptrace.c (call_ptrace): Add some debugging code.
58 * infrun.c (follow_inferior_fork): Only define on HP.
59 (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have
60 shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE
63 * Makefile.in (ALLDEPFILES): Add somread.c, hp-psymtab-read.c,
65 (SFILES): Remove the above files
66 (COMMON_OBS): Remove somread.o
67 (SFILES): Add the tui files to this, so they get
68 included in etags tables.
69 (all-tui): New rule, which does a recursive make in the tui
71 (gdb$(EXEEXT)): Add tui-all to the list of
72 dependencies, and add tui/libtui.a to the link list.
73 (tui/libtui.a): When recursing, pass down
74 ${FLAGS_TO_PASS}. And don't echo the make command. This is
75 closer to what the other recursions do.
76 (HFILES_NO_SRCDIR) add hpread.h.
77 (COMMON_OBS): Add hp-psymtab-read.o, hp-symtab-read.o
78 Allow the TUI code to be conditionally enabled.
79 (TUI_TARGET, TUI_LIBRARY): New variables, whose values are set by
80 the configuration script. They're set to the empty string when
81 the TUI isn't enabled.
82 (gdb$(GDBEXT)): Use those, instead of referring to tui-all and
83 tui/libtui.a directly.
85 * Makefile.in: Avoid spurious relinking.
86 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
87 fictitious target. Since the fictitious target never existed, make
89 (tui/libtui.a): Renamed from all-tui. Always recurse to make sure
90 the library is up to date.
91 (TUI_TARGET): Variable removed; there's no need for it any more.
93 * Makefile.in: Look for tui include files in the tui source dir.
95 * Use automake's `aclocal' program to generate aclocal.m4, to allow
96 us to use automake macros in configure.in with impunity.
98 * acconfig.h: Add an entry for the `TUI' symbol.
100 * acinclude.m4: New file, containing the code from the old
101 aclocal.m4. Incorporate (by reference) ../bfd/acinclude.m4, not
102 ../bfd/aclocal.m4, since we only want bfd's local macros.
104 * aclocal.m4: Now automagically generated. Just run aclocal!
106 * annotate.c (annotate_catchpoint): New function.
108 * annotate.h: Taking the new includes (symtab.h and gdbtypes.h).
109 not taking the ansic C build fix.
110 (annotate_catchpoint): Declare.
112 * blockframe.c (blockvector_for_pc_sect): Check that the end of
113 the block is >= to the pc, not just >.
115 * breakpoint.c (create_temp_exception_breakpoint): #If it out --
117 (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not
118 defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined.
119 (bpstat_get_triggered_catchpoints): If we don't have shared
120 library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor
121 SOLIB_UNLOADED_LIBRARY_PATHNAME.
122 (watch_command_1): Don't require a run before a watch command
123 unless we're on HP [it's an HP OS bug, not a generic limitation]
124 (catch_load_command_1): Don't define if no shared libraries.
125 (catch_command_1): Don't claim to support fork catchpoints unless
126 CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support
127 vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined,
128 don't clain to support shared library load catchpoints if shared
129 libraries aren't supported, and don't claim to support exec
130 catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined
132 (bpstat_do_actions): If we just set cmd to NULL, don't then try to
133 set it to cmd->next as we'll SEGV.
134 (bpstat_do_actions): Simplify significantly. It's
135 now almost as simple as before the merge and it no longer has the
136 HP bug that breakpoint commands are executed repeatedly.
138 (break_at_finish_command_1): Rewrite and make sure
139 selected_frame points to a frame before using it. Fix string
141 (break_at_finish_at_depth_command_1): Ditto.
143 (can_use_hw_watchpoints): New static variable.
144 (read_memory_nobpt): Test for breakpoint type bp_none.
145 (insert_breakpoints): Test for breakpoint type bp_catch_exec;
146 insure have a current frame before getting the frame address.
147 (remove_breakpoints): Check for breakpoints of types bp_none,
148 bp_catch_fork, bp_catch_vfork, and bp_catch_exec.
149 (bpstat_stop_status): Fix updates of b->hit_count.
150 (bpstat_have_active_hw_watchpoints): New function.
151 (create_exec_event_watchpoint): New function.
152 (watch_command_1): Use can_use_hw_watchpoints.
153 (catch_fork_command_1): Change name of function to call from
154 target_create_catch_(v)fork_hook to create_(v)fork_even_catchpoint.
155 (delete_breakpoint): Test for already deleted breakpoints; add
156 support for bp_catch_fork, bp_catch_vfork, and bp_catch_exec
158 (_initialize_breakpoint): Add can-use-hw-watchpoints to list of
159 user settable debugger variables.
161 (clear_command): When there is no argument
162 to the clear command, delete all breakpoints that are hit at
163 default line. This will include a breakpoint whose line number
164 does not correspond to the default line, but has been set at
167 (delete_breakpoint): Don't call bpstat_clear_actions, instead
168 clear things explicitly; if clearing breakpoint_at, then also
169 clear any associated actions so that bpstat_do_actions won't try
171 (_initialize_breakpoint): Fix function name for bx command.
173 (tbreak_command): Remove static from declaration.
174 (maintenance_info_breakpoints): Ditto.
176 (reattach_breakpoints): New funct definition, used with with
178 (breakpoint_1): Change format and add entries to bptypes[]
179 (maintenance_info_breakpoints): Function is no longer static
181 (_initialize_breakpoint): Removed a comment.
182 (exception_catchpoints_are_fragile,
183 exception_support_initialized): Define.
184 (breakpoint_here_p): Fixed syntax error in conditional
185 (disable_watchpoints_before_interactive_call_start): Fixed call to
186 check_duplicates. Need a section parameter.
187 (enable_watchpoints_after_interactive_call_stop): Fixed call to
188 check_duplicates. Need a section parameter.
189 (breakpoint_re_set_one): Fixed call to check_duplicates. Need a
191 (delete_command): Fixed syntax error in conditional
192 (breakpoint_re_set): Fixed some typos.
194 (args_for_catchpoint_enable): New type for handling exceptions.
195 (current_exception_event): New variable for handling exceptions.
196 (insert_breakpoints): Check for additional breakpoint types --
197 bp_catch_throw, bp_catch_catch, call_disabled. Also, do some
198 additional work to handle an exception catchpoint.
199 (remove_breakpoint): There are additional breakpoint types to
200 check for: Bp_catch_throw, bp_catch_catch, call_disabled. Also do
201 some additional work to remove the exception catchpoints
202 (breakpoint_init_inferior): New input parameter. If there are
203 exception catchpoints delete them.
204 (breakpoint_here_p): There are additional breakpoint enable
205 settings to check for: Shlib_disabled, call_disabled
206 (breakpoint_thread_match): There are additional breakpoint enable
207 settings to check for: Call_disabled
208 (ep_is_catchpoint): There are additional breakpoint types to check
209 for: Bp_catch_throw, bp_catch_catch
210 (ep_is_exception_catchpoint): New function
211 (bpstat_find_step_resume_breakpoint): New function
212 (bpstat_do_actions): Introduce a local copy of the bpstat
214 (print_it_normal): There are additional breakpoint types to check
215 for: Bp_catch_throw, bp_catch_catch Changeing the control
216 structure a bit (adding else ifs) Add code to print out info about
218 (bpstat_stop_status): There are additional breakpoint enable
219 settings to check for: Call_disabled. there are additional
220 breakpoint types to chack for: Bp_catch_catch and bp_catch_throw.
221 Check to see if stopped due to an exception. Minor fixes to the
222 catch_errors calls. Make sure to count all encountered
223 breakpoints. There was something funky going on previously with
225 (bpstat_what): Add cases for new breakpoint types:
226 bp_catch_catch, bp_catch_throw.
227 (bpstat_get_triggered_catchpoints): Check for new breakpoint types
228 : Bp_catch_catch, bp _catch_throw.
229 (breakpoint_1): Account for new breakpoint types.
230 (describe_other_breakpoints): Account for new breakpoint enable
231 setting (call_disabled)
232 (check_duplicates): Account for new breakpoint enable setting
234 (disable_breakpoints_in_shlibs): New function
235 (disable_watchpoints_before_interactive_call_start): New function
236 (mention): Account for new breakpoint types.
237 (break_command_1): Some additional checking for a valid PC.
238 (watch_command_1): Some dditional checking to prevent a watch
239 before a run command.
240 (ep_parse_optional_filename): Simplified for loop.
241 (create_exception_catchpoint): New function
242 (cover_target_enable_exception_callback): New function
243 (handle_gnu_4_16_catch_command): This used to be thcatch_command_1
245 (create_temp_exception_breakpoint): New function
246 (catch_command_1): Differs from gdb 4.16 and gdb 4.17. Is now
247 calling catch_exception_command_1 using the EX_EVENT_CATCH and
248 EX_EVENT_THROW values as parameters.
249 (clear_command): Additional comments
250 (delete_breakpoint): Handle exceptions. Check for additional
251 breakpoint enable settings: Shlib_disabled, call_disabled.
252 (delete_command): Hp folks are claiming that we should not delete
253 shlib_event breakpoints
254 (breakpoint_re_set_one): Moved call to check_duplicates. Add new
255 breakpoint types to switch statement.
256 (breakpoint_re_set_thread): New function
257 (enable_command): Account for new breakpoint types.
259 (insertion_state_t): New enumerated type.
260 (remove_breakpoint): New param in funct prototype.
261 (insert_breakpoints): Check for bp_catch_fork and bp_catch_vfork.
262 (remove_breakpoints): Changed call to remove_breakpoint.
263 (detach_breakpoints): New function.
264 (remove_breakpoint): New parameter, is. Also changed the
265 way b->inserted is set.
266 (ep_is_catchpoint): New function.
267 (ep_is_shlib_catchpoint): New function.
268 (print_it_normal): Check for bp_catch_load, bp_catch_unload,
269 bp_catch_fork, bp_catch_vfork, bp_catch_exec. Also new code
270 to print out catchpoints properly.
271 (bpstat_stop_status): Check for bp_catch_fork, bp_catch_vfork,
272 and bp_catch_exec. Also, some code to check for catching a
273 shared library load/unload.
274 (bpstat_what): Added catch_shlib_event to class enumeration.
275 Defined new macro, shlr. Expanded the bpstat_what_main_action
276 table. Add cases for bp_catch_load, bp_catch_unload,
277 bp_catch_fork, bp_catch_vfork, and bp_catch_exec.
278 (bpstat_get_triggered_catchpoints): New function.
279 (breakpoint_1): Changes to bptypes definition. Also check for
280 bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork,
281 bp_catch_exec. Similar changes to the switch statement.
282 (set_raw_breakpoint): Initialize new breakpoint structure fields.
283 dll_pathname, triggered_dll_pathname, forked_inferior_pid,
285 (create_solib_load_unload_event_breakpoint): New function.
286 (create_solib_load_event_breakpoint): New function.
287 (create_solib_unload_event_breakpoint): New function.
288 (create_fork_vfork_event_catchpoint): New function.
289 (create_fork_event_catchpoint): New function.
290 (create_vfork_event_catchpoint): New function.
291 (mention): New cases for bp_catch_load, bp_catch_unload,
292 bp_catch_fork, bp_catch_vfork, bp_catch_exec.
293 (ep_skip_leading_whitespace): New function.
294 (ep_find_event_name_end): New function.
295 (ep_parse_optional_if_clause): New function.
296 (ep_parse_optional_filename): New function.
297 (catch_fork_kind): New enumerated type.
298 (catch_fork_command_1): New function.
299 (catch_exec_command_1): New function.
300 (catch_load_command_1): New function.
301 (catch_unload_command_1): New function.
302 (catch_throw_command_1): New function.
303 (catch_command_1): Now calls catch_throw_command_1.
304 (tcatch_command): New function.
305 (delete_breakpoint): Changed call to remove_breakpoint.
306 Also free the new fields in the breakpoint structure.
307 (breakpoint_re_set_one): Handle bp_catch_load, bp_catch_unload,
308 bp_catch_fork, bp_catch_vfork, bp_catch_exec.
309 (disable_command): Handle bp_catch_load, bp_catch_unload,
310 bp_catch_fork, bp_catch_vfork, bp_catch_exec.
311 (enable_command): Handle bp_catch_load, bp_catch_unload,
312 bp_catch_fork, bp_catch_vfork, bp_catch_exec.
313 (_initialize_breakpoint): Alter add_com call for catchpoints,
314 add add_com call for watchpoints.
316 * breakpoint.h (enum bptype): New entries bp_catch_catch,
317 bp_catch_throw, and bp_none, bp_catch_load, bp_catch_unload,
318 bp_catch_fork, bp_catch_vfork,bp_catch_exec. Add declarations for
319 new functions bpstat_have_active_hw_watchpoints and
320 create_exec_event_catchpoint.
321 (tbreak_command): Add prototype.
322 (update_breakpoints_after_exec): Add prototype; update comments.
323 (reattach_breakpoints): New funct prototype declaration.
324 (enable): New enumerated value call_disabled.
325 (bpstat_find_step_resume_breakpoint): New funct decl.
326 (inf_context): New enumerated type.
327 (breakpoint_re_set_thread): New funct decl.
328 (breakpoint_init_inferior): New parameter.
329 (disable_watchpoints_before_interactive_call_start): New funct decl.
330 (enable_watchpoints_after_interactive_call_stop): New funct decl.
331 (disable_breakpoints_in_shlibs): New funct decl.
332 (struct breakpoint): New fields, dll_pathname,triggered_dll_pathname,
333 forked_inferior_pid,exec_pathname BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
334 (bpstat_get_triggered_catchpoints): New function.
335 (detach_breakpoints): New function.
336 (create_solib_load_event_breakpoint): New function.
337 (create_solib_unload_event_breakpoint) New function.
338 (create_fork_event_catchpoint): New function.
339 (create_vfork_event_catchpoint): New function.
340 (ep_is_catchpoint): New function.
341 (ep_is_shlib_catchpoint) New function.
342 (enum bpstat_what_main_action): New entry.
344 * buildsym.c (finish_block): Get rid of processing_hp_compilation;
345 handle LOC_INDIRECT case. Set the BLOCK_GCC_COMPILED to the right
347 (push_context): Add symbols for parameters to the context_stack.
348 (merge_symbol_lists): New function. Merges two symbol lists.
349 (struct context_stack): Add new field param.
351 (processing_hp_compilation): New external var.
353 * c-exp.y: Use external flag hp_som_som_object_present to decide
354 whether code was compiled by HP's compilers. Add two new C++
355 tokens for true and false.
356 (yylex): Check for template name is done differently for the
357 HP/aCC compiler case; change some of the template processing code
358 for handling HP aCC templates.
360 * c-lang.c (c_create_fundamental_type): Added case to handle
361 template args. Handle FT_BOOLEAN type. Set no sign flag for
363 (cplus_builtin_types): New structure for c++ builtin types.
364 (cplus_language_defn): Use cplus_builtin_types instead of
367 * c-typeprint.c (c_type_print_base): Don't print 'privete' label
368 for a class if all members are private, similarly don't print
369 'public' for a struct. Add support for sized enums (HP/aCC). get
370 rid of the 'static' keyword printed by the demangler for member
371 function, when printing the type of a class. 'static' will be
372 added by this function. If the demangled name is null, and the
373 method is not stubbed, get the signature by looking at the
374 information stored in the symbol structure. Remove printing of
375 'const' and 'volatile' keywords for methods. This is now taken
376 care as part of the demangled member names.
377 (cp_type_print_method_args): New function. To print a C++ method
378 arguments and name to the output stream.
380 (c_type_print_cv_qualifier): New function. Print out "const" and
381 "volatile" attributes.
382 (c_type_print_varspec_prefix): Print const or volatile qualifiers.
383 (c_type_print_args): Print 'void' for c++.
384 (c_type_print_varspec_suffix): Print 'void' for a no argument
386 (c_type_print_base): Print const or volatile qualifiers. Do not
387 print 'unnamed union' if HP aCC compiler used. Distinguish
388 between struct and class based on the DECLARED_TYPE. Handle
389 HP/aCC compiler case for not printing vtable. Add Template
392 (cp_type_print_derivation_info): Print out 'protected' when
393 appropriate. This applies only to HP's compilers, not gcc.
395 (c_val_print): Added parameter embedded_offset. Add
396 embedded_offset to valaddr in function calls; fix calls to
397 val_print and cp_print_value_fields. process TYPE_CODE_METHOD as
398 well. moved call to check_typedef out of conditional. added
399 embedded offset param to val_print call.
401 (c_value_print): Add new parameter to call to val_print.
402 handle pointer to class case. Attempt to
403 determine the real type of the object to be printed.
404 ensure that const char *, const unsigned char *
405 come out without the type but the volatile variants
406 and the signed variants don't.
408 * coff-solib.c (coff_solib_add): Add parameters to call
411 * coff-solib.h: (Solib_REMOVE_INFERIOR_HOOK): New macro. defined
412 to 0. functionality not implemented for coff.
413 (SOLIB_CREATE_CATCH_LOAD_HOOK): New macro, generate error message
415 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Ditto.
416 (SOLIB_HAVE_LOAD_EVENT): Ditto.
417 (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
418 (SOLIB_HAVE_UNLOAD_EVENT): Ditto.
419 (SOLIB_UNLOADED_LIBRARY_PATHNAME): Ditto.
420 (SOLIB_IN_DYNAMIC_LINKER): Ditto.
421 (SOLIB_RESTART): Ditto.
423 * command.c (find_cmd): New function. (lookup_cmd_1): Call it,
424 change parsing if tui_version or xdb_commands is set.
425 (_initialize_command): Install new alias if xdb_commands is set.
427 * complaints.h: Add ifdef...endif pair at beginning and end of file.
429 * config.in, configure: Regenerated.
431 * config/pa/hppabsd.mh (NATDEPFILES): Added new files
432 hp-psymtab-read.o and hp-symtab-read.o.
433 * config/pa/hppahpux.mh (NATDEPFILES): Ditto.
435 * config/pa/hppahpux.mh (TERMCAP): Use -lHcurses.
436 * config/pa/hppaosf.mh (NATDEPFILES): Ditto.
438 * config/pa/hpux1020.mh (TERMCAP): Use -lHcurses.
439 (MH_CFLAGS): New flag, -D__HP_CURSES, this define
440 is used by HP's linker to find the correct curses library.
442 * config/pa/hpux1020.mh: New file.
444 * config/pa/hpux1020.mt: New file.
446 * config/pa/hpux1100.mh (TERMCAP): Link against -lcurses, not
447 -lHcurses. The latter does not contain mvwaddstr, wscrl, or
450 * config/pa/hpux1100.mh (TERMCAP): Use -lHcurses.
451 (MH_CFLAGS): New flag, -D__HP_CURSES, this define
452 is used by HP's linker to find the correct curses library.
454 * config/pa/hpux1100.mh (TERMCAP): When hosting on hpux 11.00, use
455 -lHcurses rather than -lcurses.
457 * config/pa/hpux1100.mh: New file.
459 * config/pa/hpux1100.mt: New file.
461 * config/pa/nm-hppah.h (CHILD_HAS_SYSCALL_EVENT): New macro
462 (CHILD_THREAD_ALIVE): New macro
463 (STOPPED_BY_WATCHPOINT): Add a condition to the macro,
464 ! stepped_after_stopped_by_watchpoint
465 (TARGET_ENABLE_HW_WATCHPOINTS): New macro
466 (hppa_enable_hw_watchpoints): New funct decl
467 (TARGET_DISABLE_HW_WATCHPOINTS): New macro
468 ( hppa_disable_hw_watchpoints): New funct decl
469 these are for HP's implementation of fast
470 watchpoints (via page protection).
471 (target_pid_to_str): New macro, calls hppa_pid_to_str
472 (target_tid_to_str): New macro, calls hppa_tid_to_str
474 * config/pa/nm-hppah.h (CHILD_POST_WAIT): Delete;
475 (CHILD_CREATE_CATCH_FORK_HOOK): Replace with
476 CHILD_INSERT_FORK_CATCHPOINT and CHILD_REMOVE_FORK_CATCHPOINT.
477 (CHILD_CREATE_CATCH_VFORK_HOOK): Replace with
478 CHILD_INSERT_VFORK_CATCHPOINT and CHILD_REMOVE_VFORK_CATCHPOINT.
479 (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC,
480 CHILD_INSERT_EXEC_CATCHPOINT, CHILD_REMOVE_EXEC_CATCHPOINT,
481 CHILD_HAS_EXECD, CHILD_REPORTED_EXEC_EVENTS_PER_EXEC_CALL,
482 CHILD_POST_ATTACH, TARGET_HAS_HARDWARE_WATCHPOINTS,
483 TARGET_CAN_USE_HARDWARE_WATCHPOINT,
484 TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT,
485 TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT,
486 HAVE_NONSTEPPABLE_WATCHPOINT, target_insert_watchpoint,
487 target_remote_watchpoint): New macros.
489 * config/pa/nm-hppah.h (CHILD_XFER_MEMORY): Reinsert accidentally
492 * config/pa/nm-hppah.h:
493 (PREPARE_TO_PROCEED): Defined macro to use
494 hppa_prepare_to_proceed.
495 (hppa_pid_to_str): Extern decl.
496 (hppa_tid_to_str): Extern decl.
497 (target_pid_or_tid_to_str): New macro definition.
498 (hppa_pid_or_tid_to_str): Extern decl.
499 (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): New macro - for
500 handling events caused by a call to vfork.
501 (hppa_ensure_vforking_parent_remains_stopped): Extern decl.
502 (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): New macro -
503 for handling events caused by a call to vfork.
504 (hppa_resume_execd_vforking_child_to_get_parent_vfork): Extern decl.
506 * config/pa/nm-hppah.h: Fix PREPARE_TO_PROCEED macro.
508 * config/pa/nm-hppah.h: Fix for gcc compile on HPUX, change
509 PT_RDUAREA to PT_RUAREA.
511 * config/pa/nm-hppah.h: Introduced an HPUXHPPA define.
512 A bit of a hack so that I can ifdef some code that
513 only works for the HP wildebeest debugger.
515 * config/pa/nm-hppah.h: Lots of new CHILD_ defines;
516 process_event_kind enum.
518 * config/pa/tm-hppa.h (BREAKPOINT32): New define.
519 (CALL_DUMMY_HAS_COMPLETED): New define.
521 * config/pa/tm-hppa.h (STACK_ALIGN): New macro.
522 (NO_EXTRA_ALIGNMENT_NEEDED): New macro.
523 (PC_REQUIRES_RUN_BEFORE_USE): New macro.
524 (REGISTER_NAMES): Formatting in file changed.
525 (CR27_REGNUM): Base register for thread local storage.
526 (USE_STRUCT_CONVENTION): New macro used to decide whether
527 a function returning a value of type type will
528 put it on the stack or into registers (based on the
529 PA risc calling conventions).
530 (EXTRACT_RETURN_VALUE): Fixed calculation for extracting return value.
531 (VALUE_RETURNED_FROM_STACK): New macro.
532 (TARGET_READ_PC): Declared the function used in the definition.
533 (SKIP_TRAMPOLINE_CODE): Declared the function used in the definition.
534 (TARGET_WRITE_PC): Declared the function used in the definition.
535 (TARGET_READ_FP): Declared the function used in the definition.
537 * config/pa/tm-hppa.h (STRCAT_REGISTER): Define macro for
539 (pa_do_strcat_registers_info): Moved function decl from
540 defs.h to this HPUX specific .h file.
542 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Type_LENGTH returns
543 bytes, not bits; fix off by 8 error.
545 * config/pa/tm-hppa.h:
546 New comment for obj_unwind_info definition
547 New typedef, obj_private_struct
549 * config/pa/tm-hppa.h: Delete most target_ macros -- use default
550 versions instead; remove extraneous comma from proc_wait macro.
552 * config/pa/tm-hppa.h: Get rid of macro HP_COMPILED_TARGET.
554 * config/pa/tm-hppa.h: Removed redefinitions of
555 USE_STRUCT_CONVENTION and STACK_ALIGN macros.
557 * config/pa/tm-hppa.h: Some new definitions
558 New macros: Arg0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM.
559 target_pid_to_exec_file, target_acknowledge_forked_child,
560 target_create_catch_fork_hook, target_create_catch_vfork_hook,
561 target_has_forked, target_has_vforked, require_attach,
562 require_detach, proc_wait
563 New funct decls: Hppa_pid_to_exec_file,
564 hppa_acknowledge_forked_child, hppa_create_catch_fork_hook,
565 hppa_create_catch_vfork_hook, hppa_target_has_forked,
566 hppa_target_has_vforked, hppa_require_attach,
567 hppa_require_detach, process_wait
568 (unwind_table_entry): Added comments to describe struct fields.
570 * config/pa/tm-hppah.h (somsolib.h): Include it.
572 * config/pa/tm-hppah.h:
573 (CHILD_ENABLE_EXCEPTION_CALLBACK): New define
574 (CHILD_GET_CURRENT_EXCEPTION_EVENT): New define
576 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
578 * configure.in (AC_CHECK_HEADERS): Add check for term.h.
580 * configure.in: Add an --enable-tui argument.
582 * configure.in: Construct tui/Makefile from tui/Makefile.in.
584 * configure.in: Use AM_PROG_CC_STDC. If we have the GUI, then we
585 need this to process libgui.h.
587 * convex-tdep.c (decout): Change FILE to GDB_FILE.
589 * corefile.c: Include objfiles.h, symfile.h.
590 (core_file_command): Attempt to determine the name of the symbol
591 file from the core file.
592 (read_memory_string): New function.
594 * corefile.c (core_file_command): Temporary hack to make non-hpux
595 work. For, non-hpux, t->to_core_file_to_sym_file does not have a
596 reasonable value. No target_ops vector on the stack gives it a
597 non-zero value. fix later.
599 * corelow.c (core_file_to_sym_file): Added new local variable,
600 failing command, and do some explicit type castings.
601 (core_ops): Add three new fields: to_has_syscall_event,
602 to_enable_exception_callback, to_get_current_exception_event.
603 Necessary since we still have oldstyle initialization in
606 * corelow.c: Include unistd.h
607 (core_file_to_sym_file): New function
608 (core_file_thread_alive): New function
609 (core_ops): Added new target ops vector fields. see below. And
610 yes we definitiely need to initialize them here, as long as
611 we're using static initialization.
613 * cxux-nat.c (add_shared_symbol_files): Additonal params for calls
616 * defs.h (gdb_file_isatty): New function decl.
618 * defs.h (GDB_FILE): If TUI is defined, define a structure rather
619 than making this an alias for FILE.
620 (gdb_stdout, gdb_stderr): If TUI is defined, then define these
621 as pointers to variables of type GDB_FILE rather than making them
622 be aliases for stdout and stderr.
624 * defs.h (TUIDO): Add definition conditionalized on definition
625 (or lack thereof) of TUI.
627 * defs.h (command_class): Add two additional values.
628 (precision_type): New enum.
630 * defs.h (gdb_fclose): Add declaration.
632 * defs.h (store_address): Change prototype to match function.
634 * defs.h (tui_version, xdb_commands, dbx_commands): Add decl's.
636 * defs.h (gdb_file_deallocate): New function declaration
639 (streamtype): New enumerated type to distinguish between
640 output to a FILE and output to a buffer.
641 (tui_stream): New struct type, named GDB_FILE. Contains,
642 streamtype, FILE, buffer, and bufferlength fields.
643 (gdb_stdout): Of type GDB_FILE, will pass this around gdb
645 (gdb_stderr): Of type GDB_FILE, will pass this around gdb
647 (fputs_unfiltered_hook): Change stream parameter from FILE to
649 (flush_hook): Change stream parameter from FILE to GDB_FILE
650 (gdb_fclose): Fix declaration for gdb_fclose; parameter is now of
652 (gdb_file_adjust_strbuf): New function declaration. function lives in
654 (gdb_file_init_astring): New function declaration. function lives
656 (gdb_file_get_strbuf): New function declaration. function lives
659 * defs.h: Additional include files included when TUI is defined.
661 * defs.h: Funct decl source_full_path_of.
663 * demangle.c: Add HP_DEMANGLING_STYLE_STRING.
665 * demangle.c: Added new demangling style, EDG_DEMANGLING_STYLE_STRING,
666 to the demanglers structure. This is for support of
667 Kuck & Assoc.'s changes for demangling.
669 * eval.c (evaluate_subexp_standard): C++ member function changes.
671 * eval.c (evaluate_subexp_standard): Verify TYPE_TARGET_TYPE is
672 non NULL before dereferencing it.
674 * eval.c (evaluate_subexp_standard): With HP/aCC compiler it is not possible
675 to perform inferior calls via function pointers.
676 Resolve calls to overloaded functions using find_overload_match.
677 We cannot handle HP/aCC pointers to member functions.
678 Deal with HP/aCC pointers to members in various kind of expressions.
680 * f-lang.c (f_printchar): Change FILE to GDB_FILE.
684 * f-lang.c (f_printstr): Change stdout to gdb_stdout.
686 * f-typeprint.c (f_print_type): Change FILE to GDB_FILE.
687 (f_type_print_varspec_prefix): Ditto.
688 (f_type_print_args): Ditto.
689 (f_type_print_varspec_suffix): Ditto.
690 (print_equivalent_f77_float_type): Ditto.
691 (f_type_print_base): Ditto.
693 * findvar.c (): Hp snapshot 3 changes. (extract_address): Coerce
694 return value from extract_unsigned_integer to CORE_ADDR.
695 (store_address): Change val from CORE_ADDR to LONGEST; changes to
696 support machines where CORE_ADDR and LONGEST are different sizes.
697 (get_saved_register): Coerce arg to store_address to LONGEST.
698 (read_relative_register_raw_bytes): Cast last arg to
699 store_address to LONGEST. (read_register): Cast return from
700 extract_address to a CORE_ADDR. (write_register_pid): Change val
701 from LONGEST to CORE_ADDR. (read_pc_pid): Save and restore
702 inferior_pid if necessary. (write_pc_pid): Ditto.
703 (read_var_value): Cast arg to store_address.
705 * findvar.c (read_relative_register_raw_bytes_for_frame): New
707 (read_relative_register_raw_bytes): Call it.
709 * findvar.c (symbol_read_needs_frame): Handle LOC_THREAD_LOCAL_STATIC and
712 * fork-child.c (fork_inferior): Chenge fifth parameter to be a
713 function returning void.
715 * fork-child.c (fork_inferior): Delete unused variable f.
718 (Startup_WITH_SHELL): New macro -- interim fix for a bug
719 (breakup_args): New function -- breaks up an argument string into
720 an argument suitable for passing into execvp().
721 (fork_inferior): Handling problems with starting up gdb with a shell.
722 -- again, this appears to be an interim fix.
725 (fork_inferior): Added a comment
726 (clone_and_follow_inferior): New function.
727 (startup_inferior): Minor formatting changes.
730 (fork_inferior): Hp change is problematic. The -f option has
731 different meanings for different shells. It is particularly
732 inappropriate for bourne shells.
735 (fork_inferior): Added new parameter, pre_trace_fun.
736 pre_trace_fun is a function pointer. For some targets,
737 like HPUX, this function gets called to prepare for forking
741 (fork_inferior): Fixed call to init_trace_fun
744 Moved definition of STARTUP_WITH_SHELL to inferior.h
745 Added a DEBUGGING macro. Currently set to 0. May remove
747 breakup_args: Add DEBUGGING ifdefs. more sophisticated
748 parsing to break up args.
749 (fork_inferior): Rename kshell variable to shell. new local
750 variable, tryname. Make use of STARTUP_WITH_SHELL macro.
751 More error processing if starting up with a shell.
752 (startup_inferior): Distinguish between starting up with a shell
756 Declarations for load_infrun_state and save_infrun_state take
757 an additional parameter.
759 * gdbthread.h: Note that sometime between gdb 4.16 and 4.17,
760 thread.h was renamed gdbthread.h
761 (load_infrun_state): Additional parameters
762 (store_infrun_state): Additional parameters
764 * gdbthread.h: Include breakpoint.h
766 * hp-psymtab-read.c (QUICK_LOOK_UP): Redefine to be 0.
767 (hpread_build_psymtabs): Deal with enums.
768 (hpread_start_psymtab): Include section offset.
769 (hpread_end_psymtab): Take care of offset.
771 * hp-psymtab-read.c (TRUE): Define.
773 (file_exists): New function. Checks for existance of file.
774 (hpread_pxdb_needed): Rewrite.
775 (hpread_quick_traverse): Use correct demangling style.
777 (hpread_get_header): Rewrite.
778 (hpread_get_textlow): Add support for DOC_FUNCTION.
779 (hpread_build_psymtabs): Make sure we do the right thing
782 * hp-psymtab-read.c (hpread_pxdb_check): Change parenthesis positions.
784 * hp-psymtab-read.c (hpread_quick_traverse): Compare CORE_ADDR
785 variable end_addr to 0 instaed of NULL to get rif of gcc warning.
788 (Hpread_get_textlow): Added param to function
789 Defined convennience macros and some datatypes and variables for
790 processing the quick lookup-tables. Looks like the code existed
791 before, but has been munged.
792 (hpread_pxdb_needed): Major rearrangements of code. Additional local
793 variables. Also, more extensive checking for various scenarios:
794 debug info for optimized code vs. unoptimized code, pxdb has been
795 run vs. pxdb has not been run.
796 (VALID_FILE): New macro
797 (VALID_MODULE): New macro
798 (VALID_PROC): New macro
799 (VALID_CLASS): New macro
800 (FILE_START): New macro
801 (MODULE_START): New macro
802 (PROC_START): New macro
803 (FILE_END): New macro
804 (MODULE_END): New macro
805 (PROC_END): New macro
806 (FILE_ISYM): New macro
807 (MODULE_ISYM): New macro
808 (PROC_ISYM): New macro
809 (VALID_CURR_FILE): New macro
810 (VALID_CURR_MODULE): New macro
811 (VALID_CURR_PROC): New macro
812 (VALID_CURR_CLASS): New macro
813 (CURR_FILE_START): New macro
814 (CURR_MODULE_START): New macro
815 (CURR_PROC_END): New macro
816 (CURR_FILE_ISYM): New macro
817 (CURR_MODULE_ISYM): New macro
818 (CURR_PROC_ISYM): New macro
819 (TELL_OBJFILE): New macro
820 (pst_syms_struct): New typedef to keep track of the start/end symbol
821 table (LNTT) indices of psymtabs created so far.
822 (pst_syms_count): New variable
823 (pst_syms_size): New variable
824 (told_objfile): New variable
825 (init_pst_syms): New function. sets up psymtab symbol index stuff.
826 (clear_pst_syms): New function. clean up psymtab symbol index stuff.
827 (record_pst_syms): New function. add info about newest psymtab to symbol
829 (find_next_pst_start): New function. Find a suitable symbol table index.
830 (find_next_file_isym): New function
831 (find_next_proc_isym): New function
832 (find_next_module_isym): New function
833 (scan_procs): New function. Scan and record partial symbols for all
834 functions starting from specified index and in a specified code range.
835 (hpread_quick_traverse: Major rearrangement of code. The function
836 now uses all the nifty macros. There are some new local variables.
837 Check for EDG_DEMANGLING style. ifdef out some code for handling F77.
838 Previously, the function looped over all the modules in the table.
839 Now, the function loops over all the files, modules, and procedures.
840 With HP aCC and CTTI, it is possible for a compiled object to have a
842 (hpread_build_psymtabs): Added a section of code ifdefed by
843 QUICK_LOOK_UP. It check to see whether or not there are any globals
844 in the executable. Fix number of params to hpread_start_psymtab call.
845 Some changes to the way DNTT_TYPE_MODULE is handled.
846 (hpread_get_textlow): Change in signature, minor code changes. The
847 function finds the low address associated with a specified symbol.
848 In looking for the address for the symbol avoid going of the end of
851 * hp-psymtab-read.c: Change TRUE to 1 and FALSE to 0. Do some
854 * hp-psymtab-read.c: Include demangle.h
855 (trans_lang): New function to let gdb know the correct language.
856 (hpread_quick_traverse): Use ARM style demangling.
857 Demangle procedures names.
858 Use gdb language names instead of hp language names.
859 Add symbol to list using its demangled name.
861 * hp-psymtab-read.c: New file.
862 (hpread_call_pxdb): New function. Call PXDB to process our file.
863 (hpread_pxdb_check): New function. Return TRUE if the file needs
864 pre-processing by PXDB and we have thus called PXDB to do this
865 processing and the file needs to be re-loaded.
866 (hpread_quick_traverse): New function. Traverse the quick look-up
867 tables, building a set of psymtabs.
868 (hpread_get_header): New function. Get appropriate header from obj
869 file, based on pxdb type
870 (hpread_symfile_init): No change from hpread.c
871 (hpread_build_psymtabs): If there are quick lookup tables, read those,
872 then scan the global section LNTT. Otherwise, just scan the whole LNTT.
873 Changed: Add a global function entry to the global partial symbol list.
874 Handle end of symbols, for QLT case.
875 In case of TAGDEF, if it is a class or a template, add the name to the
876 var_namespace, so that it is known as a type by gdb.
877 In case of CONSTANT, and it is global, add it to the globals.
878 (hpread_symfile_finish): No change from hpread.c
879 (hpread_get_lntt): Make it not static
880 (hpread_get_gntt): No change from hpread.c
881 (hpread_get_slt): Make it not static
882 (hpread_get_textlow): No change from hpread.c
883 (hpread_start_psymtab): No change from hpread.c
884 (hpread_end_psymtab): No change from hpread.c
886 * hp-symtab-read.c (hpread_get_scope_start): Renamed. It was
888 (hpread_type_translate): Distinguish between signed and unsigned char
890 (hpread_psymtab_to_symtab): Set flag for hp compilation.
891 (hpread_read_function_type): Append symbols for parameters to local
892 list as well as to the global list. Get the parameters types from the
893 local list instead of the global list.
894 (hpread_read_struct_type): Add new field num_fn_fields to next_fn_field
895 structure. Rewrite handling of templates
896 (hpread_type_lookup): Change handling of dntt_type_modifier.
897 (hpread_process_one_debug_symbol): Call hpread_get_scope_start instea
898 of hpread_get_depth. Handle enum as well.
899 (hpread_get_scope_depth): New function. Get nesting depth for a
902 * hp-symtab-read.c (hpread_psymtab_to_symtab): Set
903 processing_gcc_compilation to 0.
905 * hp-symtab-read.c (hpread_psymtab_to_symtab_1): Change stdout to
906 gdb_stdout; change fflush to gdb_flush.
907 (hpread_psymtab_to_symtab): Change fflush to gdb_flush.
909 * hp-symtab-read.c (hpread_read_enum_type): Declare variable.
910 (hpread_read_struct_type): Eliminate references
911 to 'args' member of fn_field.
913 * hp-symtab-read.c (hpread_read_struct_type): A static member
914 is now indicated by the bitsize field, not the bitpos.
915 Initialize physname to empty.
916 (fix_static_member_physnames): Use new macros to deal with
919 * hp-symtab-read.c (hpread_read_struct_type): Change references
920 to bitpos member of struct field to use the FIELD_BITPOS macro.
922 * hp-symtab-read.c (hpread_read_struct_type): Comment out reference to
923 obsolete field fn_field.args.
924 Add struct complaint definitions for complaints.
925 (hpread_read_struct_type): Change call to complain.
926 (hpread_read_array_type): Change call to complain.
927 (hpread_type_lookup): Change call to complain.
928 (hpread_process_one_debug_symbol): Change calls to complain.
929 (hpread_type_translate): Change calls to complain.
931 * hp-symtab-read.c (hpread_read_struct_type): Make sure bitvector
932 has been allocated before calling has_vtable.
934 * hp-symtab-read.c (hpread_read_struct_type): Revert change,
935 just check for vtable without checking for bitvectors too.
938 (Hpread_expand_symtab): Change name of local variable from
939 at_end_of_module to at_module_boundary.
940 Also, if demangling style is already EDG, do not reset it
941 to the HP demangling style.
942 Change at_end_of_module param to hpread_process_one_debug_symbol
943 call to at_module_boundary.
944 No longer break out of loop when reach end of module. With CTTI,
945 the compiler can generate function symbols which are not in
946 any module. Typically they show up after the end of one
947 module and before the start of the next module.
948 (hpread_read_struct_type): Check that the debug info for
949 a TEMPLATE_ARG is correct.
950 (hpread_process_one_debug_symbol): Change name of at_end_of_module_p
951 param to at_module_boundary_p.
952 Also set *at_module_boundary_p = -1 if missing a module end and set
953 it to 1 when finished expanding the debug info.
956 * hp-symtab-read.c: Include defs.h, symtab.h, gdbtypes.h, complaints.h.
957 (fixup_class): New static variable.
958 (fixup_method): New static variable.
959 (hpread_get_location): Rewrite.
960 (hpread_has_name): Add cases for DNTT_TYPE_DOC_FUNCTION and
961 DNTT_TYPE_DOC_MEMFUNC
962 (hpread_expand_symtab): Use HP demangling style.
963 Set hp_som_som_object_present to 1.
964 (hpread_type_translate): Error out if not immediate. Issue warning
965 if there is an unhandled type code.
966 (error_in_hpread_type_translate_complaint): Remove this structure.
967 (hpread_read_enum_type): Don't assume size of enum is always 4 bytes.
968 (hpread_read_function_type): Add new parameter to indicate a new block.
969 Do not add the parameters to the symbol list.
970 If the type was read in earlier, do not modify the type structure.
971 If we are creating a new block, set the local symbol list to be the
973 Need to mark this type as preprocessed.
974 (hpread_read_doc_function_type): New function. Read and internalize
975 a native DOC function debug symbol.
976 (hpread_read_struct_type): A method can be of type doc_function and
978 Handle case in which a method is read before its class. Deal with
979 incomplete method types.
980 Handle cases in which HP/aCC compiler creates operator names w/o
981 the 'operator' keyword. Rewrite the loop over the fileds.
982 (fix_static_member_physnames): New function. Adjust the physnames for
984 (fixup_class_method_type): New function. Fix-up the type structure for a
986 (hpread_read_array_type): Cahnge complaint to warning.
987 (hpread_type_lookup): Add case for DNTT_TYPE_DOC_FUNCTION.
988 For structures/classes set static member to point to strings with full
990 Change calls to hpread_read_function_type to pass extra parameter.
991 (hpread_record_lines): Handle case for SLT_NORMAL_OFFSET.
992 (class_of): New function. Given a function "f" which is a member of a class,
993 find the classname that it is a member of.
994 (hpread_process_one_debug_symbol): Deal with possible alias field from the
995 som record for the Function or Entry type.
996 Do the demangling ourselves if the gdb demangler failed.
997 Add support for DOC functions.
998 For function types, add parameters to local list.
999 (hpread_get_scope_depth): Make this function a no-op.
1000 (hpread_adjust_bitoffsets): New function. Adjust the bitoffsets for all
1001 fields of an anonymous union.
1002 (hpread_get_next_skip_over_anon_unions): New function. Skip over anonymous
1005 * hp-symtab-read.c: Include demangle.h
1006 (hpread_expand_symtab): Ensure we are using ARM-style demangling.
1007 (hpread_process_one_debug_symbol): Set the mangled and demangled
1008 names for functions.
1009 Record the class name to generate the demangled names of member
1012 * hp-symtab-read.c: New file.
1013 (hpread_get_depth): No change from hpread.c
1014 (hpread_get_line): No change from hpread.c
1015 (hpread_get_location): No change from hpread.c
1016 (hpread_has_name): Make it not static. Return 1 for DNTT_TYPE_BLOCKDATA
1017 and DNTT_TYPE_MEMFUNC. Return 0 for CLASS_SCOPE, REFERENCE,PTRMEM,
1018 PTRMEMFUNC, CLASS, GENFIELD, VFUNC, MEMACCESS, INHERITANCE,
1019 FRIEND_CLASS, FRIEND_FUNC, MODIFIER, OBJECT_ID, TEMPLATE, TEMPLATE_ARG,
1020 FUNC_TEMPLATE, LINK.
1021 (hpread_psymtab_to_symtab_1): No changes from hpread.c
1022 (hpread_psymtab_to_symtab): Make it a static function
1023 (hpread_expand_symtab): Modified
1024 (hpread_type_translate): If not typep.dntti.immediate do not abort,
1025 but complain and return. Same for default action. Handle more HP_TYPEs.
1026 (hpread_lookup_type): Initially allocate a correct-size type-vector.
1027 (hpread_alloc_type): Reset type_addr only if a type was allocated.
1028 (hpread_read_enum_type): If this has already a type associated, return.
1029 (hpread_read_function_type): Do different things depending on whether
1030 function is a MEMFUNC, a TEMPLATE, a FUNCTION som record.
1031 Do not use the LOC_REGPARM_ADDR symbol class.
1032 (hpread_read_struct_type): Handle classes and templates too. Major
1034 (hpread_get_nth_template_arg): New function.
1035 (hpread_read_templ_arg_type): New function.
1036 (hpread_read_set_type): No change from hpread.c
1037 (hpread_read_array_type): Modified
1038 (hpread_read_subrange_type): Add handling of more DNTT entries.
1039 added support for templates, classes, references, virtual functions.
1040 (hpread_type_lookup): Handle DNNT_TYPE_MODULE.
1041 (hpread_record_lines): No changes from hpread.c
1042 (hpread_process_one_debug_symbol): Handle WITH, COMMON,
1043 CLASS_SCOPE. Expand TAGDEF case to handle classes and templates.
1045 * hppa-tdep.c (pa_do_strcat_registers_info): Has a new parameter,
1046 precision, which is passed into the call to pa_strcat_fp_reg to
1047 indicate whether to display the floating point registers using
1048 single or double preceision.
1049 (pa_strcat_registers): Introduce local variable, precision, and
1050 pass it into call to pa_strcat_fp_reg.
1051 (pa_strcat_fp_reg): Modified function. New parameter, precision,
1052 used by function to decide whether to use single or double
1053 precision. Also added the code to put a double precision value
1056 * hppa-tdep.c: Add'l includes <machine/save_state.h>,
1057 <unistd.h>, declare pa_register_look_aside, define is_pa_2.
1058 (rp_saved): Check for where to read the return pointer from.
1059 (pa_do_registers_info): Handle is_pa_2. (pa_register_look_aside):
1060 new function. (pa_print_registers): Handle is_pa_2.
1061 (in_solib_call_trampoline): Handle a compiler/linker error.
1062 (skip_trampoline_code): Changes to some masks used in examining
1063 instructions. (inst_saves_fr): Test for FSTWS instruction.
1064 (skip_prologue): Renamed to skip_prologue_hard_way.
1065 (after_prologue): New function. (skip_prologue): New function.
1067 * hppa-tdep.c (after_prologue): If f is NULL, don't dereference
1070 * hppa-tdep.c (after_prologue): If no debug info, return zero
1071 telling caller that we need to find the end of the prologue via
1072 the hard way (instruction examination).
1074 * hppa-tdep.c (find_unwind_entry): Avoid dereferencing a null
1077 * hppa-tdep.c (hppa_pid_to_exec_file): Deleted -- no longer used.
1079 * hppa-tdep.c (hppa_prepare_to_proceeed): Add prototype.
1080 (read_unwind_info): Purecov comments, bug fixes.
1081 (find_unwind_entry): Purecov comments, bug fixes.
1082 (find_stub_with_shl_get): Purecov comments.
1083 (frame_chain): Additional parens.
1084 (hppa_push_arguments): Changes to commented out version of routine.
1085 (hppa_fix_call_dummy): Purecov comments, fix location of end.o.
1086 (in_solib_call_trampoline): Purecov comments.
1087 (in_solib_return_trampoline): Purecov comments.
1088 (setup_d_pid_in_inferior): Fix location of end.o.
1089 (initialize_hp_cxx_exception_support): Fix location of end.o.
1090 (child_enable_exception_callback): Purecov comments.
1093 (Pa_do_strcat_registers_info): New routine. called by
1094 tui/tuiRegs.c:_tuiRegisterFormat to place a register name
1095 and value into a string buffer. Interface may change in
1096 future. Checking this in so that we have something
1098 (pa_strcat_registers): New routine, called by
1099 pa_do_strcat_registers_info. Does same thing as
1100 pa_print_registers except it takes a stream parameter.
1101 This routine should disappear in future. Checking in
1102 so that we have something functional to give HP
1103 (pa_strcat_fp_reg): New routine, called by
1104 pa_do_strcat_registers_info and pa_strvat_registers
1105 to place a floating point register name and value into
1106 a buffer. This interface may change in future.
1107 Checking in so that we have something functional to give HP.
1109 * hppa-tdep.c: (Pa_print_fp_reg): Change prototype to match def'n.
1110 (pa_register_look_aside): Fix comment immediately before function.
1112 * hppa-tdep.c: Changes to better support stack unwinding,
1113 reading and writing registers for HPUX. The HP folks had
1114 an advantage ... access to a runtime architecture spec ;-}.
1115 New includes: Ptrace.h
1116 (internalize_unwinds): Initialize new fields in table.
1117 (read_unwind_info): Entries in the table are now more complex
1118 structures. References of the form ...->table[index].stub_type
1119 are now ...->table[index].stub_unwind.stub_type.
1120 (find_proc_framesize): Added a check for pc == 0.
1121 (rp_saved): Entries in the table are now more complex
1122 structures. References of the form ...->table[index].stub_type
1123 are now ...->table[index].stub_unwind.stub_type.
1124 (frameless_function_invocation): Stub_type becomes
1125 stub_unwind.stub_type
1126 (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type
1127 (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type
1128 (frame_chain_valid): Stub_type becomes stub_unwind.stub_type
1129 (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type
1130 (pa_print_fp_reg): Additional params to call val_print
1131 (in_solib_call_trampoline): Stub_type becomes stub_unwind.stub_type
1132 (in_solib_return_trampoline): Stub_type becomes stub_unwind.stub_typ
1133 (skip_trampoline_code): Additional code to handle external
1134 dyncalls. Also stub_type becomes stub_unwind.stub_type
1135 (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there
1136 is an explicit ptrace request for getting the pathname associated
1137 with a process id (pid).
1139 * hppa-tdep.c: Fix for gcc compile on HPUX
1140 (hppa_pid_to_exec_file): Remove unwanted param from
1141 call to call_ptrace. Note, hppa_pid_to_exec_file goes
1142 away in subsequent hp snapshots.
1144 * hppa-tdep.c: Include bfd.h.
1146 (args_for_find_stub): New structure.
1147 (find_unwind_entry): Deal with null input pc value.
1149 For the import stub, return -24 always.
1150 (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop.
1151 (init_extra_frame_info): Use TARGET_READ_FP.
1152 (frame_chain): Include thread support.
1153 If the caller's pc is zero, we loose and return, just like stack bottom.
1154 Disable warning about being unable to find unwind info.
1155 (hppa_push_arguments): Rewrite.
1156 (hppa_value_returned_from_stack): New function. Handles returning a value
1157 larger that 64 bits, stored on the stack.
1158 (find_stub_with_shl_get): New function. To look up symbols in shlibs.
1159 (cover_find_stub_with_shl_get): New function. Cover routine for
1160 find_stub_with_shl_get to pass to catch_errors.
1161 (hppa_fix_call_dummy): Comment out old stub mechanism. Rewrite using dyncall.
1162 (target_read_fp): New function.
1163 (pa_do_registers_info): Floating point registers start at FP4.
1164 (pa_print_registers): Use FP4_REGNUM instead of 72.
1165 (skip_trampoline_code): Do machine instruction matching for PA2.0.
1166 (setup_d_pid_in_inferior): New function. Exception handling support.
1167 (initialize_hp_cxx_exception_support): Ditto.
1168 (child_enable_exception_callback): Ditto.
1169 (child_get_current_exception_event): Ditto.
1171 * hppah-nat.c (child_post_wait, child_post_follow_vfork,
1172 child_post_follow_inferior_by_clone): New functions.
1174 * hppah-nat.c (child_xfer_memory): Make sure the call to ptrace really
1175 fails before we give up.
1176 (hppa_pid_to_str): New function. Format a process id.
1177 (hppa_tid_to_str): New function. Format a thread id.
1179 * hppah-nat.c (child_xfer_memory): Use xmalloc, not alloca.
1180 (child_post_wait): Delete.
1181 (child_post_follow_vfork): Delete decl of child_ops; delete
1182 large chunks of function -- let it be handled by the normal
1183 mechanism that notices and handles exec events, in resume().
1185 * hppah-nat.c (require_notification_of_exec_events): New function;
1186 just notify of exec events, not all events, and just the specified
1187 pid, don't include it's children (10.20 version).
1188 (child_acknowledge_created_inferior): Call new function
1189 require_notification_of_exec_events instead of
1190 require_notification_of_events.
1192 * hppah-nat.c [!GDB_NATIVE_HPUX_11]: Move HPUX 10.x-specific
1193 support code here from infptrace.c.
1195 * hppah-nat.c: Removed #define ptrace call_ptrace
1196 replaced all calls to ptrace with calls to call_ptrace
1197 (parent_attach_all): Removed call to ptrace
1199 * hpread.c (hpread_psymtab_to_symtab_1): Change fflush to
1200 gdb_flush; change stdout to gdb_stdout.
1201 (hpread_psymtab_to_symtab): Change fflush to gdb_flush.
1203 * hpread.h: New file. Includes all includes, struct defs, defines
1207 (attach_command): New local variable, exec_file, added code to
1208 determine exec_file from pid if exec_file is not already known,
1209 call new target operation, target_post_attach -- a no-op unless
1211 (detach_command): After detaching, do a SOLIB_RESTART
1213 * infcmd.c (objfiles.h): Fix typo on include line.
1215 * infcmd.c (run_command): Only call SOLIB_RESTART if it's
1217 (detach_command): Ditto.
1220 (run_stack_dummy): Add calls to
1221 disable_watchpoints_before_interactive_call_start and
1222 enable_watchpoints_after_interactive_call_stops
1223 (finish_command): Alter code handling the evaluation and printing
1224 of the target function's return value.
1225 (attach_command): When given a pid, but no exec file, try to determine
1226 the exec file from the process. If the process does not record a
1227 full path name, try to qualify the filename against the source path.
1228 (_initialize_infcmd): Add some verbiage about how to use the attach command
1232 (run_command): If program has already been started, and decide
1233 to restart it, the kill the target, fluch the caches,
1234 call init_wait_for_inferior. Also purge old solib objfiles.
1236 * infcmd.c: Cahnged calls to val_print, using a new macro,
1238 (run_command): Calls SOLIB_RESTART
1239 (do_registers_info): Changed calls to val_print
1241 * infcmd.c: Made the symfile.h include preceed the
1242 objfiles.h include. The other ordering caused a
1243 compile problem (incompletely defined types).
1245 * inferior.h (REQUIRE_DETACH): Fix default definition.
1246 * inftarg.c (child_post_attach): Fix declaration, make static.
1247 (proc_wait): Make globally visible.
1248 (child_insert_fork_catchpoint, etc): Fix return type.
1250 * inferior.h (STARTUP_WITH_SHELL): New define.
1251 (START_INFERIOR_TRAPS_EXPECTED): New define
1253 * inferior.h (fork_inferior): Change fifth parameter to be a function
1256 * inferior.h (proc_wait): Declare.
1259 (Require_ATTACH): New macro
1260 (REQUIRE_DETACH): New macro
1261 (detach): Definition is now an extern
1262 (clone_and_follow_inferior): New definition, it's also an extern
1265 (Require_attach): Default definition for require_attach funct
1266 (require_detach): Default definition for require_detach funct
1267 (pre_fork_inferior): New funct decl for function defined in
1269 (fork_inferior): New parameter in funct decl.
1272 New variable decls: Inferior_ignoring_startup_exec_events,
1273 inferior_ignoring_leading_exec_events -- these variables
1274 are used when processing an exec call.
1275 (CALL_DUMMY_HAS_COMPLETED): New default macro -- for targets
1276 where PC in call dummy implies that call dummy has
1277 completed. Note, that on HPUX this inference does not hold.
1280 (require_notification_of_events): New function
1281 (child_acknowledge_created_inferior): Previously named
1282 hppa_acknowledge_forked_child. Also calling
1283 require_notification_of_events and clearing some semaphore
1285 (child_post_startup_inferior): New function
1286 (child_create_catch_fork_hook): Previously named
1287 hppa_create_catch_fork_hook
1288 (child_create_catch_vfork_hook): Previously named
1289 hppa_create_catch_vfork_hook
1290 (child_has_forked): Previously named hppa_target_has_forked
1291 (child_has_vforked): Previously named hppa_target_has_vforked
1292 (process_wait): Changed to call target_post_wait
1293 (attach): Add call to require_notification_of_events
1294 (child_pid_to_exec_file): New function
1295 (hppa_require_attach): New local variable, pt_status
1296 (hppa_get_process_events): New function
1298 * infptrace.c (call_ptrace): Simplify control flow.
1299 (proc_wait): Move here from inftarg.c, add target_post_wait call.
1301 * infptrace.c (call_ptrace): Add some debugging code.
1303 * infptrace.c (child_pid_to_exec_file): Declare variable.
1305 * infptrace.c (kill_inferior): Clean up call to proc_wait.
1308 (Call_ptrace): When the ptrace request is PT_SETTRC,
1309 call ptrace and then call parent_attach_all.
1312 (Child_has_syscall_event): New function. only applicable
1313 (for now) on HPUX 10.30 and beyond via the ttrace call.
1314 In infptrace.c there is a default operation.
1315 With ttrace, it is possible to tell the kernel to
1316 notify the debugger that the target program is about to make
1317 or return from a syscall.
1318 (child_thread_alive): New function. a default function.
1319 ptrace doesn't support kernel threads.
1320 (hppa_enable_page_protection_events): Defualt function
1321 (hppa_disable_page_protection_events): Default function
1323 * infptrace.c (child_pid_to_exec_file): Fix number of params to
1326 * infptrace.c (hppa_pid_or_tid_to_str): New function.
1327 (hppa_switched_threads): New function.
1328 (hppa_ensure_vforking_parent_remains_stopped): New function.
1329 (hppa_resume_execd_vforking_child_to_get_parent_vfork): New function.
1331 * infptrace.c: Most of the changes found in infptrace.c should
1332 be moved to hppah-nat.c
1333 (PT_VERSION): A new define
1334 (startup_semaphore_t): A new struct type. it is used to
1335 coordinate the parent and child processes after a fork and
1336 before an exec on HPUX.
1337 (call_ptrace): Changes to determine whether the ptrace
1338 request is for starting the tracing of the target process.
1339 (parent_attach_all): New funct. used on HPUX for coordinating
1340 the parent and child processes after a fork and before and exec.
1341 (hppa_acknowledge_forked_child): New funct. prabably belongs
1343 (hppa_enable_catch_fork): New funct. probably belongs in
1345 (hppa_disable_catch_fork): New funct. probably belongs in
1347 (hppa_create_catch_fork_hook): New funct. probably belongs in
1349 (hppa_enable_catch_vfork): New funct. probably belongs in
1351 (hppa_disable_catch_vfork): New funct. probably belongs in
1353 (hppa_create_catch_vfork_hook): New funct. probably belongs to
1355 (hppa_target_has_forked): New funct. probably belongs in
1357 (hppa_target_has_vforked): New funct. probably belongs in
1359 (process_wait): New funct. also ifdefed for proc_wait.
1360 (kill_inferior): Call proc_wait rather than wait. this is
1362 (pre_fork_inferior): New function. used only by HPUX.
1363 probably should be defined elsewhere.
1365 * infrun.c (follow_inferior_fork): Only define on HP.
1366 (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have
1367 shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE
1370 * infrun.c (normal_stop): Add a call to the TUIDO
1371 macro just before the annotate_stopped label. This
1372 updates the windows after each program stop.
1374 * infrun.c (normal_stop): Verify stop_command is non-zero before
1375 dereferencing it (it won't be set if dbx_commands is set).
1377 * infrun.c (resume): Add #ifdef HPPAHPUX around HPUX-specific
1380 * infrun.c (resume): Add missing semicolon.
1382 * infrun.c (wait_for_inferior): Fix syntax error.
1384 * infrun.c (follow_fork_mode_kind_names): Removed "both" option.
1385 (follow_fork): Added parameters. additional code for handling
1386 following of parent, following of child
1387 (resume): Added code for deciding how to resume in presence of
1388 fork. Additional params to follow_fork call.
1390 * infrun.c (follow_exec): Ifdef for HPUXHPPA for the moment, the
1391 code in here assumes the existance of the child_ops target
1392 vector. This is incorrect for Solaris.
1394 * infrun.c (resume): Fixed ifdefs, HPPAHPUX -> HPUXHPPA.
1396 * infrun.c (wait_for_inferior): Fixed a matching parens problem --
1397 matching curly brace inside ifdefed code which is not being
1398 compiled. Change local validFlag to be an 'int' rather than a
1399 'bool' and fixed the corresponding assignment statements.
1402 Two new global variables: Inferior_ignoring_startup_exec_events and
1403 inferior_ignoring_leading_exec_events.
1404 New static variables: Parent_of_vfork_trap_expected_and_ignorable,
1405 step_resume_breakpoint, through_sigtramp_breakpoint, pending_follow,
1406 follow_vfork_when_exec
1407 (follow_inferior_fork): Does what follow_fork did!
1408 (follow_fork): Is now a wrapper function for follow_inferior_fork
1409 (follow_vfork): Is now a wrapper function for follow_inferior_fork
1410 (follow_exec): New function, handles an exec event.
1411 (resume): Remove 3 local variables: Child_pid, has_forked, has_vforked.
1412 move and expand code that tries to follow a fork (i.e. also check
1414 (init_wait_for_inferior): Initialize the new structure, pending_follow
1415 (delete_breakpoint_current_contents): When deleting all the breakpoints also
1416 set the breakpoint struct pointer to NULL.
1417 (wait_for_inferior): A number of changes.
1418 The step_resume_breakpoint and through_sigtramp_breakpoint local
1419 variables are now visible in entire module.
1420 Changed name of variable from child_inferior_pid to saved_inferior_pid.
1421 Added several cases to the event processing switch statement:
1422 Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD.
1423 Also, for TARGET_WAITKIND_STOPPED, check to see if expecting a trap
1424 from the parent of a vfork (ignorable) otherwise break as usual.
1425 When determining the value of 'random_signal' (0 or 1), no longer check for
1427 When determining how to handle unexpected signals, must now take into
1428 account fork, vfork, and exec.
1429 Change call to PC_IN_CALL_DUMMY to a call to CALL_DUMMY_HAS_COMPLETED
1430 At stop_stepping label, check to see if stopped for fork or
1433 * infrun.c: New code is related to threads and fork/vfork/exec.
1434 New static variable: Thread_step_needed
1435 Deleted static variable: Parent_of_vfork_trap_expected_and_ignorable
1436 Altered the pending_follow and fork_event structs
1437 (follow_inferior_fork): Before detaching from child and removing
1438 all breakpoints form it -- but only if forking or following
1439 vforks as soon as they happen. Also reset the solib inferior hook.
1440 The same kind of logic applies to hitting step_resume_breakpoints
1441 (calling breakpoint_re_set_thread) and to resetting and inserting
1443 (follow_exec): Forward decl
1444 (follow_vfork): Check to see if gdb followed the child. If
1445 the child exec'd before gdb saw the parent's vfork event
1446 then call follow_exec.
1447 (follow_exec): If the exec occured after a vfork, then follow
1448 the vfork as well. Do it before following the exec.
1449 Make sure to update breakpoints after and exec
1450 (resume): New local variable, should_resume.
1451 Change parameters in calls to follow_fork, follow_vfork, and
1452 follow_exec. Some changes to the way various pending_follow.kind
1453 situations are handled (there's TARGET_WAITKIND_FORKED,
1454 TARGET_WAITKIND_VFORKED, ARGET_WAITKIND_EXECD. Some additional
1455 conditions to check before deciding to resume the target (i.e.
1456 should_resume=1, stepping?, thread_step_needed?i, regular
1458 (proceed): When proceeded at location that does not have a breakpoint
1459 set thread_step_needed=0 to indicate that it is not necessary to
1460 single step thread over breakpoint. SOme additional checks to see
1461 if it is necessary to step thread over breakpoint.
1462 (start_remote): Remove call to clear_proceed_status.
1463 (init_wait_for_inferior): Initialize new fields in fork_event
1464 structure and add a call to clear_proceed_status.
1465 (wait_for_inferior): New local variable: New_thread_event.
1466 Initialize thread_step_needed = 0.
1467 Minor massaging of conditions for adding a new thread to the thread list.
1468 No longer resuming execution after adding a new thread. Let user play with thread first.
1469 Some changes in the way TARGET_WAITKIND_FORKED, ARGET_WAITKIND_VFORKED,
1470 TARGET_WAITKIND_EXECD are handled -- this is all HPUX related.
1471 Simplified TARGET_WAITKIND_STOPPED -- HP previously had some
1472 more complicated code in here.
1473 Moved the code to resume threads to after the large case statement that processes the events.
1474 Additional processing for stop_signal=TARGET_SIGNAL_TRAP.
1475 Cleanup code at process_event_stop_test label.
1476 Set thread_step_needed when processing a BPSTAT_WHAT_SINGLE.
1477 Minor massaging of fork/vfork/exec part of stop_stepping code.
1478 (normal_stop): Minor changes. calling show_and_print_stack_frame.
1479 (xdb_handle_command): New function
1480 (_initialize_infrun): Handle xdb_commands. also handle dbx commands
1482 * infrun.c: Changes to support following forks, and handling
1484 (follow_fork_mode_kind_names): New array
1485 (follow_fork): New function. implements the follow parent,
1486 or child functionality.
1487 (resume): Additions to check whether the target process
1488 just forked and decide which process to follow.
1489 (wait_for_inferior): Additional variables (child_inferior_pid,
1490 stepping_through_solib_after_catch,
1491 - stepping_through_solib_catchpoints.
1492 - Altered CURRENTLY_STEPPING macro to check for stepping through
1493 a shared library after hitting a catchpoint.
1494 - Add parameters to save_infrun_state call
1495 - Check for fork and vfork when deciding if event is a random
1497 - When considering stops due to breakpoints, check for
1498 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK
1499 - Check for stop due to an explicit catchpoint
1500 - When checking for single stepping event, also check for
1501 stepping to get out of dynamic linker's hook after catching
1503 (is_internal_shlib_eventpoint): New funct. check to see if
1504 event type is bp_shlib_event.
1505 (stopped_for_internal_shlib_event): New funct. check for shlib
1507 (stopped_for_shlib_catchpoint): New funct. check for catchpoints.
1508 (normal_stop): Additions to check for shlib event
1509 (set_follow_fork_mode_command): New funct. handles the new follow
1511 (_initialize_infrun): Additions for follow-fork-mode command.
1513 * infrun.c: Ifdefing references to
1514 switched_from_inferior_pid for HPUXHPPA. They don't seem
1515 useful for Solaris (i.e. non-HPUX)
1517 * infrun.c: Included tuiData.h and tuiDataWin.h, ifdefed for TUI.
1518 Included top.h. New static variables: Switched_from_inferior_pid,
1519 number_of_threads_in_syscalls.
1520 (follow_inferior_fork): If there is a step_resume breakpoint
1521 explicitly reset the thread number.
1522 (resume): For TARGET_WAITKIND_VFORKED, removed a check for getting
1523 the vfork event to soon.
1524 (init_wait_for_inferior): Added parameter to call to
1525 breakpoint_init_inferior. Initialize number_of_threads_in_syscalls.
1526 (wait_for_inferior): New local variables: Prev_sal,
1527 enable_hw_watchpoints_after_wait, stepping_through_sigtramp,
1528 stepped_after_stopped_by_watchpoint. Enable watchpoints after a wait.
1529 Added cases for TARGET_WAITKIND_SYSCALL_ENTRY and
1530 TARGET_WAITKIND_SYSCALL_RETURN.
1531 Do additional processing if stop due to breakpoint, but breakpoint is
1532 only valid for a thread other than the one currently running. Additional
1533 parameters to save_infrun_state and load_infrun_state. Some additional
1534 processing for BPSTAT_WHAT_STEP_RESUME. Some additional processing to
1535 handle stepping over a function.
1536 (normal_stop): Added notification of switching threads. ifdefing some
1537 TUI changes and leaving out non-essential TUI changes.
1538 (restore_selected_frame): Ifdefing some TUI changes
1539 (restore_inferior_status): Ifdefing some TUI changes
1541 * infrun.c: Removed the TUI ifdefs and TUI code. Also removed
1542 include for top.h. HP introduced this. I'm taking it out.
1544 * inftarg.c (child_detach_from_process): Declare.
1545 (child_attach_to_process): Declare.
1546 (child_stop): Make static to match declaration.
1548 * inftarg.c (ptrace_him): Change prototype back to return int.
1550 * inftarg.c (ptrace_me): Remove debug output, pass NULL to
1551 fork_inferior if not HPUX.
1554 (child_require_attach): New funct prototype and definition
1555 (child_require_detach): New funct prototype and definition
1556 (proc_wait): Funct prototype and definition are enclosed by
1558 (child_attach_to_process): New function, does most of the
1559 work that child_attach used to do and some additional
1560 work to determine whether gdb is already attached to the
1561 target how to react.
1562 (child_attach): Altered. It's now a wrapper for
1563 child_attach_to_process.
1564 (child_require_attach): New function, called if should attach
1565 even when gdb is already attached to target.
1566 (child_detach_from_process): New function, does most of the
1567 work that child_detach used to do and some additional work
1568 to determine whether gdb is currently attached to the target.
1569 (child_detach): Altered. It's now a wrapper for
1570 child_detach_from_process.
1571 (child_require_detach): New function, called if should try to
1572 detach even when gdb is not attached to target.
1573 (ptrace_him): Calls a new function, target_acknowledge_forked_child.
1574 Currently, target_acknowledge_forked_child, is only defined to
1575 do something for HPUX.
1576 (child_create_inferior): Changed call to fork_inferior.
1577 (child_ops): Added to_require_attach and to_require_detach fields
1578 to the child_ops target ops vector.
1581 Some hacks for ttrace work
1582 (child_wait): Additional local variables, additional code in
1583 while loop to check for: Process exited, process forked,
1584 process vforked, process execd
1585 (child_thread_alive): John B. seems to think that the kill
1586 call is inapproapriate for HPUX.
1587 (child_attach_to_process): Using strtol rather than atoi.
1588 no longer check for case where there is no known exec file.
1589 (child_post_attach): New function, a default, a no-op
1590 (child_insert_fork_catchpoint): New function, a default, a no-op
1591 (child_remove_fork_catchpoint): New function, a default, a no-op
1592 (child_create_catch_fork_hook): Deleted
1593 (child_create_catch_vfork_hook): Deleted
1594 (child_insert_vfork_catchpoint): New function, a default, a no-op
1595 (child_remove_vfork_catchpoint): New function, a default, a no-op
1596 (child_can_follow_vfork_prior_to_exec ):new function, a default,
1598 (child_insert_exec_catchpoint): New function, a default, a no-op
1599 (child_remove_exec_catchpoint): New function, a default, a no-op
1600 (child_has_execd): New function, a default, returns 0
1601 (child_reported_exec_events_per_exec_call): New function, a
1603 (child_has_exited): New function, a default.
1604 (child_core_file_to_sym_file): New function, a default, returns NULL.
1605 (child_ops): Initialize new target_ops vector fields to the
1608 (Call_ptrace): For HPUX, handle additional requests: Pt_CONTIN1,
1610 (require_notification_of_events): Add several signals to the
1611 set of events requiring notification: Ptrace_SIGNAL,
1612 PTRACE_EXEC, PTRACE_FORK, PTRACE_VFORK
1613 (child_acknowledge_created_inferior): This function is only
1614 defined if CHILD_ACKNOWLEDGE_CREATED_INFERIOR is defined.
1615 (child_post_startup_inferior): Function is only defined if
1616 CHILD_POST_STARTUP_INFERIOR is defiend. Also, now call
1617 require_notification_of_events.
1618 (child_create_catch_fork_hook): Deleted
1619 (child_create_catch_vfork_hook): Deleted
1620 (child_insert_fork_catchpoint): New function
1621 (child_remove_fork_catchpoint): New function
1622 (child_insert_vfork_catchpoint): New function
1623 (child_remove_vfork_catchpoint): New function
1624 (child_has_forked): Now enclosed by a CHILD_HAS_FORKED ifdef
1625 (child_has_vforked): Now enclosed by CHILD_HAS_VFORKED ifdef
1626 (child_can_follow_vfork_prior_to_exec): New function
1627 (child_insert_exec_catchpoint): New function
1628 (attach): Removed call to require_notification_of_events
1629 (child_post_attach): New function, call to
1630 require_notification_of_events moved here.
1631 (child_pid_to_exec_file): New enclosed by CHILD_PID_TO_EXEC_FILE ifdef
1632 introduced the concept of a saved_inferior_pid
1633 (hppa_require_attach): Add some code to decide if gdb is already
1634 attached to process. Can not figure this out via a ptrace call.
1635 (hppa_insert_hw_watchpoint): New function
1636 (hppa_remove_hw_watchpoint): New function
1639 (child_attach_to_process): Change position in file
1640 (child_detach_from_process): Change position in file
1643 (child_attach_to_process): Changed parameter to child_wait call
1646 (child_post_wait): New function declaration and definition
1648 - change return value to a void.
1649 - change target_acknowledge_forked_child call to
1650 target_acknowledge_created_inferior
1651 - call target_post_startup_inferior rather than returning pid.
1652 (child_attach_to_process): Change param name, fail_if_already_attached
1654 Invert a couple of if-then-else statments.
1655 Use REQUIRE_ATTACH macro
1656 (child_attach): Change params in child_attach_to_process call
1657 (child_require_attach): Change params in child_attach_to_process call
1658 (child_detach_to_process): Change param name,
1659 fail_if_already_attached -> after_fork.
1660 Invert a couple of if-then-else statments.
1661 Use REQUIRE_DETACH macro
1662 (child_detach): Change params in child_detach_from_process call
1663 (child_require_detach): Change params in child_detach_from_process
1665 (child_post_startup_inferior): New function
1666 (child_acknowledge_created_inferior): New function
1667 (child_clone_and_follow_inferior): New function
1668 (child_post_follow_inferior_by_clone): New function
1669 (child_create_catch_fork_hook): New function
1670 (child_create_catch_vfork_hook): New function
1671 (child_has_forked): New function
1672 (child_has_vforked): New function
1673 (child_post_follow_vfork): New function
1674 (child_stop): No longer a static function
1675 (child_pid_to_exec_file): New function
1678 (child_wait): Child_pid becomes related pid. return pid
1679 rather than inferior_pid. Changes are in code handling fork
1683 Include gdb_stat.h and sys/unistd.h
1684 (child_wait): New local variables. Check for live threads.
1685 Check for syscall events
1686 (child_thread_alive): No longer a static funct.
1687 (ptrace_him): Remove some code inserted in snap3
1688 (child_create_inferior): Added a bunch of code to handle a
1689 bad interaction between start-up-with-shell and the HP
1690 catch-fork/catch-exec logic. I am ifdefing this for
1692 (child_has_syscall_event): New default target_ops function
1693 (child_enable_exception_callback): New default target_ops function
1694 (child_get_current_exception_event): New default target_ops function
1695 (child_ops): 3 new fields
1697 * inftarg.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs
1699 * inftarg.c: Reverted previous change.
1701 * infttrace.c (hppa_remove_hw_watchpoint): Fix check for write
1702 access hardware watchpoint.
1704 * infttrace.c (proc_wait): Rename from proc_wait.
1706 * infttrace.c (require_notification_of_exec_events): New function;
1707 just notify of exec events, not all events, and just the specified
1708 pid, don't include it's children.
1709 (child_acknowledge_created_inferior): Call new function
1710 require_notification_of_exec_events instead of
1711 require_notification_of_events.
1712 (child_post_startup_inferior): Call require_notification_of_events
1714 * infttrace.c: Changed all references to boolean to int.
1715 Changed all references to TRUE and FALSE to 1 and 0.
1717 * irix5-nat.c (symbol_add_stub): Add params to call to
1720 * jv-lang.c (get_dynamics_objfile): Add 2 more parameters to call
1721 to allocate_objfile.
1723 * main.c (fputs_unfiltered): Changes to prevent cursor form
1724 jumping around in the TUI. Altered where tuiTermUnsetup and
1725 tuiTermSetup are called
1727 * main.c (fputs_unfiltered): Changed function so that it
1728 checks to see if output is to a string buffer or to a
1729 FILE stream and does the correct action (i.e. strcat or
1730 fputs). Fixed params for fputs call.
1732 * main.c (fputs_unfiltered): Don't try to call the TUI's
1733 CommandCharCount functions when the TUI isn't enabled.
1735 * main.c (fputs_unfiltered): Change FILE to GDB_FILE.
1737 * main.c (main): If the user gives the --version or --help flags,
1740 * main.c (tui_version, xdb_commands, dbx_commands): New variables.
1741 (main): New command line arguments --tui, --xdb, --dbx; add call
1742 to tyiCleanUp via tuiDo to main loop.
1743 (fputs_unfiltered): Tui related changes.
1745 * main.c: Define 2 new global variables, gdb_stdout and gdb_stderr
1747 (main): Allocate space for and initialize gdb_stdout and gdb_stdin.
1749 * objfiles.c (find_pc_sect_section): Make end condition be less
1750 than s->endaddr, not less than or equal to s->endaddr.
1753 (allocate_objfile): 2 new parameters: User_loaded and is_solib.
1754 When appropriate, record in the object file that it is user loaded.
1755 The run command can use this information to purge object file
1756 entries associated with the old inferior and keep user loaded
1757 object files loaded via the add-symbol-file command.
1758 (objfile_purge_solibs): New function. deletes all objectfile entries
1759 that are not explicitly loaded by the user.
1762 (objfile_relocate): Check for LOC_INDIRECT
1763 (find_pc_sect_section): Change condition from
1764 pc < s->endaddr to pc <= s->endaddr
1767 New variables: User_loaded and is_solib
1768 (OBJF_SHARED): New macro. used to distinguish objfile for
1769 shared library from "vanilla" objfile.
1770 (allocate_objfile): Add new parameters to function decl.
1771 (objfile_purge_solibs): New function decl.
1773 * objfiles.h: Add some typedefs: Importentry, ExportEntry.
1774 Add some new variables: Import_list, import_list_size,
1775 export_list, export_list_size
1778 (symbol_add_stub): Added params to call to symbol_file_add
1780 * pa/hpux1020.mh (NATDEPFILES): Add corelow.o, symbol table and
1783 * pa/hpux1100.mh (NAT_FILE): Use nm-hppah11.h.
1784 (NATDEPFILES): Add symbol table and solib files.
1786 * pa/nm-hppah11.h: New file, HPUX11-only definitions.
1788 * pa/tm-hppa.h (proc_wait): Remove decl and macro.
1790 * parse.c (write_dollar_variable): Handle cases in which variables
1791 besides the debugger ones start with $ and $$.
1792 (parse_nested_classes_for_hpacc): New function. Parse a string that
1793 is possibly a namespace / nested class specification.
1794 (find_template_name_end): New function.
1797 (procfs_init_inferior): Return value is now a void.
1799 * procfs.c (procfs_ops): Initializing new target ops vector fields. see list below.
1802 (procfs_ops): Adding new target_ops vector fields and
1803 removing a few. see list below
1805 * procfs.c: Added new fields to procfs_ops.
1806 Necessary since we still have oldstyle initialization in
1809 * pyr-tdep.c (pyr_do_registers_info): Change stdout to gdb_stdout.
1810 (frame_locals_address): Change stderr to gdb_stderr.
1811 (frame_args_addr): Ditto.
1813 * pyr-xdep.c (fetch_inferior_registers): Change stderr to
1816 * serial.c (serial_close): Call gdb_fclose, not fclose on a
1819 * serial.c (serial_logchar): Change chtype to ch_type. sigh.
1821 * solib.c (look_for_base): The parameter to file must be
1822 of type FILE *. So cast exec_bfd -> iostream in the call
1823 to fileno as a FILE *, not a GDB_FILE *. This will work because
1824 exec_bfd -> iostream is declared and given a value in bdf and
1825 bfd will continue to use FILE rather than GDB_FILE.
1828 (solib_add): Remove references to exec_ops.
1831 (solib_add): Update exec_ops.to_sections
1834 (symbol_add_stub): Added params to call to symbol_file_add
1837 (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to 0.
1838 functionality not implemented for this target.
1840 * solib.h: Added macro definitions. These macros generate
1841 error messages for solaris??
1842 (SOLIB_CREATE_CATCH_LOAD_HOOK)
1843 (SOLIB_CREATE_CATCH_UNLOAD_HOOK)
1844 (SOLIB_HAVE_LOAD_EVENT)
1845 (SOLIB_LOADED_LIBRARY_PATHNAME)
1846 (SOLIB_HAVE_UNLOAD_EVENT)
1847 (SOLIB_UNLOADED_LIBRARY_PATHNAME)
1848 (SOLIB_IN_DYNAMIC_LINKER)
1851 * somread.c (is_in_import_list): Ditto.
1853 * somread.c (som_symfile_read): Added some comments
1855 * somread.c (som_symfile_read): Read in import and export lists.
1856 (som_symtab_read): Change test for dynamic executable.
1857 (is_in_import_list): New function. Check if a given symbol name
1858 is in the import list.
1859 (init_import_symbols): New function. Read in and initialize the
1861 (init_export_symbols): New function. Read in and initialize the
1865 (som_symfile_read): Fix missing comment delimiters
1867 * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro.
1868 Define bit of __dld_flags in HP-UX a.out files.
1869 (DLD_FLAGS_HOOKVALID): Ditto.
1870 (DLD_FLAGS_LISTVALID): Ditto.
1871 (DLD_FLAGS_BOR_ENABLE): Ditto.
1872 (som_solib_total_st_size): Cumulative size in bytes of the
1873 symbol tables of all shared objects on the so_list_head list.
1874 (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols
1876 (som_solib_sizeof_symbol_table): New function. Computes size of
1877 symbol table for a shlib.
1878 (som_solib_load_symbols): New function. Load symbols from shlib.
1879 (som_solib_add): Detect if __dld_list is not valid.
1880 Record main program's symbol table size.
1881 Load symbols if called from command line.
1882 Keep threshold into account when loading shlib symbols.
1883 (som_solib_create_inferior_hook): Use dld_flags macros.
1884 (som_sharedlibrary_info_command): Let user know if symbols were
1886 (som_solib_restart): Discard all the shlibs descriptors.
1887 (_initialize_som_solib): Chenge help message for auto-solib-add
1889 Set threshold for symbol table to 50 megabytes.
1891 * somsolib.c (_initialize_som_solib): Added call to som_solib_restart.
1892 (som_solib_restart): New function
1893 (som_solib_in_dynamic_linker): New function
1894 (som_solib_desire_dynamic_linker_symbols): New function
1895 (som_solib_unloaded_library_pathname): New function
1896 (som_solib_loaded_library_pathname): New function
1897 (som_solib_library_pathname): New function
1898 (som_solib_have_unload_event): New function
1899 (som_solib_have_load_event): New function
1900 (som_solib_create_catch_unload_hook): New function
1901 (som_solib_create_catch_load_hook): New function
1902 (som_solib_create_inferior_hook): Rewritten
1903 dld_cache: New struct
1904 addr_and_unwind_t: New struct
1905 (find_unwind_entry) added prototype
1907 * somsolib.c (som_solib_create_inferior_hook): Introduce new local
1908 msymbol2 and change some msymbol's to msymbol2's -- was clobbering
1909 msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline,
1910 and ultimately core dumping with a SEGV.
1914 (som_solib_mapped_entry): Additional comments for text_addr,
1915 text_link_addr, text_end, and tsd_start_addr fields. Commenting
1916 out 2 tsd fields, __data_start and __data_end.
1917 (som_solib_add_solib_objfile): Add params to calls to symbol_file_add.
1918 Add some code for distinguishing between a shared library and other
1919 objfiles. This appears to be a prelude to thread local storage.
1920 (som_solib_load_symbols): Changes to printf statement
1921 enclosed by SOLIB_DEBUG ifdef.
1922 (som_solib_add): Change comment to correctly specify path
1923 to end.o -- /opt/langtools/lib/end.o. changes to printf statement
1924 enclosed by SOLIB_DEBUG ifdef.
1925 Removed several SOLIB_DEBUG ifdefs and the associated printfs.
1926 Add code to find the start address for the object file's thread
1928 (som_solib_create_inferior_hook): Fix warning messages use correct
1929 path to end.o -- /opt/langtools/lib/end.o. Change control flow.
1930 No longer user early returns from function is cases of error.
1931 (reset_inferior_pid): New function
1932 (som_solib_remove_inferior_hook): New function
1933 (so_lib_thread_start_addr): New function. used for tsd.
1935 * somsolib.c: Removed references to ASSERT macro.
1937 * somsolib.c: Add debugging macro.
1938 (struct som_solib_mapped_entry): Add new field tsd_start_addr.
1939 (struct so_list): Added new field solib_addr.
1940 (som_solib_add_solib_objfile): New function.
1941 (som_solib_load_symbols): Rewritten.
1942 (som_solib_add): Make sure we don't load the symbols in if the
1943 threshold was exceeded.
1944 (som_solib_get_solib_by_pc): New function. Return the address of
1945 handle of the shared library.
1946 (som_solib_restart): Disable breakpoints at restart.
1947 (_initialize_som_solib): Set threshold to 100 megabytes.
1949 * somsolib.c: Add include of fcntl.h so that O_RDONLY is defined.
1951 * somsolib.h (DISABLE_UNSETTABLE_BREAK): New macro.
1952 (PC_SOLIB): New macro.
1955 (SOLIB_CREATE_CATCH_LOAD_HOOK): Define
1956 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Define
1957 (SOLIB_HAVE_LOAD_EVENT): Define
1958 (SOLIB_LOADED_LIBRARY_PATHNAME): Define
1959 (SOLIB_HAVE_UNLOAD_EVENT): Define
1960 (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define
1961 (SOLIB_IN_DYNAMIC_LINKER): Define
1962 (SOLIB_RESTART): Define
1965 (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to use
1966 som_solib_remove_inferior_hook.
1969 (som_solib_create_catch_load_hook)
1970 (som_solib_create_catch_unload_hook)
1971 (som_solib_have_load_event)
1972 (som_solib_loaded_library_pathname)
1973 (som_solib_have_unload_event)
1974 (som_solib_unloaded_library_pathname)
1975 (som_solib_in_dynamic_linker)
1976 Fix prototypes to use type names, not parameter names.
1978 * source.c (find_source_lines): Make non static.
1979 (open_source_file): Ditto.
1980 (source_full_path_of): New function.
1981 (print_source_lines): Rename to print_source_lines_base and make
1983 (print_source_lines): New function.
1984 (forward_search_command): Tui changes.
1985 (reverse_search_command): Tui changes.
1986 (_initialize_source): Add xdb and dbx compatibility commands.
1988 * source.c (list_command): Handle case of odd number of source
1992 (source_full_path_of): New function. file was overlooked
1995 * stack.c (func_command): Make high bound be <, not <=.
1997 * stack.c (_initialize_stack): For the backtrace command, delete
1998 the help line about usage, since this has to be a valid help
1999 message for the 'where' command too.
2001 * stack.c (current_frame_command): Add a check for the
2002 existance of a stack. If there is no stack produce an
2003 error message and exit.
2005 * stack.c (down_silently_base, up_silently_base,
2006 args_plus_locals_info, print_frame_info_base,
2007 print_stack_frame_base, print_stack_frame_base_stub): Declare.
2008 (print_frame_local_vars): Add'l parameter.
2009 (print_stack_frame_stub): New version created, old version renamed
2010 to show_and_print_stack_frame_base_stub.
2011 (print_stack_frame_base_stub, print_only_stack_frame_stub,
2012 show_and_print_stack_frame, print_only_stack_frame,
2013 stack_publish_stopped_with_no_frame, print_frame_info,
2014 show_stack_frame, backtrace_full_command, args_plus_locals_info,
2015 select_and_print_frame, select_and_maybe_print_frame,
2016 current_frame_command, func_command): New functions.
2017 (backtrace_command): New function, old renamed to
2018 backtrace_command_1.
2019 (print_block_frame_locals, print_frame_local_vars): Additional
2020 parameter, number of tabs.
2021 (up_silently_command): New function, old renamed to
2022 up_silently_command_base.
2023 (down_silently_command): New function, old renamed to
2025 (_initialize_stack): Register new commands based on values of
2026 xdb_commands and dbx_commands variables.
2028 * stack.c (func_command): Make high bound be <, not <=.
2030 * stack.c (parse_frame_specification): Fix prototype to match
2031 function definition.
2032 (show_and_print_stack_frame_stub): Fix name.
2033 (select_and_print_frame): Change uncaught tuiDO call.
2035 * stack.c (up_silent_base): Rename from up_silently_command_base.
2037 * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's
2040 * symfile.c (add_psymbol_with_dem_name_to_list): New function.
2041 Adds a symbol with a long value to a psymtab. Differs from
2042 add_psymbol_to_list in taking both a mangled and a demangled name.
2044 * symfile.c (compare_psymbols): Call strcmp directly, instead of
2047 * symfile.c (symbol_file_add): Reindent portions.
2048 (symbol_file_command): Add call to tuiDo.
2050 * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's
2053 * symfile.c (symfile_bfd_open): Add code to call PXDB on hpux, if
2054 the file has not already been processed by pxdb.
2055 Added define USE_PXDB.
2057 * symfile.c (symfile_bfd_open): Change parenthesis positioning
2058 around call to hpread_pxdb_check.
2060 * symfile.c (symfile_bfd_open): Make not static.
2061 (RESET_HP_UX_GLOBALS): New macro. Resets globals when new symbol
2063 (USE_PXDB): Not needed. Removed.
2064 (symbol_file_add): Add HP specific code to deal with pxdb.
2065 (symbol_file_command): Reset HP specific globals if new symbol file
2067 (symfile_bfd_open): Comment out checking for pxdb.
2068 (reread_symbols): Reset HP specific globals.
2070 * symfile.c (symfile_bfd_open): Uncomment hpus specific code.
2073 (symbol_file_add): Add user_loaded and is_solib parameters.
2074 fixed number of parameters in call to allocate_objfile
2075 (symbol_file_command): Added call to SOLIB_RESTART macro.
2076 fixed number of parameters in calls to symbol_file_add.
2077 (add_symbol_file_command): Fixed number of parameters in calls to
2080 * symfile.c: Added prototype for hpread_pxdb_check.
2082 * symfile.c: Changed HPUX_SNAP1 ifdef to HPUXHPPA. enclosed calls to
2083 RESET_HP_UX_GLOBALS with an HPUXHPPA ifdef
2085 * symfile.h (symfile_bfd_open): Add protptype.
2087 * symfile.h: Add prototype for add_psymbol_with_dem_name_to_list.
2089 * symfile.h: Clarify purpose of auto_solib_add.
2091 * symmisc.c (maintenance_print_symbols): Call gdb_fclose, not
2092 fclose on a GDB_FILE* during cleanup.
2093 (maintenance_print_psymbols): Call gdb_fclose, not fclose on a
2094 GDB_FILE* during cleanup.
2095 (maintenance_print_msymbols): Call gdb_fclose, not fclose on a
2096 GDB_FILE* during cleanup.
2098 * symmisc.c (maintenance_print_symbols): Gdb_fclose now takes a
2099 GDB_FILE ** parameter. Fix the local GDB_FILE variables and the
2100 call to make_cleanup.
2101 (maintenance_print_psymbols): Ditto
2102 (maintenance_print_msymbols): Ditto
2104 * symmisc.c (print_objfile_statistics): Close quotes in
2108 (Print_symbol): Add LOC_INDIRECT to switch statement
2109 (print_partial_symbols): Add LOC_INDIRECT to switch statement
2111 * symtab.c (find_pc_sect_psymtab): High bounds should be <, not <=.
2112 (find_pc_sect_symtab): Ditto.
2114 * symtab.c (hp_som_som_object_present): New flag to indicate HP
2116 (find_pc_sect_psymtab): Change tests to make sure we are checking
2117 the texthigh adress as well.
2118 (lookup_transparent_type): New function. Look up a type name
2119 in the struct_namespace. The type returned must not be opaque.
2120 (find_pc_sect_symtab): Make sure we check the address 'pc' itself,
2122 (find_addr_symbol): Prepare to handle LOC_INDIRECT address class, but
2123 leave it commented out.
2124 (find_pc_sect_line): Return correct information if pc is in import
2125 or export stub (trampoline).
2126 (decode_line_1): Skip two chars, if they are '$$'. Like for HP's
2127 $$dyncall. Handle cases in which varaible and function names can start
2129 (overload_list_add_symbol): If cannot demangle name, use it as is.
2130 Free string after use.
2131 (make_symbol_overload_list): Initialize oload_name to NULL and
2132 oload_name_len to 0. If demangle not successful, use name as it is.
2133 Free string after use.
2135 * symtab.c (lookup_symbol): Changed call to find_pc_sect_symtab,
2136 to the original find_pc_symtab, in HP added fragment.
2138 * symtab.c (lookup_symbol): Change HPUX_SNAP1 ifdef to a HPUXHPPA ifdef
2140 * symtab.c (lookup_symbol): Ifdef the searching of symbol in the
2141 minimal symbol tables, for hpux we move this check at the end
2143 Before we error out if symbol is not found in the symtab, look
2145 Before erroring out if static symbol not found look in the globals.
2147 * symtab.c (lookup_symbol): Return symbol as soon as found.
2148 (decode_line_1): Check whether we have a conditional break. Temporarily
2149 remove it from the line, to not confure perenthesis checking.
2151 (overload_list_add_symbol): New function. Overload
2153 (make_symbol_overload_list): Ditto.
2156 (find_template_name_end): New prototype decl.
2157 (lookup_symbol): When a global or static symbol shows up in the
2158 psymtab table, but not the symtab table, tell the user that
2159 the symbol may be an inlined function or a template function and
2160 provide some guidance to the user about how to more fully
2162 (lookup_transparent_type): When a global or static symbol shows up
2163 in the psymtab table, but not the symtab table, tell the user that
2164 the symbol may be an inlined function or a template function and
2165 provide some guidance to the user about how to more fully
2167 (decode_line_1): Handle template function specification when decoding a
2168 line. May need to be ifdefed for HP's aCC?
2169 (_initialize_symtab): Handle dbx commands.
2171 * symtab.h (address_class): Add new address calss for
2172 LOC_THREAD_LOCAL_STATIC and LOC_INDIRECT.
2173 (lookup_transparent_type): Add prototype.
2174 (exception_event_kind): New enum for exception catchpoints.
2175 (exception_event_record): New structure for exception catchpoints.
2176 (CURRENT_EXCEPTION_KIND): New macro.
2177 (CURRENT_EXCEPTION_CATCH_SAL): New macro.
2178 (CURRENT_EXCEPTION_CATCH_LINE): New macro.
2179 (CURRENT_EXCEPTION_CATCH_FILE): New macro.
2180 (CURRENT_EXCEPTION_CATCH_PC): New macro.
2181 (CURRENT_EXCEPTION_THROW_SAL): New macro.
2182 (CURRENT_EXCEPTION_THROW_LINE): New macro.
2183 (CURRENT_EXCEPTION_THROW_FILE) new macro.:
2184 (Current_EXCEPTION_THROW_PC): New macro.
2186 * symtab.h(make_symbol_overload_list): Add prototype.
2189 (symbol_file_add): Add new params to function decl.
2191 * target.c (cleanup_target): Changed casting of default functions for
2192 to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid of
2195 * target.c (cleanup_target): Changed the default functions for
2196 to_pid_to_exec_file and to_core_file_to_sym_file
2198 * target.c (cleanup_target): Fixed PARAMS for to_has_syscall_event
2200 * target.c (cleanup_target): Syntax error, mismatched paranthesis.
2203 (Default_clone_and_follow_inferior): New funct prototype declaration
2204 and function definition
2205 (dummy_target): More target_ops vector changes for HPUX
2206 new fields. ifdefed for HPUX_SNAP2. New fields are
2207 to_post_wait, to_post_startup_inferior
2208 to_acknowledge_created_inferior, to_clone_and_follow_inferior,
2209 to_post_follow_inferior_by_clone, to_create_catch_fork_hook,
2210 to_create_catch_vfork_hook, to_has_forked, to_has_vforked,
2211 to_post_follow_vfork, to_pid_to_exec_file
2212 (de_fault): Add new HPUX specific target_ops operations to
2214 (INHERIT): Add new HPUX specific target_ops operations to the
2216 (find_default_clone_and_follow_inferior): New funct definition
2217 (debug_to_post_wait): New funct
2218 (debug_to_post_startup_inferior): New funct
2219 (debug_to_acknowledge_created_inferior): New funct
2220 (debug_to_clone_and_follow_inferior): New funct
2221 (debug_to_post_follow_inferior_by_clone): New funct
2222 (debug_to_create_catch_fork_hook): New funct
2223 (debug_to_create_catch_vfork_hook): New funct
2224 (debug_to_has_forked): New funct
2225 (debug_to_has_vforked): New funct
2226 (debug_to_post_follow_vfork): New funct
2227 (setup_target_debug): Initialize new target_ops vector fields.
2230 (Cleanup_target): Fixed the return type on a few of the
2231 default function values.
2234 (Dummy_target): Add 3 new fields
2235 (nosupport_runtime): New function, used in cleanup_target
2236 (cleanup_target): Changes in the de_fault macro, both to
2237 accomodate the new target_ops vector fields and to use
2238 more accurate default functions.
2239 (update_current_target): Add new target_ops vector fields to the
2241 (generic_mourn_inferior): The call to breakpoint_init_inferior now takes a
2243 (normal_pid_to_str): Adding a \0 to the end of buf.
2244 (debug_to_has_syscall_event): New func
2245 (debug_to_enable_exception_callback): New func
2246 (debug_to_get_current_exception_event): New func
2247 (setup_target_debug): Initialize the 3 new target_ops vector fields
2250 (Struct signals): Fix message associated with SIGRETRACT.
2253 (Dummy_target): Fix syntax error
2254 (cleanup_target): Changed the default values for the new
2255 target_ops vector fields. HP folks inappropriately set
2256 most of them to noprocess(). They should be a mixture
2257 of ignore() and return_zero().
2260 (Dummy_target): Add new target_ops vector fields and their initializations
2261 (cleanup_target): Added new new target_ops vector fields to the de_fault
2263 (update_current_target): Added new new target_ops vector fields to the INHERIT
2265 (return_one): New function, used by the de_fault macro
2266 (debug_to_post_attach): New function
2267 (debug_to_wait): Added new cases: Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
2268 TARGET_WAITKIND_EXECD
2269 (debug_to_insert_fork_catchpoint): New function
2270 (debug_to_remove_fork_catchpoint): New function
2271 (debug_to_insert_vfork_catchpoint): New function
2272 (debug_to_remove_vfork_catchpoint): New function
2273 (debug_to_can_follow_vfork_prior_to_exec): New function
2274 (debug_to_insert_exec_catchpoint): New function
2275 (debug_to_remove_exec_catchpoint): New function
2276 (debug_to_core_file_to_sym_file): New function
2277 (setup_target_debug): Give new fields in current_target target_ops vector values.
2279 * target.c: Hp merge, 4/15/98 snapshot
2280 There are new target_ops fields that pertain only
2281 to HPUX. All the changes relate to this. Fist,
2282 new fields are added to the dummy_target target_ops
2283 vector: To_require_attach, to_require_detach.
2285 * target.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs
2287 * thread.c (info_threads_command): Call print_only_stack_frame
2288 instead of print_stack_frame.
2289 (_initialize_thread): Make t an alias for thread only if
2290 xdb_commands is not set.
2292 * thread.c (thread_command): If no arguments, don't generate an
2293 error, instead tell the user which thread is current.
2294 (info_threads_commands): Don't lose the users position within the
2295 current thread -- remember it and then restore it.
2298 (struct thread_info): Add stepping_through_sigtramp field
2299 (add_thread): Initialize stepping_through_sigtramp field
2300 (load_infrun_state): Add stepping_through_sigtramp param and
2301 make sure it gets assigned a value.
2302 (save_infrun_state): Add stepping_through_sigtramp param and
2303 make sure that the value gets saved.
2304 (info_threads_command): Ifdefing some local variables and
2305 code for HPUXHPPA. HP folks want print the tid rather than pid?
2306 Also, looks like the HP folks solved the same thread switching
2307 problem that 4.17 solves. Taking 4.17.
2308 (restore_current_thread): Print out the current frame after
2310 (thread_apply_all_command): Ifdefing a print statement for
2311 HPUXHPPA. The HP folks want to print out a tid rather than pid?
2312 (thread_apply_command): Ifdefing a print statement for
2313 HPUXHPPA. The HP folks want to print out a tid rather than pid?
2314 (thread_command): Decided not to take HP change.
2316 * thread.c: Fixing gdb core dump problem causing many testsuite
2318 (add_thread): Remove call to bpstat_clear, initialize
2319 tp->stepping_through_solib_catchpoints = NULL;
2321 * thread.c: Changes for catchpoints, shared libaries,
2322 (thread_info): Additional fields in the thread_info struct
2323 for stepping_through_solib_after_catch and
2324 stepping_through_solib_catchpoints.
2325 (add_thread): Initialize the new thread_info fields.
2326 (load_infrun_state): Additional parameters for handling
2327 catchpoints and shared libraries.
2328 (save_infrun_state): Additional parameters for handling
2329 catchpoints and shared libraries.
2331 * top.c (command_loop): Initialize space_at_cmd_start to 0.
2332 (set_prompt): New function.
2333 (togglelist, stoplist): New command lists.
2334 (command_loop): Tui changes -- paranoia to make sure
2335 insert mode is off when not editing.
2336 (quit_force): Clean up tui on exit.
2337 (init_main): Make definition of info status command dependent upon
2338 dbx mode not being set.
2339 (fputs_unfiltered_hook): Changed stream parameter from FILE
2341 (flush_hook): Changed stream parameter from FILE to GDB_FILE
2343 * top.h (set_prompt): Declare.
2345 * typeprint.c (whatis_exp): Decide real runtime type. For the vtable
2348 * utils.c (query): Changes to prevent cursor from jumping around in the
2349 TUI. Call tuiBufferGetc explicitly, rather than passing it
2350 into tuiDo. The tuiDo function does some additional work
2351 that is inappropriate when handling queries.
2352 (GDB_FILE_ISATTY): New macro that takes a GDB_FILE param and
2353 determines whether or not it's using a tty.
2354 (gdb_file_isatty); called by the GDB_FILE_ISATTY macro. Does
2356 (init_page_info): Call GDB_FILE_ISATTY rather than ISATTY
2357 (print_spaces): Fix parameter to fputc. fix call to
2358 gdb_file_adjust_strbuf.
2359 (gdb_file_init_astring): Fix parameter to xmalloc
2360 (gdb_file_deallocate): New function to deallocate
2361 a GDB_FILE object and possibly a string buffer
2362 (gdb_file_init_astring): Initialize buffer as the empty
2363 string. Indent GNU style.
2364 (gdb_fopen): Gdb_fopen is called if the GDB_FILE object is
2365 actually afile rather than astring. The routine now allocates space
2366 for a GDB_FILE object and initializes its fields in addition to
2367 performing an fopen.
2368 (gdb_flush): Fix the parameter passed into fflush. It's now
2369 stream->ts_filestream.
2370 (gdb_fclose): Pass in an object of type GDB_FILE **. Fix parameter
2371 to fclose. It's now tmpstream->ts_filestream. Make sure to free
2372 the GDB_FILE object and set the GDB_FILE * object to NULL.
2373 (gdb_adjust_strbuf): New function. Determine if the current
2374 ts_strbuf field contains sufficient space to concatenate a string
2375 of length n on the end. If not, then reallocate the ts_strbuf.
2376 (print_spaces): Check to see if the GDB_FILE is afile or
2377 astring. If it is astring, then adjust the size of the ts_strbuf
2378 field and concatenate the correct number of spaces onto the end of
2379 the buffer. Otherwise continue to use fputc.
2380 (gdb_file_get_strbuf): New function. return a ptr to the ts_strbuf
2381 field in a GDB_FILE object.
2382 (gdb_file_init_astring): New function to allocate space for and
2383 initialize a GDB_FILE object when it is an astring.
2384 (set_width): Declare it.
2385 (pagination_enabled): Define it.
2386 (query): Tui changes.
2387 (init_page_info, set_width): New functions.
2388 (set_width_command): Call set_width.
2389 (_initialize_utils): Replace termcap stuff with call to
2390 init_page_info; if xdb_commands set, define am and sm commands;
2391 define pagination as a set/show command.
2392 (vfprintf_maybe_filtered): Change FILE to GDB_FILE.
2393 (fputs_maybe_filtered): Ditto.
2394 (print_spaces): Ditto.
2395 (gdb_printchar): Ditto.
2397 (fputs_filtered): Ditto.
2398 (vfprintf_filtered): Ditto.
2399 (vfprintf_unfiltered): Ditto.
2400 (fprintf_filtered): Ditto.
2401 (fprintf_unfiltered): Ditto.
2402 (fprintfi_filtered): Ditto.
2403 (print_spaces_filtered): Ditto.
2404 (fprintf_symbol_filtered): Ditto.
2405 (gdb_fclose): New function.
2407 * valops.c (call_function_by_hand): Assign to param_type only
2408 if function has parameters.
2410 * valops.c (call_function_by_hand): Ifdef the
2411 HP_COMPILED_TARGET stuff.
2412 (value_arg_coerce): Ditto.
2414 * valops.c (call_function_by_hand): Make sure param_type is
2415 initialized to NULL.
2417 * valops.c (find_rt_vbase_offset): Add parameter to value_at.
2418 (value_rtti_type): Ditto.
2419 (value_full_object): Ditto.
2421 * valops.c (search_struct_field_aux): Fixed mismatching parenths
2423 * valops.c (search_struct_field_aux): Make sure TYPE_TAG_NAME
2424 is not null before copying it.
2427 * valops.c (search_struct_field_aux): Set found_class_name to null
2428 if class has no name (anon unions case). Adjust base_addr
2431 * valops.c (value_arg_coerce): Change final arg to int.
2433 * valops.c (value_arg_coerce): Remove the conditional on HP
2434 compiled target, for doing coercion of float to double. Removed
2435 third parameter, using_gcc.
2436 (call_function_by_hand): Do not use HP_COMPILED_TARGET, just
2437 use the gcc_compiled variable.
2439 * valops.c (value_cast): Take case of the enclosing_type and
2440 pointer_to_offset fields.
2441 (value_at): Use VALUE_CONTENTS_ALL_RAW
2442 (value_fetch_lazy): Ditto
2443 (value_assign): Handle enclosing_type, embedded_offset and
2444 pointed_to_offset fields.
2445 (value_repeat): Use VALUE_CONTENTS_ALL_RAW and VALUE_ENCLOSING_TYPE.
2446 (value_ind): Set enclosing_type and embedded_offset correctly,
2447 for a pointer value being dereferenced. Target memory bytes
2448 corresponding to the size of the enclosing type are retreived.
2449 (value_addr): Handle enclosing_type and pointed_to_offset.
2450 (value_push): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE.
2451 (value_arg_coerce): Coerce floats to doubles only if gcc was not
2452 used to compile the target.
2453 (call_function_by_hand): Handle pointers to functions as paramters.
2454 (value_array): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE.
2455 (search_struct_method): Produce more informative error message.
2456 (find_rt_vbase_offset): Deal with negative offsets.
2457 (value_find_oload_method_list): New function. Return the list of
2458 overloaded methods of a specified name.
2459 (find_method_list): New function. Search through the methods of an
2460 object (and its bases) to find a specified method.
2461 (value_full_object): New function. Given a value, check its real
2463 (value_rtti_target_type): New function. Given a pointer value V, find
2464 the real (RTTI) type of the object it points to.
2465 (value_rtti_type): New function. Find the real run-time type of a
2468 * valops.c: Include gdbcmd.h
2469 Set global overload_resolution to 0.
2470 (find_function_in_inferior): Modify error message.
2471 (value_allocate_space_in_inferior): Modify error message.
2472 (value_cast): Deal with HP/aCC peculiarities.
2473 (value_of_variable): Use SYMBOL_SOURCE_NAME instead of SYMBOL_NAME.
2474 (value_addr): Modify address value by adding the embedded offset.
2475 (value_ind): Modify the address of the object by the pointed_to_offset.
2476 (call_function_by_hand): Do not do any extra alignment if not needed.
2477 Fetch the return value from the stack rather then from the register,
2478 for the hppa architecture.
2479 (search_struct_field): Rewritten. Now this function uses
2480 search_struct_field_aux to do all the work.
2481 (search_struct_field_aux): New function. This is the old
2482 search_struct_field rewritten.
2483 (find_rt_vbase_offset): Give error if virtual table pointer is not good.
2484 (find_overload_match): New function. Find the best function that
2485 matches on the argument types according to the overload resolution
2487 (_initialize_valops): Add new set/show command for overload-resolution.
2489 * value.h (VALUE_POINTED_TO_OFFSET): New macro.
2490 Add field pointed_to_offset to value structure.
2491 Add prototypes for new functions in valops.c.
2493 * value.h (write_register_pid): Change prototype to match
2496 * value.h: Hp merge, 4/15/98 snapshot
2497 Added parameter to val_print func decl.
2498 Added new macro, VALUE_EMBEDDED_OFFSET, and
2499 new func decl, find_rt_vbase_offset, for C++
2502 * values.c (allocate_value): Allocate also for value_embedded_offset
2503 and value_enclosing_type.
2504 (value_copy): Copy value_embedded_offset and value_enclosing_type too.
2505 Use all_raw in copying the value itself.
2506 (value_primitive_field): Add handling of base subobjects.
2508 * values.c (value_copy): Copy the pointed_to_offset as well.
2509 (allocate_value): Allocate the pointed_to_offset as well.
2510 (value_virtual_fn_field): Rewrite.
2512 * values.c (value_primitive_field): Adjust embedded offset and
2515 * values.c (value_static_field): Take into consideration that static
2516 data members can be minimal symbols too.
2518 * values.c (value_virtual_fn_field): Fix call to value_at.
2520 * win32-nat.c (handle_load_dll): Added params to call to symbol_file_add.
2522 Other changes have to do with XDB compatability. Leave oout
2525 defs.h (vfprintf_filtered): Change FILE to GDB_FILE in decl.
2526 (fprintf_filtered): Ditto.
2527 (fprintfi_filtered): Ditto.
2528 (vfprintf_unfiltered): Ditto.
2529 (fprintf_unfiltered): Ditto.
2531 infcmd.c (_initialize_infcmd): If xdb_commands is set, make S an
2532 alias for next and define R, lr, g. Define go.
2534 pyr-tdep.c (pyr_print_insn): Change FILE to GDB_FILE.
2537 * breakpoint.c (create_temp_exception_breakpoint): #If it out --
2539 (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not
2540 defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined.
2541 (bpstat_get_triggered_catchpoints): If we don't have shared
2542 library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor
2543 SOLIB_UNLOADED_LIBRARY_PATHNAME.
2544 (watch_command_1): Don't require a run before a watch command
2545 unless we're on HP [it's an HP OS bug, not a generic limitation]
2546 (catch_load_command_1): Don't define if no shared libraries.
2547 (catch_command_1): Don't claim to support fork catchpoints unless
2548 CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support
2549 vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined,
2550 don't clain to support shared library load catchpoints if shared
2551 libraries aren't supported, and don't claim to support exec
2552 catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined
2554 There are new target_ops vector fields that pertain
2555 only to HPUX. Added the to_require_attach and
2556 to_require_detach fields to exec_ops. These new
2557 fields are ifdef'ed for HPUX_SNAP1.
2560 Fix compile error in enum bptype.
2563 Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME,
2564 SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT,
2565 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These
2566 macros are only meaningful (for now) for SOM. So, all
2567 the macros were defined as error(...), but were used in
2568 conditions. This caused the compile to crap out. I redefined
2569 these (for now) to be 0.
2572 (procfs_create_inferior): Fix call to fork_inferior -- need another
2576 Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME,
2577 SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT,
2578 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These
2579 macros are only meaningful (for now) for SOM. So, all
2580 the macros were defined as error(...), but were used in
2581 conditions. This caused the compile to crap out. I redefined
2582 these (for now) to be 0.
2585 (search_struct_field): Undeclared local variable, "assigned".
2586 (find_rt_vbase_offset): Fixed call to value_at
2588 * value.h: Fix signature for find_rt_vbase_offset funct decl
2594 * i386-stub.c: Fix error string in last change.
2598 * utils.c: <Readline/readline.h> instead of "readline/readline.h".
2600 * configure.in (TERM_LIB): Search for the appropriate term library
2602 * configure: Regenerated.
2603 * Makefile.in (TERMCAP): Set based on autoconf check.
2604 * config/*/*.mh: Don't override TERMCAP setting.
2608 * value.c (value_virtual_fn_field): Handle the situation where
2609 vtbl is a pointer to a structure instead of a pointer to an array.
2617 changes originally made by HP; HP did not create ChangeLog
2620 * c-lang.h (cp_print_value_fields): Update prototype; fixed
2621 prototype decl for c_val_print function -- it needed an
2622 embedded_offset param; fixed prototype of cp_print_value_fields.
2626 * c-valprint.c (c_val_print): Add new parameter embedded_offset.
2627 Add embedded_offset to valaddr in function calls. fix calls to
2628 val_print, and cp_print_value_fields. Attempt to determine the
2629 real type of the object to be printed. fixed call to
2630 cp_print_value_fields. process TYPE_CODE_METHOD as well. moved
2631 call to check_typedef out of conditional. add embedded offset
2632 param to val_print call.
2634 (c_value_print): Add new parameter to call to val_print. Handle
2635 pointer to class case. Ensure that const char *, const unsigned
2636 char * come out without the type but the volatile variants and the
2637 signed variants don't.
2639 * ch-lang.h (chill_val_print): Add parameter to decl.
2641 * ch-valprint.c: The various print routines have an additional
2642 parameter. Currently, the new parameter is only used when printing
2643 C++ expressions. So, in ch-valprint.c, the new parameter is always
2644 0. Changes in calls to val_print, chill_val_print, c_val_print
2645 Affected functions are chill_val_print_array_elements,
2646 chill_val_print, chill_print_value_fields, chill_value_print.
2648 * cp-valprint.c add vtable pointers names for aCC (HP) compiler.
2649 (cp_print_class_method): Print message for HP/aCC case.
2650 (cp_print_class_member): Add comments.
2651 (cp_print_value): Adjust address computations for virtual base
2652 classes. add new parameter 'offset'. Find correct offset for
2653 base class in HP/aCC case. Change call to cp_print_value_fields
2655 (cp_print_value_fields): Do not print also if the only field is
2656 the vtable pointer. Print out vtable ptr, for HP/aCC compiled
2657 case. do not print leading '=' in case of anonymous union, or
2658 struct. add new parameter 'offset'. Do not print the vtable
2659 pointer as a member, in the HP aCC case. Changed calls to
2660 val_print to have extra parameter.
2661 (cp_print_hpacc_virtual_table_entries): New function. Print vtable
2662 entries, in HP/aCC compiled case.
2663 (cp_print_static_field): Change call to cp_print_value_fields, and
2666 * d30v-tdep.c (d30v_print_register): Add embedded_offset param
2669 * defs.h: Additional include files included when TUI is defined.
2670 (gdb_file_isatty): New function decl.
2671 (GDB_FILE): If TUI is defined, define a structure rather
2672 than making this an alias for FILE.
2673 (gdb_stdout, gdb_stderr): If TUI is defined, then define these
2674 as pointers to variables of type GDB_FILE rather than making them
2675 be aliases for stdout and stderr.
2676 (TUIDO): Add definition conditionalized on definition
2677 (or lack thereof) of TUI.
2678 (command_class): Add two additional values.
2679 (precision_type): New enum.
2680 (gdb_fclose): Add decl.
2681 (store_address): Change prototype to match function.
2682 (tui_version, xdb_commands, dbx_commands): Add decls.
2683 (gdb_file_deallocate): New function decl
2684 (pa_do_strcat_registers_info): New function decl.
2685 (streamtype): New enumerated type to distinguish between output to
2686 a FILE and output to a buffer.
2687 (tui_stream): New struct type, named GDB_FILE.
2688 (gdb_stdout): Of type GDB_FILE, will pass this around gdb rather
2690 (gdb_stderr): Of type GDB_FILE, will pass this around gdb rather
2692 (fputs_unfiltered_hook): Change stream parameter from FILE to
2694 (flush_hook): Change stream parameter from FILE to GDB_FILE.
2695 (gdb_fclose): Fix decl for gdb_fclose; parameter is now of
2697 (gdb_file_adjust_strbuf): New function decl. function lives
2699 (gdb_file_init_astring): New function decl. function lives
2701 (gdb_file_get_strbuf): New function decl. function lives in
2703 (source_full_path_of): Declare.
2705 * exec.c (_initialize_exec): Make definition of file command be
2706 dependent upon dbx_commands not being set.
2707 (exec_file_attach): New function.
2708 (exec_file_command): Call it.
2709 (exec_ops): Add new target vector fields.
2711 * f-lang.h (f_print_type): Change FILE to GDB_FILE in decl.
2712 (f_val_print): Ditto.
2713 (f_val_print): Add parameter to the function decl.
2715 * f-valprint.c (_initialize_f_valprint): If xdb_commands is set,
2717 (f77_create_arrayprint_offset_tbl): Change FILE to GDB_FILE.
2718 (f77_print_array): Ditto.
2719 (f77_print_array_1): Ditto.
2720 (f_val_print): Ditto.
2721 (f_val_print): Add a parameter; this new parameter is currently
2722 only non-zero when handling C++ expressions. In this file its
2723 value is always 0. changed fflush to gdb_flush.
2725 * gnu-nat.c: (init_gnu_ops): Add new target vector fields.
2726 (gnu_create_inferior): Add param to fork_inferior call.
2728 * hppa-tdep.c (after_prologue): If f is NULL, don't dereference
2729 it. if no debug info, return zero telling caller that we need to
2730 find the end of the prologue via the hard way (instruction
2732 (find_unwind_entry): Avoid dereferencing a null
2734 (hppa_pid_to_exec_file): Deleted -- no longer used.
2735 (hppa_prepare_to_proceeed): Add prototype.
2736 (read_unwind_info): Purecov comments, bug fixes.
2737 (find_unwind_entry): Purecov comments, bug fixes.
2738 (find_stub_with_shl_get): Purecov comments.
2739 (frame_chain): Additional parens.
2740 (hppa_push_arguments): Changes to commented out version of routine.
2741 (hppa_fix_call_dummy): Purecov comments, fix location of end.o.
2742 (in_solib_call_trampoline): Purecov comments.
2743 (in_solib_return_trampoline): Purecov comments.
2744 (setup_d_pid_in_inferior): Fix location of end.o.
2745 (initialize_hp_cxx_exception_support): Fix location of end.o.
2746 (child_enable_exception_callback): Purecov comments.
2747 (pa_do_strcat_registers_info): Has a new parameter, precision,
2748 which is passed into the call to pa_strcat_fp_reg to indicate
2749 whether to display the floating point registers using
2750 single or double preceision.
2751 (pa_strcat_registers): Introduce local variable, precision, and
2752 pass it into call to pa_strcat_fp_reg.
2753 (pa_strcat_fp_reg): Modified function. New parameter, precision,
2754 used by function to decide whether to use single or double
2755 precision. Also add the code to put a double precision value
2757 (pa_do_strcat_registers_info): New routine. called by
2758 tui/tuiRegs.c:_tuiRegisterFormat to place a register name
2759 and value into a string buffer. Interface may change in
2760 future. Checking this in so that we have something
2762 (pa_strcat_registers): New routine, called by
2763 pa_do_strcat_registers_info. Does same thing as
2764 pa_print_registers except it takes a stream parameter.
2765 This routine should disappear in future. Checking in
2766 so that we have something functional to give HP
2767 (pa_strcat_fp_reg): New routine, called by
2768 pa_do_strcat_registers_info and pa_strvat_registers
2769 to place a floating point register name and value into
2770 a buffer. This interface may change in future.
2771 Checking in so that we have something functional to give HP.
2772 (pa_print_fp_reg): Change prototype to match def'n.
2773 (pa_register_look_aside): Fix comment immediately before function.
2774 Changes to better support stack unwinding, reading and writing
2775 registers for HPUX. New includes ptrace.h, bfd.h, dl.h.
2776 (internalize_unwinds): Initialize new fields in table.
2777 (read_unwind_info): Entries in the table are now more complex
2778 structures. References of the form ...->table[index].stub_type are
2779 now ...->table[index].stub_unwind.stub_type.
2780 (find_proc_framesize): Add a check for pc == 0.
2781 (rp_saved): Entries in the table are now more complex
2782 structures. References of the form ...->table[index].stub_type are
2783 now ...->table[index].stub_unwind.stub_type.
2784 (frameless_function_invocation): Stub_type becomes
2785 stub_unwind.stub_type
2786 (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type
2787 (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type
2788 (frame_chain_valid): Stub_type becomes stub_unwind.stub_type
2789 (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type
2790 (pa_print_fp_reg): Additional params to call val_print
2791 (in_solib_call_trampoline): Stub_type becomes
2792 stub_unwind.stub_type
2793 (in_solib_return_trampoline): Stub_type becomes
2794 stub_unwind.stub_typ
2795 (skip_trampoline_code): Additional code to handle external
2796 dyncalls. Also stub_type becomes stub_unwind.stub_type
2797 (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there
2798 is an explicit ptrace request for getting the pathname associated
2799 with a process id (pid).
2800 (hppa_pid_to_exec_file): Remove unwanted param from call to
2802 (args_for_find_stub): New structure.
2803 (find_unwind_entry): Deal with null input pc value.
2805 For the import stub, return -24 always.
2806 (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop.
2807 (init_extra_frame_info): Use TARGET_READ_FP.
2808 (frame_chain): Include thread support.
2809 If the caller's pc is zero, we lose and return, just like stack
2811 Disable warning about being unable to find unwind info.
2812 (hppa_push_arguments): Rewrite.
2813 (hppa_value_returned_from_stack): New function. Handles returning
2814 a value larger than 64 bits, stored on the stack.
2815 (find_stub_with_shl_get): New function. To look up symbols in shlibs.
2816 (cover_find_stub_with_shl_get): New function. Cover routine for
2817 find_stub_with_shl_get to pass to catch_errors.
2818 (hppa_fix_call_dummy): Comment out old stub mechanism.
2819 Rewrite using dyncall.
2820 (target_read_fp): New function.
2821 (pa_do_registers_info): Floating point registers start at FP4.
2822 (pa_print_registers): Use FP4_REGNUM instead of 72.
2823 (skip_trampoline_code): Do machine instruction matching for PA2.0.
2824 (setup_d_pid_in_inferior): New function. Exception handling support.
2825 (initialize_hp_cxx_exception_support): Ditto.
2826 (child_enable_exception_callback): Ditto.
2827 (child_get_current_exception_event): Ditto.
2829 * hpux-thread.c (hpux_thread_ops): Add new target vector fields.
2831 * infcmd.c: Include objfiles.h.
2832 (attach_command): New local variable, exec_file, add code to
2833 determine exec_file from pid if exec_file is not already known,
2834 call new target operation, target_post_attach -- a no-op unless
2836 (detach_command): After detaching, do a SOLIB_RESTART.
2837 (objfiles.h): Fix typo on include line.
2838 (run_command): Only call SOLIB_RESTART if it's defined.
2839 (detach_command): Ditto.
2840 (run_command): If program has already been started, and decide
2841 to restart it, the kill the target, fluch the caches,
2842 call init_wait_for_inferior. Also purge old solib objfiles.
2843 (run_stack_dummy): Add calls to
2844 disable_watchpoints_before_interactive_call_start and
2845 enable_watchpoints_after_interactive_call_stops.
2846 (finish_command): Alter code handling the evaluation and printing
2847 of the target function's return value.
2848 (attach_command): When given a pid, but no exec file, try to
2849 determine the exec file from the process. If the process does not
2850 record a full path name, try to qualify the filename against the
2852 (_initialize_infcmd): Add some verbiage about how to use the
2854 (do_registers_info): Changed calls to val_print
2855 made the symfile.h include preceed the
2856 objfiles.h include. The other ordering caused a
2857 compile problem (incompletely defined types).
2859 * inftarg.c (child_post_attach): Fix decl, make static.
2860 (proc_wait): Make globally visible.
2861 (child_insert_fork_catchpoint, etc): Fix return type.
2862 (child_detach_from_process): Declare.
2863 (child_attach_to_process): Declare.
2864 (child_stop): Make static to match decl.
2865 (ptrace_him): Change prototype back to return int.
2866 (ptrace_me): Remove debug output, pass NULL to fork_inferior if
2868 (proc_wait): function prototype and definition are enclosed by
2870 (child_attach_to_process): New function, does most of the work
2871 that child_attach used to do and some additional work to determine
2872 whether gdb is already attached to the target how to react.
2873 (child_attach): Altered. It's now a wrapper for
2874 child_attach_to_process.
2875 (child_require_attach): New function, called if should attach even
2876 when gdb is already attached to target.
2877 (child_detach_from_process): New function, does most of the work
2878 that child_detach used to do and some additional work to determine
2879 whether gdb is currently attached to the target.
2880 (child_detach): Altered. It's now a wrapper for
2881 child_detach_from_process.
2882 (child_require_detach): New function, called if should try to
2883 detach even when gdb is not attached to target.
2884 (ptrace_him): Calls a new function,
2885 target_acknowledge_forked_child. Currently,
2886 target_acknowledge_forked_child, is only defined to do something
2888 (child_create_inferior): Changed call to fork_inferior.
2889 (child_ops): Add to_require_attach and to_require_detach fields
2890 to the child_ops target ops vector.
2891 Some hacks for ttrace work:
2892 (child_wait): Additional local variables, additional code in
2893 while loop to check for process exited, process forked,
2894 process vforked, process execd.
2895 (child_thread_alive): John B. seems to think that the kill
2896 call is inapproapriate for HPUX.
2897 (child_attach_to_process): Using strtol rather than atoi.
2898 no longer check for case where there is no known exec file.
2899 (child_post_attach): New function, a default, a no-op.
2900 (child_insert_fork_catchpoint): New function, a default, a no-op.
2901 (child_remove_fork_catchpoint): New function, a default, a no-op.
2902 (child_insert_vfork_catchpoint): New function, a default, a no-op.
2903 (child_remove_vfork_catchpoint): New function, a default, a no-op.
2904 (child_can_follow_vfork_prior_to_exec ):new function, a default,
2906 (child_insert_exec_catchpoint): New function, a default, a no-op.
2907 (child_remove_exec_catchpoint): New function, a default, a no-op.
2908 (child_has_execd): New function, a default, returns 0.
2909 (child_reported_exec_events_per_exec_call): New function, a
2911 (child_has_exited): New function, a default.
2912 (child_core_file_to_sym_file): New function, a default, returns NULL.
2913 (child_ops): Initialize new target vector fields.
2915 * jv-lang.h: (Java_val_print): Add embedded_offset param to func
2918 * jv-valprint.c: Changing calls to val_print to accomodate new param.
2919 (java_value_print): Add embedded_offset param to val_print call
2920 (java_print_value_fields): Add embedded_offset param to val_print
2922 (java_val_print): Add embedded_offset param. alter call to
2923 c_val_print to accomodate embedded_offset param.
2925 * language.c (lang_bool_type): Return builtin_type_bool in c++
2927 (unk_lang_val_print): Add embedded_offset param to
2928 prototype decl and definition.
2930 * language.h (LA_VAL_PRINT macro, la_val_print function decl):
2931 altered to accomodate the new parameter to the various print
2934 * m2-lang.h (m2_val_print): Add a parameter to the function decl.
2936 * m2-valprint.c (m2_val_print): Add a parameter.
2937 This parameter is currently only used when evaluating C++
2938 expressions. So, it is always 0 in this file.
2940 * m3-nat.c (m3_create_inferior): Add param to fork_inferior call
2941 (m3_pid_to_exec_file): New function
2942 (m3_ops): Add new target vector fields.
2944 * mac-nat.c (init_child_ops): Add new target vector fields.
2946 * mips-tdep.c: Chnages to accomodate additional parameter
2948 (mips_print_register): Alter calls to val_print
2950 * monitor.c (monitor_write): Change stderr to gdb_stderr.
2951 (monitor_remove_breakpoint): Ditto.
2952 (init_base_monitor_ops): Add new target vector fields.
2954 * ppc-bdm.c (init_bdm_ppc_ops): Add new target vector fields.
2956 * printcmd.c (do_examine): When saving a value_ptr, remove it from
2957 the list of value_ptr's to be freed automatically; when discarding
2958 a previously saved value_ptr, free it.
2959 (print_formatted): Update comments; add new comments.
2960 (printf_command, print_insn): Purecov comments.
2961 (_initialize_printcmd): Add assign as a command if dbx_commands is
2962 set; create va as an alias for disassemble if xdb_commands is set.
2963 (address_info): New cases LOC_INDIRECT and
2964 LOC_THREAD_LOCAL_STATIC.
2965 (display_command): If tui_version and exp starts with a '$', then
2966 don't display it unless tui_vSetLayoutTo fails.
2967 (disassemble_command): Add tuiDo calls.
2968 (print_scalar_formatted): For integers that are long long, check
2969 the print format and print out in binary octal, decimal, or
2970 hex. Call the new print_*_chars functions in valprint.c
2971 (print_frame_args): Altered calls to val_print, to reflect
2972 additional parameter to val_print (case LOC_BASEREG_ARG).
2974 * procfs.c: (Procfs_init_inferior): Return value is now a void.
2975 (procfs_ops): Add new target vector fields.
2976 (procfs_create_inferior): Fix call to fork_inferior -- need another
2979 * remote-adapt.c (adapt_open): Change stderr to gdb_stderr.
2980 (adpat_insert_breakpoint): Ditto.
2981 (init_adapt_ops): Add new target vector fields.
2983 * remote-array.c (array_wait): Change fflush to gdb_flush and
2984 stdout to gdb_stdout.
2985 (init_array_ops): Add new target vector fields.
2987 * remote-bug.c (bug_load): Change fflush to gdb_flush; stdout to
2989 (bug_wait): Change stderr to gdb_stderr.
2990 (bug_insert_breakpoint): Ditto.
2991 (init_bug_ops): Add new target vector fields.
2994 (init_e7000_ops): Add new target vector fields.
2995 * remote-eb.c (init_eb_ops): Ditto.
2996 * remote-es.c (init_es1800_ops): Ditto.
2997 (init_es1800_child_ops): Ditto.
2998 * remote-es.c (init_es1800_ops): Ditto.
2999 (init_es1800_child_ops): Ditto.
3000 * remote-hms.c (init_hms_ops): Ditto.
3001 * remote-hms.c (init_hms_ops): Ditto.
3002 * remote-nindy.c (init_nindy_ops): Ditto.
3003 * remote-nrom.c (init_nrom_ops): Ditto.
3004 * remote-os9k.c (init_rombug_ops): Ditto.
3005 * remote-rdp.c (init_remote_rdp_ops): Ditto.
3006 * remote-sds.c (init_sds_ops): Ditto.
3007 * remote-sim.c (init_gdbsim_ops): Ditto.
3008 * remote-st.c (init_st2000_ops): Ditto.
3009 * remote-udi.c (init_udi_ops): Ditto.
3010 * remote-vx.c (init_vx_ops): Ditto.
3011 (init_vx_run_ops): Ditto.
3012 * remote-vx.c: (Init_vx_ops): Ditto.
3013 (init_vx_run_ops): Ditto.
3015 * remote-mips.c (mips_getstring): Change stderr to gdb_stderr.
3016 (pmon_insert_breakpoint): Ditto.
3017 (pmon_remove_breakpoint): Ditto.
3018 (check_lsi_error): Ditto.
3019 (common_breakpoint): Ditto.
3020 (pmon_makeb64): Ditto.
3022 * remote-mips.c (mips_xfer_memory): Change fflush to gdb_flush;
3023 change stdout to gdb_stdout.
3025 * remote-mm.c (mm_open): Change stderr to gdb_stderr.
3026 (init_mm_ops): Add new target vector fields.
3027 (mm_load): Fixed params in commented out call to symbol_file_add.
3029 * remote-nindy.c (instream): Change decl to FILE.
3031 * remote-udi.c (udi_load): Fixed params in call to symbol_file_add.
3033 * remote-vx.c (vx_add_symbols): Fixed params in call to
3036 * remote.c (init_remote_ops): Cosmetic change to match expected
3039 * rs6000-nat.c (add_vmap): Add params to call to allocate_objfile.
3041 * scm-lang.h: Add parameter to scm_val_print function decl.
3043 * scm-valprint.c (scm_scmval_print): Cast svalue to (int); new
3044 parameter. This parameter is currently only used when evaluating
3045 C++ expressions. So, it is always 0 in this file.
3046 (c_val_print): Fixed prototype decl; it needed an embedded_offset
3049 * sol-thread.c (sol_core_ops): Add new target vector fields.
3050 (sol_thread_ops): Ditto.
3052 * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro.
3053 Define bit of __dld_flags in HP-UX a.out files.
3054 (DLD_FLAGS_HOOKVALID): Ditto.
3055 (DLD_FLAGS_LISTVALID): Ditto.
3056 (DLD_FLAGS_BOR_ENABLE): Ditto.
3057 (som_solib_total_st_size): Cumulative size in bytes of the
3058 symbol tables of all shared objects on the so_list_head list.
3059 (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols
3061 (som_solib_sizeof_symbol_table): New function. Computes size of
3062 symbol table for a shlib.
3063 (som_solib_load_symbols): New function. Load symbols from shlib.
3064 (som_solib_add): Detect if __dld_list is not valid.
3065 Record main program's symbol table size.
3066 Load symbols if called from command line.
3067 Keep threshold into account when loading shlib symbols.
3068 (som_solib_create_inferior_hook): Use dld_flags macros.
3069 (som_sharedlibrary_info_command): Let user know if symbols were
3071 (som_solib_restart): Discard all the shlibs descriptors.
3072 (_initialize_som_solib): Chenge help message for auto-solib-add
3074 Set threshold for symbol table to 50 megabytes.
3075 (_initialize_som_solib): Add call to som_solib_restart.
3076 (som_solib_restart): New function
3077 (som_solib_in_dynamic_linker): New function
3078 (som_solib_desire_dynamic_linker_symbols): New function
3079 (som_solib_unloaded_library_pathname): New function
3080 (som_solib_loaded_library_pathname): New function
3081 (som_solib_library_pathname): New function
3082 (som_solib_have_unload_event): New function
3083 (som_solib_have_load_event): New function
3084 (som_solib_create_catch_unload_hook): New function
3085 (som_solib_create_catch_load_hook): New function
3086 (som_solib_create_inferior_hook): Rewritten
3087 dld_cache: New struct
3088 addr_and_unwind_t: New struct
3089 (find_unwind_entry) add prototype
3090 Include assert.h, remove references to ASSERT macro,
3091 add include of fcntl.h so that O_RDONLY is defined.
3092 (som_solib_create_inferior_hook): Introduce new local
3093 msymbol2 and change some msymbol's to msymbol2's -- was clobbering
3094 msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline,
3095 and ultimately core dumping with a SEGV.
3096 (som_solib_mapped_entry): Additional comments for text_addr,
3097 text_link_addr, text_end, and tsd_start_addr fields. Commenting
3098 out 2 tsd fields, __data_start and __data_end.
3099 (som_solib_add_solib_objfile): Add params to calls to symbol_file_add.
3100 Add some code for distinguishing between a shared library and other
3101 objfiles. This appears to be a prelude to thread local storage.
3102 (som_solib_load_symbols): Changes to printf statement
3103 enclosed by SOLIB_DEBUG ifdef.
3104 (som_solib_add): Change comment to correctly specify path
3105 to end.o -- /opt/langtools/lib/end.o. changes to printf statement
3106 enclosed by SOLIB_DEBUG ifdef.
3107 Removed several SOLIB_DEBUG ifdefs and the associated printfs.
3108 Add code to find the start address for the object file's thread
3110 (som_solib_create_inferior_hook): Fix warning messages use correct
3111 path to end.o -- /opt/langtools/lib/end.o. Change control flow.
3112 No longer user early returns from function is cases of error.
3113 (reset_inferior_pid): New function
3114 (som_solib_remove_inferior_hook): New function
3115 (so_lib_thread_start_addr): New function. used for tsd.
3116 (struct som_solib_mapped_entry): Add new field tsd_start_addr.
3117 (struct so_list): Add new field solib_addr.
3118 (som_solib_add_solib_objfile): New function.
3119 (som_solib_load_symbols): Rewritten.
3120 (som_solib_add): Make sure we don't load the symbols in if the
3121 threshold was exceeded.
3122 (som_solib_get_solib_by_pc): New function. Return the address of
3123 handle of the shared library.
3124 (som_solib_restart): Disable breakpoints at restart.
3126 * sparcl-tdep.c (init_sparclite_ops): Add new target vector fields.
3128 * target.c (cleanup_target): Changed casting of default functions
3129 for to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid
3130 of warnings. Fixed PARAMS for to_has_syscall_event. Fixed the
3131 return type on a few of the default function values.
3132 (cleanup_target): Changes in the de_fault macro, both to
3133 accomodate the new target_ops vector fields and to use
3134 more accurate default functions.
3135 (debug_to_open): Change stderr to gdb_stderr.
3136 (debug_to_close): Ditto.
3137 (debug_to_attach): Ditto.
3138 (debug_to_post_attach): Ditto.
3139 (debug_to_require_attach): Ditto.
3140 (debug_to_detach): Ditto.
3141 (debug_to_require_detach): Ditto.
3142 (debug_to_resume): Ditto.
3143 (debug_to_wait): Ditto.
3144 (debug_to_post_wait): Ditto.
3145 (debug_to_fetch_registers): Ditto.
3146 (debug_to_store_registers): Ditto.
3147 (debug_to_prepare_to_store): Ditto.
3148 (debug_to_xfer_memory): Ditto.
3149 (debug_to_files_info): Ditto.
3150 (debug_to_insert_breakpoint): Ditto.
3151 (debug_to_remove_breakpoint): Ditto.
3152 (debug_to_terminal_init): Ditto.
3153 (debug_to_terminal_inferior): Ditto.
3154 (debug_to_terminal_ours_for_output): Ditto.
3155 (debug_to_terminal_ours): Ditto.
3156 (debug_to_terminal_info): Ditto.
3157 (debug_to_kill): Ditto.
3158 (debug_to_load): Ditto.
3159 (debug_to_lookup_symbol): Ditto.
3160 (debug_to_create_inferior): Ditto.
3161 (debug_to_post_startup_inferior): Ditto.
3162 (debug_to_acknowledge_created_inferior): Ditto.
3163 (debug_to_clone_and_follow_inferior): Ditto.
3164 (debug_to_post_follow_inferior_by_clone): Ditto.
3165 (debug_to_insert_fork_catchpoint): Ditto.
3166 (debug_to_remove_fork_catchpoint): Ditto.
3167 (debug_to_insert_vfork_catchpoint): Ditto.
3168 (debug_to_remove_vfork_catchpoint): Ditto.
3169 (debug_to_has_forked): Ditto.
3170 (debug_to_has_vforked): Ditto.
3171 (debug_to_can_follow_vfork_prior_to_exec): Ditto.
3172 (debug_to_post_follow_vfork): Ditto.
3173 (debug_to_insert_exec_catchpoint): Ditto.
3174 (debug_to_remove_exec_catchpoint): Ditto.
3175 (debug_to_has_execd): Ditto.
3176 (debug_to_reported_exec_events_per_exec_call): Ditto.
3177 (debug_to_has_syscall_event): Ditto.
3178 (debug_to_has_exited): Ditto.
3179 (debug_to_mourn_inferior): Ditto.
3180 (debug_to_can_run): Ditto.
3181 (debug_to_notice_signals): Ditto.
3182 (debug_to_thread_alive): Ditto.
3183 (debug_to_stop): Ditto.
3184 (debug_to_enable_exception_callback): Ditto.
3185 (debug_to_get_current_exception_event): Ditto.
3186 (debug_to_pid_to_exec_file): Ditto.
3187 (debug_to_core_file_to_sym_file): Ditto.
3188 (default_clone_and_follow_inferior): New function prototype
3189 decl and function definition.
3190 (dummy_target): Add new target_ops vector fields and their
3191 initializations. More target_ops vector changes for HPUX new
3193 (de_fault): Add new HPUX specific target_ops operations to the
3195 (INHERIT): Add new HPUX specific target_ops operations.
3196 (debug_to_post_wait): New function.
3197 (debug_to_post_startup_inferior): Ditto.
3198 (debug_to_acknowledge_created_inferior): Ditto.
3199 (debug_to_clone_and_follow_inferior): Ditto.
3200 (debug_to_post_follow_inferior_by_clone): Ditto.
3201 (debug_to_create_catch_fork_hook): Ditto.
3202 (debug_to_create_catch_vfork_hook): Ditto.
3203 (debug_to_has_forked): Ditto.
3204 (debug_to_has_vforked): Ditto.
3205 (debug_to_post_follow_vfork): Ditto.
3206 (setup_target_debug): Initialize new target_ops vector fields.
3207 (nosupport_runtime): New function, used in cleanup_target
3208 (update_current_target): Add new new target_ops vector fields to
3209 the INHERIT macro definition.
3210 (generic_mourn_inferior): The call to breakpoint_init_inferior now
3212 (normal_pid_to_str): Add a \0 to the end of buf.
3213 (debug_to_has_syscall_event): New function.
3214 (debug_to_enable_exception_callback): New function.
3215 (debug_to_get_current_exception_event): New function.
3216 (setup_target_debug): Initialize the 3 new target_ops vector fields
3217 (struct signals): Fix message associated with SIGRETRACT.
3218 (return_one): New function, used by the de_fault macro
3219 (debug_to_post_attach): New function.
3220 (debug_to_wait): Add new cases TARGET_WAITKIND_FORKED,
3221 TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD.
3222 (debug_to_insert_fork_catchpoint): New function.
3223 (debug_to_remove_fork_catchpoint): Ditto.
3224 (debug_to_insert_vfork_catchpoint): Ditto.
3225 (debug_to_remove_vfork_catchpoint): Ditto.
3226 (debug_to_can_follow_vfork_prior_to_exec): Ditto.
3227 (debug_to_insert_exec_catchpoint): Ditto.
3228 (debug_to_remove_exec_catchpoint): Ditto.
3229 (debug_to_core_file_to_sym_file): Ditto.
3230 (setup_target_debug): Give new fields in current_target target_ops
3233 * target.h: Include symtab.h.
3234 (target_waitkind): New enumerated values
3235 TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_SYSCALL_RETURN,
3236 TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
3237 TARGET_WAITKIND_EXECD.
3238 (target_waitstatus): Add a syscall_id field to structure.
3239 (child_has_syscall_event): New decl.
3240 (child_thread_alive): New decl.
3241 (target_ops): Add 3 new fields: To_has_syscall_event,
3242 to_enable_exception_callback, to_get_current_exception_event
3243 (target_enable_exception_callback): New macro.
3244 (target_has_syscall_event): New macro.
3245 (target_get_current_exception_event): New macro.
3246 (TARGET_DISABLE_HW_WATCHPOINTS): New macro.
3247 (TARGET_ENABLE_HW_WATCHPOINTS): New macro.
3248 (PC_REQUIRES_RUN_BEFORE_USE): New macro.
3249 (target_tid_to_str): New macro.
3250 (target_waitstatus): Additional fields in struct to keep track
3251 of child pid and pathname to execd file.
3252 (target_ops): Add in the new target_ops function pointer fields.
3253 New macros to go along with new target_ops fields.
3254 In target_waitstatus.value, change name of child_pid field to
3256 (target_pid_or_tid_to_str): Define default macro.
3257 Add missing #endif after PC_REQUIRES_RUN_BEFORE_USE definition
3258 (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Define default macro.
3259 (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Define default
3261 There are new function decls for to_require_attach
3262 and to_require_detach. There are also new macros,
3263 target_require_attach and target_require_detach. There are
3264 also new function decls for find_default_require_detach
3265 and find_default_require_attach.
3266 (target_ops): New fields to_post_wait, to_post_startup_inferior
3267 to_acknowledge_created_inferior, to_clone_and_follow_inferior,
3268 to_post_follow_inferior_by_clone, to_create_catch_fork_hook,
3269 to_create_catch_vfork_hook, to_has_forked, to_has_vforked,
3270 to_post_follow_vfork, to_pid_to_exec_file.
3271 New function definitions child_pid_to_exec_file, child_post_wait,
3272 child_post_startup_inferior, child_acknowledge_created_inferior,
3273 child_clone_and_follow_inferior,
3274 child_post_follow_inferior_by_clone, child_create_catch_fork_hook,
3275 child_create_catch_vfork_hook, child_has_forked,
3276 child_has_vforked, child_acknowledge_created_inferior,
3277 child_post_follow_vfork.
3278 New macros target_post_startup_inferior,
3279 target_acknowledge_created_inferior,
3280 target_clone_and_follow_inferior,
3281 target_post_follow_inferior_by_clone,
3282 target_create_catch_fork_hook, target_create_catch_vfork_hook,
3283 target_pid_to_exec_file.
3284 (find_default_clone_and_follow_inferior): New function prototype.
3287 * txvu-tdep.c (txvu_print_register): Add embedded_offset param
3291 * v850ice.c (init_850ice_ops): Init new target vector fields.
3293 * valprint.c (print_binary_chars): Print out long long as
3295 (print_octal_chars): Print out long long as an octal number
3296 (print_decimal_chars): Print out long long as a decimal number
3297 (strcat_longest): Define it.
3298 * valprint.c: Hp merge, 4/15/98 snapshot
3299 Add parameter to val_print. This is used for
3300 evaluating C++ expressions.
3302 * value.h (VALUE_POINTED_TO_OFFSET): New macro.
3303 Add field pointed_to_offset to value structure.
3304 Add prototypes for new functions in valops.c.
3305 (write_register_pid): Change prototype to match
3307 (val_print function decl): Additional parameter.
3308 (VALUE_EMBEDDED_OFFSET): New macro.
3309 (find_rt_vbase_offset): New function decl -- for C++ support.
3313 * Makefile.in (READLINE_CFLAGS): Search $(READLINE_SRC)/.. rather
3314 than $(READLINE_SRC) so #include <readline/readline.h> will work.
3315 * top.c: #include <readline/history.h> instead of "history.h".
3316 * tracepoint.c: Likewise.
3317 * mac-xdep.c: Likewise.
3321 * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT): Define using
3322 TARGET_BYTE_ORDER and not target_byte_order.
3326 * config/i386/cygwin.mh (TERMCAP): define.
3329 * top.c: specify directory name for including readline.h
3331 * tracepoint.c: ditto.
3337 * value.c (value_virtual_fn_field): Handle the situation where
3338 vtbl is a pointer to a structure instead of a pointer to an array.
3340 Mon Dec 21 10:38:11 1998 Andrew Cagney <cagney@chook>
3342 * mips-tdep.c: (MIPS_DEFAULT_FPU_TYPE): Default to
3347 * blockframe.c (get_frame_saved_regs): If the saved_regs_addr ptr
3348 is null, ensure that saved registers are copied from the local
3349 variable that was used to obtain them.
3353 * mips-tdep.c (mips32_heuristic_proc_desc): Clear temp_saved_regs
3354 on restart. Fixes problem with backtracing through functions that
3355 use virtual frame pointers.
3357 Fri Dec 18 14:23:34 1998 Andrew Cagney <cagney@chook>
3359 * mips-tdep.c (mips_push_arguments): Don't left-shift small
3360 structs being passed in a register when an O64 target.
3362 * config/mips/tm-mips.h (enum mips_fpu_type, mips_fpu): Move to
3365 * mips-tdep.c (mips_fpu_string): Delete variable.
3366 (mips_fpu_type_auto): New variable.
3367 (mips_fpu_type): Rename mips_fpu.
3368 (_initialize_mips_tdep): Delete initialization of mips_fpu et.al.
3369 Rewrite ``set mipsfpu'' command set.
3370 (set_mipsfpu_command, show_mipsfpu_command,
3371 set_mipsfpu_single_command, set_mipsfpu_double_command,
3372 set_mipsfpu_none_command, set_mipsfpu_auto_command): New
3373 functions, handle commands.
3374 (mips_push_arguments, mips_push_dummy_frame, mips_pop_frame,
3375 mips_extract_return_value): Update.
3376 (start-sanitize-carp start-sanitize-vr4xxx);
3377 (_initialize_mips_tdep): Set mips_fpu_type according to current
3379 (_initialize_mips_tdep): Only define ``set processor'' command
3381 (end-sanitize-carp end-sanitize-vr4xxx)
3383 start-sanitize-carp start-sanitize-vr4xxx
3384 Fri Dec 18 12:56:56 1998 Andrew Cagney <cagney@chook>
3386 * gdbarch.h (gdbarch_init_ftype): Pass struct gdbarch_info
3388 (struct gdbarch_info): Add struct gdbarch_tdep_info *tdep_info.
3389 * gdbarch.c (gdbarch_update): Update.
3390 * mips-tdep.c: (mips_gdbarch_init): Update
3392 * gdbarch.c (gdbarch_update): Add more tracing.
3394 end-sanitize-carp end-sanitize-vr4xxx
3397 * configure.tgt (gdb_target): Identify mips64*vr4100*-*-elf* as
3399 * config/mips/vr4100.mt, config/mips/tm-vr4100.h: Replace
3400 vr4xxx.mt and tm-vr4xxx.h.
3401 start-sanitize-vr4xxx
3403 * configure.tgt (gdb_target): Identify mips64*vr4xxx*-*-elf* as
3405 * config/mips/vr4xxx.mt, config/mips/tm-vr4xxx.h: New files.
3406 Define GDB_MULTI_ARCH and MIPS_DEFAULT_FPU_TYPE.
3409 start-sanitize-carp start-sanitize-vr4xxx
3412 * mips-tdep.c (mips_gdbarch_init): New function. Initialize a MIPS
3413 architecture vector.
3414 (_initialize_mips_tdep): Register MIPS with GDBARCH.
3415 (struct gdbarch_tdep): Define.
3416 (MIPS_EABI, MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM): When
3417 multi-arch, get value from gdbarch->tdep.
3419 Thu Dec 17 02:01:58 1998 Andrew Cagney <cagney@chook>
3421 * gdbtypes.c (_initialize_gdbtypes): Register all builtin types
3422 with gdbarch so that they are updated whenever the architecture is
3425 Thu Dec 17 01:58:16 1998 Andrew Cagney <cagney@chook>
3427 * gdbarch.h (GDB_MULTI_ARCH): New macro, default to zero.
3428 (current_gdbarch): Current architecture pointer.
3429 * gdbarch.c (struct gdbarch): Define.
3431 * gdbarch.h (TARGET_ARCHITECTURE, TARGET_BYTE_ORDER,
3432 TARGET_LONG_BIT, TARGET_LONG_LONG_BIT, TARGET_PTR_BIT): When
3433 multi-arch force definition.
3434 * gdbarch.h, gdbarch.c (gdbarch_tdep, gdbarch_bfd_arch_info,
3435 gdbarch_byte_order, {set,}gdbarch_long_bit,
3436 {set,}gdbarch_long_long_bit, {set,}gdbarch_ptr_bit): Corresponding
3439 * gdbarch.h (struct gdbarch_list, struct gdbarch_info,
3440 gdbarch_init_ftype), gdbarch.c (register_gdbarch_init): Mechanism
3441 for registering an architecture with GDB.
3442 (gdbarch_list_lookup_by_info, gdbarch_alloc, gdbarch_update,
3443 verify_gdbarch): Support functions.
3445 * gdbarch.h (gdbarch_data_ftype), gdbarch.c
3446 (register_gdbarch_data, gdbarch_data): Mechanism for maintaining
3447 per-architecture pointers.
3448 (init_gdbarch_data): Support functions.
3450 * gdbarch.h (gdbarch_swap_ftype), gdbarch.c
3451 (register_gdbarch_swap): Ditto for swapped memory regions.
3452 (init_gdbarch_swap, swapout_gdbarch_swap, swapin_gdbarch_swap):
3455 * gdbarch.c (set_endian_big, set_endian_little, set_architecture,
3456 info_architecture, set_gdbarch_from_file): Hook in multi-arch
3457 code by calling gdbarch_update.
3458 (default_gdbarch): Default multi-arch vector. Use host's type
3461 end-sanitize-carp end-sanitize-vr4xxx
3462 Thu Dec 17 01:34:36 1998 Andrew Cagney <cagney@chook>
3464 * gdbtypes.c (build_gdbtypes): New function.
3465 (_initialize_gdbtypes): Call.
3467 Wed Dec 16 11:47:00 1998 Andrew Cagney <cagney@chook>
3469 * gdbarch.c (show_architecture): Use TARGET_ARCHITECTURE.
3470 * gdbarch.h, gdbarch.c: Fix typo's. Use struct's in preference to
3472 * gdbarch.h, gdbarch.c (gdbarch_debug): Add ``set archdebug'' to
3475 Tue Dec 15 23:46:40 1998 Andrew Cagney <cagney@chook>
3477 * config/mips/tm-*.h: (TARGET_BYTE_ORDER_DEFAULT,
3478 TARGET_BYTE_ORDER_SELECTABLE_P): Replace TARGET_BYTE_ORDER and
3479 TARGET_BYTE_ORDER_SELECTABLE.
3483 * remote-rdp.c (rdp_init): Don't discard first character on reset.
3484 (translate_open_mode): Define table.
3485 (exec_swi): Handle SWI_Clock. SWI_Open now handles stdin/stdout.
3486 SWI_Write returns number of bytes not written. SWI_Read does the
3487 same. SWI_Seek should return success/failure flag. Fix SWI_Flen.
3491 * config/i386/nbsd.mh, config/m68k/nbsd.mh, config/ns32k/nbsd.mh
3492 (XDEPFILES): Add ser-tcp.o.
3496 * monitor.c (monitor_expect, monitor_printf_noecho,
3497 monitor_printf): Always compile EXTRA_RDEBUG code.
3501 * ppcbug-rom.c (init_ppc_cmds): Cleanup formatting.
3505 * monitor.c (monitor_printable_string): New function to convert a
3506 string into a printable representation.
3507 (monitor_error): Call error after converting string into printable
3509 (monitor_printf{,_noecho}): If EXTRA_RDEBUG is defined, convert
3510 string into printable form before printing.
3511 (monitor_expect): Ditto.
3512 (monitor_read_memory{,_single}): Call monitor_error, not error.
3513 (monitor_read_memory): Return immediately if length is 0.
3515 * ppcbug-rom.c (init_ppc_cmds): Fill in dump_registers field,
3516 which is now required.
3520 * gdbarch.h, gdbarch.c: Consolidate the semi-dynamic target system
3521 dependant GDB parameters.
3522 (set_gdbarch_from_file): Combine set_architecture_from_file and
3523 set_byte_order_from_file.
3524 * top.c, defs.h, printcmd.c: Delete them from here.
3525 * Makefile.in: Add gdbarch.[ch].
3526 * exec.c (exec_file_command): Call set_gdbarch_from_file.
3530 * defs.h (TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN): Define.
3531 (TARGET_ARCHITECTURE, TARGET_ARCHITECTURE_AUTO): Define.
3532 (TARGET_BYTE_ORDER_AUTO): Define.
3533 (TARGET_BYTE_ORDER_SELECTABLE_P): Provide default. Replaces
3534 TARGET_BYTE_ORDER_SELECTABLE. Handle compat issues.
3535 (BITS_BIG_ENDIAN): Simplify.
3536 (TARGET_FLOAT_FORMAT): Ditto.
3537 (TARGET_DOUBLE_FORMAT):
3539 * remote-e7000.c, sh-tdep.c, printcmd.c, remote-sim.c,
3540 remote-rdi.c, sparc-tdep.c: Update.
3542 * config/powerpc/tm-ppcle-eabi.h, config/rs6000/tm-rs6000.h,
3543 config/powerpc/tm-ppc-eabi.h, config/mn10300/tm-mn10300.h:
3548 * frame.h (struct frame_info): Add CORE_ADDR *saved_regs and
3549 struct frame_extra_info *extra_info.
3550 (frame_obstack_alloc, frame_saved_regs_zalloc): Prototype.
3551 (SIZEOF_FRAME_SAVED_REGS): Provide default.
3552 (FRAME_INIT_SAVED_REGS): Provide default.
3553 (struct frame_saved_regs): Deprecate.
3554 (EXTRA_FRAME_INFO): Deprecate.
3556 * blockframe.c (frame_obstack_alloc, frame_saved_regs_zalloc): New
3558 (generic_get_saved_register): Use FRAME_INIT_SAVED_REGS and
3560 (frame_cache_obstack): Make static.
3561 (get_frame_saved_regs): Deprecate. Copy the saved regs into the
3564 * stack.c (frame_info): Rewrite using frame->saved_regs and
3565 FRAME_INIT_SAVED_REGS.
3566 * findvar.c (find_saved_register): Ditto.
3568 * config/mn10300/tm-mn10300.h (EXTRA_FRAME_INFO): Delete.
3569 (FRAME_FIND_SAVED_REGS): Replace with FRAME_INIT_SAVED_REGS. No-op.
3570 * mn10300-tdep.c: Update.
3571 (analyze_dummy_frame): New function.
3572 (struct frame_extra_info): Define.
3573 (mn10300_init_extra_frame_info): Update.
3575 * config/rs6000/tm-rs6000.h: (EXTRA_FRAME_INFO): Delete.
3576 (FRAME_FIND_SAVED_REGS): Replace with FRAME_INIT_SAVED_REGS.
3577 (FRAME_ARGS_ADDRESS): Replace with function.
3579 * rs6000-tdep.c (frame_get_saved_regs): Rename from
3580 frame_get_cache_fsr.
3581 (rs6000_init_extra_frame_info): New function.
3582 (rs6000_frame_init_saved_regs): Call frame_get_saved_regs.
3583 (FUNCTION_START_OFFSET): Delete references, was ZERO.
3584 (rs6000_frame_args_address): New function.
3585 (frame_initial_stack_address): Update
3587 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Remove saved_regs.
3588 (FRAME_INIT_SAVED_REGS): Rename FRAME_FIND_SAVED_REGS, update.
3589 * mips-tdep.c (mips_find_saved_regs, read_next_frame_reg,
3590 init_extra_frame_info, mips_pop_frame): Update.
3591 * config/alpha/tm-alpha.h (FRAME_INIT_SAVED_REGS,
3592 EXTRA_FRAME_INFO), alpha-tdep.c (alpha_find_saved_regs,
3593 alpha_pop_frame, init_extra_frame_info): Ditto.
3595 * i960-tdep.c, m88k-tdep.c, h8300-tdep.c: Update.
3596 * config/sparc/tm-sparc.h, config/a29k/tm-a29k.h: Define
3597 FRAME_INIT_SAVED_REGS as no-op.
3599 * z8k-tdep.c (z8k_init_frame_saved_regs): Rename
3600 get_frame_saved_regs.
3601 (examine_frame, z8k_skip_prologue): Update.
3602 * config/z8k/tm-z8k.h (FRAME_INIT_SAVED_REGS): Define.
3607 * i386-stub.c (handle_exception): Add support for 'P' command.
3608 (NUMREGS): New macro.
3613 * txvu-tdep.c (set_vxtu_prompt): Rename set_prompt.
3615 * configure.in (with-sim-gpu2): Do not emit a -L argument without
3616 an associated pathname. Link in the math library after the gpu2
3622 * i386b-nat.c: Include "expression.h".
3624 * symtab.h: Don't include "gnu-regex.h".
3626 * solib.c (solib_add_common_symbols): Cast parameters passed to
3627 make_cleanup to use the new make_cleanup_func typedef.
3629 * inftarg.c: Include "wait.h" after, rather than before, <wait.h>.
3630 "wait.h" was defining all WIF* macro's instead of filling in those
3631 that <wait.h> missed.
3633 Fri Dec 11 09:52:04 1998 Andrew Cagney <cagney@chook>
3635 * mipsm3-nat.c, hppah-nat.c, infptrace.c, i386gnu-nat.c,
3636 hppab-nat.c, core-aout.c, arm-xdep.c, alpha-nat.c, altos-xdep.c,
3637 pyr-xdep.c, remote-st.c, remote-os9k.c, tahoe-tdep.c, pyr-tdep.c,
3638 vax-tdep.c: Replace reg_name with REGISTER_NAME.
3646 changes originally made by HP; HP did not create ChangeLog
3649 * annotate.c (annotate_catchpoint): New function.
3651 * annotate.h (annotate_catchpoint): declare it; add new includes
3652 (symtab.h and gdbtypes.h).
3654 * buildsym.h: add external var processing_hp_compilation.
3657 (SOLIB_REMOVE_INFERIOR_HOOK): new macro. defined to 0.
3658 functionality not implemented for coff.
3659 (SOLIB_CREATE_CATCH_LOAD_HOOK): New macro; generate error msg for coff.
3660 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): ditto.
3661 (SOLIB_HAVE_LOAD_EVENT): ditto.
3662 (SOLIB_LOADED_LIBRARY_PATHNAME): ditto.
3663 (SOLIB_HAVE_UNLOAD_EVENT): ditto.
3664 (SOLIB_UNLOADED_LIBRARY_PATHNAME): ditto.
3665 (SOLIB_IN_DYNAMIC_LINKER): ditto.
3666 (SOLIB_RESTART): ditto.
3668 * complaints.h: add ifdef...endif pair at beginning and end of file.
3670 * dstread.c (dst_symfile_read): the parameter to fileno
3671 must be of type FILE *. So cast abfd->iostream in the
3672 call to fileno must be cast as a FILE *, not a GDB_FILE *.
3673 This will work because abfd->iostream is declared and
3674 given a value in bdf and bfd will continue to use FILE
3675 rather than GDB_FILE.
3677 * dwarf2read.c (dwarf_bool_name): change parameter from bool
3680 * expression.h: include symtab.h
3682 * frame.h (print_only_stack_frame, show_stack_frame,
3683 show_frame_info): add prototypes.
3685 * gdbcmd.h (togglelist, stoplist): declare.
3687 * gdbcore.h (read_memory_string): declare it.
3688 (exec_file_attach): add prototype.
3690 * inflow.c (terminal_is_ours): make non static.
3692 * minsyms.c: minor spacing change.
3694 * parser-defs.h (parse_nested_classes_for_hpacc): add prototype.
3695 (find_template_name_end): add prototype.
3697 * scm-lang.c (scm_unpack): cast svalue to (int).
3699 * top.h: declare it.
3701 * valprint.h (print_binary_chars): new prototype definition.
3702 (print_octal_chars): new prototype definition.
3703 (print_decimal_chars): new prototype definition.
3705 Thu Dec 10 07:14:56 1998 Andrew Cagney <cagney@chook>
3707 * config/arm/tm-arm.h, arm-tdep.c: Replace REGISTER_NAMES with
3709 * mn10300-tdep.c, config/mn10300/tm-mn10300.h: Ditto.
3710 * sh-tdep.c, config/sh/tm-sh.h: Ditto.
3712 * defs.h (REGISTER_NAME): Provide default for old targets.
3713 * defs.h, infcmd.c: Rename reg_names to gdb_register_names.
3715 * tracepoint.c, target.c, parse.c, infcmd.c, remote-udi.c,
3716 expprint.c, infcmd.c, printcmd.c, eval.c, stack.c, findvar.c,
3717 remote-udi.c, config/alpha/tm-alpha.h, remote-sim.c, d30v-tdep.c,
3718 config/mips/tm-mips.h, hppa-tdep.c: Use REGISTER_NAME.
3720 * config/mips/tm-txvu.h, txvu-tdep.c: Ditto.
3725 * config/i960/mon960.mt (SIM_OBJS, SIM): Define.
3729 * NEWS: Add mentions of newly-added configurations.
3733 * config/xm-aix4.h (SIGWINCH_HANDLER): Function `aix_resize_window'
3734 must accept a signal number as parameter.
3735 * config/rs6000/xm-rs6000.h (SIGWINCH_HANDLER): Ditto.
3736 * utils.c (initialize_utils): Give a parameter to `SIGWINCH_HANDLER'.
3738 * inferior.h (register_valid): Variable's type is `SIGNED char', not
3740 * findvar.c (register_valid): Ditto.
3742 * defs.h (make_cleanup_func): Protect parameter list by `PARAMS'.
3743 * gdbthread.h (unbind_target_thread_vector): Likewise.
3747 Merged in m68k-linux patch from Andreas Schwab
3751 * Makefile.in, configure.host, configure.tgt: Add support for
3753 * config/m68k/linux.mh: New file.
3754 * config/m68k/linux.mt: New file.
3755 * config/m68k/nm-linux.h: New file.
3756 * config/m68k/tm-linux.h: New file.
3757 * config/m68k/xm-linux.h: New file.
3758 * gdb/m68klinux-nat.c: New file.
3759 * gdbserver/low-linux.c: Add support for m68k-linux.
3760 * gdb/config/m68k/tm-m68k.h (NUM_FREGS): New macro.
3764 * config/i386/xm-cygwin.h: Remove REQUEST_QUIT definition.
3765 * config/powerpc/xm-cygwin.h: Ditto.
3769 * rs6000-tdep.c (pop_frame): Correctly find the registers saved in
3770 the stack frame. Their offset from the previous stack frame is in
3771 fdata.gpr_offset and fdata.fpr_offset, not fdata.offset.
3772 (gdb.base/return.exp)
3773 * config/rs6000/tm-rs6000.h: Doc fixes.
3777 * monitor.c (monitor_read_memory): Zero out pattern buffers
3778 before calling re_search.
3779 (parse_register_dump): Ditto.
3783 FR30 updates - still very preliminary.
3786 * config/fr30/tm-fr30.h
3790 * ax-gdb.c: Include target.h.
3794 * ax-gdb.c (_initialize_ax_gdb), i960-tdep.c (pop_frame),
3795 monitor.c (flush_monitor_dcache, longlongendswap), remote-array.c
3796 (hexword2ascii), w89k-rom.c (init_w89k_cmds), z8k-tdep.c
3797 (init_frame_pc, extract_return_value): Make return type void.
3798 * monitor.c (monitor_write_even_block): Make return type explicit.
3799 (monotor_read_memory_block): Delete function.
3800 * monitor.h: Update.
3801 * remote.c (remote_get_threadlist, remote_update_threads),
3802 remote-array.c (array_get_packet), remote-rdi.c (Fail): Always
3804 * m32r-tdep.c (m32r_fix_call_dummy): From Michael Snyder, void
3806 * jv-valprint.c (java_val_print): From Stu Grossman. Return 0 by
3811 * tracepoint.c: Move default definition of
3812 TARGET_VIRTUAL_FRAME_POINTER from here to target.h.
3813 * target.h: Add default definition of TARGET_VIRTUAL_FRAME_POINTER.
3814 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address):
3815 use TARGET_VIRTUAL_FRAME_POINTER to determine frame pointer.
3816 (gen_trace_for_expr): new argument, address of tracepoint,
3817 gets passed to new_agent_expr and added to struct agent_expr.
3818 (is_nontrivial_conversion): call to new_agent_expr now requires
3819 a dummy argument. (agent_command): use get_current_frame() to
3820 get current PC scope; pass it to gen_trace_for_expr.
3821 * ax-general.c (new_agent_expr): new argument, address of
3822 tracepoint; store it in new field of struct agent_expr.
3823 * ax.h (struct agent_expr): add new field for tracepoint address.
3824 * ax-gdb.h: change prototypes to match above changes.
3826 * m32r-tdep.c (decode_prologue): If no branch or push fp is found,
3827 but there's a stack adjust, then use that as the end of prologue.
3828 (m32r_skip_prologue): don't skip past the first line if there is
3829 line info. (m32r_virtual_frame_pointer): new function.
3830 (m32r_fix_call_dummy): no return value needed.
3834 * ocd.c (remote_timeout), (BDM_BREAKPOINT), monitor.c (readchar),
3835 remote.c: Cleanup closing of open comments.
3839 * config/fr30/tm-fr30.h (INNER_THAN): Add parameters.
3841 Mon Nov 30 11:18:48 1998 Andrew Cagney <cagney@chook>
3843 * frame.h (FRAME_CHAIN_VALID): Default to
3844 default_frame_chain_valid.
3845 * blockframe.c (default_frame_chain_valid): New function.
3847 * frame.h (FRAME_CHAIN_VALID_ALTERNATIVE): Delete references
3848 * blockframe.c (alternate_frame_chain_valid): New function.
3849 * config/mips/tm-mipsv4.h, config/m88k/tm-delta88v4.h,
3850 config/m68k/tm-monitor.h, config/m68k/tm-m68kv4.h,
3851 config/i386/tm-i386v4.h, config/i386/tm-i386nw.h,
3852 config/h8300/tm-h8300.h: Update.
3854 * blockframe.c (nonnull_frame_chain_valid): New function.
3855 * config/m68k/tm-os68k.h, config/m68k/tm-vx68.h,
3856 config/m68k/tm-apollo68b.h, config/i960/tm-vx960.h,
3857 config/arc/tm-arc.h: Update FRAME_CHAIN_VALID.
3859 * hppa-tdep.c (frame_chain_valid, hppa_frame_chain_valid),
3860 remote-vx29k.c (get_fp_contents, vx29k_frame_chain_valid),
3861 arm-tdep.c (frame_chain_valid, arm_frame_chain_valid): Rename
3862 functions so that they are name space clean.
3863 * config/pa/tm-hppa.h, config/a29k/tm-vx29k.h,
3864 config/arm/tm-arm.h: Update FRAME_CHAIN_VALID.
3866 * gould-tdep.c (gould_frame_chain_valid), d30v-tdep.c
3867 (d30v_frame_chain_valid), d10v-tdep.c (d10v_frame_chain_valid):
3869 * config/gould/tm-np1.h, config/gould/tm-pn.h,
3870 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Update
3875 * z8k-tdep.c (z8k_addr_bits_remove), w65-tdep.c
3876 (w65_addr_bits_remove), h8500-tdep.c (h8500_addr_bits_remove),
3877 m88k-tdep.c (m88k_addr_bits_remove): Function to clean up an
3879 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/m88k/tm-m88k.h,
3880 config/h8500/tm-h8500.h: Define ADDR_BITS_REMOVE to call targets
3881 corresponding function.
3882 * z8k-tdep.c (saved_pc_after_call): Update.
3886 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
3887 config/v850/tm-v850.h, config/tahoe/tm-tahoe.h,
3888 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
3889 config/rs6000/tm-rs6000.h, config/pyr/tm-pyr.h,
3890 config/pa/tm-hppa.h, config/ns32k/tm-umax.h,
3891 config/ns32k/tm-merlin.h, config/none/tm-none.h,
3892 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3893 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
3894 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
3895 config/i960/tm-i960.h, config/i386/tm-i386.h,
3896 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
3897 config/gould/tm-pn.h, config/gould/tm-np1.h, config/arm/tm-arm.h,
3898 config/convex/tm-convex.h, config/d10v/tm-d10v.h,
3899 config/alpha/tm-alpha.h, config/a29k/tm-a29k.h: Add parameters to
3902 * valops.c (push_word, value_push, call_function_by_hand),
3903 breakpoint.c (bpstat_stop_status), blockframe.c
3904 (generic_push_dummy_frame, generic_frame_chain_valid), inferior.h
3905 (PC_IN_CALL_DUMMY), infrun.c (wait_for_inferior): Update use of
3908 Fri Nov 27 11:00:25 1998 Andrew Cagney <cagney@chook>
3910 * target.h (one_stepped): Move global from here.
3911 * infrun.c (singlestep_breakpoints_inserted_p): To here. Rename.
3913 (wait_for_inferior): Update.
3914 (resume): Update. Set variable after call to SOFTWARE_SINGLE_STEP.
3916 * target.h (NO_SINGLE_STEP): Replace with SOFTWARE_SINGLE_STEP_P
3917 and SOFTWARE_SINGLE_STEP.
3918 * config/sparc/tm-sparc.h, config/rs6000/tm-rs6000.h,
3919 config/arc/tm-arc.h: Update.
3920 * rs6000-tdep.c (rs6000_software_single_step), sparc-tdep.c
3921 (sparc_software_single_step), arc-tdep.c (arc_single_step): New
3922 functions. Replace function single_step.
3924 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P): Define.
3925 * infrun.c (proceed): Cleanup.
3927 * config/mips/tm-txvu.h (STEP_SKIPS_DELAY), txvu-tdep.c
3928 (txvu_step_skips_delay): Change macro to function.
3933 * config/alpha/tm-alpha.h (ABOUT_TO_RETURN): Replace macro.
3934 * alpha-tdep.c (alpha_about_to_return): With new function.
3935 (heuristic_proc_start): Update.
3936 * config/mips/tm-mips.h (ABOUT_TO_RETURN), mips-tdep.c
3937 (heuristic_proc_start, mips_about_to_return): Ditto.
3938 * config/ns32k/tm-merlin.h (ABOUT_TO_RETURN),
3939 config/ns32k/tm-umax.h (ABOUT_TO_RETURN), ns32k-tdep.c
3940 (ns32k_about_to_return, ns32k_get_enter_addr): Ditto.
3942 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
3943 config/tahoe/tm-tahoe.h, config/sparc/tm-sparc.h,
3944 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pyr/tm-pyr.h,
3945 config/pa/tm-hppa.h, config/m88k/tm-m88k.h, config/m68k/tm-m68k.h,
3946 config/i960/tm-i960.h, config/i386/tm-i386.h,
3947 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
3948 config/gould/tm-pn.h, config/gould/tm-np1.h,
3949 config/convex/tm-convex.h, config/arm/tm-arm.h,
3950 config/arc/tm-arc.h, config/a29k/tm-a29k.h: Delete macro
3952 * config/w65/tm-w65.h (RTL, RTS): Delete macros.
3953 * h8500-tdep.c (about_to_return): Delete function.
3957 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
3958 and little_breakpoint to char[] from char*.
3959 * remote-array.c (array_insert_breakpoint): Change bp_addr to
3964 * vx-share/xdr_ld.c (xdr_ldtabl): Cast second arg to char**
3967 * configure.tgt (v850): Only build v850ice when cygwin and gui.
3968 * configure.in: Add parameter to --enable-build-warnings.
3969 * configure: Re-build.
3971 * c-exp.y (parse_number): Rewrite shift to pacify GCC.
3973 * config/i960/tm-i960.h (BREAKPOINT): Delete definition - simply
3976 * monitor.c (compile_pattern): Make val const char*.
3977 (monitor_wait_cleanup): Make old_timeout void*, pointing at
3979 (monitor_wait): Update.
3981 * remote-udi.c, remote-sim.c, remote-e7000.c, hppa-tdep.c,
3982 remote-mips.c, sparcl-tdep.c, xcoffread.c: Cast parameters passed
3983 to make_cleanup to use the new make_cleanup_func typedef.
3985 * alpha-tdep.c (MASK): Use LONGEST to avoid arithmetic overflow.
3987 * config/a29k/tm-a29k.h (TRANSPARENT): Rename macro to
3988 TRANSPARENT_FRAME. Avoid name-space clash.
3989 * a29k-tdep.c (init_frame_info): Update.
3993 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
3994 and little_breakpoint to char[] from char*.
3995 * mem-break.c (memory_insert_breakpoint,
3996 memory_remove_breakpoint): Pass address of bplen.
3997 * remote-array.c (array_insert_breakpoint): Change bp_addr to
4000 start-sanitize-vr4xxx
4003 * configure.tgt: Handle mips64*vr4xxx.
4008 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER):
4010 * mn10300-tdep.c (mn10300_virtual_frame_pointer): new function.
4011 * tracepoint.c (encode_actions): Use the new target macro to
4012 determine the virtual frame pointer, for collecting locals/args.
4013 (add_local_symbols, collect_symbol): add a register/offset pair of
4014 arguments so that the virtual frame pointer can be passed in.
4018 * procfs.c (procfs_wait): handle syscall events first.
4020 * procfs.c (GDB_GREGSET_TYPE, GDB_FPREGSET_TYPE): new macros.
4021 * config/sparc/xm-sun4sol2.h: use them.
4022 * core-sol2.c: don't #undef gregset_t and fpregset_t.
4023 * sol-thread.c: ditto.
4024 * sparc-tdep.c: ditto.
4026 Tue Nov 24 14:13:10 1998 Andrew Cagney <cagney@chook>
4028 * breakpoint.c (memory_breakpoint_size): Delete global.
4029 (read_memory_nobpt): Determine real breakpoint address and size
4030 using BREAKPOINT_FROM_PC.
4032 * defs.h (breakpoint_from_pc_fn): BREAKPOINT_FROM_PC function
4034 * target.h, mem-break.c (memory_breakpoint_from_pc):
4035 Rewrite. Always define. Return NULL when memory breakpoints are
4037 (memory_insert_breakpoint, memory_remove_breakpoint): Call
4039 * target.h (BREAKPOINT_FROM_PC): Provide default.
4040 * gdbint.texinfo (BREAKPOINT_FROM_PC): Document.
4042 * config/rs6000/tm-rs6000.h (BREAKPOINT): Delete macro.
4043 (BREAKPOINT_FROM_PC): Define.
4044 ({BIG,LITTLE}_BREAKPOINT): Move macros from here.
4045 * rs6000-tdep.c: To here.
4046 (rs6000_breakpoint_from_pc): New function.
4048 * config/mn10300/tm-mn10300.h (BREAKPOINT): Delete macro.
4049 (BREAKPOINT_FROM_PC): Define, call.
4050 * mn10300-tdep.c (mn10300_breakpoint_from_pc): New function.
4052 * config/mips/tm-mips.h ({BIG,LITTLE}_BREAKPOINT,
4053 IDT_{BIG,LITTLE}_BREAKPOINT, PMON_{BIG,LITTLE}_BREAKPOINT,
4054 MIPS16_{BIG,LITTLE}_BREAKPOINT): Move macros from here.
4055 * mips-tdep.c: To here.
4057 * txvu-tdep.c (core_break_insn): Delete variable.
4058 (txvu_insert_breakpoint): Update, use BREAKPOINT_FROM_PC.
4061 * config/arm/tm-arm.h ({BIG,LITTLE}_BREAKPOINT): Delete macros.
4062 ({ARM,THUMB}_{BE,LE}_BREAKPOINT): Move macros from here.
4063 * arm-tdep.c: To here.
4065 * remote-array.c (memory_breakpoint_size): Delete variable.
4066 (array_insert_breakpoint): Obtain breakpoint size using
4068 * remote-st.c (memory_breakpoint_size, st2000_insert_breakpoint):
4070 * remote-os9k.c (memory_breakpoint_size,
4071 rombug_insert_breakpoint): Ditto.
4072 * remote-e7000.c (memory_breakpoint_size): Ditto.
4076 * symfile.c (deduce_language_from_filename): rewrite so as to
4077 work from a table of filename extensions, modifiable by the user.
4078 (filename_language_table): new data structure.
4079 (set_ext_lang_command): new function for new command, "set
4080 extension-language". (info_extension_language_command): new
4081 function for new command "info extension-languages".
4082 (add_filename_language, init_filename_language_table): new
4083 support functions for the above.
4084 * language.c (language_enum): new function. Support for above.
4088 * config/sh/tm-sh.h, config/mn10200/tm-mn10200.h,
4089 config/m32r/tm-m32r.h, config/arm/tm-arm.h, config/i960/tm-i960.h,
4090 config/gould/tm-np1.h, config/d10v/tm-d10v.h,
4091 config/v850/tm-v850.h, config/pa/tm-hppa.h, config/a29k/tm-a29k.h,
4092 config/mn10300/tm-mn10300.h, config/mips/tm-mips.h
4093 (USE_STRUCT_CONVENTION): Cleanup, define macro as function.
4095 * sh-tdep.c (sh_use_struct_convention), mn10200-tdep.c
4096 (mn10200_use_struct_convention), i960-tdep.c
4097 (i960_use_struct_convention), gould-tdep.c
4098 (gould_use_struct_convention), d10v-tdep.c
4099 (d10v_use_struct_convention), v850-tdep.c
4100 (v850_use_struct_convention), hppa-tdep.c
4101 (hpha_use_struct_convention), m32r-tdep.c
4102 (m32r_use_struct_convention), arm-tdep.c
4103 (arm_use_struct_convention), mn10300-tdep.c
4104 (mn10300_use_struct_convention), a29k-tdep.c
4105 (a29k_use_struct_convention), mips-tdep.c
4106 (mips_use_struct_convention): New functions
4108 * value.h, values.c (generic_use_struct_convention): New function,
4110 * values.c (USE_STRUCT_CONVENTION): Macro defaults to function
4111 generic_use_struct_convention.
4115 * breakpoint.c (bpstat_stop_status): Do not increment hit_count
4116 of breakpoint if condition is not true.
4118 * coffread.c (coff_symtab_read): Discard C_LABEL's that are not
4119 function entry points, to avoid getting them in the stack dump
4120 instead of the actual function.
4122 * config/m68k/delta68.mh (NAT_FILE): Undo 1998-08-18 change;
4123 without NAT_FILE definition, configure will assume that GDB cannot
4125 * config/m68k/nm-delta68.h (KERNEL_U_SIZE): New macro.
4126 * delta68-nat.c (kernel_u_size): New function.
4130 * buildsym.c (end_symtab): Cleanup PROCESS_LINENUMBER_HOOK.
4134 * rdi-share/host.h: if compiling under Cygwin, make sure new
4135 preprocessor define is defined. Define it if not.
4136 * rdi-share/hostchan.h: ditto
4137 * rdi-share/aclocal.m4: regenerate
4138 * rdi-share/configure: regenerate
4142 * configure.in: switch back to checking __CYGWIN32__
4143 * configure: regenerate
4147 * exec.c (exec_file_command): Cleanup. Replace #if
4148 NEED_TEXT_START_END with if().
4149 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Redefine to be 1.
4150 * config/convex/tm-convex.h (NEED_TEXT_START_END): Ditto.
4151 * config/gould/tm-np1.h (NEED_TEXT_START_END): Ditto.
4152 * config/a29k/tm-a29k.h (NEED_TEXT_START_END): Ditto.
4156 * main.c: Wait until more time has passed before calling
4157 new cygwin_ funcs, revert back to the cygwin32_ ones for now.
4158 * win32-nat.c: Ditto.
4162 * 29k-share/udi/udip2soc.c (UDIConnect): Replace sys_errlist with
4167 * defs.h: if compiling under Cygwin, define __CYGWIN__ if
4168 __CYGWIN32__ is defined and __CYGWIN__ isn't for backwards
4173 Changes to account for name change from cygwin32 to cygwin and
4174 clean up Win32-related ifdefs.
4176 * configure.tgt: check for cygwin* instead of cygwin32.
4177 New cygwin gdb_target variable loses the "32".
4178 * configure.host: check for cygwin* instead of cygwin32.
4179 New cygwin gdb_host variable loses the "32".
4180 * configure.in: test __CYGWIN__ instead of __CYGWIN32__,
4181 rename gdb_cv_os_cygwin32 variable to drop the "32". Call
4182 AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
4184 * configure: regenerate.
4186 * main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h where
4187 cygwin path conv protos live, instead of adding a proto here for
4189 * {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
4190 instead of __CYGWIN32__.
4191 * source.c: thoughout, check _WIN32 instead of WIN32.
4193 * config/i386/cygwin32.mh: delete.
4194 * config/i386/cygwin.mh: new file, was cygwin32.mh.
4195 * config/i386/cygwin32.mt: delete.
4196 * config/i386/cygwin.mt: new file, was cygwin32.mt.
4197 * config/i386/tm-cygwin32.h: delete.
4198 * config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
4199 * config/i386/xm-cygwin32.h: delete.
4200 * config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
4201 * config/i386/xm-windows.h: #include xm-cygwin.h now.
4202 * config/powerpc/cygwin32.mh: delete.
4203 * config/powerpc/cygwin.mh: new file, was cygwin32.mh.
4204 * config/powerpc/cygwin32.mt: delete.
4205 * config/powerpc/cygwin.mt: new file, was cygwin32.mt.
4206 * config/powerpc/tm-cygwin32.h: delete.
4207 * config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
4208 * config/powerpc/xm-cygwin32.h: delete.
4209 * config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.
4211 * rdi-share/aclocal.m4: regenerate with aclocal.
4212 * rdi-share/configure: regenerate with autoconf.
4213 * rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c, serpardr.c,
4214 unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
4218 * remote.c (remote_get_threadinfo): Support for remote
4219 multithread debugging.
4220 (remote_get_threadlist): get a partial list of threads
4221 (remote_threadlist_iterator): Step through all the threads
4222 (init_remote_threadtests): Optional builtin unit test commands.
4224 * thread.c (bind_target_thread_vector): Implementa a more dynamic
4225 way of accessing target specific thread info functions than
4227 (target_thread_info): Function to get extended thread information.
4229 * gdbthread.h: Export internal data structures corresponding to
4230 external detailed thread info response. This is more like a 'ps'
4231 command than what might be expected of host based threads. This
4232 is for embedded systems.
4236 * procfs.c (proc_set_exec_trap): don't set PR_ASYNC or PR_FORK
4237 in the child process for UnixWare (causes processes forked by
4238 the debuggee to hang).
4242 * config/fr30/fr30.mt: New file.
4243 * config/fr30/tm-fr30.h: New file.
4247 * remote-vx.c (net_read_registers, net_write_registers,
4248 vx_xver_memory, vx_resume, vx_attach, vx_detach, vx_kill):
4249 Change errno to errno_num.
4250 * vx-share/xdr_ptrace.c (xdr_ptrace_return): Likewise.
4251 * vx-share/xdr_ptrace.h (struct ptrace_return): Likewise.
4255 * top.c (gdb_readline): Allow CRLF line termination on systems
4256 which define CRLF_SOURCE_FILES.
4257 * win32-nat.c: 1) Add thread support, 2) fix ability to attach to
4258 a running process, and 3) implement limited support for cygwin
4260 (thread_rec): New function.
4261 (child_add_thread): Ditto.
4262 (child_init_thread_list): Ditto.
4263 (child_delete_thread): Ditto.
4264 (do_child_fetch_inferior_registers): Ditto.
4265 (do_child_store_inferior_registers): Ditto.
4266 (handle_output_debug_string): Ditto.
4267 (child_fetch_inferior_registers): Use do_* function to perform
4269 (child_store_inferior_registers): Ditto.
4270 (child_continue): Ditto.
4271 (child_thread_alive): Ditto.
4272 (cygwin_pid_to_str): Ditto.
4273 (handle_load_dll): Reorganize, add first attempt at reading
4274 dll names from attached processes. Change info messages to provide
4275 more information when dll is already loaded.
4276 (handle_exception): Changes mandated by new thread-aware structures.
4277 (child_wait): Track thread creation/destruction. Handle cygwin
4279 (child_create_inferior): Ditto.
4280 (child_resume): Ditto.
4281 (child_kill_inferior): Ditto. Close child process handle to avoid a
4283 (child_ops): Fill out child_ops fields that deal with threads.
4284 * config/i386/tm-cygwin32.h: Declare function and macro needed
4285 for converting a cygwin "pid" to a string.
4286 * config/i386/xm-cygwin32.h: define HAVE_SIGSETMASK as 0 since
4287 sigsetmask is not defined in cygwin.
4291 * win32-nat.c: Remove obsolete PPC conditionals.
4295 * configure.tgt: Add fr30-*-elf*.
4299 * c-exp.y (parse_number): Check TARGET_LONG_LONG_BIT when setting
4300 high_bit to avoid undefined negative shift.
4304 * configure.in: Check cygwin* instead of cygwin32*.
4305 * configure: regenerate
4309 [Support for trace debugging: registers that were not collected.]
4310 * remote.c (remote_fetch_registers): accept 'xxxx' in the register
4311 packet, with the meaning "register value is not available".
4312 Set register_valid to -1, which will connote "no value available".
4313 * findvar.c (read_relative_register_raw_bytes): return failure if
4314 register_valid == -1. (value_of_register): return failure if
4315 register_valid == -1. (read_var_value): return error if
4316 value_of_register fails for a register variable.
4317 (value_from_register): return failure if register_valid == -1.
4318 * eval.c (evaluate_subexp_standard): return error if
4319 value_of_register fails for a register used in an expression.
4320 * infcmd.c (do_registers_info): display "value not available"
4321 for registers for which register_valid == -1.
4323 * tracepoint.c (set_raw_tracepoint): just save the filename as is
4324 from the symbol table, rather than trying to prepend the dir name.
4325 Also save the bfd section. (tracepoints_info): use the section
4326 when looking up the function name.
4327 * tracepoint.h: add section field to tracepoint struct.
4332 * configure.in: Accept both -skyb- and -sky- for
4333 --with-sim-funit/gpu2 options.
4334 * configure: Rebuilt.
4339 * sparcl-tdep.c (send_resp, sparclite_serial_start,
4340 sparclite_serial_write): Use remote_timeout instead of hardcoded
4342 (download): Fix adjustment of a.out load addresses.
4346 * configure.in (--enable-build-warnings): Finish rename from
4348 (enable-build-warnings): Add -Wpointer-arth, allow =* for
4349 sim/common compatibility.
4350 * configure: Re-generate.
4354 * 29k-share/udi/udip2soc.c: Replace sys_errlist with strerror().
4358 * config/rs6000/aix4.mh (NATDEPFILES): Move xcoffread.o from here.
4359 * config/rs6000/aix4.mt (TDEPFILES): To here.
4363 * rdi-share/unixcomm.c: Provide definitions of SERPORT and PARPORT
4368 * configure.in (AM_EXEEXT): Use AC_EXEEXT instead.
4369 * configure: Regenerated.
4373 * core-sol2.c: #include <sys/types.h>, for sol2.7 weirdness.
4377 * m32r-tdep.c (decode_prologue): Return failure if we reach
4378 the end of the function without finding the end of the prologue.
4382 * command.c copying.c copying.awk core-aout.c core-regset.c
4383 corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c
4384 infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c
4385 symmisc.c valarith.c: Add prototypes.
4387 * defs.h: Add prototype for utils.c::do_run_cleanups.
4389 * gdbtypes.c: Add prototypes.
4390 (make_pointer_type): Add braces to remove nested if-else ambiguity.
4391 (make_reference_type): Ditto.
4393 * printcmd.c (printf_command): Initialize 'f' and 'string' at
4394 function startup to suppress possibly-used-before-initialized warning.
4396 * remote-utils.c: Add prototypes.
4397 (sr_pollchar): Add braces to remove nested if-else ambiguity.
4399 * ser-tcp.c: Add prototypes.
4400 (wait_for): Add braces to remove nested if-else ambiguity.
4401 (tcp_readchar): Ditto.
4403 * ser-unix.c: Add prototypes.
4404 (get_tty_state): Don't define errno here.
4405 (hardwire_readchar): Only define 't' if we are compiling in a Cygwin
4408 * symtab.c: Add prototypes.
4409 (find_methods): Add braces to remove nested if-else ambiguity.
4410 (search_symbols): Set 'i' to an initial value to suppress a
4411 possibly-used-before-initialized warning.
4413 * valops.c: Add prototypes.
4414 (value_cast): Set 'eltype2' to an initial value to suppress a
4415 possibly-used-before-initialized warning.
4416 (value_of_variable): Add braces to remove nested if-else ambiguity.
4417 (value_of_this): Ditto.
4419 * valprint.c: Add prototypes.
4420 (print_floating): Add braces to remove nested if-else ambiguity.
4424 * tm-sp64.h (SETUP_ARBITRARY_FRAME, FRAME_SPECIFICATION_DYADIC):
4425 Remove, nevermore used.
4429 * command.c: Include "wait.h" after, rather than before, <wait.h>.
4430 "wait.h" was defining all WIF* macro's instead of filling in those
4431 that <wait.h> missed.
4435 * defs.h: Move _initialize_printcmd, _initialize_stack,
4436 _initialize_blockframe out of here and in to their respective .c
4438 * blockframe.c: Move _initialize_blockframe prototype to here.
4439 * printcmd.c: Move _initialize_printcmd prototype to here.
4440 * stack.c: Move _initialize_stack prototype to here.
4442 * source.c, symtab.h: Move _initialize_source prototype to the .c
4444 * values.c, value.h: Move _initialize_values prototype to the .c file.
4445 * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c
4447 * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype
4450 * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c:
4451 Standardize comments for the prototype section of these files.
4453 * configure.in: Look in libc for wctype before looking for it in libc.
4457 * sol-thread.c (ps_pstop, etc): simple test for proc_service.h
4458 version didn't work for sol2.6; pushed it to autoconf.
4459 * configure.in (gdb_cv_proc_service_is_old): new test.
4460 * acconfig.h (PROC_SERVICE_IS_OLD): new define.
4461 * configure, config.in: regenerate.
4465 * blockframe.c (find_pc_sect_partial_function): Add braces to avoid
4466 possible nested-if confusion.
4467 * breakpoint.c (breakpoint_here_p): Ditto.
4468 (breakpoint_inserted_here_p): Ditto.
4469 (breakpoint_thread_match): Ditto.
4471 * gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined.
4472 * gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability
4475 * symtab.h: Add prototype for _initialize_source.
4476 * value.h: Add prototype for _initialize_value.
4478 * defs.h: Include sys/types.h or stddef.h to get size_t.
4479 (make_cleanup): Add make_cleanup_func typedef and switch to using
4480 a prototype for this function.
4481 (mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't
4484 * ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c
4485 dwarf2read.c dwarfread.c elfread.c eval.c exec.c infcmd.c infrun.c
4486 mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c
4487 symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c
4488 valops.c: Cast parameters passed to make_cleanup to use the new
4489 make_cleanup_func typedef.
4493 * sol-thread.c (ps_pstop, etc): different solaris versions have
4494 slightly different prototypes in proc_service.h; compensate.
4498 * Makefile.in (AWK): Unused; remove.
4499 * configure.in: Remove unused autoconf checks for MINIX, memcpy,
4500 poll, select, strings.h.
4501 * config.in: Regenerated.
4502 * configure: Regenerated.
4506 * configure.in: Check for sys/debugreg.h, asm/debugreg.h.
4507 * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not
4512 * dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the
4513 address range of a compilation unit without children.
4515 * mdebugread.c (parse_partial_symbols): Fix handling of stabs
4516 continuations, use xmalloc and xrealloc.
4520 * rs6000-tdep.c: Don't include tm.h twice.
4524 * main.c (main): Remove calls to {pre,post}_add_symbol_hooks.
4525 There should be sufficient information/hooks now to eliminate
4528 * exec.c (file_command): Add a new hook here to inform ui's
4529 when the exec file has changed. Adding it here allows the
4530 ui to be informed after symbol reading.
4532 * gdbcore.h: Add declaration of file_changed_hook.
4536 * rs6000-tdep.c (get_saved_register): Define only if
4537 USE_GENERIC_DUMMY_FRAMES is defined.
4542 * configure.in (--enable-targets): New config option. Code taken
4543 from ../opcode/configure.in.
4544 start-sanitize-cygnus
4545 (--enable-carp): New config option. Overrides configure.tgt and
4546 sets gdb_target + gdb_target_cpu to carp. XXX - this is tempoary.
4548 * configure: Re-generate.
4550 * Makefile.in (DEPFILES): Add TARGET_OBS.
4551 (TARGET_OBS): Defined by configure.
4553 start-sanitize-cygnus
4554 * config/carp/carp.mt, config/carp/tm-carp.h: Pseudo configuration
4555 for carp target. XXX - this is tempoary.
4561 Eliminate a few warnings from the compiler.
4562 * breakpoint.h: Add prototype.
4563 * breakpoint.c (do_enable_breakpoint): cast mem_cnt, i to (void).
4564 * configure.in: Check if strdup declaration is necessary.
4565 * configure: Regenerated.
4566 * defs.h: Add prototypes.
4567 * gdb_string.h: Only define strdup if necessary.
4568 * gdbthread.h: Add prototypes.
4569 * printcmd.c: Add prototyptes.
4570 (disassemble_command): Remove unused variable 'section'.
4571 * symtab.c: Add prototypes.
4572 * symtab.h: Include gnu-regex.h, add prototype.
4573 * thread.c: Add prototype.
4578 * stabsread.c (rs6000_builtin_type): Create a complex float instead
4580 (read_sun_floating_type): Similarly.
4581 (read_range_type): Create a complex float if self_subrange is
4586 * c-lang.c (emit_char c_printchar c_printstr), c-lang.h (c_printstr)
4587 ch-lang.c (chill_printstr chill_printchar) c-valprint.c (c_val_print)
4588 ch-valprint.c (chill_val_print) expprint.c (print_subexp) f-lang.c
4589 (f_printstr f_printchar emit_char) f-valprint.c (f_val_print)
4590 jv-lang.c (java_printchar java_emit_char) jv-valprint.c
4591 (java_value_print java_val_print) language.c (unk_lang_printchar
4592 unk_lang_printstr unk_lang_emit_char) language.h (struct
4593 language_defn LA_PRINT_STRING LA_EMIT_CHAR) m2-lang.c (m2_printstr
4594 m2_printchar emit_char) printcmd.c (print_formatted) scm-lang.c
4595 (scm_printstr) valprint.c (val_print_string) value.h
4596 (val_print_string): Add emit_char routines to language_desc struct
4597 to allow finer control over language specific character output issues.
4598 Add character width arg to printstr routines to allow handling of
4599 wchar_t/Unicode strings. Fix c_printstr to handle wide characters.
4600 Supply width argument to LA_PRINT_STRING and val_print_string.
4602 * jv-lang.c (java_object_type dynamics_objfile java_link_class_type
4603 get_dynamics_objfile get_java_object_type) jv-lang.h
4604 (get_java_object_type): Make lots of things static.
4606 * expprint.c (dump_prefix_expression dump_subexp): Move opcode name
4607 printing to common routine (op_name).
4608 * (dump_subexp): Add support for OP_SCOPE.
4612 * configure.host (i[3456]86-*-windows): Remove, no longer used.
4613 * mswin: Remove directory, no longer used.
4617 * sol-thread.c: Fixed prototypes and calls to supply_fpregset and
4622 * remote.c (remote_interrupt): Rewrite to use remote_stop.
4623 (remote_interrupt_twice): Remove. remote_stop now handles it.
4624 (remote_stop): New function which handles interrupting the
4625 remote target so that CLUI and GUI use the same core functions
4626 to achieve the same goal.
4627 (remote_wait): Change to handle remote_stop properly.
4628 [interrupted_already]: New static global to help remote_stop.
4629 [remote_ops, extended_remote_ops]: Add remote_stop for to_stop member.
4631 * target.c: Rename static function "ignore" to "target_ignore" and
4632 export it so that gdb can determin if some target vector member is
4633 actually not defined. Replace all occurances of ignore.
4635 * target.h: Export target_ignore.
4639 * target.c (target_xfer_memory): Handle requests with zero
4640 transfer length right away.
4642 * values.c (unpack_double): Set up code, length and signedness of
4643 type _after_ checking for typedef.
4647 * breakpoint.c (bpstat_stop_status): Do not consider an
4648 untripped watchpoint as a "hit".
4652 * exec.c (exec_file_command), convex-tdep.c (exec_file_command),
4653 arm-xdep.c (exec_file_command), remote-rdp.c
4654 (remote_rdp_create_inferior), remote-os9k.c
4655 (rombug_create_inferior), remote-mm.c (mm_create_inferior),
4656 remote-eb.c (eb_create_inferior), remote-es.c
4657 (es1800_create_inferior), remote-rdi.c (arm_rdi_create_inferior),
4658 remote-sim.c (gdbsim_create_inferior), remote-utils.c
4659 (gr_create_inferior), remote-st.c (st2000_create_inferior),
4660 remote-nindy.c (nindy_create_inferior), remote-hms.c
4661 (hms_create_inferior), remote-e7000.c (e7000_create_inferior),
4662 remote-array.c (array_create_inferior), remote-adapt.c
4663 (adapt_create_inferior): Replace "exec" with "executable" in
4668 * rdi-share/unixcomm.c: If using cygwin32, also use the SERPORT and
4669 PARPORT defines for win32.
4670 (Unix_MatchValidSerialDevice): For cygwin32, valid serial port names
4671 start with "com", not "/dev/tty".
4672 (Unix_OpenSerial): Do not use O_NONBLOCK on cygwin32.
4674 * rdi-share/devsw.c (DevSW_Close): Free the device's state
4675 (SwitcherState) so that the device may be reopened.
4677 * remote-rdi.c (mywritec): Send all output through gdb's *_unfiltered
4678 functions, ignoring non-ASCII chars, so that non-tty UI's can snarf
4679 the output from fputs_hook.
4681 (arm_rdi_open): Set inferior_pid.
4682 (arm_rdi_detach): Pop the target off the target stack so that
4683 users can attach and detach multiple times.
4684 (arm_rdi_close): Close the opened device and reset inferior_pid, too.
4688 * configure.in: Change --enable-warnings to --enable-build-warnings.
4689 * configure: Updated.
4693 * configure.in (WARN_CFLAGS): Add -Wmissing-prototypes.
4694 * configure: Regenerated.
4698 * configure.in: Add --enable-warnings.
4699 Adjust whitespace of other --with and --enable options so that
4700 configure --help lines up correctly.
4701 * aclocal.m4: Ditto.
4702 * Makefile.in (WARN_CFLAGS): Add. Set by configure.
4703 * configure: Regenerated.
4707 * remote-rdi.c: Fix formatting, remove some commented-out code.
4708 (init_rdi_ops): Omit needless initializations.
4712 * remote.c (remote_address_masked): New function - mask address
4713 according to REMOTE_ADDRESS_SIZE.
4714 (remote_address_size): New global.
4715 (hexnumstr): New function - convert arbitrary unsigned to hex.
4716 (remote_write_bytes, remote_read_bytes): Use hexnumstr to
4717 construct packet address. Mask address when necessary.
4718 (_initialize_remote): Add "set remoteaddresssize" command, set
4719 REMOTE_ADDRESS_SIZE variable.
4725 * remote.c (_initialize_remote, packet_command, print_packet):
4730 * remote.c (packet_command): Test REMOTE_DESC to determine if
4731 remote connection is open.
4736 * rs6000-tdep.c (pop_frame): Handle generic dummy frames.
4737 (push_arguments): Likewise.
4738 (frame_saved_pc): Likewise.
4739 (rs6000_frame_chain): Likewise.
4740 (ppc_push_return_address): New function.
4741 (get_saved_register): New function.
4742 * config/powerpc/tm-ppc-eabi.h: Add generic dummy frame macros.
4746 * defs.h utils.c (fputc_filtered): New function. Does the obvious...
4747 * jv-lang.c (java_printchar): Fix output of chars > 0xff. Fold
4748 java_emit_char into java_printchar.
4749 * language.h (PRINT_LITERAL_FORM): Reformat for readability.
4753 * config/arm/tm-arm.h (*_BREAKPOINT): Define both little endian
4754 and big endian breakpoint patterns.
4756 * arm-tdep.c (arm_break_point_from_pc): Insert either big endian
4757 or little endian breakpoints depending upon target byte order.
4762 * incorporate SKY-B changes (makes dual maintenance easier).
4763 * txvu-tdep.c (check_overlap): new function to guarantee that
4764 overlays are either mapped or unmapped in their entirety.
4765 * txvu-tdep.c (compress_blockvector): compress blockvectors correctly
4770 * sol-thread.c (sol_thread_notice_signals): Use PIDGET when
4771 passing pid down to procfs_notice_signals.
4775 * stabsread.c (resolve_symbol_reference): Return 1 on success, 0 on
4777 * (define_symbol): Check return value from resolve_symbol_reference,
4778 and drop symbol if it fails.
4782 * stabsread.c: Make all complaints static.
4783 * Fix formatting of live range splitting code.
4784 * (resolve_symbol_reference define_symbol resolve_live_range): Change
4785 errors to complaints so that bad live range symbols won't abort the
4786 entire symbol table. Handle errors by aborting just the current
4788 * (ref_init): Goes away. Folded into ref_add().
4789 * (REF_MAP_SIZE): Put parens around parameter so that args like
4790 `1 + 2' get handled correctly (yes, this was a real bug).
4791 * (ref_add): Remove check for allocation failures. Not necessary
4792 when using xrealloc(). Fix pointer arithmetic problem when clearing
4793 memory. This and the previous patch prevent random SEGV's when there
4794 are lots of live range symbols.
4798 * remote-rdi.c: Prevent multiple attempts to close the remote
4803 * printcmd.c (examine_i_type): New static - type for instructions.
4804 (do_examine): For "i" format, specify examine_i_type.
4805 (do_examine): Call value_at_lazy instead of value_at so that
4806 examine data is only fetched if it is used.
4807 (x_command): If examine data was not fetched, set convenience
4808 variable "__" to void.
4809 (_initialize_printcmd): Initialize examine_i_type.
4813 * blockframe.c (find_pc_sect_partial_function): use bfd section
4814 of msymbol for end of section comparison.
4818 * tracepoint.c: clean up several unused variables and such.
4822 * arm-tdep.c (arm_push_arguments): fixed frame construction
4826 * mn10300-tdep.c (mn10300_analyze_prologue): guard against NULL.
4830 * dbxread.c (IGNORE_SYMBOL): Remove definition, is never used.
4831 * os9kread.c: Remove comment mentioning IGNORE_SYMBOL.
4835 * blockframe.c(find_pc_sect_partial_function): look for min syms in
4836 the same section when trying to guess the end of a function.
4837 * symfile.c(list_overlays_command): use print_address_numeric
4838 * remote-sim.c: export simulator_command
4839 start-sanitize-r5900
4840 * tm-r5900.h: add COP0 registers
4843 * txvu-tdep.c: printvector and printvector-order commands
4844 * tm-txvu.h: add COP0 registers
4845 * mips-tdep.c: use NUM_CORE_REGS
4850 * breakpoint.c (bpstat_stop_status): Declare a bp match if the
4851 current fp matches the bp->fp OR if the current fp is less than
4852 the bp->fp if we're looking at a bp_step_resume breakpoint.
4856 * symtab.h (struct symtab): Remove EXTRA_SYMTAB_INFO hook,
4858 * symfile.c (allocate_symtab): Deprecate use of
4859 INIT_EXTRA_SYMTAB_INFO here.
4863 * README: Update remote debugging and testsuite info.
4867 * config/mn10300/tm-mn10300.h (FP_REGNUM): Redefine to be a
4868 pseudo-register, not the same as a3.
4869 (D2_REGNUM, D3_REGNUM, A2_REGNUM, A3_REGNUM): Define.
4870 * mn10300-tdep.c (fix_frame_pointer): New function.
4871 (set_movm_offsets): Use register number macros instead of
4872 hard-coded constants.
4873 (mn10300_analyze_prologue): Fix to handle redefinition of FP_REGNUM.
4874 (mn10300_frame_chain): Fix to handle redefinition of FP_REGNUM;
4875 use register number macros instead of hard-coded constants;
4876 add missing parameter to call of mn10300_analyze_prologue.
4877 (mn10300_frame_saved_pc): Use register number macros instead of
4878 hard-coded constants.
4882 Changes to support/fix ARM/ELF port. Use MAKE_MSYMBOL_SPECIAL for
4884 * elfread.c (elf_symtab_read): use ELF specific macro
4885 * coffread.c (coff_symtab_read): use COFF_MAKE_MSYMBOL_SPECIAL()
4886 * arm-tdep.c: separate COFF and ELF thumb processing
4887 disable --mapcs-float processing
4888 * dwarf2read.c: Disabled building of minimal symbols
4889 * config/arm/tm-arm.h: new macros for distinguishing arm/thumb
4890 * config/mips/tm-mips.h: use ELF specific macro
4894 * top.c (context_hook): Define.
4898 * ax-gdb.c (gen_var_ref): Allow for typedef types.
4899 (gen_cast, gen_bitfield_ref, gen_expr, gen_deref): ditto.
4903 * tracepoint.c (collect_symbol): Handle register doubles that
4904 are stored in two registers.
4908 * sh-stub.c (undoSStep): Improve comment.
4909 * sparc-tdep.c (sparc_extract_struct_value_address): Simplify to use
4910 same method on both 32-bit and 64-bit machines.
4911 * sparcl-tdep.c (sparclite_check_watch_resources): Simulator doesn't
4912 support hardware breakpoints.
4913 * config/sparc/tm-sparc.h (CALL_DUMMY): Improve comments.
4917 * rdi-share/Makefile.am (INCLUDES): Fix typeo.
4918 * rdi-share/Makefile.in: Regenerated.
4922 * rdi-share/Makefile.am: Use just `INCLUDES' not `libname_INCLUDES'.
4923 * rdi-share/Makefile.in: Regenerated.
4927 * v850ice.c (v850ice_stop): New function to stop the ICE.
4928 (v850ice_load) Pass filename to ICE DLL.
4929 (ice_stepi, ice_nexti, ice_cont): Do not directly call the gdb
4930 commands -- let the GUI do it so that it can retain control
4935 * i386v4-nat.c: Include sys/reg.h if present.
4939 * config/alpha/alpha-linux (XDEPFILES): Build ser-tcp.
4943 * symtab.c (decode_line_1): For minimal symbol, SKIP_PROLOG to
4944 make sure we stop after the frame pointer is locaded and backtrace
4945 prints an accurate stack. Complements changes made on Mon Jul 27
4947 (decode_line_2): Replaced the whitespace after ">" in a prompt
4948 which has been taken away by changes made on Sun Jul 19 02:11:45
4953 * stack.c: Define new hook, selected_frame_level_changed_hook, which
4954 will be called whenever the selected stack level changes.
4955 (select_frame): Call the selected_frame_level_changed_hook.
4959 * remote-rdi.c (arm_rdi_open): Pass serial device name to
4960 Adp_OpenDevice, and include it in error reports.
4964 * configure.in: Add more header files to AC_CHECK_HEADERS.
4965 * configure: Regenerated.
4967 * command.c: Include wait.h or sys/wait.h if present.
4969 * core-aout.c: Include ptrace.h or sys/ptrace.h if present, based
4971 * infptrace.c: Ditto.
4973 * expprint.c: Include ctype.h for isprint prototype.
4974 * i386aix-nat.c: Include sys/reg.h if autoconf says it is present.
4975 * i386v-nat.c: Include ptrace.h, sys/ptrace.h, and sys/reg.h if
4976 present, based on autoconf test.
4978 * utils.c: Include curses.h and term.h if present.
4979 (puts_debug): Change 'carriage_return' local variable to return_p
4980 to avoid name clash.
4982 * config/m68k/nm-apollo68b.h: Don't define PTRACE_IN_WRONG_PLACE,
4983 determine it with autoconf.
4984 * config/i386/nm-linux.h: Don't define NO_SYS_REG_H, determine it
4986 * config/i386/nm-i386sco.h: Don't define NO_PTRACE_H, determine it
4988 * config/i386/nm-i386v.h: Ditto.
4989 * config/i386/nm-symmetry.h: Ditto.
4990 * config/m88k/xm-cxux.h: Ditto.
4991 * config/m88k/xm-dgux.h: Ditto.
4993 * config/m68k/delta68.mh (NAT_FILE): nm-delta68.h no longer necessary.
4994 * config/m68k/nm-delta68.h: Removed.
4998 * mn10300-tdep.c (set_movm_offsets): Change second argument to
4999 be the actual args to movm itself. All callers changed. Only set
5000 fi->fsr.regs[x] if reg X is saved by the movm instruction.
5004 * sol-thread.c (lwp_to_thread): Fix error message for failing
5005 td_ta_map_lwp2thr call.
5006 (ps_lgetLDT): Mask off upper bits in GS register when comparing
5011 * remote-sim.c (simulator_command): Reset register cache after
5016 * expprint.c (dump_prefix/postfix_expression): Don't try to print
5021 * c-typeprint.c (c_print_type): Don't crash if varstring is null.
5022 * expprint.c expression.h (dump_expression): Rename to
5023 dump_prefix_expression.
5024 * Print out the expression in normal form. Call print_longest
5025 instead of trying to do it ourselves.
5026 * (dump_postfix_expression): New function, prints out the expression
5027 with indentation and better formatting and interpretation.
5028 * parse.c (parse_exp_1): Put calls to dump expressions under ifdef
5029 MAINTENANCE_CMDS and expressiondebug variable.
5033 * infrun.c (wait_for_inferior): use stop_func_name instead of
5034 stop_func_start to decide that no debug info exists.
5039 * txvu-tdep.c: add VU0/1 control registers
5040 * config/mips/tm-txvu.h: ditto
5044 * txvu-tdep.c (txvu_insert_breakpoint): make sure CPU context is
5045 set to correct VU memory space.
5046 (txvu_remove_breakpoint): use this instead of txvu_breakpoint_from_pc
5047 * config/tm-txvu.h: use new track-table address
5048 Do note define BREAKPOINT_FROM_PC anymore
5052 * config/tm-txvu.h: use NUM_CORE_REGS instead of NUM_R5900_REGS
5053 * mips-tdep.c: use NUM_CORE_REGS
5054 * txvu-tdep.c: use NUM_CORE_REGS, add function prototypes
5055 (txvu_insert_breakpoints): use VIF interrupt bit
5060 * mips-tdep.c (mask_address_p): New variable.
5061 (mips_addr_bits_remove): Test mask_address_p to decide whether
5062 to mask off the upper 32 bits of addresses.
5063 (_initialize_mips_tdep): Add command to set mask_address_p.
5064 (mips_call_dummy_address): New function.
5065 * config/mips/tm-mips.h (CALL_DUMMY_ADDRESS): Redefine to
5066 call mips_call_dummy_address.
5070 * symfile.c (add_symbol_file_command): Test for the from_tty
5071 parameter and avoid query when not interactive.
5076 * mn10300-tdep.c (set_movm_offsets): Do nothing for the am33
5077 registers if we are not in am33 mode.
5078 (mn10300_frame_chain, mn10300_frame_saved_pc): Similarly.
5079 (set_machine_hook): Keep track of whether or not we're in am33 mode.
5084 * tracepoint.c (remote_set_transparent_ranges): new function.
5085 Send the start and end addresses of all loadable read-only
5086 sections down to the trace target, so that it can treat them
5087 as "transparent" (ie. don't care if they were collected or not).
5091 * mn10300-tdep.c (mn10300_analyze_prologue): Undo previous fix
5092 for setting frame address in optimized code; made unnecessary
5097 * symtab.c (decode_line_1): For minimal symbol, call
5098 find_pc_sect_line() to make sure the line number gets set
5100 (print_symbol_info): Redeclare function void.
5104 * config/d10v/tm-d10v.h (REGISTER_NAMES): sp -> r15. The
5105 stack pointer et al are synthesized from the SP_REGNUM (etc)
5106 defines and should not be mentioned in REGISTER_NAMES.
5111 * mn10300-tdep.c (mn10300_frame_chain): Account for space saved
5112 by am33 register saves.
5113 (mn10300_frame_saved_pc): Similarly.
5118 * tracepoint.c (encode_actions): Treat register names and simple
5119 variable names as special cases and don't convert them to byte-
5120 codes: these things can be collected far more efficiently
5121 without invoking the bytecode interpreter.
5125 * config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
5126 work on hosts of any endianness.
5127 * config/i386/tm-i386v.h: Ditto.
5131 * mn10300-tdep.c (set_movm_offsets): New helper function
5132 for mn10300_analyze_prologue.
5133 (mn10300_analyze_prologue): Simplify by factoring out common code.
5134 Fix bugs in setting frame address for optimized code.
5135 Use read_memory_nobpt instead of target_read_memory.
5139 * tracepoint.c (collect_symbol): handle LOC_ARG case.
5143 * sparc-tdep.c (sparc_init_extra_frame_info): Recognize when we're
5144 in a function prologue before the SAVE instruction.
5145 (sparc_frame_saved_pc): Ditto.
5146 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Add in_prologue flag.
5150 * i386-tdep.c (i386_get_frame_setup): Recognize function
5151 prologues in code compiled with -fcheck-stack.
5155 * remote-mips.c (remote_mips_insert_hw_breakpoint,
5156 remote_mips_remove_hw_breakpoint): New functions for hardware
5157 breakpoints on LSI targets.
5158 * config/mips/tm-embed.h (target_remove_hw_breakpoint,
5159 target_insert_hw_breakpoint): Define to call
5160 remote_mips_insert_hw_breakpoint and remote_mips_remove_hw_breakpoint,
5166 * txvu-tdep.c (VU0_MEM0_WINDOW_START, VU1_MEM0_WINDOW_START)
5167 Changed to use addresses in kseg1 range.
5172 * source.c (print_source_lines): Print "No such file or directory"
5174 (directory_command): same as above; resets if user issues dir.
5178 * symtab.c (decode_line_2): Instead of printing a prompt
5179 and calling command_line_input() without a prompt, just
5180 call it with the proper args. This makes the GUI work too.
5184 * blockframe.c (find_pc_sect_partial_function): allow for the possi-
5185 bility of multiple symbols at the same address when finding high.
5186 * breakpoint.c (resolve_sal_pc): if the function based section lookup
5187 fails, try getting the section from the minimal symbol table.
5188 * parse.c (write_exp_msymbol): use symbol_overlayed_address to get
5189 the LMA of a minimal symbol if unmapped.
5190 * symtab.c (find_line_symtab): change interface to return symtab
5191 containing the best linetable found.
5192 (decode_line_1): use find_line_symtab to set val.symtab. This should
5193 improve support for source files with multiple symtabs.
5195 * tm-txvu.h: include tm-mips64.h instead of starting from scratch.
5200 * main.c (main): Fix violations of GNU coding standard.
5202 * breakpoint.c: Export delete_command.
5204 * infcmd.c: Export continue_command, stepi_command, and nexti_command.
5206 * Makefile.in: Add target for v850ice.o.
5208 * configure.tgt: Add cygwin32 dependencies for v850 ice.
5212 * tracepoint.c (set_raw_tracepoint): Cope with symbols that do not
5213 have an associated directory.
5217 * utils.c (puts_debug): Display non-printable characters in hex
5222 * mn10300-tdep.c (mn10300_generic_register_names): New variable.
5223 (set_machine_hook): New function. Copy the appropriate register
5224 names into reg_names.
5225 (_initialize_mn10300_tdep): Set up to call set_machine_hook.
5226 * tm-mn10300 (NUM_REGS): Bump to 32.
5227 (REGISTER_NAMES): Updated accordingly.
5230 * mn10300-tdep.c (am33_register_names): New variable.
5231 (mn10300_analyze_prologue): Handle regs saved by am33 prologues.
5232 * tm-mn10300.h (E0_REGNUM): Define.
5237 * symtab.c (find_pc_sect_psymbol): allow case where textlow is 0
5241 * breakpoint.c (resolve_sal_pc): Accept absence of innermost
5242 Lexical block for breakpoint resolution.
5246 * mdebugread.c (parse_partial_symbols): Go ahead and read the .mdebug
5247 section, but just don't add a 2nd minimal symbol if this is an .mdebug
5248 section in an ELF file.
5252 * Makefile.in (ax-general.o): Depend on $(defs_h) too.
5253 (ax_h): Bother to define this.
5257 * gnu-regex.c (re_comp): Add cast to char * before gettext calls.
5261 Improve support for SunPro F77.
5262 * dbxread.c (end_psymtab, process_one_symbol): Handle minimal
5263 symbols with trailing underscore names.
5264 * minsyms.c (find_stab_function_addr): Ditto.
5265 * dbxread.c (process_one_symbol): Ignore N_ALIAS for now.
5266 * partial-stab.h (case N_ALIAS): Ditto.
5267 * stabsread.c (read_sun_builtin_type): Handle boolean types.
5271 * symtab.h (enum namespace): Add new namespaces FUNCTIONS_NAMESPACE,
5272 TYPES_NAMESPACE, METHODS_NAMESPACE, and VARIABLES_NAMESPACE used by
5274 Add prototype for search_symbols and free_search_symbols.
5276 * symtab.c (list_symbols): Rewrite to use new search_symbols.
5277 (file_matches): New helper function for search_symbols.
5278 (free_search_symbols): New function which frees data returned from
5280 (print_symbol_info): New helper function which prints info about a
5281 matched symbol to stdout. Extracted from old list_symbols.
5282 (print_msymbol_info): New helper function which prints info about
5283 a matched msymbol to stdout. Extracted from old list_symbols.
5284 (symtab_symbol_info): Extracted from old list_symbols.
5285 (variables_info): Use symtab_symbol_info.
5286 (functions_info): Use symtab_symbol_info.
5287 (types_info): Use symtab_symbol_info.
5288 (rbreak_command): Rewrite to use new search_symbols.
5292 * mips-tdep.c (mips_push_arguments): Use 128-bit stack frame
5293 alignment for inferior calls.
5297 * mn10200-tdep.c (mn10200_analyze_prologue): Fix calculation
5298 of jsr target address.
5302 * config/mn10200/tm-mn10200.h (SAVED_PC_AFTER_CALL): Don't
5303 zero upper byte of address.
5307 * rs6000-tdep.c (pop_dummy_frame): use memcpy.
5308 (push_arguments): use memset.
5309 (various other places): fix up indentation and long lines.
5313 * configure.in: s/lXext/-lXext/ for Jillian's change.
5317 * source.c (find_source_lines): fix indentation.
5319 * config/mips/tm-irix5.h: Modify to work better on irix 6, by
5320 making FP registers 8 bytes instead of 4.
5321 REGISTER_BYTES: redefine. REGISTER_BYTE(): redefine.
5322 REGISTER_VIRTUAL_TYPE: redefine. MIPS_LAST_ARG_REGNUM: redefine.
5323 * irix5-nat.c (fetch_core_registers): read 8 bytes per FP register.
5324 * mips-tdep.c (FP_REGISTER_DOUBLE): new macro to distinguish
5325 targets with 8-byte FP registers (don't use TARGET_MIPS64).
5326 (STACK_ARGSIZE): new macro, how much space is taken up on the
5327 stack for each function argument (don't use TARGET_MIPS64).
5328 (mips_push_arguments): modify logic to work better on Irix 6
5333 * configure.in: Add -lXext to mips_extra_libs
5334 * configure: Regenerated.
5338 * symtab.c (find_line_pc): assumed that a PC of 0 is illegal.
5339 Changed to pass PC as arg and return 1 if valid (0 otherwise).
5340 * symtab.h: Change prototype to match.
5341 * symtab.c (find_line_pc_range): Use new interface.
5342 * breakpoint.c (resolve_sal_pc): Ditto.
5346 * parse.c (target_map_name_to_register): Check target specific
5347 aliases *first* so that it can over-ride architectural names
5351 * remote-sds.c (sds_start_remote): Fix printf call.
5355 * mn10200-tdep.c (mn10200_analyze_prologue): Fix null pointer
5356 crash when in "start".
5360 * dbxread.c: reset function_start_offset after a finishing N_FUN
5362 * remote-sim.c: allow TARGET_REDEFINE_DEFAULT_OPS to override
5363 target vectors as needed.
5367 * partial-stab.h: 'F' and 'f' type N_FUN psymbols should pass
5368 CUR_SYMBOL_VALUE as CORE_ADDR instead of long
5369 * buildsym.[ch]: export pending_blocks list
5373 * remote.c: Fix remote help string to match that of help.exp.
5377 * configure.in (LIBS): Add -lw to the list of libraries if needed.
5382 * configure.in: Don't see if we need to replace btowc().
5383 * Makefile.in: Don't include LIBOBJS.
5384 * configure: Regenerated.
5385 * gnu-regex.c (regex_compile): Only support i18n [:foo:] if
5390 * c-exp.y: Fix problems with parsing "'foo.bar'::func".
5391 Some languages allow symbols with dots.
5393 * gdbtypes.c (check_stub_method): Cosmetic. Use more descriptive
5394 names for parameters.
5397 * jv-exp.y: Parser now accepts primitive types.
5398 * (parse_number): Use correct ifdef for scanf long double support.
5399 * jv-lang.c (java_array_type): Initial cut at array support.
5402 * language.c language.h (set_language): Now returns previous language.
5404 * symtab.c (find_methods): Make static. Cosmetic changes, including
5405 indentation, and adding descriptive comments. Move local variable
5406 defs into the block they are used in.
5407 * Don't call check_stub_method any more. Use gdb_mangle_name to
5408 generate the full method name. find_method doesn't need all the other
5409 goobldegook that check_stub_method does.
5410 * (gdb_mangle_name): Use more descriptive names for parameters. Fix
5413 * (lookup_partial_symbol lookup_block_symbol): Check for java to
5414 ensure we can find mangled names.
5416 * (decode_line_1): Move local variable defs into the block they are
5417 used in. (Improves code readability.)
5421 * gdbtypes.c (get_discrete_bounds): Assign unsigned type flag for
5423 (create_set_type): Ditto for all-positive set values.
5424 * values.c (unpack_field_as_long): Check for typedef in struct
5429 * configure.in: Add some tests for gnu-regex.c's benefit.
5430 See if btowc() function is provided in C library.
5431 * configure, config.in: Regenerated.
5432 * Makefile.in (CLIBS, CDEPS): Add @LIBOBJS@ to build btowc.c
5434 * btowc.c: New file.
5436 * gnu-regex.c: Reorder wchar.h and wctype.h includes for Solaris'
5438 Drop namespace preserving defines for now.
5442 * gnu-regex.c: Include "gnu-regex.h", not "regex.h".
5446 * gnu-regex.c, gnu-regex.h: Change LGPL license to GPL license
5447 to stay consistent with the rest of GDB.
5451 * gnu-regex.c, gnu-regex.h: Update to current FSF (glibc) versions.
5455 * printcmd.c (disassemble_command): move overlay mapping code
5456 "up" into find_pc_partial_function.
5457 * blockframe.c (find_pc_partial_function): adjust start address
5458 and end address for overlays (mapped vs. unmapped addresses),
5459 so that all callers of this function may benefit.
5460 * m32r-tdep.c (m32r_skip_prologue): adjust indentation.
5464 * objfiles.c (add_to_objfile_sections): All targets to define
5465 TARGET_KEEP_SECTION to permit them to retain bfd sections that
5466 GDB would otherwise have discarded.
5470 * dbxread.c (read_dbx_symtab): Don't lower texthigh for last psymtab.
5474 * remote.c (init_extended_remote_ops): Make extended_remote_ops
5475 by copying from remote_ops, move it and init_remote_ops to
5476 usual place at end of file, remove "void" from arg lists.
5480 * sparc-tdep.c (sparc_fix_call_dummy): Byte-swap the call dummy
5481 on bi-endian machines.
5482 (sparc_extract_return_value): Handle values smaller than int on
5483 machines with little-endian data.
5484 (sparc_target_architecture_hook): Set bi_endian flag.
5488 * printcmd.c (disassemble_command): Fix off-by-one error for
5489 disassembling functions in unmapped overlay sections.
5496 (print_packet, remote_packet_command): New functions.
5497 (_initialize_remote): Register the remote-packet command.
5499 (_initialize_remote): remote-compare is now
5502 (remote_compare_command): added warning, issued in case
5507 * remote.c (remote_compare_command): New function, new command.
5508 Compare object file binary image with corresponding memory on
5509 remote target. Report differences.
5513 * sparc-tdep.c (sparc_target_architecture_hook): Set target
5514 byte order only when it's selectable.
5518 * sparc-tdep.c (sparc_target_architecture_hook): New function to
5519 set endianness based on machine type.
5520 (_initialize_sparc_tdep): Initialize target_architecture_hook.
5521 (sparc_print_register_hook): Print PSR and FPSR in fancy format
5523 * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Redefine to
5524 call sparc_print_register_hook instead of using inline code.
5525 * config/sparc/tm-sp64.h (PRINT_REGISTER_HOOK): Remove.
5529 * main.c (main): Check for NULL from getenv on CYGWIN32.
5533 * monitor.c (monitor_vsprintf): Handle %%. Patch courtesy of
5538 * mips-tdep.c (mips_push_dummy_frame): Fix calculation of
5539 PROC_REG_OFFSET and PROC_FREG_OFFSET.
5543 * config/v850/tm-v850.h (REGISTER_BYTE): FP_REGNUM and
5544 FP_RAW_REGNUM use the same register location.
5546 * v850-tdep.c (v850_scan_prologue): Use FP_RAW_REGNUM instead of
5548 (v850_frame_chain): Ditto.
5550 * config/v850/tm-v850.h (REGISTER_NAMES): Add "fp".
5552 (FP_REGNUM): Update.
5553 (FP_RAW_REGNUM): Define.
5557 * main.c (main): Convert the path returned from getenv to a posix
5558 path on cygwin32 hosts.
5562 * remote.c (remote_open_1): If an error occurs starting the remote,
5563 pop the target AND return.
5567 * dwarf2read.c (read_subroutine_type): Set TYPE_FLAG_PROTOTYPED
5569 * valops.c (value_arg_coerce): Add new argument to indicate whether
5570 the function has a prototype, handle integer and float promotions
5572 (call_function_by_hand): Always call value_arg_coerce, pass down
5573 prototype information.
5577 * remote.c (_initialize_remote): Typo extended__remote
5581 * gnu-nat.c (init_gnu_ops): Initialization of target ops by assignment.
5582 (_initialize_gnu_nat): Call new init
5583 * mac-nat.c (init_child_ops): Ditto.
5584 (_initialize_mac_nat): Ditto.
5585 * monitor.c (init_base_monitor_ops): Ditto.
5586 (_initialize_remote_monitors): Ditto.
5587 * ppc-bdm.c (init_bdm_ppc_ops): Ditto.
5588 (_initialize_bdm_ppc): Ditto.
5589 * remote-adapt.c (init_adapt_ops): Ditto.
5590 (_initialize_remote_adapt): Ditto.
5591 * remote-array.c (init_array_ops): Ditto.
5592 (_initialize_array): Ditto.
5593 * remote-bug (init_bug_ops): Ditto.
5594 (_initialize_remote_bug): Ditto.
5595 * remote-e7000.c (init_e7000_ops): Ditto.
5596 (_initialize_remote_e7000): Ditto.
5597 * remote-eb.c (init_eb_ops): Ditto.
5598 (_initialize_remote_eb): Ditto.
5599 * remote-es.c (init_es1800_ops): Ditto.
5600 (init_es1800_child_ops): Ditto.
5601 (_initialize_es1800): Ditto.
5602 * remote-hms.c (init_hms_ops): Ditto.
5603 (_initialize_remote_hms): Ditto.
5604 * remote-mm.c (init_mm_ops): Ditto.
5605 (_initialize_remote_mm): Ditto.
5606 * remote-nindy.c (init_nindy_ops): Ditto.
5607 (_initialize_nindy): Ditto.
5608 * remote_nrom.c (init_nrom_ops): Ditto.
5609 (_initialize_remote_nrom): Ditto.
5610 * remote-os9k (init_rombug_ops): Ditto.
5611 (_initialize_remote_os9k): Ditto.
5612 * remote-rdi.c (init_rdi_ops): Ditto.
5613 (_initialize_remote_rdi): Ditto.
5614 * remote-rdp.c (init_remote_rdp_ops): Ditto.
5615 (_initialize_remote_rdp): Ditto.
5616 * remote-sds.c (init_sds_ops): Ditto.
5617 (_initialize_remote_sds): Ditto.
5618 * remote-sim.c (init_gdbsim_ops): Ditto.
5619 (_initialize_remote_sim): Ditto.
5620 * remote-st.c (init_st2000_ops): Ditto.
5621 (_initialize_remote_st2000): Ditto.
5622 * remote-udi.c (init_udi_ops): Ditto.
5623 (_initialize_remote_udi): Ditto.
5624 * remote-vx.c (init_vx_ops): Ditto.
5625 (init_vx_run_ops): Ditto.
5626 (_initialize_vx): Ditto.
5627 * remote.c (init_remote_ops): Ditto.
5628 (init_extended_remote_ops): Ditto.
5629 (_initialize_remote): Ditto.
5630 * sparcl-tdep.c (init_sparclite_ops): Ditto.
5631 (_initialize_sparcl_tdep): Ditto.
5632 * v850ice.c (init_850ice_ops): Ditto.
5633 (_initialize_v850ice): Ditto.
5634 * win32-nat.c (init_child_ops): Ditto.
5635 (_initialize_inftarg): Ditto.
5639 * ax-gdb.c (const_var_ref): Don't handle function names. I don't
5640 want to implement all the "usual unary conversion" rules for
5642 (gen_usual_unary): Turn "function" values into "pointer to
5643 function" values, in accordance with ANSI.
5644 (gen_deref): Don't do the usual unary conversions here. Let the
5645 caller do it. Note that dereferencing a function pointer yields
5646 a function designator, which we call an rvalue, not an lvalue.
5647 (gen_address_of): Handle functions specially.
5648 (gen_struct_ref): Perform the usual unary conversions before
5650 (gen_expr): In case for the prefix '*' operator, call
5651 gen_usual_unary manually.
5655 * mips/tm-tx39.h (MIPS_DEFAULT_FPU_TYPE): Defined as MIPS_FPU_NONE.
5656 * mips/tm-tx39l.h: Same.
5660 * m32r-tdep.c (decode_prologue): Handle frames compiled with -Os.
5661 Split out as separate function called by skip prologue and scan
5662 prologue. new formula handles optimization in which the prologue
5663 is interleaved with the body of the function. Also recognizes new
5664 variations of prologue encoding. Use of frame pointer is
5665 essential to debugging, -fno-omit-frame-pointer
5666 (m32r_skip_prologue): Call decode prologue, ignore line info
5667 (m32r_scan_prologue): Call decode prologue, ignore line info.
5671 * w89k-rom.c (_initialize_w89k): Call new init function
5672 (init_w89k_cmds): Convert to dynamic initialization of monitor_ops
5673 data structure for forward compatability with additions to the
5675 * dbug-rom.c (_initialize_dbug_rom): ditto
5676 (init_dbug_cmds): ditto
5677 * m32r-rom.c (_initialize_m32r_rom): ditto
5678 (init_m32r_cmds): ditto
5682 * tracepoint.c (memrange_cmp): use const void * args to avoid
5683 ANSI compiler warnings.
5687 * ax-gdb.c (gen_fetch, gen_var_ref, gen_deref, find_field,
5688 gen_bitfield_ref, gen_expr): Call error, not abort.
5689 * ax-general.c (read_const, generic_ext, ax_trace_quick,
5690 ax_label, ax_const_d, ax_reg, ax_print): Same.
5692 * tracepoint.c: Remove the $(...) syntax for memranges.
5693 (validate_actionline, encode_actions, trace_dump_command): Remove
5694 clauses for the $(...) syntax.
5695 (parse_and_eval_memrange): Function deleted.
5696 (_initialize_tracepoint): Update function description.
5698 * ax-gdb.c (_initialize_ax_gdb): Make the "agent" command a
5699 subcommand of "maintenance", as it should have been from the
5700 beginning. #include "gdbcmd.h", to get the declaration for
5702 * Makefile.in: Document that dependency.
5706 * tracepoint.c (get_tracepoint_by_number): new function, to access
5707 traceframe_number for use of the GUI.
5709 * tracepoint.h: added prototype for get_traceframe_number.
5713 * dbxread.c (process_one_symbol): If block addresses are relative to
5714 function start addresses, reset function_start_address whenever a new
5715 source file is seen.
5719 * tracepoint.c (get_tracepoint_by_number): make sure to advance
5720 arg pointer even if we fail to parse a useful number. Otherwise,
5721 since this function is called in a loop, it may loop forever!
5722 Also change strtol call to allow arbitrary radix.
5723 (map_args_over_tracepoints (and other places)): add QUIT; call
5724 to loop, to allow breakout using control-C. Not all loops were
5725 analyzed to make sure they could terminate cleanly, but even
5726 terminating with a messed-up tracepoint list would be better
5727 than not terminating at all!
5728 (tdump_command): check to see if we're connected to a trace-
5729 capable target (currently only "remote") before doing anything
5734 * config/d30v/tm-d30v.h (INIT_FRAME_PC_FIRST): Fill in PC into
5735 frame struct before extracting saved register offsets.
5739 * tracepoint.c (encode_actions): fix typo in printf format string.
5743 Implement a few more tracing operators: ^ | & ~ !
5744 * ax-gdb.c (gen_integral_promotions, gen_logical_not,
5745 gen_complement): New functions.
5746 (gen_binop): New argument MAY_CARRY, indicating whether we need to
5747 correct the upper bits of the value after performing the
5748 operation. Callers changed.
5749 (gen_expr): Handle BINOP_BITWISE_AND, BINOP_BITWISE_IOR, and
5750 BINOP_BITWISE_XOR here as well, by calling gen_binop. Handle
5751 UNOP_LOGICAL_NOT, UNOP_COMPLEMENT.
5753 * ax-gdb.c (gen_conversion): Reworked to avoid some unnecessary
5756 * ax-gdb.c (gen_usual_arithmetic): Renamed from gen_usual_binary,
5757 to match the ANSI C standard better. Callers changed.
5759 * ax-gdb.c (gen_traced_pop): Add prototyped declaration.
5763 * tracepoint.c (stringify_collections_list): return a collection
5764 of strings rather than a single string.
5765 (free_actions_list): new function.
5766 (encode_actions): process collection of strings returned by
5767 stringify_collections_list.
5771 * ax-gdb.c (gen_traced_pop): New function.
5772 (gen_expr): Call it for comma operator.
5773 (gen_trace_for_expr): Call it, instead of writing it out.
5775 Add facilities for sending arbitrary packets to the remote agent.
5776 There are a bunch of improvements to make (make it generic; handle
5777 'O' replies properly), but I just want to get this onto the branch.
5778 * remote.c (print_packet, remote_packet_command): New functions.
5779 (_initialize_remote): Register the remote-packet command.
5783 * tracepoint.c: move actionline_type definition to tracepoint.h.
5784 (validate_actionline): make non static.
5786 * tracepoint.h: move actioline_type definition from tracepoint.c.
5787 (validate_actionline) moved prototype from tracepoint.c.
5791 * tracepoint.c (validate_actionline): add additional error
5792 checking, remove some dead code.
5793 (encode_actions): additional cleanups.
5794 (trace_find_command): remove some dead code.
5795 (trace_find_pc_command): ditto.
5796 (trace_find_tracepoint_command): ditto.
5797 (trace_find_line_command): ditto.
5798 (trace_find_range_command): ditto.
5799 (trace_find_outside_command): ditto.
5803 * symtab.c (decode_line_1): set section for "break *<addr>"
5807 * corefile.c (reopen_exec_file): Reopen the exec file if
5812 * sparc-tdep.c (fetch_instruction): New function.
5813 (single_step, sparc_init_extra_frame_info, examine_prologue):
5814 Use fetch_instruction instead of read_memory_integer
5815 to ensure that instructions are always read as big-endian.
5819 * configure.in: Add AC_FUNC_ALLOCA.
5820 * defs.h: Check HAVE_ALLOCA_H rather than sparc. Add _AIX pragma
5822 * configure: Rebuild.
5824 * Makefile.in (jv-lang.o, jv-typeprint.o, jv-valprint.o): New
5830 * tracepoint.c (trace_command): Remove old diagnostic code that was
5831 preventing tracepoints from being defined with a full-path filename.
5835 * stabsread.c (read_one_struct_field): Check for typedef in type
5836 tree before clearing bitfield information.
5840 * ax-gdb.c (gen_binop): New function, based on gen_mul, to replace
5841 gen_mul and gen_div, and handle `%' op as well. Correctly tests
5843 (gen_expr): Factor out common code in binary arithmetic operators.
5844 Add support for `%'.
5845 (gen_mul, gen_div): Removed.
5849 * config/sparc/tm-sp64.h (CALL_DUMMY): Store and retrieve
5850 %o0-%o5 as 64-bit values; compensate for stack bias.
5851 (USE_STRUCT_CONVENTION): We only pass pointers to structs
5852 if they're larger than 32 bytes.
5853 (REG_STRUCT_HAS_ADDR): Ditto.
5855 * sparc-tdep.c (sparc_init_extra_frame_info): Use read_sp()
5856 instead of read_register. If the target is a sparc64 and the frame
5857 pointer is odd, compensate for the stack bias.
5858 (get_saved_register): Use read_sp().
5859 (DUMMY_STACK_REG_BUF_SIZE): Use FP_REGISTER_BYTES.
5860 (sparc_push_dummy_frame): Use read_sp()/write_sp(). On sparc64,
5861 save the PC, NPC, CCR, FSR, FPRS, Y and ASI registers.
5862 (sparc_frame_find_saved_regs): Use read_sp(). Read the PC, NPC,
5863 CCR, FSR, FPRS, Y and ASI registers from the frame, if it's a
5865 (sparc_pop_frame): Use write_sp(). If the target is a sparc64 and
5866 the FP is odd, compensate for stack bias.
5867 (sparc_store_return_value): Right-justify the return value before
5869 (sparc_fix_call_dummy): Don't NOP out part of the call dummy on
5871 (sparc64_read_sp, sparc64_read_fp, sparc64_write_sp,
5872 sparc64_write_fp, sp64_push_arguments,
5873 sparc64_extract_return_value): New functions to support the
5876 * dwarfread.c (handle_producer): Set processing_gcc_compilation to
5877 the right version number.
5879 * dwarf2read.c (read_file_scope): Assume we're processing
5884 * somsolib.c: Include gdb_stat.h.
5888 * ax-gdb.c (gen_mul): new function; (gen_div): new function;
5889 (gen_expr): add support for * and / operators, call gen_mul and
5890 gen_div as appropriate.
5894 * defs.h (make_run_cleanup): Declare.
5895 * solib.c (find_solib): Pass correct number of arguments to
5900 * tracepoint.c (trace_actions_command): actions command must set
5901 step_count to zero (in case previous actions have set it but the
5906 * ocd.h: Add new flags, function codes, and processor types to
5907 support new Wiggler capabilities.
5908 * (ocd_write_bytes_size): New function to allow atomic writes of
5909 memory in sizes larger than a byte.
5911 * ser-unix.c (baudtab): Add 57600, 115200, 230400, and 460800 baud.
5915 * stabsread.c (read_one_struct_field): Do not override supplied
5916 bitfield size for a range type value.
5918 * gdbtypes.c (create_range_type): For a range with positive
5919 lower limit, declare range type as unsigned.
5923 * monitor.c: Turn off debug
5927 * breakpoint.c (delete_command): Skip internal breakpoints when
5928 all breakpoints are requested.
5930 * stabsread.c (define_symbol): Record parameter types from Sunpro
5931 function stabs in the TYPE_FIELDS of the function type.
5935 * Makefile.in (config-check-targets, config-check-hosts): Removed.
5939 * Makefile.in (maintainer-clean):
5940 Don't get ahead of yourself and delete Makefile
5941 before running `make'.
5942 (local-maintainer-clean, do-maintainer-clean): New rules.
5946 * ax-gdb.c (gen_add): when adding a pointer and an int, use
5947 the size of the pointer, not the int (typo) to decide how
5948 to extend the result.
5951 start-sanitize-vr4111
5953 * nec4102rom.c: New file implements ROM monitor adapter for
5954 nec-vr4102 board. This board hosts the vr4111 chip. This file
5955 required extensions to the monitor_ops structure, hooks for wait
5956 filter, new flags. This version does not support more than one
5957 breakpoint and resuming after a breakpoint in 16 bit mode is
5958 completely disfunctional.
5961 * monitor.h: Defined additional hooks for dmpregs, configure_hooks
5962 and wait_filter. These additions require that all ROM monitor
5963 interfaces be recoded to initialize monitor ops using assignments
5964 rather than static structure initialization. Added new bits to
5965 flags MO_EXACT_DUMPADDR, MO_HAS_BLOCKWRITES.
5967 * monitor.c (RDEBUG): Conditional tracing throughout the file.
5968 (fromhex): Now recognized upper cse hex digits
5969 (monitor_printf_noecho):
5970 (monitor_readchar): Tracing interferes with input timing.
5971 (monitor_open): Register different memory write functions with
5972 dcache_init if MO_HAS_BLOCKWRITES.
5973 (flush_monior_dcache): Added as an additional utilty.
5974 (monitor-resume): Call continue hook if one has been supplied.
5975 (monitor_wait_filter): New function Factored out of monitor wait
5976 and used if alternate wait-filter has not been provided.
5977 (monitor_wait): call alternate wait filter if provided. Call
5978 monitor_dump_regs, a new function factored out from inline code.
5979 (monitor_dump_block): A new function used as a utility when
5980 monitors must dump several blocks of registers using different
5982 (monitor_dump_regs): Call alternate function if provided. Uses new
5984 (monitor_write_memory): Engage previouly added hook
5986 (monitor_write_even_block): new function supports writing long
5987 blocks of 4byte words.
5988 (longlongendswap): new internal function
5989 (monitor_write_memory_longlongs): new function writes large blocks
5990 using command to enter a long long.
5991 (monitor_write-memory_block): new Function figures out which block
5993 (monitor_read_memory): Can now handle dump formats in which the bytes
5994 preceeding the requested data is not printed.
5998 * tracepoint.c (memrange_cmp): Another typo fix; `memrbnge' ->
6001 * tracepoint.c (memrange_cmp): Fixed typo in function intro.
6005 * symfile.c (overlay_auto_command): Add forgotten parameter
6007 (overlay_manual_command, overlay_off_command): Likewise.
6008 (overlay_load_command): Likewise.
6009 * tracepoint.c (memrange_cmp): Parameters have type void *, not
6014 * rom68k-rom.c (_initialize_rom68k): Fix unresolved init_rom_68kcmds.
6018 * config/sparc/tm-sparc.h (CALL_DUMMY): Shorten it drastically,
6019 make it work on the simulator.
6020 (FIX_CALL_DUMMY): Convert to function call instead of inline code.
6021 (sparc_fix_call_dummy): Declare.
6022 * sparc-tdep.c (sparc_fix_call_dummy): New function, taken from
6023 old FIX_CALL_DUMMY macro, with additional fixes for simulator.
6024 (sparc_push_dummy_frame): Set registers differently on simulator
6025 to prevent corrupted register window save areas.
6029 * rom68k-rom.c (_initialize_rom68k, init_rom68k_cmds):
6030 Convert all static initializations of monitor ops structures to
6031 executable initializations in order that additions to the data
6032 structure definition can me made without repeating this editing
6034 * abug-rom.c (_initialize_abug_rom, init_abug-cmds): Ditto.
6035 * cpu32bug-rom.c (_initialize_cpu32bug_rom, init_cpu32bug_cmds): Ditto.
6036 * mon960-rom.c (initialize_mon960, init_mon960_cmds): Ditto.
6037 * op50-rom.c (initialize_op50n, init_op50n_cmds): Ditto.
6038 * ppcbug-rom.c (_initialize_ppcbug_rom, init_ppc_cmds): Ditto.
6039 * sh3-rom.c (_initialize_sh3_rom, init_sh3_cmds): Ditto.
6040 * sparclet-rom.c (_initialize_sparclet, init_sparclet_cmds): Ditto.
6041 * remote-est.c (_initialize_est, init_est_cmds): Ditto.
6042 * remote-hms.c ( _initialize_remote_hms, init_hms_cmds): Ditto.
6046 * gdb_string.h (strdup): Don't specify arguments in prototype.
6050 * rs6000-nat.c (vmap_ldinfo): Issue warning instead of error if
6051 fstat on ldinfo_fd fails. Use objfile->obfd instead of vp->bfd
6052 to check for reference to the same file.
6054 * target.c (target_read_string): Handle string transfers at the
6055 end of a memory section gracefully.
6059 * Makefile.in: enable EXEEXT setting
6063 * tracepoint.c (add_local_symbols): change type of type from
6064 char to int so that type shows up as 'A' or 'L' not 0.
6066 start-sanitize-r5900
6069 * mips-tdep.c (mips32_decode_reg_save): Handle 128bit wide
6070 GPR loads/stores generated on the r5900.
6071 (mips_find_saved_regs, mips32_skip_prologue): Likewise.
6072 * mips/tm-r5900.h (R5900_128BIT_GPR_HACK): Define.
6073 * mips/tm-txvu.h (R5900_128BIT_GPR_HACK): Likewise.
6078 * README: Minor changes for 4.17 release.
6083 * symfile.c (deduce_language_from_filename): .class implies java.
6088 * configure.in (strerror): Check if function must be declared.
6089 * acconfig.h (NEED_DECLARATION_STRERROR): New define slot.
6090 * gdb_string.h (strerror): Function declaration issued if
6091 NEED_DECLARATION_STRERROR.
6092 * configure, config.in: Files regenerated.
6096 * symfile.c (simple_overlay_update_1): Do not prefix array address
6098 * bcache.h (BCACHE_DATA_ALIGNMENT): Ditto.
6099 * tracepoint.c (encode_actions): Ditto.
6100 * language.c, complaints.c, utils.c (varargs.h): Do not include that
6101 file here, it is already included indirectly by defs.h.
6102 * dbxread.c (dbx_symfile_init, process_one_symbol): Cast xmalloc return
6103 value to the appropriate pointer type.
6104 * utils.c (floatformat_from_doublest): Ditto.
6105 * tracepoint.c (read_actions, _initialize_tracepoint): Ditto.
6106 (add_memrange): Likewise with xrealloc return value.
6107 * stabsread.c (ref_add): Ditto.
6108 * coffread.c (coff_symfile_init): Likewise for xmmalloc return value.
6109 * elfread.c (elf_symfile_read): Ditto.
6110 * os9kread.c (os9k_symfile_init): Ditto.
6114 * config.in: Rebuilt.
6115 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_STPCPY, HAVE_GETTEXT,
6116 HAVE_LC_MESSAGES): Define.
6120 * configure: Rebuilt.
6121 * configure.in: Call CY_GNU_GETTEXT.
6122 * Makefile.in (top_builddir): New macro.
6123 (INTL): Define to @INTLLIBS@.
6124 (INTL_DEPS): New macro.
6125 (CDEPS): Reference INTL_DEPS, not INTL.
6130 * txvu-tdep.c (txvu_print_insn): Fix thinko.
6135 Handle missing shared libraries during the examination of a core
6137 * solib.c (find_solib): Use catch_errors around call to
6138 solib_map_sections. Use warning instead of error if reading of
6139 the shared library name fails.
6140 (solib_map_sections): Change return and argument types to make
6141 it callable from catch_errors.
6142 (symbol_add_stub): Avoid GDB core dump if solib->abfd is NULL.
6143 * irix5-nat.c, osfsolib.c (xfer_link_map_member, solib_map_sections,
6144 symbol_add_stub): Ditto.
6148 * Makefile.in (INTL*): Add support to link in the intl library,
6149 and to add -I options to its source and object directories.
6150 (INTERNAL_CFLAGS): Ditto.
6151 (C{LIBS,DEPS}): Ditto.
6155 * configure.in: Add configure option --with-sim-funit.
6160 * mips-tdep.c (gdb_print_insn_mips): Disassemble MIPS instructions
6161 with subtarget-specific `mach', rather than fixed default.
6162 * config/mips/tm-mips.h (TM_PRINT_INSN_MACH): New macro, default
6164 start-sanitize-r5900
6165 * config/mips/tm-r5900.h (TM_PRINT_INSN_MACH): Override.
6168 * config/mips/tm-txvu.h (TM_PRINT_INSN_MACH): Override.
6173 * coffread.c (decode_base_type): Treat a long field with size greater
6174 than TARGET_LONG_BIT as long long.
6175 * values.c (value_from_longest): Print code value in error message.
6179 * gdb/gdb_string.h (strdup): Declare only if not defined as a
6184 * procfs.c: Added replacement macros for LWP stuff. Fixed support
6185 for UnixWare / SVR4.2MP targets and any targets which use
6186 multi-file /proc entries. Fixed support for hardware watchpoints.
6187 * solib.c: SCO needs some of the same code as SunOS. Change
6188 preprocessor conditionals.
6190 * config/i386/i386sco5.mt: New file.
6191 * config/i386/tm-i386sco5.h: New file.
6192 * config/i386/i386sco5.mh (NATDEPFILES): add i386v-nat.o.
6193 * config/i386/nm-i386v42mp.h
6194 (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
6195 Add other macros for hardware assisted watchpoints.
6196 * config/i386/nm-i386sco5.h: Correct attributions.
6197 (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
6198 * config/i386/nm-linux.h (target_remote_watchpoint): Pass
6199 'type' through to i386_insert_watchpoint.
6203 * infrun.c (wait_for_inferior): Don't add signalled processes
6205 * procfs.c (wait_fd): Note if LWP has exited.
6206 (procfs_wait): use GETPID to get process ID.
6210 * configure.tgt: Added sparc86x support.
6214 * rdi-share/etherdrv.c (EthernetWrite): Use strerror to get
6215 error string if in an ANSI C-ish environment.
6219 * sparc-tdep.c (SPARC_HAS_FPU): Define.
6220 (sparc_extract_return_value): New function, required to handle
6221 machines without floating point.
6222 (sparc_store_return_value): Ditto.
6223 * config/sparc/tm-sparc.h (EXTRACT_RETURN_VALUE): Call
6224 sparc_extract_return_value instead of using inline code.
6225 (sparc_extract_return_value): Declare.
6226 (STORE_RETURN_VALUE): Call sparc_store_return_value instead
6227 of using inline code.
6228 (sparc_store_return_value): Declare.
6232 * solib.c (enable_break): Only call warning once
6233 instead of three times.
6237 * sparc-tdep.c (sparc_extract_struct_value_address): Make it
6238 work correctly on little-endian hosts.
6239 (sparc_push_arguments): New function.
6240 (gdb_print_insn_sparc): New function.
6241 (_initialize_sparc_tdep): Make gdb_print_insn_sparc the default
6242 disassembler, so that SPARClite-specific instructions will
6244 * sparcl-tdep.c (readchar): Print debugging information.
6245 (debug_serial_write): New function, a replacement for SERIAL_WRITE
6246 that prints debugging information.
6247 * config/sparc/tm-sparc.h (PUSH_ARGUMENTS): Define.
6248 (sparc_push_arguments): Declare.
6252 * gdbcfgxref (xref_menu): Call new regex and wild card searches
6253 Now you can type in a specific triple like mips64-vr4300-elf or
6254 somthing like mips*.h
6255 (triple_search, wildcardsearch): The new functions
6257 start-sanitize-vr4320
6258 * configure.tgt: Switch over to use tm-4320.h. Since I switched to
6259 MIPS EABI the fixes are no longer backward compatible with 4300.
6260 * tm-vr4320.h: Added
6266 * utils.c (warning): added call to warning_hook
6268 * source.c (find_source_lines): modified to call warning in case
6269 of source vs. executable time stamp mismatch. Simplified object
6270 file check. Initialized mtime to 0.
6272 * defs.h: added warning_hook prototype
6274 * top.c: added warning_hook prototype.
6278 * config/sparc/tm-sun4os4.h (IS_STATIC_TRANSFORM_NAME): Add missing
6283 Update support for x86 Solaris 2.
6284 * config/i386/tm-i386sol2.h, nm-i386sol2.h: New configuration
6285 files for x86 Solaris 2.
6286 * config/i386/i386sol2.mt, i386sol2.mh: Use them.
6287 * config/sparc/tm-sun4sol2.h (PROCFS_GET_CARRY): New macro, extract
6288 carry flag from a given regset.
6289 (IS_STATIC_TRANSFORM_NAME): New macro, check if a symbol name
6290 is a SunPro transformed name.
6291 * i386-tdep.c (sunpro_static_transform_name): New function to
6292 extract the source name from a SunPro transformed name.
6293 * inferior.h (procfs_first_available, procfs_get_pid_fd):
6295 * infrun.c (wait_for_inferior): Handle breakpoint hit in
6296 signal handler without intervening stop in sigtramp.
6297 * procfs.c (procfs_lwp_creation_handler): Use PROCFS_GET_CARRY
6298 instead of direct access to the status register.
6299 (procfs_get_pid_fd): New function, returns procfs fd for a given pid.
6300 * sol-thread.c (ps_lgetLDT): New function, returns LDT for a given
6302 (sol_find_new_threads): Handle failed libthread_db initialization
6304 * stabsread.c (define_symbol): Use IS_STATIC_TRANSFORM_NAME
6305 to check for a SunPro transformed symbol name.
6309 * utils.c (fmthex): A formatting function for hexdumps
6311 * mips-tdep.c (unpack_mips16): Fixed instruction decoding, lots of
6312 bit pattern interpretations. mips_fetch_instruction does not work
6313 for 16 bit instructions. Some confusion remains about sign
6314 extension in backward branches.
6315 (mips32_relative_offset): Sign extension
6316 (mips32_next_pc): Major debugging, bit pattern interpretation
6317 (print_unpack): debugging printf
6318 (fetch_mips_16): new funtion, key on PC low bit, not symbol table
6319 (mips16_next_16): Initial major debugging of this function. Lots
6320 of bit pattern mistakes.
6321 (mips_next_pc): key on low bit of PC, not symbol table.
6322 * symfile.c (generic_load): Added a download verification which
6323 reads back the loaded code. Download chunk size is now a defined
6324 macro. Fixed a bug in which downloading slips into loading one
6325 byte at a time. Lower level functions in monitor.c can load long
6326 sequences of bytes and make use of these fixups. Referencing
6327 bfd-start_address directly was incorrectly getting zero for start.
6331 * mips-tdep.c (do_fp_register_row): Use alloca rather than arrays
6336 * top.c (print_gdb_version): Print 1998 now.
6340 * source.c: Remove obsolete decl of strstr().
6344 * solib.c (solib_create_inferior_hook): Remove Ulrich Drepper's
6345 patch of March 23 1998.
6346 * breakpoint.c (breakpoint_re_set_one): Remove Ulrich Drepper's
6347 patch of March 23 1998.
6351 * mdebugread.c (parse_partial_symbols): If this is an .mdebug
6352 section in an ELF file, override a symbol's ECOFF section with its
6353 ELF section. Also, fix stabs continuation where a stabs string
6354 continues for more than one continuation.
6358 * mips-tdep.c (mips_push_arguments): Specify dimention of valbuf
6359 using MAX_REGISTER_RAW_SIZE.
6363 * infrun.c: Fix prototype of signals_info to match static funtion.
6367 * sol-thread.c (sol_thread_store_registers): Save & restore new
6368 value of single updated register to prevent accidental clobbering.
6372 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
6373 * config/sparc/sparclite.mt: Link in the erc32 simulator.
6377 * ns32k-tdep.c (flip_bytes, ns32k_localcount,
6378 ns32k_get_enter_addr, sign_extend): Restore functions mysteriously
6381 * ns32knbsd-nat.c: New (?) file to support fetching and storing
6382 registers on NetBSD hosts.
6384 * nbsd.mh (NATDEPFILES): put ns32knbsd-nat.o instead of
6387 * ns32km3-nat.c (reg_offset): Get order of floating point
6388 registers correct. Add extra 32382 register offsets.
6389 (REG_ADDRESS): define to point at correct part of thread
6390 state. Use calls to "warning" instead of "message".
6392 * tm-nbsd.h, tm-ns32km3.h (REGISTER_NAMES, NUM_REGS,
6393 REGISTER_BYTES, REGISTER_BYTE): redefine allowing for 32382
6398 * NEWS: m68k-motorola-sysv host support added.
6399 * coffread.c (coff_start_symtab): Accept the filename as an argument,
6400 set it here. Callers updated.
6404 * config/mips/tm-mips.h (REGISTER_VIRTUAL_TYPE): Handle 32 bit SR,
6405 FSR and FIR registers.
6406 (REGISTER_VIRTUAL_SIZE): Compute using REGISTER_VIRTUAL_TYPE.
6407 (REGISTER_RAW_SIZE): Define using REGISTER_VIRTUAL_SIZE.
6409 * config/mips/tm-mips64.h: Ditto.
6413 * arm-tdep.c (gdb_print_insn_arm): Attach a fake Thumb symbol
6414 vector to the info structure when disassembling thumb
6417 * coffread.c (coff_symtab_read, read_one_sym,
6418 process_coff_symbol): Support Thumb symbol types.
6420 * dbxread.c (process_one_symbol): Call SMASH_TEXT_ADDRESS (if it
6421 is defined) for function symbols.
6425 * tracepoint.c (get_tracepoint_by_number): change warning to note.
6426 (delete_trace_command): suppress y/n query if no tracepoints, or
6427 if not from_tty. (trace_pass_command): reject junk at end of args.
6428 (read_actions): an action list consisting only of "end" is discarded.
6429 (validate_actionline (for collect command)): an argument beginning
6430 with a dollar_sign but not recognized as a special argument is
6431 parsed like any other expression -- if it isn't a register name,
6432 it's rejected. Also reject an empty argument to while-stepping.
6433 (trace_find_command): reject a negative frame number argument.
6434 (_initialize_tracepoint): set $traceframe initially to -1.
6438 * rdi-share/Makefile.am, rdi-share/aclocal.m4,
6439 rdi-share/configure: New files.
6440 * rdi-share/configure.in: Rewritten to be an autoconf input file.
6441 * rdi-share/Makefile.in, rdi-share/configure: Generated by
6443 * rdi-share/dbg_hif.h, etherdrv.c, hostchan.c: Use autoconf tests
6444 to check environment.
6448 * tracepoint.c (trace_start_command): Set trace_running_p.
6449 (trace_stop_command): Clear trace_running_p.
6453 * NEWS: Update for 4.17 release.
6457 * tracepoint.c (parse_and_eval_memrange): Fix memory leaks.
6458 (encode_actions): Use the new gen_trace_for_expr function
6459 instead of expr_to_address_and_size; collect registers when
6460 using expressions. (clear_collection_list): Fix memory leak.
6464 * ax-gdb.h (gen_trace_for_expr): Add prototype.
6468 * tracepoint.c (validate_actionline): Fix memory leak.
6469 (encode_actions): Fix memory leak.
6473 * tracepoint.c (trace_mention): New function.
6474 (trace_command): Call it.
6478 * ax-general.c (ax_reqs): New function.
6479 * ax.h (enum agent_flaws, struct agent_reqs): New types.
6480 (agent_reqs): New extern prototype. Well, actually, this was
6481 there before, due to a premature checkin.
6482 (struct aop_map): Add new `data_size' member.
6483 * ax-general.c (aop_map): Supply its value.
6484 * ax-gdb.c (agent_command): Call ax_reqs, for testing.
6486 * ax-general.c (ax_print): If we encounter an invalid or
6487 incomplete opcode, don't abort; just print an error message.
6489 * ax-gdb.c: Generate trace bytecodes, as appropriate.
6490 (trace_kludge): New variable.
6491 (gen_fetch, gen_bitfield_ref): Emit trace bytecodes, if asked
6493 (expr_to_agent): Ask for no trace bytecodes.
6494 (gen_trace_for_expr): New function.
6495 (agent_command): Call it, and display the result appropriately ---
6496 no struct axs_value, so no type or kind information.
6498 * ax-gdb.c: Use TARGET_CHAR_BIT throughout, not HOST_CHAR_BIT.
6502 * tracepoint.c (trace_status_command): Recognize a boolean return
6503 value from the stub to indicate whether trace experiment is
6504 running. Export this value as a global state variable.
6505 (trace_running_p) for use by the GUI. (from Michael Snyder)
6506 (trace_pass_command) added call to modify_tracepoint_hook.
6508 * tracepoint.h export trace_running_p.
6512 * tracepoint.c (validate_actionline): do not error out if
6513 exp->elts[0].opcode is not on short line -- let
6514 expr_to_address_and_size handle it.
6518 * tracepoint.c: Include "ax.h", not "agentexpr.h".
6520 * tracepoint.c (encode_actions): Call expr_to_address_and_size,
6521 not simply expr_to_agent.
6523 * ax-general.c: Comment out code in progress, so everyone else can
6526 * gdbtypes.c: Doc fix.
6528 * ax.h, ax-gdb.h, ax-general.c, ax-gdb.c: New files.
6529 * Makefile.in (REMOTE_OBJS): Add ax-general.o and ax-gdb.o.
6530 (SFILES): Add ax-general.c, ax-gdb.c.
6531 (ax_h): New variable.
6532 (ax-general.o, ax-gdb.o): New rules.
6537 * configure.in (sim-gpu2): Added target type checking to make
6538 --with-sim-gpu2 option only valid for sky target.
6539 * configure: Regenerated.
6544 * Makefile.in: Derive SHELL from configure.
6545 * config/d10v/d10v.mt config/m32r/m32r.mt
6546 config/mn10200/mn10200.mt config/mn10300/mn10300.mt
6547 config/d30v/d30v.mt: Remove -lm from SIM. This prevents
6548 dependency checking of -lm (under NT native builds). (It is
6549 automatically added by configure if it exists.)
6550 * doc/configure mswin/configure nlm/configure
6551 testsuite/gdb.base/configure testsuite/gdb.c++/configure
6552 testsuite/gdb.chill/configure testsuite/gdb.disasm/configure
6553 testsuite/gdb.stabs/configure testsuite/gdb.threads/configure:
6554 Regenerate with autoconf 2.12.1 to fix shell issues for NT native
6559 * solib.c (solib_create_inferior_hook): Rewrite previous
6560 change to check the type of file via BFD.
6564 * breakpoint.c (breakpoint_re_set_one): Treat bp_shlib_events
6565 like bp_breakpoints.
6566 * solib.c (solib_create_inferior_hook): Relocate section addresses
6567 if the alleged start address doesn't agree with the PC.
6572 * configure.in (sim-gpu2): Added --with-sim-gpu2 as configure
6573 option, to allow gdb+sim linking with sky GPU2 library.
6574 * configure: Regenerated.
6579 merged changes from Foundry (list follows by file/author):
6582 * Makefile.in (gdbres.o): New target.
6583 (WINDRES): New define.
6584 * configure: Rebuilt.
6585 * configure.in (WINDRES): Define.
6586 (CONFIG_OBS): Include gdbres.o on Windows.
6587 * gdbtool.ico: New file.
6592 (wait_for): Don't reset the timeout_remaining for CYGWIN32,
6593 since we now effectively poll the serial port.
6594 Don't reset the current_timeout, either, since this member is used
6595 by hardwire_readchar to track the timeout and call the ui_loop_hook.
6596 (hardwire_readchar): Poll the serial port for Cygwin32. We timeout
6597 every second, update the UI, and loop around doing this until we
6598 have hit the real timeout or we get data or an error. This will
6599 allow the UI to stay active while gdb is "blocked" talking to the
6602 (wait_for): Do reset current_timeout because it is only used to
6603 keep track of what the current timeout for the scb is.
6607 (quit_confirm): Change exit message again
6609 (pc_changed_hook): Add prototype.
6611 (quit_confirm): Added missing `else'.
6612 (quit_confirm): Special-case message if init_ui_hook is
6617 (find_pc_sect_line): If no symbol information
6618 is found, return correct pc anyway.
6619 (find_methods): Comment out an apparently
6620 bogus error message because it messes up Foundry.
6624 (_initialize_serial): Add a description of
6625 "set remotelogbase".
6629 (write_register_gen): Add call to
6630 pc_changed_hook if the PC is being changed.
6634 (pc_changed_hook): Define.
6638 (do_setshow_command): If no arguments are supplied,
6639 don't dump core, instead print out an error message.
6643 Make set_raw_breakpoint, set_breakpoint_count,
6644 and breakpoint_count non-static so they are accessible from
6646 (enable_breakpoint): Enable breakpoint
6647 with same disposition instead of changing all breakpoints
6652 Add declarations for annotation hooks.
6656 Add hooks: annotate_starting_hook, annotate_stopped_hook,
6657 annotate_signalled_hook, annotate_exited_hook.
6658 (annotate_starting): If hook exists, call it instead.
6659 (annotate_stopped): If hook exists, call it instead.
6660 (annotate_exited): If hook exists, call it instead.
6661 (annotate_signalled): If hook exists, call it instead.
6665 * gdbserver/Makefile.in: add dependency on XM_CLIBS.
6666 * gdbserver/low-sim.c (registers) force into alignment.
6667 (create_inferior): Fix typo on new_argv; add abfd arg to
6668 sim_open, sim_create_inferior. Add reg_size arg to
6669 sim_fetch_register, sim_store_register. Make simulator
6670 take a single-step to get into a known running state.
6671 * gdbserver/gdbreplay.c: include fcntl.h for def'n of F_SETFL.
6672 * gdbserver/server.c: Add remote_debug variable to control
6674 * gdbserver/server.h: Add prototypes for enable/disable_async_io.
6675 * gdbserver/remote-utils.c: add verbose debugging output controlled
6676 by "remote_debug" variable. Add call to "disable_async_io()"
6677 to avoid being killed by async SIGIO signals.
6678 * config/m32r/m32r.mt: define GDBSERVER_(LIBS and DEPFILES),
6679 so that gdbserver can be built with the m32r simulator.
6683 start-sanitize-r5900
6684 * config/mips/tm-r5900.h (REGISTER_VIRTUAL_SIZE): Redefine as
6685 expression from REGISTER_VIRTUAL_TYPE.
6686 (REGISTER_RAW_SIZE): Ditto.
6687 (REGISTER_VIRTUAL_TYPE): Redefine, use explicit size for 32 bit
6691 * gdbtypes.h (builtin_type_{,u}int{8,16,32,64}): New gdb builtin
6693 start-sanitize-r5900
6694 (builtin_type_{,u}int128): Ditto.
6697 * gdbtypes.c (_initialize_gdbtypes): Initialize new types.
6699 * mips-tdep.c (do_gp_register_row): Pad register value when GP
6700 register is smaller than MIPS_REGSIZE.
6702 * findvar.c (value_of_register): When raw and virtual register
6703 values identical, check that sizes are consistent.
6707 * minsyms.c (compare_minimal_symbols): If addresses are identical,
6708 then compare on names. Sorted list should have symbols with
6709 identical addresses AND names adjacent, so dups can be discarded.
6713 * stabsread.c (define_symbol): Don't look for ',' as a LRS
6718 * rdi-share/etherdrv.c: Set sys_errlist[] as char * not const char *.
6722 * config/mips/xm-mips.h (CC_HAS_LONG_LONG): Undefine for Ultrix
6723 when compiling with native cc, the compiler has broken long long
6728 * config/m68k/xm-sun3os4.h: Remove malloc declarations, they
6729 are handled via autoconf now.
6730 * remote.c (remote_ops, extended_remote_ops): Replace static
6731 forward declaration by moving the static definition to the top of
6732 the file, for old K&R compilers.
6733 * tracepoint.c (collect_symbol, trace_start_command):
6734 Replace ANSI string concatenation with K&R compatible simple string.
6738 * source.c (select_source_symtab): Don't reach error if we have
6739 a current_source_symtab from reading in partial symbol table.
6741 start-sanitize-vr4320
6744 * configure.tgt (mips64*vr4320*el-*-elf*): Removed spurious case.
6749 * utils.c (quit): Call SERIAL_DRAIN_OUTPUT rather than
6750 SERIAL_FLUSH_OUTPUT.
6751 * serial.h (struct serial_ops): Add drain_output, pointer to
6752 function that waits for output to drain.
6753 (SERIAL_DRAIN_OUTPUT): Macro to wait for output to drain.
6754 * ser-unix.c (hardwire_drain_output): New function and prototype.
6756 * ser-unix.c (hardwire_ops): Add entry for drain_output function.
6757 * ser-tcp.c (tcp_ops): Ditto.
6758 * ser-ocd.c (ocd_ops): Ditto.
6759 * ser-mac.c (mac_ops): Ditto.
6760 * ser-go32.c (dos_ops): Ditto.
6761 * ser-e7kpc.c (e7000pc_ops): Ditto.
6765 * sparcl-tdep.c: fix #endif comments
6769 * Makefile.in (BISON): Configure substitutes in @YACC@, not @BISON@.
6773 * ocd.c (ocd_open): If we fail ocd_start_remote, make sure we
6774 error () so that we abort out of bdm_ppc_open.
6778 * serial.c (_initialize_serial): Add a description of
6779 "set remotelogbase".
6781 * command.c (do_setshow_command): If no arguments are supplied,
6782 don't dump core, instead print out an error message.
6786 * elfread.c (elf_symtab_read): merge SYMBOL_IS_SPECIAL into
6787 MAKE_MSYMBOL_SPECIAL
6788 * config/mips/tm-mips.h: ditto
6792 start-sanitize-vr4111
6793 * config/mips/tm-vr4xxx.h: implements vr4111 as separate from 4300
6794 * config/mips/vr4xxx.tm: implements vr4111 as separate from 4300
6795 * configure.tgt: Recognise mips64vr4111-*-elf as vr4xxx
6797 * dwarfread.c (read_tag_pointer_type): Pointer sizes now come from
6798 TARGET_PTR_BIT rather from sizeof(char *) on host.
6802 * alpha-nat.c (fetch_osf_core_registers): Renamed from
6803 fetch_aout_core_registers.
6804 (alpha_osf_core_fns): Renamed from alpha_aout_core_fns, change
6805 flavour to bfd_target_unknown_flavour for OSF core files.
6807 start-sanitize-vr4320
6810 * configure.tgt (mips64*vr4320*el-*-elf*,mips64*vr4320*-*-elf*):
6816 * breakpoint.c (_initialize_breakpoint): Make "en" an alias
6817 for "enable" (so that it doesn't conflict with "end").
6821 * Makefile (VERSION): Bump to 4.17.1.
6825 * rdi-share/etherdrv.c (sys_errlist): Add correct decl for Linux.
6829 * Makefile.in (YYFILES): Remove in maintainer-clean, not distclean.
6833 * Makefile.in (distclean): Add `rm $(YYFILES)'.
6837 * coffread.c (coff_read_enum_type): Set TYPE_FLAG_UNSIGNED if enum
6842 * configure.host, configure.tgt: Add sparc-linux.
6843 * sparc-nat.c: Include <asm/reg.h> not <machine/reg.h> for Linux.
6844 * config/sparc/*linux*: New files.
6848 * arm-tdep.c (gdb_print_insn_arm): Call print_insn_big_arm
6849 if we're big endian; else call print_insn_little_arm.
6853 * Makefile.in (BISON): Don't even pretend to use yacc.
6854 (c-exp.tab.o): Use bison -o to use a unique intermediate file.
6855 (f-exp.tab.o, m2-exp.tab.o): Likewise.
6857 (jv-exp.tab.o): Likewise.
6862 * remote-sim.c (gdbsim_fetch_register): Don't abort when the
6863 register size is wrong.
6865 start-sanitize-r5900
6868 * config/mips/tm-r5900.h (REGISTER_VIRTUAL_SIZE,
6869 REGISTE_RAW_SIZE): Re-define.
6874 * target.c (debug_to_fetch_registers,debug_to_store_registers,
6875 debug-to_insert_breakpoint,debug_to_remove_breakpoint): tracing
6876 64 bit targets crashed long long printfs.
6880 * symfile.c (read_target_int_array): rename read_target_long_array
6881 and force the sizeof an ovly_table element to sizeof(long),
6882 instead of sizeof(int).
6886 * remote-mips.c (mips_request): Use unsigned long during parsing
6887 returned value from monitor, to prevent accidental sign extension.
6891 * acconfig.h: FORCE_MMCHECK changed to MMCHECK_FORCE.
6892 * configure.in: Ditto.
6893 * configure: Regenerated.
6897 * gdbtypes.c (check_typedef): Do not try to resolve the length of
6898 a type which has TYPE_FLAG_TARGET_STUB set, if the target type has
6899 set TYPE_FLAG_TARGET_STUB as well.
6903 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
6904 Pass register size to sim_{fetch,store}_register. Check nr of
6905 register bytes transfered is correct.
6909 * remote-d10v.c (remote_d10v_open): Call push_remote_target
6910 instead of open_remote_target.
6912 * remote.c (remote_xfer_memory): Use REMOTE_TRANSLATE_XFER_ADDRESS
6913 to translate addr/size when defined.
6914 (open_remote_target): Delete.
6916 * target.h (open_remote_target): Delete.
6918 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Define.
6922 * d10v-tdep.c (d10v_extract_return_value): Wierd. GCC wants to
6923 return odd sized register quantities with only half of the first
6926 * config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Use stack when
6931 * config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Define. True when
6936 * parse.c (write_dollar_variable): call new function
6937 target_map_name_to_register to allow targets to define their own
6938 register name aliases.
6939 * infcmd.c (registers_info): use target_map_name_to_register so that
6940 "print $reg" and "info reg $reg" use the same register name aliases.
6944 * config/i386/i386mk.mt (OBJFORMATS): Delete, no longer used.
6945 * config/i386/xm-i386mk.h: Fix an include.
6946 * config/pyr/tm-pyr.h (PC_INNER_THAN): Remove, never used.
6950 * remote-mips.c (mips_enter_debug): Sleep before sending CR to
6952 (mips_exit_debug): Accept any whitespace / verbiage before monitor
6957 * d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte
6962 * valops.c (value_at): For d10v, make read pointers with
6963 read_target_unsigned_integer, keep addresses unsigned.
6964 (value_fetch_lazy): Ditto.
6968 * remote-d10v.c: New file. Layer the d10v GDB->remote memory map
6969 on top of the remote serial memory transfer functions.
6971 * config/d10v/d10v.mt (TDEPFILES): Add remote-d10v.o
6973 * Makefile.in (remote-d10v.o): Add dependencies.
6975 * remote.c (remote_open_1): Add arg extended_p, engage extended
6976 protocol when extended_p.
6977 (remote_open, extended_remote_open): Pass !extended_p /
6978 extended_p to remote_open_1.
6980 * remote.c (open_remote_target), target.h: New function.
6984 * config/i386/fbsd.mh (XDEPFILES): Add ser-tcp.o.
6988 * tracepoint.c (tracepoint_operation): Call the modify_tracepoint_hook
6990 Remove static declaration of free_actions.
6992 * tracepoint.h: Add declaration of free_actions.
6996 * symtab.c (decode_line_1): Revert change that mistakenly
6997 removed assignment of sals[0].pc field.
7001 * m68k/tm-delta68.h (EXTRACT_RETURN_VALUE): Type argument for
7002 `REGISTER_CONVERT_TO_VIRTUAL is `TYPE', not
7003 `REGISTER_VIRTUAL_TYPE (FP0_REGNUM)';
7004 (STORE_RETURN_VALUE): Ditto, and offset for `write_register_bytes'
7005 is `REGISTER_BYTE (FP0_REGNUM)', not `FP0_REGNUM'.
7006 (FRAME_NUM_ARGS): New macro.
7007 * m68k/tm-news.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Ditto.
7008 * delta68-nat.c (clear_insn_cache): New function, forgotten in previous
7013 * d10v-tdep.c: Replace references to IMEM_ADDR and DMEM_ADDR with
7014 D10V_MAKE_[DI]ADDR and D10V_CONVERT_[ID]ADDR_TO_RAW macros.
7016 * config/d10v/tm-d10v.h (IMEM_START): Move to 0x01......
7017 (DMEM_START): Move to 0x00......
7018 (STACK_START): Move to 0x00..7ffe.
7019 (D10V_MAKE_IADDR, D10V_MAKE_DADDR): Translate unconditionally.
7021 * d10v-tdep.c (d10v_xlate_addr): Delete function.
7025 * symtab.c (fixup_psymbol_section): Move forward declaration to
7026 top of file with other such decls. Make it a static function.
7027 * symtab.h: Minor formatting tweaks.
7031 * config/a29k-udi.mt, config/i960/vxworks960.mt (REMOTE_OBS):
7032 Remove redefinition.
7033 * config/i960/tm-i960.h (BREAKPOINT): Define.
7037 * Makefile.in (init.c): Ignore errors when making init.c. Seems
7038 necessary to work around bug in Solaris make.
7042 * m68k/tm-delta68.h (CPLUS_MARKER): Macro deleted.
7043 (EXTRACT_STRUCT_VALUE_ADDRESS): Macro defined.
7044 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Macros modified
7045 because floating-point values return via %fp0.
7046 (CLEAR_INSN_CACHE): New macro.
7047 * m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL): Macro fixed
7049 (REGISTER_CONVERT_TO_RAW): Ditto.
7050 * infptrace.c (child_xfer_memory): If CLEAR_INSN_CACHE is defined,
7051 call it after having written in child process's memory.
7052 * inflow.c (PROCESS_GROUP_TYPE): Macro defined if HAVE_TERMIO.
7053 (gdb_has_a_terminal, terminal_ours_1): Functions fixed for HAVE_TERMIO.
7057 * config/mips/tm-mips64.h (TARGET_LONG_BIT): Allow final target to
7059 (TARGET_LONG_LONG_BIT): Likewise.
7060 (TARGET_PTR_BIT): Likewise.
7061 start-sanitize-r5900
7062 * config/mips/tm-r5900.h (TARGET_PTR_BIT): Define to 32 bits.
7068 * configure.tgt (mips64r5900*-sky-elf*): Replaces txvu-elf.
7069 * config/mips/txvu.mt (SIM): txvu -> mips.
7074 * config/d10v/tm-d10v.h (D10V_CONVERT_IADDR_TO_RAW,
7075 D10V_CONVERT_DADDR_TO_RAW): Define.
7077 * d10v-tdep.c (d10v_push_arguments): Re-write. Pass arguments in
7078 registers, regardless of their size, when they fit.
7082 * d10v-tdep.c (d10v_extract_return_value): For function pointers
7083 translate address to IMAP area.
7085 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete dummy from
7087 (POP_FRAME): Point at generic_pop_current_frame.
7089 * d10v-tdep.c (d10v_pop_frame): Delete code handling dummy frames,
7091 (d10v_push_return_address): New function.
7092 (d10v_pop_dummy_frame): Delete.
7093 (d10v_fix_call_dummy): Delete.
7094 (d10v_call_dummy_address): Delete.
7096 * d10v-tdep.c (d10v_init_extra_frame_info): Clear dummy and
7099 * d10v-tdep.c (d10v_push_arguments): Keep stack word aligned.
7101 * config/d10v/tm-d10v.h (EXTRACT_STRUCT_VALUE_ADDRESS): Extract
7102 address of structure from first ARG1_REGNUM.
7104 * d10v-tdep.c (d10v_push_arguments): Force 4 byte args into
7105 even-odd register pair. Store 1 and 2 byte args in registers.
7107 * valops.c (value_fetch_lazy): Ensure that a D10V function pointer
7108 is fetched in the correct byte order.
7109 (value_at): Ditto. Also ensure data pointers are mapped to data
7112 * config/d10v/tm-d10v.h (D10V_DADDR_P, D10V_IADDR_P):
7114 * d10v-tdep.c: Replace 2 with REGISTER_RAW_SIZE.
7115 (d10v_pop_frame): Replace R13 with LR_REGNUM.
7116 (d10v_push_arguments): Replace R2 with ARG1_REGNUM.
7117 (d10v_push_arguments): Replace 6 with ARGN_REGNUM.
7118 (d10v_extract_return_value): Access return value with RET1_REGNUM.
7120 * config/d10v/tm-d10v.h (ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM):
7122 (STORE_RETURN_VALUE): Specify return register using RET1_REGNUM.
7123 (STORE_STRUCT_RETURN): Specify ARG1_REGNUM as the struct ptr
7128 * blockframe.c (generic_pop_dummy_frame): Flush the frame, no
7131 * blockframe.c (generic_pop_current_frame), frames.h: New
7136 * remote-sim.c (gdbsim_create_inferior): clear_proceed_status
7137 before /re/starting the simulator.
7141 * top.c (do_nothing): Remove signal handler after signal is caught.
7145 * tracepoint.c (tracepoint_operation): call free_actions instead
7146 of free. (free_actions): eliminate some memory leaks for actions.
7147 (validate_actionline): pass string arg by reference, so we can
7148 change the pointer. Change all memrange collection arguments to
7149 canonical form (literal address and size), to enforce early
7150 evaluation. Accept UNOP_MEMVAL (assembly variables) for
7151 trace collection. (parse_and_eval_memrange): accept expressions
7152 for the address and size fields of a memrange (and evaluate
7153 them immediately). (several places): use -1 instead of zero
7154 to distinguish an absolute memrange from a register-relative one.
7155 (encode_actions): add handling for UNOP_MEMVAL (assembly variable).
7159 * Makefile.in (SFILES): add tracepoint.c.
7160 (LINTFILES): add @CONFIG_SRCS@.
7162 * configure.in (CONFIG_SRCS): Mirror use of CONFIG_OBS.
7163 * configure: Regenerated.
7167 * infptrace.c (child_resume): Don't try to step if
7168 NO_SINGLE_STEP is defined.
7172 * Makefile.in (VERSION): Bump to 4.16.2.
7176 * alpha-nat.c (fetch_aout_core_registers): Rename from
7177 fetch_core_registers.
7178 (fetch_elf_core_registers): New function.
7179 (supply_gregset): Use ALPHA_REGSET_BASE.
7180 (supply_fpregset): Likewise.
7181 (fill_fpregset): Likewise.
7182 (alpha_aout_core_fns): Rename from alpha_core_fns.
7183 (alpha_elf_core_fns): New.
7184 * config/alpha/alpha-linux.mh (NATDEPFILES): solib.o not osfsolib.o.
7186 * config/alpha/nm-linux.h (SVR4_SHARED_LIBS): Define if ELF.
7187 (TARGET_ELF64): Likewise.
7188 (ALPHA_REGSET_BASE): New.
7189 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): New.
7190 * config/alpha/tm-alphalinux.h: Include tm-sysv4.h.
7192 * solib.c (elf_locate_base): Add TARGET_ELF64 support.
7193 (info_sharedlibary_command): Likewise.
7195 * configure.host: Match alpha*.
7196 * configure.tgt: Likewise.
7201 * infrun.c (IN_SOLIB_DYNSYM_RESOLVE_CODE): new macro for detecting
7202 whether we are in the dynamic symbol resolution code
7203 (wait_for_inferior): invoke it.
7204 * solib.c (in_svr4_dynsym_resolve_code): new function
7205 (enable_break): record start and end of the dynamic linker
7206 text and plt sections for use in in_svr4_dynsym_resolve_code.
7207 * solib.h (IN_SOLIB_DYNSYM_RESOLVE_CODE): add svr4 definition;
7208 (in_svr4_dynsym_resolve_code): declare it.
7209 * config/nm-gnu.h (solib.h): move inclusion to after definition
7210 of SVR4_SHARED_LIBS.
7211 * config/nm-sysv4.h (solib.h): ditto.
7212 * config/i386/nm-i386sco5.h (solib.h): ditto.
7213 * config/i386/nm-linux.h (solib.h): ditto.
7214 * config/mips/nm-irix5.h (IN_SOLIB_DYNSYM_RESOLVE_CODE): undefine.
7218 * coffread.c (coff_symtab_read) [SEM]: Remove code, macro can
7220 * dbxread.c (process_one_symbol) [BLOCK_ADDRESS_ABSOLUTE]:
7221 Remove, no longer needed.
7222 * hppa-tdep.c (N_SET_MAGIC): Remove, no longer used.
7223 * config/pa/xm-hppab.h (SEEK_SET, SEEK_CUR, SEEK_END): Ditto.
7224 * config/mips/tm-mipsm3.h (NUMERIC_REG_NAMES): Ditto.
7225 * config/mips/mipsm3.mt (TDEPFILES): Remove mipsread.o.
7230 * dwarfread.c (set_cu_language): Recognize Fortran.
7231 * dwarf2read.c (set_cu_language): Ditto.
7232 (read_array_type): Fix language test.
7236 * blockframe.c (generic_frame_chain_valid): A frame pointer may
7237 be valid if it is equal to the frame pointer of its caller (ie.
7238 not necessarily strictly INNER_THAN). Allows frameless functions.
7242 * monitor.c (monitor_vsprintf): New function to handle
7243 printing of large addresses using %A format specifier.
7244 (monitor_printf_noecho, monitor_printf): Use monitor_vsprintf
7245 instead of vsprintf.
7246 * dve3900-rom.c (_initialize_r3900_rom): Use %A instead of %Lx
7251 * configure.in (CONFIG_LDFLAGS): Only add -export-dynamic
7256 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset):
7257 Add closing parenthesis. From HJ Lu.
7261 * dve3900-rom.c: Improve performance by using memory commands
7262 that print less fluff. Minor cosmetic changes.
7263 Eliminate compiler warnings.
7267 * breakpoint.c (enable_breakpoint): Preserve breakpoint
7268 disposition when enabling a breakpoint.
7270 * symtab.c (find_pc_sect_line): If no symbol information
7271 is found, return correct pc anyway.
7275 * configure.host (i[3456]86-*-osf1mk*, mips-*-mach3*,
7276 ns32k-*-mach3*): Fix file names.
7277 (i[3456]86-*-os9k, m88*-*-mach3*, w65-*-*): Remove config
7278 recognition, no source files for these.
7279 * configure.tgt (powerpc-*-aix4*): Remove config, now identical
7281 * config/powerpc/{aix4.mh,aix4.mt,tm-ppc-aix4.h}: Remove files,
7286 * monitor.c (monitor_write, monitor_readchar): New functions.
7287 * monitor.h (monitor_write, monitor_readchar): Declare.
7288 * dve3900-rom.c: Add support for fast loading on ethernet connections.
7292 * config/d10v/tm-d10v.h (CALL_DUMMY): Define as "{ 0 }".
7293 (TARGET_READ_FP): Define to d10v_read_fp rather than d10v_read_sp.
7294 (TARGET_WRITE_FP): Define to d10v_write_fp rather than d10v_write_sp.
7295 (d10v_write_fp, d10v_read_fp): Add prototypes.
7296 * symtab.c (decode_line_1): Remove assignment of sals[0].pc field.
7297 * symfile.c (simple_overlay_update, simple_overlay_update_1):
7298 Ignore the size of overlay sections. This check is redundant anyway.
7299 * printcmd.c (print_frame_args): Ditto.
7300 * valops.c (value_fetch_lazy): Ditto.
7301 * values.c (unpack_long): Ditto.
7302 * d10v-tdep.c (d10v_frame_chain, d10v_frame_find_saved_regs,
7303 d10v_init_extra_frame_info): Fix some minor bugs so the finish command
7305 (show_regs): Change num1 and num2 types from "long long" to "LONGEST".
7306 (d10v_read_fp, d10v_write_fp): New functions.
7307 (d10v_push_arguments): Remove unneeded assigns to "val" and "contents".
7308 (d10v_push_arguments): Fix for pointers and structs.
7309 (d10v_extract_return_value): Fix for pointers and chars.
7313 * configure.tgt (i386-*-mach*, m88*-*-mach3*): Remove config
7314 recognition, no source files for these (note that the i386 Mach
7315 config is for pre-Mach 3).
7316 (mips*-*-mach3*, ns32k-*-mach3*): Fix file names.
7317 * config/mips/mipsel64.mt: Remove, never referenced.
7321 * top.c (print_gdb_version): Restore to original message.
7326 * win32-nat.c (child_mourn_inferior): Call ContinueDebugEvent to
7328 (child_kill_inferior): Respond to all debug events as the child is
7331 * Makefile.in (all): Change gdb dependency to gdb$(EXEEXT).
7332 (uninstall): Add $(EXEEXT) to file name to remove.
7333 (gdb$(EXEEXT)): Rename target from plain gdb.
7334 (gdb1$(EXEEXT)): Rename target from plain gdb1.
7335 (clean, mostlyclean): Add $(EXEEXT) to binary names to remove.
7339 * top.c (print_gdb_version): delete stutter.
7344 to prevent spurous error messages on non-ICE targets.
7348 * config/mips/{r3900.mt,r3900l.mt,tm-r3900.h,tm-r3900l.h}:
7349 Remove, no longer used.
7353 Patch from Jim Wilson.
7354 * d30v-tdep.c (d30v_frame_find_saved_regs_offsets): Properly
7355 declare void function before use.
7357 * config/d30v/tm-d30v.h (CALL_DUMMY): Initialize as { 0 }, not {}.
7361 * configure.in (--with-mmalloc): Add new configure arg to use the
7362 mmalloc package. Default is to not use it.
7363 (START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not
7365 * acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef.
7366 * configure: Regenerated.
7367 * config.in: Regenerated.
7368 * Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove.
7369 (MMALLOC): Set using configure.
7370 (MMALLOC_CFLAGS): Set using configure.
7372 * config/i386/tm-linux.h (sys_quotactl): Define to 1 rather
7373 than just defining it.
7374 * mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC.
7375 * utils.c (NO_MMALLOC): Use USE_MMALLOC instead.
7376 * objfiles.c: ditto.
7379 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove.
7380 * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove.
7381 * config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove.
7382 * config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove.
7383 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove.
7384 * gdbserver/Makefile.in (MMALLOC_*): Remove.
7385 * config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7386 * config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7387 * config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7388 * config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7389 * config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7390 * config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7391 * config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7392 * config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7393 * config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove.
7394 * config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7395 * config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7396 * config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7397 * config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7398 * config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7402 * config/m68k/tm-m68k.h (REGISTER_VIRTUAL_TYPE): make A0 thru A7
7403 default to void pointer type (so that their default radix is hex).
7405 * symtab.c: move rbreak_command from no_class to class_breakpoint
7406 so it will be listed under "help breakpoints".
7410 * rdi-share/hostchan.c: Remove gettimeofday declaration.
7415 to implement the Angel remote debugging interface.
7417 * Makefile.in: Add build rules for remote-rdi.c and
7418 rdi-share/libangsd.a.
7420 * configure.tgt: Updated from source on branch.
7421 * config/arm/tm-arm.h: Updated from source on branch.
7422 * arm-tdep.c: Updated from source on branch.
7424 * rdi-share: New directory, RDI library contributed by ARM.
7428 * monitor.h (MO_PRINT_PROGRAM_OUTPUT): Define.
7429 * monitor.c (monitor_wait): Echo program output.
7430 * dve3900-rom.c (_initialize_r3900_rom): Remove MO_HANDLE_NL flag,
7431 add MO_PRINT_PROGRAM_OUTPUT flag.
7435 * top.h (HAVE_SIGSETJMP): define SIGJMP_BUF, SIGSETJMP, and
7436 SIGLONGJMP appropriately based on whether HAVE_SIGSETJMP is
7438 * top.c (return_to_top_level, catch_errors): use the new macros
7439 * main.c (SET_TOP_LEVEL): ditto.
7440 * config/xm-sysv4.h (HAVE_SIGSETJMP): Define.
7444 * configure.in: Double up brackets in shell case pattern.
7448 * tracepoint.c (finish_tfind_command): improved algorithm for
7449 deciding when we've "stepped" into a new stack frame.
7450 (map_args_over_tracepoints): loop over tracepoint list "safely",
7451 since list elements may be deleted during loop.
7452 (read_actions): add actions to history list.
7454 For older changes see ChangeLog-97
7460 version-control: never