Breakpoint and multi-processes.
Christophe Ple <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAOLpEsgYRVoaOQy6-jSdTEU4aSy0Pp=RON92JffXy4U1b0MzVQ@mail.gmail.com> |
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.