This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb in non-stop/sync mode connects to gdbserver


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]