This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Code cleanup - split print_stop_reason / question


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() {
> ??? return 10 ;
> }
> [Inferior 1 (process 4395) exited with code 012]


Thanks,

Kevin

+2010-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	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.


????? ui_out_text (uiout, "[Inferior ");
????? ui_out_text (uiout, plongest (inf->num));
????? ui_out_text (uiout, " (");
????? ui_out_text (uiout, pidstr);
????? ui_out_text (uiout, ") exited with code ");
????? ui_out_field_fmt (uiout, "exit-code", "0%o", (unsigned int) exitstatus);
????? ui_out_text (uiout, "]\n");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]