cyrus-and / gdb-dashboard

Modular visual interface for GDB in Python
MIT License
11.1k stars 780 forks source link

Hardware Breakpoints (QEMU GDB) #315

Open wrenger opened 8 months ago

wrenger commented 8 months ago

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 commented 8 months ago

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.