diff options
author | neal <neal> | 2008-06-17 16:29:12 +0000 |
---|---|---|
committer | neal <neal> | 2008-06-17 16:29:12 +0000 |
commit | fbf4fc8b89e0dd81ca8d9cde93a40cb3750e483b (patch) | |
tree | 96952e71ecd28dd47e9e657353f101030b5a78dd /hurd | |
parent | dfa99abd30efa21d41f20935aa1d338c5fc50ffb (diff) |
2008-06-17 Neal H. Walfield <neal@gnu.org>
* exceptions.h (EXCEPTION_INFO_FMT): New define.
(EXCEPTION_INFO_PRINTF): Likewise.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/ChangeLog | 5 | ||||
-rw-r--r-- | hurd/exceptions.h | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/hurd/ChangeLog b/hurd/ChangeLog index 9a9e758..288b245 100644 --- a/hurd/ChangeLog +++ b/hurd/ChangeLog @@ -1,3 +1,8 @@ +2008-06-17 Neal H. Walfield <neal@gnu.org> + + * exceptions.h (EXCEPTION_INFO_FMT): New define. + (EXCEPTION_INFO_PRINTF): Likewise. + 2008-06-16 Neal H. Walfield <neal@gnu.org> * cap.h (as_dump_from): Remove declaration. diff --git a/hurd/exceptions.h b/hurd/exceptions.h index a359435..c1d1960 100644 --- a/hurd/exceptions.h +++ b/hurd/exceptions.h @@ -75,6 +75,14 @@ struct exception_info }; }; +#define EXCEPTION_INFO_FMT "%c%c%c %s %s" +#define EXCEPTION_INFO_PRINTF(info) \ + ((info).access & L4_FPAGE_READABLE ? 'r' : '~'), \ + ((info).access & L4_FPAGE_WRITABLE ? 'w' : '~'), \ + ((info).access & L4_FPAGE_EXECUTABLE ? 'r' : '~'), \ + cap_type_string ((info).type), \ + (info.discarded) ? "discarded" : "" + /* Raise a fault at address FAULT_ADDRESS. If IP is not 0, then IP is the value of the IP of the faulting thread at the time of the fault and SP the value of the stack pointer at the time of the fault. */ |