This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v4] gdb: ADI support


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"

> (gdb) PASS: gdb.arch/sparc64-adi.exp: examine ADI
> adi a/100 shmaddr=7^M

gdb_test_no_output "adi a/100 shmaddr=${newadi}" "assign ADI"

> (gdb) PASS: gdb.arch/sparc64-adi.exp: assign ADI
> adi x/100 shmaddr^M
> 0xfff800010002c000:     7 7 ^M

gdb_test "adi x/100 shmaddr" "${hex}00:\t${newadi} ${newadi}" \
         "examine new ADI"

> (gdb) PASS: gdb.arch/sparc64-adi.exp: examine new ADI
> adi a/100 shmaddr=0x0^M

gdb_test_no_output "adi a/100 shmaddr=0x0" "reset 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"

> (gdb) PASS: gdb.arch/sparc64-adi.exp: continue to sigsegv

-- 
Yao (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]