From: Pedro Alves <pedro_alves@portugalmail.pt>
To: gdb-patches@sourceware.org
Subject: Re: [RFH] Cygwin (EXEEXT) fix.
Date: Sun, 10 Dec 2006 16:54:00 -0000 [thread overview]
Message-ID: <457C3BA2.3010801@portugalmail.pt> (raw)
In-Reply-To: <20061210155602.GA22340@nevyn.them.org>
[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]
Daniel Jacobowitz escreveu:
> On Sun, Dec 10, 2006 at 02:37:46PM +0000, Pedro Alves wrote:
>> gdb_expect_list "run until main breakpoint" "$gdb_prompt$" {
>> "\r\n\032\032post-prompt\r\n"
>
> This is a TCL list. { } are quotes, like ' ' in the shell, which
> prevent expansion.
>
> Try changing it to [list "..." "..."], but you'll need to check the
> quoting in every element and add backslashes at the end of every line.
Ah, I see. But shouldn't a command work too?
If not, then I don't understand is how this in
gdb.arch/altivec-regs.exp can work.
gdb_expect_list "info vector" ".*$gdb_prompt $" {
[$pattern0]
[$pattern1]
[$pattern2]
[$pattern3]
(...)
}
> Or, you can just add (|\.exe) instead of $EXEEXT... much simpler.
>
>
That is what I have in my local tree, but I though that
it wouldn't be acceptable, since it feels like a hack. :)
Since it is, then please find the patch attached.
Please review and commit.
Cheers,
Pedro Alves
---
gdb/testsuite/ChangeLog:
2006-12-10 Pedro Alves <pedro_alves@portugalmail.pt>
* gdb.base/annota3.exp ($binfile): Append $EXEEXT.
Expect ".exe" extension.
[-- Attachment #2: annota3.diff --]
[-- Type: text/plain, Size: 977 bytes --]
Index: gdb.base/annota3.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota3.exp,v
retrieving revision 1.9
diff -u -p -r1.9 annota3.exp
--- gdb.base/annota3.exp 10 Aug 2006 05:27:20 -0000 1.9
+++ gdb.base/annota3.exp 10 Dec 2006 16:47:50 -0000
@@ -39,7 +39,7 @@ set bug_id 0
set testfile "annota3"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/${testfile}$EXEEXT
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } {
untested annota3.exp
@@ -118,7 +118,7 @@ gdb_expect_list "breakpoint info" "$gdb_
send_gdb "run\n"
gdb_expect_list "run until main breakpoint" "$gdb_prompt$" {
"\r\n\032\032post-prompt\r\n"
- "Starting program: .*annota3 \r\n"
+ "Starting program: .*annota3(|\.exe) \r\n"
"\r\n\032\032starting\r\n"
"\r\n\032\032breakpoint 1\r\n"
"\r\n"
next prev parent reply other threads:[~2006-12-10 16:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-10 14:38 Pedro Alves
2006-12-10 15:56 ` Daniel Jacobowitz
2006-12-10 16:54 ` Pedro Alves [this message]
2006-12-10 17:06 ` Daniel Jacobowitz
2006-12-10 17:24 ` Pedro Alves
2007-01-04 20:56 ` 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=457C3BA2.3010801@portugalmail.pt \
--to=pedro_alves@portugalmail.pt \
--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