]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
C++ify charsets
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 3 Mar 2018 04:22:09 +0000 (23:22 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 3 Mar 2018 04:22:09 +0000 (23:22 -0500)
commitccb2231cd848c89f04ab2e1e54b013d69ea34893
treecf96bd8b8ed26c6700d0539a1750aa02c4c8d9bb
parent6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804
C++ify charsets

This patch makes the charset list an std::vector instead of a VEC.
Because we must have access to the raw pointers as a simple array, we
can't use a vector of unique_ptr/unique_xmalloc_ptr.  Therefore, wrap
the vector in a simple class to facilitate the cleanup.  This allows
removing one usage of free_char_ptr_vec.

gdb/ChangeLog:

* charset.c (struct charset_vector): New.
(charsets): Change type to charset_vector.
(find_charset_names): Adjust.
(add_one): Adjust.
(_initialize_charset): Adjust.
gdb/ChangeLog
gdb/charset.c