Use std::string and unique_xmalloc_ptr in compile/ code
authorTom Tromey <tom@tromey.com>
Mon, 14 Aug 2017 06:03:02 +0000 (00:03 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 3 Sep 2017 19:03:10 +0000 (13:03 -0600)
commit8f84fb0ee87e8f149523e13815c58e1b664d184f
tree24e32c98b3a0c898b7a32bf905b23f4b38f4f79e
parent18e9961f02b326923553f34682f4dcca0f25702e
Use std::string and unique_xmalloc_ptr in compile/ code

Change various things in the compile/ code to use std::string or
unique_xmalloc_ptr as appropriate.  This allows the removal of some
cleanups.

ChangeLog
2017-09-03  Tom Tromey  <tom@tromey.com>

* compile/compile.c (compile_register_name_mangled): Return
std::string.
* compile/compile-loc2c.c (pushf_register_address): Update.
(pushf_register): Update.
* compile/compile-c-types.c (convert_array): Update.
* compile/compile-c-symbols.c (generate_vla_size): Update.
(error_symbol_once): Use a gdb::unique_xmalloc_ptr.
(symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
(convert_one_symbol): Update.
(generate_c_for_for_one_variable): Update.
* compile/compile-c-support.c (c_get_range_decl_name): Return a
std::string.
(generate_register_struct): Update.
* compile/compile-internal.h (c_get_range_decl_name): Return a
std::string.
(compile_register_name_mangled): Return std::string.
gdb/ChangeLog
gdb/compile/compile-c-support.c
gdb/compile/compile-c-symbols.c
gdb/compile/compile-c-types.c
gdb/compile/compile-internal.h
gdb/compile/compile-loc2c.c
gdb/compile/compile.c
This page took 0.030331 seconds and 4 git commands to generate.