public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix missing IPA lib in tspeed.exp in some configurations.
@ 2016-01-20 13:26 Antoine Tremblay
  2016-01-20 16:50 ` Yao Qi
  0 siblings, 1 reply; 3+ messages in thread
From: Antoine Tremblay @ 2016-01-20 13:26 UTC (permalink / raw)
  To: gdb-patches; +Cc: Antoine Tremblay

On Ubuntu 14.04 the following failure would be seen when running the
tspeed.exp test on a target that supports fast tracepoints like x86_64:

Target returns error code '.In-process agent library not loaded in
process.  Fast and static tracepoints unavailable.'.
(gdb) FAIL: gdb.trace/tspeed.exp: start trace experiment

This is because the default is to link with --as-needed and the
gdb_compile for the test is using the libs argument instead of shlib which
corrects this issue since 6ebea266fd0a7a56c90db3ab6237ff9f6c919747 by
adding -Wl,--no-as-needed.

This patch fixes the issue by passing the lib as the shlib argument to
gdb_compile.

Tested on Ubuntu 14.04 x86_64.

gdb/testsuite/ChangeLog:

	* gdb.trace/tspeed.exp:  Use shlib instead of libs in gdb_compile
	command.
---
 gdb/testsuite/gdb.trace/tspeed.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.trace/tspeed.exp b/gdb/testsuite/gdb.trace/tspeed.exp
index 6f89a2b..e638839 100644
--- a/gdb/testsuite/gdb.trace/tspeed.exp
+++ b/gdb/testsuite/gdb.trace/tspeed.exp
@@ -21,7 +21,7 @@ set executable $testfile
 set ipalib [get_in_proc_agent]
 
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
-	  executable [concat {debug nowarnings c} libs=$ipalib]] != "" } {
+	  executable [concat {debug nowarnings c} shlib=$ipalib]] != "" } {
     untested tspeed.exp
     return -1
 }
-- 
2.6.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix missing IPA lib in tspeed.exp in some configurations.
  2016-01-20 13:26 [PATCH] Fix missing IPA lib in tspeed.exp in some configurations Antoine Tremblay
@ 2016-01-20 16:50 ` Yao Qi
  2016-01-20 17:32   ` Antoine Tremblay
  0 siblings, 1 reply; 3+ messages in thread
From: Yao Qi @ 2016-01-20 16:50 UTC (permalink / raw)
  To: Antoine Tremblay; +Cc: gdb-patches

Antoine Tremblay <antoine.tremblay@ericsson.com> writes:

> gdb/testsuite/ChangeLog:
>
> 	* gdb.trace/tspeed.exp:  Use shlib instead of libs in gdb_compile
> 	command.

OK with me.

-- 
Yao (齐尧)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix missing IPA lib in tspeed.exp in some configurations.
  2016-01-20 16:50 ` Yao Qi
@ 2016-01-20 17:32   ` Antoine Tremblay
  0 siblings, 0 replies; 3+ messages in thread
From: Antoine Tremblay @ 2016-01-20 17:32 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches



On 01/20/2016 11:50 AM, Yao Qi wrote:
> Antoine Tremblay <antoine.tremblay@ericsson.com> writes:
>
>> gdb/testsuite/ChangeLog:
>>
>> 	* gdb.trace/tspeed.exp:  Use shlib instead of libs in gdb_compile
>> 	command.
>
> OK with me.
>

Thanks, pushed in.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-20 17:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-20 13:26 [PATCH] Fix missing IPA lib in tspeed.exp in some configurations Antoine Tremblay
2016-01-20 16:50 ` Yao Qi
2016-01-20 17:32   ` Antoine Tremblay

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).