Files
clang-p2996/lldb/source/Plugins/Process/Utility/NetBSDSignals.cpp
Kamil Rytarowski cec6b45aec Welcome to NetBSD signals
Summary:
Signals 1-32 are matching the default UNIX platform.

There are platform specific ones above 32.

From the `/usr/include/sys/signal.h` header:

```
#define SIGPWR          32      /* power fail/restart (not reset when caught) */
#ifdef _KERNEL
#define SIGRTMIN        33      /* Kernel only; not exposed to userland yet */
#define SIGRTMAX        63      /* Kernel only; not exposed to userland yet */
#endif
```

Reviewers: emaste, joerg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D15482

llvm-svn: 255592
2015-12-15 00:50:19 +00:00

35 lines
993 B
C++

//===-- NetBSDSignals.cpp --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// C Includes
// C++ Includes
// Other libraries and framework includes
// Project includes
#include "NetBSDSignals.h"
using namespace lldb_private;
NetBSDSignals::NetBSDSignals()
: UnixSignals()
{
Reset();
}
void
NetBSDSignals::Reset()
{
UnixSignals::Reset();
// SIGNO NAME SUPPRESS STOP NOTIFY DESCRIPTION
// ====== ============ ======== ====== ====== ===================================================
AddSignal (32, "SIGPWR", false, true , true , "power fail/restart (not reset when caught)");
#ifdef SIGRTMIN /* SIGRTMAX */
/* Kernel only; not exposed to userland yet */
#endif
}