This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Code cleanup - split print_stop_reason / question
- From: Kevin Pouget <kevin dot pouget at gmail dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 27 Apr 2011 09:16:44 -0400
- Subject: Re: Code cleanup - split print_stop_reason / question
- References: <BANLkTin70pF0swcBvPZ3ftSmbrrccOUzcw@mail.gmail.com> <20110427130021.GA7103@host1.jankratochvil.net>
> This is not from me.
oh, sorry
at least, you're the last one who touched this line, right?
git blame gdb/infrun.c
...
8fc36186 (Jan Kratochvil 2010-09-04 14:27:43 +0000 5504)
ui_out_field_fmt (uiout, "exit-code", "0%o", (unsigned int)
exitstatus);
...
> 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:
ok, thanks
> AFAIK there was a tradition in UNIX to deal with program exit codes in octal.
> I do not know why.
ok, so if it's a tradition, let's perpetuate the tradition :)
--
Kevin