How to get anything useful out of kgdb?
Alexander Kabaev
kabaev at gmail.com
Sat May 9 23:04:02 UTC 2015
On Sat, 09 May 2015 11:30:59 -0700
Sean Bruno <sbruno at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20150509/f9defa86/attachment.sig>
More information about the freebsd-hackers
mailing list