gdb_machdep.h revision 138253
182547Smike/* 282547Smike * Copyright (c) 2004 Marcel Moolenaar 382547Smike * All rights reserved. 482547Smike * 582547Smike * Redistribution and use in source and binary forms, with or without 682547Smike * modification, are permitted provided that the following conditions 782547Smike * are met: 882547Smike * 982547Smike * 1. Redistributions of source code must retain the above copyright 1082547Smike * notice, this list of conditions and the following disclaimer. 1182547Smike * 2. Redistributions in binary form must reproduce the above copyright 1282547Smike * notice, this list of conditions and the following disclaimer in the 1382547Smike * documentation and/or other materials provided with the distribution. 1482547Smike * 1582547Smike * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1682547Smike * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1782547Smike * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1882547Smike * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 1982547Smike * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2082547Smike * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2182547Smike * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2282547Smike * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2382547Smike * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2482547Smike * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2582547Smike * 2682547Smike * $FreeBSD: head/sys/ia64/include/gdb_machdep.h 138253 2004-12-01 06:40:35Z marcel $ 2782547Smike */ 2882547Smike 2982547Smike#ifndef _MACHINE_GDB_MACHDEP_H_ 3082547Smike#define _MACHINE_GDB_MACHDEP_H_ 31117280Scharnier 32117280Scharnier#define GDB_NREGS 462 33117280Scharnier#define GDB_REG_PC 331 3482547Smike 3582547Smike#define GDB_BUFSZ (GDB_NREGS*16+128*16) 3682547Smike 3782547Smikestatic __inline size_t 3882547Smikegdb_cpu_regsz(int regnum) 3982547Smike{ 4082547Smike return ((regnum >= 128 && regnum < 256) ? 16 : 8); 4182547Smike} 4282547Smike 4382547Smikevoid *gdb_cpu_getreg(int, size_t *); 4482547Smikevoid gdb_cpu_setreg(int, void *); 4582547Smikeint gdb_cpu_signal(int, int); 4682547Smikeint gdb_cpu_query(void); 4782547Smike 4882547Smike#endif /* !_MACHINE_GDB_MACHDEP_H_ */ 4982547Smike