Back to index

glibc  2.9
reg.h
Go to the documentation of this file.
00001 /* Copyright (C) 1998 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 #ifndef _SYS_REG_H
00020 #define _SYS_REG_H   1
00021 
00022 /* Index into an array of 4 byte integers returned from ptrace for
00023    location of the users' stored general purpose registers. */
00024 
00025 enum
00026 {
00027   PT_D1 = 0,
00028 #define PT_D1 PT_D1
00029   PT_D2 = 1,
00030 #define PT_D2 PT_D2
00031   PT_D3 = 2,
00032 #define PT_D3 PT_D3
00033   PT_D4 = 3,
00034 #define PT_D4 PT_D4
00035   PT_D5 = 4,
00036 #define PT_D5 PT_D5
00037   PT_D6 = 5,
00038 #define PT_D6 PT_D6
00039   PT_D7 = 6,
00040 #define PT_D7 PT_D7
00041   PT_A0 = 7,
00042 #define PT_A0 PT_A0
00043   PT_A1 = 8,
00044 #define PT_A1 PT_A1
00045   PT_A2 = 9,
00046 #define PT_A2 PT_A2
00047   PT_A3 = 10,
00048 #define PT_A3 PT_A3
00049   PT_A4 = 11,
00050 #define PT_A4 PT_A4
00051   PT_A5 = 12,
00052 #define PT_A5 PT_A5
00053   PT_A6 = 13,
00054 #define PT_A6 PT_A6
00055   PT_D0 = 14,
00056 #define PT_D0 PT_D0
00057   PT_USP = 15,
00058 #define PT_USP PT_USP
00059   PT_ORIG_D0 = 16,
00060 #define PT_ORIG_D0 PT_ORIG_D0
00061   PT_SR = 17,
00062 #define PT_SR PT_SR
00063   PT_PC = 18,
00064 #define PT_PC PT_PC
00065 
00066 #ifdef __mcoldfire__
00067   PT_FP0 = 21,
00068   PT_FP1 = 23,
00069   PT_FP2 = 25,
00070   PT_FP3 = 27,
00071   PT_FP4 = 29,
00072   PT_FP5 = 31,
00073   PT_FP6 = 33,
00074   PT_FP7 = 35,
00075 #else
00076   PT_FP0 = 21,
00077   PT_FP1 = 24,
00078   PT_FP2 = 27,
00079   PT_FP3 = 30,
00080   PT_FP4 = 33,
00081   PT_FP5 = 36,
00082   PT_FP6 = 39,
00083   PT_FP7 = 42,
00084 #endif
00085 #define PT_FP0 PT_FP0
00086 #define PT_FP1 PT_FP1
00087 #define PT_FP2 PT_FP2
00088 #define PT_FP3 PT_FP3
00089 #define PT_FP4 PT_FP4
00090 #define PT_FP5 PT_FP5
00091 #define PT_FP6 PT_FP6
00092 #define PT_FP7 PT_FP7
00093 
00094   PT_FPCR = 45,
00095 #define PT_FPCR PT_FPCR
00096   PT_FPSR = 46,
00097 #define PT_FPSR PT_FPSR
00098   PT_FPIAR = 47
00099 #define PT_FPIAR PT_FPIAR
00100 };
00101 
00102 #endif /* _SYS_REG_H */