Skip to content

Commit 80a8765

Browse files
authored
mi2:stack-list-frames: use file= if fullname= is missing (#1156)
When Python Frame Filters are used, GDB doesn't include a fullname= field in its -stack-list-frames response record. Fall back to the value of file= instead of reporting Unknown Source. Fixes #1155
1 parent 57c0d7a commit 80a8765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/mi2/mi2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ export class MI2 extends EventEmitter implements IBackend {
841841
ret.push({
842842
address: addr,
843843
fileName: filename,
844-
file: file,
844+
file: file || filename,
845845
function: func || from,
846846
level: level,
847847
line: line

0 commit comments

Comments
 (0)