* hppam3-nat.c: Change HP800_THREAD_STATE to TRACE_FLAVOR and

HP800_THREAD_STATE_COUNT to TRACE_FLAVOR_SIZE.
This commit is contained in:
Jeff Law 1995-06-21 19:29:00 +00:00
parent c3a9b88e1e
commit b3a34d4fc0
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
Wed Jun 21 13:24:41 1995 Jeff Law (law@snake.cs.utah.edu)
* hppam3-nat.c: Change HP800_THREAD_STATE to TRACE_FLAVOR and
HP800_THREAD_STATE_COUNT to TRACE_FLAVOR_SIZE.
Wed Jun 21 05:57:56 1995 Steve Chamberlain <sac@slash.cygnus.com> Wed Jun 21 05:57:56 1995 Steve Chamberlain <sac@slash.cygnus.com>
* monitor.c: Turn on caching. * monitor.c: Turn on caching.

View File

@ -41,7 +41,7 @@ fetch_inferior_registers (regno)
{ {
kern_return_t ret; kern_return_t ret;
thread_state_data_t state; thread_state_data_t state;
unsigned int stateCnt = HP800_THREAD_STATE_COUNT; unsigned int stateCnt = TRACE_FLAVOR_SIZE;
int index; int index;
if (! MACH_PORT_VALID (current_thread)) if (! MACH_PORT_VALID (current_thread))
@ -51,7 +51,7 @@ fetch_inferior_registers (regno)
setup_thread (current_thread, 1); setup_thread (current_thread, 1);
ret = thread_get_state (current_thread, ret = thread_get_state (current_thread,
HP800_THREAD_STATE, TRACE_FLAVOR,
state, state,
&stateCnt); &stateCnt);
@ -61,7 +61,7 @@ fetch_inferior_registers (regno)
else else
{ {
for (index = 0; index < NUM_REGS; index++) for (index = 0; index < NUM_REGS; index++)
supply_register (index,&state[index]); supply_register (index,(void*)&state[index]);
} }
if (must_suspend_thread) if (must_suspend_thread)
@ -80,7 +80,7 @@ store_inferior_registers (regno)
{ {
kern_return_t ret; kern_return_t ret;
thread_state_data_t state; thread_state_data_t state;
unsigned int stateCnt = HP800_THREAD_STATE_COUNT; unsigned int stateCnt = TRACE_FLAVOR_SIZE;
register int index; register int index;
if (! MACH_PORT_VALID (current_thread)) if (! MACH_PORT_VALID (current_thread))
@ -91,7 +91,7 @@ store_inferior_registers (regno)
/* Fetch the state of the current thread */ /* Fetch the state of the current thread */
ret = thread_get_state (current_thread, ret = thread_get_state (current_thread,
HP800_THREAD_STATE, TRACE_FLAVOR,
state, state,
&stateCnt); &stateCnt);
@ -128,9 +128,9 @@ store_inferior_registers (regno)
/* Write gdb's current view of register to the thread /* Write gdb's current view of register to the thread
*/ */
ret = thread_set_state (current_thread, ret = thread_set_state (current_thread,
HP800_THREAD_STATE, TRACE_FLAVOR,
state, state,
HP800_THREAD_STATE_COUNT); TRACE_FLAVOR_SIZE);
if (ret != KERN_SUCCESS) if (ret != KERN_SUCCESS)
warning ("store_inferior_registers (set): %s", warning ("store_inferior_registers (set): %s",