Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Update debugging
authored
May 06, 2022
by
umaumax
Show whitespace changes
Inline
Side-by-side
debugging.md
View page @
a0acae82
...
...
@@ -210,14 +210,12 @@ sudo gstack $PID
### すべてのスレッドのbtをdumpする例
```
bash
gdb
-q
-p
$PID
```
```
cat
<<
EOF
| gdb -q -p
$PID
set pagination off
set logging file ./gdb.log
set logging on
thread apply all bt
EOF
```
この結果のdiffをとれば、概ね停止しているスレッドのbtは一致するのでどのスレッドが実際に動作しているのかのイメージが掴める
...
...
...
...