Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1759e58e authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Add dummy PTRACE_PEEKUSR for gdb.



GDB uses a PTRACE_PEEKUSR call with offset 0 to see
if a thread is alive, so provide a success return for
this particular special case.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 67644726
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -244,6 +244,13 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
	}

	switch(request) {
	case PTRACE_PEEKUSR:
		if (addr != 0)
			pt_error_return(regs, EIO);
		else
			pt_succ_return(regs, 0);
		goto out_tsk;

	case PTRACE_PEEKTEXT: /* read word at location addr. */ 
	case PTRACE_PEEKDATA: {
		unsigned long tmp64;