qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@linux-mips.org>
To: manish tiwari <manishmatey@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Qemu with GDB - Query
Date: Tue, 27 Jan 2015 18:15:01 +0000 (GMT)	[thread overview]
Message-ID: <alpine.LFD.2.11.1501271804130.28301@eddie.linux-mips.org> (raw)
In-Reply-To: <CABNnOXL+siUkFLRKSA_yGd29G2yOz1wcjhw10grmbycbq17z2A@mail.gmail.com>

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

      reply	other threads:[~2015-01-27 18:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-24 14:16 [Qemu-devel] Qemu with GDB - Query manish tiwari
2015-01-27 18:15 ` Maciej W. Rozycki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.11.1501271804130.28301@eddie.linux-mips.org \
    --to=macro@linux-mips.org \
    --cc=manishmatey@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).