1bf21cd93STycho Nightingale /*- 2*32640292SAndy Fiddaman * SPDX-License-Identifier: BSD-2-Clause 34c87aefeSPatrick Mooney * 44c87aefeSPatrick Mooney * Copyright (c) 2017 John H. Baldwin <jhb@FreeBSD.org> 5bf21cd93STycho Nightingale * 6bf21cd93STycho Nightingale * Redistribution and use in source and binary forms, with or without 7bf21cd93STycho Nightingale * modification, are permitted provided that the following conditions 8bf21cd93STycho Nightingale * are met: 9bf21cd93STycho Nightingale * 1. Redistributions of source code must retain the above copyright 10bf21cd93STycho Nightingale * notice, this list of conditions and the following disclaimer. 11bf21cd93STycho Nightingale * 2. Redistributions in binary form must reproduce the above copyright 12bf21cd93STycho Nightingale * notice, this list of conditions and the following disclaimer in the 13bf21cd93STycho Nightingale * documentation and/or other materials provided with the distribution. 14bf21cd93STycho Nightingale * 154c87aefeSPatrick Mooney * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16bf21cd93STycho Nightingale * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17bf21cd93STycho Nightingale * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 184c87aefeSPatrick Mooney * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19bf21cd93STycho Nightingale * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20bf21cd93STycho Nightingale * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21bf21cd93STycho Nightingale * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22bf21cd93STycho Nightingale * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23bf21cd93STycho Nightingale * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24bf21cd93STycho Nightingale * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25bf21cd93STycho Nightingale * SUCH DAMAGE. 26bf21cd93STycho Nightingale */ 27bf21cd93STycho Nightingale 284c87aefeSPatrick Mooney #ifndef __GDB_H__ 294c87aefeSPatrick Mooney #define __GDB_H__ 30bf21cd93STycho Nightingale 31*32640292SAndy Fiddaman void gdb_cpu_add(struct vcpu *vcpu); 32*32640292SAndy Fiddaman void gdb_cpu_breakpoint(struct vcpu *vcpu, struct vm_exit *vmexit); 33*32640292SAndy Fiddaman void gdb_cpu_mtrap(struct vcpu *vcpu); 34*32640292SAndy Fiddaman void gdb_cpu_suspend(struct vcpu *vcpu); 35b0de25cbSAndy Fiddaman void init_gdb(struct vmctx *ctx); 36c3d209caSPatrick Mooney #ifndef __FreeBSD__ 37b0de25cbSAndy Fiddaman void init_mdb(struct vmctx *ctx); 38c3d209caSPatrick Mooney #endif 39bf21cd93STycho Nightingale 404c87aefeSPatrick Mooney #endif /* !__GDB_H__ */ 41