Skip to content

Commit 35158db

Browse files
committed
Display file path in Source label
When stepping througth huge code base, like C++ STL, it may be hard to figure out what's going on in tiny Source window without information about file path. It seems, label is the best place for such inforation, as it does not take additional screen space.
1 parent bf619ab commit 35158db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gdbinit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ class Source(Dashboard.Module):
11601160
self.offset = 0
11611161

11621162
def label(self):
1163-
return 'Source'
1163+
return 'Source' + (': ' + self.file_name if self.file_name else "")
11641164

11651165
def lines(self, term_width, term_height, style_changed):
11661166
# skip if the current thread is not stopped

0 commit comments

Comments
 (0)