This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/5] Add d_main_name to dlang.c
- From: Tom Tromey <tromey at redhat dot com>
- To: Iain Buclaw <ibuclaw at gdcproject dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 10 Jan 2014 12:47:25 -0700
- Subject: Re: [PATCH 3/5] Add d_main_name to dlang.c
- Authentication-results: sourceware.org; auth=none
- References: <CABOHX+cKZ6+1H3DyHw6ZsOZHAu7_pvaE2KyGPqh9DKvC2n3tCg at mail dot gmail dot com> <87wqi981ef dot fsf at fleche dot redhat dot com> <CABOHX+cigsKTQrp8zL7ystDjv4W=enSf84wy3YoFXrK9jXVpAw at mail dot gmail dot com> <CABOHX+ehkKD3rrFzXK86s5G1aYb65AQePABohSuAp0HAW7Mzpw at mail dot gmail dot com> <87y52n64xv dot fsf at fleche dot redhat dot com> <CABOHX+cyN-3SxWKQYG_kvuSEaNU_SVXJOZuA0BXjSVKJ0feRBw at mail dot gmail dot com>
>>>>> "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