This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: prototyping linux kernel-side gdbstub for userspace


drow wrote:

>> I'm slowly assembling a prototype gdb stub for debugging user-space
>> programs, based on utrace, for possible eventual inclusion in the
>> linux kernel.  [...] But before too long though it should be able
>> to use uprobes (q.v.) as a kernel-side breakpointing facility using
>> the Z packets, and maybe even support agent expressions,
>> multithreaded processes, and multiprocess debugging.

> For those of us with less context, why do it this way instead of
> exposing those features for a userspace gdbserver?

One reason is that these would require extending the kernel ABI,
whether ptrace(2) or something new, and as well extending the
userspace clients.  Doing it across the plain remote protocol means
basically no changes on either end.  This is not to say that the above
can't happen at some point.


> I can't say I'm thrilled to have this in kernel space.

(Of course there is no reason you have to build / run it.)


- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]