From: "Joseph S. Myers" <joseph@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: Fix gdb.base/solib-symbol.exp for remote-host testing
Date: Fri, 07 Oct 2011 21:23:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.64.1110072122330.20451@digraph.polyomino.org.uk> (raw)
Similarly to my fix
<http://sourceware.org/ml/gdb-patches/2011-10/msg00176.html> for
fixsection.exp, gdb.base/solib-symbol.exp also needs the filenames in
expected messages adjusted not to include directories so that it works
reliably for remote-host testing. OK to commit this patch?
2011-10-07 Joseph Myers <joseph@codesourcery.com>
* gdb.base/solib-symbol.exp: Do not include directories in
filenames in expected messages.
Index: gdb.base/solib-symbol.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/solib-symbol.exp,v
retrieving revision 1.7
diff -u -r1.7 solib-symbol.exp
--- gdb.base/solib-symbol.exp 1 Jan 2011 15:33:42 -0000 1.7
+++ gdb.base/solib-symbol.exp 7 Oct 2011 21:19:16 -0000
@@ -53,14 +53,14 @@
# Set a breakpoint in the binary.
gdb_test "br foo2" \
- "Breakpoint.*file.*${srcfile}.*" \
+ "Breakpoint.*file.*${testfile}\\.c.*" \
"foo2 in main"
delete_breakpoints
# Break in the library.
gdb_test "br foo" \
- "Breakpoint.*file.*${srcfile_lib}.*" \
+ "Breakpoint.*file.*${libname}\\.c.*" \
"foo in libmd"
gdb_test "continue" \
@@ -69,7 +69,7 @@
# This symbol is now looked up in the ELF library.
gdb_test "br foo2" \
- "Breakpoint.*file.*${srcfile_lib}.*" \
+ "Breakpoint.*file.*${libname}\\.c.*" \
"foo2 in mdlib"
gdb_exit
--
Joseph S. Myers
joseph@codesourcery.com
next reply other threads:[~2011-10-07 21:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-07 21:23 Joseph S. Myers [this message]
2011-10-09 14:59 ` Joel Brobecker
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=Pine.LNX.4.64.1110072122330.20451@digraph.polyomino.org.uk \
--to=joseph@codesourcery.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