This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Random cleanups
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 13 Feb 2004 23:40:51 -0500
- Subject: [ob] Random cleanups
FYI,
Andrew
2004-02-13 Andrew Cagney <cagney@redhat.com>
* corelow.c (core_xfer_partial): Use "struct bfd_section".
* config/sparc/nm-nbsd.h (struct target_ops): Declare, update
copyright.
* mips-linux-tdep.c: Use "GNU/Linux", update copyright.
Index: corelow.c
===================================================================
RCS file: /cvs/src/src/gdb/corelow.c,v
retrieving revision 1.34
diff -u -r1.34 corelow.c
--- corelow.c 1 Feb 2004 22:35:20 -0000 1.34
+++ corelow.c 14 Feb 2004 04:38:03 -0000
@@ -1,7 +1,8 @@
/* Core dump and executable file functions below target vector, for GDB.
Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996,
- 1997, 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
+ 1997, 1998, 1999, 2000, 2001, 2003, 2004 Free Software Foundation,
+ Inc.
This file is part of GDB.
@@ -537,7 +538,7 @@
/* When the aux vector is stored in core file, BFD
represents this with a fake section called ".auxv". */
- sec_ptr section;
+ struct bfd_section *section;
bfd_size_type size;
char *contents;
Index: mips-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-linux-tdep.c,v
retrieving revision 1.18
diff -u -r1.18 mips-linux-tdep.c
--- mips-linux-tdep.c 11 Feb 2004 18:47:26 -0000 1.18
+++ mips-linux-tdep.c 14 Feb 2004 04:38:05 -0000
@@ -1,6 +1,6 @@
/* Target-dependent code for GNU/Linux on MIPS processors.
- Copyright 2001, 2002 Free Software Foundation, Inc.
+ Copyright 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GDB.
@@ -778,10 +778,11 @@
/* See the comments for SKIP_SOLIB_RESOLVER at the top of infrun.c,
and glibc_skip_solib_resolver in glibc-tdep.c. The normal glibc
implementation of this triggers at "fixup" from the same objfile as
- "_dl_runtime_resolve"; MIPS/Linux can trigger at "__dl_runtime_resolve"
- directly. An unresolved PLT entry will point to _dl_runtime_resolve,
- which will first call __dl_runtime_resolve, and then pass control to
- the resolved function. */
+ "_dl_runtime_resolve"; MIPS GNU/Linux can trigger at
+ "__dl_runtime_resolve" directly. An unresolved PLT entry will
+ point to _dl_runtime_resolve, which will first call
+ __dl_runtime_resolve, and then pass control to the resolved
+ function. */
static CORE_ADDR
mips_linux_skip_resolver (struct gdbarch *gdbarch, CORE_ADDR pc)
@@ -832,8 +833,8 @@
set_gdbarch_skip_solib_resolver (gdbarch, mips_linux_skip_resolver);
- /* This overrides the MIPS16 stub support from mips-tdep. But no one uses
- MIPS16 on Linux yet, so this isn't much of a loss. */
+ /* This overrides the MIPS16 stub support from mips-tdep. But no
+ one uses MIPS16 on GNU/Linux yet, so this isn't much of a loss. */
set_gdbarch_in_solib_call_trampoline (gdbarch, mips_linux_in_dynsym_stub);
}
Index: config/sparc/nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/nm-nbsd.h,v
retrieving revision 1.9
diff -u -r1.9 nm-nbsd.h
--- config/sparc/nm-nbsd.h 4 Feb 2004 21:49:58 -0000 1.9
+++ config/sparc/nm-nbsd.h 14 Feb 2004 04:38:07 -0000
@@ -1,7 +1,7 @@
/* Native-dependent definitions for NetBSD/sparc.
- Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1999, 2000, 2002, 2003
- Free Software Foundation, Inc.
+ Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1999, 2000, 2002,
+ 2003, 2004 Free Software Foundation, Inc.
This file is part of GDB.
@@ -30,6 +30,7 @@
/* Support for StackGhost cookies. */
#include "target.h"
+struct target_ops; /* Fool ARI. */
#define NATIVE_XFER_WCOOKIE sparc_xfer_wcookie
extern LONGEST sparc_xfer_wcookie (struct target_ops *ops,