[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb
Subject:    Re: Unable to step over functions in arm-elf binary
From:       Daniel Jacobowitz <drow () false ! org>
Date:       2007-02-22 19:58:27
Message-ID: 20070222195827.GA27076 () caradoc ! them ! org
[Download RAW message or body]

On Thu, Feb 22, 2007 at 04:55:55PM +0000, Colin MacDonald wrote:
> OK, so I have a breakpoint on a line that calls a function.  When I hit the \
> breakpoint the backtrace shows this: 
> #0  CPlatform::RunTestSuite (this=0x207ffb4) at Common/Platform.cpp:113
> #1  0x01017db0 in main (argc=17253984, argv=0x0) at OtherFiles/Main.cpp:37
> 
> This is fine so far.  Line 113 of platform.cpp calls a function called vs_status.  \
> If I stepi until I first hit vs_status I get the following as the backtrace: 
> #0  vs_status (pInBuf=0x0) at Common/PlatformIO.cpp:149
> #1  0x00000000 in ?? ()
> 
> Doesn't look happy.  If I execute another stepi then pInBuf is picked up.  Another \
> few stepi instructions then fills in the backtrace properly:

That's the bug, and nowhere else.  You need to find out why it can't
unwind.  Is your compiler emitting sufficiently bogus debug info that
GDB is confused?  Or have some symbols been unexpectedly stripped from
the ELF file?  Those are the usual culprits.


-- 
Daniel Jacobowitz
CodeSourcery


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic