]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: Fix the typo in event identifier flags used by ptrace
authorVineet Gupta <vgupta@synopsys.com>
Wed, 20 Mar 2013 11:23:14 +0000 (16:53 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 20 Mar 2013 13:15:45 +0000 (18:45 +0530)
commit8e671f7047ab43cf96f615adb9a31b65ebae1a4c
tree64411fd4bcba9bcccf3cece7638fa3b759655979
parentca2533668fbeb910b50d37acc22c4a7526b05a40
ARC: Fix the typo in event identifier flags used by ptrace

orig_r8_IS_EXCPN and orig_r8_IS_BRKPT were same values due to a
copy/paste error. Although it looks bad and is wrong, it really doesn't
affect gdb working.

orig_r8_IS_BRKPT is the one relevant to debugging (breakpoints), since
it is used to provide EFA vs. ERET to a ptrace "stop_pc" request.

So when gdb has inserted a breakpoint, orig_r8_IS_BRKPT is already set,
and anything else (i.e. orig_r8_IS_EXCPN) becoming same as it, really
doesn't hurt gdb. The corollary case, could be nasty but nobody uses the
ptrace "stop_pc" request in that case

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/entry.h
arch/arc/include/asm/ptrace.h
arch/arc/kernel/entry.S