This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dynamic array's upper bound evaluated as address for AVR target


On 10/14/2015 08:32 AM, Sivanupandi, Pitchumani wrote:
Target hook for integer_to_address does some manipulation on the given value.
In AVR target, it adds SRAM memory mask to the value to make that SRAM address.

This is what I observed, but I wonder: why do we need this in the first place? In what situation do we have an integer on which we need to apply a mask to get an address (i.e. from where does this integer come?).

Function dwarf2_locexpr_baton_eval is called by dwarf2_evaluate_property for
location expression (from resolve_dynamic_range. i.e. to resolve bounds of
dynamic array e.g. int int_vla[n] where n is function parameter).

Then maybe we should add this expect_address parameter to both dwarf2_evaluate_property and dwarf2_locexpr_baton_evalâ

--
Pierre-Marie de Rodat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]