From owner-freebsd-current@FreeBSD.ORG Mon Aug 23 20:44:46 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEB9C16A4CE for ; Mon, 23 Aug 2004 20:44:46 +0000 (GMT) Received: from mail13.svc.cra.dublin.eircom.net (mail13.svc.cra.dublin.eircom.net [159.134.118.29]) by mx1.FreeBSD.org (Postfix) with SMTP id 64B2143D73 for ; Mon, 23 Aug 2004 20:44:46 +0000 (GMT) (envelope-from peadar@freebsd.org) Received: (qmail 79724 messnum 5128349 invoked from network[83.70.90.129/83-70-90-129.bas1.mvw.galway.eircom.net]); 23 Aug 2004 20:44:45 -0000 Received: from 83-70-90-129.bas1.mvw.galway.eircom.net (HELO ?10.0.1.10?) (83.70.90.129) by mail13.svc.cra.dublin.eircom.net (qp 79724) with SMTP; 23 Aug 2004 20:44:45 -0000 Message-ID: <412A5735.8070607@freebsd.org> Date: Mon, 23 Aug 2004 21:44:37 +0100 From: Peter Edwards User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.1) Gecko/20040801 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marco Molteni References: <20040823155141.GD77326@green.homeunix.org> <20040823200547.1b51bbce.molter@tin.it> In-Reply-To: <20040823200547.1b51bbce.molter@tin.it> Content-Type: multipart/mixed; boundary="------------010805060609030306080003" cc: freebsd-current@freebsd.org Subject: Re: ddb problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2004 20:44:47 -0000 This is a multi-part message in MIME format. --------------010805060609030306080003 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Marco Molteni wrote: >On Mon, 23 Aug 2004 11:51:41 -0400 >Brian Fundakowski Feldman wrote: > > > >>On Mon, Aug 23, 2004 at 08:57:43AM +0200, Michiel Boland wrote: >> >> >>>Hi. I can't seem to get anything useful out of ddb with recent >>>-CURRENTs. I get things like double faults, page faults, or endless >>>streams of console messages. Is anyone else seeing this? >>> >>> >>Yes, I'm seeing exactly that behavior, unfortunately. >> >> > >me too, on >ddb >gdb in the base system >gdb53 in the ports > >marco > > DDB hasn't being adjusting the trap frame to skip over breakpoints properly since the KDB work. Marcel knows about the issue: in the meantime, the attached patch gives me a workable breakpoints for DDB at the expense of some incorrect informational messages switching away from the active thread (this is Marcel's variant of my inferior band-aid :-)) --------------010805060609030306080003 Content-Type: text/plain; name="kdb.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="kdb.txt" Index: i386/include/db_machdep.h =================================================================== RCS file: /usr/cvs/FreeBSD-CVS/src/sys/i386/include/db_machdep.h,v retrieving revision 1.18 diff -u -r1.18 db_machdep.h --- i386/include/db_machdep.h 10 Jul 2004 23:47:19 -0000 1.18 +++ i386/include/db_machdep.h 23 Jul 2004 00:51:06 -0000 @@ -35,7 +35,7 @@ typedef vm_offset_t db_addr_t; /* address - unsigned */ typedef int db_expr_t; /* expression - signed */ -#define PC_REGS() ((db_addr_t)kdb_thrctx->pcb_eip) +#define PC_REGS() ((db_addr_t)kdb_frame->tf_eip) #define BKPT_INST 0xcc /* breakpoint instruction */ #define BKPT_SIZE (1) /* size of breakpoint inst */ --------------010805060609030306080003--