This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: [Ada] extract known tasks array parameters from symbol table
On Feb 21, 2012, at 6:07 PM, Joel Brobecker wrote:
>> In fact it wasn't that good. Leads to crash in case the symbol was
>> LOC_UNRESOLVED. It is therefore better to use the minsymtab to get
>> the address. Here is the new version.
>
> Ah - Ugh!
>
>> 2012-02-13 Tristan Gingold <gingold@adacore.com>
>>
>> * ada-tasks.c (struct ada_tasks_inferior_data): Add
>> known_tasks_element and known_tasks_length fields.
>> (read_known_tasks_array): Change argument type. Use pointer type
>> and number of elements from DATA. Adjust.
>> (read_known_tasks_list): Likewise.
>> (get_known_tasks_addr): Remove.
>> (ada_set_current_inferior_known_tasks_addr): Renamed to ...
>> (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
>> type and array length. Merge former get_known_tasks_addr code.
>
> This one looks good to me. Thanks!
Now committed.
Thanks,
Tristan.