Received: from eggs.gnu.org ([140.186.70.92]:43521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUW4c-0006Pq-Et for qemu-devel@nongnu.org; Sat, 26 Nov 2011 23:10:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUW4b-0002zg-DP for qemu-devel@nongnu.org; Sat, 26 Nov 2011 23:10:38 -0500 Received: from nm38.bullet.mail.ne1.yahoo.com ([98.138.229.31]:33891) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RUW4b-0002zY-7A for qemu-devel@nongnu.org; Sat, 26 Nov 2011 23:10:37 -0500 Message-ID: <1322367036.22105.YahooMailClassic@web125408.mail.ne1.yahoo.com> Date: Sat, 26 Nov 2011 20:10:36 -0800 (PST) From: Rick Hodgin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Add native debugger List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org For i386, I'm considering writing a native debugger for QEMU that is not GDB. It would allow a separate/new windowed interface which would show disassembly, registers, stack, local variables, memory windows, etc., allowing the user to single-step through code and trap opcodes like INT 1, INT 3, INT 4, etc. It would be invoked with something like "qemu -debugger" from the command line, and would have a UI similar to Microsoft's Debugger in Visual Studio when no PDB is available, but would show a similar type of disassembly form. I was looking at the QEMU code and I can't find an obvious place where it seems to iterate through each CPU instruction, which is where I had in mind to add a hook. Can someone get me pointed in the right direction? Where will I look for something like this: for (;;) { execute_next_instruction(); } Thanks and best regards, Rick C. Hodgin