gdb in non-stop/sync mode connects to gdbserver
Pedro Alves
palves@redhat.com
Thu Nov 22 18:16:00 GMT 2012
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
More information about the Gdb
mailing list