Skip to content
Snippets Groups Projects
Commit e5618908 authored by Ivan Shcherbakov's avatar Ivan Shcherbakov Committed by Paolo Bonzini
Browse files

whpx: Fixed reporting of the CPU context to GDB for 64-bit


Make sure that pausing the VM while in 64-bit mode will set the
HF_CS64_MASK flag in env->hflags (see x86_update_hflags() in
target/i386/cpu.c).

Without it, the code in gdbstub.c would only use the 32-bit register values
when debugging 64-bit targets, making debugging effectively impossible.

Signed-off-by: default avatarIvan Shcherbakov <ivan@sysprogs.com>
Message-Id: <00f701d82874$68b02000$3a106000$@sysprogs.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 6f4fe14b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment