aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-10-27 22:01:21 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2017-10-27 22:01:21 -0400
commit43dce4394513d15ba8122c3bf442ec1028d93feb (patch)
treea4f57eff55e8f754f8a937eb1b886ef58b2f53f3 /gdb/ChangeLog
parent6a1b9516d824a4d364040887455ba910f955f065 (diff)
downloadgdb-43dce4394513d15ba8122c3bf442ec1028d93feb.zip
gdb-43dce4394513d15ba8122c3bf442ec1028d93feb.tar.gz
gdb-43dce4394513d15ba8122c3bf442ec1028d93feb.tar.bz2
Allocate breakpoint_objfile_data with new
Allocate with new and free with delete. This allows using an std::vector in the following patch. I renamed free_breakpoint_probes to free_breakpoint_objfile_data, because it now doesn't only free the probes vector, but also the breakpoint_objfile_data structure itself. gdb/ChangeLog: * breakpoint.c (breakpoint_objfile_data): Initialize fields. (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data with new. (free_breakpoint_probes): Rename to ... (free_breakpoint_objfile_data): ... this, and call delete on bp_objfile_data..
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c1a3dee..9b91214 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,12 @@
+2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * breakpoint.c (breakpoint_objfile_data): Initialize fields.
+ (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
+ with new.
+ (free_breakpoint_probes): Rename to ...
+ (free_breakpoint_objfile_data): ... this, and call delete on
+ bp_objfile_data..
+
2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
* auto-load.c: Don't include gdb_vecs.h, include algorithm.