gdb-981121 : prototypes without `PARAMS'
Philippe De Muyter
phdm@macqel.be
Mon Dec 7 15:59:00 GMT 1998
Compiling gdb-981121 with sysV68's (K&R) cc, I got the following errors :
cc -c -g -I. -I/usr/gnu/tmp/gdb-981121/gdb -I/usr/gnu/tmp/gdb-981121/gdb/config -DHAVE_CONFIG_H -I/usr/gnu/tmp/gdb-981121/gdb/../include/opcode -I/usr/gnu/tmp/gdb-981121/gdb/../readline -I../bfd -I/usr/gnu/tmp/gdb-981121/gdb/../bfd -I/usr/gnu/tmp/gdb-981121/gdb/../include -I../intl -I/usr/gnu/tmp/gdb-981121/gdb/../intl /usr/gnu/tmp/gdb-981121/gdb/blockframe.c
"/usr/gnu/tmp/gdb-981121/gdb/defs.h", line 247: syntax error
cc -c -g -I. -I/usr/gnu/tmp/gdb-981121/gdb -I/usr/gnu/tmp/gdb-981121/gdb/config -DHAVE_CONFIG_H -I/usr/gnu/tmp/gdb-981121/gdb/../include/opcode -I/usr/gnu/tmp/gdb-981121/gdb/../readline -I../bfd -I/usr/gnu/tmp/gdb-981121/gdb/../bfd -I/usr/gnu/tmp/gdb-981121/gdb/../include -I../intl -I/usr/gnu/tmp/gdb-981121/gdb/../intl /usr/gnu/tmp/gdb-981121/gdb/breakpoint.c
"/usr/gnu/tmp/gdb-981121/gdb/gdbthread.h", line 108: syntax error
Here are fixes :
Tue Dec 8 00:34:20 1998 Philippe De Muyter <phdm@macqel.be>
* defs.h (make_cleanup_func): Protect parameter list by `PARAMS'.
* gdbthread.h (unbind_target_thread_vector): Likewise.
--- ./gdb/defs.h Fri Dec 4 01:01:39 1998
+++ ./gdb/defs.h Mon Nov 30 11:13:22 1998
@@ -244,7 +244,7 @@
extern void discard_final_cleanups PARAMS ((struct cleanup *));
extern void discard_my_cleanups PARAMS ((struct cleanup **, struct cleanup *));
-typedef void (*make_cleanup_func) (void *);
+typedef void (*make_cleanup_func) PARAMS ((void *));
extern struct cleanup *make_cleanup PARAMS ((make_cleanup_func, void *));
--- ./gdb/gdbthread.h Fri Dec 4 01:01:39 1998
+++ ./gdb/gdbthread.h Mon Nov 30 11:17:17 1998
@@ -105,7 +105,7 @@
extern void bind_target_thread_vector PARAMS((struct target_thread_vector * vec)) ;
-extern struct target_thread_vector * unbind_target_thread_vector(void) ;
+extern struct target_thread_vector * unbind_target_thread_vector PARAMS ((void)) ;
extern int target_get_thread_info PARAMS((
gdb_threadref * ref,
More information about the Gdb-patches
mailing list