Debugging with multiple inferiors
Opened this issue · 1 comments
oskarnp commented
Using multiple inferiors does not seem to work correctly.
I have three inferiors (all executables) running in the background:
- file a
- add-inferior --exec b
- add-inferior --exec c
- inferior 1
- run &
- inferior 2
- run &
- inferior 3
- run &
A crash in 'b' shows correct source location , but:
- Locals says "Selected thread is running. = ??" and does not show any locals.
- Using print command for variables in scope says "No symbol X in current context." even though I clicked on the stack frame containing the symbol.
- Using "frame" command in CLI instead:
frame 2
frame
- Here prints that it is still on frame #0 . GF seems to automatically set frame #0 again?
Using GDB by itself all of this works fine.
Using GDB 14.1 and gf2 commit 82889c4.
oskarnp commented
Another observation:
"Thread" panel shows multiple threads all having the same ID "1".
In reality using GDB these are named "1.1", "1.2", etc. because they are multiple threads for inferior 1.