diff options
author | Siva Chandra <sivachandra@chromium.org> | 2014-04-29 05:27:14 -0700 |
---|---|---|
committer | Siva Chandra <sivachandra@chromium.org> | 2014-04-30 06:27:07 -0700 |
commit | 1cfdf5340af6f07bb44b97c278f7036ef8db5c43 (patch) | |
tree | 7a77316187d12b9e756858969a3f6f020abd4a73 /gdb/dwarf2loc.c | |
parent | 5087d529319fc6d5985032183c138dd715d707b3 (diff) | |
download | gdb-1cfdf5340af6f07bb44b97c278f7036ef8db5c43.zip gdb-1cfdf5340af6f07bb44b97c278f7036ef8db5c43.tar.gz gdb-1cfdf5340af6f07bb44b97c278f7036ef8db5c43.tar.bz2 |
Remove unused arguments to few functions in dwarf2loc.c and gdbtypes.c.
gdb/ChangeLog:
* dwarf2loc.c (dwarf2_locexpr_baton_eval,
dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
Update all callers.
* dwarf2loc.h (dwarf2_evaluate_property): Update signature.
* gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
Remove unused CORE_ADDR argument. Update all callers.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r-- | gdb/dwarf2loc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index fa17ea6..5517442 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -2436,7 +2436,7 @@ dwarf2_evaluate_loc_desc (struct type *type, struct frame_info *frame, static int dwarf2_locexpr_baton_eval (const struct dwarf2_locexpr_baton *dlbaton, - CORE_ADDR addr, CORE_ADDR *valp) + CORE_ADDR *valp) { struct dwarf_expr_context *ctx; struct dwarf_expr_baton baton; @@ -2491,8 +2491,7 @@ dwarf2_locexpr_baton_eval (const struct dwarf2_locexpr_baton *dlbaton, /* See dwarf2loc.h. */ int -dwarf2_evaluate_property (const struct dynamic_prop *prop, CORE_ADDR address, - CORE_ADDR *value) +dwarf2_evaluate_property (const struct dynamic_prop *prop, CORE_ADDR *value) { if (prop == NULL) return 0; @@ -2503,7 +2502,7 @@ dwarf2_evaluate_property (const struct dynamic_prop *prop, CORE_ADDR address, { const struct dwarf2_property_baton *baton = prop->data.baton; - if (dwarf2_locexpr_baton_eval (&baton->locexpr, address, value)) + if (dwarf2_locexpr_baton_eval (&baton->locexpr, value)) { if (baton->referenced_type) { |