|
From: <sv...@va...> - 2005-05-23 14:47:57
|
Author: sewardj
Date: 2005-05-23 15:47:52 +0100 (Mon, 23 May 2005)
New Revision: 3790
Modified:
trunk/coregrind/vg_signals.c
Log:
XML printing wibbles. And add missing braces around the then-part of
one of the if-s.
Modified: trunk/coregrind/vg_signals.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/vg_signals.c 2005-05-23 14:24:30 UTC (rev 3789)
+++ trunk/coregrind/vg_signals.c 2005-05-23 14:47:52 UTC (rev 3790)
@@ -533,14 +533,17 @@
return 0;
=20
bad_signo:
- if (VG_(needs).core_errors && VG_(clo_verbosity) >=3D 1)
+ if (VG_(needs).core_errors && VG_(clo_verbosity) >=3D 1
+ && !VG_(clo_xml)) {
VG_(message)(Vg_UserMsg,
"Warning: bad signal number %d in sigaction()",=20
signo);
+ }
return -VKI_EINVAL;
=20
bad_signo_reserved:
- if (VG_(needs).core_errors && VG_(clo_verbosity) >=3D 1) {
+ if (VG_(needs).core_errors && VG_(clo_verbosity) >=3D 1
+ && !VG_(clo_xml)) {
VG_(message)(Vg_UserMsg,
"Warning: ignored attempt to set %s handler in sigaction();",
signame(signo));
@@ -551,13 +554,15 @@
return -VKI_EINVAL;
=20
bad_sigkill_or_sigstop:
- if (VG_(needs).core_errors && VG_(clo_verbosity) >=3D 1)
+ if (VG_(needs).core_errors && VG_(clo_verbosity) >=3D 1
+ && !VG_(clo_xml)) {
VG_(message)(Vg_UserMsg,
"Warning: ignored attempt to set %s handler in sigaction();",
signame(signo));
VG_(message)(Vg_UserMsg,
" the %s signal is uncatchable",=20
signame(signo));
+ }
return -VKI_EINVAL;
}
=20
|