1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / ns32k-tdep.c
index 395bf9bb75c204b2f844d44f51d21f586ab86cab..3edb7f5d5d99eeb9d711ee5c669ecd4bb8334b81 100644 (file)
@@ -76,6 +76,17 @@ ns32k_localcount (enter_pc)
   return localcount;
 }
 
+
+/* Nonzero if instruction at PC is a return instruction.  */
+
+static int
+ns32k_about_to_return (pc)
+     CORE_ADDR pc;
+{
+  return (read_memory_integer (pc, 1) == 0x12);
+}
+
+
 /*
  * Get the address of the enter opcode for the function
  * containing PC, if there is an enter for the function,
@@ -94,7 +105,7 @@ ns32k_get_enter_addr (pc)
   if (pc == 0)
     return 0;
 
-  if (ABOUT_TO_RETURN (pc))
+  if (ns32k_about_to_return (pc))
     return 1;          /* after exit */
 
   enter_addr = get_pc_function_start (pc);
This page took 0.023652 seconds and 4 git commands to generate.