diff options
author | Daniel Jacobowitz <drow@false.org> | 2009-11-12 19:39:53 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2009-11-12 19:39:53 +0000 |
commit | 87728fa060cd21bf91473bf56b0d931b96efde3b (patch) | |
tree | 5a6ded21f68e762d75dd137e47b43bfd24195308 /gdb | |
parent | b67c692ff9a371eb1efe014cbadf5cd5a17acbfe (diff) | |
download | gdb-87728fa060cd21bf91473bf56b0d931b96efde3b.zip gdb-87728fa060cd21bf91473bf56b0d931b96efde3b.tar.gz gdb-87728fa060cd21bf91473bf56b0d931b96efde3b.tar.bz2 |
testsuite/
* gdb.base/break1.c (struct some_struct, values): Move earlier.
(marker4): Reference values.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break1.c | 22 |
2 files changed, 16 insertions, 11 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5385b03..b03b420 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2009-11-12 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.base/break1.c (struct some_struct, values): Move earlier. + (marker4): Reference values. + +2009-11-12 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.base/macscp.exp: Avoid the first FAIL if macro information is missing. diff --git a/gdb/testsuite/gdb.base/break1.c b/gdb/testsuite/gdb.base/break1.c index 4f0def0..1b8c3c6 100644 --- a/gdb/testsuite/gdb.base/break1.c +++ b/gdb/testsuite/gdb.base/break1.c @@ -19,6 +19,15 @@ /* The code for this file was extracted from the gdb testsuite testcase "break.c". */ +/* A structure we use for field name completion tests. */ +struct some_struct +{ + int a_field; + int b_field; +}; + +struct some_struct values[50]; + /* The following functions do nothing useful. They are included simply as places to try setting breakpoints at. They are explicitly "one-line functions" to verify that this case works @@ -31,19 +40,10 @@ int marker1 (void) { return (0); } /* set breakpoint 15 here */ int marker2 (int a) { return (1); } /* set breakpoint 8 here */ void marker3 (char *a, char *b) {} /* set breakpoint 17 here */ -void marker4 (long d) {} /* set breakpoint 14 here */ +void marker4 (long d) { values[0].a_field = d; } /* set breakpoint 14 here */ #else int marker1 () { return (0); } /* set breakpoint 16 here */ int marker2 (a) int a; { return (1); } /* set breakpoint 9 here */ void marker3 (a, b) char *a, *b; {} /* set breakpoint 18 here */ -void marker4 (d) long d; {} /* set breakpoint 13 here */ +void marker4 (d) long d; { values[0].a_field = d; } /* set breakpoint 13 here */ #endif - -/* A structure we use for field name completion tests. */ -struct some_struct -{ - int a_field; - int b_field; -}; - -struct some_struct values[50]; |