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

Hardware Breakpoints (QEMU GDB) #315

Open
wrenger opened this issue Feb 29, 2024 · 1 comment
Open

Hardware Breakpoints (QEMU GDB) #315

wrenger opened this issue Feb 29, 2024 · 1 comment

Comments

@wrenger
Copy link

wrenger commented Feb 29, 2024

The dashboard has a few issues when gdb connects to the qemu gdb stub.
One of which is the parsing function for breakpoints, which can't handle hardware breakpoints.

Num     Type           Disp Enb Address    What
1       hw breakpoint  keep y   0x010055d0 in main() at main.cc:24
Traceback (most recent call last):
  File "<string>", line 550, in render
  File "<string>", line 2293, in lines
KeyError: 2

Why did you decide to parse the output instead of using gdb.breakpoints()?
The provided issue (https://sourceware.org/bugzilla/show_bug.cgi?id=18385) has been fixed since 13.1.

@cyrus-and
Copy link
Owner

Because this comment:

gdb-dashboard/.gdbinit

Lines 323 to 324 in b96e429

# XXX parsing the output of `info breakpoints` is apparently the best option
# right now, see: https://sourceware.org/bugzilla/show_bug.cgi?id=18385

has been added in 732962c, that is 5 years ago, and the issue has been fixed in 2022...

Anyway 13.1 is still pretty new, Ubuntu 22.04 still ships with GDB 12.1.

Will migrate to that eventually, thanks for the heads up.

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