[Github-comments] [geany/geany-plugins] How to debug a multithread application [ Debugger / gdb ] (#1069)

avafinger notifications at github.com
Tue Apr 5 00:12:29 UTC 2022


> the shared breakpoint condition (e.g. i==0, for making the breakpoint effective only for thread 0)

The example ( variable i ) was used just to show the context had changed when you clicked [Step over].

I agree with the "stepping/continuing from the Stopped state will resume all concurrent threads" and "if a breakpoint is hit by a concurrent thread, GDB will halt all running threads and switch to that thread's context", maybe the design should be changed to support my thinking (or the user). The user wants to debug thread-id 0x123456 and not 0x999999 or 0x777777 which share the same task function and same breakpoints.

I haven't tested this on Visual C yet. 
I will test your changes and report back asap.
It's nice  to have a stable debugger in Geany!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1069#issuecomment-1088142234
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/issues/1069/1088142234 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220404/ecae0fdc/attachment.htm>


More information about the Github-comments mailing list