OSDN Git Service

* value.h (address_of_variable): Add prototype.
authoruweigand <uweigand>
Thu, 15 Jan 2009 15:38:06 +0000 (15:38 +0000)
committeruweigand <uweigand>
Thu, 15 Jan 2009 15:38:06 +0000 (15:38 +0000)
commit556120b79f0be9c9b3bb4747edee74767c2cbd62
treee1dffb9758871c2cd450873bfb39a2d451cc482e
parent611e8e676298906b2687d5adfd66133dd1293ba0
* 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