Skip to content

Commit e2f5980

Browse files
Move pdb import to only import if necessary
1 parent 293a883 commit e2f5980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/debug/gdbpy/gdb-debughelpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import sys
2929
import os
3030
import re
31-
import pdb
3231

3332
import gdb
3433
import gdb.types
@@ -1186,6 +1185,7 @@ def complete(self, text: str, word: str) -> int: # list[str] | int:
11861185
def invoke(self, arg: str, from_tty: bool) -> None:
11871186
trace(f'<SVMCommandDebugPrettyPrinting> - invoke({arg})')
11881187
command = "gdb.execute('print {}')".format(arg.replace("'", "\\'"))
1188+
import pdb
11891189
pdb.run(command)
11901190

11911191

0 commit comments

Comments
 (0)