Skip to content

Commit 4ad2fbd

Browse files
committed
Add the 'path' attribute initially set to false
1 parent 0cc6ad1 commit 4ad2fbd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.gdbinit

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

11621162
def label(self):
1163-
return 'Source' + (': ' + self.file_name if self.file_name else '')
1163+
label = 'Source'
1164+
if self.show_path and self.file_name:
1165+
label += ': {}'.format(self.file_name)
1166+
return label
11641167

11651168
def lines(self, term_width, term_height, style_changed):
11661169
# skip if the current thread is not stopped
@@ -1287,6 +1290,12 @@ A value of 0 uses the whole height.''',
12871290
'type': int,
12881291
'check': check_gt_zero
12891292
},
1293+
'path': {
1294+
'doc': 'Path visibility flag in the module label.',
1295+
'default': False,
1296+
'name': 'show_path',
1297+
'type': bool
1298+
},
12901299
'highlight-line': {
12911300
'doc': 'Decide whether the whole current line should be highlighted.',
12921301
'default': False,

0 commit comments

Comments
 (0)