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.
This commit is contained in:
parent
5087d52931
commit
1cfdf5340a
4 changed files with 21 additions and 13 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue