This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] remove attribute_unused
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 18 Jan 2002 22:28:23 -0500
- Subject: [patch] remove attribute_unused
Hello,
Some files have attribute unused while others don't. This removes the
attribute, where present, making everything consistent.
See also:
http://sources.redhat.com/gdb/onlinedocs/gdbint_13.html#SEC104
Andrew
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.
Index: infptrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infptrace.c,v
retrieving revision 1.20
diff -p -r1.20 infptrace.c
*** infptrace.c 2002/01/08 00:59:29 1.20
--- infptrace.c 2002/01/19 03:23:31
***************
*** 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
Free Software Foundation, Inc.
This file is part of GDB.
--- 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, 2002
Free Software Foundation, Inc.
This file is part of GDB.
*************** store_inferior_registers (int regno)
*** 502,509 ****
int
child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! struct mem_attrib *attrib ATTRIBUTE_UNUSED,
! struct target_ops *target)
{
int i;
/* Round starting address down to longword boundary. */
--- 502,508 ----
int
child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! struct mem_attrib *attrib, struct target_ops *target)
{
int i;
/* Round starting address down to longword boundary. */
Index: monitor.c
===================================================================
RCS file: /cvs/src/src/gdb/monitor.c,v
retrieving revision 1.30
diff -p -r1.30 monitor.c
*** monitor.c 2001/09/13 22:48:19 1.30
--- monitor.c 2002/01/19 03:23:35
***************
*** 1,6 ****
/* 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.
Contributed by Cygnus Support. Written by Rob Savoye for Cygnus.
Resurrected from the ashes by Stu Grossman.
--- 1,8 ----
/* Remote debugging interface for boot monitors, for GDB.
!
! 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.
*************** monitor_read_memory (CORE_ADDR memaddr,
*** 2019,2026 ****
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)
{
int res;
--- 2021,2027 ----
static int
monitor_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! struct mem_attrib *attrib, struct target_ops *target)
{
int res;
Index: remote-array.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-array.c,v
retrieving revision 1.17
diff -p -r1.17 remote-array.c
*** remote-array.c 2001/07/15 20:34:13 1.17
--- remote-array.c 2002/01/19 03:23:36
***************
*** 1,6 ****
/* 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.
Contributed by Cygnus Support. Written by Rob Savoye for Cygnus.
This module talks to a debug monitor called 'MONITOR', which
--- 1,8 ----
/* Remote debugging interface for Array Tech RAID controller..
!
! 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,30 ****
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.
! */
#include "defs.h"
#include "gdbcore.h"
--- 25,31 ----
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. */
#include "defs.h"
#include "gdbcore.h"
*************** array_read_inferior_memory (CORE_ADDR me
*** 994,1001 ****
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)
{
if (write)
return array_write_inferior_memory (memaddr, myaddr, len);
--- 995,1001 ----
static int
array_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! struct mem_attrib *attrib, struct target_ops *target)
{
if (write)
return array_write_inferior_memory (memaddr, myaddr, len);
Index: remote-bug.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-bug.c,v
retrieving revision 1.20
diff -p -r1.20 remote-bug.c
*** remote-bug.c 2001/07/15 20:34:13 1.20
--- remote-bug.c 2002/01/19 03:23:37
***************
*** 1,8 ****
/* 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.
Contributed by Cygnus Support. Written by K. Richard Pixley.
This file is part of GDB.
--- 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,
! 2002 Free Software Foundation, Inc.
!
Contributed by Cygnus Support. Written by K. Richard Pixley.
This file is part of GDB.
*************** bug_store_register (int regno)
*** 552,559 ****
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)
{
int res;
--- 553,559 ----
int
bug_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! struct mem_attrib *attrib, struct target_ops *target)
{
int res;
Index: remote-e7000.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-e7000.c,v
retrieving revision 1.25
diff -p -r1.25 remote-e7000.c
*** remote-e7000.c 2001/07/15 20:34:13 1.25
--- remote-e7000.c 2002/01/19 03:23:41
***************
*** 1,6 ****
/* Remote debugging interface for Hitachi E7000 ICE, for GDB
! Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
! Free Software Foundation, Inc.
Contributed by Cygnus Support.
Written by Steve Chamberlain for Cygnus Support.
--- 1,8 ----
/* Remote debugging interface for Hitachi E7000 ICE, for GDB
!
! 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.
*************** fast_but_for_the_pause_e7000_read_inferi
*** 1463,1472 ****
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)
{
if (write)
return e7000_write_inferior_memory (memaddr, myaddr, len);
--- 1465,1473 ----
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,
! struct target_ops *target)
{
if (write)
return e7000_write_inferior_memory (memaddr, myaddr, len);
Index: remote-es.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-es.c,v
retrieving revision 1.19
diff -p -r1.19 remote-es.c
*** remote-es.c 2001/10/21 17:19:37 1.19
--- remote-es.c 2002/01/19 03:23:46
***************
*** 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.
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
TT/SJ Ericsson Telecom AB and later modified by Johan Henriksson
--- 1,8 ----
/* Memory-access and commands for remote es1800 processes, for GDB.
+ 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
TT/SJ Ericsson Telecom AB and later modified by Johan Henriksson
*************** tohex (int nib)
*** 962,970 ****
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 origlen = len;
int xfersize;
--- 963,970 ----
static int
es1800_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
! int write, struct mem_attrib *attrib,
! struct target_ops *target)
{
int origlen = len;
int xfersize;
Index: remote-mips.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-mips.c,v
retrieving revision 1.24
diff -p -r1.24 remote-mips.c
*** remote-mips.c 2001/08/23 19:27:52 1.24
--- remote-mips.c 2002/01/19 03:23:55
***************
*** 1,6 ****
/* Remote debugging interface for MIPS remote debugging protocol.
! Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
! Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by Ian Lance Taylor
<ian@cygnus.com>.
--- 1,8 ----
/* Remote debugging interface for MIPS remote debugging protocol.
!
! 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>.
*************** static int mask_address_p = 1;
*** 2066,2073 ****
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)
{
int i;
CORE_ADDR addr;
--- 2068,2074 ----
static int
mips_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! struct mem_attrib *attrib, struct target_ops *target)
{
int i;
CORE_ADDR addr;
Index: remote-nindy.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-nindy.c,v
retrieving revision 1.18
diff -p -r1.18 remote-nindy.c
*** remote-nindy.c 2001/07/15 20:34:13 1.18
--- remote-nindy.c 2002/01/19 03:23:55
***************
*** 1,6 ****
/* 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.
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
--- 1,8 ----
/* Memory-access and commands for remote NINDY process, for GDB.
!
! 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,24 ****
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!
! */
/*
Except for the data cache routines, this file bears little resemblence
--- 19,25 ----
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! */
/*
Except for the data cache routines, this file bears little resemblence
*************** nindy_store_registers (int regno)
*** 477,485 ****
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 res;
--- 478,485 ----
int
nindy_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
! int should_write, struct mem_attrib *attrib,
! struct target_ops *target)
{
int res;
Index: remote-os9k.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-os9k.c,v
retrieving revision 1.17
diff -p -r1.17 remote-os9k.c
*** remote-os9k.c 2002/01/05 04:30:18 1.17
--- remote-os9k.c 2002/01/19 03:23:58
***************
*** 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.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
--- 1,8 ----
/* Remote debugging interface for boot monitors, for GDB.
+ Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999,
+ 2000, 2001, 2002 Free Software Foundation, Inc.
+
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
*************** rombug_read_inferior_memory (CORE_ADDR m
*** 826,834 ****
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)
{
if (write)
return rombug_write_inferior_memory (memaddr, myaddr, len);
--- 827,834 ----
static int
rombug_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
! int write, struct mem_attrib *attrib,
! struct target_ops *target)
{
if (write)
return rombug_write_inferior_memory (memaddr, myaddr, len);
Index: remote-rdi.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-rdi.c,v
retrieving revision 1.18
diff -p -r1.18 remote-rdi.c
*** remote-rdi.c 2002/01/05 04:30:18 1.18
--- remote-rdi.c 2002/01/19 03:24:00
***************
*** 1,6 ****
/* GDB interface to ARM RDI library.
- Copyright 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
--- 1,8 ----
/* GDB interface to ARM RDI library.
+ Copyright 1997, 1998, 1999, 2000, 2001, 2002 Free Software
+ Foundation, Inc.
+
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
*************** arm_rdi_store_registers (int regno)
*** 629,637 ****
/* 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)
{
int rslt, i;
--- 631,639 ----
/* ARGSUSED */
static int
! 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;
Index: remote-rdp.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-rdp.c,v
retrieving revision 1.22
diff -p -r1.22 remote-rdp.c
*** remote-rdp.c 2002/01/05 04:30:18 1.22
--- remote-rdp.c 2002/01/19 03:24:03
***************
*** 1,7 ****
/* Remote debugging for the ARM RDP interface.
- Copyright 1994, 1995, 1998, 1999, 2000, 2001
- Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
--- 1,8 ----
/* Remote debugging for the ARM RDP interface.
+ Copyright 1994, 1995, 1998, 1999, 2000, 2001, 2002 Free Software
+ Foundation, Inc.
+
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
*************** remote_rdp_prepare_to_store (void)
*** 1246,1254 ****
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)
{
/* I infer from D Taylor's code that there's a limit on the amount
we can transfer in one chunk.. */
--- 1247,1254 ----
static int
remote_rdp_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
! 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.. */
Index: remote-sds.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sds.c,v
retrieving revision 1.18
diff -p -r1.18 remote-sds.c
*** remote-sds.c 2001/07/15 20:34:13 1.18
--- remote-sds.c 2002/01/19 03:24:04
***************
*** 1,6 ****
/* Remote target communications for serial-line targets using SDS' protocol.
- Copyright 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
--- 1,8 ----
/* Remote target communications for serial-line targets using SDS' protocol.
+ Copyright 1997, 1998, 1999, 2000, 2001, 2002 Free Software
+ Foundation, Inc.
+
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
*************** sds_read_bytes (CORE_ADDR memaddr, char
*** 658,665 ****
/* 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)
{
int res;
--- 660,666 ----
/* ARGSUSED */
static int
sds_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int should_write,
! struct mem_attrib *attrib, struct target_ops *target)
{
int res;
Index: remote-sim.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sim.c,v
retrieving revision 1.19
diff -p -r1.19 remote-sim.c
*** remote-sim.c 2002/01/05 04:30:18 1.19
--- remote-sim.c 2002/01/19 03:24:04
***************
*** 1,6 ****
/* Generic remote debugging interface for simulators.
! Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
! Free Software Foundation, Inc.
Contributed by Cygnus Support.
Steve Chamberlain (sac@cygnus.com).
--- 1,8 ----
/* Generic remote debugging interface for simulators.
!
! Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
! 2002 Free Software Foundation, Inc.
!
Contributed by Cygnus Support.
Steve Chamberlain (sac@cygnus.com).
*************** gdbsim_prepare_to_store (void)
*** 719,727 ****
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)
{
if (!program_loaded)
error ("No program loaded.");
--- 721,728 ----
static int
gdbsim_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
! int write, struct mem_attrib *attrib,
! struct target_ops *target)
{
if (!program_loaded)
error ("No program loaded.");
Index: remote-st.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-st.c,v
retrieving revision 1.15
diff -p -r1.15 remote-st.c
*** remote-st.c 2001/07/15 20:34:13 1.15
--- remote-st.c 2002/01/19 03:24:05
***************
*** 1,6 ****
/* 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.
Contributed by Cygnus Support. Written by Jim Kingdon for Cygnus.
This file is part of GDB.
--- 1,8 ----
/* Remote debugging interface for Tandem ST2000 phone switch, for GDB.
!
! 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.
*************** st2000_read_inferior_memory (CORE_ADDR m
*** 560,568 ****
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)
{
if (write)
return st2000_write_inferior_memory (memaddr, myaddr, len);
--- 562,569 ----
static int
st2000_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
! int write, struct mem_attrib *attrib,
! struct target_ops *target)
{
if (write)
return st2000_write_inferior_memory (memaddr, myaddr, len);
Index: remote-vx.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-vx.c,v
retrieving revision 1.18
diff -p -r1.18 remote-vx.c
*** remote-vx.c 2001/10/31 22:29:21 1.18
--- remote-vx.c 2002/01/19 03:24:06
***************
*** 1,6 ****
/* 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.
Contributed by Wind River Systems and Cygnus Support.
This file is part of GDB.
--- 1,8 ----
/* Memory-access and commands for remote VxWorks processes, for GDB.
!
! 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.
*************** vx_prepare_to_store (void)
*** 477,484 ****
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)
{
int status;
Rptrace ptrace_in;
--- 479,485 ----
static int
vx_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! struct mem_attrib *attrib, struct target_ops *target)
{
int status;
Rptrace ptrace_in;
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.73
diff -p -r1.73 remote.c
*** remote.c 2002/01/17 22:15:17 1.73
--- remote.c 2002/01/19 03:24:14
*************** remote_read_bytes (CORE_ADDR memaddr, ch
*** 3939,3946 ****
/* ARGSUSED */
static int
remote_xfer_memory (CORE_ADDR mem_addr, char *buffer, int mem_len,
! int should_write,
! struct mem_attrib *attrib ATTRIBUTE_UNUSED,
struct target_ops *target)
{
CORE_ADDR targ_addr;
--- 3939,3945 ----
/* ARGSUSED */
static int
remote_xfer_memory (CORE_ADDR mem_addr, char *buffer, int mem_len,
! int should_write, struct mem_attrib *attrib,
struct target_ops *target)
{
CORE_ADDR targ_addr;
Index: win32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/win32-nat.c,v
retrieving revision 1.42
diff -p -r1.42 win32-nat.c
*** win32-nat.c 2002/01/08 08:26:42 1.42
--- win32-nat.c 2002/01/19 03:24:18
***************
*** 1,6 ****
/* Target-vector operations for controlling win32 child processes, for GDB.
! Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001
! Free Software Foundation, Inc.
Contributed by Cygnus Solutions, A Red Hat Company.
This file is part of GDB.
--- 1,8 ----
/* Target-vector operations for controlling win32 child processes, for GDB.
!
! 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.
*************** register_loaded_dll (const char *name, D
*** 571,577 ****
/* 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)
{
LOAD_DLL_DEBUG_INFO *event = ¤t_event.u.LoadDll;
DWORD dll_name_ptr;
--- 573,579 ----
/* 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)
{
LOAD_DLL_DEBUG_INFO *event = ¤t_event.u.LoadDll;
DWORD dll_name_ptr;
*************** handle_load_dll (void *dummy ATTRIBUTE_U
*** 652,658 ****
}
static int
! handle_unload_dll (void *dummy ATTRIBUTE_UNUSED)
{
DWORD lpBaseOfDll = (DWORD) current_event.u.UnloadDll.lpBaseOfDll + 0x1000;
struct so_stuff *so;
--- 654,660 ----
}
static int
! handle_unload_dll (void *dummy)
{
DWORD lpBaseOfDll = (DWORD) current_event.u.UnloadDll.lpBaseOfDll + 0x1000;
struct so_stuff *so;
*************** handle_unload_dll (void *dummy ATTRIBUTE
*** 676,682 ****
/* Return name of last loaded DLL. */
char *
! child_solib_loaded_library_pathname (int pid ATTRIBUTE_UNUSED)
{
return !solib_end || !solib_end->name[0] ? NULL : solib_end->name;
}
--- 678,684 ----
/* Return name of last loaded DLL. */
char *
! child_solib_loaded_library_pathname (int pid)
{
return !solib_end || !solib_end->name[0] ? NULL : solib_end->name;
}
*************** dll_symbol_command (char *args, int from
*** 742,748 ****
/* List currently loaded DLLs. */
void
! info_dll_command (char *ignore ATTRIBUTE_UNUSED, int from_tty ATTRIBUTE_UNUSED)
{
struct so_stuff *so = &solib_start;
--- 744,750 ----
/* List currently loaded DLLs. */
void
! info_dll_command (char *ignore, int from_tty)
{
struct so_stuff *so = &solib_start;
*************** child_continue (DWORD continue_status, i
*** 888,894 ****
handling by WFI (or whatever).
*/
static int
! get_child_debug_event (int pid ATTRIBUTE_UNUSED, struct target_waitstatus *ourstatus)
{
BOOL debug_event;
DWORD continue_status, event_code;
--- 890,896 ----
handling by WFI (or whatever).
*/
static int
! get_child_debug_event (int pid, struct target_waitstatus *ourstatus)
{
BOOL debug_event;
DWORD continue_status, event_code;
*************** child_attach (char *args, int from_tty)
*** 1158,1164 ****
}
static void
! child_detach (char *args ATTRIBUTE_UNUSED, int from_tty)
{
int detached = 1;
--- 1160,1166 ----
}
static void
! child_detach (char *args, int from_tty)
{
int detached = 1;
*************** child_detach (char *args ATTRIBUTE_UNUSE
*** 1190,1196 ****
/* Print status information about what we're accessing. */
static void
! child_files_info (struct target_ops *ignore ATTRIBUTE_UNUSED)
{
printf_unfiltered ("\tUsing the running image of %s %s.\n",
attach_flag ? "attached" : "child", target_pid_to_str (inferior_ptid));
--- 1192,1198 ----
/* Print status information about what we're accessing. */
static void
! 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));
*************** child_files_info (struct target_ops *ign
*** 1198,1204 ****
/* ARGSUSED */
static void
! child_open (char *arg ATTRIBUTE_UNUSED, int from_tty ATTRIBUTE_UNUSED)
{
error ("Use the \"run\" command to start a Unix child process.");
}
--- 1200,1206 ----
/* ARGSUSED */
static void
! child_open (char *arg, int from_tty)
{
error ("Use the \"run\" command to start a Unix child process.");
}
*************** child_stop (void)
*** 1360,1367 ****
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)
{
DWORD done;
if (write)
--- 1362,1369 ----
int
child_xfer_memory (CORE_ADDR memaddr, char *our, int len,
! int write, struct mem_attrib *mem,
! struct target_ops *target)
{
DWORD done;
if (write)
*************** child_can_run (void)
*** 1454,1460 ****
}
static void
! child_close (int x ATTRIBUTE_UNUSED)
{
DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n",
PIDGET (inferior_ptid)));
--- 1456,1462 ----
}
static void
! child_close (int x)
{
DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n",
PIDGET (inferior_ptid)));
*************** out:
*** 1758,1764 ****
}
void
! child_solib_add (char *filename ATTRIBUTE_UNUSED, int from_tty, struct target_ops *target, int readsyms)
{
if (!readsyms)
return;
--- 1760,1767 ----
}
void
! child_solib_add (char *filename, int from_tty, struct target_ops *target,
! int readsyms)
{
if (!readsyms)
return;
Index: x86-64-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-linux-nat.c,v
retrieving revision 1.2
diff -p -r1.2 x86-64-linux-nat.c
*** x86-64-linux-nat.c 2002/01/08 00:59:31 1.2
--- x86-64-linux-nat.c 2002/01/19 03:24:19
***************
*** 1,6 ****
/* Native-dependent code for Linux/x86-64.
! Copyright 2001
! Free Software Foundation, Inc.
Contributed by Jiri Smid, SuSE Labs.
This file is part of GDB.
--- 1,7 ----
/* Native-dependent code for Linux/x86-64.
!
! Copyright 2001, 2002 Free Software Foundation, Inc.
!
Contributed by Jiri Smid, SuSE Labs.
This file is part of GDB.
*************** child_resume (ptid_t ptid, int step, enu
*** 405,412 ****
int
child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! struct mem_attrib *attrib ATTRIBUTE_UNUSED,
! struct target_ops *target)
{
register int i;
/* Round starting address down to longword boundary. */
--- 406,412 ----
int
child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! struct mem_attrib *attrib, struct target_ops *target)
{
register int i;
/* Round starting address down to longword boundary. */