[RFC] regresssion(internal-error) printing subprogram argument

Pedro Alves palves@redhat.com
Thu Dec 14 19:41:00 GMT 2017


On 12/14/2017 07:02 PM, Pedro Alves wrote:
> @@ -2271,7 +2272,8 @@ maintenance_check_psymtabs (const char *ignore, int from_tty)
>      length = ps->n_global_syms;
>      while (length--)
>        {
> -	sym = block_lookup_symbol (b, SYMBOL_LINKAGE_NAME (*psym),
> +	sym = block_lookup_symbol (b, SYMBOL_SEARCH_NAME (*psym),
> +				   symbol_name_match_type::LITERAL,
>  				   SYMBOL_DOMAIN (*psym));
>  	if (!sym)
>  	  {

Reading back the patch on the list, I realized that this must be
fixing "maint check-psymtabs" for Ada.  And indeed, without my
patch, I get here:

$ gdb ./testsuite/outputs/gdb.ada/var_arr_typedef/var_arr_typedef 
(gdb) start
...
(gdb) maint check-psymtabs 
Global symbol `adaS' only found in gdb/testsuite/outputs/gdb.ada/var_arr_typedef/b~var_arr_typedef.adb psymtab
Global symbol `interfacesS' only found in gdb/testsuite/outputs/gdb.ada/var_arr_typedef/b~var_arr_typedef.adb psymtab
Global symbol `packB' only found in gdb/testsuite/outputs/gdb.ada/var_arr_typedef/b~var_arr_typedef.adb psymtab
Global symbol `packS' only found in gdb/testsuite/outputs/gdb.ada/var_arr_typedef/b~var_arr_typedef.adb psymtab
Global symbol `systemS' only found in gdb/testsuite/outputs/gdb.ada/var_arr_typedef/b~var_arr_typedef.adb psymtab
Global symbol `var_arr_typedefB' only found in gdb/testsuite/outputs/gdb.ada/var_arr_typedef/b~var_arr_typedef.adb psymtab
(gdb)

After:

(gdb) start
...
(gdb) maint check-psymtabs 
(gdb

Looks like we only test that command for C, currently...

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list