From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5673 invoked by alias); 14 Nov 2007 11:59:00 -0000 Received: (qmail 5662 invoked by uid 22791); 14 Nov 2007 11:58:59 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 Nov 2007 11:58:57 +0000 Received: (qmail 23921 invoked from network); 14 Nov 2007 11:58:55 -0000 Received: from unknown (HELO wind.local) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Nov 2007 11:58:55 -0000 From: Vladimir Prus To: gdb-patches@sources.redhat.com Subject: Remove CLEAR_SOLIB Date: Wed, 14 Nov 2007 11:59:00 -0000 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_ALuOHN78isFMyyV" Message-Id: <200711141457.52644.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00267.txt.bz2 --Boundary-00=_ALuOHN78isFMyyV Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 160 It turns out that CLEAR_SOLIB macro is being tested for in a couple of places, but it never set anywhere. This patch removes all traces of it. OK? - Volodya --Boundary-00=_ALuOHN78isFMyyV Content-Type: text/x-diff; charset="utf-8"; name="CLEAR_SOLIB.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="CLEAR_SOLIB.diff" Content-length: 1450 commit e1c46bff8634642eb8b98264ef020c30fefe1907 Author: Vladimir Prus Date: Wed Nov 14 14:55:49 2007 +0300 Remove CLEAR_SOLIB use. 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/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); --Boundary-00=_ALuOHN78isFMyyV--