Date: Sat, 9 May 2015 19:03:47 -0400 From: Alexander Kabaev <kabaev@gmail.com> To: Sean Bruno <sbruno@ignoranthack.me> Cc: freebsd-hackers@freebsd.org Subject: Re: How to get anything useful out of kgdb? Message-ID: <20150509190347.10e1e2c2@kan> In-Reply-To: <554E5263.8010205@ignoranthack.me> References: <554E41EE.2010202@ignoranthack.me> <554E4BD1.1030802@ignoranthack.me> <406EAA27-D825-408B-985E-DC3FFE746473@frob.org> <554E5263.8010205@ignoranthack.me>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Sat, 09 May 2015 11:30:59 -0700 Sean Bruno <sbruno@ignoranthack.me> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > On 05/09/15 11:09, Jeff Meegan wrote: > > You could try -O0, but also if you just care about txr, go up to > > frame 12 where txr initialized to the context arg to em_handle_tx() > > and print it out there. > > > > -j > > I'm guessing that the place to change -O2 -> -O0 is in kern.pre.mk ? > > sean No, it means you need to iescover DEBUG and how it affects optimization level :) .if defined(DEBUG) _MINUS_O= -O CTFFLAGS+= -g .else ... Say, I have 'makeoptions DEBUG="-g -gdwarf-2"' in my kernel config file. -gdwarf-2 is probably not required anymore. -- Alexander Kabaev [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlVOklQACgkQQ6z1jMm+XZawEQCfdtOyX2ZDFNaeCuRs2ny8SgCi q30AoIKRovuIr1jaoo4zSs+f2PF1ss+e =PmPR -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150509190347.10e1e2c2>
