This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: gdb disassemble shift about 52 bytes in arm platform
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Frank Lin <franklin373 at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 28 Apr 2008 10:49:01 +0200
- Subject: Re: [ECOS] gdb disassemble shift about 52 bytes in arm platform
- References: <004201c8a902$375a4270$9c1efea9@self9873de9bd3>
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