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:
parent
7e79b605cb
commit
17832a58a4
@ -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"
|
||||
|
@ -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;
|
||||
|
@ -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())
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user