From: Kevin Buettner <kevinb@redhat.com>
To: "Kris Warkentin" <kewarken@qnx.com>,
"Gdb@Sources.Redhat.Com" <gdb@sources.redhat.com>
Subject: Re: interesting solib-absolute-prefix problem
Date: Wed, 03 Dec 2003 20:35:00 -0000 [thread overview]
Message-ID: <1031203203529.ZM1946@localhost.localdomain> (raw)
In-Reply-To: "Kris Warkentin" <kewarken@qnx.com> "interesting solib-absolute-prefix problem" (Dec 3, 2:48pm)
On Dec 3, 2:48pm, Kris Warkentin wrote:
> One would think that not initializing solib-absolute-prefix when doing
> native debugging would work but the problem for us is that we need to find
> /x86/usr/lib/ldqnx.so (our linker) rather than /proc/boot/libc.so since our
> image builder strips all the section information from binaries and gdb uses
> the .dynamic section.
>
> To make a long story short, I put an 'open() of last resort' in solib_open
> right at the end where if all else fails, it tries to open the exact path it
> was given. It would seem to me that this is probably not too dangerous but
> someone might be able to comment on this better than I.
I don't really like this patch. If someone sets solib-absolute-prefix
incorrectly - a quite common occurrence, I've found - we don't want to
inadverently open the host's /lib/libc.so (or the like). In this case,
it's preferable for gdb to print an error message.
It would, perhaps, be less misleading if GDB were to list the paths
that it tried (and failed) to open.
It's still not clear to me why you need solib-absolute-prefix set when
doing native debugging. (You explained it above, but I don't understand
your environment well enough to comprehend the explanation.)
Kevin
next prev parent reply other threads:[~2003-12-03 20:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-03 19:47 Kris Warkentin
2003-12-03 20:35 ` Kevin Buettner [this message]
2003-12-03 21:20 ` Kris Warkentin
2003-12-03 21:26 ` Daniel Jacobowitz
2003-12-03 21:30 ` Kris Warkentin
2003-12-03 22:33 Michael Elizabeth Chastain
2003-12-03 22:53 ` Kris Warkentin
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=1031203203529.ZM1946@localhost.localdomain \
--to=kevinb@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=kewarken@qnx.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