mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-14 03:15:06 +08:00
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.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user