(gdb) b execve Breakpoint 1 at 0x400b94 (gdb) set args /foo /bin/cat /proc/uptime (gdb) r Starting program: /usr/lib64/util-vserver/exec-ulimit /foo /bin/cat /proc/uptime warning: shared library handler failed to enable breakpoint Breakpoint 1, 0x0000000000400b94 in execve () (gdb) b __unified_syscall Breakpoint 2 at 0x40062e (gdb) c Continuing. Breakpoint 2, 0x000000000040062e in __unified_syscall () (gdb) disassemble Dump of assembler code for function __unified_syscall: 0x000000000040062e <__unified_syscall+0>: movzbl %al,%eax 0x0000000000400631 <__unified_syscall+3>: mov %rcx,%r10 0x0000000000400634 <__unified_syscall+6>: syscall 0x0000000000400636 <__unified_syscall+8>: cmp $0xffffffffffffff80,%rax 0x000000000040063a <__unified_syscall+12>: jbe 0x40064b 0x000000000040063c <__unified_syscall+14>: neg %eax 0x000000000040063e <__unified_syscall+16>: push %rax 0x000000000040063f <__unified_syscall+17>: callq 0x400690 <__errno_location> 0x0000000000400644 <__unified_syscall+22>: pop %rcx 0x0000000000400645 <__unified_syscall+23>: mov %ecx,(%rax) 0x0000000000400647 <__unified_syscall+25>: or $0xffffffffffffffff,%rax End of assembler dump. (gdb) break *0x0000000000400634 Breakpoint 3 at 0x400634 (gdb) c Continuing. Breakpoint 3, 0x0000000000400634 in __unified_syscall () (gdb) info registers rax 0x3b 59 rbx 0x7fff97514f78 140735732076408 rcx 0x400636 4195894 rdx 0x7fff5407a427 140734603174951 rsi 0x7fff97514f78 140735732076408 rdi 0x7fff97515c78 140735732079736 rbp 0x7fff97515c78 0x7fff97515c78 rsp 0x7fff97505b48 0x7fff97505b48 r8 0x0 0 r9 0x0 0 r10 0x400636 4195894 r11 0x256 598 r12 0x7fff97514f90 140735732076432 r13 0x7fff97514f68 140735732076392 r14 0x7fff97514f68 140735732076392 r15 0x6 6 rip 0x400634 0x400634 <__unified_syscall+6> eflags 0x206 [ PF IF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 (gdb) dump memory gcc411-rdi.mem $rdi $rdi+1024 (gdb) dump memory gcc411-rsi.mem $rsi $rsi+1024 (gdb) dump memory gcc411-rdx.mem $rdx $rdx+1024 (gdb) dump memory gcc411-r10.mem $r10 $r10+1024