gdbsupport: introduce struct observer
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Apr 2021 23:26:04 +0000 (19:26 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Apr 2021 23:26:41 +0000 (19:26 -0400)
commitec098003e27d67bca9e9880320e26ab8ad30fe31
treec3e8bb931117daafa5dab0a39f863ae065841f8e
parent3886790f133ce1ee2f30ebf37bb7dec1f812f29a
gdbsupport: introduce struct observer

Instead of using a pair.  This allows keeping more data per observer in
a structured way, and using field names is clearer than first/second.

gdbsupport/ChangeLog:

* observable.h (class observable) <struct observer>: New.
<detach, notify>: Update.
<m_observers>: Change type to vector of observers.

Change-Id: Iadf7d1fa25049cfb089e6b1b429ddebc548825ab
gdbsupport/ChangeLog
gdbsupport/observable.h