Bug 9611 - gdb does not recognize string concatenation
Summary: gdb does not recognize string concatenation
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: exp (show other bugs)
Version: unknown
: P3 enhancement
Target Milestone: 7.0
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 18:58 UTC by Tom Tromey
Modified: 2008-12-18 21:10 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2008-08-20 18:58:01 UTC
[Converted from Gnats 2506]

I tried this:

(gdb) p "x" "y"
A syntax error in expression, near `"y"'.

This is a bit strange, but I think it should be recognized
by gdb.  An expression like this might reasonably arise
from macro expansion.
Perhaps it would be best to fix this in the lexer.

Release:
unknown
Comment 1 Tom Tromey 2008-08-21 06:48:09 UTC
Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-Why: Testing a patch.
    It was simpler to fix this in the parser, due to
    macro expansion oddities.
Comment 2 Tom Tromey 2008-12-18 21:10:31 UTC
Fix checked in.