This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: segfault: what should happen when I remove an inferior that is running?
- From: Tom Tromey <tromey at redhat dot com>
- To: Marc Khouzam <marc dot khouzam at ericsson dot com>
- Cc: "gdb\ at sourceware dot org" <gdb at sourceware dot org>, "pedro\ at codesourcery dot com" <pedro at codesourcery dot com>
- Date: Tue, 14 Dec 2010 08:08:31 -0700
- Subject: Re: segfault: what should happen when I remove an inferior that is running?
- References: <F7CE05678329534C957159168FA70DEC572E0C0E1A@EUSAACMS0703.eamcs.ericsson.se>
>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:
Marc> I gather removing a running inferior is not a good idea, but
Marc> I think we should protect GDB against that user mistake
Marc> somehow.
I agree.
Thanks for the simple example. I was able to reproduce it here.
Marc> Any suggestions on how to handle this case?
The docs say:
Removes the inferior INFNO. It is not possible to remove an
inferior that is running with this command.
I think this means we are missing an error check somewhere.
Tom