From: Danny Backx <danny.backx@scarlet.be>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: How to fix solib path name?
Date: Wed, 08 Jul 2009 20:46:00 -0000 [thread overview]
Message-ID: <1247077806.3870.88.camel@pavilion> (raw)
In-Reply-To: <200907081742.27876.pedro@codesourcery.com>
On Wed, 2009-07-08 at 17:42 +0100, Pedro Alves wrote:
> Going back to the previous hints, and answering myself:
>
> On Wednesday 08 July 2009 15:56:09, Pedro Alves wrote:
> > > No \Windows\coredll.dll
>
> On Wednesday 08 July 2009 15:56:09, Pedro Alves wrote:
> > You'll have to issue with backslashes on linux though. I don't
> > remember if GDB head takes care of converting those to forward
> > slashes for you or not.
> >
>
> This bit of code in solib.c:solib_find appears to indicate that
> if the dll isn't found in the sysroot, then it should be found in
> the solib-search-path:
>
> /* If not found, next search the solib_search_path (if any) for the basename
> only (ignoring the path). This is to allow reading solibs from a path
> that differs from the opened path. */
> if (found_file < 0 && solib_search_path != NULL)
> found_file = openp (solib_search_path, OPF_TRY_CWD_FIRST,
> lbasename (in_pathname), O_RDONLY | O_BINARY,
> &temp_pathname);
>
>
> but, lbasename on a linux box isn't considering '\' a path separator.
The combination of sysroot and solib-search-path *and* a fix to turn '\'
into '/' inside gdbserver does the trick.
Should that translation then be put in gdbserver ? Are such details of
the gdb/gdbserver protocol documented at all ?
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
prev parent reply other threads:[~2009-07-08 18:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 14:34 Danny Backx
2009-07-08 14:45 ` Aleksandar Ristovski
2009-07-08 14:51 ` Pedro Alves
2009-07-08 15:15 ` Aleksandar Ristovski
2009-07-08 15:21 ` Pedro Alves
2009-07-08 15:38 ` Aleksandar Ristovski
2009-07-08 15:49 ` Pedro Alves
2009-07-08 15:57 ` Pedro Alves
2009-07-08 17:19 ` Aleksandar Ristovski
2009-07-08 18:24 ` Pedro Alves
2009-07-08 18:30 ` Pedro Alves
2009-07-08 14:56 ` Pedro Alves
2009-07-08 15:07 ` Pedro Alves
2009-07-08 15:31 ` Danny Backx
2009-07-08 15:45 ` Danny Backx
2009-07-08 16:19 ` Pedro Alves
2009-07-08 16:30 ` Danny Backx
2009-07-08 16:42 ` Pedro Alves
2009-07-08 15:45 ` Pedro Alves
2009-07-08 17:15 ` Pedro Alves
2009-07-08 20:46 ` Danny Backx [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=1247077806.3870.88.camel@pavilion \
--to=danny.backx@scarlet.be \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.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