qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit register


From: Paul Brook
Subject: Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically
Date: Mon, 29 Jun 2009 15:07:04 +0100
User-agent: KMail/1.11.4 (Linux/2.6.29-2-amd64; KDE/4.2.4; x86_64; ; )

> >> 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.

You've just deliberately broken the qemu gdbstub. After your patch it is 
impossible to debug mixed 32/64-bit code.

> So what do you suggest for fixing this bug? 

Fix gdb.

> Do you have a patch at hand to fix gdb before 7.0?

No. I'm unconvinced by any argument that requires a specific GDB version. 
You've known about this bug for a long time now.

> And a solution for older gdbs?

If you really care about old gdb, then you get to backport the changes.

Paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]