summaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-11 16:23:58 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-11 16:23:58 +0000
commit9c64cb799695e801990d0cb94a4316d7c87c9a2d (patch)
tree0de656f650cc0f6831bfda1b1e3962a8aed5c773 /gdb/blockframe.c
parentb1900368aed2cb1ff5ffd1f4bce5de7601e41612 (diff)
downloadgdb-9c64cb799695e801990d0cb94a4316d7c87c9a2d.tar.gz
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.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 29d1c7590f0..1a2a5684e6c 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -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 */