diff options
author | Preston Gurd <preston.gurd@intel.com> | 2012-04-16 22:12:58 +0000 |
---|---|---|
committer | Preston Gurd <preston.gurd@intel.com> | 2012-04-16 22:12:58 +0000 |
commit | cc31af932857df36b2bda2b7432f928ab8bb2934 (patch) | |
tree | bcb39e5acf56121813d33a866ee4fb136f0e9382 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 1f5580b6f33f83f52b3daced4967e1d2dc596f16 (diff) | |
download | bcm5719-llvm-cc31af932857df36b2bda2b7432f928ab8bb2934.tar.gz bcm5719-llvm-cc31af932857df36b2bda2b7432f928ab8bb2934.zip |
Implement GDB integration for source level debugging of code JITed using
the MCJIT execution engine.
The GDB JIT debugging integration support works by registering a loaded
object image with a pre-defined function that GDB will monitor if GDB
is attached. GDB integration support is implemented for ELF only at this
time. This integration requires GDB version 7.0 or newer.
Patch by Andy Kaylor!
llvm-svn: 154868
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/ELFObjectFile.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp index ab5f8108af1..663b84ec8b1 100644 --- a/llvm/lib/Object/ELFObjectFile.cpp +++ b/llvm/lib/Object/ELFObjectFile.cpp @@ -17,16 +17,6 @@ namespace llvm { using namespace object; -namespace { - std::pair<unsigned char, unsigned char> - getElfArchType(MemoryBuffer *Object) { - if (Object->getBufferSize() < ELF::EI_NIDENT) - return std::make_pair((uint8_t)ELF::ELFCLASSNONE,(uint8_t)ELF::ELFDATANONE); - return std::make_pair( (uint8_t)Object->getBufferStart()[ELF::EI_CLASS] - , (uint8_t)Object->getBufferStart()[ELF::EI_DATA]); - } -} - // Creates an in-memory object-file by default: createELFObjectFile(Buffer) ObjectFile *ObjectFile::createELFObjectFile(MemoryBuffer *Object) { std::pair<unsigned char, unsigned char> Ident = getElfArchType(Object); |