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: Jan Kiszka
Subject: Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically
Date: Mon, 29 Jun 2009 16:53:45 +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:
>>> You've just deliberately broken the qemu gdbstub. After your patch it is
>>> impossible to debug mixed 32/64-bit code.
>> Please give it a try as it's the other way around: You can't properly
>> debug mixed target code without my patch. 
> 
> Sure you can, you just need a gdb that doesn't suck.  As soon as you 
> encounter 
> actual mixed code (rather than just running the wrong qemu) your patch causes 
> things to die horribly.

Just to recall the situation (again, please actually try it): if you
have to debug code that switches between 16/32 bit and 64 bit, you
_can't_ debug the 16 or 32 bit part as gdb will stumble and fall over
qemu sending 64-bit register layout for 16/32 bit code. That is a gdb
limitation, but this patch is about dealing with it until it's resolved
in gdb.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux




reply via email to

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