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

Breakpoints set in thread does not work in UI #379

Open
infn-ke opened this issue Oct 3, 2022 · 4 comments
Open

Breakpoints set in thread does not work in UI #379

infn-ke opened this issue Oct 3, 2022 · 4 comments
Labels
more info needed Waiting for author to provide more information

Comments

@infn-ke
Copy link

infn-ke commented Oct 3, 2022

If I set a breakpoint in a thread, then UI does not work correctly. I can see the debug console correctly shows that the breakpoint was hit. But UI is completely off from this point and onward. Is there any specific setting needed to be done for UI to work correctly when working on threads?

Running gdbserver 9.1 on 32 bit arm.

@GitMensch
Copy link
Collaborator

What do you mean with "UI is completely off"? A screenshot likely helps, a debug log would be useful, too.

@infn-ke
Copy link
Author

infn-ke commented Oct 3, 2022

The UI does not show that the breakpoint is hit (does not open file and manually opening file does not show it either). The little status bar says target is running. I do see this error message;

Failed to get Stack Trace: Selected thread is running. (from stack-list-frames --thread 1 0 7)

as well as this one

Could not get threads: Cannot execute this command while the target is running. Use the "interrupt" command to stop the target and then try again. (from thread-info)

@GitMensch
Copy link
Collaborator

What does the gdb console show?

Does it work if you explicit run interrupt on the console?

It seems that either the breakpoint was not hit or the extension issued a re-run - so the full log output will be useful to check that.

@infn-ke
Copy link
Author

infn-ke commented Oct 3, 2022

I was able to re-create the issue once on gdb command line. Will continue to investigate;

(gdb) c
Continuing.
[New Thread 473.473]
../../gdb-9.1/gdb/thread.c:95: internal-error: thread_info* inferior_thread(): Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)

@brownts brownts added the more info needed Waiting for author to provide more information label Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed Waiting for author to provide more information
Projects
None yet
Development

No branches or pull requests

3 participants