Use std::string for MI token
authorTom Tromey <tromey@adacore.com>
Fri, 9 Jun 2023 16:27:18 +0000 (10:27 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 20 Jun 2023 12:23:30 +0000 (06:23 -0600)
commit550194db388374be9aa8ca3a998523807c8080ae
tree97d9ba6d8640fecfb07750df35f9650007958c80
parent75e73c6cadcc064c2a0fd03396666574cd5335ca
Use std::string for MI token

This changes the MI "token" to be a std::string, removing some manual
memory management.  It also makes current_token 'const' in order to
support this change.

Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/mi/mi-main.c
gdb/mi/mi-main.h
gdb/mi/mi-parse.c
gdb/mi/mi-parse.h