From fbf4fc8b89e0dd81ca8d9cde93a40cb3750e483b Mon Sep 17 00:00:00 2001 From: neal Date: Tue, 17 Jun 2008 16:29:12 +0000 Subject: 2008-06-17 Neal H. Walfield * exceptions.h (EXCEPTION_INFO_FMT): New define. (EXCEPTION_INFO_PRINTF): Likewise. --- hurd/ChangeLog | 5 +++++ hurd/exceptions.h | 8 ++++++++ 2 files changed, 13 insertions(+) (limited to 'hurd') 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 + + * exceptions.h (EXCEPTION_INFO_FMT): New define. + (EXCEPTION_INFO_PRINTF): Likewise. + 2008-06-16 Neal H. Walfield * 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. */ -- cgit v1.2.3