Running an ARM assembly language program in gdb Debugger You need to open two terminal tabs to start the debugger: one for the qemu emulator and another for gdb. In terminal 1: [alarm@alarm ~]$ qemu-arm -L -g 1234./program In terminal 2: [alarm@alarm ~]$ gdb ./program -ex 'target remote localhost:1234' gdb commands: 1. layout asm Shows assembly code view in the debugger 2. layout reg Shows the contents of the registers 3. b Sets a breakpoint at 4. b Sets a breakpoint at some line number in the current file 5. c Continue execution until the next breakpoint 6. si Step one assembly instruction. If the instruction is a function call, step IN to the function. 7. ni Step one assembly instruction. If the instruction is a function call, step OVER the function. 8. quit Quit