Skip to content

Commit 3201838

Browse files
committed
cleanup
1 parent be5bd2e commit 3201838

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/etc/gdb_lookup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def register_printers(objfile):
1717

1818

1919
def register_type_printers(objfile):
20-
gdb.types.register_type_printer(objfile, PtrTypePrinter(""))
20+
gdb.types.register_type_printer(objfile, PtrTypePrinter("ptr"))
2121

2222

2323
# BACKCOMPAT: rust 1.35

src/etc/gdb_providers.py

-2
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ def recognize(self, type: gdb.Type) -> str:
501501
was_r_ref: bool = False
502502
ptr_type: gdb.Type = type
503503
ptee_type: gdb.Type = type.target()
504-
i = 0
505504

506505
while ptr_type.code in PTR_CODES:
507506
is_ref: bool = False
@@ -511,7 +510,6 @@ def recognize(self, type: gdb.Type) -> str:
511510
or ptr_type.code == gdb.TYPE_CODE_REF
512511
or ptr_type.code == gdb.TYPE_CODE_RVALUE_REF
513512
):
514-
print("is ref")
515513
is_ref = True
516514

517515
was_r_ref = ptr_type.code == gdb.TYPE_CODE_RVALUE_REF

0 commit comments

Comments
 (0)