summaryrefslogtreecommitdiff
path: root/gdb/linux-record.c
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-02-19 15:51:03 +0000
committerYao Qi <yao.qi@linaro.org>2016-02-29 16:44:50 +0000
commit253b4d3a09e9edbb72d21127fbc85934ab1b7c07 (patch)
tree0490c367193afb39f3dc77ec4f2609db287b1341 /gdb/linux-record.c
parent841fdfcdd9caa69f3ad7560a2806d421e23f598a (diff)
Support more syscalls in linux-record: pipe2 epoll_create1 eventfd2 fallocate dup3 and inotify_init1
This patch adds more syscalls in linux-record. gdb: 2016-02-29 Yao Qi <yao.qi@linaro.org> * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New. <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New. <gdb_sys_pipe2, gdb_sys_inotify_init1>: New. * linux-record.c (record_linux_system_call): Handle them.
Diffstat (limited to 'gdb/linux-record.c')
-rw-r--r--gdb/linux-record.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/linux-record.c b/gdb/linux-record.c
index 29e299d4eb..a40845af9c 100644
--- a/gdb/linux-record.c
+++ b/gdb/linux-record.c
@@ -2302,6 +2302,21 @@ Do you want to stop the program?"),
}
break;
+ case gdb_sys_fallocate:
+ case gdb_sys_eventfd2:
+ case gdb_sys_epoll_create1:
+ case gdb_sys_dup3:
+ break;
+
+ case gdb_sys_pipe2:
+ regcache_raw_read_unsigned (regcache, tdep->arg1, &tmpulongest);
+ if (record_full_arch_list_add_mem ((CORE_ADDR) tmpulongest,
+ tdep->size_int * 2))
+ break;
+
+ case gdb_sys_inotify_init1:
+ break;
+
default:
printf_unfiltered (_("Process record and replay target doesn't "
"support syscall number %d\n"), syscall);