llvm-project/lldb/source/Plugins/Process
Greg Clayton 3deb0e7ca5 Revert the ELF core file support until a few things can be worked out:
RegisterContextCoreLinux_x86_64 inherits from RegisterContextLinux_x86_64 which inherits from RegisterContext_x86_64 which uses has:

   ProcessMonitor &GetMonitor();

This register context used by the core file can't use this since the process plug-in will be ProcessElfCore and the implementation of GetMonitor() does:

ProcessMonitor &
RegisterContext_x86_64::GetMonitor()
{
   ProcessSP base = CalculateProcess();
   ProcessPOSIX *process = static_cast<ProcessPOSIX*>(base.get());
   return process->GetMonitor();
}

ProcessELFCore doesn't, nor should it inherit from ProcessPOSIX and any call to GetMonitor() will fail for ELF core files.

Suggested cleanups:
- Make a register context class that is a base class that doesn't have any reading smarts, then make one that uses ProcessPOSIX and the has the GetMonitor() call, and one that gets its data straight from the core file. 

llvm-svn: 186223
2013-07-12 22:52:22 +00:00
..
FreeBSD Stop process monitor from ProcessPOSIX::Finalize 2013-07-10 21:57:27 +00:00
Linux Revert the ELF core file support until a few things can be worked out: 2013-07-12 22:52:22 +00:00
MacOSX-Kernel Fixed an issue introduced with my last fix where the command and sequence ID extraction were moved causing them to be reversed. 2013-07-10 17:58:19 +00:00
POSIX Revert the ELF core file support until a few things can be worked out: 2013-07-12 22:52:22 +00:00
Utility Huge change to clean up types. 2013-07-11 22:46:58 +00:00
elf-core Revert the ELF core file support until a few things can be worked out: 2013-07-12 22:52:22 +00:00
gdb-remote <rdar://problem/14182286> 2013-06-24 18:15:05 +00:00
mach-core Add a more clear explanation of what is missing for core files with no LC_THREAD load commands. 2013-06-04 21:48:36 +00:00
CMakeLists.txt Revert the ELF core file support until a few things can be worked out: 2013-07-12 22:52:22 +00:00