-
Notifications
You must be signed in to change notification settings - Fork 0
/
gdb.h
76 lines (63 loc) · 2.08 KB
/
gdb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
Copyright (c) 2001 by William A. Gatliff
All rights reserved. [email protected]
See the file COPYING for details.
This file is provided "as-is", and without any express
or implied warranties, including, without limitation,
the implied warranties of merchantability and fitness
for a particular purpose.
The author welcomes feedback regarding this file.
*/
/* $Id: gdb.h,v 1.2 2002/03/20 02:11:55 bgat Exp $ */
#if !defined(GDB_H_INCLUDED)
#define GDB_H_INCLUDED
/* platform-specific stuff, in <target>[-<platform>].c */
int gdb_putc (int c);
int gdb_getc (void);
int gdb_peek_register_file (int id, long *val);
int gdb_poke_register_file (int id, long val);
void gdb_step (long addr);
void gdb_continue (long addr);
void gdb_kill (void);
void gdb_detach (void);
void gdb_return_from_exception (void);
void gdb_flush_cache (void *start, int len);
void gdb_monitor_onentry (void);
void gdb_monitor_onexit (void);
void gdb_startup (void);
/* platform-neutral stuff, in gdb.c */
void gdb_console_output (int len, const char *buf);
void gdb_monitor (int sigval);
void gdb_handle_exception (int sigval);
/* gdb signal values */
#define GDB_SIGHUP 1
#define GDB_SIGINT 2
#define GDB_SIGQUIT 3
#define GDB_SIGILL 4
#define GDB_SIGTRAP 5
#define GDB_SIGABRT 6
#define GDB_SIGIOT 6
#define GDB_SIGBUS 7
#define GDB_SIGFPE 8
#define GDB_SIGKILL 9
#define GDB_SIGUSR1 10
#define GDB_SIGSEGV 11
#define GDB_SIGUSR2 12
#define GDB_SIGPIPE 13
#define GDB_SIGALRM 14
#define GDB_SIGTERM 15
#define GDB_SIGSTKFLT 16
#define GDB_SIGCHLD 17
#define GDB_SIGCONT 18
#define GDB_SIGSTOP 19
#define GDB_SIGTSTP 20
#define GDB_SIGTTIN 21
#define GDB_SIGTTOU 22
#define GDB_SIGURG 23
#define GDB_SIGXCPU 24
#define GDB_SIGXFSZ 25
#define GDB_SIGVTALRM 26
#define GDB_SIGPROF 27
#define GDB_SIGWINCH 28
#define GDB_SIGIO 29
#endif /* GDB_H_INCLUDED */