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