diff options
author | phk <phk@FreeBSD.org> | 2004-02-24 22:51:42 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-24 22:51:42 +0000 |
commit | 340d0adc733a3ca225dfd8574971cacbaefe3223 (patch) | |
tree | bb113fe94ae9c5f851fb3741675c440b2451d5be /sys/ddb | |
parent | 92d93444db44f4a55e1094808e37a1427824ef34 (diff) | |
download | FreeBSD-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/ddb')
-rw-r--r-- | sys/ddb/db_sym.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index 2ab3ede..5714950 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -37,6 +37,8 @@ __FBSDID("$FreeBSD$"); #include <ddb/ddb.h> #include <ddb/db_sym.h> +#include <opt_ddb.h> + /* * Multiple symbol tables */ @@ -308,7 +310,11 @@ db_printsym(off, strategy) db_printf("%#lr", (unsigned long)off); return; } +#ifdef DDB_NUMSYM + db_printf("%#lr = %s", (unsigned long)off, name); +#else db_printf("%s", name); +#endif if (d) db_printf("+%+#lr", (long)d); if (strategy == DB_STGY_PROC) { |