diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-07-09 20:30:59 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-07-09 20:30:59 +0000 |
commit | c0ac0ec78df5972b67b7048c85440c68764d3c8e (patch) | |
tree | a765f0f9fa8c516626ec18b1b5d8b6066d647942 /gdb/testsuite/gdb.base/dump.exp | |
parent | e0452928e8435b2b7614a672a163cbd3c666d695 (diff) | |
download | gdb-c0ac0ec78df5972b67b7048c85440c68764d3c8e.zip gdb-c0ac0ec78df5972b67b7048c85440c68764d3c8e.tar.gz gdb-c0ac0ec78df5972b67b7048c85440c68764d3c8e.tar.bz2 |
gdb/
Report error on inaccessible memory.
* cli/cli-dump.c: Include gdbcore.h.
(dump_memory_to_file): Call read_memory instead of target_read_memory.
gdb/testsuite/
* gdb.base/dump.exp (inaccessible memory is reported): New test.
Diffstat (limited to 'gdb/testsuite/gdb.base/dump.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/dump.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp index 072fcfd..4e616aa 100644 --- a/gdb/testsuite/gdb.base/dump.exp +++ b/gdb/testsuite/gdb.base/dump.exp @@ -58,6 +58,10 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable ${op gdb_exit gdb_start gdb_reinitialize_dir $srcdir/$subdir + +gdb_test "dump mem /dev/null 0x10 0x20" "Cannot access memory at address 0x10" \ + "inaccessible memory is reported" + gdb_load ${binfile} # Clean up any stale output files from previous test runs |