[ECOS] gdb disassemble shift about 52 bytes in arm platform

Andrew Lunn andrew@lunn.ch
Mon Apr 28 13:32:00 GMT 2008


On Mon, Apr 28, 2008 at 03:33:51PM +0800, Frank Lin wrote:
> My Global compiler flags is: -mcpu=arm7tdmi -mno-short-load-words -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O0 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority
> My Global linker flags is: -mcpu=arm7tdmi -mno-short-load-words -Wl,--gc-sections -Wl,-static -g -nostdlib
> 
> for example:
> 
> I disassmble do_mfill function in mfill.c using elf-arm-insight in mixed mode(using elf-arm-gdb is same result, but elf-arm-insight more clearly), it display(please pay attention I mark with '<---------'):
> 

I've not had problems before. Are you sure everything is syncronised?
What is on your hardware is the same as the object file on your host
and that the objects are from your current sources?

Try arm-elf-objdump -D myprog.elf | less

and see if there is the same problem. This removes the target from the
picture.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list