2002-11-11 Andrew Cagney <ac131313@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 11 Nov 2002 16:23:58 +0000 (16:23 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 11 Nov 2002 16:23:58 +0000 (16:23 +0000)
* blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
instead of void_code_ptr.
(sigtramp_saved_pc): Ditto.

gdb/ChangeLog
gdb/blockframe.c

index bd12e11..661fbd9 100644 (file)
@@ -1,5 +1,9 @@
 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
 
+       * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
+       instead of void_code_ptr.
+       (sigtramp_saved_pc): Ditto.
+
        * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
        i386_fp_regnum_p.
 
index 29d1c75..1a2a568 100644 (file)
@@ -668,7 +668,7 @@ sigtramp_saved_pc (struct frame_info *frame)
 {
   CORE_ADDR sigcontext_addr;
   char *buf;
-  int ptrbytes = TYPE_LENGTH (builtin_type_void_code_ptr);
+  int ptrbytes = TYPE_LENGTH (builtin_type_void_func_ptr);
   int sigcontext_offs = (2 * TARGET_INT_BIT) / TARGET_CHAR_BIT;
 
   buf = alloca (ptrbytes);
@@ -684,7 +684,7 @@ sigtramp_saved_pc (struct frame_info *frame)
   /* Don't cause a memory_error when accessing sigcontext in case the stack
      layout has changed or the stack is corrupt.  */
   target_read_memory (sigcontext_addr + SIGCONTEXT_PC_OFFSET, buf, ptrbytes);
-  return extract_typed_address (buf, builtin_type_void_code_ptr);
+  return extract_typed_address (buf, builtin_type_void_func_ptr);
 }
 #endif /* SIGCONTEXT_PC_OFFSET */