Split event_location into subclasses
authorTom Tromey <tom@tromey.com>
Fri, 14 Jan 2022 15:29:42 +0000 (08:29 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 18 Jan 2022 17:01:16 +0000 (10:01 -0700)
commit2b0c285ea552d2ce116efb85af749d69ebbddb59
tree8abbac61485de6eafa837879592ee4fc2930d826
parent49a9cf56ffd49539234e6cb33a5d1d19ba4e2388
Split event_location into subclasses

event_location uses the old C-style discriminated union approach.
However, it's better to use subclassing, as this makes the code
clearer and removes some chances for error.  This also enables future
cleanups to avoid manual memory management and copies.
gdb/location.c