[patch] Make test-cp-name-parser usable

Daniel Jacobowitz drow@false.org
Fri Aug 5 20:19:00 GMT 2011


On Thu, Aug 4, 2011 at 5:51 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Wed, 03 Aug 2011 22:56:36 +0200, Tom Tromey wrote:
>> >>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:
>> Daniel> What does the translation - is it as simple as #undef free or
>> Daniel> (free) (ptr)?
>>
>> A sed script in the .y.c rule in gdb/Makefile.
>
>             -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
>             -e 's/\([ \t;,(]\)free$$/\1xfree/g' \

Wow, I'd forgotten about that.

> If it is a concern patched it differently.

Thanks!  I appreciate it.  You might want an explanatory comment, this
looks sufficiently odd.  It's OK with me either way.

-- 
Thanks,
Daniel



More information about the Gdb-patches mailing list