aboutsummaryrefslogtreecommitdiff
path: root/binutils/sparc-pinsn.c
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/sparc-pinsn.c
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/sparc-pinsn.c')
-rw-r--r--binutils/sparc-pinsn.c5
1 files changed, 2 insertions, 3 deletions
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));