debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>I have one question in this context. Should we disable optimization when >building the kernel when we wish to enable kgdb or should we leave it intact.

Whenever possible, yes...disable optimization.... -O option and -g in
gcc don't play nicely together according to my experience. The DWARF
info will be somewhat fuzzed or even "corrupted"....so it might point
to wrong source line etc

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux