public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* solib search algorithm for cross-gdb
@ 2005-08-03 13:38 Paul Koning
  2005-08-03 17:06 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Koning @ 2005-08-03 13:38 UTC (permalink / raw)
  To: gdb

Currently, the shared library search in solib.c first tries to use the
shared lib filename as given (if solib-absolute-prefix isn't set).

That's exactly right for a native gdb, but it is in general the wrong
answer for a cross-gdb.  If I'm debugging a mips box, or analyzing a
mips corefile, resolving shared lib symbols from intel shared libs in
my /usr/lib is the wrong thing.

.gdbinit helps, but not everyone remembers to do this right every
time.

I was thinking about having the case of "use the filename exactly as
supplied" in solib.c be used only in native gdb.  That seems to
require adding stuff in configure and config.in to tell a native from
a cross build.

I could submit this patch if it sounds like a good feature (otherwise
I'll probably keep it as a private change).  Comments?  Better ways to
do this?

      paul

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

end of thread, other threads:[~2005-08-03 20:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-03 13:38 solib search algorithm for cross-gdb Paul Koning
2005-08-03 17:06 ` Daniel Jacobowitz
2005-08-03 18:14   ` Kris Warkentin
2005-08-03 19:15   ` Mark Kettenis
2005-08-03 19:19     ` Daniel Jacobowitz
2005-08-03 19:29     ` Paul Koning
2005-08-03 20:00       ` Kris Warkentin
2005-08-03 20:16         ` Paul Koning

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