From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21353 invoked by alias); 1 Apr 2008 13:37:37 -0000 Received: (qmail 21339 invoked by uid 22791); 1 Apr 2008 13:37:35 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 01 Apr 2008 13:37:16 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id D6E53983BE; Tue, 1 Apr 2008 13:37:13 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 9B22E98119; Tue, 1 Apr 2008 13:37:13 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jggfo-0003PF-0H; Tue, 01 Apr 2008 09:37:12 -0400 Date: Tue, 01 Apr 2008 14:00:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: linux native async mode support Message-ID: <20080401133711.GA12753@caradoc.them.org> Mail-Followup-To: Nick Roberts , Pedro Alves , gdb-patches@sourceware.org References: <200803140810.22883.pedro@codesourcery.com> <20080314211646.GK31663@caradoc.them.org> <200803171605.24276.pedro@codesourcery.com> <18399.1872.669733.441391@kahikatea.snap.net.nz> <20080321154856.GM25307@caradoc.them.org> <18404.15944.939015.419140@kahikatea.snap.net.nz> <20080322012535.GA9255@caradoc.them.org> <20080322220542.4DF038FC6D@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080322220542.4DF038FC6D@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.17 (2007-12-11) 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: 2008-04/txt/msg00008.txt.bz2 On Sun, Mar 23, 2008 at 10:05:42AM +1200, Nick Roberts wrote: > Attached below. I've added [board_info gdb_protocol] == "async" since > "target async" works after Vladimir's changes. > # This currently only works with native linux and the async remote protocol. > if { !([isnative] && [istarget *-linux*]) \ > && [board_info gdb_protocol] != "async" } then { > return > } It has to be [board_info target gdb_protocol] or [target_info gdb_protocol]. Actually, this: if { !([isnative] && [istarget *-linux*]) \ && (![target_info exists gdb_protocol] \ || [target_info gdb_protocol] != "async") } then { > # The plan is for async mode to become the default but toggle for now. > set saved_gdbflags $GDBFLAGS > set GDBFLAGS "-ex \"maint set linux-async on\"" Please append to GDBFLAGS instead of setting it; otherwise you'll lose -nx and it will read $HOME/.gdbinit. > #if [istarget "i386-*-linux-gnu"] then { > linux_async_tests > #} Remove the commented out lines. Otherwise OK. Thanks for posting this. -- Daniel Jacobowitz CodeSourcery