From bcb27c9f96671686be29769fe918151ee96e9a84 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 24 Jul 2003 18:45:43 +0000 Subject: [PATCH] From Kei Sakamoto : * gdb.base/relocate.c (dummy): New padding array. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/relocate.c | 4 ++++ 2 files changed, 9 insertions(+) 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 + + From Kei Sakamoto : + * gdb.base/relocate.c (dummy): New padding array. + 2003-07-23 Michael Snyder * 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; -- 2.30.2