Skip to contentSkip to conversation

is there any way to make qemu stop at the very first instruction of the emulation process and wait for gdb connect?

DISCUSSION tugouxp 2 participants 2 messages May 10, 2020 – May 11, 2020

lore
Share & tools
lore

tugouxp

author
#0 lore raw

is there any way to make qemu stop at the very first instruction of the emulation process and wait for gdb connect? for i want to know the boot sequence of the first instrction of the target system, how to get this?

thank you .

#1 lore raw
Quoted 2 lines · tugouxp

is there any way to make qemu stop at the very first instruction of the emulation process and wait for gdb connect?

Yes: use the '-S' option (as well as the usual option to set up a gdbstub connection). See the documentation:
https://www.qemu.org/docs/master/system/gdb.html

thanks
-- PMM