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]

Breakpoint and multi-processes.


Hi,

I have a question about breakpoint and multi-processes/inferiors debugging.
I have a gdbserver with --multi option used to debug two processes
which contains the same C function named ADD.
I have a gdb connected to the gdbserver with " target extended-remote
xxxx" with 2 inferiors, one for each process.
When i execute the gdb command " break ADD", the breakpoint is set in
the 2 processes, the current  inferior is not taking acount.
I thought that the gdb commands are executed in the context of the
current inferior not on every inferior.
Do you have an idea about the reason of this behaviour ?
Is it the expected one ?
Is there a work-around ?

Thanks.


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