diff options
-rw-r--r-- | gdb/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.c b/gdb/target.c index c25ce69..950f2f0 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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 |