aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1991-12-08 01:14:09 +0000
committerSteve Chamberlain <sac@cygnus>1991-12-08 01:14:09 +0000
commit5a77e9160f24a84e80a4606dbe2e8b2ee09f0a6d (patch)
tree5d121b9a2f52d3bef7e3df1079a4bd5846681b93 /binutils
parent381ed933d335d95296e99d17a5411fba85628063 (diff)
downloadgdb-5a77e9160f24a84e80a4606dbe2e8b2ee09f0a6d.zip
gdb-5a77e9160f24a84e80a4606dbe2e8b2ee09f0a6d.tar.gz
gdb-5a77e9160f24a84e80a4606dbe2e8b2ee09f0a6d.tar.bz2
* bucomm.h: created to hold prototypes of bucomm.c
* objdump.h: created to hold prototyes of objdump.c * am29k-pinsn.c: include objdump.h * ar.c: include bucomm.h, get ar.h from the right place and include libbfd.h * bucomm.c: defunize bfd_fatal * copy.c: include bucomm.h, lint. * i960-pinsn.h: include bucomm.h * m68k-pinsn.h: lint * nm.c: include bucomm.h, lint * objdump.c: lint * sparc-pinsn.c: include objdump.h
Diffstat (limited to 'binutils')
-rw-r--r--binutils/.Sanitize46
-rw-r--r--binutils/am29k-pinsn.c1
-rw-r--r--binutils/copy.c8
-rw-r--r--binutils/i960-pinsn.c4
-rw-r--r--binutils/m68k-pinsn.c27
-rw-r--r--binutils/sparc-pinsn.c5
6 files changed, 59 insertions, 32 deletions
diff --git a/binutils/.Sanitize b/binutils/.Sanitize
index 9230ac3..0a523ee 100644
--- a/binutils/.Sanitize
+++ b/binutils/.Sanitize
@@ -29,37 +29,39 @@ Things-to-keep:
ChangeLog
Makefile.in
+README
TODO
alloca.c
-ar.c
+am29k-pinsn.c
ar.1
-nm.1
-objdump.1
-ranlib.1
-size.1
-strip.1
-is-ranlib.c
-not-ranlib.c
-maybe-ranlib.c
-is-strip.c
-not-strip.c
-maybe-strip.c
+ar.c
binutils.texi
bucomm.c
+bucomm.h
configure.in
copy.c
cplus-dem.c
filemode.c
gmalloc.c
-am29k-pinsn.c
i960-pinsn.c
+is-ranlib.c
+is-strip.c
m68k-pinsn.c
+maybe-ranlib.c
+maybe-strip.c
+nm.1
nm.c
+not-ranlib.c
+not-strip.c
+objdump.1
objdump.c
+objdump.h
+ranlib.1
ranlib.sh
-README
+size.1
size.c
sparc-pinsn.c
+strip.1
version.c
Do-last:
@@ -69,7 +71,21 @@ echo Done in `pwd`.
#
#
# $Log$
-# Revision 1.11 1991/11/18 08:04:14 bothner
+# Revision 1.12 1991/12/08 01:13:54 sac
+# * bucomm.h: created to hold prototypes of bucomm.c
+# * objdump.h: created to hold prototyes of objdump.c
+# * am29k-pinsn.c: include objdump.h
+# * ar.c: include bucomm.h, get ar.h from the right place and
+# include libbfd.h
+# * bucomm.c: defunize bfd_fatal
+# * copy.c: include bucomm.h, lint.
+# * i960-pinsn.h: include bucomm.h
+# * m68k-pinsn.h: lint
+# * nm.c: include bucomm.h, lint
+# * objdump.c: lint
+# * sparc-pinsn.c: include objdump.h
+#
+# Revision 1.11 1991/11/18 08:04:14 bothner
# * Makefile.in: Bump to version 1.92.
# * version.c, Makefile.in: Get version string from Makefile.
# * copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
diff --git a/binutils/am29k-pinsn.c b/binutils/am29k-pinsn.c
index ae626c3..699a6ad 100644
--- a/binutils/am29k-pinsn.c
+++ b/binutils/am29k-pinsn.c
@@ -27,6 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#else
# include "bfd.h"
# include "sysdep.h"
+# include "objdump.h"
# include "opcode/a29k.h"
# define am29k_opcodes a29k_opcodes
# define am29k_opcode a29k_opcode
diff --git a/binutils/copy.c b/binutils/copy.c
index fa86cf6..b61d003 100644
--- a/binutils/copy.c
+++ b/binutils/copy.c
@@ -19,6 +19,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "bfd.h"
#include "sysdep.h"
+#include "bucomm.h"
asymbol **sympp;
char *input_target = NULL;
@@ -29,7 +30,6 @@ char *output_filename = NULL;
static void setup_sections();
static void copy_sections();
-static boolean strip;
static boolean verbose;
/* This flag distinguishes between strip and copy:
@@ -39,7 +39,7 @@ extern int is_strip;
/* IMPORTS */
extern char *program_name;
-extern char *xmalloc();
+
static
void
@@ -349,13 +349,13 @@ copy_sections(ibfd, isection, obfd)
if (size == 0)
return;
- if (is_strip || get_reloc_upper_bound(ibfd, isection) == 0)
+ if (is_strip || bfd_get_reloc_upper_bound(ibfd, isection) == 0)
{
bfd_set_reloc(obfd, osection, (arelent **)NULL, 0);
}
else
{
- relpp = (arelent **) xmalloc(get_reloc_upper_bound(ibfd, isection));
+ relpp = (arelent **) xmalloc(bfd_get_reloc_upper_bound(ibfd, isection));
relcount = bfd_canonicalize_reloc(ibfd, isection, relpp, sympp);
bfd_set_reloc(obfd, osection, relpp, relcount);
}
diff --git a/binutils/i960-pinsn.c b/binutils/i960-pinsn.c
index 4894c06..2a6cafa 100644
--- a/binutils/i960-pinsn.c
+++ b/binutils/i960-pinsn.c
@@ -21,9 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "bfd.h"
#include "sysdep.h"
-
-extern char *xmalloc();
-extern int fputs();
+#include "bucomm.h"
static char *reg_names[] = {
/* 0 */ "pfp", "sp", "rip", "r3", "r4", "r5", "r6", "r7",
diff --git a/binutils/m68k-pinsn.c b/binutils/m68k-pinsn.c
index 60fa9c2..b75dd08 100644
--- a/binutils/m68k-pinsn.c
+++ b/binutils/m68k-pinsn.c
@@ -20,9 +20,23 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* $Id$
$Log$
- Revision 1.6 1991/12/01 02:58:34 sac
- Updated to point to where the header files are now
-
+ Revision 1.7 1991/12/08 01:14:04 sac
+ * bucomm.h: created to hold prototypes of bucomm.c
+ * objdump.h: created to hold prototyes of objdump.c
+ * am29k-pinsn.c: include objdump.h
+ * ar.c: include bucomm.h, get ar.h from the right place and
+ include libbfd.h
+ * bucomm.c: defunize bfd_fatal
+ * copy.c: include bucomm.h, lint.
+ * i960-pinsn.h: include bucomm.h
+ * m68k-pinsn.h: lint
+ * nm.c: include bucomm.h, lint
+ * objdump.c: lint
+ * sparc-pinsn.c: include objdump.h
+
+ * Revision 1.6 1991/12/01 02:58:34 sac
+ * Updated to point to where the header files are now
+ *
* Revision 1.5 1991/11/03 22:58:44 bothner
* * Makefile.in ($(DIST_NAME).tar.Z), TODO: Various fixes.
* * ar.c (get_pos_bfd): Fix to handling of before/after
@@ -85,7 +99,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
#include "opcode/m68k.h"
-extern int fputs();
extern void print_address();
/* 68k instructions are never longer than this many bytes. */
@@ -233,12 +246,12 @@ print_insn_arg (d, buffer, p, addr, stream)
bfd_vma addr; /* PC for this arg to be relative to */
FILE *stream;
{
- register int val;
+ register int val = 0;
register int place = d[1];
int regno;
register char *regname;
register unsigned char *p1;
- register double flval;
+ register double flval = 0;
int flt_p;
switch (*d)
@@ -639,7 +652,7 @@ fetch_arg (buffer, code, bits)
char code;
int bits;
{
- register int val;
+ register int val = 0;
switch (code)
{
case 's':
diff --git a/binutils/sparc-pinsn.c b/binutils/sparc-pinsn.c
index 68d057c..839dbc0 100644
--- a/binutils/sparc-pinsn.c
+++ b/binutils/sparc-pinsn.c
@@ -24,8 +24,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "sysdep.h"
#include <stdio.h>
#include "opcode/sparc.h"
-
-extern int fputs();
+#include "objdump.h"
extern int print_address();
static char *reg_names[] =
@@ -392,7 +391,7 @@ memcpy(&insn,buffer, sizeof (insn));
if (imm_added_to_rs1)
{
union sparc_insn prev_insn;
- int errcode;
+ int errcode = 0;
memcpy(&prev_insn, buffer -4, sizeof (prev_insn));