[PATCH 1/2] Avoid some copying in psymtab.c

Tom Tromey tromey@adacore.com
Tue Mar 31 19:35:45 GMT 2020


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> lookup_name_info has built-in support for psymtab-style symbol
Pedro> names, with no parameter info.  See psym_expand_symtabs_matching:

Pedro>   lookup_name_info lookup_name = lookup_name_in.make_ignore_params ();

Pedro> I think doing the same in psym_lookup_symbol is likely to work
Pedro> just the same, and avoid this new class.

I knew about this but somehow I thought it only worked "one way".
But, I've tried it and as far as I can tell it works fine and it
simplifies the code, so I've made this change.

Tom


More information about the Gdb-patches mailing list