From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22480 invoked by alias); 27 Apr 2011 11:34:59 -0000 Received: (qmail 22401 invoked by uid 22791); 27 Apr 2011 11:34:58 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Apr 2011 11:34:44 +0000 Received: by vws4 with SMTP id 4so1556929vws.0 for ; Wed, 27 Apr 2011 04:34:44 -0700 (PDT) Received: by 10.52.161.65 with SMTP id xq1mr3062263vdb.68.1303904084078; Wed, 27 Apr 2011 04:34:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.61.6 with HTTP; Wed, 27 Apr 2011 04:34:24 -0700 (PDT) In-Reply-To: References: From: Kevin Pouget Date: Wed, 27 Apr 2011 11:34:00 -0000 Message-ID: Subject: Code cleanup - split print_stop_reason / question To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00153.txt.bz2 Hello, I had a little question regarding Jan's patch below, do you remember why you print the `exitstatus' in octal? it looks like a bug to me when I see > int main() { > =A0=A0=A0 return 10 ; > } > [Inferior 1 (process 4395) exited with code 012] Thanks, Kevin +2010-09-04 Jan Kratochvil + + Code cleanup - split print_stop_reason. + * infrun.c (enum inferior_stop_reason): Remove. + (print_stop_reason): Remove by splitting into ... + (print_exited_reason, print_signal_exited_reason) + (print_no_history_reason, print_signal_received_reason) + (print_end_stepping_range_reason): ... these new functions. Update + the preceding comment. + (handle_inferior_event): Change the calls to print_exited_reason, + print_signal_exited_reason, print_no_history_reason, + print_signal_received_reason, print_end_stepping_range_reason. + (handle_step_into_function, handle_step_into_function_backward): + Change the calls to print_end_stepping_range_reason. =A0=A0=A0=A0=A0 ui_out_text (uiout, "[Inferior "); =A0=A0=A0=A0=A0 ui_out_text (uiout, plongest (inf->num)); =A0=A0=A0=A0=A0 ui_out_text (uiout, " ("); =A0=A0=A0=A0=A0 ui_out_text (uiout, pidstr); =A0=A0=A0=A0=A0 ui_out_text (uiout, ") exited with code "); =A0=A0=A0=A0=A0 ui_out_field_fmt (uiout, "exit-code", "0%o", (unsigned int)= exitstatus); =A0=A0=A0=A0=A0 ui_out_text (uiout, "]\n");