From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1652 invoked by alias); 20 May 2007 23:22:33 -0000 Received: (qmail 1635 invoked by uid 22791); 20 May 2007 23:22:26 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.169) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 20 May 2007 23:22:22 +0000 Received: by ug-out-1314.google.com with SMTP id 75so824861ugb for ; Sun, 20 May 2007 16:22:20 -0700 (PDT) Received: by 10.67.121.18 with SMTP id y18mr2888439ugm.1179693669631; Sun, 20 May 2007 13:41:09 -0700 (PDT) Received: from ?88.210.66.245? ( [88.210.66.245]) by mx.google.com with ESMTP id k2sm4356078ugf.2007.05.20.13.41.06; Sun, 20 May 2007 13:41:07 -0700 (PDT) Message-ID: <4650B245.3060306@portugalmail.pt> Date: Sun, 20 May 2007 23:22:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org CC: Ulrich Weigand , Joel Brobecker Subject: Re: [commit/AIX] Fix error when loading core file References: <200705201511.l4KFBlYB015777@d12av02.megacenter.de.ibm.com> <46506E03.2090603@portugalmail.pt> In-Reply-To: <46506E03.2090603@portugalmail.pt> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-05/txt/msg00325.txt.bz2 Pedro Alves wrote: > Ulrich Weigand wrote: >> >> I'd thought of defining a TARGET_OBJECT_LDINFO xfer_partial object >> that reflects the contents of the ldinfo, and use this in the >> implementation of a (platform-independent) solib-aix.c file. >> The rs6000 native target and the core file support would need to >> be extended to supply that object. >> > > If AIX needs to use native calls to get at the shared libraries list, > perhaps you could also look if the solib-target.c Daniel is pushing > for remote dll support, and see if it would be a good fit for AIX too. > As a quick look it seems so. You would move aix_current_sos > to the target_ops, and perhaps needs a few other tweaks > (aix_in_dynsym_resolve_code, and aix_solib_create_inferior_hook). > Although he presented it as remote support, it also makes sense > for native win32 debugging, so it may also make sense as native > AIX debugging. > Hummm, looking at it for another 30 seconds, made me realize it isn't fit. Although AIX tells us something loaded with 'wait (&status), (status == 0x57c)', it doesn't tell us specifically *what* was loaded - we have to build a list of current_sos every time. Being so, case solib-target.c gets more in the way than helps. Your approach seems best. Cheers, Pedro Alves