qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* is there any way to make qemu stop at the very first instruction of the emulation process  and wait for gdb connect?
@ 2020-05-10  9:02 tugouxp
  2020-05-11  9:13 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: tugouxp @ 2020-05-10  9:02 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

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 .

[-- Attachment #2: Type: text/html, Size: 494 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: is there any way to make qemu stop at the very first instruction of the emulation process and wait for gdb connect?
  2020-05-10  9:02 is there any way to make qemu stop at the very first instruction of the emulation process and wait for gdb connect? tugouxp
@ 2020-05-11  9:13 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2020-05-11  9:13 UTC (permalink / raw)
  To: tugouxp; +Cc: QEMU Developers

On Sun, 10 May 2020 at 10:18, tugouxp <13824125580@163.com> wrote:
>
> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-11  9:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10  9:02 is there any way to make qemu stop at the very first instruction of the emulation process and wait for gdb connect? tugouxp
2020-05-11  9:13 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).