RFA: [Ada] extract known tasks array parameters from symbol table

Joel Brobecker brobecker@adacore.com
Tue Feb 21 18:16:00 GMT 2012


> 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!

-- 
Joel



More information about the Gdb-patches mailing list