From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5074 invoked by alias); 17 Apr 2014 18:43:45 -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 5064 invoked by uid 89); 17 Apr 2014 18:43:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mail-lb0-f172.google.com Received: from mail-lb0-f172.google.com (HELO mail-lb0-f172.google.com) (209.85.217.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 17 Apr 2014 18:43:43 +0000 Received: by mail-lb0-f172.google.com with SMTP id c11so703171lbj.3 for ; Thu, 17 Apr 2014 11:43:40 -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:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=C7VLzTEYp6dAihzv7Z8iTqmk6EBa/9UehjeT7lrCnL0=; b=X6JHzsheCXqWUEY/PC8FFzE1zQSIbXkTyg7xUOiKRSrfS8p1yldeBDDfy4FspOZpLD R2kukkdBb63qPild0ranwRg98Zp6KCyxXvWdXVS1DesiP7qOSflvuoVDs48XYcluaYPc kv/XBG1KKpchfnpZNSKIQzd8yHsgmxPmfAi+x0PiqnVlg2G2kk+3jjonp4RX/LtTfx4q VOO1oHkqrRj7sfrzLz9rJmpLBt2mpooZY+7foGKeKX6OKgBeVvIBWfFvFcfmY/Ou7sld 3nfyT7OLPRyjJ1AfUSKDsxeB0FrMR0V7m0iTZOGOHddsAK+C3K+rCFraGPIHaMVsi7wi KrXQ== X-Gm-Message-State: ALoCoQkF31D1zTuo9Oir/kRHFDqciIKDh+wMfynvtZ81MO2N/kiGR7risgm5m/sTNhcQCZ2G+ggh MIME-Version: 1.0 X-Received: by 10.112.222.225 with SMTP id qp1mr1678429lbc.59.1397760219812; Thu, 17 Apr 2014 11:43:39 -0700 (PDT) Received: by 10.112.9.40 with HTTP; Thu, 17 Apr 2014 11:43:39 -0700 (PDT) Date: Thu, 17 Apr 2014 18:48:00 -0000 Message-ID: Subject: 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/msg00050.txt.bz2 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. --=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