From: Simon Marchi <simon.marchi@ericsson.com>
To: "Tedeschi, Walfred" <walfred.tedeschi@intel.com>,
Simon Marchi <simon.marchi@polymtl.ca>
Cc: "palves@redhat.com" <palves@redhat.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH V4] symlookup: improves symbol lookup when a file is specified.
Date: Fri, 20 Oct 2017 14:28:00 -0000 [thread overview]
Message-ID: <ac5f215e-1e6f-be19-07e7-b40a2dda0aba@ericsson.com> (raw)
In-Reply-To: <AC542571535E904D8E8ADAE745D60B197A9A519F@IRSMSX104.ger.corp.intel.com>
On 2017-10-20 03:45 AM, Tedeschi, Walfred wrote:
> Hi Simon,
>
> Thanks for your review!
> For all the comment above I agree, Thanks again!
>
> For the one below there are different point of views.
> How I see it: Very few sane people will add a symbols in a shared library that
> will collide like the case we presented here. If one does so how can the debugger
> help?
I think one usual use case is plugins implemented with shared library. Although
the data symbols will commonly be static, and the plugin will only expose some
function symbols.
> Providing the same value as the runtime or linker does?
> This one user already knows.
> Or providing what the debug information provides as value created by the library itself.
> In final end both are right. :|
>
> But when specifying the scope if user is provided the value of the debug info it should
> be easier to spot that there is something weird going on in the code.
I think what you just said summarizes the problem well and I think it makes sense.
I just don't think I have enough experience about symbol handling to understand
the situation fully. Could another maintainer with more experience about symbols
give the final ok?
> That was my rationale.
>
> Perhaps, the debugger could here even provide a new command to analyze those colliding symbols.
Yes, and maybe a way to print all symbols with a given name, with some info
about where they come from.
Simon
next prev parent reply other threads:[~2017-10-20 14:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-18 9:01 Walfred Tedeschi
2017-10-19 19:07 ` Simon Marchi
2017-10-20 7:45 ` Tedeschi, Walfred
2017-10-20 14:28 ` Simon Marchi [this message]
2017-10-20 15:29 ` Pedro Alves
2017-10-20 15:54 ` [PATCH] Enhance gdb.base/print-file-var.exp testcase (Re: [PATCH V4] symlookup: improves symbol lookup when a file is specified.) Pedro Alves
2017-10-21 10:48 ` [PATCH V4] symlookup: improves symbol lookup when a file is specified Tedeschi, Walfred
2017-10-23 9:03 ` Tedeschi, Walfred
2017-10-23 10:07 ` Pedro Alves
2017-10-25 9:39 ` Tedeschi, Walfred
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=ac5f215e-1e6f-be19-07e7-b40a2dda0aba@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=simon.marchi@polymtl.ca \
--cc=walfred.tedeschi@intel.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