From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15639 invoked by alias); 23 Feb 2012 14:48:09 -0000 Received: (qmail 15621 invoked by uid 22791); 23 Feb 2012 14:48:07 -0000 X-SWARE-Spam-Status: No, hits=-2.5 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; Thu, 23 Feb 2012 14:47:52 +0000 Received: by qadz32 with SMTP id z32so7629152qad.0 for ; Thu, 23 Feb 2012 06:47:51 -0800 (PST) Received-SPF: pass (google.com: domain of peter.maydell@linaro.org designates 10.229.134.207 as permitted sender) client-ip=10.229.134.207; Authentication-Results: mr.google.com; spf=pass (google.com: domain of peter.maydell@linaro.org designates 10.229.134.207 as permitted sender) smtp.mail=peter.maydell@linaro.org Received: from mr.google.com ([10.229.134.207]) by 10.229.134.207 with SMTP id k15mr1288175qct.49.1330008471987 (num_hops = 1); Thu, 23 Feb 2012 06:47:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.134.207 with SMTP id k15mr1098739qct.49.1330008471815; Thu, 23 Feb 2012 06:47:51 -0800 (PST) Received: by 10.229.35.1 with HTTP; Thu, 23 Feb 2012 06:47:51 -0800 (PST) In-Reply-To: <0BFF88B8-4648-444A-B4ED-2BEEAD2F35E8@elis.ugent.be> 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> Date: Thu, 23 Feb 2012 14:48: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: ALoCoQmj/pC4TpsHc2Z9LYh2/0+IOzU87JMFZHo8FrBl14EQhXoGUhIUKQI6n5LIoFSLjspahsyy 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/msg00067.txt.bz2 On 23 February 2012 14:12, Jonas Maebe wrote: > Without gdb attached, the qsort_large binary shows this output: > > *** > Sorting 50000 vectors based on distance from the origin. > > 25138398 28611231 9838998 > [etc] > *** > > With gdb attached, this is the output: > > *** > Sorting 0 vectors based on distance from the origin. > *** > > 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... -- PMM