In my school lab I've been asked to debug a program (written in assembly) step by step using arm-elf-gdb. When I set a break point at _start and then run the program and step through it to display the registers' current values. However, when I try to step, the debugger doesn't show the values of the registers. I used "i r" to display the final values of the registers but I need to see the values changing step by step. Any idea why the debugger isn't displaying the values?
Thanks in advance.
The assembly code:
.text @ Executable code below
_start: .global _start @ "_start" is required by the linker
.global main @ "main" is the main program
b main @ Start the main program
main: @ Entry to function "main"
mov r0, #10
mov r1, #3
add r2, r1, r0 @ r2 = r1 + r0
sub r3, r0, r1 @ r3 = r1 - r0
mul r1, r0, r1 @ r1 = r0 * r1
swi 0x11 @ Software interrupt to terminate
.end