From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Aleksandar Ristovski <aristovski@qnx.com>
Subject: Re: [patch] solib do not add ldd if in libc
Date: Mon, 20 Jul 2009 14:09:00 -0000 [thread overview]
Message-ID: <200907201459.02861.pedro@codesourcery.com> (raw)
In-Reply-To: <h2vs39$pvq$1@ger.gmane.org>
On Tuesday 07 July 2009 17:11:21, Aleksandar Ristovski wrote:
> if (lm == 0 && ldsomap == 0)
> - lm = ldsomap = solib_svr4_r_ldsomap (info);
> + {
> + struct so_list *so = head;
> +
> + lm = ldsomap = solib_svr4_r_ldsomap (info);
> +
> + /* On some other systems, dynamic linker resides in libc.
> + Make sure we do not add duplicated entry for it. */
> + while (so)
> + {
> + if (so->lm_info->lm_addr == lm)
> + lm = ldsomap = 0;
> + break;
> + }
> + }
[This is not a formal review, just a quick note: ] did you post the
patch you intended to post? That while loop looks wrong.
I note that solib_svr4_r_ldsomap's describing comment seems to
indicate that a fix there would fit better with its design.
/* Find the link map for the dynamic linker (if it is not in the
normal list of loaded shared objects). */
static CORE_ADDR
solib_svr4_r_ldsomap (struct svr4_info *info)
{
--
Pedro Alves
prev parent reply other threads:[~2009-07-20 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 16:11 Aleksandar Ristovski
2009-07-07 17:44 ` Aleksandar Ristovski
2009-07-21 15:40 ` Aleksandar Ristovski
2009-07-21 18:13 ` Daniel Jacobowitz
2009-07-20 14:09 ` Pedro Alves [this message]
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=200907201459.02861.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=aristovski@qnx.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