From 30213ffc28b97229c0d06b1332eaced3deba62d7 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 5 Jan 2012 19:17:38 +0000 Subject: This patch combines common code from Linux and FreeBSD into a new POSIX platform. It also contains fixes for 64bit FreeBSD. The patch is based on changes by Mark Peek and "K. Macy" in their github repo located at https://github.com/fbsd/lldb. llvm-svn: 147609 --- lldb/source/Plugins/Process/Linux/LinuxStopInfo.h | 92 ----------------------- 1 file changed, 92 deletions(-) (limited to 'lldb/source/Plugins/Process/Linux/LinuxStopInfo.h') diff --git a/lldb/source/Plugins/Process/Linux/LinuxStopInfo.h b/lldb/source/Plugins/Process/Linux/LinuxStopInfo.h index 96b402a594c..e69de29bb2d 100644 --- a/lldb/source/Plugins/Process/Linux/LinuxStopInfo.h +++ b/lldb/source/Plugins/Process/Linux/LinuxStopInfo.h @@ -1,92 +0,0 @@ -//===-- LinuxStopInfo.h -----------------------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#ifndef liblldb_LinuxStopInfo_H_ -#define liblldb_LinuxStopInfo_H_ - -// C Includes -// C++ Includes -// Other libraries and framework includes -// Project includes -#include "lldb/Target/StopInfo.h" - -#include "LinuxThread.h" -#include "ProcessMessage.h" - -//===----------------------------------------------------------------------===// -/// @class LinuxStopInfo -/// @brief Simple base class for all Linux-specific StopInfo objects. -/// -class LinuxStopInfo - : public lldb_private::StopInfo -{ -public: - LinuxStopInfo(lldb_private::Thread &thread, uint32_t status) - : StopInfo(thread, status) - { } -}; - -//===----------------------------------------------------------------------===// -/// @class LinuxLimboStopInfo -/// @brief Represents the stop state of a process ready to exit. -/// -class LinuxLimboStopInfo - : public LinuxStopInfo -{ -public: - LinuxLimboStopInfo(LinuxThread &thread) - : LinuxStopInfo(thread, 0) - { } - - ~LinuxLimboStopInfo(); - - lldb::StopReason - GetStopReason() const; - - const char * - GetDescription(); - - bool - ShouldStop(lldb_private::Event *event_ptr); - - bool - ShouldNotify(lldb_private::Event *event_ptr); -}; - - -//===----------------------------------------------------------------------===// -/// @class LinuxCrashStopInfo -/// @brief Represents the stop state of process that is ready to crash. -/// -class LinuxCrashStopInfo - : public LinuxStopInfo -{ -public: - LinuxCrashStopInfo(LinuxThread &thread, uint32_t status, - ProcessMessage::CrashReason reason) - : LinuxStopInfo(thread, status), - m_crash_reason(reason) - { } - - ~LinuxCrashStopInfo(); - - lldb::StopReason - GetStopReason() const; - - const char * - GetDescription(); - - ProcessMessage::CrashReason - GetCrashReason() const; - -private: - ProcessMessage::CrashReason m_crash_reason; -}; - -#endif -- cgit v1.2.3