lkcd
[Top] [All Lists]

Re: Problem in using lcrash commands

To: ashisharora@xxxxxxxxxxxx
Subject: Re: Problem in using lcrash commands
From: Tom Morano <tjm@xxxxxxx>
Date: Tue, 21 Dec 1999 09:00:15 -0800
Cc: Matt Robinson <yakker@xxxxxxxxxxxxxxxxxxxx>, lkcd@xxxxxxxxxxx
References: <CJNACFNLJJBMCAAA@xxxxxxxxxxxx>
Sender: owner-lkcd@xxxxxxxxxxx
Ashish Arora wrote:
> 
> Dear Matt,
>         i am using the commands with the lcrash. In this i am unable to find 
> the proper usage for the commands. Whenever i type a command in lcrash, it 
> gives a message saying that the usage for the command is wrong. Can u tell me 
> where can i get to know about the proper usage for all those commands. I have 
> already gone through the help provided for each command but i am still unable 
> to overcome that problem.

It's hard to tell what's going on without an example of what you are trying.
Could you 
please provide such an example?

>          Also when i used the   whatis command with -s option it gave a  
> segmentation fault error and quitted from lcrash.

Hi Ashish,

I'm not sure what's going on here. The -s flag is not valid for the 'whatis'
command. When
I tried it, here's what I got...

>> whatis -s
Illegal comamnd line option: 's'
USAGE: whatis [-a] [-f] [-l] [-n] [-w outfile] expression

BTW, the whatis command doesn't do anything unless you first load in type
information from
a namelist file (one is created in the cmd/lcrash/lib/libklib directory). You
have to 
issue a command such as this:

>> addtypes namelist

Then you can do something like this...

>> whatis socket
struct socket {
        socket_state state;
        long unsigned int flags;
        struct proto_ops *ops;
        struct inode *inode;
        struct fasync_struct *fasync_list;
        struct file *file;
        struct sock *sk;
        struct wait_queue *wait;
        short int type;
        unsigned char passcred;
        unsigned char tli;
};

Hope this helps,

Tom

> --Ashish
> 
> --
> 
> On Tue, 14 Dec 1999 23:17:45   Matt Robinson wrote:
> >Ashish, have you read the FAQ?
> >
> >       http://oss.sgi.com/projects/lkcd/faq.html#2.3
> >
> >This should have answered your question.
> >
> >--Matt
> >
> >On Wed, 15 Dec 1999, Keith Owens wrote:
> >|>On Tue, 14 Dec 1999 22:27:17 -0800,
> >|>"Ashish Arora" <ashisharora@xxxxxxxxxxxx> wrote:
> >|>>          I applied the patch for the lkcd 1.0.3.  to the linux  kernel 
> >version 2.2.12 but i faced the problem that it was not able to find the 
> >declarations of    AS_KERNEL, AS_USER, AS_REMOTE etc.  I am attaching the 
> >file for reference.
> >|>
> >|>You have to apply the raw I/O patch (sgi+straw2.2.13.patch) *before*
> >|>the lkcd patch.
> >|>
> >
> >
> 
> LYCOShop is now open. On your mark, get set, SHOP!!!
> http://shop.lycos.com/

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