This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Handle solaris dynamic linker name change.
- From: "Doug Evans" <dje at google dot com>
- To: "Vladimir Prus" <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 27 Dec 2007 10:10:31 -0800
- Subject: Re: [RFA] Handle solaris dynamic linker name change.
- References: <200712242048.33983.vladimir@codesourcery.com>
On Dec 24, 2007 9:48 AM, Vladimir Prus <vladimir@codesourcery.com> wrote:
> + /* On Solaris, when starting inferior we think that
> + dynamic linker is /usr/lib/ld.so.1, but later on,
> + the table of loaded shared libraries contains
> + /lib/ld.so.1.
> + Sometimes one file is a link to another, but sometimes
> + they have identical content, but are not linked to each
> + other. */
> + if (strcmp (gdb->so_original_name, "/usr/lib/ld.so.1") == 0
> + && strcmp (inferior->so_original_name, "/lib/ld.so.1") == 0)
> + return 1;
Do we want to support "ld --dynamic-linker /my/ld.so.1" here (i.e.
user has specified a different ld.so), or if this happens is the bug
avoided?