20c6f1e176
I find some gdb.python tests fail on arm-none-eabi target, because the tests assume that memory on address 0x is inaccessible. Some tests (in gdb.base) are aware of this, so do a "x 0" check first. However, the code is copy-n-paste. This patch is to move the "x 0" check to a procedure in lib/gdb.exp, and get needed tests call it. The original code matches pattern "0x0:\[ \t\]*Error accessing memory address 0x0\r\n$gdb_prompt $", but I remove it from the new proc is_address_zero_readable, because GDB doesn't emit such message any more. gdb/testsuite: 2014-08-09 Yao Qi <yao@codesourcery.com> * gdb.base/display.exp: Invoke is_address_zero_readable. * gdb.guile/scm-value.exp (test_value_in_inferior): Likewise. * gdb.python/py-value.exp (test_value_in_inferior): Likewise. * gdb.base/hbreak-unmapped.exp: Return if is_address_zero_readable returns true. * gdb.base/signest.exp: Likewise. * gdb.base/signull.exp: Likewise. * gdb.base/sigbpt.exp: Likewise. * gdb.guile/scm-disasm.exp: Do the test if is_address_zero_readable returns false. * gdb.guile/scm-pretty-print.exp (run_lang_tests): Likewise. * gdb.python/py-arch.exp: Likewise. * gdb.python/py-prettyprint.exp (run_lang_tests): Likewise. * lib/gdb.exp (is_address_zero_readable): New proc. |
||
---|---|---|
.. | ||
lib-types.cc | ||
lib-types.exp | ||
Makefile.in | ||
py-arch.c | ||
py-arch.exp | ||
py-block.c | ||
py-block.exp | ||
py-breakpoint.c | ||
py-breakpoint.exp | ||
py-cmd.c | ||
py-cmd.exp | ||
py-error.exp | ||
py-error.py | ||
py-events-shlib.c | ||
py-events.c | ||
py-events.exp | ||
py-events.py | ||
py-evsignal.exp | ||
py-evthreads.c | ||
py-evthreads.exp | ||
py-explore-cc.exp | ||
py-explore.c | ||
py-explore.cc | ||
py-explore.exp | ||
py-finish-breakpoint.c | ||
py-finish-breakpoint.exp | ||
py-finish-breakpoint.py | ||
py-finish-breakpoint2.cc | ||
py-finish-breakpoint2.exp | ||
py-finish-breakpoint2.py | ||
py-frame-args.c | ||
py-frame-args.exp | ||
py-frame-args.py | ||
py-frame-inline.c | ||
py-frame-inline.exp | ||
py-frame.c | ||
py-frame.exp | ||
py-framefilter-gdb.py.in | ||
py-framefilter-mi.c | ||
py-framefilter-mi.exp | ||
py-framefilter.c | ||
py-framefilter.exp | ||
py-framefilter.py | ||
py-function.exp | ||
py-inferior.c | ||
py-inferior.exp | ||
py-infthread.c | ||
py-infthread.exp | ||
py-linetable.c | ||
py-linetable.exp | ||
py-linetable.S | ||
py-mi.exp | ||
py-objfile-script-gdb.py.in | ||
py-objfile-script.c | ||
py-objfile-script.exp | ||
py-objfile.c | ||
py-objfile.exp | ||
py-parameter.exp | ||
py-pp-integral.c | ||
py-pp-integral.exp | ||
py-pp-integral.py | ||
py-pp-maint.c | ||
py-pp-maint.exp | ||
py-pp-maint.py | ||
py-pp-re-notag.c | ||
py-pp-re-notag.exp | ||
py-pp-re-notag.py | ||
py-prettyprint.c | ||
py-prettyprint.exp | ||
py-prettyprint.py | ||
py-progspace.c | ||
py-progspace.exp | ||
py-prompt.c | ||
py-prompt.exp | ||
py-section-script.c | ||
py-section-script.exp | ||
py-section-script.py | ||
py-shared-sl.c | ||
py-shared.c | ||
py-shared.exp | ||
py-strfns.c | ||
py-strfns.exp | ||
py-symbol.c | ||
py-symbol.exp | ||
py-symtab.exp | ||
py-sync-interp.c | ||
py-sync-interp.exp | ||
py-template.cc | ||
py-template.exp | ||
py-type.c | ||
py-type.exp | ||
py-typeprint.cc | ||
py-typeprint.exp | ||
py-typeprint.py | ||
py-value-cc.cc | ||
py-value-cc.exp | ||
py-value.c | ||
py-value.exp | ||
py-xmethods.cc | ||
py-xmethods.exp | ||
py-xmethods.py | ||
python-1.c | ||
python.c | ||
python.exp | ||
source1 | ||
source2.py |