mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
gdb: Fix range printer for singular ranges
Before, it printed [x, +inf) instead of {x}
This commit is contained in:
@@ -1248,6 +1248,9 @@ class interval_printer(gdb.printing.PrettyPrinter):
|
||||
has_start, start_inclusive, start_value = self.inspect_bound(self.val['_start'])
|
||||
has_end, end_inclusive, end_value = self.inspect_bound(self.val['_end'])
|
||||
|
||||
if self.val['_singular']:
|
||||
return '{{{}}}'.format(str(start_value))
|
||||
|
||||
return '{}{}, {}{}'.format(
|
||||
'[' if start_inclusive else '(',
|
||||
str(start_value) if has_start else '-inf',
|
||||
|
||||
Reference in New Issue
Block a user