This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB/MI Output Syntax
- From: Michael Chastain <mec dot gnu at mindspring dot com>
- To: jingham at apple dot com, gdb at sources dot redhat dot com
- Date: Fri, 27 Aug 2004 15:12:36 -0400
- Subject: Re: GDB/MI Output Syntax
- References: <1093622671.2836.ezmlm@sources.redhat.com><76E69B58-F852-11D8-8E70-000A958F4C44@apple.com>
Jim Ingham <jingham@apple.com> wrote:
> The problem is that the sample extension actually adds a command called
> "sha1". In interactive mode, tcl resolves shortened commands to the
> full name if the resolution is unique.
*bonk* *bonk* *bonk*
That's the sound of me banging my head against the wall. Stupid me!
> I actually think that building Bob's parser into a Tcl C extension &
> using that with the DejaGnu testsuite would be brilliant.
New vistas are opening up to me!
It would be much better to use TCL data structures to parse MI rather
than regular expressions. I had a great experience getting away from
regular expressions with cp_test_ptype_class.
It's still a dozen host arches (actually, a dozen build arches,
TCL runs on build machine). But we're not debugging a target program
with shared libraries, we're just using one as a host.