summaryrefslogtreecommitdiff
path: root/src/lj_gdbjit.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_gdbjit.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lj_gdbjit.h b/src/lj_gdbjit.h
new file mode 100644
index 00000000..2221948f
--- /dev/null
+++ b/src/lj_gdbjit.h
@@ -0,0 +1,22 @@
1/*
2** Client for the GDB JIT API.
3** Copyright (C) 2005-2009 Mike Pall. See Copyright Notice in luajit.h
4*/
5
6#ifndef _LJ_GDBJIT_H
7#define _LJ_GDBJIT_H
8
9#include "lj_obj.h"
10#include "lj_jit.h"
11
12#if LJ_HASJIT && defined(LUAJIT_USE_GDBJIT)
13
14LJ_FUNC void lj_gdbjit_addtrace(jit_State *J, Trace *T, TraceNo traceno);
15LJ_FUNC void lj_gdbjit_deltrace(jit_State *J, Trace *T);
16
17#else
18#define lj_gdbjit_addtrace(J, T, tn) UNUSED(T)
19#define lj_gdbjit_deltrace(J, T) UNUSED(T)
20#endif
21
22#endif