pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lldb-netbsd: Make messages more verbose regarding reported signals



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Jan 21 14:15:26 2017 +0100
Changeset:	7aab540f6e7c38698ee67273c7ccbdde836bddae

Modified Files:
	lldb-netbsd/distinfo
	lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp

Log Message:
lldb-netbsd: Make messages more verbose regarding reported signals

Include signal name in messages.

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7aab540f6e7c38698ee67273c7ccbdde836bddae

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lldb-netbsd/distinfo                                       |  2 +-
 ...ch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs:
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
index fad3ce2..041c12d 100644
--- a/lldb-netbsd/distinfo
+++ b/lldb-netbsd/distinfo
@@ -30,7 +30,7 @@ SHA1 (patch-source_Plugins_Process_CMakeLists.txt) = c0168f81da56d9896eb414e6b8b
 SHA1 (patch-source_Plugins_Process_NetBSD_CMakeLists.txt) = df17afdf71c29d945c887e318718904793cd48ad
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp) = 14ab4de34f904bc3d7965dfd2554021fa83209ac
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.h) = bdd9fe37e47de8fa626c7eacf81e07d47a76787c
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = e3543fca9b33de37defa303704bd700f1e5b0ccb
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = 9fd955c9d472531e2d6293d0fa4ff237af4be405
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h) = 52686c2b13e9de5be9818668750b27b5c37843a7
 SHA1 (patch-tools_lldb-mi_MICmnBase.cpp) = 851c82ac61e1241018755fbd7236af00379ac986
 SHA1 (patch-tools_lldb-mi_MICmnBase.h) = f550d5e10bcf02fb46472733acdbb820791f22e5
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
index e0abe76..6677cf6 100644
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
@@ -184,19 +184,19 @@ $NetBSD$
 +
 +  switch(info->si_code) {
 +  case SI_USER:
-+    stringStream << "The signal was generated via kill(2) from pid="
++    stringStream << "The signal " << strsignal(signo) << " was generated via kill(2) from pid="
 +                 << info->si_pid << ", uid=" << info->si_uid;
 +    break;
 +  case SI_QUEUE:
-+    stringStream << "The signal was generated via sigqueue(2)";
++    stringStream << "The signal " << strsignal(signo) << " was generated via sigqueue(2)";
 +    break;
 +  case SI_TIMER:
-+    stringStream << "The signal was generated because a timer set by timer_settime(2) has expired"
++    stringStream << "The signal " << strsignal(signo) << " was generated because a timer set by timer_settime(2) has expired"
 +                 << " with si_value set to sival_int=" << info->si_value.sival_int << " and "
 +                 << "sival_ptr=" << info->si_value.sival_ptr;
 +    break;
 +  case SI_ASYNCIO:
-+    stringStream << "The signal was generated by completion of an asynchronous I/O operation with "
++    stringStream << "The signal " << strsignal(signo) << " was generated by completion of an asynchronous I/O operation with "
 +                 << info->si_fd << " file descriptor number on which the operation was completed "
 +                 << " and side and priority of the operation set to ";
 +    switch (info->si_band) {
@@ -217,15 +217,15 @@ $NetBSD$
 +    }
 +    stringStream << std::hex << std::showbase << info->si_band;
 +  case SI_MESGQ:
-+    stringStream << "The signal was generated by arrival of a message on an empty message queue "
++    stringStream << "The signal " << strsignal(signo) << " was generated by arrival of a message on an empty message queue "
 +                 << "with si_value set to sival_int=" << info->si_value.sival_int << " and "
 +                 << "sival_ptr=" << info->si_value.sival_ptr;
 +  case SI_LWP:
-+    stringStream << "The signal was generated via _lwp_kill(2) from pid="
++    stringStream << "The signal " << strsignal(signo) << " was generated via _lwp_kill(2) from pid="
 +                 << info->si_pid << ", uid=" << info->si_uid;
 +    break;
 +  case SI_NOINFO:
-+    stringStream << "There is no signal specific info available";
++    stringStream << "The signal " << strsignal(signo) << " was generated with no signal specific info available";
 +    break;
 +  default:
 +    switch (info->si_signo) {


Home | Main Index | Thread Index | Old Index