From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGAfS-00025o-At for qemu-devel@nongnu.org; Tue, 27 Jan 2015 13:15:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGAfM-0004t3-Nm for qemu-devel@nongnu.org; Tue, 27 Jan 2015 13:15:14 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:49723 helo=cvs.linux-mips.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGAfM-0004eT-Fo for qemu-devel@nongnu.org; Tue, 27 Jan 2015 13:15:08 -0500 Received: from localhost.localdomain ([127.0.0.1]:58190 "EHLO localhost.localdomain" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27011318AbbA0SPB6HLxa (ORCPT ); Tue, 27 Jan 2015 19:15:01 +0100 Date: Tue, 27 Jan 2015 18:15:01 +0000 (GMT) From: "Maciej W. Rozycki" In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] Qemu with GDB - Query List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: manish tiwari Cc: qemu-devel@nongnu.org On Sat, 24 Jan 2015, manish tiwari wrote: > I am new to QEMU and trying to attach gdb with qemu on powepc host. > > I have tried below options > > qemu-system-ppc -enable-kvm -nographic -m 512 -M ppce500 -cpu e500mc -gdb > tcp::1234 -s -S -kernel uImage -initrd rootfs.ext2.gz -append > "root=/dev/ram rw console=ttyS0,115200" -serial tcp::4444,server, > > > With the above command I have attached gdb with qemu. > Now I am not sure what needs to be done on host side(I have cross compiled > GDB in the Host file system). > > Please help me what i need to do in host side ? So far you only enabled QEMU's RSP stub so that you can attach with GDB later on (RSP stands for GDB's Remote Serial Protocol). So to attach from GDB you now need to issue a command like: (gdb) target remote system_running_qemu:1234 from the machine you have GDB on. Substitute `system_running_qemu' above with the name of the machine you have started QEMU on; if it is the same machine as one that runs GDB, then you can omit this part altogether. For the record, this is a QEMU developers' list, such questions are best directed to a place dedicated to QEMU users. I am sure your favourite Internet search engine will be able to locate such a place for you. Please post your any further questions there rather than here. Thank you. Maciej