1 /* Process record and replay target code for GNU/Linux.
3 Copyright (C) 2008, 2009 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 3 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, see <http://www.gnu.org/licenses/>. */
20 #ifndef _LINUX_RECORD_H_
21 #define _LINUX_RECORD_H_
23 struct linux_record_tdep
25 /* The size of the type that will be used in a system call. */
26 int size__old_kernel_stat
;
30 int size_oldold_utsname
;
32 int size_old_sigaction
;
33 int size_old_sigset_t
;
60 int size_fs_quota_stat
;
65 int size_TASK_COMM_LEN
;
69 int size_cap_user_data_t
;
90 int size_serial_struct
;
91 int size_serial_icounter_struct
;
92 int size_hayes_esp_config
;
94 /* The values of the second argument of system call "sys_ioctl". */
113 int ioctl_TIOCGWINSZ
;
114 int ioctl_TIOCSWINSZ
;
119 int ioctl_TIOCGSOFTCAR
;
120 int ioctl_TIOCSSOFTCAR
;
125 int ioctl_TIOCGSERIAL
;
126 int ioctl_TIOCSSERIAL
;
133 int ioctl_TIOCTTYGSTRUCT
;
142 int ioctl_TIOCSPTLCK
;
146 int ioctl_TIOCSERCONFIG
;
147 int ioctl_TIOCSERGWILD
;
148 int ioctl_TIOCSERSWILD
;
149 int ioctl_TIOCGLCKTRMIOS
;
150 int ioctl_TIOCSLCKTRMIOS
;
151 int ioctl_TIOCSERGSTRUCT
;
152 int ioctl_TIOCSERGETLSR
;
153 int ioctl_TIOCSERGETMULTI
;
154 int ioctl_TIOCSERSETMULTI
;
155 int ioctl_TIOCMIWAIT
;
156 int ioctl_TIOCGICOUNT
;
157 int ioctl_TIOCGHAYESESP
;
158 int ioctl_TIOCSHAYESESP
;
161 /* The number of the registers that are used as the arguments of
170 extern int record_linux_system_call (int num
, struct regcache
*regcache
,
171 struct linux_record_tdep
*tdep
);
173 #endif /* _LINUX_RECORD_H_ */