diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2016-06-07 10:02:42 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2016-06-07 11:46:25 -0400 |
commit | 1aec0b6ad6eae1fa97bb1a4a47959ff204aa15a2 (patch) | |
tree | c5743fbfcff5c82557bae3af2c050b10ba3799e5 /gdb/mi/mi-interp.c | |
parent | 1133012c60bf2a6fe66dc5d8d923e03a001e3813 (diff) | |
download | gdb-1aec0b6ad6eae1fa97bb1a4a47959ff204aa15a2.zip gdb-1aec0b6ad6eae1fa97bb1a4a47959ff204aa15a2.tar.gz gdb-1aec0b6ad6eae1fa97bb1a4a47959ff204aa15a2.tar.bz2 |
mi/mi-interp.c: Add missing braces
gdb/ChangeLog:
* mi/mi-interp.c (mi_record_changed): Add missing braces.
Diffstat (limited to 'gdb/mi/mi-interp.c')
-rw-r--r-- | gdb/mi/mi-interp.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 8ce816c..3bbdb1f 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); |