kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* How to compile Linux kernel with -O0 flag
@ 2016-08-13 18:15 Aleksander Alekseev
  2016-08-13 18:35 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Aleksander Alekseev @ 2016-08-13 18:15 UTC (permalink / raw)
  To: kernelnewbies

Hello

I'm currently exploring different ways of debugging Linux kernel. And I
noticed that for many variables gdb displays <optimized out>. Also from
experience of debugging ring3 code I know that sometimes debugger may
act crazy unless -O0 was used.

Apparently there is no corresponding option in `make menuconfig`. So
how do you solve this problem? Just `CFLAGS=-O0 make ...` or somehow
else? I wonder what is the "right" way of doing it because you know,
it's a kernel, it can accidentally break something unless you are
careful :)

-- 
Best regards,
Aleksander Alekseev

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-08-14 14:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-13 18:15 How to compile Linux kernel with -O0 flag Aleksander Alekseev
2016-08-13 18:35 ` Greg KH
2016-08-13 18:56   ` Aleksander Alekseev
2016-08-13 19:12     ` Greg KH
2016-08-13 19:15     ` Mike Krinkin
2016-08-14 11:11     ` Hao Lee
2016-08-14 11:31       ` Greg KH
2016-08-14 12:05         ` Hao Lee
2016-08-14 14:20         ` Yann Droneaud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).