aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-02-12 16:52:45 +0000
committerAndrew Cagney <cagney@redhat.com>2004-02-12 16:52:45 +0000
commit31687c3c2505191d73aa0036d62f2794a1f7d0d9 (patch)
treeaa1e8b41b0d345ad3e3b967938f9f89cb023c09d /gdb/blockframe.c
parentFix obvious typo (completly -> completely) and update copyrights as needed (diff)
downloadbinutils-gdb-31687c3c2505191d73aa0036d62f2794a1f7d0d9.tar.gz
binutils-gdb-31687c3c2505191d73aa0036d62f2794a1f7d0d9.tar.bz2
binutils-gdb-31687c3c2505191d73aa0036d62f2794a1f7d0d9.zip
2004-02-12 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete. gdbarch.h, gdbarch.c: Re-generate. * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p to generic_prologue_frameless_p. * arch-utils.h (generic_prologue_frameless_p): Delete declaration. * arch-utils.c (generic_prologue_frameless_p): Delete function.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 409ec946156..701d9865132 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -199,9 +199,16 @@ frameless_look_for_prologue (struct frame_info *frame)
if (func_start)
{
func_start += FUNCTION_START_OFFSET;
- /* This is faster, since only care whether there *is* a
- prologue, not how long it is. */
- return PROLOGUE_FRAMELESS_P (func_start);
+ /* NOTE: cagney/2004-02-09: Eliminated per-architecture
+ PROLOGUE_FRAMELESS_P call as architectures with custom
+ implementations had all been deleted. Eventually even this
+ function can go - GDB no longer tries to differentiate
+ between framed, frameless and stackless functions. They are
+ all now considered equally evil :-^. */
+ /* If skipping the prologue ends up skips nothing, there must be
+ no prologue and hence no code creating a frame. There for
+ the function is "frameless" :-/. */
+ return func_start == SKIP_PROLOGUE (func_start);
}
else if (get_frame_pc (frame) == 0)
/* A frame with a zero PC is usually created by dereferencing a