1160332Scognet/*- 2160332Scognet * Copyright (c) 2006 Olivier Houchard 3160332Scognet * All rights reserved. 4160332Scognet * 5160332Scognet * Redistribution and use in source and binary forms, with or without 6160332Scognet * modification, are permitted provided that the following conditions 7160332Scognet * are met: 8160332Scognet * 9160332Scognet * 1. Redistributions of source code must retain the above copyright 10160332Scognet * notice, this list of conditions and the following disclaimer. 11160332Scognet * 2. Redistributions in binary form must reproduce the above copyright 12160332Scognet * notice, this list of conditions and the following disclaimer in the 13160332Scognet * documentation and/or other materials provided with the distribution. 14160332Scognet * 15160332Scognet * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16160332Scognet * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17160332Scognet * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18160332Scognet * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19160332Scognet * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20160332Scognet * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21160332Scognet * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22160332Scognet * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23160332Scognet * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24160332Scognet * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25160332Scognet * 26160332Scognet * $FreeBSD$ 27160332Scognet */ 28160332Scognet 29160332Scognet#ifndef _MACHINE_GDB_MACHDEP_H_ 30160332Scognet#define _MACHINE_GDB_MACHDEP_H_ 31160332Scognet 32160332Scognet#define GDB_BUFSZ 400 33160332Scognet#define GDB_NREGS 26 34160332Scognet#define GDB_REG_PC 15 35160332Scognet 36160332Scognetstatic __inline size_t 37160332Scognetgdb_cpu_regsz(int regnum __unused) 38160332Scognet{ 39160332Scognet return (sizeof(int)); 40160332Scognet} 41160332Scognet 42160332Scognetstatic __inline int 43160332Scognetgdb_cpu_query(void) 44160332Scognet{ 45160332Scognet return (0); 46160332Scognet} 47160332Scognet 48160332Scognetvoid *gdb_cpu_getreg(int, size_t *); 49160332Scognetvoid gdb_cpu_setreg(int, void *); 50160332Scognetint gdb_cpu_signal(int, int); 51160332Scognet 52160332Scognet#endif /* !_MACHINE_GDB_MACHDEP_H_ */ 53