From: Joel Brobecker <brobecker@adacore.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Paul Pluzhnikov <ppluzhnikov@google.com>, gdb-patches@sourceware.org
Subject: Re: [RFC] Make target_read_string faster over high-latency links.
Date: Fri, 22 Jul 2011 16:53:00 -0000 [thread overview]
Message-ID: <20110722164341.GC5177@adacore.com> (raw)
In-Reply-To: <m3k4bf7byo.fsf@fleche.redhat.com>
> Paul> 1. is it ok to read strings 128 bytes at a time, or are there
> Paul> scenarios (JTAG?) where the latency is low but throughput is also
> Paul> low (and so reading "unnecessary" data is expensive) ?
>
> I don't know, but I assume so.
I think that the risk is to attempt a read that gets past the
readable memory region. I don't remember if GDB is protecting
itself against this sort of thing (by checking the range against
known regions), but I remember having problems on LynxOS for instance,
where we tried to read some data on the stack, tried to read too much
in one go, and ended up getting a failure and no data as a result.
That was a while ago, so may be OBE...
> What about making it possible for gdbserver to do the string-reading
> itself, with a fallback to the existing code for older versions? Then
> you don't need a parameter or any tuning.
Seems like a good idea to me.
--
Joel
next prev parent reply other threads:[~2011-07-22 16:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-15 18:09 Paul Pluzhnikov
2011-07-18 18:06 ` Tom Tromey
2011-07-18 19:01 ` Paul Pluzhnikov
2011-07-19 17:44 ` Paul Pluzhnikov
2011-07-19 17:52 ` Tom Tromey
2011-07-22 16:53 ` Joel Brobecker [this message]
2011-07-22 17:01 ` Paul Pluzhnikov
2011-07-25 14:42 ` Daniel Jacobowitz
2011-07-26 11:15 ` Jan Kratochvil
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=20110722164341.GC5177@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=ppluzhnikov@google.com \
--cc=tromey@redhat.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