diff options
author | Hui Zhu <teawater@gmail.com> | 2009-05-22 14:07:26 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2009-05-22 14:07:26 +0000 |
commit | f3c8bf0e46f94b831b39a007982ef86f5f6df243 (patch) | |
tree | c9953a329ec1c27806377ea34c828c00349a33ca /gdb/linux-record.h | |
parent | d673ac91bbc3c6789bfcb18d1aa89fea68c78a2c (diff) | |
download | gdb-f3c8bf0e46f94b831b39a007982ef86f5f6df243.tar.gz |
Add sys_fcntl argument interfaces to linux_record_tdep.
* linux-record.h (linux_record_tdep): Add fcntl_F_GETLK,
fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be
interfaces.
* i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK,
I386_LINUX_RECORD_FCNTL_F_GETLK64,
I386_LINUX_RECORD_FCNTL_F_SETLK64,
I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values
of I386 Linux sys_fcntl arguments.
(i386_linux_init_abi): Set macros values to linux_record_tdep.
* linux-record.c (record_linux_system_call): Change to use
the interface in linux_record_tdep in sys_fcntl and
sys_fcntl64.
* linux-record.c (record_linux_system_call): Fix the process
record build error about type in CYGWIN.
Diffstat (limited to 'gdb/linux-record.h')
-rw-r--r-- | gdb/linux-record.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/linux-record.h b/gdb/linux-record.h index 648dcb5928f..52846a3b642 100644 --- a/gdb/linux-record.h +++ b/gdb/linux-record.h @@ -158,6 +158,13 @@ struct linux_record_tdep int ioctl_TIOCSHAYESESP; int ioctl_FIOQSIZE; + /* The values of the second argument of system call "sys_fcntl" + and "sys_fcntl64". */ + int fcntl_F_GETLK; + int fcntl_F_GETLK64; + int fcntl_F_SETLK64; + int fcntl_F_SETLKW64; + /* The number of the registers that are used as the arguments of a system call. */ int arg1; |