GNU Binutils with patches for OS216
Revisión | e3bdafe2bac1672da335fde734b337c5504e5437 (tree) |
---|---|
Tiempo | 2015-10-29 21:55:01 |
Autor | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
compile: Rename struct type_map_instance::gcc_type field
Fixes:
from src/gdb/compile/compile-internal.h:21,
from src/gdb/compile/compile-c-types.c:23:
quals);
gdb/ChangeLog:
2015-10-29 Pedro Alves <palves@redhat.com>
* compile/compile-c-types.c (struct type_map_instance)
<gcc_type>: Rename to gcc_type_handle.
(insert_type, convert_type): Adjust.
@@ -1,5 +1,11 @@ | ||
1 | 1 | 2015-10-29 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * compile/compile-c-types.c (struct type_map_instance) | |
4 | + <gcc_type>: Rename to gcc_type_handle. | |
5 | + (insert_type, convert_type): Adjust. | |
6 | + | |
7 | +2015-10-29 Pedro Alves <palves@redhat.com> | |
8 | + | |
3 | 9 | * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't |
4 | 10 | assume that "break" breaks out of a TRY/CATCH. |
5 | 11 | * python/py-framefilter.c (py_print_single_arg): Don't assume |
@@ -31,7 +31,7 @@ struct type_map_instance | ||
31 | 31 | |
32 | 32 | /* The corresponding gcc type handle. */ |
33 | 33 | |
34 | - gcc_type gcc_type; | |
34 | + gcc_type gcc_type_handle; | |
35 | 35 | }; |
36 | 36 | |
37 | 37 | /* Hash a type_map_instance. */ |
@@ -72,13 +72,13 @@ insert_type (struct compile_c_instance *context, struct type *type, | ||
72 | 72 | void **slot; |
73 | 73 | |
74 | 74 | inst.type = type; |
75 | - inst.gcc_type = gcc_type; | |
75 | + inst.gcc_type_handle = gcc_type; | |
76 | 76 | slot = htab_find_slot (context->type_map, &inst, INSERT); |
77 | 77 | |
78 | 78 | add = (struct type_map_instance *) *slot; |
79 | 79 | /* The type might have already been inserted in order to handle |
80 | 80 | recursive types. */ |
81 | - if (add != NULL && add->gcc_type != gcc_type) | |
81 | + if (add != NULL && add->gcc_type_handle != gcc_type) | |
82 | 82 | error (_("Unexpected type id from GCC, check you use recent enough GCC.")); |
83 | 83 | |
84 | 84 | if (add == NULL) |
@@ -388,7 +388,7 @@ convert_type (struct compile_c_instance *context, struct type *type) | ||
388 | 388 | inst.type = type; |
389 | 389 | found = (struct type_map_instance *) htab_find (context->type_map, &inst); |
390 | 390 | if (found != NULL) |
391 | - return found->gcc_type; | |
391 | + return found->gcc_type_handle; | |
392 | 392 | |
393 | 393 | result = convert_type_basic (context, type); |
394 | 394 | insert_type (context, type, result); |