diff options
author | Mohit K. Bhakkad <mohit.bhakkad@gmail.com> | 2015-09-09 10:32:20 +0000 |
---|---|---|
committer | Mohit K. Bhakkad <mohit.bhakkad@gmail.com> | 2015-09-09 10:32:20 +0000 |
commit | 9514a383c871d790930a30b2ed69df61f54f3bf8 (patch) | |
tree | 8995262fddbfd10949e81175231c8bb179d49d95 /lldb/source/Core/ArchSpec.cpp | |
parent | 025103cc61efded742b95e0a3b1e3d2f75b0c965 (diff) | |
download | bcm5719-llvm-9514a383c871d790930a30b2ed69df61f54f3bf8.tar.gz bcm5719-llvm-9514a383c871d790930a30b2ed69df61f54f3bf8.zip |
[LLDB][MIPS] Added support for the debugging of N32/O32 applications on MIPS64 target.
Patch by Nitesh Jain
Reviewers: clayborg, ovyalov.
Subscribers: jaydeep, bhushan, mohit.bhakkad, sagar, nitesh.jain, lldb-commits.
Differential Revision: http://reviews.llvm.org/D12671
llvm-svn: 247134
Diffstat (limited to 'lldb/source/Core/ArchSpec.cpp')
-rw-r--r-- | lldb/source/Core/ArchSpec.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/source/Core/ArchSpec.cpp b/lldb/source/Core/ArchSpec.cpp index 78624b52eaf..39dd25b41fa 100644 --- a/lldb/source/Core/ArchSpec.cpp +++ b/lldb/source/Core/ArchSpec.cpp @@ -602,7 +602,15 @@ ArchSpec::GetAddressByteSize() const { const CoreDefinition *core_def = FindCoreDefinition (m_core); if (core_def) - return core_def->addr_byte_size; + { + if (core_def->machine == llvm::Triple::mips64 || core_def->machine == llvm::Triple::mips64el) + { + // For N32/O32 applications Address size is 4 bytes. + if (m_flags & (eMIPSABI_N32 | eMIPSABI_O32)) + return 4; + } + return core_def->addr_byte_size; + } return 0; } |