aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/arc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2002-04-22 00:27:39 +0000
committerDavid S. Miller <davem@redhat.com>2002-04-22 00:27:39 +0000
commit9319a2feca1b89d455884f911a662c09fcd05a8e (patch)
tree9268993710973e30f597d9d2d52ff60942485262 /gdb/config/arc
parenteaa7db9139bb30566dd0a20f83a4b2257829d580 (diff)
downloadfsf-binutils-gdb-9319a2feca1b89d455884f911a662c09fcd05a8e.zip
fsf-binutils-gdb-9319a2feca1b89d455884f911a662c09fcd05a8e.tar.gz
fsf-binutils-gdb-9319a2feca1b89d455884f911a662c09fcd05a8e.tar.bz2
2002-04-21 David S. Miller <davem@redhat.com>
* arch-utils.c (generic_prologue_frameless_p): Kill SKIP_PROLOGUE_FRAMELESS_P code. * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete references. (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New. * arc-tdep.c (arc_prologue_frameless_p): Implement. * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete references. (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New. * sparc-tdep.c (sparc_prologue_frameless_p): Implement. (sparc_gdbarch_init): Pass it to set_gdbarch_prologue_frameless_p.
Diffstat (limited to 'gdb/config/arc')
-rw-r--r--gdb/config/arc/tm-arc.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/config/arc/tm-arc.h b/gdb/config/arc/tm-arc.h
index cd94476..cbdcf41 100644
--- a/gdb/config/arc/tm-arc.h
+++ b/gdb/config/arc/tm-arc.h
@@ -29,15 +29,14 @@
#define FUNCTION_START_OFFSET 0
/* Advance PC across any function entry prologue instructions
- to reach some "real" code. SKIP_PROLOGUE_FRAMELESS_P advances
- the PC past some of the prologue, but stops as soon as it
- knows that the function has a frame. Its result is equal
- to its input PC if the function is frameless, unequal otherwise. */
+ to reach some "real" code. */
#define SKIP_PROLOGUE(pc) (arc_skip_prologue (pc, 0))
-#define SKIP_PROLOGUE_FRAMELESS_P(pc) (arc_skip_prologue (pc, 1))
extern CORE_ADDR arc_skip_prologue (CORE_ADDR, int);
+#define PROLOGUE_FRAMELESS_P(pc) arc_prologue_frameless_p(pc)
+extern int arc_prologue_frameless_p (CORE_ADDR);
+
/* Sequence of bytes for breakpoint instruction.
??? The current value is "sr -1,[-1]" and is for the simulator only.
The simulator watches for this and does the right thing.