From: Wei-min Pan <weimin.pan@oracle.com>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH v4] gdb: ADI support
Date: Fri, 28 Jul 2017 16:34:00 -0000 [thread overview]
Message-ID: <e10b282d-4681-80e7-6a44-a44f579831db@oracle.com> (raw)
In-Reply-To: <CAH=s-PPxiVXa5rBUGsj0aMYiuV9UD2iA7x1CTV_N=Kb7eZXE6g@mail.gmail.com>
On 7/28/2017 3:30 AM, Yao Qi wrote:
> On Thu, Jul 27, 2017 at 5:34 PM, Wei-min Pan <weimin.pan@oracle.com> wrote:
>
>> The first "adi x shmaddr" command is mainly used to test that the ADI
>> information is available
>> at the address. Its value which can be anything is not tested. The second
>> "examine" command,
>> on the other hand, makes sure the new ADI version tag is being set correctly
>> at the address.
>>
> Can you show me the output of these adi commands?
> (the output in gdb.log for example)Then, I can give some
> concrete suggestions on the patterns to match output
> in these tests.
>
Here are the outputs of these commands. Thanks.
....
Breakpoint 2, main () at
/home/wepan/work/binutils-gdb/gdb/testsuite/gdb.arch/sparc64-adi.c:86^M
86 if (memory_fill (shmaddr, SHMSIZE, PAT) != 0) /* line
breakpoint here */^M
(gdb) PASS: gdb.arch/sparc64-adi.exp: continue to breakpoint: continue
to line breakpoint in main
adi x shmaddr^M
0xfff800010002c000: 0 ^M
(gdb) PASS: gdb.arch/sparc64-adi.exp: examine ADI
adi a/100 shmaddr=7^M
(gdb) PASS: gdb.arch/sparc64-adi.exp: assign ADI
adi x/100 shmaddr^M
0xfff800010002c000: 7 7 ^M
(gdb) PASS: gdb.arch/sparc64-adi.exp: examine new ADI
adi a/100 shmaddr=0x0^M
(gdb) PASS: gdb.arch/sparc64-adi.exp: reset ADI
continue^M
Continuing.^M
^M
Program received signal SIGSEGV, Segmentation fault^M
ADI precise mismatch while accessing address 0xfff8000100048000.^M
0xfff8000100129f38 in adi_set_version () from /usr/lib64/libadi.so^M
(gdb) PASS: gdb.arch/sparc64-adi.exp: continue to sigsegv
next prev parent reply other threads:[~2017-07-28 16:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-19 0:49 Weimin Pan
2017-07-25 15:16 ` Yao Qi
2017-07-25 15:31 ` Jose E. Marchesi
2017-07-25 16:44 ` Yao Qi
2017-07-26 21:12 ` Wei-min Pan
2017-07-27 11:17 ` Yao Qi
2017-07-27 16:34 ` Wei-min Pan
2017-07-28 10:30 ` Yao Qi
2017-07-28 16:34 ` Wei-min Pan [this message]
[not found] ` <868tj3ml8s.fsf@gmail.com>
2017-08-01 17:41 ` Wei-min Pan
2017-07-25 19:19 Weimin Pan
2017-07-25 20:18 ` Simon Marchi
2017-07-25 21:03 ` Jose E. Marchesi
2017-07-25 22:37 Weimin Pan
2017-08-01 23:30 Weimin Pan
2017-08-02 7:55 ` Yao Qi
2017-08-02 18:00 ` Wei-min Pan
2017-08-04 11:57 ` Yao Qi
2017-08-04 22:46 Weimin 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=e10b282d-4681-80e7-6a44-a44f579831db@oracle.com \
--to=weimin.pan@oracle.com \
--cc=gdb-patches@sourceware.org \
--cc=qiyaoltc@gmail.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