Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Randolph Chung <randolph@tausq.org>
To: gdb-patches@sources.redhat.com
Subject: [RFA] unload.exp path fix
Date: Tue, 16 Nov 2004 22:29:00 -0000	[thread overview]
Message-ID: <20041116222911.GY15714@tausq.org> (raw)

According to gdb.exp, gdb_get_line_number takes paths relative to
${srcdir}/${subdir}, so we should not pass in ${srcdir}/${subdir}.

without this fix, i am seeing:
ERROR: couldn't open "../../../gdb-cvs/gdb/testsuite/gdb.base/../../../gdb-cvs/gdb/testsuite/gdb.base/unloadshr.c": no such file or directory

ok?

randolph

2004-11-16  Randolph Chung  <tausq@debian.org>

	testsuite/
	* gdb.base/unload.exp: Pass relative path to gdb_get_line_number.

Index: testsuite/gdb.base/unload.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/unload.exp,v
retrieving revision 1.4
diff -u -p -r1.4 unload.exp
--- testsuite/gdb.base/unload.exp	6 Sep 2004 11:09:46 -0000	1.4
+++ testsuite/gdb.base/unload.exp	16 Nov 2004 22:24:54 -0000
@@ -117,7 +117,7 @@ gdb_test "info break" \
 \[0-9\]+\[\t \]+breakpoint     keep y.*PENDING.*shrfunc1.*" \
 "single pending breakpoint info"
 
-set unloadshr_line [gdb_get_line_number "unloadshr break" ${srcdir}/${subdir}/${libsrcfile}]
+set unloadshr_line [gdb_get_line_number "unloadshr break" ${libsrcfile}]
 
 gdb_test "run" \
 "Starting program.*unload.*
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


             reply	other threads:[~2004-11-16 22:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-16 22:29 Randolph Chung [this message]
2004-11-16 23:57 ` Andrew Cagney
2004-11-17  0:00   ` Randolph Chung

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=20041116222911.GY15714@tausq.org \
    --to=randolph@tausq.org \
    --cc=gdb-patches@sources.redhat.com \
    /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