aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2018-03-02 23:22:09 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2018-03-02 23:22:09 -0500
commitccb2231cd848c89f04ab2e1e54b013d69ea34893 (patch)
treecf96bd8b8ed26c6700d0539a1750aa02c4c8d9bb /binutils
parent6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804 (diff)
downloadgdb-ccb2231cd848c89f04ab2e1e54b013d69ea34893.zip
gdb-ccb2231cd848c89f04ab2e1e54b013d69ea34893.tar.gz
gdb-ccb2231cd848c89f04ab2e1e54b013d69ea34893.tar.bz2
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.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions