diff options
author | Daniel Jacobowitz <dan@debian.org> | 2003-07-24 18:45:43 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2003-07-24 18:45:43 +0000 |
commit | 506381e276008f646b753b861796775b91c30da4 (patch) | |
tree | 0a901d9562d0f2134ce01717f1b70475bbb2a829 /gdb/testsuite | |
parent | caa79ccd2f86b0354b87f31d92b38e37aea583b9 (diff) | |
download | gdb-506381e276008f646b753b861796775b91c30da4.tar.gz |
From Kei Sakamoto <sakamoto.kei@renesas.com>:
* gdb.base/relocate.c (dummy): New padding array.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/relocate.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0ed3db1d544..1b5595ee707 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-07-24 Daniel Jacobowitz <drow@mvista.com> + + From Kei Sakamoto <sakamoto.kei@renesas.com>: + * gdb.base/relocate.c (dummy): New padding array. + 2003-07-23 Michael Snyder <msnyder@redhat.com> * gdb.base/return2.exp: Don't test long-long return. diff --git a/gdb/testsuite/gdb.base/relocate.c b/gdb/testsuite/gdb.base/relocate.c index d2023920fb4..df8545dc62e 100644 --- a/gdb/testsuite/gdb.base/relocate.c +++ b/gdb/testsuite/gdb.base/relocate.c @@ -1,6 +1,10 @@ static int static_foo = 1; static int static_bar = 2; +/* This padding is just for the benefit of the test harness. It + causes the globals to have different addresses than the functions. */ +int dummy[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + int global_foo = 3; int global_bar = 4; |