gdb-3.1
[binutils-gdb.git] / gdb / gdbcore.h
1 /* Machine independent variables that describe the core file under GDB.
2 Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
3
4 GDB is distributed in the hope that it will be useful, but WITHOUT ANY
5 WARRANTY. No author or distributor accepts responsibility to anyone
6 for the consequences of using it or for whether it serves any
7 particular purpose or works at all, unless he says so in writing.
8 Refer to the GDB General Public License for full details.
9
10 Everyone is granted permission to copy, modify and redistribute GDB,
11 but only under the conditions described in the GDB General Public
12 License. A copy of this license is supposed to have been given to you
13 along with GDB so you can know your rights and responsibilities. It
14 should be in a file named COPYING. Among other things, the copyright
15 notice and this notice must be preserved on all copies.
16
17 In other words, go ahead and share GDB, but don't try to stop
18 anyone else from sharing it farther. Help stamp out software hoarding!
19 */
20
21 /* File names of core file and executable file. */
22
23 extern char *corefile;
24 extern char *execfile;
25
26 /* Descriptors on which core file and executable file are open.
27 Note that the execchan is closed when an inferior is created
28 and reopened if the inferior dies or is killed. */
29
30 extern int corechan;
31 extern int execchan;
32
33 /* Last modification time of executable file.
34 Also used in source.c to compare against mtime of a source file. */
35
36 extern int exec_mtime;
37
38 /* Virtual addresses of bounds of the two areas of memory in the core file. */
39
40 extern CORE_ADDR data_start;
41 extern CORE_ADDR data_end;
42 extern CORE_ADDR stack_start;
43 extern CORE_ADDR stack_end;
44
45 /* Virtual addresses of bounds of two areas of memory in the exec file.
46 Note that the data area in the exec file is used only when there is no core file. */
47
48 extern CORE_ADDR text_start;
49 extern CORE_ADDR text_end;
50
51 extern CORE_ADDR exec_data_start;
52 extern CORE_ADDR exec_data_end;
53
54 /* Address in executable file of start of text area data. */
55
56 extern int text_offset;
57
58 /* Address in executable file of start of data area data. */
59
60 extern int exec_data_offset;
61
62 /* Address in core file of start of data area data. */
63
64 extern int data_offset;
65
66 /* Address in core file of start of stack area data. */
67
68 extern int stack_offset;