Hi All, Can some help me with how to run Asterisk with gdb. Thanks, Amit -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091224/771bbcfa/attachment.htm
On Thu, Dec 24, 2009 at 12:13:55PM +0530, Goyal, Amit wrote:> Hi All, > > Can some help me with how to run Asterisk with gdb.What specifically do you want to do? What do you want to check? -- 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
super quick asterisk in gdb howto: compile asterisk with DONT_OPTIMIZE (in make menuconfig -> Compiler flags) gdb asterisk run -cvvvvvvvvvv wait for the crash bt bt full and now make the patch :) Kristijan 2009/12/24 Tzafrir Cohen <tzafrir.cohen at xorcom.com>> On Thu, Dec 24, 2009 at 12:13:55PM +0530, Goyal, Amit wrote: > > Hi All, > > > > Can some help me with how to run Asterisk with gdb. > > What specifically do you want to do? What do you want to check? > > -- > Tzafrir Cohen > icq#16849755 jabber:tzafrir.cohen at xorcom.com<jabber%3Atzafrir.cohen at xorcom.com> > +972-50-7952406 mailto:tzafrir.cohen at xorcom.com > http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091224/caae8329/attachment.htm
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 crashor, 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