This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: New list command oddity
- From: Keith Seitz <keiths at redhat dot com>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: gdb at sourceware dot org
- Date: Thu, 08 Aug 2013 10:35:34 -0700
- Subject: Re: New list command oddity
- References: <000301ce941b$cc712cc0$65538640$ at muller@ics-cnrs.unistra.fr>
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