aboutsummaryrefslogtreecommitdiff
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
commitee3a7b7f0d021019dd51b6c86375aaa399f63f13 (patch)
tree8026314cc72fe755b335d3d936410e1c4773349e /gdb/gdbtypes.h
parent7099f9f917e81faddb74b18c36125d783ea3d403 (diff)
downloadgdb-ee3a7b7f0d021019dd51b6c86375aaa399f63f13.zip
gdb-ee3a7b7f0d021019dd51b6c86375aaa399f63f13.tar.gz
gdb-ee3a7b7f0d021019dd51b6c86375aaa399f63f13.tar.bz2
* gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
* 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 f5f9f1a..981dbec 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