From: Joel Brobecker <brobecker@adacore.com>
To: Pierre Muller <muller@ics.u-strasbg.fr>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Testsuite: Change match_max for current also
Date: Fri, 02 Oct 2009 23:20:00 -0000 [thread overview]
Message-ID: <20091002232011.GH10338@adacore.com> (raw)
In-Reply-To: <00a301ca4368$63c22c90$2b4685b0$@u-strasbg.fr>
> In annota1.exp, I found that:
> verbose "match_max local is: [match_max]"
> verbose "match_max default is: [match_max -d]"
> # This is necessary because a 2000 buffer is not enought to get
> everything
> # up to the prompt ad the test gets a timeout.
> match_max 3000
> verbose "match_max now is: [match_max]"
Yeah - wild guess is that this was done before the match_max value
got unilaterally increased by default_gdb_init.
> PS1: If this is approved, we should also
> consider what to do about the three tests
> that set another value of match_max
> (lower than the 30000).
We should simply remove them, since this is now handled automatically.
> PS2: calling 'match_max -d 30000' several times is a waste of time, as
> long as nothing changes that default value in any of the tests, should
> it rather be extracted out of default_gdb_init, so that it get
> executed only once?
I'd say: Only if the optimization provides noticeable performance
benefits. Another wild guess is that it is not noticeable, but if
you can measure it, and it doesn't increase code complexity too much,
sure. Of, if it does not increase code complexity at all, then by
all means.
I was actually wondering if we needed to change the default value
at all. Just keep resetting the match_max value to the current
default, or even to 30000, if we eliminate setting the default
at all.
> 2009-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
>
> * lib/gdb.exp (default_gdb_init): Set current value of match_max
> to default.
In the meantime, this looks fine to me.
--
Joel
next prev parent reply other threads:[~2009-10-02 23:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-02 13:58 Pierre Muller
2009-10-02 23:20 ` Joel Brobecker [this message]
2009-10-06 14:46 ` [RFA] Testsuite: Remove obsolete match_max uses Pierre Muller
2009-10-06 14:57 ` Joel Brobecker
2009-10-06 15:14 ` Pierre Muller
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=20091002232011.GH10338@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=muller@ics.u-strasbg.fr \
/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