public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Update libinproctrace.so path in lib/trace-support.exp
@ 2020-02-28 23:59 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2020-02-28 23:59 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f5e4608433541a29da8dddc0ceeb63d36c12dda5

commit f5e4608433541a29da8dddc0ceeb63d36c12dda5
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Fri Feb 28 18:58:17 2020 -0500

    Update libinproctrace.so path in lib/trace-support.exp
    
    Following the move to gdbserver to the top-level, the path to
    libinproctrace.so in testsuite/lib/trace-support.exp is no longer valid.
    This can be observed by running:
    
        $ make check TESTS="gdb.trace/ftrace.exp" RUNTESTFLAGS="--target_board=native-gdbserver"
        ...
        ERROR: error copying "/home/smarchi/build/binutils-gdb/gdb/testsuite/../gdbserver/libinproctrace.so": no such file or directory
    
    Adjust the path to libinproctrace.so by adding a "..".  With this patch,
    the test mentioned above runs fine.
    
    gdb/testsuite/ChangeLog:
    
    	* lib/trace-support.exp (get_in_proc_agent): Adjust path to
    	libinproctrace.so.

Diff:
---
 gdb/testsuite/ChangeLog             | 5 +++++
 gdb/testsuite/lib/trace-support.exp | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 5248d59..9daf906 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-02-28  Simon Marchi  <simon.marchi@efficios.com>
+
+	* lib/trace-support.exp (get_in_proc_agent): Adjust path to
+	libinproctrace.so.
+
 2020-02-28  Luis Machado  <luis.machado@linaro.org>
 
 	* gdb.arch/aarch64-fp.exp: Switch from "info registers" command
diff --git a/gdb/testsuite/lib/trace-support.exp b/gdb/testsuite/lib/trace-support.exp
index ecec9bd..2f6a62c 100644
--- a/gdb/testsuite/lib/trace-support.exp
+++ b/gdb/testsuite/lib/trace-support.exp
@@ -374,7 +374,7 @@ proc get_in_proc_agent {} {
     if [target_info exists in_proc_agent] {
 	return [target_info in_proc_agent]
     } else {
-	return $objdir/../gdbserver/libinproctrace.so
+	return $objdir/../../gdbserver/libinproctrace.so
     }
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-28 23:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-28 23:59 [binutils-gdb] Update libinproctrace.so path in lib/trace-support.exp Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).