Skip to content

Commit ba85ff1

Browse files
committed
Keep track of no file name available
1 parent 35158db commit ba85ff1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gdbinit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,7 @@ class Source(Dashboard.Module):
11701170
sal = gdb.selected_frame().find_sal()
11711171
current_line = sal.line
11721172
if current_line == 0:
1173+
self.file_name = None
11731174
return []
11741175
# try to lookup the source file
11751176
candidates = [

0 commit comments

Comments
 (0)