From: Joel Brobecker Date: Sun, 16 Nov 2008 18:05:26 +0000 (+0000) Subject: Remove some unused macros related to the old load/unload catchpoints. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=283de25facd72dba681532058fdb453eb8055aed;p=binutils-gdb.git Remove some unused macros related to the old load/unload catchpoints. * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME) (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK) (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e27cee9d56b..16855a9bdbb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2008-11-16 Joel Brobecker + + Remove some unused macros related to the old load/unload catchpoints. + + * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME) + (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK) + (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used. + 2008-11-16 Joel Brobecker Remove support for catch load and catch unload commands. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 9ac27e78eb4..847dbdd7aca 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -325,59 +325,6 @@ VEC(bp_location_p) *moribund_locations = NULL; int breakpoint_count; -/* This function returns a pointer to the string representation of the - pathname of the dynamically-linked library that has just been - loaded. - - This function must be used only when SOLIB_HAVE_LOAD_EVENT is TRUE, - or undefined results are guaranteed. - - This string's contents are only valid immediately after the - inferior has stopped in the dynamic linker hook, and becomes - invalid as soon as the inferior is continued. Clients should make - a copy of this string if they wish to continue the inferior and - then access the string. */ - -#ifndef SOLIB_LOADED_LIBRARY_PATHNAME -#define SOLIB_LOADED_LIBRARY_PATHNAME(pid) "" -#endif - -/* This function returns a pointer to the string representation of the - pathname of the dynamically-linked library that has just been - unloaded. - - This function must be used only when SOLIB_HAVE_UNLOAD_EVENT is - TRUE, or undefined results are guaranteed. - - This string's contents are only valid immediately after the - inferior has stopped in the dynamic linker hook, and becomes - invalid as soon as the inferior is continued. Clients should make - a copy of this string if they wish to continue the inferior and - then access the string. */ - -#ifndef SOLIB_UNLOADED_LIBRARY_PATHNAME -#define SOLIB_UNLOADED_LIBRARY_PATHNAME(pid) "" -#endif - -/* This function is called by the "catch load" command. It allows the - debugger to be notified by the dynamic linker when a specified - library file (or any library file, if filename is NULL) is loaded. */ - -#ifndef SOLIB_CREATE_CATCH_LOAD_HOOK -#define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag,filename,cond_string) \ - error (_("catch of library loads not yet implemented on this platform")) -#endif - -/* This function is called by the "catch unload" command. It allows - the debugger to be notified by the dynamic linker when a specified - library file (or any library file, if filename is NULL) is - unloaded. */ - -#ifndef SOLIB_CREATE_CATCH_UNLOAD_HOOK -#define SOLIB_CREATE_CATCH_UNLOAD_HOOK(pid, tempflag, filename, cond_string) \ - error (_("catch of library unloads not yet implemented on this platform")) -#endif - /* Return whether a breakpoint is an active enabled breakpoint. */ static int breakpoint_enabled (struct breakpoint *b)