Allow using external __jit_debug_register_code().

Fuinction defined in DSO may work improperly.
This commit is contained in:
Dmitry Stogov 2022-09-29 01:28:30 +03:00
parent 494c9225a9
commit c3e6a71dda
2 changed files with 3 additions and 1 deletions

View File

@ -498,7 +498,7 @@ ir_gdbjit_descriptor __jit_debug_descriptor = {
1, IR_GDBJIT_NOACTION, NULL, NULL
};
#if 1
#ifdef IR_EXTERNAL_GDB_ENTRY
__jit_debug_register_code(void);
#else
IR_NEVER_INLINE void __jit_debug_register_code(void)

View File

@ -16,4 +16,6 @@
# define ir_mem_free efree
#endif
#define IR_EXTERNAL_GDB_ENTRY
#endif /* IR_PHP_H */