[asterisk-users] Asterisk with gdb

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Dec 24 06:52:36 CST 2009


On Thu, Dec 24, 2009 at 01:12:58PM +0100, Kristijan Vrban wrote:
> super quick asterisk in gdb howto:
> 
> compile asterisk with DONT_OPTIMIZE (in make menuconfig -> Compiler flags)

which changes the behaviour of your code. Rebuilding is not always an
option.

If using Asterisk from a package, be sure to install debug symbols. e.g.
package asterisk-dbg or asterisk-debuginfo .

> gdb asterisk
> run -cvvvvvvvvvv
> wait for the crash

or, grab a core file, and:

  gdb -c core.file /usr/sbin/asterisk

> bt
> bt full

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list