diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-08-05 02:44:50 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-08-05 02:44:50 +0000 |
commit | ab4e3d93a0586b8b95213f7255b91fc056d82fd9 (patch) | |
tree | 62fe4da74d18451b09665b75ce282a2736b67d3b /gdb/cli | |
parent | 1062ca825eafee452642a6d258c2b56ecac1aade (diff) | |
download | gdb-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.c | 7 |
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); } |