[RFA] Fix for testsuite errors with gdbserver (remote)

Keith Seitz keiths@redhat.com
Fri Feb 18 18:56:00 GMT 2011


On 02/18/2011 08:48 AM, Pierre Muller wrote:
>    Inverting two lines in remote_close fixes hopefully this issue.
> At least using --target_board=native_gdbsderver.exp
> works again!

Duh. I didn't even notice the subsequent call to reset inferior_ptid!

I definitely like your patch better than the workaround I posted. 
Although I do wonder if there are any reasons why we might want to reset 
inferior_ptid after discard_all_inferiors (notifications?). Nonetheless, 
I'm the pragmatic sort: if the test suite doesn't reveal such problems, 
then none exist -- or we'll deal with them when we have hard test cases. :-)

Alas, I am not an ordained maintainer, so someone will still need to 
officially approve this.

Thank you for following-up on this.

Keith



More information about the Gdb-patches mailing list