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] remove GCC-ism from uw-thread.c



It was pointed out that my earlier patch at
   http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00027.html
could result in unsightly errors.

Plase consider this instead.

2000-02-03  Robert Lipe  <robertl@sco.com>

	* uw-thread.c (CALL_BASE); Remove use of GCC-specific __FUNCTION__.

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/02/03 20:26:00
@@ -155,7 +155,7 @@ do {                                        \
 #define CALL_BASE(call)                                        \
 do {                                                   \
   if (!lwp_infpid ())                                  \
-    error ("uw-thread: "__FUNCTION__": no lwp");       \
+    error ("uw-thread: no lwp");                       \
   CALL_BASE_1 (call);                                  \
 } while (0)
 



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