lkml.org 
[lkml]   [2012]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v2 23/31] arm64: Debugging support
    Date
    On Tuesday 14 August 2012, Catalin Marinas wrote:

    > +const struct user_regset_view *task_user_regset_view(struct task_struct *task)
    > +{
    > +#ifdef CONFIG_AARCH32_EMULATION
    > + if (test_tsk_thread_flag(task, TIF_32BIT))
    > + return &user_aarch32_view;
    > +#endif
    > + return &user_aarch64_view;
    > +}

    Ah, nice. So you support 64 bit debuggers debugging 32 bit processes, right?

    From what I can tell, there is no support for 32 bit processes debugging
    64 bit ones. Is that something you plan to add in the future, or do you
    consider that out of scope? In either case, a comment would be helpful.

    > +long arch_ptrace(struct task_struct *child, long request,
    > + unsigned long addr, unsigned long data)
    > +{
    > + int ret;
    > + unsigned long *datap = (unsigned long __user *)data;
    > +
    > + switch (request) {
    > + case PTRACE_GET_THREAD_AREA:
    > + ret = put_user(child->thread.tp_value, datap);
    > + break;
    > +
    > +#ifdef CONFIG_HAVE_HW_BREAKPOINT
    > + case PTRACE_GETHBPREGS:
    > + ret = ptrace_gethbpregs(child, addr, datap);
    > + break;
    > +
    > + case PTRACE_SETHBPREGS:
    > + ret = ptrace_sethbpregs(child, addr, datap);
    > + break;
    > +#endif
    > +
    > + default:
    > + ret = ptrace_request(child, request, addr, data);
    > + break;
    > + }
    > +
    > + return ret;
    > +}

    Is there a reaons why these are not regsets but have their own ptrace
    commands? I believe new architectures should generally not add ptrace
    commands any more.

    Arnd


    \
     
     \ /
      Last update: 2012-08-15 21:23    [W:4.142 / U:0.828 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site