diff options
author | David S. Miller <davem@redhat.com> | 2002-04-22 00:27:39 +0000 |
---|---|---|
committer | David S. Miller <davem@redhat.com> | 2002-04-22 00:27:39 +0000 |
commit | 9319a2feca1b89d455884f911a662c09fcd05a8e (patch) | |
tree | 9268993710973e30f597d9d2d52ff60942485262 /gdb/arc-tdep.c | |
parent | eaa7db9139bb30566dd0a20f83a4b2257829d580 (diff) | |
download | gdb-9319a2feca1b89d455884f911a662c09fcd05a8e.zip gdb-9319a2feca1b89d455884f911a662c09fcd05a8e.tar.gz 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/arc-tdep.c')
-rw-r--r-- | gdb/arc-tdep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index ffa538f..4b43081 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -296,6 +296,14 @@ arc_skip_prologue (CORE_ADDR pc, int frameless_p) return codestream_tell (); } +/* Is the prologue at PC frameless? */ + +int +arc_prologue_frameless_p (CORE_ADDR pc) +{ + return (pc == arc_skip_prologue (pc, 1); +} + /* Return the return address for a frame. This is used to implement FRAME_SAVED_PC. This is taken from frameless_look_for_prologue. */ |