summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_examine.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-10-27 20:19:11 +0000
committerjhb <jhb@FreeBSD.org>2007-10-27 20:19:11 +0000
commit77551ac052e527f238981be677e40a873eb81d42 (patch)
treeb1ae768a76d116ea7588b90be234de091558eebb /sys/ddb/db_examine.c
parentb4d6e528d29958497e84463bb2c022caab0fb35c (diff)
downloadFreeBSD-src-77551ac052e527f238981be677e40a873eb81d42.zip
FreeBSD-src-77551ac052e527f238981be677e40a873eb81d42.tar.gz
Make the examine command honor db_pager_quit so you can use 'q' or 'x'
at the pager prompt to abort an examine command that spans multiple pages. MFC after: 1 week
Diffstat (limited to 'sys/ddb/db_examine.c')
-rw-r--r--sys/ddb/db_examine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ddb/db_examine.c b/sys/ddb/db_examine.c
index b9d4353..eba6151 100644
--- a/sys/ddb/db_examine.c
+++ b/sys/ddb/db_examine.c
@@ -80,7 +80,7 @@ db_examine(addr, fmt, count)
int width;
char * fp;
- while (--count >= 0) {
+ while (--count >= 0 && !db_pager_quit) {
fp = fmt;
size = 4;
while ((c = *fp++) != 0) {
OpenPOWER on IntegriCloud