aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/break1.c
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2014-10-22 09:24:25 +0000
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-11-13 10:20:42 +0100
commit3b377a3aa772bf1214efba8a98cec59e2d7ad734 (patch)
treed0934a1fdfebc00706cb1e04ecbf4b54a3e7230a /gdb/testsuite/gdb.base/break1.c
parente444df73e954bf24d9dc6a4eaeb5153b3faee973 (diff)
downloadgdb-3b377a3aa772bf1214efba8a98cec59e2d7ad734.zip
gdb-3b377a3aa772bf1214efba8a98cec59e2d7ad734.tar.gz
gdb-3b377a3aa772bf1214efba8a98cec59e2d7ad734.tar.bz2
Drop non-prototype C function header variants: 'break' test case
Remove old-style function headers from break.c and break1.c. Adjust break.exp accordingly; in particular eliminate references to the removed locations "breakpoint 9, 13, and 16" from break.exp. gdb/testsuite/ChangeLog: * gdb.base/break.c: Remove #ifdef PROTOTYPES, keep prototyped variant. * gdb.base/break1.c: Likewise. * gdb.base/break.exp: Drop references to removed code.
Diffstat (limited to 'gdb/testsuite/gdb.base/break1.c')
-rw-r--r--gdb/testsuite/gdb.base/break1.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.base/break1.c b/gdb/testsuite/gdb.base/break1.c
index e536b72..d8060f3 100644
--- a/gdb/testsuite/gdb.base/break1.c
+++ b/gdb/testsuite/gdb.base/break1.c
@@ -53,14 +53,7 @@ int some_variable;
These functions are in a separate source file to prevent an
optimizing compiler from inlining them and optimizing them away. */
-#ifdef PROTOTYPES
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) { 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; { values[0].a_field = d; } /* set breakpoint 13 here */
-#endif