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]

[commit/ob] fix silly typo


grrr, I posted and committed the wrong version of the patch.  there
was a typo in my local version, while I tested on a remote machine.

elena

2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
	
	dwarf2loc.c (locexpr_describe_location): Fix typo.

Index: dwarf2loc.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2loc.c,v
retrieving revision 1.9.8.1
diff -u -p -r1.9.8.1 dwarf2loc.c
--- dwarf2loc.c	22 Jul 2003 15:44:10 -0000	1.9.8.1
+++ dwarf2loc.c	22 Jul 2003 18:11:24 -0000
@@ -427,7 +427,7 @@ locexpr_describe_location (struct symbol
       {
 	int bytes_read;
 	CORE_ADDR offset = dwarf2_read_address (&dlbaton->data[1],
-						&dlbaton->data[dlbaton->size - 2],
+						&dlbaton->data[dlbaton->size - 1],
 						&bytes_read);
 	fprintf_filtered (stream, 
 			  "a thread-local variable at offset %s in the"


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