]>
Commit | Line | Data |
---|---|---|
688903eb | 1 | /* Copyright (C) 1998-2018 Free Software Foundation, Inc. |
44338a35 UD |
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 | |
3214b89b AJ |
5 | modify it under the terms of the GNU Lesser General Public |
6 | License as published by the Free Software Foundation; either | |
7 | version 2.1 of the License, or (at your option) any later version. | |
44338a35 UD |
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 | |
3214b89b | 12 | Lesser General Public License for more details. |
44338a35 | 13 | |
3214b89b | 14 | You should have received a copy of the GNU Lesser General Public |
ab84e3ff PE |
15 | License along with the GNU C Library. If not, see |
16 | <http://www.gnu.org/licenses/>. */ | |
44338a35 UD |
17 | |
18 | #ifndef _SYS_USER_H | |
19 | #define _SYS_USER_H 1 | |
20 | ||
e8551fba UD |
21 | /* The whole purpose of this file is for GDB and GDB only. Don't read |
22 | too much into it. Don't use it for anything other than GDB unless | |
23 | you know what you are doing. */ | |
44338a35 | 24 | |
e8551fba | 25 | struct user_fpregs |
44338a35 UD |
26 | { |
27 | struct fp_reg | |
28 | { | |
29 | unsigned int sign1:1; | |
30 | unsigned int unused:15; | |
31 | unsigned int sign2:1; | |
32 | unsigned int exponent:14; | |
33 | unsigned int j:1; | |
34 | unsigned int mantissa1:31; | |
35 | unsigned int mantissa0:32; | |
36 | } fpregs[8]; | |
37 | unsigned int fpsr:32; | |
38 | unsigned int fpcr:32; | |
55784775 UD |
39 | unsigned char ftype[8]; |
40 | unsigned int init_flag; | |
44338a35 UD |
41 | }; |
42 | ||
e8551fba UD |
43 | struct user_regs |
44 | { | |
45 | unsigned long int uregs[18]; | |
46 | }; | |
47 | ||
44338a35 UD |
48 | struct user |
49 | { | |
e8551fba | 50 | struct user_regs regs; /* General registers */ |
44338a35 UD |
51 | int u_fpvalid; /* True if math co-processor being used. */ |
52 | ||
53 | unsigned long int u_tsize; /* Text segment size (pages). */ | |
54 | unsigned long int u_dsize; /* Data segment size (pages). */ | |
55 | unsigned long int u_ssize; /* Stack segment size (pages). */ | |
56 | ||
57 | unsigned long start_code; /* Starting virtual address of text. */ | |
58 | unsigned long start_stack; /* Starting virtual address of stack. */ | |
59 | ||
60 | long int signal; /* Signal that caused the core dump. */ | |
61 | int reserved; /* No longer used */ | |
e8551fba | 62 | struct user_regs *u_ar0; /* help gdb to find the general registers. */ |
44338a35 UD |
63 | |
64 | unsigned long magic; /* uniquely identify a core file */ | |
65 | char u_comm[32]; /* User command that was responsible */ | |
66 | int u_debugreg[8]; | |
e8551fba UD |
67 | struct user_fpregs u_fp; /* Floating point registers */ |
68 | struct user_fpregs *u_fp0; /* help gdb to find the FP registers. */ | |
44338a35 UD |
69 | }; |
70 | ||
71 | #endif /* sys/user.h */ |