diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-11-20 19:55:16 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-11-20 19:55:16 +0000 |
commit | d256250056f97df69215b88918063a8cbb4520b9 (patch) | |
tree | f6416d0971bb9cf1bd87223a93d83a7eb0b403b6 /gdb/mi | |
parent | c203027e27e04b5609441f02ea9ddb6850253db6 (diff) | |
download | gdb-d256250056f97df69215b88918063a8cbb4520b9.zip gdb-d256250056f97df69215b88918063a8cbb4520b9.tar.gz gdb-d256250056f97df69215b88918063a8cbb4520b9.tar.bz2 |
(mi_cmd_var_assign): Simplify.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index 213681e..26457b2 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -511,8 +511,7 @@ mi_cmd_var_assign (char *command, char **argv, int argc) if (var == NULL) error (_("mi_cmd_var_assign: Variable object not found")); - /* FIXME: define masks for attributes */ - if (!(varobj_get_attributes (var) & 0x00000001)) + if (!varobj_editable_p (var)) error (_("mi_cmd_var_assign: Variable object is not editable")); expression = xstrdup (argv[1]); |