aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2012-10-01 12:02:13 +0000
committerAndrew Burgess <aburgess@broadcom.com>2012-10-01 12:02:13 +0000
commitb3dc46ff7cf43135228173839e4c7985b1cc2bb3 (patch)
tree1e80d17d38d8fac8f25136d272cb48f173e90703 /gdb/gdbserver
parent4fc0b46e62cec696390862c9eb7d80b35d24f0f8 (diff)
downloadgdb-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/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/server.c9
2 files changed, 10 insertions, 4 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 672a87d..8bfbe9c 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-01 Andrew Burgess <aburgess@broadcom.com>
+
+ * server.c (handle_search_memory_1): Include access length in
+ warning message.
+
2012-09-05 Michael Brandt <michael.brandt@axis.com>
* linux-crisv32-low.c: Fix compile errors.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 547552f..61a7313 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -735,8 +735,9 @@ handle_search_memory_1 (CORE_ADDR start_addr, CORE_ADDR search_space_len,
if (gdb_read_memory (start_addr, search_buf, search_buf_size)
!= search_buf_size)
{
- warning ("Unable to access target memory at 0x%lx, halting search.",
- (long) start_addr);
+ warning ("Unable to access %ld bytes of target "
+ "memory at 0x%lx, halting search.",
+ (long) search_buf_size, (long) start_addr);
return -1;
}
@@ -787,9 +788,9 @@ handle_search_memory_1 (CORE_ADDR start_addr, CORE_ADDR search_space_len,
if (gdb_read_memory (read_addr, search_buf + keep_len,
nr_to_read) != search_buf_size)
{
- warning ("Unable to access target memory "
+ warning ("Unable to access %ld bytes of target memory "
"at 0x%lx, halting search.",
- (long) read_addr);
+ (long) nr_to_read, (long) read_addr);
return -1;
}