[remote/rfc] Let GDB know if a remote server originally attached to a process.

Joel Brobecker brobecker@adacore.com
Wed Mar 4 19:18:00 GMT 2009


> There's an obvious workaround for this (detach explicitly, then quit GDB),
> but this ought to be changed for consistency (*).

I agree. Not only that, but differences like these can be very annoying
when setting up automated testing. You write a test script that expects
one thing because that's what happens in the native case, then all of
a sudden, you have an exception when using gdbserver...

> This is simple enough --- the patch is smaller than this
> whole description of it :-)  I was considering if we want to
> generalize a mechanism for this or not, say similar to target
> descriptions, but I don't have any other use case for such a thing.

I'm not very familiar with the remote protocol, but I don't see much
benefit in generalizing this approach. Perhaps you'd like to expand,
but I'm happy with the simple approach you took.

The patch looks OK to me too. There are one or two new functions
that are undocumented, and we've been bugging contributors about this,
so it'd be nice to have a short description preceding them. Other than
that, no comment.

-- 
Joel



More information about the Gdb-patches mailing list