Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Robert Bu <robert.bu@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: GDB RSP try 'p' before 'g'
Date: Wed, 24 Oct 2007 11:54:00 -0000	[thread overview]
Message-ID: <20071024115449.GB19251@caradoc.them.org> (raw)
In-Reply-To: <a0319f700710240129s5fb4ed61j223c683099d22c7f@mail.gmail.com>

On Wed, Oct 24, 2007 at 04:29:54PM +0800, Robert Bu wrote:
> 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?

If you don't want this to happen, I recommend you do not provide the
'p' packet or else use a newer GDB.  Earlier versions of GDB did not
support 'p' at all.  I believe I made GDB smarter about this around
6.6 or 6.7.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2007-10-24 11:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24  8:30 Robert Bu
2007-10-24 11:54 ` Daniel Jacobowitz [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=20071024115449.GB19251@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=robert.bu@gmail.com \
    /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