From: "Maciej W. Rozycki" <macro@codesourcery.com>
To: Pedro Alves <palves@redhat.com>
Cc: <gdb-patches@sourceware.org>, Yao Qi <yao@codesourcery.com>
Subject: Re: [PATCH 2/2] GDB/testsuite: Add/correct gdb.reverse timeout tweaks
Date: Tue, 09 Sep 2014 16:32:00 -0000 [thread overview]
Message-ID: <alpine.DEB.1.10.1409091719450.27075@tp.orcam.me.uk> (raw)
In-Reply-To: <53D79621.8050805@redhat.com>
On Tue, 29 Jul 2014, Pedro Alves wrote:
> Looks good to me.
Thanks, I have applied this change now.
> I wonder though, whether:
>
> On 07/24/2014 11:39 PM, Maciej W. Rozycki wrote:
> > +set savedtimeout $timeout
> > +if { [target_info exists gdb,timeout]
> > + && $timeout < [target_info gdb,timeout] } {
> > + set oldtimeout [target_info gdb,timeout]
> > +} else {
> > + set oldtimeout $timeout
> > +}
> > +set timeout [expr $oldtimeout * 2]
>
> ... this pattern can be somewhat factored into a
> procedure? That'd also serve the duty of being the
> simple place we document it.
Good point, that would be a nice improvement indeed.
I have been continuously being dragged off to various other stuff
recently though so if I were to consider this improvement a prerequisite
to pushing the timeout tweaks I have made here, they may well have not
ended up integrated within a reasonable time frame. I have therefore
committed them as they are, as noted above, so as not to let perfect be
the enemy of good. I'll keep in mind that our timeouts would benefit from
some polishing yet and hopefully get back to it sometime sooner rather
than later. Unless someone beats me to it, that is -- I won't mind that,
not a little bit.
The stuff is easy to grep for, so the pieces to improve should be easy to
identify.
Maciej
next prev parent reply other threads:[~2014-09-09 16:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-24 22:39 [PATCH 1/2] GDB/testsuite: Avoid timeout lowering Maciej W. Rozycki
2014-07-25 1:41 ` [PATCH 2/2] GDB/testsuite: Add/correct gdb.reverse timeout tweaks Maciej W. Rozycki
2014-07-29 12:53 ` Pedro Alves
2014-09-09 16:32 ` Maciej W. Rozycki [this message]
2014-07-25 8:36 ` [PATCH 1/2] GDB/testsuite: Avoid timeout lowering Yao Qi
2014-07-29 12:35 ` Pedro Alves
2014-09-09 15:56 ` Maciej W. Rozycki
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=alpine.DEB.1.10.1409091719450.27075@tp.orcam.me.uk \
--to=macro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=yao@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