lkml.org 
[lkml]   [2009]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 3/4] ptrace: remove PT_DTRACE from m68k, m68knommu
    m68k sets PT_DTRACE in trap_c() but never uses it.

    Signed-off-by: Oleg Nesterov <oleg@redhat.com>

    arch/m68k/kernel/traps.c | 1 -
    arch/m68knommu/kernel/asm-offsets.c | 1 -
    arch/m68knommu/kernel/traps.c | 1 -
    3 files changed, 3 deletions(-)

    --- PTRACE/arch/m68k/kernel/traps.c~DT_3_SET 2009-04-06 00:03:35.000000000 +0200
    +++ PTRACE/arch/m68k/kernel/traps.c 2009-04-22 21:52:23.000000000 +0200
    @@ -1057,7 +1057,6 @@ asmlinkage void trap_c(struct frame *fp)
    if (fp->ptregs.sr & PS_S) {
    if ((fp->ptregs.vector >> 2) == VEC_TRACE) {
    /* traced a trapping instruction */
    - current->ptrace |= PT_DTRACE;
    } else
    bad_super_trap(fp);
    return;
    --- PTRACE/arch/m68knommu/kernel/asm-offsets.c~DT_3_SET 2009-04-06 00:03:35.000000000 +0200
    +++ PTRACE/arch/m68knommu/kernel/asm-offsets.c 2009-04-22 21:53:46.000000000 +0200
    @@ -79,7 +79,6 @@ int main(void)
    DEFINE(TRAP_TRACE, TRAP_TRACE);

    DEFINE(PT_PTRACED, PT_PTRACED);
    - DEFINE(PT_DTRACE, PT_DTRACE);

    DEFINE(THREAD_SIZE, THREAD_SIZE);

    --- PTRACE/arch/m68knommu/kernel/traps.c~DT_3_SET 2009-04-06 00:03:35.000000000 +0200
    +++ PTRACE/arch/m68knommu/kernel/traps.c 2009-04-22 21:54:29.000000000 +0200
    @@ -200,7 +200,6 @@ asmlinkage void trap_c(struct frame *fp)
    if (fp->ptregs.sr & PS_S) {
    if ((fp->ptregs.vector >> 2) == VEC_TRACE) {
    /* traced a trapping instruction */
    - current->ptrace |= PT_DTRACE;
    } else
    bad_super_trap(fp);
    return;


    \
     
     \ /
      Last update: 2009-04-23 21:45    [W:0.032 / U:90.580 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site