aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-01-15 15:38:07 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-01-15 15:38:07 +0000
commit61212c0fb13d0a54f12748dcc56a41c15a91d12a (patch)
treed006b77357adb211693a534f9f5d25e962e128cb /gdb/value.h
parentcc2420d5bbb6f8ebfc231b80e87e9987585a7549 (diff)
downloadgdb-61212c0fb13d0a54f12748dcc56a41c15a91d12a.zip
gdb-61212c0fb13d0a54f12748dcc56a41c15a91d12a.tar.gz
gdb-61212c0fb13d0a54f12748dcc56a41c15a91d12a.tar.bz2
* value.h (address_of_variable): Add prototype.
(locate_var_value): Remove prototype. * findvar.c (read_var_value): Do not attempt to default frame to selected frame. (locate_var_value): Remove function. * valops.c (value_of_variable): Retrieve selected frame for symbols that require a frame when called with NULL block. * valops.c (address_of_variable): New function. * eval.c (evaluate_subexp_for_address): Call address_of_variable instead of calling locate_var_value. (evaluate_subexp_with_coercion): Likewise.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/value.h b/gdb/value.h
index ecdcf25..724aa5a 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -310,6 +310,8 @@ extern CORE_ADDR address_from_register (struct type *type, int regnum,
extern struct value *value_of_variable (struct symbol *var, struct block *b);
+extern struct value *address_of_variable (struct symbol *var, struct block *b);
+
extern struct value *value_of_register (int regnum, struct frame_info *frame);
struct value *value_of_register_lazy (struct frame_info *frame, int regnum);
@@ -319,9 +321,6 @@ extern int symbol_read_needs_frame (struct symbol *);
extern struct value *read_var_value (struct symbol *var,
struct frame_info *frame);
-extern struct value *locate_var_value (struct symbol *var,
- struct frame_info *frame);
-
extern struct value *allocate_value (struct type *type);
extern struct value *allocate_value_lazy (struct type *type);
extern void allocate_value_contents (struct value *value);