diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bd2d5d27063..9c09269733a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-06-07 Simon Marchi + + * mi/mi-interp.c (mi_record_changed): Add missing braces. + 2016-06-07 Bernhard Heckel * findvar.c (follow_static_link): Check for valid pointer. diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 8ce816c2152..3bbdb1f989c 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -412,19 +412,25 @@ mi_record_changed (struct inferior *inferior, int started, const char *method, if (started) { if (format != NULL) - fprintf_unfiltered ( - mi->event_channel, - "record-started,thread-group=\"i%d\",method=\"%s\",format=\"%s\"", - inferior->num, method, format); + { + fprintf_unfiltered ( + mi->event_channel, + "record-started,thread-group=\"i%d\",method=\"%s\",format=\"%s\"", + inferior->num, method, format); + } else - fprintf_unfiltered ( - mi->event_channel, - "record-started,thread-group=\"i%d\",method=\"%s\"", - inferior->num, method); + { + fprintf_unfiltered ( + mi->event_channel, + "record-started,thread-group=\"i%d\",method=\"%s\"", + inferior->num, method); + } } else - fprintf_unfiltered (mi->event_channel, - "record-stopped,thread-group=\"i%d\"", inferior->num); + { + fprintf_unfiltered (mi->event_channel, + "record-stopped,thread-group=\"i%d\"", inferior->num); + } gdb_flush (mi->event_channel);