This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Do not stop on SIGPRIO signals by default


Re: http://www.sourceware.org/ml/gdb/2011-01/msg00013.html

This signal does not indicate an error condition, so the default
behavior when receiving this signal should be to resume execution
silently.

gdb/ChangeLog:

        Do not stop on SIGPRIO signals by default
        * infrun.c (_initialize_infrun): Unset signal_stop and
        signal_print for TARGET_SIGNAL_PRIO.

Tested on x86_64-linux, no regression.  I couldn't find a single
target that actually provided SIGPRIO except LynxOS, so no testcase.

Checked in.

---
 gdb/ChangeLog |    6 ++++++
 gdb/infrun.c  |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 92a8e6f..a653f2f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
 
+	Do not stop on SIGPRIO signals by default
+	* infrun.c (_initialize_infrun): Unset signal_stop and
+	signal_print for TARGET_SIGNAL_PRIO.
+
+2011-01-06  Joel Brobecker  <brobecker@adacore.com>
+
 	* ada-tasks.c: Fix style violation in comment.
 
 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 8a3ba84..dd6fe6c 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -6927,6 +6927,8 @@ leave it stopped or free to run as needed."),
   signal_print[TARGET_SIGNAL_URG] = 0;
   signal_stop[TARGET_SIGNAL_WINCH] = 0;
   signal_print[TARGET_SIGNAL_WINCH] = 0;
+  signal_stop[TARGET_SIGNAL_PRIO] = 0;
+  signal_print[TARGET_SIGNAL_PRIO] = 0;
 
   /* These signals are used internally by user-level thread
      implementations.  (See signal(5) on Solaris.)  Like the above
-- 
1.7.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]