[PATCH] Add _sigsys info to siginfo struct
Hannes Domani
ssbssa@yahoo.de
Sat Jan 8 13:18:43 GMT 2022
Am Samstag, 8. Januar 2022, 13:44:15 MEZ hat Joel Brobecker <brobecker@adacore.com> Folgendes geschrieben:
> > > > This patch adds information about _sigsys structure from newer
> > > > kernels, so that $_siginfo decoding can show information about
> > > > _sigsys, making it easier for developers to debug seccomp failures.
> > > >
> > > > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=24283
> > >
> > > Thanks for the patch.
> > >
> > > I'm trusting you for the proper definition of the various fields.
> > > This looks reasonable to me, but before we push this, I'm wondering
> > > what happens when debugging on a kernel which does not support
> > > this feature? Is the data undefined? If yes, do we a precendent
> > > for this already?
> >
> > As I understood it, if the kernel doesn't support this feature, then it will
> > never send a SIGSYS signal, and so you wouldn't care about these fields.
>
> I see; thanks for clarifying this for me. The patch looks good to me.
Pushed, thanks.
Hannes
More information about the Gdb-patches
mailing list