gdb.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 20 Feb 2016 23:44:10 +0200
changeset 1896 c2448e4e25f4
parent 1832 fc585ecf7c6d
child 1905 fba288d59662
permissions -rw-r--r--
Use special markup to warn about international copyright law.

.. -*- coding: utf-8; -*-
.. include:: HEADER.rst

======
 GDB.
======
.. contents::

Get backtrace from all threads.
===============================

Disable pagination and iterate across all threads::

  (gdb) set pagination off
  (gdb) bt full
  (gdb) thread apply all bt
  (gdb) thread apply all where

 * https://sourceware.org/gdb/onlinedocs/gdb/Backtrace.html
 * http://stackoverflow.com/questions/18391808/getting-the-backtrace-for-all-the-threads-in-gdb