summaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-05-22 16:58:02 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-05-22 16:58:02 +0000
commitfecd505ffd4575631b402828516f15b74438b8ae (patch)
tree2901bef8e6f7e73610cf75da365c5e06d74061c0 /gdb/findvar.c
parente7e3ab552f254f79ad6f7196eeaf74957ac0a796 (diff)
downloadgdb-fecd505ffd4575631b402828516f15b74438b8ae.tar.gz
* 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.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 69fb6fbbd94..1f853b397c4 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;