From: Simon Marchi <simark@simark.ca>
To: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [pushed] [gdb/testsuite] Fix gdb.threads/dlopen-libpthread.exp for upstream glibc
Date: Tue, 10 Jan 2023 13:05:11 -0500 [thread overview]
Message-ID: <01243e5b-137f-9ac0-8235-8f51df07902e@simark.ca> (raw)
In-Reply-To: <174dba84-bac5-af4c-cd2b-85257f57b025@suse.de>
> Attached patch fixes things.
>
> WDYT?
>
> Thanks,
> - Tom
Here:
> # We link the exec without -lpthread, but libpthread.so may already be loaded at main
> # due to LD_PRELOAD.
> set libpthread_maybe_preloaded 0
> set binfile [standard_output_file $executable]
> if { [has_dependency $binfile libpthread\\.so] == 1 } {
> set libpthread_maybe_preloaded 1
> }
Ok, so this works because ldd is influenced by LD_PRELOAD, I didn't
know.
>
> # We link the shlib with -lpthread, but since glibc 2.34 libpthread has been
> # merged with libc, so libpthread.so may not be a dependency.
> set libpthread_missing 0
> if { [has_dependency $binfile libpthread\\.so] == 0 } {
> set libpthread_missing 1
> }
The two has_dependency calls use $binfile. Should one of them use
$binfile_lib? The second one I think.
Simon
next prev parent reply other threads:[~2023-01-10 18:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-30 15:54 Tom de Vries
2023-01-04 16:54 ` Simon Marchi
2023-01-10 17:23 ` Tom de Vries
2023-01-10 18:05 ` Simon Marchi [this message]
2023-01-11 9:17 ` Tom de Vries
2023-01-11 16:20 ` Simon Marchi
2023-01-11 17:20 ` Tom de Vries
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=01243e5b-137f-9ac0-8235-8f51df07902e@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).