diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
commit | fba45db2faf619e71856ee38ec63949c0ef6903e (patch) | |
tree | 107efc21d2b12f54d84b59e75251449e3d5fd096 /gdb/gdbserver/low-nbsd.c | |
parent | 29e6d33b03a5e39540d17bc8235573b1dac13341 (diff) | |
download | gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.zip gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.gz gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/gdbserver/low-nbsd.c')
-rw-r--r-- | gdb/gdbserver/low-nbsd.c | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/gdb/gdbserver/low-nbsd.c b/gdb/gdbserver/low-nbsd.c index 4aa3409..32bfa78 100644 --- a/gdb/gdbserver/low-nbsd.c +++ b/gdb/gdbserver/low-nbsd.c @@ -89,7 +89,7 @@ int i386_register_raw_size[MAX_NUM_REGS] = { int i386_register_byte[MAX_NUM_REGS]; static void -initialize_arch() +initialize_arch (void) { /* Initialize the table saying where each register starts in the register file. */ @@ -108,7 +108,7 @@ initialize_arch() #ifdef __powerpc__ static void -initialize_arch() +initialize_arch (void) { } #endif /* !__powerpc__ */ @@ -119,9 +119,7 @@ initialize_arch() ENV is the environment vector to pass. */ int -create_inferior (program, allargs) - char *program; - char **allargs; +create_inferior (char *program, char **allargs) { int pid; @@ -147,7 +145,7 @@ create_inferior (program, allargs) /* Kill the inferior process. Make us have no inferior. */ void -kill_inferior () +kill_inferior (void) { if (inferior_pid == 0) return; @@ -158,8 +156,7 @@ kill_inferior () /* Return nonzero if the given thread is still alive. */ int -mythread_alive (pid) - int pid; +mythread_alive (int pid) { return 1; } @@ -167,8 +164,7 @@ mythread_alive (pid) /* Wait for process, returns status */ unsigned char -mywait (status) - char *status; +mywait (char *status) { int pid; int w; @@ -201,9 +197,7 @@ mywait (status) If SIGNAL is nonzero, give it that signal. */ void -myresume (step, signal) - int step; - int signal; +myresume (int step, int signal) { errno = 0; ptrace (step ? PT_STEP : PT_CONTINUE, inferior_pid, @@ -219,8 +213,7 @@ myresume (step, signal) marking them as valid so we won't fetch them again. */ void -fetch_inferior_registers (ignored) - int ignored; +fetch_inferior_registers (int ignored) { struct reg inferior_registers; struct env387 inferior_fp_registers; @@ -271,8 +264,7 @@ fetch_inferior_registers (ignored) Otherwise, REGNO specifies which register (so we can save time). */ void -store_inferior_registers (ignored) - int ignored; +store_inferior_registers (int ignored) { struct reg inferior_registers; struct env387 inferior_fp_registers; @@ -325,8 +317,7 @@ store_inferior_registers (ignored) marking them as valid so we won't fetch them again. */ void -fetch_inferior_registers (regno) - int regno; +fetch_inferior_registers (int regno) { struct reg inferior_registers; struct fpreg inferior_fp_registers; @@ -354,8 +345,7 @@ fetch_inferior_registers (regno) Otherwise, REGNO specifies which register (so we can save time). */ void -store_inferior_registers (regno) - int regno; +store_inferior_registers (int regno) { struct reg inferior_registers; struct fpreg inferior_fp_registers; @@ -388,10 +378,7 @@ store_inferior_registers (regno) /* Copy LEN bytes from inferior's memory starting at MEMADDR to debugger memory starting at MYADDR. */ -read_inferior_memory (memaddr, myaddr, len) - CORE_ADDR memaddr; - char *myaddr; - int len; +read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ @@ -418,10 +405,7 @@ read_inferior_memory (memaddr, myaddr, len) returns the value of errno. */ int -write_inferior_memory (memaddr, myaddr, len) - CORE_ADDR memaddr; - char *myaddr; - int len; +write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ @@ -462,7 +446,7 @@ write_inferior_memory (memaddr, myaddr, len) } void -initialize_low () +initialize_low (void) { initialize_arch (); } |