This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Prototypes for lin-thread.c



lin-thread is missing a number of prototypes for external
declarations.  I'm appending a patch to add these to lin-thread.c.  

A better place would be to add this to a header file since at least
some functions are declared in processor specific files,
e.g. fill_gregset is implemented for Linux in m68klinux-nat.c,
i386-linux-nat.c and ppc-linux-nat.c.  What do you think?  Where
should such a header be added?

Btw. adding these gives new warnings which should be dealt with in a
separate patch.

Andreas

2000-05-23  Andreas Jaeger  <aj@suse.de>

	* lin-thread.c: Add prototypes for external functions.

Index: gdb/lin-thread.c
===================================================================
RCS file: /cvs/src/src/gdb/lin-thread.c,v
retrieving revision 1.4
diff -u -r1.4 lin-thread.c
--- lin-thread.c	2000/04/14 10:13:50	1.4
+++ lin-thread.c	2000/05/23 14:21:57
@@ -125,6 +125,17 @@
 
 #include <dlfcn.h>		/* dynamic library interface */
 
+extern void fill_gregset (elf_gregset_t *, int);
+extern void supply_gregset (elf_gregset_t *);
+extern void linuxthreads_discard_global_state (void);
+extern void attach_thread (int);
+extern void check_all_signal_numbers (void);
+extern int linux_child_wait (int, int *, int *);
+extern void fill_fpregset (elf_fpregset_t *, int);
+extern void supply_fpregset (elf_fpregset_t *);
+
+
+
 #ifndef TIDGET
 #define TIDGET(PID)		(((PID) & 0x7fffffff) >> 16)
 #define PIDGET(PID)		(((PID) & 0xffff))

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]