Date: Sat, 09 May 2015 10:20:46 -0700 From: Sean Bruno <sbruno@ignoranthack.me> To: freebsd-hackers@freebsd.org Subject: How to get anything useful out of kgdb? Message-ID: <554E41EE.2010202@ignoranthack.me>
next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 tl;dr What are the kernel config options to get good output of kgdb? I'm trying to get the ability to debug and display internal variables, as one does, with kgdb. I'm *must* be doing this wrong as I cannot get any useful output from accessing variables that were JUST accessed in order to invoke a panic() that I have inserted. This is a GENERIC kernel without INVARIANTS and without WITNESS: https://people.freebsd.org/~sbruno/wtf_kgdb.txt I seem to have debug enabled and am able to browse source, but I obviously haven't compiled correctly as things are optimized out. sean -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJVTkHqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k4w4H/jv2BlUW4OiK5TPcor+32HVC 1GxRJz8nkub8y5E04K0BCVKieulOFXm8+yWjRwGPKW58G8mz/gzHUiip9GjYgnW3 sTBF2p+JvaB4/69AwsNKur7oCzmdM5pT5MBgWuXxGw41mCWuYO2zimmuFZc1iPf1 7QX8CeVGU9tHvndMw1nCZx2/R+3GL0SDtRvk0N7NYGij04NvmPwWKm4bGdbMZjOG NJncTCiVKKW2zQmxq4AYZpLo+odoT2DgbIXz9KXPNMDixg22Tx5+o2/OL4dJ8mpu U5kzLmPFhumUKEsG1uSnxRb7snWJQBKdTkEOx+qbMGPCHoUd6gGV1wq8XJsV8+M= =4KG4 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?554E41EE.2010202>