From: Wei-min Pan <weimin.pan@oracle.com>
To: Simon Marchi <simark@simark.ca>
Cc: gdb-patches@sourceware.org, Yao Qi <qiyaoltc@gmail.com>
Subject: Re: [PATCH PR gdb/18071] TLS variables can't be resolved on aarch64-linux-gnu
Date: Thu, 22 Mar 2018 18:18:00 -0000 [thread overview]
Message-ID: <9df4193c-828a-7b27-292f-f2dab84b3efb@oracle.com> (raw)
In-Reply-To: <8c40379beb8ea8756a3b9075ce6bf4c4@simark.ca>
Hi Simon,
On 3/21/2018 9:22 PM, Simon Marchi wrote:
> On 2018-03-19 15:36, Weimin Pan wrote:
>> Yes, printing of a TLS fails on all platforms, not just on aarch64.
>> How about changing the title to:
>>
>> Â Â [PATCH PR gdb/18071] aarch64: "info" command can't resolve TLS
>> variables
>
> Maybe "info address" instead of "info"?
OK.
>
>>> Is this code equivalent to calling lookup_minimal_symbol (name,
>>> NULL, NULL) ? If
>>> so, there's already lookup_bound_minimal_symbol that does the same,
>>> so maybe we
>>> can just drop lookup_minimal_symbol_and_objfile and use
>>> lookup_bound_minimal_symbol.
>>
>> Yes, it turns out lookup_minimal_symbol_and_objfile(name) is
>> equivalent to
>> calling lookup_minimal_symbol (name, NULL, NULL). We can replace the
>> call in
>> info_address_command() with either lookup_minimal_symbol (name, NULL,
>> NULL)
>> or lookup_bound_minimal_symbol(name). Calling either one looks like a
>> better fix.
>>
>>>
>>> We could also just have lookup_minimal_symbol with parameters that
>>> default to nullptr.
>>> It is not clear at all to have lookup_bound_minimal_symbol and
>>> lookup_minimal_symbol
>>> that both return a bound_minimal_symbol, that's quite misleading.
>>
>> I don't know the rational behind having these two functions which get
>> called in
>> quite a few places. Yes, having default arguments for
>> lookup_minimal_symbol()
>> will be another option.
>>
>> Thanks very much for your comments.
>
> Thanks for your patience :). This refactoring can be done in a
> separate patch, to keep this one focused on fixing the bug.
Thank you very much for getting this process moving :) Would you like me
to submit a revised patch which calls
lookup_bound_minimal_symbol instead of lookup_minimal_symbol_and_objfile?
Weimin
>
> Simon
next prev parent reply other threads:[~2018-03-22 18:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-03 0:54 Weimin Pan
2017-11-16 9:13 ` Yao Qi
2017-11-16 14:59 ` Yao Qi
2017-11-16 22:40 ` Wei-min Pan
2017-11-21 15:36 ` Yao Qi
2017-11-29 1:35 ` Weimin Pan
2018-03-17 16:52 ` Simon Marchi
2018-03-19 19:36 ` Weimin Pan
2018-03-22 4:22 ` Simon Marchi
2018-03-22 18:18 ` Wei-min Pan [this message]
2018-03-22 20:16 ` Simon Marchi
2018-03-22 20:49 ` Wei-min Pan
2018-03-24 3:10 ` Simon Marchi
2018-03-24 19:45 ` Wei-min Pan
2018-03-24 19:52 ` Simon Marchi
2018-03-24 20:16 ` Wei-min Pan
2018-03-24 20:44 ` Simon Marchi
2018-03-24 21:42 ` Wei-min Pan
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=9df4193c-828a-7b27-292f-f2dab84b3efb@oracle.com \
--to=weimin.pan@oracle.com \
--cc=gdb-patches@sourceware.org \
--cc=qiyaoltc@gmail.com \
--cc=simark@simark.ca \
/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