Commit d4c56bd7 by Steve Kenton Committed by John David Anglin

linux-unwind.h: Guard with inhibit_libc.

	* pa/linux-unwind.h: Guard with inhibit_libc.
	* pa/hpux-unwind.h: Likewise.

From-SVN: r128396
parent c2ba9709
2007-09-11 Steve Kenton <skenton@ou.edu
* pa/linux-unwind.h: Guard with inhibit_libc.
* pa/hpux-unwind.h: Likewise.
2007-09-11 David Daney <ddaney@avtrex.com> 2007-09-11 David Daney <ddaney@avtrex.com>
* doc/invoke.texi: Document new MIPS -mllsc and -mno-llsc options. * doc/invoke.texi: Document new MIPS -mllsc and -mno-llsc options.
...@@ -29,6 +29,9 @@ Boston, MA 02110-1301, USA. */ ...@@ -29,6 +29,9 @@ Boston, MA 02110-1301, USA. */
/* Do code reading to identify a signal frame, and set the frame /* Do code reading to identify a signal frame, and set the frame
state data appropriately. See unwind-dw2.c for the structs. */ state data appropriately. See unwind-dw2.c for the structs. */
/* Don't use this if inhibit_libc is set.
The build for this target will fail trying to include missing headers. */
#ifndef inhibit_libc
#include <signal.h> #include <signal.h>
#include <sys/ucontext.h> #include <sys/ucontext.h>
#include <unistd.h> #include <unistd.h>
...@@ -358,3 +361,4 @@ pa_fallback_frame_state (struct _Unwind_Context *context, ...@@ -358,3 +361,4 @@ pa_fallback_frame_state (struct _Unwind_Context *context,
return _URC_END_OF_STACK; return _URC_END_OF_STACK;
} }
#endif /* inhibit_libc */
...@@ -29,6 +29,9 @@ Boston, MA 02110-1301, USA. */ ...@@ -29,6 +29,9 @@ Boston, MA 02110-1301, USA. */
/* Do code reading to identify a signal frame, and set the frame /* Do code reading to identify a signal frame, and set the frame
state data appropriately. See unwind-dw2.c for the structs. */ state data appropriately. See unwind-dw2.c for the structs. */
/* Don't use this if inhibit_libc is set.
The build for this target will fail trying to include missing headers. */
#ifndef inhibit_libc
#include <signal.h> #include <signal.h>
#include <sys/ucontext.h> #include <sys/ucontext.h>
...@@ -137,3 +140,4 @@ pa32_fallback_frame_state (struct _Unwind_Context *context, ...@@ -137,3 +140,4 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
fs->retaddr_column = DWARF_ALT_FRAME_RETURN_COLUMN; fs->retaddr_column = DWARF_ALT_FRAME_RETURN_COLUMN;
return _URC_NO_REASON; return _URC_NO_REASON;
} }
#endif /* inhibit_libc */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment