author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 10 Feb 2018 01:28:53 +0200 | |
changeset 2227 | 1e9323e7ec88 |
parent 1912 | 8b81a8f0f692 |
permissions | -rw-r--r-- |
1832
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
====== |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
GDB. |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
====== |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
.. contents:: |
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1832
diff
changeset
|
7 |
:local: |
1832
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
|
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
Get backtrace from all threads. |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
=============================== |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
|
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
Disable pagination and iterate across all threads:: |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
|
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
(gdb) set pagination off |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
(gdb) bt full |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
16 |
(gdb) thread apply all bt |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
17 |
(gdb) thread apply all where |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
18 |
|
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
19 |
* https://sourceware.org/gdb/onlinedocs/gdb/Backtrace.html |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
20 |
* http://stackoverflow.com/questions/18391808/getting-the-backtrace-for-all-the-threads-in-gdb |
fc585ecf7c6d
Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
21 |