aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-08-05 02:44:50 +0000
committerAndrew Cagney <cagney@redhat.com>2003-08-05 02:44:50 +0000
commitab4e3d93a0586b8b95213f7255b91fc056d82fd9 (patch)
tree62fe4da74d18451b09665b75ce282a2736b67d3b /gdb/cli
parent1062ca825eafee452642a6d258c2b56ecac1aade (diff)
downloadgdb-ab4e3d93a0586b8b95213f7255b91fc056d82fd9.zip
gdb-ab4e3d93a0586b8b95213f7255b91fc056d82fd9.tar.gz
gdb-ab4e3d93a0586b8b95213f7255b91fc056d82fd9.tar.bz2
2003-08-04 Andrew Cagney <cagney@redhat.com>
* monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT. * cli/cli-script.c (define_command): Call query directly, instead of passing it a buffer. * ocd.c (ocd_error): Pass error a constant format string. * remote-mips.c (mips_error): Use fputs_filtered.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-script.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 0f789bb..ab69ca4 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1092,11 +1092,12 @@ define_command (char *comname, int from_tty)
if (c)
{
+ int q;
if (c->class == class_user || c->class == class_alias)
- tem = "Redefine command \"%s\"? ";
+ q = query ("Redefine command \"%s\"? ", c->name);
else
- tem = "Really redefine built-in command \"%s\"? ";
- if (!query (tem, c->name))
+ q = query ("Really redefine built-in command \"%s\"? ", c->name);
+ if (!q)
error ("Command \"%s\" not redefined.", c->name);
}