projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c203027
)
(mi_cmd_var_assign): Simplify.
author
Nick Roberts
<nickrob@snap.net.nz>
Tue, 20 Nov 2007 19:55:16 +0000
(19:55 +0000)
committer
Nick Roberts
<nickrob@snap.net.nz>
Tue, 20 Nov 2007 19:55:16 +0000
(19:55 +0000)
gdb/mi/mi-cmd-var.c
patch
|
blob
|
history
diff --git
a/gdb/mi/mi-cmd-var.c
b/gdb/mi/mi-cmd-var.c
index
213681e
..
26457b2
100644
(file)
--- 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]);