1 /* Native-dependent code for Solaris x86.
3 Copyright 2004 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
25 #include <sys/procfs.h>
28 /* This file provids the (temporary) glue between the Solaris x86
29 target dependent code and the machine independent SVR4 /proc
32 /* Solaris 10 (Solaris 2.10, SunOS 5.10) and up support two process
33 data models, the traditional 32-bit data model (ILP32) and the
34 64-bit data model (LP64). The format of /proc depends on the data
35 model of the observer (the controlling process, GDB in our case).
36 The Solaris header files conveniently define PR_MODEL_NATIVE to the
37 data model of the controlling process. If its value is
38 PR_MODEL_LP64, we know that GDB is being compiled as a 64-bit
41 Note that a 32-bit GDB won't be able to debug a 64-bit target
42 process using /proc on Solaris. */
44 #if defined (PR_MODEL_NATIVE) && (PR_MODEL_NATIVE == PR_MODEL_LP64)
46 #include "amd64-nat.h"
47 #include "amd64-tdep.h"
50 supply_gregset (prgregset_t
*gregs
)
52 amd64_supply_native_gregset (current_regcache
, -1, gregs
);
56 supply_fpregset (prfpregset_t
*fpregs
)
58 amd64_supply_fxsave (current_regcache
, -1, fpregs
);
62 fill_gregset (prgregset_t
*gregs
, int regnum
)
64 amd64_collect_native_gregset (current_regcache
, regnum
, gregs
);
68 fill_fpregset (prfpregset_t
*fpregs
, int regnum
)
70 amd64_collect_fxsave (current_regcache
, regnum
, fpregs
);
75 /* 32-bit Solaris x86 is very similar to SVR4. */
76 #include "i386v4-nat.c"
This page took 0.030203 seconds and 4 git commands to generate.