[PATCH] xcoffread.c: Handle variables stored in the TOC

Kevin Buettner kevinb@redhat.com
Fri Jul 12 12:00:00 GMT 2002


I've just committed the patch below.

	From Nicholas Duffek:
	* xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
	csect.

Index: xcoffread.c
===================================================================
RCS file: /cvs/src/src/gdb/xcoffread.c,v
retrieving revision 1.19
diff -u -p -r1.19 xcoffread.c
--- xcoffread.c	30 Apr 2002 00:26:44 -0000	1.19
+++ xcoffread.c	12 Jul 2002 18:26:21 -0000
@@ -2277,6 +2277,7 @@ scan_xcoff_symtab (struct objfile *objfi
 		    break;
 
 		  case XMC_RW:
+		  case XMC_TD:
 		    /* Data variables are recorded in the minimal symbol
 		       table, except for section symbols.  */
 		    if (*namestring != '.')



More information about the Gdb-patches mailing list