Deleted Added
full compact
db_output.c (256281) db_output.c (273265)
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: stable/10/sys/ddb/db_output.c 207922 2010-05-11 17:01:14Z attilio $");
36__FBSDID("$FreeBSD: stable/10/sys/ddb/db_output.c 273265 2014-10-18 19:22:59Z 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>

--- 41 unchanged lines hidden (view full) ---

86static void db_puts(const char *str);
87static void db_putchar(int c, void *arg);
88static void db_pager(void);
89
90/*
91 * Force pending whitespace.
92 */
93void
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>

--- 41 unchanged lines hidden (view full) ---

86static void db_puts(const char *str);
87static void db_putchar(int c, void *arg);
88static void db_pager(void);
89
90/*
91 * Force pending whitespace.
92 */
93void
94db_force_whitespace()
94db_force_whitespace(void)
95{
96 register int last_print, next_tab;
97
98 last_print = db_last_non_space;
99 while (last_print < db_output_position) {
100 next_tab = NEXT_TAB(last_print);
101 if (next_tab <= db_output_position) {
102 while (last_print < next_tab) { /* DON'T send a tab!!! */

--- 200 unchanged lines hidden (view full) ---

303 db_newlines = 0;
304 db_capture_exitpager();
305}
306
307/*
308 * Return output position
309 */
310int
95{
96 register int last_print, next_tab;
97
98 last_print = db_last_non_space;
99 while (last_print < db_output_position) {
100 next_tab = NEXT_TAB(last_print);
101 if (next_tab <= db_output_position) {
102 while (last_print < next_tab) { /* DON'T send a tab!!! */

--- 200 unchanged lines hidden (view full) ---

303 db_newlines = 0;
304 db_capture_exitpager();
305}
306
307/*
308 * Return output position
309 */
310int
311db_print_position()
311db_print_position(void)
312{
313 return (db_output_position);
314}
315
316/*
317 * Printing
318 */
319int

--- 76 unchanged lines hidden ---
312{
313 return (db_output_position);
314}
315
316/*
317 * Printing
318 */
319int

--- 76 unchanged lines hidden ---