aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-08-19 22:15:30 -0600
committerTom Tromey <tom@tromey.com>2017-08-22 09:38:06 -0600
commit36bd8eaaa0afe3ff8e8b1b1b9edc9686f5c159e6 (patch)
tree86d1fc6b419819bf97b6685326ac37f1494a80db /gdb/ChangeLog
parent56f37645249752378520a1c2430225c9cee09161 (diff)
downloadgdb-36bd8eaaa0afe3ff8e8b1b1b9edc9686f5c159e6.zip
gdb-36bd8eaaa0afe3ff8e8b1b1b9edc9686f5c159e6.tar.gz
gdb-36bd8eaaa0afe3ff8e8b1b1b9edc9686f5c159e6.tar.bz2
Fix erroneous cleanup use in add_solib_catchpoint
I happened to notice that add_solib_catchpoint allocated the new catchpoint with "new" but installed a cleanup using "xfree". This patch fixes the bug by changing the function to use std::unique_ptr instead. ChangeLog 2017-08-22 Tom Tromey <tom@tromey.com> * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e291719..1cd0eaa 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2017-08-22 Tom Tromey <tom@tromey.com>
+ * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
+
+2017-08-22 Tom Tromey <tom@tromey.com>
+
* psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
(lookup_partial_symbol): Update.