db_output.c (273006) | db_output.c (298848) |
---|---|
1/*- 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 19 unchanged lines hidden (view full) --- 28 * Date: 7/90 29 */ 30 31/* 32 * Printf and character output for debugger. 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 19 unchanged lines hidden (view full) --- 28 * Date: 7/90 29 */ 30 31/* 32 * Printf and character output for debugger. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/ddb/db_output.c 273006 2014-10-12 18:01:52Z pfg $"); | 36__FBSDID("$FreeBSD: head/sys/ddb/db_output.c 298848 2016-04-30 14:41:18Z pfg $"); |
37 38#include "opt_ddb.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/cons.h> 43#include <sys/kdb.h> 44#include <sys/kernel.h> --- 21 unchanged lines hidden (view full) --- 66 * Instead, we count the number of spaces printed 67 * since the last printing character so that we 68 * don't print trailing spaces. This avoids most 69 * of the wraparounds. 70 */ 71static int db_output_position = 0; /* output column */ 72static int db_last_non_space = 0; /* last non-space character */ 73db_expr_t db_tab_stop_width = 8; /* how wide are tab stops? */ | 37 38#include "opt_ddb.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/cons.h> 43#include <sys/kdb.h> 44#include <sys/kernel.h> --- 21 unchanged lines hidden (view full) --- 66 * Instead, we count the number of spaces printed 67 * since the last printing character so that we 68 * don't print trailing spaces. This avoids most 69 * of the wraparounds. 70 */ 71static int db_output_position = 0; /* output column */ 72static int db_last_non_space = 0; /* last non-space character */ 73db_expr_t db_tab_stop_width = 8; /* how wide are tab stops? */ |
74#define NEXT_TAB(i) \ 75 ((((i) + db_tab_stop_width) / db_tab_stop_width) * db_tab_stop_width) | 74#define NEXT_TAB(i) rounddown((i) + db_tab_stop_width, db_tab_stop_width) |
76db_expr_t db_max_width = 79; /* output line width */ 77db_expr_t db_lines_per_page = 20; /* lines per page */ 78volatile int db_pager_quit; /* user requested quit */ 79static int db_newlines; /* # lines this page */ 80static int db_maxlines; /* max lines/page when paging */ 81static int ddb_use_printf = 0; 82SYSCTL_INT(_debug, OID_AUTO, ddb_use_printf, CTLFLAG_RW, &ddb_use_printf, 0, 83 "use printf for all ddb output"); --- 312 unchanged lines hidden --- | 75db_expr_t db_max_width = 79; /* output line width */ 76db_expr_t db_lines_per_page = 20; /* lines per page */ 77volatile int db_pager_quit; /* user requested quit */ 78static int db_newlines; /* # lines this page */ 79static int db_maxlines; /* max lines/page when paging */ 80static int ddb_use_printf = 0; 81SYSCTL_INT(_debug, OID_AUTO, ddb_use_printf, CTLFLAG_RW, &ddb_use_printf, 0, 82 "use printf for all ddb output"); --- 312 unchanged lines hidden --- |