[patch] fix arc-elf and sparc-elf targets

Andrew Cagney
2002-04-22T02:15:53Z

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

FYI,

I've checked in the attached, it fixes arc-elf and sparc-elf target builds.

See the MAINTAINERS file for a list of the targets (and their
corresponding --enable-gdb-build-warnings option) that are expected to
always build.

enjoy,
Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1265 bytes --]

2002-04-21 Andrew Cagney <ac131313@redhat.com>

* config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
declaration
* arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.

Index: arc-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arc-tdep.c,v
retrieving revision 1.10
diff -u -r1.10 arc-tdep.c
--- arc-tdep.c 22 Apr 2002 00:27:38 -0000 1.10
+++ arc-tdep.c 22 Apr 2002 02:07:36 -0000
@@ -301,7 +301,7 @@
int
arc_prologue_frameless_p (CORE_ADDR pc)
{
- return (pc == arc_skip_prologue (pc, 1);
+ return (pc == arc_skip_prologue (pc, 1));
}

/* Return the return address for a frame.
Index: config/sparc/tm-sparc.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/tm-sparc.h,v
retrieving revision 1.14
diff -u -r1.14 tm-sparc.h
--- config/sparc/tm-sparc.h 22 Apr 2002 00:27:39 -0000 1.14
+++ config/sparc/tm-sparc.h 22 Apr 2002 02:07:38 -0000
@@ -250,6 +250,7 @@
/* Advance PC across any function entry prologue instructions
to reach some "real" code. */

+extern CORE_ADDR sparc_skip_prologue (CORE_ADDR, int);
#define SKIP_PROLOGUE(PC) sparc_skip_prologue (PC, 0)

/* Immediately after a function call, return the saved pc.