> Secondly, in include/lldb/Target/Thread.h can we do the unwind.h include a > bit different? On linux, you'd have to use a different lib, > which is incompatible with the included headers. #include "libunwind.h" and > extend the includepath to the local libunwind/include/ on osx > would work,
Seems to be as simple as that. The attached patch makes it still compile under xcode for me, while enabling correct inclusion under Linux by removing the local unwind headers from the includes. Please test yourself before applying, as i'm fairly new to xcode and might have done something wrong.
diff --git a/include/lldb/Target/Thread.h b/include/lldb/Target/Thread.h index 3aad792..717d53e 100644 --- a/include/lldb/Target/Thread.h +++ b/include/lldb/Target/Thread.h @@ -16,7 +16,7 @@ #include "lldb/Core/UserSettingsController.h" #include "lldb/Target/ExecutionContextScope.h" #include "lldb/Target/StackFrameList.h" -#include "libunwind/include/libunwind.h" +#include "libunwind.h" #define LLDB_THREAD_MAX_STOP_EXC_DATA 8
_______________________________________________ lldb-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
