From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Andrew Burgess <aburgess@broadcom.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patchv2] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)
Date: Mon, 03 Dec 2012 13:21:00 -0000 [thread overview]
Message-ID: <20121203132121.GA31046@host2.jankratochvil.net> (raw)
In-Reply-To: <50BC7AB0.3070204@broadcom.com>
On Mon, 03 Dec 2012 11:10:56 +0100, Andrew Burgess wrote:
> I think we should consider switching some (or all) other places we print
> symtab->filename to use the get_filename_display_from_sal function
> instead.
That was intended, I find the patch useless/buggy without it.
"frame" worked fine but I have found for example this case does not:
(gdb) frame
#0 0x00007ffff637d7d0 in __poll_nocancel () at /usr/src/debug/glibc-2.16-75f0d304/sysdeps/unix/syscall-template.S:81
81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) info line *$pc
Line 81 of "../sysdeps/unix/syscall-template.S" starts at address 0x7ffff637d7c0 <poll> and ends at 0x7ffff637d808 <poll+72>.
> Even if this work is not done in this patch (which would be
> fine with me)
Not with me.
> As such, I would rather the gdb option be "set filename-display" rather
> than "set backtrace filename-display",
I was thinking about such change before but I have left it according to the
original submitters proposal which may match best where the users would search
for it. OTOH when I check now the former thread it even did not come as the
original submitters proposal so it could be changed.
Thanks,
Jan
prev parent reply other threads:[~2012-12-03 13:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-30 18:57 Jan Kratochvil
2012-11-30 20:22 ` Eli Zaretskii
2012-12-01 17:28 ` Jan Kratochvil
2012-12-01 17:33 ` Eli Zaretskii
2012-12-01 17:55 ` Jan Kratochvil
2012-12-05 21:38 ` Tom Tromey
2012-12-06 10:04 ` Jan Kratochvil
2012-11-30 23:09 ` iam ahal
2012-12-01 17:15 ` Jan Kratochvil
2012-12-02 16:39 ` iam ahal
2012-12-03 10:11 ` Andrew Burgess
2012-12-03 13:21 ` Jan Kratochvil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121203132121.GA31046@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=aburgess@broadcom.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox