[RFA] Modifications to gdb/testsuite/gdb.base/attach.exp

Andrew Cagney ac131313@ges.redhat.com
Wed Jul 10 15:01:00 GMT 2002


> 1. Systems that use /proc produce slightly different error and informational
> messages in response to the attach.exp script, which the changes below
> address.
> 
> 2. While looking at this, I found the following:
> 
>    gdb_expect {
>       # This reponse is expected on HP-UX 10.20 (i.e., ptrace-based).
>       -re "Attaching to.*, process 0.*No such process.*$gdb_prompt $"\
>                       {pass "attach to nonexistent process is prohibited"}
> 
> Gotcha, it appears!  That "comment" is not a comment so far as Tcl is 
> concerned.  It tries to match against the strings "#", "reponse", "expected",
> etc.  It was indeed fortunate that this intended comment (and the one just
> below it) had an even number of words in it (if they INTENTIONALLY had an
> even number of words, my apologies).  

Yes, ``#'' is a command, just like ``:'' in SH, so it can only appear 
where a command can.

> P. Hilfinger
> ACT Inc.
> 
> 2002-04-12  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
> 
> 	* gdb.base/attach.exp: Add patterns to match output from /proc-based
> 	systems.
> 	Move comments in expect statements to inside the actions, so that they
> 	don't get matched against.
> 
Yep fine (which reminds me, I should add a few my self :-).

Andrew
[for fernando]

-------------- next part --------------
An embedded message was scrubbed...
From: "Paul N. Hilfinger" <hilfingr@otisco.mckusick.com>
Subject: [RFA] Modifications to gdb/testsuite/gdb.base/attach.exp
Date: Fri, 12 Apr 2002 23:45:47 -0700
Size: 6301
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020710/04a41a00/attachment.eml>


More information about the Gdb-patches mailing list