1 | /* |
2 | * This Source Code Form is subject to the terms of the Mozilla Public |
3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
5 | * |
6 | * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. |
7 | */ |
8 | |
9 | #ifndef _MDB_H |
10 | #define _MDB_H |
11 | #include "gdk.h" |
12 | #include "mutils.h" |
13 | #include <time.h> |
14 | #include <sys/types.h> |
15 | #ifdef HAVE_DIRENT_H |
16 | #include <dirent.h> |
17 | #endif |
18 | #include "mal_resolve.h" |
19 | #include "mal_linker.h" |
20 | #include "mal_client.h" |
21 | #include "mal_exception.h" |
22 | #include "mal_debugger.h" |
23 | #include "mal_interpreter.h" |
24 | #include "mal_namespace.h" |
25 | |
26 | mal_export str MDBstart(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
27 | mal_export str MDBstartFactory(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
28 | mal_export str MDBstop(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
29 | mal_export str MDBinspect(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
30 | mal_export str CMDmodules(bat *bid); |
31 | mal_export str MDBsetVMsize(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
32 | mal_export str MDBgetVMsize(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
33 | mal_export str MDBsetTrace(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
34 | mal_export str MDBsetVarTrace(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
35 | mal_export str MDBgetDebugFlags(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
36 | mal_export str MDBgetDebug(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
37 | mal_export str MDBsetDebug(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
38 | mal_export str MDBsetDebugStr(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
39 | mal_export str MDBgetDebugStr(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
40 | mal_export str MDBsetCatch(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
41 | mal_export str MDBgetExceptionVariable(str *ret, str *msg); |
42 | mal_export str MDBgetExceptionReason(str *ret, str *msg); |
43 | mal_export str MDBgetExceptionContext(str *ret, str *msg); |
44 | mal_export str MDBlist(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
45 | mal_export str MDBlistMapi(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
46 | mal_export str MDBlist3(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
47 | mal_export str MDBlistDetail(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
48 | mal_export str MDBlist3Detail(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
49 | mal_export str MDBvar(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
50 | mal_export str MDBvar3(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); |
51 | mal_export str MDBStkDepth(Client cntxt, MalBlkPtr mb, MalStkPtr s, InstrPtr p); |
52 | mal_export str MDBgetStackFrameN(Client cntxt, MalBlkPtr m, MalStkPtr s, InstrPtr p); |
53 | mal_export str MDBgetStackFrame(Client cntxt, MalBlkPtr m, MalStkPtr s, InstrPtr p); |
54 | mal_export str MDBStkTrace(Client cntxt, MalBlkPtr m, MalStkPtr s, InstrPtr p); |
55 | mal_export str MDBgetDefinition(Client cntxt, MalBlkPtr m, MalStkPtr stk, InstrPtr p); |
56 | mal_export str MDBdump(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci); |
57 | |
58 | mal_export str MDBdummy(int *ret); |
59 | #endif /* _MDB_H */ |
60 | |