Skip to content

Commit

Permalink
Use external __jit_debug_descriptor when IR_EXTERNAL_GDB_ENTRY is def…
Browse files Browse the repository at this point in the history
…ined (#93)
  • Loading branch information
arnaud-lb authored Oct 7, 2024
1 parent 84a4b42 commit eff4b41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ir_gdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,13 +500,14 @@ typedef struct _ir_gdbjit_descriptor {
struct _ir_gdbjit_code_entry *first_entry;
} ir_gdbjit_descriptor;

#ifdef IR_EXTERNAL_GDB_ENTRY
extern ir_gdbjit_descriptor __jit_debug_descriptor;
void __jit_debug_register_code(void);
#else
ir_gdbjit_descriptor __jit_debug_descriptor = {
1, IR_GDBJIT_NOACTION, NULL, NULL
};

#ifdef IR_EXTERNAL_GDB_ENTRY
void __jit_debug_register_code(void);
#else
IR_NEVER_INLINE void __jit_debug_register_code(void)
{
__asm__ __volatile__("");
Expand Down

0 comments on commit eff4b41

Please sign in to comment.