From: "Kris Warkentin" <kewarken@qnx.com>
To: "Kevin Buettner" <kevinb@redhat.com>,
"Gdb@Sources.Redhat.Com" <gdb@sources.redhat.com>
Subject: Re: Is QNX weird or is it just me?
Date: Thu, 28 Aug 2003 11:43:00 -0000 [thread overview]
Message-ID: <0e4501c36d59$a9f99950$0202040a@catdog> (raw)
In-Reply-To: <1030828011027.ZM11134@localhost.localdomain>
> > I'm thinking that we might be stuck with actually needing to separate
> > ld-qnx.so from libc.so to get it working right but perhaps there are
some
> > clever ideas about.
>
> Separating the dynamic linker out of libc.so seems like the most
> straightforward route to go. Another idea though: if your dynamic
> linker could set some flag when it's working and reset it when it's
> not, perhaps you could have gdb read the memory associated with the
> flag? Of course, that'd mean doing a target memory read every time
> qnx_in_dynsym_resolve_code() is called...
Well, I tested the override of qnx_in_dynsym_resolve_code() to just return 0
and it doesn't seem to have any ill effects that I can see. We don't do
lazy linking and aren't planning to any time in the future. The
dlopen/dlsym thing didn't seem to have any trouble either so I'm just taking
the easy solution for now and leaving a note to myself to re-examine it if
we ever implement late binding.
The flag idea is not bad but you're right about the inefficiency.
Considering that the IN_DYNSYM_CODE is called for every step, it could slow
things down a fair bit if I had to make an extra call. I bet if I
encapsulated the flag in one of our packets that needs to go across the wire
every step anyway, and just check it as it comes in; that would work
though. Thanks.
cheers,
Kris
prev parent reply other threads:[~2003-08-28 11:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-26 14:49 Kris Warkentin
2003-08-28 1:10 ` Kevin Buettner
2003-08-28 11:43 ` Kris Warkentin [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='0e4501c36d59$a9f99950$0202040a@catdog' \
--to=kewarken@qnx.com \
--cc=gdb@sources.redhat.com \
--cc=kevinb@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