Make target_options_to_string return an std::string
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 8 Aug 2018 01:37:40 +0000 (21:37 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 8 Aug 2018 01:38:27 +0000 (21:38 -0400)
commit09ce46f230fee766c386384cd1f5672d12fde276
tree70c4f15a8d7f68622137032f6250cc971119b1dd
parentb825f3a90e33ab6f333d12d676d51419f8fed77b
Make target_options_to_string return an std::string

Return an std::string instead of a char *, saving some manual freeing.

I only manually tested with "set debug target 1" and "set debug lin-lwp
1", since this only deals with debug output.

gdb/ChangeLog:

* target.h (target_options_to_string): Return an std::string.
* target.c (str_comma_list_concat_elem): Return void, use
std::string.
(do_option): Likewise.
(target_options_to_string): Return an std::string.
* linux-nat.c (linux_nat_target::wait): Adjust.
* target-debug.h (target_debug_print_options): Adjust.
gdb/ChangeLog
gdb/linux-nat.c
gdb/target-debug.h
gdb/target.c
gdb/target.h
This page took 0.024922 seconds and 4 git commands to generate.