From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,57b496ebad065b8d,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-11-16 19:18:09 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!cs.utexas.edu!uunet!news.encore.com!lucifer!ashekhar From: ashekhar@luciferencore.com (Ajay Shekhar) Subject: Response to LOADADDR/DEBUG_OPTION question Organization: Encore Computer Corperation Date: Tue, 16 Nov 1993 21:53:03 GMT Message-ID: Sender: ashekhar@lucifer (Ajay Shekhar) Nntp-Posting-Host: lucifer.encore.com 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 ...