From: Daniel Jacobowitz <drow@false.org>
To: Alexandre Oliva <aoliva@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Prelink.exp troubles
Date: Mon, 06 Mar 2006 18:38:00 -0000 [thread overview]
Message-ID: <20060304151105.GE20187@nevyn.them.org> (raw)
In-Reply-To: <orfylzpqu2.fsf@free.oliva.athome.lsd.ic.unicamp.br>
On Fri, Mar 03, 2006 at 11:04:21AM -0300, Alexandre Oliva wrote:
> On Mar 1, 2006, Daniel Jacobowitz <drow@false.org> wrote:
>
> > First: you're using gdb_expect directly. I'm sorry I didn't notice
> > this before. Don't do that; use gdb_test_multiple instead.
>
> Tricky to catch two independent messages triggered by the same command
> that way while still producing a fail if either fails to match, so I
> put them now in a single regexp.
Actually, it's very easy: set a flag when you see the each message,
exp_continue if you haven't seen the other. This is fine too.
> > We need to either copy the libraries around (complicated, fragile), or
> > punt if the system ld.so is not prelinked.
>
> Punting it is :-) Tricky, since prelink doesn't report an error in
> this case. Fortunately prelink -u does.
>
> How's this? I've tested it on amd64-linux-gnu, with and without
> prelinked system libraries. I got the warning in the latter case, and
> a pass in the former.
Hmm, two things: I don't think a WARNING is appropriate (there's
nothing wrong), how about just an UNTESTED? And, when matching
patterns in gdb_test_multiple (the same was true in gdb_expect)
it's important to anchor the end of the pattern to the GDB prompt.
Otherwise that prompt might not be consumed by expect, causing
new tests added at the end of the file to fail.
If you agree about the UNTESTED, with those changes it's fine to check
in. My test runs thank you.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-03-04 15:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 20:05 Daniel Jacobowitz
2006-03-03 14:49 ` Alexandre Oliva
2006-03-06 18:38 ` Daniel Jacobowitz [this message]
2006-03-07 8:38 ` Alexandre Oliva
2006-03-07 19:34 ` Daniel Jacobowitz
2006-03-09 4:40 ` Alexandre Oliva
2006-03-25 7:02 ` 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=20060304151105.GE20187@nevyn.them.org \
--to=drow@false.org \
--cc=aoliva@redhat.com \
--cc=gdb-patches@sourceware.org \
/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