We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6010d1f commit e91cbdcCopy full SHA for e91cbdc
scripts/pretty-printers/gdb/pretty_printers.py
@@ -1,11 +1,17 @@
1
import gdb
2
3
4
+# Class for pretty-printing dstringt
5
class DStringPrettyPrinter:
6
+ "Print a dstringt"
7
+
8
def __init__(self, val):
9
self.val = val
10
11
def to_string(self):
12
+ # ideally, we want to access the memory where the string
13
+ # is stored directly instead of calling a function. However,
14
+ # this is simpler.
15
try:
16
raw_address = str(self.val.address)
17
0 commit comments