This is the mail archive of the gdb-patches@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: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)


> Date: Sun, 18 Mar 2012 21:30:17 +0300
> From: iam ahal <hal9000ed2k@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, Jan Kratochvil <jan.kratochvil@redhat.com>, palves@redhat.com, 
> 	dje@google.com, gdb-patches@sourceware.org, pmuldoon@redhat.com, 
> 	brobecker@adacore.com, drow@false.org, asmwarrior <asmwarrior@gmail.com>
> 
> Here is an example of working with "relative filename" option:
> 
> $ gcc -Wall -g ~/Downloads/contrib/prog.c
> $ ./gdb-7.4/gdb/gdb ./a.out
> 
> (gdb) backtrace
> #0  main () at /home/unknown/Downloads/contrib/prog.c:3
> (gdb) set backtrace filename-display relative
> (gdb) backtrace
> #0  main () at prog.c:3
> 
> As I remember the difference between "basename" and "relative" option
> was explained some time ago in this thread.

Well, the difference between them is what I need.  Could you please
point to the message where that was explained?

> +If backtraces isn't easy to read due to a long absolute filename record and
                 ^^^^^
"aren't"

Thanks.


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