还有更6的,查看所有进程执行位置,非常方便有木有:
(gdb) thread apply all py-list ... 200 201 def accept(self): >202 sock, addr = self._sock.accept() 203 return _socketobject(_sock=sock), addr 204 accept.__doc__ = _realsocket.accept.__doc__ 205 206 def dup(self): 207 """dup() -> socket object Thread 35 (Thread 0xa0bfdb40 (LWP 17911)): Unable to locate python frame Thread 34 (Thread 0xa13feb40 (LWP 17910)): 197 for method in _delegate_methods: 198 setattr(self, method, dummy) 199 close.__doc__ = _realsocket.close.__doc__ 200 201 def accept(self): >202 sock, addr = self._sock.accept() 203 return _socketobject(_sock=sock), addr... 参考资料https://wiki.python.org/moin/DebuggingWithGdb
GDB调试命令
Linux GDB调试 详述