+2016-08-10 Pedro Alves <palves@redhat.com>
+
+ * common/signals-state-save-restore.c
+ (save_original_signals_state, restore_original_signals_state):
+ Wrap perror_with_name arguments with '()'.
+
2016-08-09 Pedro Alves <palves@redhat.com>
PR gdb/20418
res = sigprocmask (0, NULL, &original_signal_mask);
if (res == -1)
- perror_with_name ("sigprocmask");
+ perror_with_name (("sigprocmask"));
for (i = 1; i < NSIG; i++)
{
continue;
}
else if (res == -1)
- perror_with_name ("sigaction");
+ perror_with_name (("sigaction"));
/* If we find a custom signal handler already installed, then
this function was called too late. */
continue;
}
else if (res == -1)
- perror_with_name ("sigaction");
+ perror_with_name (("sigaction"));
}
res = sigprocmask (SIG_SETMASK, &original_signal_mask, NULL);
if (res == -1)
- perror_with_name ("sigprocmask");
+ perror_with_name (("sigprocmask"));
#endif
}