X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdbtypes.h;h=643c61006befb298011c488e72885b2dc878dd75;hb=ed3ef33944c39d9a3cea72b9a7cef3c20f0e3461;hp=8b340a32bca002d1b578c5d4e9aed083896b26c2;hpb=06d66ee9d97cf451db4bdd7952eca099bc171706;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 8b340a32bc..643c61006b 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1,6 +1,6 @@ /* Internal type definitions for GDB. - Copyright (C) 1992-2013 Free Software Foundation, Inc. + Copyright (C) 1992-2014 Free Software Foundation, Inc. Contributed by Cygnus Support, using pieces from other GDB modules. @@ -1431,8 +1431,12 @@ extern struct type *alloc_type_copy (const struct type *); objfile's architecture is returned. */ extern struct gdbarch *get_type_arch (const struct type *); +/* This returns the target type (or NULL) of TYPE, also skipping + past typedefs. */ +extern struct type *get_target_type (struct type *type); + /* Helper function to construct objfile-owned types. */ -extern struct type *init_type (enum type_code, int, int, char *, +extern struct type *init_type (enum type_code, int, int, const char *, struct objfile *); /* Helper functions to construct architecture-owned types. */ @@ -1508,7 +1512,7 @@ extern const char *type_name_no_tag (const struct type *); extern const char *type_name_no_tag_or_error (struct type *type); -extern struct type *lookup_struct_elt_type (struct type *, char *, int); +extern struct type *lookup_struct_elt_type (struct type *, const char *, int); extern struct type *make_pointer_type (struct type *, struct type **); @@ -1541,6 +1545,10 @@ extern struct type *lookup_unsigned_typename (const struct language_defn *, extern struct type *lookup_signed_typename (const struct language_defn *, struct gdbarch *, const char *); +extern void get_unsigned_type_max (struct type *, ULONGEST *); + +extern void get_signed_type_minmax (struct type *, LONGEST *, LONGEST *); + extern struct type *check_typedef (struct type *); #define CHECK_TYPEDEF(TYPE) \ @@ -1660,4 +1668,6 @@ extern struct type *copy_type (const struct type *type); extern int types_equal (struct type *, struct type *); +extern int types_deeply_equal (struct type *, struct type *); + #endif /* GDBTYPES_H */