Don't use struct buffer in top.c
authorTom Tromey <tom@tromey.com>
Fri, 16 Dec 2022 19:53:20 +0000 (12:53 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 24 Feb 2023 18:52:48 +0000 (11:52 -0700)
commit1293ecd838c82e86f6c81d4518f5c662f8eaa0b9
tree5c8b7dcff30f1d4202bf4b90bf715a88082f3543
parent356628ee2a1ac34e705697967105dfbbcd7fd033
Don't use struct buffer in top.c

This changes top.c to use std::string rather than struct buffer.  Like
the event-top.c change, this is not completely ideal in that it
requires a copy of the string.
gdb/top.c