1698 |
|
|
1699 |
|
if (behavior != EXCEPTION_DEFAULT) { |
1700 |
|
thread_state_count = THREAD_STATE_MAX; |
1701 |
< |
kret = thread_get_state (thread_port, flavor, thread_state, |
1701 |
> |
kret = thread_get_state (thread_port, flavor, (natural_t *)&thread_state, |
1702 |
|
&thread_state_count); |
1703 |
|
MACH_CHECK_ERROR (thread_get_state, kret); |
1704 |
|
} |
1714 |
|
// fprintf(stderr, "forwarding to exception_raise_state\n"); |
1715 |
|
kret = exception_raise_state(port, exception_type, exception_data, |
1716 |
|
data_count, &flavor, |
1717 |
< |
thread_state, thread_state_count, |
1718 |
< |
thread_state, &thread_state_count); |
1717 |
> |
(natural_t *)&thread_state, thread_state_count, |
1718 |
> |
(natural_t *)&thread_state, &thread_state_count); |
1719 |
|
MACH_CHECK_ERROR (exception_raise_state, kret); |
1720 |
|
break; |
1721 |
|
case EXCEPTION_STATE_IDENTITY: |
1723 |
|
kret = exception_raise_state_identity(port, thread_port, task_port, |
1724 |
|
exception_type, exception_data, |
1725 |
|
data_count, &flavor, |
1726 |
< |
thread_state, thread_state_count, |
1727 |
< |
thread_state, &thread_state_count); |
1726 |
> |
(natural_t *)&thread_state, thread_state_count, |
1727 |
> |
(natural_t *)&thread_state, &thread_state_count); |
1728 |
|
MACH_CHECK_ERROR (exception_raise_state_identity, kret); |
1729 |
|
break; |
1730 |
|
default: |
1733 |
|
} |
1734 |
|
|
1735 |
|
if (behavior != EXCEPTION_DEFAULT) { |
1736 |
< |
kret = thread_set_state (thread_port, flavor, thread_state, |
1736 |
> |
kret = thread_set_state (thread_port, flavor, (natural_t *)&thread_state, |
1737 |
|
thread_state_count); |
1738 |
|
MACH_CHECK_ERROR (thread_set_state, kret); |
1739 |
|
} |