[quickjs] Remove CONFIG_DEBUGGER for now

I will add it back later once the debugger is done
This commit is contained in:
John Doty 2023-09-23 09:10:48 -05:00
parent 5c08cd4acc
commit 3570c7a55b

View file

@ -109,8 +109,6 @@
/* test the GC by forcing it before each object allocation */ /* test the GC by forcing it before each object allocation */
//#define FORCE_GC_AT_MALLOC //#define FORCE_GC_AT_MALLOC
#define CONFIG_DEBUGGER
#ifdef CONFIG_ATOMICS #ifdef CONFIG_ATOMICS
#include <pthread.h> #include <pthread.h>
#include <stdatomic.h> #include <stdatomic.h>
@ -312,13 +310,11 @@ struct JSRuntime {
#endif #endif
void *user_opaque; void *user_opaque;
#ifdef CONFIG_DEBUGGER
struct list_head breakpoint_list; struct list_head breakpoint_list;
JSDebugCallbackFunc *debug_callback; JSDebugCallbackFunc *debug_callback;
void *debug_opaque; void *debug_opaque;
int stepping_pc; int stepping_pc;
uint8_t stepping_byte; uint8_t stepping_byte;
#endif
}; };
struct JSClass { struct JSClass {
@ -1664,9 +1660,7 @@ JSRuntime *JS_NewRuntime2(const JSMallocFunctions *mf, void *opaque)
#endif #endif
init_list_head(&rt->job_list); init_list_head(&rt->job_list);
#ifdef CONFIG_DEBUGGER
init_list_head(&rt->breakpoint_list); init_list_head(&rt->breakpoint_list);
#endif
if (JS_InitAtoms(rt)) if (JS_InitAtoms(rt))
goto fail; goto fail;
@ -54321,7 +54315,6 @@ JSBreakpoint *JS_SetBreakpoint(JSContext *ctx, JSAtom file, int line)
} }
} }
} }
return NULL; return NULL;
} }