Make copy_token_string return unique_xmalloc_ptr
authorTom Tromey <tom@tromey.com>
Sat, 11 Nov 2017 18:09:52 +0000 (11:09 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 5 Apr 2018 13:39:34 +0000 (07:39 -0600)
commita5b5adf529fa64391bc1ef733b3e78f15d94c4b9
tree6e9386611a8e13ccbd25c8675a12dfee4bd82da8
parent6a307fc5f59179005e070bd5a5a4cf78a9ecefd4
Make copy_token_string return unique_xmalloc_ptr

This changes copy_token_string to return a unique_xmalloc_ptr, which
allows the removal of some cleanups.

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

* linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
(unexpected_linespec_error): Update.
(linespec_parse_basic, parse_linespec): Update.
gdb/ChangeLog
gdb/linespec.c
This page took 0.025157 seconds and 4 git commands to generate.