diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-10-21 19:11:50 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-10-21 19:11:50 +0000 |
commit | c08834975df1b218495e7bc366a30e53a711f905 (patch) | |
tree | 3b6f8298fc61c732ce3162c306a4b6766f2ac463 /gdb/printcmd.c | |
parent | e5713b4de901f5bf6fce112f15979836c5076260 (diff) | |
download | gdb-c08834975df1b218495e7bc366a30e53a711f905.tar.gz |
2002-10-21 Jim Blandy <jimb@redhat.com>
Elena Zannoni <ezannoni@redhat.com>
* symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
for thread local storage locations.
(struct symbol): Add objfile field.
(SYMBOL_OBJFILE): Define.
* dwarf2read.c (is_thread_local): New static variable.
(new_symbol): If variable is in thread local fill in address class
and objfile appropriately.
(decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
stack operation.
* printcmd.c (address_info): Print the information for thread
local storage variable.
* findvar.c (read_var_value): In case of thread local variable,
defer to the target vector code to compute address.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 2f7f865c6f4..2bf5fdf4d00 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1285,6 +1285,12 @@ address_info (char *exp, int from_tty) val, REGISTER_NAME (basereg)); break; + case LOC_THREAD_LOCAL_STATIC: + printf_filtered ("a thread-local variable at offset %ld in the " + "thread-local storage for `%s'", + val, SYMBOL_OBJFILE (sym)->name); + break; + case LOC_OPTIMIZED_OUT: printf_filtered ("optimized out"); break; |