GDB (xrefs)
/tmp/gdb-8.1/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-2018 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;
46  int size_int;
47  int size_long;
51  int size_stat;
79  int size_iocb;
93 
94  /* The values of the second argument of system call "sys_ioctl". */
160 
161  /* The values of the second argument of system call "sys_fcntl"
162  and "sys_fcntl64". */
167 
168  /* The number of the registers that are used as the arguments of
169  a system call. */
170  int arg1;
171  int arg2;
172  int arg3;
173  int arg4;
174  int arg5;
175  int arg6;
176  int arg7;
177 };
178 
179 /* Enum that defines the gdb-canonical set of Linux syscall identifiers.
180  Different architectures will have different sets of syscall ids, and
181  each must provide a mapping from their set to this one. */
182 
184  /* An unknown GDB syscall, not a real syscall. */
186 
304  gdb_sys_ipc = 117,
502  gdb_sys_tee = 315,
542 };
543 
544 /* Record a linux syscall. */
545 
546 extern int record_linux_system_call (enum gdb_syscall num,
547  struct regcache *regcache,
548  struct linux_record_tdep *tdep);
549 #endif /* _LINUX_RECORD_H_ */
int size_serial_icounter_struct
Definition: linux-record.h:88
int record_linux_system_call(enum gdb_syscall num, struct regcache *regcache, struct linux_record_tdep *tdep)
Definition: linux-record.c:241
gdb_syscall
Definition: linux-record.h:183