diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-27 19:25:56 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-27 19:25:56 +0000 |
commit | bb7da2bfb5d890bdb01a15ed46a64011fc08d812 (patch) | |
tree | 1e11fdc7a467d05b5e5406e189545ff69aab1fac /gdb/valops.c | |
parent | 2d5213f8bce608d99728a24dc025a3fd1992690f (diff) | |
download | gdb-bb7da2bfb5d890bdb01a15ed46a64011fc08d812.zip gdb-bb7da2bfb5d890bdb01a15ed46a64011fc08d812.tar.gz gdb-bb7da2bfb5d890bdb01a15ed46a64011fc08d812.tar.bz2 |
gdb/
Fix crash on lval_computed values.
* valops.c (value_zero): Use not_lval for lval_computed.
gdb/testsuite/
Fix crash on lval_computed values.
* gdb.dwarf2/implptr.exp (print sizeof (j[0])): New test.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index d9cdc13..ee05d73 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -860,7 +860,7 @@ value_zero (struct type *type, enum lval_type lv) { struct value *val = allocate_value (type); - VALUE_LVAL (val) = lv; + VALUE_LVAL (val) = (lv == lval_computed ? not_lval : lv); return val; } |