diff options
author | Jerome Guitton <guitton@adacore.com> | 2008-11-26 16:27:28 +0000 |
---|---|---|
committer | Jerome Guitton <guitton@adacore.com> | 2008-11-26 16:27:28 +0000 |
commit | 3e3d7139eef55bf54263b7385858bcdd2b239415 (patch) | |
tree | 525918de5f68b51df4098fbe0da15d42233cecad /gdb/ChangeLog | |
parent | 508e676df1a21a34a1b53b004bed87a3358d776b (diff) | |
download | gdb-3e3d7139eef55bf54263b7385858bcdd2b239415.zip gdb-3e3d7139eef55bf54263b7385858bcdd2b239415.tar.gz gdb-3e3d7139eef55bf54263b7385858bcdd2b239415.tar.bz2 |
* value.h (allocate_value_lazy): New function declaration.
(value_free): Remove macro, make it a function.
* value.c (value): Move actual content outside of the memory space
of the struct; add a pointer to this actual content.
(allocate_value_lazy, allocate_value_contents): New function.
(allocate_value): Reimplement using these two new functions.
(value_contents_raw, value_contents_all_raw): If no memory
has been allocated yet for the actual content, allocate it.
(value_contents_all): Resync with struct value's changes.
(value_free): New function.
(value_copy, value_primitive_field): Use new function
allocate_value_lazy to allocate lazy values.
(value_change_enclosing_type): Resync with struct value's changes.
As the value is not reallocated, remove the special handling for
the value chain (now obsolete).
* valops.c (value_at_lazy): Use new function allocate_value_lazy.
(value_fetch_lazy): Allocate value content. Use allocate_value_lazy
to allocate lazy values.
(value_slice): Use allocate_value_lazy to allocate lazy values.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0582ae1..45cf07c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,25 @@ +2008-11-26 Jerome Guitton <guitton@adacore.com> + + * value.h (allocate_value_lazy): New function declaration. + (value_free): Remove macro, make it a function. + * value.c (value): Move actual content outside of the memory space + of the struct; add a pointer to this actual content. + (allocate_value_lazy, allocate_value_contents): New function. + (allocate_value): Reimplement using these two new functions. + (value_contents_raw, value_contents_all_raw): If no memory + has been allocated yet for the actual content, allocate it. + (value_contents_all): Resync with struct value's changes. + (value_free): New function. + (value_copy, value_primitive_field): Use new function + allocate_value_lazy to allocate lazy values. + (value_change_enclosing_type): Resync with struct value's changes. + As the value is not reallocated, remove the special handling for + the value chain (now obsolete). + * valops.c (value_at_lazy): Use new function allocate_value_lazy. + (value_fetch_lazy): Allocate value content. Use allocate_value_lazy + to allocate lazy values. + (value_slice): Use allocate_value_lazy to allocate lazy values. + 2008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com> Fix automatic restoration of breakpoints memory for ia64. |