binutils-gdb/gdb/exc_request.defs
Flavio Cruz 64e3e92fe0 Hurd port: update interface to match upstream and fix warnings.
We have recently updated the interface for raising exceptions to use
long [1] and updated mach_port_t to be "unsigned int". This patches fixes
those problems and will help us port GDB to Hurd x86_64.

Tested on Hurd i686 and x86_64.

[1] https://git.savannah.gnu.org/cgit/hurd/gnumach.git/tree/include/mach/exc.defs

Approved-By: Simon Marchi <simon.marchi@efficios.com>
2024-06-25 13:05:37 -04:00

52 lines
1.5 KiB
Plaintext

/*
* Mach Operating System
* Copyright (c) 1993,1991,1990,1989,1988,1987 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/*
* Abstract:
* MiG definitions file for Mach exception interface (request half).
*/
subsystem exc 2400;
#include <mach/std_types.defs>
#ifdef USERPREFIX
userprefix USERPREFIX;
#endif
#ifdef SERVERPREFIX
serverprefix SERVERPREFIX;
#endif
simpleroutine exception_raise_request (
exception_port : mach_port_t;
replyport reply : mach_port_send_once_t;
thread : mach_port_t;
task : mach_port_t;
exception : integer_t;
code : integer_t;
subcode : rpc_long_integer_t);