From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6g64-0000O9-8T for qemu-devel@nongnu.org; Tue, 27 Apr 2010 04:24:48 -0400 Received: from [140.186.70.92] (port=47340 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6g63-0000LN-14 for qemu-devel@nongnu.org; Tue, 27 Apr 2010 04:24:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6g61-0001O5-Od for qemu-devel@nongnu.org; Tue, 27 Apr 2010 04:24:46 -0400 Received: from mail-qy0-f188.google.com ([209.85.221.188]:38802) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6g61-0001Nw-MJ for qemu-devel@nongnu.org; Tue, 27 Apr 2010 04:24:45 -0400 Received: by qyk26 with SMTP id 26so6625169qyk.19 for ; Tue, 27 Apr 2010 01:24:44 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 27 Apr 2010 17:24:43 +0900 Message-ID: From: robert song Content-Type: text/plain; charset=ISO-8859-1 Subject: [Qemu-devel] [DEBUG] how to use GDB to debug qemu? List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello, everyone. Now I am trying to read the QEMU source code. And sometimes it's helpful to use GDB to do the debug for me to understand the code. For example, in the qemu environment, I use gdb to attach to the qemu process. Then I just run "info cpus" as following. (QEMU) info cpus But now how can I get into the rountine of "info cpus" ? Of course, set trace point to the function can do the work, but if I don't know where the routine is, is there any way to step into the rountine? Maybe it's sometimes about the usage of gdb, but I will be very thankful if anyone can tell me some debug tips during the QEMU development. Best Regards, robert