This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: fix PR 2506


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]