Deleted Added
full compact
gdb_cons.c (213305) gdb_cons.c (228631)
1/*-
2 * Copyright (c) 2006 Sam Leffler
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

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

27/*
28 * Support for redirecting console msgs to gdb. We register
29 * a pseudo console to hook cnputc and send stuff to the gdb
30 * port. The only trickiness here is buffering output so this
31 * isn't dog slow.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 Sam Leffler
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

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

27/*
28 * Support for redirecting console msgs to gdb. We register
29 * a pseudo console to hook cnputc and send stuff to the gdb
30 * port. The only trickiness here is buffering output so this
31 * isn't dog slow.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/gdb/gdb_cons.c 213305 2010-09-30 17:05:23Z avg $");
35__FBSDID("$FreeBSD: head/sys/gdb/gdb_cons.c 228631 2011-12-17 15:08:43Z avg $");
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/cons.h>
40#include <sys/kdb.h>
41#include <sys/kernel.h>
42#include <sys/malloc.h>
43#include <sys/reboot.h>

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

82 }
83}
84
85static void
86gdb_cnterm(struct consdev *cp)
87{
88}
89
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/cons.h>
40#include <sys/kdb.h>
41#include <sys/kernel.h>
42#include <sys/malloc.h>
43#include <sys/reboot.h>

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

82 }
83}
84
85static void
86gdb_cnterm(struct consdev *cp)
87{
88}
89
90static void
91gdb_cngrab(struct consdev *cp)
92{
93}
94
95static void
96gdb_cnungrab(struct consdev *cp)
97{
98}
99
90static int
91gdb_cngetc(struct consdev *cp)
92{
93 return -1;
94}
95
96static void
97gdb_tx_puthex(int c)

--- 78 unchanged lines hidden ---
100static int
101gdb_cngetc(struct consdev *cp)
102{
103 return -1;
104}
105
106static void
107gdb_tx_puthex(int c)

--- 78 unchanged lines hidden ---