qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] gdbstub: x86-64: reintroduce dynamic register s


From: Jan Kiszka
Subject: Re: [Qemu-devel] [PATCH] gdbstub: x86-64: reintroduce dynamic register sets
Date: Tue, 04 Nov 2008 18:57:23 +0100
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 Tuesday 04 November 2008, Jan Kiszka wrote:
>> Commit 5459 broke the dynamic register set switching of qemu's gdbstub
>> for x86-64. This prevents setting the correct architecture in gdb when
>> debugging 32 or 16-bit code in a 64-bit emulator. Fix this.
> 
> Is this really a feature? Surely any attached gdb is going to break horribly 
> when we transition from a 64-bit to a 32-bit code segment.

Well, it would be real feature if gdb was smart enough to track those
switches automatically...

However, you can (and obviously have to) call "set arch ..." after that
switch in order to get the proper disassembly. Or you happen to use
qemu-system-x86_64 with a 32-bit guest and fire up gdb with the
appropriate 32-bit binary directly. Both used to work fine.

But if there is a way to tell gdb to switch x86 archs without switching
the remote gdb packet length for register queries, I would happily use
that and drop my patch!

Jan

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




reply via email to

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