[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dy
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically |
Date: |
Mon, 29 Jun 2009 15:42:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
Paul Brook wrote:
> On Saturday 27 June 2009, Jan Kiszka wrote:
>> Commit 56aebc891674cd2d07b3f64183415697be200084 changed gdbstub in way
>> that debugging 32 or 16-bit guest code is no longer possible with qemu
>> for x86_64 guest CPUs. Since that commit, qemu only provides registers
>> sets for 64-bit, forcing current and foreseeable gdb to also switch its
>> architecture to 64-bit. And this breaks if the inferior is 32 or 16 bit.
>>
>> No question, this is a gdb issue. But, as it was confirmed in several
>> discusssions with gdb people, it is a non-trivial thing to fix. So until
>> qemu finds a gdb version attach with a rework x86 support, we have to
>> work around it by switching the register layout as the guest switches
>> its execution mode between 16/32 and 64 bit.
>
> I still object to this patch. Especially as there's no indication that it's a
> harroble hack to workaround broken GDB.
Sorry, last sentence doesn't parse for me.
So what do you suggest for fixing this bug? Do you have a patch at hand
to fix gdb before 7.0? And a solution for older gdbs?
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
- [Qemu-devel] [RESEND][PATCH 0/4] Long pending gdbstub patches, Jan Kiszka, 2009/06/27
- [Qemu-devel] [PATCH 1/4] gdbstub: Add vCont support, Jan Kiszka, 2009/06/27
- [Qemu-devel] [PATCH 2/4] gdbstub: x86: Refactor register access, Jan Kiszka, 2009/06/27
- [Qemu-devel] [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Jan Kiszka, 2009/06/27
- [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Paul Brook, 2009/06/29
- [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically,
Jan Kiszka <=
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Paul Brook, 2009/06/29
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Jan Kiszka, 2009/06/29
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Paul Brook, 2009/06/29
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Jan Kiszka, 2009/06/29
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Daniel Jacobowitz, 2009/06/29
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Jan Kiszka, 2009/06/29
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Jamie Lokier, 2009/06/29
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Jan Kiszka, 2009/06/30
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Gerd Hoffmann, 2009/06/30
- Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically, Jan Kiszka, 2009/06/30