Re: [PATCH 3/5] Add d_main_name to dlang.c

Tom Tromey
2014-01-10T19:47:32Z

>>>>> "Iain" == Iain Buclaw <ibuclaw@gdcproject.org> writes:

Iain> Currently all demangled symbols have to be 'quoted' because they are
Iain> in the format foo.bar.baz. Incidentally, I was just looking into
Iain> writing a separate expression parser for D (d-exp.y). I don't suppose
Iain> you'd know off the bat whether - if written properly - it would be
Iain> able to handle D demangled symbols without the need to quote them?

I just replied about this on the D debugger list :)

"break" and some other commands use "linespecs", not expressions.
(Well, in addition to expressions, as you can always "break *EXPR".)
See gdb/linespec.c.

linespec already handles "." as a separator for Java, so it should be
possible to make it work for D. I don't recall the details; this code's
gone through a lot in the past couple of years (for the better I assure
you :-)

Tom