cyrus-and / gdb-dashboard

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

python 2.7.16 failed #323

Closed JsBlueCat closed 2 months ago

JsBlueCat commented 3 months ago
Traceback (most recent call last):
  File "<string>", line 550, in render
  File "<string>", line 2287, in lines
  File "<string>", line 348, in fetch_breakpoints
TypeError: '_sre.SRE_Match' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "<string>", line 550, in render
  File "<string>", line 1244, in lines
  File "<string>", line 348, in fetch_breakpoints
TypeError: '_sre.SRE_Match' object has no attribute '__getitem__'
JsBlueCat commented 3 months ago

i change

 348:             what = catch_what_regex.search(' '.join(fields[4:]))[0].strip()

with

 348:             what = catch_what_regex.search(' '.join(fields[4:])).group(0).strip()

and it pass

cyrus-and commented 2 months ago

Well spotted, thanks!