Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threads handling #19

Open
Simn opened this issue May 6, 2017 · 4 comments
Open

Threads handling #19

Simn opened this issue May 6, 2017 · 4 comments

Comments

@Simn
Copy link
Member

Simn commented May 6, 2017

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?

@bjitivo
Copy link
Contributor

bjitivo commented May 8, 2017

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
Copy link
Contributor

bjitivo commented May 8, 2017

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
Copy link
Contributor

bjitivo commented May 8, 2017

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
Copy link
Contributor

bjitivo commented May 8, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants