ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/sigsegv.h
(Generate patch)

Comparing BasiliskII/src/Unix/sigsegv.h (file contents):
Revision 1.4 by gbeauche, 2002-05-16T15:48:06Z vs.
Revision 1.7 by cebix, 2004-01-12T15:29:25Z

# Line 4 | Line 4
4   *  Derived from Bruno Haible's work on his SIGSEGV library for clisp
5   *  <http://clisp.sourceforge.net/>
6   *
7 < *  Basilisk II (C) 1997-2002 Christian Bauer
7 > *  Basilisk II (C) 1997-2004 Christian Bauer
8   *
9   *  This program is free software; you can redistribute it and/or modify
10   *  it under the terms of the GNU General Public License as published by
# Line 27 | Line 27
27   // Address type
28   typedef char * sigsegv_address_t;
29  
30 + // Transfer type (intended to be used a mask for sigsegv_*_ignore_range())
31 + enum sigsegv_transfer_type_t {
32 +        SIGSEGV_TRANSFER_UNKNOWN        = 0,
33 +        SIGSEGV_TRANSFER_LOAD           = 1,
34 +        SIGSEGV_TRANSFER_STORE          = 2,
35 + };
36 +
37 + // SIGSEGV handler return state
38 + enum sigsegv_return_t {
39 +  SIGSEGV_RETURN_SUCCESS,
40 +  SIGSEGV_RETURN_FAILURE,
41 +  SIGSEGV_RETURN_SKIP_INSTRUCTION,
42 + };
43 +
44   // Type of a SIGSEGV handler. Returns boolean expressing successful operation
45 < typedef bool (*sigsegv_fault_handler_t)(sigsegv_address_t fault_address, sigsegv_address_t instruction_address);
45 > typedef sigsegv_return_t (*sigsegv_fault_handler_t)(sigsegv_address_t fault_address, sigsegv_address_t instruction_address);
46  
47   // Type of a SIGSEGV state dump function
48   typedef void (*sigsegv_state_dumper_t)(sigsegv_address_t fault_address, sigsegv_address_t instruction_address);
# Line 39 | Line 53 | extern bool sigsegv_install_handler(sigs
53   // Remove the user SIGSEGV handler, revert to default behavior
54   extern void sigsegv_uninstall_handler(void);
55  
42 // Set SIGSEGV ignore state
43 extern void sigsegv_set_ignore_state(bool ignore_fault);
44
56   // Set callback function when we cannot handle the fault
57   extern void sigsegv_set_dump_state(sigsegv_state_dumper_t handler);
58  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines