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 _MAL_DEBUGGER_H |
10 | #define _MAL_DEBUGGER_H |
11 | |
12 | #include "mal.h" |
13 | #include "mal_scenario.h" |
14 | #include "mal_client.h" |
15 | |
16 | #define MAL_DEBUGGER /* debugger is active */ |
17 | |
18 | #define MAXBREAKS 32 |
19 | |
20 | mal_export void mdbDump(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci); |
21 | mal_export void printStack(stream *f, MalBlkPtr mb, MalStkPtr s); |
22 | |
23 | mal_export void mdbSetBreakRequest(Client cntxt, MalBlkPtr mb, str request, char cmd); |
24 | mal_export str runMALDebugger(Client cntxt, MalBlkPtr mb); |
25 | |
26 | #endif /* _MAL_DEBUGGER_h */ |
27 | |