aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorSagar Thakur <sagar.thakur@imgtec.com>2015-10-01 15:05:31 +0000
committerSagar Thakur <sagar.thakur@imgtec.com>2015-10-01 15:05:31 +0000
commitb8862c010743f1992f6a4a903502439224193a81 (patch)
treeb07cb3d460a528a41d2a239ea77d90b285a47213 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent250c892ac163958daf7b5536a3d5eeefd48efe31 (diff)
downloadllvm-b8862c010743f1992f6a4a903502439224193a81.zip
llvm-b8862c010743f1992f6a4a903502439224193a81.tar.gz
llvm-b8862c010743f1992f6a4a903502439224193a81.tar.bz2
[LLDB][MIPS] Fix gp register value for o32 applications on 64-bit target
GP registers for o32 applications were always giving zero value because SetType() on the RegisterValue was causing the accessor functions to pickup the value from m_scalar of RegisterValue which is zero. In this patch byte size and byte order of register value is set at the time of setting the value of the register. llvm-svn: 249020
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index f9f0358..250db12 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -2206,6 +2206,8 @@ ObjectFileELF::ParseSymbols (Symtab *symtab,
mangled.SetDemangledName( ConstString((demangled_name + suffix).str()) );
}
+ printf("Symbol: name=%s, Type:%d value=%08lx\n", symbol_name, symbol_type, symbol.st_value);
+
Symbol dc_symbol(
i + start_id, // ID is the original symbol table index.
mangled,