From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11986 invoked by alias); 27 Dec 2007 18:10:50 -0000 Received: (qmail 11978 invoked by uid 22791); 27 Dec 2007 18:10:49 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Dec 2007 18:10:40 +0000 Received: from zps36.corp.google.com (zps36.corp.google.com [172.25.146.36]) by smtp-out.google.com with ESMTP id lBRIAWuH013543 for ; Thu, 27 Dec 2007 18:10:33 GMT Received: from wa-out-1112.google.com (wahj4.prod.google.com [10.114.236.4]) by zps36.corp.google.com with ESMTP id lBRIAVLO003321 for ; Thu, 27 Dec 2007 10:10:32 -0800 Received: by wa-out-1112.google.com with SMTP id j4so5189824wah.21 for ; Thu, 27 Dec 2007 10:10:31 -0800 (PST) Received: by 10.114.175.16 with SMTP id x16mr5654148wae.116.1198779031799; Thu, 27 Dec 2007 10:10:31 -0800 (PST) Received: by 10.114.13.5 with HTTP; Thu, 27 Dec 2007 10:10:31 -0800 (PST) Message-ID: Date: Thu, 27 Dec 2007 18:18:00 -0000 From: "Doug Evans" To: "Vladimir Prus" Subject: Re: [RFA] Handle solaris dynamic linker name change. Cc: gdb-patches@sources.redhat.com In-Reply-To: <200712242048.33983.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200712242048.33983.vladimir@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00421.txt.bz2 On Dec 24, 2007 9:48 AM, Vladimir Prus 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?