Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Sep 2004 16:45:02 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Brian Fundakowski Feldman <green@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/i386 gdb_machdep.csrc/sys/i386/include db_machdep.h
Message-ID:  <4148D3FE.5060508@elischer.org>
In-Reply-To: <20040915233915.GI36708@green.homeunix.org>
References:  <200409152326.i8FNQnOV009184@repoman.freebsd.org> <20040915233915.GI36708@green.homeunix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
feel free if it's a bug..
I only committed the patch that fixes my problem ;-)

does it do the same thing?


Brian Fundakowski Feldman wrote:

>On Wed, Sep 15, 2004 at 11:26:49PM +0000, Julian Elischer wrote:
>  
>
>>julian      2004-09-15 23:26:49 UTC
>>
>>  FreeBSD src repository
>>
>>  Modified files:
>>    sys/i386/i386        gdb_machdep.c 
>>    sys/i386/include     db_machdep.h 
>>  Log:
>>  Fix breakpoint handling for i386.
>>          not sure yet about 5.x... MFC if needed.
>>  Also fixes small problems with examining some registers and
>>  some specific gdb transfer problems.
>>  
>>          As the patch says:
>>          This is not a pretty patch and only meant as a temporary
>>          fix until a better solution is committed.
>>  
>>  PR:             i386/71715
>>  Submitted by:   Stephan Uphoff <ups@tree.com>
>>  MFC after:      1 week
>>    
>>
>
>What about this change I'm still using with KDB so that break points
>don't crash my system as immediately?
>
>--- include/db_machdep.h	10 Jul 2004 23:47:19 -0000	1.18
>+++ include/db_machdep.h	27 Aug 2004 23:14:12 -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 */
>
>  
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4148D3FE.5060508>