General linux debugging problem- functionality to suspend and resume threads. #2763
chetanmore1
started this conversation in
General
Replies: 1 comment 1 reply
-
This is not related to Gluster and probably it would be better to ask it in gluster-devel mailing list, or even in gdb related lists. Anyway, this is the command you are probably looking for (https://sourceware.org/gdb/current/onlinedocs/gdb/All_002dStop-Mode.html):
There are some other commands related to this if you want more control. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
To ease multi threading debugging in Linux gdb and understand code flow of single thread in sequence without thread switching,
I was looking for functionality like freeze and thaw(suspend and resume) threads. I see this functionality is present in visual studio for windows as per image attached.
Do we have similar provision in linux gdb?
This will help in understanding code faster when in debugging thread switching doesn't happen after suspending multiple threads, and keeping one thread which runs in sequence.
https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-use-the-threads-window?view=vs-2019#bkmk_freeze
Thanks & Regards,
Chetan.
Beta Was this translation helpful? Give feedback.
All reactions