diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2014-10-23 14:27:57 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-11-13 10:20:42 +0100 |
commit | e444df73e954bf24d9dc6a4eaeb5153b3faee973 (patch) | |
tree | 12c508954252b97daf64557ca9a6817461dea9f9 | |
parent | 8008f2a759c11cbb37e3cef9b9a4ac3b77e0e4d6 (diff) | |
download | gdb-e444df73e954bf24d9dc6a4eaeb5153b3faee973.zip gdb-e444df73e954bf24d9dc6a4eaeb5153b3faee973.tar.gz gdb-e444df73e954bf24d9dc6a4eaeb5153b3faee973.tar.bz2 |
Drop non-prototype C function header variants: solib1.c
Clean up solib1.c by removing the #ifdef PROTOTYPES conditional.
gdb/testsuite/ChangeLog:
* gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped
variant.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/solib1.c | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 73aff60..ae4d0bc 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com> + * gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped + variant. + +2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com> + * gdb.base/callfuncs.exp (perform_all_tests): Re-indent. 2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com> diff --git a/gdb/testsuite/gdb.base/solib1.c b/gdb/testsuite/gdb.base/solib1.c index 224a93d..c7d17f4 100644 --- a/gdb/testsuite/gdb.base/solib1.c +++ b/gdb/testsuite/gdb.base/solib1.c @@ -3,16 +3,10 @@ the square of its integer argument. */ #if defined(__cplusplus) || defined(__STDCPP__) -extern "C" int -solib_main (int arg) -#else -#ifdef PROTOTYPES -int solib_main (int arg) -#else -int solib_main (arg) - int arg; -#endif +extern "C" #endif +int +solib_main (int arg) { return arg*arg; /* HERE */ } /* STEP */ |