aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-14 02:33:24 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-14 02:33:24 +0000
commitb315da3853fec493caab23b17343da91c72366f3 (patch)
tree436f2f6a7281028b3a5b7981b88add3867802fce /gdb/mi
parentcbd3c883c0326107acb4ceec933aa598439e6f74 (diff)
downloadfsf-binutils-gdb-b315da3853fec493caab23b17343da91c72366f3.zip
fsf-binutils-gdb-b315da3853fec493caab23b17343da91c72366f3.tar.gz
fsf-binutils-gdb-b315da3853fec493caab23b17343da91c72366f3.tar.bz2
2005-01-13 Andrew Cagney <cagney@gnu.org>
* exceptions.h (struct exception): Make message const. * mi/mi-main.c (mi_execute_command): Pass result.message directly to fputstr_unfiltered.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 9d7a06c..7df1569 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1166,13 +1166,11 @@ mi_execute_command (char *cmd, int from_tty)
}
if (result.reason < 0)
{
- char *msg = result.message;
- struct cleanup *cleanup = make_cleanup (xfree, msg);
/* The command execution failed and error() was called
somewhere */
fputs_unfiltered (command->token, raw_stdout);
fputs_unfiltered ("^error,msg=\"", raw_stdout);
- fputstr_unfiltered (msg, '"', raw_stdout);
+ fputstr_unfiltered (result.message, '"', raw_stdout);
fputs_unfiltered ("\"\n", raw_stdout);
}
mi_parse_free (command);