From: "Jim Blandy" <jimb@red-bean.com>
To: "Mark Kettenis" <mark.kettenis@xs4all.nl>
Cc: vladimir@codesourcery.com, gdb-patches@sources.redhat.com
Subject: Re: [RFA] Ignore breakpoints when reading memory.
Date: Mon, 21 Jan 2008 17:19:00 -0000 [thread overview]
Message-ID: <8f2776cb0801210919v7ae9a72q657c4c7b4232ac2b@mail.gmail.com> (raw)
In-Reply-To: <200712041811.lB4IBToM005652@brahms.sibelius.xs4all.nl>
On Dec 4, 2007 10:11 AM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> > From: Vladimir Prus <vladimir@codesourcery.com>
> > Date: Sat, 1 Dec 2007 14:19:45 +0300
> >
> > This commit prepares us for always-inserted-breakpoints mode.
> > If breakpoints are always inserted, then reading the code memory
> > will read the breakpoint instructions, not the original content.
> > This patch makes us try to restore the original comments using
> > the breakpoints table. OK?
>
> So now reading from target memory will need to traverse the complete
> list of inserted breakpoints. Did you do any benchmarking to see what
> the impact of this change is, especially when running on a somewhat
> slow machine?
I measured this on my laptop (not slow), by timing 'runtest break.exp
call-ar-st.exp' nine times. I got:
with patch:
user (+ 1.57 1.55 1.51 1.58 1.64 1.59 1.68 1.54 1.53) 14.19
without patch:
user (+ 1.55 1.61 1.54 1.52 1.58 1.60 1.55 1.58 1.61) 14.14
These times include the compilations, symbol table reading, and so on.
It would have been better to write a custom expect script, and
perhaps add a GDB maintenance command to print the current running
total for CPU time. But for what it is, the effect of the patch is in
the noise.
next prev parent reply other threads:[~2008-01-21 17:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-01 11:19 Vladimir Prus
2007-12-04 18:14 ` Mark Kettenis
2007-12-04 19:12 ` Jim Blandy
2008-01-21 17:19 ` Jim Blandy [this message]
2007-12-04 19:22 ` Daniel Jacobowitz
2007-12-05 22:31 ` Jim Blandy
2007-12-13 19:23 ` Vladimir Prus
2008-01-21 17:20 ` Jim Blandy
2008-01-21 18:24 ` Vladimir Prus
2008-01-21 18:37 ` 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=8f2776cb0801210919v7ae9a72q657c4c7b4232ac2b@mail.gmail.com \
--to=jimb@red-bean.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mark.kettenis@xs4all.nl \
--cc=vladimir@codesourcery.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