diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-05-22 17:00:07 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-05-22 17:00:07 +0000 |
commit | c3b22bd09c9ba99146f0dad3aac73e170cf051d6 (patch) | |
tree | b9a82831974af1d067e1d6a835c895337950e21c /gdb/findvar.c | |
parent | aa59ba6b2707e2912437f780ffad25a897153f95 (diff) | |
download | binutils-c3b22bd09c9ba99146f0dad3aac73e170cf051d6.zip binutils-c3b22bd09c9ba99146f0dad3aac73e170cf051d6.tar.gz binutils-c3b22bd09c9ba99146f0dad3aac73e170cf051d6.tar.bz2 |
* symtab.h (enum address_class): Remove LOC_BASEREG and
LOC_BASEREG_ARG.
(struct symbol): Remove "basereg" member of "aux_value" union.
(SYMBOL_BASEREG): Remove.
* ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
or LOC_BASEREG_ARG.
* ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
(ada_add_block_symbols): Likewise.
* ax-gdb.c (gen_var_ref): Likewise.
* buildsym.c (finish_block): Likewise.
* findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
* m2-exp.y (yylex): Likewise.
* mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
* printcmd.c (address_info): Likewise.
* stack.c (print_frame_args, print_block_frame_locals): Likewise.
(print_frame_arg_vars): Likewise.
* symmisc.c (print_symbol): Likewise.
* symtab.c (lookup_block_symbol): Likewise.
* tracepoint.c (collect_symbol, add_local_symbols): Likewise.
(scope_info): Likewise.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 6d53674..13dea02 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -359,8 +359,6 @@ symbol_read_needs_frame (struct symbol *sym) case LOC_REGPARM: case LOC_REGPARM_ADDR: case LOC_LOCAL: - case LOC_BASEREG: - case LOC_BASEREG_ARG: return 1; case LOC_UNDEF: @@ -485,20 +483,6 @@ read_var_value (struct symbol *var, struct frame_info *frame) addr += SYMBOL_VALUE (var); break; - case LOC_BASEREG: - case LOC_BASEREG_ARG: - { - struct value *regval; - - regval = value_from_register (lookup_pointer_type (type), - SYMBOL_BASEREG (var), frame); - if (regval == NULL) - error (_("Value of base register not available.")); - addr = value_as_address (regval); - addr += SYMBOL_VALUE (var); - break; - } - case LOC_TYPEDEF: error (_("Cannot look up value of a typedef")); break; |