aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-11-17 19:30:41 +0000
committerDaniel Jacobowitz <drow@false.org>2006-11-17 19:30:41 +0000
commit63f06803320d4e116c402579694399540816b55f (patch)
treee89f70692c93b083ae949e66297675c708b5785e /gdb/mi
parent * NEWS: Mention QPassSignals. (diff)
downloadbinutils-gdb-63f06803320d4e116c402579694399540816b55f.tar.gz
binutils-gdb-63f06803320d4e116c402579694399540816b55f.tar.bz2
binutils-gdb-63f06803320d4e116c402579694399540816b55f.zip
* utils.c (string_to_core_addr): Use error instead of
internal_error. * mi/mi-main.c (mi_execute_command): Check for a NULL message.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index e2e084005c5..abb43f33241 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1183,7 +1183,10 @@ mi_execute_command (char *cmd, int from_tty)
somewhere. */
fputs_unfiltered (command->token, raw_stdout);
fputs_unfiltered ("^error,msg=\"", raw_stdout);
- fputstr_unfiltered (result.message, '"', raw_stdout);
+ if (result.message == NULL)
+ fputs_unfiltered ("unknown error", raw_stdout);
+ else
+ fputstr_unfiltered (result.message, '"', raw_stdout);
fputs_unfiltered ("\"\n", raw_stdout);
mi_out_rewind (uiout);
}