Breakpoint 1, import_name (f=f@entry=0x5555557e0f18, name=name@entry=0x5555558001a0, fromlist=fromlist@entry=0x7ffff7d5aba0 <_Py_NoneStruct>, level=level@entry=0x7ffff7da4ab0 <small_ints+240>) at Python/ceval.c:5228 5228 { (gdb) p name $1 = (PyObject *) 0x5555558001a0
1 2 3 4 5
Breakpoint 1, import_name ( f=f@entry=Frame 0x5555557e0f18, for file <frozen importlib._bootstrap>, line 1159, in _install (sys_module=<module at remote 0x5555557cca38>, _imp_module=<module at remote 0x5555557df1b8>), name=name@entry='_frozen_importlib_external', fromlist=fromlist@entry=None, level=level@entry=0) at Python/ceval.c:5228 5228 { (gdb) p name $1 = '_frozen_importlib_external'
(gdb) show cwd You have not set the inferior's current working directory. The inferior will inherit GDB's cwd if native debugging, or the remote server's cwd if remote debugging. (gdb) pwd Working directory /home/runsisi/working/test/pyleak/build. (gdb) set cwd /home/runsisi/working/test/pyleak/build (gdb) cd ~/working/test/Python-3.7.4/Tools/gdb Working directory /home/runsisi/working/test/Python-3.7.4/Tools/gdb. (gdb) source libpython.py