New list command oddity

Keith Seitz keiths@redhat.com
Thu Aug 8 17:35:00 GMT 2013


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



More information about the Gdb mailing list