diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-05-22 16:58:02 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-05-22 16:58:02 +0000 |
commit | 0bb4e8c4ad45e09c354fdb57d18d5c1602900a63 (patch) | |
tree | ed419407270a02240f7b71592601c236eef5973c /gdb/findvar.c | |
parent | 103a86713589f2ed97b20281a3f16e47b0f3e270 (diff) | |
download | binutils-0bb4e8c4ad45e09c354fdb57d18d5c1602900a63.zip binutils-0bb4e8c4ad45e09c354fdb57d18d5c1602900a63.tar.gz binutils-0bb4e8c4ad45e09c354fdb57d18d5c1602900a63.tar.bz2 |
* symtab.h (enum address_class): Remove LOC_INDIRECT and
LOC_HP_THREAD_LOCAL_STATIC.
* findvar.c (symbol_read_needs_frame, read_var_value): Do not
handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
(read_var_value): Likewise.
* buildsym.c (finish_block): Likewise.
* objfiles.c (objfile_relocate): Likewise.
* printcmd.c (address_info): Likewise.
* symmisc.c (print_symbol, print_partial_symbols): Likewise.
* tracepoint.c (scope_info): Likewise.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 69fb6fb..1f853b3 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -362,13 +362,11 @@ symbol_read_needs_frame (struct symbol *sym) case LOC_LOCAL_ARG: case LOC_BASEREG: case LOC_BASEREG_ARG: - case LOC_HP_THREAD_LOCAL_STATIC: return 1; case LOC_UNDEF: case LOC_CONST: case LOC_STATIC: - case LOC_INDIRECT: case LOC_TYPEDEF: case LOC_LABEL: @@ -457,24 +455,6 @@ read_var_value (struct symbol *var, struct frame_info *frame) addr = SYMBOL_VALUE_ADDRESS (var); break; - case LOC_INDIRECT: - { - /* The import slot does not have a real address in it from the - dynamic loader (dld.sl on HP-UX), if the target hasn't - begun execution yet, so check for that. */ - CORE_ADDR locaddr; - struct value *loc; - if (!target_has_execution) - error (_("\ -Attempt to access variable defined in different shared object or load module when\n\ -addresses have not been bound by the dynamic loader. Try again when executable is running.")); - - locaddr = SYMBOL_VALUE_ADDRESS (var); - loc = value_at (lookup_pointer_type (type), locaddr); - addr = value_as_address (loc); - break; - } - case LOC_ARG: if (frame == NULL) return 0; @@ -509,7 +489,6 @@ addresses have not been bound by the dynamic loader. Try again when executable i case LOC_BASEREG: case LOC_BASEREG_ARG: - case LOC_HP_THREAD_LOCAL_STATIC: { struct value *regval; |