2 |
#define DEBUGGER_H |
#define DEBUGGER_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2004-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2004-2007 Anders Gavare. All rights reserved. |
6 |
* |
* |
7 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
8 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: debugger.h,v 1.5 2006/06/24 19:52:28 debug Exp $ |
* $Id: debugger.h,v 1.10 2007/06/28 14:58:38 debug Exp $ |
32 |
* |
* |
33 |
* See src/debugger/debugger.c. |
* See src/debugger/debugger.c. |
34 |
*/ |
*/ |
35 |
|
|
36 |
|
#include "misc.h" |
37 |
|
|
38 |
struct emul; |
struct emul; |
39 |
struct machine; |
struct machine; |
40 |
|
|
43 |
void debugger_execute_cmd(char *cmd, int cmd_len); |
void debugger_execute_cmd(char *cmd, int cmd_len); |
44 |
void debugger(void); |
void debugger(void); |
45 |
void debugger_reset(void); |
void debugger_reset(void); |
46 |
void debugger_init(struct emul **emuls, int n_emuls); |
void debugger_init(struct emul *emul); |
47 |
|
|
48 |
/* single_step values: */ |
/* single_step values: */ |
49 |
#define NOT_SINGLE_STEPPING 0 |
#define NOT_SINGLE_STEPPING 0 |
50 |
#define ENTER_SINGLE_STEPPING 1 |
#define ENTER_SINGLE_STEPPING 1 |
51 |
#define SINGLE_STEPPING 2 |
#define SINGLE_STEPPING 2 |
52 |
|
|
53 |
|
/* debugger_expr.c: */ |
54 |
|
#define PARSE_NOMATCH 0 |
55 |
|
#define PARSE_MULTIPLE 1 |
56 |
|
#define PARSE_SETTINGS 2 |
57 |
|
#define PARSE_NUMBER 3 |
58 |
|
#define PARSE_SYMBOL 4 |
59 |
|
|
60 |
|
int debugger_parse_expression(struct machine *m, char *expr, int writeflag, |
61 |
|
uint64_t *valuep); |
62 |
|
|
63 |
#endif /* DEBUGGER_H */ |
#endif /* DEBUGGER_H */ |