This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix fail in gdb.base/interrupt-noterm.exp
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Fri, 22 Jan 2016 17:14:06 +0000
- Subject: Re: [PATCH] Fix fail in gdb.base/interrupt-noterm.exp
- Authentication-results: sourceware.org; auth=none
- References: <1453480183-5131-1-git-send-email-yao dot qi at linaro dot org> <56A25D13 dot 2080608 at redhat dot com>
Pedro Alves <palves@redhat.com> writes:
> Can you expand the rationale some more?
>
> E.g., why is this not a gdbserver bug? Instintively I'd say it is.
The interaction between GDB and GDBserver is like this,
1. GDB sends vCont;c and doesn't wait for the stop reply because
"continue &" is background command,
2. GDBserver receives vCont;c, enables the async i/o (by
enable_async_io) and resumes the inferior.
3. GDB sends interrupt packet,
#1 happens before #2 and #3, but the order of #2 and #3 is not
determined. If #2 happens before #3, it is fine, otherwise, the
GDBserver doesn't know the interrupt from GDB.
--
Yao (éå)