summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace/collection.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-02-07 12:14:14 +0000
committerPedro Alves <palves@redhat.com>2011-02-07 12:14:14 +0000
commit764880b7edb584d2e037474a40fd06f17e6c5fd5 (patch)
tree7347307cef1e7362e7a86b6ecb786384be4e643a /gdb/testsuite/gdb.trace/collection.c
parent32a96f364b9e54a5f42d8367ef770efead63cd50 (diff)
downloadbinutils-gdb-764880b7edb584d2e037474a40fd06f17e6c5fd5.tar.gz
gdb/server/
* server.c (gdb_read_memory): Change return semantics to allow partial transfers. (handle_search_memory_1): Adjust. (process_serial_event) <'m' packet>: Handle partial transfers. * tracepoint.c (traceframe_read_mem): Handle partial transfers. gdb/testsuite/ * gdb.trace/collection.c (global_pieces): New. * gdb.trace/collection.exp (gdb_collect_global_in_pieces_test): New procedure. (gdb_trace_collection_test): Call it.
Diffstat (limited to 'gdb/testsuite/gdb.trace/collection.c')
-rw-r--r--gdb/testsuite/gdb.trace/collection.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/collection.c b/gdb/testsuite/gdb.trace/collection.c
index 6fb71338a40..4a58170be1a 100644
--- a/gdb/testsuite/gdb.trace/collection.c
+++ b/gdb/testsuite/gdb.trace/collection.c
@@ -27,6 +27,14 @@ test_struct globalstruct;
test_struct *globalp;
int globalarr[16];
+struct global_pieces {
+ unsigned int a;
+ unsigned int b;
+} global_pieces =
+ {
+ 0x12345678, 0x87654321
+ };
+
/*
* Additional globals used in arithmetic tests
*/