1 2017-12-30 Tom Tromey <tom@tromey.com>
2 Simon Marchi <simon.marchi@ericsson.com>
4 * stap-probe.h (struct stap_parse_info): Add constructor,
6 * stap-probe.c (stap_parse_argument): Update.
7 * rust-exp.y (rust_lex_tests): Update.
8 * parser-defs.h (struct parser_state): Add constructor,
9 destructor, release method.
10 <expout>: Change type to expression_up.
11 (null_post_parser): Change type.
12 (initialize_expout, reallocate_expout): Remove.
13 * parse.c (parser_state::parser_state): Rename from
15 (parser_state::release): Rename from reallocate_expout.
16 (write_exp_elt, parse_exp_in_context_1, increase_expout_size):
18 (null_post_parser): Change type of "exp".
19 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
20 * ada-lang.c (resolve, resolve_subexp)
21 (replace_operator_with_call): Change type of "expp".
22 * language.h (struct language_defn) <la_post_parser>: Change type
25 2017-12-30 Simon Marchi <simon.marchi@ericsson.com>
27 * dwarf2read.c (struct mapped_debug_names): Make final.
28 (struct mapped_index): Make final.
30 2017-12-29 Simon Marchi <simon.marchi@ericsson.com>
32 * common/diagnostics.h
33 (DIAGNOSTIC_IGNORE_SWITCH_DIFFERENT_ENUM_TYPES): New macro.
34 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Use it.
36 2017-12-29 Simon Marchi <simon.marchi@ericsson.com>
38 * linux-thread-db.c (thread_db_detach): Remove call to
39 delete_thread_db_info.
41 2017-12-28 Simon Marchi <simon.marchi@polymtl.ca>
43 * target.h (enum target_object) <TARGET_OBJECT_HPUX_UREGS,
44 TARGET_OBJECT_HPUX_SOLIB_GOT>: Remove.
46 2017-12-27 Franck Jullien <franck.jullien@gmail.com>
47 Stafford Horne <shorne@gmail.com>
49 * target-descriptions.c (tdesc_register_in_reggroup_p): Support
51 (tdesc_use_registers): Add logic to register new reggroups.
52 (tdesc_reg::group): Update comment to indicate we allow
54 * NEWS (Changes since GDB 8.0): Announce that GDB supports
57 2017-12-27 Stafford Horne <shorne@gmail.com>
59 * reggroups.c (reggroup_gdbarch_new): New function.
60 (reggroup_find): New function.
61 * reggroups.h (reggroup_gdbarch_new): New function.
62 (reggroup_find): New function.
64 2017-12-27 Stafford Horne <shorne@gmail.com>
66 * reggroups.c (reggroups_init): Change to depend only on
67 obstack rather than gdbarch.
68 (reggroup_add): Remove logic for forcing premature init.
69 (_initialize_reggroup): Set `reggroups_data` with
70 gdbarch_data_register_pre_init() rather than
71 gdbarch_data_register_post_init().
73 2017-12-27 Stafford Horne <shorne@gmail.com>
75 * infcmd.c (_initialize_infcmd): Add help for info reg $reggroup
76 and info all-registers $reggroup feature.
78 2017-12-23 Simon Marchi <simon.marchi@polymtl.ca>
80 * target-descriptions.c (print_c_tdesc)
81 <printf_field_type_assignment>: Add ATTRIBUTE_PRINTF.
83 2017-12-21 Simon Marchi <simon.marchi@ericsson.com>
84 Sergio Durigan Junior <sergiodj@redhat.com>
86 * target-descriptions.c (print_c_tdesc) <visit>: Don't output
87 field_type declaration, use printf_field_type_assignment
89 <printf_field_type_assignment>: New method.
90 * features/aarch64-core.c, features/aarch64-fpu.c
91 features/arc-arcompact.c, features/arc-v2.c,
92 features/arm/arm-with-iwmmxt.c, features/i386/32bit-core.c,
93 features/i386/32bit-mpx.c, features/i386/32bit-sse.c,
94 features/i386/64bit-avx512.c, features/i386/64bit-core.c,
95 features/i386/64bit-mpx.c, features/i386/64bit-sse.c,
96 features/i386/x32-core.c, features/or1k.c,
97 features/rs6000/powerpc-7400.c,
98 features/rs6000/powerpc-altivec32.c,
99 features/rs6000/powerpc-altivec32l.c,
100 features/rs6000/powerpc-altivec64.c,
101 features/rs6000/powerpc-altivec64l.c,
102 features/rs6000/powerpc-cell32l.c,
103 features/rs6000/powerpc-cell64l.c,
104 features/rs6000/powerpc-isa205-altivec32l.c,
105 features/rs6000/powerpc-isa205-altivec64l.c,
106 features/rs6000/powerpc-isa205-vsx32l.c,
107 features/rs6000/powerpc-isa205-vsx64l.c,
108 features/rs6000/powerpc-vsx32.c,
109 features/rs6000/powerpc-vsx32l.c,
110 features/rs6000/powerpc-vsx64.c,
111 features/rs6000/powerpc-vsx64l.c, features/s390-gs-linux64.c,
112 features/s390-tevx-linux64.c, features/s390-vx-linux64.c,
113 features/s390x-gs-linux64.c, features/s390x-tevx-linux64.c,
114 features/s390x-vx-linux64.c: Re-generate.
116 2017-12-20 Uros Bizjak <ubizjak@gmail.com>
118 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Remove
119 write-only assignment to "insn" variable.
121 2017-12-20 Ulrich Weigand <uweigand@de.ibm.com>
123 * spu-tdep.c (spu_gdbarch_init): Set set_gdbarch_significant_addr_bit
125 (ppc_linux_init_abi): Likewise, if Cell/B.E. is supported.
127 2017-12-18 Joel Brobecker <brobecker@adacore.com>
129 * ada-lang.c (ada_to_fixed_type_1): Rethrow errors with
130 a more detailed exception message when getting an exception
131 while trying to read the value of an XVZ variable.
132 * ada-valprint.c (ada_val_print): Only catch RETURN_MASK_ERROR
133 exceptions. Print an error message when an exception is caught.
135 2017-12-18 Joel Brobecker <brobecker@adacore.com>
137 * ada-lang.c (assign_component): Strip any TYPE_CODE_TYPEDEF
138 layer from lhs' type.
139 (assign_aggregate): Likewise.
141 2017-12-18 Xavier Roirand <roirand@adacore.com>
143 * ada-lang.c (ada_convert_actual): Change the way actual value
144 are passed to the inferior when the inferior expects a pointer type.
146 2017-12-17 Stafford Horne <shorne@gmail.com>
148 * gdb/or1k-tdep.c (show_or1k_debug): Fix function parameter alignment.
149 (or1k_analyse_inst): Likewise.
150 (or1k_single_step_through_delay): Likewise.
151 (or1k_frame_cache): Fix parameter alignment and use paddress()
154 2017-12-17 Stafford Horne <shorne@gmail.com>
156 * NEWS (Changes since GDB 8.0): Mention new or1k target and new
157 commands to set/show or1k debug.
159 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
161 * typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
164 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
165 Pedro Alves <palves@redhat.com>
168 * NEWS (Changes since GDB 8.0): Mention new '/o' flag.
169 * c-typeprint.c (OFFSET_SPC_LEN): New define.
170 (c_type_print_varspec_prefix): New argument 'struct
171 print_offset_data *'.
172 (c_type_print_base_1): New function and prototype.
173 (c_print_type_1): New function, with code from 'c_print_type'.
174 (c_print_type): Use 'c_print_type_1'.
175 (c_type_print_varspec_prefix): New argument 'struct
176 print_offset_data *'. Use it. Call 'c_type_print_base_1'
177 instead of 'c_print_type_base'.
178 (print_spaces_filtered_with_print_options): New function.
179 (output_access_specifier): Take new argument FLAGS. Modify
180 function to call 'print_spaces_filtered_with_print_options'.
181 (c_print_type_vtable_offset_marker): New function.
182 (c_print_type_union_field_offset): New function.
183 (c_print_type_struct_field_offset): New function.
184 (c_print_type_no_offsets): New function.
185 (c_type_print_base_struct_union): New argument 'struct
186 print_offset_data *'. Print offsets and sizes for
187 struct/union/class fields.
188 * typeprint.c (const struct type_print_options
189 type_print_raw_options): Initialize 'print_offsets'.
190 (static struct type_print_options default_ptype_flags):
192 (struct print_offset_data print_offset_default_data): New
194 (whatis_exp): Handle '/o' option.
195 (_initialize_typeprint): Add '/o' flag to ptype's help.
196 * typeprint.h (struct print_offset_data): New struct.
197 (struct type_print_options) <print_offsets>: New field.
199 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
201 * c-typeprint.c (need_access_label_p): New function.
202 (c_type_print_base_struct_union): New function.
203 (c_type_print_base): Move code to handle
204 TYPE_CODE_{STRUCT,UNION} to the functions mentioned above.
206 2017-12-15 Richard Henderson <rth@redhat.com>
207 Uros Bizjak <ubizjak@gmail.com>
210 * alpha-tdep.c (alpha_software_single_step): Call
211 alpha_deal_with_atomic_sequence here.
212 (set_gdbarch_software_single_step): Set to
213 alpha_software_single_step.
214 * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
215 and GDB_ARCH_IS_TRAP_HWBKPT.
217 2017-12-15 Yao Qi <yao.qi@linaro.org>
219 * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT.
221 2017-12-15 Xavier Roirand <roirand@adacore.com>
223 * ada-lang.c (ada_value_primitive_field): Handle field search
225 (find_struct_field): Ditto.
226 (ada_search_struct_field): Ditto.
227 (ada_value_struct_elt): Ditto.
228 (ada_lookup_struct_elt_type): Ditto.
230 2017-12-14 Simon Marchi <simon.marchi@ericsson.com>
232 * python/py-breakpoint.c (bppy_init): Use 'O' format specifier
233 for "qualified" and use PyObject_IsTrue.
235 2017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com>
237 * dwarf2read.c (dw2_debug_names_iterator::next): Support
239 (debug_names::dwarf5_offset_size, unit_kind): New.
240 (debug_names::insert): Add parameter kind.
241 (debug_names::build): Support DW_IDX_type_unit.
242 (debug_names::recursively_write_psymbols): Update
243 (debug_names::write_psymbols caller.
244 (debug_names::write_one_signatured_type_data)
245 (debug_names::write_one_signatured_type): New.
246 (debug_names::index_key, debug_names::symbol_value)
247 (debug_names::write_psymbols): Add kind.
248 (debug_names::write_one_signatured_type): New.
249 (write_debug_names): Move dwarf5_offset_size to debug_names.
250 Use debug_names::write_one_signatured_type for type units.
252 2017-12-14 Joel Brobecker <brobecker@adacore.com>
254 * ada-lang.c (ada_value_equal): Add handling of typedef types
255 when comparing array objects.
257 2017-12-14 Joel Brobecker <brobecker@adacore.com>
259 * ada-tasks.c (read_atcb): Properly set task_info->ptid
260 when !target_has_execution as well.
261 (task_command): Remove error when !target_has_execution.
263 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
265 * location.h (string_to_event_location): Add match_type
267 * location.c (string_to_event_location): Likewise.
268 * python/py-breakpoint.c (bppy_init): Handle qualified
271 2017-12-13 Pedro Alves <palves@redhat.com>
273 * completer.c (completion_tracker::maybe_add_completion): New
274 'text' and 'word' parameters. Use make_completion_match_str.
275 (completion_tracker::add_completion): New 'text' and 'word'
276 parameters. Pass down.
277 (completion_tracker::recompute_lowest_common_denominator): Change
278 parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust.
279 * completer.h (completion_tracker::add_completion): New 'text' and
281 (completion_tracker::recompute_lowest_common_denominator): Change
282 parameter type to gdb::unique_xmalloc_ptr rval ref.
283 (completion_tracker::recompute_lowest_common_denominator): Change
284 parameter type to gdb::unique_xmalloc_ptr rval ref.
285 * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
288 2017-12-13 Pedro Alves <palves@redhat.com>
290 * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
291 make_completion_match_str.
292 * completer.c: Use gdb::unique_xmalloc_ptr and
293 make_completion_match_str.
294 (make_completion_match_str_1): New.
295 (make_completion_match_str(const char *, const char *,
297 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
298 const char *, const char *)): New.
299 * completer.h (make_completion_match_str(const char *,
300 const char *, const char *)): New.
301 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
302 const char *, const char *)): New.
303 * interps.c (interpreter_completer): Use make_completion_match_str.
304 * symtab.c (completion_list_add_name, add_filename_to_list): Use
305 make_completion_match_str.
307 2017-12-13 Stafford Horne <shorne@gmail.com>
309 * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
311 (or1k_unwind_pc): Use paddress() instead of %p.
312 (or1k_unwind_sp): Likewise.
313 (or1k_frame_cache): Use host_address_to_string()/paddress()
314 instead of %p and use _() wrapper for message strings.
316 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
318 * contrib/ari/gdb_ari.sh: Fix typo in help.
320 2017-12-13 Joel Brobecker <brobecker@adacore.com>
322 * event-top.c (handle_line_of_input): Set server_command.
324 2017-12-12 Stafford Horne <shorne@gmail.com>
325 Stefan Wallentowitz <stefan@wallentowitz.de>
326 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
327 Franck Jullien <franck.jullien@gmail.com>
328 Jeremy Bennett <jeremy.bennett@embecosm.com>
330 * configure.tgt: Add targets for or1k and or1knd.
331 * or1k-tdep.c: New file.
332 * or1k-tdep.h: New file.
333 * features/Makefile: Add or1k.xml to build.
334 * features/or1k.xml: New file.
335 * features/or1k-core.xml: New file.
336 * features/or1k.c: Generated.
338 2017-12-12 Alan Modra <amodra@gmail.com>
341 * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
342 PLT offset, and retrieve r2 from stack when executing in reverse.
343 (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
344 rather than PLT address.
345 (ppc64_standard_linkage2_target): Likewise.
346 (ppc64_standard_linkage3_target): Likewise.
347 (ppc64_standard_linkage4_target): Likewise.
348 (ppc64_skip_trampoline_code_1): Adjust to suit.
350 2017-12-11 Simon Marchi <simon.marchi@ericsson.com>
353 * remote.c (remote_thread_name): Return NULL if name is empty.
354 (remote_threads_extra_info): Return NULL if extra info is empty.
356 2017-12-11 Pedro Alves <palves@redhat.com>
358 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
359 (elf_sym_fns_debug_names): Move to elfread.c.
360 * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
361 instead of a sym_fns and add 'index_kind' output parameter. Fill
362 the latter in with the index variant kind if using an index.
363 (enum dw_index_kind): Moved to symfile.h.
364 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
365 (elf_sym_fns_lazy_psyms): Move from defs.h.
366 (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
368 * symfile.h (enum class dw_index_kind): New, moved from
370 (dwarf2_initialize_objfile): Change prototype.
372 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
374 * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
375 instead of mpfr_set_si to convert mantissa bits.
377 2017-12-11 Xavier Roirand <roirand@adacore.com>
378 Joel Brobecker <brobecker@adacore.com>
380 * ada-lang.c (ada_tag_value_at_base_address): Change the way
381 tagged type base address is computed.
382 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
384 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
385 element of lai->primitive_type_vector.
387 2017-12-08 Pedro Alves <palves@redhat.com>
389 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
391 (check_match): Adjust to use mock_index directly.
392 (check_find_bounds_finds)
393 (test_mapped_index_find_name_component_bounds): Adjust to work
394 with a mapped_index_base.
396 2017-12-08 Pedro Alves <palves@redhat.com>
398 * dwarf2read.c (struct mapped_index_base): New, partially factored
400 (struct mapped_index): ... this. Inherit mapped_index_base.
401 (mapped_index::symbol_name_slot_invalid):
402 (mapped_index::symbol_name_at): Add override marker.
403 (mapped_index::symbol_name_count): New.
404 (struct mapped_debug_names): Inherit mapped_index_base.
405 (mapped_debug_names::symbol_name_at): New.
406 (mapped_debug_names::symbol_name_count): New.
407 (mapped_index::find_name_components_bounds): Rename to ...
408 (mapped_index_base::find_name_components_bounds): ... this.
409 (mapped_index::build_name_components): Rename to ...
410 (mapped_index_base::build_name_components): ... this. Adjust to
411 use mapped_index_base::symbol_name_count and
412 mapped_index_base::symbol_name_slot_invalid.
413 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
414 instead of a mapped_index. Use
415 dw2_expand_symtabs_matching_symbol.
417 2017-12-08 Pedro Alves <palves@redhat.com>
419 * dwarf2read.c (mapped_index::symbol_table_slot): New.
420 (mapped_index::address_table): Now a gdb::array_view of const
422 (mapped_index::symbol_table): Now a gdb::array_view of
424 (mapped_index::address_table_size)
425 (mapped_index::symbol_table_slots): Delete.
426 (create_addrmap_from_index): Adjust.
427 (find_slot_in_mapped_hash): Adjust.
428 (read_index_from_section): Adjust.
429 (dwarf2_read_index): Adjust.
431 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
432 Pedro Alves <palves@redhat.com>
434 * defs.h (elf_sym_fns_debug_names): New declaration.
435 * dwarf2read.c: Include "hash_enum.h".
436 (mapped_debug_names): New.
437 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
439 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
440 (struct dwz_file): Add debug_names.
441 (dwarf2_per_objfile::locate_sections): Handle debug_names and
443 (locate_dwz_sections): Handle debug_names.
444 (create_signatured_type_table_from_debug_names)
445 (create_addrmap_from_aranges): New.
446 (dwarf2_read_index): Update function comment.
447 (dwarf5_augmentation): Moved up.
448 (read_debug_names_from_section, create_cus_from_debug_names_list)
449 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
450 (dwarf5_djb_hash): Moved up.
451 (dw2_debug_names_iterator): New.
452 (read_indirect_string_at_offset): New declaration.
453 (mapped_debug_names::namei_to_name)
454 (dw2_debug_names_iterator::find_vec_in_debug_names)
455 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
456 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
457 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
459 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
460 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
461 (debug_names::build): Update djb_hash caller.
462 (write_debug_names): Move out and rename augmentation to
464 * elfread.c (elf_sym_fns_debug_names): New.
465 * psymtab.h (dwarf2_debug_names_functions): New declaration.
466 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
468 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
470 2017-12-08 Pedro Alves <palves@redhat.com>
472 * common/hash_enum.h: New file.
474 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
476 * dwarf2read.c (create_cu_from_index_list): New from ...
477 (create_cus_from_index_list): ... this function, use it.
478 (dw_expand_symtabs_matching_file_matcher)
479 (dw2_expand_symtabs_matching_one): New from ...
480 (dw2_expand_symtabs_matching): ... this function, use them.
482 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
484 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
485 declarations from elfread.c.
486 (dwarf2_initialize_objfile): Change return value.
487 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
488 declarations to defs.h.
489 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
490 * symfile.h (dwarf2_initialize_objfile): Change return type.
492 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
493 Pedro Alves <palves@redhat.com>
495 * contrib/gdb-add-index.sh (index): Rename to ...
497 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
498 Support also .debug_names and .debug_str.
499 * dwarf2read.c: Include cmath, set, list.
500 (INDEX_SUFFIX): Rename to ...
501 (INDEX4_SUFFIX): ... here.
502 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
503 (file_write(FILE *, const void *, size_t)): New.
504 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
505 (data_buf::append_unsigned_leb128, data_buf::empty): New.
506 (data_buf::file_write): Use ::file_write.
507 (data_buf::c_str, dwarf5_djb_hash, debug_names)
508 (check_dwarf64_offsets): New.
509 (psyms_seen_size, write_gdbindex): New from
510 write_psymtabs_to_index code.
511 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
512 (enum dw_index_kind): New.
513 (write_psymtabs_to_index): New parameter index_kind. Support
514 filename_str and out_file_str. Move code to write_gdbindex,
515 possibly call write_debug_names.
516 (save_gdb_index_command): New parameter -dwarf-5.
517 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
519 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
520 Pedro Alves <palves@redhat.com>
522 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
524 (GDB_ADD_INDEX): New variable.
525 <$want_index>: Call $GDB_ADD_INDEX.
527 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
529 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
530 "expression_up" inside the TRY block.
532 2017-12-08 Yao Qi <yao.qi@linaro.org>
534 * breakpoint.c (update_watchpoint): Call
537 2017-12-08 Yao Qi <yao.qi@linaro.org>
539 * breakpoint.c (adjust_breakpoint_address): Call
542 2017-12-08 Yao Qi <yao.qi@linaro.org>
544 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
545 significant_addr_bit.
546 * gdbarch.sh (significant_addr_bit): New.
547 * gdbarch.c, gdbarch.h: Re-generated.
548 * target.c (memory_xfer_partial): Call address_significant.
549 * utils.c (address_significant): New function.
550 * utils.h (address_significant): Declare.
552 2017-12-08 Tom Tromey <tom@tromey.com>
554 * printcmd.c (ui_printf): Update. Use std::vector.
555 * common/format.h (struct format_piece): Add constructor.
557 (class format_pieces): New class.
558 (parse_format_string, free_format_pieces)
559 (free_format_pieces_cleanup): Remove.
560 * common/format.c (format_pieces::format_pieces): Rename from
561 parse_format_string. Update.
562 (free_format_pieces, free_format_pieces_cleanup): Remove.
563 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
564 * ax-gdb.h (gen_printf): Remove argument.
565 * ax-gdb.c (gen_printf): Remove "frags" argument.
566 (maint_agent_printf_command): Update. Use std::vector.
568 2017-12-08 Yao Qi <yao.qi@linaro.org>
571 * linespec.c (minsym_found): Set sal.section.
573 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
575 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
577 2017-12-07 Keith Seitz <keiths@redhat.com>
580 * location.c (string_to_explicit_location): When terminating
581 parsing early, break out of enclosing loop instead of returning.
583 2017-12-07 Keith Seitz <keiths@redhat.com>
585 * NEWS (New commands): Mention set/show print type nested-type-limit.
586 * c-typeprint.c (c_type_print_base): Print out nested types.
587 * dwarf2read.c (struct typedef_field_list): Rename to ...
588 (struct decl_field_list): ... this. Change all uses.
589 (struct field_info) <nested_types_list, nested_types_list_count>:
591 (add_partial_symbol): Look for nested type definitions in C++, too.
592 (dwarf2_add_typedef): Rename to ...
593 (dwarf2_add_type_defn): ... this.
594 (type_can_define_types): New function.
595 Update assertion to use type_can_define_types.
596 Permit NULL for a field's name.
597 (process_structure_scope): Handle child DIEs of types that can
599 Copy the list of nested types into the type struct.
600 * gdbtypes.h (struct typedef_field): Rename to ...
601 (struct decl_field): ... this. Change all uses.
602 [is_protected, is_private]: New fields.
603 (struct cplus_struct_type) <nested_types, nested_types_count>: New
605 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
606 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
607 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
608 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
609 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
610 default value for print_nested_type_limit.
611 (print_nested_type_limit): New static variable.
612 (set_print_type_nested_types, show_print_type_nested_types): New
614 (_initialize_typeprint): Register new commands for set/show
615 `print-nested-type-limit'.
616 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
619 2017-12-07 Tom Tromey <tom@tromey.com>
621 PR breakpoints/22511:
622 * breakpoint.c (commands_command_1): Don't throw an exception when
623 no commands have been read.
625 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
628 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
631 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
633 * common/selftest.h (struct selftest): Add virtual destructor.
635 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
637 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
638 over basic location code. Implement explicit location keywords.
639 (bppy_init_validate_args): New function.
640 * NEWS: Document Python explicit breakpoint locations.
642 2017-12-07 Joel Brobecker <brobecker@adacore.com>
644 * MAINTAINERS: Restore target entries for m68hc11-elf,
645 score-elf and xstormy16-elf, incorrectly removed in a previous
646 patch meant to only update the list of active maintainers.
648 2017-12-06 Pedro Alves <palves@redhat.com>
650 * break-catch-syscall.c (insert_catch_syscall)
651 (remove_catch_syscall): Adjust to pass reference to
652 inf_data->syscalls_counts directly via gdb::array_view.
653 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
655 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
656 * remote.c (remote_set_syscall_catchpoint): Likewise.
657 * target-debug.h (target_debug_print_bool): New.
658 (define target_debug_print_gdb_array_view_const_int): New.
659 * target-delegates.c: Regenerate.
660 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
661 gdb::array_view and bool.
662 (target_set_syscall_catchpoint): Likewise.
664 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
666 * break-catch-syscall.c (catch_syscall_completer): Get pointers
667 to syscall group strings after building the string vector.
669 2017-12-06 Pedro Alves <palves@redhat.com>
671 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
672 "qXfer:features:read"" is disabled.
673 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
674 Check packet_config_support instead of packet->support directly.
676 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
678 * target-descriptions.c (struct tdesc_feature) <registers>: Use
679 tdesc_reg_up typedef.
680 (struct target_desc) <features>: Use tdesc_feature_up typedef.
682 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
684 * target-descriptions.c (struct tdesc_type): Use default
688 (struct tdesc_type_builtin): New.
689 (struct tdesc_type_vector): New.
690 (struct tdesc_type_with_fields): New.
691 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
692 (tdesc_gdb_type): Remove.
693 (tdesc_register_type): Adjust.
694 (tdesc_create_vector): Create tdesc_type_vector.
695 (tdesc_create_struct): Create tdesc_type_with_fields.
696 (tdesc_set_struct_size): Change parameter type.
697 (tdesc_create_union): Create tdesc_type_with_fields.
698 (tdesc_create_flags): Likewise.
699 (tdesc_create_enum): Likewise.
700 (tdesc_add_field): Change parameter type.
701 (tdesc_add_typed_bitfield): Likewise.
702 (tdesc_add_bitfield): Likewise.
703 (tdesc_add_flag): Likewise.
704 (tdesc_add_enum_value): Likewise.
705 (print_c_tdesc) <visit>: Remove overload with tdesc_type
706 parameter, add overloads for tdesc_type_builtin,
707 tdesc_type_with_fields and tdesc_type_vector.
708 <m_printed_type>: Remove.
709 <m_printed_element_type, m_printed_type_with_fields>: Add.
710 * target-descriptions.h (tdesc_create_enum): Change return type.
711 (tdesc_add_typed_bitfield): Change parameter type.
712 (tdesc_add_enum_value): Change parameter type.
713 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
714 type to tdesc_type_with_fields.
715 (tdesc_start_struct): Adjust.
716 (tdesc_start_flags): Adjust.
717 (tdesc_start_enum): Adjust.
718 (tdesc_start_field): Adjust.
719 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
720 (struct tdesc_type_vector): Forward-declare.
721 (struct tdesc_type_with_fields): Forward-declare.
722 (tdesc_create_struct): Change return type.
723 (tdesc_create_union): Likewise.
724 (tdesc_create_flags): Likewise.
725 (tdesc_add_field): Change parameter type.
726 (tdesc_set_struct_size): Likewise.
727 (tdesc_add_bitfield): Likewise.
728 (tdesc_add_flag): Likewise.
729 * features: Re-generate C files.
731 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
733 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
734 (struct tdesc_arch_reg): Add constructor.
735 (DEF_VEC_O (tdesc_arch_reg)): Remove.
736 (struct tdesc_arch_data): Initialize fields.
737 <arch_regs>: Change type to std::vector.
738 (target_find_description): Adjust.
739 (tdesc_find_type): Adjust.
740 (tdesc_data_init): Call tdesc_arch_data constructor.
741 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
742 (tdesc_data_cleanup): Free data with delete.
743 (tdesc_numbered_register): Adjust.
744 (tdesc_find_arch_register): Adjust.
745 (tdesc_use_registers): Adjust.
747 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
749 * target-descriptions.c (tdesc_type_field): Remove typedef.
750 (DEF_VEC_O (tdesc_type_field)): Remove.
751 (struct tdesc_type_field): Add constructor.
752 <name>: Change type to std::string.
753 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
755 <~tdesc_type>: Destroy vector if the type kind uses it.
756 <u::u::fields>: Change type to std::vector.
757 (tdesc_gdb_type): Adjust.
758 (tdesc_add_field): Adjust.
759 (tdesc_add_typed_bitfield): Adjust.
760 (tdesc_add_field): Adjust.
761 (tdesc_add_enum_value): Adjust.
762 (class print_c_tdesc) <visit>: Adjust.
764 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
766 * target-descriptions.c (struct tdesc_type) <name>: Change type
768 <~tdesc_type>: Don't manually free name.
769 <operator==>: Adjust.
770 (tdesc_named_type): Adjust.
771 (tdesc_find_type): Adjust.
772 (tdesc_gdb_type): Adjust.
773 (class print_c_tdesc) <visit>: Adjust.
775 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
777 * target-descriptions.c (tdesc_type_p): Remove typedef.
778 (DEF_VEC_P (tdesc_type_p)): Remove.
779 (struct tdesc_feature) <types>: Change type to std::vector.
780 <~tdesc_feature>: Replace with default implementation.
782 (tdesc_named_type): Adjust.
783 (tdesc_create_vector): Adjust.
784 (tdesc_create_struct): Adjust.
785 (tdesc_create_union): Adjust.
786 (tdesc_create_flags): Adjust.
787 (tdesc_create_enum): Adjust.
789 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
791 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
792 type of name_ parameter, adjust to std::string change.
793 <name, group, type>: Change type to std::string.
794 <~tdesc_reg>: Replace with default implementation.
795 <operator==>: Adjust.
796 (tdesc_find_register_early): Adjust.
797 (tdesc_register_name): Adjust.
798 (tdesc_register_type): Adjust.
799 (tdesc_register_in_reggroup_p): Adjust.
800 (class print_c_tdesc) <visit>: Adjust.
801 (class print_c_feature) <visit>: Adjust.
802 * features/arc-arcompact.c: Re-generate.
803 * features/arc-v2.c: Re-generate.
805 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
807 * target-descriptions.c (tdesc_reg_p): Remove typedef.
808 (DEF_VEC_P (tdesc_reg_p)): Remove.
809 (struct tdesc_feature) <registers>: Change type to std::vector.
810 <~tdesc_feature>: Don't manually free registers.
812 <operator==>: Adjust.
813 (tdesc_has_registers): Adjust.
814 (tdesc_find_register_early): Adjust.
815 (tdesc_use_registers): Adjust.
816 (tdesc_create_reg): Adjust.
818 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
820 * target-descriptions.c (tdesc_feature) <name>: Change type to
822 <~tdesc_feature>: Don't manually free name.
823 <operator==>: Adjust.
824 (tdesc_find_feature): Adjust.
825 (tdesc_feature_name): Adjust.
826 (class print_c_tdesc) <visit_pre>: Adjust.
827 (class print_c_feature) <visit_pre>: Adjust.
829 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
831 * target-descriptions.c (tdesc_feature_p): Remove typedef.
832 (DEF_VEC_P (tdesc_feature_p)): Remove.
833 (struct target_desc) <features>: Change type to std::vector.
834 <~target_desc>: Replace with default implementation.
836 <operator==>: Adjust.
837 (tdesc_has_registers): Adjust.
838 (tdesc_find_feature): Adjust.
839 (tdesc_use_registers): Adjust.
840 (tdesc_create_feature): Adjust.
842 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
844 * target-descriptions.c (arch_p): Remove typedef.
845 (DEF_VEC_P (arch_p)): Remove.
846 (struct target_desc) <compatible>: Change type to std::vector.
847 <~target_desc>: Don't manually free compatible.
848 (tdesc_compatible_p): Adjust.
849 (tdesc_add_compatible): Adjust.
850 (class print_c_tdesc) <visit_pre>: Adjust.
852 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
854 * target-descriptions.c (property_s): Remove typedef.
855 (DEF_VEC_O (property_s)): Remove.
856 (struct target_desc) <properties>: Make an std::vector.
857 <~target_desc>: Don't manually free properties.
858 (tdesc_property): Adjust.
859 (set_tdesc_property): Adjust.
860 (class print_c_tdesc) <visit_pre>: Adjust.
862 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
864 * common/gdb_assert.h (gdb_static_assert): Redefine using
867 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
869 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
871 (ada_is_redundant_range_encoding): Likewise.
872 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
874 * alpha-tdep.c (alpha_software_single_step): Likewise.
875 * arm-tdep.c (_initialize_arm_tdep): Likewise.
876 * auto-load.c (info_auto_load_cmd): Likewise.
877 * break-catch-syscall.c (insert_catch_syscall): Likewise.
878 (remove_catch_syscall): Likewise.
879 * breakpoint.c (condition_completer): Likewise.
880 (clear_command): Likewise.
881 (update_breakpoint_locations): Likewise.
882 * btrace.c (btrace_disable): Likewise.
883 (btrace_teardown): Likewise.
884 (btrace_maint_update_pt_packets): Likewise.
885 (maint_btrace_clear_cmd): Likewise.
886 * cli/cli-decode.c (lookup_cmd_1): Likewise.
887 (lookup_cmd_composition): Likewise.
888 * cli/cli-dump.c (scan_filename): Likewise.
889 (restore_command): Likewise.
890 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
891 * compile/compile-object-load.c (compile_object_load): Likewise.
892 * compile/compile-object-run.c (compile_object_run): Likewise.
893 * compile/compile.c (compile_to_object): Likewise.
894 * completer.c (filename_completer): Likewise.
895 (complete_files_symbols): Likewise.
896 (complete_expression): Likewise.
897 * corelow.c (core_open): Likewise.
898 * ctf.c (ctf_start): Likewise.
899 (ctf_write_status): Likewise.
900 (ctf_write_uploaded_tsv): Likewise.
901 (ctf_write_definition_end): Likewise.
902 (ctf_open_dir): Likewise.
903 (ctf_xfer_partial): Likewise.
904 (ctf_trace_find): Likewise.
905 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
907 * dwarf2loc.c (allocate_piece_closure): Likewise.
908 (indirect_pieced_value): Likewise.
909 (dwarf2_evaluate_loc_desc_full): Likewise.
910 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
911 (dw2_expand_symtabs_matching): Likewise.
912 (dw2_map_symbol_filenames): Likewise.
913 (read_and_check_comp_unit_head): Likewise.
914 (read_cutu_die_from_dwo): Likewise.
915 (lookup_dwo_unit): Likewise.
916 (read_comp_units_from_section): Likewise.
917 (dwarf2_compute_name): Likewise.
918 (handle_DW_AT_stmt_list): Likewise.
919 (create_cus_hash_table): Likewise.
920 (create_dwp_v2_section): Likewise.
921 (dwarf2_rnglists_process): Likewise.
922 (dwarf2_ranges_process): Likewise.
923 (dwarf2_record_block_ranges): Likewise.
924 (is_vtable_name): Likewise.
925 (read_formatted_entries): Likewise.
926 (skip_form_bytes): Likewise.
927 * elfread.c (elf_symtab_read): Likewise.
928 * exec.c (exec_file_command): Likewise.
929 * f-valprint.c (f_val_print): Likewise.
930 (info_common_command_for_block): Likewise.
931 * guile/guile.c (initialize_scheme_side): Likewise.
932 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
933 * guile/scm-cmd.c (cmdscm_completer): Likewise.
934 (gdbscm_register_command_x): Likewise.
935 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
936 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
937 * guile/scm-ports.c (file_port_magic): Likewise.
938 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
939 (ppscm_pretty_print_one_value): Likewise.
940 (ppscm_print_children): Likewise.
941 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
942 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
943 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
944 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
945 * i386-tdep.c (i386_register_reggroup_p): Likewise.
946 * infcmd.c (run_command_1): Likewise.
947 (until_next_fsm_clean_up): Likewise.
948 * linespec.c (linespec_complete): Likewise.
949 (find_label_symbols): Likewise.
950 * m2-valprint.c (m2_val_print): Likewise.
951 * memattr.c (require_user_regions): Likewise.
952 (lookup_mem_region): Likewise.
953 (disable_mem_command): Likewise.
954 (mem_delete): Likewise.
955 * mep-tdep.c (mep_register_name): Likewise.
956 (mep_analyze_prologue): Likewise.
957 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
958 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
959 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
960 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
961 * minidebug.c (lzma_open): Likewise.
962 * minsyms.c (lookup_minimal_symbol): Likewise.
963 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
964 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
965 (mips_o64_return_value): Likewise.
966 (mips_single_step_through_delay): Likewise.
967 (_initialize_mips_tdep): Likewise.
968 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
969 (nios2_software_single_step): Likewise.
970 * parse.c (find_minsym_type_and_address): Likewise.
971 * psymtab.c (psym_relocate): Likewise.
972 * python/py-breakpoint.c (bppy_get_commands): Likewise.
973 (gdbpy_breakpoint_modified): Likewise.
974 * python/py-infevents.c (create_inferior_call_event_object):
976 * python/py-record-btrace.c (btpy_list_item): Likewise.
977 * python/py-type.c (typy_str): Likewise.
978 * python/py-value.c (valpy_call): Likewise.
979 * python/python.c (do_start_initialization): Likewise.
980 * record-btrace.c (record_btrace_insn_history_range): Likewise.
981 (record_btrace_call_history_range): Likewise.
982 (record_btrace_record_method): Likewise.
983 (record_btrace_xfer_partial): Likewise.
984 (btrace_get_frame_function): Likewise.
985 * record-full.c (record_full_open): Likewise.
986 * record.c (get_context_size): Likewise.
987 * registry.h (DEFINE_REGISTRY): Likewise.
988 * remote-fileio.c (remote_fileio_request): Likewise.
989 * remote.c (remote_update_thread_list): Likewise.
990 (remote_check_symbols): Likewise.
991 (remote_commit_resume): Likewise.
992 (remote_interrupt): Likewise.
993 (remote_insert_breakpoint): Likewise.
994 (compare_sections_command): Likewise.
995 * rust-exp.y (super_name): Likewise.
996 (lex_string): Likewise.
997 (convert_ast_to_type): Likewise.
998 (convert_ast_to_expression): Likewise.
999 * rust-lang.c (rust_print_struct_def): Likewise.
1000 (rust_print_type): Likewise.
1001 (rust_evaluate_subexp): Likewise.
1002 * rx-tdep.c (rx_register_type): Likewise.
1003 * ser-event.c (serial_event_clear): Likewise.
1004 * serial.c (serial_open): Likewise.
1005 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1006 * symfile.c (section_is_overlay): Likewise.
1007 (overlay_unmapped_address): Likewise.
1008 (overlay_mapped_address): Likewise.
1009 (simple_overlay_update_1): Likewise.
1010 (simple_overlay_update): Likewise.
1011 * symtab.c (symbol_find_demangled_name): Likewise.
1012 (search_symbols): Likewise.
1013 * target-descriptions.c (tdesc_predefined_type): Likewise.
1014 * target.c (target_commit_resume): Likewise.
1015 * thread.c (print_selected_thread_frame): Likewise.
1016 * top.c (new_ui_command): Likewise.
1017 (gdb_readline_no_editing): Likewise.
1018 * tracefile-tfile.c (tfile_open): Likewise.
1019 * tracepoint.c (create_tsv_from_upload): Likewise.
1020 * utils.c (quit): Likewise.
1021 (defaulted_query): Likewise.
1022 * valarith.c (value_concat): Likewise.
1023 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
1024 * xml-tdesc.c (target_fetch_description_xml): Likewise.
1025 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1026 (xtensa_pseudo_register_write): Likewise.
1028 2017-12-04 Tom Tromey <tom@tromey.com>
1030 * NEWS: Mention Rust trait object inspection.
1032 2017-12-04 Pedro Alves <palves@redhat.com>
1035 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
1036 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
1037 (vex2_prefix_p, vex3_prefix_p): New functions.
1038 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
1040 (fixup_riprel): Set VEX3.!B.
1042 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
1044 * target.h (mem_region_vector): Remove.
1045 (struct target_ops) <to_memory_map>: Change return type to
1046 std::vector<mem_region>.
1047 * target-debug.h (target_debug_print_mem_region_vector): Rename
1049 (target_debug_print_std_vector_mem_region): ... this.
1050 * target-delegates.c: Re-generate.
1052 2017-12-03 Pedro Alves <palves@redhat.com>
1054 * make-target-delegates (munge_type): Also munge '<', '>', and
1055 ':'. Avoid double underscores in identifiers, and trailing
1058 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
1060 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
1061 * target-delegates.c: Regenerate.
1063 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1065 * common/poison.h (XDELETE): Fix typo.
1067 2017-12-01 Andrew Cagney <cagney@redhat.com>
1068 Joel Brobecker <brobecker@adacore.com>
1069 Sergio Durigan Junior <sergiodj@redhat.com>
1071 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
1073 * coffread.c (coff_symfile_read): Do not map over sections with
1074 'coff_locate_sections' if readnever is on.
1075 * dwarf2read.c (dwarf2_has_info): Return 0 if
1077 * elfread.c (elf_symfile_read): Do not map over sections with
1078 'elf_locate_sections' if readnever is on.
1079 * main.c (validate_readnow_readnever): New function.
1080 (captured_main_1): Add support for --readnever.
1081 (print_gdb_help): Document --readnever.
1082 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
1084 * symfile.c (readnever_symbol_files): New global.
1085 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
1086 'READNEVER_SYMBOL_FILES' is set.
1087 (validate_readnow_readnever): New function.
1088 (symbol_file_command): Handle '-readnever' option.
1089 Call 'validate_readnow_readnever'.
1090 (add_symbol_file_command): Handle '-readnever' option.
1091 Call 'validate_readnow_readnever'.
1092 (_initialize_symfile): Document new '-readnever' option for
1093 both 'symbol-file' and 'add-symbol-file' commands.
1094 * top.h (readnever_symbol_files): New extern global.
1095 * xcoffread.c (xcoff_initial_scan): Do not read debug
1096 information if readnever is on.
1098 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
1100 * symfile.c (symbol_file_command): Call
1101 'symbol_file_add_main_1' only after processing all command
1103 (add_symbol_file_command): Modify logic to make arguments
1104 position-independent.
1106 2017-12-01 Joel Brobecker <brobecker@adacore.com>
1108 * ada-lang.c (symbol_list_obstack): Delete.
1109 (resolve_subexp): Make sure "candidates" gets xfree'ed.
1110 (ada_lookup_symbol_list_worker): Remove the limitation that
1111 the result is only good until the next call, now making it
1112 the responsibility of the caller to free the result when no
1113 longer needed. Adjust the function's intro comment accordingly.
1114 (ada_lookup_symbol_list): Adjust the function's intro comment.
1115 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
1116 (ada_lookup_encoded_symbol, get_var_value): Likewise.
1117 (_initialize_ada_language): Remove symbol_list_obstack
1119 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
1120 (write_var_or_type, write_name_assoc): Likewise.
1122 2017-12-01 Tom Tromey <tom@tromey.com>
1124 * Makefile.in (all_deps_files): New variable.
1125 Include .Po files using all_deps_files.
1127 2017-12-01 Joel Brobecker <brobecker@adacore.com>
1129 * MAINTAINERS: Update list of maintainers, moving those who
1130 stepped down or became inactive to the "Past Maintainers"
1133 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1135 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
1137 (NEW_PROC_API): Remove.
1138 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
1140 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
1141 * configure: Regenerate.
1142 * config.in: Regenerate.
1143 * gdbserver/configure: Regenerate.
1144 * gdbserver/config.in: Regenerate.
1146 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
1148 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
1150 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
1152 * proc-api.c: Remove !NEW_PROC_API support.
1153 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
1154 Remove tests for macros always defined on Solaris.
1155 * proc-events.c: Remove !NEW_PROC_API support.
1156 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
1157 HAVE_SYS_USER_H tests.
1158 (init_syscall_table): Remove non-Solaris syscalls.
1159 Remove tests for syscalls present on all Solaris versions.
1160 Add missing Solaris 10+ syscalls.
1161 (signal_table): Remove non-Solaris signals.
1162 Remove tests for signals present on all Solaris versions.
1163 (fault_table): Remove non-Solaris faults.
1164 Remove tests for faults present on all Solaris versions.
1165 * proc-flags.c: Remove !NEW_PROC_API support.
1166 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
1167 Remove non-Solaris flags.
1168 * proc-why.c: Remove !NEW_PROC_API support.
1169 (pr_why_table): Remove meaningless comments.
1170 Remove tests for reasons present on all Solaris versions.
1172 (proc_prettyfprint_why): Likewise.
1174 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
1175 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
1176 Remove WA_READ test, IRIX watchpoint support.
1177 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
1178 types. Change users.
1179 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
1180 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
1182 Remove CTL_PROC_NAME_FMT tests.
1183 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
1185 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
1186 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
1187 (proc_modify_flag): Replace GDBRESET by PCUNSET.
1188 Remove PR_ASYNC, PR_KLC tests.
1189 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
1190 (proc_parent_pid): Remove PCWATCH etc. tests.
1191 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
1192 Remove PCAGENT test.
1193 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
1194 Remove SYS_lwpcreate || SYS_lwp_create test.
1195 (proc_get_current_thread): Likewise.
1196 [PIOCNTHR && PIOCTLIST]: Remove.
1197 [PIOCLSTATUS]: Remove.
1198 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
1199 [PRFS_STOPEXEC]: Remove.
1200 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
1201 (syscall_is_exit): Likewise.
1202 (syscall_is_exec): Likewise.
1203 (syscall_is_lwp_create): Likewise.
1204 Remove SYS_syssgi support.
1205 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
1206 [SYS_syssgi]: Remove.
1207 Remove non-Solaris cases, conditionals.
1208 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
1210 (procfs_init_inferior) [SYS_syssgi]: Remove.
1211 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
1212 (procfs_inferior_created) [SYS_syssgi]: Remove.
1213 (procfs_set_watchpoint): Remove !AIX5 test.
1214 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
1216 (mappingflags) [MA_PHYS]: Remove.
1217 (info_mappings_callback): Remove PCAGENT test.
1218 Remove PIOCOPENLWP || PCAGENT test.
1220 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1222 * sol-thread.c (info_solthreads): Constify args.
1223 Cast args to void *.
1225 2017-11-29 John Baldwin <jhb@FreeBSD.org>
1227 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
1229 2017-11-29 Joel Brobecker <brobecker@adacore.com>
1231 * ada-lang.c (to_fixed_range_type): Make sure that the size
1232 of the range type being returned is the same as the size
1233 of the range type being fixed.
1235 2017-11-29 Pedro Alves <palves@redhat.com>
1238 * NEWS: Mention setting breakpoints on functions with C++ ABI
1240 * completer.h (completion_match_for_lcd) <match,
1241 mark_ignored_range>: New methods.
1242 <finish>: Consider ignored ranges.
1243 <clear>: Clear ignored ranges.
1244 <m_ignored_ranges, m_finished_storage>: New fields.
1245 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1246 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1247 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1248 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1249 * language.c (default_symbol_name_matcher): Pass the
1250 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1251 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1252 * utils.c (skip_abi_tag): New function.
1253 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1255 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1258 2017-11-29 Pedro Alves <palves@redhat.com>
1261 * NEWS: Mention setting breakpoints on functions with C++ ABI
1263 * completer.h (completion_match_for_lcd) <match,
1264 mark_ignored_range>: New methods.
1265 <finish>: Consider ignored ranges.
1266 <clear>: Clear ignored ranges.
1267 <m_ignored_ranges, m_finished_storage>: New fields.
1268 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1269 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1270 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1271 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1272 * language.c (default_symbol_name_matcher): Pass the
1273 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1274 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1275 * utils.c (skip_abi_tag): New function.
1276 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1278 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1281 2017-11-29 Pedro Alves <palves@redhat.com>
1283 * NEWS: Mention that breakpoints on C++ functions are now set on
1284 on all namespaces/classes by default, and mention "break
1286 * ax-gdb.c (agent_command_1): Adjust to pass a
1287 symbol_name_match_type to new_linespec_location.
1288 * breakpoint.c (parse_breakpoint_sals): Adjust to
1289 get_linespec_location's return type change.
1290 (strace_marker_create_sals_from_location): Adjust to pass a
1291 symbol_name_match_type to new_linespec_location.
1292 (strace_marker_decode_location): Adjust to get_linespec_location's
1294 (strace_command): Adjust to pass a symbol_name_match_type to
1295 new_linespec_location.
1296 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
1297 mention "-qualified".
1298 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
1299 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
1301 (complete_address_and_linespec_locations): New parameter
1302 'match_type'. Pass it down.
1303 (explicit_options): Add "-qualified".
1304 (collect_explicit_location_matches): Pass the requested match type
1305 to the linespec completers. Handle MATCH_QUALIFIED.
1306 (location_completer): Handle "-qualified" combined with linespecs.
1307 * cp-support.c (cp_search_name_hash): New.
1308 (cp_symbol_name_matches_1): Implement wild matching for C++.
1309 (cp_fq_symbol_name_matches): Reimplement.
1310 (cp_get_symbol_name_matcher): Return different matchers depending
1311 on the lookup name's match type.
1312 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
1313 * cp-support.h (cp_search_name_hash): New declaration.
1315 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
1317 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
1319 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
1320 pass a symbol_name_match_type to new_linespec_location.
1321 * linespec.c (linespec_parse_basic): Lookup function symbols using
1322 the parser's symbol name match type.
1323 (convert_explicit_location_to_linespec): New
1324 symbol_name_match_type parameter. Pass it down to
1325 find_linespec_symbols.
1326 (convert_explicit_location_to_sals): Pass the location's name
1327 match type to convert_explicit_location_to_linespec.
1328 (parse_linespec): New match_type parameter. Save it in the
1330 (linespec_parser_new): Default to symbol_name_match_type::WILD.
1331 (linespec_complete_function): New symbol_name_match_type
1333 (complete_linespec_component): Pass down the parser's recorded
1335 (linespec_complete_label): New symbol_name_match_type parameter.
1337 (linespec_complete): New symbol_name_match_type parameter. Save
1338 it in the parser and pass it down. Adjust to
1339 get_linespec_location's prototype change.
1340 (find_function_symbols, find_linespec_symbols): New
1341 symbol_name_match_type parameter. Pass it down instead of
1342 assuming symbol_name_match_type::WILD.
1343 * linespec.h (linespec_complete, linespec_complete_function)
1344 (linespec_complete_label): New symbol_name_match_type parameter.
1345 * location.c (event_location::linespec_location): Now a struct
1347 (EL_LINESPEC): Adjust.
1348 (initialize_explicit_location): Default to
1349 symbol_name_match_type::WILD.
1350 (new_linespec_location): New symbol_name_match_type parameter.
1351 Record it in the location.
1352 (get_linespec_location): Now returns a struct linespec_location.
1353 (new_explicit_location): Also copy func_name_match_type.
1354 (explicit_to_string_internal)
1355 (string_to_explicit_location): Handle "-qualified".
1356 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
1357 Copy symbol_name_match_type fields.
1358 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
1360 (event_location_to_string): Adjust to LINESPEC_LOCATION type
1361 change. Handle "-qualfied".
1362 (string_to_explicit_location): Handle "-qualified".
1363 (string_to_event_location_basic): New symbol_name_match_type
1364 parameter. Pass it down.
1365 (string_to_event_location): Handle "-qualified".
1366 * location.h (struct linespec_location): New.
1367 (explicit_location::func_name_match_type): New field.
1368 (new_linespec_location): Now returns a const linespec_location *.
1369 (string_to_event_location_basic): New symbol_name_match_type
1371 (explicit_completion_info::saw_explicit_location_option): New
1373 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
1374 symbol_name_match_type to new_linespec_location.
1375 * python/py-breakpoint.c (bppy_init): Likewise.
1376 * python/python.c (gdbpy_decode_line): Likewise.
1378 2017-11-29 Pedro Alves <palves@redhat.com>
1380 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1381 parameter from completion_match to completion_match_result.
1383 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1384 * completer.c (completion_tracker::maybe_add_completion): Add
1385 match_for_lcd parameter and use it.
1386 (completion_tracker::add_completion): Likewise.
1387 * completer.h (class completion_match_for_lcd): New class.
1388 (completion_match_result::match_for_lcd): New field.
1389 (completion_match_result::set_match): New method.
1390 (completion_tracker): Add comments.
1391 (completion_tracker::add_completion): Add match_for_lcd parameter.
1392 (completion_tracker::reset_completion_match_result): Reset
1394 (completion_tracker::maybe_add_completion): Add match_for_lcd
1396 (completion_tracker::m_lowest_common_denominator_unique): Extend
1398 * cp-support.c (cp_symbol_name_matches_1)
1399 (cp_fq_symbol_name_matches): Change type of parameter from
1400 completion_match to completion_match_result. Adjust.
1401 * language.c (default_symbol_name_matcher): Change type of
1402 parameter from completion_match to completion_match_result.
1404 * language.h (completion_match_for_lcd): Forward declare.
1405 (default_symbol_name_matcher): Change type of parameter from
1406 completion_match to completion_match_result.
1407 * symtab.c (compare_symbol_name): Adjust.
1408 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1409 * symtab.h (ada_lookup_name_info::matches): Change type of
1410 parameter from completion_match to completion_match_result.
1411 (symbol_name_matcher_ftype): Likewise, and update comments.
1413 2017-11-29 Pedro Alves <palves@redhat.com>
1415 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1416 * minsyms.c (msymbol_is_text): Delete.
1417 (msymbol_is_function): New function.
1418 * minsyms.h (msymbol_is_text): Delete.
1419 (msymbol_is_function): New declaration.
1420 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1422 2017-11-29 Tom Tromey <tom@tromey.com>
1424 * Makefile.in (distclean): Handle the case where rmdir fails.
1426 2017-11-29 Tom Tromey <tom@tromey.com>
1428 * symfile.c (_initialize_symfile): Update usage text for
1429 add-symbol-file, symbol-file, load.
1431 2017-11-29 Tom Tromey <tom@tromey.com>
1433 * symfile.c (add_symbol_file_command): Error if some arguments to
1434 -s are missing. Change unrecognized-argument error message.
1435 (_initialize_symfile): Fix usage text for add-symbol-file.
1437 2017-11-27 Tom Tromey <tom@tromey.com>
1439 * Makefile.in (REMOTE_OBS): Remove.
1440 (SFILES): Remove remote sources.
1441 (COMMON_SFILES): Add remote sources.
1442 (ALLDEPFILES): Remove dcache.c.
1444 2017-11-27 Tom Tromey <tom@tromey.com>
1446 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1448 (SFILES): Use SUBDIR_TARGET_SRCS.
1449 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1450 (CONFIG_SRC_SUBDIR): Add target.
1451 (%.o): Remove target rule.
1453 2017-11-27 Tom Tromey <tom@tromey.com>
1455 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1456 registry.o, thread-fsm.o, debug.o.
1457 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1458 thread-fsm.c, debug.c.
1460 2017-11-27 Tom Tromey <tom@tromey.com>
1462 * Makefile.in (COMMON_SFILES): New.
1463 (SFILES): Move some entries to COMMON_SFILES.
1464 (COMMON_OBS): Use COMMON_SFILES.
1466 2017-11-27 Tom Tromey <tom@tromey.com>
1468 * Makefile.in (YYFILES): Update comment.
1471 2017-11-27 Tom Tromey <tom@tromey.com>
1473 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1474 (CONFIG_SRC_SUBDIR): Add python.
1475 (%.o): Remove python rule.
1476 (python/%.o): New rule.
1477 * configure: Rebuild.
1478 * configure.ac (CONFIG_OBS): Refer to python/python.o
1480 2017-11-27 Tom Tromey <tom@tromey.com>
1482 * configure: Rebuild.
1483 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1484 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1485 (CONFIG_SRC_SUBDIR): Add guile.
1486 (%.o): Remove guile rule.
1488 2017-11-27 Tom Tromey <tom@tromey.com>
1490 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1491 (%.o): Remove unittests rule.
1492 (CONFIG_SRC_SUBDIR): Add unittests.
1494 2017-11-27 Tom Tromey <tom@tromey.com>
1496 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1497 (CONFIG_SRC_SUBDIR): Add tui.
1498 (%.o): Remove tui rule.
1500 2017-11-27 Tom Tromey <tom@tromey.com>
1502 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1503 (%.o): Remove compile rule.
1504 (CONFIG_SRC_SUBDIR): Add compile.
1506 2017-11-27 Tom Tromey <tom@tromey.com>
1508 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1509 (%.o): Remove mi rule.
1510 (CONFIG_SRC_SUBDIR): Add mi.
1511 (COMMON_OBS): Use mi/mi-common.o
1513 2017-11-27 Tom Tromey <tom@tromey.com>
1515 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1516 (%.o): Remove cli rule.
1517 (CONFIG_SRC_SUBDIR): Add cli.
1519 2017-11-27 Tom Tromey <tom@tromey.com>
1521 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1522 * configure: Rebuild.
1523 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1524 (CONFIG_DEP_SUBDIR): New variable.
1525 (%.o): Add order-only dependency.
1526 ($(CONFIG_DEP_SUBDIR)): New target.
1528 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1531 * findcmd.c (_initialize_mem_search): Update find command help
1534 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1536 * python/python.c (do_start_initialization): Change progname
1537 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1540 2017-11-26 Tom Tromey <tom@tromey.com>
1542 * common/format.h: Add include guards.
1544 2017-11-26 Tom Tromey <tom@tromey.com>
1546 * nat/linux-personality.h (class
1547 maybe_disable_address_space_randomization): New class.
1548 (maybe_disable_address_space_randomization): Don't declare
1550 * nat/linux-personality.c (restore_personality)
1551 (make_disable_asr_cleanup): Remove.
1552 (maybe_disable_address_space_randomization): Now a constructor.
1553 (~maybe_disable_address_space_randomization): New destructor.
1554 * linux-nat.c (linux_nat_create_inferior): Update.
1556 2017-11-26 Tom Tromey <tom@tromey.com>
1558 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1560 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1562 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1563 "cooked" register. Access only first four bytes of branch target
1566 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1569 * stap-probe.c (relocate_address): New function.
1570 (stap_probe::get_relocated_address): Use 'relocate_address'.
1571 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1573 (stap_probe::clear_semaphore): Likewise.
1575 2017-11-25 Pedro Alves <palves@redhat.com>
1577 * dictionary.c: Include "safe-ctype.h".
1578 * minsyms.c: Include "safe-ctype.h".
1579 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1581 2017-11-25 Pedro Alves <palves@redhat.com>
1583 * completer.c (complete_line_internal_1): Skip spaces until the
1584 start of the command.
1586 2017-11-24 Pedro Alves <palves@redhat.com>
1588 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1589 cp_fq_symbol_name_matches. Pass language_cplus to
1591 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1592 (selftests::test_cp_symbol_name_cmp): New.
1593 (_initialize_cp_support): Register "cp_symbol_name_matches"
1595 * language.c (default_symbol_name_matcher): Pass language_minimal
1596 to strncmp_iw_with_mode.
1597 * utils.c: Include "cp-support.h" and <algorithm>.
1598 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1599 (cp_is_operator): New functions.
1600 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1601 skip whitespace in the symbol name when the lookup name doesn't
1602 have spaces, and vice versa.
1603 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1604 * utils.h (strncmp_iw_with_mode): Add language parameter.
1606 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1608 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1610 (print_it_exception): If available, display the exception
1612 * NEWS: Document new feature.
1614 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1616 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1618 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1620 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1621 (dtrace_probe::is_enabled, dtrace_probe::enable)
1622 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1624 * probe.c (gen_ui_out_table_header_info)
1625 (print_ui_out_not_applicables): Remove keyword 'struct' at
1628 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1630 * configure.tgt: Add arch/aarch64.o
1632 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1634 * common/common-utils.h: Include poison.h.
1635 (xfree): Remove declaration, add definition with static_assert.
1636 * common/common-utils.c (xfree): Remove.
1637 * common/poison.h (IsMallocatable): Define.
1638 (IsFreeable): Define.
1639 (free): Delete for non-freeable types.
1641 (XNEW): Undef and redefine.
1643 (XCNEW): Undef and redefine.
1645 (XDELETE): Undef and redefine.
1647 (XNEWVEC): Undef and redefine.
1649 (XCNEWVEC): Undef and redefine.
1651 (XRESIZEVEC): Undef and redefine.
1653 (XDELETEVEC): Undef and redefine.
1655 (XNEWVAR): Undef and redefine.
1657 (XCNEWVAR): Undef and redefine.
1659 (XRESIZEVAR): Undef and redefine.
1661 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1663 * gdbthread.h (private_thread_info): Define structure type, add
1664 virtual pure destructor.
1665 (thread_info) <priv>: Change type to unique_ptr.
1666 <private_dtor>: Remove.
1667 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1668 (private_thread_info::~private_thread_info): Provide default
1670 (thread_info::~thread_info): Don't call private_dtor nor
1672 * aix-thread.c (private_thread_info): Rename to ...
1673 (aix_thread_info): ... this.
1674 (get_aix_thread_info): New.
1675 (sync_threadlists): Adjust.
1677 (aix_thread_resume): Adjust.
1678 (aix_thread_fetch_registers): Adjust.
1679 (aix_thread_store_registers): Adjust.
1680 (aix_thread_extra_thread_info): Adjust.
1681 * darwin-nat.h (private_thread_info): Rename to ...
1682 (darwin_thread_info): ... this.
1683 (get_darwin_thread_info): New.
1684 * darwin-nat.c (darwin_init_thread_list): Adjust.
1685 (darwin_check_new_threads): Adjust.
1686 (thread_info_from_private_thread_info): Adjust.
1687 * linux-thread-db.c (private_thread_info): Rename to ...
1688 (thread_db_thread_info): ... this, initialize fields.
1689 (get_thread_db_thread_info): New.
1690 <dying>: Change type to bool.
1691 (update_thread_state): Adjust to type rename.
1692 (record_thread): Adjust to type rename an use of unique_ptr.
1693 (thread_db_pid_to_str): Likewise.
1694 (thread_db_extra_thread_info): Likewise.
1695 (thread_db_thread_handle_to_thread_info): Likewise.
1696 (thread_db_get_thread_local_address): Likewise.
1697 * nto-tdep.h (private_thread_info): Rename to ...
1698 (nto_thread_info): ... this, initialize fields.
1699 (get_nto_thread_info): New.
1700 <name>: Change type to std::string.
1701 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1703 * nto-procfs.c (update_thread_private_data_name): Adjust to
1704 std::string change, allocate nto_private_thread_info with new.
1705 (update_thread_private_data): Adjust to unique_ptr.
1706 * remote.c (private_thread_info): Rename to ...
1707 (remote_thread_info): ... this, initialize data members with
1709 <extra, name>: Change type to std::string.
1710 <thread_handle>: Change type to non-pointer.
1711 (free_private_thread_info): Remove.
1712 (get_private_info_thread): Rename to...
1713 (get_remote_thread_info): ... this, change return type, adjust to
1714 use of unique_ptr, use remote_thread_info constructor.
1715 (remote_add_thread): Adjust.
1716 (get_private_info_ptid): Rename to...
1717 (get_remote_thread_info): ...this, change return type.
1718 (remote_thread_name): Use get_remote_thread_info, adjust to
1719 change to std::string.
1720 (struct thread_item) <~thread_item>: Remove.
1721 <thread_handle>: Make non pointer.
1722 (start_thread): Adjust to thread_item::thread_handle type
1724 (remote_update_thread_list): Adjust to type name change, move
1725 strings from temporary to long-lived object instead of
1727 (remote_threads_extra_info): Use get_remote_thread_info.
1728 (process_initial_stop_replies): Likewise.
1729 (resume_clear_thread_private_info): Likewise.
1730 (remote_resume): Adjust to type name change.
1731 (remote_commit_resume): Use get_remote_thread_info.
1732 (process_stop_reply): Adjust to type name change.
1733 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1734 (remote_stopped_by_hw_breakpoint): Likewise.
1735 (remote_stopped_by_watchpoint): Likewise.
1736 (remote_stopped_data_address): Likewise.
1737 (remote_core_of_thread): Likewise.
1738 (remote_thread_handle_to_thread_info): Use
1739 get_private_info_thread, adjust to thread_handle field type
1742 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1744 * remote.c (struct thread_item): Add constructor, disable copy
1745 construction and copy assignment, define default move
1746 construction and move assignment.
1747 <extra, name>: Change type to std::string.
1749 <thread_handle>: Make non-pointer.
1750 (thread_item_t): Remove typedef.
1751 (DEF_VEC_O(thread_item_t)): Remove.
1752 (threads_listing_context) <contains_thread>: New method.
1753 <remove_thread>: New method.
1754 <items>: Change type to std::vector.
1755 (clear_threads_listing_context): Remove.
1756 (threads_listing_context_remove): Remove.
1757 (remote_newthread_step): Use thread_item constructor, adjust to
1758 change to std::vector.
1759 (start_thread): Use thread_item constructor, adjust to change to
1761 (end_thread): Adjust to change to std::vector and std::string.
1762 (remote_get_threads_with_qthreadinfo): Use thread_item
1763 constructor, adjust to std::vector.
1764 (remote_update_thread_list): Adjust to change to std::vector and
1765 std::string, use threads_listing_context methods.
1766 (remove_child_of_pending_fork): Adjust.
1767 (remove_new_fork_children): Adjust.
1768 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1769 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1770 * unittests/rsp-low-selftests.c: New file.
1771 * common/rsp-low.h: Include common/byte-vector.h.
1772 (hex2bin): New overload.
1773 * common/rsp-low.c (hex2bin): New overload.
1775 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1777 * inferior.h (private_inferior): Define structure type, add
1778 virtual pure destructor.
1779 (inferior) <priv>: Change type to unique_ptr.
1780 * inferior.c (private_inferior::~private_inferior): Provide
1781 default implementation.
1782 (inferior::~inferior): Don't free priv field.
1783 (exit_inferior_1): Likewise.
1784 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1785 (darwin_exception_info): Remove typedef.
1786 (DEF_VEC_O (darwin_thread_t)); Remove.
1787 (private_inferior): Rename to ...
1788 (darwin_private_inferior): ... this, extend private_inferior.
1789 (get_darwin_inferior): New.
1790 <threads>: Change type to std::vector of darwin_thread_t pointers.
1791 * darwin-nat.c (darwin_check_new_threads): Adjust.
1792 (find_inferior_task_it): Adjust.
1793 (darwin_find_thread); Adjust.
1794 (darwin_suspend_inferior): Adjust.
1795 (darwin_resume_inferior): Adjust.
1796 (darwin_find_new_inferior): Adjust.
1797 (darwin_decode_notify_message): Adjust.
1798 (darwin_send_reply): Adjust.
1799 (darwin_resume_inferior_threads): Adjust.
1800 (darwin_suspend_inferior_threads): Adjust.
1801 (darwin_decode_message): Adjust.
1802 (darwin_wait): Adjust.
1803 (darwin_interrupt): Adjust.
1804 (darwin_deallocate_threads): Adjust.
1805 (darwin_mourn_inferior): Adjust, don't free private data.
1806 (darwin_reply_to_all_pending_messages): Adjust.
1807 (darwin_stop_inferior): Adjust.
1808 (darwin_setup_exceptions): Adjust.
1809 (darwin_kill_inferior): Adjust.
1810 (darwin_setup_request_notification): Adjust.
1811 (darwin_attach_pid): Adjust.
1812 (darwin_init_thread_list): Adjust.
1813 (darwin_setup_fake_stop_event): Adjust.
1814 (darwin_attach): Adjust.
1815 (darwin_detach): Adjust.
1816 (darwin_xfer_partial): Adjust.
1817 (set_enable_mach_exceptions): Adjust.
1818 (darwin_pid_to_exec_file): Adjust.
1819 (darwin_get_ada_task_ptid): Adjust.
1820 * darwin-nat-info.c (get_task_from_args): Adjust.
1821 (info_mach_ports_command): Adjust.
1822 (info_mach_region_command): Adjust.
1823 (info_mach_exceptions_command): Adjust.
1824 * remote.c (private_inferior): Rename to ...
1825 (remote_private_inferior): ... this, initialize fields.
1826 (get_remote_inferior); New.
1827 (remote_commit_resume): Use get_remote_inferior.
1828 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1830 2017-11-24 Pedro Alves <palves@redhat.com>
1832 * NEWS: Mention linespecs and explicit locations, and completion
1835 2017-11-24 Yao Qi <yao.qi@linaro.org>
1837 * regcache.c (regcache::dump): Remove footnote_register_size.
1839 2017-11-24 Yao Qi <yao.qi@linaro.org>
1841 * regcache.c (cooked_read_test): Add more test for readonly
1844 2017-11-24 Yao Qi <yao.qi@linaro.org>
1846 * gdbarch-selftests.c (test_target_has_registers): Move it to
1848 (test_target_has_stack): Likewise.
1849 (test_target_has_memory): Likewise.
1850 (test_target_prepare_to_store): Likewise.
1851 (test_target_store_registers): Likewise.
1852 (test_target_ops): Likewise.
1853 * regcache.c: Include selftest-arch.h and gdbthread.h.
1854 (target_ops_no_register): New class.
1855 (test_target_fetch_registers): New.
1856 (test_target_store_registers): New.
1857 (test_target_xfer_partial): New.
1858 (readwrite_regcache): New.
1859 (cooked_read_test): New.
1860 (_initialize_regcache): Register the test.
1861 * target.c: (test_target_has_registers): Moved from
1862 gdbarch-selftests.c.
1863 (test_target_has_stack): Likewise.
1864 (test_target_has_memory): Likewise.
1865 (test_target_prepare_to_store): Likewise.
1866 (test_target_store_registers): Likewise.
1867 * target.h (test_target_ops): New class.
1869 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1871 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1874 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1876 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1877 * arch/aarch64.c (aarch64_create_target_description): Create
1878 new target description.
1879 * features/Makefile: Add new files.
1880 * features/aarch64.c: Remove file.
1881 * features/aarch64-core.c: New autogenerated file.
1882 * features/aarch64-fpu.c: New autogenerated file.
1883 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1885 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1887 * Makefile.in: Add new files.
1888 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1889 aarch64_read_description.
1890 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1891 Call aarch64_read_description.
1892 * aarch64-tdep.c (aarch64_read_description): New function.
1893 (aarch64_gdbarch_init): Call aarch64_read_description.
1894 * aarch64-tdep.h (aarch64_read_description): New function.
1895 * arch/aarch64.c: New file.
1896 * configure.tgt: Add new files.
1898 2017-11-24 Yao Qi <yao.qi@linaro.org>
1900 * mi/mi-main.c (register_changed_p): Update.
1901 * value.c (value_contents_bits_eq): Change return type.
1902 (value_contents_eq): Likewise.
1903 * value.h: Update comments.
1905 2017-11-24 Yao Qi <yao.qi@linaro.org>
1907 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1908 local 'changed'. Remove error.
1909 (register_changed_p): Change return type to bool.
1911 2017-11-24 Yao Qi <yao.qi@linaro.org>
1913 * arch/tic6x.c: New file.
1914 * arch/tic6x.h: New file.
1915 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1916 tic6x-core.xml and tic6x-gp.xml.
1917 * features/tic6x-c6xp.c: Generated.
1918 * features/tic6x-core.c: Generated.
1919 * features/tic6x-gp.c: Generated.
1920 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1923 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1925 * mi/mi-main.c (list_available_thread_groups): Change map value
1926 type to std::vector.
1928 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1930 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1932 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1934 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1936 <children_requested>: ... this.
1937 (varobj_get_num_children, varobj_update): Adjust.
1939 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1941 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1942 (ada_value_has_mutated): Likewise.
1943 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1944 (c_is_path_expr_parent): Likewise.
1945 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1946 (mi_cmd_var_set_frozen): Likewise.
1947 (mi_cmd_var_update_iter): Likewise.
1948 (mi_cmd_var_update): Likewise.
1949 * varobj.c (pretty_printing): Likewise.
1950 (varobj_enable_pretty_printing): Likewise.
1951 (struct varobj_root) <floating, is_valid>: Likewise.
1952 (struct varobj_dynamic) <children_requested>: Likewise.
1953 (delete_variable): Likewise.
1954 (delete_variable_1): Likewise.
1955 (install_variable): Likewise.
1956 (update_type_if_necessary): Likewise.
1957 (install_new_value): Likewise.
1958 (value_of_root): Likewise.
1959 (is_root_p): Likewise.
1960 (varobj_create): Likewise.
1961 (varobj_delete): Likewise.
1962 (varobj_has_more): Likewise.
1963 (varobj_set_frozen): Likewise.
1964 (varobj_get_frozen): Likewise.
1965 (install_dynamic_child): Likewise.
1966 (dynamic_varobj_has_child_method): Likewise.
1967 (update_dynamic_varobj_children): Likewise.
1968 (varobj_get_num_children): Likewise.
1969 (varobj_list_children): Likewise.
1970 (is_path_expr_parent): Likewise.
1971 (varobj_default_is_path_expr_parent): Likewise.
1972 (varobj_is_dynamic_p): Likewise.
1973 (varobj_set_value): Likewise.
1974 (varobj_value_has_mutated): Likewise.
1975 (varobj_update): Likewise.
1976 (check_scope): Likewise.
1977 (value_of_root_1): Likewise.
1978 (varobj_value_get_print_value): Likewise.
1979 (varobj_editable_p): Likewise.
1980 (varobj_value_is_changeable_p): Likewise.
1981 (varobj_floating_p): Likewise.
1982 (varobj_default_value_is_changeable_p): Likewise.
1983 (varobj_invalidate_iter): Likewise.
1984 * varobj.h (struct varobj_update_result) <type_changed,
1985 children_changed, changed, value_installed>: Likewise.
1986 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1987 (struct lang_varobj_ops) <value_is_changeable_p,
1988 value_has_mutated, is_path_expr_parent>: Likewise.
1989 (varobj_delete): Likewise.
1990 (varobj_set_frozen): Likewise.
1991 (varobj_get_frozen): Likewise.
1992 (varobj_set_value): Likewise.
1993 (varobj_update): Likewise.
1994 (varobj_editable_p): Likewise.
1995 (varobj_floating_p): Likewise.
1996 (varobj_has_more): Likewise.
1997 (varobj_is_dynamic_p): Likewise.
1998 (varobj_default_value_is_changeable_p): Likewise.
1999 (varobj_value_is_changeable_p): Likewise.
2000 (varobj_is_anonymous_child): Likewise.
2001 (varobj_default_is_path_expr_parent): Likewise.
2003 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
2005 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
2006 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
2007 <type_str>: Convert to 'std::string'.
2008 <expr>: Convert to 'expression_up'.
2009 (dtrace_probe_arg_s): Delete type and VEC.
2010 (dtrace_probe_enabler_s): Likewise.
2011 (struct dtrace_probe): Replace by...
2012 (class dtrace_static_probe_ops): ...this and...
2013 (class dtrace_probe): ...this.
2014 (dtrace_probe_is_linespec): Rename to...
2015 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
2017 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
2018 Adjust code. Create new instance of 'dtrace_probe'.
2019 (dtrace_build_arg_exprs): Rename to...
2020 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
2022 (dtrace_get_probes): Rename to...
2023 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
2025 (dtrace_get_arg): Rename to...
2026 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
2028 (dtrace_probe_is_enabled): Rename to...
2029 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
2031 (dtrace_get_probe_address): Rename to...
2032 (dtrace_probe::get_relocated_address): ...this. Adjust code
2034 (dtrace_get_probe_argument_count): Rename to...
2035 (dtrace_probe::get_argument_count): ...this. Adjust code to
2037 (dtrace_can_evaluate_probe_arguments): Rename to...
2038 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
2040 (dtrace_evaluate_probe_argument): Rename to...
2041 (dtrace_probe::evaluate_argument): ...this. Adjust code to
2043 (dtrace_compile_to_ax): Rename to...
2044 (dtrace_probe::compile_to_ax): ...this. Adjust code to
2046 (dtrace_probe_destroy): Delete.
2047 (dtrace_type_name): Rename to...
2048 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
2050 (dtrace_probe::get_static_ops): New method.
2051 (dtrace_gen_info_probes_table_header): Rename to...
2052 (dtrace_static_probe_ops::gen_info_probes_table_header):
2053 ...this. Adjust code to reflect change.
2054 (dtrace_gen_info_probes_table_values): Rename to...
2055 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
2056 code to reflect change.
2057 (dtrace_enable_probe): Rename to...
2058 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
2060 (dtrace_disable_probe): Rename to...
2061 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
2063 (struct probe_ops dtrace_probe_ops): Delete.
2064 (info_probes_dtrace_command): Call 'info_probes_for_spops'
2065 instead of 'info_probes_for_ops'.
2066 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
2069 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
2070 Simon Marchi <simark@simark.ca>
2072 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
2074 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
2075 <aexpr>: Change type to 'expression_up'.
2076 (stap_probe_arg_s): Delete type and VEC.
2077 (struct stap_probe): Delete. Replace by...
2078 (class stap_static_probe_ops): ...this and...
2079 (class stap_probe): ...this. Rename variables to add 'm_'
2080 prefix. Do not use 'union' for arguments anymore.
2081 (stap_get_expected_argument_type): Receive probe name instead
2082 of 'struct stap_probe'. Adjust code.
2083 (stap_parse_probe_arguments): Rename to...
2084 (stap_probe::parse_arguments): ...this. Adjust code to
2086 (stap_get_probe_address): Rename to...
2087 (stap_probe::get_relocated_address): ...this. Adjust code
2089 (stap_get_probe_argument_count): Rename to...
2090 (stap_probe::get_argument_count): ...this. Adjust code
2092 (stap_get_arg): Rename to...
2093 (stap_probe::get_arg_by_number'): ...this. Adjust code to
2095 (can_evaluate_probe_arguments): Rename to...
2096 (stap_probe::can_evaluate_arguments): ...this. Adjust code
2098 (stap_evaluate_probe_argument): Rename to...
2099 (stap_probe::evaluate_argument): ...this. Adjust code
2101 (stap_compile_to_ax): Rename to...
2102 (stap_probe::compile_to_ax): ...this. Adjust code to
2104 (stap_probe_destroy): Delete.
2105 (stap_modify_semaphore): Adjust comment.
2106 (stap_set_semaphore): Rename to...
2107 (stap_probe::set_semaphore): ...this. Adjust code to reflect
2109 (stap_clear_semaphore): Rename to...
2110 (stap_probe::clear_semaphore): ...this. Adjust code to
2112 (stap_probe::get_static_ops): New method.
2113 (handle_stap_probe): Adjust code to create instance of
2115 (stap_get_probes): Rename to...
2116 (stap_static_probe_ops::get_probes): ...this. Adjust code to
2118 (stap_probe_is_linespec): Rename to...
2119 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
2121 (stap_type_name): Rename to...
2122 (stap_static_probe_ops::type_name): ...this. Adjust code to
2124 (stap_gen_info_probes_table_header): Rename to...
2125 (stap_static_probe_ops::gen_info_probes_table_header):
2126 ...this. Adjust code to reflect change.
2127 (stap_gen_info_probes_table_values): Rename to...
2128 (stap_probe::gen_info_probes_table_values): ...this. Adjust
2129 code to reflect change.
2130 (struct probe_ops stap_probe_ops): Delete.
2131 (info_probes_stap_command): Use 'info_probes_for_spops'
2132 instead of 'info_probes_for_ops'.
2133 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
2136 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
2138 * break-catch-throw.c (fetch_probe_arguments): Use
2139 'probe.prob' instead of 'probe.probe'.
2140 * breakpoint.c (create_longjmp_master_breakpoint): Call
2141 'can_evaluate_arguments' and 'get_relocated_address' methods
2143 (create_exception_master_breakpoint): Likewise.
2144 (add_location_to_breakpoint): Use 'sal->prob' instead of
2146 (bkpt_probe_insert_location): Call 'set_semaphore' method from
2148 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
2149 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
2151 (probe_key_free): Call 'delete' on probe.
2152 (check_exception_resume): Use 'probe.prob' instead of
2154 * location.c (string_to_event_location_basic): Call
2155 'probe_linespec_to_static_ops'.
2156 * probe.c (class any_static_probe_ops): New class.
2157 (any_static_probe_ops any_static_probe_ops): New variable.
2158 (parse_probes_in_pspace): Receive 'static_probe_ops' as
2159 argument. Adjust code to reflect change.
2160 (parse_probes): Use 'static_probe_ops' instead of
2161 'probe_ops'. Adjust code to reflect change.
2162 (find_probes_in_objfile): Call methods to get name and
2163 provider from probe.
2164 (find_probe_by_pc): Use 'result.prob' instead of
2165 'result.probe'. Call 'get_relocated_address' method from
2167 (collect_probes): Adjust comment and argument list to receive
2168 'static_probe_ops' instead of 'probe_ops'. Adjust code to
2169 reflect change. Call necessary methods from probe.
2170 (compare_probes): Call methods to get name and provider from
2172 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
2173 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
2174 adjust code accordingly.
2175 (print_ui_out_not_applicables): Likewise.
2176 (info_probes_for_ops): Rename to...
2177 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
2178 as argument instead of 'probe_ops'. Adjust code. Call
2179 necessary methods from probe.
2180 (info_probes_command): Use 'info_probes_for_spops'.
2181 (enable_probes_command): Pass correct argument to
2182 'collect_probes'. Call methods from probe.
2183 (disable_probes_command): Likewise.
2184 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
2185 (get_probe_argument_count): Move to
2186 'any_static_probe_ops::get_argument_count'.
2187 (can_evaluate_probe_arguments): Move to
2188 'any_static_probe_ops::can_evaluate_arguments'.
2189 (evaluate_probe_argument): Move to
2190 'any_static_probe_ops::evaluate_argument'.
2191 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
2193 (probe_linespec_to_ops): Rename to...
2194 (probe_linespec_to_static_ops): ...this. Adjust code.
2195 (probe_any_is_linespec): Rename to...
2196 (any_static_probe_ops::is_linespec): ...this.
2197 (probe_any_get_probes): Rename to...
2198 (any_static_probe_ops::get_probes): ...this.
2199 (any_static_probe_ops::type_name): New method.
2200 (any_static_probe_ops::gen_info_probes_table_header): New
2202 (compute_probe_arg): Use 'pc_probe.prob' instead of
2203 'pc_probe.probe'. Call methods from probe.
2204 (compile_probe_arg): Likewise.
2205 (std::vector<const probe_ops *> all_probe_ops): Delete.
2206 (std::vector<const static_probe_ops *> all_static_probe_ops):
2208 (_initialize_probe): Use 'all_static_probe_ops' instead of
2210 * probe.h (struct info_probe_column) <field_name>: Delete
2212 (info_probe_column_s): Delete type and VEC.
2213 (struct probe_ops): Delete. Replace with...
2214 (class static_probe_ops): ...this and...
2215 (clas probe): ...this.
2216 (struct bound_probe) <bound_probe>: Delete extraneous
2217 newline. Adjust constructor to receive 'probe' instead of
2219 <probe>: Rename to...
2220 <prob>: ...this. Delete extraneous newline.
2221 <objfile>: Delete extraneous newline.
2222 (register_probe_ops): Delete unused prototype.
2223 (info_probes_for_ops): Rename to...
2224 (info_probes_for_spops): ...this. Adjust comment.
2225 (get_probe_address): Move to 'probe::get_address'.
2226 (get_probe_argument_count): Move to
2227 'probe::get_argument_count'.
2228 (can_evaluate_probe_arguments): Move to
2229 'probe::can_evaluate_arguments'.
2230 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
2231 * solib-svr4.c (struct svr4_info): Adjust comment.
2232 (struct probe_and_action) <probe>: Rename to...
2234 (register_solib_event_probe): Receive 'probe' instead of
2235 'struct probe' as argument. Use 'prob' instead of 'probe'
2237 (solib_event_probe_action): Call 'get_argument_count' method
2238 from probe. Adjust comment.
2239 (svr4_handle_solib_event): Adjust comment. Call
2240 'evaluate_argument' method from probe.
2241 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
2243 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
2244 'struct probe'. Call 'can_evaluate_arguments' from probe.
2245 * symfile.h: Forward declare 'class probe' instead of 'struct
2247 * symtab.h: Likewise.
2248 (struct symtab_and_line) <probe>: Rename to...
2250 * tracepoint.c (start_tracing): Use 'prob' when applicable.
2252 (stop_tracing): Likewise.
2254 2017-11-22 Joel Brobecker <brobecker@adacore.com>
2256 * ravenscar-thread.c (ravenscar_inferior_created): Remove
2257 trailing newline at end of string in call to warning.
2259 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2261 * osdata.h: Include vector isntead of vec.h.
2262 (osdata_column_s): Remove typedef.
2263 (struct osdata_column): Add constructor.
2264 <name, value>: Change type to std::string.
2265 (DEF_VEC_O (osdata_column_s)): Remove.
2266 (osdata_item_s): Remove typedef.
2267 (struct osdata_item) <columns>: Change type to std::vector.
2268 (DEF_VEC_O (osdata_item_s)): Remove.
2269 (struct osdata): Add constructor.
2270 <type>: Change type to std::string.
2271 <items>: Change type to std::vector.
2272 (osdata_p): Remove typedef.
2273 (DEF_VEC_P (osdata_p)): Remove.
2274 (osdata_parse): Return a unique_ptr.
2275 (osdata_free): Remove.
2276 (make_cleanup_osdata_free): Remove.
2277 (get_osdata): Return a unique_ptr.
2278 (get_osdata_column): Return pointer to std::string, take a
2279 reference to osdata_item as parameter.
2280 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
2282 <property_name>: Change type to std::string.
2283 (osdata_start_osdata): Allocate osdata with new and adjust.
2284 (osdata_start_item): Adjust.
2285 (osdata_start_column): Adjust.
2286 (osdata_end_column): Adjust.
2287 (clear_parsing_data): Remove.
2288 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
2289 (osdata_item_clear): Remove.
2290 (get_osdata): return a unique_ptr and adjust.
2291 (get_osdata_column): Return a pointer to std::string and adjust.
2292 (info_osdata): Adjust.
2293 * mi/mi-main.c: Include <map>.
2294 (free_vector_of_osdata_items): Remove.
2295 (list_available_thread_groups): Adjust, use std::map instead of
2298 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
2300 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
2303 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2305 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
2307 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2309 * varobj.h (struct varobj_update_result): Add constructor, add
2310 move constructor, disable copy and assign, initialize fields.
2311 <newobj>: Change type to std::vector.
2312 (varobj_update): Return std::vector.
2313 * varobj.c (install_dynamic_child): Change VEC parameters to
2314 std::vector and adjust.
2315 (update_dynamic_varobj_children): Likewise.
2316 (varobj_update): Return std::vector and adjust.
2317 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
2319 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2321 * varobj.h (struct varobj) <parent>: Remove const.
2322 <children>: Change type to std::vector.
2323 (varobj_list_children): Return std::vector const reference.
2324 (varobj_restrict_range): Change parameter type to std::vector
2326 * varobj.c (varobj_has_more): Adjust.
2327 (varobj_restrict_range): Change parameter type to std::vector
2328 const reference and adjust.
2329 (install_dynamic_child): Adjust.
2330 (update_dynamic_varobj_children): Adjust.
2331 (varobj_list_children): Return std::vector const reference and
2333 (varobj_add_child): Adjust.
2334 (update_type_if_necessary): Adjust.
2335 (varobj_update): Adjust.
2336 (delete_variable_1): Adjust.
2337 * ada-varobj.c (ada_value_has_mutated): Adjust.
2338 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
2340 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2342 * varobj.h (struct varobj): Add constructor and destructor,
2344 * varobj.c (struct varobj_root): Initialize fields.
2345 (struct varobj_dynamic): Initialize fields.
2346 (varobj_create): Use unique_ptr instead of cleanup. Create
2347 varobj with new instead of new_root_variable.
2348 (delete_variable_1): Free variable with delete instead of
2350 (create_child_with_value): Create variable with new instead of
2352 (varobj::varobj): New.
2353 (varobj::~varobj): New (body mostly coming from free_variable).
2354 (new_variable): Remove.
2355 (free_variable): Remove.
2356 (do_free_variable_cleanup): Remove.
2357 (make_cleanup_free_variable): Remove.
2359 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2361 * core-regset.c: Remove file.
2362 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
2364 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2366 * NEWS: Document use of GNU MPFR.
2369 * Makefile.in (LIBMPFR): Add define.
2370 (CLIBS): Add $(LIBMPFR).
2371 * configure.ac: Add --with-mpfr configure option.
2372 * configure: Regenerate.
2373 * config.in: Regenerate.
2375 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2376 (class mpfr_float_ops): New type.
2377 (mpfr_float_ops::from_target): Two new overloaded functions.
2378 (mpfr_float_ops::to_target): Likewise.
2379 (mpfr_float_ops::to_string): New function.
2380 (mpfr_float_ops::from_string): Likewise.
2381 (mpfr_float_ops::to_longest): Likewise.
2382 (mpfr_float_ops::from_longest): Likewise.
2383 (mpfr_float_ops::from_ulongest): Likewise.
2384 (mpfr_float_ops::to_host_double): Likewise.
2385 (mpfr_float_ops::from_host_double): Likewise.
2386 (mpfr_float_ops::convert): Likewise.
2387 (mpfr_float_ops::binop): Likewise.
2388 (mpfr_float_ops::compare): Likewise.
2389 (get_target_float_ops): Use mpfr_float_ops if available.
2391 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2393 * target-float.c: Do not include <math.h>.
2394 Include <cmath> and <limits>.
2395 (DOUBLEST): Do not define.
2396 (class target_float_ops): New type.
2397 (class host_float_ops): New templated type.
2398 (class decimal_float_ops): New type.
2400 (floatformat_to_doublest): Rename to ...
2401 (host_float_ops<T>::from_target): ... this. Use template type T
2402 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2403 (host_float_ops<T>::from_target): New overload using a type argument.
2404 (floatformat_from_doublest): Rename to ...
2405 (host_float_ops<T>::to_target): ... this. Use template type T
2406 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2407 (host_float_ops<T>::to_target): New overload using a type argument.
2408 (floatformat_printf_format): New function.
2409 (struct printf_length_modifier): New templated type.
2410 (floatformat_to_string): Rename to ...
2411 (host_float_ops<T>::to_string): ... this. Use type instead of
2412 floatformat argument. Use floatformat_printf_format and
2413 printf_length_modifier. Remove special handling of invalid numbers,
2414 infinities and NaN (moved to target_float_to_string).
2415 (struct scanf_length_modifier): New templated type.
2416 (floatformat_from_string): Rename to ...
2417 (host_float_ops<T>::from_string): ... this. Use type instead of
2418 floatformat argument. Use scanf_length_modifier.
2419 (floatformat_to_longest): Rename to ...
2420 (host_float_ops<T>::to_longest): ... this. Use type instead of
2421 floatformat argument. Handle out-of-range values deterministically.
2422 (floatformat_from_longest): Rename to ...
2423 (host_float_ops<T>::from_longest): ... this. Use type instead of
2424 floatformat argument.
2425 (floatformat_from_ulongest): Rename to ...
2426 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2427 floatformat argument.
2428 (floatformat_to_host_double): Rename to ...
2429 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2430 floatformat argument.
2431 (floatformat_from_host_double): Rename to ...
2432 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2433 floatformat argument.
2434 (floatformat_convert): Rename to ...
2435 (host_float_ops<T>::convert): ... this. Use type instead of
2436 floatformat arguments. Remove handling of no-op conversions.
2437 (floatformat_binop): Rename to ...
2438 (host_float_ops<T>::binop): ... this. Use type instead of
2439 floatformat arguments.
2440 (floatformat_compare): Rename to ...
2441 (host_float_ops<T>::compare): ... this. Use type instead of
2442 floatformat arguments.
2444 (match_endianness): Use type instead of length/byte_order arguments.
2445 (set_decnumber_context): Likewise.
2446 (decimal_from_number): Likewise. Update calls.
2447 (decimal_to_number): Likewise.
2448 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2449 (decimal_float_ops::to_host_double): New dummy function.
2450 (decimal_float_ops::from_host_double): Likewise.
2451 (decimal_to_string): Rename to ...
2452 (decimal_float_ops::to_string): ... this. Use type instead of
2453 length/byte_order arguments. Update calls.
2454 (decimal_from_string): Rename to ...
2455 (decimal_float_ops::from_string): ... this. Use type instead of
2456 length/byte_order arguments. Update calls.
2457 (decimal_from_longest): Rename to ...
2458 (decimal_float_ops::from_longest): ... this. Use type instead of
2459 length/byte_order arguments. Update calls.
2460 (decimal_from_ulongest): Rename to ...
2461 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2462 length/byte_order arguments. Update calls.
2463 (decimal_to_longest): Rename to ...
2464 (decimal_float_ops::to_longest): ... this. Use type instead of
2465 length/byte_order arguments. Update calls.
2466 (decimal_binop): Rename to ...
2467 (decimal_float_ops::binop): ... this. Use type instead of
2468 length/byte_order arguments. Update calls.
2469 (decimal_compare): Rename to ...
2470 (decimal_float_ops::compare): ... this. Use type instead of
2471 length/byte_order arguments. Update calls.
2472 (decimal_convert): Rename to ...
2473 (decimal_float_ops::convert): ... this. Use type instead of
2474 length/byte_order arguments. Update calls.
2476 (target_float_same_category_p): New function.
2477 (target_float_same_format_p): Likewise.
2478 (target_float_format_length): Likewise.
2479 (enum target_float_ops_kind): New type.
2480 (get_target_float_ops_kind): New function.
2481 (get_target_float_ops): Three new overloaded functions.
2483 (target_float_is_zero): Update call.
2484 (target_float_to_string): Add special handling of invalid numbers,
2485 infinities and NaN (moved from floatformat_to_string). Use
2486 target_float_ops callback.
2487 (target_float_from_string): Use target_float_ops callback.
2488 (target_float_to_longest): Likewise.
2489 (target_float_from_longest): Likewise.
2490 (target_float_from_ulongest): Likewise.
2491 (target_float_to_host_double): Likewise.
2492 (target_float_from_host_double): Likewise.
2493 (target_float_convert): Add special case for no-op conversions.
2494 Use target_float_ops callback.
2495 (target_float_binop): Use target_float_ops callback.
2496 (target_float_compare): Likewise.
2498 2017-11-22 Yao Qi <yao.qi@linaro.org>
2500 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2502 2017-11-22 Yao Qi <yao.qi@linaro.org>
2504 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2505 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2507 2017-11-21 Jerome Guitton <guitton@adacore.com>
2509 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2510 with event ptid from the lower layer before doing the
2511 ravenscar-specific update.
2513 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2515 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2516 the ptid's TID is nonzero.
2518 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2520 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2521 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2522 Make non-static. Change return type to char *. Adjust code
2523 accordingly. Rewrite the function's documentation.
2524 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2525 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2526 we have enough debugging information in the runtime to support
2527 Ada task debugging before we enable the ravenscar-thread layer.
2529 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2531 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2532 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2533 * ravenscar-thread.c: Add into comment.
2534 (base_magic_null_ptid): Delete.
2535 (base_ptid): Change documentation.
2536 (ravenscar_active_task): Renames ravenscar_running_thread.
2537 All callers updated throughout.
2538 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2539 (ravenscar_task_is_currently_active): Likewise.
2540 (get_base_thread_from_ravenscar_task): Ditto.
2541 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2542 (ravenscar_runtime_initialized): Likewise.
2543 (get_running_thread_id): Add new parameter "cpu". Adjust
2544 implementation to handle this new parameter.
2545 (ravenscar_fetch_registers): Small adjustment to use
2546 is_ravenscar_task and ravenscar_task_is_currently_active in
2547 order to decide whether to use the target beneath or this
2549 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2550 (ravenscar_stopped_by_sw_breakpoint): Use
2551 get_base_thread_from_ravenscar_task to get the underlying
2552 thread, rather than using base_ptid.
2553 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2554 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2556 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2558 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2560 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2561 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2562 (get_tcb_types_info): Set fieldnos.base_cpu.
2563 (read_atcb): Set task_info->base_cpu.
2564 (info_task): Print "Base CPU" info if set by runtime.
2566 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2568 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2569 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2570 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2572 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2573 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2574 to_stopped_data_address and to_core_of_thread fields of
2577 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2579 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2580 (struct gdbarch_tdep): New member long_double_abi.
2581 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2582 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2583 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2584 format depending on long_double_abi tdep member.
2585 (ppc_floatformat_for_type): Handle __ibm128 type.
2587 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2589 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2591 2017-11-21 Pedro Alves <palves@redhat.com>
2593 * dwarf2read.c (mapped_index::find_name_components_bounds)
2594 <completion mode, upper bound>: Use std::lower_bound instead of
2596 (test_mapped_index_find_name_component_bounds): Remove incorrect
2597 "t1_fund" from expected symbols.
2599 2017-11-21 Pedro Alves <palves@redhat.com>
2601 * dwarf2read.c (mapped_index::name_components_casing): New field.
2602 (mapped_index) <build_name_components,
2603 find_name_components_bounds): Declare new methods.
2604 (mapped_index::find_name_components_bounds)
2605 (mapped_index::build_name_components): New methods, factored out
2606 from dw2_expand_symtabs_matching_symbol.
2607 (check_find_bounds_finds)
2608 (test_mapped_index_find_name_component_bounds): New.
2609 (run_test): Rename to ...
2610 (test_dw2_expand_symtabs_matching_symbol): ... this.
2611 (run_test): Reimplement.
2613 2017-11-21 Pedro Alves <palves@redhat.com>
2615 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2616 (symbol_end): Use cp_ident_is_alnum.
2617 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2618 * dwarf2read.c (make_sort_after_prefix_name): New function.
2619 (dw2_expand_symtabs_matching_symbol): Use it.
2620 (test_symbols): Add more symbols.
2621 (run_test): Add tests.
2623 2017-11-17 Tom Tromey <tom@tromey.com>
2625 * symtab.h (enum symbol_subclass_kind): New.
2626 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2628 <subclass>: New member.
2629 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2630 * rust-lang.c (rust_get_trait_object_pointer): Update.
2631 * dwarf2read.c (read_func_scope): Update.
2632 (read_variable): Update.
2634 2017-11-17 Tom Tromey <tom@tromey.com>
2636 * dwarf2read.c (read_func_scope): Update.
2637 * symtab.h (struct template_symbol): Derive from symbol.
2640 2017-11-17 Tom Tromey <tom@tromey.com>
2642 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2643 (struct rust_vtable_symbol): New.
2644 (find_symbol_at_address): Declare.
2645 * symtab.c (find_symbol_at_address): New function.
2646 * symfile.h (struct quick_symbol_functions)
2647 <find_compunit_symtab_by_address>: New member.
2648 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2650 (debug_sym_quick_functions): Link to
2651 debug_qf_find_compunit_symtab_by_address.
2652 * rust-lang.c (rust_get_trait_object_pointer): New function.
2653 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2654 rust_get_trait_object_pointer.
2655 * psymtab.c (psym_relocate): Clear psymbol_map.
2656 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2658 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2659 * objfiles.h (struct objfile) <psymbol_map>: New member.
2660 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2661 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2662 (rust_containing_type, read_variable): New functions.
2664 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2666 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2668 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2670 * common/filestuff.c: Include <algorithm>.
2671 (open_fds): Change type to std::vector<int>.
2672 (do_mark_open_fd): Adjust.
2673 (unmark_fd_no_cloexec): Adjust.
2676 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2678 * breakpoint.c (output_thread_groups): Take an std::vector.
2679 (print_one_breakpoint_location): Adjust.
2681 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2683 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2684 (ada_evaluate_subexp_for_cast): New function.
2685 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2686 ada_evaluate_subexp_for_cast.
2687 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2689 * eval.c (evaluate_var_value): Make non-static.
2690 (evaluate_var_msym_value, eval_skip_value): Likewise.
2691 * value.h (evaluate_var_value, evaluate_var_msym_value)
2692 (eval_skip_value): Declare.
2694 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2696 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2699 2017-11-16 Pedro Alves <palves@redhat.com>
2701 * python/py-unwind.c (pyuw_sniffer): Translate
2702 PyExc_KeyboardInterrupt to a GDB Quit exception.
2704 2017-11-16 Pedro Alves <palves@redhat.com>
2706 * infrun.c (resume_cleanups): Delete.
2707 (resume): No longer install a resume_cleanups cleanup nor call
2709 (proceed): Pass the terminal to the inferior.
2710 (keep_going_pass_signal): No longer install a resume_cleanups
2713 2017-11-16 Pedro Alves <palves@redhat.com>
2715 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2716 if the prompt is blocked.
2718 2017-11-16 Pedro Alves <palves@redhat.com>
2720 * breakpoint.c (insert_bp_location): Replace bp_err and
2721 bp_err_message locals by a gdb_exception local.
2723 2017-11-16 Pedro Alves <palves@redhat.com>
2725 * inflow.c (scoped_ignore_sigttou): New class.
2726 (child_terminal_ours_1, new_tty): Use it.
2728 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2730 * target-float.c (decimal_from_number): Add byte_order argument and
2731 call match_endianness. Error if unknown floating-point type.
2732 (decimal_to_number): Add byte_order argument and call match_endianness.
2733 (decimal_from_longest): Update call. Do not call match_endianness.
2734 (decimal_from_ulongest): Likewise.
2735 (decimal_binop): Likewise.
2736 (decimal_is_zero): Likewise.
2737 (decimal_compare): Likewise.
2738 (decimal_convert): Likewise.
2740 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2742 * python/python.c (gdbpy_rbreak): New function.
2743 * NEWS: Document Python rbreak feature.
2745 2017-11-16 Yao Qi <yao.qi@linaro.org>
2747 * features/tic6x-c62x.xml: Remove.
2748 * features/tic6x-c64x.xml: Remove.
2749 * features/tic6x-c64xp.xml: Remove.
2751 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2753 * symtab.h: Include <array>.
2755 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2757 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2758 (bsd_kvm_proc_cmd): Likewise.
2760 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2762 * tui/tui-win.c (window_name_completer): Replace VEC with
2765 2017-11-15 Andrew Cagney <cagney@gnu.org>
2767 * MAINTAINERS: Remove no-longer applicable entries.
2769 2017-11-15 Andrew Cagney <cagney@gnu.org>
2771 * MAINTAINERS: Move self to Past Maintainers.
2773 2017-11-15 Yao Qi <yao.qi@linaro.org>
2775 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2776 * features/nios2-linux.c: Remove.
2777 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2778 initialize_tdesc_nios2_linux.
2780 2017-11-15 Yao Qi <yao.qi@linaro.org>
2782 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2783 M68HC11_LAST_HARD_REG + 1.
2785 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2788 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2789 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2790 Return TARGET_XFER_EOF if size of returned data is 0.
2792 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2794 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2795 memory-map-selftests.c.
2796 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2797 * memory-map.c (memory_map_start_memory): Fix computation of hi
2799 * unittests/memory-map-selftests.c: New file.
2801 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2803 * ada-lang.c: Fix some typos in the general command documenting
2804 how Ada expressions are being evaluated and how their result
2807 2017-11-09 Tom Tromey <tom@tromey.com>
2809 * psymtab.c (psymbol_hash): Do not hash string contents.
2810 (psymbol_compare): Add comment.
2812 2017-11-09 Tom Tromey <tom@tromey.com>
2814 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2816 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2818 * ada-exp.y (write_var_from_sym): Remove parameter
2819 "orig_left_context". Update all callers.
2821 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2823 * tracepoint.h (class collection_list) <stringify>: Return
2824 std::vector<std::string>.
2825 (encode_actions_rsp): Change parameters to
2826 std::vector<std::string> *.
2827 * tracepoint.c (collection_list::stringify): Return
2828 std::vector<std::string> and adjust accordingly.
2829 (encode_actions_rsp): Changee parameters to
2830 std::vector<std::string> and adjust accordingly.
2831 * remote.c (free_actions_list),
2832 free_actions_list_cleanup_wrapper): Remove.
2833 (remote_download_tracepoint): Adjust to std::vector.
2835 2017-11-08 Tom Tromey <tom@tromey.com>
2837 * dwarf2read.c (symbolp): Remove typedef.
2838 (read_func_scope): Use std::vector.
2839 (process_structure_scope): Use std::vector.
2841 2017-11-08 Pedro Alves <palves@redhat.com>
2843 * ada-lang.c (ada_make_symbol_completion_list): Use
2844 completion_skip_symbol.
2845 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2846 (symbol_is_function_or_method(symbol*)): New.
2847 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2848 completion_skip_symbol.
2849 (default_collect_symbol_completion_matches_break_on): Use
2850 completion_skip_symbol. Pass down mode.
2851 (collect_file_symbol_completion_matches): Pass down mode.
2852 * symtab.h (symbol_is_function_or_method): New declarations.
2853 (completion_skip_symbol): New template function.
2855 2017-11-08 Pedro Alves <palves@redhat.com>
2857 * linespec.c (iterate_over_all_matching_symtabs): Add
2858 search_domain parameter. Pass it down to expand_symtabs_matching.
2859 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2860 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2862 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2864 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2866 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2869 2017-11-08 Pedro Alves <palves@redhat.com>
2871 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2872 text_len locals and don't pass them down.
2873 * symtab.c (completion_list_add_name): Remove
2874 sym_text/sym_text_len parameters and adjust.
2875 (completion_list_add_symbol, completion_list_add_msymbol)
2876 (completion_list_objc_symbol, completion_list_add_fields)
2877 (add_symtab_completions): Likewise.
2878 (default_collect_symbol_completion_matches_break_on)
2879 (collect_file_symbol_completion_matches): Remove sym_text_len
2880 local and don't pass it down.
2881 * symtab.h (completion_list_add_name): Remove
2882 sym_text/sym_text_len parameters.
2884 2017-11-08 Pedro Alves <palves@redhat.com>
2886 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2887 unittests/lookup_name_info-selftests.c.
2888 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2889 * cp-support.c: Include "selftest.h".
2890 (cp_remove_params_1): Rename from cp_remove_params. Add
2891 'require_param' parameter, and handle it.
2892 (cp_remove_params): Reimplement.
2893 (cp_remove_params_if_any): New.
2894 (selftests::quote): New.
2895 (selftests::check_remove_params): New.
2896 (selftests::test_cp_remove_params): New.
2897 (_initialize_cp_support): Install
2898 selftests::test_cp_remove_params.
2899 * cp-support.h (cp_remove_params_if_any): Declare.
2900 * dwarf2read.c :Include "selftest.h".
2901 (dw2_expand_symtabs_matching_symbol): Use
2902 lookup_name_info::make_ignore_params.
2903 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2904 (selftests::dw2_expand_symtabs_matching::string_or_null)
2905 (selftests::dw2_expand_symtabs_matching::check_match)
2906 (selftests::dw2_expand_symtabs_matching::test_symbols)
2907 (selftests::dw2_expand_symtabs_matching::run_test): New.
2908 (_initialize_dwarf2_read): Register
2909 selftests::dw2_expand_symtabs_matching::run_test.
2910 * psymtab.c (psym_expand_symtabs_matching): Use
2911 lookup_name_info::make_ignore_params.
2912 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2913 If the lookup name wants to ignore parameters, strip them.
2914 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2916 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2917 (default_collect_symbol_completion_matches_break_on): Don't try to
2919 * symtab.h (lookup_name_info::lookup_name_info): Add
2920 'ignore_parameters' parameter.
2921 (lookup_name_info::ignore_parameters)
2922 (lookup_name_info::make_ignore_params): New methods.
2923 (lookup_name_info::m_ignore_parameters): New field.
2924 * unittests/lookup_name_info-selftests.c: New file.
2926 2017-11-08 Pedro Alves <palves@redhat.com>
2928 * dwarf2read.c (dw2_expand_marked_cus)
2929 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2930 (dw2_expand_symtabs_matching): Move further below.
2931 (dw2_expand_marked_cus): Reindent.
2933 2017-11-08 Pedro Alves <palves@redhat.com>
2935 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2936 (struct name_component): New.
2937 (mapped_index::name_components): New field.
2938 (mapped_index::symbol_name_at): New method.
2939 (dwarf2_read_index): Call mapped_index ctor.
2940 (dw2_map_matching_symbols): Add comment about name_components
2942 (dw2_expand_symtabs_matching): Factor part to...
2943 (dw2_expand_symtabs_matching_symbol): ... this new function.
2944 Build name components table, and lookup symbols in it before
2945 calling the name matcher.
2946 (dw2_expand_marked_cus): New, factored out from
2947 dw2_expand_symtabs_matching.
2948 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2950 2017-11-08 Pedro Alves <palves@redhat.com>
2952 * ada-lang.c (ada_encode): Rename to ..
2953 (ada_encode_1): ... this. Add throw_errors parameter and handle
2955 (ada_encode): Reimplement.
2956 (match_name): Delete, folded into full_name.
2957 (resolve_subexp): No longer pass the encoded name to
2958 ada_lookup_symbol_list.
2959 (should_use_wild_match): Delete.
2960 (name_match_type_from_name): New.
2961 (ada_lookup_simple_minsym): Use lookup_name_info and the
2962 language's symbol_name_matcher_ftype.
2963 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2964 (ada_add_block_renamings): Adjust to use lookup_name_info.
2965 (ada_lookup_name): New.
2966 (add_nonlocal_symbols, ada_add_all_symbols)
2967 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2968 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2969 (ada_name_for_lookup): Delete.
2970 (ada_lookup_encoded_symbol): Construct a verbatim name.
2971 (wild_match): Reverse sense of return type. Use bool.
2972 (full_match): Reverse sense of return type. Inline bits of old
2974 (ada_add_block_symbols): Adjust to use lookup_name_info.
2975 (symbol_completion_match): Delete, folded into...
2976 (ada_lookup_name_info::matches): ... .this new method.
2977 (symbol_completion_add): Delete.
2978 (ada_collect_symbol_completion_matches): Add name_match_type
2979 parameter. Adjust to use lookup_name_info and
2980 completion_list_add_name.
2981 (get_var_value, ada_add_global_exceptions): Adjust to use
2983 (ada_get_symbol_name_cmp): Delete.
2984 (do_wild_match, do_full_match): New functions.
2985 (ada_lookup_name_info::ada_lookup_name_info): New method.
2986 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2988 (ada_language_defn): Install ada_get_symbol_name_matcher.
2989 * ada-lex.l (processId): If name starts with '<', copy it
2991 * block.c (block_iter_match_step, block_iter_match_first)
2992 (block_iter_match_next, block_lookup_symbol)
2993 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2995 * block.h (block_iter_match_first, block_iter_match_next)
2996 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2997 * c-lang.c (c_language_defn, cplus_language_defn)
2998 (asm_language_defn, minimal_language_defn): Adjust comments to
2999 refer to la_get_symbol_name_matcher.
3000 * completer.c (complete_files_symbols)
3001 (collect_explicit_location_matches, symbol_completer): Pass a
3002 symbol_name_match_type down.
3003 * completer.h (class completion_match, completion_match_result):
3005 (completion_tracker::reset_completion_match_result): New method.
3006 (completion_tracker::m_completion_match_result): New field.
3007 * cp-support.c (make_symbol_overload_list_block): Adjust to use
3009 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
3011 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
3012 * d-lang.c: Adjust comments to refer to
3013 la_get_symbol_name_matcher.
3014 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
3015 Adjust to use lookup_name_info.
3016 (dict_iter_match_first, dict_iter_match_next)
3017 (iter_match_first_hashed, iter_match_next_hashed)
3018 (iter_match_first_linear, iter_match_next_linear): Adjust to work
3019 with a lookup_name_info.
3020 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
3022 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
3023 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
3024 (gdb_index_symbol_name_matcher): New class.
3025 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
3026 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
3027 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
3028 with a symbol_name_match_type.
3029 (f_language_defn): Adjust comments to refer to
3030 la_get_symbol_name_matcher.
3031 * go-lang.c (go_language_defn): Adjust comments to refer to
3032 la_get_symbol_name_matcher.
3033 * language.c (default_symbol_name_matcher)
3034 (language_get_symbol_name_matcher): New functions.
3035 (unknown_language_defn, auto_language_defn): Adjust comments to
3036 refer to la_get_symbol_name_matcher.
3037 * language.h (symbol_name_cmp_ftype): Delete.
3038 (language_defn) <la_collect_symbol_completion_matches>: Add match
3040 <la_get_symbol_name_cmp>: Delete field.
3041 <la_get_symbol_name_matcher>: New field.
3042 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
3043 (default_symbol_name_matcher, language_get_symbol_name_matcher):
3045 * linespec.c (iterate_over_all_matching_symtabs)
3046 (iterate_over_file_blocks): Adjust to use lookup_name_info.
3047 (find_methods): Add language parameter, and use lookup_name_info
3048 and the language's symbol_name_matcher_ftype.
3049 (linespec_complete_function): Adjust.
3050 (lookup_prefix_sym): Use lookup_name_info.
3051 (add_all_symbol_names_from_pspace): Adjust.
3052 (find_superclass_methods): Add language parameter and pass it
3054 (find_method): Pass symbol language down.
3055 (find_linespec_symbols): Don't demangle or Ada encode here.
3056 (search_minsyms_for_name): Add lookup_name_info parameter.
3057 (add_matching_symbols_to_info): Add name_match_type parameter.
3058 Use lookup_name_info.
3059 * m2-lang.c (m2_language_defn): Adjust comments to refer to
3060 la_get_symbol_name_matcher.
3061 * minsyms.c: Include <algorithm>.
3062 (add_minsym_to_demangled_hash_table): Remove table parameter and
3063 add objfile parameter. Use search_name_hash, and add language to
3064 demangled languages vector.
3065 (struct found_minimal_symbols): New struct.
3066 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
3068 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
3069 input names here. Use lookup_name_info instead. Lookup up
3070 demangled names once for each language in the demangled names
3072 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
3073 demangled names once for each language in the demangled names
3075 (build_minimal_symbol_hash_tables): Adjust.
3076 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
3078 * objc-lang.c (objc_language_defn): Adjust comment to refer to
3079 la_get_symbol_name_matcher.
3080 * objfiles.h: Include <vector>.
3081 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
3082 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
3083 la_get_symbol_name_matcher.
3084 * p-lang.c (pascal_language_defn): Adjust comment to refer to
3085 la_get_symbol_name_matcher.
3086 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
3087 (match_partial_symbol): Use symbol_name_match_type,
3088 lookup_name_info and psymbol_name_matches.
3089 (lookup_partial_symbol): Use lookup_name_info.
3090 (map_block): Use symbol_name_match_type and lookup_name_info.
3091 (psym_map_matching_symbols): Use symbol_name_match_type.
3092 (psymbol_name_matches): New.
3093 (recursively_search_psymtabs): Use lookup_name_info and
3094 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
3095 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
3096 'kind' parameter to 'domain'.
3097 * rust-lang.c (rust_language_defn): Adjust comment to refer to
3098 la_get_symbol_name_matcher.
3099 * symfile-debug.c (debug_qf_map_matching_symbols)
3100 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
3101 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
3102 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
3103 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
3104 Adjust to use symbol_name_match_type.
3105 <expand_symtabs_matching>: Adjust to use lookup_name_info.
3106 (expand_symtabs_matching): Adjust to use lookup_name_info.
3107 * symmisc.c (maintenance_expand_symtabs): Use
3108 lookup_name_info::match_any ().
3109 * symtab.c (symbol_matches_search_name): New.
3110 (eq_symbol_entry): Adjust to use lookup_name_info and the
3112 (demangle_for_lookup_info::demangle_for_lookup_info): New.
3113 (lookup_name_info::match_any): New.
3114 (iterate_over_symbols, search_symbols): Use lookup_name_info.
3115 (compare_symbol_name): Add language, lookup_name_info and
3116 completion_match_result parameters, and use them.
3117 (completion_list_add_name): Make extern. Add language and
3118 lookup_name_info parameters. Use them.
3119 (completion_list_add_symbol, completion_list_add_msymbol)
3120 (completion_list_objc_symbol): Add lookup_name_info parameters and
3121 adjust. Pass down language.
3122 (completion_list_add_fields): Add lookup_name_info parameters and
3123 adjust. Pass down language.
3124 (add_symtab_completions): Add lookup_name_info parameters and
3126 (default_collect_symbol_completion_matches_break_on): Add
3127 name_match_type parameter, and use it. Use lookup_name_info.
3128 (default_collect_symbol_completion_matches)
3129 (collect_symbol_completion_matches): Add name_match_type
3130 parameter, and pass it down.
3131 (collect_symbol_completion_matches_type): Adjust.
3132 (collect_file_symbol_completion_matches): Add name_match_type
3133 parameter, and use lookup_name_info.
3134 * symtab.h: Include <string> and "common/gdb_optional.h".
3135 (enum class symbol_name_match_type): New.
3136 (class ada_lookup_name_info): New.
3137 (struct demangle_for_lookup_info): New.
3138 (class lookup_name_info): New.
3139 (symbol_name_matcher_ftype): New.
3140 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
3141 (symbol_matches_search_name): Declare.
3142 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
3143 (default_collect_symbol_completion_matches)
3144 (collect_symbol_completion_matches)
3145 (collect_file_symbol_completion_matches): Add name_match_type
3147 (iterate_over_symbols): Use lookup_name_info.
3148 (completion_list_add_name): Declare.
3149 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
3150 (strncmp_iw_with_mode): Now extern.
3151 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
3152 (strncmp_iw_with_mode): Declare.
3154 2017-11-08 Keith Seitz <keiths@redhat.com>
3155 Pedro Alves <palves@redhat.com>
3157 * ada-lang.c (ada_language_defn): Install
3158 default_search_name_hash.
3159 * buildsym.c (struct buildsym_compunit): <language>: New field.
3160 (finish_block_internal): Pass language when creating dictionaries.
3161 (start_buildsym_compunit, start_symtab): New language parameters.
3163 (restart_symtab): Pass down compilation unit's language.
3164 * buildsym.h (enum language): Forward declare.
3165 (start_symtab): New 'language' parameter.
3166 * c-lang.c (c_language_defn, cplus_language_defn)
3167 (asm_language_defn, minimal_language_defn): Install
3168 default_search_name_hash.
3169 * coffread.c (coff_start_symtab): Adjust.
3170 * d-lang.c (d_language_defn): Install default_search_name_hash.
3171 * dbxread.c (struct symloc): Add 'pst_language' field.
3172 (PST_LANGUAGE): Define.
3173 (start_psymtab, read_ofile_symtab): Use it.
3174 (process_one_symbol): New 'language' parameter. Pass it down.
3175 * dictionary.c (struct dictionary) <language>: New field.
3176 (DICT_LANGUAGE): Define.
3177 (dict_create_hashed, dict_create_hashed_expandable)
3178 (dict_create_linear, dict_create_linear_expandable): New parameter
3179 'language'. Set the dictionary's language.
3180 (iter_match_first_hashed): Adjust to rename.
3181 (insert_symbol_hashed): Assert we don't see mismatching
3182 languages. Adjust to rename.
3183 (dict_hash): Rename to ...
3184 (default_search_name_hash): ... this and make extern.
3185 * dictionary.h (struct language_defn): Forward declare.
3186 (dict_create_hashed): New parameter 'language'.
3187 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
3188 * f-lang.c (f_language_defn): Install default_search_name_hash.
3189 * go-lang.c (go_language_defn): Install default_search_name_hash.
3190 * jit.c (finalize_symtab): Pass compunit's language to dictionary
3192 * language.c (unknown_language_defn, auto_language_defn):
3193 * language.h (language_defn::la_search_name_hash): New field.
3194 (default_search_name_hash): Declare.
3195 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
3196 * mdebugread.c (new_block): New parameter 'language'.
3197 * mdebugread.c (parse_symbol): Pass symbol language to block
3199 (psymtab_to_symtab_1): Pass down language.
3200 (new_symtab): Pass compunit's language to block allocation.
3201 * objc-lang.c (objc_language_defn): Install
3202 default_search_name_hash.
3203 * opencl-lang.c (opencl_language_defn):
3204 * p-lang.c (pascal_language_defn): Install
3205 default_search_name_hash.
3206 * rust-lang.c (rust_language_defn): Install
3207 default_search_name_hash.
3208 * stabsread.h (enum language): Forward declare.
3209 (process_one_symbol): Add 'language' parameter.
3210 * symtab.c (search_name_hash): New function.
3211 * symtab.h (search_name_hash): Declare.
3212 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
3214 2017-11-08 Pedro Alves <palves@redhat.com>
3216 * cp-name-parser.y (main): Don't initialize extra_chars.
3218 2017-11-07 Tom Tromey <tom@tromey.com>
3220 * event-top.h (command_handler): Constify.
3221 * record-full.c (cmd_record_full_start): Update.
3222 * thread.c (thread_apply_all_command): Update.
3223 * printcmd.c (eval_command): Update.
3224 * mi/mi-main.c (mi_execute_cli_command): Update.
3225 (mi_execute_async_cli_command): Update.
3226 * tui/tui-stack.c (tui_update_command): Update.
3227 * cli/cli-interp.c (safe_execute_command): Constify.
3228 * record.c (record_start): Update.
3229 (record_start, record_stop, cmd_record_start): Update.
3230 * record-btrace.c (cmd_record_btrace_bts_start): Update.
3231 (cmd_record_btrace_pt_start): Update.
3232 (cmd_record_btrace_start): Update.
3233 (cmd_record_btrace_start): Update.
3234 * reverse.c (exec_reverse_once): Update.
3235 * python/python.c (execute_gdb_command): Don't copy the command.
3236 * event-top.c (command_line_handler): Update.
3237 (command_handler): Constify.
3238 * defs.h (deprecated_call_command_hook): Constify.
3239 * cli/cli-script.h (execute_user_command): Constify.
3240 * cli/cli-script.c (execute_user_command): Constify.
3241 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
3242 (enum command_control_type): Update.
3243 * main.c (catch_command_errors): Remove non-const overload.
3244 (catch_command_errors_ftype): Remove.
3245 * python/py-cmd.c (cmdpy_function): Constify.
3246 * guile/scm-cmd.c (cmdscm_function): Constify.
3247 * cli/cli-dump.c (call_dump_func): Constify.
3248 * cli/cli-decode.c (do_const_cfunc): Constify.
3249 (do_sfunc): Constify.
3250 (cmd_func): Constify.
3251 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
3252 * top.h (execute_command): Constify.
3253 * top.c (execute_command): Constify.
3254 (execute_command_to_string): Constify.
3255 (deprecated_call_command_hook): Constify.
3256 * command.h (cmd_func): Constify.
3257 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
3259 2017-11-07 Tom Tromey <tom@tromey.com>
3261 * ada-lang.c (catch_ada_exception_command): Constify.
3262 (catch_assert_command): Constify.
3263 * break-catch-throw.c (catch_catch_command, catch_throw_command)
3264 (catch_rethrow_command): Constify.
3265 (catch_exception_command_1): Constify.
3266 * breakpoint.h (add_catch_command): Constify.
3267 * break-catch-syscall.c (catch_syscall_command_1): Constify.
3268 (catch_syscall_split_args): Constify.
3269 * break-catch-sig.c (catch_signal_command): Constify.
3270 (catch_signal_split_args): Constify.
3271 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
3272 cmd_const_sfunc_ftype.
3273 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
3274 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3275 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3276 (add_setshow_string_cmd, struct cmd_list_element)
3277 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3278 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3279 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
3281 (set_cmd_sfunc): Constify.
3282 (empty_sfunc): Constify.
3283 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3284 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3285 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
3286 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3287 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3288 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3290 (set_cmd_sfunc): Constify.
3291 (cmd_sfunc_ftype): Remove.
3292 * compile/compile.c (set_compile_args): Constify.
3293 * infrun.c (set_disable_randomization): Constify.
3294 * infcmd.c (set_args_command, set_cwd_command): Constify.
3295 * breakpoint.c (set_condition_evaluation_mode): Constify.
3296 (add_catch_command): Constify.
3297 (catch_fork_command_1, catch_exec_command_1)
3298 (catch_load_command_1, catch_unload_command_1): Constify.
3299 (catch_load_or_unload): Constify.
3300 * guile/scm-param.c (pascm_set_func): Constify.
3301 (add_setshow_generic): Constify.
3302 * python/py-param.c (get_set_value): Constify.
3303 * top.h (set_verbose): Constify.
3304 * tui/tui-win.c (tui_set_var_cmd): Constify.
3305 * mi/mi-main.c (set_mi_async_command): Constify.
3306 * cli/cli-logging.c (set_logging_overwrite)
3307 (set_logging_redirect): Constify.
3308 * value.c (set_max_value_size): Constify.
3309 * valprint.c (set_input_radix, set_output_radix): Constify.
3310 * utils.c (set_width_command, set_height_command): Constify.
3311 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
3312 * tracepoint.c (set_disconnected_tracing)
3313 (set_circular_trace_buffer, set_trace_buffer_size)
3314 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
3315 * top.c (set_history_size_command, set_verbose, set_editing)
3316 (set_gdb_datadir, set_history_filename): Constify.
3317 * target.c (set_targetdebug, maint_set_target_async_command)
3318 (maint_set_target_non_stop_command, set_target_permissions)
3319 (set_write_memory_permission): Constify.
3320 (open_target): Constify.
3321 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
3322 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
3323 * symtab.c (set_symbol_cache_size_handler): Constify.
3324 * symfile.c (set_ext_lang_command): Constify.
3325 * symfile-debug.c (set_debug_symfile): Constify.
3326 * source.c (set_directories_command): Constify.
3327 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
3328 * serial.c (set_parity): Constify.
3329 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
3330 * remote.c (set_remote_exec_file, set_remotebreak)
3331 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
3332 * record.c (set_record_insn_history_size)
3333 (set_record_call_history_size): Constify.
3334 * record-full.c (set_record_full_insn_max_num): Constify.
3335 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
3336 * osabi.c (set_osabi): Constify.
3337 * mips-tdep.c (set_mips64_transfers_32bit_regs)
3338 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
3339 * maint.c (maintenance_set_profile_cmd): Constify.
3340 * linux-thread-db.c (set_libthread_db_search_path): Constify.
3341 * language.c (set_language_command, set_range_command)
3342 (set_case_command): Constify.
3343 * infrun.c (set_non_stop, set_observer_mode)
3344 (set_stop_on_solib_events, set_schedlock_func)
3345 (set_exec_direction_func): Constify.
3346 * infcmd.c (set_inferior_tty_command): Constify.
3347 * disasm.c (set_disassembler_options_sfunc): Constify.
3348 * demangle.c (set_demangling_command): Constify.
3349 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
3350 * cris-tdep.c (set_cris_version, set_cris_mode)
3351 (set_cris_dwarf2_cfi): Constify.
3352 * corefile.c (set_gnutarget_command): Constify.
3353 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
3354 (set_target_wide_charset_sfunc): Constify.
3355 * breakpoint.c (update_dprintf_commands): Constify.
3356 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
3357 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
3358 (set_disassembly_style_sfunc): Constify.
3359 * arch-utils.c (set_endian, set_architecture): Constify.
3360 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
3361 * agent.c (set_can_use_agent): Constify.
3363 2017-11-07 Tom Tromey <tom@tromey.com>
3365 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
3366 (go32_pde, go32_pte, go32_pte_for_address): Constify.
3367 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
3368 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
3369 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
3370 (parse_int_arg, show_thread_default_detach_sc_cmd)
3371 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
3372 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
3373 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
3374 (show_task_pause_cmd, set_task_detach_sc_cmd)
3375 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3376 (set_noninvasive_cmd, set_thread_pause_cmd)
3377 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3378 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3379 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3380 * windows-nat.c (display_selectors): Constify.
3381 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3383 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3384 (cmd_cfunc_eq): Likewise.
3385 (struct cmd_list_element): Likewise.
3387 (cli_user_command_p): Update.
3388 * command.h (add_cmd): Remove non-const overload.
3389 (cmd_cfunc_ftype): Remove typedef.
3390 (cmd_cfunc_eq): Remove non-const overload.
3391 * value.c (show_values): Constify.
3392 * thread.c (thread_apply_all_command): Constify.
3393 * symfile.c (load_command): Constify.
3394 * source.c (directory_command): Constify.
3395 * maint.c (maintenance_internal_error)
3396 (maintenance_demangler_warning, maintenance_space_display)
3397 (maintenance_print_architecture, maintenance_translate_address)
3398 (maintenance_info_selftests, maintenance_internal_warning):
3400 * breakpoint.c (disable_trace_command, enable_trace_command):
3402 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3404 (add_auto_load_safe_path): Constify.
3405 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3406 * top.h (show_commands): Constify.
3407 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3408 * sparc64-tdep.c (adi_examine_command): Constify.
3409 (adi_assign_command): Constify.
3411 2017-11-07 Tom Tromey <tom@tromey.com>
3413 * frame.h (info_locals_command, info_args_command): Constify.
3414 * auto-load.h (auto_load_info_scripts): Constify.
3415 * inferior.h (registers_info): Constify.
3416 * copying.c: Rebuild.
3417 * copying.awk: Constify generated commands.
3418 * auto-load.c (auto_load_info_scripts)
3419 (info_auto_load_gdb_scripts): Constify.
3420 * cli/cli-decode.c (struct cmd_list_element): Take a
3421 cmd_const_cfunc_ftype.
3422 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3423 * tui/tui-win.c (tui_all_windows_info): Constify.
3424 * python/py-auto-load.c (info_auto_load_python_scripts):
3426 * cli/cli-cmds.c (show_command): Remove non-const overload.
3427 * tracepoint.c (info_tvariables_command, info_scope_command):
3429 (info_static_tracepoint_markers_command): Constify.
3430 * thread.c (info_threads_command): Constify.
3431 (print_thread_info_1): Constify.
3432 * target.c (info_target_command): Constify.
3433 * symtab.c (info_sources_command, info_functions_command)
3434 (info_types_command): Constify.
3435 (info_variables_command): Remove non-const overload.
3436 * symfile.c (info_ext_lang_command): Constify.
3437 * stack.c (info_frame_command, info_locals_command)
3438 (info_args_command): Constify.
3439 (backtrace_command): Remove non-const overload.
3440 * source.c (info_source_command, info_line_command): Constify.
3441 * solib.c (info_sharedlibrary_command): Constify.
3442 * skip.c (info_skip_command): Constify.
3443 * ser-go32.c (info_serial_command): Constify.
3444 * reverse.c (info_bookmarks_command): Constify.
3445 * printcmd.c (info_symbol_command, info_address_command)
3446 (info_display_command): Constify.
3447 * osdata.c (info_osdata_command): Constify.
3448 * objc-lang.c (info_selectors_command, info_classes_command):
3450 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3451 * memattr.c (info_mem_command): Constify.
3452 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3453 * linux-fork.c (info_checkpoints_command): Constify.
3454 * infrun.c (info_signals_command): Constify.
3455 * inflow.c (info_terminal_command): Constify.
3456 * inferior.c (info_inferiors_command): Constify.
3457 (print_inferior): Constify.
3458 * infcmd.c (info_program_command, info_all_registers_command)
3459 (info_registers_command, info_vector_command)
3460 (info_float_command): Constify.
3461 (registers_info): Constify.
3462 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3463 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3465 * f-valprint.c (info_common_command): Constify.
3466 * dcache.c (info_dcache_command): Constify.
3467 (dcache_info_1): Constify.
3468 * darwin-nat-info.c (info_mach_tasks_command)
3469 (info_mach_task_command, info_mach_ports_command)
3470 (info_mach_port_command, info_mach_threads_command)
3471 (info_mach_thread_command, info_mach_regions_command)
3472 (info_mach_regions_recurse_command, info_mach_region_command)
3473 (info_mach_exceptions_command): Constify.
3474 (get_task_from_args): Constify.
3475 * cp-support.c (info_vtbl_command): Constify.
3476 * breakpoint.c (info_watchpoints_command)
3477 (info_tracepoints_command): Constify.
3478 (info_breakpoints_command): Remove non-const overload.
3479 * avr-tdep.c (avr_io_reg_read_command): Constify.
3480 * auxv.c (info_auxv_command): Constify.
3481 * ada-tasks.c (info_tasks_command): Constify.
3482 (info_task): Constify.
3483 * ada-lang.c (info_exceptions_command): Constify.
3485 2017-11-07 Tom Tromey <tom@tromey.com>
3487 * solib.h (no_shared_libraries): Constify.
3488 * frame.h (return_command): Constify.
3489 * cli/cli-cmds.h (quit_command): Constify.
3490 * top.h (quit_command, execute_command): Constify.
3491 * target.h (flash_erase_command): Constify.
3492 * inferior.h (set_inferior_args, attach_command): Constify.
3493 * tracepoint.h (start_tracing, stop_tracing): Constify.
3494 * breakpoint.h (break_command, tbreak_command)
3495 (hbreak_command_wrapper, thbreak_command_wrapper)
3496 (rbreak_command_wrapper, watch_command_wrapper)
3497 (awatch_command_wrapper, rwatch_command_wrapper)
3498 (get_tracepoint_by_number): Constify.
3499 * symtab.c (info_variables_command, rbreak_command)
3500 (symtab_symbol_info): Constify.
3501 (info_variables_command): Add non-const overload.
3502 * top.c (dont_repeat_command): Constify.
3503 * breakpoint.c (ignore_command, commands_command)
3504 (condition_command, tbreak_command, hbreak_command)
3505 (thbreak_command, clear_command, break_command)
3506 (info_breakpoints_command, watch_command, rwatch_command)
3507 (awatch_command, trace_command, ftrace_command, strace_command)
3508 (trace_pass_command, break_range_command, dprintf_command)
3509 (agent_printf_command, get_tracepoint_by_number)
3510 (watch_maybe_just_location, trace_pass_command): Constify.
3511 (info_breakpoints_command): Add non-const overload.
3512 * tracefile.c (tsave_command): Constify.
3513 * infcmd.c (attach_command, disconnect_command, signal_command)
3514 (queue_signal_command, stepi_command, nexti_command)
3515 (finish_command, next_command, step_command, until_command)
3516 (advance_command, jump_command, continue_command, run_command)
3517 (start_command, starti_command, interrupt_command)
3518 (run_command_1, set_inferior_args, step_1): Constify.
3519 * inferior.c (add_inferior_command, remove_inferior_command)
3520 (clone_inferior_command): Constify.
3521 * linux-fork.c (checkpoint_command, restart_command): Constify.
3522 * windows-nat.c (signal_event_command): Constify.
3523 * guile/guile.c (guile_repl_command, guile_command): Constify.
3524 * printcmd.c (x_command, display_command, printf_command)
3525 (output_command, set_command, call_command, print_command)
3526 (eval_command): Constify.
3527 (non_const_set_command): Remove.
3528 (_initialize_printcmd): Update.
3529 * source.c (forward_search_command, reverse_search_command):
3531 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3533 * infrun.c (handle_command): Constify.
3534 * memattr.c (mem_command): Constify.
3535 * stack.c (return_command, up_command, up_silently_command)
3536 (down_command, down_silently_command, frame_command)
3537 (backtrace_command, func_command, backtrace_command_1): Constify.
3538 (backtrace_command): Add non-const overload.
3539 * remote-sim.c (simulator_command): Constify.
3540 * exec.c (set_section_command): Constify.
3541 * tracepoint.c (tdump_command, trace_variable_command)
3542 (tstatus_command, tstop_command, tstart_command)
3543 (end_actions_pseudocommand, while_stepping_pseudocommand)
3544 (collect_pseudocommand, teval_pseudocommand, actions_command)
3545 (start_tracing, stop_tracing): Constify.
3546 * value.c (init_if_undefined_command): Constify.
3547 * tui/tui-stack.c (tui_update_command): Constify.
3548 * tui/tui-win.c (tui_refresh_all_command)
3549 (tui_set_tab_width_command, tui_set_win_height_command)
3550 (tui_set_focus_command, tui_scroll_forward_command)
3551 (tui_scroll_backward_command, tui_scroll_left_command)
3552 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3553 (tui_set_win_height): Constify.
3554 * tui/tui-layout.c (tui_layout_command): Constify.
3555 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3556 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3557 (proc_untrace_sysexit_cmd): Constify.
3558 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3559 (threadset_test_cmd, threadlist_update_test_cmd)
3560 (threadalive_test): Constify.
3561 * objc-lang.c (print_object_command): Constify.
3562 * command.h (add_com): Constify.
3563 * cli/cli-dump.c (restore_command): Constify.
3564 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3565 (help_command, complete_command, shell_command, edit_command)
3566 (list_command, disassemble_command, make_command)
3567 (apropos_command, alias_command): Constify.
3568 * cli/cli-script.c (document_command, define_command)
3569 (while_command, if_command, validate_comname): Constify.
3570 * cli/cli-decode.c (struct cmd_list_element): Change type of
3572 * target.c (do_monitor_command, flash_erase_command): Constify.
3573 * regcache.c (reg_flush_command): Constify.
3574 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3575 (reverse_nexti, reverse_continue, reverse_finish)
3576 (save_bookmark_command, goto_bookmark_command)
3577 (exec_reverse_once): Constify.
3578 * python/python.c (python_interactive_command, python_command):
3580 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3582 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3583 * gcore.c (gcore_command): Constify.
3585 2017-11-07 Tom Tromey <tom@tromey.com>
3587 * printcmd.c (x_command): Call set_repeat_arguments.
3588 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3589 * top.c (repeat_arguments): New global.
3590 (set_repeat_arguments): New function.
3591 (execute_command): Handle repeat_arguments.
3592 (show_commands): Calls set_repeat_arguments.
3593 * command.h (set_repeat_arguments): Declare.
3595 2017-11-07 Tom Tromey <tom@tromey.com>
3597 * stack.c (backtrace_command): Use std::string.
3598 (backtrace_command_1): Make "count_exp" const.
3600 2017-11-07 Tom Tromey <tom@tromey.com>
3602 * source.c (directory_switch, mod_path, add_path): Constify.
3603 * defs.h (add_path, mod_path, directory_switch): Constify.
3604 * mi/mi-cmd-env.c (env_mod_path): Constify.
3606 2017-11-07 Tom Tromey <tom@tromey.com>
3608 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3609 (run_command_1, continue_command, step_1, jump_command)
3610 (signal_command, until_command, advance_command, finish_command)
3611 (attach_command): Update.
3613 2017-11-07 Tom Tromey <tom@tromey.com>
3615 * command.h (set_cmd_cfunc): Don't declare.
3616 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3618 2017-11-07 Tom Tromey <tom@tromey.com>
3620 * stack.c (select_frame_command): Constify.
3621 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3622 * command.h (add_com_suppress_notification): Constify.
3624 2017-11-07 Tom Tromey <tom@tromey.com>
3626 * breakpoint.c (stop_command): Constify.
3627 * cli/cli-decode.c (struct cmd_list_element): Constify.
3628 * command.h (add_abbrev_prefix_cmd): Constify.
3630 2017-11-07 Pedro Alves <palves@redhat.com>
3632 * breakpoint.c (extract_bp_kind): New enum.
3633 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3634 factored out from ...
3635 (extract_bp_number_and_location): ... here.
3636 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3638 2017-11-07 Pedro Alves <palves@redhat.com>
3640 * breakpoint.c (extract_bp_number_and_location): Change return
3641 type to void. Throw error instead of warning.
3642 (enable_disable_command): Adjust.
3644 2017-11-07 Xavier Roirand <roirand@adacore.com>
3645 Pedro Alves <palves@redhat.com>
3647 * breakpoint.c (map_breakpoint_number_range): New, factored out
3649 (map_breakpoint_numbers): ... here.
3650 (find_location_by_number): Change parameters from string to
3651 breakpoint number and location.
3652 (extract_bp_number_and_location): New function.
3653 (enable_disable_bp_num_loc)
3654 (enable_disable_breakpoint_location_range)
3655 (enable_disable_command): New functions, factored out ...
3656 (enable_command, disable_command): ... these functions, and
3657 adjusted to support ranges.
3658 * NEWS: Document enable/disable breakpoint location range feature.
3660 2017-11-06 Luis Machado <luis.machado@linaro.org>
3662 * MAINTAINERS (Write After Approval): Update my e-mail address.
3664 2017-11-06 Pedro Alves <palves@redhat.com>
3666 * gnu-nat.c (gnu_terminal_init): Delete.
3667 (gnu_target): Don't install gnu_terminal_init.
3668 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3669 (child_terminal_init): ... this function.
3671 2017-11-06 Pedro Alves <palves@redhat.com>
3673 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3675 * config.in, configure: Regenerate.
3677 2017-11-06 Pedro Alves <palves@redhat.com>
3679 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3680 (async_init_signals): Adjust.
3681 (handle_stop_sig): Rename to ...
3682 (handle_sigtstp): ... this.
3683 (async_stop_sig): Rename to ...
3684 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3686 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3687 instead of STOP_SIGNAL thoughout.
3688 (handle_stop_sig): Rename to ...
3689 (handle_sigtstp): ... this.
3690 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3692 2017-11-06 Pedro Alves <palves@redhat.com>
3694 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3695 longer set flags twice in row.
3697 2017-11-06 Pedro Alves <palves@redhat.com>
3699 * Makefile.in (SER_HARDWIRE): Update comment.
3700 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3701 * common/gdb_termios.h: Delete file.
3702 * common/job-control.c: Include termios.h and unistd.h instead of
3704 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3706 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3708 * configure.ac: No longer check for termio.h and sgtty.h.
3709 * configure: Regenerate.
3710 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3711 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3712 Replace PROCESS_GROUP_TYPE references with pid_t references
3714 (gdb_getpgrp): Delete.
3715 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3716 (child_terminal_inferior): Remove comment. Remove sgtty code.
3717 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3718 gdb_getpgrp. Use serial_set_tty_state instead aof
3719 serial_noflush_set_tty_state. Remove sgtty code.
3720 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3721 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3722 (inferior_process_group): Now returns pid_t.
3723 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3724 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3725 * ser-event.c (serial_event_ops): Update.
3726 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3728 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3729 * ser-pipe.c (pipe_ops): Update.
3730 * ser-tcp.c (tcp_ops): Update.
3731 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3732 HAVE_TERMIOS checks.
3733 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3734 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3735 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3737 (hardwire_noflush_set_tty_state): Delete.
3738 (hardwire_print_tty_state, hardwire_drain_output)
3739 (hardwire_flush_output, hardwire_flush_input)
3740 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3741 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3742 code, and assume termios.
3743 (hardwire_ops): Update.
3744 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3745 * serial.c (serial_noflush_set_tty_state): Delete.
3746 * serial.h (serial_noflush_set_tty_state): Delete.
3747 (serial_ops::noflush_set_tty_state): Delete.
3749 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3751 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3752 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3753 (COMMON_OBS): Remove doublest.o and dfp.o.
3754 Do not build target-float.c (instead of doublest.c)
3755 with -Wformat-nonliteral.
3757 * doublest.c: Remove file.
3758 * doublest.h: Remove file.
3759 * dfp.c: Remove file.
3760 * dfp.h: Remove file.
3762 * target-float.c: Do not include "doublest.h" and "dfp.h".
3763 (DOUBLEST): Move here from doublest.h.
3764 (enum float_kind): Likewise.
3765 (FLOATFORMAT_CHAR_BIT): Likewise.
3766 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3767 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3768 (floatformat_precision): Likewise.
3769 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3770 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3772 (host_float_format, host_double_format, host_long_double_format):
3774 (floatformat_to_string, floatformat_from_string): Likewise.
3775 (floatformat_to_doublest): Likewise. Also, inline the original
3776 convert_floatformat_to_doublest.
3777 (floatformat_from_doublest): Likewise. Also, inline the original
3778 convert_floatformat_from_doublest.
3780 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3781 (MAX_DECIMAL_STRING): Move here from dfp.c.
3782 (match_endianness): Likewise.
3783 (set_decnumber_context, decimal_check_errors): Likewise.
3784 (decimal_from_number, decimal_to_number): Likewise.
3785 (decimal_to_string, decimal_from_string): Likewise. Make static.
3786 (decimal_from_longest, decimal_from_ulongest): Likewise.
3787 (decimal_to_longest): Likewise.
3788 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3789 (decimal_convert): Likewise.
3791 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3793 * doublest.c: Do not include "gdbtypes.h".
3794 (extract_typed_floating): Remove.
3795 (store_typed_floating): Remove.
3796 (convert_typed_floating): Remove.
3797 * doublest.h (struct type): Remove.
3798 (DOUBLEST_PRINT_FORMAT): Remove.
3799 (DOUBLEST_SCAN_FORMAT): Remove.
3800 (extract_typed_floating): Remove.
3801 (store_typed_floating): Remove.
3802 (convert_typed_floating): Remove.
3804 * dfp.c (decimal_from_doublest): Remove.
3805 (decimal_to_doublest): Remove.
3806 * dfp.h: Do not include "doublest.h".
3807 (decimal_from_doublest): Remove.
3808 (decimal_to_doublest): Remove.
3810 * value.c: Do not include "doublest.h" and "dfp.h".
3811 (value_as_double): Remove.
3812 (unpack_double): Remove.
3813 (value_from_double): Remove.
3814 (value_from_decfloat): Remove.
3815 * value.h: Do not include "doublest.h".
3816 (value_as_double): Remove.
3817 (unpack_double): Remove.
3818 (value_from_double): Remove.
3819 (value_from_decfloat): Remove.
3821 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3823 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3824 (i386_extract_return_value): Use target_float_convert.
3825 (i386_store_return_value): Likewise.
3826 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3827 (i387_value_to_register): Likewise.
3828 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3829 (ia64_register_to_value): Use target_float_convert.
3830 (ia64_value_to_register): Likewise.
3831 (ia64_extract_return_value): Likewise.
3832 (ia64_store_return_value): Likewise.
3833 (ia64_push_dummy_call): Likewise.
3834 * m68k-tdep.c: Include "target-float.h".
3835 (m68k_register_to_value): Use target_float_convert.
3836 (m68k_value_to_register): Likewise.
3837 (m68k_svr4_extract_return_value): Likewise.
3838 (m68k_svr4_store_return_value): Likewise.
3839 * ppc-sysv-tdep.c: Include "target-float.h".
3840 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3841 (do_ppc_sysv_return_value): Likewise.
3842 (ppc64_sysv_abi_push_freg): Likewise.
3843 (ppc64_sysv_abi_return_value_base): Likewise.
3844 * rs6000-aix-tdep.c: Include "target-float.h".
3845 (rs6000_push_dummy_call): Use target_float_convert.
3846 (rs6000_return_value): Likewise.
3847 * rs6000-lynx178-tdep.c: Include "target-float.h".
3848 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3849 (rs6000_lynx178_return_value): Likewise.
3850 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3851 (rs6000_register_to_value): Use target_float_convert.
3852 (rs6000_value_to_register): Likewise.
3853 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3854 (arm_extract_return_value): Use target_float_convert.
3855 (arm_store_return_value): Likewise.
3856 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3857 (sh_register_convert_to_virtual): Use target_float_convert.
3858 (sh_register_convert_to_raw): Likewise.
3859 * sh64-tdep.c: Include "target-float.h".
3860 (sh64_extract_return_value): Use target_float_convert.
3861 (sh64_register_convert_to_virtual): Likewise.
3862 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3864 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3866 * target-float.c (floatformat_to_host_double): New function.
3867 (floatformat_from_host_double): Likewise.
3868 (target_float_to_host_double): Likewise.
3869 (target_float_from_host_double): Likewise.
3870 * target-float.h (target_float_to_host_double): Add prototype.
3871 (target_float_from_host_double): Likewise.
3873 * guile/scm-value.c: Include "target-float.h".
3874 (gdbscm_value_to_real): Use target_float_to_host_double.
3875 Handle integer source values via value_as_long.
3876 * guile/scm-math.c: Include "target-float.h". Do not include
3877 "doublest.h", "dfp.h", and "expression.h".
3878 (vlscm_convert_typed_number): Use target_float_from_host_double.
3879 (vlscm_convert_number): Likewise.
3881 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3882 (convert_value_from_python): Use target_float_from_host_double.
3884 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3886 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3887 (cast_from_fixed): Likewise.
3888 (ada_scaling_type): New function.
3889 (ada_delta): Return value instead of DOUBLEST. Perform target
3890 arithmetic instead of host arithmetic.
3891 (scaling_factor): Rename to ...
3892 (ada_scaling_factor) ... this. Make non-static. Return value instead
3893 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3894 (ada_fixed_to_float): Remove.
3895 (ada_float_to_fixed): Remove.
3896 * ada-lang.h (ada_fixed_to_float): Remove.
3897 (ada_float_to_fixed): Remove.
3898 (ada_delta): Return value instead of DOUBLEST.
3899 (ada_scaling_factor): Add prototype.
3901 * ada-typeprint.c: Include "target-float.h".
3902 (print_fixed_point_type): Perform target arithmetic instead of
3904 * ada-valprint.c: Include "target-float.h".
3905 (ada_val_print_num): Perform target arithmetic instead of
3906 host arithmetic for fixed-point types.
3908 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3910 * target-float.c: Include <math.h>.
3911 (floatformat_binop): New function.
3912 (floatformat_compare): Likewise.
3913 (target_float_binop): Likewise.
3914 (target_float_compare): Likewise.
3915 * target-float.h: Include "expression.h".
3916 (target_float_binop): Add prototype.
3917 (target_float_compare): Likewise.
3919 * valarith.c: Do not include "doublest.h" and "dfp.h".
3920 Include "common/byte-vector.h".
3921 (value_args_as_decimal): Remove, replace by ...
3922 (value_args_as_target_float): ... this function. Handle both
3923 binary and decimal target floating-point formats.
3924 (scalar_binop): Handle both binary and decimal FP using
3925 value_args_as_target_float and target_float_binop.
3926 (value_equal): Handle both binary and decimal FP using
3927 value_args_as_target_float and target_float_compare.
3928 (value_less): Likewise.
3929 (value_pos): Handle all scalar types as simple copy.
3930 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3931 * dfp.c (decimal_binop): Throw error instead of internal_error
3932 when called with an unsupported operation code.
3934 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3936 * target-float.c (target_float_to_string): New function.
3937 (target_float_from_string): New function.
3938 * target-float.h (target_float_to_string): Add prototype.
3939 (target_float_from_string): Add prototype.
3941 * valprint.c: Include "target-float.h". Do not include
3942 "doublest.h" and "dfp.h".
3943 (print_floating): Use target_float_to_string.
3944 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3945 (printf_floating): Use target_float_to_string.
3946 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3947 (print_i387_value): Use target_float_to_string.
3948 * mips-tdep.c: Include "target-float.h".
3949 (mips_print_fp_register): Use target_float_to_string.
3950 * sh64-tdep.c: Include "target-float.h".
3951 (sh64_do_fp_register): Use target_float_to_string.
3953 * parse.c: Include "target-float.h". Do not include
3954 "doublest.h" and "dfp.h".
3955 (parse_float): Use target_float_from_string.
3956 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3957 (define_symbol): Use target_float_from_string.
3958 * gdbarch-selftests.c: Include "target-float.h".
3959 (register_to_value_test): Use target_float_from_string.
3961 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3963 * Makefile.c (SFILES): Add target-float.c.
3964 (HFILES_NO_SRCDIR): Add target-float.h.
3965 (COMMON_OBS): Add target-float.o.
3966 * target-float.h: New file.
3967 * target-float.c: New file.
3969 * doublest.c (floatformat_classify): Fix detection of float_zero.
3971 * gdbtypes.c (is_floating_type): New function.
3972 * gdbtypes.h (is_floating_type): Add prototype.
3974 * value.c: Do not include "floatformat.h".
3975 (unpack_double): Use target_float_is_valid.
3976 (is_floating_value): New function.
3977 * value.h (is_floating_value): Add prototype-
3979 * valarith.c: Include "target-float.h".
3980 (value_logical_not): Use target_float_is_zero.
3982 * python/py-value.c: Include "target-float.h".
3983 (valpy_nonzero): Use target_float_is_zero.
3985 2017-11-04 Tom Tromey <tom@tromey.com>
3987 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3989 2017-11-04 Tom Tromey <tom@tromey.com>
3991 * breakpoint.c (set_momentary_breakpoint): Return
3993 (until_break_command): Update.
3994 (new_until_break_fsm): Change argument types to
3996 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3997 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3999 * infcmd.c (finish_forward): Update.
4000 * breakpoint.h (set_momentary_breakpoint)
4001 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
4002 (make_cleanup_delete_breakpoint): Remove.
4003 (struct breakpoint_deleter): New.
4004 (breakpoint_up): New typedef.
4005 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
4006 (insert_exception_resume_breakpoint): Update.
4007 (insert_exception_resume_from_probe): Update.
4008 (insert_longjmp_resume_breakpoint): Update.
4009 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
4010 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
4011 * infcall.c (call_function_by_hand_dummy): Update
4013 2017-11-04 Tom Tromey <tom@tromey.com>
4015 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
4017 2017-11-04 Tom Tromey <tom@tromey.com>
4019 * linux-tdep.c (linux_core_info_proc_mappings): Use
4021 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
4023 (linux_corefile_thread): Update.
4024 (linux_make_corefile_notes): Remove unused variable.
4026 2017-11-04 Tom Tromey <tom@tromey.com>
4028 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
4031 2017-11-04 Tom Tromey <tom@tromey.com>
4033 * objfiles.c (do_free_objfile_cleanup): Remove.
4034 * compile/compile-object-load.c (compile_object_load): Update.
4035 * objfiles.h (make_cleanup_free_objfile): Remove.
4037 2017-11-04 Tom Tromey <tom@tromey.com>
4039 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
4040 (adi_read_versions): Change "tags" to "gdb_byte *".
4041 (adi_print_versions): Likewise.
4043 2017-11-04 Tom Tromey <tom@tromey.com>
4046 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
4047 from start_rbreak_breakpoints.
4048 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
4049 * breakpoint.h (class scoped_rbreak_breakpoints): New.
4050 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
4051 * symtab.c (do_end_rbreak_breakpoints): Remove.
4052 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
4054 2017-11-04 Tom Tromey <tom@tromey.com>
4056 * cp-namespace.c (reset_directive_searched): Remove.
4057 (cp_lookup_symbol_via_imports): Use scoped_restore.
4058 * cp-support.c (reset_directive_searched): Remove.
4059 (make_symbol_overload_list_using): Use scoped_restore.
4060 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
4061 (reset_directive_searched): Remove.
4063 2017-11-04 Tom Tromey <tom@tromey.com>
4065 * symfile.c (find_separate_debug_file_by_debuglink): Use
4068 2017-11-04 Tom Tromey <tom@tromey.com>
4070 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
4072 (compute_stack_depth): Likewise.
4073 (do_compile_dwarf_expr_to_c): Use std::vector.
4075 2017-11-04 Tom Tromey <tom@tromey.com>
4077 * compile/compile-object-load.c (link_callbacks_einfo): Use
4080 2017-11-04 Tom Tromey <tom@tromey.com>
4082 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4083 Use scoped_free_pendings.
4084 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
4085 scoped_free_pendings.
4086 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
4087 (xcoff_initial_scan): Likewise.
4088 * buildsym.c (reset_symtab_globals): Update comment.
4089 (scoped_free_pendings): Rename from really_free_pendings.
4090 (prepare_for_building): Update comment.
4091 (buildsym_init): Likewise.
4092 * buildsym.h (class scoped_free_pendings): New class.
4093 (really_free_pendings): Don't declare.
4095 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
4097 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
4098 output when converting a zero value to a special byteorder format.
4100 2017-11-02 Yao Qi <yao.qi@linaro.org>
4102 * frame.c (do_frame_register_read): Remove aspace.
4103 * jit.c (jit_frame_sniffer): Likwise.
4104 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
4105 * regcache.c (regcache::regcache): Pass nullptr.
4106 (regcache_print): Caller updated.
4107 * regcache.h (regcache::regcache): Remove one constructor
4110 2017-11-02 Yao Qi <yao.qi@linaro.org>
4112 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
4114 2017-11-02 Yao Qi <yao.qi@linaro.org>
4116 * breakpoint.c (insert_single_step_breakpoints): Update.
4117 * frame.c (struct frame_info) <aspace>: Add const.
4118 (frame_save_as_regcache): Add const.
4119 (get_frame_address_space): Return const address_space *.
4120 * frame.h (get_frame_address_space): Update declaration.
4121 * infrun.c (struct step_over_info) <aspace>: Add const.
4122 (set_step_over_info): Make aspace const.
4123 (displaced_step_prepare_throw): Change variable const.
4125 (proceed): Likewise.
4126 (adjust_pc_after_break): Likewise.
4127 (save_waitstatus): Likewise.
4128 (handle_signal_stop): Likewise.
4129 (keep_going_pass_signal): Likewise.
4130 * jit.c (jit_frame_sniffer): Add const.
4131 * mips-tdep.c (mips_single_step_through_delay): Likewise.
4132 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
4133 * record-full.c (record_full_wait_1): Likewise.
4134 * regcache.c (regcache::regcache): Change parameter to const.
4135 * regcache.h (regcache::regcache): Likewise.
4136 (regcache::aspace): Return const address_space *.
4137 (regcache) <m_aspace>: Add const.
4139 2017-11-02 Yao Qi <yao.qi@linaro.org>
4141 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
4142 * frame.c (create_sentinel_frame): Likewise.
4143 * infrun.c (displaced_step_prepare_throw): Likewise.
4145 (thread_still_needs_step_over_bp): Likewise.
4146 (proceed): Likewise.
4147 (do_target_wait): Likewise.
4148 (adjust_pc_after_break): Likewise.
4149 (handle_syscall_event): Likewise.
4150 (save_waitstatus): Likewise.
4151 (handle_inferior_event_1): Likewise.
4152 (handle_signal_stop): Likewise.
4153 (keep_going_pass_signal): Likewise.
4154 * linux-nat.c (status_callback): Likewise.
4155 (save_stop_reason): Likewise.
4156 (resume_stopped_resumed_lwps): Likewise.
4157 * record-full.c (record_full_exec_insn): Likewise.
4158 (record_full_wait_1): Likewise.
4159 * regcache.c (get_regcache_aspace): Remove.
4160 * regcache.h (get_regcache_aspace): Remove.
4162 2017-11-02 Yao Qi <yao.qi@linaro.org>
4164 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
4165 (init_regcache_descr): Use gdbarch_num_regs.
4166 (regcache::regcache): Likewise.
4167 (regcache::get_register_status): Likewise.
4168 (regcache::assert_raw_regnum): Likewise.
4169 (regcache::cooked_read): Likewise.
4170 (regcache::cooked_read_value): Likewise.
4171 (regcache::cooked_write): Likewise.
4172 (regcache::dump): Likewise.
4173 (regcache::num_raw_registers): New method.
4174 * regcache.h (class regcache) <num_raw_registers>: New.
4176 2017-11-02 Yao Qi <yao.qi@linaro.org>
4178 * regcache.c (regcache::assert_regnum): New method.
4179 (regcache::invalidate): Call assert_regnum.
4180 (regcache::raw_update): Likewise.
4181 (regcache::raw_write): Likewise.
4182 (regcache::raw_read_part): Likewise.
4183 (regcache::raw_write_part): Likewise.
4184 (regcache::raw_supply): Likewise.
4185 (regcache::raw_supply_integer): Likewise.
4186 (regcache::raw_supply_zeroed): Likewise.
4187 (regcache::raw_collect): Likewise.
4188 (regcache::raw_collect_integer): Likewise.
4189 * regcache.h (regcache::assert_regnum): Declare.
4191 2017-11-02 Yao Qi <yao.qi@linaro.org>
4193 * regcache.c (regcache::dump): Remove code.
4195 2017-11-02 Yao Qi <yao.qi@linaro.org>
4197 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
4199 <sizeof_cooked_register_status>: Remove.
4200 (init_regcache_descr): Update.
4201 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
4202 (regcache::save): Likewise.
4203 (regcache::dump): Likewise.
4205 2017-11-01 James Bowman <james.bowman@ftdichip.com>
4207 * ft32-tdep.c (ft32_fetch_instruction): New function.
4208 (ft32_analyze_prologue): Use ft32_fetch_instruction().
4210 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
4212 * cli/cli-script.c (execute_control_command): Rename to ...
4213 (execute_control_command_1): ... this.
4214 (execute_control_command): New function.
4216 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
4218 * tracepoint.c (tfind_command): Remove const_cast.
4220 2017-10-30 Mike Gulick <mgulick@mathworks.com>
4222 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
4224 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
4226 * common/common-utils.h (in_inclusive_range): New function.
4227 * arm-tdep.c (arm_record_extension_space): Use
4229 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
4230 * cris-tdep.c (cris_spec_reg_applicable): Use
4233 2017-10-30 Pedro Alves <palves@redhat.com>
4234 Simon Marchi <simon.marchi@ericsson.com>
4236 * remote.c (remote_set_syscall_catchpoint): Build a std::string
4237 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
4239 2017-10-30 Pedro Alves <palves@redhat.com>
4241 * common/common-utils.c (string_appendf, string_vappendf): New
4243 * common/common-utils.h (string_appendf, string_vappendf): New
4245 * unittests/common-utils-selftests.c (string_appendf_func)
4246 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
4247 (string_vappendf_tests): New functions.
4248 (_initialize_common_utils_selftests): Register "string_appendf" and
4249 "string_vappendf tests".
4251 2017-10-30 Pedro Alves <palves@redhat.com>
4253 * unittests/common-utils-selftests.c (format_func): New typedef.
4254 (string_printf_tests, string_vprintf_tests): Tests factored out
4256 (test_format_func): ... this new function.
4257 (string_printf_tests, string_vprintf_tests): Reimplement on top of
4260 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4262 * darwin-nat.c: Remove include of gdb.h.
4264 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4266 * xtensa-xtregs.c: Fix formatting issues.
4268 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4270 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
4272 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
4275 * python/py-infthread.c (thpy_get_inferior): Increment reference
4276 of inferior before returning it.
4278 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4280 * unittests/common-utils-selftests.c (format): Add
4283 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4285 * xml-syscall.c (struct syscall_desc): Add constructor.
4286 <name>: Change type to std::string.
4287 (syscall_desc_up): New typedef.
4288 (syscall_desc_p): Remove typeder.
4289 (DEF_VEC_P(syscall_desc_p)): Remove.
4290 (struct syscall_group_desc): Add constructor.
4291 <name>: Change type to std::string.
4292 <syscalls>: Change type to std::vector.
4293 (syscall_group_desc_up): New typedef.
4294 (syscall_group_desc_p): Remove typedef.
4295 (DEF_VEC_P(syscall_group_desc_p)): Remove.
4296 (struct syscalls_info) <syscalls>: Change type to std::vector of
4299 <my_gdb_datadir>: Change type to std::string.
4300 (syscalls_info_up): New typedef.
4301 (allocate_syscalls_info): Remove.
4302 (syscalls_info_free_syscalls_desc): Remove.
4303 (syscalls_info_free_syscall_group_desc): Remove.
4304 (free_syscalls_info): Remove.
4305 (make_cleanup_free_syscalls_info): Remove.
4306 (syscall_group_create_syscall_group_desc): Adjust.
4307 (syscall_group_add_syscall): Adjust.
4308 (syscall_create_syscall_desc): Adjust.
4309 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
4310 (init_syscalls_info): Adjust.
4311 (syscall_group_get_group_by_name): Adjust.
4312 (xml_get_syscall_number): Adjust.
4313 (xml_get_syscall_name): Adjust.
4314 (xml_list_of_syscalls): Adjust.
4315 (xml_list_syscalls_by_group): Adjust.
4316 (xml_list_of_groups): Adjust.
4318 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4320 * probe.h: Don't include gdb_vecs.h.
4321 (DEF_VEC_P (probe_p)): Remove.
4322 (find_probes_in_objfile): Return an std::vector.
4323 * probe.c (find_probes_in_objfile): Likewise.
4324 * breakpoint.c (breakpoint_objfile_data)
4325 <longjmp_probes>: Change type to std::vector.
4326 <exception_probes>: Likewise.
4327 (free_breakpoint_probes): Don't manually free vectors.
4328 (create_longjmp_master_breakpoint): Adjust.
4329 (create_exception_master_breakpoint): Adjust.
4330 * solib-svr4.c (svr4_create_probe_breakpoints): Change
4331 parameter type, adjust.
4332 (svr4_create_solib_event_breakpoints): Adjust.
4334 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4336 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
4337 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
4339 (free_breakpoint_probes): Rename to ...
4340 (free_breakpoint_objfile_data): ... this, and call delete on
4343 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4345 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
4346 (loaded_script_ptr): Remove typedef.
4347 (DEF_VEC_P (loaded_script_ptr)): Remove.
4348 (struct collect_matching_scripts_data): Add constructor.
4349 <scripts_p>: Change type to (pointer to) std::vector.
4350 (collect_matching_scripts_data): Adjust.
4351 (sort_scripts_by_name): Make suitable for std::sort.
4352 (print_scripts): Don't sort vector, adjust to std::vector.
4353 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
4355 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4357 * symfile.c (filename_language): Make struct, not typedef. Add
4359 <ext>: Change type to std::string.
4360 (DEF_VEC_O (filename_language)): Remove.
4361 (filename_language_table): Change type to std::vector.
4362 (add_filename_language): Adjust.
4363 (set_ext_lang_command): Adjust.
4364 (info_ext_lang_command): Adjust.
4365 (deduce_language_from_filename): Adjust.
4366 (class scoped_restore_filename_language_table): Remove.
4367 (test_filename_language): Use scoped_restore.
4368 (test_set_ext_lang_command): Use scoped_restore, adjust to
4371 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4373 * symfile.c: Include selftest.h.
4374 (class scoped_restore_filename_language_table): New.
4375 (test_filename_language): New test.
4376 (test_set_ext_lang_command): New test.
4377 (_initialize_symfile): Register tests.
4379 2017-10-27 Keith Seitz <keiths@redhat.com>
4381 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4382 in the bp_location, falling back to find_pc_sect_function when
4384 (add_location_to_breakpoint): Save sal->symbol.
4385 * breakpoint.h (struct bp_location) <symbol>: New field.
4386 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4387 * symtab.h (struct symtab_and_line) <symbol>: New field.
4389 2017-10-26 Patrick Frants <osscontribute@gmail.com>
4392 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4395 2017-10-26 Pedro Alves <palves@redhat.com>
4397 * remote.c (remote_async_terminal_ours_p): Delete.
4398 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4399 Remove references to 'remote_async_terminal_ours_p'.
4401 2017-10-26 Yao Qi <yao.qi@linaro.org>
4403 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4405 2017-10-26 Yao Qi <yao.qi@linaro.org>
4407 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4409 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4411 * breakpoint.c (bpstat_check_location): Remove cast.
4412 (breakpoint_hit_catch_fork): Make aspce const.
4413 (breakpoint_hit_catch_solib): Likewise.
4414 (breakpoint_hit_catch_exec): Likewise.
4415 (breakpoint_hit_ranged_breakpoint): Likewise.
4416 (breakpoint_hit_watchpoint): Likewise.
4417 (base_breakpoint_breakpoint_hit): Likewise.
4418 (bkpt_breakpoint_hit): Likewise.
4419 (dprintf_breakpoint_hit): Likewise.
4420 (tracepoint_breakpoint_hit): Likewise.
4421 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4423 2017-10-26 Yao Qi <yao.qi@linaro.org>
4425 * breakpoint.c (breakpoint_location_address_match): Change
4426 "struct address_space *" to "const address_space".
4427 (breakpoint_location_address_range_overlap): Likewise.
4428 (breakpoint_here_p): Likewise.
4429 (breakpoint_in_range_p): Likewise.
4430 (moribund_breakpoint_here_p): Likewise.
4431 (bp_location_inserted_here_p): Likewise.
4432 (software_breakpoint_inserted_here_p): Likewise.
4433 (hardware_breakpoint_inserted_here_p): Likewise.
4434 (hardware_watchpoint_inserted_in_range): Likewise.
4435 (bpstat_check_location): Likewise.
4436 (bpstat_stop_status): Likewise.
4437 (breakpoint_address_match): Likewise.
4438 (breakpoint_address_match_range): Likewise.
4439 (breakpoint_location_address_match): Likewise.
4440 (breakpoint_location_address_range_overlap): Likewise.
4441 (insert_single_step_breakpoint): Likewise.
4442 (breakpoint_has_location_inserted_here): Likewise.
4443 (single_step_breakpoint_inserted_here_p): Likewise.
4444 (pc_at_non_inline_function): Likewise.
4445 * breakpoint.h (bpstat_stop_status): Update declaration.
4446 (breakpoint_here_p): Likewise.
4447 (breakpoint_in_range_p): Likewise.
4448 (moribund_breakpoint_here_p): Likewise.
4449 (breakpoint_inserted_here_p): Likewise.
4450 (software_breakpoint_inserted_here_p): Likewise.
4451 (hardware_breakpoint_inserted_here_p): Likewise.
4452 (breakpoint_has_location_inserted_here): Likewise.
4453 (single_step_breakpoint_inserted_here_p): Likewise.
4454 (hardware_watchpoint_inserted_in_range): Likewise.
4455 (breakpoint_address_match): Likewise.
4456 (insert_single_step_breakpoint): Likewise.
4457 (pc_at_non_inline_function): Likewise.
4458 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4459 * record.c (record_check_stopped_by_breakpoint): Likewise.
4460 * record.h (record_check_stopped_by_breakpoint): Likewise.
4461 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4463 2017-10-25 Yao Qi <yao.qi@linaro.org>
4465 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4466 regcache->arch () instead get_regcache_arch.
4467 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4469 (aarch64_fbsd_store_inferior_registers): Likewise.
4470 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4471 (store_gregs_to_thread): Likewise.
4472 (fetch_fpregs_from_thread): Likewise.
4473 (store_fpregs_to_thread): Likewise.
4474 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4475 (aarch64_store_return_value): Likewise.
4476 (aarch64_software_single_step): Likewise.
4477 * aix-thread.c (aix_thread_wait): Likewise.
4478 (supply_reg32): Likewise.
4479 (supply_sprs64): Likewise.
4480 (supply_sprs32): Likewise.
4481 (fill_gprs64): Likewise.
4482 (fill_gprs32): Likewise.
4483 (fill_sprs64): Likewise.
4484 (fill_sprs32): Likewise.
4485 (store_regs_user_thread): Likewise.
4486 (store_regs_kernel_thread): Likewise.
4487 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4488 (alphabsd_store_inferior_registers): Likewise.
4489 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4490 (alpha_store_return_value): Likewise.
4491 (alpha_deal_with_atomic_sequence): Likewise.
4492 (alpha_next_pc): Likewise.
4493 (alpha_software_single_step): Likewise.
4494 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4495 (amd64bsd_store_inferior_registers): Likewise.
4496 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4498 (amd64_linux_store_inferior_registers): Likewise.
4499 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4500 (amd64_collect_native_gregset): Likewise.
4501 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4502 (amd64obsd_collect_uthread): Likewise.
4503 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4504 (amd64_collect_fpregset): Likewise.
4505 (amd64_supply_fxsave): Likewise.
4506 (amd64_supply_xsave): Likewise.
4507 (amd64_collect_fxsave): Likewise.
4508 (amd64_collect_xsave): Likewise.
4509 * arc-tdep.c (arc_write_pc): Likewise.
4510 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4511 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4512 (arm_fbsd_store_inferior_registers): Likewise.
4513 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4514 (store_vfp_regs): Likewise.
4515 (arm_linux_fetch_inferior_registers): Likewise.
4516 (arm_linux_store_inferior_registers): Likewise.
4517 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4518 (arm_linux_sigreturn_next_pc): Likewise.
4519 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4520 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4521 (fetch_register): Likewise.
4522 (store_register): Likewise.
4523 * arm-tdep.c (arm_is_thumb): Likewise.
4524 (displaced_in_arm_mode): Likewise.
4525 (bx_write_pc): Likewise.
4526 (arm_get_next_pcs_addr_bits_remove): Likewise.
4527 (arm_software_single_step): Likewise.
4528 (arm_extract_return_value): Likewise.
4529 (arm_store_return_value): Likewise.
4530 (arm_write_pc): Likewise.
4531 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4532 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4533 (bsd_uthread_store_registers): Likewise.
4534 * core-regset.c (fetch_core_registers): Likewise.
4535 * corelow.c (get_core_registers): Likewise.
4536 * cris-tdep.c (cris_store_return_value): Likewise.
4537 (cris_extract_return_value): Likewise.
4538 (find_step_target): Likewise.
4539 (find_step_target): Likewise.
4540 (cris_software_single_step): Likewise.
4541 * ctf.c (ctf_fetch_registers): Likewise.
4542 * darwin-nat.c (cancel_breakpoint): Likewise.
4543 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4544 * frv-tdep.c (frv_extract_return_value): Likewise.
4545 * ft32-tdep.c (ft32_store_return_value): Likewise.
4546 (ft32_extract_return_value): Likewise.
4547 * go32-nat.c (fetch_register): Likewise.
4548 (go32_fetch_registers): Likewise.
4549 (go32_store_registers): Likewise.
4550 (store_register): Likewise.
4551 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4552 (h8300_store_return_value): Likewise.
4553 * hppa-linux-nat.c (fetch_register): Likewise.
4554 (store_register): Likewise.
4555 (hppa_linux_fetch_inferior_registers): Likewise.
4556 (hppa_linux_store_inferior_registers): Likewise.
4557 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4558 (i386_darwin_store_inferior_registers): Likewise.
4559 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4560 (gnu_store_registers): Likewise.
4561 * i386-linux-nat.c (fetch_register): Likewise.
4562 (store_register): Likewise.
4563 (supply_gregset): Likewise.
4564 (fill_gregset): Likewise.
4565 (i386_linux_fetch_inferior_registers): Likewise.
4566 (i386_linux_store_inferior_registers): Likewise.
4567 (i386_linux_resume): Likewise.
4568 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4570 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4571 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4572 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4573 (i386obsd_collect_uthread): Likewise.
4574 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4575 (i386_supply_gregset): Likewise.
4576 (i386_collect_gregset): Likewise.
4577 (i386_supply_fpregset): Likewise.
4578 (i386_collect_fpregset): Likewise.
4579 (i386_mpx_bd_base): Likewise.
4580 * i386-v4-nat.c (supply_fpregset): Likewise.
4581 (fill_fpregset): Likewise.
4582 * i387-tdep.c (i387_supply_fsave): Likewise.
4583 (i387_collect_fsave): Likewise.
4584 (i387_supply_fxsave): Likewise.
4585 (i387_collect_fxsave): Likewise.
4586 (i387_supply_xsave): Likewise.
4587 (i387_collect_xsave): Likewise.
4588 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4589 (ia64_linux_store_registers): Likewise.
4590 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4591 (ia64_extract_return_value): Likewise.
4592 (ia64_store_return_value): Likewise.
4593 (find_func_descr): Likewise.
4594 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4595 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4596 (inf_ptrace_store_registers): Likewise.
4597 * infrun.c (use_displaced_stepping): Likewise.
4598 (displaced_step_prepare_throw): Likewise.
4600 (proceed): Likewise.
4601 (do_target_wait): Likewise.
4602 (adjust_pc_after_break): Likewise.
4603 (handle_inferior_event_1): Likewise.
4604 (handle_signal_stop): Likewise.
4605 (save_infcall_suspend_state): Likewise.
4606 (restore_infcall_suspend_state): Likewise.
4607 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4608 * jit.c (jit_frame_prev_register): Likewise.
4609 * linux-nat.c (save_stop_reason): Likewise.
4610 (linux_nat_wait_1): Likewise.
4611 (resume_stopped_resumed_lwps): Likewise.
4612 * linux-record.c (record_linux_sockaddr): Likewise.
4613 (record_linux_msghdr): Likewise.
4614 (record_linux_system_call): Likewise.
4615 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4616 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4617 (lm32_store_return_value): Likewise.
4618 * m32c-tdep.c (m32c_read_flg): Likewise.
4619 (m32c_pseudo_register_read): Likewise.
4620 (m32c_pseudo_register_write): Likewise.
4621 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4622 (m32r_linux_collect_gregset): Likewise.
4623 * m32r-tdep.c (m32r_store_return_value): Likewise.
4624 (m32r_extract_return_value): Likewise.
4625 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4626 (m68kbsd_collect_fpregset): Likewise.
4627 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4628 * m68k-linux-nat.c (fetch_register): Likewise.
4629 (old_fetch_inferior_registers): Likewise.
4630 (old_store_inferior_registers): Likewise.
4631 (store_regs): Likewise.
4632 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4633 (m68k_svr4_store_return_value): Likewise.
4634 * m88k-tdep.c (m88k_store_arguments): Likewise.
4635 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4636 (mi_cmd_data_write_register_values): Likewise.
4637 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4638 (mips_fbsd_store_inferior_registers): Likewise.
4639 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4640 (mips_fbsd_supply_gregs): Likewise.
4641 (mips_fbsd_collect_fpregs): Likewise.
4642 (mips_fbsd_collect_gregs): Likewise.
4643 (mips_fbsd_supply_fpregset): Likewise.
4644 (mips_fbsd_collect_fpregset): Likewise.
4645 (mips_fbsd_supply_gregset): Likewise.
4646 (mips_fbsd_collect_gregset): Likewise.
4647 * mips-linux-nat.c (supply_gregset): Likewise.
4648 (fill_gregset): Likewise.
4649 (supply_fpregset): Likewise.
4650 (fill_fpregset): Likewise.
4651 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4652 (mips_fill_gregset): Likewise.
4653 (mips_supply_fpregset): Likewise.
4654 (mips_fill_fpregset): Likewise.
4655 (mips64_supply_gregset): Likewise.
4656 (micromips_linux_sigframe_validate): Likewise.
4657 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4658 (mipsnbsd_fetch_inferior_registers): Likewise.
4659 (mipsnbsd_store_inferior_registers): Likewise.
4660 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4661 (mipsnbsd_supply_gregset): Likewise.
4662 (mipsnbsd_iterate_over_regset_sections): Likewise.
4663 (mipsnbsd_supply_reg): Likewise.
4664 (mipsnbsd_supply_fpreg): Likewise.
4665 * mips-tdep.c (mips_in_frame_stub): Likewise.
4666 (mips_dummy_id): Likewise.
4667 (is_octeon_bbit_op): Likewise.
4668 (micromips_bc1_pc): Likewise.
4669 (extended_mips16_next_pc): Likewise.
4670 (mips16_next_pc): Likewise.
4671 (deal_with_atomic_sequence): Likewise.
4672 * moxie-tdep.c (moxie_process_readu): Likewise.
4673 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4674 * nto-procfs.c (procfs_store_registers): Likewise.
4675 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4676 (ppcfbsd_store_inferior_registers): Likewise.
4677 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4678 (fetch_altivec_register): Likewise.
4679 (get_spe_registers): Likewise.
4680 (fetch_spe_register): Likewise.
4681 (fetch_altivec_registers): Likewise.
4682 (fetch_all_gp_regs): Likewise.
4683 (fetch_all_fp_regs): Likewise.
4684 (store_vsx_register): Likewise.
4685 (store_altivec_register): Likewise.
4686 (set_spe_registers): Likewise.
4687 (store_spe_register): Likewise.
4688 (store_altivec_registers): Likewise.
4689 (store_all_gp_regs): Likewise.
4690 (store_all_fp_regs): Likewise.
4691 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4692 (ppc_linux_collect_gregset): Likewise.
4693 (ppc_canonicalize_syscall): Likewise.
4694 (ppc_linux_record_signal): Likewise.
4695 (ppu2spu_prev_register): Likewise.
4696 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4697 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4698 (ppcobsd_store_registers): Likewise.
4699 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4701 (ppc_ravenscar_generic_store_registers): Likewise.
4702 * procfs.c (procfs_fetch_registers): Likewise.
4703 (procfs_store_registers): Likewise.
4704 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4705 (ravenscar_store_registers): Likewise.
4706 (ravenscar_prepare_to_store): Likewise.
4707 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4708 * record-full.c (record_full_wait_1): Likewise.
4709 (record_full_registers_change): Likewise.
4710 (record_full_store_registers): Likewise.
4711 (record_full_core_fetch_registers): Likewise.
4712 (record_full_save): Likewise.
4713 (record_full_goto_insn): Likewise.
4714 * regcache.c (regcache_register_size): Likewise.
4715 (get_regcache_arch): Remove.
4716 (regcache_read_pc): Likewise.
4717 * regcache.h (get_regcache_arch): Remove.
4718 * remote-sim.c (gdbsim_fetch_register): Likewise.
4719 (gdbsim_store_register): Likewise.
4720 * remote.c (fetch_register_using_p): Likewise.
4721 (send_g_packet): Likewise.
4722 (remote_prepare_to_store): Likewise.
4723 (store_registers_using_G): Likewise.
4724 * reverse.c (save_bookmark_command): Likewise.
4725 (goto_bookmark_command): Likewise.
4726 * rs6000-aix-tdep.c (branch_dest): Likewise.
4727 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4728 (fetch_register): Likewise.
4729 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4730 (ppc_collect_reg): Likewise.
4731 (ppc_collect_gregset): Likewise.
4732 (ppc_collect_fpregset): Likewise.
4733 (ppc_collect_vsxregset): Likewise.
4734 (ppc_collect_vrregset): Likewise.
4735 (ppc_displaced_step_hw_singlestep): Likewise.
4736 (rs6000_pseudo_register_read): Likewise.
4737 (rs6000_pseudo_register_write): Likewise.
4738 * s390-linux-nat.c (supply_gregset): Likewise.
4739 (fill_gregset): Likewise.
4740 (s390_linux_fetch_inferior_registers): Likewise.
4741 * s390-linux-tdep.c (s390_write_pc): Likewise.
4742 (s390_software_single_step): Likewise.
4743 (s390_all_but_pc_registers_record): Likewise.
4744 (s390_linux_syscall_record): Likewise.
4745 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4746 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4747 (shnbsd_store_inferior_registers): Likewise.
4748 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4749 (sh_extract_return_value_fpu): Likewise.
4750 (sh_store_return_value_nofpu): Likewise.
4751 (sh_corefile_supply_regset): Likewise.
4752 (sh_corefile_collect_regset): Likewise.
4753 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4754 (sh64_store_return_value): Likewise.
4755 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4756 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4757 (sparc_store_inferior_registers): Likewise.
4758 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4759 (sparc_ravenscar_prepare_to_store): Likewise.
4760 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4761 (sparc_analyze_control_transfer): Likewise.
4762 (sparc_step_trap): Likewise.
4763 (sparc_software_single_step): Likewise.
4764 (sparc32_gdbarch_init): Likewise.
4765 (sparc_supply_rwindow): Likewise.
4766 (sparc_collect_rwindow): Likewise.
4767 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4768 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4769 (sparc64nbsd_collect_gregset): Likewise.
4770 (sparc64nbsd_supply_fpregset): Likewise.
4771 (sparc64nbsd_collect_fpregset): Likewise.
4772 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4773 (sparc64_supply_gregset): Likewise.
4774 (sparc64_collect_gregset): Likewise.
4775 (sparc64_supply_fpregset): Likewise.
4776 (sparc64_collect_fpregset): Likewise.
4777 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4778 * spu-tdep.c (spu_unwind_sp): Likewise.
4779 (spu2ppu_prev_register): Likewise.
4780 (spu_memory_remove_breakpoint): Likewise.
4781 * stack.c (return_command): Likewise.
4782 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4783 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4784 * tracefile.c (trace_save_ctf): Likewise.
4785 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4786 (do_windows_store_inferior_registers): Likewise.
4787 (windows_resume): Likewise.
4788 * xtensa-linux-nat.c (fill_gregset): Likewise.
4789 (supply_gregset_reg): Likewise.
4790 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4791 (xtensa_register_read_masked): Likewise.
4792 (xtensa_supply_gregset): Likewise.
4793 (xtensa_extract_return_value): Likewise.
4794 (xtensa_store_return_value): Likewise.
4796 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4798 * doublest.c (floatformat_from_string): New function.
4799 * doublest.h (floatformat_from_string): Add prototype.
4801 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4802 (OP_FLOAT): ... this.
4803 * expression.h: Do not include "doublest.h".
4804 (union exp_element): Replace doubleconst and decfloatconst by
4805 new element floatconst.
4806 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4807 (ada_evaluate_subexp): Likewise.
4808 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4809 OP_DOUBLE and OP_DECFLOAT.
4810 * expprint.c (print_subexp_standard): Likewise.
4811 (dump_subexp_body_standard): Likewise.
4812 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4814 * parse.c: Include "dfp.h".
4815 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4816 (write_exp_elt_floatcst): New function.
4817 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4819 (operator_check_standard): Likewise.
4820 (parse_float): Do not accept suffix. Take type as input. Return bool.
4821 Return target format buffer instead of host DOUBLEST.
4822 Use floatformat_from_string and decimal_from_string to parse
4823 either binary or decimal floating-point types.
4824 (parse_c_float): Remove.
4825 * parser-defs.h: Do not include "doublest.h".
4826 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4827 (write_exp_elt_floatcst): Add prototype.
4828 (parse_float): Update prototype.
4829 (parse_c_float): Remove.
4831 * c-exp.y: Do not include "dfp.h".
4832 (typed_val_float): Use byte buffer instead of DOUBLEST.
4833 (typed_val_decfloat): Remove.
4835 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4836 (parse_number): Update to new parse_float interface.
4837 Parse suffixes and determine type before calling parse_float.
4838 Handle decimal and binary FP types the same way.
4840 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4841 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4842 (parse_number): Update to new parse_float interface.
4843 Parse suffixes and determine type before calling parse_float.
4845 * f-exp.y: Replace dval by typed_val_float.
4846 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4847 (parse_number): Use parse_float instead of atof.
4849 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4850 (parse_go_float): Remove.
4851 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4852 (parse_number): Call parse_float instead of parse_go_float.
4853 Parse suffixes and determine type before calling parse_float.
4855 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4856 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4857 (parse_number): Update to new parse_float interface.
4858 Parse suffixes and determine type before calling parse_float.
4860 * m2-exp.y: Replace dval by byte buffer val.
4861 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4862 (parse_number): Call parse_float instead of atof.
4864 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4865 (lex_number): Call parse_float instead of strtod.
4866 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4867 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4868 Use write_exp_elt_floatcst.
4869 (unit_testing): Remove static variable.
4870 (rust_type): Do not check unit_testing.
4871 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4873 * ada-exp.y (type_float, type_double): Remove.
4874 (typed_val_float): Use byte buffer instead of DOUBLEST.
4875 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4876 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4878 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4880 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4881 * arch/aarch64.h: New file.
4883 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4885 * dfp.h (decimal_from_string): Use const reference for argument.
4886 * dfp.c (decimal_from_string): Likewise.
4888 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4890 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4891 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4892 * mips-tdep.c (mips_print_fp_register): Likewise.
4894 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4896 * common/format.h (enum argclass): Replace decfloat_arg by
4897 dec32float_arg, dec64float_arg, and dec128float_arg.
4898 * common/format.c (parse_format_string): Update to return
4899 new decimal float argument classes.
4901 * printcmd.c (printf_decfloat): Rename to ...
4902 (printf_floating): ... this. Add argclass argument, and use it
4903 instead of parsing the format string again. Add support for
4904 binary floating-point values, using floatformat_to_string.
4905 Convert value to the target format if it doesn't already match.
4906 (ui_printf): Call printf_floating instead of printf_decfloat,
4907 also for double_arg / long_double_arg. Pass argclass.
4909 * dfp.c (decimal_to_string): Add format string argument.
4910 * dfp.h (decimal_to_string): Likewise.
4912 * doublest.c (floatformat_to_string): Add format string argument.
4913 * doublest.h (floatformat_to_string): Likewise.
4915 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4917 * doublest.c (floatformat_precision): New routine.
4918 (floatformat_to_string): Likewise.
4919 * doublest.c (floatformat_to_string): Add prototype.
4921 * printcmd.c (print_scalar_formatted): Only call print_floating
4922 on floating-point types.
4923 * valprint.c: Do not include "floatformat.h".
4924 (generic_val_print_decfloat): Remove.
4925 (generic_val_print): Call generic_val_print_float for both
4926 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4927 (print_floating): Use floatformat_to_string. Handle decimal float.
4928 (print_decimal_floating): Remove, merge into floatformat_to_string.
4929 * value.h (print_decimal_floating): Remove.
4931 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4933 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4935 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4937 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4939 * memattr.h: Don't include vec.h.
4940 (struct mem_attrib): Initialize fields.
4941 <unknown>: New static method.
4942 (struct mem_region): Add constructors, operator<, initialize
4944 * memattr.c: Include algorithm.
4945 (default_mem_attrib, unknown_mem_attrib): Remove.
4946 (user_mem_region_list): New global.
4947 (target_mem_region_list, mem_region_list): Change type to
4948 std::vector<mem_region>.
4949 (mem_use_target): Now a function.
4950 (target_mem_regions_valid): Change type to bool.
4951 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4952 (require_user_regions): Adjust.
4953 (require_target_regions): Adjust.
4954 (create_mem_region): Adjust.
4955 (lookup_mem_region): Adjust.
4956 (invalidate_target_mem_regions): Adjust.
4957 (mem_clear): Rename to...
4958 (user_mem_clear): ... this, and adjust.
4959 (mem_command): Adjust.
4960 (info_mem_command): Adjust.
4961 (mem_enable, enable_mem_command, mem_disable,
4962 disable_mem_command): Adjust.
4963 (mem_delete): Adjust.
4964 (delete_mem_command): Adjust.
4965 * memory-map.h (parse_memory_map): Return an std::vector.
4966 * memory-map.c (parse_memory_map): Likewise.
4967 (struct memory_map_parsing_data): Add constructor.
4968 <memory_map>: Point to std::vector.
4969 (memory_map_start_memory): Adjust.
4970 (memory_map_end_memory): Adjust.
4971 (memory_map_end_property): Adjust.
4972 (clear_result): Remove.
4973 * remote.c (remote_memory_map): Return an std::vector.
4974 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4976 (target_debug_print_mem_region_vector): New.
4977 * target-delegates.c: Regenerate.
4978 * target.h (mem_region_vector): New typedef.
4979 (to_memory_map): Return mem_region_vector.
4980 (target_memory_map): Return an std::vector.
4981 * target.c (target_memory_map): Return an std::vector.
4982 (flash_erase_command): Adjust.
4984 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4986 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4987 Change type to std::string.
4988 (memory_map_start_property): Adjust.
4989 (memory_map_end_property): Adjust.
4991 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4993 * infrun.h: Include common/byte-vector.h.
4994 (struct displaced_step_closure): New struct.
4995 (struct buf_displaced_step_closure): New struct.
4996 * infrun.c (displaced_step_closure::~displaced_step_closure):
4997 Provide default implementation.
4998 (displaced_step_clear): Deallocate step closure with delete.
4999 * aarch64-tdep.c (displaced_step_closure): Rename to ...
5000 (aarch64_displaced_step_closure): ... this, extend
5001 displaced_step_closure.
5002 (aarch64_displaced_step_data) <dsc>: Change type to
5003 aarch64_displaced_step_closure.
5004 (aarch64_displaced_step_copy_insn): Adjust to type change, use
5006 (aarch64_displaced_step_fixup): Add cast for displaced step
5008 * amd64-tdep.c (displaced_step_closure): Rename to ...
5009 (amd64_displaced_step_closure): ... this, extend
5010 displaced_step_closure.
5011 <insn_buf>: Change type to std::vector<gdb_byte>.
5013 (fixup_riprel): Change type of DSC parameter, adjust to type
5015 (fixup_displaced_copy): Change type of DSC parameter.
5016 (amd64_displaced_step_copy_insn): Instantiate
5017 amd64_displaced_step_closure.
5018 (amd64_displaced_step_fixup): Add cast for closure type, adjust
5019 to type change of insn_buf.
5020 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
5022 (arm_linux_copy_svc): Likewise.
5023 (cleanup_kernel_helper_return): Likewise.
5024 (arm_catch_kernel_helper_return): Likewise.
5025 (arm_linux_displaced_step_copy_insn): Instantiate
5026 arm_displaced_step_closure.
5027 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
5028 (displaced_read_reg): Change type of parameter DSC.
5029 (branch_write_pc): Likewise.
5030 (load_write_pc): Likewise.
5031 (alu_write_pc): Likewise.
5032 (displaced_write_reg): Likewise.
5033 (arm_copy_unmodified): Likewise.
5034 (thumb_copy_unmodified_32bit): Likewise.
5035 (thumb_copy_unmodified_16bit): Likewise.
5036 (cleanup_preload): Likewise.
5037 (install_preload): Likewise.
5038 (arm_copy_preload): Likewise.
5039 (thumb2_copy_preload): Likewise.
5040 (install_preload_reg): Likewise.
5041 (arm_copy_preload_reg): Likewise.
5042 (cleanup_copro_load_store): Likewise.
5043 (install_copro_load_store): Likewise.
5044 (arm_copy_copro_load_store) Likewise.
5045 (thumb2_copy_copro_load_store): Likewise.
5046 (cleanup_branch): Likewise.
5047 (install_b_bl_blx): Likewise.
5048 (arm_copy_b_bl_blx): Likewise.
5049 (thumb2_copy_b_bl_blx): Likewise.
5050 (thumb_copy_b): Likewise.
5051 (install_bx_blx_reg): Likewise.
5052 (arm_copy_bx_blx_reg): Likewise.
5053 (thumb_copy_bx_blx_reg): Likewise.
5054 (cleanup_alu_imm): Likewise.
5055 (arm_copy_alu_imm): Likewise.
5056 (thumb2_copy_alu_imm): Likewise.
5057 (cleanup_alu_reg): Likewise.
5058 (install_alu_reg): Likewise.
5059 (arm_copy_alu_reg): Likewise.
5060 (thumb_copy_alu_reg): Likewise.
5061 (cleanup_alu_shifted_reg): Likewise.
5062 (install_alu_shifted_reg): Likewise.
5063 (arm_copy_alu_shifted_reg): Likewise.
5064 (cleanup_load): Likewise.
5065 (cleanup_store): Likewise.
5066 (arm_copy_extra_ld_st): Likewise.
5067 (install_load_store): Likewise.
5068 (thumb2_copy_load_literal): Likewise.
5069 (thumb2_copy_load_reg_imm): Likewise.
5070 (arm_copy_ldr_str_ldrb_strb): Likewise.
5071 (cleanup_block_load_all): Likewise.
5072 (cleanup_block_store_pc): Likewise.
5073 (cleanup_block_load_pc): Likewise.
5074 (arm_copy_block_xfer): Likewise.
5075 (thumb2_copy_block_xfer): Likewise.
5076 (cleanup_svc): Likewise.
5077 (install_svc): Likewise.
5078 (arm_copy_svc): Likewise.
5079 (thumb_copy_svc): Likewise.
5080 (arm_copy_undef): Likewise.
5081 (thumb_32bit_copy_undef): Likewise.
5082 (arm_copy_unpred): Likewise.
5083 (arm_decode_misc_memhint_neon): Likewise.
5084 (arm_decode_unconditional): Likewise.
5085 (arm_decode_miscellaneous): Likewise.
5086 (arm_decode_dp_misc): Likewise.
5087 (arm_decode_ld_st_word_ubyte): Likewise.
5088 (arm_decode_media): Likewise.
5089 (arm_decode_b_bl_ldmstm): Likewise.
5090 (arm_decode_ext_reg_ld_st): Likewise.
5091 (thumb2_decode_dp_shift_reg): Likewise.
5092 (thumb2_decode_ext_reg_ld_st): Likewise.
5093 (arm_decode_svc_copro): Likewise.
5094 (thumb2_decode_svc_copro): Likewise.
5095 (install_pc_relative): Likewise.
5096 (thumb_copy_pc_relative_16bit): Likewise.
5097 (thumb_decode_pc_relative_16bit): Likewise.
5098 (thumb_copy_pc_relative_32bit): Likewise.
5099 (thumb_copy_16bit_ldr_literal): Likewise.
5100 (thumb_copy_cbnz_cbz): Likewise.
5101 (thumb2_copy_table_branch): Likewise.
5102 (cleanup_pop_pc_16bit_all): Likewise.
5103 (thumb_copy_pop_pc_16bit): Likewise.
5104 (thumb_process_displaced_16bit_insn): Likewise.
5105 (decode_thumb_32bit_ld_mem_hints): Likewise.
5106 (thumb_process_displaced_32bit_insn): Likewise.
5107 (thumb_process_displaced_insn): Likewise.
5108 (arm_process_displaced_insn): Likewise.
5109 (arm_displaced_init_closure): Likewise.
5110 (arm_displaced_step_fixup): Add cast for closure.
5111 * arm-tdep.h: Include infrun.h.
5112 (displaced_step_closure): Rename to ...
5113 (arm_displaced_step_closure): ... this, extend
5114 displaced_step_closure.
5115 <u::svc::copy_svc_os>: Change type of parameter DSC.
5116 <cleanup>: Likewise.
5117 (arm_process_displaced_insn): Likewise.
5118 (arm_displaced_init_closure): Likewise.
5119 (displaced_read_reg): Likewise.
5120 (displaced_write_reg): Likewise.
5121 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5123 * i386-tdep.h: Include infrun.h.
5124 (i386_displaced_step_closure): New typedef.
5125 * i386-tdep.c (i386_displaced_step_copy_insn): Use
5126 i386_displaced_step_closure.
5127 (i386_displaced_step_fixup): Adjust.
5128 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
5129 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
5131 (ppc_displaced_step_fixup): Adjust.
5132 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
5133 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
5135 (s390_displaced_step_fixup): Adjust.
5137 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
5139 * interps.h (interp_resume, interp_suspend, interp_set_temp):
5140 Remove declarations.
5142 2017-10-20 Tom Tromey <tom@tromey.com>
5144 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
5146 (gdb_bfd_record_inclusion): Update.
5147 (bfdp): Remove typedef.
5149 2017-10-20 Tom Tromey <tom@tromey.com>
5151 * gdb_bfd.c (gdb_bfd_ref): Use new.
5152 (struct gdb_bfd_data): Add constructor, destructor, and member
5154 (gdb_bfd_unref): Use delete.
5156 2017-10-20 Tom Tromey <tom@tromey.com>
5158 * exec.c (exec_file_attach): Use new_bfd_ref.
5159 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
5160 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5161 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
5163 * gdb_bfd.h (new_bfd_ref): New function.
5165 2017-10-20 Pedro Alves <palves@redhat.com>
5167 * main.c (captured_command_loop): Add attribute noinline.
5169 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
5171 * interps.c (struct interp_factory): Add constructor.
5172 (interp_factory_p): Remove typedef.
5173 (DEF_VEC_P(interp_factory_p)): Remove.
5174 (interpreter_factories): Change type to std::vector.
5175 (interp_factory_register): Adjust.
5176 (interp_lookup): Adjust.
5177 (interpreter_completer): Adjust.
5179 2017-10-19 Tom Tromey <tom@tromey.com>
5181 * break-catch-syscall.c (catch_syscall_completer): Use
5182 std::string, gdb::unique_xmalloc_ptr.
5184 2017-10-19 Tom Tromey <tom@tromey.com>
5186 * infcall.c (call_function_by_hand_dummy): Use std::string.
5188 2017-10-19 Tom Tromey <tom@tromey.com>
5190 * mi/mi-main.c (mi_cmd_execute): Update.
5191 * top.h (prepare_execute_command): Return scoped_value_mark.
5192 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
5193 Add move constructor.
5194 * top.c (prepare_execute_command): Return scoped_value_mark.
5195 (execute_command): Update.
5197 2017-10-19 Pedro Alves <palves@redhat.com>
5199 * xml-support.c (xml_fetch_content_from_file): Check fread's
5202 2017-10-19 Pedro Alves <palves@redhat.com>
5204 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
5206 (handle_error_fd): New function.
5207 (ser_base_async): Add/delete an event loop file handler for
5210 2017-10-19 Pedro Alves <palves@redhat.com>
5212 * xml-support.c (xml_fetch_content_from_file): Don't read in
5213 chunks. Instead use fseek to determine the file's size, and read
5216 2017-11-18 Keith Seitz <keiths@redhat.com>
5218 * c-exp.y (oper): Canonicalize conversion operators of user-defined
5220 Add whitespace to front of type name.
5222 2017-10-18 Keith Seitz <keiths@redhat.com>
5224 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
5225 DW_AT_accessibility.
5227 2017-10-18 Yao Qi <yao.qi@linaro.org>
5229 * features/tic6x-c62x-linux.c: Remove.
5231 2017-10-17 Tom Tromey <tom@tromey.com>
5233 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
5234 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
5235 (do_mixed_source_and_assembly): Likewise.
5237 2017-10-17 Tom Tromey <tom@tromey.com>
5239 * regcache.c (regcache::xfer_part): Remove assertion.
5241 2017-10-17 Pedro Alves <palves@redhat.com>
5243 * xml-support.c (xml_fetch_content_from_file): Call
5244 unique_ptr::release() instead unique_ptr::get() when passing
5247 2017-10-17 Yao Qi <yao.qi@linaro.org>
5249 * regcache.c (regcache::xfer_part): Remove parameters read and
5250 write, add parameter is_raw. All callers are updated.
5252 2017-10-16 Keith Seitz <keiths@redhat.com>
5254 * c-typeprint.c (enum access_specifier): Moved here from
5256 (output_access_specifier): New function.
5257 (c_type_print_base): Consider typedefs when assessing
5258 whether access labels are needed.
5259 Use output_access_specifier as needed.
5260 Output access specifier for typedefs, if needed.
5261 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
5262 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
5264 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
5267 2017-10-16 Tom Tromey <tom@tromey.com>
5269 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
5270 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
5271 * target.c (target_fileio_read_stralloc): Update.
5272 * sparc64-tdep.c (adi_is_addr_mapped): Update.
5273 * target.h (target_fileio_read_stralloc): Return
5276 2017-10-16 Tom Tromey <tom@tromey.com>
5278 * xml-syscall.c (xml_init_syscalls_info): Update.
5279 * xml-support.c (xinclude_start_include): Update.
5280 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
5281 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
5282 (xml_fetch_content_from_file): Likewise.
5283 * osdata.c (get_osdata): Update.
5284 * target.h (target_read_stralloc, target_get_osdata): Return
5286 * solib-aix.c (solib_aix_get_library_list): Update.
5287 * solib-target.c (solib_target_current_sos): Update.
5288 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
5289 * xml-tdesc.c (fetch_available_features_from_target): Update.
5290 (target_fetch_description_xml): Update.
5291 (file_read_description_xml): Update.
5292 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
5293 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
5294 (remote_pid_to_exec_file): Update.
5295 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
5296 (target_get_osdata): Likewise.
5298 2017-10-16 Tom Tromey <tom@tromey.com>
5300 * remote.c (remote_register_number_and_offset): Use std::vector.
5301 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
5302 (putpkt_binary): Use gdb::def_vector.
5303 (compare_sections_command): Use gdb::byte_vector.
5305 2017-10-16 Tom Tromey <tom@tromey.com>
5307 * ppc-linux-nat.c (hwdebug_insert_point): Use
5308 gdb::unique_xmalloc_ptr, XDUP.
5310 2017-10-16 Tom Tromey <tom@tromey.com>
5312 * probe.c (parse_probes): Use std::string.
5313 (info_probes_for_ops, enable_probes_command)
5314 (disable_probes_command): Remove cleanups.
5316 2017-10-16 Tom Tromey <tom@tromey.com>
5318 * buildsym.c (block_compar): Remove.
5319 (end_symtab_get_static_block): Use std::vector.
5321 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
5323 * memrange.h (struct mem_range): Define operator< and operator==.
5324 (mem_range_s): Remove.
5325 (DEF_VEC_O (mem_range_s)): Remove.
5326 (normalize_mem_ranges): Change parameter type to std::vector.
5327 * memrange.c (compare_mem_ranges): Remove.
5328 (normalize_mem_ranges): Change parameter type to std::vector,
5329 adjust to vector change.
5330 * exec.c (section_table_available_memory): Return vector, remove
5332 (section_table_read_available_memory): Adjust to std::vector
5334 * remote.c (remote_read_bytes): Adjust to std::vector
5336 * tracepoint.h (traceframe_available_memory): Change parameter
5337 type to std::vector.
5338 * tracepoint.c (traceframe_available_memory): Change parameter
5339 type to std::vector, adjust.
5340 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
5342 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5343 unittests/memrange-selftests.c.
5344 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
5345 * gdb/unittests/memrange-selftests.c: New file.
5347 2017-10-16 Pedro Alves <palves@redhat.com>
5349 * elfread.c (probe_key_free): Rename range-for variable.
5350 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
5351 (find_probe_by_pc, collect_probes): Rename range-for variable.
5353 2017-10-16 Yao Qi <yao.qi@linaro.org>
5355 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
5356 * features/tic6x-c62x.c: Remove.
5357 * features/tic6x-c64x-linux.c: Remove.
5358 * features/tic6x-c64x.c: Remove.
5359 * features/tic6x-c64xp-linux.c: Remove.
5360 * features/tic6x-c64xp.c: Remove.
5361 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
5362 initialize_tdesc_tic6x_*_linux functions.
5363 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
5364 initialize_tdesc_tic6x_* functions.
5366 2017-10-16 Yao Qi <yao.qi@linaro.org>
5368 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
5370 * regformats/tic6x-c62x.dat: Remove.
5371 * regformats/tic6x-c64x.dat: Remove.
5372 * regformats/tic6x-c64xp.dat: Remove.
5374 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
5376 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5377 (the !HAVE_LIBEXPAT version).
5379 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5381 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5384 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5386 * target.h: Include tracepoint.h.
5387 (enum trace_find_type): Move to tracepoint.h.
5388 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5389 * tracepoint.h: Don't include target.h
5390 (enum trace_find_type): Move from target.h.
5391 (parse_traceframe_info): Return a unique ptr.
5392 * tracepoint.c (current_traceframe_info): Change type to unique
5394 (free_traceframe_info): Remove.
5395 (clear_traceframe_info): Don't manually free
5396 current_traceframe_info.
5397 (free_result): Remove.
5398 (parse_traceframe_info): Return a unique ptr.
5399 (get_traceframe_info): Adjust to unique ptr.
5400 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5401 * remote.c (remote_traceframe_info): Return a unique ptr.
5402 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5404 * target-debug.h (target_debug_print_traceframe_info_up): New
5406 * target-delegates.c: Regenerate.
5408 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5410 * memrange.h (struct mem_range): Add constructors.
5411 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5412 std::vector<mem_range>.
5413 * tracepoint.c (free_traceframe_info): Don't manually free
5415 (traceframe_info_start_memory): Adjust to vector change.
5416 (traceframe_available_memory): Likewise.
5417 * tracefile-tfile.c (build_traceframe_info): Likewise.
5418 * ctf.c (ctf_traceframe_info): Likewise.
5420 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5422 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5424 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5425 (traceframe_info_start_tvar): Adjust to vector change.
5426 (parse_traceframe_info): Allocate with new.
5427 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5429 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5431 tfile_traceframe_info): Allocate with new.
5432 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5435 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5437 * tracepoint.c (traceframe_info): Rename to...
5438 (current_traceframe_info): ...this.
5439 (clear_traceframe_info): Adjust.
5440 (get_traceframe_info): Adjust.
5442 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5444 * nat/linux-osdata.c: Include algorithm.
5445 (compare_processes): Remove.
5446 (struct pid_pgid_entry): New struct.
5447 (linux_xfer_osdata_processgroups): Use std::vector instead of
5450 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5452 * objfiles.h: Don't include symfile.h.
5453 (struct partial_symbol): Remove forward-declaration.
5454 (struct objfile) <global_psymbols, static_psymbols>: Change type
5455 to std::vector<partial_symbol *>.
5456 * objfiles.c (objfile::objfile): Don't memset those fields.
5457 (objfile::~objfile): Don't free those fields.
5458 * psympriv.h (struct psymbol_allocation_list): Remove
5459 forward-declaration.
5460 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5462 (start_psymtab_common): Change parameters to std::vector.
5463 * psymtab.c: Include algorithm.
5464 (require_partial_symbols): Call shrink_to_fit.
5465 (find_pc_sect_psymbol): Adjust to vector change.
5466 (match_partial_symbol): Likewise.
5467 (lookup_partial_symbol): Likewise.
5468 (psym_relocate): Likewise.
5469 (dump_psymtab): Likewise.
5470 (recursively_search_psymtabs): Likewise.
5471 (compare_psymbols): Remove.
5472 (sort_pst_symbols): Adjust to vector change.
5473 (start_psymtab_common): Likewise.
5474 (end_psymtab_common): Likewise.
5475 (psymbol_bcache_full): De-constify return value.
5476 (add_psymbol_to_bcache): Likewise.
5477 (extend_psymbol_list): Remove.
5478 (append_psymbol_to_list): Adjust to vector change.
5479 (add_psymbol_to_list): Likewise.
5480 (init_psymbol_list): Likewise.
5481 (maintenance_info_psymtabs): Likewise.
5482 (maintenance_check_psymtabs): Likewise.
5483 * symfile.h (struct psymbol_allocation_list): Remove.
5484 * symfile.c (reread_symbols): Adjust to vector change.
5485 * dbxread.c (start_psymtab): Change type of parameters.
5486 (dbx_symfile_read): Adjust to vector change.
5487 (read_dbx_symtab): Likewise.
5488 (start_psymtab): Change type of parameters.
5489 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5490 (create_partial_symtab): Likewise.
5491 (add_partial_symbol): Likewise.
5492 (write_one_signatured_type): Likewise.
5493 (recursively_write_psymbols): Likewise.
5494 * mdebugread.c (parse_partial_symbols): Likewise.
5495 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5496 (scan_xcoff_symtab): Adjust to vector change.
5497 (xcoff_initial_scan): Likewise.
5499 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5501 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5503 2017-10-13 Yao Qi <yao.qi@linaro.org>
5505 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5506 Remove s390x-*-expedite, add s390x-expedite.
5508 2017-10-13 Yao Qi <yao.qi@linaro.org>
5510 * features/s390-gs-linux64.c: Regenerated.
5511 * features/s390x-gs-linux64.c: Regenerated.
5513 2017-10-13 Tom Tromey <tom@tromey.com>
5515 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5516 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5518 * symfile.c (symbol_file_add_with_addrs): Use new.
5519 (symbol_file_add_separate): Update comment.
5520 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5521 * jit.c (jit_object_close_impl): Use new.
5522 (jit_unregister_code): Use delete.
5523 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5524 (~objfile): Rename from free_objfile.
5525 (free_objfile_separate_debug, do_free_objfile_cleanup)
5526 (free_all_objfiles, objfile_purge_solibs): Use delete.
5527 * objfiles.h (struct objfile): Add constructor and destructor.
5528 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5529 (allocate_objfile, free_objfile): Don't declare.
5530 (struct objstats): Add initializers.
5532 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5534 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5535 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5536 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5537 * gdbarch.h: Regenerate.
5538 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5540 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5541 (i386_displaced_step_fixup): Adjust comment.
5542 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5544 2017-10-12 Tom Tromey <tom@tromey.com>
5546 * prologue-value.h (pv_area::store_would_trash): Return bool.
5547 (pv_area::find_reg): Likewise.
5548 * prologue-value.c (pv_area::store_would_trash): Return bool.
5549 (pv_area::find_reg): Likewise.
5551 2017-10-12 Tom Tromey <tom@tromey.com>
5553 * s390-linux-tdep.c (s390_store, s390_load)
5554 (s390_check_for_saved, s390_analyze_prologue): Update.
5555 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5556 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5557 * prologue-value.h (class pv_area): Move from prologue-value.c.
5558 Change names of members. Add constructor, destructor, member
5560 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5561 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5562 (pv_area_fetch, pv_area_scan): Don't declare.
5563 * prologue-value.c (struct pv_area::area_entry): Now member of
5565 (struct pv_area): Move to prologue-value.h.
5566 (pv_area::pv_area): Rename from make_pv_area.
5567 (pv_area::~pv_area): Rename from free_pv_area.
5568 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5569 (clear_entries, find_entry, overlaps, store_would_trash, store)
5570 (fetch, find_reg, scan): Now member of pv_area.
5571 Remove "area" argument. Update.
5572 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5574 * mn10300-tdep.c (push_reg, check_for_saved)
5575 (mn10300_analyze_prologue): Update.
5576 * mep-tdep.c (is_arg_spill, check_for_saved)
5577 (mep_analyze_prologue): Update.
5578 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5579 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5580 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5581 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5583 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5584 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5586 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5588 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5589 * linux-nat.c (linux_nat_delete_thread): New variable.
5590 (lwp_free): Invoke linux_nat_delete_thread if set.
5591 (linux_nat_set_delete_thread): New function.
5592 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5593 thread delete callback.
5594 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5595 (_initialize_arm_linux_nat): Assign thread delete callback.
5596 * s390-linux-nat.c (s390_delete_thread): New function.
5597 (_initialize_s390_nat): Assign thread delete callback.
5598 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5599 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5601 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5603 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5604 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5606 2017-10-09 Tom Tromey <tom@tromey.com>
5608 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5610 * tui/tui-layout.c (enum tui_status): Use std::string.
5612 2017-10-11 Tom Tromey <tom@tromey.com>
5614 * gdbthread.h (thread_command): Constify.
5615 * inferior.h (detach_command): Constify.
5616 * top.h (set_history, show_history): Constify.
5617 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5618 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5619 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5620 * printcmd.c (set_command): Constify.
5621 (non_const_set_command): New function.
5622 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5623 * breakpoint.c (enable_command, disable_command, delete_command)
5624 (catch_command, tcatch_command, set_breakpoint_cmd)
5625 (show_breakpoint_cmd): Constify.
5626 * macrocmd.c (macro_command): Constify.
5627 * infcmd.c (unset_command, kill_command, detach_command)
5628 (info_proc_cmd): Constify.
5629 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5630 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5631 (info_auto_load_cmd): Constify.
5632 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5633 (unset_tdesc_cmd): Constify.
5634 * ada-lang.c (set_ada_command, show_ada_command)
5635 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5636 * guile/guile.c (set_guile_command, show_guile_command)
5637 (info_guile_command): Constify.
5638 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5640 * skip.c (skip_command): Constify.
5641 * compile/compile.c (_initialize_compile): Constify.
5642 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5643 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5644 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5645 (maint_btrace_pt_show_cmd): Constify.
5646 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5648 * python/python.c (user_show_python, user_set_python): Constify.
5649 * mips-tdep.c (set_mips_command, show_mips_command)
5650 (set_mipsfpu_command): Constify.
5651 * record-btrace.c (cmd_record_btrace_start)
5652 (cmd_set_record_btrace, cmd_show_record_btrace)
5653 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5654 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5655 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5657 * symfile.c (overlay_command): Constify.
5658 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5659 * cli/cli-logging.c (set_logging_command, show_logging_command):
5661 * cli/cli-dump.c (dump_command, append_command)
5662 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5663 (tekhex_dump_command, binary_dump_command)
5664 (binary_append_command): Constify.
5665 * cli/cli-decode.c (struct cmd_list_element): Change type of
5667 * cli/cli-cmds.c (info_command, show_command, set_debug)
5668 (show_debug): Constify.
5669 (show_command): Add non-const overload.
5670 * top.c (set_history, show_history): Constify.
5671 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5672 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5673 * target.c (target_command): Constify.
5674 * sparc64-tdep.c (info_adi_command): Constify.
5675 * record-full.c (cmd_record_full_start): Constify.
5676 (set_record_full_command): Constify. Fix typo.
5677 (show_record_full_command): Constify.
5678 * thread.c (thread_command, thread_apply_command): Constify.
5679 * memattr.c (dummy_cmd): Constify.
5680 * value.c (function_command): Constify.
5681 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5682 * probe.c (info_probes_command): Constify.
5683 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5684 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5685 (show_thread_cmd, set_thread_default_cmd)
5686 (show_thread_default_cmd): Constify.
5687 (check_empty): Constify.
5688 * tracepoint.c (tfind_command): Constify.
5689 * cp-support.c (maint_cplus_command): Constify.
5690 * windows-tdep.c (info_w32_command): Constify.
5691 * record.c (cmd_record_start, set_record_command)
5692 (show_record_command, info_record_command, cmd_record_goto):
5694 * ravenscar-thread.c (set_ravenscar_command)
5695 (show_ravenscar_command): Constify.
5696 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5698 (add_internal_problem_command): Remove casts.
5699 * arc-tdep.c (maintenance_print_arc_command): Constify.
5700 * valprint.c (set_print, show_print, set_print_raw)
5701 (show_print_raw): Constify.
5702 * maint.c (maintenance_command, maintenance_info_command)
5703 (maintenance_print_command, maintenance_set_cmd)
5704 (maintenance_show_cmd, set_per_command_cmd)
5705 (show_per_command_cmd, maintenance_check_command): Constify.
5706 * language.c (set_check, show_check): Constify.
5707 * typeprint.c (show_print_type, set_print_type): Constify.
5708 * go32-nat.c (go32_info_dos_command): Constify.
5710 2017-10-11 Tom Tromey <tom@tromey.com>
5712 * breakpoint.c (prepare_re_set_context): Remove.
5713 (breakpoint_re_set_one): Update. Don't use cleanups.
5714 (breakpoint_re_set): Use scoped_restore, std::string, and
5715 scoped_restore_current_language.
5717 2017-10-11 Tom Tromey <tom@tromey.com>
5719 * breakpoint.c (commands_command_1): Use std::string.
5720 (cleanup_executing_breakpoints): Remove.
5721 (bpstat_do_actions_1): Use scoped_restore.
5722 (bpstat_check_watchpoint): Use std::string.
5723 (decode_static_tracepoint_spec): Likewise.
5724 (break_range_command): Likewise.
5725 (watch_command_1): Likewise.
5726 (compare_breakpoints): Change argument types.
5727 (clear_command): Use std::vector.
5728 (cleanup_executing_breakpoints): Remove.
5729 (update_global_location_list): Use unique_xmalloc_ptr.
5730 (strace_command): Remove unused declaration.
5732 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5734 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5735 * NEWS: Mention new FreeBSD/arm native configuration.
5736 * configure.host: Add arm*-*-freebsd*.
5737 * configure.nat: Likewise.
5738 * arm-fbsd-nat.c: New file.
5740 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5742 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5743 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5744 * NEWS: Mention new FreeBSD/arm target.
5745 * configure.tgt: Add arm*-*-freebsd*.
5746 * arm-fbsd-tdep.c: New file.
5747 * arm-fbsd-tdep.h: New file.
5749 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5751 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5752 `gdbarch_elfcore_write_linux_prpsinfo'.
5753 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5755 (elf_internal_linux_prpsinfo): Remove declaration.
5756 * gdbarch.h: Regenerate.
5757 * gdbarch.c: Regenerate.
5759 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5761 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5762 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5764 2017-10-11 Pedro Alves <palves@redhat.com>
5766 * breakpoint.c (reattach_breakpoints): Delete.
5767 * breakpoint.h (reattach_breakpoints): Delete.
5769 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5771 * symfile.c (registered_sym_fns): Make struct, not typedef.
5772 (DEF_VEC_O (registered_sym_fns)): Remove.
5773 (symtab_fns): Change type to std::vector.
5774 (add_symtab_fns): Adjust.
5775 (find_sym_fns): Adjust.
5777 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5779 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5780 * arc-tdep.h (arc_arch_is_em): New function.
5781 (arc_arch_is_hs): Likewise.
5783 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5785 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5786 parentheses in the declaration.
5787 (macro_lookup_inclusion): Likewise.
5788 (macro_lookup_definition): Likewise.
5789 * p-lang.h (pascal_builtin_types): Likewise.
5790 * tui/tui-data.c (tui_win_list): Likewise.
5791 * tui/tui-data.h (tui_win_list): Likewise.
5792 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5794 2017-10-11 Mark Rages <markrages@gmail.com>
5796 * target-memory.c (block_boundaries): Fix for block address not
5797 aligned on block size.
5799 2017-10-10 Pedro Alves <palves@redhat.com>
5800 Tom Tromey <tom@tromey.com>
5802 * breakpoint.c (struct captured_breakpoint_query_args)
5803 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5804 (print_breakpoint): New.
5805 * breakpoint.h (print_breakpoint): Declare.
5806 * common/common-exceptions.h (enum return_reason): Remove
5807 references to catch_exceptions.
5808 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5810 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5811 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5813 * gdbthread.h (thread_select): Declare.
5814 * mi/mi-cmd-break.c: Don't include gdb.h.
5815 (breakpoint_notify): Use print_breakpoint.
5816 * mi/mi-cmd-catch.c: Don't include gdb.h.
5817 * mi/mi-interp.c: Don't include gdb.h.
5818 (mi_print_breakpoint_for_event): New.
5819 (mi_breakpoint_created, mi_breakpoint_modified): Use
5820 mi_print_breakpoint_for_event.
5821 * mi/mi-main.c: Don't include gdb.h.
5822 (mi_cmd_thread_select): Parse the global thread ID here. Use
5823 thread_select instead of gdb_thread_select.
5824 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5825 of using gdb_list_thread_ids.
5826 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5828 (remote_fileio_request): Use TRY/CATCH instead of
5830 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5831 (symbol_file_add_from_memory_wrapper): Delete.
5832 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5833 * thread.c: Don't include gdb.h.
5834 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5835 (thread_alive): Use thread_select.
5836 (do_captured_thread_select): Delete, parts salvaged as ...
5837 (thread_select): ... this new function.
5838 (gdb_thread_select): Delete.
5840 2017-10-10 Pedro Alves <palves@redhat.com>
5841 Tom Tromey <tom@tromey.com>
5843 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5845 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5846 No longer macros. Instead ...
5847 (enum wp_check_result): They're now values of this new
5849 (watchpoint_check): Change return type to wp_check_result and
5850 parameter type to bpstat.
5851 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5852 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5853 catch_errors. Reverse logic of watchpoint_check call.
5854 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5855 pointer as parameter.
5856 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5857 * common/common-exceptions.c (throw_exception_sjlj): Update
5858 comments to avoid mentioning catch_errors.
5859 * exceptions.c (catch_errors): Delete.
5860 * exceptions.h: Update comments to avoid mentioning catch_errors.
5861 (catch_errors_ftype, catch_errors): Delete.
5862 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5863 (hook_stop_stub): Delete.
5864 (restore_selected_frame): Change return type to void, and
5865 parameter type to const frame_id &.
5866 (restore_infcall_control_state): Use TRY/CATCH instead of
5868 * main.c (captured_command_loop): Return void and remove
5869 parameter. Remove references to catch_errors.
5870 (captured_main): Use TRY/CATCH instead of catch_errors.
5871 * objc-lang.c (objc_submethod_helper_data)
5872 (find_objc_msgcall_submethod_helper): Delete.
5873 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5875 * record-full.c (record_full_message): Return void.
5876 (record_full_message_args, record_full_message_wrapper): Delete.
5877 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5878 instead of catch_errors.
5879 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5880 parameter type to int.
5881 * solib-darwin.c (open_symbol_file_object): Ditto.
5882 * solib-dsbt.c (open_symbol_file_object): Ditto.
5883 * solib-frv.c (open_symbol_file_object): Ditto.
5884 * solib-svr4.c (open_symbol_file_object): Ditto.
5885 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5886 * solib.c (update_solib_list): Use TRY/CATCH instead of
5888 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5890 * symmisc.c (struct print_symbol_args): Remove.
5891 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5892 (print_symbol): Change type.
5893 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5894 and remove parameters.
5895 (catch_errors): New.
5896 (get_windows_debug_event): Adjust.
5898 2017-10-09 Tom Tromey <tom@tromey.com>
5900 * mi/mi-main.c (free_splay_tree): Remove.
5901 (list_available_thread_groups): Use splay_tree_up.
5902 * common/gdb_splay_tree.h: New file.
5904 2017-10-09 Tom Tromey <tom@tromey.com>
5906 * mi/mi-main.c (do_nothing): Remove.
5907 (list_available_thread_groups): Update.
5909 2017-10-09 Pedro Alves <palves@redhat.com>
5911 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5912 reading registers when switching context.
5914 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5916 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5917 (fbsd_convert_siginfo): Likewise.
5918 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5920 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5922 * configure.ac (try_guile_versions): Remove guile-2.2.
5923 * configure: Regenerate.
5925 2017-10-09 Tom Tromey <tom@tromey.com>
5927 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5928 (COMPILE.pre): Use $(CXX).
5930 2017-10-09 Pedro Alves <palves@redhat.com>
5932 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5934 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5935 * cp-support.h (cp_remove_params): Now returns a
5936 gdb::unique_xmalloc_ptr.
5937 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5938 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5939 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5940 returning a gdb::unique_xmalloc_ptr.
5941 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5942 * stack.c (find_frame_funname): Adjust to cp_remove_params
5943 returning a gdb::unique_xmalloc_ptr.
5945 2017-10-08 Tom Tromey <tom@tromey.com>
5947 * dwarf2read.c (dwarf2_get_dwz_file): Use
5948 gdb::unique_xmalloc_ptr.
5949 (find_slot_in_mapped_hash): Likewise.
5950 (dwarf2_physname): Likewise.
5951 (create_dwo_unit_in_dwp_v1): Use std::string.
5952 (create_dwo_unit_in_dwp_v2): Likewise.
5953 (lookup_dwo_cutu): Likewise.
5954 (inherit_abstract_dies): Use std::vector.
5955 (read_array_type): Likewise.
5956 (dwarf_decode_macros): Remove unused declaration.
5957 (unsigned_int_compar): Remove.
5958 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5959 (psymtabs_addrmap_cleanup): Remove.
5961 2017-10-08 Tom Tromey <tom@tromey.com>
5963 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5964 * frame.h (frame_cleanup_after_sniffer): Declare.
5965 (frame_prepare_for_sniffer): Return void.
5966 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5968 (frame_prepare_for_sniffer): Return void.
5970 2017-10-08 Tom Tromey <tom@tromey.com>
5972 * utils.h (make_cleanup_value_free): Remove.
5973 * utils.c (do_value_free, struct cleanup): Remove.
5974 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5976 * value.h (struct value_deleter): New.
5977 (gdb_value_up): New typedef.
5979 2017-10-08 Tom Tromey <tom@tromey.com>
5981 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5982 (make_cleanup_free_search_symbols): Remove.
5983 (search_symbols): Return std::vector.
5984 (symbol_search::compare_search_syms): Now member of
5985 symbol_search. Change arguments.
5986 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5987 (symtab_symbol_info, rbreak_command): Update.
5988 * symtab.h (struct symbol_search) <next>: Remove.
5990 (symbol_search::operator<): New function.
5991 (symbol_search::operator==): New function.
5992 (search_symbols): Remove std::vector.
5993 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5994 (symbol_search::compare_search_syms): Declare.
5996 2017-10-06 Yao Qi <yao.qi@linaro.org>
5998 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5999 arch/aarch64-insn.o.
6001 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
6003 2017-10-06 Yao Qi <yao.qi@linaro.org>
6005 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
6006 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
6007 arch/arm-linux.o respectively.
6008 * configure.tgt: Likewise.
6010 2017-10-06 Yao Qi <yao.qi@linaro.org>
6012 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
6013 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
6015 2017-10-06 Pedro Alves <palves@redhat.com>
6017 * windows-nat.c: Include <algorithm>.
6019 2017-10-06 Yao Qi <yao.qi@linaro.org>
6021 * configure.tgt (i386_tobjs): New variable.
6022 (amd64_tobjs): New variable.
6023 Set $cpu_obs and $os_obs.
6025 2017-10-06 Yao Qi <yao.qi@linaro.org>
6027 * Makefile.in (CONFIG_SRC_SUBDIR): New.
6028 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
6029 (clean): Remove object files and dependency files.
6030 (distclean): Remove the directory.
6031 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6032 * configure: Re-generated.
6033 * configure.tgt: Replace amd64.o with arch/amd64.o.
6035 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
6038 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
6041 2017-10-05 Pedro Alves <palves@redhat.com>
6043 * linux-nat.c (linux_child_follow_fork): When following the parent
6044 and detaching the child, consult the parent thread's architecture
6045 instead of the child's.
6047 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
6049 * ax.h: Do not include "doublest.h".
6050 (union agent_val): Remove.
6052 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
6054 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
6055 (decimal_to_string): Return std::string object.
6056 (decimal_from_string): Accept std::string object. Return bool.
6057 (decimal_from_integral, decimal_from_doublest): Remove.
6058 (decimal_from_longest): Add prototype.
6059 (decimal_from_ulongest): Likewise.
6060 (decimal_to_longest): Likewise.
6061 (decimal_from_doublest): Likewise.
6062 * dfp.c: Do not include "gdbtypes.h" or "value.h".
6063 (MAX_DECIMAL_STRING): Move here.
6064 (decimal_to_string): Return std::string object.
6065 (decimal_from_string): Accept std::string object. Return bool.
6066 (decimal_from_integral): Remove, replace by ...
6067 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
6068 (decimal_to_longest): New function.
6069 (decimal_from_floating): Remove, replace by ...
6070 (decimal_from_doublest): ... this new function.
6071 (decimal_to_doublest): Update to new decimal_to_string interface.
6073 * value.c (unpack_long): Use decimal_to_longest.
6074 * valops.c (value_cast): Use decimal_from_doublest instead of
6075 decimal_from_floating. Use decimal_from_[u]longest isntead of
6076 decimal_from_integral.
6077 * valarith.c (value_args_as_decimal): Likewise.
6078 * valprint.c (print_decimal_floating): Update to new
6079 decimal_to_string interface.
6080 * printcmd.c (printf_decfloat): Likewise.
6081 * c-exp.y (parse_number): Update to new decimal_from_string interface.
6083 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
6085 * doublest.h: Do not include "floatformat.h". Remove stale comments.
6086 * gdbtypes.c: Include "floatformat.h".
6087 * value.c: Likewise.
6088 * m68k-tdep.c: Likewise.
6090 * findvar.c: Do not include "floatformat.h".
6091 * amd64-darwin-tdep.c: Likewise.
6092 * arm-linux-tdep.c: Likewise.
6093 * i386-darwin-tdep.c: Likewise.
6094 * i387-tdep.c: Likewise.
6095 * m68k-linux-tdep.c: Likewise.
6096 * mep-tdep.c: Likewise.
6097 * mips-tdep.c: Likewise.
6098 * nios2-tdep.c: Likewise.
6099 * s390-linux-tdep.c: Likewise.
6100 * sparc-obsd-tdep.c: Likewise.
6101 * sparc-tdep.c: Likewise.
6102 * sparc64-tdep.c: Likewise.
6103 * spu-tdep.c: Likewise.
6104 * tic6x-tdep.c: Likewise.
6105 * tilegx-tdep.c: Likewise.
6106 * vax-tdep.c: Likewise.
6107 * xstormy16-tdep.c: Likewise.
6108 * xtensa-tdep.c: Likewise.
6110 * top.c: Do not include "doublest.h".
6111 * aarch64-tdep.c: Likewise.
6112 * alpha-tdep.c: Likewise.
6113 * arm-linux-tdep.c: Likewise.
6114 * m68k-linux-tdep.c: Likewise.
6115 * tilegx-tdep.c: Likewise.
6116 * xstormy16-tdep.c: Likewise.
6118 2017-10-05 John Baldwin <jhb@FreeBSD.org>
6120 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
6121 (mipsn32_fbsd_sigframe): Define.
6122 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
6123 for FreeBSD/mipsn32.
6125 2017-10-05 John Baldwin <jhb@FreeBSD.org>
6127 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
6130 2017-10-05 Tristan Gingold <tgingold@free.fr>
6132 * MAINTAINERS (Misc): Update my email address.
6134 2017-10-04 Pedro Alves <palves@redhat.com>
6136 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
6137 it instead of target_gdbarch.
6138 (get_remote_state, get_remote_packet_size): Adjust
6139 get_remote_arch_state calls, passing down target_gdbarch
6141 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
6142 'gdbarch' and use it instead of target_gdbarch.
6143 (get_memory_packet_size): Adjust get_remote_arch_state calls,
6144 passing down target_gdbarch explicitly.
6145 (struct stop_reply) <arch>: New field.
6146 (remote_parse_stop_reply): Use the stopped thread's architecture,
6147 not the current inferior's. Save the architecture in the
6149 (process_stop_reply): Use the stop reply's architecture.
6150 (process_g_packet, remote_fetch_registers)
6151 (remote_prepare_to_store, store_registers_using_G)
6152 (remote_store_registers): Adjust get_remote_arch_state calls,
6153 using the regcache's architecture.
6154 (remote_get_trace_status): Adjust get_remote_arch_state calls,
6155 passing down target_gdbarch explicitly.
6156 * spu-multiarch.c (spu_thread_architecture): Defer to the target
6157 beneath instead of calling target_gdbarch.
6158 * target.c (default_thread_architecture): Use the specified
6159 inferior's architecture, instead of the current inferior's
6160 architecture (via target_gdbarch).
6162 2017-10-04 Pedro Alves <palves@redhat.com>
6164 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
6166 (regcache_print): Handle !target_has_registers here instead.
6168 2017-10-04 Pedro Alves <palves@redhat.com>
6170 * frame.c (create_test_frame): Delete.
6171 * frame.h (create_test_frame): Delete.
6172 * gdbarch-selftests.c: Include gdbthread.h and target.h.
6173 (class regcache_test): Delete.
6174 (test_target_has_registers, test_target_has_stack)
6175 (test_target_has_memory, test_target_prepare_to_store)
6176 (test_target_store_registers): New functions.
6177 (test_target_ops): New class.
6178 (register_to_value_test): Error out if there's already a
6179 process_stratum (or higher) target pushed. Create a fuller mock
6180 environment, with mock target_ops, inferior, address space, thread
6182 * progspace.c (struct address_space): Move to ...
6183 * progspace.h (struct address_space): ... here.
6184 * regcache.h (regcache::~regcache, regcache::raw_write)
6185 [GDB_SELF_TEST]: No longer virtual.
6187 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
6189 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
6191 2017-10-04 Pedro Alves <palves@redhat.com>
6193 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
6194 out of 'between TRY and CATCH'.
6196 2017-10-04 Pedro Alves <palves@redhat.com>
6198 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
6199 * common/common-exceptions.h (TRY): Open an outermost scope.
6200 Expand intro comment.
6202 (END_CATCH): Close the outermost scope.
6203 * completer.c (complete_line_internal): Add missing END_CATCH.
6205 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6207 * NEWS (Changes since GDB 8.0): Add entry about new
6208 'set-cwd-on-gdbserver' feature.
6209 (New remote packets): Add entry for QSetWorkingDir.
6210 * common/common-inferior.h (set_inferior_cwd): New prototype.
6211 * infcmd.c (set_inferior_cwd): Remove "static".
6212 (show_cwd_command): Expand text to include remote debugging.
6213 * remote.c: Add PACKET_QSetWorkingDir.
6214 (remote_protocol_features) <QSetWorkingDir>: New entry for
6215 PACKET_QSetWorkingDir.
6216 (extended_remote_set_inferior_cwd): New function.
6217 (extended_remote_create_inferior): Call
6218 "extended_remote_set_inferior_cwd".
6219 (_initialize_remote): Call "add_packet_config_cmd" for
6222 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6224 * NEWS (New commands): Mention "set/show cwd".
6225 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
6226 "cd" command's help text.
6227 * common/common-inferior.h (get_inferior_cwd): New prototype.
6228 * infcmd.c (inferior_cwd_scratch): New global variable.
6229 (set_inferior_cwd): New function.
6230 (get_inferior_cwd): Likewise.
6231 (set_cwd_command): Likewise.
6232 (show_cwd_command): Likewise.
6233 (_initialize_infcmd): Add "set/show cwd" commands.
6234 * inferior.h (class inferior) <cwd>: New field.
6235 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
6236 (fork_inferior): Change inferior's cwd before its execution.
6237 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
6240 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6242 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
6243 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
6244 (COMMON_OBS): Add gdb_tilde_expand.o.
6245 * common/gdb_tilde_expand.c: New file.
6246 * common/gdb_tilde_expand.h: Likewise.
6248 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
6250 * gdbarch.sh (objfile): Remove duplicate declaration.
6251 * gdbarch.h: Regenerate.
6253 2017-10-03 Tom Tromey <tom@tromey.com>
6255 * utils.c (internal_vproblem): Use string_vprintf.
6257 2017-10-03 Tom Tromey <tom@tromey.com>
6259 * printcmd.c (info_symbol_command): Use std::string.
6261 2017-10-03 Tom Tromey <tom@tromey.com>
6263 * top.c (gdb_safe_append_history): Use std::string.
6265 2017-10-03 Tom Tromey <tom@tromey.com>
6267 * event-top.c (stdin_event_handler): Update.
6268 * main.c (captured_main_1): Update.
6269 * top.h (make_delete_ui_cleanup): Remove.
6270 (struct ui): Add constructor and destructor.
6271 (new_ui, delete_ui): Remove.
6272 * top.c (make_delete_ui_cleanup): Remove.
6273 (new_ui_command): Use std::unique_ptr.
6274 (delete_ui_cleanup): Remove.
6275 (ui::ui): Rename from new_ui. Update.
6277 (ui::~ui): Rename from delete_ui. Update.
6279 2017-10-03 Tom Tromey <tom@tromey.com>
6281 * symfile.c (load_progress): Use gdb::byte_vector.
6283 2017-10-03 Tom Tromey <tom@tromey.com>
6285 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
6287 * printcmd.c (x_command): Remove unused declaration.
6288 * symfile.c (symbol_file_command): Remove unused declaration.
6290 2017-10-03 Tom Tromey <tom@tromey.com>
6292 * utils.c (internal_vproblem): Use std::string.
6293 (defaulted_query): Likewise.
6295 2017-10-03 Tom Tromey <tom@tromey.com>
6297 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
6298 * top.c (execute_command_to_string): Update.
6299 * utils.c (make_cleanup_restore_page_info): Remove.
6300 (do_restore_page_info_cleanup): Remove.
6301 (set_batch_flag_and_restore_page_info):
6303 (make_cleanup_restore_page_info): Remove.
6304 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6305 (~set_batch_flag_and_restore_page_info): New
6306 (make_cleanup_restore_uinteger): Remove.
6307 (make_cleanup_restore_integer): Remove.
6308 (struct restore_integer_closure): Remove.
6309 (restore_integer): Remove.
6310 * utils.h (struct set_batch_flag_and_restore_page_info): New
6312 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6313 (make_cleanup_restore_page_info): Remove.
6314 (make_cleanup_restore_uinteger) Remove.
6315 (make_cleanup_restore_integer) Remove.
6317 2017-10-03 Tom Tromey <tom@tromey.com>
6319 * record-full.h (record_full_gdb_operation_disable_set): Return
6320 scoped_restore_tmpl<int>.
6321 * infrun.c (adjust_pc_after_break): Update.
6322 (handle_signal_stop): Update.
6323 * record-full.c (record_full_gdb_operation_disable_set): Return
6324 scoped_restore_tmpl<int>.
6325 (record_full_wait_1, record_full_insert_breakpoint)
6326 (record_full_remove_breakpoint, record_full_save)
6327 (record_full_goto_insn): Update.
6329 2017-10-02 Tom Tromey <tom@tromey.com>
6332 * rust-lang.c (rust_val_print_str): New function.
6333 (val_print_struct): Call it.
6334 (rust_subscript): Preserve name of slice type.
6336 2017-10-02 Tom Tromey <tom@tromey.com>
6338 * rust-lang.c (rust_subscript): Handle slices in
6339 EVAL_AVOID_SIDE_EFFECTS case.
6341 2017-10-02 Tom Tromey <tom@tromey.com>
6343 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
6345 2017-10-02 Tom Tromey <tom@tromey.com>
6347 * rust-lang.h (rust_slice_type): Add "extern".
6349 2017-10-02 Tom Tromey <tom@tromey.com>
6350 Pedro Alves <palves@redhat.com>
6352 * ada-lang.h (ada_exc_info::operator<): Make const.
6353 (ada_exc_info::operator==): Make const.
6354 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
6357 2017-09-29 Tom Tromey <tom@tromey.com>
6359 * target.c (read_whatever_is_readable): Change type of "result".
6361 (free_memory_read_result_vector): Remove.
6362 (read_memory_robust): Change return type. Update.
6363 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
6364 bin2hex, std::string.
6365 * target.h (memory_read_result_s): Remove typedef.
6366 (free_memory_read_result_vector): Remove.
6367 (read_memory_robust): Return std::vector.
6369 2017-09-29 Tom Tromey <tom@tromey.com>
6371 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
6373 2017-09-29 Tom Tromey <tom@tromey.com>
6375 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6376 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6377 operator< and operator==.
6378 (ada_exceptions_list): Return a std::vector.
6379 * ada-lang.c (ada_exc_info::operator<): Rename from
6380 compare_ada_exception_info.
6381 (ada_exc_info::operator==): New.
6382 (sort_remove_dups_ada_exceptions_list): Change type of
6384 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6385 (ada_add_global_exceptions): Likewise.
6386 (ada_exceptions_list_1): Return a std::vector.
6387 (ada_exceptions_list): Likewise.
6389 2017-09-29 Tom Tromey <tom@tromey.com>
6391 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6393 (print_one_inferior): Update.
6394 (free_vector_of_ints): Remove.
6395 (list_available_thread_groups): Change "ids" to std::set.
6396 (mi_cmd_list_thread_groups): Update.
6397 (struct collect_cores_data) <core>: Now a std::set.
6398 (collect_cores): Update.
6400 (print_one_inferior): Update.
6402 2017-09-29 Tom Tromey <tom@tromey.com>
6404 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6405 (mi_execute_async_cli_command): Likewise.
6406 (mi_cmd_trace_frame_collected): Use field_fmt.
6408 2017-09-29 Tom Tromey <tom@tromey.com>
6410 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6413 2017-09-29 Tom Tromey <tom@tromey.com>
6415 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6417 2017-09-29 Tom Tromey <tom@tromey.com>
6419 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6421 2017-09-29 Tom Tromey <tom@tromey.com>
6423 * varobj.h (varobj_gen_name): Return std::string.
6424 * varobj.c (varobj_gen_name): Return std::string.
6425 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6426 (mi_cmd_var_delete): Don't copy "name".
6428 2017-09-29 Tom Tromey <tom@tromey.com>
6430 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6431 (mi_cmd_break_insert_1): Update.
6433 2017-09-29 Tom Tromey <tom@tromey.com>
6435 * target.h (make_scoped_defer_target_commit_resume): Update.
6436 * target.c (make_scoped_defer_target_commit_resume): Rename from
6437 make_cleanup_defer_target_commit_resume. Return a
6439 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6441 2017-09-29 Tom Tromey <tom@tromey.com>
6443 * main.c (captured_main_1): Remove unused declaration.
6444 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6446 2017-09-29 Tom Tromey <tom@tromey.com>
6448 * symtab.c (search_symbols): Remove unused outer cleanup.
6449 (make_source_files_completion_list): Remove unused declaration.
6451 2017-09-29 Tom Tromey <tom@tromey.com>
6453 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6455 2017-09-29 Tom Tromey <tom@tromey.com>
6457 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6460 2017-09-29 Tom Tromey <tom@tromey.com>
6462 * complaints.c (vcomplaint): Use std::string.
6464 2017-09-29 Tom Tromey <tom@tromey.com>
6466 * tracepoint.c (trace_variable_command): Use std::string.
6467 (encode_actions_1): Remove unused declarations.
6468 (create_tsv_from_upload): Use std::string.
6470 2017-09-29 Tom Tromey <tom@tromey.com>
6472 * cp-support.c (gdb_demangle): Use std::string.
6474 2017-09-29 Tom Tromey <tom@tromey.com>
6476 * stack.c (parse_frame_specification): Use std::string
6477 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6479 2017-09-29 Tom Tromey <tom@tromey.com>
6481 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6483 2017-09-29 Tom Tromey <tom@tromey.com>
6485 * utils.c (vfprintf_maybe_filtered): Use std::string.
6486 (vfprintf_unfiltered): Likewise.
6488 2017-09-29 Tom Tromey <tom@tromey.com>
6490 * event-top.c (top_level_prompt): Return std::string.
6491 (display_gdb_prompt): Update.
6493 2017-09-29 Tom Tromey <tom@tromey.com>
6495 * unittests/common-utils-selftests.c (format): New function.
6496 (string_vprintf_tests): New function.
6497 (_initialize_common_utils_selftests): Register new tests.
6498 * common/common-utils.c (string_vprintf): New function.
6499 * common/common-utils.h (string_vprintf): Declare.
6501 2017-09-29 Pedro Alves <palves@redhat.com>
6503 * common/rsp-low.c (unpack_varlen_hex): Constify.
6504 * common/rsp-low.h (unpack_varlen_hex): Constify.
6505 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6507 * remote.c (remote_set_permissions, read_ptid)
6508 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6509 (remote_static_tracepoint_marker_at)
6510 (remote_static_tracepoint_markers_by_strid)
6511 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6512 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6513 (parse_tracepoint_definition, parse_tsv_definition)
6514 (parse_static_tracepoint_marker_definition): Constify.
6515 * tracepoint.h (parse_static_tracepoint_marker_definition)
6516 (parse_trace_status, parse_tracepoint_status)
6517 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6519 2017-09-29 Pedro Alves <palves@redhat.com>
6521 * remote.c (target_buf, target_buf_size): Delete.
6522 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6523 Use the connection's packet buffer instead.
6524 All callers adjusted.
6525 (_initialize_remote): Remove references to target_buf and
6528 2017-09-28 Pedro Alves <palves@redhat.com>
6530 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6531 unittests/common-utils-selftests.c.
6532 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6533 (COMMON_OBS): Remove utils-selftests.o.
6534 * utils-selftests.c: Move to ...
6535 * unittests/common-utils-selftests.c: ... here and rename self
6536 test to "string_printf".
6538 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6540 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6541 having NULL cus or tus.
6543 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6545 * arm-tdep.c: (convert_from_extended): Remove.
6546 (convert_to_extended): Likewise.
6547 (arm_extract_return_value): Use convert_typed_floating.
6548 (arm_store_return_value): Likewise.
6550 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6551 * sh-tdep.c: Do not include "floatformat.h".
6552 (sh_littlebyte_bigword_type): New function.
6553 (sh_register_convert_to_virtual): Use convert_typed_floating.
6554 (sh_register_convert_to_raw): Likewise.
6555 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6556 (sh64_littlebyte_bigword_type): New function.
6557 (sh64_extract_return_value): Use convert_typed_floating.
6558 (sh64_register_convert_to_virtual): Likewise.
6559 (sh64_register_convert_to_raw): Likewise.
6561 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6563 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6564 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6566 * gdbtypes.h (union type_specific): Make field floatformat hold
6567 just a single struct floatformat, not an array.
6568 (floatformat_from_type): Move here.
6569 * gdbtypes.c (floatformat_from_type): Move here. Update to
6570 changed TYPE_FLOATFORMAT definition.
6571 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6572 (recursive_dump_type): Likewise.
6573 (init_float_type): Install correct floatformat for byte order.
6574 (arch_float_type): Likewise.
6576 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6578 * gdbtypes.c (init_type): Change incoming argument from
6579 length-in-bytes to length-in-bits. Assert length is a
6580 multiple of TARGET_CHAR_BITS.
6581 (arch_type, arch_flags_type): Likewise.
6582 (init_integer_type): Update call to init_type.
6583 (init_character_type): Likewise.
6584 (init_boolean_type): Likewise.
6585 (init_float_type): Likewise.
6586 (init_decfloat_type): Likewise.
6587 (init_complex_type): Likewise.
6588 (init_pointer_type): Likewise.
6589 (objfile_type): Likewise.
6590 (arch_integer_type): Update call to arch_type.
6591 (arch_character_type): Likewise.
6592 (arch_boolean_type): Likewise.
6593 (arch_float_type): Likewise.
6594 (arch_decfloat_type): Likewise.
6595 (arch_complex_type): Likewise.
6596 (arch_pointer_type): Likewise.
6597 (gdbtypes_post_init): Likewise.
6599 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6600 (read_base_type): Likewise.
6601 * mdebugread.c (basic_type): Likewise.
6602 * stabsread.c (dbx_init_float_type): Likewise.
6603 (rs6000_builtin_type): Likewise.
6604 (read_range_type): Likewise. Also, fix call to init_integer_type
6605 with erroneous length argument.
6607 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6608 * d-lang.c (build_d_types): Likewise.
6609 * f-lang.c (build_fortran_types): Likewise.
6610 * go-lang.c (build_go_types): Likewise.
6611 * opencl-lang.c (build_opencl_types): Likewise.
6612 * jit.c (finalize_symtab): Likewise.
6613 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6614 (build_std_type_info_type): Likewise.
6615 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6616 update call to arch_flags_type.
6618 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6620 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6621 * windows-tdep.c (windows_get_tlb_type): Likewise.
6623 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6624 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6625 * m32c-tdep.c (make_types): Likewise.
6626 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6627 (rl78_psw_type): Update call to arch_flags_type.
6628 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6629 * rx-tdep.c (rx_psw_type): Likewise.
6630 (rx_fpsw_type): Likewise.
6631 * sparc-tdep.c (sparc_psr_type): Likewise.
6632 (sparc_fsr_type): Likewise.
6633 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6634 (sparc64_ccr_type): Likewise.
6635 (sparc64_fsr_type): Likewise.
6636 (sparc64_fprs_type): Likewise.
6638 2017-09-27 Tom Tromey <tom@tromey.com>
6640 * findcmd.c (find_command): Constify.
6642 2017-09-27 Tom Tromey <tom@tromey.com>
6644 * ada-tasks.c (task_command_1, task_command): Constify.
6646 2017-09-27 Tom Tromey <tom@tromey.com>
6648 * symtab.c (maintenance_print_symbol_cache)
6649 (maintenance_flush_symbol_cache)
6650 (maintenance_print_symbol_cache_statistics): Constify.
6652 2017-09-27 Tom Tromey <tom@tromey.com>
6654 * inferior.c (detach_inferior_command, kill_inferior_command)
6655 (inferior_command): Constify.
6657 2017-09-27 Tom Tromey <tom@tromey.com>
6659 * regcache.c (regcache_print, maintenance_print_registers)
6660 (maintenance_print_raw_registers)
6661 (maintenance_print_cooked_registers)
6662 (maintenance_print_register_groups)
6663 (maintenance_print_remote_registers): Constify.
6665 2017-09-27 Tom Tromey <tom@tromey.com>
6667 * printcmd.c (map_display_numbers, undisplay_command)
6668 (enable_disable_display_command, enable_display_command)
6669 (disable_display_command): Constify.
6671 2017-09-27 Tom Tromey <tom@tromey.com>
6673 * breakpoint.h (delete_command): Don't declare.
6674 * breakpoint.c (delete_command, enable_once_command)
6675 (enable_count_command, enable_delete_command, breakpoint_1)
6676 (maintenance_info_breakpoints, stopin_command, stopat_command)
6677 (delete_command, delete_trace_command, save_breakpoints)
6678 (save_breakpoints_command, save_tracepoints_command): Constify.
6680 2017-09-27 Tom Tromey <tom@tromey.com>
6682 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6683 (skip_ws, extract_identifier, macro_define_command)
6684 (macro_undef_command, macro_list_command): Constify.
6686 2017-09-27 Tom Tromey <tom@tromey.com>
6688 * infcmd.c (environment_info, set_environment_command)
6689 (unset_environment_command, path_info, info_proc_cmd_1)
6690 (info_proc_cmd_mappings, info_proc_cmd_stat)
6691 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6692 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6694 2017-09-27 Tom Tromey <tom@tromey.com>
6696 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6699 2017-09-27 Tom Tromey <tom@tromey.com>
6701 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6703 2017-09-27 Tom Tromey <tom@tromey.com>
6705 * demangle.c (demangle_command): Constify.
6707 2017-09-27 Tom Tromey <tom@tromey.com>
6709 * progspace.c (maintenance_info_program_spaces_command):
6712 2017-09-27 Tom Tromey <tom@tromey.com>
6714 * compile/compile.c (check_raw_argument, compile_file_command)
6715 (compile_code_command, compile_print_command): Constify.
6717 2017-09-27 Tom Tromey <tom@tromey.com>
6719 * reggroups.c (maintenance_print_reggroups): Constify.
6721 2017-09-27 Tom Tromey <tom@tromey.com>
6723 * dwarf2read.c (save_gdb_index_command): Constify.
6725 2017-09-27 Tom Tromey <tom@tromey.com>
6727 * stap-probe.c (info_probes_stap_command): Constify.
6729 2017-09-27 Tom Tromey <tom@tromey.com>
6731 * fork-child.c (unset_exec_wrapper_command): Constify.
6733 2017-09-27 Tom Tromey <tom@tromey.com>
6735 * btrace.c (get_uint, get_context_size, no_chunk)
6736 (maint_btrace_packet_history_cmd)
6737 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6738 (maint_info_btrace_cmd): Constify.
6740 2017-09-27 Tom Tromey <tom@tromey.com>
6742 * reverse.c (delete_bookmark_command): Constify.
6744 2017-09-27 Tom Tromey <tom@tromey.com>
6746 * remote.c (set_memory_packet_size)
6747 (set_memory_write_packet_size, show_memory_write_packet_size)
6748 (set_memory_read_packet_size, show_memory_read_packet_size)
6749 (compare_sections_command, packet_command, remote_put_command)
6750 (remote_get_command, remote_delete_command): Constify.
6752 2017-09-27 Tom Tromey <tom@tromey.com>
6754 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6755 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6756 (set_mipsfpu_auto_command): Constify.
6758 2017-09-27 Tom Tromey <tom@tromey.com>
6760 * cli/cli-cmds.h (cd_command): Constify.
6761 * cli/cli-cmds.c (cd_command): Constify.
6763 2017-09-27 Tom Tromey <tom@tromey.com>
6765 * thread.c (thread_name_command, thread_find_command): Constify.
6767 2017-09-27 Tom Tromey <tom@tromey.com>
6769 * probe.c (enable_probes_command, disable_probes_command):
6772 2017-09-27 Tom Tromey <tom@tromey.com>
6774 * symfile.c (symbol_file_command): Constify.
6775 * gdbcore.h (deprecated_file_changed_hook): Constify.
6776 * exec.c (deprecated_file_changed_hook, exec_file_command)
6777 (file_command): Constify.
6778 * defs.h (symbol_file_command): Constify.
6780 2017-09-27 Tom Tromey <tom@tromey.com>
6782 * remote-fileio.c (set_system_call_allowed)
6783 (show_system_call_allowed): Constify.
6785 2017-09-27 Tom Tromey <tom@tromey.com>
6787 * tracepoint.c (delete_trace_variable_command)
6788 (tfind_end_command, tfind_start_command, tfind_pc_command)
6789 (tfind_tracepoint_command, tfind_line_command)
6790 (tfind_range_command, tfind_outside_command): Constify.
6792 2017-09-27 Tom Tromey <tom@tromey.com>
6794 * ax-gdb.c (maint_agent_printf_command, agent_command)
6795 (agent_eval_command): Constify.
6797 2017-09-27 Tom Tromey <tom@tromey.com>
6799 * tracepoint.c (info_scope_command): Constify.
6800 * python/python.c (gdbpy_decode_line): Constify.
6801 * python/py-breakpoint.c (bppy_init): Constify.
6802 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6803 * location.h: (new_linespec_location)
6804 (string_to_event_location_basic, string_to_event_location):
6806 * location.c (new_linespec_location)
6807 (string_to_event_location_basic, string_to_event_location):
6809 * linespec.h (decode_line_with_current_source)
6810 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6811 * linespec.c (linespec_lex_to_end)
6812 (decode_line_with_current_source)
6813 (decode_line_with_last_displayed): Constify.
6814 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6816 * cli/cli-cmds.c (edit_command, list_command): Constify.
6817 * breakpoint.h (until_break_command, watch_command_wrapper)
6818 (awatch_command_wrapper, rwatch_command_wrapper)
6819 (init_ada_exception_breakpoint): Constify.
6820 * breakpoint.c (break_command_1, dprintf_command)
6821 (break_range_command, watch_command_wrapper)
6822 (rwatch_command_wrapper, awatch_command_wrapper)
6823 (until_break_command, init_ada_exception_breakpoint)
6824 (strace_marker_create_sals_from_location, trace_command)
6825 (ftrace_command, strace_command, struct tracepoint): Constify.
6826 * ax-gdb.c (agent_command_1): Constify.
6827 * ada-lang.c (ada_exception_sal): Constify.
6829 2017-09-27 Tom Tromey <tom@tromey.com>
6831 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6832 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6833 (get_context_size, no_chunk, get_insn_history_modifiers)
6834 (cmd_record_insn_history, get_call_history_modifiers)
6835 (cmd_record_call_history): Constify.
6837 2017-09-27 Tom Tromey <tom@tromey.com>
6839 * source.c (show_substitute_path_command)
6840 (unset_substitute_path_command, set_substitute_path_command):
6843 2017-09-27 Tom Tromey <tom@tromey.com>
6845 * typeprint.c (maintenance_print_type): Constify.
6846 * maint.c (maintenance_dump_me, maintenance_demangle)
6847 (maintenance_time_display, maintenance_info_sections)
6848 (maintenance_print_statistics, maintenance_deprecate)
6849 (maintenance_undeprecate): Constify.
6850 (maintenance_do_deprecate): Constify. Use std::string.
6851 (maintenance_selftest): Constify.
6852 * gdbtypes.h (maintenance_print_type): Constify.
6854 2017-09-27 Tom Tromey <tom@tromey.com>
6856 * hppa-tdep.c (unwind_command): Constify.
6858 2017-09-27 Tom Tromey <tom@tromey.com>
6860 * target-descriptions.c (unset_tdesc_filename_cmd)
6861 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6864 2017-09-27 Tom Tromey <tom@tromey.com>
6866 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6868 2017-09-27 Tom Tromey <tom@tromey.com>
6870 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6872 2017-09-27 Tom Tromey <tom@tromey.com>
6874 * tui/tui-regs.c (tui_reg_command): Constify.
6876 2017-09-27 Tom Tromey <tom@tromey.com>
6878 * skip.c (skip_file_command, skip_function_command)
6879 (skip_enable_command, skip_disable_command, skip_delete_command):
6882 2017-09-27 Tom Tromey <tom@tromey.com>
6884 * record-btrace.c (cmd_record_btrace_bts_start)
6885 (cmd_record_btrace_pt_start): Constify.
6887 2017-09-27 Tom Tromey <tom@tromey.com>
6889 * symmisc.c (maintenance_print_symbols)
6890 (maintenance_print_msymbols, maintenance_print_objfiles)
6891 (maintenance_info_symtabs, maintenance_check_symtabs)
6892 (maintenance_expand_symtabs, maintenance_info_line_tables):
6895 2017-09-27 Tom Tromey <tom@tromey.com>
6897 * top.c (new_ui_command): Constify.
6899 2017-09-27 Tom Tromey <tom@tromey.com>
6901 * symfile.c (add_symbol_file_command)
6902 (remove_symbol_file_command, list_overlays_command)
6903 (map_overlay_command, unmap_overlay_command)
6904 (overlay_auto_command, overlay_manual_command)
6905 (overlay_off_command, overlay_load_command): Constify.
6907 2017-09-27 Tom Tromey <tom@tromey.com>
6909 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6910 (info_spu_mailbox_command, info_spu_dma_command)
6911 (info_spu_proxydma_command): Constify.
6913 2017-09-27 Tom Tromey <tom@tromey.com>
6915 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6917 2017-09-27 Tom Tromey <tom@tromey.com>
6919 * cli/cli-script.c (user_defined_command): Constify.
6921 2017-09-27 Tom Tromey <tom@tromey.com>
6923 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6924 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6925 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6926 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6927 (dump_binary_value, append_binary_memory, append_binary_value):
6929 (struct dump_context) <func>: Constify.
6930 (add_dump_command): Update.
6932 2017-09-27 Tom Tromey <tom@tromey.com>
6934 * cli/cli-cmds.c (show_version, show_configuration)
6935 (source_command, show_user): Constify.
6937 2017-09-27 Tom Tromey <tom@tromey.com>
6939 * target.c (maintenance_print_target_stack): Constify.
6941 2017-09-27 Tom Tromey <tom@tromey.com>
6943 * interps.c (interpreter_exec_cmd): Constify.
6945 2017-09-27 Tom Tromey <tom@tromey.com>
6947 * record-full.c (cmd_record_full_restore): Constify.
6949 2017-09-27 Tom Tromey <tom@tromey.com>
6951 * memattr.c (enable_mem_command, disable_mem_command)
6952 (delete_mem_command): Constify.
6954 2017-09-27 Tom Tromey <tom@tromey.com>
6956 * value.c (show_convenience): Constify.
6958 2017-09-27 Tom Tromey <tom@tromey.com>
6960 * gdbcore.h (core_file_command): Update.
6961 * corefile.c (core_file_command): Constify.
6963 2017-09-27 Tom Tromey <tom@tromey.com>
6965 * user-regs.c (maintenance_print_user_registers): Constify.
6967 2017-09-27 Tom Tromey <tom@tromey.com>
6969 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6971 2017-09-27 Tom Tromey <tom@tromey.com>
6973 * cp-support.c (first_component_command): Constify.
6975 2017-09-27 Tom Tromey <tom@tromey.com>
6977 * psymtab.c (maintenance_print_psymbols)
6978 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6981 2017-09-27 Tom Tromey <tom@tromey.com>
6983 * windows-tdep.c (display_tib): Constify.
6985 2017-09-27 Tom Tromey <tom@tromey.com>
6987 * linux-fork.c (delete_checkpoint_command)
6988 (detach_checkpoint_command): Constify.
6990 2017-09-27 Tom Tromey <tom@tromey.com>
6992 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6994 2017-09-27 Tom Tromey <tom@tromey.com>
6996 * arc-tdep.c (dump_arc_instruction_command): Constify.
6998 2017-09-27 Tom Tromey <tom@tromey.com>
7000 * valprint.c (set_radix, show_radix): Constify.
7002 2017-09-27 Tom Tromey <tom@tromey.com>
7004 * dtrace-probe.c (info_probes_dtrace_command): Constify.
7006 2017-09-27 Tom Tromey <tom@tromey.com>
7008 * command.h (not_just_help_class_command): Update.
7009 * cli/cli-decode.h (not_just_help_class_command): Update.
7010 * cli/cli-decode.c (not_just_help_class_command): Constify.
7012 2017-09-27 Tom Tromey <tom@tromey.com>
7014 * gdb_bfd.c (maintenance_info_bfds): Constify.
7016 2017-09-27 Tom Tromey <tom@tromey.com>
7018 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
7020 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
7021 (do_const_cfunc): New function.
7022 (cmd_cfunc_eq): New overload.
7023 (cli_user_command_p): Check do_const_cfunc.
7024 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
7026 * command.h (add_cmd): Add const overload and no-function
7028 (set_cmd_cfunc): Add const overload.
7029 (cmd_const_cfunc_ftype): Declare.
7030 (cmd_cfunc_eq): Add const overload.
7031 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
7032 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
7035 2017-09-27 Tom Tromey <tom@tromey.com>
7037 * macroexp.c (get_next_token_for_substitution): New function.
7038 (substitute_args): Call it. Check for __VA_OPT__.
7040 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
7041 Pedro Alves <palves@redhat.com>
7043 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
7044 producer_is_icc_lt_14.
7045 (producer_is_icc_lt_14): New function.
7046 (check_producer): Add code for checking version of ICC.
7047 (producer_is_icc): Move to producer.c.
7048 (read_structure_type): Restrict ICC workaround to ICC<14.
7049 * producer.c: Include selftest.h.
7050 (producer_is_icc, producer_parsing_tests, _initialize_producer):
7052 * producer.h (producer_is_icc): New declaration.
7054 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
7056 * Makefile.in (SFILES): Add producer.c.
7057 (COMMON_OBS): Add producer.o
7058 * amd64-tdep.c (producer.h): Add new include.
7059 * dwarf2read.c (producer.h): Add new include.
7060 * producer.c: New file.
7061 * producer.h: New file.
7062 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
7064 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
7067 2017-09-26 Matthias Klose <doko@ubuntu.com>
7069 * configure.ac: Search ncursesw before ncurses.
7070 Check ncursesw/ncurses.h before ncurses/ncurses.h.
7071 * gdb_curses.h: Include <ncursesw/ncurses.h>
7072 * config.in, configure: Regenerate.
7074 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7077 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
7079 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
7080 Remove i386sol2 support.
7081 * configure.nat <i386sol2>: Remove.
7082 <sol2-64>: Fold into ...
7084 Move common settings to default section.
7086 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
7087 x86_64-*-solaris2.1[0-9]*>: Rename to ...
7088 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
7089 <i[34567]86-*-solaris*>: Remove.
7090 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
7092 * configure.ac: Remove wctype in libw check.
7093 (_MSE_INT_H): Don't define on Solaris 7-9.
7094 <solaris*>: Remove libthread_db.so.1 check.
7095 * configure: Regenerate.
7096 * config.in: Regenerate.
7098 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
7099 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
7100 (gdb_ps_size_t): Remove.
7101 Use base types in users.
7102 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
7104 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
7106 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7109 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
7110 (adi_is_addr_mapped): Likewise.
7111 (PSR_ICC): Don't redefine.
7112 (PSR_IMPL): Likewise.
7114 2017-09-25 Tom Tromey <tom@tromey.com>
7116 * regcache.c (regcache::dump): Use string_printf.
7118 2017-09-25 Tom Tromey <tom@tromey.com>
7120 * regcache.c (class regcache_invalidator): New.
7121 (struct register_to_invalidate): Remove.
7122 (make_cleanup_regcache_invalidate): Remove.
7123 (regcache::raw_write): Use regcache_invalidator.
7125 2017-09-25 Tom Tromey <tom@tromey.com>
7127 * spu-tdep.c (spu2ppu_sniffer): Update.
7128 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
7129 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
7131 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
7132 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
7133 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
7134 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
7135 (frame_pop): Update.
7137 2017-09-25 Tom Tromey <tom@tromey.com>
7139 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
7140 * regcache.h (regcache_xfree): Don't declare.
7141 * regcache.c (regcache_xfree): Remove.
7142 (do_regcache_xfree): Use delete.
7143 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
7144 * linux-fork.c (free_fork): Use delete.
7145 (fork_save_infrun_state): Likewise.
7146 * jit.c (jit_dealloc_cache): Use delete.
7147 * infrun.c (discard_infcall_suspend_state): Use delete.
7149 2017-09-25 Tom Tromey <tom@tromey.com>
7151 * regcache.h (regcache_xmalloc): Don't declare.
7152 (regcache_raw_set_cached_value): Update comment.
7153 * regcache.c (regcache_xmalloc): Remove.
7154 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
7155 * jit.c (jit_frame_sniffer): Use new.
7156 * frame.c (frame_save_as_regcache): Use new.
7158 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7160 * NEWS: Advertise support for guarded-storage registers on IBM z.
7162 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7164 * s390-linux-nat.c (have_regset_gs): New static variable.
7165 (s390_linux_fetch_inferior_registers): Handle guarded-storage
7166 control block and guarded-storage broadcast control regsets.
7167 (s390_read_description): Detect whether the target has
7168 guarded-storage support, return appropriate tdesc.
7169 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
7170 (features/s390x-gs-linux64.c): Likewise.
7171 (struct gdbarch_tdep) <have_gs>: New field.
7172 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
7173 (s390_gsbc_regset): New variables.
7174 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
7175 and s390_gsbc_regset, if applicable.
7176 (s390_core_read_description): Check whether core file was from a
7177 target with guarded-storage support; include appropriate regsets.
7178 (s390_gdbarch_init): Add registers for guarded-storage support.
7179 (_initialize_s390_tdep): Initialize new target descriptions that
7180 include registers for guarded-storage support.
7181 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
7182 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
7183 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
7184 (S390_NUM_REGS): Adjust macro definition.
7185 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
7186 (tdesc_s390x_gs_linux64): New declarations.
7188 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7190 * features/s390-gs-linux64.xml: New file.
7191 * features/s390-gs.xml: New file.
7192 * features/s390-gsbc.xml: New file.
7193 * features/s390x-gs-linux64.xml: New file.
7194 * features/Makefile (WHICH): Add s390-gs-linux64 and
7196 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
7197 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
7198 * features/s390-gs-linux64.c: New generated file.
7199 * features/s390x-gs-linux64.c: New file.
7200 * regformats/s390-gs-linux64.dat: New file.
7201 * regformats/s390x-gs-linux64.dat: New file.
7203 2017-09-23 Tom Tromey <tom@tromey.com>
7205 * defs.h (make_cleanup_override_quit_handler): Don't declare.
7207 2017-09-22 Tom Tromey <tom@tromey.com>
7209 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
7210 type to scoped_restore_tmpl.
7211 <scoped_input_handler>: Initialize m_quit_handler directly.
7213 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7215 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
7216 (cd_command): Likewise. Free "current_directory" before
7218 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
7219 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
7220 * top.c (gdb_dirbuf): Remove global declaration.
7221 * top.h (gdb_dirbuf): Likewise.
7223 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7225 * gnulib/aclocal.m4: Regenerate.
7226 * gnulib/config.in: Regenerate.
7227 * gnulib/configure: Regenerate.
7228 * gnulib/import/Makefile.am: Regenerate.
7229 * gnulib/import/Makefile.in: Regenerate.
7230 * gnulib/import/assure.h: New file.
7231 * gnulib/import/at-func.c: Likewise
7232 * gnulib/import/chdir-long.c: New file.
7233 * gnulib/import/chdir-long.h: New file.
7234 * gnulib/import/cloexec.c: New file.
7235 * gnulib/import/cloexec.h: New file.
7236 * gnulib/import/close.c: New file.
7237 * gnulib/import/closedir.c: New file.
7238 * gnulib/import/dirent-private.h: New file.
7239 * gnulib/import/dup-safer.c: New file.
7240 * gnulib/import/dup.c: New file.
7241 * gnulib/import/dup2.c: New file.
7242 * gnulib/import/error.c: New file.
7243 * gnulib/import/error.h: New file.
7244 * gnulib/import/exitfail.c: New file.
7245 * gnulib/import/exitfail.h: New file.
7246 * gnulib/import/fchdir.c: New file.
7247 * gnulib/import/fcntl.c: New file.
7248 * gnulib/import/fcntl.in.h: New file.
7249 * gnulib/import/fd-hook.c: New file.
7250 * gnulib/import/fd-hook.h: New file.
7251 * gnulib/import/fd-safer.c: New file.
7252 * gnulib/import/fdopendir.c: New file.
7253 * gnulib/import/filename.h: New file.
7254 * gnulib/import/filenamecat-lgpl.c: New file.
7255 * gnulib/import/filenamecat.h: New file.
7256 * gnulib/import/fstat.c: New file.
7257 * gnulib/import/fstatat.c: New file.
7258 * gnulib/import/getcwd-lgpl.c: New file.
7259 * gnulib/import/getcwd.c: New file.
7260 * gnulib/import/getdtablesize.c: New file.
7261 * gnulib/import/getlogin_r.c: New file.
7262 * gnulib/import/getprogname.c: New file.
7263 * gnulib/import/getprogname.h: New file.
7264 * gnulib/import/gettext.h: New file.
7265 * gnulib/import/glob-libc.h: New file.
7266 * gnulib/import/glob.c: New file.
7267 * gnulib/import/glob.in.h: New file.
7268 * gnulib/import/intprops.h: New file.
7269 * gnulib/import/m4/chdir-long.m4: New file.
7270 * gnulib/import/m4/close.m4: New file.
7271 * gnulib/import/m4/closedir.m4: New file.
7272 * gnulib/import/m4/d-ino.m4: New file.
7273 * gnulib/import/m4/d-type.m4: New file.
7274 * gnulib/import/m4/dup.m4: New file.
7275 * gnulib/import/m4/dup2.m4: New file.
7276 * gnulib/import/m4/error.m4: New file.
7277 * gnulib/import/m4/fchdir.m4: New file.
7278 * gnulib/import/m4/fcntl.m4: New file.
7279 * gnulib/import/m4/fcntl_h.m4: New file.
7280 * gnulib/import/m4/fdopendir.m4: New file.
7281 * gnulib/import/m4/filenamecat.m4: New file.
7282 * gnulib/import/m4/fstat.m4: New file.
7283 * gnulib/import/m4/fstatat.m4: New file.
7284 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
7285 * gnulib/import/m4/getcwd-path-max.m4: New file.
7286 * gnulib/import/m4/getcwd.m4: New file.
7287 * gnulib/import/m4/getdtablesize.m4: New file.
7288 * gnulib/import/m4/getlogin_r.m4: New file.
7289 * gnulib/import/m4/getprogname.m4: New file.
7290 * gnulib/import/m4/glob.m4: New file.
7291 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7292 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7293 * gnulib/import/m4/mempcpy.m4: New file.
7294 * gnulib/import/m4/memrchr.m4: New file.
7295 * gnulib/import/m4/mode_t.m4: New file.
7296 * gnulib/import/m4/msvc-inval.m4: New file.
7297 * gnulib/import/m4/msvc-nothrow.m4: New file.
7298 * gnulib/import/m4/open.m4: New file.
7299 * gnulib/import/m4/openat.m4: New file.
7300 * gnulib/import/m4/opendir.m4: New file.
7301 * gnulib/import/m4/readdir.m4: New file.
7302 * gnulib/import/m4/realloc.m4: New file.
7303 * gnulib/import/m4/rewinddir.m4: New file.
7304 * gnulib/import/m4/save-cwd.m4: New file.
7305 * gnulib/import/m4/strdup.m4: New file.
7306 * gnulib/import/m4/strerror.m4: New file.
7307 * gnulib/import/m4/unistd-safer.m4: New file.
7308 * gnulib/import/mempcpy.c: New file.
7309 * gnulib/import/memrchr.c: New file.
7310 * gnulib/import/msvc-inval.c: New file.
7311 * gnulib/import/msvc-inval.h: New file.
7312 * gnulib/import/msvc-nothrow.c: New file.
7313 * gnulib/import/msvc-nothrow.h: New file.
7314 * gnulib/import/open.c: New file.
7315 * gnulib/import/openat-die.c: New file.
7316 * gnulib/import/openat-priv.h: New file.
7317 * gnulib/import/openat-proc.c: New file.
7318 * gnulib/import/openat.c: New file.
7319 * gnulib/import/openat.h: New file.
7320 * gnulib/import/opendir.c: New file.
7321 * gnulib/import/pipe-safer.c: New file.
7322 * gnulib/import/readdir.c: New file.
7323 * gnulib/import/realloc.c: New file.
7324 * gnulib/import/rewinddir.c: New file.
7325 * gnulib/import/save-cwd.c: New file.
7326 * gnulib/import/save-cwd.h: New file.
7327 * gnulib/import/strdup.c: New file.
7328 * gnulib/import/strerror-override.c: New file.
7329 * gnulib/import/strerror-override.h: New file.
7330 * gnulib/import/strerror.c: New file.
7331 * gnulib/import/unistd--.h: New file.
7332 * gnulib/import/unistd-safer.h: New file.
7333 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7334 "getcwd" and "glob".
7335 * ser-tcp.c: Undefine "close" before redefining it.
7337 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7339 * guile/scm-value.c (gdbscm_value_address): Initialize address,
7342 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7344 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
7345 <sol2,sparc>: Likewise.
7346 <sol2-64,i386>: Likewise.
7348 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
7349 -Wdeprecated-declarations on *-*-solaris*.
7350 * configure: Regenerate.
7352 * procfs.c: Include "nat/inferior.h".
7353 (procfs_info_proc): Fix typo.
7355 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7357 * remote.c (vector): Include.
7358 (struct private_thread_info): Add field, thread_handle.
7359 (free_private_thread_info): Deallocate storage associated with
7361 (get_private_info_thread): Initialize `thread_handle' field.
7362 (struct thread_item): Add field, thread_handle.
7363 (clear_threads_listing_context): Deallocate storage associated
7365 (start_thread): Add support for "handle" attribute.
7366 (thread_attributes): Add "handle".
7367 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
7369 (remote_update_thread_list): Update thread_handle.
7370 (remote_thread_handle_to_thread_info): New function.
7371 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
7373 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7375 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7377 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7378 * python/python-internal.h (thread_object_type): Declare.
7380 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7382 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7383 (target_thread_handle_to_thread_info): Declare.
7384 * target.c (target_thread_handle_to_thread_info): New function.
7385 * target-delegates.c: Regenerate.
7386 * gdbthread.h (find_thread_by_handle): Declare.
7387 * thread.c (find_thread_by_handle): New function.
7388 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7390 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7392 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7394 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7396 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7398 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7400 2017-09-21 Yao Qi <yao.qi@linaro.org>
7402 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7405 2017-09-20 Tom Tromey <tom@tromey.com>
7407 * breakpoint.c (struct counted_command_line): Remove.
7408 (breakpoint_commands): Update.
7409 (alloc_counted_command_line, incref_counted_command_line)
7410 (decref_counted_command_line, do_cleanup_counted_command_line)
7411 (make_cleanup_decref_counted_command_line): Remove.
7412 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7413 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7414 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7415 (save_breakpoints): Update.
7416 * breakpoint.h (counted_command_line): Now a typedef to
7418 (struct breakpoint) <commands>: Now a counted_command_line.
7419 (struct bpstats) <command>: Likewise.
7421 2017-09-20 Tom Tromey <tom@tromey.com>
7423 * breakpoint.c (struct commands_info, do_map_commands_command):
7425 (commands_command_1): Update.
7426 (iterate_over_related_breakpoints): Take a function_view.
7427 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7428 (delete_command): Update.
7429 (map_breakpoint_numbers): Take a function_view.
7430 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7431 (disable_command): Update.
7432 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7433 (enable_command): Update.
7434 (struct disp_data, do_enable_breakpoint_disp)
7435 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7436 (do_map_enable_delete_breakpoint): Remove.
7437 (enable_once_command, enable_count_command, enable_delete_command)
7438 (delete_trace_variable_command): Update.
7440 2017-09-20 Tom Tromey <tom@tromey.com>
7442 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7443 (bpstat_clear): Use delete.
7444 (bpstats): New constructors.
7445 (bpstat_copy, bpstat_stop_status): Use new.
7446 (dprintf_after_condition_true): Update.
7447 * breakpoint.h (bpstats::bpstats): Add constructors.
7448 (bpstats::~bpstats): Add destructor.
7450 2017-09-20 Pedro Alves <palves@redhat.com>
7452 * eval.c (make_params): Delete, refactored as ...
7453 (class fake_method): ... this new type's ctor.
7454 (fake_method::~fake_method): New.
7455 (evaluate_subexp_standard): Use 'fake_method'.
7457 2017-09-20 Tom Tromey <tom@tromey.com>
7459 * windows-nat.c (get_windows_debug_event, windows_wait)
7460 (do_initial_windows_stuff, windows_attach): Update.
7461 * utils.c (vwarning, internal_vproblem): Update.
7462 (ui_unregister_input_event_handler_cleanup)
7463 (prepare_to_handle_input): Remove.
7464 (class scoped_input_handler): New.
7465 (defaulted_query, prompt_for_continue): Update.
7466 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7468 * top.c (undo_terminal_modifications_before_exit): Update.
7469 * target/target.h (target_terminal_init, target_terminal_inferior)
7470 (target_terminal_ours): Don't declare.
7471 (class target_terminal): New.
7472 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7473 (target_terminal_ours_for_output)
7474 (make_cleanup_restore_target_terminal): Don't declare.
7475 (target_terminal_info): Remove.
7476 * target.c (enum terminal_state, terminal_state): Remove.
7477 (target_terminal::terminal_state): Define.
7478 (target_terminal::init): Rename from target_terminal_init.
7479 (target_terminal::inferior): Rename from
7480 target_terminal_inferior.
7481 (target_terminal::ours): Rename from target_terminal_ours.
7482 (target_terminal::ours_for_output): Rename from
7483 target_terminal_ours_for_output.
7484 (target_terminal::info): New method.
7485 (cleanup_restore_target_terminal)
7486 (make_cleanup_restore_target_terminal): Remove.
7487 * solib.c (handle_solib_event): Update.
7488 * remote.c (remote_serial_quit_handler): Update.
7489 (remote_terminal_inferior, remote_wait_as): Update.
7490 * record-full.c (record_full_wait_1): Update.
7491 * nto-procfs.c (procfs_create_inferior): Update.
7492 * nat/fork-inferior.c (startup_inferior): Update.
7493 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7494 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7495 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7496 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7497 (mi_breakpoint_created, mi_breakpoint_deleted)
7498 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7499 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7500 (mi_user_selected_context_changed, report_initial_inferior):
7502 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7503 (linux_nat_terminal_inferior): Update.
7504 * infrun.c (follow_fork_inferior)
7505 (handle_vfork_child_exec_or_exit, do_target_resume)
7506 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7507 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7509 * inflow.c (child_terminal_init, info_terminal_command): Update.
7510 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7511 (attach_command): Update.
7512 * infcall.c (call_thread_fsm_should_stop): Update.
7513 * gnu-nat.c (gnu_attach): Update.
7514 * extension.c (struct active_ext_lang_state)
7515 (restore_active_ext_lang): Update.
7516 * exceptions.c (print_flush): Update.
7517 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7518 (struct quit_handler_cleanup_data, restore_quit_handler)
7519 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7521 * cp-support.c (gdb_demangle): Update.
7522 * breakpoint.c (update_inserted_breakpoint_locations)
7523 (insert_breakpoint_locations, handle_jit_event)
7524 (disable_breakpoints_in_unloaded_shlib): Update.
7525 * annotate.c (annotate_breakpoints_invalid)
7526 (annotate_frames_invalid): Update.
7528 2017-09-20 Tom Tromey <tom@tromey.com>
7530 * main.c (catch_command_errors): Rename from
7531 catch_command_errors_const.
7532 (captured_main_1): Update.
7534 2017-09-20 Pedro Alves <palves@redhat.com>
7536 * cli/cli-cmds.c (list_command): Use print_sal_location.
7537 (print_sal_location): New function.
7538 (ambiguous_line_spec): Use print_sal_location.
7539 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7540 * symtab.c (find_function_start_sal): Likewise.
7541 * symtab.h (symtab_and_line::symbol): New field.
7543 2017-09-20 Pedro Alves <palves@redhat.com>
7545 * linespec.c (minsym_found): Handle non-text minsyms.
7546 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7548 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7550 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7553 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7555 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7556 vmovups instead vmovaps.
7557 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7559 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7561 * NEWS (Changes since GDB 8.0): Add starti.
7562 * infcmd.c (enum run_break): New.
7563 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7565 (run_command): Use enum run_how.
7566 (start_command): Likewise.
7567 (starti_command): New function.
7568 (RUN_ARGS_HELP): New macro.
7569 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7570 commands. Add starti command.
7572 2017-09-19 Yao Qi <yao.qi@linaro.org>
7574 * Makefile.in (monitor.o): Remove the rule.
7576 2017-09-19 Yao Qi <yao.qi@linaro.org>
7578 * annotate.h (struct annotate_arg_emitter): Use
7579 DISABLE_COPY_AND_ASSIGN.
7580 * common/refcounted-object.h (refcounted_object): Likewise.
7581 * completer.h (struct completion_result): Likewise.
7582 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7583 * filename-seen-cache.h (filename_seen_cache): Likewise.
7584 * gdbcore.h (thread_section_name): Likewise.
7585 * gdb_regex.h (compiled_regex): Likewise.
7586 * gdbthread.h (scoped_restore_current_thread): Likewise.
7587 * inferior.h (scoped_restore_current_inferior): Likewise.
7588 * jit.c (jit_reader): Likewise.
7589 * linespec.h (struct linespec_result): Likewise.
7590 * mi/mi-parse.h (struct mi_parse): Likewise.
7591 * nat/fork-inferior.c (execv_argv): Likewise.
7592 * progspace.h (scoped_restore_current_program_space): Likewise.
7593 * python/python-internal.h (class gdbpy_enter): Likewise.
7594 * regcache.h (regcache): Likewise.
7595 * target-descriptions.c (struct tdesc_reg): Likewise.
7596 (struct tdesc_type): Likewise.
7597 (struct tdesc_feature): Likewise.
7598 * ui-out.h (ui_out_emit_type): Likewise.
7600 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7602 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7603 label abort_expression.
7605 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7607 * common/buffer.c (buffer_xml_printf): Adjust.
7608 * common/xml-utils.c (xml_escape_text): Change return type to
7609 std::string, update code accordingly.
7610 * common/xml-utils.h (xml_escape_text): Change return type to
7612 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7613 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7614 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7617 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7619 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7620 (SUBDIR_UNITTESTS_OBS): Add new object file.
7621 * unittests/xml-utils-selftests.c: New file.
7623 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7625 * common/selftest.h (selftest): New struct/interface.
7626 (register_test): Add name parameter, add new overload.
7627 (run_tests): Add filter parameter.
7628 (for_each_selftest_ftype): New typedef.
7629 (for_each_selftest): New declaration.
7630 * common/selftest.c (tests): Change type to
7631 map<string, unique_ptr<selftest>>.
7632 (simple_selftest): New struct.
7633 (register_test): New function.
7634 (register_test): Add name parameter and use it.
7635 (run_tests): Add filter parameter and use it. Add prints.
7636 Adjust to vector -> map change.
7637 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7638 registering selftests.
7639 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7640 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7641 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7642 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7643 * findvar.c (_initialize_findvar): Likewise.
7644 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7645 * maint.c (maintenance_selftest): Update call to run_tests.
7646 (maintenance_info_selftests): New function.
7647 (_initialize_maint_cmds): Register "maintenance info selftests"
7648 command. Update "maintenance selftest" doc.
7649 * regcache.c (_initialize_regcache): Add names when registering
7651 * rust-exp.y (_initialize_rust_exp): Likewise.
7652 * selftest-arch.c (gdbarch_selftest): New struct.
7653 (gdbarch_tests): Remove.
7654 (register_test_foreach_arch): Add name parameter. Call
7656 (tests_with_arch): Remove, move most content to
7657 gdbarch_selftest::operator().
7658 (_initialize_selftests_foreach_arch): Remove.
7659 * selftest-arch.h (register_test_foreach_arch): Add name
7661 (run_tests_with_arch): New declaration.
7662 * utils-selftests.c (_initialize_utils_selftests): Add names
7663 when registering selftests.
7664 * utils.c (_initialize_utils): Likewise.
7665 * unittests/array-view-selftests.c
7666 (_initialize_array_view_selftests): Likewise.
7667 * unittests/environ-selftests.c (_initialize_environ_selftests):
7669 * unittests/function-view-selftests.c
7670 (_initialize_function_view_selftests): Likewise.
7671 * unittests/offset-type-selftests.c
7672 (_initialize_offset_type_selftests): Likewise.
7673 * unittests/optional-selftests.c
7674 (_initialize_optional_selftests): Likewise.
7675 * unittests/scoped_restore-selftests.c
7676 (_initialize_scoped_restore_selftests): Likewise.
7677 * NEWS: Document "maintenance selftest" and "maint info
7680 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7682 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7685 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7687 * mi/mi-main.c (mi_load_progress): Make uiout variable
7690 2017-09-15 Pedro Alves <palves@redhat.com>
7692 * compile/compile-c-types.c (convert_enum, convert_int)
7693 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7695 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7697 * dwarf2read.c (copy_string): Remove.
7698 (parse_macro_definition): Replace copy_string with savestring.
7700 2017-09-15 Yao Qi <yao.qi@linaro.org>
7702 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7704 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7706 (i[34567]86-*-linux*): Likewise.
7708 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7710 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7711 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7712 <stack>: Change type to std::vector.
7713 <stack_len, stack_allocated>: Remove.
7714 <grow_stack>: Remove.
7715 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7716 (dwarf_expr_context::~dwarf_expr_context): Remove.
7717 (dwarf_expr_context::grow_stack): Remove.
7718 (dwarf_expr_context::push): Adjust.
7719 (dwarf_expr_context::pop): Adjust.
7720 (dwarf_expr_context::fetch): Adjust.
7721 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7722 (dwarf_expr_context::stack_empty_p): Adjust.
7723 (dwarf_expr_context::execute_stack_op): Adjust.
7725 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7727 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7728 return type to bool.
7729 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7731 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7733 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7734 Change type to bool.
7735 (dwarf_stack_value) <in_stack_memory>: Likewise.
7736 (dwarf_expr_context) <push_address>: Change parameter type to
7738 <fetch_in_stack_memory>: Change return type to bool.
7739 <push>: Change parameter type to bool.
7740 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7742 (dwarf_expr_context::push_address): Likewise.
7743 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7745 (dwarf_expr_context::execute_stack_op): Adjust.
7746 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7748 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7750 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7751 (struct dwarf_expr_context) <n_pieces>: Remove.
7752 <pieces>: Change type to std::vector.
7753 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7754 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7756 (dwarf_expr_context::add_piece): Adjust.
7757 * dwarf2loc.c (struct piece_closure): Initialize fields.
7759 <pieces>: Change type to std::vector.
7760 (allocate_piece_closure): Adjust, change parameter to
7761 std::vector rvalue and std::move it to piece_closure.
7762 (rw_pieced_value): Adjust.
7763 (check_pieced_synthetic_pointer): Adjust.
7764 (indirect_synthetic_pointer): Adjust.
7765 (coerce_pieced_ref): Adjust.
7766 (free_pieced_value_closure): Adjust. Use delete to free
7768 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7769 to allocate_piece_closure.
7770 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7772 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7774 * probe.h (probe_ops_cp): Remove typedef.
7775 (DEF_VEC_P (probe_ops_cp)): Remove.
7776 (all_probe_ops): Change type to std::vector.
7777 * probe.c (info_probes_for_ops): Adjust to vector change.
7778 (probe_linespec_to_ops): Likewise.
7779 (all_probe_ops): Change type to std::vector.
7780 (_initialize_probe): Adjust to vector change.
7781 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7782 * elfread.c (elf_get_probes): Likewise.
7783 * stap-probe.c (_initialize_stap_probe): Likewise.
7785 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7787 * probe.h (struct bound_probe): Define constructors.
7788 * probe.c (bound_probe_s): Remove typedef.
7789 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7790 (collect_probes): Change return type to std::vector, remove
7792 (compare_probes): Return bool, change parameter type. Change
7793 semantic to "less than".
7794 (gen_ui_out_table_header_info): Change parameter to std::vector
7796 (exists_probe_with_pops): Likewise.
7797 (info_probes_for_ops): Update to std::vector change.
7798 (enable_probes_command): Likewise.
7799 (disable_probes_command): Likewise.
7801 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7803 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7805 * probe.c (parse_probes_in_pspace): Update.
7806 (find_probes_in_objfile): Update.
7807 (find_probe_by_pc): Update.
7808 (collect_probes): Update.
7809 (probe_any_get_probes): Update.
7810 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7811 return type to reference to std::vector.
7812 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7813 std::vector and update.
7814 (dtrace_process_dof): Likewise.
7815 (dtrace_get_probes): Likewise.
7816 * elfread.c (elf_get_probes): Change return type to std::vector,
7817 store an std::vector in bfd_data.
7818 (probe_key_free): Update to std::vector.
7819 * stap-probe.c (handle_stap_probe): Change parameter to
7820 std::vector and update.
7821 (stap_get_probes): Likewise.
7822 * symfile-debug.c (debug_sym_get_probes): Change return type to
7823 std::vector and update.
7825 2017-09-11 Tom Tromey <tom@tromey.com>
7827 * breakpoint.c (program_breakpoint_here_p): Update.
7828 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7829 from make_show_memory_breakpoints_cleanup. Return a
7830 scoped_restore_tmpl<int>.
7831 (restore_show_memory_breakpoints): Remove.
7832 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7833 * mem-break.c (memory_validate_breakpoint): Update.
7834 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7835 (ia64_memory_remove_breakpoint): Update.
7836 (ia64_breakpoint_from_pc): Update.
7837 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7838 from make_show_memory_breakpoints_cleanup.
7840 2017-09-11 Tom Tromey <tom@tromey.com>
7842 * d-namespace.c (d_lookup_symbol): Use std::string.
7843 (find_symbol_in_baseclass): Likewise.
7845 2017-09-11 Tom Tromey <tom@tromey.com>
7847 * ctf.c (ctf_start): Use std::string.
7849 2017-09-11 Tom Tromey <tom@tromey.com>
7851 * ada-lang.c (is_known_support_routine): Update.
7852 (ada_unhandled_exception_name_addr_from_raise): Update.
7853 * guile/scm-frame.c (gdbscm_frame_name): Update.
7854 * python/py-frame.c (frapy_name): Update.
7855 (frapy_function): Update.
7856 * stack.h (find_frame_funname): Update.
7857 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7858 (print_frame): Update.
7860 2017-09-11 Tom Tromey <tom@tromey.com>
7862 * findcmd.c (put_bits): Take a gdb::byte_vector.
7863 (parse_find_args): Return gdb::byte_vector. "args" now const.
7864 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7866 (find_command): Update.
7868 2017-09-11 Tom Tromey <tom@tromey.com>
7870 * cli/cli-script.c (class scoped_restore_hook_in): New.
7871 (clear_hook_in_cleanup): Remove.
7872 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7873 scoped_restore_hook_in.
7875 2017-09-11 Tom Tromey <tom@tromey.com>
7877 * cli/cli-script.c (restore_interp): Remove.
7878 (read_command_lines): Use scoped_restore_interp.
7879 * interps.c (scoped_restore_interp::set_temp): Rename from
7881 * interps.h (class scoped_restore_interp): New.
7882 (interp_set_temp): Remove.
7884 2017-09-11 Tom Tromey <tom@tromey.com>
7886 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7887 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7888 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7890 (mi_cmd_break_insert_1): Update.
7891 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7894 2017-09-11 Tom Tromey <tom@tromey.com>
7896 * demangle.c (demangle_command): Update.
7897 * breakpoint.c (disable_command): Update.
7898 (enable_command): Update.
7899 (find_location_by_number): Make "number" const. Use
7901 * cli/cli-utils.c (extract_arg): Return std::string.
7902 * probe.c (parse_probe_linespec): Update. Change types.
7903 (collect_probes): Take string arguments.
7904 (parse_probe_linespec): Likewise.
7905 (info_probes_for_ops): Update.
7906 (enable_probes_command): Update.
7907 (disable_probes_command): Update.
7908 * break-catch-sig.c (catch_signal_split_args): Update.
7909 * mi/mi-parse.c (mi_parse): Update.
7911 2017-09-11 Tom Tromey <tom@tromey.com>
7913 * language.h (language_enum): Make argument const.
7914 * language.c (language_enum): Make argument const.
7916 2017-09-11 Tom Tromey <tom@tromey.com>
7918 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7920 (skip_to_space): Rename from skip_to_space_const.
7921 * common/common-utils.c (skip_to_space): New function.
7922 (skip_to_space): Rename from skip_to_space_const.
7923 * cli/cli-utils.h (get_number): Rename from get_number_const.
7924 (extract_arg): Rename from extract_arg_const.
7925 * cli/cli-utils.c (get_number): Rename from get_number_const.
7926 (extract_arg): Rename from extract_arg_const.
7927 (number_or_range_parser::get_number): Use ::get_number.
7928 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7929 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7930 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7931 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7932 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7933 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7934 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7935 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7937 2017-09-11 Tom Tromey <tom@tromey.com>
7939 * python/python.c (do_start_initialization): Use
7940 py-event-types.def to initialize types.
7941 Define all object type structures.
7942 * python/python-internal.h: Don't declare event initialization
7944 * python/py-threadevent.c (thread_event_object_type): Don't
7946 * python/py-stopevent.c (stop_event_object_type): Don't define.
7947 * python/py-signalevent.c (signal_event_object_type): Don't
7949 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7950 (clear_objfiles_event_object_type): Don't declare or define.
7951 * python/py-infevents.c (inferior_call_pre_event_object_type)
7952 (inferior_call_post_event_object_type)
7953 (register_changed_event_object_type)
7954 (memory_changed_event_object_type): Don't declare or define.
7955 * python/py-inferior.c (new_thread_event_object_type)
7956 (new_inferior_event_object_type)
7957 (inferior_deleted_event_object_type): Don't declare or define.
7958 * python/py-exitedevent.c (exited_event_object_type): Don't
7960 * python/py-evts.c (gdbpy_initialize_py_events): Use
7962 * python/py-events.h (thread_event_object_type): Don't declare.
7963 (events_object): Use py-all-events.def.
7964 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7966 * python/py-event-types.def: New file.
7967 * python/py-continueevent.c (create_continue_event_object): Don't
7969 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7971 * python/py-all-events.def: New file.
7973 2017-09-11 Tom Tromey <tom@tromey.com>
7975 * python/py-threadevent.c (create_thread_event_object): Return
7977 * python/py-stopevent.h (create_stop_event_object)
7978 (create_breakpoint_event_object, create_signal_event_object):
7980 * python/py-stopevent.c (create_stop_event_object): Return
7982 (emit_stop_event): Update.
7983 * python/py-signalevent.c (create_signal_event_object): Return
7985 * python/py-infevents.c (create_inferior_call_event_object):
7987 * python/py-event.h (create_event_object)
7988 (create_thread_event_object): Update.
7989 * python/py-event.c (create_event_object): Return gdbpy_ref.
7990 * python/py-continueevent.c: Return gdbpy_ref.
7991 * python/py-bpevent.c (create_breakpoint_event_object): Return
7994 2017-09-11 Tom Tromey <tom@tromey.com>
7998 * python/python.c (do_start_initialization): Initialize new event
8000 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
8001 (gdbpy_initialize_inferior_deleted_event)
8002 (gdbpy_initialize_new_thread_event): Declare.
8003 * python/py-threadevent.c (create_thread_event_object): Add option
8005 * python/py-inferior.c (new_thread_event_object_type)
8006 (new_inferior_event_object_type)
8007 (inferior_deleted_event_object_type): Declare.
8008 (python_new_inferior, python_inferior_deleted): New functions.
8009 (add_thread_object): Emit new_thread event.
8010 (gdbpy_initialize_inferior): Attach new functions to corresponding
8012 (new_thread, new_inferior, inferior_deleted): Define new event
8014 * python/py-evts.c (gdbpy_initialize_py_events): Add new
8016 * python/py-events.h (events_object) <new_inferior,
8017 inferior_deleted, new_thread>: New fields.
8018 * python/py-event.h (create_thread_event_breakpoint): Add optional
8021 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
8023 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
8024 check current_ui instead.
8025 (internal_vproblem): Likewise.
8027 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
8029 * thread.c (print_thread_info_1): Remove unnecessary calls to
8030 uiout->is_mi_like_p.
8032 2017-09-09 Tom Tromey <tom@tromey.com>
8034 * namespace.h (add_using_directive): Update.
8035 * namespace.c (add_using_directive): Change type of excludes to
8037 * dwarf2read.c (read_import_statement): Use std::vector.
8038 (read_namespace): Update.
8039 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
8041 2017-09-09 Tom Tromey <tom@tromey.com>
8043 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
8045 2017-09-09 Tom Tromey <tom@tromey.com>
8047 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
8049 2017-09-09 Tom Tromey <tom@tromey.com>
8051 * stack.c (func_command): Use gdb::def_vector.
8053 2017-09-09 Tom Tromey <tom@tromey.com>
8055 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
8056 ui_out_emit_list, ui_out_emit_tuple.
8057 (mi_cmd_var_update): Likewise.
8059 2017-09-09 Tom Tromey <tom@tromey.com>
8061 * mi/mi-interp.c (mi_user_selected_context_changed): Use
8062 ui_out_redirect_pop.
8063 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8064 ui_out_redirect_pop.
8065 * utils.c (do_ui_out_redirect_pop)
8066 (make_cleanup_ui_out_redirect_pop): Remove.
8067 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
8068 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
8069 * ui-out.h (ui_out_redirect_pop): New class.
8071 2017-09-09 Tom Tromey <tom@tromey.com>
8073 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
8074 (list_available_thread_groups, mi_cmd_list_thread_groups)
8075 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
8076 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
8079 2017-09-09 Tom Tromey <tom@tromey.com>
8081 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
8084 2017-09-09 Tom Tromey <tom@tromey.com>
8086 * target.c (flash_erase_command): Use ui_out_emit_tuple.
8087 * stack.c (print_frame): Use ui_out_emit_tuple.
8088 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
8089 (info_spu_mailbox_command, info_spu_dma_command)
8090 (info_spu_proxydma_command): Likewise.
8091 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
8092 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
8093 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
8095 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
8097 2017-09-09 Tom Tromey <tom@tromey.com>
8099 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
8100 (class ui_out_emit_table): Update comment.
8101 * ui-out.c (do_cleanup_table_end)
8102 (make_cleanup_ui_out_table_begin_end): Remove.
8103 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
8104 (info_spu_dma_cmdlist): Likewise.
8105 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
8106 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
8109 2017-09-09 Tom Tromey <tom@tromey.com>
8111 * thread.c (print_thread_info_1): Use ui_out_emit_table,
8112 ui_out_emit_list, gdb::optional.
8114 2017-09-09 John Baldwin <jhb@FreeBSD.org>
8116 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
8118 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
8120 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
8122 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
8123 * ada-exp.y: Remove _initialize_ada_exp prototype.
8124 * ada-lang.c: Remove _initialize_ada_language prototype.
8125 * ada-tasks.c: Remove _initialize_tasks prototype.
8126 * addrmap.c: Remove _initialize_addrmap prototype.
8127 * agent.c: Remove _initialize_agent prototype.
8128 * aix-thread.c: Remove _initialize_aix_thread prototype.
8129 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
8130 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
8131 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
8133 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
8134 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
8135 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
8136 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
8138 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
8140 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
8141 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
8142 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
8143 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
8145 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
8146 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
8147 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
8148 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
8149 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8150 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
8151 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
8153 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
8155 * annotate.c: Remove _initialize_annotate prototype.
8156 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
8157 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
8158 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
8159 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
8160 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
8161 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
8162 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
8163 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
8165 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
8166 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
8167 * auto-load.c: Remove _initialize_auto_load prototype.
8168 * auxv.c: Remove _initialize_auxv prototype.
8169 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
8170 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
8171 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
8172 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
8173 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
8174 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
8176 * break-catch-throw.c: Remove _initialize_break_catch_throw
8178 * breakpoint.c: Remove _initialize_breakpoint prototype.
8179 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
8180 * btrace.c: Remove _initialize_btrace prototype.
8181 * charset.c: Remove _initialize_charset prototype.
8182 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
8183 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
8184 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
8185 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
8186 * cli/cli-script.c: Remove _initialize_cli_script prototype.
8187 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
8188 * coffread.c: Remove _initialize_coffread prototype.
8189 * compile/compile.c: Remove _initialize_compile prototype.
8190 * complaints.c: Remove _initialize_complaints prototype.
8191 * completer.c: Remove _initialize_completer prototype.
8192 * copying.awk: Remove _initialize_copying prototype.
8193 * copying.c: Regenerate.
8194 * core-regset.c: Remove _initialize_core_regset prototype.
8195 * corefile.c: Remove _initialize_core prototype.
8196 * corelow.c: Remove _initialize_corelow prototype.
8197 * cp-abi.c: Remove _initialize_cp_abi prototype.
8198 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
8199 * cp-support.c: Remove _initialize_cp_support prototype.
8200 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
8201 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
8202 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
8203 * ctf.c: Remove _initialize_ctf prototype.
8204 * d-lang.c: Remove _initialize_d_language prototype.
8205 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
8207 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
8208 * dbxread.c: Remove _initialize_dbxread prototype.
8209 * dcache.c: Remove _initialize_dcache prototype.
8210 * demangle.c: Remove _initialize_demangler prototype.
8211 * disasm-selftests.c: Remove _initialize_disasm_selftests
8213 * disasm.c: Remove _initialize_disasm prototype.
8214 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
8215 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
8216 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
8218 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
8219 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
8220 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
8221 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
8222 * elfread.c: Remove _initialize_elfread prototype.
8223 * exec.c: Remove _initialize_exec prototype.
8224 * extension.c: Remove _initialize_extension prototype.
8225 * f-lang.c: Remove _initialize_f_language prototype.
8226 * f-valprint.c: Remove _initialize_f_valprint prototype.
8227 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
8228 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
8229 * filesystem.c: Remove _initialize_filesystem prototype.
8230 * findcmd.c: Remove _initialize_mem_search prototype.
8231 * fork-child.c: Remove _initialize_fork_child prototype.
8232 * frame-base.c: Remove _initialize_frame_base prototype.
8233 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
8234 * frame.c: Remove _initialize_frame prototype.
8235 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
8236 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
8237 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
8238 * gcore.c: Remove _initialize_gcore prototype.
8239 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
8240 * gdbarch.c: Regenerate.
8241 * gdbarch.sh: Remove _initialize_gdbarch prototype.
8242 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
8243 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
8244 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
8245 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
8246 * go-lang.c: Remove _initialize_go_language prototype.
8247 * go32-nat.c: Remove _initialize_go32_nat prototype.
8248 * guile/guile.c: Remove _initialize_guile prototype.
8249 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
8250 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
8251 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
8252 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
8253 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
8254 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
8255 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
8256 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
8257 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
8258 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
8260 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
8262 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
8263 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
8264 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
8265 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
8266 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
8267 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
8268 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
8269 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
8270 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
8271 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
8272 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
8273 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
8274 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
8275 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8276 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
8277 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
8279 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
8281 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
8282 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
8283 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
8284 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
8285 * infcall.c: Remove _initialize_infcall prototype.
8286 * infcmd.c: Remove _initialize_infcmd prototype.
8287 * inferior.c: Remove _initialize_inferiors prototype.
8288 * inflow.c: Remove _initialize_inflow prototype.
8289 * infrun.c: Remove _initialize_infrun prototype.
8290 * interps.c: Remove _initialize_interpreter prototype.
8291 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
8292 * jit.c: Remove _initialize_jit prototype.
8293 * language.c: Remove _initialize_language prototype.
8294 * linux-fork.c: Remove _initialize_linux_fork prototype.
8295 * linux-nat.c: Remove _initialize_linux_nat prototype.
8296 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
8297 * linux-thread-db.c: Remove _initialize_thread_db prototype.
8298 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
8299 * m2-lang.c: Remove _initialize_m2_language prototype.
8300 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
8301 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
8302 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
8303 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
8304 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
8305 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8306 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8307 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
8308 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
8309 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
8310 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8311 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8312 * machoread.c: Remove _initialize_machoread prototype.
8313 * macrocmd.c: Remove _initialize_macrocmd prototype.
8314 * macroscope.c: Remove _initialize_macroscope prototype.
8315 * maint.c: Remove _initialize_maint_cmds prototype.
8316 * mdebugread.c: Remove _initialize_mdebugread prototype.
8317 * memattr.c: Remove _initialize_mem prototype.
8318 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
8319 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
8320 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
8321 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
8322 * mi/mi-main.c: Remove _initialize_mi_main prototype.
8323 * microblaze-linux-tdep.c: Remove
8324 _initialize_microblaze_linux_tdep prototype.
8325 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
8326 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
8327 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
8328 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
8329 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
8330 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
8331 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
8332 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
8333 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
8334 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
8335 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
8337 * mipsread.c: Remove _initialize_mipsread prototype.
8338 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
8340 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
8341 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
8342 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
8343 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
8344 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
8345 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
8347 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
8348 * nto-procfs.c: Remove _initialize_procfs prototype.
8349 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
8350 * objc-lang.c: Remove _initialize_objc_language prototype.
8351 * objfiles.c: Remove _initialize_objfiles prototype.
8352 * observer.c: Remove observer_test_first_notification_function,
8353 observer_test_second_notification_function,
8354 observer_test_third_notification_function, and
8355 _initialize_observer prototypes.
8356 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
8357 * osabi.c: Remove _initialize_gdb_osabi prototype.
8358 * osdata.c: Remove _initialize_osdata prototype.
8359 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
8360 * parse.c: Remove _initialize_parse prototype.
8361 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
8362 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
8363 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
8364 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
8365 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
8366 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
8367 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
8368 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
8369 * printcmd.c: Remove _initialize_printcmd prototype.
8370 * probe.c: Remove _initialize_probe prototype.
8371 * proc-api.c: Remove _initialize_proc_api prototype.
8372 * proc-events.c: Remove _initialize_proc_events prototype.
8373 * proc-service.c: Remove _initialize_proc_service prototype.
8374 * procfs.c: Remove _initialize_procfs prototype.
8375 * psymtab.c: Remove _initialize_psymtab prototype.
8376 * python/python.c: Remove _initialize_python prototype.
8377 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8378 * record-btrace.c: Remove _initialize_record_btrace prototype.
8379 * record-full.c: Remove _initialize_record_full prototype.
8380 * record.c: Remove _initialize_record prototype.
8381 * regcache.c: Remove _initialize_regcache prototype.
8382 * reggroups.c: Remove _initialize_reggroup prototype.
8383 * remote-notif.c: Remove _initialize_notif prototype.
8384 * remote-sim.c: Remove _initialize_remote_sim prototype.
8385 * remote.c: Remove _initialize_remote prototype.
8386 * reverse.c: Remove _initialize_reverse prototype.
8387 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8388 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8389 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8391 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8392 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8393 * rust-exp.y: Remove _initialize_rust_exp prototype.
8394 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8395 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8396 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8397 * score-tdep.c: Remove _initialize_score_tdep prototype.
8398 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8400 * ser-go32.c: Remove _initialize_ser_dos prototype.
8401 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8402 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8403 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8404 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8405 * serial.c: Remove _initialize_serial prototype.
8406 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8407 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8408 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8409 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8410 * skip.c: Remove _initialize_step_skip prototype.
8411 * sol-thread.c: Remove _initialize_sol_thread prototype.
8412 * solib-aix.c: Remove _initialize_solib_aix prototype.
8413 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8414 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8415 * solib-frv.c: Remove _initialize_frv_solib prototype.
8416 * solib-spu.c: Remove _initialize_spu_solib prototype.
8417 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8418 * solib-target.c: Remove _initialize_solib_target prototype.
8419 * solib.c: Remove _initialize_solib prototype.
8420 * source.c: Remove _initialize_source prototype.
8421 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8422 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8424 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8425 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8426 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8427 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8429 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8430 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8431 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8432 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8434 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8436 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8438 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8440 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8441 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8443 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8445 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8447 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8449 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8451 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8452 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8453 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8454 * stabsread.c: Remove _initialize_stabsread prototype.
8455 * stack.c: Remove _initialize_stack prototype.
8456 * stap-probe.c: Remove _initialize_stap_probe prototype.
8457 * std-regs.c: Remove _initialize_frame_reg prototype.
8458 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8459 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8460 * symfile.c: Remove _initialize_symfile prototype.
8461 * symmisc.c: Remove _initialize_symmisc prototype.
8462 * symtab.c: Remove _initialize_symtab prototype.
8463 * target-dcache.c: Remove _initialize_target_dcache prototype.
8464 * target-descriptions.c: Remove _initialize_target_descriptions
8466 * thread.c: Remove _initialize_thread prototype.
8467 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8469 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8470 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8471 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8473 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8474 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8475 * tracefile.c: Remove _initialize_tracefile prototype.
8476 * tracepoint.c: Remove _initialize_tracepoint prototype.
8477 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8478 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8479 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8480 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8481 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8482 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8483 * tui/tui.c: Remove _initialize_tui prototype.
8484 * typeprint.c: Remove _initialize_typeprint prototype.
8485 * user-regs.c: Remove _initialize_user_regs prototype.
8486 * utils.c: Remove _initialize_utils prototype.
8487 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8488 * valarith.c: Remove _initialize_valarith prototype.
8489 * valops.c: Remove _initialize_valops prototype.
8490 * valprint.c: Remove _initialize_valprint prototype.
8491 * value.c: Remove _initialize_values prototype.
8492 * varobj.c: Remove _initialize_varobj prototype.
8493 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8494 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8495 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8496 * windows-nat.c: Remove _initialize_windows_nat,
8497 _initialize_check_for_gdb_ini, and _initialize_loadable
8499 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8500 * xcoffread.c: Remove _initialize_xcoffread prototype.
8501 * xml-support.c: Remove _initialize_xml_support prototype.
8502 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8503 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8505 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8507 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8509 2017-09-08 Keith Seitz <keiths@redhat.com>
8511 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8514 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8516 * f-valprint.c (f_val_print): Remove check for one byte
8517 sized integers. Remove printing of character type.
8519 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8520 Christoph Weinmann <christoph.t.weinmann@intel.com>
8521 Bernhard Heckel <bernhard.heckel@intel.com>
8523 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8524 to maintain proper indentation when printing pointers/refs.
8526 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8530 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8532 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8534 2017-09-05 Tom Tromey <tom@tromey.com>
8536 * parse.c (funcall_chain): Now a std::vector.
8537 (start_arglist, end_arglist): Simplify.
8538 (free_funcalls): Remove.
8539 (parse_exp_in_context_1): Remove cleanup.
8541 2017-09-05 Tom Tromey <tom@tromey.com>
8543 * go-exp.y (go_parse): Don't create a cleanup.
8545 2017-09-05 Tom Tromey <tom@tromey.com>
8547 * d-exp.y (PrimaryExpression): Use std::string.
8548 (d_parse): Don't create a cleanup.
8550 2017-09-05 Tom Tromey <tom@tromey.com>
8552 * utils.c (do_clear_parser_state): Remove.
8553 (make_cleanup_clear_parser_state): Remove.
8554 * p-exp.y (pascal_parse): Use scoped_restore.
8555 * m2-exp.y (m2_parse): Use scoped_restore.
8556 * f-exp.y (f_parse): Use scoped_restore.
8557 * d-exp.y (d_parse): Use scoped_restore.
8558 * c-exp.y (c_parse): Use scoped_restore.
8559 * ada-exp.y (ada_parse): Use scoped_restore.
8560 * utils.h (make_cleanup_clear_parser_state): Remove.
8562 2017-09-06 Keith Seitz <keiths@redhat.com>
8564 * dwarf2read.c (dw2_linkage_name_attr): New function.
8565 (dw2_linkage_name): New function.
8566 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8567 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8568 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8570 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8572 * config/djgpp/djconfig.sh: Correct shell portability issue.
8574 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8576 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8578 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8580 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8581 * NEWS: Mention new FreeBSD/mips native configuration.
8582 * configure.host: Add aarch64*-*-freebsd*.
8583 * configure.nat: Likewise.
8584 * aarch64-fbsd-nat.c: New file.
8586 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8588 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8589 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8590 * NEWS: Mention new FreeBSD/aarch64 target.
8591 * configure.tgt: Add aarch64*-*-freebsd*.
8592 * aarch64-fbsd-tdep.c: New file.
8593 * aarch64-fbsd-tdep.h: New file.
8595 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8597 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8599 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8601 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8604 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8606 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8609 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8611 * infrun.c (follow_exec): Call add_thread after
8612 target_find_description.
8614 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8616 * infrun.c (handle_inferior_event_1): When exec'ing, read
8617 stop_pc after follow_exec.
8619 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8621 * remote.c (process_g_packet): Update error message.
8623 2017-09-05 Yao Qi <yao.qi@linaro.org>
8625 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8628 2017-09-05 Pedro Alves <palves@redhat.com>
8630 * eval.c (eval_call, evaluate_funcall): New functions, factored
8632 (evaluate_subexp_standard): ... this.
8634 2017-09-05 Yao Qi <yao.qi@linaro.org>
8636 * amd64-tdep.c (amd64_target_description): Create target
8638 (_initialize_amd64_tdep): Don't call functions
8639 initialize_tdesc_amd64_*. Add self tests.
8640 * arch/amd64.c (amd64_create_target_description): Add parameter
8641 is_linux. Call set_tdesc_osabi if is_linux is true.
8642 * arch/amd64.h (amd64_create_target_description): Update the
8644 * arch/i386.c (i386_create_target_description): Add parameter
8645 is_linux. Call set_tdesc_osabi if is_linux is true.
8646 * arch/i386.h (i386_create_target_description): Update
8648 * configure.tgt: Add i386.o to gdb_target_obs.
8649 * features/Makefile (XMLTOC): Remove i386/*.xml.
8650 * features/i386/amd64-avx-avx512.c: Remove.
8651 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8652 * features/i386/amd64-avx-mpx.c: Remove.
8653 * features/i386/amd64-avx.c: Remove.
8654 * features/i386/amd64-mpx.c: Remove.
8655 * features/i386/amd64.c: Remove.
8656 * features/i386/i386-avx-avx512.c: Remove.
8657 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8658 * features/i386/i386-avx-mpx.c: Remove.
8659 * features/i386/i386-avx.c: Remove.
8660 * features/i386/i386-mmx.c: Remove.
8661 * features/i386/i386-mpx.c: Remove.
8662 * features/i386/i386.c: Remove.
8663 * i386-tdep.c: Don't include features/i386/i386*.c., include
8664 target-descriptions.h and arch/i386.h.
8665 (i386_target_description): Create target descriptions.
8666 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8667 functions. Do self tests.
8669 2017-09-05 Yao Qi <yao.qi@linaro.org>
8671 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8672 * features/i386/amd64-avx-avx512-linux.c: Removed.
8673 * features/i386/amd64-avx-linux.c: Removed.
8674 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8675 * features/i386/amd64-avx-mpx-linux.c: Removed.
8676 * features/i386/amd64-linux.c: Removed.
8677 * features/i386/amd64-mpx-linux.c: Removed.
8678 * features/i386/x32-avx-avx512-linux.c: Removed.
8679 * features/i386/x32-avx-linux.c: Removed.
8680 * features/i386/x32-linux.c: Removed.
8682 2017-09-05 Yao Qi <yao.qi@linaro.org>
8684 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8686 (amd64_linux_read_description): Call
8687 amd64_create_target_description.
8688 * arch/amd64.c: New file.
8689 * arch/amd64.h: New file.
8690 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8691 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8693 2017-09-05 Yao Qi <yao.qi@linaro.org>
8695 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8696 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8697 (amd64_linux_read_description): Create target descriptions.
8698 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8699 functions. Add unit tests.
8700 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8702 * features/i386/64bit-avx.c: Generated.
8703 * features/i386/64bit-avx512.c: Generated.
8704 * features/i386/64bit-core.c: Generated.
8705 * features/i386/64bit-linux.c: Generated.
8706 * features/i386/64bit-mpx.c: Generated.
8707 * features/i386/64bit-pkeys.c: Generated.
8708 * features/i386/64bit-segments.c: Generated.
8709 * features/i386/64bit-sse.c: Generated.
8710 * features/i386/x32-core.c: Generated.
8711 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8712 c files for amd64-linux and x32-linux.
8714 2017-09-05 Yao Qi <yao.qi@linaro.org>
8716 * amd64-linux-tdep.c (amd64_linux_read_description): New
8718 (amd64_linux_core_read_description): Call
8719 amd64_linux_read_description.
8720 (amd64_linux_init_abi): Likewise.
8721 (amd64_x32_linux_init_abi): Likewise.
8722 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8723 * x86-linux-nat.c (x86_linux_read_description): Call
8724 amd64_linux_read_description.
8726 2017-09-05 Yao Qi <yao.qi@linaro.org>
8728 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8731 2017-09-05 Yao Qi <yao.qi@linaro.org>
8733 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8734 * features/i386/i386-avx-avx512-linux.c: Remove.
8735 * features/i386/i386-avx-linux.c: Remove.
8736 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8737 * features/i386/i386-avx-mpx-linux.c: Remove.
8738 * features/i386/i386-linux.c: Remove.
8739 * features/i386/i386-mmx-linux.c: Remove.
8740 * features/i386/i386-mpx-linux.c: Remove.
8742 2017-09-05 Yao Qi <yao.qi@linaro.org>
8744 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8745 (SFILES): Add arch/i386.c.
8746 (HFILES_NO_SRCDIR): Add arch/i386.h.
8747 * arch/i386.c: New file.
8748 * arch/i386.h: New file.
8749 * arch/tdesc.h (allocate_target_description): Declare.
8750 (set_tdesc_architecture): Declare.
8751 (set_tdesc_osabi): Declare.
8752 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8753 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8754 include arch/i386.h.
8755 (i386_linux_read_description): Remove code and call
8756 i386_create_target_description.
8757 (set_tdesc_architecture): New function.
8758 (set_tdesc_osabi): New function.
8759 * target-descriptions.h (allocate_target_description): Remove.
8761 2017-09-05 Yao Qi <yao.qi@linaro.org>
8763 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8764 * target-descriptions.c (tdesc_create_feature): Likewise, and
8766 * features/i386/32bit-avx.c: Re-generated.
8767 * features/i386/32bit-avx512.c: Re-generated.
8768 * features/i386/32bit-core.c: Re-generated.
8769 * features/i386/32bit-linux.c: Re-generated.
8770 * features/i386/32bit-mpx.c: Re-generated.
8771 * features/i386/32bit-pkeys.c: Re-generated.
8772 * features/i386/32bit-sse.c: Re-generated.
8774 2017-09-05 Yao Qi <yao.qi@linaro.org>
8776 * regformats/regdef.h (struct reg): Override operator == and !=.
8778 2017-09-05 Yao Qi <yao.qi@linaro.org>
8780 * arch/tdesc.h: New file.
8781 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8782 * target-descriptions.c: Update comments.
8783 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8785 * features/i386/32bit-avx.c: Re-generated.
8786 * features/i386/32bit-avx512.c: Re-generated.
8787 * features/i386/32bit-core.c: Re-generated.
8788 * features/i386/32bit-linux.c: Re-generated.
8789 * features/i386/32bit-mpx.c: Re-generated.
8790 * features/i386/32bit-pkeys.c: Re-generated.
8791 * features/i386/32bit-sse.c: Re-generated.
8793 2017-09-05 Yao Qi <yao.qi@linaro.org>
8795 * regformats/regdat.sh: Update generated code.
8797 2017-09-05 Yao Qi <yao.qi@linaro.org>
8799 * regformats/regdat.sh: Adjust code order.
8801 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8803 * expprint.c (dump_subexp_body_standard): Use constant format
8804 string in fprintf_filtered call.
8806 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8808 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8810 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8812 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8814 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8816 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8818 * bsd-kvm.o: Define _KMEMUSER.
8819 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8820 * configure: Regenerate.
8822 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8824 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8825 * i386-fbsd-nat.c: Likewise.
8827 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8829 * unittests/array-view-selftests.c: Add include of <array>.
8831 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8833 * spu-tdep.c (flush_ea_cache): Add missing argument to
8834 call_function_by_hand.
8836 2017-09-04 Pedro Alves <palves@redhat.com>
8838 * NEWS (Safer support for debugging with no debug info): New.
8840 2017-09-04 Pedro Alves <palves@redhat.com>
8842 * c-exp.y (function_method, function_method_void): Add current
8843 instance flags to TYPE_INSTANCE.
8844 * dwarf2read.c (check_modifier): New.
8845 (compute_delayed_physnames): Assert that only C++ adds delayed
8846 physnames. Mark fn_fields as const/volatile depending on
8848 * eval.c (make_params): New type_instance_flags parameter. Use
8849 it as the new type's instance flags.
8850 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8851 flags element and pass it to make_params.
8852 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8853 instance flags element.
8854 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8855 * gdbtypes.h: Include "enum-flags.h".
8856 (type_instance_flags): New enum-flags type.
8857 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8858 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8859 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8860 (follow_type_instance_flags): New function.
8861 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8862 * parser-defs.h (follow_type_instance_flags): Declare.
8863 * valops.c (value_struct_elt_for_reference): const/volatile must
8866 2017-09-04 Pedro Alves <palves@redhat.com>
8868 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8869 function/method scopes; lookup the nested name as a function local
8872 2017-09-04 Pedro Alves <palves@redhat.com>
8874 (%type <voidval>): Add function_method.
8875 * c-exp.y (exp): New production for calls with no arguments.
8876 (function_method, function_method_void_or_typelist): New
8878 (exp): New production for "method()::static_var".
8879 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8880 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8881 Handle OP_FUNC_STATIC_VAR.
8882 * parse.c (operator_length_standard):
8883 Handle OP_FUNC_STATIC_VAR.
8885 2017-09-04 Pedro Alves <palves@redhat.com>
8887 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8889 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8891 * parse.c (operator_length_standard, operator_check_standard):
8893 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8895 2017-09-04 Pedro Alves <palves@redhat.com>
8897 * ax-gdb.c: Include "typeprint.h".
8898 (gen_expr_for_cast): New function.
8899 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8900 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8902 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8903 nodebug_data_symbol.
8904 * eval.c: Include "typeprint.h".
8905 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8906 Error out if symbol has unknown type.
8907 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8908 evaluate_subexp_for_cast.
8909 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8911 (evaluate_subexp_for_cast): New function.
8912 * gdbtypes.c (init_nodebug_var_type): New function.
8913 (objfile_type): Use it to initialize types of variables with no
8915 * typeprint.c (error_unknown_type): New.
8916 * typeprint.h (error_unknown_type): New declaration.
8917 * compile/compile-c-types.c (convert_type_basic): Handle
8918 TYPE_CODE_ERROR; warn and fallback to int for variables with
8921 2017-09-04 Pedro Alves <palves@redhat.com>
8923 * eval.c (evaluate_var_value): New function, factored out from ...
8924 (evaluate_subexp_standard): ... here.
8926 2017-09-04 Pedro Alves <palves@redhat.com>
8928 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8929 Remove useless assignments to 'op'.
8931 2017-09-04 Pedro Alves <palves@redhat.com>
8933 * eval.c (eval_skip_value): New function.
8934 (evaluate_subexp_standard): Use it.
8936 2017-09-04 Pedro Alves <palves@redhat.com>
8938 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8939 function name from symbol/minsym and pass it to
8940 error_call_unknown_return_type.
8942 2017-09-04 Pedro Alves <palves@redhat.com>
8944 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8945 * ax-gdb.c (gen_msym_var_ref): New function.
8946 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8947 * eval.c (evaluate_var_msym_value): New function.
8948 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8949 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8950 to call_function_by_hand.
8951 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8952 Handle OP_VAR_MSYM_VALUE.
8953 (union exp_element) <msymbol>: New field.
8954 * minsyms.h (struct type): Forward declare.
8955 (find_minsym_type_and_address): Declare.
8956 * parse.c (write_exp_elt_msym): New function.
8957 (write_exp_msymbol): Delete, refactored as ...
8958 (find_minsym_type_and_address): ... this new function.
8959 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8960 (operator_length_standard, operator_check_standard): Handle
8962 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8964 2017-09-04 Pedro Alves <palves@redhat.com>
8966 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8967 TYPE_GNU_IFUNC specially here. Throw error if return type is
8969 * ada-typeprint.c (print_func_type): Handle functions with unknown
8971 * c-typeprint.c (c_type_print_base): Handle functions and methods
8972 with unknown return type.
8973 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8974 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8975 * compile/compile-c-types.c: Include "objfiles.h".
8976 (convert_func): For functions with unknown return type, warn and
8978 * compile/compile-object-run.c (compile_object_run): Adjust call
8979 to call_function_by_hand_dummy.
8980 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8981 call_function_by_hand.
8982 * eval.c (evaluate_subexp_standard): Adjust calls to
8983 call_function_by_hand. Handle functions and methods with unknown
8984 return type. Pass expect_type to call_function_by_hand.
8985 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8987 * gcore.c (call_target_sbrk): Adjust call to
8988 call_function_by_hand.
8989 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8990 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8991 an integer address type instead of nodebug.
8992 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8993 call_function_by_hand.
8994 * infcall.c (error_call_unknown_return_type): New function.
8995 (call_function_by_hand): New "default_return_type" parameter.
8997 (call_function_by_hand_dummy): New "default_return_type"
8998 parameter. Use it instead of defaulting to int. If there's no
8999 default and the return type is unknown, throw an error. If
9000 there's a default return type, and the called function has no
9001 debug info, then assume the function is prototyped.
9002 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
9003 New "default_return_type" parameter.
9004 (error_call_unknown_return_type): New declaration.
9005 * linux-fork.c (call_lseek): Cast return type of lseek.
9006 (inferior_call_waitpid, checkpoint_command): Adjust calls to
9007 call_function_by_hand.
9008 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
9009 calls to call_function_by_hand.
9010 * m2-typeprint.c (m2_procedure): Handle functions with unknown
9012 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9013 (value_nsstring, print_object_command): Adjust calls to
9014 call_function_by_hand.
9015 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
9016 functions with unknown return type.
9017 (pascal_type_print_func_varspec_suffix): New function.
9018 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
9019 TYPE_CODE_METHOD>: Use it.
9020 * python/py-value.c (valpy_call): Adjust call to
9021 call_function_by_hand.
9022 * rust-lang.c (rust_evaluate_funcall): Adjust call to
9023 call_function_by_hand.
9024 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
9025 call_function_by_hand.
9026 * valops.c (value_allocate_space_in_inferior): Adjust call to
9027 call_function_by_hand.
9028 * typeprint.c (type_print_unknown_return_type): New function.
9029 * typeprint.h (type_print_unknown_return_type): New declaration.
9031 2017-09-04 Pedro Alves <palves@redhat.com>
9033 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
9034 types with more than one parameter as prototyped.
9036 2017-09-04 Pedro Alves <palves@redhat.com>
9038 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
9039 (disassemble_command): Use gdb_disassembly_flags instead of bare
9041 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
9042 (dump_insns, do_mixed_source_and_assembly_deprecated)
9043 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
9044 Use gdb_disassembly_flags instead of bare int.
9045 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
9046 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
9047 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
9048 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
9049 (enum gdb_disassembly_flag): ... values of this new enumeration.
9050 (gdb_disassembly_flags): Define.
9052 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
9053 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
9054 gdb_disassembly_flags instead of bare int.
9055 * record-btrace.c (btrace_insn_history)
9056 (record_btrace_insn_history, record_btrace_insn_history_range)
9057 (record_btrace_insn_history_from): Use gdb_disassembly_flags
9058 instead of bare int.
9059 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
9060 Use gdb_disassembly_flags instead of bare int.
9061 * target-debug.h (target_debug_print_gdb_disassembly_flags):
9063 * target-delegates.c: Regenerate.
9064 * target.c (target_insn_history, target_insn_history_from)
9065 (target_insn_history_range): Use gdb_disassembly_flags instead of
9067 * target.h: Include "disasm.h".
9068 (struct target_ops) <to_insn_history, to_insn_history_from,
9069 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
9071 (target_insn_history, target_insn_history_from)
9072 (target_insn_history_range): Use gdb_disassembly_flags instead of
9075 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9077 * cli/cli-script.c (build_command_line): For if/while commands,
9078 check whether args is empty.
9080 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9082 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
9083 (enum command_control_type): Likewise.
9084 (struct command_line): Likewise.
9085 (free_command_lines): Likewise.
9086 (struct command_lines_deleter): Likewise.
9087 (command_line_up): Likewise.
9088 (read_command_lines): Likewise.
9089 (read_command_lines_1): Likewise.
9090 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
9091 (enum command_control_type): Likewise.
9092 (struct command_line): Likewise.
9093 (free_command_lines): Likewise.
9094 (struct command_lines_deleter): Likewise.
9095 (command_line_up): Likewise.
9096 (read_command_lines): Likewise.
9097 (read_command_lines_1): Likewise.
9098 * breakpoint.h: Include cli/cli-script.h.
9099 * extension-priv.h: Likewise.
9100 * gdbcmd.h: Likewise.
9102 2017-09-04 Pedro Alves <palves@redhat.com>
9104 * ada-lang.c (is_known_support_routine): Move sal declaration to
9105 where it is initialized.
9106 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
9107 (parse_breakpoint_sals, decode_static_tracepoint_spec)
9108 (clear_command, update_static_tracepoint): Remove init_sal
9109 references. Move declarations closer to initializations.
9110 * cli/cli-cmds.c (list_command): Move sal declarations closer to
9112 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
9113 references. Move sal declarations closer to initializations.
9114 * frame.c (find_frame_sal): Return a symtab_and_line via function
9115 return instead of output parameter. Remove init_sal references.
9116 * frame.h (find_frame_sal): Return a symtab_and_line via function
9117 return instead of output parameter.
9118 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
9119 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
9121 (gdbscm_find_pc_line): Remove init_sal reference.
9122 * infcall.c (call_function_by_hand_dummy): Remove init_sal
9123 references. Move declarations closer to initializations.
9124 * infcmd.c (set_step_frame): Update. Move declarations closer to
9126 (finish_backward): Remove init_sal references. Move declarations
9127 closer to initializations.
9128 * infrun.c (process_event_stop_test, handle_step_into_function)
9129 (insert_hp_step_resume_breakpoint_at_frame)
9130 (insert_step_resume_breakpoint_at_caller): Likewise.
9131 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
9132 (symbol_to_sal): Likewise.
9133 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
9134 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
9135 to its initialization.
9136 * reverse.c (save_bookmark_command): Use new/delete. Remove
9137 init_sal references. Move declarations closer to initializations.
9138 * source.c (get_current_source_symtab_and_line): Remove brace
9140 (set_current_source_symtab_and_line): Now takes the sal by const
9141 reference. Remove brace initialization.
9142 (line_info): Remove init_sal reference.
9143 * source.h (set_current_source_symtab_and_line): Now takes a
9144 symtab_and_line via const reference.
9145 * stack.c (set_current_sal_from_frame): Adjust.
9146 (print_frame_info): Adjust.
9147 (get_last_displayed_sal): Return the sal via function return
9148 instead of via output parameter. Simplify.
9149 (frame_info): Adjust.
9150 * stack.h (get_last_displayed_sal): Return the sal via function
9151 return instead of via output parameter.
9152 * symtab.c (init_sal): Delete.
9153 (find_pc_sect_line): Remove init_sal references. Move
9154 declarations closer to initializations.
9155 (find_function_start_sal): Remove init_sal references. Move
9156 declarations closer to initializations.
9157 * symtab.h (struct symtab_and_line): In-class initialize all
9159 * tracepoint.c (set_traceframe_context)
9160 (print_one_static_tracepoint_marker): Remove init_sal references.
9161 Move declarations closer to initializations.
9162 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
9163 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
9164 declarations closer to initializations.
9165 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
9166 init_sal references. Adjust.
9168 2017-09-04 Pedro Alves <palves@redhat.com>
9170 * ax-gdb.c (agent_command_1): Use range-for.
9171 * break-catch-throw.c (re_set_exception_catchpoint): Update.
9172 * breakpoint.c: Include "common/array-view.h".
9173 (init_breakpoint_sal, create_breakpoint_sal): Change sals
9174 parameter from struct symtabs_and_lines to
9175 array_view<symtab_and_line>. Adjust. Use range-for. Update.
9176 (breakpoint_sals_to_pc): Change sals parameter from struct
9177 symtabs_and_lines to std::vector reference.
9178 (check_fast_tracepoint_sals): Change sals parameter from struct
9179 symtabs_and_lines to std::array_view. Use range-for.
9180 (decode_static_tracepoint_spec): Return a std::vector instead of
9181 symtabs_and_lines. Update.
9182 (create_breakpoint): Update.
9183 (break_range_command, until_break_command, clear_command): Update.
9184 (base_breakpoint_decode_location, bkpt_decode_location)
9185 (bkpt_probe_create_sals_from_location)
9186 (bkpt_probe_decode_location, tracepoint_decode_location)
9187 (tracepoint_probe_decode_location)
9188 (strace_marker_create_sals_from_location): Return a std::vector
9189 instead of symtabs_and_lines.
9190 (strace_marker_create_breakpoints_sal): Update.
9191 (strace_marker_decode_location): Return a std::vector instead of
9192 symtabs_and_lines. Update.
9193 (update_breakpoint_locations): Change struct symtabs_and_lines
9194 parameters to gdb::array_view. Adjust.
9195 (location_to_sals): Return a std::vector instead of
9196 symtabs_and_lines. Update.
9197 (breakpoint_re_set_default): Use std::vector instead of struct
9199 (decode_location_default): Return a std::vector instead of
9200 symtabs_and_lines. Update.
9201 * breakpoint.h: Include "common/array-view.h".
9202 (struct breakpoint_ops) <decode_location>: Now returns a
9203 std::vector instead of returning a symtabs_and_lines via output
9205 (update_breakpoint_locations): Change sals parameters to use
9207 * cli/cli-cmds.c (edit_command, list_command): Update to use
9208 std::vector and gdb::array_view.
9209 (ambiguous_line_spec): Adjust to use gdb::array_view and
9211 (compare_symtabs): Rename to ...
9212 (cmp_symtabs): ... this. Change parameters to symtab_and_line
9213 const reference and adjust.
9214 (filter_sals): Rewrite using std::vector and standard algorithms.
9215 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
9216 (jump_command): Update to use std::vector.
9217 * linespec.c (struct linespec_state) <canonical_names>: Update
9219 (add_sal_to_sals_basic): Delete.
9220 (add_sal_to_sals, filter_results, convert_results_to_lsals)
9221 (decode_line_2, create_sals_line_offset)
9222 (convert_address_location_to_sals, convert_linespec_to_sals)
9223 (convert_explicit_location_to_sals, parse_linespec)
9224 (event_location_to_sals, decode_line_full, decode_line_1)
9225 (decode_line_with_current_source)
9226 (decode_line_with_last_displayed, decode_objc)
9227 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
9228 (linespec_result::~linespec_result): Adjust to use std::vector
9229 instead of symtabs_and_lines.
9230 * linespec.h (linespec_sals::sals): Now a std::vector.
9231 (struct linespec_result): Use std::vector, bool, and in-class
9233 (decode_line_1, decode_line_with_current_source)
9234 (decode_line_with_last_displayed): Return std::vector.
9235 * macrocmd.c (info_macros_command): Use std::vector.
9236 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
9237 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
9239 * probe.h (parse_probes): Return a std::vector.
9240 * python/python.c (gdbpy_decode_line): Use std::vector and
9242 * source.c (select_source_symtab, line_info): Use std::vector.
9243 * stack.c (func_command): Use std::vector.
9244 * symtab.h (struct symtabs_and_lines): Delete.
9245 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
9247 2017-09-04 Pedro Alves <palves@redhat.com>
9249 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9250 unittests/array-view-selftests.c.
9251 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
9252 * common/array-view.h: New file.
9253 * unittests/array-view-selftests.c: New file.
9255 2017-09-04 Pedro Alves <palves@redhat.com>
9257 * cli/cli-cmds.c (edit_command): Pass message to
9258 ambiguous_line_spec.
9259 (list_command): Pass message to ambiguous_line_spec. Say
9260 "first"/"last" instead of "start" and "end" to be consistent with
9262 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
9263 them to print formatted message.
9265 2017-09-04 Pedro Alves <palves@redhat.com>
9267 * btrace.c (ftrace_add_pt): Pass btrace_insn to
9268 ftrace_update_insns by reference instead of pointer.
9270 2017-09-04 Yao Qi <yao.qi@linaro.org>
9272 * i386-go32-tdep.c: Include x86-xstate.h.
9273 (i386_go32_init_abi): Call i386_target_description.
9274 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
9275 if xcr0 is X86_XSTATE_X87_MASK.
9276 * i386-tdep.h (tdesc_i386): Remove the declaration.
9277 (tdesc_i386_mmx): Likewise.
9279 2017-09-04 Yao Qi <yao.qi@linaro.org>
9281 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
9282 X86_XSTATE_SSE_MASK instead of 0.
9284 2017-09-04 Yao Qi <yao.qi@linaro.org>
9286 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
9287 i386_target_description.
9288 * i386-fbsd-nat.c (i386fbsd_read_description): Call
9289 i386_target_description.
9290 * i386-tdep.c (i386_gdbarch_init): Likewise.
9292 2017-09-04 Yao Qi <yao.qi@linaro.org>
9294 * amd64-darwin-tdep.c: Include "x86-xstate.h".
9295 (x86_darwin_init_abi_64): Call amd64_target_description.
9296 * amd64-dicos-tdep.c: Likewise.
9297 * amd64-fbsd-nat.c: Likewise.
9298 * amd64-fbsd-tdep.c: Likewise.
9299 * amd64-nbsd-tdep.c: Likewise.
9300 * amd64-obsd-tdep.c: Likewise.
9301 * amd64-sol2-tdep.c: Likewise.
9302 * amd64-windows-tdep.c: Likewise.
9303 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
9305 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9307 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
9308 (btrace_function) <insn>: Change type to use std::vector.
9309 * btrace.c (ftrace_debug, ftrace_call_num_insn,
9310 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
9311 ftrace_update_insns, ftrace_compute_global_level_offset,
9312 btrace_stitch_bts, btrace_clear, btrace_insn_get,
9313 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
9314 change to std::vector.
9315 (ftrace_update_insns): Adjust to change to std::vector, change
9316 type of INSN parameter.
9317 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
9318 * record-btrace.c (btrace_call_history_insn_range,
9319 btrace_compute_src_line_range,
9320 record_btrace_frame_prev_register): Adjust to change to
9322 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
9323 to change to std::vector.
9325 2017-09-03 Tom Tromey <tom@tromey.com>
9327 * corefile.c (reopen_exec_file): Use std::string.
9329 2017-09-03 Tom Tromey <tom@tromey.com>
9331 * compile/compile.c (compile_register_name_mangled): Return
9333 * compile/compile-loc2c.c (pushf_register_address): Update.
9334 (pushf_register): Update.
9335 * compile/compile-c-types.c (convert_array): Update.
9336 * compile/compile-c-symbols.c (generate_vla_size): Update.
9337 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
9338 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
9339 (convert_one_symbol): Update.
9340 (generate_c_for_for_one_variable): Update.
9341 * compile/compile-c-support.c (c_get_range_decl_name): Return a
9343 (generate_register_struct): Update.
9344 * compile/compile-internal.h (c_get_range_decl_name): Return a
9346 (compile_register_name_mangled): Return std::string.
9348 2017-09-03 Tom Tromey <tom@tromey.com>
9350 * utils.c (perror_string): Return a std::string.
9351 (throw_perror_with_name, perror_warning_with_name): Update.
9353 2017-09-03 Tom Tromey <tom@tromey.com>
9355 * demangle.c (demangle_command): Use std::string,
9358 2017-09-03 Tom Tromey <tom@tromey.com>
9360 * cli/cli-setshow.c (do_set_command): Use std::string.
9362 2017-09-03 Tom Tromey <tom@tromey.com>
9364 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
9366 2017-09-03 Tom Tromey <tom@tromey.com>
9368 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
9370 2017-09-03 Tom Tromey <tom@tromey.com>
9372 * mi/mi-cmd-env.c (env_execute_cli_command): Use
9373 gdb::unique_xmalloc_ptr.
9375 2017-09-03 Tom Tromey <tom@tromey.com>
9377 * thread.c (print_thread_info_1): Use string_printf.
9378 (thread_apply_command, thread_apply_all_command): Use
9381 2017-09-03 Tom Tromey <tom@tromey.com>
9383 * valprint.c (val_print_string): Update.
9384 * gdbcore.h (memory_error_message): Return std::string.
9385 * corefile.c (memory_error_message): Return std::string.
9386 (memory_error): Update.
9387 * breakpoint.c (insert_bp_location): Update.
9389 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9391 * target/waitstatus.h (target_waitstatus_to_string): Change
9392 return type to std::string.
9393 * target/waitstatus.c (target_waitstatus_to_string): Return
9395 * target.h (target_waitstatus_to_string): Remove declaration.
9396 * infrun.c (resume, clear_proceed_status_thread,
9397 print_target_wait_results, do_target_wait, save_waitstatus,
9398 stop_all_threads): Adjust.
9399 * record-btrace.c (record_btrace_wait): Adjust.
9401 (target_debug_print_struct_target_waitstatus_p): Adjust.
9403 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9406 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9409 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9411 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9412 for setting/unsetting environment variables on the remote target.
9413 (New remote packets): Add entries for QEnvironmentHexEncoded,
9414 QEnvironmentUnset and QEnvironmentReset.
9415 * common/environ.c (gdb_environ::operator=): Extend method to
9416 handle m_user_set_env_list and m_user_unset_env_list.
9417 (gdb_environ::clear): Likewise.
9418 (match_var_in_string): Change type of first parameter from 'char
9419 *' to 'const char *'.
9420 (gdb_environ::set): Extend method to handle
9421 m_user_set_env_list and m_user_unset_env_list.
9422 (gdb_environ::unset): Likewise.
9423 (gdb_environ::clear_user_set_env): New method.
9424 (gdb_environ::user_set_envp): Likewise.
9425 (gdb_environ::user_unset_envp): Likewise.
9426 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9427 m_user_unset_env_list on move constructor/assignment.
9428 (unset): Add new default parameter 'update_unset_list = true'.
9429 (clear_user_set_env): New method.
9430 (user_set_envp): Likewise.
9431 (user_unset_envp): Likewise.
9432 (m_user_set_env_list): New std::set.
9433 (m_user_unset_env_list): Likewise.
9434 * common/rsp-low.c (hex2str): New function.
9435 (bin2hex): New overload for bin2hex function.
9436 * common/rsp-low.c (hex2str): New prototype.
9437 (str2hex): New overload prototype.
9438 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9439 QEnvironmentUnset and QEnvironmentReset.
9440 (remote_protocol_features): Add QEnvironmentHexEncoded,
9441 QEnvironmentUnset and QEnvironmentReset packets.
9442 (send_environment_packet): New function.
9443 (extended_remote_environment_support): Likewise.
9444 (extended_remote_create_inferior): Call
9445 extended_remote_environment_support.
9446 (_initialize_remote): Add QEnvironmentHexEncoded,
9447 QEnvironmentUnset and QEnvironmentReset packet configs.
9448 * unittests/environ-selftests.c (gdb_selftest_env_var):
9450 (test_vector_initialization): New function.
9451 (test_init_from_host_environ): Likewise.
9452 (test_reinit_from_host_environ): Likewise.
9453 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9455 (test_unset_set_empty_vector): Likewise.
9456 (test_vector_clear): Likewise.
9457 (test_std_move): Likewise.
9458 (test_move_constructor):
9459 (test_self_move): Likewise.
9460 (test_set_unset_reset): Likewise.
9461 (run_tests): Rewrite in terms of the functions above.
9463 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
9465 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9466 (adi_available): Use a temp variable of type CORE_ADDR as argument
9467 3 when calling target_auxv_search.
9468 (adi_normalize_address): Use masks and xor operators to calculate
9470 (adi_read_versions, adi_write_versions, adi_print_versions)
9471 (do_examine, do_assign): Use paddress.
9473 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9475 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9476 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9477 out of loop and add supply of FIR.
9478 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9481 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9484 * cli/cli-script.c (define_command): Don't convert command name
9487 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9489 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9490 Update all callers accordingly. Remove all code blocks handling
9491 the case where DISPP is not NULL.
9493 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9496 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9497 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9498 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9500 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9502 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9503 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9504 (read_comp_units_from_section): New parameter abbrev_section, use
9505 read_and_check_comp_unit_head, allocate signatured_type if needed.
9506 (create_all_comp_units): Update read_comp_units_from_section caller.
9508 2017-08-23 Pedro Alves <palves@redhat.com>
9511 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9512 to null_ptid and switch to thread without reading the registers
9513 after adding the inferior.
9515 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9517 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9519 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9520 (compile_to_object): Implement compile_gcc.
9521 (_initialize_compile): Install "set compile-gcc". Initialize
9524 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9526 * compile/compile.c (compile_to_object): Conditionally call
9527 set_verbose. Conditionally call compile or compile_v0.
9529 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9531 * sparc64-tdep.h: (adi_normalize_address): New export.
9532 * sparc-nat.h: (open_adi_tag_fd): New export.
9533 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9534 * sparc64-linux-tdep.c:
9535 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9536 (sparc64_linux_handle_segmentation_fault): New function.
9537 (sparc64_linux_init_abi): Register
9538 sparc64_linux_handle_segmentation_fault
9539 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9540 (sparc64_addr_bits_remove): New function.
9541 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9542 (MAX_PROC_NAME_SIZE): New macro.
9543 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9544 (sparc64adilist): New variable.
9545 (adi_proc_list): New variable.
9546 (find_adi_info): New function.
9547 (add_adi_info): New function.
9548 (get_adi_info_proc): New function.
9549 (get_adi_info): New function.
9550 (info_adi_command): New function.
9551 (read_maps_entry): New function.
9552 (adi_available): New function.
9553 (adi_normalize_address): New function.
9554 (adi_align_address): New function.
9555 (adi_convert_byte_count): New function.
9556 (adi_tag_fd): New function.
9557 (adi_is_addr_mapped): New function.
9558 (adi_read_versions): New function.
9559 (adi_write_versions): New function.
9560 (adi_print_versions): New function.
9561 (do_examine): New function.
9562 (do_assign): New function.
9563 (adi_examine_command): New function.
9564 (adi_assign_command): New function.
9565 (_initialize_sparc64_adi_tdep): New function.
9567 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9569 * breakpoint.c (breakpoints_info): Rename to ...
9570 (info_breakpoints_command): ... this.
9571 (watchpoints_info): Rename to ...
9572 (info_watchpoints_command): ... this.
9573 (tracepoints_info): Rename to ...
9574 (info_tracepoints_command): ... this.
9575 (_initialize_breakpoint): Adjust.
9576 * dcache.c (dcache_info): Rename to ...
9577 (info_display_command): ... this.
9578 (_initialize_dcache): Adjust.
9579 * frame.h (args_info): Rename to ...
9580 (info_args_command): ... this.
9581 (locals_info): Rename to ...
9582 (info_locals_command): ... this.
9583 * infcmd.c (nofp_registers_info): Rename to ...
9584 (info_registers_command): ... this.
9585 (float_info): Rename to ...
9586 (info_float_command): ... this.
9587 (program_info): Rename to ...
9588 (info_program_command): ... this.
9589 (all_registers_info): Rename to ...
9590 (info_all_registers_command): ... this.
9591 (vector_info): Rename to ...
9592 (info_vector_command): ... this.
9593 (float_info): Rename to ...
9594 (info_float_command): ... this.
9595 (_initialize_infcmd): Adjust.
9596 * inferior.h (term_info): Rename to ...
9597 (info_terminal_command): ... this.
9598 * inflow.c (term_info): Rename to ...
9599 (info_terminal_command): ... this.
9600 (_initialize_inflow): Adjust.
9601 * infrun.c (signals_info): Rename to ...
9602 (info_signals_command): ... this.
9603 (_initialize_infrun): Adjust.
9604 * objc-lang.c (classes_info): Rename to ...
9605 (info_classes_command): ... this.
9606 (selectors_info): Rename to ...
9607 (info_selectors_command): ... this.
9608 (_initialize_objc_language): Adjust.
9609 * printcmd.c (sym_info): Rename to ...
9610 (info_symbol_command): ... this.
9611 (address_info): Rename to ...
9612 (info_address_command): ... this.
9613 (display_info): Rename to ...
9614 (info_display_command): ... this.
9615 (_initialize_printcmd): Adjust.
9616 * reverse.c (bookmarks_info): Rename to ...
9617 (info_breakpoints_command): ... this.
9618 (_initialize_reverse): Adjust.
9619 * ser-go32.c (dos_info): Rename to ...
9620 (info_serial_command): ... this.
9621 (_initialize_ser_dos): Adjust.
9622 * skip.c (skip_info): Rename to ...
9623 (info_skip_command): ... this.
9624 (_initialize_step_skip): Adjust.
9625 * source.c (line_info): Rename to ...
9626 (info_line_command): ... this.
9627 (source_info): Rename to ...
9628 (info_source_command)
9629 * stack.c (frame_info): Rename to ...
9630 (info_frame_command): ... this.
9631 (locals_info): Rename to ...
9632 (info_locals_command): ... this.
9633 (args_info): Rename to ...
9634 (info_args_command): ... this.
9635 (_initialize_stack): Adjust.
9636 * symtab.c (sources_info): Rename to ...
9637 (info_sources_command): ... this.
9638 (variables_info): Rename to ...
9639 (info_variables_command): ... this.
9640 (functions_info): Rename to ...
9641 (info_functions_command): ... this.
9642 (types_info): Rename to ...
9643 (info_types_command): ... this.
9644 (_initialize_symtab): Adjust.
9645 * target.c (target_info): Rename to ...
9646 (info_target_command): ... this.
9647 (initialize_targets): Adjust.
9648 * tracepoint.c (tvariables_info): Rename to ...
9649 (info_tvariables_command): ... this.
9650 (scope_info): Rename to ...
9651 (info_scope_command): ... this.
9652 (trace_dump_actions): Adjust.
9653 (_initialize_tracepoint): Adjust.
9655 2017-08-22 Tom Tromey <tom@tromey.com>
9657 * breakpoint.h (install_breakpoint): Update.
9658 * breakpoint.c (add_solib_catchpoint): Update.
9659 (install_breakpoint): Change argument to a std::unique_ptr.
9660 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9661 (create_breakpoint_sal, create_breakpoint): Update.
9662 (watch_command_1, catch_exec_command_1)
9663 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9664 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9665 Return the breakpoint.
9666 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9667 (new_single_step_breakpoint): Update.
9668 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9670 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9672 * break-catch-sig.c (create_signal_catchpoint): Use
9674 * ada-lang.c (create_ada_exception_catchpoint): Use
9677 2017-08-22 Tom Tromey <tom@tromey.com>
9679 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9681 2017-08-22 Tom Tromey <tom@tromey.com>
9683 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9684 (lookup_partial_symbol): Update.
9686 2017-08-22 Tom Tromey <tom@tromey.com>
9688 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9689 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9690 (find_and_open_source, symtab_to_fullname): Update.
9691 * psymtab.c (psymtab_to_fullname): Update.
9693 2017-08-22 Tom Tromey <tom@tromey.com>
9695 * exec.c (exec_file_attach): Update.
9696 * linux-thread-db.c (try_thread_db_load): Update.
9697 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9698 * utils.c (gdb_realpath): Change return type.
9699 (gdb_realpath_keepfile): Update.
9700 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9701 (_initialize_utils): Register the new self test.
9702 * source.c (openp): Update.
9703 (find_and_open_source): Update.
9704 * nto-tdep.c (nto_find_and_open_solib): Update.
9705 * main.c (set_gdb_data_directory): Update.
9706 (captured_main_1): Update.
9707 * dwarf2read.c (dwarf2_get_dwz_file): Update
9708 (dw2_map_symbol_filenames): Update.
9709 * auto-load.c (auto_load_safe_path_vec_update): Update.
9710 (filename_is_in_auto_load_safe_path_vec): Change type of
9712 (auto_load_objfile_script): Update.
9713 (file_is_auto_load_safe): Update. Use std::string.
9714 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9716 2017-08-22 Tom Tromey <tom@tromey.com>
9718 * utils.c (gdb_realpath_keepfile): Return a
9719 gdb::unique_xmalloc_ptr.
9720 * exec.c (exec_file_attach): Update.
9721 * utils.h (gdb_realpath_keepfile): Return a
9722 gdb::unique_xmalloc_ptr.
9724 2017-08-22 Tom Tromey <tom@tromey.com>
9726 * compile/compile.c (compile_file_command): Use
9727 gdb::unique_xmalloc_ptr, std::string.
9728 * utils.c (gdb_abspath): Change return type.
9729 * source.c (openp): Update.
9730 * objfiles.c (allocate_objfile): Update.
9731 * main.c (set_gdb_data_directory): Update.
9732 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9734 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9736 * cli-cmds.c (list_commands): List actual code around more than
9739 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9741 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9743 2017-08-21 Pedro Alves <palves@redhat.com>
9746 * c-exp.y (variable production): Handle function aliases.
9747 * minsyms.c (msymbol_is_text): New function.
9748 * minsyms.h (msymbol_is_text): Declare.
9749 * symtab.c (find_function_alias_target): New function.
9750 * symtab.h (find_function_alias_target): Declare.
9752 2017-08-21 Pedro Alves <palves@redhat.com>
9754 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9756 * typeprint.c (whatis_exp): If handling "whatis", and expression
9757 is OP_TYPE, strip one typedef level. Otherwise don't strip
9759 * valops.c (value_cast): Save "to" type before resolving
9760 stubs/typedefs. Use that type as resulting value's type.
9762 2017-08-18 Tom Tromey <tom@tromey.com>
9763 Pedro Alves <palves@redhat.com>
9765 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9766 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9767 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9768 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9769 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9770 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9771 (linux_get_siginfo_data): Add "thread" argument. Use
9773 * linux-nat.c (linux_child_follow_fork)
9774 (check_stopped_by_watchpoint): Use scoped_restore.
9775 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9776 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9777 (restore_inferior_ptid, save_inferior_ptid): Remove.
9778 * btrace.c (btrace_fetch): Use scoped_restore.
9779 * bsd-uthread.c (bsd_uthread_fetch_registers)
9780 (bsd_uthread_store_registers): Use scoped_restore.
9781 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9783 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9784 (aix_thread_xfer_partial): Use scoped_restore.
9785 * inferior.h (save_inferior_ptid): Remove.
9787 2017-08-18 Yao Qi <yao.qi@linaro.org>
9790 * arm-tdep.c (gdb_print_insn_arm): Mark
9791 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9793 2017-08-18 Yao Qi <yao.qi@linaro.org>
9795 * NEWS: Mention GDBserver's new option "--selftest".
9796 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9797 * selftest.c: Move it to common/selftest.c.
9798 * selftest.h: Move it to common/selftest.h.
9799 * selftest-arch.c (reset): New function.
9800 (tests_with_arch): Call reset.
9802 2017-08-18 Yao Qi <yao.qi@linaro.org>
9804 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9805 instead of exception_fprintf and printf_filtered.
9807 2017-08-18 Yao Qi <yao.qi@linaro.org>
9809 * selftest.c (register_self_test): Rename it to
9810 selftests::register_test.
9811 (run_self_tests): selftest::run_tests.
9812 * selftest.h: Update declarations.
9813 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9814 selftests::register_test_foreach_arch.
9815 * selftest-arch.h: Update declaration.
9816 * aarch64-tdep.c: Update.
9817 * arm-tdep.c: Likewise.
9818 * disasm-selftests.c: Likewise.
9819 * dwarf2loc.c: Likewise.
9820 * dwarf2-frame.c: Likewise.
9821 * findvar.c: Likewise.
9822 * gdbarch-selftests.c: Likewise.
9823 * maint.c (maintenance_selftest): Likewise.
9824 * regcache.c: Likewise.
9825 * rust-exp.y: Likewise.
9826 * selftest-arch.c: Likewise.
9827 * unittests/environ-selftests.c: Likewise.
9828 * unittests/function-view-selftests.c: Likewise.
9829 * unittests/offset-type-selftests.c: Likewise.
9830 * unittests/optional-selftests.c: Likewise.
9831 * unittests/scoped_restore-selftests.c: Likewise.
9832 * utils-selftests.c: Likewise.
9834 2017-08-17 Pedro Alves <palves@redhat.com>
9836 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9839 2017-08-17 Pedro Alves <palves@redhat.com>
9841 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9843 (reset_die_in_process): Delete, replaced by ...
9844 (process_die_scope): ... this new class. Make it responsible for
9845 freeing cu->line_header too.
9846 (process_die): Use process_die_scope.
9847 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9848 cu->line_header_die_owner. Don't release the line header if it's
9850 (setup_type_unit_groups): Make the CU/DIE own the line header.
9851 Don't release the line header here.
9853 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9855 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9857 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9859 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9862 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9864 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9867 2017-08-15 Stafford Horne <shorne@gmail.com>
9869 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9871 2017-08-15 Stafford Horne <shorne@gmail.com>
9873 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9875 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9878 * infcmd.c (unset_environment_command): Use the 'clear' method on
9879 the environment instead of resetting it.
9881 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9883 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9886 2017-08-14 Tom Tromey <tom@tromey.com>
9888 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9889 (print_binary_chars): Likewise.
9890 (BITS_IN_BYTES): Remove.
9892 2017-08-14 Tom Tromey <tom@tromey.com>
9895 * valprint.c (LOW_ZERO): Change value to 034.
9896 (print_octal_chars): Add static_asserts for octal constants.
9897 * printcmd.c (print_scalar_formatted): Add 'd' case.
9899 2017-08-11 Tom Tromey <tom@tromey.com>
9901 * symfile.c (add_symbol_file_command): Use std::vector.
9903 2017-08-14 Tom Tromey <tom@tromey.com>
9905 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9906 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9908 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9910 2017-08-11 Pedro Alves <palves@redhat.com>
9912 * infrun.c (process_event_stop_test): Adjust
9913 function_name_is_marked_for_skip call.
9914 * skip.c: Include <list>.
9915 (skiplist_entry): Make it a class with private fields, and
9917 (skiplist_entry_chain): Delete.
9918 (skiplist_entries): New.
9919 (skiplist_entry_count): Delete.
9920 (highest_skiplist_entry_num): New.
9921 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9922 (add_skiplist_entry): Delete.
9923 (skiplist_entry::skiplist_entry): New.
9924 (skiplist_entry::add_entry): New.
9925 (skip_file_command, skip_function): Adjust.
9926 (compile_skip_regexp): Delete.
9927 (skip_command): Don't compile regexp here. Adjust to use
9928 skiplist_entry::add_entry.
9929 (skip_info): Adjust to use range-for and getters.
9930 (skip_enable_command, skip_disable_command): Adjust to use
9931 range-for and setters.
9932 (skip_delete_command): Adjust to use std::list.
9933 (add_skiplist_entry): Delete.
9934 (skip_file_p): Delete, refactored as ...
9935 (skiplist_entry::do_skip_file_p): ... this new method.
9936 (skip_gfile_p): Delete, refactored as ...
9937 (skiplist_entry::do_gskip_file_p): ... this new method.
9938 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9939 (skiplist_entry::skip_function_p): ... this new method.
9940 (function_name_is_marked_for_skip): Now returns bool, and takes
9941 the function sal by const reference. Adjust to use range-for and
9942 skiplist_entry methods.
9943 (_initialize_step_skip): Remove references to
9944 skiplist_entry_chain, skiplist_entry_count.
9945 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9946 takes the function sal by const reference.
9948 2017-08-11 Yao Qi <yao.qi@linaro.org>
9950 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9951 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9952 (dwarf2_frame_cache):
9953 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9954 RETURN_MASK_ALL and set *this_case to NULL.
9955 * frame-unwind.h: Update comments.
9957 2017-08-11 Yao Qi <yao.qi@linaro.org>
9959 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9960 (dwarf2_frame_state_copy_regs): Remove.
9961 (dwarf2_frame_state_free_regs): Remove.
9962 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9963 (dwarf2_restore_rule): Call method .alloc_regs instead of
9964 dwarf2_frame_state_alloc_regs.
9965 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9966 constructor. Call std::move.
9967 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9968 (dwarf2_frame_cache): Likewise.
9970 [GDB_SELF_TEST]: Include selftest.h and
9972 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9973 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9974 execute_cfa_program_test.
9976 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9977 copy ctor, assignment operator, move assignment.
9978 <alloc_regs>: New method.
9980 (struct dwarf2_frame_state): Delete dtor.
9981 (dwarf2_frame_state_alloc_regs): Remove declaration.
9982 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9983 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9985 2017-08-11 Yao Qi <yao.qi@linaro.org>
9987 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9988 (dwarf2_frame_state::dwarf2_frame_state): New.
9989 (dwarf2_frame_state::~dwarf2_frame_state): New.
9990 (dwarf2_fetch_cfa_info): Update.
9991 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9992 rather than a pointer. Update code.
9993 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9995 <data_align, code_align, retaddr_column>: Change them to const.
9996 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9999 2017-08-11 Yao Qi <yao.qi@linaro.org>
10001 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
10002 <loc.exp>: New field.
10003 * dwarf2-frame.c (execute_cfa_program): Update.
10004 (dwarf2_frame_prev_register): Update.
10006 2017-08-10 Pedro Alves <palves@redhat.com>
10008 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
10010 2017-08-09 John Baldwin <jhb@FreeBSD.org>
10012 * fbsd-nat.c (struct fbsd_fork_info): Remove.
10013 (fbsd_pending_children): Use std::list.
10014 (fbsd_remember_child): Likewise.
10015 (fbsd_is_child_pending): Likewise.
10016 (fbsd_pending_vfork_done): Use std::forward_list.
10017 (fbsd_add_vfork_done): Likewise.
10018 (fbsd_is_vfork_done_pending): Likewise.
10019 (fbsd_next_vfork_done): Likewise.
10021 2017-08-09 John Baldwin <jhb@FreeBSD.org>
10023 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
10024 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
10025 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
10027 (fbsd_xfer_partial): Use gdb::byte_vector.
10028 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
10030 2017-08-09 John Baldwin <jhb@FreeBSD.org>
10032 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
10034 (fbsd_find_memory_regions): Fix `mapfile' initialization.
10036 2017-08-09 Tom Tromey <tom@tromey.com>
10038 * skip.c (skiplist_entry): New constructor.
10039 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
10040 (skiplist_entry::file_is_glob): Now bool.
10041 (skiplist_entry::file, skiplist_entry::function): Now
10043 (make_skip_entry): Return a unique_ptr. Use new.
10044 (free_skiplist_entry, free_skiplist_entry_cleanup)
10045 (make_free_skiplist_entry_cleanup): Remove.
10046 (skip_command, skip_disable_command, add_skiplist_entry)
10047 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
10048 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
10049 (function_name_is_marked_for_skip): Update.
10050 (skip_delete_command): Update. Use delete.
10052 2017-08-09 Jiong Wang <jiong.wang@arm.com>
10054 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
10055 (aarch64_linux_core_read_description): New function.
10056 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
10058 2017-08-09 Pedro Alves <palves@redhat.com>
10060 * cp-name-parser.y (cp_comp_to_string): Return a
10061 gdb::unique_xmalloc_ptr<char>.
10062 * cp-support.c (replace_typedefs_qualified_name)
10063 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
10064 (cp_canonicalize_string_full): Use op= instead of explicit
10066 (cp_class_name_from_physname, method_name_from_physname)
10067 (cp_func_name, cp_remove_params): Adjust to use
10068 gdb::unique_xmalloc_ptr<char>.
10069 * cp-support.h (cp_comp_to_string): Return a
10070 gdb::unique_xmalloc_ptr<char>.
10071 * python/py-type.c (typy_lookup_type): Adjust to use
10072 gdb::unique_xmalloc_ptr<char>.
10074 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
10076 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
10078 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
10079 Yao Qi <yao.qi@linaro.org>
10081 * cp-support.c (cp_canonicalize_string_full): Use
10082 gdb::unique_xmalloc_ptr<char>.
10083 (cp_canonicalize_string): Likewise.
10085 2017-08-09 Yao Qi <yao.qi@linaro.org>
10087 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
10088 * regformats/i386/amd64-avx-avx512.dat: Remove.
10089 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
10090 * regformats/i386/amd64-avx-mpx.dat:Remove.
10091 * regformats/i386/amd64-avx.dat: Remove.
10092 * regformats/i386/amd64-mpx.dat: Remove.
10093 * regformats/i386/i386-avx-avx512.dat: Remove.
10094 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
10095 * regformats/i386/i386-avx-mpx.dat: Remove.
10096 * regformats/i386/i386-mmx.dat: Remove.
10097 * regformats/i386/i386-mpx.dat: Remove.
10099 2017-08-09 Yao Qi <yao.qi@linaro.org>
10101 * amd64-tdep.h (tdesc_x32): Remove the declaration.
10102 * amd64-tdep.c: Don't include features/i386/x32*.c.
10103 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
10105 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
10106 and i386/x32-avx-avx512.
10107 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
10109 * features/i386/x32-avx-avx512.c: Removed.
10110 * features/i386/x32-avx-avx512.xml: Removed.
10111 * features/i386/x32-avx.c: Removed.
10112 * features/i386/x32-avx.xml: Removed.
10113 * features/i386/x32.c: Removed.
10114 * features/i386/x32.xml: Removed.
10115 * regformats/i386/x32-avx-avx512.dat: Removed.
10116 * regformats/i386/x32-avx.dat: Removed.
10117 * regformats/i386/x32.dat: Removed.
10119 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10121 PR breakpoints/21886
10122 * mem-break.c (default_memory_insert_breakpoint): Use
10123 `->placed_address' rather than `->reqstd_address' for the
10124 breakpoint location.
10126 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10128 * arch-utils.c (default_print_insn): Remove arch/mach/endian
10131 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10133 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
10134 a union of `tdep_info', `tdesc_data' and `id'.
10135 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
10136 rather than `info.tdep_info'.
10137 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
10138 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10139 * i386-tdep.c (i386_gdbarch_init): Likewise.
10140 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
10141 * mips-tdep.c (mips_gdbarch_init): Likewise.
10142 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10143 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10144 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
10146 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
10148 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10149 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
10151 * spu-tdep.c (spu_gdbarch_init): Likewise.
10152 * gdbarch.h: Regenerate.
10154 2017-08-07 Leszek Swirski <leszeks@google.com>
10157 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
10159 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
10161 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
10162 (gdbsim_open): Rename gdb_argv args object to argv.
10164 2017-08-05 Tom Tromey <tom@tromey.com>
10166 * compile/compile-object-load.c (compile_object_load): Use
10167 gdb::unique_xmalloc_ptr.
10168 * cli/cli-dump.c (scan_filename): Rename from
10169 scan_filename_with_cleanup. Change return type.
10170 (scan_expression): Rename from scan_expression_with_cleanup.
10171 Change return type.
10172 (dump_memory_to_file, dump_value_to_file, restore_command):
10173 Use gdb::unique_xmalloc_ptr. Update.
10174 * cli/cli-cmds.c (find_and_open_script): Use
10175 gdb::unique_xmalloc_ptr.
10176 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
10177 * symmisc.c (maintenance_print_symbols)
10178 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
10179 * symfile.c (symfile_bfd_open, generic_load)
10180 (add_symbol_file_command, remove_symbol_file_command): Use
10181 gdb::unique_xmalloc_ptr.
10182 * source.c (openp): Use gdb::unique_xmalloc_ptr.
10183 * psymtab.c (maintenance_print_psymbols): Use
10184 gdb::unique_xmalloc_ptr.
10185 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
10186 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
10187 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
10188 (reload_shared_libraries_1): Likewise.
10190 2017-08-05 Tom Tromey <tom@tromey.com>
10192 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
10193 (rust_op_vector, rust_set_vector): New typedefs.
10194 (current_parser): New global.
10195 (work_obstack): Change to pointer type. Update all users.
10196 (rust_ast, pstate): Remove globals.
10197 (struct rust_parser): New.
10198 (%union) <params, field_inits>: Change type.
10199 (start, tuple_expr, unit_expr, struct_expr_list, literal)
10200 (field_expr, expr_list, maybe_expr_list, type_list): Update.
10201 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
10202 (convert_params_to_types, convert_params_to_expression): Change
10204 (ast_string): Change type of "fields".
10205 (rust_parse): Make a rust_parser. Remove cleanups.
10206 (rust_lex_tests): Make and install an auto_obstack.
10208 2017-08-04 Yao Qi <yao.qi@linaro.org>
10210 * configure.srv (ipa_x32_linux_regobj): New.
10211 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
10212 instead of X86_TDESC_AVX512.
10213 (initialize_low_tracepoint): Call
10214 init_registers_x32_avx_avx512_linux.
10216 2017-08-04 Yao Qi <yao.qi@linaro.org>
10218 * utils.h (gdb_argv): Add namespace std for nullptr_t.
10220 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
10222 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
10224 2017-08-03 Tom Tromey <tom@tromey.com>
10226 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
10228 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
10230 2017-08-03 Tom Tromey <tom@tromey.com>
10232 * python/py-param.c (compute_enum_values): Use gdb_argv.
10234 2017-08-03 Tom Tromey <tom@tromey.com>
10236 * utils.h (struct gdb_argv_deleter): New.
10237 (gdb_argv): New class.
10238 * utils.c (gdb_argv::reset): New method.
10239 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
10240 * tracefile.c (tsave_command): Use gdb_argv.
10241 * top.c (new_ui_command): Use gdb_argv.
10242 * symmisc.c (maintenance_print_symbols)
10243 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
10244 * symfile.c (symbol_file_command, generic_load)
10245 (remove_symbol_file_command): Use gdb_argv.
10246 * stack.c (backtrace_command): Use gdb_argv.
10247 * source.c (add_path, show_substitute_path_command)
10248 (unset_substitute_path_command, set_substitute_path_command):
10250 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
10251 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
10252 * remote.c (extended_remote_run, remote_put_command)
10253 (remote_get_command, remote_delete_command): Use gdb_argv.
10254 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
10255 (gdbsim_open): Use gdb_argv.
10256 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
10257 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
10258 * procfs.c (procfs_info_proc): Use gdb_argv.
10259 * interps.c (interpreter_exec_cmd): Use gdb_argv.
10260 * infrun.c (handle_command): Use gdb_argv.
10261 * inferior.c (add_inferior_command, clone_inferior_command):
10263 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
10264 * exec.c (exec_file_command): Use gdb_argv.
10265 * cli/cli-cmds.c (alias_command): Use gdb_argv.
10266 * compile/compile.c (build_argc_argv): Use gdb_argv.
10268 2017-08-03 Tom Tromey <tom@tromey.com>
10270 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
10272 2017-08-03 Tom Tromey <tom@tromey.com>
10274 * python/python.c (compute_python_string): Return std::string.
10275 (gdbpy_eval_from_control_command): Update.
10276 (do_start_initialization): Use std::string.
10277 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
10279 * python/py-breakpoint.c (local_setattro): Use string_printf, not
10282 2017-08-03 Tom Tromey <tom@tromey.com>
10284 * top.h (do_restore_instream_cleanup): Remove.
10285 * top.c (do_restore_instream_cleanup): Remove.
10286 (read_command_file): Use scoped_restore.
10287 * cli/cli-script.c (execute_user_command): Use scoped_restore.
10289 2017-08-03 Tom Tromey <tom@tromey.com>
10291 * cli/cli-script.c (execute_user_command)
10292 (execute_control_command): Use scoped_restore.
10294 2017-08-03 Tom Tromey <tom@tromey.com>
10296 * cli/cli-script.c (do_restore_user_call_depth): Remove.
10297 (execute_user_command): Remove user_call_depth; use
10298 user_args_stack's size instead.
10300 2017-08-03 Tom Tromey <tom@tromey.com>
10302 * top.h (in_user_command): Remove.
10303 * top.c (in_user_command): Remove.
10304 * cli/cli-script.c (do_restore_user_call_depth)
10305 (execute_user_command): Update.
10307 2017-08-03 Tom Tromey <tom@tromey.com>
10309 * valops.c (search_struct_method): Use gdb::byte_vector.
10310 * valarith.c (value_concat): Use std::vector.
10311 * target.c (memory_xfer_partial): Use gdb::byte_vector.
10312 (simple_search_memory): Likewise.
10313 * printcmd.c (find_string_backward): Use gdb::byte_vector.
10314 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
10315 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
10316 * elfread.c (elf_rel_plt_read): Use std::string.
10317 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
10318 * cli/cli-dump.c (restore_section_callback): Use
10321 2017-08-03 Tom Tromey <tom@tromey.com>
10323 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
10325 2017-08-03 Tom Tromey <tom@tromey.com>
10327 * tui/tui-regs.c (tui_restore_gdbout): Remove.
10328 (tui_register_format): Use scoped_restore.
10330 2017-08-03 Tom Tromey <tom@tromey.com>
10332 * reverse.c (exec_direction_default): Remove.
10333 (exec_reverse_once): Use scoped_restore.
10334 * remote.c (restore_remote_timeout): Remove.
10335 (remote_flash_erase, remote_flash_write, remote_flash_done)
10336 (readchar, remote_serial_write): Use scoped_restore.
10337 * cli/cli-script.c (struct source_cleanup_lines_args)
10338 (source_cleanup_lines): Remove.
10339 (script_from_file): Use scoped_restore.
10340 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
10341 (source_command): Use scoped_restore.
10343 2017-08-03 Tom Tromey <tom@tromey.com>
10345 * utils.h (make_cleanup_free_so): Remove.
10346 * utils.c (do_free_so, make_cleanup_free_so): Remove.
10347 * solist.h (struct so_deleter): New.
10348 (so_list_up): New typedef.
10349 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
10351 2017-08-03 Tom Tromey <tom@tromey.com>
10353 * utils.h (make_cleanup_restore_current_language): Remove.
10354 * utils.c (do_restore_current_language)
10355 (make_cleanup_restore_current_language): Remove.
10356 * parse.c (parse_exp_in_context_1)
10357 (parse_expression_with_language): Use
10358 scoped_restore_current_language.
10359 * mi/mi-main.c (mi_cmd_execute): Use
10360 scoped_restore_current_language.
10361 * language.h (scoped_restore_current_language): New class.
10363 2017-08-03 Tom Tromey <tom@tromey.com>
10365 * compile/compile.c (cleanup_unlink_file): Remove.
10366 (compile_to_object): Use gdb::unlinker.
10367 (eval_compile_command): Likewise.
10369 2017-08-03 Tom Tromey <tom@tromey.com>
10371 * utils.h (make_cleanup_fclose): Remove.
10372 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
10374 2017-08-03 Tom Tromey <tom@tromey.com>
10376 * top.c (open_terminal_stream): Return gdb_file_up.
10377 (new_ui_command): Update.
10379 2017-08-03 Tom Tromey <tom@tromey.com>
10381 * source.c (print_source_lines_base, forward_search_command)
10382 (reverse_search_command): Use gdb_file_up.
10384 2017-08-03 Tom Tromey <tom@tromey.com>
10386 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10388 2017-08-03 Tom Tromey <tom@tromey.com>
10390 * cli/cli-cmds.c (find_and_open_script): Change return type.
10391 Remove "streamp" and "full_path" parameters.
10392 (source_script_with_search): Update.
10393 * auto-load.c (source_script_file): Update.
10394 * cli/cli-cmds.h (find_and_open_script): Change type.
10395 (open_script): New struct.
10397 2017-08-03 Tom Tromey <tom@tromey.com>
10399 * xml-support.c (xml_fetch_content_from_file): Update.
10400 * ui-file.c (stdio_file::open): Update.
10401 * tracefile-tfile.c (tfile_start): Update.
10402 * remote.c (remote_file_put, remote_file_get): Update.
10403 * nat/linux-procfs.c (linux_proc_get_int)
10404 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10405 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10406 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10407 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10408 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10409 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10410 * linux-nat.c (linux_proc_pending_signals): Update.
10411 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10412 (file_closer): Remove.
10413 * compile/compile.c (compile_to_object): Update.
10414 * common/filestuff.h (struct gdb_file_deleter): New.
10415 (gdb_file_up): New typedef.
10416 (gdb_fopen_cloexec): Change return type.
10417 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10418 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10419 (dump_binary_file, restore_binary_file): Update.
10420 * auto-load.c (auto_load_objfile_script_1): Update.
10422 2017-08-03 Tom Tromey <tom@tromey.com>
10424 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10425 (info_static_tracepoint_markers_command): Likewise.
10426 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10427 * skip.c (skip_info): Use ui_out_emit_table.
10428 * progspace.c (print_program_space): Use ui_out_emit_table.
10429 * osdata.c (info_osdata): Use ui_out_emit_table.
10430 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10432 * linux-thread-db.c (info_auto_load_libthread_db): Use
10434 * inferior.c (print_inferior): Use ui_out_emit_table.
10435 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10436 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10437 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10438 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10439 * ui-out.h (class ui_out_emit_table): New.
10441 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10443 * mips-tdep.c (mips_fpu_type_str): New function.
10444 (mips_dump_tdep): Call it.
10446 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10448 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10451 2017-07-31 Xavier Roirand <roirand@adacore.com>
10453 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10455 2017-07-27 Xavier Roirand <roirand@adacore.com>
10457 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10459 2017-07-26 Yao Qi <yao.qi@linaro.org>
10461 * cli/cli-cmds.c (maintenancechecklist): New variable.
10462 * gdbcmd.h (maintenancechecklist): Declare it.
10463 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10464 Call i386_linux_read_description with different masks.
10465 * maint.c (maintenance_check_command): New function.
10466 (_initialize_maint_cmds): Call add_prefix_cmd.
10467 * target-descriptions.c (tdesc_reg): override operator != and ==.
10468 (tdesc_type): Likewise.
10469 (tdesc_feature): Likewise.
10470 (target_desc): Likewise.
10471 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10472 (maintenance_check_xml_descriptions): New function.
10473 (_initialize_target_descriptions) Add command "xml-descriptions".
10474 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10476 2017-07-26 Yao Qi <yao.qi@linaro.org>
10478 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10479 Include features/i386/32bit-*.c.
10480 (i386_linux_read_description): Generate target description if it
10482 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10484 * features/i386/32bit-linux.c: Re-generated.
10485 * features/i386/32bit-sse.c: Likewise.
10486 * target-descriptions.c (print_c_feature::visit): Print code to
10487 set register number if needed.
10488 (print_c_feature) <m_next_regnum>: New field.
10490 2017-07-26 Yao Qi <yao.qi@linaro.org>
10492 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10493 (FEATURE_XMLFILES): New.
10494 (FEATURE_CFILES): New.
10496 (clean-cfiles): Remove generated c files.
10497 * features/i386/32bit-avx.c: Generated.
10498 * features/i386/32bit-avx512.c: Generated.
10499 * features/i386/32bit-core.c: Generated.
10500 * features/i386/32bit-linux.c: Generated.
10501 * features/i386/32bit-mpx.c: Generated.
10502 * features/i386/32bit-pkeys.c: Generated.
10503 * features/i386/32bit-sse.c: Generated.
10504 * target-descriptions.c: Include algorithm.
10505 (tdesc_element_visitor): Add method visit_end.
10506 (print_c_tdesc): Implement visit_end.
10507 (print_c_tdesc:: m_filename_after_features): Move it to
10509 (print_c_feature): New class.
10510 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10511 name starts with "i386/32bit-".
10513 2017-07-26 Yao Qi <yao.qi@linaro.org>
10515 * target-descriptions.c (tdesc_element_visitor): New class.
10516 (tdesc_element): New class.
10517 (tdesc_reg): Inherit from tdesc_element.
10518 (tdesc_reg::accept): New function.
10519 (tdesc_type): Inherit from tdesc_element.
10520 (tdesc_type::accept): New function.
10521 (tdesc_feature): Inherit from tdesc_element.
10522 (tdesc_feature::accept): New function.
10523 (target_desc): Inherit from tdesc_element.
10524 (target_desc::target_desc): New.
10525 (target_desc::~target_desc): New.
10526 (target_desc::accept): New.
10527 (allocate_target_description): Use new.
10528 (free_target_description): Use delete.
10529 (print_c_tdesc): New class.
10530 (maint_print_c_tdesc_cmd): Adjust.
10532 * features/aarch64.c: Re-generated.
10533 * features/arc-arcompact.c: Re-generated.
10534 * features/arc-v2.c: Re-generated.
10535 * features/arm/arm-with-iwmmxt.c: Re-generated.
10536 * features/arm/arm-with-m.c: Re-generated.
10537 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10538 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10539 * features/arm/arm-with-neon.c: Re-generated.
10540 * features/arm/arm-with-vfpv2.c: Re-generated.
10541 * features/arm/arm-with-vfpv3.c: Re-generated.
10542 * features/i386/amd64-avx-avx512.c: Re-generated.
10543 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10544 * features/i386/amd64-avx.c: Re-generated.
10545 * features/i386/amd64-avx-linux.c: Re-generated.
10546 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10547 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10548 * features/i386/amd64-avx-mpx.c: Re-generated.
10549 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10550 * features/i386/amd64.c: Re-generated.
10551 * features/i386/amd64-linux.c: Re-generated.
10552 * features/i386/amd64-mpx.c: Re-generated.
10553 * features/i386/amd64-mpx-linux.c: Re-generated.
10554 * features/i386/i386-avx-avx512.c: Re-generated.
10555 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10556 * features/i386/i386-avx.c: Re-generated.
10557 * features/i386/i386-avx-linux.c: Re-generated.
10558 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10559 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10560 * features/i386/i386-avx-mpx.c: Re-generated.
10561 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10562 * features/i386/i386.c: Re-generated.
10563 * features/i386/i386-linux.c: Re-generated.
10564 * features/i386/i386-mmx.c: Re-generated.
10565 * features/i386/i386-mmx-linux.c: Re-generated.
10566 * features/i386/i386-mpx.c: Re-generated.
10567 * features/i386/i386-mpx-linux.c: Re-generated.
10568 * features/i386/x32-avx-avx512.c: Re-generated.
10569 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10570 * features/i386/x32-avx.c: Re-generated.
10571 * features/i386/x32-avx-linux.c: Re-generated.
10572 * features/i386/x32.c: Re-generated.
10573 * features/i386/x32-linux.c: Re-generated.
10574 * features/microblaze.c: Re-generated.
10575 * features/microblaze-with-stack-protect.c: Re-generated.
10576 * features/mips64-dsp-linux.c: Re-generated.
10577 * features/mips64-linux.c: Re-generated.
10578 * features/mips-dsp-linux.c: Re-generated.
10579 * features/mips-linux.c: Re-generated.
10580 * features/nds32.c: Re-generated.
10581 * features/nios2.c: Re-generated.
10582 * features/nios2-linux.c: Re-generated.
10583 * features/rs6000/powerpc-32.c: Re-generated.
10584 * features/rs6000/powerpc-32l.c: Re-generated.
10585 * features/rs6000/powerpc-403.c: Re-generated.
10586 * features/rs6000/powerpc-403gc.c : Re-generated.
10587 * features/rs6000/powerpc-405.c: Re-generated.
10588 * features/rs6000/powerpc-505.c: Re-generated.
10589 * features/rs6000/powerpc-601.c: Re-generated.
10590 * features/rs6000/powerpc-602.c: Re-generated.
10591 * features/rs6000/powerpc-603.c: Re-generated.
10592 * features/rs6000/powerpc-604.c: Re-generated.
10593 * features/rs6000/powerpc-64.c: Re-generated.
10594 * features/rs6000/powerpc-64l.c: Re-generated.
10595 * features/rs6000/powerpc-7400.c: Re-generated.
10596 * features/rs6000/powerpc-750.c: Re-generated.
10597 * features/rs6000/powerpc-860.c: Re-generated.
10598 * features/rs6000/powerpc-altivec32.c: Re-generated.
10599 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10600 * features/rs6000/powerpc-altivec64.c: Re-generated.
10601 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10602 * features/rs6000/powerpc-cell32l.c: Re-generated.
10603 * features/rs6000/powerpc-cell64l.c: Re-generated.
10604 * features/rs6000/powerpc-e500.c: Re-generated.
10605 * features/rs6000/powerpc-e500l.c: Re-generated.
10606 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10607 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10608 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10609 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10610 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10611 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10612 * features/rs6000/powerpc-vsx32.c: Re-generated.
10613 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10614 * features/rs6000/powerpc-vsx64.c: Re-generated.
10615 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10616 * features/rs6000/rs6000.c: Re-generated.
10617 * features/s390-linux32.c: Re-generated.
10618 * features/s390-linux32v1.c: Re-generated.
10619 * features/s390-linux32v2.c: Re-generated.
10620 * features/s390-linux64.c: Re-generated.
10621 * features/s390-linux64v1.c: Re-generated.
10622 * features/s390-linux64v2.c: Re-generated.
10623 * features/s390-te-linux64.c: Re-generated.
10624 * features/s390-tevx-linux64.c: Re-generated.
10625 * features/s390-vx-linux64.c: Re-generated.
10626 * features/s390x-linux64.c: Re-generated.
10627 * features/s390x-linux64v1.c: Re-generated.
10628 * features/s390x-linux64v2.c: Re-generated.
10629 * features/s390x-te-linux64.c: Re-generated.
10630 * features/s390x-tevx-linux64.c: Re-generated.
10631 * features/s390x-vx-linux64.c: Re-generated.
10632 * features/sparc/sparc32-solaris.c: Re-generated.
10633 * features/sparc/sparc64-solaris.c: Re-generated.
10634 * features/tic6x-c62x.c: Re-generated.
10635 * features/tic6x-c62x-linux.c: Re-generated.
10636 * features/tic6x-c64x.c: Re-generated.
10637 * features/tic6x-c64x-linux.c: Re-generated.
10638 * features/tic6x-c64xp.c: Re-generated.
10639 * features/tic6x-c64xp-linux.c: Re-generated.
10641 2017-07-26 Yao Qi <yao.qi@linaro.org>
10643 * i386-linux-tdep.c (i386_linux_read_description): New function.
10644 (i386_linux_core_read_description): Call
10645 i386_linux_read_description.
10646 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10647 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10648 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10649 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10650 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10651 * x86-linux-nat.c (x86_linux_read_description): Call
10652 i386_linux_read_description.
10654 2017-07-26 Yao Qi <yao.qi@linaro.org>
10656 * NEWS: Mention it.
10657 * features/Makefile (%.c: %.xml): Pass the xml file name to
10658 command "maint print c-tdesc".
10659 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10662 2017-07-26 Yao Qi <yao.qi@linaro.org>
10664 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10665 in-class initialization.
10666 (tdesc_create_feature): Call new instead of XCNEW.
10667 (free_target_description): Ue delete.
10669 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10671 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10673 2017-07-25 Yao Qi <yao.qi@linaro.org>
10675 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10677 (amd64_x32_init_abi): Likewise.
10678 * amd64-tdep.h (amd64_init_abi): Update declaration.
10679 (amd64_x32_init_abi): Likewise.
10681 2017-07-25 Yao Qi <yao.qi@linaro.org>
10684 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10685 condition for FPSCR.
10686 (arm_linux_store_inferior_registers): Likewise.
10688 2017-07-22 Tom Tromey <tom@tromey.com>
10690 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10691 <syscalls_counts>: Now a std::vector.
10692 (get_catch_syscall_inferior_data): Use "new".
10693 (catch_syscall_inferior_data_cleanup): Use "delete".
10694 (insert_catch_syscall, remove_catch_syscall)
10695 (clear_syscall_counts): Update.
10697 2017-07-22 Tom Tromey <tom@tromey.com>
10699 * break-catch-syscall.c (syscall_catchpoint)
10700 <syscalls_to_be_caught>: Now a std::vector<int>
10701 (~syscall_catchpoint): Remove.
10702 (insert_catch_syscall, remove_catch_syscall)
10703 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10704 (print_mention_catch_syscall, print_recreate_catch_syscall):
10706 (create_syscall_event_catchpoint): Change type of "filter"
10708 (catch_syscall_split_args): Return a std::vector.
10709 (catch_syscall_command_1, catching_syscall_number_1): Update.
10711 2017-07-22 Tom Tromey <tom@tromey.com>
10713 * break-catch-throw.c (struct exception_catchpoint)
10714 <exception_rx>: Now a std::string.
10715 (~exception_catchpoint): Remove.
10716 (print_one_detail_exception_catchpoint): Update.
10717 (handle_gnu_v3_exceptions): Change type of except_rx.
10718 (extract_exception_regexp): Return a std::string.
10719 (catch_exception_command_1): Update.
10721 2017-07-22 Tom Tromey <tom@tromey.com>
10723 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10724 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10726 <catch_all>: Now a bool.
10727 (~signal_catchpoint): Remove.
10728 (signal_catchpoint_insert_location)
10729 (signal_catchpoint_remove_location)
10730 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10731 (signal_catchpoint_print_mention)
10732 (signal_catchpoint_print_recreate)
10733 (signal_catchpoint_explains_signal): Update.
10734 (create_signal_catchpoint): Change type of "filter" and
10736 (catch_signal_split_args): Return a std::vector. Change type of
10738 (catch_signal_command): Update.
10740 2017-07-20 Pedro Alves <palves@redhat.com>
10742 * ada-lang.c (ada_language_defn): Make extern.
10743 (_initialize_ada_language): Remove add_language call.
10744 * c-lang.c (c_language_defn, cplus_language_defn)
10745 (asm_language_defn, minimal_language_defn): Make extern.
10746 (_initialize_c_language): Delete.
10747 * completer.c (compare_cstrings): Delete, moved to utils.h.
10748 * d-lang.c (d_language_defn): Make extern.
10749 (_initialize_d_language): Remove add_language calls.
10750 * defs.h (enum language): Add comment.
10751 * f-lang.c (f_language_defn): Make extern.
10752 (_initialize_f_language): Remove add_language call.
10753 * go-lang.c (go_language_defn): Make extern.
10754 (_initialize_go_language): Remove add_language call.
10755 * language.c: Include <algorithm>.
10756 (languages): Redefine as const array.
10757 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10758 (set_language_command): Handle "local". Use for-range loop.
10759 (set_language): Remove loop.
10760 (language_enum): Rewrite.
10761 (language_def, language_str): Remove loops.
10762 (add_language): Delete.
10763 (add_set_language_command): New, based on add_languages.
10764 (skip_language_trampoline): Adjust.
10765 (local_language_defn): Delete.
10766 (language_gdbarch_post_init): Adjust.
10767 (_initialize_language): Remove add_language calls. Call
10768 add_set_language_command.
10769 * language.h (add_language): Delete.
10770 (auto_language_defn)
10771 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10772 (asm_language_defn, c_language_defn, cplus_language_defn)
10773 (d_language_defn, f_language_defn, go_language_defn)
10774 (m2_language_defn, objc_language_defn, opencl_language_defn)
10775 (pascal_language_defn, rust_language_defn): Declare.
10776 * m2-lang.c (m2_language_defn): Make extern.
10777 (_initialize_m2_language): Remove add_language call.
10778 * objc-lang.c (objc_language_defn): Make extern.
10779 (_initialize_objc_language): Remove add_language call.
10780 * opencl-lang.c (opencl_language_defn): Make extern.
10781 (_initialize_opencl_language): Remove add_language call.
10782 * p-lang.c (pascal_language_defn): Make extern.
10783 (_initialize_pascal_language): Delete.
10784 * rust-lang.c (rust_language_defn): Make extern.
10785 (_initialize_rust_language): Delete.
10786 * utils.h (compare_cstrings): New static inline function.
10788 2017-07-20 Pedro Alves <palves@redhat.com>
10790 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10791 (get_var_value): Constify parameters.
10792 (get_int_var_value): Change prototype.
10793 (to_fixed_range_type): Adjust.
10794 * ada-lang.h (get_int_var_value): Change prototype.
10796 2017-07-20 Pedro Alves <palves@redhat.com>
10798 * dwarf2read.c (dw2_lookup_symbol): Use
10799 SYMBOL_MATCHES_SEARCH_NAME.
10800 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10802 2017-07-20 Pedro Alves <palves@redhat.com>
10804 * block.c (block_iter_name_step, block_iter_name_first)
10805 (block_iter_name_next): Delete.
10806 (block_lookup_symbol_primary): Adjust to use
10807 dict_iter_match_first/dict_iter_match_next.
10808 * block.h (block_iter_name_first, block_iter_name_next): Delete
10810 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10811 dict_iter_match_first/dict_iter_match_next.
10813 2017-07-20 Pedro Alves <palves@redhat.com>
10815 * cp-support.c (cp_find_first_component_aux): Add missing case for
10818 2017-07-18 David Blaikie <dblaikie@gmail.com>
10820 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10821 of dwo_cu's dwo_file.
10823 2017-07-18 Yao Qi <yao.qi@linaro.org>
10825 * remote.c (store_registers_using_G): Remove one line comment.
10827 2017-07-18 Yao Qi <yao.qi@linaro.org>
10829 * regcache.c (regcache_cpy): Simplify it.
10830 (regcache::cpy_no_passthrough): Remove it.
10831 * regcache.h (cpy_no_passthrough): Remove it.
10832 (regcache_dup, regcache_cpy): Update comments.
10834 2017-07-18 Pedro Alves <palves@redhat.com>
10836 * remote-sim.c (sim_command_completer): Adjust to work with a
10837 completion_tracker instead of a VEC.
10839 2017-07-17 Pedro Alves <palves@redhat.com>
10841 * completer.c (complete_source_filenames): New function.
10842 (complete_address_and_linespec_locations): New function.
10843 (location_completer): Use complete_address_and_linespec_locations.
10844 (completion_tracker::build_completion_result): Honor the tracker's
10845 request to suppress append.
10846 * completer.h (completion_tracker::suppress_append_ws)
10847 (completion_tracker::set_suppress_append_ws): New methods.
10848 (completion_tracker::m_suppress_append_ws): New field.
10849 (complete_source_filenames): New declaration.
10850 * linespec.c (linespec_complete_what): New.
10851 (struct ls_parser) <complete_what, completion_word,
10852 completion_quote_char, completion_quote_end, completion_tracker>:
10854 (string_find_incomplete_keyword_at_end): New.
10855 (linespec_lexer_lex_string): Record quote char. If in completion
10857 (linespec_lexer_consume_token): Advance the completion word point.
10858 (linespec_lexer_peek_token): Save/restore completion info.
10859 (save_stream_and_consume_token): New.
10860 (set_completion_after_number): New.
10861 (linespec_parse_basic): Set what to complete next depending on
10862 token. Handle function and label completions specially.
10863 (parse_linespec): Disable objc shortcut in completion mode. Set
10864 what to complete next depending on token type. Skip keyword if in
10866 (complete_linespec_component, linespec_complete): New.
10867 * linespec.h (linespec_complete): Declare.
10869 2017-07-17 Pedro Alves <palves@redhat.com>
10871 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10872 Handle 'operator<' / 'operator<<'.
10874 2017-07-17 Pedro Alves <palves@redhat.com>
10876 * completer.c (collect_explicit_location_matches): Handle
10878 (convert_explicit_location_to_linespec): New, factored out from
10880 (convert_explicit_location_to_sals): ... this.
10881 (complete_label): New.
10882 (linespec_complete_label, find_label_symbols_in_block): New.
10883 (find_label_symbols): Add completion_mode parameter and adjust to
10884 call find_label_symbols_in_block.
10885 * linespec.h (linespec_complete_label): Declare.
10887 2017-07-17 Pedro Alves <palves@redhat.com>
10889 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10890 complete_symbol_mode parameter.
10891 * cli/cli-cmds.c (complete_command): Get the completion result out
10892 of the handle_brkchars tracker if used a custom word point.
10893 * completer.c: Include "linespec.h".
10894 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10895 (advance_to_expression_complete_word_point): New.
10896 (completion_tracker::completes_to_completion_word): New.
10897 (complete_files_symbols): Pass down
10898 complete_symbol_mode::EXPRESSION.
10899 (explicit_options, probe_options): New.
10900 (collect_explicit_location_matches): Complete on the
10901 explictit_loc->foo instead of word. Use
10902 linespec_complete_function. Handle MATCH_LINE. Handle offering
10903 keyword and options completions.
10904 (backup_text_ptr): Delete.
10905 (skip_keyword): New.
10906 (complete_explicit_location): Remove 'word' parameter. Add
10907 language, quoted_arg_start and quoted_arg_end parameters.
10908 Rewrite, parsing left to right.
10909 (location_completer): Rewrite.
10910 (location_completer_handle_brkchars): New function.
10911 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10912 (enum complete_line_internal_reason): Adjust comments.
10913 (completion_tracker::discard_completions): New.
10914 (completer_handle_brkchars_func_for_completer): Handle
10915 location_completer.
10916 (gdb_custom_word_point_brkchars)
10917 (gdb_org_rl_basic_quote_characters): New.
10918 (gdb_completion_word_break_characters_throw)
10919 (completion_find_completion_word): Handle trackers that use a
10921 (completion_tracker::advance_custom_word_point_by): New.
10922 (completion_tracker::build_completion_result): Don't rely on
10923 readline appending the quote char.
10924 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10925 use a custom word point.
10926 (gdb_rl_attempted_completion_function): Restore
10927 rl_basic_quote_characters.
10928 * completer.h (class completion_tracker): Extend intro comment.
10929 (completion_tracker::set_quote_char)
10930 (completion_tracker::quote_char)
10931 (completion_tracker::set_use_custom_word_point)
10932 (completion_tracker::use_custom_word_point)
10933 (completion_tracker::custom_word_point)
10934 (completion_tracker::set_custom_word_point)
10935 (completion_tracker::advance_custom_word_point_by)
10936 (completion_tracker::completes_to_completion_word)
10937 (completion_tracker::discard_completions): New methods.
10938 (completion_tracker::m_quote_char)
10939 (completion_tracker::m_use_custom_word_point)
10940 (completion_tracker::m_custom_word_point): New fields.
10941 (advance_to_expression_complete_word_point): Declare.
10942 * f-lang.c (f_collect_symbol_completion_matches): Add
10943 complete_symbol_mode parameter.
10944 * language.h (struct language_defn)
10945 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10947 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10948 (linespec_complete_function): New function.
10949 (linespec_lexer_lex_keyword): Adjust.
10950 * linespec.h (linespec_keywords, linespec_complete_function): New
10952 * location.c (find_end_quote): New function.
10953 (explicit_location_lex_one): Add explicit_completion_info
10954 parameter. Save quoting info. Don't throw if being called for
10955 completion. Don't handle Ada operators here.
10956 (is_cp_operator, skip_op_false_positives, first_of)
10957 (explicit_location_lex_one_function): New function.
10958 (string_to_explicit_location): Replace 'dont_throw' parameter with
10959 an explicit_completion_info pointer parameter. Handle it. Don't
10960 use explicit_location_lex_one to lex function names. Use
10961 explicit_location_lex_one_function instead.
10962 * location.h (struct explicit_completion_info): New.
10963 (string_to_explicit_location): Replace 'dont_throw' parameter with
10964 an explicit_completion_info pointer parameter.
10965 * symtab.c (default_collect_symbol_completion_matches_break_on):
10966 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10967 (default_collect_symbol_completion_matches)
10968 (collect_symbol_completion_matches): Add complete_symbol_mode
10970 (collect_symbol_completion_matches_type): Pass down
10971 complete_symbol_mode::EXPRESSION.
10972 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10973 parameter. Handle LINESPEC mode.
10974 * symtab.h (complete_symbol_mode): New.
10975 (default_collect_symbol_completion_matches_break_on)
10976 (default_collect_symbol_completion_matches)
10977 (collect_symbol_completion_matches)
10978 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10981 2017-07-17 Pedro Alves <palves@redhat.com>
10983 * utils.c (enum class strncmp_iw_mode): New.
10984 (strcmp_iw): Rename to ...
10985 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10986 parameters. Handle them.
10988 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10989 * utils.h (strncmp_iw): Declare.
10990 (strcmp_iw): Move describing comments here.
10992 2017-07-17 Pedro Alves <palves@redhat.com>
10994 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10996 * c-typeprint.c (is_type_conversion_operator): Use
10998 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10999 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
11001 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
11002 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
11003 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
11004 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
11006 * location.c: Include "cp-support.h".
11007 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
11009 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
11012 2017-07-17 Pedro Alves <palves@redhat.com>
11014 * cli/cli-cmds.c (complete_command): Use a completion tracker
11015 along with completion_find_completion_word for handle_brkchars
11017 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
11018 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
11019 (struct gdb_rl_completion_word_info): New.
11020 (gdb_rl_find_completion_word): New.
11021 (completion_find_completion_word): New.
11022 * completer.h (completion_find_completion_word): Declare.
11024 2017-07-17 Pedro Alves <palves@redhat.com>
11026 * ada-lang.c (symbol_completion_match): Adjust comments.
11027 (symbol_completion_add): Replace vector parameter with
11028 completion_tracker parameter. Use it.
11029 (ada_make_symbol_completion_list): Rename to...
11030 (ada_collect_symbol_completion_matches): ... this. Add
11031 completion_tracker parameter and use it.
11032 (ada_language_defn): Adjust.
11033 * break-catch-syscall.c (catch_syscall_completer): Adjust
11034 prototype and work with completion_tracker instead of VEC.
11035 * breakpoint.c (condition_completer): Adjust prototype and work
11036 with completion_tracker instead of VEC.
11037 * c-lang.c (c_language_defn, cplus_language_defn)
11038 (asm_language_defn, minimal_language_defn): Adjust to renames.
11039 * cli/cli-cmds.c (complete_command): Rework using
11040 completion_tracker. Catch exceptions when completing.
11041 * cli/cli-decode.c (integer_unlimited_completer)
11042 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
11043 with completion_tracker instead of VEC.
11044 * command.h (struct completion_tracker): Forward declare.
11045 (completer_ftype, completer_handle_brkchars_ftype): Change
11047 (complete_on_cmdlist, complete_on_enum): Adjust.
11048 * completer.c: Include <algorithm>.
11049 (struct gdb_completer_state): New.
11050 (current_completion): New global.
11051 (readline_line_completion_function): Delete.
11052 (noop_completer, filename_completer)
11053 (filename_completer_handle_brkchars, complete_files_symbols)
11054 (linespec_location_completer): Adjust to work with a
11055 completion_tracker instead of a VEC.
11056 (string_or_empty): New.
11057 (collect_explicit_location_matches): Adjust to work with a
11058 completion_tracker instead of a VEC.
11059 (explicit_location_completer): Rename to ...
11060 (complete_explicit_location): ... this and adjust to work with a
11061 completion_tracker instead of a VEC.
11062 (location_completer): Adjust to work with a completion_tracker
11064 (add_struct_fields): Adjust to work with a completion_list instead
11066 (expression_completer): Rename to ...
11067 (complete_expression): ... this and adjust to work with a
11068 completion_tracker instead of a VEC. Use complete_files_symbols.
11069 (expression_completer): Reimplement on top of complete_expression.
11070 (symbol_completer): Adjust to work with a completion_tracker
11072 (enum complete_line_internal_reason): Add describing comments.
11073 (complete_line_internal_normal_command): Adjust to work with a
11074 completion_tracker instead of a VEC.
11075 (complete_line_internal): Rename to ...
11076 (complete_line_internal_1): ... this and adjust to work with a
11077 completion_tracker instead of a VEC. Assert TEXT is NULL in the
11078 handle_brkchars phase.
11079 (new_completion_tracker): Delete.
11080 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
11081 complete_line_internal_1.
11082 (free_completion_tracker): Delete.
11083 (INITIAL_COMPLETION_HTAB_SIZE): New.
11084 (completion_tracker::completion_tracker)
11085 (completion_tracker::~completion_tracker): New.
11086 (maybe_add_completion): Delete.
11087 (completion_tracker::maybe_add_completion)
11088 (completion_tracker::add_completion)
11089 (completion_tracker::add_completions): New.
11090 (throw_max_completions_reached_error): Delete.
11091 (complete_line): Adjust to work with a completion_tracker instead
11092 of a VEC. Don't create a completion_tracker_t or check for max
11094 (command_completer, command_completer_handle_brkchars)
11095 (signal_completer, reg_or_group_completer_1)
11096 (reg_or_group_completer, default_completer_handle_brkchars):
11097 Adjust to work with a completion_tracker.
11098 (gdb_completion_word_break_characters_throw): New.
11099 (gdb_completion_word_break_characters): Reimplement.
11100 (line_completion_function): Delete.
11101 (completion_tracker::recompute_lowest_common_denominator)
11102 (expand_preserving_ws)
11103 (completion_tracker::build_completion_result)
11104 (completion_result::completion_result)
11105 (completion_result::completion_result)
11106 (completion_result::~completion_result)
11107 (completion_result::completion_result)
11108 (completion_result::release_match_list, compare_cstrings)
11109 (completion_result::sort_match_list)
11110 (completion_result::reset_match_list)
11111 (gdb_rl_attempted_completion_function_throw)
11112 (gdb_rl_attempted_completion_function): New.
11113 * completer.h (completion_list, struct completion_result)
11114 (class completion_tracker): New.
11115 (complete_line): Add completion_tracker parameter.
11116 (readline_line_completion_function): Delete.
11117 (gdb_rl_attempted_completion_function): New.
11118 (noop_completer, filename_completer, expression_completer)
11119 (location_completer, symbol_completer, command_completer)
11120 (signal_completer, reg_or_group_completer): Update prototypes.
11121 (completion_tracker_t, new_completion_tracker)
11122 (make_cleanup_free_completion_tracker): Delete.
11123 (enum maybe_add_completion_enum): Delete.
11124 (maybe_add_completion): Delete.
11125 (throw_max_completions_reached_error): Delete.
11126 * corefile.c (complete_set_gnutarget): Adjust to work with a
11127 completion_tracker instead of a VEC.
11128 * cp-abi.c (cp_abi_completer): Adjust to work with a
11129 completion_tracker instead of a VEC.
11130 * d-lang.c (d_language_defn): Adjust.
11131 * disasm.c (disassembler_options_completer): Adjust to work with a
11132 completion_tracker instead of a VEC.
11133 * f-lang.c (f_make_symbol_completion_list): Rename to ...
11134 (f_collect_symbol_completion_matches): ... this. Adjust to work
11135 with a completion_tracker instead of a VEC.
11136 (f_language_defn): Adjust.
11137 * go-lang.c (go_language_defn): Adjust.
11138 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
11139 Adjust to work with a completion_tracker instead of a VEC.
11140 * infrun.c (handle_completer): Likewise.
11141 * interps.c (interpreter_completer): Likewise.
11142 * interps.h (interpreter_completer): Likewise.
11143 * language.c (unknown_language_defn, auto_language_defn)
11144 (local_language_defn): Adjust.
11145 * language.h (language_defn::la_make_symbol_completion_list):
11147 (language_defn::la_collect_symbol_completion_matches): ... this
11148 and adjust to work with a completion_tracker instead of a VEC.
11149 * m2-lang.c (m2_language_defn): Adjust.
11150 * objc-lang.c (objc_language_defn): Adjust.
11151 * opencl-lang.c (opencl_language_defn): Adjust.
11152 * p-lang.c (pascal_language_defn): Adjust.
11153 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
11154 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
11155 with a completion_tracker.
11156 * rust-lang.c (rust_language_defn): Adjust.
11157 * symtab.c (free_completion_list, do_free_completion_list)
11158 (return_val, completion_tracker): Delete.
11159 (completion_list_add_name, completion_list_add_symbol)
11160 (completion_list_add_msymbol, completion_list_objc_symbol)
11161 (completion_list_add_fields, add_symtab_completions): Add
11162 completion_tracker parameter and use it.
11163 (default_make_symbol_completion_list_break_on_1): Rename to...
11164 (default_collect_symbol_completion_matches_break_on): ... this.
11165 Add completion_tracker parameter and use it instead of allocating
11166 a completion tracker here.
11167 (default_make_symbol_completion_list_break_on): Delete old
11169 (default_make_symbol_completion_list): Delete.
11170 (default_collect_symbol_completion_matches): New.
11171 (make_symbol_completion_list): Delete.
11172 (collect_symbol_completion_matches): New.
11173 (make_symbol_completion_type): Rename to ...
11174 (collect_symbol_completion_matches_type): ... this. Add
11175 completion_tracker parameter and use it instead of VEC.
11176 (make_file_symbol_completion_list_1): Rename to...
11177 (collect_file_symbol_completion_matches): ... this. Add
11178 completion_tracker parameter and use it instead of VEC.
11179 (make_file_symbol_completion_list): Delete.
11180 (add_filename_to_list): Use completion_list instead of a VEC.
11181 (add_partial_filename_data::list): Now a completion_list.
11182 (make_source_files_completion_list): Work with a completion_list
11184 * symtab.h: Include "completer.h".
11185 (default_make_symbol_completion_list_break_on)
11186 (default_make_symbol_completion_list, make_symbol_completion_list)
11187 (make_symbol_completion_type, make_file_symbol_completion_list)
11188 (make_source_files_completion_list): Delete.
11189 (default_collect_symbol_completion_matches_break_on)
11190 (default_collect_symbol_completion_matches)
11191 (collect_symbol_completion_matches)
11192 (collect_symbol_completion_matches_type)
11193 (collect_file_symbol_completion_matches)
11194 (make_source_files_completion_list): New.
11195 * top.c (init_main): Don't install a rl_completion_entry_function
11196 hook. Install a rl_attempted_completion_function hook instead.
11197 * tui/tui-layout.c (layout_completer): Adjust to work with a
11198 completion_tracker.
11199 * tui/tui-regs.c (tui_reggroup_completer):
11200 * tui/tui-win.c (window_name_completer, focus_completer)
11201 (winheight_completer): Adjust to work with a completion_tracker.
11202 * value.c: Include "completer.h".
11203 (complete_internalvar): Adjust to work with a completion_tracker.
11204 * value.h (complete_internalvar): Likewise.
11206 2017-07-17 Pedro Alves <palves@redhat.com>
11208 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
11210 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
11211 comments to completer_ftype's declaration.
11212 <completer_handle_brkchars>: Change type to
11213 completer_handle_brkchars_ftype.
11214 * command.h (completer_ftype): Add describing comment and give
11215 names to parameters.
11216 (completer_ftype_void): Rename to ...
11217 (completer_handle_brkchars_ftype) ... this. Add describing comment.
11218 (set_cmd_completer_handle_brkchars): Adjust.
11219 * completer.c (filename_completer_handle_brkchars): New function.
11220 (complete_line_internal_normal_command): New function, factored
11222 (complete_line_internal): ... here.
11223 (command_completer_handle_brkchars)
11224 (default_completer_handle_brkchars)
11225 (completer_handle_brkchars_func_for_completer): New functions.
11226 * completer.h (set_gdb_completion_word_break_characters): Delete
11228 (completer_handle_brkchars_func_for_completer): New declaration.
11229 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
11230 completer_handle_brkchars_func_for_completer.
11232 2017-07-17 Pedro Alves <palves@redhat.com>
11234 * completer.c (symbol_completer): New function, based on
11235 make_symbol_completion_list_fn.
11236 * completer.h (symbol_completer): New declaration.
11237 * guile/scm-cmd.c (cmdscm_completers): Adjust.
11238 * python/py-cmd.c (completers): Adjust.
11239 * symtab.c (make_symbol_completion_list_fn): Delete.
11240 * symtab.h (make_symbol_completion_list_fn): Delete.
11241 * cli/cli-decode.c (add_cmd): Adjust.
11243 2017-07-17 Pedro Alves <palves@redhat.com>
11245 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
11246 * dwarf2read.c: Include "filename-seen-cache.h".
11247 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
11248 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
11249 * filename-seen-cache.c: New file.
11250 * filename-seen-cache.h: New file.
11251 * symtab.c: Include "filename-seen-cache.h".
11252 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
11253 (create_filename_seen_cache, clear_filename_seen_cache)
11254 (delete_filename_seen_cache, filename_seen): Delete, parts moved
11255 to filename-seen-cache.h/filename-seen-cache.c.
11256 (output_source_filename, sources_info)
11257 (maybe_add_partial_symtab_filename)
11258 (make_source_files_completion_list): Adjust to use
11259 filename_seen_cache.
11261 2017-07-17 Pedro Alves <palves@redhat.com>
11263 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
11265 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
11266 dwarf2_debug_sections*)): New.
11267 (dwarf2_per_objfile::dwarf2_per_objfile(const
11268 dwarf2_per_objfile&)): Declare as deleted.
11269 (dwarf2_per_objfile::operator=): Declare as deleted.
11270 (dwarf2_per_objfile::dwarf2_per_objfile)
11271 (dwarf2_per_objfile::~dwarf2_per_objfile)
11272 (dwarf2_per_objfile::free_cached_comp_units): New.
11273 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
11274 ctor. Call dwarf2_per_objfile's ctor manually.
11275 (dwarf2_locate_sections): Deleted/refactored as ...
11276 (dwarf2_per_objfile::locate_sections): ... this new method.
11277 (free_cached_comp_units): Defer to
11278 dwarf2_per_objfile::free_cached_comp_units.
11279 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
11281 2017-07-14 Tom Tromey <tom@tromey.com>
11284 * rust-exp.y (convert_ast_to_expression): Add "want_type"
11286 <UNOP_SIZEOF>: Split into separate case.
11287 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
11289 2017-07-14 Tom Tromey <tom@tromey.com>
11292 * symtab.c (symbol_matches_domain): Add language_rust to special
11294 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
11295 treat LOC_TYPEDEF symbols as variables.
11297 2017-07-14 Pedro Alves <palves@redhat.com>
11299 * symtab.c (make_file_symbol_completion_list_1): Iterate over
11300 symtabs matching all symtabs with SRCFILE as file name instead of
11301 only considering the first hit, with lookup_symtab.
11303 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11305 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
11306 operator_name parameters.
11307 (gen_expr): Update function call.
11309 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11311 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
11313 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
11315 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
11316 parameter, use agent_expr::gdbarch instead, update function
11318 (locexpr_tracepoint_var_ref): Likewise.
11319 (loclist_tracepoint_var_ref): Likewise.
11320 * ax-gdb.c (gen_trace_static_fields): Likewise.
11321 (gen_traced_pop): Likewise.
11322 (gen_frame_args_address): Likewise.
11323 (gen_frame_locals_address): Likewise.
11324 (gen_var_ref): Likewise.
11325 (gen_struct_ref_recursive): Likewise.
11326 (gen_static_field): Likewise.
11327 (gen_maybe_namespace_elt): Likewise.
11328 (gen_expr): Likewise.
11329 (gen_trace_for_var): Likewise.
11330 (gen_trace_for_expr): Likewise.
11331 (gen_trace_for_return_address): Likewise.
11333 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11335 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
11337 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
11339 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11341 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
11342 from ax, update calls.
11343 (gen_usual_arithmetic): Likewise.
11344 (gen_integral_promotions): Likewise.
11345 (gen_bitfield_ref): Likewise.
11346 (gen_primitive_field): Likewise.
11347 (gen_struct_ref_recursive): Likewise.
11348 (gen_struct_ref): Likewise.
11349 (gen_maybe_namespace_elt): Likewise.
11350 (gen_struct_elt_for_reference): Likewise.
11351 (gen_namespace_elt): Likewise.
11352 (gen_aggregate_elt_ref): Likewise.
11353 (gen_expr): Get gdbarch from ax, update calls.
11354 (gen_expr_binop_rest): Likewise.
11356 2017-07-13 Pedro Alves <palves@redhat.com>
11358 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
11360 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
11361 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
11362 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
11363 tdesc_amd64_linux as default tdesc. Get final tdesc from the
11365 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
11366 Get final tdesc from the tdep.
11367 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
11369 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
11370 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
11371 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
11372 Use it as default tdesc.
11373 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
11374 down to amd_init_abi. No longer handle fallback tdesc here.
11375 * amd64-tdep.h (tdesc_x32): Declare.
11376 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11378 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11381 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11383 * s390-linux-tdep.c (s390_process_record): Add support for
11384 instructions new in arch12.
11386 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11388 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11389 PT_GETFSBASE and PT_GETGSBASE.
11390 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11393 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11395 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11396 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11397 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11399 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11400 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11401 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11402 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11403 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11404 * features/i386/amd64.xml: Add 64bit-segments.xml.
11405 * features/i386/amd64-avx-avx512.c: Regenerated.
11406 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11407 * features/i386/amd64-avx-mpx.c: Regenerated.
11408 * features/i386/amd64-avx.c: Regenerated.
11409 * features/i386/amd64-mpx.c: Regenerated.
11410 * features/i386/amd64.c: Regenerated.
11411 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11412 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11413 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11414 * regformats/i386/amd64-avx.dat: Regenerated.
11415 * regformats/i386/amd64-mpx.dat: Regenerated.
11416 * regformats/i386/amd64.dat: Regenerated.
11418 2017-07-10 Yao Qi <yao.qi@linaro.org>
11420 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11421 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11423 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11425 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11427 * gnulib/aclocal.m4: Regenerate.
11428 * gnulib/config.in: Regenerate.
11429 * gnulib/configure: Regenerate.
11430 * gnulib/import/Makefile.am: Regenerate.
11431 * gnulib/import/Makefile.in: Regenerate.
11432 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11433 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11434 * gnulib/import/m4/environ.m4: New file.
11435 * gnulib/import/m4/setenv.m4: New file.
11436 * gnulib/import/setenv.c: New file.
11437 * gnulib/import/unsetenv.c: New file.
11439 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11441 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11442 address when op is DW_OP_addr.
11444 2017-07-09 Tom Tromey <tom@tromey.com>
11446 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11447 check and apply to outer type.
11449 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11451 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11452 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11453 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11454 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11456 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11458 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11460 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11462 * corelow.c (get_core_siginfo): Remove.
11463 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11464 instead of get_core_siginfo.
11465 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11466 * gdbarch.h: Re-generate.
11467 * gdbarch.c: Re-generate.
11468 * linux-tdep.c (linux_core_xfer_siginfo): New.
11469 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11471 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11473 * corelow.c (thread_section_name): Move to ...
11474 * gdbcore.h (thread_section_name): ... here.
11476 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11478 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11479 (struct siginfo32): New.
11480 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11481 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11482 via ptrace(PT_LWPINFO).
11484 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11486 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11487 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11488 (fbsd_get_siginfo_type): New.
11489 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11490 (_initialize_fbsd_tdep): New.
11492 2017-07-06 David Blaikie <dblaikie@gmail.com>
11494 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11495 a singular dwo_unit*) to support multiple CUs in the same way that
11496 multiple TUs are supported.
11497 (create_cus_hash_table): Replace create_dwo_cu with a function for
11498 parsing multiple CUs from a DWO file.
11499 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11501 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11502 htab_find, rather than comparing the signature to a singleton CU in
11505 2017-07-06 Pedro Alves <palves@redhat.com>
11507 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11509 2017-07-04 Pedro Alves <palves@redhat.com>
11511 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11512 * gdbtypes.h (TYPE_STATIC): Delete.
11513 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11514 is_synchronized, is_native>: Delete.
11516 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11517 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11518 (TYPE_FN_FIELD_ABSTRACT): Delete.
11520 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11522 * buffer.h (buffer_finish): Fix spelling mistakes.
11524 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11526 * .dir-locals.el: Automatically switch to C-style comments in
11527 versions of Emacs that support the feature.
11529 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11530 Pedro Alves <palves@redhat.com>
11533 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11534 (process_next_line): New variable 'inline_cmd'.
11535 Adjust 'if' clauses for "python", "compile" and "guile" to use
11536 'command_name_equals' and check for '!inline_cmd'.
11538 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11541 * cli/cli-script.c (command_name_equals_not_inline): New function.
11542 (process_next_line): Adjust 'if' clauses for "python", "compile"
11543 and "guile" to use command_name_equals_not_inline.
11545 2017-06-29 Pedro Alves <palves@redhat.com>
11547 * completer.c (expression_completer): Call
11548 linespec_location_completer instead of location_completer.
11550 2017-06-29 Pedro Alves <palves@redhat.com>
11552 * completer.c (expression_completer): Remove code that recomputes
11553 'text' from 'word'.
11555 2017-06-29 Yao Qi <yao.qi@linaro.org>
11557 * regformats/regdat.sh: Generate code with
11558 "ifndef IN_PROCESS_AGENT".
11560 2017-06-28 Pedro Alves <palves@redhat.com>
11562 * command.h: Include "common/scoped_restore.h".
11564 2017-06-28 Yao Qi <yao.qi@linaro.org>
11566 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11567 instead of obstack_grow.
11569 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11572 * symfile.c (reread_symbols): Call objfiles_changed just before
11575 2017-06-27 Pedro Alves <palves@redhat.com>
11577 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11578 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11579 (completion_list_add_symbol, completion_list_add_msymbol):
11580 ... these new functions.
11581 (add_symtab_completions)
11582 (default_make_symbol_completion_list_break_on_1): Adjust.
11584 2017-06-27 Pedro Alves <palves@redhat.com>
11586 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11587 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11588 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11590 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11591 'storage_obstack' field an auto_obstack. In-class initialize all
11592 non-bitfield fields. Make minsyms_read bool.
11593 * symfile.c (read_symbols): Adjust.
11595 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11597 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11598 (gdbsim_store_register): Likewise.
11600 2017-06-27 Pedro Alves <palves@redhat.com>
11602 * c-exp.y (name_obstack): Now an auto_obstack.
11603 (yylex): Use auto_obstack::clear.
11604 (c_parse): Use auto_obstack::clear instead of reinitializing and
11605 freeing the obstack.
11606 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11607 * d-exp.y (name_obstack): Now an auto_obstack.
11608 (yylex): Use auto_obstack::clear.
11609 (d_parse): Use auto_obstack::clear instead of reinitializing and
11610 freeing the obstack.
11611 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11613 * dwarf2read.c (create_addrmap_from_index)
11614 (dwarf2_build_psymtabs_hard)
11615 (update_enumeration_type_from_children): Likewise.
11616 * gdb_obstack.h (auto_obstack): New type.
11617 * go-exp.y (name_obstack): Now an auto_obstack.
11618 (build_packaged_name): Use auto_obstack::clear.
11619 (go_parse): Use auto_obstack::clear instead of reinitializing and
11620 freeing the obstack.
11621 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11623 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11624 * rust-exp.y (work_obstack): Now an auto_obstack.
11625 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11626 reinitializing and freeing the obstack.
11627 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11628 (host_char_to_target): Use auto_obstack.
11629 * utils.h (make_cleanup_obstack_free): Delete declaration.
11630 * valprint.c (generic_emit_char, generic_printstr): Use
11633 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11635 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11637 (darwin_init_thread_list): Don't update dummy thread.
11638 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11640 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11642 * record-full.c (netorder16): Remove.
11644 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11646 * common/diagnostics.h: Define macros for GCC.
11647 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11648 * common/vec.h: Include diagnostics.h.
11649 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11650 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11653 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11655 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11657 * ada-lex.l: Ignore deprecated register warnings.
11659 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11661 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11662 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11664 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11666 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11669 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11671 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11673 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11675 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11676 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11677 (xtensa_register_read_masked): Likewise.
11679 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11681 * common/environ.c (gdb_environ::unset): Update comment.
11683 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11685 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11688 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11690 * record-full.c (record_full_exec_insn): Use byte_vector.
11692 2017-06-22 Yao Qi <yao.qi@linaro.org>
11694 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11695 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11697 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11699 * remote.c (cached_reg): Move from here...
11700 * regcache.h (cached_reg): ...to here.
11701 * python/py-unwind.c (struct reg_info): Remove.
11702 (cached_frame_info): Use cached_reg_t.
11703 (pyuw_prev_register): Likewise.
11704 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11705 (pyuw_dealloc_cache): Free all registers.
11707 2017-06-22 Pedro Alves <palves@redhat.com>
11708 Simon Marchi <simon.marchi@ericsson.com>
11710 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11712 * common/diagnostics.h: New file.
11714 2017-06-22 Pedro Alves <palves@redhat.com>
11716 * common/agent.h: Add include guards.
11718 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11720 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11721 talk about addressable units instead of bytes.
11723 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11725 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11726 of '::const_iterator'.
11728 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11730 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11731 'unittests/environ-selftests.c'.
11732 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11733 * charset.c (find_charset_names): Declare object 'iconv_env'.
11734 Update code to use 'iconv_env' object. Remove call to
11736 * common/environ.c: Include <utility>.
11737 (make_environ): Delete function.
11738 (free_environ): Delete function.
11739 (gdb_environ::clear): New function.
11740 (gdb_environ::operator=): New function.
11741 (gdb_environ::get): Likewise.
11742 (environ_vector): Delete function.
11743 (set_in_environ): Delete function.
11744 (gdb_environ::set): New function.
11745 (unset_in_environ): Delete function.
11746 (gdb_environ::unset): New function.
11747 (gdb_environ::envp): Likewise.
11748 * common/environ.h: Include <vector>.
11749 (struct gdb_environ): Delete; transform into...
11750 (class gdb_environ): ... this class.
11751 (free_environ): Delete prototype.
11752 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11753 environ_vector): Likewise.
11754 * infcmd.c (run_command_1): Update code to call
11755 'envp' from 'gdb_environ' class.
11756 (environment_info): Update code to call methods from 'gdb_environ'
11758 (unset_environment_command): Likewise.
11759 (path_info): Likewise.
11760 (path_command): Likewise.
11761 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11762 (inferior::inferior): Initialize 'environment' using the host's
11764 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11765 Include "environ.h".
11766 (class inferior) <environment>: Change type from 'struct
11767 gdb_environ' to 'gdb_environ'.
11768 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11769 methods from 'gdb_environ' class.
11770 * solib.c (solib_find_1): Likewise
11771 * unittests/environ-selftests.c: New file.
11773 2017-06-20 Yao Qi <yao.qi@linaro.org>
11775 * features/i386/i386-linux.xml: Exchange the order of including
11776 32bit-linux.xml and 32bit-sse.xml.
11777 * features/i386/i386-linux.c: Regenerated.
11779 2017-06-20 Yao Qi <yao.qi@linaro.org>
11781 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11782 Delete copy ctor and assignment operator.
11783 (tdesc_type): Likewise.
11784 (tdesc_feature): Likewise.
11785 (tdesc_free_reg): Remove.
11786 (tdesc_create_reg): Use new.
11787 (tdesc_free_type): Remove.
11788 (tdesc_create_vector): Use new.
11789 (tdesc_create_union): Likewise.
11790 (tdesc_create_flags): Likewise.
11791 (tdesc_create_enum): Likewise.
11792 (tdesc_free_feature): Delete.
11793 (free_target_description): Use delete.
11795 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11797 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11800 2017-06-19 Pedro Alves <palves@redhat.com>
11802 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11803 after gdb::unlinker.
11805 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11807 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11808 gdb_environ to access an environment variable.
11810 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11812 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11815 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11817 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11819 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11821 * configure: Re-generate.
11822 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11824 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11826 * configure: Re-generate.
11827 * warning.m4: Pass -Werror to compiler when checking for
11828 supported warning flags.
11830 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11832 * Makefile.in (COMPILE.pre): Add "-x c++".
11834 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11835 Pedro Alves <palves@redhat.com>
11836 Yao Qi <yao.qi@linaro.org>
11838 * defs.h (RequireLongest): New.
11839 (extract_integer): Declare function template.
11840 (extract_signed_integer): Remove the declaration, but define it
11842 (extract_unsigned_integer): Likewise.
11843 (store_integer): Declare function template.
11844 (store_signed_integer): Remove the declaration, but define it
11846 (store_unsigned_integer): Likewise.
11847 * findvar.c (extract_integer): New function template.
11848 (extract_signed_integer): Remove.
11849 (extract_unsigned_integer): Remove.
11850 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11852 (store_integer): New function template.
11853 (store_signed_integer): Remove.
11854 (store_unsigned_integer): Remove.
11855 (store_integer): Explicit instantiations.
11856 * regcache.c (regcache_raw_read_signed): Update.
11857 (regcache::raw_read): New function.
11858 (regcache::raw_read_signed): Remove.
11859 (regcache::raw_read_unsigned): Remove.
11860 (regcache_raw_read_unsigned): Update.
11861 (regcache_raw_write_unsigned): Update.
11862 (regcache::raw_write_signed): Remove.
11863 (regcache::raw_write): New function.
11864 (regcache_cooked_read_signed): Update.
11865 (regcache::raw_write_unsigned): Remove.
11866 (regcache::cooked_read_signed): Remove.
11867 (regcache_cooked_read_unsigned): Update.
11868 (regcache::cooked_read_unsigned): Remove.
11869 (regcache_cooked_write_signed): Update.
11870 (regcache_cooked_write_unsigned): Update.
11871 * regcache.h (regcache) <raw_read_signed>: Remove.
11872 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11873 <raw_read, raw_write>: New.
11874 <cooked_read_signed, cooked_write_signed>: Remove.
11875 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11876 <cooked_read, cooked_write>: New.
11877 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11878 (sh64_pseudo_register_write): Update.
11880 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11882 * arc-tdep.c (arc_disassembler_options): New variable.
11883 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11884 of default_print_insn.
11885 (arc_delayed_print_insn): Set info->section when needed,
11886 use default_print_insn to retrieve a disassembler.
11888 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11891 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11892 to mention $SHELL and startup-with-shell.
11894 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11896 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11898 2017-06-14 Yao Qi <yao.qi@linaro.org>
11900 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11901 default_print_insn instead of print_insn_aarch64.
11902 * arm-tdep.c (gdb_print_insn_arm): Call
11903 default_print_insn instead of print_insn_big_arm
11904 and print_insn_little_arm.
11905 * i386-tdep.c (i386_print_insn): Call default_print_insn
11906 instead of print_insn_i386.
11907 * ia64-tdep.c (ia64_print_insn): Call
11908 default_print_insn instead of print_insn_ia64.
11909 * mips-tdep.c (gdb_print_insn_mips): Call
11910 default_print_insn instead of print_insn_big_mips
11911 and print_insn_little_mips.
11912 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11913 instead of print_insn_spu.
11915 2017-06-14 Pedro Alves <palves@redhat.com>
11917 * ada-lang.c: Include "common/byte-vector.h".
11918 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11919 * charset.c (wchar_iterator::iterate): Resize the vector instead
11921 * common/byte-vector.h: Include "common/def-vector.h".
11922 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11923 * cli/cli-dump.c: Include "common/byte-vector.h".
11924 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11925 * common/byte-vector.h: New file.
11926 * common/def-vector.h: New file.
11927 * common/default-init-alloc.h: New file.
11928 * dwarf2loc.c: Include "common/byte-vector.h".
11929 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11930 instead of reserving it.
11931 * dwarf2read.c: Include "common/byte-vector.h".
11932 (data_buf::m_vec): Now a gdb::byte_vector.
11933 * gdb_regex.c: Include "common/def-vector.h".
11934 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11935 * mi/mi-main.c: Include "common/byte-vector.h".
11936 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11937 * printcmd.c: Include "common/byte-vector.h".
11938 (print_scalar_formatted): Use gdb::byte_vector.
11939 * valprint.c: Include "common/byte-vector.h".
11940 (maybe_negate_by_bytes, print_decimal_chars): Use
11943 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11945 * darwin-nat.c: Include "nat/fork-inferior.h".
11947 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11949 * configure.nat: Factor out Darwin bits that are not
11950 architecture-specific. Add fork-inferior.o.
11952 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11954 * configure.nat: Factor out AIX bits that are not
11955 architecture-specific. Add fork-inferior.o.
11957 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11959 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11960 (read_pieced_value, write_pieced_value): ...here. Reduce to
11961 wrappers that just call rw_pieced_value.
11963 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11965 * dwarf2loc.c (write_pieced_value): When writing the data for a
11966 memory piece, use write_memory_with_notification instead of
11969 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11971 * valops.c (read_value_memory): Change embedded_offset to
11972 represent a bit offset instead of a byte offset.
11973 * value.h (read_value_memory): Adjust comment.
11975 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11977 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11978 dest_offset_bits and source_offset_bits.
11979 (write_pieced_value): Likewise.
11981 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11983 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11984 given by DW_OP_bit_piece.
11985 (write_pieced_value): Likewise.
11987 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11989 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11990 some other preparations to the places where sufficient information
11992 (write_pieced_value): Likewise.
11994 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11996 * dwarf2loc.c (bits_to_bytes): New function.
11997 (read_pieced_value): Fix offset calculations for register pieces
11998 on big-endian targets.
11999 (write_pieced_value): Likewise.
12001 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12003 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
12004 (write_pieced_value): Likewise.
12006 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12008 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
12009 transfer the source value's least significant bits, instead of its
12010 lowest-addressed ones. Rename type_len to max_offset.
12011 (read_pieced_value): Mirror above changes to write_pieced_value as
12014 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12016 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
12017 truncate full bytes from dest_offset_bits before using it as an
12018 offset into the buffer.
12020 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12022 * dwarf2loc.c (write_pieced_value): Include transfer size in
12025 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12027 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
12028 calculation of this_size.
12030 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12032 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
12033 when targeting a bit-field.
12034 (write_pieced_value): Likewise.
12036 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12038 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
12039 (allocate_piece_closure): Drop addr_size parameter.
12040 (dwarf2_evaluate_loc_desc_full): Adjust call to
12041 allocate_piece_closure.
12043 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12046 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
12047 the LSB end, independent of endianness.
12049 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12051 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
12054 2017-06-13 Yao Qi <yao.qi@linaro.org>
12056 * mips-linux-nat.c: Move include features/mips*-linux.c to
12058 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
12059 to mips-linux-tdep.c.
12060 * mips-linux-tdep.c: Include features/mips*-linux.c
12061 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
12063 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
12064 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
12065 (tdesc_mips64_dsp_linux): Declare.
12067 2017-06-12 Tom Tromey <tom@tromey.com>
12069 * valprint.h (val_print_type_code_int): Remove.
12070 * valprint.c (generic_val_print_int): Always call
12071 val_print_scalar_formatted.
12072 (val_print_type_code_int): Remove.
12073 * printcmd.c (print_scalar_formatted): Handle options->format==0.
12074 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
12075 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
12076 * ada-valprint.c (ada_val_print_num): Use
12077 val_print_scalar_formatted.
12079 2017-06-12 Tom Tromey <tom@tromey.com>
12081 * printcmd.c (print_scalar_formatted): Unify the two switches.
12082 Don't convert scalars to LONGEST.
12084 2017-06-12 Tom Tromey <tom@tromey.com>
12087 * valprint.h (print_decimal_chars): Update.
12088 * valprint.c (maybe_negate_by_bytes): New function.
12089 (print_decimal_chars): Add "is_signed" argument.
12090 * printcmd.c (print_scalar_formatted): Update.
12092 2017-06-12 Tom Tromey <tom@tromey.com>
12095 * valprint.h (print_binary_chars, print_hex_chars): Update.
12096 * valprint.c (val_print_type_code_int): Update.
12097 (print_binary_chars): Add "zero_pad" argument.
12098 (emit_octal_digit): New function.
12099 (print_octal_chars): Don't zero-pad.
12100 (print_decimal_chars): Likewise.
12101 (print_hex_chars): Add "zero_pad" argument.
12102 * sh64-tdep.c (sh64_do_fp_register): Update.
12103 * regcache.c (regcache::dump): Update.
12104 * printcmd.c (print_scalar_formatted): Update.
12105 * infcmd.c (default_print_one_register_info): Update.
12107 2017-06-12 Pedro Alves <palves@redhat.com>
12108 Alan Hayward <alan.hayward@arm.com>
12110 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
12111 (mips_eabi_push_dummy_call): Rename local 'regsize' to
12112 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
12113 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
12114 Assert that abi_regsize bytes fit in 'ref_valbuf'.
12116 2017-06-12 Pedro Alves <palves@redhat.com>
12118 * dwarf2read.c (mapped_symtab::data): Now a vector of
12119 symtab_index_entry instead of vector of
12120 std::unique_ptr<symtab_index_entry>. All users adjusted to check
12121 whether an element's name is NULL instead of checking whether the
12122 element itself is NULL.
12123 (find_slot): Change return type. Adjust.
12124 (hash_expand, , add_index_entry, uniquify_cu_indices)
12125 (write_hash_table): Adjust.
12127 2017-06-12 Pedro Alves <palves@redhat.com>
12129 * dwarf2read.c (recursively_count_psymbols): New function.
12130 (write_psymtabs_to_index): Call it to compute number of psyms and
12131 pass estimate size of psyms_seen to unordered_set's ctor.
12133 2017-06-12 Pedro Alves <palves@redhat.com>
12135 * dwarf2read.c (write_hash_table): Check if key already exists
12138 2017-06-12 Pedro Alves <palves@redhat.com>
12140 * dwarf2read.c (data_buf::append_space): Rename to...
12141 (data_buf::grow): ... this, and make private. Adjust all callers.
12142 (data_buf::append_uint): New method.
12143 (add_address_entry, write_one_signatured_type)
12144 (write_psymtabs_to_index): Use it.
12146 2017-06-12 Pedro Alves <palves@redhat.com>
12148 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
12149 (file_write (FILE *, const std::vector<Elem>&)): Delete.
12150 (data_buf::file_write): Call ::fwrite directly.
12152 2017-06-12 Pedro Alves <palves@redhat.com>
12154 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
12155 std::vector::erase.
12157 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12159 Code cleanup: C++ify .gdb_index producer.
12160 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
12161 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
12162 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
12163 (create_strtab, add_string): Remove.
12164 (file_write, data_buf): New.
12165 (struct symtab_index_entry): Use std::vector for cu_indices.
12166 (struct mapped_symtab): Use std::vector for data.
12167 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
12168 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
12170 (find_slot): Change return type. Update it to the new data structures.
12171 (hash_expand, add_index_entry): Update it to the new data structures.
12172 (offset_type_compare): Remove.
12173 (uniquify_cu_indices): Update it to the new data structures.
12174 (c_str_view, c_str_view_hasher, vector_hasher): New.
12175 (add_indices_to_cpool): Remove.
12176 (write_hash_table): Update it to the new data structures.
12177 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
12178 (eq_psymtab_cu_index): Remove.
12179 (psym_index_map): New typedef.
12180 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
12181 reference and std::unordered_map for cu_index_htab.
12182 (add_address_entry, add_address_entry_worker, write_address_map)
12183 (write_psymbols): Update it to the new data structures.
12184 (write_obstack): Remove.
12185 (struct signatured_type_index_data): Change types_list to a data_buf
12186 reference and psyms_seen to a std::unordered_set reference.
12187 (write_one_signatured_type, recursively_write_psymbols)
12188 (write_psymtabs_to_index): Update it to the new data structures.
12190 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
12192 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
12193 separate-debug-file commands.
12194 * symfile.h (separate_debug_file_debug): New global.
12195 * symfile.c (separate_debug_file_debug): New global.
12196 (separate_debug_file_exists, find_separate_debug_file): Add
12198 (_initialize_symfile): Add "set debug separate-debug-file"
12200 * build-id.c (build_id_to_debug_bfd,
12201 find_separate_debug_file_by_buildid): Add debug output.
12203 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
12205 * gdbarch.sh (displaced_step_free_closure): Remove.
12206 * gdbarch.h, gdbarch.c: Re-generate.
12207 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
12208 displaced_step_free_closure.
12209 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
12210 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
12211 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
12212 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12213 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12214 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12215 * arch-utils.h (simple_displaced_step_free_closure): Remove.
12216 * arch-utils.c (simple_displaced_step_free_closure): Remove.
12217 * infrun.c (displaced_step_clear): Call xfree instead of
12218 gdbarch_displaced_step_free_closure.
12220 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
12222 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
12225 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12227 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
12228 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
12229 (mn10300_push_dummy_call): Likewise.
12231 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12233 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
12235 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12237 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
12239 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12241 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
12242 able to start inferiors using a shell.
12243 (New remote packets): Announce new packet "QStartupWithShell".
12244 * remote.c: Add PACKET_QStartupWithShell.
12245 (extended_remote_create_inferior): Handle new
12246 PACKET_QStartupWithShell.
12247 (remote_protocol_features) <QStartupWithShell>: New entry for
12248 PACKET_QStartupWithShell.
12249 (_initialize_remote): Call "add_packet_config_cmd" for
12252 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12253 Pedro Alves <palves@redhat.com>
12255 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
12256 and "nat/fork-inferior.h".
12257 * common/common-inferior.h: New file, with contents from
12259 * commom/common-utils.c: Include "common-utils.h".
12260 (stringify_argv): New function.
12261 * common/common-utils.h (stringify_argv): New prototype.
12262 * configure.nat: Add "fork-inferior.o" as a dependency for
12263 "*linux*", "fbsd*" and "nbsd*" hosts.
12264 * corefile.c (get_exec_file): Update comment.
12265 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
12266 instead of "startup_inferior".
12267 (darwin_create_inferior): Call "add_thread_silent" after
12269 * fork-child.c: Cleanup unnecessary includes.
12270 (SHELL_FILE): Move to "common/common-fork-child.c".
12271 (environ): Likewise.
12272 (exec_wrapper): Initialize.
12273 (get_exec_wrapper): New function.
12274 (breakup_args): Move to "common/common-fork-child.c"; rename to
12275 "breakup_args_for_exec".
12276 (escape_bang_in_quoted_argument): Move to
12277 "common/common-fork-child.c".
12278 (saved_ui): New variable.
12279 (prefork_hook): New function.
12280 (postfork_hook): Likewise.
12281 (postfork_child_hook): Likewise.
12282 (gdb_startup_inferior): Likewise.
12283 (fork_inferior): Move to "common/common-fork-child.c". Update
12284 function to support gdbserver.
12285 (startup_inferior): Likewise.
12286 * gdbcore.h (get_exec_file): Remove declaration.
12287 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
12288 instead of "startup_inferior". Call "add_thread_silent" after
12290 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
12291 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
12292 instead of "startup_inferior". Call "add_thread_silent" after
12294 * inferior.h: Include "common-inferior.h".
12295 (trace_start_error): Move to "common/common-utils.h".
12296 (trace_start_error_with_name): Likewise.
12297 (fork_inferior): Move prototype to "nat/fork-inferior.h".
12298 (startup_inferior): Likewise.
12299 (gdb_startup_inferior): New prototype.
12300 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
12301 * nat/fork-inferior.h: New file.
12302 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
12303 instead of "startup_inferior". Call "add_thread_silent" after
12305 * target.h (target_terminal_init): Move prototype to
12307 (target_terminal_inferior): Likewise.
12308 (target_terminal_ours): Likewise.
12309 * target/target.h (target_terminal_init): New prototype, moved
12311 (target_terminal_inferior): Likewise.
12312 (target_terminal_ours): Likewise.
12313 * utils.c (gdb_flush_out_err): New function.
12315 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12317 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
12318 * common/common-gdbthread.h: New file, with parts from
12320 * gdbthread.h: Include "common-gdbthread.h".
12321 (switch_to_thread): Moved to "common/common-gdbthread.h".
12323 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12325 * Makefile.in (SFILES): Add "common/job-control.c".
12326 (HFILES_NO_SRCDIR): Add "common/job-control.h".
12327 (COMMON_OBS): Add "job-control.o".
12328 * common/job-control.c: New file, with contents from
12330 * common/job-control.h: New file, with contents from "terminal.h".
12331 * fork-child.c: Include "job-control.h".
12332 * inflow.c: Include "job-control.h".
12333 (gdb_setpgid): Move to "common/common-inflow.c".
12334 (_initialize_inflow): Move setting of "job_control" to
12335 "handle_job_control".
12336 * terminal.h (job_control): Moved to "common/common-terminal.h".
12337 (gdb_setpgid): Likewise.
12338 * top.c: Include "job_control.h".
12339 * utils.c: Likewise.
12340 (job_control): Moved to "job-control.c".
12342 2017-06-07 Pedro Alves <palves@redhat.com>
12344 * Makefile.in (SFILES): Add gdb_regex.c.
12345 (COMMON_OBS): Add gdb_regex.o.
12346 * ada-lang.c (ada_add_standard_exceptions)
12347 (ada_add_exceptions_from_frame, name_matches_regex)
12348 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
12349 parameter type to compiled_regex. Adjust.
12350 (ada_exceptions_list): Use compiled_regex.
12351 * break-catch-throw.c (exception_catchpoint::pattern): Now a
12352 std::unique_ptr<compiled_regex>.
12353 (exception_catchpoint::~exception_catchpoint): Remove regfree
12355 (check_status_exception_catchpoint): Adjust to use compiled_regex.
12356 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
12357 * breakpoint.c (solib_catchpoint::compiled): Now a
12358 std::unique_ptr<compiled_regex>.
12359 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
12360 (check_status_catch_solib): Adjust to use compiled_regex.
12361 (add_solib_catchpoint): Adjust to use compiled_regex.
12362 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
12363 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
12364 compiled_regex reference. Adjust to use it.
12365 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
12366 declaration. Include "gdb_regex.h".
12367 (apropos_cmd): Change regex parameter to compiled_regex reference.
12368 * gdb_regex.c: New file.
12369 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
12371 (class compiled_regex): New.
12372 * linux-tdep.c: Include "common/gdb_optional.h".
12373 (struct mapping_regexes): New, factored out from
12374 mapping_is_anonymous_p, and adjusted to use compiled_regex.
12375 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12376 gdb::optional and remove cleanups. Adjust to compiled_regex.
12377 * probe.c: Include "common/gdb_optional.h".
12378 (collect_probes): Use compiled_regex and gdb::optional and remove
12380 * skip.c: Include "common/gdb_optional.h".
12381 (skiplist_entry::compiled_function_regexp): Now a
12382 gdb::optional<compiled_regex>.
12383 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12384 (free_skiplist_entry): Remove regfree call.
12385 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12386 compiled_regex and gdb::optional.
12387 * symtab.c: Include "common/gdb_optional.h".
12388 (search_symbols): Use compiled_regex and gdb::optional.
12389 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12390 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12393 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12395 * regcache.c (regcache::save): Avoid buffer use.
12396 (regcache::dump): Likewise.
12398 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12400 * sh-tdep.c (sh_pseudo_register_read): Remove
12402 (sh_pseudo_register_write): Likewise.
12403 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12404 (sh64_pseudo_register_write): Likewise
12406 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12408 * aarch64-tdep.c (aarch64_store_return_value): Use
12410 (aarch64_pseudo_read_value): Likewise.
12411 (aarch64_pseudo_write): Likewise.
12413 2017-06-06 Yao Qi <yao.qi@linaro.org>
12415 * regformats/regdef.h (set_register_cache): Remove the
12418 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12420 * frame.c (frame_unwind_register_signed): Use
12421 frame_unwind_register_value.
12423 2017-06-06 Pedro Alves <palves@redhat.com>
12425 PR breakpoints/21553
12426 * breakpoint.c (create_breakpoints_sal_default)
12427 (init_breakpoint_sal, create_breakpoint_sal): Use
12428 gdb::unique_xmalloc_ptr for string parameters.
12429 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12430 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12431 (base_breakpoint_create_breakpoints_sal)
12432 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12433 (strace_marker_create_breakpoints_sal)
12434 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12436 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12437 gdb::unique_xmalloc_ptr for string parameters.
12438 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12441 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12443 * alpha-tdep.c (alpha_register_to_value): Use
12444 get_frame_register_value.
12445 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12447 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12449 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12450 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12451 (ia64_value_to_register): Likewise.
12452 (ia64_extract_return_value): Likewise.
12453 (ia64_store_return_value): Likewise.
12454 (ia64_push_dummy_call): Likewise.
12456 2017-06-04 Joel Brobecker <brobecker@adacore.com>
12460 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12462 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12464 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12466 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12468 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12470 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12472 * event-loop.c (poll_timers): Unallocate timer using delete
12475 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12477 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12478 (struct breakpoint) <~breakpoint>: New.
12479 (struct watchpoint): Inherit from breakpoint.
12480 <~watchpoint>: New.
12482 (struct tracepoint): Inherit from breakpoint.
12484 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12485 (struct longjmp_breakpoint): Inherit from breakpoint.
12486 <~longjmp_breakpoint>: New.
12488 (new_breakpoint_from_type): Remove casts.
12489 (watchpoint_in_thread_scope): Remove reference to base field.
12490 (watchpoint_del_at_next_stop): Likewise.
12491 (update_watchpoint): Likewise.
12492 (watchpoint_check): Likewise.
12493 (bpstat_check_watchpoint): Likewise.
12494 (set_longjmp_breakpoint): Likewise.
12495 (struct fork_catchpoint): Inherit from breakpoint.
12497 (struct solib_catchpoint): Inherit from breakpoint.
12498 <~solib_catchpoint>: New.
12500 (dtor_catch_solib): Change to ...
12501 (solib_catchpoint::~solib_catchpoint): ... this.
12502 (breakpoint_hit_catch_solib): Remove reference to base field.
12503 (add_solib_catchpoint): Likewise.
12504 (create_fork_vfork_event_catchpoint): Likewise.
12505 (struct exec_catchpoint): Inherit from breakpoint.
12506 <~exec_catchpoint>: New.
12508 (dtor_catch_exec): Change to ...
12509 (exec_catchpoint::~exec_catchpoint): ... this.
12510 (dtor_watchpoint): Change to ...
12511 (watchpoint::~watchpoint): ... this.
12512 (watch_command_1): Remove reference to base field.
12513 (catch_exec_command_1): Likewise.
12514 (base_breakpoint_dtor): Change to ...
12515 (breakpoint::~breakpoint): ... this.
12516 (base_breakpoint_ops): Remove dtor field value.
12517 (longjmp_bkpt_dtor): Change to ...
12518 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12519 (strace_marker_create_breakpoints_sal): Remove reference to base
12521 (delete_breakpoint): Don't manually call breakpoint destructor.
12522 (create_tracepoint_from_upload): Remove reference to base field.
12523 (trace_pass_set_count): Likewise.
12524 (initialize_breakpoint_ops): Don't initialize
12525 momentary_breakpoint_ops, don't set dtors.
12526 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12527 <~ada_catchpoint>: New.
12529 (create_excep_cond_exprs): Remove reference to base field.
12530 (dtor_exception): Change to ...
12531 (ada_catchpoint::~ada_catchpoint): ... this.
12532 (dtor_catch_exception): Remove.
12533 (dtor_catch_exception_unhandled): Remove.
12534 (dtor_catch_assert): Remove.
12535 (create_ada_exception_catchpoint): Remove reference to base
12537 (initialize_ada_catchpoint_ops): Don't set dtors.
12538 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12540 <~signal_catchpoint>: New.
12542 (signal_catchpoint_dtor): Change to ...
12543 (signal_catchpoint::~signal_catchpoint): ... this.
12544 (create_signal_catchpoint): Remove reference to base field.
12545 (initialize_signal_catchpoint_ops): Don't set dtor.
12546 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12548 <~syscall_catchpoint>: New.
12550 (dtor_catch_syscall): Change to ...
12551 (syscall_catchpoint::~syscall_catchpoint): ... this.
12552 (create_syscall_event_catchpoint): Remove reference to base
12554 (initialize_syscall_catchpoint_ops): Don't set dtor.
12555 * break-catch-throw.c (struct exception_catchpoint): Inherit
12557 <~exception_catchpoint>: New.
12559 (dtor_exception_catchpoint): Change to ...
12560 (exception_catchpoint::~exception_catchpoint): ... this.
12561 (handle_gnu_v3_exceptions): Remove reference to base field.
12562 (initialize_throw_catchpoint_ops): Don't set dtor.
12563 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12565 * remote.c (remote_get_tracepoint_status): Likewise.
12566 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12567 * tracefile.c (tracefile_fetch_registers): Likewise.
12568 * tracepoint.c (actions_command): Likewise.
12569 (validate_actionline): Likewise.
12570 (tfind_1): Likewise.
12571 (get_traceframe_location): Likewise.
12572 (find_matching_tracepoint_location): Likewise.
12573 (parse_tracepoint_status): Likewise.
12574 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12576 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12578 * breakpoint.c (struct longjmp_breakpoint): New struct.
12579 (is_tracepoint_type): Change return type to bool.
12580 (is_longjmp_type): New function.
12581 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12582 (set_raw_breakpoint_without_location): Use
12583 new_breakpoint_from_type.
12584 (set_raw_breakpoint): Likewise.
12586 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12588 * breakpoint.c (new_breakpoint_from_type): New function.
12589 (create_breakpoint_sal): Use new_breakpoint_from_type and
12591 (create_breakpoint): Likewise.
12593 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12595 * memattr.c (mem_info_command): Rename to ...
12596 (info_mem_command): ... this.
12597 (mem_enable_command): Rename to ...
12598 (enable_mem_command): ... this.
12599 (mem_disable_command): Rename to ...
12600 (disable_mem_command): ... this.
12601 (mem_delete_command): Rename to ...
12602 (delete_mem_command): ... this.
12603 (_initialize_mem): Adjust function names.
12605 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12607 * btrace.c (handle_pt_insn_events): New.
12608 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12609 STATUS. Split into this and ...
12610 (handle_pt_insn_event_flags): ... this.
12612 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12614 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12615 and struct pt_insn.resynced.
12616 * configure: Regenerated.
12617 * config.in: Regenerated.
12619 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12621 * btrace.c (ftrace_find_call_by_number): New function.
12622 (ftrace_new_function): Store objects, not pointers.
12623 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12624 ftrace_new_gap, ftrace_update_function,
12625 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12626 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12627 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12628 btrace_ends_with_single_insn, btrace_call_get): Account for
12629 btrace_thread_info::functions now storing objects.
12630 * btrace.h (struct btrace_thread_info): Add constructor.
12631 (struct btrace_thread_info) <functions>: Make std::vector.
12632 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12633 Initialize with default values.
12634 * record-btrace.c (record_btrace_frame_sniffer): Account for
12635 btrace_thread_info::functions now storing objects.
12637 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12639 * btrace.c: Remove typedef bfun_s.
12640 (ftrace_new_gap): Directly add gaps to the list of gaps.
12641 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12642 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12643 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12644 instead of gdb VEC.
12646 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12648 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12649 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12650 with btrace_thread_info::next_segment and
12651 btrace_thread_info::prev_segment.
12652 * btrace.h: Remove struct btrace_func_link.
12653 (struct btrace_function): Replace pair of function segment pointers
12654 with pair of indices.
12655 * python/py-record-btrace.c (btpy_call_prev_sibling,
12656 btpy_call_next_sibling): Replace references to
12657 btrace_thread_info::segment with btrace_thread_info::next_segment and
12658 btrace_thread_info::prev_segment.
12659 * record-btrace.c (record_btrace_frame_this_id): Use
12660 btrace_find_call_by_number.
12662 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12664 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12665 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12666 btrace_insn_next, btrace_insn_prev): Remove references to
12667 btrace_thread_info::flow.
12668 * btrace.h (struct btrace_function): Remove FLOW.
12670 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12672 * btrace.c (ftrace_find_call_by_number): New function.
12673 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12674 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12675 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12676 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12678 * btrace.h (struct btrace_function): Turn UP into an index.
12679 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12681 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12682 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12683 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12685 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12687 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12688 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12689 ftrace_update_function, ftrace_compute_global_level_offset,
12690 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12691 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12692 btrace_insn_end, btrace_is_empty): Remove references to
12693 btrace_thread_info::begin and btrace_thread_info::end.
12694 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12695 (struct btrace_thread_info) <functions>: Adjust comment.
12696 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12697 btrace_thread_info::begin.
12699 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12701 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12702 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12703 ftrace_update_function): Remove arguments that implicitly were always
12705 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12706 Don't pass BTINFO->END.
12708 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12710 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12711 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12712 btrace_find_insn_by_number): Replace function segment pointer with
12714 (btrace_insn_cmp): Simplify.
12715 * btrace.h: (struct btrace_insn_iterator) Rename index to
12716 insn_index. Replace function segment pointer with index into function
12718 * record-btrace.c (record_btrace_call_history): Replace function
12719 segment pointer use with index.
12720 (record_btrace_frame_sniffer): Retrieve function call segment through
12722 (record_btrace_set_replay): Remove defunc't safety check.
12724 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12726 * btrace.c (btrace_ends_with_single_insn): New function.
12727 (btrace_call_get, btrace_call_number, btrace_call_begin,
12728 btrace_call_end, btrace_call_next, btrace_call_prev,
12729 btrace_find_call_by_number): Use index into call segment vector
12730 instead of pointer.
12731 (btrace_call_cmp): Simplify.
12732 * btrace.h (struct btrace_call_iterator): Replace function call segment
12733 pointer with index into vector.
12734 * record-btrace.c (record_btrace_call_history): Use index instead of
12737 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12739 * btrace.c (btrace_insn_begin, btrace_insn_end,
12740 btrace_find_insn_by_number): Add btinfo to iterator.
12741 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12743 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12745 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12746 and save pointers directly.
12747 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12748 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12749 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12750 changed signature of functions.
12751 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12752 (btrace_fetch): Remove code that adds btrace_function pointers to
12753 vector of btrace_functions.
12754 (btrace_clear): Simplify freeing vector of btrace_functions.
12756 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12758 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12759 Replace VEC_* with std::vector functions.
12760 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12761 (struct btrace_thread_info)<functions>: Change type to std::vector.
12763 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12765 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12766 "Removed targets and native configurations" up. Merge duplicate
12767 "New commands" sub-sections. Add "New options" sub-sections.
12769 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12771 * defs.h (copy_integer_to_size): New declaration.
12772 * findvar.c (copy_integer_to_size): New function.
12773 (do_cint_test): New selftest function.
12774 (copy_integer_to_size_test): Likewise.
12775 (_initialize_findvar): Likewise.
12776 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12777 (mips_fbsd_collect_reg): Use raw_collect_integer.
12778 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12779 (mips64_fill_gregset): Use raw_collect_integer
12780 (mips64_fill_fpregset): Use raw_supply_integer.
12781 * regcache.c (regcache::raw_supply_integer): New function.
12782 (regcache::raw_collect_integer): Likewise.
12783 * regcache.h: (regcache::raw_supply_integer): New declaration.
12784 (regcache::raw_collect_integer): Likewise.
12786 2017-05-24 Yao Qi <yao.qi@linaro.org>
12788 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12789 (COMMON_OBS): Add gdbarch-selftests.o.
12790 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12791 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12792 * gdbarch-selftests.c: New file.
12793 * regcache.h (regcache) <~regcache>: Mark it virtual if
12795 <raw_write>: Likewise.
12797 2017-05-24 Yao Qi <yao.qi@linaro.org>
12799 * regcache.c (current_regcache): Change it to
12800 regcache::current_regcache.
12801 (regcache_observer_target_changed): Update.
12802 (regcache_thread_ptid_changed): Make it a regcache static
12804 (regcache_thread_ptid_changed): Update.
12805 (class regcache_access): New.
12806 (current_regcache_test): Update.
12807 (_initialize_regcache): Update.
12808 * regcache.h: Include forward_list.
12809 (regcache): Declare regcache_thread_ptid_changed and declare
12810 registers_changed_ptid as friend.
12812 2017-05-24 Yao Qi <yao.qi@linaro.org>
12814 * i387-tdep.c (i387_register_to_value): Use register_size
12815 instead of TYPE_LENGTH.
12816 * m68k-tdep.c (m68k_register_to_value): Likewise.
12818 2017-05-24 Yao Qi <yao.qi@linaro.org>
12820 * i387-tdep.c (i387_convert_register_p): Return false if type
12821 code isn't TYPE_CODE_FLT.
12823 2017-05-24 Yao Qi <yao.qi@linaro.org>
12825 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12827 (alpha_register_to_value): Remove type length check.
12828 (alpha_value_to_register): Likewise.
12830 2017-05-24 Yao Qi <yao.qi@linaro.org>
12832 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12835 2017-05-24 Yao Qi <yao.qi@linaro.org>
12837 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12838 TYPE_CODE_FLT or not.
12840 2017-05-24 Yao Qi <yao.qi@linaro.org>
12842 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12843 * avr-tdep.c (avr_gdbarch_init): Likewise.
12844 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12845 * cris-tdep.c (cris_gdbarch_init): Likewise.
12846 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12847 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12848 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12849 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12850 * mep-tdep.c (mep_gdbarch_init): Likewise.
12851 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12852 * mips-tdep.c (mips_gdbarch_init): Likewise.
12853 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12854 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12855 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12856 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12857 * v850-tdep.c (v850_gdbarch_init): Likewise.
12859 2017-05-24 Yao Qi <yao.qi@linaro.org>
12861 * selftest-arch.c (tests_with_arch): Call registers_changed
12862 and reinit_frame_cache.
12863 * selftest.c (run_self_tests): Likewise.
12865 2017-05-24 Yao Qi <yao.qi@linaro.org>
12867 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12868 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12870 2017-05-24 Yao Qi <yao.qi@linaro.org>
12872 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12873 set_gdbarch_print_insn.
12875 2017-05-24 Yao Qi <yao.qi@linaro.org>
12877 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12878 set_gdbarch_print_insn.
12880 2017-05-24 Yao Qi <yao.qi@linaro.org>
12882 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12883 set_gdbarch_print_insn.
12884 * arc-tdep.c (arc_gdbarch_init): Likewise.
12885 * arch-utils.c: include dis-asm.h.
12886 (default_print_insn): New function.
12887 * arch-utils.h (default_print_insn): Declare.
12888 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12889 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12890 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12891 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12892 * frv-tdep.c (frv_gdbarch_init): Likewise.
12893 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12894 * gdbarch.sh (print_insn): Use default_print_insn.
12895 * gdbarch.c: Regenerated.
12896 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12897 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12898 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12899 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12900 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12901 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12902 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12903 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12904 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12905 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12906 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12907 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12908 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12909 * mt-tdep.c (mt_gdbarch_init): Likewise.
12910 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12911 * nios2-tdep.c (nios2_print_insn): Remove.
12912 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12913 * rx-tdep.c (rx_gdbarch_init): Likewise.
12914 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12915 * score-tdep.c (score_print_insn): Remove.
12916 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12917 * sh-tdep.c (sh_gdbarch_init): Likewise.
12918 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12919 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12920 * tic6x-tdep.c (tic6x_print_insn): Remove.
12921 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12922 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12923 * v850-tdep.c (v850_gdbarch_init): Likewise.
12924 * vax-tdep.c (vax_gdbarch_init): Likewise.
12925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12926 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12928 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12930 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12931 (MIPS_FP0_REGNUM): Remove.
12932 (MIPS_FSR_REGNUM): Remove.
12933 (mips_fbsd_supply_fpregs): Use mips_regnum.
12934 (mips_fbsd_supply_gregs): Likewise.
12935 (mips_fbsd_collect_fpregs): Likewise.
12936 (mips_fbsd_collect_gregs): Likewise.
12938 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12940 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12941 (getpfpregs_supplies): New function.
12942 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12943 getfpregs_supplies.
12944 (mips_fbsd_store_inferior_registers): Likewise.
12946 2017-05-22 Pedro Alves <palves@redhat.com>
12948 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12951 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12953 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12954 (store_register): Likewise.
12955 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12956 (get_decimal_float_return_value): Likewise.
12957 (do_ppc_sysv_return_value): Likewise.
12958 (ppc64_sysv_abi_push_integer): Likewise.
12959 (ppc64_sysv_abi_push_freg): Likewise.
12960 (ppc64_sysv_abi_return_value_base): Likewise.
12961 (ppc64_sysv_abi_return_value): Likewise.
12962 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12963 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12964 * rs6000-nat.c: Likewise.
12965 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12966 (rs6000_value_to_register): Likewise.
12967 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12969 2017-05-21 Tom Tromey <tom@tromey.com>
12972 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12973 arrays as "[T]", not "[T; ]".
12975 2017-05-19 Tom Tromey <tom@tromey.com>
12978 * rust-lang.c (exp_descriptor_rust): New function.
12979 (rust_language_defn): Use it.
12980 * p-lang.c (pascal_language_defn): Update.
12981 * opencl-lang.c (opencl_language_defn): Update.
12982 * objc-lang.c (objc_language_defn): Update.
12983 * m2-lang.c (m2_language_defn): Update.
12984 * language.h (struct language_defn)
12985 <la_watch_location_expression>: New member.
12986 * language.c (unknown_language_defn, auto_language_defn)
12987 (local_language_defn): Update.
12988 * go-lang.c (go_language_defn): Update.
12989 * f-lang.c (f_language_defn): Update.
12990 * d-lang.c (d_language_defn): Update.
12991 * c-lang.h (c_watch_location_expression): Declare.
12992 * c-lang.c (c_watch_location_expression): New function.
12993 (c_language_defn, cplus_language_defn, asm_language_defn)
12994 (minimal_language_defn): Use it.
12995 * breakpoint.c (watch_command_1): Call
12996 la_watch_location_expression.
12997 * ada-lang.c (ada_language_defn): Update.
12999 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13002 * gdb_curses.h (NOMACROS): Define.
13003 (NCURSES_NOMACROS): Define.
13005 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13008 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
13010 * tui/tui-wingeneral.c (box_win): Likewise.
13011 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
13012 (tui_show_source_line): Likewise.
13013 (tui_show_exec_info_content): Likewise.
13015 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
13017 * sparc-tdep.c (sparc_structure_return_p)
13018 (sparc_arg_on_registers_p): New functions.
13019 (sparc32_store_arguments): Use them.
13020 * sparc64-tdep.c (sparc64_16_byte_align_p)
13021 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
13022 Handle TYPE_CODE_ARRAY.
13024 2017-05-17 Yao Qi <yao.qi@linaro.org>
13026 * cli/cli-decode.c (add_alias_cmd): New function.
13027 * command.h (add_alias_cmd): Declare.
13028 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
13029 instead call add_alias_cmd.
13031 2017-05-17 Pedro Alves <palves@redhat.com>
13033 * Makefile.in (nat_extra_makefile_frag): Rename to ...
13034 (nat_makefile_frag): ... this. All references updated.
13035 * configure.ac: Likewise.
13036 * configure.nat: Likewise. Enhance comments.
13037 * configure: Regenerate.
13039 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13041 * procfs.c (procfs_create_inferior): Change prototype to match
13044 2017-05-13 Eli Zaretskii <eliz@gnu.org>
13046 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
13047 C++ compiler warning.
13049 2017-05-12 Tom Tromey <tom@tromey.com>
13052 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
13053 recurse, just call value_struct_elt directly.
13055 2017-05-12 Tom Tromey <tom@tromey.com>
13057 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
13058 OP_RUST_ARRAY>: Fix.
13060 2017-05-12 Tom Tromey <tom@tromey.com>
13062 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
13064 2017-05-09 Yao Qi <yao.qi@linaro.org>
13066 * regcache.c: Include <forward_list>.
13067 (struct regcache_list): Remove.
13068 (current_regcache): Update.
13069 (get_thread_arch_aspace_regcache): Update for std::forward_list.
13070 (regcache_thread_ptid_changed): Likewise.
13071 (registers_changed_ptid): Likewise.
13072 (current_regcache_size): Likewise.
13074 2017-05-09 Yao Qi <yao.qi@linaro.org>
13076 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
13077 (current_regcache_size): New function.
13078 (current_regcache_test): New function.
13079 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
13081 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13083 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
13084 (print_gp_register_row): Use get_frame_register_value.
13086 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13088 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
13089 (mips_supply_fpregset): Likewise.
13090 (mips64_supply_gregset): Likewise.
13092 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13094 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
13095 regcache->raw_supply_zeroed.
13097 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
13099 * configure.nat: Rearrange 'case' statements to match
13102 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
13104 * Makefile.in: Remove "@host_makefile_frag@". Add variables
13105 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
13106 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
13107 "@nat_extra_makefile_frag@".
13108 (Makefile): Remove dependency on "@frags@".
13109 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
13110 (data-directory/Makefile): Likewise.
13111 * config/aarch64/linux.mh: Deleted; moved contents to
13112 "gdb/configure.nat".
13113 * config/alpha/alpha-linux.mh: Likewise.
13114 * config/alpha/nbsd.mh: Likewise.
13115 * config/arm/linux.mh: Likewise.
13116 * config/arm/nbsdelf.mh: Likewise.
13117 * config/i386/cygwin.mh: Likewise.
13118 * config/i386/cygwin64.mh: Likewise.
13119 * config/i386/darwin.mh: Likewise.
13120 * config/i386/fbsd.mh: Likewise.
13121 * config/i386/fbsd64.mh: Likewise.
13122 * config/i386/go32.mh: Likewise.
13123 * config/i386/i386gnu.mh: Likewise.
13124 * config/i386/i386sol2.mh: Likewise.
13125 * config/i386/linux.mh: Likewise.
13126 * config/i386/linux64.mh: Likewise.
13127 * config/i386/mingw.mh: Likewise.
13128 * config/i386/mingw64.mh: Likewise.
13129 * config/i386/nbsd64.mh: Likewise.
13130 * config/i386/nbsdelf.mh: Likewise.
13131 * config/i386/nto.mh: Likewise.
13132 * config/i386/obsd.mh: Likewise.
13133 * config/i386/obsd64.mh: Likewise.
13134 * config/i386/sol2-64.mh: Likewise.
13135 * config/ia64/linux.mh: Likewise.
13136 * config/m32r/linux.mh: Likewise.
13137 * config/m68k/linux.mh: Likewise.
13138 * config/m68k/nbsdelf.mh: Likewise.
13139 * config/m68k/obsd.mh: Likewise.
13140 * config/m88k/obsd.mh: Likewise.
13141 * config/mips/fbsd.mh: Likewise.
13142 * config/mips/linux.mh: Likewise.
13143 * config/mips/nbsd.mh: Likewise.
13144 * config/mips/obsd64.mh: Likewise.
13145 * config/pa/linux.mh: Likewise.
13146 * config/pa/nbsd.mh: Likewise.
13147 * config/pa/obsd.mh: Likewise.
13148 * config/powerpc/aix.mh: Likewise.
13149 * config/powerpc/fbsd.mh: Likewise.
13150 * config/powerpc/linux.mh: Likewise.
13151 * config/powerpc/nbsd.mh: Likewise.
13152 * config/powerpc/obsd.mh: Likewise.
13153 * config/powerpc/ppc64-linux.mh: Likewise.
13154 * config/powerpc/spu-linux.mh: Likewise.
13155 * config/s390/linux.mh: Likewise.
13156 * config/sh/nbsd.mh: Likewise.
13157 * config/sparc/fbsd.mh: Likewise.
13158 * config/sparc/linux.mh: Likewise.
13159 * config/sparc/linux64.mh: Likewise.
13160 * config/sparc/nbsd64.mh: Likewise.
13161 * config/sparc/nbsdelf.mh: Likewise.
13162 * config/sparc/obsd64.mh: Likewise.
13163 * config/sparc/sol2.mh: Likewise.
13164 * config/tilegx/linux.mh: Likewise.
13165 * config/vax/nbsdelf.mh: Likewise.
13166 * config/vax/obsd.mh: Likewise.
13167 * config/xtensa/linux.mh: Likewise.
13168 * config/i386/i386gnu.mn: New file, with excerpts from
13169 "config/i386/i386gnu.mh".
13170 * configure: Regenerate.
13171 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
13172 *.mh files under "gdb/config".
13173 * configure.nat: New file, with contents from the
13174 "gdb/config/*/*.mh" files.
13176 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
13178 * btrace.c (btrace_clear): Free insn vector.
13180 2017-05-05 Pedro Alves <palves@redhat.com>
13182 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
13183 * configure: Regenerate.
13185 2017-05-04 Pedro Alves <palves@redhat.com>
13187 * Makefile.in (SFILES): Add progspace-and-thread.c.
13188 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
13189 (COMMON_OBS): Add progspace-and-thread.o.
13190 * breakpoint.c: Include "progspace-and-thread.h".
13191 (update_inserted_breakpoint_locations)
13192 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
13193 Use scoped_restore_current_pspace_and_thread.
13194 (create_std_terminate_master_breakpoint): Use
13195 scoped_restore_current_program_space.
13196 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
13197 (print_breakpoint_location): Use
13198 scoped_restore_current_program_space.
13199 (bp_loc_is_permanent): Use
13200 scoped_restore_current_pspace_and_thread.
13201 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
13202 (download_tracepoint_locations): Use
13203 scoped_restore_current_pspace_and_thread.
13204 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
13205 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
13206 (enum step_over_calls_kind): Moved from inferior.h.
13207 (class scoped_restore_current_thread): New class.
13208 * gdbthread.h (make_cleanup_restore_current_thread): Delete
13210 (scoped_restore_current_thread): New class.
13211 * infcmd.c: Include "common/gdb_optional.h".
13212 (continue_1, proceed_after_attach): Use
13213 scoped_restore_current_thread.
13214 (notice_new_inferior): Use scoped_restore_current_thread.
13215 * inferior.c: Include "progspace-and-thread.h".
13216 (restore_inferior, save_current_inferior): Delete.
13217 (add_inferior_command, clone_inferior_command): Use
13218 scoped_restore_current_pspace_and_thread.
13219 * inferior.h (scoped_restore_current_inferior): New class.
13220 * infrun.c: Include "progspace-and-thread.h" and
13221 "common/gdb_optional.h".
13222 (follow_fork_inferior): Use
13223 scoped_restore_current_pspace_and_thread.
13224 (scoped_restore_exited_inferior): New class.
13225 (handle_vfork_child_exec_or_exit): Use
13226 scoped_restore_exited_inferior,
13227 scoped_restore_current_pspace_and_thread,
13228 scoped_restore_current_thread and scoped_restore.
13229 (fetch_inferior_event): Use scoped_restore_current_thread.
13230 * linespec.c (decode_line_full, decode_line_1): Use
13231 scoped_restore_current_program_space.
13232 * mi/mi-main.c: Include "progspace-and-thread.h".
13233 (exec_continue): Use scoped_restore_current_thread.
13234 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
13235 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
13236 * proc-service.c (ps_pglobal_lookup): Use
13237 scoped_restore_current_program_space.
13238 * progspace-and-thread.c: New file.
13239 * progspace-and-thread.h: New file.
13240 * progspace.c (release_program_space, clone_program_space): Use
13241 scoped_restore_current_program_space.
13242 (restore_program_space, save_current_program_space)
13243 (save_current_space_and_thread): Delete.
13244 (switch_to_program_space_and_thread): Moved to
13245 progspace-and-thread.c.
13246 * progspace.h (save_current_program_space)
13247 (save_current_space_and_thread): Delete declarations.
13248 (scoped_restore_current_program_space): New class.
13249 * remote.c (remote_btrace_maybe_reopen): Use
13250 scoped_restore_current_thread.
13251 * symtab.c: Include "progspace-and-thread.h".
13252 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
13253 * thread.c (print_thread_info_1): Use
13254 scoped_restore_current_thread.
13255 (struct current_thread_cleanup): Delete.
13256 (do_restore_current_thread_cleanup)
13257 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
13258 (scoped_restore_current_thread::~scoped_restore_current_thread):
13260 (make_cleanup_restore_current_thread): Rename/convert to ...
13261 (scoped_restore_current_thread::scoped_restore_current_thread):
13263 (thread_apply_all_command): Use scoped_restore_current_thread.
13264 (thread_apply_command): Use scoped_restore_current_thread.
13265 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
13266 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
13268 2017-05-04 Pedro Alves <palves@redhat.com>
13270 * thread.c (make_cleanup_restore_current_thread): Move
13271 find_thread_ptid call before the is_stopped call. Assert that the
13272 thread is found. Replace is_stopped call by checking the thread's
13273 state directly. Remove unnecessary NULL-thread check.
13275 2017-05-04 Pedro Alves <palves@redhat.com>
13277 * corelow.c (thread_section_name): New class.
13278 (get_core_register_section, get_core_siginfo): Use it.
13280 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13282 * corelow.c (sniff_core_bfd): Remove extra semicolon.
13283 (get_core_register_section): Remove xfree of NULL pointer.
13285 2017-05-03 Alan Hayward <alan.hayward@arm.com>
13287 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
13288 * regcache.c (regcache::raw_supply_zeroed): New function.
13289 * regcache.h (regcache::raw_supply_zeroed): New declaration.
13291 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
13293 * gdbarch.sh: Remove commented out definition of
13295 * gdbarch.h: Re-generate.
13297 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
13299 * configure: Regenerate.
13301 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
13303 * solib-target.c (solib_target_relocate_section_addresses):
13304 Remove num_section_bases, num_bases, segment_bases variables.
13306 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13308 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
13310 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13312 * solib-target.c: Include <vector>
13313 (struct lm_info_target) <~lm_info_target>: Remove.
13314 <segment_bases, section_bases>: Change type to
13315 std::vector<CORE_ADDR>.
13316 (library_list_start_segment, library_list_start_section,
13317 library_list_end_library,
13318 solib_target_relocate_section_addresses): Adjust.
13320 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13322 * gdbarch.sh (software_single_step): Change return type to
13323 std::vector<CORE_ADDR>.
13324 * gdbarch.c, gdbarch.h: Re-generate.
13325 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
13327 (arm_deal_with_atomic_sequence_raw): Adjust.
13328 (thumb_get_next_pcs_raw): Adjust.
13329 (arm_get_next_pcs_raw): Adjust.
13330 (arm_get_next_pcs): Adjust.
13331 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
13332 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
13333 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
13334 (alpha_software_single_step): Adjust.
13335 * alpha-tdep.h (alpha_software_single_step): Adjust.
13336 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
13337 * arm-tdep.c (arm_software_single_step): Adjust.
13338 (arm_breakpoint_kind_from_current_state): Adjust.
13339 * arm-tdep.h (arm_software_single_step): Adjust.
13340 * breakpoint.c (insert_single_step_breakpoint): Adjust.
13341 * cris-tdep.c (cris_software_single_step): Adjust.
13342 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
13343 (micromips_deal_with_atomic_sequence): Adjust.
13344 (deal_with_atomic_sequence): Adjust.
13345 (mips_software_single_step): Adjust.
13346 * mips-tdep.h (mips_software_single_step): Adjust.
13347 * moxie-tdep.c (moxie_software_single_step): Adjust.
13348 * nios2-tdep.c (nios2_software_single_step): Adjust.
13349 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
13350 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
13351 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
13352 * s390-linux-tdep.c (s390_software_single_step): Adjust.
13353 * sparc-tdep.c (sparc_software_single_step): Adjust.
13354 * spu-tdep.c (spu_software_single_step): Adjust.
13355 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
13357 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13359 * gdbarch.sh: Use semi-colon as field separator instead of colon.
13360 * gdbarch.h: Re-generate.
13362 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13364 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
13365 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
13366 * python/py-instruction.c, python/py-instruction.h: New file.
13367 * python/py-record.c: Add py-instruction.h include.
13368 (gdbpy_initialize_record): Make gdb.Instruction a super class of
13369 gdb.RecordInstruction.
13370 * python/python-internal.h: Add gdbpy_initialize_instruction
13372 * python/python.c (do_start_initialization): Add
13373 gdbpy_initialize_instruction.
13375 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13377 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13379 (btrace_func_from_recpy_func): New function.
13380 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13381 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13382 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13383 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13384 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13385 Also, use new helper functions.
13386 (btpy_list_item): Use new helper functions.
13387 (recpy_bt_function_call_history): Use new type name.
13388 (btpy_call_getset): Remove.
13389 (gdbpy_initialize_btrace): Remove code to initialize
13390 gdb.BtraceFunctionCall.
13391 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13392 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13393 recpy_bt_func_prev, recpy_bt_func_next): New export.
13394 * python/py-record.c (recpy_func_type): New static object.
13395 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13396 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13397 recpy_func_next): New function.
13398 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13399 (recpy_func_getset): New static object.
13400 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13401 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13403 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13405 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13406 (btpy_object, btpy_insn_type, btpy_new): Remove.
13407 (btpy_list_object): Use gdb.RecordInstruction type instead of
13408 gdb.BtraceInstruction type.
13409 (btrace_insn_from_recpy_insn): New function.
13410 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13412 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13413 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13414 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13415 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13416 instead of btpy_object.
13417 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13418 btpy_insn_data, btpy_insn_decode): Rename to ...
13419 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13420 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13421 recpy_bt_insn_decode): This. Also, use new helper functions.
13422 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13424 (btpy_insn_getset): Remove.
13425 (gdbpy_initialize_btrace): Remove code to initialize
13426 gdb.BtraceInstruction. Use recpy_element_object.
13427 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13428 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13429 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13430 * python/py-record.c (recpy_insn_type): New static object.
13431 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13432 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13433 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13435 (recpy_insn_getset): New static object.
13436 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13437 * python/py-record.h (recpy_element_object): New typedef.
13438 (recpy_insn_type, recpy_insn_new): New export.
13440 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13442 * py-record-btrace.c (btpy_insn_new): Removed.
13443 (btpy_insn_or_gap_new): New function.
13444 (btpy_insn_error): Removed.
13445 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13446 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13447 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13448 btpy_insn_or_gap_new instead of btpy_insn_new.
13449 (btpy_insn_getset): Remove btpy_insn_error.
13450 * py-record.c (recpy_gap_type): New static object.
13451 (recpy_gap_object): New typedef.
13452 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13453 recpy_gap_reason_string): New function.
13454 (recpy_gap_getset): New static object.
13455 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13456 * py-record.h (recpy_gap_new): New export.
13458 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13460 * python/py-record.c (recpy_ptid): Remove.
13461 (recpy_record_getset): Remove recpy_ptid.
13463 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13465 * btrace.c (btrace_fetch): Set inferior_ptid.
13466 * python/py-record-btrace.c: Add "py-record.h" include.
13467 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13468 recpy_bt_end, recpy_bt_instruction_history,
13469 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13470 in gdb.Record object instead of current ptid.
13471 * python/py-record.c: Include new "py-record.h" file.
13472 (recpy_record_object): Moved to py-record.h.
13473 * python/py-record.h: New file.
13475 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13477 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13478 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13481 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13483 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13484 the past maintainers section.
13486 2017-04-28 Yao Qi <yao.qi@linaro.org>
13488 * infcmd.c (get_return_value): Use regcache ctor, and remove
13491 2017-04-28 Yao Qi <yao.qi@linaro.org>
13492 Pedro Alves <palves@redhat.com>
13494 * regcache.c (regcache::regcache): New tag dispatch ctor.
13495 (do_cooked_read): Moved above.
13496 (regcache_dup): Use the tag dispatch ctor..
13497 * regcache.h (regcache): Declare ctor, delete copy ctor and
13498 assignment operator, remove friend regcache_dup.
13500 2017-04-28 Yao Qi <yao.qi@linaro.org>
13502 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13503 call method save instead of regcache_cpy.
13504 * regcache.h (struct regcache): Make regcache_dup a friend.
13506 2017-04-28 Yao Qi <yao.qi@linaro.org>
13508 * regcache.c (struct regcache): Move to regcache.h
13509 (regcache::arch): New method.
13510 (regcache_get_ptid): Update.
13511 (get_regcache_arch): Call arch method.
13512 (get_regcache_aspace): Call method aspace.
13513 (register_buffer): Change it to method.
13514 (regcache_save): Change it to regcache::save.
13515 (regcache_restore): Likewise.
13516 (regcache_cpy_no_passthrough): Remove the declaration.
13517 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13518 (regcache_cpy_no_passthrough): Change it to method
13519 cpy_no_passthrough.
13520 (regcache_register_status): Change it to method
13521 get_register_status.
13522 (regcache_invalidate): Change it to method invalidate.
13523 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13524 (regcache_raw_update): Change it to method raw_update.
13525 (regcache_raw_read): Likewise.
13526 (regcache_raw_read_signed): Likewise.
13527 (regcache_raw_read_unsigned): Likewise.
13528 (regcache_raw_write_signed): Likewise.
13529 (regcache_raw_write_unsigned): Likewise.
13530 (regcache_cooked_read): Likewise.
13531 (regcache_cooked_read_value): Likewise.
13532 (regcache_cooked_read_signed): Likewise.
13533 (regcache_cooked_read_unsigned): Likewise.
13534 (regcache_cooked_write_signed): Likewise.
13535 (regcache_cooked_write_unsigned): Likewise.
13536 (regcache_raw_set_cached_value): Likewise.
13537 (regcache_raw_write): Likewise.
13538 (regcache_cooked_write): Likewise.
13539 (regcache_xfer_part): Likewise.
13540 (regcache_raw_read_part): Likewise.
13541 (regcache_raw_write_part): Likewise.
13542 (regcache_cooked_read_part): Likewise.
13543 (regcache_cooked_write_part): Likewise.
13544 (regcache_raw_supply): Likewise.
13545 (regcache_raw_collect): Likewise.
13546 (regcache_transfer_regset): Likewise.
13547 (regcache_supply_regset): Likewise.
13548 (regcache_collect_regset): Likewise.
13549 (regcache_debug_print_register): Likewise.
13550 (enum regcache_dump_what): Move it to regcache.h.
13551 (regcache_dump): Change it to method dump.
13552 * regcache.h (enum regcache_dump_what): New.
13553 (class regcache): New.
13554 * target.c (target_fetch_registers): Call method
13555 debug_print_register.
13556 (target_store_registers): Likewise.
13558 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13560 * windows-nat.c (struct lm_info_windows): Initialize field.
13561 (windows_make_so): Allocate lm_info_windows with new.
13562 (windows_free_so): Free lm_info_windows with delete.
13564 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13566 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13567 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13569 (darwin_free_so): Free lm_info_darwin with delete.
13571 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13573 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13574 <l_addr_p>: Change type to bool.
13575 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13576 (svr4_free_so): Free lm_info_svr4 with delete.
13577 (svr4_copy_library_list): Replace memcpy with call to copy
13579 (library_list_start_library, svr4_default_sos): Allocate
13580 lm_info_svr4 with new.
13582 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13584 * solib-target.c (struct lm_info_target): Add destructor,
13586 <name>: Change type to std::string.
13587 (library_list_start_library): Allocate lm_info_target with new.
13588 (solib_target_free_library_list): Free lm_info_target with
13590 (solib_target_current_sos): Adapt to std::string.
13591 (solib_target_free_so): Free lm_info_target with delete.
13593 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13595 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13597 (frv_current_sos): Allocate lm_info_frv with new.
13598 (frv_relocate_main_executable): Free lm_info_frv with delete,
13600 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13602 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13604 * solib-frv.c (struct lm_info_frv): Fix indentation.
13606 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13608 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13610 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13611 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13612 and allocate with new.
13613 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13615 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13617 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13618 <filename, member_name>: Change type to std::string.
13619 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13620 (library_list_start_library): Allocate lm_info_aix with new.
13621 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13622 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13623 with copy constructor.
13625 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13627 * solist.h (struct lm_info): Remove.
13628 (struct lm_info_base): New class.
13629 (struct so_list) <lm_info>: Change type to lm_info_base *.
13630 * nto-tdep.c (struct lm_info): Remove.
13632 * solib-aix.c (struct lm_info): Rename to ...
13633 (struct lm_info_aix): ... this. Extend lm_info_base.
13634 (lm_info_p): Rename to ...
13635 (lm_info_aix_p): ... this, and adjust.
13636 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13637 solib_aix_parse_libraries, library_list_start_library,
13638 solib_aix_free_library_list, solib_aix_parse_libraries,
13639 solib_aix_get_library_list,
13640 solib_aix_relocate_section_addresses, solib_aix_free_so,
13641 solib_aix_get_section_offsets,
13642 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13644 (struct solib_aix_inferior_data) <library_list>: Adjust.
13645 * solib-darwin.c (struct lm_info): Rename to ...
13646 (struct lm_info_darwin): ... this. Extend lm_info_base.
13647 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13648 * solib-dsbt.c (struct lm_info): Rename to ...
13649 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13650 (struct dsbt_info) <main_executable_lm_info): Adjust.
13651 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13652 dsbt_relocate_section_addresses): Adjust.
13653 * solib-frv.c (struct lm_info): Rename to ...
13654 (struct lm_info_frv): ... this. Extend lm_info_base.
13655 (main_executable_lm_info): Adjust.
13656 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13657 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13658 find_canonical_descriptor_in_load_object,
13659 frv_fdpic_find_canonical_descriptor): Adjust.
13660 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13662 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13663 svr4_clear_so, svr4_copy_library_list,
13664 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13665 svr4_current_sos, svr4_fetch_objfile_link_map,
13666 solist_update_incremental): Adjust.
13667 * solib-svr4.h (struct lm_info_svr4): Move here from
13669 * solib-target.c (struct lm_info): Rename to ...
13670 (struct lm_info_target): ... this. Extend lm_info_base.
13671 (lm_info_p): Rename to ...
13672 (lm_info_target_p): ... this.
13673 (solib_target_parse_libraries, library_list_start_segment,
13674 library_list_start_section, library_list_start_library,
13675 library_list_end_library, solib_target_free_library_list,
13676 solib_target_current_sos, solib_target_free_so,
13677 solib_target_relocate_section_addresses): Adjust.
13678 * windows-nat.c (struct lm_info): Rename to ...
13679 (struct lm_info_windows): ... this. Extend lm_info_base.
13680 (windows_make_so, handle_load_dll, handle_unload_dll,
13681 windows_xfer_shared_libraries): Adjust.
13683 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13685 * solib-darwin.c (struct darwin_so_list): Remove.
13686 (darwin_current_sos): Allocate an so_list object instead of a
13687 darwin_so_list, separately allocate an lm_info object.
13688 (darwin_free_so): Free lm_info.
13690 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13692 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13693 with fprintf_filtered.
13695 2017-04-28 Yao Qi <yao.qi@linaro.org>
13697 * regcache.c (regcache::regcache): New function.
13698 (regcache::~regcache): New function.
13699 (regcache_xmalloc_1): Remove.
13700 (regcache_xmalloc): Call new regcache.
13701 (regcache_xfree): Call delete regcache.
13702 (get_thread_arch_aspace_regcache): Call new regcache.
13704 2017-04-28 Yao Qi <yao.qi@linaro.org>
13706 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13707 lwp instead of ptid_get_lwp.
13709 2017-04-28 Yao Qi <yao.qi@linaro.org>
13711 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13712 lwp_info instead of getting from inferior_ptid.
13714 2017-04-27 Keith Seitz <keiths@redhat.com>
13716 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13717 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13718 (CV_CONVERSION_BADNESS): Define.
13719 (rank_one_type): Remove overly restrictive rvalue reference
13721 Add cv-qualifier checks and subranks for type equality.
13722 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13723 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13724 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13726 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13728 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13729 count when creating the object.
13731 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13732 Ulrich Weigand <uweigand@de.ibm.com>
13734 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13735 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13737 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13738 (process_xcoff_symbol): Likewise.
13739 (scan_xcoff_symtab): Likewise.
13741 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13743 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13744 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13745 (ia64_access_reg): Use get_frame_register_unsigned.
13746 (ia64_access_rse_reg): Likewise.
13747 (ia64_libunwind_frame_prev_register): Likewise.
13749 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13751 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13752 * gdbarch.c: Regenerated.
13753 * gdbarch.h: Regenerated.
13754 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13755 visibility external.
13756 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13757 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13758 (enum cfa_how_kind): Move to ...
13759 (struct dwarf2_frame_state_reg_info): Likewise.
13760 (struct dwarf2_frame_state): Likewise.
13761 * dwarf2-frame.h: ... here.
13762 (dwarf2_frame_state_alloc_regs): New declaration.
13763 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13764 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13766 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13768 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13769 regcache_raw_read_unsigned.
13770 (xtensa_pseudo_register_write): Likewise.
13772 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13774 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13775 (nds32_pseudo_register_write): Likewise.
13777 2017-04-25 Yao Qi <yao.qi@linaro.org>
13779 * regcache.c (struct regcache) <readonly_p>: Change its type
13781 (regcache_xmalloc_1): Update parameter type and callers update.
13783 2017-04-25 Yao Qi <yao.qi@linaro.org>
13785 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13786 set_gdbarch_wchar_bit.
13787 * arm-tdep.c (arm_gdbarch_init): Likewise.
13789 2017-04-25 Pedro Alves <palves@redhat.com>
13791 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13792 (BothAreRelocatable, memcopy, memmove): Don't define.
13793 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13796 2017-04-25 Pedro Alves <palves@redhat.com>
13798 * common/common-defs.h: Include "common/poison.h".
13799 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13801 * common/poison.h: New file.
13802 * common/traits.h: Include <type_traits>.
13803 (Not, Or, Requires): New, moved from common/function-view.h.
13805 2017-04-25 Pedro Alves <palves@redhat.com>
13807 * breakpoint.h (struct breakpoint): In-class initialize all
13808 fields. Make boolean fields "bool".
13809 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13810 memset call and initializations no longer necessary.
13812 2017-04-25 Pedro Alves <palves@redhat.com>
13814 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13816 (pt_btrace_insn): New function.
13817 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13819 2017-04-25 Pedro Alves <palves@redhat.com>
13821 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13822 "base" field and inherit from "bp_location" instead. Add
13824 (allocate_location_exception): Use new non-default ctor.
13825 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13826 (init_bp_location): Convert to ...
13827 (bp_location::bp_location): ... this new ctor, and remove memset
13829 (base_breakpoint_allocate_location): Use the new non-default ctor.
13830 * breakpoint.h (bp_location): Now a class. Declare default and
13831 non-default ctors. In-class initialize all members.
13832 (init_bp_location): Remove declaration.
13834 2017-04-25 Pedro Alves <palves@redhat.com>
13836 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13837 assignment operator.
13839 2017-04-24 Yao Qi <yao.qi@linaro.org>
13841 * doublest.c (convert_doublest_to_floatformat): Call
13842 floatformat_totalsize_bytes.
13844 2017-04-22 Tom Tromey <tom@tromey.com>
13846 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13848 * stack.c (print_frame): Use ui_out_emit_list.
13849 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13851 * mi/mi-main.c (print_one_inferior)
13852 (mi_cmd_data_list_register_names)
13853 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13854 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13856 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13857 (mi_output_solib_attribs): Use ui_out_emit_list,
13859 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13860 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13861 (mi_cmd_stack_list_args, list_args_or_locals): Use
13863 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13864 * breakpoint.c (print_solib_event, output_thread_groups): Use
13867 2017-04-22 Tom Tromey <tom@tromey.com>
13869 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13870 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13871 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13873 2017-04-22 Tom Tromey <tom@tromey.com>
13875 * tracepoint.c (tvariables_info_1)
13876 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13878 2017-04-22 Tom Tromey <tom@tromey.com>
13880 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13881 annotate_arg_emitter.
13882 * breakpoint.c (print_mention_watchpoint)
13883 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13884 * annotate.h (struct annotate_arg_emitter): New.
13886 2017-04-22 Tom Tromey <tom@tromey.com>
13888 * record-btrace.c (record_btrace_insn_history)
13889 (record_btrace_insn_history_range, record_btrace_call_history)
13890 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13891 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13893 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13894 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13895 * skip.c (skip_info): Use ui_out_emit_tuple.
13896 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13897 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13898 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13899 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13900 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13902 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13903 (output_register, mi_cmd_data_read_memory)
13904 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13905 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13906 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13907 Use ui_out_emit_tuple.
13908 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13910 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13911 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13912 * linux-thread-db.c (info_auto_load_libthread_db): Use
13914 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13915 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13916 * disasm.c (do_mixed_source_and_assembly_deprecated)
13917 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13918 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13919 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13920 * breakpoint.c (print_one_breakpoint_location)
13921 (print_one_breakpoint): Use ui_out_emit_tuple.
13922 * auto-load.c (print_script, info_auto_load_cmd): Use
13924 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13926 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13928 * thread.c (print_thread_info_1): Remove dead code.
13930 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13932 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13934 * arm-tdep.c (selftests::arm_record_test): Likewise.
13936 2017-04-21 Yao Qi <yao.qi@linaro.org>
13938 * regcache.c (regcache_restore): Remove argument 2. Replace
13939 argument 3 with regcache. Get register status from
13940 src->register_status and get register contents from
13941 register_buffer (src, regnum).
13942 (regcache_cpy): Update.
13944 2017-04-19 Pedro Alves <palves@redhat.com>
13946 * gdbthread.h (thread): Add missing closing parenthesis in
13949 2017-04-19 Pedro Alves <palves@redhat.com>
13951 * common/refcounted-object.h: New file.
13952 * gdbthread.h: Include "common/refcounted-object.h".
13953 (thread_info): Inherit from refcounted_object and add comments.
13954 (thread_info::incref, thread_info::decref)
13955 (thread_info::m_refcount): Delete.
13956 (thread_info::deletable): Use the refcounted_object::refcount()
13958 * inferior.c (current_inferior_): Add comment.
13959 (set_current_inferior): Increment/decrement refcounts.
13960 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13961 not-deletable instead of comparing with the current inferior.
13962 (initialize_inferiors): Increment the initial inferior's refcount.
13963 * inferior.h (struct inferior): Forward declare.
13964 Include "common/refcounted-object.h".
13965 (current_inferior, set_current_inferior): Move declaration to
13966 before struct inferior's definition, and fix comment.
13967 (inferior): Inherit from refcounted_object. Add comments.
13968 * thread.c (switch_to_thread_no_regs): Reference the thread's
13969 inferior pointer directly instead of doing a ptid lookup.
13970 (switch_to_no_thread): New function.
13971 (switch_to_thread(thread_info *)): New function, factored out
13973 (switch_to_thread(ptid_t)): ... this.
13974 (restore_current_thread): Delete.
13975 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13976 fields, and add 'inf' field.
13977 (do_restore_current_thread_cleanup): Check whether old->inf is
13978 alive instead of looking up an inferior by ptid. Use
13979 switch_to_thread and switch_to_no_thread.
13980 (restore_current_thread_cleanup_dtor): Use old->inf directly
13981 instead of lookup up an inferior by id. Decref the inferior.
13982 Don't restore 'removable'.
13983 (make_cleanup_restore_current_thread): Same the inferior pointer
13984 in old, instead of the inferior number. Incref the inferior.
13985 Don't save/clear 'removable'.
13987 2017-04-19 Pedro Alves <palves@redhat.com>
13989 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13990 unittests/scoped_restore-selftests.c.
13991 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13992 * common/scoped_restore.h (scoped_restore_base): Make "class".
13993 (scoped_restore_base::release): New public method.
13994 (scoped_restore_base::scoped_restore_base): New protected ctor.
13995 (scoped_restore_base::m_saved_var): New protected field.
13996 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13997 scoped_restore_base base class instead of m_saved_var directly.
13998 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13999 (scoped_restore_tmpl::scoped_restore_tmpl(const
14000 scoped_restore_tmpl<T>&)): Likewise.
14001 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
14003 (scoped_restore_tmpl::saved_var): New method.
14004 (scoped_restore_tmpl::m_saved_var): Delete.
14005 * inferior.h (inferior::detaching): Now a bool.
14006 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
14008 * unittests/scoped_restore-selftests.c: New file.
14010 2017-04-19 Pedro Alves <palves@redhat.com>
14012 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
14013 Re-sort in alphabetic order.
14015 2017-04-18 Pedro Alves <palves@redhat.com>
14017 * xml-support.c (obstack_xml_printf): Delete.
14018 * xml-support.h (obstack_xml_printf): Delete.
14020 2017-04-18 Pedro Alves <palves@redhat.com>
14022 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
14023 vdebug, verror, body_text, start_element, end_element, name,
14024 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
14025 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
14026 is_xinclude>: Make private and add m_ prefix.
14027 (gdb_xml_parser::body_text): New method, based on ...
14028 (gdb_xml_body_text): ... this. Adjust.
14029 (gdb_xml_parser::vdebug): New method, based on ...
14030 (gdb_xml_debug): ... this. Adjust.
14031 (gdb_xml_parser::verror): New method, based on ...
14032 (gdb_xml_error): ... this. Adjust.
14033 (gdb_xml_parser::start_element): New method, based on ...
14034 (gdb_xml_start_element): ... this. Adjust.
14035 (gdb_xml_start_element_wrapper): Defer to
14036 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
14037 (gdb_xml_parser::end_element): New method, based on ...
14038 (gdb_xml_end_element_wrapper): ... this. Adjust.
14039 (gdb_xml_parser::~gdb_xml_parser): Adjust.
14040 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
14041 (gdb_xml_parser::use_dtd): New method, based on ...
14042 (gdb_xml_use_dtd): ... this. Adjust.
14043 (gdb_xml_parser::parse): New method, based on ...
14044 (gdb_xml_parse): ... this. Adjust.
14045 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
14046 (xinclude_start_include): Adjust to call the parser's name method.
14047 (xml_xinclude_default, xml_xinclude_start_doctype)
14048 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
14050 (xml_process_xincludes): Adjust to call parser methods.
14051 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
14054 2017-04-18 Pedro Alves <palves@redhat.com>
14056 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
14057 gdb::optional<std::string>.
14058 * xml-support.c: Include <string>.
14059 (scope_level::scope_level(scope_level &&))
14060 (scope_level::~scope_level): Delete.
14061 (scope_level::body): Now a std::string.
14062 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
14063 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
14065 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
14066 (xinclude_parsing_data::output): Now a std::string reference.
14067 (xinclude_start_include): Adjust.
14068 (xml_xinclude_default): Adjust.
14069 (xml_process_xincludes): Add 'output' parameter, and return bool.
14070 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
14072 * xml-tdesc.c: Include <unordered_map> and <string>.
14073 (tdesc_xml_cache): Delete.
14074 (tdesc_xml_cache_s): Delete.
14075 (xml_cache): Now an std::unordered_map.
14076 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
14077 (target_fetch_description_xml): Change return type to
14078 gdb::optional<std::string>, and adjust.
14079 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
14080 (target_fetch_description_xml): Change return type to
14081 gdb::optional<std::string>.
14083 2017-04-18 Pedro Alves <palves@redhat.com>
14085 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14086 unittests/optional-selftests.c.
14087 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
14088 * unittests/optional-selftests.c: New file.
14089 * unittests/optional/assignment/1.cc: New file.
14090 * unittests/optional/assignment/2.cc: New file.
14091 * unittests/optional/assignment/3.cc: New file.
14092 * unittests/optional/assignment/4.cc: New file.
14093 * unittests/optional/assignment/5.cc: New file.
14094 * unittests/optional/assignment/6.cc: New file.
14095 * unittests/optional/assignment/7.cc: New file.
14096 * unittests/optional/cons/copy.cc: New file.
14097 * unittests/optional/cons/default.cc: New file.
14098 * unittests/optional/cons/move.cc: New file.
14099 * unittests/optional/cons/value.cc: New file.
14100 * unittests/optional/in_place.cc: New file.
14101 * unittests/optional/observers/1.cc: New file.
14102 * unittests/optional/observers/2.cc: New file.
14104 2017-04-18 Pedro Alves <palves@redhat.com>
14106 * common/gdb_optional.h: Include common/traits.h.
14107 (in_place_t): New type.
14108 (in_place): New constexpr variable.
14109 (optional::optional): Remove member initialization of
14111 (optional::optional(in_place_t...)): New constructor.
14112 (optional::~optional): Use reset.
14113 (optional::optional(const optional&)): New.
14114 (optional::optional(const optional&&)): New.
14115 (optional::optional(T &)): New.
14116 (optional::optional(T &&)): New.
14117 (operator::operator=(const optional &)): New.
14118 (operator::operator=(optional &&)): New.
14119 (operator::operator= (const T &))
14120 (operator::operator= (T &&))
14121 (operator::emplace (Args &&... args)): Return a T&. Use reset.
14122 (operator::reset): New.
14123 (operator::m_instantiated):: Add in-class initializer.
14124 * common/traits.h: Include <type_traits>.
14125 (struct And): New types.
14127 2017-04-18 Pedro Alves <palves@redhat.com>
14129 * xml-support.c: Include <vector>.
14130 (scope_level::scope_level(const gdb_xml_element *))
14131 (scope_level::scope_level(scope_level&&)): New.
14132 (scope_level::~scope_level): New.
14133 (scope_level_s): Delete.
14134 (gdb_xml_parser::scopes): Now a std::vector.
14135 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
14137 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
14138 scope cleanup code.
14139 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
14140 of the scopes member. Use std::vector::emplace_back.
14142 2017-04-18 Pedro Alves <palves@redhat.com>
14144 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
14146 (gdb_xml_end_element): Change type of first parameter.
14147 (gdb_xml_cleanup): Rename to ...
14148 (gdb_xml_parser::~gdb_xml_parser): ... this.
14149 (gdb_xml_create_parser_and_cleanup): Delete with ...
14150 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
14152 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
14153 using gdb_xml_create_parser_and_cleanup.
14154 (xinclude_parsing_data): Add ctor/dtor.
14155 (xml_xinclude_cleanup): Delete.
14156 (xml_process_xincludes): Create a local xinclude_parsing_data
14157 instead of heap-allocating one. Create a local gdb_xml_parser
14158 instead of heap-allocating one with
14159 gdb_xml_create_parser_and_cleanup.
14161 2017-04-18 John Baldwin <jhb@FreeBSD.org>
14164 * fbsd-nat.c (resume_one_thread_cb): Remove.
14165 (resume_all_threads_cb): Remove.
14166 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
14167 iterate_over_threads.
14169 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14171 * NEWS: Create a new section for the next release branch.
14172 Rename the section of the current branch, now that it has
14175 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14177 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
14178 * version.in: Bump version to 8.0.50.DATE-git.
14180 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
14183 * windows-nat.c (windows_create_inferior): Declare 'allargs'
14184 independently of the host, and fix build breakage on Cygwin.
14186 2017-04-13 Pedro Alves <palves@redhat.com>
14188 * inferior.c (free_inferior): Convert to ...
14189 (inferior::~inferior): ... this dtor.
14190 (inferior::inferior): New ctor, factored out from ...
14191 (add_inferior_silent): ... here. Allocate the inferior with a new
14193 (delete_inferior): Call delete instead of free_inferior.
14194 * inferior.h (gdb_environ, continuation): Forward declare.
14195 (inferior): Now a class. Add in-class initialization to all
14196 members. Make boolean fields bool, except 'detaching'.
14197 (inferior::inferior): New explicit ctor.
14198 (inferior::~inferior): New.
14200 2017-04-13 Pedro Alves <palves@redhat.com>
14202 * inferior.c (init_inferior_list): Delete.
14203 * inferior.h (init_inferior_list): Delete.
14205 2017-04-13 Pedro Alves <palves@redhat.com>
14208 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
14209 (top level): Call it twice, with different thread sets.
14211 2017-04-13 Pedro Alves <palves@redhat.com>
14213 * thread.c: Include <algorithm>.
14214 (thread_array_cleanup): Delete.
14215 (scoped_inc_dec_ref): New class.
14216 (live_threads_count): New function.
14217 (set_thread_refcount): Delete.
14218 (tp_array_compar_ascending): Now a bool.
14219 (tp_array_compar): Convert to a std::sort comparison function.
14220 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
14221 and live_threads_count.
14223 2017-04-13 Pedro Alves <palves@redhat.com>
14225 * infrun.c (follow_fork_inferior): Also switch the current
14228 2017-04-13 Pedro Alves <palves@redhat.com>
14230 * breakpoint.c (watch_command_1): Save watchpoint-frame info
14231 before calling create_internal_breakpoint.
14233 2017-04-13 Pedro Alves <palves@redhat.com>
14235 * fork-child.c (execv_argv): New class.
14236 (breakup_args): Refactored as ...
14237 (execv_argv::init_for_no_shell): .. this method of execv_argv.
14238 Copy arguments to storage and replace separators with NULL
14239 terminators in place.
14240 (escape_bang_in_quoted_argument): Adjust to return bool.
14241 (execv_argv::execv_argv): New ctor.
14242 (execv_argv::init_for_shell): New method, factored out from
14243 fork_inferior. Don't strdup strings into the vector.
14244 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
14245 Remove free_vector_argv call.
14247 2017-04-13 Yao Qi <yao.qi@linaro.org>
14249 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
14252 2017-04-13 Yao Qi <yao.qi@linaro.org>
14254 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
14255 * rx-tdep.c (rx_gdbarch_init): Likewise.
14257 2017-04-13 Pedro Alves <palves@redhat.com>
14259 * breakpoint.h (struct breakpoint): Reindent.
14261 2017-04-13 Pedro Alves <palves@redhat.com>
14263 * breakpoint.c (bp_location): Rename to ...
14264 (bp_locations): ... this. All references updated.
14265 (bp_location_count): Rename to ...
14266 (bp_locations_count): ... this. All references updated.
14267 (bp_location_placed_address_before_address_max): Rename to ...
14268 (bp_locations_placed_address_before_address_max): ... this. All
14269 references updated.
14270 (bp_location_shadow_len_after_address_max): Rename to ...
14271 (bp_locations_shadow_len_after_address_max): ... this. All
14272 references updated.
14273 (bp_location_compare_addrs): Rename to ...
14274 (bp_locations_compare_addrs): ... this. All references updated.
14275 (bp_location_compare):Rename to ...
14276 (bp_locations_compare): ... this. All references updated.
14277 (bp_location_target_extensions_update): Rename to ...
14278 (bp_locations_target_extensions_update): ... this. All references
14281 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14283 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
14284 * common/common.m4: Check headers 'termios.h', 'termio.h' and
14286 * common/gdb_termios.h: New file, with parts of "terminal.h".
14287 * inflow.c: Include "gdb_termios.h".
14288 * ser-unix.c: Include "gdb_termios.h".
14289 * terminal.h: Move terminal-related defines to
14290 "common/gdb_termios.h".
14292 2017-04-12 Tom Tromey <tom@tromey.com>
14294 * probe.c (parse_probes): Update.
14295 * location.h (delete_event_location): Don't declare.
14296 (event_location_deleter::operator()): Update.
14297 * location.c (event_location_deleter::operator()): Rename from
14298 delete_event_location.
14299 * linespec.h (linespec_result) <location>: Change type to
14301 * linespec.c (canonicalize_linespec, event_location_to_sals)
14302 (decode_objc): Update.
14303 (linespec_result): Don't call delete_event_location.
14304 * breakpoint.c (create_breakpoints_sal)
14305 (bkpt_probe_create_sals_from_location)
14306 (strace_marker_create_sals_from_location): Update.
14308 2017-04-12 Tom Tromey <tom@tromey.com>
14310 * linespec.h (struct linespec_result): Add constructor and
14312 (init_linespec_result, destroy_linespec_result)
14313 (make_cleanup_destroy_linespec_result): Don't declare.
14314 * linespec.c (init_linespec_result): Remove.
14315 (linespec_result::~linespec_result): Rename from
14316 destroy_linespec_result. Update.
14317 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
14319 * breakpoint.c (create_breakpoint, break_range_command)
14320 (decode_location_default): Update.
14321 * ax-gdb.c (agent_command_1): Update.
14323 2017-04-12 Tom Tromey <tom@tromey.com>
14325 * remote.c (remote_download_tracepoint): Update.
14326 * python/py-breakpoint.c (bppy_get_location): Update.
14327 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
14328 (gdbscm_breakpoint_location): Update.
14329 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
14330 * breakpoint.h (struct breakpoint) <location, location_range_end>:
14331 Change type to event_location_up.
14332 * breakpoint.c (create_overlay_event_breakpoint)
14333 (create_longjmp_master_breakpoint)
14334 (create_std_terminate_master_breakpoint)
14335 (create_exception_master_breakpoint)
14336 (breakpoint_event_location_empty_p, print_breakpoint_location)
14337 (print_one_breakpoint_location, create_thread_event_breakpoint)
14338 (init_breakpoint_sal, create_breakpoint)
14339 (print_recreate_ranged_breakpoint, break_range_command)
14340 (init_ada_exception_breakpoint, say_where): Update.
14341 (base_breakpoint_dtor): Don't call delete_event_location.
14342 (bkpt_print_recreate, tracepoint_print_recreate)
14343 (dprintf_print_recreate, update_static_tracepoint)
14344 (breakpoint_re_set_default): Update.
14346 2017-04-12 Tom Tromey <tom@tromey.com>
14348 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
14349 type of "to_do". Update.
14350 (compute_stack_depth): Use std::vector.
14352 2017-04-12 Tom Tromey <tom@tromey.com>
14354 * printcmd.c (find_instruction_backward): Use std::vector.
14356 2017-04-12 Tom Tromey <tom@tromey.com>
14358 * symfile.c (objfilep): Remove typedef.
14359 (reread_symbols): Use a std::vector.
14361 2017-04-12 Tom Tromey <tom@tromey.com>
14363 * mi/mi-main.c (exec_direction_forward): Remove.
14364 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
14365 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
14367 * guile/guile.c (guile_repl_command, guile_command)
14368 (gdbscm_execute_gdb_command): Use scoped_restore.
14369 * go-exp.y (go_parse): Use scoped_restore.
14370 * d-exp.y (d_parse): Use scoped_restore.
14371 * cli/cli-decode.c (cmd_func): Use scoped_restore.
14372 * c-exp.y (c_parse): Use scoped_restore.
14374 2017-04-12 Tom Tromey <tom@tromey.com>
14376 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14377 (mi_parse): Update return type.
14378 (mi_parse_free): Remove.
14379 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14380 (mi_parse::~mi_parse): Rename from mi_parse_free.
14381 (mi_parse_cleanup): Remove.
14382 (mi_parse): Return a unique_ptr. Use new.
14383 * mi/mi-main.c (mi_execute_command): Update.
14385 2017-04-12 Tom Tromey <tom@tromey.com>
14387 * location.c (explicit_location_lex_one): Return a
14388 unique_xmalloc_ptr.
14389 (string_to_explicit_location): Update. Remove cleanups.
14391 2017-04-12 Tom Tromey <tom@tromey.com>
14393 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14394 (compare_value_and_voffset): Change type. Update.
14395 (compute_vtable_size): Change type of "offset_vec".
14396 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14397 (gnuv3_get_typeid): Remove extraneous declaration.
14399 2017-04-12 Tom Tromey <tom@tromey.com>
14401 * charset.h (wchar_iterator): Fix comment.
14403 2017-04-12 Tom Tromey <tom@tromey.com>
14405 * charset.c (iconv_wrapper): New class.
14406 (cleanup_iconv): Remove.
14407 (convert_between_encodings): Use it.
14409 2017-04-12 Tom Tromey <tom@tromey.com>
14411 * symfile.h (increment_reading_symtab): Update type.
14412 * symfile.c (decrement_reading_symtab): Remove.
14413 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14414 * psymtab.c (psymtab_to_symtab): Update.
14415 * dwarf2read.c (dw2_instantiate_symtab): Update.
14417 2017-04-12 Tom Tromey <tom@tromey.com>
14419 * jit.c (struct jit_reader): Declare separately. Add constructor
14420 and destructor. Change type of "handle".
14421 (loaded_jit_reader): Define separately.
14422 (jit_reader_load): Update. New "new".
14423 (jit_reader_unload_command): Use "delete".
14424 * gdb-dlfcn.h (struct dlclose_deleter): New.
14425 (gdb_dlhandle_up): New typedef.
14426 (gdb_dlopen, gdb_dlsym): Update types.
14427 (gdb_dlclose): Remove.
14428 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14429 (gdb_dlsym): Change type of "handle".
14430 (make_cleanup_dlclose): Remove.
14431 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14432 * compile/compile-c-support.c (load_libcc): Update.
14434 2017-04-12 Tom Tromey <tom@tromey.com>
14436 * symtab.h (find_pcs_for_symtab_line): Change return type.
14437 * symtab.c (find_pcs_for_symtab_line): Change return type.
14438 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14439 type of "vec". Update.
14440 (ltpy_get_pcs_for_line): Update.
14441 * linespec.c (decode_digits_ordinary): Update.
14443 2017-04-12 Tom Tromey <tom@tromey.com>
14445 * tracepoint.c (actions_command): Update.
14446 * python/python.c (python_command, python_interactive_command):
14448 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14449 * guile/guile.c (guile_command): Update.
14450 * defs.h (read_command_lines, read_command_lines_1): Return
14452 (command_lines_deleter): New struct.
14453 (command_line_up): New typedef.
14454 * compile/compile.c (compile_code_command)
14455 (compile_print_command): Update.
14456 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14458 (make_cleanup_free_command_lines): Remove.
14459 * cli/cli-script.c (get_command_line, read_command_lines_1)
14460 (copy_command_lines): Return command_line_up.
14461 (while_command, if_command, read_command_lines, define_command)
14462 (document_command): Update.
14463 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14465 * breakpoint.h (breakpoint_set_commands): Change type of
14467 * breakpoint.c (breakpoint_set_commands): Change type of
14468 "commands". Update.
14469 (do_map_commands_command, update_dprintf_command_list)
14470 (create_tracepoint_from_upload): Update.
14472 2017-04-12 Tom Tromey <tom@tromey.com>
14474 * tracepoint.c (scope_info): Update.
14475 * spu-tdep.c (spu_catch_start): Update.
14476 * python/python.c (gdbpy_decode_line): Update.
14477 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14478 * python/py-breakpoint.c (bppy_init): Update.
14479 * probe.c (parse_probes): Update.
14480 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14481 * location.h (event_location_deleter): New struct.
14482 (event_location_up): New typedef.
14483 (new_linespec_location, new_address_location, new_probe_location)
14484 (new_explicit_location, copy_event_location)
14485 (string_to_event_location, string_to_event_location_basic)
14486 (string_to_explicit_location): Update return type.
14487 (make_cleanup_delete_event_location): Remove.
14488 * location.c (new_linespec_location, new_address_location)
14489 (new_probe_location, new_explicit_location, copy_event_location):
14490 Return event_location_up.
14491 (delete_event_location_cleanup)
14492 (make_cleanup_delete_event_location): Remove.
14493 (string_to_explicit_location, string_to_event_location_basic)
14494 (string_to_event_location): Return event_location_up.
14495 * linespec.c (canonicalize_linespec, event_location_to_sals)
14496 (decode_line_with_current_source)
14497 (decode_line_with_last_displayed, decode_objc): Update.
14498 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14499 * completer.c (location_completer): Update.
14500 * cli/cli-cmds.c (edit_command, list_command): Update.
14501 * breakpoint.c (create_overlay_event_breakpoint)
14502 (create_longjmp_master_breakpoint)
14503 (create_std_terminate_master_breakpoint)
14504 (create_exception_master_breakpoint)
14505 (create_thread_event_breakpoint): Update.
14506 (init_breakpoint_sal): Update. Remove some dead code.
14507 (create_breakpoint_sal): Change type of "location". Update.
14508 (create_breakpoints_sal, create_breakpoint, break_command_1)
14509 (dprintf_command, break_range_command, until_break_command)
14510 (init_ada_exception_breakpoint)
14511 (strace_marker_create_sals_from_location)
14512 (update_static_tracepoint, trace_command, ftrace_command)
14513 (strace_command, create_tracepoint_from_upload): Update.
14514 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14515 * ax-gdb.c (agent_command_1): Update.
14517 2017-04-12 Pedro Alves <palves@redhat.com>
14519 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14520 * configure.tgt: Handle i[34567]86-*-go32* and
14521 i[34567]86-*-msdosdjgpp*.
14522 * i386-tdep.c (i386_svr4_reg_to_regnum):
14524 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14526 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14527 * i386-go32-tdep.c: New file.
14528 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14531 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14533 * aix-thread.c (pd_status2str): Change return type to const char *.
14535 2017-04-12 Pedro Alves <palves@redhat.com>
14537 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14538 calls to set_gdbarch_gnu_triplet_regexp.
14540 2017-04-12 Pedro Alves <palves@redhat.com>
14543 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14545 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14546 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14547 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14548 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14549 * gdbarch.h, gdbarch.c: Regenerate.
14550 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14551 gdbarch_wchar_bit and gdbarch_wchar_signed.
14552 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14553 * arm-tdep.c (arm_gdbarch_init): Likewise.
14554 * avr-tdep.c (avr_gdbarch_init): Likewise.
14555 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14556 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14557 * i386-tdep.c (i386_go32_init_abi): Likewise.
14558 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14559 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14560 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14561 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14562 * sh-tdep.c (sh_gdbarch_init): Likewise.
14563 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14564 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14565 * windows-tdep.c (windows_init_abi): Likewise.
14566 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14568 2017-04-12 Pedro Alves <palves@redhat.com>
14571 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14572 cplus_primitive_type_char32_t>: New enum values.
14573 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14574 and cplus_primitive_type_char32_t.
14575 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14576 32, use the archtecture's built-in type for char16_t and char32_t,
14577 respectively. Otherwise, fallback to init_integer_type as before,
14578 but make the type unsigned, and issue a complaint.
14579 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14581 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14583 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14584 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14586 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14588 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14591 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14593 * common/common-utils.c (free_vector_argv): New function.
14594 * common/common-utils.h: Include <vector>.
14595 (free_vector_argv): New prototype.
14596 * darwin-nat.c (darwin_create_inferior): Rewrite function
14597 prototype in order to constify "exec_file" and accept a
14598 "std::string" for "allargs".
14599 * fork-child.c: Include <vector>.
14600 (breakup_args): Rewrite function, using C++.
14601 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14602 and accept "std::string" for "allargs". Update the code to
14603 calculate "argv" based on "allargs". Update calls to "exec_fun"
14605 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14606 order to constify "exec_file" and accept a "std::string" for
14608 * go32-nat.c (go32_create_inferior): Likewise.
14609 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14610 * infcmd.c (run_command_1): Constify "exec_file". Use
14611 "std::string" for inferior arguments.
14612 * inferior.h (fork_inferior): Update prototype.
14613 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14614 prototype in order to constify "exec_file" and accept a
14615 "std::string" for "allargs".
14616 * nto-procfs.c (procfs_create_inferior): Likewise.
14617 * procfs.c (procfs_create_inferior): Likewise.
14618 * remote-sim.c (gdbsim_create_inferior): Likewise.
14619 * remote.c (extended_remote_run): Update code to accept
14620 "std::string" as argument.
14621 (extended_remote_create_inferior): Rewrite function prototype in
14622 order to constify "exec_file" and accept a "std::string" for
14624 * rs6000-nat.c (super_create_inferior): Likewise.
14625 (rs6000_create_inferior): Likewise.
14626 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14627 * windows-nat.c (windows_create_inferior): Likewise.
14629 2017-04-11 Pedro Alves <palves@redhat.com>
14631 * thread.c: Fix whitespace throughout.
14633 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14635 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14637 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14639 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14641 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14644 * osdata.c (info_osdata): Check if 'type' is an empty string
14647 2017-04-10 Pedro Alves <palves@redhat.com>
14649 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14650 (ptid_to_global_thread_id, in_thread_list)
14651 (do_captured_list_thread_ids, set_resumed, set_running)
14652 (set_executing, set_stop_requested, finish_thread_state)
14653 (validate_registers_access, can_access_registers_ptid)
14654 (print_thread_info_1, switch_to_thread)
14655 (do_restore_current_thread_cleanup)
14656 (make_cleanup_restore_current_thread, thread_command)
14657 (thread_name_command): Use operator== instead of ptid_equal.
14659 2017-04-10 Pedro Alves <palves@redhat.com>
14661 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14662 (current_thread_cleanup_chain): Delete.
14663 (restore_current_thread_cleanup_dtor)
14664 (make_cleanup_restore_current_thread): Remove references to
14665 current_thread_cleanup_chain.
14667 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14669 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14672 2017-04-10 Yao Qi <yao.qi@linaro.org>
14675 * gdbthread.h (thread_info::deletable): New method.
14676 (thread_info::incref): New method.
14677 (thread_info::decref): New method.
14678 (thread_info::refcount): Move it to private.
14679 * infrun.c (save_stop_context): Call inc_refcount.
14680 (release_stop_context_cleanup): Likewise.
14681 * thread.c (set_thread_exited): New function.
14682 (init_thread_list): Delete "tp" only it is deletable, otherwise
14683 call set_thread_exited.
14684 (delete_thread_1): Call set_thread_exited.
14685 (current_thread_cleanup) <inferior_pid>: Remove.
14686 <thread>: New field.
14687 (restore_current_thread_ptid_changed): Removed.
14688 (do_restore_current_thread_cleanup): Adjust.
14689 (restore_current_thread_cleanup_dtor): Don't call
14691 (set_thread_refcount): Use dec_refcount.
14692 (make_cleanup_restore_current_thread): Adjust.
14693 (thread_apply_all_command): Call inc_refcount.
14694 (_initialize_thread): Don't call
14695 observer_attach_thread_ptid_changed.
14697 2017-04-10 Yao Qi <yao.qi@linaro.org>
14699 * thread.c (delete_thread_1): Hoist code on marking thread as
14702 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14704 * windows-nat.c (windows_detach): Initialize ptid with
14707 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14709 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14711 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14713 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14714 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14715 (bfin_pseudo_register_write): Likewise
14717 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14719 * common/ptid.h (struct ptid): Change to...
14720 (class ptid_t): ... this.
14721 <ptid_t>: New constructors.
14722 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14723 matches>: New methods.
14724 <make_null, make_minus_one>: New static methods.
14725 <pid>: Rename to...
14727 <lwp>: Rename to...
14729 <tid>: Rename to...
14731 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14732 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14733 as references, move comment to class ptid_t.
14734 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14735 ptid_t static methods.
14736 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14737 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14738 Take ptid arguments as references, implement using ptid_t methods.
14739 * unittests/ptid-selftests.c: New file.
14740 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14741 unittests/ptid-selftests.c.
14742 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14744 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14746 * python/python.c (python_run_simple_file): Cast mode literal to
14747 non-const char pointer as expected by PyFile_FromString.
14749 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14751 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14752 minus_one_ptid and null_ptid.
14754 2017-04-05 Pedro Alves <palves@redhat.com>
14756 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14757 * configure: Regenerate.
14759 2017-04-05 Pedro Alves <palves@redhat.com>
14761 * ada-exp.y (yyerror): Constify.
14762 * ada-lang.c (bound_name, get_selections)
14763 (ada_variant_discrim_type)
14764 (ada_variant_discrim_name, ada_value_struct_elt)
14765 (ada_lookup_struct_elt_type, is_unchecked_variant)
14766 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14767 (catch_ada_exception_command_split)
14768 (catch_ada_assert_command_split, catch_assert_command)
14769 (ada_op_name): Constify.
14770 * ada-lang.h (ada_yyerror, get_selections)
14771 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14772 * arc-tdep.c (arc_print_frame_cache): Constify.
14773 * arm-tdep.c (arm_skip_stub): Constify.
14774 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14775 (gen_aggregate_elt_ref): Constify.
14776 * bcache.c (print_bcache_statistics): Constify.
14777 * bcache.h (print_bcache_statistics): Constify.
14778 * break-catch-throw.c (catch_exception_command_1):
14779 * breakpoint.c (struct ep_type_description::description):
14781 (add_solib_catchpoint): Constify.
14782 (catch_fork_command_1): Add cast.
14783 (add_catch_command): Constify.
14784 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14786 * bsd-uthread.c (bsd_uthread_state): Constify.
14787 * buildsym.c (patch_subfile_names): Constify.
14788 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14790 * c-exp.y (yyerror): Constify.
14791 (token::oper): Constify.
14792 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14793 * c-varobj.c (cplus_describe_child): Constify.
14794 * charset.c (find_charset_names): Add cast.
14795 (find_charset_names): Constify array and add const_cast.
14796 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14797 (edit_command): Constify.
14798 * cli/cli-decode.c (lookup_cmd): Constify.
14799 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14801 (struct dump_context): Constify.
14802 (add_dump_command, restore_command): Constify.
14803 * cli/cli-script.c (get_command_line): Constify.
14804 * cli/cli-script.h (get_command_line): Constify.
14805 * cli/cli-utils.c (check_for_argument): Constify.
14806 * cli/cli-utils.h (check_for_argument): Constify.
14807 * coff-pe-read.c (struct read_pe_section_data): Constify.
14808 * command.h (lookup_cmd): Constify.
14809 * common/print-utils.c (decimal2str): Constify.
14810 * completer.c (gdb_print_filename): Constify.
14811 * corefile.c (set_gnutarget): Constify.
14812 * cp-name-parser.y (yyerror): Constify.
14813 * cp-valprint.c (cp_print_class_member): Constify.
14814 * cris-tdep.c (cris_register_name, crisv32_register_name):
14816 * d-exp.y (yyerror): Constify.
14817 (struct token::oper): Constify.
14818 * d-lang.h (d_yyerror): Constify.
14819 * dbxread.c (struct header_file_location::name): Constify.
14820 (add_old_header_file, add_new_header_file, last_function_name)
14821 (dbx_next_symbol_text, add_bincl_to_list)
14822 (find_corresponding_bincl_psymtab, set_namestring)
14823 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14824 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14825 * defs.h (command_line_input, print_address_symbolic)
14826 (deprecated_readline_begin_hook): Constify.
14827 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14829 * event-top.c (handle_line_of_input): Constify and add cast.
14830 * exceptions.c (catch_errors): Constify.
14831 * exceptions.h (catch_errors): Constify.
14832 * expprint.c (print_subexp_standard, op_string, op_name)
14833 (op_name_standard, dump_raw_expression, dump_raw_expression):
14834 * expression.h (op_name, op_string, dump_raw_expression):
14836 * f-exp.y (yyerror): Constify.
14837 (struct token::oper): Constify.
14838 (struct f77_boolean_val::name): Constify.
14839 * f-lang.c (f_word_break_characters): Constify.
14840 * f-lang.h (f_yyerror): Constify.
14841 * fork-child.c (fork_inferior): Add cast.
14842 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14843 (new_variant): Constify.
14844 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14845 * gdbarch.c: Regenerate.
14846 * gdbcore.h (set_gnutarget): Constify.
14847 * go-exp.y (yyerror): Constify.
14848 (token::oper): Constify.
14849 * go-lang.h (go_yyerror): Constify.
14850 * go32-nat.c (go32_sysinfo): Constify.
14851 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14852 * guile/scm-cmd.c (cmdscm_function): Constify.
14853 * guile/scm-param.c (pascm_param_value): Constify.
14854 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14855 (h8300sx_register_name): Constify.
14856 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14858 * ia64-tdep.c (ia64_register_names): Constify.
14859 * infcmd.c (construct_inferior_arguments): Constify.
14860 (path_command, attach_post_wait): Constify.
14861 * language.c (show_range_command, show_case_command)
14862 (unk_lang_error): Constify.
14863 * language.h (language_defn::la_error)
14864 (language_defn::la_name_of_this): Constify.
14865 * linespec.c (decode_line_2): Constify.
14866 * linux-thread-db.c (thread_db_err_str): Constify.
14867 * lm32-tdep.c (lm32_register_name): Constify.
14868 * m2-exp.y (yyerror): Constify.
14869 * m2-lang.h (m2_yyerror): Constify.
14870 * m32r-tdep.c (m32r_register_names): Constify and make static.
14871 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14872 * m88k-tdep.c (m88k_register_name): Constify.
14873 * macroexp.c (appendmem): Constify.
14874 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14875 (upgrade_type, parse_external, parse_partial_symbols)
14876 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14877 (new_symbol): Constify.
14878 * memattr.c (mem_info_command): Constify.
14879 * mep-tdep.c (register_name_from_keyword): Constify.
14880 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14882 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14883 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14884 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14886 (mi_execute_async_cli_command): Constify.
14887 * mips-tdep.c (mips_register_name): Constify.
14888 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14889 (am33_register_name, am33_2_register_name)
14890 * moxie-tdep.c (moxie_register_names): Constify.
14891 * nat/linux-osdata.c (osdata_type): Constify fields.
14892 * nto-tdep.c (nto_parse_redirection): Constify.
14893 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14894 (lookup_child_selector): Constify.
14895 (objc_methcall::name): Constify.
14896 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14897 (lookup_struct_typedef): Constify.
14898 * objfiles.c (pc_in_section): Constify.
14899 * objfiles.h (pc_in_section): Constify.
14900 * p-exp.y (struct token::oper): Constify.
14901 (yyerror): Constify.
14902 * p-lang.h (pascal_yyerror): Constify.
14903 * parser-defs.h (op_name_standard): Constify.
14904 (op_print::string): Constify.
14905 (exp_descriptor::op_name): Constify.
14906 * printcmd.c (print_address_symbolic): Constify.
14907 * psymtab.c (print_partial_symbols): Constify.
14908 * python/py-breakpoint.c (stop_func): Constify.
14909 (bppy_get_expression): Constify.
14910 * python/py-cmd.c (cmdpy_completer::name): Constify.
14911 (cmdpy_function): Constify.
14912 * python/py-event.c (evpy_add_attribute)
14913 (gdbpy_initialize_event_generic): Constify.
14914 * python/py-event.h (evpy_add_attribute)
14915 (gdbpy_initialize_event_generic): Constify.
14916 * python/py-evts.c (add_new_registry): Constify.
14917 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14918 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14919 * python/py-inferior.c (get_buffer): Add cast.
14920 * python/py-param.c (parm_constant::name): Constify.
14921 * python/py-unwind.c (fprint_frame_id): Constify.
14922 * python/python.c (gdbpy_parameter_value): Constify.
14923 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14924 * remote.c (memory_packet_config::name): Constify.
14925 (show_packet_config_cmd, remote_write_bytes)
14926 (remote_buffer_add_string):
14927 * reverse.c (exec_reverse_once): Constify.
14928 * rs6000-tdep.c (variant::name, variant::description): Constify.
14929 * rust-exp.y (rustyyerror): Constify.
14930 * rust-lang.c (rust_op_name): Constify.
14931 * rust-lang.h (rustyyerror): Constify.
14932 * serial.h (serial_ops::name): Constify.
14933 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14934 (sh_sh3e_register_name, sh_sh2e_register_name)
14935 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14936 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14937 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14938 (sh_sh4al_dsp_register_name): Constify.
14939 * sh64-tdep.c (sh64_register_name): Constify.
14940 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14941 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14942 * stabsread.c (patch_block_stabs, read_type_number)
14943 (ref_map::stabs, ref_add, process_reference)
14944 (symbol_reference_defined, define_symbol, define_symbol)
14945 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14946 (read_one_struct_field, read_struct_fields, read_baseclasses)
14947 (read_tilde_fields, read_struct_type, read_array_type)
14948 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14949 (read_huge_number, read_range_type, read_args, common_block_start)
14950 (find_name_end): Constify.
14951 * stabsread.h (common_block_start, define_symbol)
14952 (process_one_symbol, symbol_reference_defined, ref_add):
14953 * symfile.c (get_section_index, add_symbol_file_command):
14954 * symfile.h (get_section_index): Constify.
14955 * target-descriptions.c (tdesc_type::name): Constify.
14956 (tdesc_free_type): Add cast.
14957 * target.c (find_default_run_target):
14958 (add_deprecated_target_alias, find_default_run_target)
14959 (target_announce_detach): Constify.
14960 (do_option): Constify.
14961 * target.h (add_deprecated_target_alias): Constify.
14962 * thread.c (print_thread_info_1): Constify.
14963 * top.c (deprecated_readline_begin_hook, command_line_input):
14965 (init_main): Add casts.
14966 * top.h (handle_line_of_input): Constify.
14967 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14968 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14969 (tfind_command): Rename to ...
14970 (tfind_command_1): ... this and constify.
14971 (tfind_command): New function.
14972 (tfind_end_command, tfind_start_command): Adjust.
14973 (encode_source_string): Constify.
14974 * tracepoint.h (encode_source_string): Constify.
14975 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14976 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14977 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14978 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14979 * tui/tui-win.c (parse_scrolling_args): Constify.
14980 * tui/tui-windata.c (tui_erase_data_content): Constify.
14981 * tui/tui-windata.h (tui_erase_data_content): Constify.
14982 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14983 * tui/tui.c (tui_enable): Add cast.
14984 * utils.c (defaulted_query): Constify.
14985 (init_page_info): Add cast.
14986 (puts_debug, subset_compare): Constify.
14987 * utils.h (subset_compare): Constify.
14988 * varobj.c (varobj_format_string): Constify.
14989 * varobj.h (varobj_format_string): Constify.
14990 * vax-tdep.c (vax_register_name): Constify.
14991 * windows-nat.c (windows_detach): Constify.
14992 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14993 * xml-support.c (gdb_xml_end_element): Constify.
14994 * xml-tdesc.c (tdesc_start_reg): Constify.
14995 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14996 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14997 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14999 2017-04-05 Pedro Alves <palves@redhat.com>
15001 * proc-api.c (struct trans): Constify.
15002 (procfs_note): Constify.
15003 * proc-events.c (struct trans, syscall_table):
15004 * proc-flags.c (struct trans): Constify.
15005 * proc-utils.h (procfs_note): Constify.
15006 * proc-why.c (struct trans): Constify.
15007 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
15008 (procfs_detach): Constify.
15009 * sol-thread.c (struct string_map): Constify.
15010 (td_err_string, td_state_string): Constify.
15012 2017-04-05 Pedro Alves <palves@redhat.com>
15014 * proc-api.c (procfs_filename): Don't initialize
15016 (prepare_to_trace): Assume procfs_filename is non-NULL.
15017 (_initialize_proc_api): Give procfs_filename a default value here.
15019 2017-04-05 Pedro Alves <palves@redhat.com>
15021 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
15022 'cond_string' parameter.
15023 (extract_exception_regexp): Constify 'string' parameter.
15024 (catch_exception_command_1): Constify.
15025 * breakpoint.c (init_catchpoint)
15026 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
15028 (ep_parse_optional_if_clause, catch_fork_command_1)
15029 (catch_exec_command_1): Constify.
15030 * breakpoint.h (init_catchpoint): Constify 'cond_string'
15032 (ep_parse_optional_if_clause): Constify.
15033 * cli/cli-utils.c (remove_trailing_whitespace)
15034 (check_for_argument): Constify.
15035 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
15036 non-const overload.
15037 (check_for_argument): Likewise.
15039 2017-04-05 Pedro Alves <palves@redhat.com>
15041 * event-top.c (command_line_handler): Add cast to execute_command
15043 * record-btrace.c (cmd_record_btrace_bts_start)
15044 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
15045 (cmd_record_btrace_start): Add cast to execute_command call.
15046 * record-full.c (record_full_goto_insn):
15047 * record.c (record_start, record_stop): Add cast to
15048 execute_command_to_string calls.
15049 (cmd_record_start): Add cast to execute_command calls.
15051 2017-04-05 Pedro Alves <palves@redhat.com>
15053 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
15054 static inline function.
15055 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
15056 array and use gdb_PyArg_ParseTupleAndKeywords.
15057 * python/py-cmd.c (cmdpy_init): Likewise.
15058 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
15059 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
15060 (infpy_search_memory): Likewise.
15061 * python/py-objfile.c (objfpy_add_separate_debug_file)
15062 (gdbpy_lookup_objfile): Likewise.
15063 * python/py-symbol.c (gdbpy_lookup_symbol)
15064 (gdbpy_lookup_global_symbol): Likewise.
15065 * python/py-type.c (gdbpy_lookup_type): Likewise.
15066 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
15067 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
15070 2017-04-05 Pedro Alves <palves@redhat.com>
15072 * python/python-internal.h (gdb_PyGetSetDef): New type.
15073 * python/py-block.c (block_object_getset)
15074 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
15075 * python/py-event.c (event_object_getset)
15076 (finish_breakpoint_object_getset): Likewise.
15077 * python/py-inferior.c (inferior_object_getset): Likewise.
15078 * python/py-infthread.c (thread_object_getset): Likewise.
15079 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
15080 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
15081 * python/py-objfile.c (objfile_getset): Likewise.
15082 * python/py-progspace.c (pspace_getset): Likewise.
15083 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
15085 * python/py-record.c (recpy_record_getset): Likewise.
15086 * python/py-symbol.c (symbol_object_getset): Likewise.
15087 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
15089 * python/py-type.c (type_object_getset, field_object_getset):
15091 * python/py-value.c (value_object_getset): Likewise.
15093 2017-04-05 Pedro Alves <palves@redhat.com>
15095 * python/python-internal.h (gdb_PyObject_CallMethod)
15096 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
15098 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
15099 (PySys_GetObject, PySys_SetPath): New macros.
15101 2017-04-05 Pedro Alves <palves@redhat.com>
15103 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
15104 info_osdata_command.
15105 * osdata.c (info_osdata_command): Rename to ...
15106 (info_osdata): ... this. Constify 'type' parameter, and remove
15107 the 'from_tty' parameter. Accept NULL TYPE.
15108 (info_osdata_command): New function.
15109 * osdata.h (info_osdata_command): Remove declaration.
15110 (info_osdata): New declaration.
15112 2017-04-05 Pedro Alves <palves@redhat.com>
15114 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
15115 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
15116 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
15118 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
15119 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
15120 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
15122 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
15123 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
15124 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
15125 (mi_cmd_file_list_exec_source_files)
15126 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
15127 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
15128 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
15130 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
15131 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
15132 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
15133 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
15134 (mi_cmd_stack_info_frame): Constify 'command' parameter.
15135 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
15136 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
15137 'command' parameter.
15138 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
15139 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
15140 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
15141 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
15142 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
15143 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
15144 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
15145 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
15146 (mi_cmd_var_set_update_range): Constify 'command' parameter.
15147 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
15148 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
15150 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
15151 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
15152 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
15153 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
15154 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
15155 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
15156 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
15157 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
15158 (mi_cmd_data_list_changed_registers)
15159 (mi_cmd_data_write_register_values)
15160 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
15161 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
15162 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
15163 (mi_cmd_list_features, mi_cmd_list_target_features)
15164 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
15165 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
15166 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
15167 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
15168 (mi_cmd_trace_frame_collected): Constify 'command'
15170 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
15171 'command' parameter.
15173 2017-04-05 Pedro Alves <palves@redhat.com>
15175 * ada-lang.c (ada_completer_word_break_characters): Now a const
15177 (ada_get_gdb_completer_word_break_characters): Constify.
15178 * completer.c (gdb_completer_command_word_break_characters)
15179 (gdb_completer_file_name_break_characters)
15180 (gdb_completer_quote_characters): Now const arrays.
15181 (get_gdb_completer_quote_characters): Constify.
15182 (set_rl_completer_word_break_characters): New function.
15183 (set_gdb_completion_word_break_characters)
15184 (complete_line_internal): Use it.
15185 * completer.h (get_gdb_completer_quote_characters): Constify.
15186 (set_rl_completer_word_break_characters): Declare.
15187 * f-lang.c (f_word_break_characters): Constify.
15188 * language.c (default_word_break_characters): Constify.
15189 * language.h (language_defn::la_word_break_characters): Constify.
15190 (default_word_break_characters): Constify.
15191 * top.c (init_main): Use set_rl_completer_word_break_characters.
15193 2017-04-05 Pedro Alves <palves@redhat.com>
15195 * aix-thread.c (aix_thread_pid_to_str)
15196 (aix_thread_extra_thread_info): Constify.
15197 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
15198 * bsd-uthread.c (bsd_uthread_extra_thread_info)
15199 (bsd_uthread_pid_to_str): Constify.
15200 * corelow.c (core_pid_to_str): Constify.
15201 * darwin-nat.c (darwin_pid_to_str): Constify.
15202 * fbsd-nat.c (fbsd_pid_to_str): Constify.
15203 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
15205 * gnu-nat.c (gnu_pid_to_str): Constify.
15206 * go32-nat.c (go32_pid_to_str): Constify.
15207 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
15208 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
15209 * inferior.c (inferior_pid_to_str): Constify.
15210 * linux-nat.c (linux_nat_pid_to_str): Constify.
15211 * linux-tdep.c (linux_core_pid_to_str): Constify.
15212 * linux-thread-db.c (thread_db_pid_to_str)
15213 (thread_db_extra_thread_info): Constify.
15214 * nto-tdep.c (nto_extra_thread_info): Constify.
15215 * nto-tdep.h (nto_extra_thread_info): Constify.
15216 * obsd-nat.c (obsd_pid_to_str): Constify.
15217 * procfs.c (procfs_pid_to_str): Constify.
15218 * ravenscar-thread.c (ravenscar_extra_thread_info)
15219 (ravenscar_pid_to_str): Constify.
15220 * remote-sim.c (gdbsim_pid_to_str): Constify.
15221 * remote.c (remote_threads_extra_info, remote_pid_to_str):
15223 * sol-thread.c (solaris_pid_to_str): Constify.
15224 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
15225 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
15226 * target.c (default_pid_to_str, target_pid_to_str)
15227 (normal_pid_to_str, default_pid_to_str): Constify.
15228 * target.h (target_ops::to_pid_to_str)
15229 (target_ops::to_extra_thread_info): Constify.
15230 (target_pid_to_str, normal_pid_to_str): Constify.
15231 * windows-nat.c (windows_pid_to_str): Constify.
15232 * gdbarch.sh (core_pid_to_str): Constify.
15233 * target-delegates.c: Regenerate.
15234 * gdbarch.h, gdbarch.c: Regenerate.
15236 2017-04-05 Pedro Alves <palves@redhat.com>
15238 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
15239 the memory of the temporary warning_pre_print override.
15240 * utils.c (warning_pre_print): Constify.
15241 * utils.h (warning_pre_print): Constify.
15243 2017-04-05 Pedro Alves <palves@redhat.com>
15245 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
15246 (shell_command): New function.
15247 (make_command): Use std::string.
15248 (init_cli_cmds): Register shell_command instead of shell_escape.
15250 2017-04-05 Pedro Alves <palves@redhat.com>
15252 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
15253 * tracepoint.c (default_collect): Don't initialize.
15255 2017-04-05 Pedro Alves <palves@redhat.com>
15257 * macroexp.c (macro_buffer::shared): Now a bool.
15258 (init_buffer): Update.
15259 (init_shared_buffer): Constify 'addr' parameter.
15260 (substitute_args, expand, macro_expand, macro_expand_next): Remove
15263 2017-04-05 Pedro Alves <palves@redhat.com>
15265 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
15266 * disasm.c (set_disassembler_options): Constify local.
15267 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
15269 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
15272 * tracefile.c (tsave_command): Fix argument parsing for '-r'
15275 2017-04-05 Yao Qi <yao.qi@linaro.org>
15277 * frame.c (frame_unwind_register_unsigned): Call
15278 frame_unwind_register_value.
15280 2017-04-05 Yao Qi <yao.qi@linaro.org>
15282 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
15283 Use gdb_test_multiple, and don't match anchor.
15285 2017-04-05 Pedro Alves <palves@redhat.com>
15287 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
15288 (Write After Approval): Remove Simon Marchi.
15290 2017-04-05 Pedro Alves <palves@redhat.com>
15292 * common/gdb_optional.h (optional::optional): Make constexpr and
15293 initialize m_dummy.
15295 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15297 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15298 (amd64fbsd_jmp_buf_reg_offset): Remove.
15299 (amd64fbsd_supply_uthread): Remove function.
15300 (amd64fbsd_collect_uthread): Remove function.
15301 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
15302 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
15303 (x86_64-*-freebsd*): Remove bsd-uthread.o.
15304 (fbsd-nat.c): Update comment.
15305 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15306 (i386fbsd_jmp_buf_reg_offset): Remove.
15307 (i386fbsd_supply_uthread): Remove function.
15308 (i386fbsd_collect_uthread): Remove function.
15309 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
15311 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15313 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
15314 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
15315 * NEWS: Mention that support for FreeBSD/alpha was removed.
15316 * alpha-fbsd-tdep.c: Delete file.
15317 * config/alpha/fbsd.mh: Delete file.
15318 * configure.host: Delete alpha*-*-freebsd* and
15319 alpha*-*-kfreebsd*-gnu.
15320 * configure.tgt: Delete alpha*-*-freebsd* and
15321 alpha*-*-kfreebsd*-gnu.
15323 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15325 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
15326 amd64bsd_store_inferior_registers): Use ptid from regcache.
15328 2017-04-04 Pedro Alves <palves@redhat.com>
15330 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
15331 data fields, make them private and add "m_" prefixes.
15332 (lnp_state_machine::lnp_state_machine): New ctor.
15333 (record_line, check_line_address, handle_set_discriminator)
15334 (handle_set_address, handle_advance_pc, handle_special_opcode)
15335 (handle_advance_line, handle_set_file, handle_negate_stmt)
15336 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
15337 (end_sequence, advance_line): New methods.
15338 (m_gdbarch, m_record_lines_p): New fields.
15339 (lnp_reader_state): Delete.
15340 (dwarf_record_line): Rename to ...
15341 (lnp_state_machine::record_line): ... adjust.
15342 (init_lnp_state_machine): Delete.
15343 (lnp_state_machine::lnp_state_machine): New.
15344 (check_line_address): Rename to ...
15345 (lnp_state_machine::check_line_address): This.
15346 (dwarf_decode_lines_1): Remove reference to "reader_state".
15347 Adjust lnp_state_machine having a non-default ctor. Use bool.
15348 State machine internal state manipulation moved to
15349 lnp_state_machine methods.
15351 2017-04-04 Pedro Alves <palves@redhat.com>
15353 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15354 unittests/offset-type-selftests.c.
15355 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
15356 * common/offset-type.h: New file.
15357 * common/preprocessor.h: New file.
15358 * common/traits.h: New file.
15359 * common/valid-expr.h: New file.
15360 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
15361 sect_offset and cu_offset strong typedefs throughout.
15362 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
15363 typedefs throughout.
15364 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
15365 sect_offset and cu_offset strong typedefs throughout.
15366 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
15367 typedefs throughout.
15368 * gdbtypes.h: Include "common/offset-type.h".
15369 (cu_offset): Now an offset type (strong typedef) instead of a
15371 (sect_offset): Likewise.
15372 (union call_site_parameter_u): Rename "param_offset" field to
15374 * unittests/offset-type-selftests.c: New file.
15376 2017-04-04 Pedro Alves <palves@redhat.com>
15378 * common/underlying.h: New file.
15379 * dwarf2read.c: Include "common/gdb_optional.h" and
15380 "common/underlying.h".
15381 (dir_index, file_name_index): New types.
15382 (file_entry): Use them.
15383 (file_entry::include): Use to_underlying.
15384 (line_header::add_file_name): Use dir_index.
15385 (read_formatted_entries): Use gdb::optional. Read form before
15386 writting to file_entry.
15387 (dwarf_decode_line_header): Use dir_index.
15388 (lnp_state_machine::current_file): Use to_underlying.
15389 (lnp_state_machine::file): Change type to file_name_index.
15390 (dwarf_record_line): Use to_underlying.
15391 (init_lnp_state_machine): Use file_name_index.
15392 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15394 2017-04-04 Pedro Alves <palves@redhat.com>
15396 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15397 operator bool, has_value and get methods.
15399 2017-04-04 Pedro Alves <palves@redhat.com>
15401 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15403 (line_header): Initialize all data fields. Change type of
15404 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15405 Change type of include_dirs to std::vector<const char *>. Remove
15406 num_include_dirs, include_dirs_size. Change type of file_names to
15407 std::vector<file_entry>. Remove num_file_names, file_names_size.
15408 (line_header::line_header): New.
15409 (line_header::add_include_dir, line_header::add_file_name): New
15411 (line_header::include_dir_at): Remove NULL check.
15412 (line_header::file_name_at): Add const overload.
15413 (line_header_up): New unique_ptr typedef.
15414 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15415 std::vector. Remove free_line_header call.
15416 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15417 free_line_header call.
15418 (free_cu_line_header): Delete.
15419 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15420 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15421 Adjust to use std::vector.
15422 (free_line_header): Delete.
15423 (free_line_header_voidp): Use delete.
15424 (add_include_dir): Replace with ...
15425 (line_header::add_include_dir): ... this method. Use std::vector.
15426 (add_file_name): Replace with ...
15427 (line_header::add_file_name): ... this method. Use std::vector.
15428 (add_include_dir_stub): Delete.
15429 (read_formatted_entries): Remove memset.
15430 (dwarf_decode_line_header): Return a line_header_up instead of a
15431 raw pointer. Remove cleanup handling. Pass lambdas to
15432 read_formatted_entries. Adjust to use line_header methods.
15433 (dwarf_decode_lines_1): Adjust to use line_header methods.
15434 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15437 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15439 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15440 instead of struct ptid.
15442 2017-05-04 Alan Hayward <alan.hayward@arm.com>
15444 * frame.c (get_frame_register_bytes): Unwind using value.
15445 (put_frame_register_bytes): Likewise.
15447 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15449 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15452 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15454 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15456 2017-03-29 Yao Qi <yao.qi@linaro.org>
15458 * gdbthread.h (struct thread_info): Declare constructor and
15459 destructor. Add some in-class member initializers.
15460 * thread.c (free_thread): Remove.
15461 (init_thread_list): Call delete instead of free_thread.
15462 (new_thread): Call thread_info constructor.
15463 (thread_info::thread_info): New function.
15464 (thread_info::~thread_info): New function.
15465 (delete_thread_1): Call delete instead of free_thread.
15466 (make_cleanup_restore_current_thread): Move tp and frame to
15469 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15471 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15472 (arc_skip_prologue): Likewise.
15473 (arc_make_frame_cache): Likewise.
15474 (arc_pv_get_operand): New function.
15475 (arc_is_in_prologue): Likewise.
15476 (arc_analyze_prologue): Likewise.
15477 (arc_print_frame_cache): Likewise.
15478 (MAX_PROLOGUE_LENGTH): New constant.
15480 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15482 * configure.tgt: Add arc-insn.o.
15483 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15484 (dump_arc_instruction_command): New function.
15485 (arc_fprintf_disasm): Likewise.
15486 (arc_disassemble_info): Likewise.
15487 (arc_insn_get_operand_value): Likewise.
15488 (arc_insn_get_operand_value_signed): Likewise.
15489 (arc_insn_get_memory_base_reg): Likewise.
15490 (arc_insn_get_memory_offset): Likewise.
15491 (arc_insn_get_branch_target): Likewise.
15492 (arc_insn_dump): Likewise.
15493 (arc_insn_get_linear_next_pc): Likewise.
15494 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15495 (arc_disassemble_info): Likewise.
15496 (arc_insn_get_branch_target): Likewise.
15497 (arc_insn_get_linear_next_pc): Likewise.
15498 * NEWS: Mention new "maint print arc arc-instruction".
15500 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15502 * arc-tdep (maintenance_print_arc_list): New variable.
15503 (maintenance_print_arc_command): New function.
15505 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15507 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15508 Add "limm" and "reserved".
15509 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15510 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15511 * arc-tdep.h (arc_regnum): Likewise.
15513 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15515 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15516 for THREADPTR register.
15517 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15519 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15520 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15521 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15523 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15525 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15526 registers above gdbarch_num_regs (gdbarch) as privileged in
15529 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15531 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15532 for a single specified register or for all registers in
15533 a0_base..a0_base + C0_NREGS range.
15534 (supply_gregset_reg): Call regcache_raw_supply for a single
15535 specified register or for all registers in a0_base..a0_base +
15538 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15540 * arch/xtensa.h (C0_NREGS): Add definition.
15541 * xtensa-tdep.c (C0_NREGS): Remove definition.
15543 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15545 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15546 Drop xtensa_default_isa initialization.
15547 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15549 2017-03-27 Pedro Alves <palves@redhat.com>
15551 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15552 (file_entry::include_dir): New method.
15553 (line_header::include_dir_at, line_header::file_name_at): New
15555 (setup_type_unit_groups, setup_type_unit_groups)
15556 (psymtab_include_file_name): Simplify using the new methods.
15557 (lnp_state_machine) <the_line_header>: New field.
15558 <file>: Add comment.
15559 (lnp_state_machine::current_file): New method.
15560 (dwarf_record_line): Simplify using the new methods.
15561 (init_lnp_state_machine): Initialize the "the_line_header" field.
15562 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15563 Simplify using the new methods.
15565 2017-03-27 Pedro Alves <palves@redhat.com>
15567 * cp-name-parser.y (make_empty): Delete.
15568 (demangler_special, nested_name, ptr_operator, array_indicator)
15569 (direct_declarator, declarator_1): Use fill_comp instead of
15572 2017-03-27 Pedro Alves <palves@redhat.com>
15574 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15575 to ATTRIBUTE_PRINTF.
15576 * solib-target.c (library_list_start_list): Print "string" not
15578 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15579 gdb_xml_error call.
15581 2017-03-27 Pedro Alves <palves@redhat.com>
15583 * dwarf2read.c (struct file_and_directory): New.
15584 (dwarf2_get_dwz_file): Adjust to use std::string.
15585 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15586 (find_file_and_directory): Adjust to return a file_and_directory
15588 (read_file_scope): Adjust to use file_and_directory. Remove
15589 make_cleanup/do_cleanups calls.
15590 (open_and_init_dwp_file): Adjust to use std::string. Remove
15591 make_cleanup/do_cleanups calls.
15592 * python/python.c (do_start_initialization): Adjust to ldirname
15593 returning a std::string.
15594 * utils.c (ldirname): Now returns a std::string.
15595 * utils.h (ldirname): Change return type to std::string.
15596 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15597 returning a std::string.
15598 * xml-tdesc.c (file_read_description_xml): Likewise.
15600 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15602 * regcache.c (regcache_debug_print_register): New function.
15603 * regcache.h (regcache_debug_print_register): New declaration.
15604 * target.c (debug_print_register): Remove.
15605 (target_fetch_registers): Call regcache_debug_print_register.
15606 (target_store_registers): Likewise.
15608 2017-03-24 Pádraig Brady <pbrady@fb.com>
15610 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15611 reference beyond the 'lh->include_dirs' array before accessing to
15613 (psymtab_include_file_name): Likewise.
15614 (dwarf_decode_lines_1): Likewise.
15615 (dwarf_decode_lines): Likewise.
15616 (file_file_name): Likewise.
15618 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15620 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15622 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15623 ps_lsetfpregs): Likewise.
15624 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15625 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15626 ps_lsetfpregs): Likewise.
15627 * target.c (target_fetch_registers, target_store_registers):
15630 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15632 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15634 2017-03-23 Yao Qi <yao.qi@linaro.org>
15636 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15637 (_initialize_aarch64_tdep): Register it.
15638 (aarch64_record_load_store): Handle PRFM instruction.
15639 (aarch64_process_record_test): New function.
15641 2017-03-23 Yao Qi <yao.qi@linaro.org>
15643 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15646 2017-03-23 Yao Qi <yao.qi@linaro.org>
15648 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15650 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15652 python/python.c (do_start_initialization): Fix memory leak.
15654 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15656 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15657 using get_ptrace_pid.
15658 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15660 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15661 inferior_ptid instead of pid.
15663 2017-03-22 Yao Qi <yao.qi@linaro.org>
15665 * aarch64-tdep.c: Wrap locally used classes in anonymous
15667 * arm-tdep.c: Likewise.
15668 * linespec.c: Likewise.
15669 * ui-out.c: Likewise.
15671 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15674 * python/lib/gdb/printer/bound_registers.py: Import sys.
15676 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15678 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15679 windows_thread_info parameter and use it instead of
15681 (windows_fetch_inferior_registers): Don't set current_thread,
15682 pass the thread to do_windows_fetch_inferior_registers. Use
15683 ptid from regcache instead of inferior_ptid.
15684 (do_windows_store_inferior_registers): Add windows_thread_info
15685 parameter and use it instead of current_thread.
15686 (windows_store_inferior_registers): Don't set current_thread,
15687 pass the thread to do_windows_store_inferior_registers. Use
15688 ptid from regcache instead of inferior_ptid.
15690 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15692 * ser-mingw.c (ser_windows_raw): Remove reference to
15693 struct serial::current_timeout.
15695 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15698 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15699 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15700 (sparc64_fsr_type): Fix %fsr decoding.
15702 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15704 * python/py-record-btrace.c (btpy_insn_data): Change return type
15707 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15709 * spu-linux-nat.c (spu_fetch_inferior_registers,
15710 spu_store_inferior_registers): Use ptid from regcache, set and
15711 restore inferior_ptid.
15712 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15715 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15717 * i386-linux-nat.c (fetch_register, store_register,
15718 i386_linux_fetch_inferior_registers,
15719 i386_linux_store_inferior_registers): Use ptid from regcache.
15720 * ia64-linux-nat.c (ia64_linux_fetch_register,
15721 ia64_linux_store_register): Likewise.
15722 * inf-ptrace.c (inf_ptrace_fetch_register,
15723 inf_ptrace_store_register): Likewise.
15724 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15725 m32r_linux_store_inferior_registers): Likewise.
15726 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15727 m68kbsd_store_inferior_registers): Likewise.
15728 * m68k-linux-nat.c (fetch_register, store_register,
15729 m68k_linux_fetch_inferior_registers,
15730 m68k_linux_store_inferior_registers): Likewise.
15731 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15732 m88kbsd_store_inferior_registers): Likewise.
15733 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15734 mips_fbsd_store_inferior_registers): Likewise.
15735 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15736 mips64_linux_regsets_store_registers): Likewise.
15737 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15738 mipsnbsd_store_inferior_registers): Likewise.
15739 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15740 mips64obsd_store_inferior_registers): Likewise.
15741 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15743 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15744 ppcfbsd_store_inferior_registers): Likewise.
15745 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15746 ppc_linux_store_inferior_registers): Likewise.
15747 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15748 ppcnbsd_store_inferior_registers): Likewise.
15749 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15750 ppcobsd_store_registers): Likewise.
15751 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15753 * ravenscar-thread.c (ravenscar_fetch_registers,
15754 ravenscar_store_registers, ravenscar_prepare_to_store):
15756 * record-btrace.c (record_btrace_fetch_registers,
15757 record_btrace_store_registers, record_btrace_prepare_to_store):
15759 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15760 Lookup inferior using ptid from regcache, instead of
15762 * remote.c (remote_fetch_registers, remote_store_registers): Use
15763 ptid from regcache.
15764 * rs6000-nat.c (fetch_register, store_register): Likewise.
15765 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15766 s390_linux_store_inferior_registers): Likewise.
15767 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15768 shnbsd_store_inferior_registers): Likewise.
15769 * sol-thread.c (sol_thread_fetch_registers,
15770 sol_thread_store_registers): Likewise.
15771 * sparc-nat.c (sparc_fetch_inferior_registers,
15772 sparc_store_inferior_registers): Likewise.
15773 * tilegx-linux-nat.c (fetch_inferior_registers,
15774 store_inferior_registers): Likewise.
15775 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15776 vaxbsd_store_inferior_registers): Likewise.
15777 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15778 store_xtregs): Likewise.
15780 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15783 * NEWS: Mention support for rvalue references in GDB and python.
15784 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15785 supports both lvalue and rvalue references.
15787 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15790 * gdbtypes.c (rank_one_type): Implement overloading
15791 resolution rules regarding rvalue references.
15793 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15796 * aarch64-tdep.c (aarch64_type_align)
15797 (aarch64_extract_return_value, aarch64_store_return_value): Change
15798 lvalue reference type checks to general reference type checks.
15799 * amd64-tdep.c (amd64_classify): Likewise.
15800 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15802 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15803 (arm_store_return_value): Likewise.
15804 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15805 * c-typeprint.c (c_print_type): Likewise.
15806 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15807 (cplus_number_of_children, cplus_describe_child): Likewise.
15808 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15809 * completer.c (expression_completer): Likewise.
15810 * cp-support.c (make_symbol_overload_list_adl_namespace):
15812 * darwin-nat-info.c (info_mach_region_command): Likewise.
15813 * dwarf2loc.c (entry_data_value_coerce_ref)
15814 (value_of_dwarf_reg_entry): Likewise.
15815 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15816 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15818 * findvar.c (extract_typed_address, store_typed_address):
15820 * gdbtypes.c (rank_one_type): Likewise.
15821 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15822 * infcall.c (value_arg_coerce): Likewise.
15823 * language.c (pointer_type): Likewise.
15824 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15826 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15827 * mn10300-tdep.c (mn10300_type_align): Likewise.
15828 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15829 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15830 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15832 * printcmd.c (print_formatted, x_command): Likewise.
15833 * python/py-type.c (typy_get_composite, typy_template_argument):
15835 * python/py-value.c (valpy_referenced_value)
15836 (valpy_get_dynamic_type, value_has_field): Likewise.
15837 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15838 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15839 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15840 * spu-tdep.c (spu_scalar_value_p): Likewise.
15841 * symtab.c (lookup_symbol_aux): Likewise.
15842 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15843 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15845 * valops.c (value_cast_pointers, value_cast)
15846 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15847 (value_struct_elt, value_struct_elt_bitpos)
15848 (value_find_oload_method_list, find_overload_match)
15849 (value_rtti_indirect_type): Likewise.
15850 * valprint.c (val_print_scalar_type_p, generic_val_print):
15852 * value.c (value_actual_type, value_as_address, unpack_long)
15853 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15854 (coerce_ref): Likewise.
15855 * varobj.c (varobj_get_value_type): Likewise.
15857 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15860 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15861 table of constants.
15862 * python/lib/gdb/command/explore.py: Support exploring values
15863 of rvalue reference types.
15864 * python/lib/gdb/types.py: Implement get_basic_type() for
15865 rvalue reference types.
15866 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15868 * python/py-value.c (valpy_getitem): Add an rvalue reference
15870 (valpy_reference_value): Add new parameter "refcode".
15871 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15872 New wrappers for valpy_reference_value().
15873 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15874 (gdbpy_invoke_xmethod): Likewise.
15876 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15879 * dwarf2read.c (process_die, read_type_die_1): Handle the
15880 DW_TAG_rvalue_reference_type DIE.
15881 (read_tag_reference_type): Add new parameter "refcode".
15883 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15886 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15887 (c_type_print_modifier, c_type_print_varspec_suffix)
15888 (c_type_print_base): Support printing rvalue reference types.
15889 * c-valprint.c (c_val_print, c_value_print): Support printing
15890 rvalue reference values.
15892 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15895 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15897 * cp-support.c (replace_typedefs): Handle
15898 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15899 * python/py-type.c (typy_lookup_type): Likewise.
15901 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15904 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15905 * parse.c (insert_type): Change assert statement.
15906 (follow_types): Handle rvalue reference types.
15907 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15910 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15913 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15914 value_ref() interface.
15915 * c-valprint.c (c_value_print): Likewise.
15916 * infcall.c (value_arg_coerce): Likewise.
15917 * python/py-value.c (valpy_reference_value): Likewise.
15918 * valops.c (value_cast, value_reinterpret_cast)
15919 (value_dynamic_cast, typecmp): Likewise.
15920 (value_ref): Parameterize by kind of return value reference type.
15921 * value.h (value_ref): Add new parameter "refcode".
15923 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15926 * dwarf2read.c (read_tag_reference_type): Use
15927 lookup_lvalue_reference_type() instead of lookup_reference_type().
15928 * eval.c (evaluate_subexp_standard): Likewise.
15929 * f-exp.y: Likewise.
15930 * gdbtypes.c (make_reference_type, lookup_reference_type):
15931 Generalize with rvalue reference types.
15932 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15933 convenience wrappers for lookup_reference_type().
15934 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15935 reference kind parameter.
15936 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15937 wrappers for lookup_reference_type().
15938 * guile/scm-type.c (gdbscm_type_reference): Use
15939 lookup_lvalue_reference_type() instead of lookup_reference_type().
15940 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15941 * parse.c (follow_types): Likewise.
15942 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15943 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15945 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15946 (gdbpy_invoke_xmethod): Likewise.
15947 * stabsread.c: Provide extra argument to make_reference_type()
15949 * valops.c (value_ref, value_rtti_indirect_type): Use
15950 lookup_lvalue_reference_type() instead of lookup_reference_type().
15952 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15955 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15956 (TYPE_IS_REFERENCE): New macro.
15957 (struct type): Add rvalue_reference_type field.
15958 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15960 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15962 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15963 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15964 New function definition.
15965 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15966 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15967 New function declaration.
15968 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15969 * mi/mi-interp.h: New file.
15970 * solib.c (info_sharedlibrary_command): Replace for loop with
15972 * solib.h (update_solib_list): New function declaration.
15973 (so_list_head): Move macro.
15974 * solist.h (ALL_SO_LIBS): New macro.
15976 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15978 * infcmd.c (post_create_inferior): Remove unused argument in
15980 * remote.c (remote_start_remote): Likewise.
15981 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15982 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15983 (enable_break): Likewise.
15984 * solib.c (update_solib_list): Remove unused target argument
15985 and its documentation.
15986 (solib_add): Remove unused target argument. Remove unused
15987 argument in call to update_solib_list.
15988 (info_sharedlibrary_command): Remove unused argument in call
15989 to update_solib_list.
15990 (sharedlibrary_command): Remove unused argument in call to
15992 (handle_solib_event): Likewise.
15993 (reload_shared_libraries): Likewise.
15994 * solib.h (solib_add): Remove unused target argument.
15996 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15998 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15999 (s390_displaced_step_fixup): Cover relative branches with the
16000 default fixup handling. This fixes lack of support for some
16001 relative branch instructions.
16003 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16005 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
16006 ptid from regcache.
16008 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16010 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
16011 i386_darwin_store_inferior_registers): Use ptid from regcache.
16013 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16015 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
16016 i386bsd_store_inferior_registers): Use ptid from regcache.
16018 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16020 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
16021 hppaobsd_store_registers): Use ptid from regcache.
16023 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16025 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
16026 hppanbsd_store_registers): Use ptid from regcache.
16028 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16030 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
16031 from regcache. Use get_ptrace_pid.
16033 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16035 * corelow.c (get_core_register_section): Use ptid from regcache,
16038 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16040 * bsd-uthread.c (bsd_uthread_fetch_registers,
16041 bsd_uthread_store_registers): Use ptid from regcache, set and
16042 restore inferior_ptid.
16044 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16046 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
16047 fetch_fp_regs, store_register, store_regs, store_fp_register,
16048 store_fp_regs): Use ptid from regcache.
16050 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
16052 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
16053 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
16054 store_vfp_regs): Use ptid from regcache.
16056 2017-03-17 Pedro Alves <palves@redhat.com>
16059 * ser-base.c (ser_base_wait_for): Add comment.
16060 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
16062 * ser-unix.c (hardwire_raw): Remove reference to
16063 scb->current_timeout.
16064 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
16065 (hardwire_ops): Install ser_base_readchar instead of
16067 * serial.h (struct serial) <current_timeout, timeout_remaining>:
16070 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
16073 * python/lib/gdb/printer/bound_registers.py: Add support for
16076 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
16078 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
16079 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
16080 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
16081 byte_offset to subobj_byte_offset. Fix the handling of
16082 DWARF_VALUE_STACK on big-endian targets when coming via an
16084 (dwarf2_evaluate_loc_desc): Adjust call to
16085 dwarf2_evaluate_loc_desc_full.
16086 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
16087 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
16089 2017-03-16 Yao Qi <yao.qi@linaro.org>
16091 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
16092 and REVSH instructions.
16094 2017-03-16 Yao Qi <yao.qi@linaro.org>
16096 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
16097 (arm_record_test): Declare.
16098 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
16099 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
16100 align with the manual.
16101 (thumb_record_misc): Adjust the code order to align with the
16103 (thumb2_record_decode_insn_handler): Fix instruction matching.
16104 (instruction_reader_thumb): New class.
16105 (arm_record_test): New function.
16107 2017-03-16 Yao Qi <yao.qi@linaro.org>
16109 * arm-tdep.c (abstract_memory_reader): New class.
16110 (instruction_reader): New class.
16111 (extract_arm_insn): Add argument 'reader'. Callers updated.
16112 (decode_insn): Likewise.
16114 2017-03-16 Doug Evans <dje@google.com>
16116 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
16117 member. Change type of TYPE member to SCM. All uses updated.
16118 (lsscm_make_lazy_string_smob): Add assert.
16119 (lsscm_make_lazy_string): Flag bad length values.
16120 (lsscm_elt_type): New function.
16121 (gdbscm_lazy_string_to_value): Rewrite to use
16122 lsscm_safe_lazy_string_to_value.
16123 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
16124 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
16125 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
16127 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
16128 * guile/scm-type.c (tyscm_scm_to_type): New function.
16130 2017-03-15 Doug Evans <dje@google.com>
16132 PR python/17728, python/18439, python/18779
16133 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
16134 member. Change type of TYPE member to PyObject *. All uses updated.
16135 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
16136 (gdbpy_create_lazy_string_object): Flag bad length values.
16137 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
16138 Handle typedefs in incoming type.
16139 (stpy_lazy_string_elt_type): New function.
16140 (gdbpy_extract_lazy_string): Call it.
16141 * python/py-value.c (valpy_lazy_string): Flag bad length values.
16142 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
16143 typedefs in incoming type.
16145 2017-03-16 Doug Evans <dje@google.com>
16147 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
16148 * guile/scm-type.c (tyscm_scm_to_type): New function.
16150 2017-03-16 Jiong Wang <jiong.wang@arm.com>
16152 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
16153 "ULONGEST" for "skip".
16155 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16158 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
16159 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
16160 (inf_ptrace_peek_poke): ...here. New function. Now also loop
16161 over ptrace peek/poke until end of buffer or error.
16163 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
16165 * parse.c (length_of_subexp): Make static.
16166 * parser-defs.h (length_of_subexp): Remove.
16168 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16170 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
16173 2017-03-14 Pedro Alves <palves@redhat.com>
16175 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
16176 (main): Use std::unique_ptr. Remove calls to
16177 cp_demangled_name_parse_free.
16179 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16181 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
16182 alphabsd_store_inferior_registers): Use regcache->ptid instead
16185 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16187 * aix-thread.c (aix_thread_fetch_registers,
16188 aix_thread_store_registers): Use regcache->ptid instead of
16191 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16193 * aarch64-linux-nat.c (fetch_gregs_from_thread,
16194 store_gregs_to_thread, fetch_fpregs_from_thread,
16195 store_fpregs_to_thread): Use regcache->ptid instead of
16198 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16200 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
16201 amd64_linux_fetch_inferior_registers): Use regcache->ptid
16202 instead of inferior_ptid.
16204 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16206 * target.c (target_fetch_registers, target_store_registers): Add
16209 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16211 * regcache.h (regcache_get_ptid): New function.
16212 * regcache.c (regcache_get_ptid): New function.
16214 2017-03-13 Mark Wielaard <mark@klomp.org>
16216 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
16218 2017-03-10 Keith Seitz <keiths@redhat.com>
16221 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
16223 2017-03-08 Pedro Alves <palves@redhat.com>
16226 * infrun.c (start_step_over, do_target_resume, resume)
16227 (restart_threads): Assert we're not resuming a thread that is
16228 meant to be stopped.
16229 (infrun_thread_stop_requested_callback): Delete.
16230 (infrun_thread_stop_requested): If the thread is internally
16231 stopped, queue a pending stop event and clear the thread's
16232 inline-frame state.
16233 (handle_stop_requested): New function.
16234 (handle_syscall_event, handle_inferior_event_1): Use
16235 handle_stop_requested.
16236 (handle_stop_requested): New function.
16237 (handle_signal_stop): Set the thread's stop_signal here instead of
16239 (finish_step_over): Clear step over info unconditionally.
16240 (handle_signal_stop): If the user had interrupted the event
16241 thread, consider the stop a random signal.
16242 (handle_signal_stop) <signal arrived while stepping over
16243 breakpoint>: Don't restart threads here.
16244 (stop_waiting): Don't clear step-over info here.
16246 2017-03-08 Pedro Alves <palves@redhat.com>
16249 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
16250 goes to argument 2, not 1.
16252 2017-03-08 Pedro Alves <palves@redhat.com>
16255 * top.c (gdb_readline_wrapper): Avoid passing NULL to
16256 display_gdb_prompt.
16257 (command_line_input): Add comment.
16259 2017-03-08 Pedro Alves <palves@redhat.com>
16262 * tui/tui-file.c (tui_file::write): New.
16263 * tui/tui-file.h (tui_file): Override "write".
16264 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
16265 factored out from ...
16266 (tui_puts): ... here.
16267 (tui_putc): Use them.
16268 (tui_write): New function.
16269 * tui/tui-io.h (tui_write): Declare.
16271 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
16273 * Makefile.in (SFILES): Replace "environ.c" with
16274 "common/environ.c".
16275 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
16276 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
16278 * common/environ.c: ... here.
16279 * environ.h: Moved to...
16280 * common/environ.h: ... here.
16282 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16284 * gdbarch.sh (pstring_ptr): New static function.
16285 (gdbarch_disassembler_options): Use it.
16286 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
16287 not valid_disassembler_option->name.
16288 * gdbarch.c: Regenerate.
16290 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16292 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
16294 2017-03-07 Pedro Alves <palves@redhat.com>
16296 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
16298 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
16300 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
16301 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
16302 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
16303 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
16305 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
16307 * xtensa-linux-nat.c (fetch_gregs): Remove const.
16309 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
16311 * remote.c (remote_add_target_side_commands): Use range-based
16314 2017-03-03 Yao Qi <yao.qi@linaro.org>
16317 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
16319 * valprint.c (common_val_print): Likewise.
16321 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
16323 * NEWS: Mention new set/show disassembler-options commands.
16324 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
16325 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
16326 (prospective_options): New static variable.
16327 (gdb_disassembler::gdb_disassembler): Initialize
16328 m_di.disassembler_options.
16329 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
16330 (get_disassembler_options): New function.
16331 (set_disassembler_options): Likewise.
16332 (set_disassembler_options_sfunc): Likewise.
16333 (show_disassembler_options_sfunc): Likewise.
16334 (disassembler_options_completer): Likewise.
16335 (_initialize_disasm): Likewise.
16336 * disasm.h (get_disassembler_options): New prototype.
16337 (set_disassembler_options): Likewise.
16338 * gdbarch.sh (gdbarch_disassembler_options): New variable.
16339 (gdbarch_verify_disassembler_options): Likewise.
16340 * gdbarch.c: Regenerate.
16341 * gdbarch.h: Likewise.
16342 * arm-tdep.c (num_disassembly_options): Delete.
16343 (set_disassembly_style): Likewise.
16344 (arm_disassembler_options): New static variable.
16345 (set_disassembly_style_sfunc): Convert short style name into long
16346 option name. Call set_disassembler_options.
16347 (show_disassembly_style_sfunc): New function.
16348 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
16349 set_gdbarch_verify_disassembler_options.
16350 (_initialize_arm_tdep): Delete regnames variable and update callers.
16351 (arm_disassembler_options): Initialize.
16352 (disasm_options): New variable.
16353 (num_disassembly_options): Rename from this...
16354 (num_disassembly_styles): ...to this. Compute by scanning through
16356 (valid_disassembly_styles): Initialize using disasm_options.
16357 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
16358 set_arm_regname_option.
16359 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
16360 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
16361 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
16362 set_gdbarch_verify_disassembler_options.
16363 * s390-tdep.c (s390_disassembler_options): New static variable.
16364 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
16365 set_gdbarch_verify_disassembler_options.
16367 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16369 * remote.c (remote_add_target_side_condition): Remove "struct"
16370 keyword from range-based for loop.
16372 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16374 * remote.c (remote_add_target_side_condition): Use range-based
16375 for loop. Update comment.
16377 2017-02-27 Yao Qi <yao.qi@linaro.org>
16379 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16381 2017-02-26 Alan Hayward <alan.hayward@arm.com>
16383 * regcache.c (regcache_raw_update): New function.
16384 (regcache_raw_read): Move code to regcache_raw_update.
16385 * regcache.h (regcache_raw_update): New declaration.
16386 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16388 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16390 * dwarf2read.c (create_debug_type_hash_table): Initialize
16391 header.signature and header.type_offset_in_tu.
16393 2017-02-24 Pedro Alves <palves@redhat.com>
16395 * symtab.c (make_file_symbol_completion_list_1): Use
16396 add_symtab_completions.
16398 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16400 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16402 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16404 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16405 I386_MAX_REGISTER_SIZE.
16406 (i386_pseudo_register_write): Likewise.
16407 (i386_process_record): Likewise.
16408 * i387-tdep.c (i387_supply_xsave): Likewise.
16409 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16410 (store_register): Likewise.
16412 2017-02-23 Pedro Alves <palves@redhat.com>
16414 * ada-lang.c: Include "common/function-view.h".
16415 (ada_iterate_over_symbols): Adjust to use function_view as
16417 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16418 (ada_make_symbol_completion_list): Use a lambda.
16419 (ada_exc_search_name_matches): Delete.
16420 (name_matches_regex): New.
16421 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16422 * compile/compile-c-support.c: Include "common/function-view.h".
16423 (print_one_macro): Change prototype to accept a ui_file pointer.
16424 (write_macro_definitions): Use a lambda.
16425 * dwarf2read.c: Include "common/function-view.h".
16426 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16427 (dw2_expand_symtabs_matching): Adjust to use function_view as
16429 * language.h: Include "common/function-view.h".
16430 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16431 function_view as callback type.
16432 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16433 * linespec.c: Include "common/function-view.h".
16434 (collect_info::add_symbol): New method.
16435 (struct symbol_and_data_callback, iterate_inline_only, struct
16436 symbol_matcher_data, iterate_name_matcher): Delete.
16437 (iterate_over_all_matching_symtabs): Adjust to use function_view
16438 as callback type and lambdas.
16439 (iterate_over_file_blocks): Adjust to use function_view as
16441 (decode_compound_collector): Now a class with private fields.
16442 (decode_compound_collector::release_symbols): New method.
16443 (collect_one_symbol): Rename to...
16444 (decode_compound_collector::operator()): ... this and adjust.
16445 (lookup_prefix_sym): decode_compound_collector construction bits
16446 move to decode_compound_collector ctor. Pass the
16447 decode_compound_collector object directly as callback. Remove
16448 cleanups and use decode_compound_collector::release_symbols
16450 (symtab_collector): Now a class with private fields.
16451 (symtab_collector::release_symtabs): New method.
16452 (add_symtabs_to_list): Rename to...
16453 (symtab_collector::operator()): ... this and adjust.
16454 (collect_symtabs_from_filename): symtab_collector construction
16455 bits move to symtab_collector ctor. Pass the symtab_collector
16456 object directly as callback. Remove cleanups and use
16457 symtab_collector::release_symtabs instead.
16458 (collect_symbols): Delete.
16459 (add_matching_symbols_to_info): Use lambdas.
16460 * macrocmd.c (print_macro_callback): Delete.
16461 (info_macro_command): Use a lambda.
16462 (info_macros_command): Pass print_macro_definition as callable
16464 (print_one_macro): Remove 'ignore' parameter.
16465 (macro_list_command): Adjust.
16466 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16467 (macro_for_each_data::user_data): Delete field.
16468 (foreach_macro): Adjust to call the function_view.
16469 (macro_for_each): Adjust to use function_view as callback type.
16470 (foreach_macro_in_scope): Adjust to call the function_view.
16471 (macro_for_each_in_scope): Adjust to use function_view as callback
16473 * macrotab.h: Include "common/function-view.h".
16474 (macro_callback_fn): Declare a prototype instead of a pointer.
16475 Remove "user_data" parameter.
16476 (macro_for_each, macro_for_each_in_scope): Adjust to use
16477 function_view as callback type.
16478 * psymtab.c (partial_map_expand_apply)
16479 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16480 Adjust to use function_view as callback type and to return bool.
16481 (psym_expand_symtabs_matching): Adjust to use function_view as
16483 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16484 to use function_view as callback type and to return bool.
16485 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16487 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16489 * symfile.h: Include "common/function-view.h".
16490 (expand_symtabs_file_matcher_ftype)
16491 (expand_symtabs_symbol_matcher_ftype)
16492 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16494 (quick_symbol_functions::map_symtabs_matching_filename)
16495 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16496 function_view as callback type and return bool.
16497 (expand_symtabs_matching): Adjust to use function_view as callback
16499 (maintenance_expand_name_matcher)
16500 (maintenance_expand_file_matcher): Delete.
16501 (maintenance_expand_symtabs): Use lambdas.
16502 * symtab.c (iterate_over_some_symtabs): Adjust to use
16503 function_view as callback types and return bool.
16504 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16506 (lookup_symtab_callback): Delete.
16507 (lookup_symtab): Use a lambda.
16508 (iterate_over_symbols): Adjust to use function_view as callback
16510 (struct search_symbols_data, search_symbols_file_matches)
16511 (search_symbols_name_matches): Delete.
16512 (search_symbols): Use a pair of lambdas.
16513 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16514 (symtab_expansion_callback): Delete.
16515 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16516 * symtab.h: Include "common/function-view.h".
16517 (iterate_over_some_symtabs): Adjust to use function_view as
16518 callback type and return bool.
16519 (iterate_over_symtabs): Adjust to use function_view as callback
16521 (symbol_found_callback_ftype): Remove 'data' parameter and return
16523 (iterate_over_symbols): Adjust to use function_view as callback
16526 2017-02-23 Pedro Alves <palves@redhat.com>
16528 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16529 (%.o) <unittests/%.c>: New pattern.
16530 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16531 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16532 * common/function-view.h: New file.
16533 * unittests/function-view-selftests.c: New file.
16534 * configure: Regenerate.
16536 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16538 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16540 * go32-nat.c (go32_thread_alive): Likewise.
16542 2017-02-23 Yao Qi <yao.qi@linaro.org>
16544 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16547 2017-02-23 Yao Qi <yao.qi@linaro.org>
16549 * varobj.c (varobj_clear_saved_item): Use delete instead of
16551 (update_dynamic_varobj_children): Likewise.
16553 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16555 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16557 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16559 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16560 m_enum_value to 0 in default constructor.
16562 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16564 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16565 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16566 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16567 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16568 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16569 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16570 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16571 IS_STORE_CONDITIONAL_INSN.
16573 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16575 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16577 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16579 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16581 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16583 * dwarf2read.c (skip_one_die, read_attribute_value)
16584 (dwarf2_const_value_attr, dump_die_shallow)
16585 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16586 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16588 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16590 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16591 (dwarf_parse_macro_header): Accept DWARF version 5.
16592 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16594 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16596 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16598 * common/common-exceptions.h (enum errors): Likewise.
16599 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16600 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16601 (dwarf_expr_context::execute_stack_op): Likewise.
16602 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16604 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16605 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16606 (show_entry_values_debug, call_site_to_target_addr)
16607 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16608 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16609 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16610 (value_of_dwarf_block_entry, indirect_pieced_value)
16611 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16612 (disassemble_dwarf_expression): Likewise.
16613 * dwarf2read.c (process_die, inherit_abstract_dies)
16614 (read_call_site_scope): Likewise.
16615 * gdbtypes.h (struct func_type, struct call_site_parameter)
16616 (struct call_site): Likewise.
16617 * stack.c (read_frame_arg): Likewise.
16618 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16620 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16622 * defs.h (read_unsigned_leb128): New declaration.
16623 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16624 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16625 (dwarf2_find_location_expression): Call also
16626 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16627 * dwarf2loc.h (dwarf2_version): New declaration.
16628 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16630 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16632 (struct dwop_section_names): Add loclists_dwo.
16633 (dwop_section_names): Add .debug_loclists.dwo.
16634 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16635 (struct dwarf2_per_cu_data): Add dwarf_version.
16636 (struct dwo_sections): Add loclists.
16637 (struct attr_abbrev): Add implicit_const.
16638 (read_indirect_line_string): New declaration.
16639 (read_unsigned_leb128): Delete declaration.
16640 (rcuh_kind): New definition.
16641 (read_and_check_comp_unit_head): Change parameter
16642 is_debug_types_section to section_kind.
16643 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16644 (read_comp_unit_head): Change parameter abfd to section, add parameter
16645 section_kind. Handle DWARF-5.
16646 (error_check_comp_unit_head): Accept also DWARF version 5.
16647 (read_and_check_comp_unit_head): Change parameter
16648 is_debug_types_section to section_kind.
16649 (read_and_check_type_unit_head): Delete function.
16650 (read_abbrev_offset): Handle DWARF-5.
16651 (create_debug_type_hash_table): Add parameter section_kind. Process
16652 only DW_UT_type. Use signature and type_offset_in_tu from struct
16654 (create_debug_types_hash_table): Update create_debug_type_hash_table
16656 (create_all_type_units): Call create_debug_type_hash_table.
16657 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16658 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16660 (skip_one_die): Handle DW_FORM_implicit_const.
16661 (dwarf2_rnglists_process): New function.
16662 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16663 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16664 (read_attribute_value): Handle DW_FORM_implicit_const,
16666 (read_attribute): Handle DW_FORM_implicit_const.
16667 (read_indirect_string_at_offset_from): New function from
16668 read_indirect_string_at_offset.
16669 (read_indirect_string_at_offset): Call
16670 read_indirect_string_at_offset_from.
16671 (read_indirect_line_string_at_offset): New function.
16672 (read_indirect_string): New function comment.
16673 (read_indirect_line_string): New function.
16674 (read_unsigned_leb128): Make it global.
16675 (dwarf2_string_attr): Handle DWARF-5.
16676 (add_include_dir_stub, read_formatted_entries): New functions.
16677 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16679 (per_cu_header_read_in): Update read_comp_unit_head caller.
16680 (dwarf2_version): New function.
16681 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16683 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16686 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16688 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16690 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16692 * dwarf2read.c (dwarf2_ranges_process): New function from
16693 dwarf2_ranges_read.
16694 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16695 dwarf2_ranges_process.
16697 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16699 * dwarf2read.c (create_debug_type_hash_table): New function from
16700 create_debug_types_hash_table.
16701 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16702 (create_all_type_units, open_and_init_dwo_file): Update
16703 create_debug_types_hash_table callers.
16705 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16708 * fork-child.c (trace_start_error): Fix thinko. va_end should
16709 refer to 'ap', not 'args'.
16711 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16712 Pedro Alves <palves@redhat.com>
16715 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16717 * fork-child.c (trace_start_error): New function.
16718 (trace_start_error_with_name): Likewise.
16719 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16720 * inf-ptrace.c (inf_ptrace_me): Likewise.
16721 * inferior.h (trace_start_error): New prototype.
16722 (trace_start_error_with_name): Likewise.
16724 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16727 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16728 NULL before using it.
16729 * symmisc.c (maintenance_print_symbols): Likewise.
16730 (maintenance_print_msymbols): Likewise.
16732 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16734 * NEWS: Add record Python bindings entry.
16736 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16738 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16740 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16741 * python/py-record-btrace.c, python/py-record-btrace.h,
16742 python/py-record-full.c, python/py-record-full.h: New file.
16743 * python/py-record.c: Add include for py-record-btrace.h and
16745 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16746 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16747 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16748 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16750 (gdbpy_initialize_btrace): New export.
16751 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16753 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16755 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16756 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16757 * python/py-record.c: New file.
16758 * python/python-internal.h (gdbpy_start_recording,
16759 gdbpy_current_recording, gdpy_stop_recording,
16760 gdbpy_initialize_record): New export.
16761 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16762 (python_GdbMethods): Add gdbpy_start_recording,
16763 gdbpy_current_recording and gdbpy_stop_recording.
16765 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16767 * record-btrace.c (record_btrace_record_method): New function.
16768 (init_record_btrace_ops): Initialize to_record_method.
16769 * record-full.c (record_full_record_method): New function.
16770 (init_record_full_ops, init_record_full_core_ops): Add
16771 record_full_record_method.
16772 * record.h (enum record_method): New enum.
16773 * target-debug.h (target_debug_print_enum_record_method: New define.
16774 * target-delegates.c: Regenerate.
16775 * target.c (target_record_method): New function.
16776 * target.h: Include record.h.
16777 (struct target_ops) <to_record_method>: New field.
16778 (target_record_method): New export.
16780 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16782 * record.h (record_start, record_stop): New export.
16783 * record.c (record_start, record_stop): New function.
16785 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16787 * btrace.c (btrace_fetch): Copy function call segments pointer
16789 (btrace_clear): Clear the vector.
16790 (btrace_find_insn_by_number): Use binary search to find the correct
16791 function call segment.
16792 * btrace.h (brace_fun_p): New typedef.
16793 (struct btrace_thread_info) <functions>: New field.
16795 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16797 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16798 * btrace.c (btrace_decode_error): ... here. New function.
16799 * btrace.h (btrace_decode_error): New export.
16801 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16803 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16804 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16805 btrace_find_insn_by_number): Remove special case for gaps.
16806 * btrace.h (btrace_insn_get_error): New export.
16807 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16808 * record-btrace.c (btrace_insn_history): Print number for gaps.
16809 (record_btrace_info, record_btrace_goto): Handle gaps.
16811 2017-02-14 Tom Tromey <tom@tromey.com>
16814 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16816 * python/py-evts.c (gdbpy_initialize_py_events): Add
16817 before_prompt registry.
16818 * python/py-events.h (events_object) <before_prompt>: New field.
16820 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16822 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16824 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16826 * symfile (_initialize_symfile): Add usage text to the load command's
16829 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16831 * utils.c (defaulted_query): Don't query on secondary UIs.
16833 2017-02-10 Tom Tromey <tom@tromey.com>
16835 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16837 2017-02-10 Tom Tromey <tom@tromey.com>
16839 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16841 * python/py-type.c (typy_legacy_template_argument): Remove
16842 unnecessary "cleanup" local.
16844 2017-02-10 Tom Tromey <tom@tromey.com>
16846 * python/python.c (do_start_initialization): New function, from
16847 _initialize_python.
16848 (_initialize_python): Call do_start_initialization.
16849 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16852 2017-02-10 Tom Tromey <tom@tromey.com>
16854 * python/py-prettyprint.c (pretty_print_one_value): Use
16857 2017-02-10 Tom Tromey <tom@tromey.com>
16859 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16860 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16862 * python/py-type.c (field_new): Use gdbpy_ref.
16863 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16865 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16866 (py_free_pspace): Likewise.
16867 (pspace_to_pspace_object): Likewise.
16868 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16869 (py_free_objfile): Likewise.
16870 (objfile_to_objfile_object): Likewise.
16871 * python/py-inferior.c (delete_thread_object): Use
16873 (infpy_read_memory): Likewise.
16874 (py_free_inferior): Likewise.
16875 * python/py-evtregistry.c (create_eventregistry_object): Use
16877 * python/py-event.c (create_event_object): Use gdbpy_ref.
16879 2017-02-10 Tom Tromey <tom@tromey.com>
16881 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16882 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16884 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16885 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16886 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16887 python/py-framefilter.c, python/py-function.c,
16888 python/py-inferior.c, python/py-infevents.c,
16889 python/py-linetable.c, python/py-newobjfileevent.c,
16890 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16891 python/py-signalevent.c, python/py-stopevent.c,
16892 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16893 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16894 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16895 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16897 2017-02-10 Tom Tromey <tom@tromey.com>
16899 * ui-out.h (ui_out_emit_type): New class.
16900 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16901 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16902 and ui_out_emit_tuple.
16903 (enumerate_locals): Likewise.
16904 (py_mi_print_variables, py_print_locals, py_print_args): Use
16906 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16908 * common/gdb_optional.h: New file.
16910 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16912 * MAINTAINERS (Write After Approval): Update my e-mail address.
16914 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16917 * breakpoint.c (_initialize_breakpoint): Update the help description
16918 of the 'commands' command to indicate that it takes a list argument.
16920 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16922 * interps.c (current_interp_set_logging): Remove "return".
16924 2017-02-09 Gary Benson <gbenson@redhat.com>
16926 * symtab.c (add_symtab_completions): Prevent NULL pointer
16929 2017-02-08 Pedro Alves <palves@redhat.com>
16931 * interps.c (interp::interp): Remove reference to quiet_p.
16932 (interp_set): Make static. Remove dead "Switching to" output
16934 (interp_quiet_p, interp_set_quiet): Delete.
16935 (interpreter_exec_cmd): Don't set the interpreter quiet.
16936 * interps.h (interp_quiet_p): Make static.
16937 (class interp) <quiet_p>: Remove field
16939 2017-02-08 Jerome Guitton <guitton@adacore.com>
16941 * cli/cli-decode.c (find_command_name_length): Make it extern.
16942 * cli/cli-decode.h (find_command_name_length): Declare.
16943 * cli/cli-script.c (command_name_equals, line_first_arg):
16945 (process_next_line): Use cli-decode to parse command names.
16946 (build_command_line): Make args a constant pointer.
16948 2017-02-08 Jerome Guitton <guitton@adacore.com>
16950 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16951 Remove case-insensitive search.
16953 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16955 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16956 at the end of the line. Avoids an ARI warning.
16958 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16960 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16961 rdseed instructions.
16962 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16964 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16967 Provide and use sparc32 and sparc64 target description XML files.
16968 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16969 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16970 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16971 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16972 * features/sparc/sparc32-solaris.xml: New file.
16973 * features/sparc/sparc64-solaris.xml: New file.
16974 * features/sparc/sparc32-solaris.c: Generated.
16975 * features/sparc/sparc64-solaris.c: Generated.
16976 * sparc-tdep.h: Account for differences in target descriptions.
16977 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16978 (sparc32_register_type): Use target provided registers.
16979 (validate_tdesc_registers): New function.
16980 (sparc32_gdbarch_init): Use tdesc_has_registers.
16981 Set pseudoregister functions.
16982 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16983 (sparc64_register_type): Use target provided registers.
16984 (sparc64_init_abi): Set pseudoregister functions.
16986 2017-02-03 Tom Tromey <tom@tromey.com>
16989 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16990 with a single member.
16992 2017-02-03 Pedro Alves <palves@redhat.com>
16994 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16995 (cli_interp_base::~cli_interp_base): New.
16996 (cli_interp): New struct.
16997 (as_cli_interp): Cast the interp itself to cli_interp.
16998 (cli_interpreter_pre_command_loop): Rename to ...
16999 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
17001 (cli_interpreter_init): Rename to ...
17002 (cli_interp::init): ... this. Remove 'self' parameter. Use
17003 boolean. Make extern.
17004 (cli_interpreter_resume): Rename to ...
17005 (cli_interp::resume): ... this. Remove 'data' parameter. Make
17007 (cli_interpreter_suspend): Rename to ...
17008 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
17010 (cli_interpreter_exec): Rename to ...
17011 (cli_interp::exec): ... this. Remove 'data' parameter. Make
17013 (cli_interpreter_supports_command_editing): Rename to ...
17014 (cli_interp_base::supports_command_editing): ... this. Remove
17015 'interp' parameter. Make extern.
17016 (cli_ui_out): Rename to ...
17017 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
17019 (cli_set_logging): Rename to ...
17020 (cli_interp_base::set_logging): ... this. Remove 'interp'
17021 parameter. Make extern.
17022 (cli_interp_procs): Delete.
17023 (cli_interp_factory): Adjust to use "new".
17024 * cli/cli-interp.h: Include "interps.h".
17025 (struct cli_interp_base): New struct.
17026 * interps.c (struct interp): Delete. Fields moved to interps.h.
17027 (interp_new): Delete.
17028 (interp::interp, interp::~interp): New.
17029 (interp_set): Use bool, and return void. Assume the interpreter
17030 has suspend, init and resume methods, and that the all return
17032 (set_top_level_interpreter): interp_set returns void.
17033 (interp_ui_out): Adapt.
17034 (current_interp_set_logging): Adapt.
17035 (interp_data): Delete.
17036 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
17037 (interp_exec): Adapt.
17038 (top_level_interpreter_data): Delete.
17039 * interps.h (interp_init_ftype, interp_resume_ftype)
17040 (interp_suspend_ftype, interp_exec_ftype)
17041 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
17042 (class interp): New.
17043 (interp_new): Delete.
17044 (interp_set): Now returns void. Use bool.
17045 (interp_data, top_level_interpreter_data): Delete.
17046 * mi/mi-common.h: Include interps.h.
17047 (class mi_interp): Inherit from interp. Define a ctor. Declare
17048 init, resume, suspect, exec, interp_ui_out, set_logging and
17049 pre_command_loop methods.
17050 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
17051 (mi_interpreter_init): Rename to ...
17052 (mi_interp::init): ... this. Remove the 'interp' parameter, use
17053 bool, return void and make extern. Adjust.
17054 (mi_interpreter_resume): ... Rename to ...
17055 (mi_interp::resume): ... this. Remove the 'data' parameter,
17056 return void and make extern. Adjust.
17057 (mi_interpreter_suspend): ... Rename to ...
17058 (mi_interp::suspend): ... this. Remove the 'data' parameter,
17059 return void and make extern. Adjust.
17060 (mi_interpreter_exec): ... Rename to ...
17061 (mi_interp::exec): ... this. Remove the 'data' parameter and make
17063 (mi_interpreter_pre_command_loop): ... Rename to ...
17064 (mi_interp::pre_command_loop): ... this. Remove the 'self'
17065 parameter and make extern.
17066 (mi_on_normal_stop_1): Adjust.
17067 (mi_ui_out): Rename to ...
17068 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
17069 parameter and make extern. Adjust.
17070 (mi_set_logging): Rename to ...
17071 (mi_interp::set_logging): ... this. Remove the 'interp'
17072 parameter and make extern. Adjust.
17073 (mi_interp_procs): Delete.
17074 (mi_interp_factory): Adjust to use 'new'.
17075 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
17076 (mi_print_exception, mi_execute_command, mi_load_progress):
17078 * tui/tui-interp.c (tui_interp): New class.
17079 (as_tui_interp): Return a tui_interp pointer.
17080 (tui_on_normal_stop, tui_on_signal_received)
17081 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
17082 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
17083 to use interp::interp_ui_out.
17084 (tui_init): Rename to ...
17085 (tui_interp::init): ... this. Remove the 'self' parameter, use
17086 bool, return void and make extern. Adjust.
17087 (tui_resume): Rename to ...
17088 (tui_interp::resume): ... this. Remove the 'data' parameter,
17089 return void and make extern. Adjust.
17090 (tui_suspend): Rename to ...
17091 (tui_interp::suspend): ... this. Remove the 'data' parameter,
17092 return void and make extern. Adjust.
17093 (tui_ui_out): Rename to ...
17094 (tui_interp::interp_ui_out): ... this. Remove the 'self'
17095 parameter, and make extern. Adjust.
17096 (tui_exec): Rename to ...
17097 (tui_interp::exec): ... this. Remove the 'data' parameter and
17099 (tui_interp_procs): Delete.
17100 (tui_interp_factory): Use "new".
17102 2017-02-02 Tom Tromey <tom@tromey.com>
17104 * rust-exp.y (ends_raw_string, space_then_number)
17105 (rust_identifier_start_p): Return bool.
17106 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
17107 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
17108 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
17109 (rust_chartype_p): Return bool.
17110 (val_print_struct, rust_print_struct_def, rust_print_type):
17112 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
17115 2017-02-02 Tom Tromey <tom@tromey.com>
17117 * rust-lang.c: Reindent.
17119 2017-02-02 Tom Tromey <tom@tromey.com>
17121 * rust-lang.h (rust_crate_for_block): Update.
17122 * rust-lang.c (rust_crate_for_block): Return std::string.
17123 (rust_get_disr_info): Use std:;string, not
17124 gdb::unique_xmalloc_ptr.
17125 * rust-exp.y (crate_name): Update.
17127 2017-02-02 Pedro Alves <palves@redhat.com>
17129 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
17130 field out of gdb_disassembler_test and make it static.
17132 2017-02-02 Pedro Alves <palves@redhat.com>
17134 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
17135 mi1_interp and mi_interp fields.
17137 2017-02-02 Pedro Alves <palves@redhat.com>
17139 * cli/cli-interp.c (struct saved_output_files, saved_output):
17140 Moved from cli/cli-logging.c.
17141 (cli_set_logging): New function.
17142 (cli_interp_procs): Install cli_set_logging.
17143 * cli/cli-interp.h (make_logging_output, cli_set_logging):
17145 * cli/cli-logging.c (struct saved_output_files, saved_output):
17146 Moved to cli/cli-interp.c.
17147 (pop_output_files): Don't save outputs here.
17148 (make_logging_output): New function.
17149 (handle_redirections): Don't build tee nor save previous outputs
17151 * interps.c (current_interp_set_logging): Change prototype.
17152 Assume there's always a set_logging_proc method installed.
17153 * interps.h (interp_set_logging_ftype): Change prototype.
17154 (current_interp_set_logging): Change prototype and adjust comment.
17155 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
17156 use make_logging_output.
17157 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
17158 2017-02-02 Pedro Alves <palves@redhat.com>
17160 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
17162 (set_logging_overwrite): ... here.
17163 (logging_no_redirect_file): Delete.
17164 (set_logging_redirect): Don't handle redirection on the fly.
17165 Instead warn that "logging off" / "logging on" is necessary.
17166 (pop_output_files): Delete references to logging_no_redirect_file.
17167 (show_logging_command): Always speak in terms of what will happen
17168 once logging is reenabled.
17170 2017-02-02 Pedro Alves <palves@redhat.com>
17172 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
17174 2017-02-02 Pedro Alves <palves@redhat.com>
17176 * disasm.c (gdb_pretty_print_insn): Rename to ...
17177 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
17178 Remove gdbarch parameter. Adapt to clear the object's buffers
17179 instead of allocating new buffers, and to print using the object's
17180 gdb_disassembler instead of calling gdb_print_insn.
17181 (dump_insns): Use gdb_pretty_print_disassembler.
17182 * disasm.h (gdb_pretty_print_insn): Delete declaration.
17183 (gdb_pretty_print_disassembler): New class.
17184 * record-btrace.c (btrace_insn_history): Use
17185 gdb_pretty_print_disassembler.
17187 2017-02-02 Pedro Alves <palves@redhat.com>
17189 * ada-lang.c (type_as_string): Use string_file.
17190 * ada-valprint.c (ada_print_floating): Use string_file.
17191 * ada-varobj.c (ada_varobj_scalar_image)
17192 (ada_varobj_get_value_image): Use string_file.
17193 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
17194 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
17195 * breakpoint.c (update_inserted_breakpoint_locations)
17196 (insert_breakpoint_locations, reattach_breakpoints)
17197 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
17198 (print_it_watchpoint): Use string_file.
17199 (save_breakpoints): Use stdio_file.
17200 * c-exp.y (oper): Use string_file.
17201 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
17203 (pop_output_files): Use delete.
17204 (handle_redirections): Use stdio_file and tee_file.
17205 * cli/cli-setshow.c (do_show_command): Use string_file.
17206 * compile/compile-c-support.c (c_compute_program): Use
17208 * compile/compile-c-symbols.c (generate_vla_size): Take a
17209 'string_file &' instead of a 'ui_file *'.
17210 (generate_c_for_for_one_variable): Take a 'string_file &' instead
17211 of a 'ui_file *'. Use string_file.
17212 (generate_c_for_variable_locations): Take a 'string_file &'
17213 instead of a 'ui_file *'.
17214 * compile/compile-internal.h (generate_c_for_for_one_variable):
17215 Take a 'string_file &' instead of a 'ui_file *'.
17216 * compile/compile-loc2c.c (push, pushf, unary, binary)
17217 (print_label, pushf_register_address, pushf_register)
17218 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
17219 'ui_file *'. Adjust.
17220 * compile/compile.c (compile_to_object): Use string_file.
17221 * compile/compile.h (compile_dwarf_expr_to_c)
17222 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
17224 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
17225 (replace_typedefs_qualified_name): Use string_file and
17227 * disasm.c (gdb_pretty_print_insn): Use string_file.
17228 (gdb_disassembly): Adjust reference the null_stream global.
17229 (do_ui_file_delete): Delete.
17230 (gdb_insn_length): Use null_stream.
17231 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
17232 * dwarf2loc.c (dwarf2_compile_property_to_c)
17233 (locexpr_generate_c_location, loclist_generate_c_location): Take a
17234 'string_file &' instead of a 'ui_file *'.
17235 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
17236 * dwarf2read.c (do_ui_file_peek_last): Delete.
17237 (dwarf2_compute_name): Use string_file.
17238 * event-top.c (gdb_setup_readline): Use stdio_file.
17239 * gdbarch.sh (verify_gdbarch): Use string_file.
17240 * gdbtypes.c (safe_parse_type): Use null_stream.
17241 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
17243 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
17244 'string_file *' instead of a 'ui_file *'.
17245 (gdbscm_arch_disassemble): Use string_file.
17246 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
17247 * guile/scm-ports.c (class ioscm_file_port): Now a class that
17248 inherits from ui_file.
17249 (ioscm_file_port_delete, ioscm_file_port_rewind)
17250 (ioscm_file_port_put): Delete.
17251 (ioscm_file_port_write): Rename to ...
17252 (ioscm_file_port::write): ... this. Remove file_port_magic
17254 (ioscm_file_port_new): Delete.
17255 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
17257 * guile/scm-type.c (tyscm_type_name): Use string_file.
17258 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
17260 * infcmd.c (print_return_value_1): Use string_file.
17261 * infrun.c (print_target_wait_results): Use string_file.
17262 * language.c (add_language): Use string_file.
17263 * location.c (explicit_to_string_internal): Use string_file.
17264 * main.c (captured_main_1): Use null_file.
17265 * maint.c (maintenance_print_architecture): Use stdio_file.
17266 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
17267 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
17268 event_channel>: Change type to mi_console_file pointer.
17269 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
17270 (mi_console_file_delete): Delete.
17271 (struct mi_console_file): Delete.
17272 (mi_console_file_magic): Delete.
17273 (mi_console_file_new): Delete.
17274 (mi_console_file::mi_console_file): New.
17275 (mi_console_file_delete): Delete.
17276 (mi_console_file_fputs): Delete.
17277 (mi_console_file::write): New.
17278 (mi_console_raw_packet): Delete.
17279 (mi_console_file::flush): New.
17280 (mi_console_file_flush): Delete.
17281 (mi_console_set_raw): Rename to ...
17282 (mi_console_file::set_raw): ... this.
17283 * mi/mi-console.h (class mi_console_file): New class.
17284 (mi_console_file_new, mi_console_set_raw): Delete.
17285 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
17286 (mi_set_logging): Use delete and tee_file. Adjust.
17287 * mi/mi-main.c (output_register): Use string_file.
17288 (mi_cmd_data_evaluate_expression): Use string_file.
17289 (mi_cmd_data_read_memory): Use string_file.
17290 (mi_cmd_execute, print_variable_or_computed): Use string_file.
17291 * mi/mi-out.c (mi_ui_out::main_stream): New.
17292 (mi_ui_out::rewind): Use main_stream and
17294 (mi_ui_out::put): Use main_stream and string_file.
17295 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17296 Allocate a 'string_file' instead.
17297 (mi_out_new): Don't allocate a mem_fileopen stream here.
17298 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17299 (mi_ui_out::main_stream): Declare method.
17300 * printcmd.c (eval_command): Use string_file.
17301 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
17302 * python/py-arch.c (archpy_disassemble): Use string_file.
17303 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
17304 * python/py-frame.c (frapy_str): Use string_file.
17305 * python/py-framefilter.c (py_print_type, py_print_single_arg):
17307 * python/py-type.c (typy_str): Use string_file.
17308 * python/py-unwind.c (unwind_infopy_str): Use string_file.
17309 * python/py-value.c (valpy_str): Use string_file.
17310 * record-btrace.c (btrace_insn_history): Use string_file.
17311 * regcache.c (regcache_print): Use stdio_file.
17312 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
17313 * remote.c (escape_buffer): Use string_file.
17314 * rust-lang.c (rust_get_disr_info): Use string_file.
17315 * serial.c (serial_open_ops_1): Use stdio_file.
17316 (do_serial_close): Use delete.
17317 * stack.c (print_frame_arg): Use string_file.
17318 (print_frame_args): Remove local mem_fileopen stream, not used.
17319 (print_frame): Use string_file.
17320 * symmisc.c (maintenance_print_symbols): Use stdio_file.
17321 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
17322 Take a 'string_file *' instead of a 'ui_file *'.
17323 * top.c (new_ui): Use stdio_file and stderr_file.
17324 (free_ui): Use delete.
17325 (execute_command_to_string): Use string_file.
17326 (quit_confirm): Use string_file.
17327 * tracepoint.c (collection_list::append_exp): Use string_file.
17328 * tui/tui-disasm.c (tui_disassemble): Use string_file.
17329 * tui/tui-file.c: Don't include "ui-file.h".
17330 (enum streamtype, struct tui_stream): Delete.
17331 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
17332 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
17333 (tui_file::tui_file): New method.
17334 (tui_file_fputs): Delete.
17335 (tui_file_get_strbuf): Delete.
17336 (tui_file::puts): New method.
17337 (tui_file_adjust_strbuf): Delete.
17338 (tui_file_flush): Delete.
17339 (tui_file::flush): New method.
17340 * tui/tui-file.h: Tweak intro comment.
17342 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
17343 (tui_file_adjust_strbuf): Delete declarations.
17344 (class tui_file): New class.
17345 * tui/tui-io.c (tui_initialize_io): Use tui_file.
17346 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
17347 (tui_register_format): Use string_stream.
17348 * tui/tui-stack.c (tui_make_status_line): Use string_file.
17349 (tui_get_function_from_frame): Use string_file.
17350 * typeprint.c (type_to_string): Use string_file.
17351 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
17352 (null_stream): New global.
17353 (ui_file_delete): Delete.
17354 (ui_file::ui_file): New.
17355 (null_file_isatty): Delete.
17356 (ui_file::~ui_file): New.
17357 (null_file_rewind): Delete.
17358 (ui_file::printf): New.
17359 (null_file_put): Delete.
17360 (null_file_flush): Delete.
17361 (ui_file::putstr): New.
17362 (null_file_write): Delete.
17363 (ui_file::putstrn): New.
17364 (null_file_read): Delete.
17365 (ui_file::putc): New.
17366 (null_file_fputs): Delete.
17367 (null_file_write_async_safe): Delete.
17368 (ui_file::vprintf): New.
17369 (null_file_delete): Delete.
17370 (null_file::write): New.
17371 (null_file_fseek): Delete.
17372 (null_file::puts): New.
17373 (ui_file_data): Delete.
17374 (null_file::write_async_safe): New.
17375 (gdb_flush, ui_file_isatty): Adjust.
17376 (ui_file_put, ui_file_rewind): Delete.
17377 (ui_file_write): Adjust.
17378 (ui_file_write_for_put): Delete.
17379 (ui_file_write_async_safe, ui_file_read): Adjust.
17380 (ui_file_fseek): Delete.
17381 (fputs_unfiltered): Adjust.
17382 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17383 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17384 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17385 (set_ui_file_data): Delete.
17386 (string_file::~string_file, string_file::write)
17387 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17388 (do_ui_file_as_string, ui_file_as_string): Delete.
17389 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17390 (struct mem_file): Delete.
17391 (mem_file_new): Delete.
17392 (stdio_file::stdio_file): New.
17393 (mem_file_delete): Delete.
17394 (stdio_file::stdio_file): New.
17395 (mem_fileopen): Delete.
17396 (stdio_file::~stdio_file): New.
17397 (mem_file_rewind): Delete.
17398 (stdio_file::set_stream): New.
17399 (mem_file_put): Delete.
17400 (stdio_file::open): New.
17401 (mem_file_write): Delete.
17402 (stdio_file_magic, struct stdio_file): Delete.
17403 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17404 (stdio_file::flush): New.
17405 (stdio_file_read): Rename to ...
17406 (stdio_file::read): ... this. Adjust.
17407 (stdio_file_write): Rename to ...
17408 (stdio_file::write): ... this. Adjust.
17409 (stdio_file_write_async_safe): Rename to ...
17410 (stdio_file::write_async_safe) ... this. Adjust.
17411 (stdio_file_fputs): Rename to ...
17412 (stdio_file::puts) ... this. Adjust.
17413 (stdio_file_isatty): Delete.
17414 (stdio_file_fseek): Delete.
17415 (stdio_file::isatty): New.
17416 (stderr_file_write): Rename to ...
17417 (stderr_file::write) ... this. Adjust.
17418 (stderr_file_fputs): Rename to ...
17419 (stderr_file::puts) ... this. Adjust.
17420 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17421 (stderr_file::stderr_file): New.
17422 (tee_file_magic): Delete.
17423 (struct tee_file): Delete.
17424 (tee_file::tee_file): New.
17425 (tee_file_new): Delete.
17426 (tee_file::~tee_file): New.
17427 (tee_file_delete): Delete.
17428 (tee_file_flush): Rename to ...
17429 (tee_file::flush): ... this. Adjust.
17430 (tee_file_write): Rename to ...
17431 (tee_file::write): ... this. Adjust.
17432 (tee_file::write_async_safe): New.
17433 (tee_file_fputs): Rename to ...
17434 (tee_file::puts): ... this. Adjust.
17435 (tee_file_isatty): Rename to ...
17436 (tee_file::isatty): ... this. Adjust.
17437 * ui-file.h (struct obstack, struct ui_file): Don't
17439 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17440 (ui_file_write_ftype)
17441 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17442 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17443 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17444 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17445 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17446 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17447 (set_ui_file_fseek): Delete.
17448 (ui_file_data, ui_file_delete, ui_file_rewind)
17449 (struct ui_file): New.
17451 (class null_file): New.
17452 (null_stream): Declare.
17453 (ui_file_write_for_put, ui_file_put): Delete.
17454 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17456 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17457 (gdb_fopen, tee_file_new): Delete.
17458 (struct string_file): New.
17459 (struct stdio_file): New.
17460 (stdio_file_up): New.
17461 (struct stderr_file): New.
17462 (class tee_file): New.
17463 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17464 of a 'ui_file *'. Adjust.
17465 * ui-out.h (class ui_out) <field_stream>: Likewise.
17466 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17467 (null_stream): Delete.
17468 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17470 * utils.h (struct ui_file): Delete forward declaration..
17471 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17472 (error_stream): Take a 'string_file &' instead of a
17474 * varobj.c (varobj_value_get_print_value): Use string_file.
17475 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17476 * gdbarch.c: Regenerate.
17478 2017-02-02 Pedro Alves <palves@redhat.com>
17480 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17481 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17482 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17483 Adjust to call gdb_print_insn instead of
17484 gdb_disassembler::print_insn.
17485 (dump_insns, do_mixed_source_and_assembly_deprecated)
17486 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17487 'gdbarch' parameter. Remove gdb_disassembler parameter.
17488 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17489 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17491 (gdb_pretty_print_insn): Re-add declaration.
17492 * record-btrace.c (btrace_insn_history): Don't allocate a
17493 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17495 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17497 * disasm.h (gdb_disassembly): Remove file_string parameter.
17498 * disasm.c (gdb_disassembly): Likewise.
17499 * cli/cli-cmds.c (print_disassembly): Adapt.
17500 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17501 * stack.c (do_gdb_disassembly): Likewise.
17503 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17505 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17506 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17507 targets. And if the implicit value is longer than needed, extract
17508 the first bytes instead of the "least significant" ones.
17510 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17512 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17513 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17514 (btrace_fetch): Assert can_access_registers_ptid.
17515 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17516 validate_registers_access.
17518 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17520 * gdbthread.h (can_access_registers_ptid): New.
17521 * thread.c (can_access_registers_ptid): New.
17523 2017-02-01 Pedro Alves <palves@redhat.com>
17525 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17527 2017-01-31 Pedro Alves <palves@redhat.com>
17529 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17532 2017-01-31 Pedro Alves <palves@redhat.com>
17534 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17537 2017-01-31 Pedro Alves <palves@redhat.com>
17539 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17541 2017-01-31 Pedro Alves <palves@redhat.com>
17543 * common/scoped_restore.h
17544 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17545 change the value's parameter type to T2.
17546 (make_scoped_restore): Likewise.
17548 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17549 Richard Henderson <rth@redhat.com>
17551 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17552 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17553 GS_BASE for older kernels.
17554 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17555 GS_BASE for older kernels.
17556 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17557 and GS_BASE to the offset table.
17558 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17559 system register group.
17560 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17562 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17564 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17565 AMD64_GSBASE_REGNUM.
17566 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17567 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17568 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17569 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17570 i386/64bit-segments.xml in those rules.
17571 * features/i386/64bit-segments.xml: New file.
17572 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17573 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17574 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17575 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17576 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17577 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17578 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17579 * features/i386/amd64-avx-linux.c: Regenerated.
17580 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17581 * features/i386/amd64-avx-mpx.c: Regenerated.
17582 * features/i386/amd64-avx512-linux.c: Regenerated.
17583 * features/i386/amd64-linux.c: Regenerated.
17584 * features/i386/amd64-mpx-linux.c: Regenerated.
17585 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17586 * features/i386/i386-avx-mpx.c: Regenerated.
17587 * features/i386/x32-avx-linux.c: Regenerated.
17588 * features/i386/x32-avx512-linux.c: Regenerated.
17589 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17590 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17591 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17592 * regformats/i386/amd64-linux.dat: Regenerated.
17593 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17594 * regformats/i386/x32-avx-linux.dat: Regenerated.
17595 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17596 * regformats/i386/x32-linux.dat: Regenerated.
17598 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17600 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17601 Set to AMD64_NUM_REGS.
17603 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17605 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17606 that checks validity of a register number.
17608 2017-01-27 Kees Cook <keescook@google.com>
17610 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17611 fetch_fpregs if target has fpa registers.
17612 (arm_linux_store_inferior_registers): Call store_fpregs if target
17615 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17617 * cris-tdep.c (cris_gdbarch_init): Remove check for
17618 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17620 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17622 * corelow.c (get_core_register_section): Check for regset
17623 existence before checking for REGSET_VARIABLE_SIZE.
17625 2017-01-26 Yao Qi <yao.qi@linaro.org>
17626 Pedro Alves <palves@redhat.com>
17629 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17630 call memory_error, save memaddr instead.
17631 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17632 negative, cal memory_error.
17633 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17635 2017-01-26 Yao Qi <yao.qi@linaro.org>
17637 * disasm-selftests.c (memory_error_test): New function.
17638 (_initialize_disasm_selftests): Register memory_error_test.
17640 2017-01-26 Yao Qi <yao.qi@linaro.org>
17642 * Makefile.in (SFILES): Add disasm-selftests.c and
17644 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17645 * disasm-selftests.c: New file.
17646 * selftest-arch.c: New file.
17647 * selftest-arch.h: New file.
17649 2017-01-26 Yao Qi <yao.qi@linaro.org>
17651 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17652 to bfd_arch_mep. Don't return 0 if section is not
17653 found. Call print_insn_mep.
17655 2017-01-26 Pedro Alves <palves@redhat.com>
17656 Yao Qi <yao.qi@linaro.org>
17658 * arm-tdep.c: Include "disasm.h".
17659 (gdb_print_insn_arm): Update code to get gdbarch.
17660 * disasm.c (dis_asm_read_memory): Change it to
17661 gdb_disassembler::dis_asm_read_memory.
17662 (dis_asm_memory_error): Likewise.
17663 (dis_asm_print_address): Likewise.
17664 (gdb_pretty_print_insn): Change it to
17665 gdb_disassembler::pretty_print_insn.
17666 (dump_insns): Add one argument gdb_disassemlber. All
17668 (do_mixed_source_and_assembly_deprecated): Likewise.
17669 (do_mixed_source_and_assembly): Likewise.
17670 (do_assembly_only): Likewise.
17671 (gdb_disassembler::gdb_disassembler): New.
17672 (gdb_disassembler::print_insn): New.
17673 * disasm.h (class gdb_disassembler): New.
17674 (gdb_pretty_print_insn): Remove declaration.
17675 (gdb_disassemble_info): Likewise.
17676 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17677 (gdbscm_disasm_read_memory_worker): Update.
17678 (gdbscm_disasm_read_memory): Update.
17679 (gdbscm_disasm_memory_error): Remove.
17680 (gdbscm_disasm_print_address): Remove.
17681 (gdbscm_disassembler::gdbscm_disassembler): New.
17682 (gdbscm_print_insn_from_port): Update.
17683 * mips-tdep.c: Include disasm.h.
17684 (gdb_print_insn_mips): Update code to get gdbarch.
17685 * record-btrace.c (btrace_insn_history): Update.
17686 * spu-tdep.c: Include disasm.h.
17687 (struct spu_dis_asm_data): Remove.
17688 (struct spu_dis_asm_info): New.
17689 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17691 (gdb_print_insn_spu): Cast disassemble_info to
17694 2017-01-26 Yao Qi <yao.qi@linaro.org>
17696 * disasm.c (do_ui_file_delete): Delete.
17697 (gdb_insn_length): Move code creating stream to ...
17698 * utils.c (null_stream): ... here. New function.
17699 * utils.h (null_stream): Declare.
17701 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17703 * python/py-inferior.c (find_thread_object): Return directly
17704 from the loop. Remove "found" variable.
17706 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17708 GDB 7.12.1 released.
17710 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17712 * python/py-function.c (fnpy_call): Reorder declarations to have
17713 the gdbpy_enter object declared first.
17714 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17716 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17719 * python/python-internal.h (PyMem_RawMalloc): Define for
17721 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17722 PyMem_RawMalloc instead of PyMem_Malloc.
17724 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17725 Luis Machado <lgustavo@codesourcery.com>
17727 * NEWS (New commands): Mention flash-erase.
17728 (New MI commands): Mention target-flash-erase.
17729 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17731 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17732 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17733 * target.c (flash_erase_command): New function.
17734 (initialize_targets): Add new flash-erase command.
17735 * target.h (flash_erase_command): New declaration.
17737 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17739 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17740 HAVE_SYS_PROCFS_H is defined.
17742 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17744 * remote.c (struct cached_reg): Change data into a pointer.
17745 * (stop_reply_dtr): Free data pointers before deleting vector.
17746 (process_stop_reply): Likewise.
17747 (remote_parse_stop_reply): Allocate space for data
17749 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17751 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17753 (amd64_pseudo_register_read_value): Likewise.
17754 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17755 (store_register_using_P): Likewise.
17756 * regcache.c (regcache_xfer_part): Likewise.
17758 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17760 Split real and pseudo registers.
17761 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17762 (sparc32_pseudo_regnum): New enum.
17763 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17764 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17765 (SPARC32_CP0_REGISTERS): New macro.
17766 (sparc32_pseudo_register_name): New function.
17767 (sparc32_register_name): Use sparc32_pseudo_register_name.
17768 (sparc32_pseudo_register_type): New function.
17769 (sparc32_register_type): Use sparc32_pseudo_register_type.
17770 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17771 pseudo register numbers.
17772 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17773 (SPARC64_CP0_REGISTERS): New macro.
17774 (sparc64_pseudo_register_name): New function.
17775 (sparc64_register_name): Use sparc64_pseudo_register_name.
17776 (sparc64_pseudo_register_type): New function.
17777 (sparc64_register_type): Use sparc64_pseudo_register_type.
17778 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17779 pseudo register numbers.
17780 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17781 sparc64_store_arguments): Handle pseudo register numbers.
17783 2017-01-13 Yao Qi <yao.qi@linaro.org>
17785 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17786 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17788 (getpkt_or_notif_sane_1): Likewise.
17790 2017-01-13 Yao Qi <yao.qi@linaro.org>
17792 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17793 of CC. Pass "-x c++-header" instead of "-x c".
17795 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17797 * remote.c (remote_can_async_p): Update comment.
17799 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17801 * linux-nat.c (linux_nat_can_async_p): Update comment.
17803 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17805 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17807 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17809 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17811 2017-01-10 Tom Tromey <tom@tromey.com>
17813 * python/py-type.c (typy_legacy_template_argument): Update.
17814 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17815 ~demangle_parse_info): Declare new members.
17816 (cp_demangled_name_to_comp): Return unique_ptr.
17817 (cp_demangled_name_parse_free)
17818 (make_cleanup_cp_demangled_name_parse_free)
17819 (cp_new_demangle_parse_info): Remove.
17820 * cp-support.c (do_demangled_name_parse_free_cleanup)
17821 (make_cleanup_cp_demangled_name_parse_free): Remove.
17822 (inspect_type, cp_canonicalize_string_full)
17823 (cp_canonicalize_string): Update.
17824 (mangled_name_to_comp): Change return type.
17825 (cp_class_name_from_physname, method_name_from_physname)
17826 (cp_func_name, cp_remove_params): Update.
17827 * cp-name-parser.y (demangle_parse_info): New constructor, from
17828 cp_new_demangle_parse_info.
17829 (~demangle_parse_info): New destructor, from
17830 cp_demangled_name_parse_free.
17831 (cp_merge_demangle_parse_infos): Update.
17832 (cp_demangled_name_to_comp): Change return type.
17834 2017-01-10 Tom Tromey <tom@tromey.com>
17836 * top.c (prevent_dont_repeat): Change return type.
17837 * python/python.c (execute_gdb_command): Use std::string.
17839 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17840 * command.h (prevent_dont_repeat): Change return type.
17841 * breakpoint.c (bpstat_do_actions_1): Update.
17843 2017-01-10 Tom Tromey <tom@tromey.com>
17845 * value.h (scoped_value_mark::~scoped_value_mark): Call
17847 (scoped_value_mark::free_to_mark): New method.
17848 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17851 2017-01-10 Tom Tromey <tom@tromey.com>
17853 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17854 (valpy_reference_value, valpy_const_value, valpy_get_address)
17855 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17856 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17857 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17858 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17860 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17861 * value.h (scoped_value_mark): New class.
17863 2017-01-10 Tom Tromey <tom@tromey.com>
17865 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17866 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17867 * psymtab.c (discard_psymtabs_upto): Remove.
17868 (make_cleanup_discard_psymtabs): Remove.
17869 (struct psymtab_state): Remove.
17871 2017-01-10 Tom Tromey <tom@tromey.com>
17873 * record-full.c (record_full_save_cleanups): Remove.
17874 (record_full_save): Use gdb::unlinker.
17875 * gcore.c (do_bfd_delete_cleanup): Remove.
17876 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17878 * dwarf2read.c (unlink_if_set): Remove.
17879 (write_psymtabs_to_index): Use gdb::unlinker.
17880 * common/gdb_unlinker.h: New file.
17882 2017-01-10 Tom Tromey <tom@tromey.com>
17884 * windows-tdep.c (windows_xfer_shared_library): Update.
17885 * windows-nat.c (windows_make_so): Update.
17886 * utils.h (make_cleanup_bfd_unref): Remove.
17887 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17888 * symfile.h (symfile_bfd_open)
17889 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17890 * symfile.c (read_symbols, symbol_file_add)
17891 (separate_debug_file_exists): Update.
17892 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17893 (generic_load, reread_symbols): Update.
17894 * symfile-mem.c (symbol_file_add_from_memory): Update.
17895 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17896 (spu_symbol_file_add_from_memory): Update.
17897 * solist.h (struct target_so_ops) <bfd_open>: Return
17899 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17900 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17902 (solib_map_sections, reload_shared_libraries_1): Update.
17903 * solib-svr4.c (enable_break): Update.
17904 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17905 * solib-frv.c (enable_break2): Update.
17906 * solib-dsbt.c (enable_break): Update.
17907 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17909 (darwin_solib_get_all_image_info_addr_at_init): Update.
17910 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17911 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17912 * record-full.c (record_full_save): Update.
17913 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17914 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17915 * minidebug.c (find_separate_debug_file_in_section): Return
17917 * machoread.c (macho_add_oso_symfile): Change abfd to
17919 (macho_symfile_read_all_oso): Update.
17920 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17921 (macho_symfile_read): Update.
17922 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17923 (jit_bfd_try_read_symtab): Update.
17924 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17925 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17926 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17928 (gdb_bfd_ref_policy): New struct.
17929 (gdb_bfd_ref_ptr): New typedef.
17930 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17931 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17932 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17934 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17935 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17936 (gcore_command): Update.
17937 * exec.c (exec_file_attach): Update.
17938 * elfread.c (elf_symfile_read): Update.
17939 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17940 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17941 (open_and_init_dwo_file): Update.
17942 (open_dwp_file): Return gdb_bfd_ref_ptr.
17943 (open_and_init_dwp_file): Update.
17944 * corelow.c (core_open): Update.
17945 * compile/compile-object-load.c (compile_object_load): Update.
17946 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17947 * coffread.c (coff_symfile_read): Update.
17948 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17949 gdb_bfd_ref_ptr. Rename.
17950 (dump_bfd_file, restore_command): Update.
17951 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17952 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17953 (find_separate_debug_file_by_buildid): Update.
17955 2017-01-10 Tom Tromey <tom@tromey.com>
17957 * common/gdb_ref_ptr.h: New file.
17958 * python/py-ref.h (struct gdbpy_ref_policy): New.
17959 (gdbpy_ref): Now a typedef.
17961 2017-01-10 Tom Tromey <tom@tromey.com>
17963 * utils.h (make_cleanup_htab_delete): Don't declare.
17964 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17966 * linespec.c (decode_compound_collector): Add constructor,
17968 (lookup_prefix_sym): Remove cleanup.
17969 (symtab_collector): Add constructor, destructor.
17970 (collect_symtabs_from_filename): Remove cleanup.
17971 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17972 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17974 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17975 * dwarf2read.c (dw2_expand_symtabs_matching)
17976 (dw2_map_symbol_filenames, dwarf_decode_macros)
17977 (write_psymtabs_to_index): Use htab_up.
17978 * dwarf2loc.c (func_verify_no_selftailcall)
17979 (call_site_find_chain_1, func_verify_no_selftailcall)
17980 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17981 std::vector, gdb::unique_xmalloc_ptr.
17982 (call_sitep): Remove typedef.
17983 (dwarf2_locexpr_baton_eval): Remove unused variable.
17985 2017-01-10 Tom Tromey <tom@tromey.com>
17987 * python/python-internal.h (make_cleanup_py_decref)
17988 (make_cleanup_py_xdecref): Don't declare.
17989 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17990 (py_xdecref, make_cleanup_py_xdecref): Remove.
17992 2017-01-10 Tom Tromey <tom@tromey.com>
17994 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17995 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17997 2017-01-10 Tom Tromey <tom@tromey.com>
17999 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
18001 2017-01-10 Tom Tromey <tom@tromey.com>
18003 * python/py-utils.c (unicode_to_encoded_string)
18004 (python_string_to_target_string)
18005 (python_string_to_target_python_string)
18006 (python_string_to_host_string, gdbpy_obj_to_string)
18007 (get_addr_from_python): Use gdbpy_ref.
18009 2017-01-10 Tom Tromey <tom@tromey.com>
18011 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
18014 2017-01-10 Tom Tromey <tom@tromey.com>
18016 * python/python.c (eval_python_command, gdbpy_decode_line)
18017 (gdbpy_run_events, gdbpy_start_type_printers)
18018 (gdbpy_apply_type_printers): Use gdbpy_ref.
18020 2017-01-10 Tom Tromey <tom@tromey.com>
18022 * python/py-param.c (get_doc_string, compute_enum_values): Use
18025 2017-01-10 Tom Tromey <tom@tromey.com>
18027 * python/py-inferior.c (find_thread_object, build_inferior_list):
18030 2017-01-10 Tom Tromey <tom@tromey.com>
18032 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
18034 2017-01-10 Tom Tromey <tom@tromey.com>
18036 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
18039 2017-01-10 Tom Tromey <tom@tromey.com>
18041 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
18043 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
18046 2017-01-10 Tom Tromey <tom@tromey.com>
18048 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
18051 2017-01-10 Tom Tromey <tom@tromey.com>
18053 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
18054 decref results of PyArg_ParseTupleAndKeywords.
18056 2017-01-10 Tom Tromey <tom@tromey.com>
18058 * python/python.c (python_run_simple_file): Use
18059 unique_xmalloc_ptr, gdbpy_ref.
18061 2017-01-10 Tom Tromey <tom@tromey.com>
18063 * python/py-prettyprint.c (print_stack_unless_memory_error)
18064 (print_string_repr, print_children): Use gdbpy_ref.
18065 (dummy_python_frame): New class.
18066 (dummy_python_frame::dummy_python_frame): Rename from
18067 push_dummy_python_frame.
18068 (py_restore_tstate): Remove.
18070 2017-01-10 Tom Tromey <tom@tromey.com>
18072 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
18074 2017-01-10 Tom Tromey <tom@tromey.com>
18076 * python/python.c (ensure_python_env, restore_python_env):
18078 * python/python-internal.h (ensure_python_env): Don't declare.
18079 * varobj.h (varobj_ensure_python_env): Don't declare.
18080 * varobj.c (varobj_ensure_python_env): Remove.
18082 2017-01-10 Tom Tromey <tom@tromey.com>
18084 * varobj.c (varobj_value_get_print_value): Use
18085 gdbpy_enter_varobj.
18087 2017-01-10 Tom Tromey <tom@tromey.com>
18089 * python/py-prettyprint.c (print_string_repr, print_children):
18091 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
18093 * varobj.c (varobj_value_get_print_value): Update.
18094 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
18096 2017-01-10 Tom Tromey <tom@tromey.com>
18098 * varobj.c (varobj_get_display_hint)
18099 (dynamic_varobj_has_child_method, install_new_value_visualizer)
18100 (varobj_set_visualizer, free_variable): Use
18101 gdbpy_enter_varobj.
18103 2017-01-10 Tom Tromey <tom@tromey.com>
18105 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
18106 (do_finish_initialization): New function. Use gdbpy_ref.
18107 (gdbpy_finish_initialization): Use gdbpy_enter. Call
18108 do_finish_initialization.
18110 2017-01-10 Tom Tromey <tom@tromey.com>
18112 * python/py-param.c (get_set_value, get_show_value): Use
18113 gdbpy_enter, gdbpy_ref.
18115 2017-01-10 Tom Tromey <tom@tromey.com>
18117 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
18119 2017-01-10 Tom Tromey <tom@tromey.com>
18121 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
18123 2017-01-10 Tom Tromey <tom@tromey.com>
18125 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
18126 Use gdbpy_enter_varobj.
18128 2017-01-10 Tom Tromey <tom@tromey.com>
18130 * varobj.c (gdbpy_enter_varobj): New constructor.
18131 * python/python-internal.h (gdbpy_enter_varobj): New class.
18132 * python/py-varobj.c (py_varobj_get_iterator): Use
18133 gdbpy_enter_varobj.
18135 2017-01-10 Tom Tromey <tom@tromey.com>
18137 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
18138 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18139 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
18140 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
18141 unique_xmalloc_ptr.
18142 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
18144 2017-01-10 Tom Tromey <tom@tromey.com>
18146 * python/py-xmethods.c (invoke_match_method): Use
18149 2017-01-10 Tom Tromey <tom@tromey.com>
18151 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
18152 gdbpy_enter, gdbpy_ref.
18154 2017-01-10 Tom Tromey <tom@tromey.com>
18156 * python/python.c (python_interactive_command): Use gdbpy_enter.
18158 2017-01-10 Tom Tromey <tom@tromey.com>
18160 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
18163 2017-01-10 Tom Tromey <tom@tromey.com>
18165 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
18166 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18168 2017-01-10 Tom Tromey <tom@tromey.com>
18170 * utils.h (htab_deleter): New struct.
18171 (htab_up): New typedef.
18172 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
18173 gdbpy_enter, gdbpy_ref, htab_up.
18175 2017-01-10 Tom Tromey <tom@tromey.com>
18177 * python/py-unwind.c (pending_frame_invalidate): Remove.
18178 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
18180 2017-01-10 Tom Tromey <tom@tromey.com>
18182 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
18183 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
18185 2017-01-10 Tom Tromey <tom@tromey.com>
18187 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
18189 2017-01-10 Tom Tromey <tom@tromey.com>
18191 * python/python.c (gdbpy_eval_from_control_command)
18192 (gdbpy_source_script, gdbpy_run_events)
18193 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
18194 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
18197 2017-01-10 Tom Tromey <tom@tromey.com>
18199 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
18201 2017-01-10 Tom Tromey <tom@tromey.com>
18203 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
18205 2017-01-10 Tom Tromey <tom@tromey.com>
18207 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
18208 (python_on_inferior_call_pre, python_on_inferior_call_post)
18209 (python_on_memory_change, python_on_register_change)
18210 (python_inferior_exit, python_new_objfile, add_thread_object)
18211 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
18213 2017-01-10 Tom Tromey <tom@tromey.com>
18215 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
18216 (bpfinishpy_handle_exit): Use gdbpy_enter.
18218 2017-01-10 Tom Tromey <tom@tromey.com>
18220 * python/py-cmd.c (cmdpy_destroyer)
18221 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
18224 2017-01-10 Tom Tromey <tom@tromey.com>
18226 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
18228 (gdbpy_breakpoint_has_cond): Likewise.
18230 2017-01-10 Tom Tromey <tom@tromey.com>
18232 * python/python.c (gdbpy_enter): New constructor.
18233 (~gdbpy_enter): New destructor.
18234 (restore_python_env, ensure_python_env): Rewrite.
18235 * python/python-internal.h (gdbpy_enter): New class.
18237 2017-01-10 Tom Tromey <tom@tromey.com>
18239 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
18241 2017-01-10 Tom Tromey <tom@tromey.com>
18243 * python/py-value.c (value_has_field, get_field_flag)
18244 (get_field_type, valpy_getitem, convert_value_from_python): Use
18247 2017-01-10 Tom Tromey <tom@tromey.com>
18249 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
18252 2017-01-10 Tom Tromey <tom@tromey.com>
18254 * python/py-prettyprint.c (search_pp_list)
18255 (find_pretty_printer_from_objfiles)
18256 (find_pretty_printer_from_progspace)
18257 (find_pretty_printer_from_gdb, find_pretty_printer)
18258 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
18261 2017-01-10 Tom Tromey <tom@tromey.com>
18263 * python/py-param.c (call_doc_function): Use gdbpy_ref.
18265 2017-01-10 Tom Tromey <tom@tromey.com>
18267 * python/py-linetable.c (build_line_table_tuple_from_pcs)
18268 (ltpy_get_all_source_lines): Use gdbpy_ref.
18270 2017-01-10 Tom Tromey <tom@tromey.com>
18272 * python/py-framefilter.c (extract_sym, extract_value)
18273 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
18276 2017-01-10 Tom Tromey <tom@tromey.com>
18278 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
18280 2017-01-10 Tom Tromey <tom@tromey.com>
18282 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
18284 2017-01-10 Tom Tromey <tom@tromey.com>
18286 * python/py-function.c (convert_values_to_python, fnpy_init): Use
18289 2017-01-10 Tom Tromey <tom@tromey.com>
18291 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
18293 2017-01-10 Tom Tromey <tom@tromey.com>
18295 * python/py-type.c (convert_field, make_fielditem, typy_fields)
18296 (typy_range): Use gdbpy_ref.
18298 2017-01-10 Tom Tromey <tom@tromey.com>
18300 * python/py-threadevent.c (create_thread_event_object): Use
18302 * python/py-stopevent.c (create_stop_event_object): Simplify.
18303 (emit_stop_event): Use gdbpy_ref.
18304 * python/py-signalevent.c (create_signal_event_object): Use
18306 * python/py-newobjfileevent.c (create_new_objfile_event_object)
18307 (emit_new_objfile_event, create_clear_objfiles_event_object)
18308 (emit_clear_objfiles_event): Use gdbpy_ref.
18309 * python/py-infevents.c (create_inferior_call_event_object)
18310 (create_register_changed_event_object)
18311 (create_memory_changed_event_object, emit_inferior_call_event)
18312 (emit_memory_changed_event, emit_register_changed_event): Use
18314 * python/py-exitedevent.c (create_exited_event_object)
18315 (emit_exited_event): Use gdbpy_ref.
18316 * python/py-event.h (evpy_emit_event): Remove
18317 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
18318 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
18319 * python/py-continueevent.c (emit_continue_event): Use
18321 * python/py-breakpoint.c (gdbpy_breakpoint_created)
18322 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
18324 * python/py-bpevent.c (create_breakpoint_event_object): Use
18327 2017-01-10 Tom Tromey <tom@tromey.com>
18329 * python/py-ref.h: New file.
18331 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18333 * cli-out.c (cli_ui_out::do_redirect): Change return type to
18335 * cli-out.h (cli_ui_out::do_redirect): Likewise.
18336 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
18337 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
18338 * ui-out.c (ui_out::redirect): Likewise.
18339 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
18340 * cli/cli-logging.c (set_logging_redirect): Update call site of
18342 (handle_redirections): Likewise.
18343 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
18344 * top.c (execute_command_to_string): Likewise.
18345 * utils.c (do_ui_out_redirect_pop): Likewise.
18347 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18349 * stack.c (_initialize_stack): Update "frame" command help message.
18351 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
18353 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
18355 2017-01-06 Yao Qi <yao.qi@linaro.org>
18357 * x86-linux-nat.h: Include gdb_proc_service.h.
18359 2017-01-06 Yao Qi <yao.qi@linaro.org>
18361 * ser-base.h: Include serial.h.
18363 2017-01-06 Yao Qi <yao.qi@linaro.org>
18365 * ppc-linux-tdep.h: Include ppc-tdep.h.
18367 2017-01-06 Yao Qi <yao.qi@linaro.org>
18369 * nat/amd64-linux-siginfo.h: Include signal.h.
18371 2017-01-06 Yao Qi <yao.qi@linaro.org>
18373 * nat/aarch64-linux-hw-point.h: Include break-common.h.
18375 2017-01-06 Yao Qi <yao.qi@linaro.org>
18377 * mi/mi-parse.h: Include mi-cmds.h.
18379 2017-01-06 Yao Qi <yao.qi@linaro.org>
18381 * inf-loop.c: Don't include "target.h".
18382 * inf-loop.h: Include it here.
18384 2017-01-06 Yao Qi <yao.qi@linaro.org>
18386 * dfp.h: Include "dboulest.h" and "expression.h".
18388 2017-01-06 Yao Qi <yao.qi@linaro.org>
18390 * ax-gdb.h: Include "ax.h".
18392 2017-01-06 Yao Qi <yao.qi@linaro.org>
18394 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18395 with nat/gdb_ptrace.h.
18397 2017-01-05 Yao Qi <yao.qi@linaro.org>
18399 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18401 (mips64_fbsd_sigframe_init): Likewise.
18403 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18405 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18406 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18408 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18410 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18411 * NEWS: Mention new FreeBSD/mips native configuration.
18412 * config/mips/fbsd.mh: New file.
18413 * configure.host: Add mips*-*-freebsd*.
18414 * mips-fbsd-nat.c: New file.
18416 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18418 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18419 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18420 * NEWS: Mention new FreeBSD/mips target.
18421 * configure.tgt: Add mips*-*-freebsd*.
18422 * mips-fbsd-tdep.c: New file.
18423 * mips-fbsd-tdep.h: New file.
18425 2017-01-04 Yao Qi <yao.qi@linaro.org>
18427 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18428 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18430 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18432 Update copyright year range in all GDB files.
18434 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18436 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
18438 For older changes see ChangeLog-2016.
18444 version-control: never