Return std::string from canonical_to_fullform
authorTom Tromey <tom@tromey.com>
Sat, 31 Mar 2018 17:01:55 +0000 (11:01 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 5 Apr 2018 13:39:35 +0000 (07:39 -0600)
commit53a0f8a250199af97ff8708e3899835086c7a24d
tree4d75eb1fcc10f892db6720cbabaf2ec24331580c
parenta5b5adf529fa64391bc1ef733b3e78f15d94c4b9
Return std::string from canonical_to_fullform

This changes canonical_to_fullform to return a std::string, and
changes decode_line_2 to use std::vector.  This allows for the removal
of some cleanups.

ChangeLog
2018-04-05  Tom Tromey  <tom@tromey.com>

* linespec.c (canonical_to_fullform): Return std::string.
(filter_results): Update.
(struct decode_line_2_item): Add constructor.
<fullform, displayform>: Now std::string.
(decode_line_2_compare_items): Now a std::sort comparator.
(decode_line_2): Update.
gdb/ChangeLog
gdb/linespec.c