mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-20 06:15:09 +08:00
* mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
after freeing it.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
|
||||||
|
after freeing it.
|
||||||
|
|
||||||
2007-10-16 Kevin Buettner <kevinb@redhat.com>
|
2007-10-16 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* m32r-tdep.c (decode_prologue): Sign extend offset for
|
* m32r-tdep.c (decode_prologue): Sign extend offset for
|
||||||
|
@ -1161,6 +1161,7 @@ captured_mi_execute_command (struct ui_out *uiout, void *data)
|
|||||||
fputs_unfiltered ("^error,msg=\"", raw_stdout);
|
fputs_unfiltered ("^error,msg=\"", raw_stdout);
|
||||||
fputstr_unfiltered (mi_error_message, '"', raw_stdout);
|
fputstr_unfiltered (mi_error_message, '"', raw_stdout);
|
||||||
xfree (mi_error_message);
|
xfree (mi_error_message);
|
||||||
|
mi_error_message = NULL;
|
||||||
fputs_unfiltered ("\"\n", raw_stdout);
|
fputs_unfiltered ("\"\n", raw_stdout);
|
||||||
}
|
}
|
||||||
mi_out_rewind (uiout);
|
mi_out_rewind (uiout);
|
||||||
@ -1213,6 +1214,7 @@ captured_mi_execute_command (struct ui_out *uiout, void *data)
|
|||||||
fputs_unfiltered ("^error,msg=\"", raw_stdout);
|
fputs_unfiltered ("^error,msg=\"", raw_stdout);
|
||||||
fputstr_unfiltered (mi_error_message, '"', raw_stdout);
|
fputstr_unfiltered (mi_error_message, '"', raw_stdout);
|
||||||
xfree (mi_error_message);
|
xfree (mi_error_message);
|
||||||
|
mi_error_message = NULL;
|
||||||
fputs_unfiltered ("\"\n", raw_stdout);
|
fputs_unfiltered ("\"\n", raw_stdout);
|
||||||
}
|
}
|
||||||
mi_out_rewind (uiout);
|
mi_out_rewind (uiout);
|
||||||
|
Reference in New Issue
Block a user