Added more functionality to the public API to allow for better

symbolication. Also improved the SBInstruction API to allow
access to the instruction opcode name, mnemonics, comment and
instruction data.

Added the ability to edit SBLineEntry objects (change the file,
line and column), and also allow SBSymbolContext objects to be
modified (set module, comp unit, function, block, line entry
or symbol). 

The SymbolContext and SBSymbolContext can now generate inlined
call stack infomration for symbolication much easier using the
SymbolContext::GetParentInlinedFrameInfo(...) and 
SBSymbolContext::GetParentInlinedFrameInfo(...) methods.

llvm-svn: 140518
This commit is contained in:
Greg Clayton
2011-09-26 07:11:27 +00:00
parent 1748b37acd
commit 8f7180b11e
27 changed files with 774 additions and 79 deletions

View File

@@ -14,6 +14,7 @@
// Other libraries and framework includes
// Project includes
#include "lldb/Core/Stream.h"
#include "lldb/Host/Endian.h"
using namespace lldb;
using namespace lldb_private;
@@ -62,3 +63,19 @@ Opcode::Dump (Stream *s, uint32_t min_byte_width)
return bytes_written;
}
lldb::ByteOrder
Opcode::GetDataByteOrder () const
{
switch (m_type)
{
case Opcode::eTypeInvalid: break;
case Opcode::eType8:
case Opcode::eType16:
case Opcode::eType32:
case Opcode::eType64: return lldb::endian::InlHostByteOrder();
case Opcode::eTypeBytes:
break;
}
return eByteOrderInvalid;
}