obtaining kernel.debug

Karol Kwiatkowski freebsd at orchid.homeunix.org
Sun Jan 7 23:10:26 UTC 2007


christopher floess wrote:
> On 1/7/07, Karol Kwiatkowski <freebsd at orchid.homeunix.org> wrote:
>>
>> christopher floess wrote:
>> > I've obtained a vmcore file, and now I just need kernel.debug.
>> >
>> > Is there a way to get this file using the new make procedure for
>> kernels?
>> > Can I just use the 'kernel' file, or is there a difference between
>> 'kernel'
>> > and 'kernel.debug'? Thanks for any help ~ Chris
>>
>> I'm also new to this so take it with a grain of salt.
>>
>> You'll need kernel with debug symbols (kernel.debug). Add this line to
>> your kernel config (it is included in 6.2 GENERIC):
>>
>> makeoptions     DEBUG=-g    # Build kernel with gdb(1) debug symbols
>>
>> The 'new make procedure' will produce both kernel and kernel.debug files
>> in obj/usr/src/sys/YOUR_KERNEL_NAME
> 
> 
> Sounds good, Karol. Will my current core file work with the recompiled
> kernel? Or will I have to generate a new one?

I've got no idea, cc'ing @freebsd-questions, someone here may have one.

Cheers,

Karol

-- 
Karol Kwiatkowski  <freebsd at orchid dot homeunix dot org>
OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070107/6b56e177/signature.pgp


More information about the freebsd-questions mailing list