From 1cfdf5340af6f07bb44b97c278f7036ef8db5c43 Mon Sep 17 00:00:00 2001 From: Siva Chandra Date: Tue, 29 Apr 2014 05:27:14 -0700 Subject: 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. --- gdb/dwarf2loc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gdb/dwarf2loc.c') 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) { -- cgit v1.1