From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25313 invoked by alias); 6 Jun 2009 00:01:09 -0000 Received: (qmail 25108 invoked by uid 22791); 6 Jun 2009 00:01:07 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 06 Jun 2009 00:01:00 +0000 Received: (qmail 22739 invoked from network); 6 Jun 2009 00:00:55 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 6 Jun 2009 00:00:55 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: corelow and threads question Date: Sat, 06 Jun 2009 00:01:00 -0000 User-Agent: KMail/1.9.10 Cc: Aleksandar Ristovski References: <200906052025.10264.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906060101.46372.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00057.txt.bz2 On Friday 05 June 2009 20:40:23, Aleksandar Ristovski wrote: > I am inclined to think that core_ops is the right way to go; > at which point should I do a "push_target" in that case? It is not the "right" way to go. It will work for a native nto gdb, but it is not acceptable for mainline. The core debugging support should work on cross configurations too. If you have anything core support related that depends on the host where gdb was configured, you have a design bug. With such a hack, a multi-arch nto gdb breaks when debugging cores from other architectures (your core_ops overrides will kick in, although the core being debugged isn't nto). A multi-arch gdb (e.g., --enable-targets=all) on e.g., a linux host, wouldn't be able to cross debug nto cores the same as a native nto gdb, as it would miss the overrides. -- Pedro Alves