Re: getter PTRACE_GETSIGINFO should not modify anything [Re: [PATCH11/11] ptrace: implement group stop notification for ptracer]

From: Jan Kratochvil
Date: Sun May 15 2011 - 16:07:23 EST


On Sun, 15 May 2011 19:28:11 +0200, Tejun Heo wrote:
> It's a balancing act. The primary goal is to make it _functional_ as
> the current ptrace is outright broken in many places. The second, at
> least for me, is not deviating from the current behavior too much
> unless required by the first goal or not doing so is extremely silly.

You are introducing new API which requires new codepaths in every
debugger-like program using it. I do not find the "not deviating" reason as
valid for making the _new_ API parts needlessly imperfect. Otherwise in the
next step we will want to fix the new imperfect parts and - there will be
three APIs that time to be supported in each debugger-like program depending
on how old kernel versions the debugger wants to support.


> After all, this is a pretty low level API which only a handful are
> gonna use.

People are now rather directed on #gdb@freenode to use gdb instead of dealing
with ptrace when coding various monitoring/debugging helpers. While sure
ptrace is not a mainstream syscall I would find great making it more easy.


Sure the changes should be still small - I do not ask for making unrelated new
changes; just making the already needed changes perfect in their scope.


Thanks,
Jan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/