aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2011-05-14 06:06:36 +0000
committerYao Qi <yao@codesourcery.com>2011-05-14 06:06:36 +0000
commitba4a8bdd81e55d45b97cdf9b91eb111a7ac0d3f9 (patch)
treea21c2866c2416e2391ecfa1c97b1647c7f8e4703 /gdb
parent9f7bc58762d1cf691e917f9116961aa3faaf721d (diff)
downloadgdb-ba4a8bdd81e55d45b97cdf9b91eb111a7ac0d3f9.zip
gdb-ba4a8bdd81e55d45b97cdf9b91eb111a7ac0d3f9.tar.gz
gdb-ba4a8bdd81e55d45b97cdf9b91eb111a7ac0d3f9.tar.bz2
2011-05-14 Yao Qi <yao@codesourcery.com>
* gdb.trace/tfile.c(add_memory_block): Store address in unsigned type.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.trace/tfile.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 06a493f..ba3c9f3 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-14 Yao Qi <yao@codesourcery.com>
+
+ * gdb.trace/tfile.c(add_memory_block): Store address in unsigned
+ type.
+
2011-05-13 Doug Evans <dje@google.com>
* gdb.python/py-objfile-script.exp: New file.
diff --git a/gdb/testsuite/gdb.trace/tfile.c b/gdb/testsuite/gdb.trace/tfile.c
index e9c1831..11c79d9 100644
--- a/gdb/testsuite/gdb.trace/tfile.c
+++ b/gdb/testsuite/gdb.trace/tfile.c
@@ -49,13 +49,13 @@ void
add_memory_block (char *addr, int size)
{
short short_x;
- long long ll_x;
+ unsigned long long ll_x;
*((char *) trptr) = 'M';
trptr += 1;
- ll_x = (long) addr;
- memcpy (trptr, &ll_x, sizeof (long long));
- trptr += sizeof (long long);
+ ll_x = (unsigned long) addr;
+ memcpy (trptr, &ll_x, sizeof (unsigned long long));
+ trptr += sizeof (unsigned long long);
short_x = size;
memcpy (trptr, &short_x, 2);
trptr += 2;