From 7a72d44c5c8311b4109ccb0e3e3e8cd650c49177 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 15 Nov 2007 06:14:26 +0000 Subject: [PATCH] Remove CLEAR_SOLIB use. * corelow.c (core_close): Don't check for CLEAR_SOLIB. * infcmd.c (attach_command): Likewise. --- ChangeLog | 6 ++++++ gdb/corelow.c | 4 ---- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdbint.texinfo | 4 ---- gdb/infcmd.c | 6 +----- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8096866..4eff217 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-10-15 Vladimir Prus + + Remove CLEAR_SOLIB use. + * corelow.c (core_close): Don't check for CLEAR_SOLIB. + * infcmd.c (attach_command): Likewise. + 2007-10-23 Daniel Jacobowitz * Makefile.def (dependencies): Make configure-gdb depend on diff --git a/gdb/corelow.c b/gdb/corelow.c index 07be3f4..faae451 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -199,11 +199,7 @@ core_close (int quitting) /* Clear out solib state while the bfd is still open. See comments in clear_solib in solib.c. */ -#ifdef CLEAR_SOLIB - CLEAR_SOLIB (); -#else clear_solib (); -#endif name = bfd_get_filename (core_bfd); if (!bfd_close (core_bfd)) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 4ebdf50..28a4122 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2007-11-15 Vladimir Prus + + * gdbint.texinfo (Native Conditionals): Remove + mention of CLEAR_SOLIB. + 2007-11-11 Joel Brobecker * gdb.texinfo (Print Settings): Add documentation for "set/show diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index e40dd4e..119eb7c 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -4675,10 +4675,6 @@ the shell execs, and once when the program itself execs. If the actual number of traps is something other than 2, then define this macro to expand into the number expected. -@item CLEAR_SOLIB -@findex CLEAR_SOLIB -See @file{objfiles.c}. - @end table @node Support Libraries diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 2fb0f23..079d586 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1887,11 +1887,7 @@ attach_command (char *args, int from_tty) (gdb) attach 4712 Cannot access memory at address 0xdeadbeef */ -#ifdef CLEAR_SOLIB - CLEAR_SOLIB (); -#else - clear_solib (); -#endif + clear_solib (); target_attach (args, from_tty); -- 2.7.4