This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
PATCH: GNU C extention in uw-thread.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: PATCH: GNU C extention in uw-thread.c
- From: Robert Lipe <robertl at sco dot com>
- Date: Sun, 23 Jan 2000 15:31:15 -0600
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 ()) \