mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* findvar.c (read_var_value): Remove case for thread local storage variables. It is now entirely handled by the dwarf2 location expression code. * printcmd.c (address_info): Ditto. * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC enumeration value. (struct symbol): Remove objfile field, which was used by LOC_THREAD_LOCAL_STATIC only. * dwarf2read.c (decode_locdesc): Remove is_thread_local variable. * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about usage of objfile pointer. * dwarf2loc.c (locexpr_describe_location): Add case to handle thread local variables. Add include of objfiles.h. * dwarf2expr.c (execute_stack_op): Add comments about thread local storage variables. * Makefile.in (dwarf2loc.o): Update dependencies.
This commit is contained in:
14
gdb/symtab.h
14
gdb/symtab.h
@@ -482,14 +482,6 @@ enum address_class
|
||||
|
||||
LOC_HP_THREAD_LOCAL_STATIC,
|
||||
|
||||
/* Value is at a thread-specific location calculated by a
|
||||
target-specific method. SYMBOL_OBJFILE gives the object file
|
||||
in which the symbol is defined; the symbol's value is the
|
||||
offset into that objfile's thread-local storage for the current
|
||||
thread. */
|
||||
|
||||
LOC_THREAD_LOCAL_STATIC,
|
||||
|
||||
/* The variable does not actually exist in the program.
|
||||
The value is ignored. */
|
||||
|
||||
@@ -606,12 +598,6 @@ struct symbol
|
||||
/* Used by LOC_BASEREG and LOC_BASEREG_ARG. */
|
||||
short basereg;
|
||||
|
||||
/* Used by LOC_THREAD_LOCAL_STATIC. The objfile in which this
|
||||
symbol is defined. To find a thread-local variable (e.g., a
|
||||
variable declared with the `__thread' storage class), we may
|
||||
need to know which object file it's in. */
|
||||
struct objfile *objfile;
|
||||
|
||||
/* For a LOC_COMPUTED or LOC_COMPUTED_ARG symbol, this is the
|
||||
baton and location_funcs structure to find its location. For a
|
||||
LOC_BLOCK symbol for a function in a compilation unit compiled
|
||||
|
||||
Reference in New Issue
Block a user