The MIPS core file doesn't contain any Architecture revision, OS and ABI information. Hence we need to relied on executable to get that information. This patch also add core file test cases for MIPS.
Patch By:- Bhushan
Differential D31280
[LLDB][MIPS] Fix Core file Architecture and OS information nitesh.jain on Mar 23 2017, 12:48 AM. Authored by
Details The MIPS core file doesn't contain any Architecture revision, OS and ABI information. Hence we need to relied on executable to get that information. This patch also add core file test cases for MIPS. Patch By:- Bhushan
Diff Detail
Event Timeline
Comment Actions BTW, thank you for adding the test. It's not obvious from the patch: how big are the core files?
Comment Actions Thank you for that. I just have one more concern. I see two places where you are copying the archspec from core file to the target and then back again. I must be missing something, because that looks completely unnecessary at first sight. What is the reason behind that? Why can't we leave ProcessElfCore::GetArchitecture as is ?
Comment Actions The core architecture doesn't have any revision, os and ABI information. Hence we need to relied on target architecture. Comment Actions Ah, that explains it, thanks. Let's give Greg a chance to comment, but otherwise I am fine with this. Comment Actions Let me know what you think about the MergeFrom comment. I am generally ok with this, but just wanted to check in case the merge made any sense in this patch somewhere.
|