1 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
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
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
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.
50 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
52 * extension.h (struct xmethod_worker) <clone>: Remove.
53 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
55 (python_xmethod_worker::clone): Remove.
56 * valops.c (find_overload_match): Use std::move instead of
59 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
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
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
81 (struct xmethod_worker): Add constructor and destructor.
84 <invoke, clone, do_get_result_type, do_get_arg_types>: New
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
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
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
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
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
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
133 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
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
143 2018-01-05 Pedro Alves <palves@redhat.com>
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.
155 2018-01-05 Pedro Alves <palves@redhat.com>
157 * spu-tdep.c (spu_catch_start): Pass
158 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
160 2018-01-05 Pedro Alves <palves@redhat.com>
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
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.
197 2018-01-05 Pedro Alves <palves@redhat.com>
200 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
202 (ada_lookup_symbol): Reimplement in terms of
203 ada_lookup_symbol_list, bits factored out from
204 ada_lookup_encoded_symbol.
206 2018-01-05 Joel Brobecker <brobecker@adacore.com>
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.
212 2018-01-05 Jerome Guitton <guitton@adacore.com>
214 * ada-lang.c (ada_array_length): Use ada_index_type instead of
217 2018-01-05 Joel Brobecker <brobecker@adacore.com>
219 * ada-lang.c (ada_to_fixed_value_create): Add handling of
220 the case where VALUE_LVAL (val0) is not lval_memory.
222 2018-01-05 Xavier Roirand <roirand@adacore.com>
224 * ada-valprint.c (print_optional_low_bound): Handle
225 character-indexed array printing like boolean-indexed array
228 2018-01-05 Joel Brobecker <brobecker@adacore.com>
230 * NEWS: Create a new section for the next release branch.
231 Rename the section of the current branch, now that it has
234 2018-01-05 Joel Brobecker <brobecker@adacore.com>
236 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
237 * version.in: Bump version to 8.1.50.DATE-git.
239 2018-01-03 Xavier Roirand <roirand@adacore.com>
241 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
243 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
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.
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"
265 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
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.
273 2018-01-02 Joel Brobecker <brobecker@adacore.com>
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.
279 2018-01-02 Joel Brobecker <brobecker@adacore.com>
281 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
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.
292 2018-01-02 Joel Brobecker <brobecker@adacore.com>
294 * dwarf2read.c (read_unspecified_type): Treat
295 DW_TAG_enumeration_type DIEs from Ada units as stubs.
297 2018-01-01 Joel Brobecker <brobecker@adacore.com>
299 Update copyright year range in all GDB files.
301 2018-01-01 Joel Brobecker <brobecker@adacore.com>
303 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
304 and gdb/testsuite/gdb.base/step-line.c.
306 2018-01-01 Joel Brobecker <brobecker@adacore.com>
308 * copyright.py (main): Dump the contents of
309 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
310 even if BY_HAND is empty.
312 2018-01-01 Joel Brobecker <brobecker@adacore.com>
314 * top.c (print_gdb_version): Update Copyright year in version
317 2018-01-01 Joel Brobecker <brobecker@adacore.com>
319 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
321 For older changes see ChangeLog-2017.
327 version-control: never