From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30078 invoked by alias); 28 May 2007 20:00:39 -0000 Received: (qmail 30059 invoked by uid 22791); 28 May 2007 20:00:36 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.29.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 May 2007 20:00:34 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.8/8.13.8) with ESMTP id l4SK0VOV092246 for ; Mon, 28 May 2007 20:00:31 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l4SK0VZg3842298 for ; Mon, 28 May 2007 22:00:31 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l4SK0UED009112 for ; Mon, 28 May 2007 22:00:31 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l4SK0UbN009109; Mon, 28 May 2007 22:00:30 +0200 Message-Id: <200705282000.l4SK0UbN009109@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 28 May 2007 22:00:30 +0200 Subject: Re: [commit/AIX] Fix error when loading core file To: drow@false.org (Daniel Jacobowitz) Date: Mon, 28 May 2007 20:00:00 -0000 From: "Ulrich Weigand" Cc: pedro_alves@portugalmail.pt (Pedro Alves), gdb-patches@sourceware.org, brobecker@adacore.com (Joel Brobecker) In-Reply-To: <20070521133216.GC1392@caradoc.them.org> from "Daniel Jacobowitz" at May 21, 2007 09:32:16 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00410.txt.bz2 Daniel Jacobowitz wrote: > On Mon, May 21, 2007 at 03:24:25PM +0200, Ulrich Weigand wrote: > > Another reason why I like the TARGET_OBJECT_LDINFO approach > > is that the ldinfo is also present in core files. Using a > > xfer_partial object allows to cleanly support both native > > and core file debugging (and it can also be extended to > > support remote debugging, if we ever want to do that on AIX). > > FWIW, that will work with solib-target too; I didn't use a target > object, but now that you've mentioned it I see that I could have. > I should have thought of that; the needs are very similar. > > Of course, if I want to use a target object for this then I need to > change the qfDllInfo packet to a qXfer:libraries:read packet, which > means I can no longer test with my current SymbianOS target - that's > one reason why I've been avoiding cosmetic changes to the protocol. > But that's not a showstopper. > > What do you think - would the centralized bookkeeping be helpful, > even though you don't have explicit load and unload reports? Hmmm, I'm not sure how this would work for core files. It looks like solib-target would work only for targets that provide to_get_shared_libraries -- are you suggesting to implement that for the core file target? I guess that would be a gdbarch callback to implement the AIX-specific handling? Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com