llvm-project/lldb/source/Plugins/Process/elf-core
Djordje Todorovic 9abd8c1a4c [elf-core] Improve reading memory from core file
This patch tries to improve memory-read from core files
(in order to improve disassembly functionality).

I am using RHEL 7.7 (linux kernel 3.10) and for a lot of cases,
I was not able to disassemble some functions from backtrace when
debugging crashes from core files. It outputs some dummy code.

The cause of the problem was the fact we are returning all the zeros
from ProcessElfCore::ReadMemory() that is being called within
Disassembler::ParseInstructions() and it disassembles some dummy
opcodes from the buffer returned. Therefore, we are removing zero
bytes filling (padding) completely.

Differential Revision: https://reviews.llvm.org/D93939
2021-02-08 00:14:32 -08:00
..
CMakeLists.txt
ProcessElfCore.cpp [elf-core] Improve reading memory from core file 2021-02-08 00:14:32 -08:00
ProcessElfCore.h [ThreadPlan] fix exec on Linux 2021-01-25 11:30:48 -08:00
RegisterContextPOSIXCore_arm.cpp Move NativeRegisterContextLinux/RegisterContextPOSIX*_arm to RegisterInfoAndSetInterface 2020-09-07 09:06:46 +05:00
RegisterContextPOSIXCore_arm.h Move NativeRegisterContextLinux/RegisterContextPOSIX*_arm to RegisterInfoAndSetInterface 2020-09-07 09:06:46 +05:00
RegisterContextPOSIXCore_arm64.cpp [LLDB] Fix SVE reginfo for sequential offset in g packet 2020-11-17 17:18:34 +05:00
RegisterContextPOSIXCore_arm64.h Revert "Revert "AArch64 SVE register infos and core file support"" 2020-07-21 14:31:47 +05:00
RegisterContextPOSIXCore_mips64.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
RegisterContextPOSIXCore_mips64.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
RegisterContextPOSIXCore_powerpc.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
RegisterContextPOSIXCore_powerpc.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
RegisterContextPOSIXCore_ppc64le.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
RegisterContextPOSIXCore_ppc64le.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
RegisterContextPOSIXCore_s390x.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
RegisterContextPOSIXCore_s390x.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
RegisterContextPOSIXCore_x86_64.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
RegisterContextPOSIXCore_x86_64.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
RegisterUtilities.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
RegisterUtilities.h Revert "Revert "AArch64 SVE register infos and core file support"" 2020-07-21 14:31:47 +05:00
ThreadElfCore.cpp Move NativeRegisterContextLinux/RegisterContextPOSIX*_arm to RegisterInfoAndSetInterface 2020-09-07 09:06:46 +05:00
ThreadElfCore.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00