From: afiskon@devzen.ru (Aleksander Alekseev)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to compile Linux kernel with -O0 flag
Date: Sat, 13 Aug 2016 21:15:16 +0300 [thread overview]
Message-ID: <20160813211516.7a8dace1@e733> (raw)
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
next reply other threads:[~2016-08-13 18:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-13 18:15 Aleksander Alekseev [this message]
2016-08-13 18:35 ` How to compile Linux kernel with -O0 flag 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160813211516.7a8dace1@e733 \
--to=afiskon@devzen.ru \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.