Guest User

Untitled

a guest
May 2nd, 2023
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.09 KB | None | 0 0
  1. diff --git "a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp" "b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp"
  2. index 7b810c0fee43..f6d45685e4b7 100644
  3. --- "a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp"
  4. +++ "b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp"
  5. @@ -195,7 +195,17 @@ void JITLoaderGDB::SetJITBreakpoint(lldb_private::ModuleList &module_list) {
  6.      return;
  7.  
  8.    m_jit_descriptor_addr = GetSymbolAddress(
  9. -      module_list, ConstString("__jit_debug_descriptor"), eSymbolTypeData);
  10. +      module_list, ConstString("__jit_debug_descriptor"),
  11. +      
  12. +#if defined WIN32 || defined WINDOWS || defined WIN64
  13. +                       // ADV_SW_PATCH: Windows implementation not indicating symbol is Data
  14. +                       // so we use Any as workaround for the time being.
  15. +                       eSymbolTypeAny);
  16. +#else
  17. +                       eSymbolTypeData);
  18. +#endif      
  19. +      
  20. +      
  21.    if (m_jit_descriptor_addr == LLDB_INVALID_ADDRESS) {
  22.      LLDB_LOGF(log, "JITLoaderGDB::%s failed to find JIT descriptor address",
  23.                __FUNCTION__);
  24.  
Advertisement
Add Comment
Please, Sign In to add comment