From 979b8d3dd1bd1385efd9b70b494d7c83bc76c4f0 Mon Sep 17 00:00:00 2001 From: ezannoni Date: Tue, 22 Jul 2003 18:16:02 +0000 Subject: [PATCH] 2003-07-22 Elena Zannoni dwarf2loc.c (locexpr_describe_location): Fix typo. --- gdb/ChangeLog | 4 ++++ gdb/dwarf2loc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9c024d0a07..edcbec9779 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,4 +1,8 @@ 2003-07-22 Elena Zannoni + + dwarf2loc.c (locexpr_describe_location): Fix typo. + +2003-07-22 Elena Zannoni * findvar.c (read_var_value): Remove case for thread local storage variables. It is now entirely handled by the dwarf2 location diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 01a2ddac94..0c261292cf 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -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" -- 2.11.0