2003-07-22 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Tue, 22 Jul 2003 18:16:05 +0000 (18:16 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Tue, 22 Jul 2003 18:16:05 +0000 (18:16 +0000)
dwarf2loc.c (locexpr_describe_location): Fix typo.

gdb/ChangeLog
gdb/dwarf2loc.c

index 9c024d0a07bb36d68b87bd318f99fe73ddc6de27..edcbec977995bcc3646f8bbec67d1119f5ae0897 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
+       
+       dwarf2loc.c (locexpr_describe_location): Fix typo.
+
 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
 
        * findvar.c (read_var_value): Remove case for thread local storage
index 01a2ddac940879f41eda3a2d2c1c6e80edec3f82..0c261292cfcc59c5e6ffd786b5998fab36215dcb 100644 (file)
@@ -427,7 +427,7 @@ locexpr_describe_location (struct symbol *symbol, struct ui_file *stream)
       {
        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"