gdb.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1832 fc585ecf7c6d
child 1905 fba288d59662
permissions -rw-r--r--
Decrease intent to increase space usage on mobile.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
.. include:: HEADER.rst
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
======
fc585ecf7c6d Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
 GDB.
fc585ecf7c6d Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
======
fc585ecf7c6d Get backtrace from all threads.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
.. contents::
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