diff options
author | John Baldwin <jhb@FreeBSD.org> | 2006-11-17 16:41:56 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2006-11-17 16:41:56 +0000 |
commit | e6337905e5c9c9f6cb9043245946b223544d16dc (patch) | |
tree | dbc903cd52a5e53cc236934fefe052f9c9b7522d /sys/ddb/db_watch.c | |
parent | 5527d3ed75fda8c4dc34abd7adc1e61b8aa1e62e (diff) | |
download | src-e6337905e5c9c9f6cb9043245946b223544d16dc.tar.gz src-e6337905e5c9c9f6cb9043245946b223544d16dc.zip |
Fix the output format of MI ddb watches in 'show watch' on 64-bit
platforms.
Notes
Notes:
svn path=/head/; revision=164359
Diffstat (limited to 'sys/ddb/db_watch.c')
-rw-r--r-- | sys/ddb/db_watch.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c index 6783094ff027..b2be970715ad 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); |