This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb in non-stop/sync mode connects to gdbserver
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 22 Nov 2012 18:16:31 +0000
- Subject: Re: gdb in non-stop/sync mode connects to gdbserver
- References: <50AE4E3D.8000701@codesourcery.com>
On 11/22/2012 04:09 PM, Yao Qi wrote:
> Hello,
> When running moribund-step.exp with boardfile 'unix', we'll get two passes,
>
> PASS: gdb.base/moribund-step.exp: set non-stop on
> PASS: gdb.base/moribund-step.exp: step
>
> However, when running it with boardilfe native-gdbserver, we'll get only one pass,
>
> PASS: gdb.base/moribund-step.exp: set non-stop on
>
> in fact, gdb hang there when connecting to gdbserver. Supposing gdb is in non-stop and sync mode, here is callgraph of functions related to 'connecting to remote gdbserver'.
"non-stop and sync mode" is really not supported. non-stop is defined to
work only with async on. There are many such assumptions in the code. That the
test works in sync mode on native is just an accident.
--
Pedro Alves