1be050429SOlivier Houchard /*- 2be050429SOlivier Houchard * Copyright (c) 2006 Olivier Houchard 3be050429SOlivier Houchard * All rights reserved. 4be050429SOlivier Houchard * 5be050429SOlivier Houchard * Redistribution and use in source and binary forms, with or without 6be050429SOlivier Houchard * modification, are permitted provided that the following conditions 7be050429SOlivier Houchard * are met: 8be050429SOlivier Houchard * 9be050429SOlivier Houchard * 1. Redistributions of source code must retain the above copyright 10be050429SOlivier Houchard * notice, this list of conditions and the following disclaimer. 11be050429SOlivier Houchard * 2. Redistributions in binary form must reproduce the above copyright 12be050429SOlivier Houchard * notice, this list of conditions and the following disclaimer in the 13be050429SOlivier Houchard * documentation and/or other materials provided with the distribution. 14be050429SOlivier Houchard * 15be050429SOlivier Houchard * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16be050429SOlivier Houchard * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17be050429SOlivier Houchard * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18be050429SOlivier Houchard * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19be050429SOlivier Houchard * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20be050429SOlivier Houchard * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21be050429SOlivier Houchard * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22be050429SOlivier Houchard * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23be050429SOlivier Houchard * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24be050429SOlivier Houchard * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25be050429SOlivier Houchard * 26be050429SOlivier Houchard * $FreeBSD$ 27be050429SOlivier Houchard */ 28be050429SOlivier Houchard 29be050429SOlivier Houchard #ifndef _MACHINE_GDB_MACHDEP_H_ 30be050429SOlivier Houchard #define _MACHINE_GDB_MACHDEP_H_ 31be050429SOlivier Houchard 32be050429SOlivier Houchard #define GDB_BUFSZ 400 33be050429SOlivier Houchard #define GDB_NREGS 26 34be050429SOlivier Houchard #define GDB_REG_PC 15 35be050429SOlivier Houchard 36be050429SOlivier Houchard static __inline size_t 37be050429SOlivier Houchard gdb_cpu_regsz(int regnum __unused) 38be050429SOlivier Houchard { 39be050429SOlivier Houchard return (sizeof(int)); 40be050429SOlivier Houchard } 41be050429SOlivier Houchard 42be050429SOlivier Houchard static __inline int 43be050429SOlivier Houchard gdb_cpu_query(void) 44be050429SOlivier Houchard { 45be050429SOlivier Houchard return (0); 46be050429SOlivier Houchard } 47be050429SOlivier Houchard 48be050429SOlivier Houchard void *gdb_cpu_getreg(int, size_t *); 49be050429SOlivier Houchard void gdb_cpu_setreg(int, void *); 50be050429SOlivier Houchard int gdb_cpu_signal(int, int); 51be050429SOlivier Houchard 52be050429SOlivier Houchard #endif /* !_MACHINE_GDB_MACHDEP_H_ */ 53