diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-06 19:46:15 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-06 19:46:15 +0000 |
commit | 40501e00a1ae6f0dcdd46c01e7137ff7e887c1e1 (patch) | |
tree | 989deb032766a735e9ce34ebde5e0f01b5017524 /gdb/ada-lang.c | |
parent | b6807d988a28dc2718bae1abba1f28779bc0c3c3 (diff) | |
download | gdb-40501e00a1ae6f0dcdd46c01e7137ff7e887c1e1.zip gdb-40501e00a1ae6f0dcdd46c01e7137ff7e887c1e1.tar.gz gdb-40501e00a1ae6f0dcdd46c01e7137ff7e887c1e1.tar.bz2 |
* ada-lang.c (ada_value_primitive_packed_val): Don't
call value_incref.
* value.c (set_value_parent): Incref the new parent and decref
the old parent.
(value_copy, value_primitive_field): Use set_value_parent.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index fdfc0b4..3510750 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -2325,7 +2325,6 @@ ada_value_primitive_packed_val (struct value *obj, const gdb_byte *valaddr, /* Also set the parent value. This is needed when trying to assign a new value (in inferior memory). */ set_value_parent (v, obj); - value_incref (obj); } else set_value_bitsize (v, bit_size); |