summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-24 22:51:42 +0000
committerphk <phk@FreeBSD.org>2004-02-24 22:51:42 +0000
commit340d0adc733a3ca225dfd8574971cacbaefe3223 (patch)
treebb113fe94ae9c5f851fb3741675c440b2451d5be /sys/conf
parent92d93444db44f4a55e1094808e37a1427824ef34 (diff)
downloadFreeBSD-src-340d0adc733a3ca225dfd8574971cacbaefe3223.zip
FreeBSD-src-340d0adc733a3ca225dfd8574971cacbaefe3223.tar.gz
Add DDB_NUMSYM option which in addition to the symbolic representation
also prints the actual numerical value of the symbol in question. Users of addr2line(1) will be less proficient in hex arithmetic as a consequence. This amongst other things means that traceback lines change from: siointr1(c4016800,c073bda0,0,c06b699c,69f) at siointr1+0xc5 to siointr1(c4016800,c073bda0,0,c06b699c,69f) at 0xc062b0bd = siointr1+0xc5 I made this an option to avoid bikesheds. ~ ~ ~
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/NOTES5
-rw-r--r--sys/conf/options1
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index b7f3a90..72c1d45 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -234,6 +234,11 @@ options SYSVMSG
options DDB
#
+# print the actual numerical value of symbols in addition to the
+# symbolic representation
+options DDB_NUMSYM
+
+#
# Use direct symbol lookup routines for ddb instead of the kernel linker
# ones, so that symbols (mostly) work before the kernel linker has been
# initialized. This is not the default because it breaks ddb's lookup of
diff --git a/sys/conf/options b/sys/conf/options
index d9c37d6..389d7b3 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -84,6 +84,7 @@ CY_PCI_FASTINTR
DDB
DDB_NOKLDSYM opt_ddb.h
DDB_TRACE
+DDB_NUMSYM opt_ddb.h
DDB_UNATTENDED
GDB_REMOTE_CHAT opt_ddb.h
GDBSPEED opt_ddb.h
OpenPOWER on IntegriCloud