From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9964 invoked by alias); 18 Jan 2008 05:17:59 -0000 Received: (qmail 9951 invoked by uid 22791); 18 Jan 2008 05:17:58 -0000 X-Spam-Check-By: sourceware.org Received: from mail1.nsc.com (HELO mailgate1.nsc.com) (12.151.32.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Jan 2008 05:17:39 +0000 X-WSS-ID: 0JUTQPC-05-S8F-01 Received: from SCNTRDCSS8.nsc.com (unknown [192.168.7.27]) by mailgate1.nsc.com (Tumbleweed MailGate) with ESMTP id B317C3805E311 for ; Thu, 17 Jan 2008 21:17:36 -0800 (PST) Received: from [10.188.132.130] by SCNTRDCSS6.nsc.com with ESMTP (-Hi-); Thu, 17 Jan 2008 21:17:28 -0800 X-Server-Uuid: CDE0D3F6-4EC6-4DC9-81EF-DBBF12AF9A3C Received: from [139.187.78.222] by scmh1.nsc.com with ESMTP; Thu, 17 Jan 2008 21:17:28 -0800 Message-ID: <47903650.3020604@nsc.com> Date: Fri, 18 Jan 2008 05:17:00 -0000 From: "M R Swami Reddy" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: "Andrew STUBBS" cc: gdb@sourceware.org Subject: Re: gdb simulator exit status References: <478F4D01.8000202@india.nsc.com> <478F66D8.6000808@st.com> In-Reply-To: <478F66D8.6000808@st.com> X-WSS-ID: 6B8EE9E20ZS492338-01-01 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2008-01/txt/msg00162.txt.bz2 Andrew STUBBS wrote: > Well, it works for me (target sh-elf), but maybe I'm using a more recent > GDB or something. > > Anyway, obviously it isn't working for you, so try this: > > gdb --batch-silent \ > --return-child-result \ > -ex "target sim" \ > -ex load \ > -ex run \ > a.out Thank you very much. The "--return-child-result" option works for me too. Thanks, Swami