diff options
-rw-r--r-- | gdb/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/infptrace.c | 7 | ||||
-rw-r--r-- | gdb/monitor.c | 9 | ||||
-rw-r--r-- | gdb/remote-array.c | 12 | ||||
-rw-r--r-- | gdb/remote-bug.c | 8 | ||||
-rw-r--r-- | gdb/remote-e7000.c | 13 | ||||
-rw-r--r-- | gdb/remote-es.c | 10 | ||||
-rw-r--r-- | gdb/remote-mips.c | 9 | ||||
-rw-r--r-- | gdb/remote-nindy.c | 14 | ||||
-rw-r--r-- | gdb/remote-os9k.c | 10 | ||||
-rw-r--r-- | gdb/remote-rdi.c | 10 | ||||
-rw-r--r-- | gdb/remote-rdp.c | 10 | ||||
-rw-r--r-- | gdb/remote-sds.c | 7 | ||||
-rw-r--r-- | gdb/remote-sim.c | 11 | ||||
-rw-r--r-- | gdb/remote-st.c | 11 | ||||
-rw-r--r-- | gdb/remote-vx.c | 9 | ||||
-rw-r--r-- | gdb/remote.c | 3 | ||||
-rw-r--r-- | gdb/win32-nat.c | 31 | ||||
-rw-r--r-- | gdb/windows-nat.c | 31 | ||||
-rw-r--r-- | gdb/x86-64-linux-nat.c | 8 |
20 files changed, 128 insertions, 105 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cfea83f..56f1ac5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2002-01-18 Andrew Cagney <ac131313@redhat.com> + + * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright. + * monitor.c, remote-array.c, remote-bug.c: Ditto. + * remote-e7000.c, remote-es.c, remote-mips.c: Ditto. + * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto. + * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto. + * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto. + * x86-64-linux-nat.c: Ditto. + 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com> * alpha-tdep.c (alpha_register_name): New function. diff --git a/gdb/infptrace.c b/gdb/infptrace.c index c39ca03..777a5b4 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -1,6 +1,6 @@ /* Low level Unix child interface to ptrace, for GDB when running under Unix. - Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, - 1999, 2000, 2001 + Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, + 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GDB. @@ -502,8 +502,7 @@ store_inferior_registers (int regno) int child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target) + struct mem_attrib *attrib, struct target_ops *target) { int i; /* Round starting address down to longword boundary. */ diff --git a/gdb/monitor.c b/gdb/monitor.c index b78496a..05d4fb2 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -1,6 +1,8 @@ /* Remote debugging interface for boot monitors, for GDB. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001 Free Software Foundation, Inc. + + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Contributed by Cygnus Support. Written by Rob Savoye for Cygnus. Resurrected from the ashes by Stu Grossman. @@ -2019,8 +2021,7 @@ monitor_read_memory (CORE_ADDR memaddr, char *myaddr, int len) static int monitor_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + struct mem_attrib *attrib, struct target_ops *target) { int res; diff --git a/gdb/remote-array.c b/gdb/remote-array.c index eca1692..204aaed 100644 --- a/gdb/remote-array.c +++ b/gdb/remote-array.c @@ -1,6 +1,8 @@ /* Remote debugging interface for Array Tech RAID controller.. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001 Free Software Foundation, Inc. + + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Contributed by Cygnus Support. Written by Rob Savoye for Cygnus. This module talks to a debug monitor called 'MONITOR', which @@ -23,8 +25,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. - */ + Boston, MA 02111-1307, USA. */ #include "defs.h" #include "gdbcore.h" @@ -994,8 +995,7 @@ array_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) static int array_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + struct mem_attrib *attrib, struct target_ops *target) { if (write) return array_write_inferior_memory (memaddr, myaddr, len); diff --git a/gdb/remote-bug.c b/gdb/remote-bug.c index 7ada9ec..f74ce97 100644 --- a/gdb/remote-bug.c +++ b/gdb/remote-bug.c @@ -1,8 +1,9 @@ /* Remote debugging interface for Motorola's MVME187BUG monitor, an embedded monitor for the m88k. - Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, + 2002 Free Software Foundation, Inc. + Contributed by Cygnus Support. Written by K. Richard Pixley. This file is part of GDB. @@ -552,8 +553,7 @@ bug_store_register (int regno) int bug_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + struct mem_attrib *attrib, struct target_ops *target) { int res; diff --git a/gdb/remote-e7000.c b/gdb/remote-e7000.c index fcc175f..e13401f 100644 --- a/gdb/remote-e7000.c +++ b/gdb/remote-e7000.c @@ -1,6 +1,8 @@ /* Remote debugging interface for Hitachi E7000 ICE, for GDB - Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + + Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, + 2002 Free Software Foundation, Inc. + Contributed by Cygnus Support. Written by Steve Chamberlain for Cygnus Support. @@ -1463,10 +1465,9 @@ fast_but_for_the_pause_e7000_read_inferior_memory (CORE_ADDR memaddr, Returns the number of bytes transferred. */ static int -e7000_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, - int len, int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) +e7000_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, + int write, struct mem_attrib *attrib, + struct target_ops *target) { if (write) return e7000_write_inferior_memory (memaddr, myaddr, len); diff --git a/gdb/remote-es.c b/gdb/remote-es.c index c315f37..dabbcd8 100644 --- a/gdb/remote-es.c +++ b/gdb/remote-es.c @@ -1,6 +1,7 @@ /* Memory-access and commands for remote es1800 processes, for GDB. - Copyright 1988, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + + Copyright 1988, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, + 2001, 2002 Free Software Foundation, Inc. This file is added to GDB to make it possible to do debugging via an ES-1800 emulator. The code was originally written by Johan Holmberg @@ -962,9 +963,8 @@ tohex (int nib) static int es1800_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, - int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + int write, struct mem_attrib *attrib, + struct target_ops *target) { int origlen = len; int xfersize; diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index a4fe7a4..fcf6aa1 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -1,6 +1,8 @@ /* Remote debugging interface for MIPS remote debugging protocol. - Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + + Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, + 2002 Free Software Foundation, Inc. + Contributed by Cygnus Support. Written by Ian Lance Taylor <ian@cygnus.com>. @@ -2066,8 +2068,7 @@ static int mask_address_p = 1; static int mips_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + struct mem_attrib *attrib, struct target_ops *target) { int i; CORE_ADDR addr; diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c index 18862c2..679dfad 100644 --- a/gdb/remote-nindy.c +++ b/gdb/remote-nindy.c @@ -1,6 +1,8 @@ /* Memory-access and commands for remote NINDY process, for GDB. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, - 2001 Free Software Foundation, Inc. + + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, + 2000, 2001, 2002 Free Software Foundation, Inc. + Contributed by Intel Corporation. Modified from remote.c by Chris Benenati. GDB is distributed in the hope that it will be useful, but WITHOUT ANY @@ -17,8 +19,7 @@ notice and this notice must be preserved on all copies. In other words, go ahead and share GDB, but don't try to stop - anyone else from sharing it farther. Help stamp out software hoarding! - */ + anyone else from sharing it farther. Help stamp out software hoarding! */ /* Except for the data cache routines, this file bears little resemblence @@ -477,9 +478,8 @@ nindy_store_registers (int regno) int nindy_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, - int should_write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + int should_write, struct mem_attrib *attrib, + struct target_ops *target) { int res; diff --git a/gdb/remote-os9k.c b/gdb/remote-os9k.c index e6bf345..2cedfb0 100644 --- a/gdb/remote-os9k.c +++ b/gdb/remote-os9k.c @@ -1,6 +1,7 @@ /* Remote debugging interface for boot monitors, for GDB. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, - 2001 Free Software Foundation, Inc. + + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, + 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GDB. @@ -826,9 +827,8 @@ rombug_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) static int rombug_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, - int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + int write, struct mem_attrib *attrib, + struct target_ops *target) { if (write) return rombug_write_inferior_memory (memaddr, myaddr, len); diff --git a/gdb/remote-rdi.c b/gdb/remote-rdi.c index faed07c..c707eb2 100644 --- a/gdb/remote-rdi.c +++ b/gdb/remote-rdi.c @@ -1,5 +1,7 @@ /* GDB interface to ARM RDI library. - Copyright 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + + Copyright 1997, 1998, 1999, 2000, 2001, 2002 Free Software + Foundation, Inc. This file is part of GDB. @@ -629,9 +631,9 @@ arm_rdi_store_registers (int regno) /* ARGSUSED */ static int -arm_rdi_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int should_write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) +arm_rdi_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, + int should_write, struct mem_attrib *attrib, + struct target_ops *target) { int rslt, i; diff --git a/gdb/remote-rdp.c b/gdb/remote-rdp.c index e8c2d3f..bb602cd 100644 --- a/gdb/remote-rdp.c +++ b/gdb/remote-rdp.c @@ -1,6 +1,7 @@ /* Remote debugging for the ARM RDP interface. - Copyright 1994, 1995, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + + Copyright 1994, 1995, 1998, 1999, 2000, 2001, 2002 Free Software + Foundation, Inc. This file is part of GDB. @@ -1246,9 +1247,8 @@ remote_rdp_prepare_to_store (void) static int remote_rdp_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, - int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + int write, struct mem_attrib *attrib, + struct target_ops *target) { /* I infer from D Taylor's code that there's a limit on the amount we can transfer in one chunk.. */ diff --git a/gdb/remote-sds.c b/gdb/remote-sds.c index fd4e657..4cab4b0 100644 --- a/gdb/remote-sds.c +++ b/gdb/remote-sds.c @@ -1,5 +1,7 @@ /* Remote target communications for serial-line targets using SDS' protocol. - Copyright 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + + Copyright 1997, 1998, 1999, 2000, 2001, 2002 Free Software + Foundation, Inc. This file is part of GDB. @@ -658,8 +660,7 @@ sds_read_bytes (CORE_ADDR memaddr, char *myaddr, int len) /* ARGSUSED */ static int sds_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int should_write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + struct mem_attrib *attrib, struct target_ops *target) { int res; diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 25fb595..dbae403 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -1,6 +1,8 @@ /* Generic remote debugging interface for simulators. - Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + + Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, + 2002 Free Software Foundation, Inc. + Contributed by Cygnus Support. Steve Chamberlain (sac@cygnus.com). @@ -719,9 +721,8 @@ gdbsim_prepare_to_store (void) static int gdbsim_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, - int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + int write, struct mem_attrib *attrib, + struct target_ops *target) { if (!program_loaded) error ("No program loaded."); diff --git a/gdb/remote-st.c b/gdb/remote-st.c index 2a15b38..46d8eab 100644 --- a/gdb/remote-st.c +++ b/gdb/remote-st.c @@ -1,6 +1,8 @@ /* Remote debugging interface for Tandem ST2000 phone switch, for GDB. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, + 2001, 2002 Free Software Foundation, Inc. + Contributed by Cygnus Support. Written by Jim Kingdon for Cygnus. This file is part of GDB. @@ -560,9 +562,8 @@ st2000_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) static int st2000_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, - int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + int write, struct mem_attrib *attrib, + struct target_ops *target) { if (write) return st2000_write_inferior_memory (memaddr, myaddr, len); diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c index fa7ba29..5ec4df4 100644 --- a/gdb/remote-vx.c +++ b/gdb/remote-vx.c @@ -1,6 +1,8 @@ /* Memory-access and commands for remote VxWorks processes, for GDB. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1998, 1999, 2000, - 2001 Free Software Foundation, Inc. + + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1998, 1999, + 2000, 2001, 2002 Free Software Foundation, Inc. + Contributed by Wind River Systems and Cygnus Support. This file is part of GDB. @@ -477,8 +479,7 @@ vx_prepare_to_store (void) static int vx_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + struct mem_attrib *attrib, struct target_ops *target) { int status; Rptrace ptrace_in; diff --git a/gdb/remote.c b/gdb/remote.c index cddb617..deab83d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3939,8 +3939,7 @@ remote_read_bytes (CORE_ADDR memaddr, char *myaddr, int len) /* ARGSUSED */ static int remote_xfer_memory (CORE_ADDR mem_addr, char *buffer, int mem_len, - int should_write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, + int should_write, struct mem_attrib *attrib, struct target_ops *target) { CORE_ADDR targ_addr; diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index a8d1170..5265aef 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -1,6 +1,8 @@ /* Target-vector operations for controlling win32 child processes, for GDB. - Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + + Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free + Software Foundation, Inc. + Contributed by Cygnus Solutions, A Red Hat Company. This file is part of GDB. @@ -571,7 +573,7 @@ register_loaded_dll (const char *name, DWORD load_addr) /* Wait for child to do something. Return pid of child, or -1 in case of error; store status through argument pointer OURSTATUS. */ static int -handle_load_dll (void *dummy ATTRIBUTE_UNUSED) +handle_load_dll (void *dummy) { LOAD_DLL_DEBUG_INFO *event = ¤t_event.u.LoadDll; DWORD dll_name_ptr; @@ -652,7 +654,7 @@ handle_load_dll (void *dummy ATTRIBUTE_UNUSED) } static int -handle_unload_dll (void *dummy ATTRIBUTE_UNUSED) +handle_unload_dll (void *dummy) { DWORD lpBaseOfDll = (DWORD) current_event.u.UnloadDll.lpBaseOfDll + 0x1000; struct so_stuff *so; @@ -676,7 +678,7 @@ handle_unload_dll (void *dummy ATTRIBUTE_UNUSED) /* Return name of last loaded DLL. */ char * -child_solib_loaded_library_pathname (int pid ATTRIBUTE_UNUSED) +child_solib_loaded_library_pathname (int pid) { return !solib_end || !solib_end->name[0] ? NULL : solib_end->name; } @@ -742,7 +744,7 @@ dll_symbol_command (char *args, int from_tty) /* List currently loaded DLLs. */ void -info_dll_command (char *ignore ATTRIBUTE_UNUSED, int from_tty ATTRIBUTE_UNUSED) +info_dll_command (char *ignore, int from_tty) { struct so_stuff *so = &solib_start; @@ -888,7 +890,7 @@ child_continue (DWORD continue_status, int id) handling by WFI (or whatever). */ static int -get_child_debug_event (int pid ATTRIBUTE_UNUSED, struct target_waitstatus *ourstatus) +get_child_debug_event (int pid, struct target_waitstatus *ourstatus) { BOOL debug_event; DWORD continue_status, event_code; @@ -1158,7 +1160,7 @@ child_attach (char *args, int from_tty) } static void -child_detach (char *args ATTRIBUTE_UNUSED, int from_tty) +child_detach (char *args, int from_tty) { int detached = 1; @@ -1190,7 +1192,7 @@ child_detach (char *args ATTRIBUTE_UNUSED, int from_tty) /* Print status information about what we're accessing. */ static void -child_files_info (struct target_ops *ignore ATTRIBUTE_UNUSED) +child_files_info (struct target_ops *ignore) { printf_unfiltered ("\tUsing the running image of %s %s.\n", attach_flag ? "attached" : "child", target_pid_to_str (inferior_ptid)); @@ -1198,7 +1200,7 @@ child_files_info (struct target_ops *ignore ATTRIBUTE_UNUSED) /* ARGSUSED */ static void -child_open (char *arg ATTRIBUTE_UNUSED, int from_tty ATTRIBUTE_UNUSED) +child_open (char *arg, int from_tty) { error ("Use the \"run\" command to start a Unix child process."); } @@ -1360,8 +1362,8 @@ child_stop (void) int child_xfer_memory (CORE_ADDR memaddr, char *our, int len, - int write, struct mem_attrib *mem ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + int write, struct mem_attrib *mem, + struct target_ops *target) { DWORD done; if (write) @@ -1454,7 +1456,7 @@ child_can_run (void) } static void -child_close (int x ATTRIBUTE_UNUSED) +child_close (int x) { DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n", PIDGET (inferior_ptid))); @@ -1758,7 +1760,8 @@ out: } void -child_solib_add (char *filename ATTRIBUTE_UNUSED, int from_tty, struct target_ops *target, int readsyms) +child_solib_add (char *filename, int from_tty, struct target_ops *target, + int readsyms) { if (!readsyms) return; diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index a8d1170..5265aef 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1,6 +1,8 @@ /* Target-vector operations for controlling win32 child processes, for GDB. - Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + + Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free + Software Foundation, Inc. + Contributed by Cygnus Solutions, A Red Hat Company. This file is part of GDB. @@ -571,7 +573,7 @@ register_loaded_dll (const char *name, DWORD load_addr) /* Wait for child to do something. Return pid of child, or -1 in case of error; store status through argument pointer OURSTATUS. */ static int -handle_load_dll (void *dummy ATTRIBUTE_UNUSED) +handle_load_dll (void *dummy) { LOAD_DLL_DEBUG_INFO *event = ¤t_event.u.LoadDll; DWORD dll_name_ptr; @@ -652,7 +654,7 @@ handle_load_dll (void *dummy ATTRIBUTE_UNUSED) } static int -handle_unload_dll (void *dummy ATTRIBUTE_UNUSED) +handle_unload_dll (void *dummy) { DWORD lpBaseOfDll = (DWORD) current_event.u.UnloadDll.lpBaseOfDll + 0x1000; struct so_stuff *so; @@ -676,7 +678,7 @@ handle_unload_dll (void *dummy ATTRIBUTE_UNUSED) /* Return name of last loaded DLL. */ char * -child_solib_loaded_library_pathname (int pid ATTRIBUTE_UNUSED) +child_solib_loaded_library_pathname (int pid) { return !solib_end || !solib_end->name[0] ? NULL : solib_end->name; } @@ -742,7 +744,7 @@ dll_symbol_command (char *args, int from_tty) /* List currently loaded DLLs. */ void -info_dll_command (char *ignore ATTRIBUTE_UNUSED, int from_tty ATTRIBUTE_UNUSED) +info_dll_command (char *ignore, int from_tty) { struct so_stuff *so = &solib_start; @@ -888,7 +890,7 @@ child_continue (DWORD continue_status, int id) handling by WFI (or whatever). */ static int -get_child_debug_event (int pid ATTRIBUTE_UNUSED, struct target_waitstatus *ourstatus) +get_child_debug_event (int pid, struct target_waitstatus *ourstatus) { BOOL debug_event; DWORD continue_status, event_code; @@ -1158,7 +1160,7 @@ child_attach (char *args, int from_tty) } static void -child_detach (char *args ATTRIBUTE_UNUSED, int from_tty) +child_detach (char *args, int from_tty) { int detached = 1; @@ -1190,7 +1192,7 @@ child_detach (char *args ATTRIBUTE_UNUSED, int from_tty) /* Print status information about what we're accessing. */ static void -child_files_info (struct target_ops *ignore ATTRIBUTE_UNUSED) +child_files_info (struct target_ops *ignore) { printf_unfiltered ("\tUsing the running image of %s %s.\n", attach_flag ? "attached" : "child", target_pid_to_str (inferior_ptid)); @@ -1198,7 +1200,7 @@ child_files_info (struct target_ops *ignore ATTRIBUTE_UNUSED) /* ARGSUSED */ static void -child_open (char *arg ATTRIBUTE_UNUSED, int from_tty ATTRIBUTE_UNUSED) +child_open (char *arg, int from_tty) { error ("Use the \"run\" command to start a Unix child process."); } @@ -1360,8 +1362,8 @@ child_stop (void) int child_xfer_memory (CORE_ADDR memaddr, char *our, int len, - int write, struct mem_attrib *mem ATTRIBUTE_UNUSED, - struct target_ops *target ATTRIBUTE_UNUSED) + int write, struct mem_attrib *mem, + struct target_ops *target) { DWORD done; if (write) @@ -1454,7 +1456,7 @@ child_can_run (void) } static void -child_close (int x ATTRIBUTE_UNUSED) +child_close (int x) { DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n", PIDGET (inferior_ptid))); @@ -1758,7 +1760,8 @@ out: } void -child_solib_add (char *filename ATTRIBUTE_UNUSED, int from_tty, struct target_ops *target, int readsyms) +child_solib_add (char *filename, int from_tty, struct target_ops *target, + int readsyms) { if (!readsyms) return; diff --git a/gdb/x86-64-linux-nat.c b/gdb/x86-64-linux-nat.c index 85912e8..978df95 100644 --- a/gdb/x86-64-linux-nat.c +++ b/gdb/x86-64-linux-nat.c @@ -1,6 +1,7 @@ /* Native-dependent code for Linux/x86-64. - Copyright 2001 - Free Software Foundation, Inc. + + Copyright 2001, 2002 Free Software Foundation, Inc. + Contributed by Jiri Smid, SuSE Labs. This file is part of GDB. @@ -405,8 +406,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal) int child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, - struct mem_attrib *attrib ATTRIBUTE_UNUSED, - struct target_ops *target) + struct mem_attrib *attrib, struct target_ops *target) { register int i; /* Round starting address down to longword boundary. */ |