diff options
author | Andrew Burgess <aburgess@broadcom.com> | 2012-10-01 12:02:13 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@broadcom.com> | 2012-10-01 12:02:13 +0000 |
commit | b3dc46ff7cf43135228173839e4c7985b1cc2bb3 (patch) | |
tree | 1e80d17d38d8fac8f25136d272cb48f173e90703 /gdb/target.c | |
parent | 4fc0b46e62cec696390862c9eb7d80b35d24f0f8 (diff) | |
download | gdb-b3dc46ff7cf43135228173839e4c7985b1cc2bb3.zip gdb-b3dc46ff7cf43135228173839e4c7985b1cc2bb3.tar.gz gdb-b3dc46ff7cf43135228173839e4c7985b1cc2bb3.tar.bz2 |
http://sourceware.org/ml/gdb-patches/2012-09/msg00568.html
gdb/ChangeLog
* target.c (simple_search_memory): Include access length in
warning message.
gdb/gdbserver/ChangeLog
* server.c (handle_search_memory_1): Include access length in
warning message.
gdb/testsuite/ChangeLog
Test find command on unmapped memory.
* gdb.base/find-unmapped.c: New file.
* gdb.base/find-unmapped.exp: New file.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/target.c b/gdb/target.c index 1fc8802..861e6a6 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -2874,8 +2874,9 @@ simple_search_memory (struct target_ops *ops, if (target_read (ops, TARGET_OBJECT_MEMORY, NULL, search_buf, start_addr, search_buf_size) != search_buf_size) { - warning (_("Unable to access target memory at %s, halting search."), - hex_string (start_addr)); + warning (_("Unable to access %s bytes of target " + "memory at %s, halting search."), + pulongest (search_buf_size), hex_string (start_addr)); do_cleanups (old_cleanups); return -1; } @@ -2928,8 +2929,9 @@ simple_search_memory (struct target_ops *ops, search_buf + keep_len, read_addr, nr_to_read) != nr_to_read) { - warning (_("Unable to access target " + warning (_("Unable to access %s bytes of target " "memory at %s, halting search."), + plongest (nr_to_read), hex_string (read_addr)); do_cleanups (old_cleanups); return -1; |