summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-11-17 16:41:56 +0000
committerjhb <jhb@FreeBSD.org>2006-11-17 16:41:56 +0000
commitd036ad9b42b9f8ff51144bef254dcc9b09a7e883 (patch)
treedbc903cd52a5e53cc236934fefe052f9c9b7522d /sys/ddb
parent84450a55fbe290b53a28c71f7a01ee0371121dda (diff)
downloadFreeBSD-src-d036ad9b42b9f8ff51144bef254dcc9b09a7e883.zip
FreeBSD-src-d036ad9b42b9f8ff51144bef254dcc9b09a7e883.tar.gz
Fix the output format of MI ddb watches in 'show watch' on 64-bit
platforms.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_watch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c
index 6783094..b2be970 100644
--- a/sys/ddb/db_watch.c
+++ b/sys/ddb/db_watch.c
@@ -168,11 +168,19 @@ db_list_watchpoints()
return;
}
+#ifdef __LP64__
+ db_printf(" Map Address Size\n");
+#else
db_printf(" Map Address Size\n");
+#endif
for (watch = db_watchpoint_list;
watch != 0;
watch = watch->link)
+#ifdef __LP64__
+ db_printf("%s%16p %16lx %lx\n",
+#else
db_printf("%s%8p %8lx %lx\n",
+#endif
db_map_current(watch->map) ? "*" : " ",
(void *)watch->map, (long)watch->loaddr,
(long)watch->hiaddr - (long)watch->loaddr);
OpenPOWER on IntegriCloud