mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
CTF: incorrect underlying type setting for enumeration types
A bug was filed against the incorrect underlying type setting for an enumeration type, which was caused by a copy and paste error. This patch fixes the problem by setting it by calling objfile_int_type, which was originally dwarf2_per_objfile::int_type, with ctf_type_size bits. Also add error checking on ctf_func_type_info call.
This commit is contained in:
@ -936,6 +936,11 @@ const char *objfile_flavour_name (struct objfile *objfile);
|
||||
extern void set_objfile_main_name (struct objfile *objfile,
|
||||
const char *name, enum language lang);
|
||||
|
||||
/* Find an integer type SIZE_IN_BYTES bytes in size from OF and return it.
|
||||
UNSIGNED_P controls if the integer is unsigned or not. */
|
||||
extern struct type *objfile_int_type (struct objfile *of, int size_in_bytes,
|
||||
bool unsigned_p);
|
||||
|
||||
extern void objfile_register_static_link
|
||||
(struct objfile *objfile,
|
||||
const struct block *block,
|
||||
|
Reference in New Issue
Block a user