From 87273c713f0e22999692252d3dcdbb5613ab5729 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 23 Jan 1996 21:06:34 +0000 Subject: * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup. All references changed. * breakpoint.c (bpstat_what): Add shlib_event to the class types. Update state table. Reformat so that it's still readable. When we hit the shlib_event breakpoint, set the calss of shlib_event. (breakpoint_1): Add "shlib events" as a breakpoint type. Print the shlib_event breakpoint like other breakpoints. (create_solib_event_breakpoint): New function. (breakpoint_re_set_one): Handle solib_event breakpoints. * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type. (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS action. (create_solib_event_breakpoint): Declare. * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat. (normal_stop): Inform the user when the inferior stoped due to a shared library event. (_initialize_infrun): Add new set/show variable "stop_on-solib-events" to control whether or not gdb continues the inferior or stops it when a shared library event occurs. * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function. * somsolib.c (TODO list): Update. (som_solib_create_inferior_hook): Arrange for gdb to be notified when significant shared library events occur. * hppa-tdep.c (find_unwind_entry): No longer static. First cut at the machine independent changes for 7363. Also includes code to automatically track shl_load/shl_unload calls on hpux. --- gdb/NEWS | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 1d754cd..0867bde 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -19,6 +19,19 @@ The standard remote protocol now includes an option to send a break rather than a ^C to the target in order to interrupt it. By default, GDB will send ^C; to send a break, set the variable `remotebreak' to 1. +* Automatic tracking of dynamic object loading (HPUX only at the moment). + +By default GDB will automatically keep track of objects as they are +loaded and unloaded by the dynamic linker. By using the command +"set stop-on-solib-events 1" you can arrange for GDB to stop the +inferior when shared library events occur, thus allowing you to +set breakpoints in shared libraries which are explicitly loaded by +the inferior. + +Note this feature does not work on hpux8. On hpux9 you must link +/usr/lib/end.o into your program. This feature should work automatically +on hpux10. + *** Changes in GDB-4.15: * Psymtabs for XCOFF -- cgit v1.1