From b3a34d4fc035df8ca615dfe2e48accb0fb3a9e24 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 21 Jun 1995 19:29:00 +0000 Subject: [PATCH] * hppam3-nat.c: Change HP800_THREAD_STATE to TRACE_FLAVOR and HP800_THREAD_STATE_COUNT to TRACE_FLAVOR_SIZE. --- gdb/ChangeLog | 5 +++++ gdb/hppam3-nat.c | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d8628f4822c..5fea4190c8e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 * monitor.c: Turn on caching. diff --git a/gdb/hppam3-nat.c b/gdb/hppam3-nat.c index 237782272e4..386b0d9f5e6 100644 --- a/gdb/hppam3-nat.c +++ b/gdb/hppam3-nat.c @@ -41,7 +41,7 @@ fetch_inferior_registers (regno) { kern_return_t ret; thread_state_data_t state; - unsigned int stateCnt = HP800_THREAD_STATE_COUNT; + unsigned int stateCnt = TRACE_FLAVOR_SIZE; int index; if (! MACH_PORT_VALID (current_thread)) @@ -51,7 +51,7 @@ fetch_inferior_registers (regno) setup_thread (current_thread, 1); ret = thread_get_state (current_thread, - HP800_THREAD_STATE, + TRACE_FLAVOR, state, &stateCnt); @@ -61,7 +61,7 @@ fetch_inferior_registers (regno) else { for (index = 0; index < NUM_REGS; index++) - supply_register (index,&state[index]); + supply_register (index,(void*)&state[index]); } if (must_suspend_thread) @@ -80,7 +80,7 @@ store_inferior_registers (regno) { kern_return_t ret; thread_state_data_t state; - unsigned int stateCnt = HP800_THREAD_STATE_COUNT; + unsigned int stateCnt = TRACE_FLAVOR_SIZE; register int index; if (! MACH_PORT_VALID (current_thread)) @@ -91,7 +91,7 @@ store_inferior_registers (regno) /* Fetch the state of the current thread */ ret = thread_get_state (current_thread, - HP800_THREAD_STATE, + TRACE_FLAVOR, state, &stateCnt); @@ -128,9 +128,9 @@ store_inferior_registers (regno) /* Write gdb's current view of register to the thread */ ret = thread_set_state (current_thread, - HP800_THREAD_STATE, + TRACE_FLAVOR, state, - HP800_THREAD_STATE_COUNT); + TRACE_FLAVOR_SIZE); if (ret != KERN_SUCCESS) warning ("store_inferior_registers (set): %s", -- 2.30.2