mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-13 13:49:00 +08:00
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.
This commit is contained in:
parent
24fe764c8a
commit
249f1cf8e6
@ -3648,7 +3648,7 @@ target_announce_attach (int from_tty, int pid)
|
||||
|
||||
const char *exec_file = get_exec_file (0);
|
||||
|
||||
if (exec_file)
|
||||
if (exec_file != nullptr)
|
||||
printf_unfiltered ("Attaching to program: %s, %s\n", exec_file,
|
||||
target_pid_to_str (ptid_t (pid)).c_str ());
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user