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]

PATCH: GNU C extention in uw-thread.c


CALL_BASE uses __FUNCTION__ which is a GNU C extension.

This might not be the best way to deal with this, but it allows compilation
on non-GNU compilers.   

RJL


Index: uw-thread.c
===================================================================
RCS file: /cvs/gdb/gdb/gdb/uw-thread.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 uw-thread.c
--- uw-thread.c	2000/01/18 00:54:24	1.1.1.1
+++ uw-thread.c	2000/01/23 21:31:57
@@ -152,6 +152,10 @@ do {					\
  *
  * Otherwise, issue an error message and return nonlocally.
  */
+#if !defined (__FUNCTION__)
+#  define __FUNCTION__
+#endif
+
 #define CALL_BASE(call)					\
 do {							\
   if (!lwp_infpid ())					\

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