PATCH: GNU C extention in uw-thread.c

Robert Lipe robertl@sco.com
Sat Apr 1 00:00:00 GMT 2000


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 ())					\


More information about the Gdb-patches mailing list