From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22229 invoked by alias); 17 Apr 2014 19:08:47 -0000 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 Received: (qmail 22217 invoked by uid 89); 17 Apr 2014 19:08:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mail-lb0-f181.google.com Received: from mail-lb0-f181.google.com (HELO mail-lb0-f181.google.com) (209.85.217.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 17 Apr 2014 19:08:46 +0000 Received: by mail-lb0-f181.google.com with SMTP id c11so723013lbj.12 for ; Thu, 17 Apr 2014 12:08:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=X2QLZsQmD6gv5bVmTujmHLMQmveKXzZ3xxQ+NeCJl8M=; b=IAqPJJdwasfc5oHhOJY8mOWjOlk4crRBE599YNMvP02smdsqTzGa6bzn9EvKEama7H kzGZtN8FRT+HgodI4qS96vxnfzLCs3plw3BEMCVYEPaQhShdtE197GBexjmvXqY9t5qN USEQnQx0NRbv8gulkmpGKF7wekBUwkp2Dzq148mR58FhKqgvkI/otGQS2gzl9LU5XSUJ pr55m3YKHjw1zI0CQdimGrFsGPYgnN2QhAewVh3RLcGM01FVTcyEkt8RDml7/6EtyMwK emFQWTs5XybkOPgWRRt4H3VsitRbmwX0Y7Qy20AauZmNpk/3N/pAPmuKLdVLizfjJAJN XCoA== X-Gm-Message-State: ALoCoQlGquLj3C3A4h9fFvnSYN9z7ZSpT/t2ofwWNwQxGaRDrSPliN88BfPUQb70YnpJ1na3i4XJ MIME-Version: 1.0 X-Received: by 10.152.43.107 with SMTP id v11mr2370584lal.49.1397761722196; Thu, 17 Apr 2014 12:08:42 -0700 (PDT) Received: by 10.112.9.40 with HTTP; Thu, 17 Apr 2014 12:08:42 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Apr 2014 19:58:00 -0000 Message-ID: Subject: Re: specifying gdb's exit code From: Daniel Gutson To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-04/txt/msg00052.txt.bz2 Sorry. Please ignore this email. I just noticed that "quit" already accepts an argument. On Thu, Apr 17, 2014 at 3:43 PM, Daniel Gutson wrote: > Hi, > > Due to a specific need, I was thinking of a way to specify (e.g. > from a script) the gdb exit status, > specially in terms of the $_exitcode. > > AFAIK, this is not currently possible since gdb returns only about the > finalization execution status > of the inf. I understand that these could be messed, specially when in > --batch mode, but it should be > responsibility of the developer to specify an exit code different to > those gdb may return, and also > responsibility of the invoking program to make such distinction. > > The options I can think about are: > - set a convenience var, such as $_gdbexitcode > - set gdb-exit-code [n] > - add an optional argument to the 'quit' command (so "quit > $_exitcode" is available) > > Ideas? > > Thanks! > > Daniel. > > -- > > Daniel F. Gutson > Chief Engineering Officer, SPD > > > San Lorenzo 47, 3rd Floor, Office 5 > > C=C3=B3rdoba, Argentina > > > Phone: +54 351 4217888 / +54 351 4218211 > > Skype: dgutson --=20 Daniel F. Gutson Chief Engineering Officer, SPD San Lorenzo 47, 3rd Floor, Office 5 C=C3=B3rdoba, Argentina Phone: +54 351 4217888 / +54 351 4218211 Skype: dgutson