Skip to content

Commit

Permalink
Update pygdb.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miaoyc666 authored Nov 22, 2024
1 parent c4008e1 commit b1857d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Python/pygdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ gdb -p <pid>
# libpython.py 源码
# 关键点,要根据python版本选择指定分支的libpython
https://github.com/python/cpython/blob/main/Tools/gdb/libpython.py
# python3.10
https://github.com/python/cpython/blob/3.10/Tools/gdb/libpython.py
```

#### 使用步骤
Expand All @@ -27,4 +29,4 @@ info thread # 线程信息
thread <id> # 切换到某个线程
thread apply all py-list # 查看所有线程的py代码位置
ctrl-c # 中断
```
```

0 comments on commit b1857d7

Please sign in to comment.