Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
mcmordie
Posts: 50
Registered: ‎01-22-2009
My Device: Z10
My Carrier: Rogers

How to get more stack frames in debug view during debugging native code with momentics

Does anyone know how to get more than three backtrace frames in the debug window of momentics?  Each of my threads shows only the innermost three stack frames.  Very frustrating.  I had a look through the settings but couldn't find anything.  'show backtrace limit' on the gdb claims the backtrace is unlimited.

Please use plain text.
New Developer
mcmordie
Posts: 50
Registered: ‎01-22-2009
My Device: Z10
My Carrier: Rogers

Re: How to get more stack frames in debug view during debugging native code with momentics

bt
#0  0x02021b14 in MsgReceivePulse_r () from C:\\bbndk\\target_10_0_9_1673\\qnx6\\armle-v7\\usr\\lib/ldqnx.so.2
#1  0x781c841a in ?? ()
#2  0x781c841a in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Looks like the problem is a corrupt stack.  Are others experiencing this, or have I done something special?  My application by and large works reliably, but I was trying to get at a specific bug which occurs rarely.  Yet, despite it working fine, I always have this limitation with the stack frames.

 

Please use plain text.
Developer
indy2718
Posts: 36
Registered: ‎01-16-2013
My Device: Z10
My Carrier: Telus

Re: How to get more stack frames in debug view during debugging native code with momentics

I get the corrupt stack message on any thread that was created/handled by one of the BB/QNX libs.    I don't think I would be worried in that case.  (It could have been because the way the library was built -- omit frame pointers, no debug info, etc).   All my other threads I can see every frame no problem.   I'm running with -O0 (no inlining) and -g. 

[Switching to thread 10 (pid 102297834 tid 10)]
#0  0x017c1b14 in MsgReceivePulse () from G:\\bbndk\\target_10_0_10_672\\qnx6\\armle-v7\\usr\\lib/ldqnx.so.2
bt
#0  0x017c1b14 in MsgReceivePulse () from G:\\bbndk\\target_10_0_10_672\\qnx6\\armle-v7\\usr\\lib/ldqnx.so.2
#1  0x7851841a in ?? () from G:\\bbndk\\target_10_0_10_672\\qnx6\\armle-v7\\usr\\lib/libbps.so.3
#2  0x7851841a in ?? () from G:\\bbndk\\target_10_0_10_672\\qnx6\\armle-v7\\usr\\lib/libbps.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

 

Please use plain text.