[Lldb-commits] [lldb] r176823 - Buildbot was failing to build. I guess classes declared in implementation files are treated differently on various compilers causing a "friend class Foo; " to fail for forward declared classes in global namespace.
Greg Clayton
gclayton at apple.com
Mon Mar 11 13:02:03 PDT 2013
Author: gclayton
Date: Mon Mar 11 15:02:03 2013
New Revision: 176823
URL: http://llvm.org/viewvc/llvm-project?rev=176823&view=rev
Log:
Buildbot was failing to build. I guess classes declared in implementation files are treated differently on various compilers causing a "friend class Foo;" to fail for forward declared classes in global namespace.
Modified:
lldb/trunk/include/lldb/Target/LanguageRuntime.h
lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h
lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
Modified: lldb/trunk/include/lldb/Target/LanguageRuntime.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/LanguageRuntime.h?rev=176823&r1=176822&r2=176823&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/LanguageRuntime.h (original)
+++ lldb/trunk/include/lldb/Target/LanguageRuntime.h Mon Mar 11 15:02:03 2013
@@ -23,9 +23,6 @@
#include "lldb/Core/Value.h"
#include "lldb/Target/ExecutionContextScope.h"
-class ExceptionBreakpointResolver;
-class ExceptionSearchFilter;
-
namespace lldb_private {
class LanguageRuntime :
@@ -93,20 +90,18 @@ public:
{
return m_process;
}
-
-protected:
- //------------------------------------------------------------------
- // Classes that inherit from LanguageRuntime can see and modify these
- //------------------------------------------------------------------
- friend class ExceptionBreakpointResolver;
- friend class ExceptionSearchFilter;
-
+
virtual lldb::BreakpointResolverSP
CreateExceptionResolver (Breakpoint *bkpt, bool catch_bp, bool throw_bp) = 0;
virtual lldb::SearchFilterSP
CreateExceptionSearchFilter ();
+protected:
+ //------------------------------------------------------------------
+ // Classes that inherit from LanguageRuntime can see and modify these
+ //------------------------------------------------------------------
+
LanguageRuntime(Process *process);
Process *m_process;
private:
Modified: lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h?rev=176823&r1=176822&r2=176823&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h Mon Mar 11 15:02:03 2013
@@ -72,14 +72,15 @@ namespace lldb_private {
virtual bool
ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason);
-
- protected:
+
virtual lldb::BreakpointResolverSP
CreateExceptionResolver (Breakpoint *bkpt, bool catch_bp, bool throw_bp);
-
+
virtual lldb::SearchFilterSP
CreateExceptionSearchFilter ();
+ protected:
+
lldb::BreakpointResolverSP
CreateExceptionResolver (Breakpoint *bkpt, bool catch_bp, bool throw_bp, bool for_expressions);
Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h?rev=176823&r1=176822&r2=176823&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h Mon Mar 11 15:02:03 2013
@@ -96,6 +96,10 @@ public:
virtual bool
ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason);
+
+ virtual lldb::SearchFilterSP
+ CreateExceptionSearchFilter ();
+
protected:
Address *
GetPrintForDebuggerAddr();
@@ -106,9 +110,6 @@ protected:
lldb::BreakpointSP m_objc_exception_bp_sp;
lldb::ModuleWP m_objc_module_wp;
- virtual lldb::SearchFilterSP
- CreateExceptionSearchFilter ();
-
AppleObjCRuntime(Process *process) :
lldb_private::ObjCLanguageRuntime(process),
m_read_objc_library (false),
More information about the lldb-commits
mailing list