diff options
author | Tom Tromey <tom@tromey.com> | 2017-04-07 15:34:02 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-04-12 11:16:18 -0600 |
commit | 4d89769a7b4e38e94a6e027281b36eff71fc8214 (patch) | |
tree | c99858aecfb6b30141f0c626556f8e89144038f9 /gdb/ChangeLog | |
parent | 4b217cc72b7ab04e2bea519f9fbd47d8952e08f5 (diff) | |
download | gdb-4d89769a7b4e38e94a6e027281b36eff71fc8214.zip gdb-4d89769a7b4e38e94a6e027281b36eff71fc8214.tar.gz gdb-4d89769a7b4e38e94a6e027281b36eff71fc8214.tar.bz2 |
C++ify mi_parse
This changes mi_parse to return a unique_ptr, and to use "new"; then
fixes up the users. This allows removing one cleanup.
gdb/ChangeLog
2017-04-12 Tom Tromey <tom@tromey.com>
* mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
(mi_parse): Update return type.
(mi_parse_free): Remove.
* mi/mi-parse.c (mi_parse::mi_parse): New constructor.
(mi_parse::~mi_parse): Rename from mi_parse_free.
(mi_parse_cleanup): Remove.
(mi_parse): Return a unique_ptr. Use new.
* mi/mi-main.c (mi_execute_command): Update.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 45c764e..feee3e7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,16 @@ 2017-04-12 Tom Tromey <tom@tromey.com> + * mi/mi-parse.h (struct mi_parse): Add constructor, destructor. + (mi_parse): Update return type. + (mi_parse_free): Remove. + * mi/mi-parse.c (mi_parse::mi_parse): New constructor. + (mi_parse::~mi_parse): Rename from mi_parse_free. + (mi_parse_cleanup): Remove. + (mi_parse): Return a unique_ptr. Use new. + * mi/mi-main.c (mi_execute_command): Update. + +2017-04-12 Tom Tromey <tom@tromey.com> + * location.c (explicit_location_lex_one): Return a unique_xmalloc_ptr. (string_to_explicit_location): Update. Remove cleanups. |