Use FreeBSD ProcessMonitor.h on FreeBSD

There's an unfortunate layering issue between LLDB's Process/POSIX and
Process/{FreeBSD,Linux}, exposed by a refactoring in upstream revision
218568.  Work around it by adding explicit #if defined(__FreeBSD__)
guards to include the correct header.
This commit is contained in:
Ed Maste 2015-02-08 16:18:46 +00:00
parent 7e79b605cb
commit 17832a58a4
4 changed files with 16 additions and 0 deletions

View File

@ -31,7 +31,11 @@
#include "POSIXThread.h"
#include "ProcessPOSIX.h"
#include "ProcessPOSIXLog.h"
#if defined(__FreeBSD__)
#include "Plugins/Process/FreeBSD/ProcessMonitor.h"
#else
#include "Plugins/Process/Linux/ProcessMonitor.h"
#endif
#include "RegisterContextPOSIXProcessMonitor_arm64.h"
#include "RegisterContextPOSIXProcessMonitor_mips64.h"
#include "RegisterContextPOSIXProcessMonitor_powerpc.h"

View File

@ -29,7 +29,11 @@
#include "ProcessPOSIX.h"
#include "ProcessPOSIXLog.h"
#include "Plugins/Process/Utility/InferiorCallPOSIX.h"
#if defined(__FreeBSD__)
#include "Plugins/Process/FreeBSD/ProcessMonitor.h"
#else
#include "Plugins/Process/Linux/ProcessMonitor.h"
#endif
#include "POSIXThread.h"
using namespace lldb;

View File

@ -13,7 +13,11 @@
#include "Plugins/Process/Utility/RegisterContextPOSIX_arm64.h"
#include "ProcessPOSIX.h"
#include "RegisterContextPOSIXProcessMonitor_arm64.h"
#if defined(__FreeBSD__)
#include "Plugins/Process/FreeBSD/ProcessMonitor.h"
#else
#include "Plugins/Process/Linux/ProcessMonitor.h"
#endif
#define REG_CONTEXT_SIZE (GetGPRSize())

View File

@ -13,7 +13,11 @@
#include "Plugins/Process/Utility/RegisterContextPOSIX_mips64.h"
#include "ProcessPOSIX.h"
#include "RegisterContextPOSIXProcessMonitor_mips64.h"
#if defined(__FreeBSD__)
#include "Plugins/Process/FreeBSD/ProcessMonitor.h"
#else
#include "Plugins/Process/Linux/ProcessMonitor.h"
#endif
using namespace lldb_private;
using namespace lldb;