/usr/include/d/ldc/arm_unwind.c is in libphobos2-ldc-dev 1:0.17.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | /**
* Shims for libunwind macros on ARM.
*
* It would be possible to reimplement those entirely in D, but to avoid
* an unmaintainable amount of dependencies on internal implementation details,
* we use the C versions instead.
*
* Copyright: David Nadlinger, 2012.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: David Nadlinger
*/
#ifdef __ARM_EABI__
#include <unwind.h>
// clang's unwind.h doesn't have this
typedef struct _Unwind_Context _Unwind_Context;
_Unwind_Word _d_eh_GetIP(_Unwind_Context *context)
{
return _Unwind_GetIP(context);
}
void _d_eh_SetIP(_Unwind_Context *context, _Unwind_Word new_value)
{
_Unwind_SetIP(context, new_value);
}
_Unwind_Word _d_eh_GetGR(_Unwind_Context *context, int index)
{
return _Unwind_GetGR(context, index);
}
void _d_eh_SetGR(_Unwind_Context *context, int index, _Unwind_Word new_value)
{
_Unwind_SetGR(context, index, new_value);
}
#endif
|