This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

[patch/5.2/commit] Zap __func__


Just FYI,

I've committed this to the 5.2 branch - zap more __func__s. It's brutal but it works :-)

enjoy,
Andrew
2002-07-15  Andrew Cagney  <ac131313@redhat.com>

	* dwarf2cfi.c: Replace __func__ with "?func?".

Index: dwarf2cfi.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 dwarf2cfi.c
--- dwarf2cfi.c	3 Jul 2002 06:00:26 -0000	1.1.2.5
+++ dwarf2cfi.c	15 Jul 2002 16:40:58 -0000
@@ -860,7 +860,7 @@
     }
   else
     internal_error (__FILE__, __LINE__,
-		    "%s(): Internal error: fde->cie_ptr==NULL !", __func__);
+		    "%s(): Internal error: fde->cie_ptr==NULL !", "?func?");
 }
 
 static void
@@ -1361,7 +1361,7 @@
 	      orig_context->reg[fs->regs.reg[i].loc.reg].loc.addr;
 	  default:
 	    internal_error (__FILE__, __LINE__,
-			    "%s: unknown register rule", __func__);
+			    "%s: unknown register rule", "?func?");
 	  }
 	break;
       case REG_SAVED_EXP:
@@ -1379,7 +1379,7 @@
 	break;
       default:
 	internal_error (__FILE__, __LINE__,
-			"%s: unknown register rule", __func__);
+			"%s: unknown register rule", "?func?");
       }
   get_reg ((char *) &context->ra, context, fs->retaddr_column);
   unwind_tmp_obstack_free ();

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