This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [commit] Recover from struct-return internal errors
On Thu, Nov 20, 2003 at 01:44:26PM -0500, Andrew Cagney wrote:
> >On Thu, 20 Nov 2003 13:07:18 -0500, Andrew Cagney <ac131313@redhat.com>
> >said:
> >
> >
> >>+ -re "A problem internal to GDB has been detected" {
> >>+ fail "${test} (GDB internal error 1)"
> >>+ gdb_internal_error_resync
> >>+ }
> >
> >
> >Could you get rid of some of these by using gdb_test_multiple instead
> >of send_gdb/gdb_expect? I haven't looked at structs.exp in detail, so
> >I don't have any idea how possible that might be.
>
> I've not really looked at gdb_test_multiple either so I guess we're even
> :-) I do know that I can't use "gdb_test" as additional processing is
> required dependant on the output.
That's what gdb_test_multiple is for. You should be able to remove any
of the "standard" response patterns and replace "gdb_test" with
"gdb_test_multiple" - the arguments change slightly but the expect
block's interface not at all.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer