]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Implement the gettid system call which seems to have got lost in the merge.
authorTom Hughes <tom@compton.nu>
Thu, 31 Mar 2005 09:09:07 +0000 (09:09 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 31 Mar 2005 09:09:07 +0000 (09:09 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3490

coregrind/vg_syscalls.c
coregrind/x86-linux/syscalls.c

index 45d3eb60eaf2a74754eb4faa2785a29af046fcb7..d7ae307bed0f1042abaa4522a5635715efe705df 100644 (file)
@@ -2956,6 +2956,12 @@ POST(sys_getppid)
       RES = 1;
 }
 
+PRE(sys_gettid, 0)
+{
+   PRINT("sys_gettid ()");
+   PRE_REG_READ0(long, "gettid");
+}
+
 static void common_post_getrlimit(ThreadId tid, UWord a1, UWord a2)
 {
    POST_MEM_WRITE( a2, sizeof(struct vki_rlimit) );
index 50b063fcf6eaf3a250d2d965bee273838cf4c2f4..3cbc0446882aa280950481f8a4859d13117fdfef 100644 (file)
@@ -1246,7 +1246,7 @@ const struct SyscallTableEntry VGA_(syscall_table)[] = {
    GENXY(__NR_fcntl64,           sys_fcntl64),        // 221
    GENX_(222,                    sys_ni_syscall),     // 222
    GENX_(223,                    sys_ni_syscall),     // 223
-   //   (__NR_gettid,            sys_gettid),         // 224 */Linux
+   GENX_(__NR_gettid,            sys_gettid),         // 224 */Linux
 
    //   (__NR_readahead,         sys_readahead),      // 225 */(Linux?)
    GENX_(__NR_setxattr,          sys_setxattr),       // 226