[PATCH v4] target/i386: Fix handling of k_gs_base register in 32-bit mode in gdbstub

2019-12-28 Thread Marek Dolata - mkdol...@us.ibm.com
Fixes: corrects clobbering of registers appearing after k_gs_base Buglink: https://bugs.launchpad.net/qemu/+bug/1857640 Signed-off-by: Marek Dolata --- target/i386/gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/gdbstub.c b/target/i386/gdbstub.c index

[PATCH V3] target/i386: Fix handling of k_gs_base register in 32-bit mode in gdbstub

2019-12-27 Thread Marek Dolata - mkdol...@us.ibm.com
Fixes: corrects clobbering of registers appearing after k_gs_base Buglink: https://bugs.launchpad.net/qemu/+bug/1857640 Signed-off-by: Marek Dolata mailto:mkdol...@us.ibm.com>> --- target/i386/gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/gdbst

[PATCH] target/i386: Fix handling of k_gs_base register in 32-bit mode in gdbstub

2019-12-27 Thread Marek Dolata - mkdol...@us.ibm.com
Fixes: corrects clobbering of registers appearing after k_gs_base Buglink: https://bugs.launchpad.net/qemu/+bug/1857640 Signed-off-by: Marek Dolata mailto:mkdol...@us.ibm.com>> --- target/i386/gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/gdbst

[PATCH] /target/i386: fix gdbstub k_gs_base issue

2019-12-27 Thread Marek Dolata - mkdol...@us.ibm.com
Fixes: corrects clobbering of registers appearing after k_gs_base Buglink: https://bugs.launchpad.net/qemu/+bug/1857640 Signed-off-by: Marek Dolata --- target/i386/gdbstub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/i386/gdbstub.c b/target/i386/gdbstub.c index

[Bug 1686170] Re: qemu-system-x86_64+gdb: unable to correctly disassemble "real mode" (i8086) instructions after attaching to QEMU started with "-S -s" options

2019-12-26 Thread Marek Dolata
I had the same issue. My workaround is to force the target description to be loaded from a local xml file where the architecture tag is i8086. I took the one that was sent over the network from the server to the client and changed the architecture tag from i386 to i8086 and also the size of the i3

[Bug 1857640] Re: qemu-system-i386 registers clobbered after gdb set due to k_gs_base bug in gdbstub

2019-12-26 Thread Marek Dolata
** Tags added: gdb -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857640 Title: qemu-system-i386 registers clobbered after gdb set due to k_gs_base bug in gdbstub Status in QEMU: New Bug desc

[Bug 1857640] [NEW] qemu-system-i386 registers clobbered after gdb set due to k_gs_base bug in gdbstub

2019-12-26 Thread Marek Dolata
Public bug reported: Due to a bug in /target/i386/gdbstub.c, setting registers in gdb causes the ones following k_gs_base to get clobbered. I'm using qemu version 4.2.50 on an msys64 and start qemu's i386 with a gdb server. $ qemu-system-i386 -version QEMU emulator version 4.2.50 (v4.2.0-363-gdd