lkcd
[Top] [All Lists]

Alpha lkcd port: bzero problem

To: lkcd@xxxxxxxxxxx
Subject: Alpha lkcd port: bzero problem
From: Brian Hall <brianw.hall@xxxxxxxxxx>
Date: Tue, 18 Apr 2000 13:22:51 -0600 (MDT)
Cc: axp-list@xxxxxxxxxx, clinux@xxxxxxxxxxx
Reply-to: Brian Hall <brianw.hall@xxxxxxxxxx>
Sender: owner-lkcd@xxxxxxxxxxx
I have made my attempt at integrating the Alpha debugger from gdb-4.1.8 into
lcrash. However, now when I run lcrash (directly at the command line or via a
real crash), I get this in gdb:

Starting program: /CDR_UPLOAD/hallb/linux-2.2.13-1.0.3/cmd/lcrash/./lcrash
map = /boot/System.map, vmdump = /dev/mem, outfile = stdout
 
Please wait...
Program received signal SIGSEGV, Segmentation fault.
__bzero () at ../sysdeps/alpha/bzero.S:107
107     ../sysdeps/alpha/bzero.S: No such file or directory.
Current language:  auto; currently asm
(gdb) where
#0  __bzero () at ../sysdeps/alpha/bzero.S:107
#1  0x12002b7e8 in alloc_klib () at klib.c:191
#2  0x12002b8f0 in kl_init_klib (map=0x120164c30 "/boot/System.map",
vmdump=0x120164f30 "/dev/mem", namelist=0x120164d30 "",
    flags=0) at klib.c:220
#3  0x1200029b0 in main (argc=1, argv=0x11ffffc28) at main.c:182   



>From klib.c, allock_klib:

static klib_t *
alloc_klib()
{
        klib_t *klp;

/*      if (klp = (klib_t *)malloc(sizeof(klib_t))) { */
                bzero(klp, sizeof(klib_t));
/*      }*/
        return(klp);
}

Does bzero work correctly on Alpha? Or are my arguments invalid?


-- 
http://www.bigfoot.com/~brihall
Linux Consultant

<Prev in Thread] Current Thread [Next in Thread>