This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] code_ptr -> func_ptr.
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com, kdienes at apple dot com
- Date: Mon, 11 Nov 2002 11:26:38 -0500
- Subject: [patch] code_ptr -> func_ptr.
Hello,
This fixes a build problem for the ns32k and (I suspect) Apple platforms.
committed,
Andrew
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.
Index: blockframe.c
===================================================================
RCS file: /cvs/src/src/gdb/blockframe.c,v
retrieving revision 1.47
diff -u -r1.47 blockframe.c
--- blockframe.c 9 Nov 2002 19:28:22 -0000 1.47
+++ blockframe.c 11 Nov 2002 16:21:06 -0000
@@ -668,7 +668,7 @@
{
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 @@
/* 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 */