diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-11-28 16:04:00 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-11-28 16:04:00 +0000 |
commit | f556d5e59d4d48060f958a084e7ddcf25fe99d5c (patch) | |
tree | 42b986e43b420a35fcb66f9f524e84e807082721 /gdb | |
parent | fcfcc2b53dea9fe3d32a9db3c197d727fb5d5769 (diff) | |
download | gdb-f556d5e59d4d48060f958a084e7ddcf25fe99d5c.zip gdb-f556d5e59d4d48060f958a084e7ddcf25fe99d5c.tar.gz gdb-f556d5e59d4d48060f958a084e7ddcf25fe99d5c.tar.bz2 |
* gdb.base/break.c (main): Call malloc.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 95007e9..40685ea 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,4 +1,6 @@ -2006-11-28 Nathan Sidwell <nathan@codesourcery.com> +2006-11-27 Nathan Sidwell <nathan@codesourcery.com> + + * gdb.base/break.c (main): Call malloc. * gdb.threads/linux-dp.exp: Read thread table before and after creating each philosopher and verify it. diff --git a/gdb/testsuite/gdb.base/break.c b/gdb/testsuite/gdb.base/break.c index db8dbdf..2c69d8b 100644 --- a/gdb/testsuite/gdb.base/break.c +++ b/gdb/testsuite/gdb.base/break.c @@ -87,6 +87,10 @@ char *argv[], **envp; set_debug_traps(); /* set breakpoint 5 here */ breakpoint(); #endif + /* We're used by a test that requires malloc, so make sure it is + in the executable. */ + (void)malloc (1); + if (argc == 12345) { /* an unlikely value < 2^16, in case uninited */ /* set breakpoint 6 here */ fprintf (stderr, "usage: factorial <number>\n"); return 1; |