Replace VEC(gdb_xml_value_s) with std::vector
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * xml-support.h (struct gdb_xml_value): Add constructor.
4 <value>: Change type to unique_xmalloc_ptr.
5 (gdb_xml_value_s): Remove typedef.
6 (DEF_VEC_O (gdb_xml_value_s)): Remove.
7 (gdb_xml_element_start_handler): Change parameter type to
8 std::vector.
9 (xml_find_attribute): Likewise.
10 * xml-support.c (xml_find_attribute): Change parameter type to
11 std::vector and adjust.
12 (gdb_xml_values_cleanup): Remove.
13 (gdb_xml_parser::start_element): Adjust to std::vector.
14 (xinclude_start_include): Change paraeter type to std::vector
15 and adjust.
16 * btrace.c (check_xml_btrace_version): Likewise.
17 (parse_xml_btrace_block): Likewise.
18 (parse_xml_btrace_pt_config_cpu): Likewise.
19 (parse_xml_btrace_pt): Likewise.
20 (parse_xml_btrace_conf_bts): Likewise.
21 (parse_xml_btrace_conf_pt): Likewise.
22 * memory-map.c (memory_map_start_memory): Likewise.
23 (memory_map_start_property): Likewise.
24 * osdata.c (osdata_start_osdata): Likewise.
25 (osdata_start_item): Likewise.
26 (osdata_start_column): Likewise.
27 * remote.c (start_thread): Likewise.
28 * solib-aix.c (library_list_start_library): Likewise.
29 (library_list_start_list): Likewise.
30 * solib-svr4.c (library_list_start_library): Likewise.
31 (svr4_library_list_start_list): Likewise.
32 * solib-target.c (library_list_start_segment): Likewise.
33 (library_list_start_section): Likewise.
34 (library_list_start_library): Likewise.
35 (library_list_start_list): Likewise.
36 * tracepoint.c (traceframe_info_start_memory): Likewise.
37 (traceframe_info_start_tvar): Likewise.
38 * xml-syscall.c (syscall_start_syscall): Likewise.
39 * xml-tdesc.c (tdesc_start_target): Likewise.
40 (tdesc_start_feature): Likewise.
41 (tdesc_start_reg): Likewise.
42 (tdesc_start_union): Likewise.
43 (tdesc_start_struct): Likewise.
44 (tdesc_start_flags): Likewise.
45 (tdesc_start_enum): Likewise.
46 (tdesc_start_field): Likewise.
47 (tdesc_start_enum_value): Likewise.
48 (tdesc_start_vector): Likewise.
49
50 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * extension.h (struct xmethod_worker) <clone>: Remove.
53 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
54 Remove.
55 (python_xmethod_worker::clone): Remove.
56 * valops.c (find_overload_match): Use std::move instead of
57 clone.
58
59 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
62 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
63 <free_xmethod_worker_data>: Remove.
64 <get_matching_xmethod_workers>: Chance VEC to std::vector.
65 <get_xmethod_arg_types>: Remove.
66 <get_xmethod_result_type>: Remove.
67 <invoke_xmethod>: Remove.
68 * extension.c (new_xmethod_worker): Remove.
69 (clone_xmethod_worker): Remove.
70 (get_matching_xmethod_workers): Return void, pass std::vector by
71 pointer.
72 (get_xmethod_arg_types): Rename to...
73 (xmethod_worker::get_arg_types): ... this, and adjust.
74 (get_xmethod_result_type): Rename to...
75 (xmethod_worker::get_result_type): ... this, and adjust.
76 (invoke_xmethod): Remove.
77 (free_xmethod_worker): Remove.
78 (free_xmethod_worker_vec): Remove.
79 * extension.h (enum ext_lang_rc): Move here from
80 extension-priv.h.
81 (struct xmethod_worker): Add constructor and destructor.
82 <data>: Remove.
83 <value>: Remove.
84 <invoke, clone, do_get_result_type, do_get_arg_types>: New
85 virtual pure methods.
86 <get_arg_types, get_result_type>: New methods.
87 (xmethod_worker_ptr): Remove typedef.
88 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
89 (xmethod_worker_vec): Remove typedef.
90 (xmethod_worker_up): New typedef.
91 (invoke_xmethod): Remove.
92 (clone_xmethod_worker): Remove.
93 (free_xmethod_worker): Remove.
94 (free_xmethod_worker_vec): Remove.
95 (get_xmethod_arg_types): Remove.
96 (get_xmethod_result_type): Remove.
97 * valops.c (find_method_list): Use std::vector, don't use
98 intermediate vector.
99 (value_find_oload_method_list): Use std::vector.
100 (find_overload_match): Use std::vector.
101 (find_oload_champ): Use std::vector.
102 * value.c (value_free): Use operator delete.
103 (value_of_xmethod): Rename to...
104 (value_from_xmethod): ... this. Don't assign
105 xmethod_worker::value, take rvalue-reference.
106 (result_type_of_xmethod): Adjust.
107 (call_xmethod): Adjust.
108 * value.h: Include extension.h.
109 (struct xmethod_worker): Don't forward-declare.
110 (value_of_xmethod): Rename to...
111 (value_from_xmethod): ... this, take rvalue-reference.
112 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
113 (struct python_xmethod_worker): ... this, add constructor and
114 destructor.
115 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
116 (gdbpy_free_xmethod_worker_data): Rename to...
117 (python_xmethod_worker::~python_xmethod_worker): ... this and
118 adjust.
119 (gdbpy_clone_xmethod_worker_data): Rename to...
120 (python_xmethod_worker::clone): ... this and adjust.
121 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
122 temporary vector.
123 (gdbpy_get_xmethod_arg_types): Rename to...
124 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
125 (gdbpy_get_xmethod_result_type): Rename to...
126 (python_xmethod_worker::do_get_result_type): ... this and
127 adjust.
128 (gdbpy_invoke_xmethod): Rename to...
129 (python_xmethod_worker::invoke): ... this and adjust.
130 (new_python_xmethod_worker): Rename to...
131 (python_xmethod_worker::python_xmethod_worker): ... this and
132 adjust.
133 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
134 Remove.
135 (gdbpy_free_xmethod_worker_data): Remove.
136 (gdbpy_get_matching_xmethod_workers): Use std::vector.
137 (gdbpy_get_xmethod_arg_types): Remove.
138 (gdbpy_get_xmethod_result_type): Remove.
139 (gdbpy_invoke_xmethod): Remove.
140 * python/python.c (python_extension_ops): Remove obsolete
141 callbacks.
142
143 2018-01-05 Pedro Alves <palves@redhat.com>
144
145 PR gdb/18653
146 * common/signals-state-save-restore.c
147 (save_original_signals_state): New parameter 'quiet'. Warn if we
148 find a custom handler preinstalled, instead of internal erroring.
149 But only warn if !quiet.
150 * common/signals-state-save-restore.h
151 (save_original_signals_state): New parameter 'quiet'.
152 * main.c (captured_main_1): Move save_original_signals_state call
153 after option handling, and pass QUIET.
154
155 2018-01-05 Pedro Alves <palves@redhat.com>
156
157 * spu-tdep.c (spu_catch_start): Pass
158 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
159
160 2018-01-05 Pedro Alves <palves@redhat.com>
161
162 PR gdb/22670
163 * ada-lang.c (literal_symbol_name_matcher): New function.
164 (ada_get_symbol_name_matcher): Use it for
165 symbol_name_match_type::SEARCH_NAME.
166 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
167 it down instead of assuming symbol_name_match_type::FULL.
168 * block.h (block_lookup_symbol): New parameter 'match_type'.
169 * c-valprint.c (print_unpacked_pointer): Use
170 lookup_symbol_search_name instead of lookup_symbol.
171 * compile/compile-object-load.c (get_out_value_type): Pass down
172 symbol_name_match_type::SEARCH_NAME.
173 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
174 symbol_name_match_type::FULL.
175 * cp-support.c (cp_get_symbol_name_matcher): Handle
176 symbol_name_match_type::SEARCH_NAME.
177 * infrun.c (insert_exception_resume_breakpoint): Use
178 lookup_symbol_search_name.
179 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
180 * psymtab.c (maintenance_check_psymtabs): Use
181 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
182 * stack.c (print_frame_args): Use lookup_symbol_search_name and
183 SYMBOL_SEARCH_NAME.
184 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
185 if symbol_name_match_type::SEARCH_NAME.
186 (lookup_symbol_in_language): Pass down
187 symbol_name_match_type::FULL.
188 (lookup_symbol_search_name): New.
189 (lookup_language_this): Pass down
190 symbol_name_match_type::SEARCH_NAME.
191 (lookup_symbol_aux, lookup_local_symbol): New parameter
192 'match_type'. Pass it down.
193 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
194 (lookup_symbol_search_name): New declaration.
195 (lookup_symbol_in_block): New 'match_type' parameter.
196
197 2018-01-05 Pedro Alves <palves@redhat.com>
198
199 PR gdb/22670
200 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
201 ada_lookup_symbol.
202 (ada_lookup_symbol): Reimplement in terms of
203 ada_lookup_symbol_list, bits factored out from
204 ada_lookup_encoded_symbol.
205
206 2018-01-05 Joel Brobecker <brobecker@adacore.com>
207
208 * ada-exp.y (write_object_renaming): When subscripting an array
209 using a symbol as the index, pass the block in call to
210 ada_lookup_encoded_symbol when looking that symbol up.
211
212 2018-01-05 Jerome Guitton <guitton@adacore.com>
213
214 * ada-lang.c (ada_array_length): Use ada_index_type instead of
215 TYPE_INDEX_TYPE.
216
217 2018-01-05 Joel Brobecker <brobecker@adacore.com>
218
219 * ada-lang.c (ada_to_fixed_value_create): Add handling of
220 the case where VALUE_LVAL (val0) is not lval_memory.
221
222 2018-01-05 Xavier Roirand <roirand@adacore.com>
223
224 * ada-valprint.c (print_optional_low_bound): Handle
225 character-indexed array printing like boolean-indexed array
226 printing.
227
228 2018-01-05 Joel Brobecker <brobecker@adacore.com>
229
230 * NEWS: Create a new section for the next release branch.
231 Rename the section of the current branch, now that it has
232 been cut.
233
234 2018-01-05 Joel Brobecker <brobecker@adacore.com>
235
236 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
237 * version.in: Bump version to 8.1.50.DATE-git.
238
239 2018-01-03 Xavier Roirand <roirand@adacore.com>
240
241 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
242 Add field.
243 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
244 Add field.
245 (default_exception_support_info) <catch_handlers_sym>: Add field.
246 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
247 (ada_exception_name_addr_1): Add "catch handlers" handling.
248 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
249 Update all callers.
250 (create_excep_cond_exprs) <ex>: Add parameter.
251 (re_set_exception): Update create_excep_cond_exprs call.
252 (print_it_exception, print_one_exception, print_mention_exception)
253 (print_recreate_exception): Add "catch handler" handling.
254 (allocate_location_catch_handlers, re_set_catch_handlers)
255 (check_status_catch_handlers, print_it_catch_handlers)
256 (print_one_catch_handlers, print_mention_catch_handlers)
257 (print_recreate_catch_handlers): New function.
258 (catch_handlers_breakpoint_ops): New variable.
259 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
260 Add parameter. Add "catch handler" handling.
261 (ada_exception_sym_name, ada_exception_breakpoint_ops):
262 Add "catch handler" handling.
263 (ada_exception_catchpoint_cond_string): Add "catch handler"
264 handling.
265 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
266 call.
267 (catch_ada_handlers_command): New function.
268 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
269 operations structure.
270 (_initialize_ada_language): Add "catch handlers" command entry.
271 * NEWS: Document "catch handlers" feature.
272
273 2018-01-02 Joel Brobecker <brobecker@adacore.com>
274
275 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
276 account when creating the array type of the slice.
277 (ada_value_slice): Likewise.
278
279 2018-01-02 Joel Brobecker <brobecker@adacore.com>
280
281 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
282 New enum value.
283 (create_array_type_with_stride): Add byte_stride_prop parameter.
284 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
285 New parameter. Update all callers in this file.
286 (array_type_has_dynamic_stride): New function.
287 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
288 of arrays with dynamic byte strides.
289 * dwarf2read.c (read_array_type): Add support for dynamic
290 DW_AT_byte_stride attributes.
291
292 2018-01-02 Joel Brobecker <brobecker@adacore.com>
293
294 * dwarf2read.c (read_unspecified_type): Treat
295 DW_TAG_enumeration_type DIEs from Ada units as stubs.
296
297 2018-01-01 Joel Brobecker <brobecker@adacore.com>
298
299 Update copyright year range in all GDB files.
300
301 2018-01-01 Joel Brobecker <brobecker@adacore.com>
302
303 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
304 and gdb/testsuite/gdb.base/step-line.c.
305
306 2018-01-01 Joel Brobecker <brobecker@adacore.com>
307
308 * copyright.py (main): Dump the contents of
309 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
310 even if BY_HAND is empty.
311
312 2018-01-01 Joel Brobecker <brobecker@adacore.com>
313
314 * top.c (print_gdb_version): Update Copyright year in version
315 message.
316
317 2018-01-01 Joel Brobecker <brobecker@adacore.com>
318
319 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
320
321 For older changes see ChangeLog-2017.
322 \f
323 Local Variables:
324 mode: change-log
325 left-margin: 8
326 fill-column: 74
327 version-control: never
328 coding: utf-8
329 End:
This page took 0.038635 seconds and 5 git commands to generate.