Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | /* Copyright (C) 1998-2024 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 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. |
| 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 | Lesser General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with the GNU C Library. If not, see |
| 16 | <https://www.gnu.org/licenses/>. */ |
| 17 | |
| 18 | #ifndef _SYS_USER_H |
| 19 | #define _SYS_USER_H 1 |
| 20 | |
| 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. */ |
| 24 | |
| 25 | struct user_fpregs |
| 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; |
| 39 | unsigned char ftype[8]; |
| 40 | unsigned int init_flag; |
| 41 | }; |
| 42 | |
| 43 | struct user_regs |
| 44 | { |
| 45 | unsigned long int uregs[18]; |
| 46 | }; |
| 47 | |
| 48 | struct user |
| 49 | { |
| 50 | struct user_regs regs; /* General registers */ |
| 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 */ |
| 62 | struct user_regs *u_ar0; /* help gdb to find the general registers. */ |
| 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]; |
| 67 | struct user_fpregs u_fp; /* Floating point registers */ |
| 68 | struct user_fpregs *u_fp0; /* help gdb to find the FP registers. */ |
| 69 | }; |
| 70 | |
| 71 | #endif /* sys/user.h */ |
| 72 |
Warning: This file is not a C or C++ file. It does not have highlighting.
