Folks

Find a patch against the x86_64 4.3 link below for a bug in the port.  

Entering ef 00 causes an oops.  This has been fixed in the i386
version.  This may exist in 4.4 I'm not sure.

Thanks
-steve

--- old/arch/x86_64/kdb/kdbasupport.c   2004-12-15 14:00:53.000000000 +
0900
+++ new/arch/x86_64/kdb/kdbasupport.c   2004-12-15 14:02:30.000000000 +
0900
@@ -882,6 +882,11 @@
                struct kdbregs *rlp;
                kdb_machreg_t contents;

+               if (!regs) {
+                       kdb_printf("%s: pt_regs not available\n", __FUN
CTION__);
+                       return KDB_BADREG;
+               }
+
                for (i=0, rlp=kdbreglist; i<nkdbreglist; i++,rlp++) {
                        kdb_printf("%8s = ", rlp->reg_name);
                        kdba_getregcontents(rlp->reg_name, regs, &conte
nts);


On Tue, 2004-12-14 at 12:00, Steven Dake wrote:
> Folks,
> 
> Please find the following patch against the link below which fixes a
> disassembly bug in kdb.  If you continually disassemble, KDB oopses. 
> BFD_ARCH_SIZE was defined to 32 when it should be 64.  I am not sure if
> 4.4 also needs this fix.
> 
> --- old/arch/x86_64/kdb/bfd.h   2004-12-14 14:16:47.000000000 +0900
> +++ new/arch/x86_64/kdb/bfd.h   2004-12-14 14:17:22.000000000 +0900
> @@ -53,7 +53,7 @@
> 
>  /* These two lines get substitutions done by commands in Makefile.in.
>  */
>  #define BFD_VERSION  "2.9.5.0.22"
> -#define BFD_ARCH_SIZE 32
> +#define BFD_ARCH_SIZE 64
>  #define BFD_HOST_64BIT_LONG 0
>  #if 0
>  #define BFD_HOST_64_BIT
> 
> Thanks
> -steve
> 
> 
> 
> On Wed, 2004-11-03 at 02:54, Keith Owens wrote:
> > On Wed, 03 Nov 2004 01:44:45 -0700, 
> > Steven Dake <[EMAIL PROTECTED]> wrote:
> > >My bad I didn't know you had already done a port of kdb for x86_64 to
> > >2.4.  But I only see ia64 in the 4.3 directory.  Could you send me a
> > >copy of the 2.4.25 patch for kdb you did?
> > 
> > It's in there.
> > 
> > ftp://oss.sgi.com/projects/kdb/download/v4.3/kdb-v4.3-2.4.25-x86-64-1.bz2
> > 
> 
> ---------------------------
> Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.

---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.

Reply via email to