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
|
@ -1,3 +1,12 @@
|
||||||
|
2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2014-04-29 Pedro Alves <palves@redhat.com>
|
2014-04-29 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* remote.c (struct packet_config) <detect>: Extend comment.
|
* remote.c (struct packet_config) <detect>: Extend comment.
|
||||||
|
|
|
@ -2436,7 +2436,7 @@ dwarf2_evaluate_loc_desc (struct type *type, struct frame_info *frame,
|
||||||
|
|
||||||
static int
|
static int
|
||||||
dwarf2_locexpr_baton_eval (const struct dwarf2_locexpr_baton *dlbaton,
|
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_context *ctx;
|
||||||
struct dwarf_expr_baton baton;
|
struct dwarf_expr_baton baton;
|
||||||
|
@ -2491,8 +2491,7 @@ dwarf2_locexpr_baton_eval (const struct dwarf2_locexpr_baton *dlbaton,
|
||||||
/* See dwarf2loc.h. */
|
/* See dwarf2loc.h. */
|
||||||
|
|
||||||
int
|
int
|
||||||
dwarf2_evaluate_property (const struct dynamic_prop *prop, CORE_ADDR address,
|
dwarf2_evaluate_property (const struct dynamic_prop *prop, CORE_ADDR *value)
|
||||||
CORE_ADDR *value)
|
|
||||||
{
|
{
|
||||||
if (prop == NULL)
|
if (prop == NULL)
|
||||||
return 0;
|
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;
|
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)
|
if (baton->referenced_type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -96,7 +96,7 @@ struct value *dwarf2_evaluate_loc_desc (struct type *type,
|
||||||
into VALUE, otherwise returns 0. */
|
into VALUE, otherwise returns 0. */
|
||||||
|
|
||||||
int dwarf2_evaluate_property (const struct dynamic_prop *prop,
|
int dwarf2_evaluate_property (const struct dynamic_prop *prop,
|
||||||
CORE_ADDR addr, CORE_ADDR *value);
|
CORE_ADDR *value);
|
||||||
|
|
||||||
CORE_ADDR dwarf2_read_addr_index (struct dwarf2_per_cu_data *per_cu,
|
CORE_ADDR dwarf2_read_addr_index (struct dwarf2_per_cu_data *per_cu,
|
||||||
unsigned int addr_index);
|
unsigned int addr_index);
|
||||||
|
|
|
@ -1646,7 +1646,7 @@ is_dynamic_type (struct type *type)
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct type *
|
static struct type *
|
||||||
resolve_dynamic_range (struct type *dyn_range_type, CORE_ADDR addr)
|
resolve_dynamic_range (struct type *dyn_range_type)
|
||||||
{
|
{
|
||||||
CORE_ADDR value;
|
CORE_ADDR value;
|
||||||
struct type *static_range_type;
|
struct type *static_range_type;
|
||||||
|
@ -1657,7 +1657,7 @@ resolve_dynamic_range (struct type *dyn_range_type, CORE_ADDR addr)
|
||||||
gdb_assert (TYPE_CODE (dyn_range_type) == TYPE_CODE_RANGE);
|
gdb_assert (TYPE_CODE (dyn_range_type) == TYPE_CODE_RANGE);
|
||||||
|
|
||||||
prop = &TYPE_RANGE_DATA (dyn_range_type)->low;
|
prop = &TYPE_RANGE_DATA (dyn_range_type)->low;
|
||||||
if (dwarf2_evaluate_property (prop, addr, &value))
|
if (dwarf2_evaluate_property (prop, &value))
|
||||||
{
|
{
|
||||||
low_bound.kind = PROP_CONST;
|
low_bound.kind = PROP_CONST;
|
||||||
low_bound.data.const_val = value;
|
low_bound.data.const_val = value;
|
||||||
|
@ -1669,7 +1669,7 @@ resolve_dynamic_range (struct type *dyn_range_type, CORE_ADDR addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
prop = &TYPE_RANGE_DATA (dyn_range_type)->high;
|
prop = &TYPE_RANGE_DATA (dyn_range_type)->high;
|
||||||
if (dwarf2_evaluate_property (prop, addr, &value))
|
if (dwarf2_evaluate_property (prop, &value))
|
||||||
{
|
{
|
||||||
high_bound.kind = PROP_CONST;
|
high_bound.kind = PROP_CONST;
|
||||||
high_bound.data.const_val = value;
|
high_bound.data.const_val = value;
|
||||||
|
@ -1696,7 +1696,7 @@ resolve_dynamic_range (struct type *dyn_range_type, CORE_ADDR addr)
|
||||||
of the associated array. */
|
of the associated array. */
|
||||||
|
|
||||||
static struct type *
|
static struct type *
|
||||||
resolve_dynamic_array (struct type *type, CORE_ADDR addr)
|
resolve_dynamic_array (struct type *type)
|
||||||
{
|
{
|
||||||
CORE_ADDR value;
|
CORE_ADDR value;
|
||||||
struct type *elt_type;
|
struct type *elt_type;
|
||||||
|
@ -1707,12 +1707,12 @@ resolve_dynamic_array (struct type *type, CORE_ADDR addr)
|
||||||
|
|
||||||
elt_type = type;
|
elt_type = type;
|
||||||
range_type = check_typedef (TYPE_INDEX_TYPE (elt_type));
|
range_type = check_typedef (TYPE_INDEX_TYPE (elt_type));
|
||||||
range_type = resolve_dynamic_range (range_type, addr);
|
range_type = resolve_dynamic_range (range_type);
|
||||||
|
|
||||||
ary_dim = check_typedef (TYPE_TARGET_TYPE (elt_type));
|
ary_dim = check_typedef (TYPE_TARGET_TYPE (elt_type));
|
||||||
|
|
||||||
if (ary_dim != NULL && TYPE_CODE (ary_dim) == TYPE_CODE_ARRAY)
|
if (ary_dim != NULL && TYPE_CODE (ary_dim) == TYPE_CODE_ARRAY)
|
||||||
elt_type = resolve_dynamic_array (TYPE_TARGET_TYPE (type), addr);
|
elt_type = resolve_dynamic_array (TYPE_TARGET_TYPE (type));
|
||||||
else
|
else
|
||||||
elt_type = TYPE_TARGET_TYPE (type);
|
elt_type = TYPE_TARGET_TYPE (type);
|
||||||
|
|
||||||
|
@ -1751,11 +1751,11 @@ resolve_dynamic_type (struct type *type, CORE_ADDR addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
case TYPE_CODE_ARRAY:
|
case TYPE_CODE_ARRAY:
|
||||||
resolved_type = resolve_dynamic_array (type, addr);
|
resolved_type = resolve_dynamic_array (type);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TYPE_CODE_RANGE:
|
case TYPE_CODE_RANGE:
|
||||||
resolved_type = resolve_dynamic_range (type, addr);
|
resolved_type = resolve_dynamic_range (type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue