Skip to content

Commit 8b62114

Browse files
committed
[lldb] Delete unused lldbutil.print_registers (NFC)
1 parent 14b4417 commit 8b62114

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

lldb/packages/Python/lldbsuite/test/lldbutil.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,33 +1353,6 @@ def get_args_as_string(frame, showFuncName=True):
13531353
return "(%s)" % (", ".join(args))
13541354

13551355

1356-
def print_registers(frame, string_buffer=False):
1357-
"""Prints all the register sets of the frame."""
1358-
1359-
output = io.StringIO() if string_buffer else sys.stdout
1360-
1361-
print("Register sets for " + str(frame), file=output)
1362-
1363-
registerSet = frame.GetRegisters() # Return type of SBValueList.
1364-
print(
1365-
"Frame registers (size of register set = %d):" % registerSet.GetSize(),
1366-
file=output,
1367-
)
1368-
for value in registerSet:
1369-
# print(value, file=output)
1370-
print(
1371-
"%s (number of children = %d):" % (value.GetName(), value.GetNumChildren()),
1372-
file=output,
1373-
)
1374-
for child in value:
1375-
print(
1376-
"Name: %s, Value: %s" % (child.GetName(), child.GetValue()), file=output
1377-
)
1378-
1379-
if string_buffer:
1380-
return output.getvalue()
1381-
1382-
13831356
def get_registers(frame, kind):
13841357
"""Returns the registers given the frame and the kind of registers desired.
13851358

lldb/test/API/macosx/universal/TestUniversal.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ def test_sbdebugger_create_target_with_file_and_target_triple(self):
5757
@skipIf(compiler="clang", compiler_version=["<", "7.0"])
5858
def test_process_launch_for_universal(self):
5959
"""Test process launch of a universal binary."""
60-
from lldbsuite.test.lldbutil import print_registers
61-
6260
if not haswellOrLater():
6361
return
6462

0 commit comments

Comments
 (0)