From: Hui Zhu <teawater@gmail.com>
To: Hui Zhu <hui_zhu@mentor.com>
Cc: Yao Qi <yao@codesourcery.com>,
gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Fix gdb.base/shreloc.exp: (msymbol) relocated functions have different addresses fail in cygwin
Date: Mon, 07 Oct 2013 09:28:00 -0000 [thread overview]
Message-ID: <CANFwon2TUjokBtpaFn0iqCpKxvKDpDHtvhtzE2YBs3pAx-4ABA@mail.gmail.com> (raw)
In-Reply-To: <52316D0C.9000707@mentor.com>
Ping.
Thanks,
Hui
On Thu, Sep 12, 2013 at 3:28 PM, Hui Zhu <hui_zhu@mentor.com> wrote:
> Hi Yao,
>
> Thanks for your review.
>
>
> On 09/12/13 14:49, Yao Qi wrote:
>>
>> On 09/12/2013 02:31 PM, Hui Zhu wrote:
>>>
>>> -proc get_msym_addrs { var msymfile } {
>>> +proc get_msym_addrs { var msymfile { plus_var "" } } {
>>
>>
>> 'plus_var' is not good candidate for parameter name. I'd call it 'mst'
>> or 'msym_type'.
>
>
> Fixed.
>
>
>>
>>> # Extract the list of values for symbols matching var in the
>>> # minimal symbol output file
>>>
>>> global gdb_prompt hex
>>> set result ""
>>>
>>> - send_gdb "shell grep -E \" ${var}(\[ \t\]+.*)?\$\" ${msymfile}\n"
>>> + if { "${plus_var}" == "" } {
>>> + send_gdb "shell grep -E \" ${var}(\[ \t\]+.*)?\$\" ${msymfile}\n"
>>> + } else {
>>> + send_gdb "shell grep -E \" ${plus_var} .* ${var}(\[ \t\]+.*)?\$\"
>>> ${msymfile}\n"
>>> + }
>>
>>
>> This condition checking is not necessary, we can do
>>
>> send_gdb "shell grep -E \"${plus_var} ${var}(\[ \t\]+.*)?\$\"
>> ${msymfile}\n"
>
>
> Because for the output format is: [ 7] T 0x2aaaaacd058a fn_1 section .text
> shreloc1.c
> It need a ".*" after "T". So I change "T" to "T.*" to handle it.
>
> Post a new version according to your comments.
>
> Best,
>
> Hui
>
>
> 2013-09-12 Hui Zhu <hui@codesourcery.com>
>
> * gdb.base/shreloc.exp (get_msym_addrs): Add argument "msym_type".
>
> (check_different): Ditto.
> ((msymbol) relocated functions have different addresses): Add
> argument 'T.*' when call check_different.
next prev parent reply other threads:[~2013-10-07 9:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-09 8:41 Hui Zhu
2013-09-09 13:46 ` Yao Qi
2013-09-09 14:27 ` Hui Zhu
2013-09-12 6:31 ` Hui Zhu
2013-09-12 6:50 ` Yao Qi
2013-09-12 7:28 ` Hui Zhu
2013-10-07 9:28 ` Hui Zhu [this message]
2013-11-24 12:14 ` Fwd: " Hui Zhu
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=CANFwon2TUjokBtpaFn0iqCpKxvKDpDHtvhtzE2YBs3pAx-4ABA@mail.gmail.com \
--to=teawater@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=hui_zhu@mentor.com \
--cc=yao@codesourcery.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