This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unable to step over functions in arm-elf binary


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]