diff options
Diffstat (limited to 'gdb/nlm/ppc.c')
-rw-r--r-- | gdb/nlm/ppc.c | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/gdb/nlm/ppc.c b/gdb/nlm/ppc.c index e68397b..c5850ab 100644 --- a/gdb/nlm/ppc.c +++ b/gdb/nlm/ppc.c @@ -24,9 +24,7 @@ flush_i_cache (void) /* Get the registers out of the frame information. */ void -frame_to_registers (frame, regs) - struct StackFrame *frame; - char *regs; +frame_to_registers (struct StackFrame *frame, char *regs) { mem2hex (&frame->ExceptionState.CsavedRegs, ®s[GP0_REGNUM * 4 * 2], 4 * 32, 0); @@ -44,9 +42,7 @@ frame_to_registers (frame, regs) /* Put the registers back into the frame information. */ void -registers_to_frame (regs, frame) - char *regs; - struct StackFrame *frame; +registers_to_frame (char *regs, struct StackFrame *frame) { hex2mem (®s[GP0_REGNUM * 4 * 2], &frame->ExceptionState.CsavedRegs, 4 * 32, 0); @@ -68,8 +64,7 @@ extern volatile int mem_err; extern int ReadByteAltDebugger (char* addr, char *theByte); extern int WriteByteAltDebugger (char* addr, char theByte); int -get_char (addr) - char *addr; +get_char (char *addr) { char c; @@ -80,9 +75,7 @@ get_char (addr) } void -set_char (addr, val) - char *addr; - int val; +set_char (char *addr, int val) { if (!WriteByteAltDebugger (addr, val)) mem_err = 1; @@ -90,9 +83,7 @@ set_char (addr, val) #endif int -mem_write (dst, src, len) - char *dst, *src; - int len; +mem_write (char *dst, char *src, int len) { while (len-- && !mem_err) set_char (dst++, *src++); @@ -142,8 +133,7 @@ static LONG saved_target_inst; static LONG *saved_target_inst_pc = 0; void -set_step_traps (frame) - struct StackFrame *frame; +set_step_traps (struct StackFrame *frame) { union inst inst; LONG *target; @@ -203,8 +193,7 @@ set_step_traps (frame) set. */ int -clear_step_traps (frame) - struct StackFrame *frame; +clear_step_traps (struct StackFrame *frame) { int retcode; LONG *pc = (LONG *)frame->ExceptionPC; @@ -230,9 +219,7 @@ clear_step_traps (frame) } void -do_status (ptr, frame) - char *ptr; - struct StackFrame *frame; +do_status (char *ptr, struct StackFrame *frame) { int sigval; |