diff options
author | Bruce Evans <bde@FreeBSD.org> | 1997-01-16 11:27:11 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1997-01-16 11:27:11 +0000 |
commit | 7d350e72562682a00d90dc5ccf334fed22717839 (patch) | |
tree | 76d7df39d7e6b4353f2f4beec302cf6417b8bf8e /sys/i386/include/db_machdep.h | |
parent | b449e9a83efd4dc7c9b38254980e731e595926b0 (diff) | |
download | src-7d350e72562682a00d90dc5ccf334fed22717839.tar.gz src-7d350e72562682a00d90dc5ccf334fed22717839.zip |
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).
Notes
Notes:
svn path=/head/; revision=21767
Diffstat (limited to 'sys/i386/include/db_machdep.h')
-rw-r--r-- | sys/i386/include/db_machdep.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/i386/include/db_machdep.h b/sys/i386/include/db_machdep.h index dae26d79371d..633f4f3e3bb1 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_ */ |