From: ashekhar@luciferencore.com (Ajay Shekhar)
Subject: Response to LOADADDR/DEBUG_OPTION question
Date: Tue, 16 Nov 1993 21:53:03 GMT [thread overview]
Message-ID: <CGLu4H.H83@encore.com> (raw)
In article <2bkcj0$kpb@dekalb.DC.PeachNet.EDU>, you write:
|> In the system config file, the following three lines appear:
|>
|> makeoptions CDEBUGOPTS="-g3"
It's basically like any other C program. The cc manual says
-g3 Produce symbol table information for full symbolic deb
ugging for fully optimized code. This flag makes the
debugger inaccurate.
So if this is what you want, this should be done.
|> makeoptions PROFOPTS="-DPROFILING -DPROFTYPE=4"
I have it turned off, while I am doing kernel debugging, so
presumably in normal operations it is definitely not needed.
|> makeoptions LOADADDR="fffffc0000250000"
|>
|> Does debugging and profiling have to be turned on? Is the
LOADADDR
|> relavent to the debugging and profileing options?
Yes, if you want to do kernel debugging, the load address is important.
This address is the load address, for debugging the kernel (using kdebug
- maybe the other debuggers kdbx etc also use this - I am not sure).
If a debuggable kernel is NOT built, then I believe, that the LOADADDR
is picked up from "template.std.mk", and is fffffc0000230000.
Commenting this line will ensure, that you build a kernel that cannot be
debugged using kdb. However, if you leave this line in, it does not mean
that you cannot boot the kernel without a debugger of some sort.
To boot the kernel, in a debugger mode, you have to specify
"set boot_osflags k". A normal boot is "set boot_osflags A". So, just
specifying "b" when you are booting, and leaving this line in, should be
OK.
|> In other words,
|> if the CDEBUGOPTS is set to -O and PROFOPTS is set to "", is the
|> LOADADDR affected?
|>
No
|> Is there much of a diff. in speed if -O is used in this case vs. -g3?
No idea !
--
Ajay Shekhar
(ashekhar@encore.com)
Disclaimer : Nothing I ever say reflects Encore's opinions ...
reply other threads:[~1993-11-16 21:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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