From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15143 invoked by alias); 27 Apr 2011 13:01:01 -0000 Received: (qmail 15121 invoked by uid 22791); 27 Apr 2011 13:01:00 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Apr 2011 13:00:26 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3RD0Q8k010359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Apr 2011 09:00:26 -0400 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3RD0N25001728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 27 Apr 2011 09:00:25 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p3RD0Npo007897; Wed, 27 Apr 2011 15:00:23 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p3RD0LEW007892; Wed, 27 Apr 2011 15:00:21 +0200 Date: Wed, 27 Apr 2011 13:01:00 -0000 From: Jan Kratochvil To: Kevin Pouget Cc: gdb@sourceware.org Subject: Re: Code cleanup - split print_stop_reason / question Message-ID: <20110427130021.GA7103@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-04/txt/msg00154.txt.bz2 On Wed, 27 Apr 2011 13:27:38 +0200, Kevin Pouget wrote: > I had a little question regarding Jan's patch below, > do you remember why you print the `exitstatus' in octal? This is not from me. When you check the history (I use git annotate file, git annotate file REVISION^, git annotate file PREVREVISION^ and so on) you will find that line of code comes from: commit 14558c99c9b3adcfd7ab7934392a7b958337a015 Author: Jason Molenda Date: Thu Feb 3 04:14:45 2000 +0000 import gdb-2000-02-02 snapshot So there is no further history and the line's original author is unknown. AFAIK there was a tradition in UNIX to deal with program exit codes in octal. I do not know why. Thanks, Jan