summaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-07-06 14:44:19 +0000
committerJim Blandy <jimb@codesourcery.com>2001-07-06 14:44:19 +0000
commitd30f071864b3938dd9d197547c65b33980a243f8 (patch)
tree61162f635e5ec567ec8907f43e775c062968afa6 /gdb/gdbtypes.h
parent98581843ca387d7028e863d0db0d768350052591 (diff)
downloadgdb-d30f071864b3938dd9d197547c65b33980a243f8.tar.gz
* gdbtypes.h (builtin_type_void_func_ptr): New builtin type.dberlin-typesystem-branchpoint
* gdbtypes.c (builtin_type_void_func_ptr): Define the variable. (build_gdbtypes): Initialize it. (_initialize_gdbtypes): Swap it.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index f5f9f1ad8f8..981dbec4b7c 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -849,6 +849,16 @@ extern struct type *builtin_type_bool;
/* (C) Language pointer type. Some target platforms use an implicitly
{sign,zero} -extended 32 bit C language pointer on a 64 bit ISA. */
extern struct type *builtin_type_ptr;
+
+/* (C) Language `pointer to function returning void' type. Since
+ ANSI, C standards have explicitly said that pointers to functions
+ and pointers to data are not interconvertible --- that is, you
+ can't cast a function pointer to void * and back, and expect to get
+ the same value. However, all function pointer types are
+ interconvertible, so void (*) () can server as a generic function
+ pointer. */
+extern struct type *builtin_type_void_func_ptr;
+
/* The target CPU's address type. This is the ISA address size. */
extern struct type *builtin_type_CORE_ADDR;
/* The symbol table address type. Some object file formats have a 32