Skip to content

Commit

Permalink
lldb-netbsd: Make messages more verbose regarding reported signals
Browse files Browse the repository at this point in the history
Include signal name in messages.

Sponsored by <The NetBSD Foundation>
  • Loading branch information
krytarowski committed Jan 21, 2017
1 parent 61784f9 commit 7aab540
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lldb-netbsd/distinfo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,19 @@
+
+ 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) {
Expand All @@ -217,15 +217,15 @@
+ }
+ 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) {
Expand Down

0 comments on commit 7aab540

Please sign in to comment.