Re: [Qemu-devel] [PATCH] Workaround to the real-mode/protected-mode conflict in GDB.

2012-01-24 Thread Francis Moreau
Hello, On Tue, Jan 24, 2012 at 1:40 PM, Laurent Vivier wrote: > > By adding a breakpoint at startup, we can connect GDB to qemu gdb server > when CPU is already in protected mode. > Not tried yet, but usefull workaround IMHO. Thanks ! -- Francis

[Qemu-devel] [PATCH] Workaround to the real-mode/protected-mode conflict in GDB.

2012-01-24 Thread Laurent Vivier
When qemu is started with '-S' to freeze at startup and gdb is connected to inner gdb server, gdb is using by default 16-bit real-mode. Then if we put a breakpoint inside kernel linux, the CPU is switched to 32/64-bit protected mode but GDB is always in 16 bit real-mode. The size of the registers d