From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20880 invoked by alias); 20 Feb 2012 16:21:56 -0000 Received: (qmail 20872 invoked by uid 22791); 20 Feb 2012 16:21:54 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-qw0-f41.google.com (HELO mail-qw0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Feb 2012 16:21:10 +0000 Received: by qadz32 with SMTP id z32so3717644qad.0 for ; Mon, 20 Feb 2012 08:21:09 -0800 (PST) Received-SPF: pass (google.com: domain of peter.maydell@linaro.org designates 10.229.134.196 as permitted sender) client-ip=10.229.134.196; Authentication-Results: mr.google.com; spf=pass (google.com: domain of peter.maydell@linaro.org designates 10.229.134.196 as permitted sender) smtp.mail=peter.maydell@linaro.org Received: from mr.google.com ([10.229.134.196]) by 10.229.134.196 with SMTP id k4mr16239943qct.29.1329754869469 (num_hops = 1); Mon, 20 Feb 2012 08:21:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.134.196 with SMTP id k4mr13819983qct.29.1329754869325; Mon, 20 Feb 2012 08:21:09 -0800 (PST) Received: by 10.229.35.1 with HTTP; Mon, 20 Feb 2012 08:21:09 -0800 (PST) In-Reply-To: References: <047D674A-A77C-4E5A-B207-592A81D857DC@elis.ugent.be> <20120208173258.GA21639@e103070-lin.arm.com> <2370539B-1B7C-4ADB-B44F-0F09553C5D62@elis.ugent.be> <20120209013821.GB7259@e103070-lin.arm.com> <30DEFAEF-E241-44A7-BB22-5CD1AED61899@elis.ugent.be> Date: Mon, 20 Feb 2012 16:21:00 -0000 Message-ID: Subject: Re: Debug ARM semihosting Thumb-2 binary From: Peter Maydell To: Jonas Maebe Cc: Matthew Gretton-Dann , "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkPdDNbXF1806yfFQav+plHwKrLK5m9XiHsglt6Shxft8W1TGpAv4T/BFvCecA4p3ubIqra 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: 2012-02/txt/msg00054.txt.bz2 On 15 February 2012 17:33, Peter Maydell wrote: > Coincidentally, Meador Inge from CodeSourcery posted a patch to the > QEMU list today which fixes the SIGINT issue: > http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg02008.html > (not yet code reviewed, but I did a quick test and it does seem to > at least avoid the SIGINT problems.) > However speed of fread over the gdb syscall interface is absolutely > dire, it seems (from 'set debug remote 1') to be doing about one > data packet a second... There's now a version 2 of the patch which attacks the problem in a slightly different way and fixes both the SIGINT problems and also the occasional stalls which were causing semihosting read/write performance to be so poor: http://patchwork.ozlabs.org/patch/141867/ -- PMM