This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: segfault: what should happen when I remove an inferior that is running?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]