Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Bob Harris <harris@zk3.dec.com>
Subject: Re: Kernel debugging ..
Date: Wed, 25 Jul 2001 10:43:49 -0400	[thread overview]
Message-ID: <250720011043497535%harris@zk3.dec.com> (raw)
In-Reply-To: 2f6bec0a.0107250034.3f8a3a2e@posting.google.com

[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

In article <2f6bec0a.0107250034.3f8a3a2e@posting.google.com>, Ginny E.
Kim <banny52@yahoo.com> wrote:

X  I got following message while I am willing to debugging kernel..
X  
X  [/]#dbx -k /vmunix
X  dbx version 5.1
X  Type 'help' for help.
X  
X  main:    Source not available
X  
X  warning: Files compiled -g3: parameter values probably wrong
X  (dbx) 
X  
X  
X  How can I do to use -g compiling option?

The kernel sources would need to be recompiled to change this.  If you
have a source license, then that is a different issue.

For what it is worth, the developers (or at least most of them) do not
recompile to change the -g option either.  We just debug using what is
provided by the development build environment.  At most we might
recompile a module we are activily working on with different options
just for testing.

And the part about parameter values probably wrong is refering to
function calling parameters displayed in dbx call stack listings. 
Because of the compiler optimizations and passing parameters via
registers, it is difficult for dbx to accurately display what the
calling parameters look like (expecially if the compiler has reused the
register for another call and did had already used the current
functions parameter so it did not need to save it anywhere.

When analyzing a crash dump, it can be a lot of fun trying to find out
just what values a function was called with.  I've sometimes had to go
up several levels of function, and disassemble the code to find where a
value might have originated from.  And sometimes it is just not
possible to find the value of a function parameter.

                                        Bob Harris


  reply	other threads:[~2001-07-25 14:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-25  8:34 Kernel debugging Ginny E. Kim
2001-07-25 14:43 ` Bob Harris [this message]
2001-07-27 13:33 ` Andrew Duane USG
2001-08-02  4:02   ` Ginny E. Kim
2001-08-02 14:23     ` Tony Verhulst
2001-08-01  1:41 ` Ric Werme
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox