This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: fix PR 2506
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org, tromey at redhat dot com
- Date: Tue, 21 Oct 2008 17:27:17 +0100
- Subject: Re: RFA: fix PR 2506
- References: <m3zln7ku62.fsf@fleche.redhat.com>
Hi Tom,
Thanks for working on this.
On Thursday 21 August 2008 02:56:21, Tom Tromey wrote:
> PR 2506 is about string concatenation.
> 2008-08-20 Tom Tromey <tromey@redhat.com>
>
> PR gdb/2506:
> * c-exp.y (string_exp): New production.
> (exp): Use it.
>
> 2008-08-20 Tom Tromey <tromey@redhat.com>
>
> * gdb.base/exprs.exp (test_expr): Add test for string
> concatenation.
>
This crashes for me:
print "foo" "bar" "boo"
:-(
Also, these files don't use xmalloc/xfree. Instead, one writes
malloc/free; they're sed'ed by the build system --- see the top of
c-exp.y.
--
Pedro Alves