Skip to content

Commit 1f2492b

Browse files
committed
libcxx pretty printers: remove non-lazy_string fallback
This has been supported on gdb for something like ~10 years, so doesn't seem necessary to carry a fallback. Differential Revision: https://reviews.llvm.org/D114986
1 parent 7bef492 commit 1f2492b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcxx/utils/gdb/libcxx/printers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ def to_string(self):
234234
else:
235235
data = short_field["__data_"]
236236
size = self._get_short_size(short_field, short_size)
237-
if hasattr(data, "lazy_string"):
238-
return data.lazy_string(length=size)
239-
return data.string(length=size)
237+
return data.lazy_string(length=size)
240238

241239
def display_hint(self):
242240
return "string"

0 commit comments

Comments
 (0)