mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-21 08:24:10 +01:00
Fix the output format of MI ddb watches in 'show watch' on 64-bit
platforms.
This commit is contained in:
parent
5527d3ed75
commit
e6337905e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164359
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user