diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2019-12-16 16:30:49 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2019-12-16 16:30:49 -0500 |
commit | 89867184294da399078d77bae3cd4b27ce640f27 (patch) | |
tree | f5e655fde291286da3523a949b2e65cf99210857 /gdb/mips64-obsd-nat.c | |
parent | d043f8c867f85f1c36cc957da8204fe2907b3aea (diff) | |
download | gdb-89867184294da399078d77bae3cd4b27ce640f27.zip gdb-89867184294da399078d77bae3cd4b27ce640f27.tar.gz gdb-89867184294da399078d77bae3cd4b27ce640f27.tar.bz2 |
jit: c++-ify gdb_symtab
This patch makes the gdb_symtab bit more c++y, in preparation for the
next patch that will use an std::forward_list<gdb_symtab>. It changes
the fields to use automatic memory management, in the form of
std::string and gdb::unique_xmalloc_ptr, and adds a constructor and a
destructor.
gdb/ChangeLog:
* jit.c (struct gdb_symtab): Add constructor, destructor,
initialize fields.
<linetable>: Change type to unique_xmalloc_ptr.
<file_name>: Change type to std::string.
(jit_symtab_open_impl): Allocate gdb_symtab with new.
(jit_symtab_line_mapping_add_impl): Adjust.
(finalize_symtab): Adjust, call delete on stab.
Diffstat (limited to 'gdb/mips64-obsd-nat.c')
0 files changed, 0 insertions, 0 deletions