Add explicit check for nullptr to target_announce_attach
authorTom Tromey <tom@tromey.com>
Sat, 8 Jan 2022 16:45:27 +0000 (09:45 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 8 Jan 2022 16:45:27 +0000 (09:45 -0700)
commit249f1cf8e669cc2fa7832601e0bbf460c5bfb97d
tree64b2171a101def45fcc1af7b5d00c4f5e766eb25
parent24fe764c8a14bd519826e7e9af01edff59ab6be3
Add explicit check for nullptr to target_announce_attach

Lancelot pointed out that target_announce_attach was missing an
explicit check against nullptr.  This patch adds it.
gdb/target.c