1139790Simp/*- 2131899Smarcel * Copyright (c) 2004 Marcel Moolenaar 3131899Smarcel * All rights reserved. 4131899Smarcel * 5131899Smarcel * Redistribution and use in source and binary forms, with or without 6131899Smarcel * modification, are permitted provided that the following conditions 7131899Smarcel * are met: 8131899Smarcel * 9131899Smarcel * 1. Redistributions of source code must retain the above copyright 10131899Smarcel * notice, this list of conditions and the following disclaimer. 11131899Smarcel * 2. Redistributions in binary form must reproduce the above copyright 12131899Smarcel * notice, this list of conditions and the following disclaimer in the 13131899Smarcel * documentation and/or other materials provided with the distribution. 14131899Smarcel * 15131899Smarcel * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16131899Smarcel * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17131899Smarcel * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18131899Smarcel * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19131899Smarcel * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20131899Smarcel * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21131899Smarcel * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22131899Smarcel * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23131899Smarcel * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24131899Smarcel * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25131899Smarcel * 26131899Smarcel * $FreeBSD: releng/10.2/sys/i386/include/gdb_machdep.h 139790 2005-01-06 22:18:23Z imp $ 27131899Smarcel */ 28131899Smarcel 29131899Smarcel#ifndef _MACHINE_GDB_MACHDEP_H_ 30131899Smarcel#define _MACHINE_GDB_MACHDEP_H_ 31131899Smarcel 32131899Smarcel#define GDB_BUFSZ 400 33131899Smarcel#define GDB_NREGS 14 34131899Smarcel#define GDB_REG_PC 8 35131899Smarcel 36131899Smarcelstatic __inline size_t 37131899Smarcelgdb_cpu_regsz(int regnum __unused) 38131899Smarcel{ 39131899Smarcel return (sizeof(int)); 40131899Smarcel} 41131899Smarcel 42131899Smarcelstatic __inline int 43131899Smarcelgdb_cpu_query(void) 44131899Smarcel{ 45131899Smarcel return (0); 46131899Smarcel} 47131899Smarcel 48131899Smarcelvoid *gdb_cpu_getreg(int, size_t *); 49138253Smarcelvoid gdb_cpu_setreg(int, void *); 50131899Smarcelint gdb_cpu_signal(int, int); 51131899Smarcel 52131899Smarcel#endif /* !_MACHINE_GDB_MACHDEP_H_ */ 53