From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4294 invoked by alias); 5 Jan 2012 17:12:30 -0000 Received: (qmail 4284 invoked by uid 22791); 5 Jan 2012 17:12:29 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,TW_FN,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e06smtp12.uk.ibm.com (HELO e06smtp12.uk.ibm.com) (195.75.94.108) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Jan 2012 17:12:16 +0000 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 5 Jan 2012 17:12:15 -0000 Received: from d06nrmr1407.portsmouth.uk.ibm.com ([9.149.38.185]) by e06smtp12.uk.ibm.com ([192.168.101.142]) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 5 Jan 2012 17:12:13 -0000 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q05HCDQq1331364 for ; Thu, 5 Jan 2012 17:12:13 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q05HCDuG024930 for ; Thu, 5 Jan 2012 10:12:13 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id q05HCBu8024844; Thu, 5 Jan 2012 10:12:11 -0700 Message-Id: <201201051712.q05HCBu8024844@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Thu, 05 Jan 2012 18:12:11 +0100 Subject: Re: [patch 2/2] Fix linking on non-x86* after libgdb.a removal To: jan.kratochvil@redhat.com (Jan Kratochvil) Date: Thu, 05 Jan 2012 17:12:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <20120105152451.GA4548@host2.jankratochvil.net> from "Jan Kratochvil" at Jan 05, 2012 04:24:51 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit x-cbid: 12010517-8372-0000-0000-000001472EF3 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: 2012-01/txt/msg00198.txt.bz2 Jan Kratochvil wrote: > On Thu, 05 Jan 2012 15:46:19 +0100, Ulrich Weigand wrote: > > Maybe a better way would be to just unconditionally add corelow.o to > > COMMON_OBS and be done with it? What would be the harm in having the > > core target always present, even in configurations where no core file > > formats will be recognized? > > Currently GDB writes: > GDB can't read core files on this machine. > > I guess it will load the core file without recognizing its registers? > I do not have available any core file from the legacy *-tdep.c archs. > That can be considered a regression. I guess so. Well, it should be straightforward to add a check to corelow.c and give the same error message as above if: - there are no old-style core_fns handlers installed at all, and - there is no gdbarch handler for this core file type That ought to fully replicate the current behaviour. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com