From: "Maciej W. Rozycki" <macro@imgtec.com>
To: Pedro Alves <palves@redhat.com>
Cc: <gdb-patches@sourceware.org>, "Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: [PATCH] Handle MIPS Linux SIGTRAP siginfo.si_code values
Date: Thu, 25 Feb 2016 01:39:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.00.1602242328290.15885@tp.orcam.me.uk> (raw)
In-Reply-To: <56CE3AA6.6090005@redhat.com>
On Wed, 24 Feb 2016, Pedro Alves wrote:
> > to actually recognise these events at all in the first place. So we
> > better have it right away or updated kernels will break GDB for a change.
>
> OK, if you're still willing to change the kernel, let's do it.
>
> I had somehow imagined (and reading back, I have no idea why) that you
> _didn't_ want to change the si_code, if possible, and was going by that.
>
> (There's always risk associated with such a change, as it's effectively
> an ABI break and some tool out there may be relying on SI_KERNEL and may
> thus stop working correctly. Usually ABI stability trumps "cleanliness",
> in kernel circles.)
I'll post a proposal, cc-ing you (and Luis), and see if anything pops up.
Given that the only codes for SIGTRAP on MIPS/Linux have so far been
SI_USER (i.e. 0) or SI_KERNEL, I really doubt that any software bothered
checking it. I've never thought of trying to fool a debugger by sending
it SIGTRAP signals with kill(2) and now that I think of it, then honestly
I fail to see a reason to actually special-case such fooling and prevent
the user from doing so -- if they do it, then certainly they must have had
a reason.
Did GDB itself check for SI_KERNEL before your recent rewrite?
> I've just finished testing it on s390 -- no regressions. I've
> pushed it in now, as is. I'll follow up with a new patch that makes
> gdb accept the anticipated new si_codes too.
I'm fine with waiting for any outcome from a discussion with kernel
people before pushing such a change.
Maciej
next prev parent reply other threads:[~2016-02-25 1:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 16:44 Pedro Alves
2016-02-24 18:29 ` Maciej W. Rozycki
2016-02-24 18:51 ` Pedro Alves
2016-02-24 19:02 ` Luis Machado
2016-02-24 20:49 ` Maciej W. Rozycki
2016-02-24 21:10 ` Luis Machado
2016-02-24 20:39 ` Maciej W. Rozycki
2016-02-24 23:20 ` Pedro Alves
2016-02-24 23:37 ` [PATCH] MIPS/Linux: Also recognize TRAP_BRKPT and TRAP_HWBKPT Pedro Alves
2016-02-25 1:39 ` Maciej W. Rozycki [this message]
2016-02-25 1:45 ` [PATCH] Handle MIPS Linux SIGTRAP siginfo.si_code values Pedro Alves
2016-04-05 16:57 ` Maciej W. Rozycki
2016-04-15 23:17 ` Pedro Alves
2016-02-24 18:51 ` Luis Machado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.00.1602242328290.15885@tp.orcam.me.uk \
--to=macro@imgtec.com \
--cc=gdb-patches@sourceware.org \
--cc=macro@linux-mips.org \
--cc=palves@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox