[PATCH] xtensa: sort values in struct_user_offsets

2014-06-17 Thread Max Filippov
Otherwise ptrace syscall argument decoding is wrong: ptrace(PTRACE_PEEKUSER, 296, syscall_nr, [0x4048eb]) = 0 ptrace(PTRACE_PEEKUSER, 296, syscall_nr, [0x3fa6cd30]) = 0 ptrace(PTRACE_PEEKUSER, 296, syscall_nr, [0x8040676d]) = 0 instead of ptrace(PTRACE_PEEKUSER, 296, pc, [0x4048eb]) = 0 p

Re: [PATCH v3] Print absolute paths in printpathn when -yy is used

2014-06-17 Thread Dmitry V. Levin
On Mon, Jun 16, 2014 at 10:47:05PM -0400, Mike Frysinger wrote: > On Sun 15 Jun 2014 09:14:05 zubin.mit...@gmail.com wrote: > > From: Zubin Mithra [...] > > + ssize_t n; > > + > > + snprintf(linkpath, link_size, "/proc/%u/cwd", tcp->pid); > > + n = readlink(linkpath, cwd, MAXPATHLEN); > >

Re: [PATCH v3] Print absolute paths in printpathn when -yy is used

2014-06-17 Thread Dmitry V. Levin
On Mon, Jun 16, 2014 at 10:29:48PM -0400, Mike Frysinger wrote: > On Tue 17 Jun 2014 04:27:23 Dmitry V. Levin wrote: > > On Sun, Jun 15, 2014 at 09:14:05AM +0530, zubin.mit...@gmail.com wrote: > > > +int > > > +print_tracee_cwd(struct tcb *tcp) > > > > ... so let's make this function static bool.