We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1716ec commit 6b0d606Copy full SHA for 6b0d606
scripts/pretty-printers/gdb/pretty_printers.py
@@ -21,7 +21,7 @@ def to_string(self):
21
22
# Split the address on the first space, return that value
23
# Addresses are usually {address} {optional type_name}
24
- typed_pointer = "({}*){}".format(self.val.type, raw_address.split(None, 1)[0])
+ typed_pointer = "((const {} *){})".format(self.val.type, raw_address.split(None, 1)[0])
25
26
# Check that the pointer is not null.
27
if gdb.parse_and_eval(typed_pointer + " == 0"):
0 commit comments