From: "Andrew Burgess" <aburgess@broadcom.com>
To: "Jan Kratochvil" <jan.kratochvil@redhat.com>
Cc: "Pedro Alves" <palves@redhat.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Display full file path in MI style disassembly listing
Date: Thu, 18 Oct 2012 09:49:00 -0000 [thread overview]
Message-ID: <507FD088.4030101@broadcom.com> (raw)
In-Reply-To: <20121018064825.GA15668@host2.jankratochvil.net>
On 18/10/2012 7:48 AM, Jan Kratochvil wrote:
> On Wed, 17 Oct 2012 20:13:40 +0200, Pedro Alves wrote:
>> On 10/05/2012 01:43 PM, Jan Kratochvil wrote:
>>> On Thu, 04 Oct 2012 18:09:28 +0200, Andrew Burgess wrote:
>>>> The patch below tries to use the fullname when it can, and falls back to the
>>>> shorter name if it can't figure out the full name.
>>>
>>> FYI this is a variant of not yet checked in more featured pathset:
>>> [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)
>>
>> I'm not sure I understand the relation between the patches.
I agree that though both patches relate to display of paths they are not
directly related.
I took a look at the original patch. I it changes one place (in
backtrace) where we display symtab->filename. There are several places
where we display symtab->filename, including the one I changed.
Either, (a) we plan to merge the original patch almost as is, in which
case it only changes the backtrace code, leaving my patch free to be
applied, or (b) we plan to extend the original patch to cover more/all
of the places we display symtab->filename, in which case, we'd have to
consider each of those places in turn and make a suitable change.
If (a) then my patch could go in, if (b) then it doesn't feel like my
patch changes things that much, I certainly don't add any new functions
or anything like that, that would make doing task (b) any harder later on.
>> I think we should
>> output a "fullname" field for MI, like we do for breakpoints.
I would be happy to take this approach as a compromise.
> Probably, it is true I do not know much how MI frontends display the data.
The frontend (eclipse in this case) wants to open the file in order to
display the contents. Using just symtab->filename is not always
specific enough to identify a unique file.
I originally switched to only displaying the full path as this code is
only used for MI type output or when we fail to open the file, but I can
see that displaying the fullpath in addition might be cleaner.
Jan, if I post a patch that adds a fullpath would you be happy with that
as a solution?
Thanks,
Andrew
>
>
> Thanks,
> Jan
>
>
>
next prev parent reply other threads:[~2012-10-18 9:49 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-04 16:09 Andrew Burgess
2012-10-05 12:44 ` Jan Kratochvil
2012-10-07 14:28 ` Andrew Burgess
2012-10-07 14:34 ` Jan Kratochvil
2012-10-07 15:16 ` Joel Brobecker
2012-10-17 17:20 ` Tom Tromey
2012-10-17 18:13 ` Pedro Alves
2012-10-18 6:48 ` Jan Kratochvil
2012-10-18 9:49 ` Andrew Burgess [this message]
2012-10-18 10:17 ` Pedro Alves
2012-10-18 18:06 ` André Pönitz
2012-10-18 13:45 ` Jan Kratochvil
2012-10-17 17:16 ` Tom Tromey
2012-10-18 9:34 ` Andrew Burgess
2012-10-18 13:45 ` Jan Kratochvil
2012-10-17 18:25 ` Pedro Alves
2012-10-22 21:26 ` Add fullname field in disassembly output (Was Re: [PATCH] Display full file path in MI style disassembly listing) Andrew Burgess
2012-10-31 14:54 ` Add fullname field in disassembly output Pedro Alves
2012-11-02 10:59 ` Andrew Burgess
2012-11-02 15:32 ` Pedro Alves
2012-11-06 12:14 ` Andrew Burgess
2012-11-06 17:44 ` Eli Zaretskii
2012-11-07 15:08 ` Andrew Burgess
2012-11-07 15:48 ` Pedro Alves
2012-11-08 21:30 ` Tom Tromey
2012-11-09 13:26 ` Andrew Burgess
2012-11-03 7:42 ` Eli Zaretskii
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=507FD088.4030101@broadcom.com \
--to=aburgess@broadcom.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=palves@redhat.com \
/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