hxcpp-debugger icon indicating copy to clipboard operation
hxcpp-debugger copied to clipboard

Threads handling

Open Simn opened this issue 8 years ago • 4 comments

Two things:

  1. Is there a way to get a list of all currently running threads? This should probably be a threads command.

  2. It's a bit confusing to understand what continue does in a threaded environment. From the continue documentation:

The continue (or c) command continues threads until the next breakpoint occurs.

From the thread documentation:

The thread command switches the debugger to thread <number>, making this thread the current thread. The current thread is the thread which is targeted by the following commands: continue, step, next, finish, where, up, down, frame, print, set

The question is: Does continue continue execution of all threads or just the current thread? If it's the latter, how do we get back to an "execute all threads" state?

Simn avatar May 06 '17 06:05 Simn

The continue command continues all threads.

It would certainly be a little less ambiguous to add the word 'all' in there, so that the help read:

"The continue (or c) command continues all threads until the next breakpoint occurs."

bjitivo avatar May 08 '17 15:05 bjitivo

You can use 'where all' to list the callstacks of all threads, which is a way also of seeing how many threads there are. There is no command list to list how many threads there are.

bjitivo avatar May 08 '17 15:05 bjitivo

The new github works horribly with my browser and I can't edit the previous command. I should have said "There is no command JUST to list how many threads there are."

bjitivo avatar May 08 '17 15:05 bjitivo

Ha ha I should have written "I can't edit the previous COMMENT."

bjitivo avatar May 08 '17 15:05 bjitivo