diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-08-10 00:58:09 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-08-10 00:58:09 +0000 |
commit | dbb41be16379bfcaa4edf631103046edc0e3525b (patch) | |
tree | 45253d50bc2958883549bf590123aceb75699f48 | |
parent | 35fc82857eb04d27f93d32977bea3560d08a0230 (diff) | |
download | gdb-dbb41be16379bfcaa4edf631103046edc0e3525b.zip gdb-dbb41be16379bfcaa4edf631103046edc0e3525b.tar.gz gdb-dbb41be16379bfcaa4edf631103046edc0e3525b.tar.bz2 |
Protoization.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/core-sol2.c | 13 | ||||
-rw-r--r-- | gdb/corefile.c | 17 |
3 files changed, 18 insertions, 18 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fe38e8a..4c6bf1a3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2000-08-09 Kevin Buettner <kevinb@redhat.com> + + * core-sol2.c (fetch_core_registers): Protoize; add prefatory + comment. + * corefile.c (specify_exec_file_hook, generic_search): Protoize. + 2000-08-09 Michael Snyder <msnyder@cleaver.cygnus.com> * blockframe.c (sigtramp_saved_pc): Use dynamic allocation, diff --git a/gdb/core-sol2.c b/gdb/core-sol2.c index 4cf7d33..59aab7b 100644 --- a/gdb/core-sol2.c +++ b/gdb/core-sol2.c @@ -45,12 +45,15 @@ static void fetch_core_registers (char *, unsigned, int, CORE_ADDR); +/* Fetch registers from core file data pointed to by CORE_REG_SECT. When + WHICH is 0, the the general register set is fetched; when WHICH is + 2, the floating point registers are fetched. CORE_REG_SIZE is used + to validate the size of the data pointed to by CORE_REG_SECT. REG_ADDR + is unused. */ + static void -fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr) - char *core_reg_sect; - unsigned core_reg_size; - int which; - CORE_ADDR reg_addr; /* Unused in this version */ +fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which, + CORE_ADDR reg_addr) { prgregset_t prgregset; prfpregset_t prfpregset; diff --git a/gdb/corefile.c b/gdb/corefile.c index 6ff1ac5..5c816b1 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -120,8 +120,7 @@ call_extra_exec_file_hooks (char *filename) This is called from the x-window display code. */ void -specify_exec_file_hook (hook) - void (*hook) (char *); +specify_exec_file_hook (void (*hook) (char *)) { hook_type *new_array; @@ -349,17 +348,9 @@ read_memory_string (CORE_ADDR memaddr, char *buffer, int max_len) if the protocol has a less general search function, they can call this in the cases it can't handle. */ void -generic_search (len, data, mask, startaddr, increment, lorange, hirange - addr_found, data_found) - int len; - char *data; - char *mask; - CORE_ADDR startaddr; - int increment; - CORE_ADDR lorange; - CORE_ADDR hirange; - CORE_ADDR *addr_found; - char *data_found; +generic_search (int len, char *data, char *mask, CORE_ADDR startaddr, + int increment, CORE_ADDR lorange, CORE_ADDR hirange, + CORE_ADDR *addr_found, char *data_found) { int i; CORE_ADDR curaddr = startaddr; |