From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15917 invoked by alias); 26 Jul 2002 00:05:11 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15910 invoked from network); 26 Jul 2002 00:05:10 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by sources.redhat.com with SMTP; 26 Jul 2002 00:05:10 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id g6Q05AF27239; Thu, 25 Jul 2002 17:05:10 -0700 From: david carlton MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15680.37429.703834.710341@jackfruit.Stanford.EDU> Date: Thu, 25 Jul 2002 17:41:00 -0000 To: gdb-patches@sources.redhat.com Subject: gdbinit.in Cc: carlton@math.stanford.edu X-SW-Source: 2002-07/txt/msg00526.txt.bz2 When debugging GDB, if I'm looking at a function in corefile.c, it finds the one in bfd/corefile.c rather than the one in gdb/corefile.c. This is because, in the .gdbinit that is created in the gdb directory, the 'dir ./../bfd' command comes later than the 'dir .' command. This seems to me to be undesirable behavior; the accompanying patch to gdbinit.in changes that. I've moved both 'dir @srcdir@' and 'dir .' to the end of the dir list. Certainly I want 'dir @srccdir@' to be towards the end. I don't really have a strong opinion about where 'dir .' should be - honestly, it's not entirely clear to me why it's there at all. (@srcdir@ is . when I'm configuring this, so I don't see the difference.) I didn't worry about running this change through the testsuite, since it doesn't affect GDB itself and, I assume, it doesn't affect the way the testsuite runs. David Carlton carlton@math.stanford.edu 2002-07-25 david carlton * gdbinit.in: Move dir @srcdir@ and dir . to the end. Index: gdbinit.in =================================================================== RCS file: /cvs/src/src/gdb/gdbinit.in,v retrieving revision 1.1.1.2 diff -c -p -r1.1.1.2 gdbinit.in *** gdbinit.in 16 Aug 1999 19:52:40 -0000 1.1.1.2 --- gdbinit.in 25 Jul 2002 23:14:58 -0000 *************** commands *** 10,18 **** return end - dir @srcdir@ - dir . dir @srcdir@/../mmalloc dir @srcdir@/../libiberty dir @srcdir@/../bfd set prompt (top-gdb) --- 10,18 ---- return end dir @srcdir@/../mmalloc dir @srcdir@/../libiberty dir @srcdir@/../bfd + dir @srcdir@ + dir . set prompt (top-gdb)