This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Unable to step over functions in arm-elf binary
- From: Daniel Jacobowitz <drow at false dot org>
- To: Colin MacDonald <colin_mac2002 at yahoo dot co dot uk>
- Cc: gdb at sourceware dot org
- Date: Thu, 22 Feb 2007 14:58:27 -0500
- Subject: Re: Unable to step over functions in arm-elf binary
- References: <76964.36169.qm@web26713.mail.ukl.yahoo.com>
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