This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/testsuite/stabs] weird.exp: accept full path name
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: ezannoni at redhat dot com, gdb-patches at sources dot redhat dot com
- Cc: mec dot gnu at mindspring dot com
- Date: Thu, 22 Apr 2004 13:54:34 -0400 (EDT)
- Subject: Re: [rfa/testsuite/stabs] weird.exp: accept full path name
Elena Zannoni writes:
eza> [adding the list]
Ooops, I sent the patch to Elena, but forgot to copy it to gdb-patches.
My mistake! I've appended the patch.
eza> Definitely.
Okay, I'm committing this now.
Michael C
===
This is a small fix for weird.exp.
gdb HEAD recently changed its output format for the "file" command
so that it prints the full pathname. This patch enhances weird.exp
to accept a full path-name.
# gdb.log, previous
(gdb) file object.o
Reading symbols from object.o...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) PASS: gdb.stabs/weird.exp: weirdx.o read without error
# gdb.log, current
(gdb) file object.o
Reading symbols from /tmp/migbat-testgdb-n7isztC0/test/object.o...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) FAIL: gdb.stabs/weird.exp: Errors reading weirdx.o
Tested on native i686-pc-linux-gnu, gcc 2.95.3 and gcc 3.4.0,
dwarf-2 and stabs+.
Okay to commit?
Michael C
2004-04-21 Michael Chastain <mec.gnu@mindspring.com>
* gdb.stabs/weird.exp: Accept full pathname for $binfile.
Index: weird.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.stabs/weird.exp,v
retrieving revision 1.7
diff -c -3 -p -r1.7 weird.exp
*** weird.exp 7 Jan 2004 21:56:26 -0000 1.7
--- weird.exp 21 Apr 2004 22:26:20 -0000
*************** gdb_expect 60 {
*** 317,323 ****
send_gdb "y\n"
exp_continue
}
! -re "^Reading symbols from $binfile\\.\\.\\.done\.(|\r\nUsing host libthread_db library .*libthread_db.so.*\\.)\r\n$gdb_prompt $" {
pass "weirdx.o read without error"
}
-re ".*$gdb_prompt $" {
--- 317,323 ----
send_gdb "y\n"
exp_continue
}
! -re "^Reading symbols from .*$binfile\\.\\.\\.done\.(|\r\nUsing host libthread_db library .*libthread_db.so.*\\.)\r\n$gdb_prompt $" {
pass "weirdx.o read without error"
}
-re ".*$gdb_prompt $" {