This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: unexpected output from print
- From: Tom Tromey <tromey at redhat dot com>
- To: Markus Teich <markus dot teich at stusta dot mhn dot de>
- Cc: gdb at sourceware dot org
- Date: Wed, 27 Mar 2013 07:30:50 -0600
- Subject: Re: unexpected output from print
- References: <4dbff288e0c76a516273ba1cb19694b4 at mail dot fs dot tum dot de> <m3sj3jvufa dot fsf at redhat dot com> <5152215D dot 4060605 at stusta dot mhn dot de>
>>>>> "Markus" == Markus Teich <markus.teich@stusta.mhn.de> writes:
Markus> @Tom: I am already using the machine interface, but unfortunately the
Markus> functions for symbol querying are not implemented in gdbmi (the C
Markus> library), therefore i parse the output of -data-evaluate-expression
Markus> manually.
You can create a temporary varobj for this.
Or maybe I am misunderstanding.
Markus> Since gdbmi is not developed actively anymore: Is there a better way to
Markus> use the gdb machine interface from a C program?
Enhancements are made from time to time. You can speed this along by
writing them yourself... :-)
There's also Python, for some things.
Tom