1178172Simp/*- 2178172Simp * Copyright (c) 2004 Marcel Moolenaar 3178172Simp * All rights reserved. 4178172Simp * 5178172Simp * Redistribution and use in source and binary forms, with or without 6178172Simp * modification, are permitted provided that the following conditions 7178172Simp * are met: 8178172Simp * 9178172Simp * 1. Redistributions of source code must retain the above copyright 10178172Simp * notice, this list of conditions and the following disclaimer. 11178172Simp * 2. Redistributions in binary form must reproduce the above copyright 12178172Simp * notice, this list of conditions and the following disclaimer in the 13178172Simp * documentation and/or other materials provided with the distribution. 14178172Simp * 15178172Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16178172Simp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17178172Simp * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18178172Simp * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19178172Simp * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20178172Simp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21178172Simp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22178172Simp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23178172Simp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24178172Simp * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25178172Simp * 26178172Simp * from: src/sys/alpha/include/gdb_machdep.h,v 1.3 2005/01/05 20:05:50 imp 27178172Simp * JNPR: gdb_machdep.h,v 1.1 2007/08/09 12:25:25 katta 28178172Simp * $FreeBSD: releng/10.3/sys/mips/include/gdb_machdep.h 202175 2010-01-12 21:36:08Z imp $ 29178172Simp */ 30178172Simp 31178172Simp#ifndef _MACHINE_GDB_MACHDEP_H_ 32178172Simp#define _MACHINE_GDB_MACHDEP_H_ 33178172Simp 34178172Simp#define GDB_BUFSZ 600 35178172Simp#define GDB_NREGS 90 36178172Simp#define GDB_REG_PC 37 37178172Simp 38178172Simpstatic __inline size_t 39178172Simpgdb_cpu_regsz(int regnum) 40178172Simp{ 41178172Simp 42178172Simp return (sizeof(long)); 43178172Simp} 44178172Simp 45178172Simpstatic __inline int 46178172Simpgdb_cpu_query(void) 47178172Simp{ 48178172Simp 49178172Simp return (0); 50178172Simp} 51178172Simp 52178172Simpvoid *gdb_cpu_getreg(int, size_t *); 53178172Simpvoid gdb_cpu_setreg(int, void *); 54178172Simpint gdb_cpu_signal(int, int); 55178172Simp 56178172Simp#endif /* !_MACHINE_GDB_MACHDEP_H_ */ 57