OSDN Git Service

* value.h (address_of_variable): Add prototype.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 15 Jan 2009 15:38:06 +0000 (15:38 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 15 Jan 2009 15:38:06 +0000 (15:38 +0000)
commitc86ee81222651c3e2c8694e71dcc5c7036b2aefc
tree295afa06b2b6e74eac2f5e7d25882ccb97d46ad6
parent460b2283a3b26e9df8c9a91006806b46924c5945
* 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.
gdb/ChangeLog
gdb/eval.c
gdb/findvar.c
gdb/valops.c
gdb/value.h