aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2018-02-16 16:20:58 +0000
committerYao Qi <yao.qi@linaro.org>2018-02-16 16:20:58 +0000
commitfd90ace4c1e77c94e90d2942cebe84e9a2019c0f (patch)
tree238171dee65bdaa736aadcc8413208f70f084a54 /gdb/ChangeLog
parent75cdede09952b5aa8c6d4ceb0de10c5e93002a6d (diff)
downloadgdb-fd90ace4c1e77c94e90d2942cebe84e9a2019c0f.zip
gdb-fd90ace4c1e77c94e90d2942cebe84e9a2019c0f.tar.gz
gdb-fd90ace4c1e77c94e90d2942cebe84e9a2019c0f.tar.bz2
New class allocate_on_obstack
This patch adds a new class allocate_on_obstack, and let dwarf2_per_objfile inherit it, so that dwarf2_per_objfile is automatically allocated on obstack, and "delete dwarf2_per_objfile" doesn't de-allocate any space. gdb: 2018-02-16 Yao Qi <yao.qi@linaro.org> * block.c (block_namespace_info): Inherit allocate_on_obstack. (block_initialize_namespace): Use new. * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. (dwarf2_free_objfile): Use delete. * gdbtypes.c (type_pair): Inherit allocate_on_obstack. (copy_type_recursive): Use new. * gdb_obstack.h (allocate_on_obstack): New.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5c6f67a..250362e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2018-02-16 Yao Qi <yao.qi@linaro.org>
+
+ * block.c (block_namespace_info): Inherit allocate_on_obstack.
+ (block_initialize_namespace): Use new.
+ * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
+ (dwarf2_free_objfile): Use delete.
+ * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
+ (copy_type_recursive): Use new.
+ * gdb_obstack.h (allocate_on_obstack): New.
+
2018-02-15 Yao Qi <yao.qi@linaro.org>
PR gdb/22849