aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2017-12-05 16:30:26 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2017-12-05 16:30:26 -0500
commit082b9140d953b9e6a78271384ec48ff5d0ba8fad (patch)
treea2ccf26b30c3132cba26e2f6c34be688b0eabdd0 /ld/ldfile.c
parent53c934e9fed9a35542661690e4e71febcbebb539 (diff)
downloadfsf-binutils-gdb-082b9140d953b9e6a78271384ec48ff5d0ba8fad.zip
fsf-binutils-gdb-082b9140d953b9e6a78271384ec48ff5d0ba8fad.tar.gz
fsf-binutils-gdb-082b9140d953b9e6a78271384ec48ff5d0ba8fad.tar.bz2
Make tdesc_type::name an std::string
This patch makes tdesc_type::name an std::string. This way, we don't need to free it manually in ~tdesc_type. I think the comment on top of name is not correct, the string is always malloc'ed. gdb/ChangeLog: * target-descriptions.c (struct tdesc_type) <name>: Change type to std::string. <~tdesc_type>: Don't manually free name. <operator==>: Adjust. (tdesc_named_type): Adjust. (tdesc_find_type): Adjust. (tdesc_gdb_type): Adjust. (class print_c_tdesc) <visit>: Adjust.
Diffstat (limited to 'ld/ldfile.c')
0 files changed, 0 insertions, 0 deletions