Use std::string in event_location
authorTom Tromey <tom@tromey.com>
Fri, 14 Jan 2022 15:53:35 +0000 (08:53 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 18 Jan 2022 17:01:19 +0000 (10:01 -0700)
commit85e428a69f5b34770ec4f76168d3c8dbb3a454bf
tree6f2d45133c42c15edf45088558956ef5d65b7028
parent2b0c285ea552d2ce116efb85af749d69ebbddb59
Use std::string in event_location

This changes event_location to use std::string, removing some manual
memory management, and an unnecessary string copy.
gdb/location.c
gdb/location.h