Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Robert Bu" <robert.bu@gmail.com>
To: gdb@sourceware.org
Subject: GDB RSP try 'p' before 'g'
Date: Wed, 24 Oct 2007 08:30:00 -0000	[thread overview]
Message-ID: <a0319f700710240129s5fb4ed61j223c683099d22c7f@mail.gmail.com> (raw)

Hello all,

    When doing remote debugging, GDB, version 6.0 and before, tries to
fetch the registers' value by 'g' packet when connected to remote
target. However, GDB version 6.4 and later, tries 'p' packet before 'g'
packet. So if the target supports 'p' packet, GDB uses 'p' packet to
retrieve value of all registers. That may degrate the speed for the poor
connection speed (Serial, parallel or even ethernet) between GDB and the
target.
    Does anybody know what is that change for?

Thanks.

Robert.
20071024


             reply	other threads:[~2007-10-24  8:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24  8:30 Robert Bu [this message]
2007-10-24 11:54 ` Daniel Jacobowitz

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=a0319f700710240129s5fb4ed61j223c683099d22c7f@mail.gmail.com \
    --to=robert.bu@gmail.com \
    --cc=gdb@sourceware.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