This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)
- From: Eli Zaretskii <eliz at gnu dot org>
- To: iam ahal <hal9000ed2k at gmail dot com>
- Cc: tromey at redhat dot com, jan dot kratochvil at redhat dot com, palves at redhat dot com, dje at google dot com, gdb-patches at sourceware dot org, pmuldoon at redhat dot com, brobecker at adacore dot com, drow at false dot org, asmwarrior at gmail dot com
- Date: Sun, 18 Mar 2012 22:46:08 +0200
- Subject: Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)
- References: <BANLkTinD+9_Mkug8o2VhZ03L6XSriL_RKQ@mail.gmail.com> <83fwgzbrp9.fsf@gnu.org> <E1RXQvX-00045Q-Hk@fencepost.gnu.org> <201112061249.47758.pedro@codesourcery.com> <E1RXugC-0005av-VR@fencepost.gnu.org> <m3obvll9hr.fsf@fleche.redhat.com> <E1RYCLT-0000ap-OY@fencepost.gnu.org> <CAA18ub+S+5Tw4D8X=c4=J995Gc7goS_Bm4MfuYqV8BWndoTmrQ@mail.gmail.com> <20120315224504.GA24829@host2.jankratochvil.net> <CAA18ubJ0X4_VS0UjJ2DGx3zMd7ynMw_dg3Eti99O+X4+3dF6hQ@mail.gmail.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.