This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: (alpha) heuristic_proc_start
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: (alpha) heuristic_proc_start
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Mon, 17 Jul 2000 15:01:11 -0700
- Organization: Cygnus Solutions
This one looks very suspect to me:
someone with Alpha knowledge, can you evaluate it?
*** 428,433 ****
--- 577,590 ----
return read_memory_integer (pc, 4) == 0x6bfa8001;
}
+ /* Nonzero if instruction at PC is "lda sp, x(sp)". */
+
+ static int
+ alpha_is_sp_adjust (pc)
+ CORE_ADDR pc;
+ {
+ return (read_memory_integer (pc, 4) & 0xffff0000) == 0x23de0000;
+ }
/* This fencepost looks highly suspicious to me. Removing it also
***************
*** 481,490 ****
return 0;
}
! else if (alpha_about_to_return (start_pc))
break;
- start_pc += 4; /* skip return */
return start_pc;
}
--- 639,647 ----
return 0;
}
! else if (alpha_is_sp_adjust (start_pc))
break;
return start_pc;
}