Date: Sun, 3 Jan 2016 14:38:33 +0100 From: robbinson defau <robbinsondefau@gmail.com> To: freebsd-hackers@freebsd.org Subject: variables optimized out Message-ID: <CAA99N-OKyxzVaJ4ayXRUGAoovNtHFXTpOXPkwhdw9k3LEMnOtw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, Im debugging some issues in the kernel and as the kernel is compiled by default with -O2, a lot of variables are optimized out. So i made changes to make.conf (CFLAGS and COPTFLAGS).\ All builds fine, but I get the weirdest of panics that most certainly not happen with -O2. So it's likely i'm doing something wrong. What would be the correct way to be able to debug the kernel and have it build such that locals and function arguments are not optimized out? Thanks in advance, /DF
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAA99N-OKyxzVaJ4ayXRUGAoovNtHFXTpOXPkwhdw9k3LEMnOtw>