From: Kip Macy <kmacy@eventdriven.org>
To: alex.ho@cl.cam.ac.uk
Cc: Xen list <xen-devel@lists.sourceforge.net>
Subject: pdb entered even when set to none
Date: Mon, 7 Jun 2004 17:11:57 -0700 (PDT) [thread overview]
Message-ID: <20040607165603.M9981@demos.bsdclusters.com> (raw)
In-Reply-To: <200404271735.AA01038@winxp.digitalinfra.co.jp>
In traps.c pdb_handle_exception is called on an int3:
asmlinkage void do_int3(struct pt_regs *regs, long error_code)
{
struct task_struct *p = current;
struct guest_trap_bounce *gtb =
guest_trap_bounce+smp_processor_id();
trap_info_t *ti;
if ( pdb_handle_exception(3, regs) == 0 )
return;
<...>
It in turn goes through some elaborate checks that don't evaluate to
true when FreeBSD panics:
<...>
if ( exceptionVector == 3 &&
(xen_regs->xcs & 3) == 3 &&
xen_regs->eip != pdb_system_call_next_addr + 1)
{
TRC(printf("pdb: user bkpt (0x%x) at 0x%x:0x%lx:0x%lx\n",
exceptionVector, xen_regs->xcs & 3, cr3,
xen_regs->eip));
return 1;
}
/*
* If PDB didn't set the breakpoint, is not single stepping,
* is not entering a system call in a domain,
* the user didn't press the magic debug key,
* then we don't handle the exception.
*/
bkpt = pdb_bkpt_search(cr3, xen_regs->eip - 1);
if ( (bkpt == NULL) &&
!pdb_stepping &&
!pdb_system_call &&
xen_regs->eip != pdb_system_call_next_addr + 1 &&
(exceptionVector != KEYPRESS_EXCEPTION) &&
xen_regs->eip < 0xc0000000) /* xenolinux for
now! */
{
TRC(printf("pdb: user bkpt (0x%x) at 0x%lx:0x%lx\n",
exceptionVector, cr3, xen_regs->eip));
return 1;
}
<...>
As far as I can tell, what you should be doing is returning 1
immediately if pdb_initialized is equal to zero.
Thanks.
-Kip
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
next prev parent reply other threads:[~2004-06-08 0:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-19 12:29 Xen+coLinux Digital Infra, Inc.
2004-03-19 12:40 ` Xen+coLinux Digital Infra, Inc.
2004-03-19 15:01 ` Xen+coLinux Jacob Gorm Hansen
2004-03-19 15:28 ` Xen+coLinux Digital Infra, Inc.
2004-04-09 19:10 ` Xen+coLinux Dan Aloni
2004-04-10 12:49 ` Xen+coLinux Steven Hand
2004-04-13 10:29 ` Xen+coLinux Jacob Gorm Hansen
2004-04-15 14:18 ` Xen+coLinux Digital Infra, Inc.
2004-04-27 17:04 ` Xen+coLinux / terminology Digital Infra, Inc.
2004-04-28 18:00 ` Brian Wolfe
2004-04-28 18:14 ` Ian Pratt
2004-04-27 17:08 ` Xen+coLinux / coXen Digital Infra, Inc.
2004-04-27 17:25 ` Jacob Gorm Hansen
2004-04-27 17:34 ` Digital Infra, Inc.
2004-04-27 17:35 ` Digital Infra, Inc.
2004-06-08 0:11 ` Kip Macy [this message]
2004-06-08 7:39 ` pdb entered even when set to none Alex Ho
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=20040607165603.M9981@demos.bsdclusters.com \
--to=kmacy@eventdriven.org \
--cc=alex.ho@cl.cam.ac.uk \
--cc=xen-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.