teak-llvm/lldb/packages/Python/lldbsuite/test/functionalities/jitloader_gdb/simple.c
Yury Delendik bc6b225d42 Adds property to force enabling of GDB JIT loader for MacOS
Summary:
Based on https://gist.github.com/thlorenz/30bf0a3f67b1d97b2945#patching-and-rebuilding

The functionality was disabled at 521c2278ab

Reviewers: jingham

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D57689

llvm-svn: 355402
2019-03-05 14:23:53 +00:00

21 lines
296 B
C

#include <inttypes.h>
// GDB JIT interface stub
struct
{
uint32_t version;
uint32_t action_flag;
void* relevant_entry;
void* first_entry;
} __jit_debug_descriptor = { 1, 0, 0, 0 };
void __jit_debug_register_code()
{
}
// end GDB JIT interface stub
int main()
{
return 0;
}