186cb007fSWarner Losh /*- 272d44f31SMarcel Moolenaar * Copyright (c) 2004 Marcel Moolenaar 372d44f31SMarcel Moolenaar * All rights reserved. 472d44f31SMarcel Moolenaar * 572d44f31SMarcel Moolenaar * Redistribution and use in source and binary forms, with or without 672d44f31SMarcel Moolenaar * modification, are permitted provided that the following conditions 772d44f31SMarcel Moolenaar * are met: 872d44f31SMarcel Moolenaar * 972d44f31SMarcel Moolenaar * 1. Redistributions of source code must retain the above copyright 1072d44f31SMarcel Moolenaar * notice, this list of conditions and the following disclaimer. 1172d44f31SMarcel Moolenaar * 2. Redistributions in binary form must reproduce the above copyright 1272d44f31SMarcel Moolenaar * notice, this list of conditions and the following disclaimer in the 1372d44f31SMarcel Moolenaar * documentation and/or other materials provided with the distribution. 1472d44f31SMarcel Moolenaar * 1572d44f31SMarcel Moolenaar * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1672d44f31SMarcel Moolenaar * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1772d44f31SMarcel Moolenaar * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1872d44f31SMarcel Moolenaar * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 1972d44f31SMarcel Moolenaar * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2072d44f31SMarcel Moolenaar * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2172d44f31SMarcel Moolenaar * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2272d44f31SMarcel Moolenaar * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2372d44f31SMarcel Moolenaar * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2472d44f31SMarcel Moolenaar * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2572d44f31SMarcel Moolenaar * 2672d44f31SMarcel Moolenaar * $FreeBSD$ 2772d44f31SMarcel Moolenaar */ 2872d44f31SMarcel Moolenaar 2972d44f31SMarcel Moolenaar #ifndef _MACHINE_GDB_MACHDEP_H_ 3072d44f31SMarcel Moolenaar #define _MACHINE_GDB_MACHDEP_H_ 3172d44f31SMarcel Moolenaar 3272d44f31SMarcel Moolenaar #define GDB_BUFSZ 400 33*5eb95e11SJohn Baldwin #define GDB_NREGS 16 3472d44f31SMarcel Moolenaar #define GDB_REG_PC 8 3572d44f31SMarcel Moolenaar 3672d44f31SMarcel Moolenaar static __inline size_t 3772d44f31SMarcel Moolenaar gdb_cpu_regsz(int regnum __unused) 3872d44f31SMarcel Moolenaar { 3972d44f31SMarcel Moolenaar return (sizeof(int)); 4072d44f31SMarcel Moolenaar } 4172d44f31SMarcel Moolenaar 4272d44f31SMarcel Moolenaar static __inline int 4372d44f31SMarcel Moolenaar gdb_cpu_query(void) 4472d44f31SMarcel Moolenaar { 4572d44f31SMarcel Moolenaar return (0); 4672d44f31SMarcel Moolenaar } 4772d44f31SMarcel Moolenaar 4872d44f31SMarcel Moolenaar void *gdb_cpu_getreg(int, size_t *); 49bcc5241cSMarcel Moolenaar void gdb_cpu_setreg(int, void *); 5072d44f31SMarcel Moolenaar int gdb_cpu_signal(int, int); 5172d44f31SMarcel Moolenaar 5272d44f31SMarcel Moolenaar #endif /* !_MACHINE_GDB_MACHDEP_H_ */ 53