aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-09-23 09:32:54 -0600
committerTom Tromey <tom@tromey.com>2020-09-23 09:32:57 -0600
commitbac51ab78d4bee5273c7d6306ff6d41545fd5628 (patch)
tree19aa6c2685b02c8409979bd3d34698dc4d4b6860 /gdb/ChangeLog
parent92677124d90f0690ec5ffb6ee0a7b5097f95b135 (diff)
downloadgdb-bac51ab78d4bee5273c7d6306ff6d41545fd5628.zip
gdb-bac51ab78d4bee5273c7d6306ff6d41545fd5628.tar.gz
gdb-bac51ab78d4bee5273c7d6306ff6d41545fd5628.tar.bz2
Avoid manual memory management of argv arrays in gdb/compile
This changes gdb/compile to use gdb_argv directly, rather than manually managing the arrays itself. A few new helpers are added to gdb_argv. gdb/ChangeLog 2020-09-23 Tom Tromey <tom@tromey.com> * utils.h (class gdb_argv): Add move operators. <append>: New methods. * compile/compile.c (build_argc_argv): Remove. (compile_args_argc): Remove. (compile_args_argv): Change type. (set_compile_args): Simplify. (append_args): Remove. (filter_args): Remove argcp parameter. (get_args): Return gdb_argv. Simplify. (compile_to_object): Update.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e7ce8f4..7b9b7d4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,18 @@
2020-09-23 Tom Tromey <tom@tromey.com>
+ * utils.h (class gdb_argv): Add move operators.
+ <append>: New methods.
+ * compile/compile.c (build_argc_argv): Remove.
+ (compile_args_argc): Remove.
+ (compile_args_argv): Change type.
+ (set_compile_args): Simplify.
+ (append_args): Remove.
+ (filter_args): Remove argcp parameter.
+ (get_args): Return gdb_argv. Simplify.
+ (compile_to_object): Update.
+
+2020-09-23 Tom Tromey <tom@tromey.com>
+
* compile/compile-object-run.c (do_module_cleanup)
<~do_module_cleanup> :Remove.
(do_module_cleanup): Update.