From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBY4D-0000to-HV for qemu-devel@nongnu.org; Wed, 25 Jun 2008 12:41:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBY4C-0000tb-Au for qemu-devel@nongnu.org; Wed, 25 Jun 2008 12:41:56 -0400 Received: from [199.232.76.173] (port=51716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBY4C-0000tY-62 for qemu-devel@nongnu.org; Wed, 25 Jun 2008 12:41:56 -0400 Received: from ag-out-0708.google.com ([72.14.246.244]:38140) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBY4B-0007aK-HC for qemu-devel@nongnu.org; Wed, 25 Jun 2008 12:41:55 -0400 Received: by ag-out-0708.google.com with SMTP id 31so27166383agc.5 for ; Wed, 25 Jun 2008 09:41:53 -0700 (PDT) Message-ID: Date: Wed, 25 Jun 2008 09:41:51 -0700 From: Atoosah MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] Using GDB with Qemu : No Symbol Table? Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, -- I'm using qemu version 0.8.2 on linux. I need some pointers on how to run qemu with gdb. [installed_qemu/bin]$./qemu mydisk.img -m 256 -s -S -- At this point, qemu loads up and waits on port 1234. qemu's console output is: Waiting gdb connection on port 1234 -- But, when I run gdb, and try to put a break statement before continuing, gdb states that there is no symbol table as shown below. (I don't have a symbol table compiled in the a file, so can't use "file" command.) The qemu options available to me does not have a -g option (as I've seen used in some examples). $gdb vmlinux (gdb) target remote localhost:1234 Remote debuggin using localhost:1234 0x0000fff0 in ?? () (gdb) break main No symbol table is loaded. Use the "file" command. (gdb) c Continuing. Program received signal SIGINT, Interrupt. (gdb) list No symbol table is loaded. Use the "file" command. (gdb) where #0 0xc0101040 in ?? () #1 0xc01010ac4 in ?? () ... -- Any ideas why there would be no symbol table available to gdb? Are there any steps I'm missing? Do I need to compile qemu differently? thank you, Atoosaah