From: Andi Kleen <ak@suse.de>
To: John Blackwood <john.blackwood@ccur.com>
Cc: linux-kernel@vger.kernel.org, Andi Kleen <ak@suse.de>, bugsy@ccur.com
Subject: Re: [PATCH] arch/x86_64/kernel/traps.c
Date: Wed, 14 Dec 2005 04:54:15 +0100 [thread overview]
Message-ID: <20051214035415.GE23384@wotan.suse.de> (raw)
In-Reply-To: <439EF717.1080408@ccur.com>
On Tue, Dec 13, 2005 at 11:30:15AM -0500, John Blackwood wrote:
> Hi Andi,
>
> I would like to throw out a suggestion for a possible change in the way that
> the debug register traps are handled in do_debug() when the trap occurs
> in kernel-mode.
>
> In the x86_64 version of do_debug(), the code will skip around sending
> a SIGTRAP to the current task if the trap occurred while in kernel mode.
Looks good thanks.
> Additionally, I realize that users that pull in a kernel debugger such as
> KGDB into their kernel might want to remove this change below when they add
> in KGDB support. However, they could alternatively look at the current
> task's thread.debugreg[] values to see if the trap occurred due to KGDB
> or instead because of a user-space debugger trap, and still honor the
> user SIGTRAP processing (instead of the KGDB breakpoint processing)
> if the trap matches up with the thread.debugreg[] registers.
That should be eaten up by the die notifier.
-Andi
prev parent reply other threads:[~2005-12-14 3:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-13 16:30 John Blackwood
2005-12-14 3:54 ` Andi Kleen [this message]
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=20051214035415.GE23384@wotan.suse.de \
--to=ak@suse.de \
--cc=bugsy@ccur.com \
--cc=john.blackwood@ccur.com \
--cc=linux-kernel@vger.kernel.org \
/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
Powered by JetHome