[arm-gnu] Low level debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[arm-gnu] Low level debugging
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: [arm-gnu] Low level debugging
- From: Héctor <h.cortiguera@xxxxxxxxx>
- Date: Mon, 15 Jun 2009 12:42:49 +0200
Hello
I'm trying to debug a low level application (the sand bootloader in "ARM
System Developer's Guide) without a guest OS.
I assemble the code and load it into qemu, but I can't debug it. When I make
gdb go step by step, I can see the instructions, but registers don't change.
Assembler version 2.19.51.2009.0205
arm-none-eabi-as -g sandgnu.s
arm-none-objcopy -O binary a.out a.bin
Then I run qemu
qemu-system-arm -k es -serial stdio -m 256 -M integratorcp -kernel ./a.bin
And then, I connect to qemu via gdb. It seems to work, but instructions
don't change register values, so my program can't do anything.
What I'm doing wrong? Am I missing some step in the process?