GDB (xrefs)
/tmp/gdb-7.10/gdb/linux-record.h
Go to the documentation of this file.
1 /* Process record and replay target code for GNU/Linux.
2 
3  Copyright (C) 2008-2015 Free Software Foundation, Inc.
4 
5  This file is part of GDB.
6 
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.
11 
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.
16 
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/>. */
19 
20 #ifndef _LINUX_RECORD_H_
21 #define _LINUX_RECORD_H_
22 
24 {
25  /* The size of the type that will be used in a system call. */
28  int size_tms;
47  int size_int;
48  int size_long;
52  int size_stat;
80  int size_iocb;
94 
95  /* The values of the second argument of system call "sys_ioctl". */
161 
162  /* The values of the second argument of system call "sys_fcntl"
163  and "sys_fcntl64". */
168 
169  /* The number of the registers that are used as the arguments of
170  a system call. */
171  int arg1;
172  int arg2;
173  int arg3;
174  int arg4;
175  int arg5;
176  int arg6;
177  int arg7;
178 };
179 
180 /* Enum that defines the gdb-canonical set of Linux syscall identifiers.
181  Different architectures will have different sets of syscall ids, and
182  each must provide a mapping from their set to this one. */
183 
302  gdb_sys_ipc = 117,
500  gdb_sys_tee = 315,
534 };
535 
536 /* Record a linux syscall. */
537 
538 extern int record_linux_system_call (enum gdb_syscall num,
539  struct regcache *regcache,
540  struct linux_record_tdep *tdep);
541 #endif /* _LINUX_RECORD_H_ */
int size_serial_icounter_struct
Definition: linux-record.h:90
int record_linux_system_call(enum gdb_syscall num, struct regcache *regcache, struct linux_record_tdep *tdep)
Definition: linux-record.c:227
gdb_syscall
Definition: linux-record.h:184