Unable to step over functions in arm-elf binary
Colin MacDonald
colin_mac2002@yahoo.co.uk
Thu Feb 22 12:56:00 GMT 2007
We have .elf targets for Arm processors and we can debug these via a remote connection (using the remote serial protocol) with Insight / GDB. Everything works fine except for one thing: I can't step over a function. If I try to step over a function I invariably step into it instead. Using the 'n' command from GDB command line generates a sequence remote serial commands like this:
1. A breakpoint is set with $Z, but it's a breakpoint that I already have in the code
2. A series of $s and $p commands, step then check register, are executed, presumably hunting for the desired program counter value
3. Once the PC reaches the appropriate number I see a $m, probably to get a local variable value or something of the sort.
4. The breakpoint set in 1 is cleared with $z.
I was expecting that a breakpoint would be set temporarily at the next line of code then a $c (continue) would be issued.
Is this a known problem? Does it only affect Arm targets, or is it only a problem using the remote serial protocol? Any clues gratefully appreciated.
Colin MacDonald
____________________________________________________
Yahoo! Photos is now offering a quality print service from just 7p a photo. http://uk.photos.yahoo.com
More information about the Gdb
mailing list