Re: [PATCH] gdb.dwarf2: Define and use gdb_target_symbol_prefix for symbol prefixes

Kevin Buettner
2015-11-06T05:33:34Z

On Thu, 05 Nov 2015 10:54:56 +0000
Pedro Alves <palves@redhat.com> wrote:

> On 11/05/2015 10:46 AM, Pedro Alves wrote:
> >> > I'm willing to make these changes, but I want to first be sure that
> >> > I'm not missing an easier fix.
>
> BTW, an alternative to the below would be to have two tcl procedures,
> one for asm, and another for C/C++/etc, like
> gdb_target_symbol_prefix_flags_asm / gdb_target_symbol_prefix_flags.
> The C version would just call the asm version and add the double
> quotes.

This is a really good idea. It means that I don't need to touch
already working test cases contained in .c files. Also, the SYMBOL
macros contained therein stay simpler and (presumably) easier to
maintain.

I've just posted a patch implementing this idea. See:

https://sourceware.org/ml/gdb-patches/2015-11/msg00192.html

Thanks!

Kevin