[MI] Segfault using 'interpreter-exec mi'

Tom Tromey tromey@redhat.com
Mon Dec 6 21:41:00 GMT 2010


>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:

Marc> Mostly because the error output of mi_parse() has to use some of
Marc> the data that was actually parsed in mi_parse(), which lead me to
Marc> have to play around with return values while handling exceptions,
Marc> or having to free some memory _after_ calling error(), which I
Marc> didn't know how to do.

You can install an 'xfree' cleanup before calling error.

Marc> Could we have the brute force fix now, and leave the improvement
Marc> for later?

I will look at it tomorrow.

Tom



More information about the Gdb-patches mailing list