From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19546 invoked by alias); 23 Feb 2012 14:51:17 -0000 Received: (qmail 19532 invoked by uid 22791); 23 Feb 2012 14:51:16 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp3.ugent.be (HELO smtp3.UGent.be) (157.193.49.127) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Feb 2012 14:51:04 +0000 Received: from localhost (mcheck5.ugent.be [157.193.49.247]) by smtp3.UGent.be (Postfix) with ESMTP id 5D7D3148239; Thu, 23 Feb 2012 15:51:03 +0100 (CET) Received: from smtp3.UGent.be ([157.193.49.127]) by localhost (mcheck5.UGent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id g7JhAuYO8uzE; Thu, 23 Feb 2012 15:51:03 +0100 (CET) Received: from mail.elis.ugent.be (mail.elis.UGent.be [157.193.206.48]) by smtp3.UGent.be (Postfix) with ESMTP id EA52D147CAB; Thu, 23 Feb 2012 15:51:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.elis.ugent.be (Postfix) with ESMTP id DDC2E918F17; Thu, 23 Feb 2012 15:51:02 +0100 (CET) Received: from mail.elis.ugent.be ([127.0.0.1]) by localhost (mail.elis.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hS54z-4WTE4X; Thu, 23 Feb 2012 15:50:59 +0100 (CET) Received: from bigmac.elis.UGent.be (bigmac.elis.UGent.be [157.193.206.33]) by mail.elis.ugent.be (Postfix) with ESMTP id 1E552918F16; Thu, 23 Feb 2012 15:50:59 +0100 (CET) Cc: Matthew Gretton-Dann , "gdb@sourceware.org" Message-Id: From: Jonas Maebe To: Peter Maydell In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Debug ARM semihosting Thumb-2 binary Date: Thu, 23 Feb 2012 14:51:00 -0000 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> <0BFF88B8-4648-444A-B4ED-2BEEAD2F35E8@elis.ugent.be> X-j-chkmail-Enveloppe: 4F465256.005 from mail.elis.UGent.be/mail.elis.UGent.be/157.193.206.48/mail.elis.ugent.be/ X-j-chkmail-Score: MSGID : 4F465256.005 on smtp3.UGent.be : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham 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: 2012-02/txt/msg00068.txt.bz2 On 23 Feb 2012, at 15:47, Peter Maydell wrote: > On 23 February 2012 14:12, Jonas Maebe > wrote: >> So it seems the reading of the input file fails. > > I look into my crystal ball and deduce that you're running gdb > in the wrong directory. When you do semihosting via gdb syscalls > the file opens are for paths relative to gdb's working directory, > not qemu's. This particular test seems to have no error handling > so if it can't open the file it will happily proceed to sort > no data... That's an awesome crystal ball, I want one too! I can confirm now that the patch works as expected and everything is fine. Thanks a lot! Jonas