From: Vineet Gupta Date: Wed, 27 Feb 2013 10:34:07 +0000 (+0530) Subject: ARC: gdbserver using regset interface possibly broken X-Git-Tag: v3.9-rc1~25^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dc99e50d2d66f8ddeb4e20af1908ad99db0cb98;p=pandora-kernel.git ARC: gdbserver using regset interface possibly broken ptrace regset interface relies on ELF_NGREG for ceiling the size of user request. So any larger request (even if legit) would be clipped. The existing def of ELF_NGREG didn't use user_regs_struct and was technically one placeholder short (stop_pc) - although the current code would still work because pt_regs includes a bunch of extra fields, making ELF_NGREG >= sizeof(struct user_regs_struct)/sizeof(long) But we need to remove this ambiguity, specially since pt_regs should NOT be directly associated with with anything userspace-ish. Signed-off-by: Vineet Gupta --- Reading git-diff-tree failed