Make parse_debug_format_options return an std::string
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 7 Jan 2018 15:50:48 +0000 (10:50 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Sun, 7 Jan 2018 15:50:48 +0000 (10:50 -0500)
commit2cc050302cd365fd28fac65d49b6c817eed74faf
treed83d6b14675bdbbb207c125e37e051d2bc9ae8e4
parentb01ba14d4d5391e59fd0e1a3608fd47287edc008
Make parse_debug_format_options return an std::string

This avoid having to manually free the return value.

gdb/gdbserver/ChangeLog:

* server.c (parse_debug_format_options): Return std::string.
(handle_monitor_command, captured_main): Adjust.
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c