summaryrefslogtreecommitdiffstats
path: root/lldb/include
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/include')
-rw-r--r--lldb/include/lldb/API/SBAddress.h7
-rw-r--r--lldb/include/lldb/API/SBBlock.h7
-rw-r--r--lldb/include/lldb/API/SBBreakpoint.h7
-rw-r--r--lldb/include/lldb/API/SBBreakpointLocation.h7
-rw-r--r--lldb/include/lldb/API/SBCommandReturnObject.h7
-rw-r--r--lldb/include/lldb/API/SBCompileUnit.h7
-rw-r--r--lldb/include/lldb/API/SBDebugger.h7
-rw-r--r--lldb/include/lldb/API/SBDefines.h5
-rw-r--r--lldb/include/lldb/API/SBError.h7
-rw-r--r--lldb/include/lldb/API/SBEvent.h7
-rw-r--r--lldb/include/lldb/API/SBFileSpec.h7
-rw-r--r--lldb/include/lldb/API/SBFrame.h7
-rw-r--r--lldb/include/lldb/API/SBFunction.h7
-rw-r--r--lldb/include/lldb/API/SBInstruction.h7
-rw-r--r--lldb/include/lldb/API/SBLineEntry.h7
-rw-r--r--lldb/include/lldb/API/SBModule.h7
-rw-r--r--lldb/include/lldb/API/SBProcess.h7
-rw-r--r--lldb/include/lldb/API/SBSymbol.h7
-rw-r--r--lldb/include/lldb/API/SBSymbolContext.h16
-rw-r--r--lldb/include/lldb/API/SBTarget.h7
-rw-r--r--lldb/include/lldb/API/SBThread.h7
-rw-r--r--lldb/include/lldb/API/SBType.h7
-rw-r--r--lldb/include/lldb/API/SBValue.h7
23 files changed, 6 insertions, 162 deletions
diff --git a/lldb/include/lldb/API/SBAddress.h b/lldb/include/lldb/API/SBAddress.h
index d9d4ace706b..ffafdf179bb 100644
--- a/lldb/include/lldb/API/SBAddress.h
+++ b/lldb/include/lldb/API/SBAddress.h
@@ -47,13 +47,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
friend class SBFrame;
diff --git a/lldb/include/lldb/API/SBBlock.h b/lldb/include/lldb/API/SBBlock.h
index c49c9a17a95..4e84aaee900 100644
--- a/lldb/include/lldb/API/SBBlock.h
+++ b/lldb/include/lldb/API/SBBlock.h
@@ -52,13 +52,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject *, which contains a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
friend class SBFrame;
friend class SBSymbolContext;
diff --git a/lldb/include/lldb/API/SBBreakpoint.h b/lldb/include/lldb/API/SBBreakpoint.h
index b24515b6adc..2c0c256c847 100644
--- a/lldb/include/lldb/API/SBBreakpoint.h
+++ b/lldb/include/lldb/API/SBBreakpoint.h
@@ -116,13 +116,6 @@ public:
static lldb::SBBreakpointLocation
GetBreakpointLocationAtIndexFromEvent (const lldb::SBEvent& event, uint32_t loc_idx);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
friend class SBBreakpointLocation;
friend class SBTarget;
diff --git a/lldb/include/lldb/API/SBBreakpointLocation.h b/lldb/include/lldb/API/SBBreakpointLocation.h
index 32e83f245bd..529cd0570b6 100644
--- a/lldb/include/lldb/API/SBBreakpointLocation.h
+++ b/lldb/include/lldb/API/SBBreakpointLocation.h
@@ -74,13 +74,6 @@ public:
SBBreakpoint
GetBreakpoint ();
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
friend class SBBreakpoint;
diff --git a/lldb/include/lldb/API/SBCommandReturnObject.h b/lldb/include/lldb/API/SBCommandReturnObject.h
index 5d52dc1c211..1533816367d 100644
--- a/lldb/include/lldb/API/SBCommandReturnObject.h
+++ b/lldb/include/lldb/API/SBCommandReturnObject.h
@@ -61,13 +61,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
friend class SBCommandInterpreter;
friend class SBOptions;
diff --git a/lldb/include/lldb/API/SBCompileUnit.h b/lldb/include/lldb/API/SBCompileUnit.h
index 5c7d6a45f28..e0bebd079c3 100644
--- a/lldb/include/lldb/API/SBCompileUnit.h
+++ b/lldb/include/lldb/API/SBCompileUnit.h
@@ -53,13 +53,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
friend class SBFrame;
friend class SBSymbolContext;
diff --git a/lldb/include/lldb/API/SBDebugger.h b/lldb/include/lldb/API/SBDebugger.h
index bef4cad1439..d05bb9fc572 100644
--- a/lldb/include/lldb/API/SBDebugger.h
+++ b/lldb/include/lldb/API/SBDebugger.h
@@ -157,13 +157,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
uint32_t
GetTerminalWidth () const;
diff --git a/lldb/include/lldb/API/SBDefines.h b/lldb/include/lldb/API/SBDefines.h
index 3a2ad79b704..fb59cc64542 100644
--- a/lldb/include/lldb/API/SBDefines.h
+++ b/lldb/include/lldb/API/SBDefines.h
@@ -10,11 +10,6 @@
#ifndef LLDB_SBDefines_h_
#define LLDB_SBDefines_h_
-// In order to guarantee correct working with Python, Python.h *MUST* be
-// the *FIRST* header file included:
-
-#include <Python.h>
-
// C Includes
// C++ Includes
// Other libraries and framework includes
diff --git a/lldb/include/lldb/API/SBError.h b/lldb/include/lldb/API/SBError.h
index 3fedd13ff87..cbea6910ffa 100644
--- a/lldb/include/lldb/API/SBError.h
+++ b/lldb/include/lldb/API/SBError.h
@@ -68,13 +68,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
friend class SBArguments;
friend class SBDebugger;
diff --git a/lldb/include/lldb/API/SBEvent.h b/lldb/include/lldb/API/SBEvent.h
index 9f6a425058c..cab413a9ab3 100644
--- a/lldb/include/lldb/API/SBEvent.h
+++ b/lldb/include/lldb/API/SBEvent.h
@@ -57,13 +57,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
friend class SBListener;
friend class SBBroadcaster;
diff --git a/lldb/include/lldb/API/SBFileSpec.h b/lldb/include/lldb/API/SBFileSpec.h
index fa8564df2b2..db76655795a 100644
--- a/lldb/include/lldb/API/SBFileSpec.h
+++ b/lldb/include/lldb/API/SBFileSpec.h
@@ -54,13 +54,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
friend class SBBlock;
friend class SBCompileUnit;
diff --git a/lldb/include/lldb/API/SBFrame.h b/lldb/include/lldb/API/SBFrame.h
index ae12452e6f3..67c4b60c20e 100644
--- a/lldb/include/lldb/API/SBFrame.h
+++ b/lldb/include/lldb/API/SBFrame.h
@@ -115,13 +115,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
friend class SBValue;
diff --git a/lldb/include/lldb/API/SBFunction.h b/lldb/include/lldb/API/SBFunction.h
index 4e7ae8081a4..643d5273471 100644
--- a/lldb/include/lldb/API/SBFunction.h
+++ b/lldb/include/lldb/API/SBFunction.h
@@ -42,13 +42,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
friend class SBFrame;
friend class SBSymbolContext;
diff --git a/lldb/include/lldb/API/SBInstruction.h b/lldb/include/lldb/API/SBInstruction.h
index 0461ce34e42..d64a4d3da0d 100644
--- a/lldb/include/lldb/API/SBInstruction.h
+++ b/lldb/include/lldb/API/SBInstruction.h
@@ -49,13 +49,6 @@ public:
//bool
//GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- //PyObject *
- //__repr__ ();
-
private:
//lldb_private::Disassembler::Instruction::SharedPtr m_opaque_sp;
diff --git a/lldb/include/lldb/API/SBLineEntry.h b/lldb/include/lldb/API/SBLineEntry.h
index 619884ed310..851e63f7ea7 100644
--- a/lldb/include/lldb/API/SBLineEntry.h
+++ b/lldb/include/lldb/API/SBLineEntry.h
@@ -61,13 +61,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
friend class SBCompileUnit;
friend class SBFrame;
diff --git a/lldb/include/lldb/API/SBModule.h b/lldb/include/lldb/API/SBModule.h
index 6231d13a319..835386d3129 100644
--- a/lldb/include/lldb/API/SBModule.h
+++ b/lldb/include/lldb/API/SBModule.h
@@ -52,13 +52,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
friend class SBSymbolContext;
friend class SBTarget;
diff --git a/lldb/include/lldb/API/SBProcess.h b/lldb/include/lldb/API/SBProcess.h
index 3543ee1e9e8..0e462ce3e92 100644
--- a/lldb/include/lldb/API/SBProcess.h
+++ b/lldb/include/lldb/API/SBProcess.h
@@ -155,13 +155,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It take no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
friend class SBAddress;
friend class SBBreakpoint;
diff --git a/lldb/include/lldb/API/SBSymbol.h b/lldb/include/lldb/API/SBSymbol.h
index a51cb424c62..9c056251421 100644
--- a/lldb/include/lldb/API/SBSymbol.h
+++ b/lldb/include/lldb/API/SBSymbol.h
@@ -43,13 +43,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
friend class SBSymbolContext;
diff --git a/lldb/include/lldb/API/SBSymbolContext.h b/lldb/include/lldb/API/SBSymbolContext.h
index 659683f9148..6744fa8ddab 100644
--- a/lldb/include/lldb/API/SBSymbolContext.h
+++ b/lldb/include/lldb/API/SBSymbolContext.h
@@ -44,6 +44,9 @@ public:
SBLineEntry GetLineEntry ();
SBSymbol GetSymbol ();
+ bool
+ GetDescription (lldb::SBStream &description);
+
protected:
friend class SBFrame;
friend class SBModule;
@@ -58,6 +61,9 @@ protected:
lldb_private::SymbolContext&
operator*();
+ lldb_private::SymbolContext&
+ ref();
+
const lldb_private::SymbolContext&
operator*() const;
@@ -71,16 +77,6 @@ protected:
void
SetSymbolContext (const lldb_private::SymbolContext *sc_ptr);
- bool
- GetDescription (lldb::SBStream &description);
-
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
private:
std::auto_ptr<lldb_private::SymbolContext> m_opaque_ap;
};
diff --git a/lldb/include/lldb/API/SBTarget.h b/lldb/include/lldb/API/SBTarget.h
index 1b4c09ab38c..1f9d0ce1b25 100644
--- a/lldb/include/lldb/API/SBTarget.h
+++ b/lldb/include/lldb/API/SBTarget.h
@@ -145,13 +145,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
friend class SBAddress;
friend class SBDebugger;
diff --git a/lldb/include/lldb/API/SBThread.h b/lldb/include/lldb/API/SBThread.h
index ead395ae529..bf2cc4f2e97 100644
--- a/lldb/include/lldb/API/SBThread.h
+++ b/lldb/include/lldb/API/SBThread.h
@@ -91,13 +91,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
friend class SBBreakpoint;
friend class SBBreakpointLocation;
diff --git a/lldb/include/lldb/API/SBType.h b/lldb/include/lldb/API/SBType.h
index c745989364b..b89aca92e51 100644
--- a/lldb/include/lldb/API/SBType.h
+++ b/lldb/include/lldb/API/SBType.h
@@ -57,13 +57,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It takes no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
void *m_ast;
void *m_type;
diff --git a/lldb/include/lldb/API/SBValue.h b/lldb/include/lldb/API/SBValue.h
index 78b4ea9bbf0..c247339ef5b 100644
--- a/lldb/include/lldb/API/SBValue.h
+++ b/lldb/include/lldb/API/SBValue.h
@@ -88,13 +88,6 @@ public:
bool
GetDescription (lldb::SBStream &description);
- // The following function gets called by Python when a user tries to print
- // an object of this class. It take no arguments and returns a
- // PyObject * representing a char * (and it must be named "__repr__");
-
- PyObject *
- __repr__ ();
-
protected:
friend class SBValueList;
friend class SBFrame;
OpenPOWER on IntegriCloud