[RFH] Cygwin (EXEEXT) fix.

Pedro Alves pedro_alves@portugalmail.pt
Sun Dec 10 16:54:00 GMT 2006


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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: annota3.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20061210/54b26ce0/attachment.ksh>


More information about the Gdb-patches mailing list