From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31266 invoked by alias); 31 May 2007 21:07:58 -0000 Received: (qmail 31253 invoked by uid 22791); 31 May 2007 21:07:57 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 May 2007 21:07:54 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id l4VL7pj8059516 for ; Thu, 31 May 2007 21:07:51 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 l4VL7pKh3440698 for ; Thu, 31 May 2007 23:07:51 +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 l4VL7oPw011559 for ; Thu, 31 May 2007 23:07:51 +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 l4VL7o1X011554; Thu, 31 May 2007 23:07:50 +0200 Message-Id: <200705312107.l4VL7o1X011554@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Thu, 31 May 2007 23:07:50 +0200 Subject: Re: [commit/AIX] Fix error when loading core file To: drow@false.org (Daniel Jacobowitz) Date: Thu, 31 May 2007 21:24:00 -0000 From: "Ulrich Weigand" Cc: pedro_alves@portugalmail.pt (Pedro Alves), gdb-patches@sourceware.org, brobecker@adacore.com (Joel Brobecker) In-Reply-To: <20070528205203.GA911@localhost.localdomain> from "Daniel Jacobowitz" at May 28, 2007 04:52:03 PM 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/msg00445.txt.bz2 Daniel Jacobowitz wrote: > On Mon, May 28, 2007 at 10:00:30PM +0200, Ulrich Weigand wrote: > > 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? > > Right - that's exactly what I meant. Except that I'm thinking now > that I made a mistake; I could have added a target object instead, > and then we could use a gdbarch method to implement that target object > based on a core file. That's why I haven't followed up on the patch > yet; I'm going to try re-working it when I get back from vacation. Sounds good, I think this would indeed work for the AIX case as well. > As to what the contents of the target object should be, I'm not sure. > The easiest choice would be the same as the remote protocol format, > e.g. "Name:HEXSTR,TextSeg=ADDR;Name:HEXSTR,TextSeg=Addr". The other > alternative would be XML in case we think any flexibility would be > needed. The nice thing about that is it avoids having to hex-encode > the name; we can XML-escape it instead, which is easier in common > cases. Now that we have a nicely simple XML parsing infrastructure I > like to take advantage of it. Do we also have infrastructure to *generate* XML? We have to create those contents in GDB (at least for the core file and AIX native target cases). Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com