This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New list command oddity


On 08/08/2013 02:43 AM, Pierre Muller wrote:
Did I miss something, is there a simple intuitive way to
force selection of the file without path?

You can still use compilation directory information:

(top-gdb) list init.c:1
file: "../../gdb/bfd/init.c", line number: 1
file: "init.c", line number: 1
(top-gdb) list bfd/init.c:1
1	/* bfd initialization stuff
2	   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 2003, 2005, 2007
3	   Free Software Foundation, Inc.
(top-gdb) list gdb/init.c:1
1	/* Do not modify this file.  */
2	/* It is created automatically by the Makefile.  */
3	#include "defs.h"      /* For initialize_file_ftype.  */

Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]