]>
Commit | Line | Data |
---|---|---|
f908ea6c UD |
1 | /* Copyright (C) 1999 Free Software Foundation, Inc. |
2 | This file is part of the GNU C Library. | |
3 | ||
4 | The GNU C Library is free software; you can redistribute it and/or | |
5 | modify it under the terms of the GNU Library General Public License as | |
6 | published by the Free Software Foundation; either version 2 of the | |
7 | License, or (at your option) any later version. | |
8 | ||
9 | The GNU C Library is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 | Library General Public License for more details. | |
13 | ||
14 | You should have received a copy of the GNU Library General Public | |
15 | License along with the GNU C Library; see the file COPYING.LIB. If not, | |
16 | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
17 | Boston, MA 02111-1307, USA. */ | |
18 | ||
19 | #ifndef _SYS_USER_H | |
20 | #define _SYS_USER_H 1 | |
21 | ||
22 | /* The whole purpose of this file is for gdb/strace and gdb/strace | |
23 | only. Don't read too much into it. Don't use it for anything other | |
24 | than gdb/strace unless you know what you are doing. */ | |
25 | ||
26 | #include <asm/page.h> | |
27 | #include <asm/reg.h> | |
28 | ||
29 | struct user | |
30 | { | |
31 | unsigned long int regs[EF_SIZE / 8 + 32]; /* integer and fp regs */ | |
32 | size_t u_tsize; /* text size (pages) */ | |
33 | size_t u_dsize; /* data size (pages) */ | |
34 | size_t u_ssize; /* stack size (pages) */ | |
35 | unsigned long int start_code; /* text starting address */ | |
36 | unsigned long int start_data; /* data starting address */ | |
37 | unsigned long int start_stack; /* stack starting address */ | |
38 | long int signal; /* signal causing core dump */ | |
39 | struct regs *u_ar0; /* help gdb find registers */ | |
40 | unsigned long int magic; /* identifies a core file */ | |
41 | char u_comm[32]; /* user command name */ | |
42 | }; | |
43 | ||
44 | #define NBPG PAGE_SIZE | |
45 | #define UPAGES 1 | |
46 | #define HOST_TEXT_START_ADDR (u.start_code) | |
47 | #define HOST_DATA_START_ADDR (u.start_data) | |
48 | #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) | |
49 | ||
50 | #endif /* sys/user.h */ |