summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/db_machdep.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-01-16 11:27:11 +0000
committerbde <bde@FreeBSD.org>1997-01-16 11:27:11 +0000
commit42a95278a7a28c4530c0f269551a9f148a5f7426 (patch)
tree76d7df39d7e6b4353f2f4beec302cf6417b8bf8e /sys/i386/include/db_machdep.h
parentaf224f8f64971f5993cdfd47aaa6a55aecc4c6f5 (diff)
downloadFreeBSD-src-42a95278a7a28c4530c0f269551a9f148a5f7426.zip
FreeBSD-src-42a95278a7a28c4530c0f269551a9f148a5f7426.tar.gz
Fixed printing of small offsets. E.g., -4(%ebp) is now printed
as -0x4(%ebp) instead of as _APTD+0xffc(%ebp), and if GUPROF is defined, 8(%ebp) is now printed as 0x8(%ebp) instead of as GMON_PROF_HIRES+0x4(%ebp).
Diffstat (limited to 'sys/i386/include/db_machdep.h')
-rw-r--r--sys/i386/include/db_machdep.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/i386/include/db_machdep.h b/sys/i386/include/db_machdep.h
index dae26d7..633f4f3 100644
--- a/sys/i386/include/db_machdep.h
+++ b/sys/i386/include/db_machdep.h
@@ -73,4 +73,19 @@ extern db_regs_t ddb_regs; /* register state */
#define inst_load(ins) 0
#define inst_store(ins) 0
+/*
+ * There no interesting addresses below _kstack = 0xefbfe000. There
+ * are small absolute values for GUPROF, but we don't want to see them.
+ * Treat "negative" addresses below _kstack as non-small to allow for
+ * future reductions of _kstack and to avoid sign extension problems.
+ *
+ * There is one interesting symbol above -db_maxoff = 0xffff0000,
+ * namely _APTD = 0xfffff000. Accepting this would mess up the
+ * printing of small negative offsets. The next largest symbol is
+ * _APTmap = 0xffc00000. Accepting this is OK (unless db_maxoff is
+ * set to >= 0x400000 - (max stack offset)).
+ */
+#define DB_SMALL_VALUE_MAX 0x7fffffff
+#define DB_SMALL_VALUE_MIN (-0x400001)
+
#endif /* !_MACHINE_DB_MACHDEP_H_ */
OpenPOWER on IntegriCloud