aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-07-24 18:45:43 +0000
committerDaniel Jacobowitz <drow@false.org>2003-07-24 18:45:43 +0000
commitbcb27c9f96671686be29769fe918151ee96e9a84 (patch)
treef70d13d148e659749871faef2abe1f130b58d835 /gdb/testsuite/gdb.base
parent705b278bd141be8d3abcdb8de3ea05e9cd639d69 (diff)
downloadgdb-bcb27c9f96671686be29769fe918151ee96e9a84.zip
gdb-bcb27c9f96671686be29769fe918151ee96e9a84.tar.gz
gdb-bcb27c9f96671686be29769fe918151ee96e9a84.tar.bz2
From Kei Sakamoto <sakamoto.kei@renesas.com>:
* gdb.base/relocate.c (dummy): New padding array.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/relocate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/relocate.c b/gdb/testsuite/gdb.base/relocate.c
index d202392..df8545d 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;