diff options
author | Pavel Labath <pavel@labath.sk> | 2019-01-10 09:32:31 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-01-10 09:32:31 +0000 |
commit | d194e2eb244b973e19717690ee320237c5fd1915 (patch) | |
tree | 5c9c2aa6c190c26a5e66b6b6ebda7aa06e65f091 /lldb/tools | |
parent | 9e0697f245e416ad031dc1043e57778ab3899224 (diff) |
Implement ObjectFileELF::GetBaseAddress
Summary:
The concept of a base address was already present in the implementation
(it's needed for computing section load addresses properly), but it was
never exposed through this function. This fixes that.
Diffstat (limited to 'lldb/tools')
-rw-r--r-- | lldb/tools/lldb-test/lldb-test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/tools/lldb-test/lldb-test.cpp b/lldb/tools/lldb-test/lldb-test.cpp index 4e2ab504c2d..eb7cc6ece42 100644 --- a/lldb/tools/lldb-test/lldb-test.cpp +++ b/lldb/tools/lldb-test/lldb-test.cpp @@ -785,6 +785,8 @@ static int dumpObjectFiles(Debugger &Dbg) { Printer.formatLine("Stripped: {0}", ObjectPtr->IsStripped()); Printer.formatLine("Type: {0}", ObjectPtr->GetType()); Printer.formatLine("Strata: {0}", ObjectPtr->GetStrata()); + Printer.formatLine("Base VM address: {0:x}", + ObjectPtr->GetBaseAddress().GetFileAddress()); dumpSectionList(Printer, *Sections, /*is_subsection*/ false); |