diff options
Diffstat (limited to 'lldb/source/Plugins/JITLoader')
-rw-r--r-- | lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp | 10 | ||||
-rw-r--r-- | lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.h | 6 |
2 files changed, 9 insertions, 7 deletions
diff --git a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp index fff44123539f..cbeef600ba9b 100644 --- a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp +++ b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp @@ -1,4 +1,4 @@ -//===-- JITLoaderGDB.cpp ----------------------------------------*- C++ -*-===// +//===-- JITLoaderGDB.cpp --------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -32,6 +32,8 @@ using namespace lldb; using namespace lldb_private; +LLDB_PLUGIN_DEFINE(JITLoaderGDB) + // Debug Interface Structures enum jit_actions_t { JIT_NOACTION = 0, JIT_REGISTER_FN, JIT_UNREGISTER_FN }; @@ -132,9 +134,9 @@ bool ReadJITEntry(const addr_t from_addr, Process *process, DataExtractor extractor(data.GetBytes(), data.GetByteSize(), process->GetByteOrder(), sizeof(ptr_t)); lldb::offset_t offset = 0; - entry->next_entry = extractor.GetPointer(&offset); - entry->prev_entry = extractor.GetPointer(&offset); - entry->symfile_addr = extractor.GetPointer(&offset); + entry->next_entry = extractor.GetAddress(&offset); + entry->prev_entry = extractor.GetAddress(&offset); + entry->symfile_addr = extractor.GetAddress(&offset); offset = llvm::alignTo(offset, uint64_align_bytes); entry->symfile_size = extractor.GetU64(&offset); diff --git a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.h b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.h index 2a2537c3edd4..42377f435293 100644 --- a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.h +++ b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef liblldb_JITLoaderGDB_h_ -#define liblldb_JITLoaderGDB_h_ +#ifndef LLDB_SOURCE_PLUGINS_JITLOADER_GDB_JITLOADERGDB_H +#define LLDB_SOURCE_PLUGINS_JITLOADER_GDB_JITLOADERGDB_H #include <map> @@ -77,4 +77,4 @@ private: lldb::addr_t m_jit_descriptor_addr; }; -#endif // liblldb_JITLoaderGDB_h_ +#endif // LLDB_SOURCE_PLUGINS_JITLOADER_GDB_JITLOADERGDB_H |