gdb-dashboard icon indicating copy to clipboard operation
gdb-dashboard copied to clipboard

Hardware Breakpoints (QEMU GDB)

Open wrenger opened this issue 1 year ago • 1 comments

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.

wrenger avatar Feb 29 '24 15:02 wrenger

Because this comment:

https://github.com/cyrus-and/gdb-dashboard/blob/b96e429c0db4b35c38302dd8c6cd90c65152f211/.gdbinit#L323-L324

has been added in 732962cba98883326769cc753e052a0f7e5e1bed, 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.

cyrus-and avatar Mar 01 '24 13:03 cyrus-and