This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v4] gdb: ADI support
- From: Wei-min Pan <weimin dot pan at oracle dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 1 Aug 2017 10:41:48 -0700
- Subject: Re: [PATCH v4] gdb: ADI support
- Authentication-results: sourceware.org; auth=none
- References: <1500424890-112103-1-git-send-email-weimin.pan@oracle.com> <86o9s8pmyg.fsf@gmail.com> <ca2fbf2e-7740-ee34-ac4f-471458991cba@oracle.com> <86d18mqgd1.fsf@gmail.com> <7062f348-98f9-fef6-aa76-02308abf9c01@oracle.com> <CAH=s-PPxiVXa5rBUGsj0aMYiuV9UD2iA7x1CTV_N=Kb7eZXE6g@mail.gmail.com> <e10b282d-4681-80e7-6a44-a44f579831db@oracle.com> <868tj3ml8s.fsf@gmail.com>
Thanks for your suggestions. There are 3 failures however.
On 8/1/2017 7:10 AM, Yao Qi wrote:
Wei-min Pan <weimin.pan@oracle.com> writes:
(gdb) PASS: gdb.arch/sparc64-adi.exp: continue to breakpoint: continue
to line breakpoint in main
adi x shmaddr^M
0xfff800010002c000: 0 ^M
gdb_test "adi x shmaddr" "${hex}00:\t0" "examine ADI"
It will pass if changed to
gdb_test "adi x shmaddr" "${hex}00:.*\t0.*" "examine ADI"
gdb_test "adi x/100 shmaddr" "${hex}00:\t${newadi} ${newadi}" \
"examine new ADI"
It will pass if changed to:
gdb_test "adi x/100 shmaddr" "${hex}00:.*\t${newadi} ${newadi}.*" \
"examine new ADI"
(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_test "continue" \
[multi_line "Program received signal SIGSEGV, Segmentation fault" \
"ADI precise mismatch while accessing address $hex" ] \
"continue to sigsegv"
And it will pass if changed to
gdb_test "continue" \
[multi_line ".*Program received signal SIGSEGV, Segmentation
fault.*" \
".*ADI precise mismatch while accessing address
$hex.*" ] \
"continue to sigsegv"
(gdb) PASS: gdb.arch/sparc64-adi.exp: continue to sigsegv