mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user