Do not emit "field_type" var if not needed on "maint print c-tdesc"
[binutils-gdb.git] / gdb / ChangeLog
1 2017-12-21 Simon Marchi <simon.marchi@ericsson.com>
2 Sergio Durigan Junior <sergiodj@redhat.com>
3
4 * target-descriptions.c (print_c_tdesc) <visit>: Don't output
5 field_type declaration, use printf_field_type_assignment
6 instead.
7 <printf_field_type_assignment>: New method.
8 * features/aarch64-core.c, features/aarch64-fpu.c
9 features/arc-arcompact.c, features/arc-v2.c,
10 features/arm/arm-with-iwmmxt.c, features/i386/32bit-core.c,
11 features/i386/32bit-mpx.c, features/i386/32bit-sse.c,
12 features/i386/64bit-avx512.c, features/i386/64bit-core.c,
13 features/i386/64bit-mpx.c, features/i386/64bit-sse.c,
14 features/i386/x32-core.c, features/or1k.c,
15 features/rs6000/powerpc-7400.c,
16 features/rs6000/powerpc-altivec32.c,
17 features/rs6000/powerpc-altivec32l.c,
18 features/rs6000/powerpc-altivec64.c,
19 features/rs6000/powerpc-altivec64l.c,
20 features/rs6000/powerpc-cell32l.c,
21 features/rs6000/powerpc-cell64l.c,
22 features/rs6000/powerpc-isa205-altivec32l.c,
23 features/rs6000/powerpc-isa205-altivec64l.c,
24 features/rs6000/powerpc-isa205-vsx32l.c,
25 features/rs6000/powerpc-isa205-vsx64l.c,
26 features/rs6000/powerpc-vsx32.c,
27 features/rs6000/powerpc-vsx32l.c,
28 features/rs6000/powerpc-vsx64.c,
29 features/rs6000/powerpc-vsx64l.c, features/s390-gs-linux64.c,
30 features/s390-tevx-linux64.c, features/s390-vx-linux64.c,
31 features/s390x-gs-linux64.c, features/s390x-tevx-linux64.c,
32 features/s390x-vx-linux64.c: Re-generate.
33
34 2017-12-20 Uros Bizjak <ubizjak@gmail.com>
35
36 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Remove
37 write-only assignment to "insn" variable.
38
39 2017-12-20 Ulrich Weigand <uweigand@de.ibm.com>
40
41 * spu-tdep.c (spu_gdbarch_init): Set set_gdbarch_significant_addr_bit
42 to 64 bits.
43 (ppc_linux_init_abi): Likewise, if Cell/B.E. is supported.
44
45 2017-12-18 Joel Brobecker <brobecker@adacore.com>
46
47 * ada-lang.c (ada_to_fixed_type_1): Rethrow errors with
48 a more detailed exception message when getting an exception
49 while trying to read the value of an XVZ variable.
50 * ada-valprint.c (ada_val_print): Only catch RETURN_MASK_ERROR
51 exceptions. Print an error message when an exception is caught.
52
53 2017-12-18 Joel Brobecker <brobecker@adacore.com>
54
55 * ada-lang.c (assign_component): Strip any TYPE_CODE_TYPEDEF
56 layer from lhs' type.
57 (assign_aggregate): Likewise.
58
59 2017-12-18 Xavier Roirand <roirand@adacore.com>
60
61 * ada-lang.c (ada_convert_actual): Change the way actual value
62 are passed to the inferior when the inferior expects a pointer type.
63
64 2017-12-17 Stafford Horne <shorne@gmail.com>
65
66 * gdb/or1k-tdep.c (show_or1k_debug): Fix function parameter alignment.
67 (or1k_analyse_inst): Likewise.
68 (or1k_single_step_through_delay): Likewise.
69 (or1k_frame_cache): Fix parameter alignment and use paddress()
70 instead of %x.
71
72 2017-12-17 Stafford Horne <shorne@gmail.com>
73
74 * NEWS (Changes since GDB 8.0): Mention new or1k target and new
75 commands to set/show or1k debug.
76
77 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
78
79 * typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
80 condition.
81
82 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
83 Pedro Alves <palves@redhat.com>
84
85 PR cli/16224
86 * NEWS (Changes since GDB 8.0): Mention new '/o' flag.
87 * c-typeprint.c (OFFSET_SPC_LEN): New define.
88 (c_type_print_varspec_prefix): New argument 'struct
89 print_offset_data *'.
90 (c_type_print_base_1): New function and prototype.
91 (c_print_type_1): New function, with code from 'c_print_type'.
92 (c_print_type): Use 'c_print_type_1'.
93 (c_type_print_varspec_prefix): New argument 'struct
94 print_offset_data *'. Use it. Call 'c_type_print_base_1'
95 instead of 'c_print_type_base'.
96 (print_spaces_filtered_with_print_options): New function.
97 (output_access_specifier): Take new argument FLAGS. Modify
98 function to call 'print_spaces_filtered_with_print_options'.
99 (c_print_type_vtable_offset_marker): New function.
100 (c_print_type_union_field_offset): New function.
101 (c_print_type_struct_field_offset): New function.
102 (c_print_type_no_offsets): New function.
103 (c_type_print_base_struct_union): New argument 'struct
104 print_offset_data *'. Print offsets and sizes for
105 struct/union/class fields.
106 * typeprint.c (const struct type_print_options
107 type_print_raw_options): Initialize 'print_offsets'.
108 (static struct type_print_options default_ptype_flags):
109 Likewise.
110 (struct print_offset_data print_offset_default_data): New
111 variable.
112 (whatis_exp): Handle '/o' option.
113 (_initialize_typeprint): Add '/o' flag to ptype's help.
114 * typeprint.h (struct print_offset_data): New struct.
115 (struct type_print_options) <print_offsets>: New field.
116
117 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
118
119 * c-typeprint.c (need_access_label_p): New function.
120 (c_type_print_base_struct_union): New function.
121 (c_type_print_base): Move code to handle
122 TYPE_CODE_{STRUCT,UNION} to the functions mentioned above.
123
124 2017-12-15 Richard Henderson <rth@redhat.com>
125 Uros Bizjak <ubizjak@gmail.com>
126
127 PR gdb/19061
128 * alpha-tdep.c (alpha_software_single_step): Call
129 alpha_deal_with_atomic_sequence here.
130 (set_gdbarch_software_single_step): Set to
131 alpha_software_single_step.
132 * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
133 and GDB_ARCH_IS_TRAP_HWBKPT.
134
135 2017-12-15 Yao Qi <yao.qi@linaro.org>
136
137 * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT.
138
139 2017-12-15 Xavier Roirand <roirand@adacore.com>
140
141 * ada-lang.c (ada_value_primitive_field): Handle field search
142 in case of homonyms.
143 (find_struct_field): Ditto.
144 (ada_search_struct_field): Ditto.
145 (ada_value_struct_elt): Ditto.
146 (ada_lookup_struct_elt_type): Ditto.
147
148 2017-12-14 Simon Marchi <simon.marchi@ericsson.com>
149
150 * python/py-breakpoint.c (bppy_init): Use 'O' format specifier
151 for "qualified" and use PyObject_IsTrue.
152
153 2017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com>
154
155 * dwarf2read.c (dw2_debug_names_iterator::next): Support
156 DW_IDX_type_unit.
157 (debug_names::dwarf5_offset_size, unit_kind): New.
158 (debug_names::insert): Add parameter kind.
159 (debug_names::build): Support DW_IDX_type_unit.
160 (debug_names::recursively_write_psymbols): Update
161 (debug_names::write_psymbols caller.
162 (debug_names::write_one_signatured_type_data)
163 (debug_names::write_one_signatured_type): New.
164 (debug_names::index_key, debug_names::symbol_value)
165 (debug_names::write_psymbols): Add kind.
166 (debug_names::write_one_signatured_type): New.
167 (write_debug_names): Move dwarf5_offset_size to debug_names.
168 Use debug_names::write_one_signatured_type for type units.
169
170 2017-12-14 Joel Brobecker <brobecker@adacore.com>
171
172 * ada-lang.c (ada_value_equal): Add handling of typedef types
173 when comparing array objects.
174
175 2017-12-14 Joel Brobecker <brobecker@adacore.com>
176
177 * ada-tasks.c (read_atcb): Properly set task_info->ptid
178 when !target_has_execution as well.
179 (task_command): Remove error when !target_has_execution.
180
181 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
182
183 * location.h (string_to_event_location): Add match_type
184 parameter.
185 * location.c (string_to_event_location): Likewise.
186 * python/py-breakpoint.c (bppy_init): Handle qualified
187 parameter.
188
189 2017-12-13 Pedro Alves <palves@redhat.com>
190
191 * completer.c (completion_tracker::maybe_add_completion): New
192 'text' and 'word' parameters. Use make_completion_match_str.
193 (completion_tracker::add_completion): New 'text' and 'word'
194 parameters. Pass down.
195 (completion_tracker::recompute_lowest_common_denominator): Change
196 parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust.
197 * completer.h (completion_tracker::add_completion): New 'text' and
198 'word' parameters.
199 (completion_tracker::recompute_lowest_common_denominator): Change
200 parameter type to gdb::unique_xmalloc_ptr rval ref.
201 (completion_tracker::recompute_lowest_common_denominator): Change
202 parameter type to gdb::unique_xmalloc_ptr rval ref.
203 * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
204 as well.
205
206 2017-12-13 Pedro Alves <palves@redhat.com>
207
208 * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
209 make_completion_match_str.
210 * completer.c: Use gdb::unique_xmalloc_ptr and
211 make_completion_match_str.
212 (make_completion_match_str_1): New.
213 (make_completion_match_str(const char *, const char *,
214 const char *)): New.
215 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
216 const char *, const char *)): New.
217 * completer.h (make_completion_match_str(const char *,
218 const char *, const char *)): New.
219 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
220 const char *, const char *)): New.
221 * interps.c (interpreter_completer): Use make_completion_match_str.
222 * symtab.c (completion_list_add_name, add_filename_to_list): Use
223 make_completion_match_str.
224
225 2017-12-13 Stafford Horne <shorne@gmail.com>
226
227 * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
228 strings.
229 (or1k_unwind_pc): Use paddress() instead of %p.
230 (or1k_unwind_sp): Likewise.
231 (or1k_frame_cache): Use host_address_to_string()/paddress()
232 instead of %p and use _() wrapper for message strings.
233
234 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
235
236 * contrib/ari/gdb_ari.sh: Fix typo in help.
237
238 2017-12-13 Joel Brobecker <brobecker@adacore.com>
239
240 * event-top.c (handle_line_of_input): Set server_command.
241
242 2017-12-12 Stafford Horne <shorne@gmail.com>
243 Stefan Wallentowitz <stefan@wallentowitz.de>
244 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
245 Franck Jullien <franck.jullien@gmail.com>
246 Jeremy Bennett <jeremy.bennett@embecosm.com>
247
248 * configure.tgt: Add targets for or1k and or1knd.
249 * or1k-tdep.c: New file.
250 * or1k-tdep.h: New file.
251 * features/Makefile: Add or1k.xml to build.
252 * features/or1k.xml: New file.
253 * features/or1k-core.xml: New file.
254 * features/or1k.c: Generated.
255
256 2017-12-12 Alan Modra <amodra@gmail.com>
257
258 PR tdep/22576
259 * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
260 PLT offset, and retrieve r2 from stack when executing in reverse.
261 (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
262 rather than PLT address.
263 (ppc64_standard_linkage2_target): Likewise.
264 (ppc64_standard_linkage3_target): Likewise.
265 (ppc64_standard_linkage4_target): Likewise.
266 (ppc64_skip_trampoline_code_1): Adjust to suit.
267
268 2017-12-11 Simon Marchi <simon.marchi@ericsson.com>
269
270 PR gdb/22556
271 * remote.c (remote_thread_name): Return NULL if name is empty.
272 (remote_threads_extra_info): Return NULL if extra info is empty.
273
274 2017-12-11 Pedro Alves <palves@redhat.com>
275
276 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
277 (elf_sym_fns_debug_names): Move to elfread.c.
278 * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
279 instead of a sym_fns and add 'index_kind' output parameter. Fill
280 the latter in with the index variant kind if using an index.
281 (enum dw_index_kind): Moved to symfile.h.
282 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
283 (elf_sym_fns_lazy_psyms): Move from defs.h.
284 (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
285 interface.
286 * symfile.h (enum class dw_index_kind): New, moved from
287 dwarf2read.c.
288 (dwarf2_initialize_objfile): Change prototype.
289
290 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
291
292 * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
293 instead of mpfr_set_si to convert mantissa bits.
294
295 2017-12-11 Xavier Roirand <roirand@adacore.com>
296 Joel Brobecker <brobecker@adacore.com>
297
298 * ada-lang.c (ada_tag_value_at_base_address): Change the way
299 tagged type base address is computed.
300 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
301 New enumerate.
302 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
303 element of lai->primitive_type_vector.
304
305 2017-12-08 Pedro Alves <palves@redhat.com>
306
307 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
308 mapped_index_base.
309 (check_match): Adjust to use mock_index directly.
310 (check_find_bounds_finds)
311 (test_mapped_index_find_name_component_bounds): Adjust to work
312 with a mapped_index_base.
313
314 2017-12-08 Pedro Alves <palves@redhat.com>
315
316 * dwarf2read.c (struct mapped_index_base): New, partially factored
317 out from ...
318 (struct mapped_index): ... this. Inherit mapped_index_base.
319 (mapped_index::symbol_name_slot_invalid):
320 (mapped_index::symbol_name_at): Add override marker.
321 (mapped_index::symbol_name_count): New.
322 (struct mapped_debug_names): Inherit mapped_index_base.
323 (mapped_debug_names::symbol_name_at): New.
324 (mapped_debug_names::symbol_name_count): New.
325 (mapped_index::find_name_components_bounds): Rename to ...
326 (mapped_index_base::find_name_components_bounds): ... this.
327 (mapped_index::build_name_components): Rename to ...
328 (mapped_index_base::build_name_components): ... this. Adjust to
329 use mapped_index_base::symbol_name_count and
330 mapped_index_base::symbol_name_slot_invalid.
331 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
332 instead of a mapped_index. Use
333 dw2_expand_symtabs_matching_symbol.
334
335 2017-12-08 Pedro Alves <palves@redhat.com>
336
337 * dwarf2read.c (mapped_index::symbol_table_slot): New.
338 (mapped_index::address_table): Now a gdb::array_view of const
339 gdb_byte.
340 (mapped_index::symbol_table): Now a gdb::array_view of
341 symbol_table_slot.
342 (mapped_index::address_table_size)
343 (mapped_index::symbol_table_slots): Delete.
344 (create_addrmap_from_index): Adjust.
345 (find_slot_in_mapped_hash): Adjust.
346 (read_index_from_section): Adjust.
347 (dwarf2_read_index): Adjust.
348
349 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
350 Pedro Alves <palves@redhat.com>
351
352 * defs.h (elf_sym_fns_debug_names): New declaration.
353 * dwarf2read.c: Include "hash_enum.h".
354 (mapped_debug_names): New.
355 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
356 debug_names_table.
357 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
358 (struct dwz_file): Add debug_names.
359 (dwarf2_per_objfile::locate_sections): Handle debug_names and
360 debug_aranges.
361 (locate_dwz_sections): Handle debug_names.
362 (create_signatured_type_table_from_debug_names)
363 (create_addrmap_from_aranges): New.
364 (dwarf2_read_index): Update function comment.
365 (dwarf5_augmentation): Moved up.
366 (read_debug_names_from_section, create_cus_from_debug_names_list)
367 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
368 (dwarf5_djb_hash): Moved up.
369 (dw2_debug_names_iterator): New.
370 (read_indirect_string_at_offset): New declaration.
371 (mapped_debug_names::namei_to_name)
372 (dw2_debug_names_iterator::find_vec_in_debug_names)
373 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
374 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
375 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
376 New.
377 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
378 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
379 (debug_names::build): Update djb_hash caller.
380 (write_debug_names): Move out and rename augmentation to
381 dwarf5_augmentation.
382 * elfread.c (elf_sym_fns_debug_names): New.
383 * psymtab.h (dwarf2_debug_names_functions): New declaration.
384 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
385 debug_aranges.
386 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
387
388 2017-12-08 Pedro Alves <palves@redhat.com>
389
390 * common/hash_enum.h: New file.
391
392 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
393
394 * dwarf2read.c (create_cu_from_index_list): New from ...
395 (create_cus_from_index_list): ... this function, use it.
396 (dw_expand_symtabs_matching_file_matcher)
397 (dw2_expand_symtabs_matching_one): New from ...
398 (dw2_expand_symtabs_matching): ... this function, use them.
399
400 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
401
402 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
403 declarations from elfread.c.
404 (dwarf2_initialize_objfile): Change return value.
405 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
406 declarations to defs.h.
407 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
408 * symfile.h (dwarf2_initialize_objfile): Change return type.
409
410 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
411 Pedro Alves <palves@redhat.com>
412
413 * contrib/gdb-add-index.sh (index): Rename to ...
414 (index4): ... here.
415 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
416 Support also .debug_names and .debug_str.
417 * dwarf2read.c: Include cmath, set, list.
418 (INDEX_SUFFIX): Rename to ...
419 (INDEX4_SUFFIX): ... here.
420 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
421 (file_write(FILE *, const void *, size_t)): New.
422 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
423 (data_buf::append_unsigned_leb128, data_buf::empty): New.
424 (data_buf::file_write): Use ::file_write.
425 (data_buf::c_str, dwarf5_djb_hash, debug_names)
426 (check_dwarf64_offsets): New.
427 (psyms_seen_size, write_gdbindex): New from
428 write_psymtabs_to_index code.
429 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
430 (enum dw_index_kind): New.
431 (write_psymtabs_to_index): New parameter index_kind. Support
432 filename_str and out_file_str. Move code to write_gdbindex,
433 possibly call write_debug_names.
434 (save_gdb_index_command): New parameter -dwarf-5.
435 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
436
437 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
438 Pedro Alves <palves@redhat.com>
439
440 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
441 comment.
442 (GDB_ADD_INDEX): New variable.
443 <$want_index>: Call $GDB_ADD_INDEX.
444
445 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
446
447 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
448 "expression_up" inside the TRY block.
449
450 2017-12-08 Yao Qi <yao.qi@linaro.org>
451
452 * breakpoint.c (update_watchpoint): Call
453 address_significant.
454
455 2017-12-08 Yao Qi <yao.qi@linaro.org>
456
457 * breakpoint.c (adjust_breakpoint_address): Call
458 address_significant.
459
460 2017-12-08 Yao Qi <yao.qi@linaro.org>
461
462 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
463 significant_addr_bit.
464 * gdbarch.sh (significant_addr_bit): New.
465 * gdbarch.c, gdbarch.h: Re-generated.
466 * target.c (memory_xfer_partial): Call address_significant.
467 * utils.c (address_significant): New function.
468 * utils.h (address_significant): Declare.
469
470 2017-12-08 Tom Tromey <tom@tromey.com>
471
472 * printcmd.c (ui_printf): Update. Use std::vector.
473 * common/format.h (struct format_piece): Add constructor.
474 <string>: Now const.
475 (class format_pieces): New class.
476 (parse_format_string, free_format_pieces)
477 (free_format_pieces_cleanup): Remove.
478 * common/format.c (format_pieces::format_pieces): Rename from
479 parse_format_string. Update.
480 (free_format_pieces, free_format_pieces_cleanup): Remove.
481 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
482 * ax-gdb.h (gen_printf): Remove argument.
483 * ax-gdb.c (gen_printf): Remove "frags" argument.
484 (maint_agent_printf_command): Update. Use std::vector.
485
486 2017-12-08 Yao Qi <yao.qi@linaro.org>
487
488 PR breakpionts/22567
489 * linespec.c (minsym_found): Set sal.section.
490
491 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
492
493 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
494
495 2017-12-07 Keith Seitz <keiths@redhat.com>
496
497 PR breakpoints/22569
498 * location.c (string_to_explicit_location): When terminating
499 parsing early, break out of enclosing loop instead of returning.
500
501 2017-12-07 Keith Seitz <keiths@redhat.com>
502
503 * NEWS (New commands): Mention set/show print type nested-type-limit.
504 * c-typeprint.c (c_type_print_base): Print out nested types.
505 * dwarf2read.c (struct typedef_field_list): Rename to ...
506 (struct decl_field_list): ... this. Change all uses.
507 (struct field_info) <nested_types_list, nested_types_list_count>:
508 New fields.
509 (add_partial_symbol): Look for nested type definitions in C++, too.
510 (dwarf2_add_typedef): Rename to ...
511 (dwarf2_add_type_defn): ... this.
512 (type_can_define_types): New function.
513 Update assertion to use type_can_define_types.
514 Permit NULL for a field's name.
515 (process_structure_scope): Handle child DIEs of types that can
516 define types.
517 Copy the list of nested types into the type struct.
518 * gdbtypes.h (struct typedef_field): Rename to ...
519 (struct decl_field): ... this. Change all uses.
520 [is_protected, is_private]: New fields.
521 (struct cplus_struct_type) <nested_types, nested_types_count>: New
522 fields.
523 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
524 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
525 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
526 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
527 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
528 default value for print_nested_type_limit.
529 (print_nested_type_limit): New static variable.
530 (set_print_type_nested_types, show_print_type_nested_types): New
531 functions.
532 (_initialize_typeprint): Register new commands for set/show
533 `print-nested-type-limit'.
534 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
535 New field.
536
537 2017-12-07 Tom Tromey <tom@tromey.com>
538
539 PR breakpoints/22511:
540 * breakpoint.c (commands_command_1): Don't throw an exception when
541 no commands have been read.
542
543 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
544
545 PR c++/21222
546 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
547 range-for variable.
548
549 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
550
551 * common/selftest.h (struct selftest): Add virtual destructor.
552
553 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
554
555 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
556 over basic location code. Implement explicit location keywords.
557 (bppy_init_validate_args): New function.
558 * NEWS: Document Python explicit breakpoint locations.
559
560 2017-12-07 Joel Brobecker <brobecker@adacore.com>
561
562 * MAINTAINERS: Restore target entries for m68hc11-elf,
563 score-elf and xstormy16-elf, incorrectly removed in a previous
564 patch meant to only update the list of active maintainers.
565
566 2017-12-06 Pedro Alves <palves@redhat.com>
567
568 * break-catch-syscall.c (insert_catch_syscall)
569 (remove_catch_syscall): Adjust to pass reference to
570 inf_data->syscalls_counts directly via gdb::array_view.
571 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
572 and gdb::array_view.
573 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
574 * remote.c (remote_set_syscall_catchpoint): Likewise.
575 * target-debug.h (target_debug_print_bool): New.
576 (define target_debug_print_gdb_array_view_const_int): New.
577 * target-delegates.c: Regenerate.
578 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
579 gdb::array_view and bool.
580 (target_set_syscall_catchpoint): Likewise.
581
582 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
583
584 * break-catch-syscall.c (catch_syscall_completer): Get pointers
585 to syscall group strings after building the string vector.
586
587 2017-12-06 Pedro Alves <palves@redhat.com>
588
589 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
590 "qXfer:features:read"" is disabled.
591 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
592 Check packet_config_support instead of packet->support directly.
593
594 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
595
596 * target-descriptions.c (struct tdesc_feature) <registers>: Use
597 tdesc_reg_up typedef.
598 (struct target_desc) <features>: Use tdesc_feature_up typedef.
599
600 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
601
602 * target-descriptions.c (struct tdesc_type): Use default
603 destructor.
604 <u>: Remove.
605 <accept>: Remove.
606 (struct tdesc_type_builtin): New.
607 (struct tdesc_type_vector): New.
608 (struct tdesc_type_with_fields): New.
609 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
610 (tdesc_gdb_type): Remove.
611 (tdesc_register_type): Adjust.
612 (tdesc_create_vector): Create tdesc_type_vector.
613 (tdesc_create_struct): Create tdesc_type_with_fields.
614 (tdesc_set_struct_size): Change parameter type.
615 (tdesc_create_union): Create tdesc_type_with_fields.
616 (tdesc_create_flags): Likewise.
617 (tdesc_create_enum): Likewise.
618 (tdesc_add_field): Change parameter type.
619 (tdesc_add_typed_bitfield): Likewise.
620 (tdesc_add_bitfield): Likewise.
621 (tdesc_add_flag): Likewise.
622 (tdesc_add_enum_value): Likewise.
623 (print_c_tdesc) <visit>: Remove overload with tdesc_type
624 parameter, add overloads for tdesc_type_builtin,
625 tdesc_type_with_fields and tdesc_type_vector.
626 <m_printed_type>: Remove.
627 <m_printed_element_type, m_printed_type_with_fields>: Add.
628 * target-descriptions.h (tdesc_create_enum): Change return type.
629 (tdesc_add_typed_bitfield): Change parameter type.
630 (tdesc_add_enum_value): Change parameter type.
631 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
632 type to tdesc_type_with_fields.
633 (tdesc_start_struct): Adjust.
634 (tdesc_start_flags): Adjust.
635 (tdesc_start_enum): Adjust.
636 (tdesc_start_field): Adjust.
637 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
638 (struct tdesc_type_vector): Forward-declare.
639 (struct tdesc_type_with_fields): Forward-declare.
640 (tdesc_create_struct): Change return type.
641 (tdesc_create_union): Likewise.
642 (tdesc_create_flags): Likewise.
643 (tdesc_add_field): Change parameter type.
644 (tdesc_set_struct_size): Likewise.
645 (tdesc_add_bitfield): Likewise.
646 (tdesc_add_flag): Likewise.
647 * features: Re-generate C files.
648
649 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
650
651 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
652 (struct tdesc_arch_reg): Add constructor.
653 (DEF_VEC_O (tdesc_arch_reg)): Remove.
654 (struct tdesc_arch_data): Initialize fields.
655 <arch_regs>: Change type to std::vector.
656 (target_find_description): Adjust.
657 (tdesc_find_type): Adjust.
658 (tdesc_data_init): Call tdesc_arch_data constructor.
659 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
660 (tdesc_data_cleanup): Free data with delete.
661 (tdesc_numbered_register): Adjust.
662 (tdesc_find_arch_register): Adjust.
663 (tdesc_use_registers): Adjust.
664
665 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
666
667 * target-descriptions.c (tdesc_type_field): Remove typedef.
668 (DEF_VEC_O (tdesc_type_field)): Remove.
669 (struct tdesc_type_field): Add constructor.
670 <name>: Change type to std::string.
671 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
672 kind uses it.
673 <~tdesc_type>: Destroy vector if the type kind uses it.
674 <u::u::fields>: Change type to std::vector.
675 (tdesc_gdb_type): Adjust.
676 (tdesc_add_field): Adjust.
677 (tdesc_add_typed_bitfield): Adjust.
678 (tdesc_add_field): Adjust.
679 (tdesc_add_enum_value): Adjust.
680 (class print_c_tdesc) <visit>: Adjust.
681
682 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * target-descriptions.c (struct tdesc_type) <name>: Change type
685 to std::string.
686 <~tdesc_type>: Don't manually free name.
687 <operator==>: Adjust.
688 (tdesc_named_type): Adjust.
689 (tdesc_find_type): Adjust.
690 (tdesc_gdb_type): Adjust.
691 (class print_c_tdesc) <visit>: Adjust.
692
693 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
694
695 * target-descriptions.c (tdesc_type_p): Remove typedef.
696 (DEF_VEC_P (tdesc_type_p)): Remove.
697 (struct tdesc_feature) <types>: Change type to std::vector.
698 <~tdesc_feature>: Replace with default implementation.
699 <accept>: Adjust.
700 (tdesc_named_type): Adjust.
701 (tdesc_create_vector): Adjust.
702 (tdesc_create_struct): Adjust.
703 (tdesc_create_union): Adjust.
704 (tdesc_create_flags): Adjust.
705 (tdesc_create_enum): Adjust.
706
707 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
708
709 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
710 type of name_ parameter, adjust to std::string change.
711 <name, group, type>: Change type to std::string.
712 <~tdesc_reg>: Replace with default implementation.
713 <operator==>: Adjust.
714 (tdesc_find_register_early): Adjust.
715 (tdesc_register_name): Adjust.
716 (tdesc_register_type): Adjust.
717 (tdesc_register_in_reggroup_p): Adjust.
718 (class print_c_tdesc) <visit>: Adjust.
719 (class print_c_feature) <visit>: Adjust.
720 * features/arc-arcompact.c: Re-generate.
721 * features/arc-v2.c: Re-generate.
722
723 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
724
725 * target-descriptions.c (tdesc_reg_p): Remove typedef.
726 (DEF_VEC_P (tdesc_reg_p)): Remove.
727 (struct tdesc_feature) <registers>: Change type to std::vector.
728 <~tdesc_feature>: Don't manually free registers.
729 <accept>: Adjust.
730 <operator==>: Adjust.
731 (tdesc_has_registers): Adjust.
732 (tdesc_find_register_early): Adjust.
733 (tdesc_use_registers): Adjust.
734 (tdesc_create_reg): Adjust.
735
736 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * target-descriptions.c (tdesc_feature) <name>: Change type to
739 std::string.
740 <~tdesc_feature>: Don't manually free name.
741 <operator==>: Adjust.
742 (tdesc_find_feature): Adjust.
743 (tdesc_feature_name): Adjust.
744 (class print_c_tdesc) <visit_pre>: Adjust.
745 (class print_c_feature) <visit_pre>: Adjust.
746
747 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
748
749 * target-descriptions.c (tdesc_feature_p): Remove typedef.
750 (DEF_VEC_P (tdesc_feature_p)): Remove.
751 (struct target_desc) <features>: Change type to std::vector.
752 <~target_desc>: Replace with default implementation.
753 <accept>: Adjust.
754 <operator==>: Adjust.
755 (tdesc_has_registers): Adjust.
756 (tdesc_find_feature): Adjust.
757 (tdesc_use_registers): Adjust.
758 (tdesc_create_feature): Adjust.
759
760 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
761
762 * target-descriptions.c (arch_p): Remove typedef.
763 (DEF_VEC_P (arch_p)): Remove.
764 (struct target_desc) <compatible>: Change type to std::vector.
765 <~target_desc>: Don't manually free compatible.
766 (tdesc_compatible_p): Adjust.
767 (tdesc_add_compatible): Adjust.
768 (class print_c_tdesc) <visit_pre>: Adjust.
769
770 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
771
772 * target-descriptions.c (property_s): Remove typedef.
773 (DEF_VEC_O (property_s)): Remove.
774 (struct target_desc) <properties>: Make an std::vector.
775 <~target_desc>: Don't manually free properties.
776 (tdesc_property): Adjust.
777 (set_tdesc_property): Adjust.
778 (class print_c_tdesc) <visit_pre>: Adjust.
779
780 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
781
782 * common/gdb_assert.h (gdb_static_assert): Redefine using
783 static_assert.
784
785 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
786
787 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
788 unused variables.
789 (ada_is_redundant_range_encoding): Likewise.
790 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
791 Likewise.
792 * alpha-tdep.c (alpha_software_single_step): Likewise.
793 * arm-tdep.c (_initialize_arm_tdep): Likewise.
794 * auto-load.c (info_auto_load_cmd): Likewise.
795 * break-catch-syscall.c (insert_catch_syscall): Likewise.
796 (remove_catch_syscall): Likewise.
797 * breakpoint.c (condition_completer): Likewise.
798 (clear_command): Likewise.
799 (update_breakpoint_locations): Likewise.
800 * btrace.c (btrace_disable): Likewise.
801 (btrace_teardown): Likewise.
802 (btrace_maint_update_pt_packets): Likewise.
803 (maint_btrace_clear_cmd): Likewise.
804 * cli/cli-decode.c (lookup_cmd_1): Likewise.
805 (lookup_cmd_composition): Likewise.
806 * cli/cli-dump.c (scan_filename): Likewise.
807 (restore_command): Likewise.
808 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
809 * compile/compile-object-load.c (compile_object_load): Likewise.
810 * compile/compile-object-run.c (compile_object_run): Likewise.
811 * compile/compile.c (compile_to_object): Likewise.
812 * completer.c (filename_completer): Likewise.
813 (complete_files_symbols): Likewise.
814 (complete_expression): Likewise.
815 * corelow.c (core_open): Likewise.
816 * ctf.c (ctf_start): Likewise.
817 (ctf_write_status): Likewise.
818 (ctf_write_uploaded_tsv): Likewise.
819 (ctf_write_definition_end): Likewise.
820 (ctf_open_dir): Likewise.
821 (ctf_xfer_partial): Likewise.
822 (ctf_trace_find): Likewise.
823 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
824 Likewise.
825 * dwarf2loc.c (allocate_piece_closure): Likewise.
826 (indirect_pieced_value): Likewise.
827 (dwarf2_evaluate_loc_desc_full): Likewise.
828 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
829 (dw2_expand_symtabs_matching): Likewise.
830 (dw2_map_symbol_filenames): Likewise.
831 (read_and_check_comp_unit_head): Likewise.
832 (read_cutu_die_from_dwo): Likewise.
833 (lookup_dwo_unit): Likewise.
834 (read_comp_units_from_section): Likewise.
835 (dwarf2_compute_name): Likewise.
836 (handle_DW_AT_stmt_list): Likewise.
837 (create_cus_hash_table): Likewise.
838 (create_dwp_v2_section): Likewise.
839 (dwarf2_rnglists_process): Likewise.
840 (dwarf2_ranges_process): Likewise.
841 (dwarf2_record_block_ranges): Likewise.
842 (is_vtable_name): Likewise.
843 (read_formatted_entries): Likewise.
844 (skip_form_bytes): Likewise.
845 * elfread.c (elf_symtab_read): Likewise.
846 * exec.c (exec_file_command): Likewise.
847 * f-valprint.c (f_val_print): Likewise.
848 (info_common_command_for_block): Likewise.
849 * guile/guile.c (initialize_scheme_side): Likewise.
850 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
851 * guile/scm-cmd.c (cmdscm_completer): Likewise.
852 (gdbscm_register_command_x): Likewise.
853 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
854 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
855 * guile/scm-ports.c (file_port_magic): Likewise.
856 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
857 (ppscm_pretty_print_one_value): Likewise.
858 (ppscm_print_children): Likewise.
859 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
860 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
861 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
862 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
863 * i386-tdep.c (i386_register_reggroup_p): Likewise.
864 * infcmd.c (run_command_1): Likewise.
865 (until_next_fsm_clean_up): Likewise.
866 * linespec.c (linespec_complete): Likewise.
867 (find_label_symbols): Likewise.
868 * m2-valprint.c (m2_val_print): Likewise.
869 * memattr.c (require_user_regions): Likewise.
870 (lookup_mem_region): Likewise.
871 (disable_mem_command): Likewise.
872 (mem_delete): Likewise.
873 * mep-tdep.c (mep_register_name): Likewise.
874 (mep_analyze_prologue): Likewise.
875 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
876 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
877 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
878 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
879 * minidebug.c (lzma_open): Likewise.
880 * minsyms.c (lookup_minimal_symbol): Likewise.
881 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
882 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
883 (mips_o64_return_value): Likewise.
884 (mips_single_step_through_delay): Likewise.
885 (_initialize_mips_tdep): Likewise.
886 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
887 (nios2_software_single_step): Likewise.
888 * parse.c (find_minsym_type_and_address): Likewise.
889 * psymtab.c (psym_relocate): Likewise.
890 * python/py-breakpoint.c (bppy_get_commands): Likewise.
891 (gdbpy_breakpoint_modified): Likewise.
892 * python/py-infevents.c (create_inferior_call_event_object):
893 Likewise.
894 * python/py-record-btrace.c (btpy_list_item): Likewise.
895 * python/py-type.c (typy_str): Likewise.
896 * python/py-value.c (valpy_call): Likewise.
897 * python/python.c (do_start_initialization): Likewise.
898 * record-btrace.c (record_btrace_insn_history_range): Likewise.
899 (record_btrace_call_history_range): Likewise.
900 (record_btrace_record_method): Likewise.
901 (record_btrace_xfer_partial): Likewise.
902 (btrace_get_frame_function): Likewise.
903 * record-full.c (record_full_open): Likewise.
904 * record.c (get_context_size): Likewise.
905 * registry.h (DEFINE_REGISTRY): Likewise.
906 * remote-fileio.c (remote_fileio_request): Likewise.
907 * remote.c (remote_update_thread_list): Likewise.
908 (remote_check_symbols): Likewise.
909 (remote_commit_resume): Likewise.
910 (remote_interrupt): Likewise.
911 (remote_insert_breakpoint): Likewise.
912 (compare_sections_command): Likewise.
913 * rust-exp.y (super_name): Likewise.
914 (lex_string): Likewise.
915 (convert_ast_to_type): Likewise.
916 (convert_ast_to_expression): Likewise.
917 * rust-lang.c (rust_print_struct_def): Likewise.
918 (rust_print_type): Likewise.
919 (rust_evaluate_subexp): Likewise.
920 * rx-tdep.c (rx_register_type): Likewise.
921 * ser-event.c (serial_event_clear): Likewise.
922 * serial.c (serial_open): Likewise.
923 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
924 * symfile.c (section_is_overlay): Likewise.
925 (overlay_unmapped_address): Likewise.
926 (overlay_mapped_address): Likewise.
927 (simple_overlay_update_1): Likewise.
928 (simple_overlay_update): Likewise.
929 * symtab.c (symbol_find_demangled_name): Likewise.
930 (search_symbols): Likewise.
931 * target-descriptions.c (tdesc_predefined_type): Likewise.
932 * target.c (target_commit_resume): Likewise.
933 * thread.c (print_selected_thread_frame): Likewise.
934 * top.c (new_ui_command): Likewise.
935 (gdb_readline_no_editing): Likewise.
936 * tracefile-tfile.c (tfile_open): Likewise.
937 * tracepoint.c (create_tsv_from_upload): Likewise.
938 * utils.c (quit): Likewise.
939 (defaulted_query): Likewise.
940 * valarith.c (value_concat): Likewise.
941 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
942 * xml-tdesc.c (target_fetch_description_xml): Likewise.
943 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
944 (xtensa_pseudo_register_write): Likewise.
945
946 2017-12-04 Tom Tromey <tom@tromey.com>
947
948 * NEWS: Mention Rust trait object inspection.
949
950 2017-12-04 Pedro Alves <palves@redhat.com>
951
952 PR gdb/22499
953 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
954 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
955 (vex2_prefix_p, vex3_prefix_p): New functions.
956 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
957 VEX3 prefixes.
958 (fixup_riprel): Set VEX3.!B.
959
960 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
961
962 * target.h (mem_region_vector): Remove.
963 (struct target_ops) <to_memory_map>: Change return type to
964 std::vector<mem_region>.
965 * target-debug.h (target_debug_print_mem_region_vector): Rename
966 to ...
967 (target_debug_print_std_vector_mem_region): ... this.
968 * target-delegates.c: Re-generate.
969
970 2017-12-03 Pedro Alves <palves@redhat.com>
971
972 * make-target-delegates (munge_type): Also munge '<', '>', and
973 ':'. Avoid double underscores in identifiers, and trailing
974 underscores.
975 * target-debug.h
976 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
977 ...
978 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
979 * target-delegates.c: Regenerate.
980
981 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
982
983 * common/poison.h (XDELETE): Fix typo.
984
985 2017-12-01 Andrew Cagney <cagney@redhat.com>
986 Joel Brobecker <brobecker@adacore.com>
987 Sergio Durigan Junior <sergiodj@redhat.com>
988
989 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
990 feature.
991 * coffread.c (coff_symfile_read): Do not map over sections with
992 'coff_locate_sections' if readnever is on.
993 * dwarf2read.c (dwarf2_has_info): Return 0 if
994 readnever is on.
995 * elfread.c (elf_symfile_read): Do not map over sections with
996 'elf_locate_sections' if readnever is on.
997 * main.c (validate_readnow_readnever): New function.
998 (captured_main_1): Add support for --readnever.
999 (print_gdb_help): Document --readnever.
1000 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
1001 flag.
1002 * symfile.c (readnever_symbol_files): New global.
1003 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
1004 'READNEVER_SYMBOL_FILES' is set.
1005 (validate_readnow_readnever): New function.
1006 (symbol_file_command): Handle '-readnever' option.
1007 Call 'validate_readnow_readnever'.
1008 (add_symbol_file_command): Handle '-readnever' option.
1009 Call 'validate_readnow_readnever'.
1010 (_initialize_symfile): Document new '-readnever' option for
1011 both 'symbol-file' and 'add-symbol-file' commands.
1012 * top.h (readnever_symbol_files): New extern global.
1013 * xcoffread.c (xcoff_initial_scan): Do not read debug
1014 information if readnever is on.
1015
1016 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
1017
1018 * symfile.c (symbol_file_command): Call
1019 'symbol_file_add_main_1' only after processing all command
1020 line options.
1021 (add_symbol_file_command): Modify logic to make arguments
1022 position-independent.
1023
1024 2017-12-01 Joel Brobecker <brobecker@adacore.com>
1025
1026 * ada-lang.c (symbol_list_obstack): Delete.
1027 (resolve_subexp): Make sure "candidates" gets xfree'ed.
1028 (ada_lookup_symbol_list_worker): Remove the limitation that
1029 the result is only good until the next call, now making it
1030 the responsibility of the caller to free the result when no
1031 longer needed. Adjust the function's intro comment accordingly.
1032 (ada_lookup_symbol_list): Adjust the function's intro comment.
1033 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
1034 (ada_lookup_encoded_symbol, get_var_value): Likewise.
1035 (_initialize_ada_language): Remove symbol_list_obstack
1036 initialization.
1037 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
1038 (write_var_or_type, write_name_assoc): Likewise.
1039
1040 2017-12-01 Tom Tromey <tom@tromey.com>
1041
1042 * Makefile.in (all_deps_files): New variable.
1043 Include .Po files using all_deps_files.
1044
1045 2017-12-01 Joel Brobecker <brobecker@adacore.com>
1046
1047 * MAINTAINERS: Update list of maintainers, moving those who
1048 stepped down or became inactive to the "Past Maintainers"
1049 section.
1050
1051 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1052
1053 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
1054 sys/proc.h.
1055 (NEW_PROC_API): Remove.
1056 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
1057 Likewise.
1058 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
1059 * configure: Regenerate.
1060 * config.in: Regenerate.
1061 * gdbserver/configure: Regenerate.
1062 * gdbserver/config.in: Regenerate.
1063
1064 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
1065 NEW_PROC_API test.
1066 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
1067
1068 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
1069
1070 * proc-api.c: Remove !NEW_PROC_API support.
1071 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
1072 Remove tests for macros always defined on Solaris.
1073 * proc-events.c: Remove !NEW_PROC_API support.
1074 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
1075 HAVE_SYS_USER_H tests.
1076 (init_syscall_table): Remove non-Solaris syscalls.
1077 Remove tests for syscalls present on all Solaris versions.
1078 Add missing Solaris 10+ syscalls.
1079 (signal_table): Remove non-Solaris signals.
1080 Remove tests for signals present on all Solaris versions.
1081 (fault_table): Remove non-Solaris faults.
1082 Remove tests for faults present on all Solaris versions.
1083 * proc-flags.c: Remove !NEW_PROC_API support.
1084 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
1085 Remove non-Solaris flags.
1086 * proc-why.c: Remove !NEW_PROC_API support.
1087 (pr_why_table): Remove meaningless comments.
1088 Remove tests for reasons present on all Solaris versions.
1089 Remove OSF/1 cases.
1090 (proc_prettyfprint_why): Likewise.
1091
1092 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
1093 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
1094 Remove WA_READ test, IRIX watchpoint support.
1095 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
1096 types. Change users.
1097 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
1098 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
1099 Change callers.
1100 Remove CTL_PROC_NAME_FMT tests.
1101 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
1102 users.
1103 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
1104 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
1105 (proc_modify_flag): Replace GDBRESET by PCUNSET.
1106 Remove PR_ASYNC, PR_KLC tests.
1107 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
1108 (proc_parent_pid): Remove PCWATCH etc. tests.
1109 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
1110 Remove PCAGENT test.
1111 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
1112 Remove SYS_lwpcreate || SYS_lwp_create test.
1113 (proc_get_current_thread): Likewise.
1114 [PIOCNTHR && PIOCTLIST]: Remove.
1115 [PIOCLSTATUS]: Remove.
1116 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
1117 [PRFS_STOPEXEC]: Remove.
1118 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
1119 (syscall_is_exit): Likewise.
1120 (syscall_is_exec): Likewise.
1121 (syscall_is_lwp_create): Likewise.
1122 Remove SYS_syssgi support.
1123 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
1124 [SYS_syssgi]: Remove.
1125 Remove non-Solaris cases, conditionals.
1126 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
1127 Remove.
1128 (procfs_init_inferior) [SYS_syssgi]: Remove.
1129 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
1130 (procfs_inferior_created) [SYS_syssgi]: Remove.
1131 (procfs_set_watchpoint): Remove !AIX5 test.
1132 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
1133 case.
1134 (mappingflags) [MA_PHYS]: Remove.
1135 (info_mappings_callback): Remove PCAGENT test.
1136 Remove PIOCOPENLWP || PCAGENT test.
1137
1138 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1139
1140 * sol-thread.c (info_solthreads): Constify args.
1141 Cast args to void *.
1142
1143 2017-11-29 John Baldwin <jhb@FreeBSD.org>
1144
1145 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
1146
1147 2017-11-29 Joel Brobecker <brobecker@adacore.com>
1148
1149 * ada-lang.c (to_fixed_range_type): Make sure that the size
1150 of the range type being returned is the same as the size
1151 of the range type being fixed.
1152
1153 2017-11-29 Pedro Alves <palves@redhat.com>
1154
1155 PR c++/19436
1156 * NEWS: Mention setting breakpoints on functions with C++ ABI
1157 tags.
1158 * completer.h (completion_match_for_lcd) <match,
1159 mark_ignored_range>: New methods.
1160 <finish>: Consider ignored ranges.
1161 <clear>: Clear ignored ranges.
1162 <m_ignored_ranges, m_finished_storage>: New fields.
1163 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1164 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1165 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1166 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1167 * language.c (default_symbol_name_matcher): Pass the
1168 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1169 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1170 * utils.c (skip_abi_tag): New function.
1171 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1172 Handle ABI tags.
1173 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1174 parameter.
1175
1176 2017-11-29 Pedro Alves <palves@redhat.com>
1177
1178 PR c++/19436
1179 * NEWS: Mention setting breakpoints on functions with C++ ABI
1180 tags.
1181 * completer.h (completion_match_for_lcd) <match,
1182 mark_ignored_range>: New methods.
1183 <finish>: Consider ignored ranges.
1184 <clear>: Clear ignored ranges.
1185 <m_ignored_ranges, m_finished_storage>: New fields.
1186 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1187 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1188 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1189 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1190 * language.c (default_symbol_name_matcher): Pass the
1191 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1192 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1193 * utils.c (skip_abi_tag): New function.
1194 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1195 Handle ABI tags.
1196 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1197 parameter.
1198
1199 2017-11-29 Pedro Alves <palves@redhat.com>
1200
1201 * NEWS: Mention that breakpoints on C++ functions are now set on
1202 on all namespaces/classes by default, and mention "break
1203 -qualified".
1204 * ax-gdb.c (agent_command_1): Adjust to pass a
1205 symbol_name_match_type to new_linespec_location.
1206 * breakpoint.c (parse_breakpoint_sals): Adjust to
1207 get_linespec_location's return type change.
1208 (strace_marker_create_sals_from_location): Adjust to pass a
1209 symbol_name_match_type to new_linespec_location.
1210 (strace_marker_decode_location): Adjust to get_linespec_location's
1211 return type change.
1212 (strace_command): Adjust to pass a symbol_name_match_type to
1213 new_linespec_location.
1214 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
1215 mention "-qualified".
1216 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
1217 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
1218 enumerator.
1219 (complete_address_and_linespec_locations): New parameter
1220 'match_type'. Pass it down.
1221 (explicit_options): Add "-qualified".
1222 (collect_explicit_location_matches): Pass the requested match type
1223 to the linespec completers. Handle MATCH_QUALIFIED.
1224 (location_completer): Handle "-qualified" combined with linespecs.
1225 * cp-support.c (cp_search_name_hash): New.
1226 (cp_symbol_name_matches_1): Implement wild matching for C++.
1227 (cp_fq_symbol_name_matches): Reimplement.
1228 (cp_get_symbol_name_matcher): Return different matchers depending
1229 on the lookup name's match type.
1230 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
1231 * cp-support.h (cp_search_name_hash): New declaration.
1232 * dwarf2read.c
1233 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
1234 symbols.
1235 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
1236 tests.
1237 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
1238 pass a symbol_name_match_type to new_linespec_location.
1239 * linespec.c (linespec_parse_basic): Lookup function symbols using
1240 the parser's symbol name match type.
1241 (convert_explicit_location_to_linespec): New
1242 symbol_name_match_type parameter. Pass it down to
1243 find_linespec_symbols.
1244 (convert_explicit_location_to_sals): Pass the location's name
1245 match type to convert_explicit_location_to_linespec.
1246 (parse_linespec): New match_type parameter. Save it in the
1247 parser.
1248 (linespec_parser_new): Default to symbol_name_match_type::WILD.
1249 (linespec_complete_function): New symbol_name_match_type
1250 parameter. Use it.
1251 (complete_linespec_component): Pass down the parser's recorded
1252 name match type.
1253 (linespec_complete_label): New symbol_name_match_type parameter.
1254 Use it.
1255 (linespec_complete): New symbol_name_match_type parameter. Save
1256 it in the parser and pass it down. Adjust to
1257 get_linespec_location's prototype change.
1258 (find_function_symbols, find_linespec_symbols): New
1259 symbol_name_match_type parameter. Pass it down instead of
1260 assuming symbol_name_match_type::WILD.
1261 * linespec.h (linespec_complete, linespec_complete_function)
1262 (linespec_complete_label): New symbol_name_match_type parameter.
1263 * location.c (event_location::linespec_location): Now a struct
1264 linespec_location.
1265 (EL_LINESPEC): Adjust.
1266 (initialize_explicit_location): Default to
1267 symbol_name_match_type::WILD.
1268 (new_linespec_location): New symbol_name_match_type parameter.
1269 Record it in the location.
1270 (get_linespec_location): Now returns a struct linespec_location.
1271 (new_explicit_location): Also copy func_name_match_type.
1272 (explicit_to_string_internal)
1273 (string_to_explicit_location): Handle "-qualified".
1274 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
1275 Copy symbol_name_match_type fields.
1276 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
1277 type change.
1278 (event_location_to_string): Adjust to LINESPEC_LOCATION type
1279 change. Handle "-qualfied".
1280 (string_to_explicit_location): Handle "-qualified".
1281 (string_to_event_location_basic): New symbol_name_match_type
1282 parameter. Pass it down.
1283 (string_to_event_location): Handle "-qualified".
1284 * location.h (struct linespec_location): New.
1285 (explicit_location::func_name_match_type): New field.
1286 (new_linespec_location): Now returns a const linespec_location *.
1287 (string_to_event_location_basic): New symbol_name_match_type
1288 parameter.
1289 (explicit_completion_info::saw_explicit_location_option): New
1290 field.
1291 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
1292 symbol_name_match_type to new_linespec_location.
1293 * python/py-breakpoint.c (bppy_init): Likewise.
1294 * python/python.c (gdbpy_decode_line): Likewise.
1295
1296 2017-11-29 Pedro Alves <palves@redhat.com>
1297
1298 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1299 parameter from completion_match to completion_match_result.
1300 Adjust.
1301 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1302 * completer.c (completion_tracker::maybe_add_completion): Add
1303 match_for_lcd parameter and use it.
1304 (completion_tracker::add_completion): Likewise.
1305 * completer.h (class completion_match_for_lcd): New class.
1306 (completion_match_result::match_for_lcd): New field.
1307 (completion_match_result::set_match): New method.
1308 (completion_tracker): Add comments.
1309 (completion_tracker::add_completion): Add match_for_lcd parameter.
1310 (completion_tracker::reset_completion_match_result): Reset
1311 match_for_lcd too.
1312 (completion_tracker::maybe_add_completion): Add match_for_lcd
1313 parameter.
1314 (completion_tracker::m_lowest_common_denominator_unique): Extend
1315 comments.
1316 * cp-support.c (cp_symbol_name_matches_1)
1317 (cp_fq_symbol_name_matches): Change type of parameter from
1318 completion_match to completion_match_result. Adjust.
1319 * language.c (default_symbol_name_matcher): Change type of
1320 parameter from completion_match to completion_match_result.
1321 Adjust.
1322 * language.h (completion_match_for_lcd): Forward declare.
1323 (default_symbol_name_matcher): Change type of parameter from
1324 completion_match to completion_match_result.
1325 * symtab.c (compare_symbol_name): Adjust.
1326 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1327 * symtab.h (ada_lookup_name_info::matches): Change type of
1328 parameter from completion_match to completion_match_result.
1329 (symbol_name_matcher_ftype): Likewise, and update comments.
1330
1331 2017-11-29 Pedro Alves <palves@redhat.com>
1332
1333 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1334 * minsyms.c (msymbol_is_text): Delete.
1335 (msymbol_is_function): New function.
1336 * minsyms.h (msymbol_is_text): Delete.
1337 (msymbol_is_function): New declaration.
1338 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1339
1340 2017-11-29 Tom Tromey <tom@tromey.com>
1341
1342 * Makefile.in (distclean): Handle the case where rmdir fails.
1343
1344 2017-11-29 Tom Tromey <tom@tromey.com>
1345
1346 * symfile.c (_initialize_symfile): Update usage text for
1347 add-symbol-file, symbol-file, load.
1348
1349 2017-11-29 Tom Tromey <tom@tromey.com>
1350
1351 * symfile.c (add_symbol_file_command): Error if some arguments to
1352 -s are missing. Change unrecognized-argument error message.
1353 (_initialize_symfile): Fix usage text for add-symbol-file.
1354
1355 2017-11-27 Tom Tromey <tom@tromey.com>
1356
1357 * Makefile.in (REMOTE_OBS): Remove.
1358 (SFILES): Remove remote sources.
1359 (COMMON_SFILES): Add remote sources.
1360 (ALLDEPFILES): Remove dcache.c.
1361
1362 2017-11-27 Tom Tromey <tom@tromey.com>
1363
1364 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1365 variables.
1366 (SFILES): Use SUBDIR_TARGET_SRCS.
1367 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1368 (CONFIG_SRC_SUBDIR): Add target.
1369 (%.o): Remove target rule.
1370
1371 2017-11-27 Tom Tromey <tom@tromey.com>
1372
1373 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1374 registry.o, thread-fsm.o, debug.o.
1375 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1376 thread-fsm.c, debug.c.
1377
1378 2017-11-27 Tom Tromey <tom@tromey.com>
1379
1380 * Makefile.in (COMMON_SFILES): New.
1381 (SFILES): Move some entries to COMMON_SFILES.
1382 (COMMON_OBS): Use COMMON_SFILES.
1383
1384 2017-11-27 Tom Tromey <tom@tromey.com>
1385
1386 * Makefile.in (YYFILES): Update comment.
1387 (YYOBJ): Redefine.
1388
1389 2017-11-27 Tom Tromey <tom@tromey.com>
1390
1391 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1392 (CONFIG_SRC_SUBDIR): Add python.
1393 (%.o): Remove python rule.
1394 (python/%.o): New rule.
1395 * configure: Rebuild.
1396 * configure.ac (CONFIG_OBS): Refer to python/python.o
1397
1398 2017-11-27 Tom Tromey <tom@tromey.com>
1399
1400 * configure: Rebuild.
1401 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1402 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1403 (CONFIG_SRC_SUBDIR): Add guile.
1404 (%.o): Remove guile rule.
1405
1406 2017-11-27 Tom Tromey <tom@tromey.com>
1407
1408 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1409 (%.o): Remove unittests rule.
1410 (CONFIG_SRC_SUBDIR): Add unittests.
1411
1412 2017-11-27 Tom Tromey <tom@tromey.com>
1413
1414 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1415 (CONFIG_SRC_SUBDIR): Add tui.
1416 (%.o): Remove tui rule.
1417
1418 2017-11-27 Tom Tromey <tom@tromey.com>
1419
1420 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1421 (%.o): Remove compile rule.
1422 (CONFIG_SRC_SUBDIR): Add compile.
1423
1424 2017-11-27 Tom Tromey <tom@tromey.com>
1425
1426 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1427 (%.o): Remove mi rule.
1428 (CONFIG_SRC_SUBDIR): Add mi.
1429 (COMMON_OBS): Use mi/mi-common.o
1430
1431 2017-11-27 Tom Tromey <tom@tromey.com>
1432
1433 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1434 (%.o): Remove cli rule.
1435 (CONFIG_SRC_SUBDIR): Add cli.
1436
1437 2017-11-27 Tom Tromey <tom@tromey.com>
1438
1439 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1440 * configure: Rebuild.
1441 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1442 (CONFIG_DEP_SUBDIR): New variable.
1443 (%.o): Add order-only dependency.
1444 ($(CONFIG_DEP_SUBDIR)): New target.
1445
1446 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1447
1448 PR gdb/21945
1449 * findcmd.c (_initialize_mem_search): Update find command help
1450 text.
1451
1452 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 * python/python.c (do_start_initialization): Change progname
1455 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1456 Python 2.
1457
1458 2017-11-26 Tom Tromey <tom@tromey.com>
1459
1460 * common/format.h: Add include guards.
1461
1462 2017-11-26 Tom Tromey <tom@tromey.com>
1463
1464 * nat/linux-personality.h (class
1465 maybe_disable_address_space_randomization): New class.
1466 (maybe_disable_address_space_randomization): Don't declare
1467 function.
1468 * nat/linux-personality.c (restore_personality)
1469 (make_disable_asr_cleanup): Remove.
1470 (maybe_disable_address_space_randomization): Now a constructor.
1471 (~maybe_disable_address_space_randomization): New destructor.
1472 * linux-nat.c (linux_nat_create_inferior): Update.
1473
1474 2017-11-26 Tom Tromey <tom@tromey.com>
1475
1476 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1477
1478 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1479
1480 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1481 "cooked" register. Access only first four bytes of branch target
1482 registers.
1483
1484 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1485
1486 PR gdb/22491
1487 * stap-probe.c (relocate_address): New function.
1488 (stap_probe::get_relocated_address): Use 'relocate_address'.
1489 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1490 'm_sem_addr'.
1491 (stap_probe::clear_semaphore): Likewise.
1492
1493 2017-11-25 Pedro Alves <palves@redhat.com>
1494
1495 * dictionary.c: Include "safe-ctype.h".
1496 * minsyms.c: Include "safe-ctype.h".
1497 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1498
1499 2017-11-25 Pedro Alves <palves@redhat.com>
1500
1501 * completer.c (complete_line_internal_1): Skip spaces until the
1502 start of the command.
1503
1504 2017-11-24 Pedro Alves <palves@redhat.com>
1505
1506 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1507 cp_fq_symbol_name_matches. Pass language_cplus to
1508 strncmp_with_mode.
1509 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1510 (selftests::test_cp_symbol_name_cmp): New.
1511 (_initialize_cp_support): Register "cp_symbol_name_matches"
1512 selftests.
1513 * language.c (default_symbol_name_matcher): Pass language_minimal
1514 to strncmp_iw_with_mode.
1515 * utils.c: Include "cp-support.h" and <algorithm>.
1516 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1517 (cp_is_operator): New functions.
1518 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1519 skip whitespace in the symbol name when the lookup name doesn't
1520 have spaces, and vice versa.
1521 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1522 * utils.h (strncmp_iw_with_mode): Add language parameter.
1523
1524 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1525
1526 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1527 New functions.
1528 (print_it_exception): If available, display the exception
1529 message as well.
1530 * NEWS: Document new feature.
1531
1532 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1533
1534 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1535
1536 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1537
1538 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1539 (dtrace_probe::is_enabled, dtrace_probe::enable)
1540 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1541 variable
1542 * probe.c (gen_ui_out_table_header_info)
1543 (print_ui_out_not_applicables): Remove keyword 'struct' at
1544 for-range variable
1545
1546 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1547
1548 * configure.tgt: Add arch/aarch64.o
1549
1550 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1551
1552 * common/common-utils.h: Include poison.h.
1553 (xfree): Remove declaration, add definition with static_assert.
1554 * common/common-utils.c (xfree): Remove.
1555 * common/poison.h (IsMallocatable): Define.
1556 (IsFreeable): Define.
1557 (free): Delete for non-freeable types.
1558 (xnew): New.
1559 (XNEW): Undef and redefine.
1560 (xcnew): New.
1561 (XCNEW): Undef and redefine.
1562 (xdelete): New.
1563 (XDELETE): Undef and redefine.
1564 (xnewvec): New.
1565 (XNEWVEC): Undef and redefine.
1566 (xcnewvec): New.
1567 (XCNEWVEC): Undef and redefine.
1568 (xresizevec): New.
1569 (XRESIZEVEC): Undef and redefine.
1570 (xdeletevec): New.
1571 (XDELETEVEC): Undef and redefine.
1572 (xnewvar): New.
1573 (XNEWVAR): Undef and redefine.
1574 (xcnewvar): New.
1575 (XCNEWVAR): Undef and redefine.
1576 (xresizevar): New.
1577 (XRESIZEVAR): Undef and redefine.
1578
1579 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1580
1581 * gdbthread.h (private_thread_info): Define structure type, add
1582 virtual pure destructor.
1583 (thread_info) <priv>: Change type to unique_ptr.
1584 <private_dtor>: Remove.
1585 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1586 (private_thread_info::~private_thread_info): Provide default
1587 implementation.
1588 (thread_info::~thread_info): Don't call private_dtor nor
1589 manually free priv.
1590 * aix-thread.c (private_thread_info): Rename to ...
1591 (aix_thread_info): ... this.
1592 (get_aix_thread_info): New.
1593 (sync_threadlists): Adjust.
1594 (iter_tid): Adjust.
1595 (aix_thread_resume): Adjust.
1596 (aix_thread_fetch_registers): Adjust.
1597 (aix_thread_store_registers): Adjust.
1598 (aix_thread_extra_thread_info): Adjust.
1599 * darwin-nat.h (private_thread_info): Rename to ...
1600 (darwin_thread_info): ... this.
1601 (get_darwin_thread_info): New.
1602 * darwin-nat.c (darwin_init_thread_list): Adjust.
1603 (darwin_check_new_threads): Adjust.
1604 (thread_info_from_private_thread_info): Adjust.
1605 * linux-thread-db.c (private_thread_info): Rename to ...
1606 (thread_db_thread_info): ... this, initialize fields.
1607 (get_thread_db_thread_info): New.
1608 <dying>: Change type to bool.
1609 (update_thread_state): Adjust to type rename.
1610 (record_thread): Adjust to type rename an use of unique_ptr.
1611 (thread_db_pid_to_str): Likewise.
1612 (thread_db_extra_thread_info): Likewise.
1613 (thread_db_thread_handle_to_thread_info): Likewise.
1614 (thread_db_get_thread_local_address): Likewise.
1615 * nto-tdep.h (private_thread_info): Rename to ...
1616 (nto_thread_info): ... this, initialize fields.
1617 (get_nto_thread_info): New.
1618 <name>: Change type to std::string.
1619 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1620 use of unique_ptr.
1621 * nto-procfs.c (update_thread_private_data_name): Adjust to
1622 std::string change, allocate nto_private_thread_info with new.
1623 (update_thread_private_data): Adjust to unique_ptr.
1624 * remote.c (private_thread_info): Rename to ...
1625 (remote_thread_info): ... this, initialize data members with
1626 default values.
1627 <extra, name>: Change type to std::string.
1628 <thread_handle>: Change type to non-pointer.
1629 (free_private_thread_info): Remove.
1630 (get_private_info_thread): Rename to...
1631 (get_remote_thread_info): ... this, change return type, adjust to
1632 use of unique_ptr, use remote_thread_info constructor.
1633 (remote_add_thread): Adjust.
1634 (get_private_info_ptid): Rename to...
1635 (get_remote_thread_info): ...this, change return type.
1636 (remote_thread_name): Use get_remote_thread_info, adjust to
1637 change to std::string.
1638 (struct thread_item) <~thread_item>: Remove.
1639 <thread_handle>: Make non pointer.
1640 (start_thread): Adjust to thread_item::thread_handle type
1641 change.
1642 (remote_update_thread_list): Adjust to type name change, move
1643 strings from temporary to long-lived object instead of
1644 duplicating.
1645 (remote_threads_extra_info): Use get_remote_thread_info.
1646 (process_initial_stop_replies): Likewise.
1647 (resume_clear_thread_private_info): Likewise.
1648 (remote_resume): Adjust to type name change.
1649 (remote_commit_resume): Use get_remote_thread_info.
1650 (process_stop_reply): Adjust to type name change.
1651 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1652 (remote_stopped_by_hw_breakpoint): Likewise.
1653 (remote_stopped_by_watchpoint): Likewise.
1654 (remote_stopped_data_address): Likewise.
1655 (remote_core_of_thread): Likewise.
1656 (remote_thread_handle_to_thread_info): Use
1657 get_private_info_thread, adjust to thread_handle field type
1658 change.
1659
1660 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1661
1662 * remote.c (struct thread_item): Add constructor, disable copy
1663 construction and copy assignment, define default move
1664 construction and move assignment.
1665 <extra, name>: Change type to std::string.
1666 <core>: Initialize.
1667 <thread_handle>: Make non-pointer.
1668 (thread_item_t): Remove typedef.
1669 (DEF_VEC_O(thread_item_t)): Remove.
1670 (threads_listing_context) <contains_thread>: New method.
1671 <remove_thread>: New method.
1672 <items>: Change type to std::vector.
1673 (clear_threads_listing_context): Remove.
1674 (threads_listing_context_remove): Remove.
1675 (remote_newthread_step): Use thread_item constructor, adjust to
1676 change to std::vector.
1677 (start_thread): Use thread_item constructor, adjust to change to
1678 std::vector.
1679 (end_thread): Adjust to change to std::vector and std::string.
1680 (remote_get_threads_with_qthreadinfo): Use thread_item
1681 constructor, adjust to std::vector.
1682 (remote_update_thread_list): Adjust to change to std::vector and
1683 std::string, use threads_listing_context methods.
1684 (remove_child_of_pending_fork): Adjust.
1685 (remove_new_fork_children): Adjust.
1686 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1687 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1688 * unittests/rsp-low-selftests.c: New file.
1689 * common/rsp-low.h: Include common/byte-vector.h.
1690 (hex2bin): New overload.
1691 * common/rsp-low.c (hex2bin): New overload.
1692
1693 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1694
1695 * inferior.h (private_inferior): Define structure type, add
1696 virtual pure destructor.
1697 (inferior) <priv>: Change type to unique_ptr.
1698 * inferior.c (private_inferior::~private_inferior): Provide
1699 default implementation.
1700 (inferior::~inferior): Don't free priv field.
1701 (exit_inferior_1): Likewise.
1702 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1703 (darwin_exception_info): Remove typedef.
1704 (DEF_VEC_O (darwin_thread_t)); Remove.
1705 (private_inferior): Rename to ...
1706 (darwin_private_inferior): ... this, extend private_inferior.
1707 (get_darwin_inferior): New.
1708 <threads>: Change type to std::vector of darwin_thread_t pointers.
1709 * darwin-nat.c (darwin_check_new_threads): Adjust.
1710 (find_inferior_task_it): Adjust.
1711 (darwin_find_thread); Adjust.
1712 (darwin_suspend_inferior): Adjust.
1713 (darwin_resume_inferior): Adjust.
1714 (darwin_find_new_inferior): Adjust.
1715 (darwin_decode_notify_message): Adjust.
1716 (darwin_send_reply): Adjust.
1717 (darwin_resume_inferior_threads): Adjust.
1718 (darwin_suspend_inferior_threads): Adjust.
1719 (darwin_decode_message): Adjust.
1720 (darwin_wait): Adjust.
1721 (darwin_interrupt): Adjust.
1722 (darwin_deallocate_threads): Adjust.
1723 (darwin_mourn_inferior): Adjust, don't free private data.
1724 (darwin_reply_to_all_pending_messages): Adjust.
1725 (darwin_stop_inferior): Adjust.
1726 (darwin_setup_exceptions): Adjust.
1727 (darwin_kill_inferior): Adjust.
1728 (darwin_setup_request_notification): Adjust.
1729 (darwin_attach_pid): Adjust.
1730 (darwin_init_thread_list): Adjust.
1731 (darwin_setup_fake_stop_event): Adjust.
1732 (darwin_attach): Adjust.
1733 (darwin_detach): Adjust.
1734 (darwin_xfer_partial): Adjust.
1735 (set_enable_mach_exceptions): Adjust.
1736 (darwin_pid_to_exec_file): Adjust.
1737 (darwin_get_ada_task_ptid): Adjust.
1738 * darwin-nat-info.c (get_task_from_args): Adjust.
1739 (info_mach_ports_command): Adjust.
1740 (info_mach_region_command): Adjust.
1741 (info_mach_exceptions_command): Adjust.
1742 * remote.c (private_inferior): Rename to ...
1743 (remote_private_inferior): ... this, initialize fields.
1744 (get_remote_inferior); New.
1745 (remote_commit_resume): Use get_remote_inferior.
1746 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1747
1748 2017-11-24 Pedro Alves <palves@redhat.com>
1749
1750 * NEWS: Mention linespecs and explicit locations, and completion
1751 improvements.
1752
1753 2017-11-24 Yao Qi <yao.qi@linaro.org>
1754
1755 * regcache.c (regcache::dump): Remove footnote_register_size.
1756
1757 2017-11-24 Yao Qi <yao.qi@linaro.org>
1758
1759 * regcache.c (cooked_read_test): Add more test for readonly
1760 regcache.
1761
1762 2017-11-24 Yao Qi <yao.qi@linaro.org>
1763
1764 * gdbarch-selftests.c (test_target_has_registers): Move it to
1765 target.c.
1766 (test_target_has_stack): Likewise.
1767 (test_target_has_memory): Likewise.
1768 (test_target_prepare_to_store): Likewise.
1769 (test_target_store_registers): Likewise.
1770 (test_target_ops): Likewise.
1771 * regcache.c: Include selftest-arch.h and gdbthread.h.
1772 (target_ops_no_register): New class.
1773 (test_target_fetch_registers): New.
1774 (test_target_store_registers): New.
1775 (test_target_xfer_partial): New.
1776 (readwrite_regcache): New.
1777 (cooked_read_test): New.
1778 (_initialize_regcache): Register the test.
1779 * target.c: (test_target_has_registers): Moved from
1780 gdbarch-selftests.c.
1781 (test_target_has_stack): Likewise.
1782 (test_target_has_memory): Likewise.
1783 (test_target_prepare_to_store): Likewise.
1784 (test_target_store_registers): Likewise.
1785 * target.h (test_target_ops): New class.
1786
1787 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1788
1789 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1790 selftest.
1791
1792 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1793
1794 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1795 * arch/aarch64.c (aarch64_create_target_description): Create
1796 new target description.
1797 * features/Makefile: Add new files.
1798 * features/aarch64.c: Remove file.
1799 * features/aarch64-core.c: New autogenerated file.
1800 * features/aarch64-fpu.c: New autogenerated file.
1801 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1802
1803 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1804
1805 * Makefile.in: Add new files.
1806 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1807 aarch64_read_description.
1808 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1809 Call aarch64_read_description.
1810 * aarch64-tdep.c (aarch64_read_description): New function.
1811 (aarch64_gdbarch_init): Call aarch64_read_description.
1812 * aarch64-tdep.h (aarch64_read_description): New function.
1813 * arch/aarch64.c: New file.
1814 * configure.tgt: Add new files.
1815
1816 2017-11-24 Yao Qi <yao.qi@linaro.org>
1817
1818 * mi/mi-main.c (register_changed_p): Update.
1819 * value.c (value_contents_bits_eq): Change return type.
1820 (value_contents_eq): Likewise.
1821 * value.h: Update comments.
1822
1823 2017-11-24 Yao Qi <yao.qi@linaro.org>
1824
1825 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1826 local 'changed'. Remove error.
1827 (register_changed_p): Change return type to bool.
1828
1829 2017-11-24 Yao Qi <yao.qi@linaro.org>
1830
1831 * arch/tic6x.c: New file.
1832 * arch/tic6x.h: New file.
1833 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1834 tic6x-core.xml and tic6x-gp.xml.
1835 * features/tic6x-c6xp.c: Generated.
1836 * features/tic6x-core.c: Generated.
1837 * features/tic6x-gp.c: Generated.
1838 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1839 "tic6x-".
1840
1841 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1842
1843 * mi/mi-main.c (list_available_thread_groups): Change map value
1844 type to std::vector.
1845
1846 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1847
1848 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1849
1850 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1851
1852 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1853 back to...
1854 <children_requested>: ... this.
1855 (varobj_get_num_children, varobj_update): Adjust.
1856
1857 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1858
1859 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1860 (ada_value_has_mutated): Likewise.
1861 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1862 (c_is_path_expr_parent): Likewise.
1863 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1864 (mi_cmd_var_set_frozen): Likewise.
1865 (mi_cmd_var_update_iter): Likewise.
1866 (mi_cmd_var_update): Likewise.
1867 * varobj.c (pretty_printing): Likewise.
1868 (varobj_enable_pretty_printing): Likewise.
1869 (struct varobj_root) <floating, is_valid>: Likewise.
1870 (struct varobj_dynamic) <children_requested>: Likewise.
1871 (delete_variable): Likewise.
1872 (delete_variable_1): Likewise.
1873 (install_variable): Likewise.
1874 (update_type_if_necessary): Likewise.
1875 (install_new_value): Likewise.
1876 (value_of_root): Likewise.
1877 (is_root_p): Likewise.
1878 (varobj_create): Likewise.
1879 (varobj_delete): Likewise.
1880 (varobj_has_more): Likewise.
1881 (varobj_set_frozen): Likewise.
1882 (varobj_get_frozen): Likewise.
1883 (install_dynamic_child): Likewise.
1884 (dynamic_varobj_has_child_method): Likewise.
1885 (update_dynamic_varobj_children): Likewise.
1886 (varobj_get_num_children): Likewise.
1887 (varobj_list_children): Likewise.
1888 (is_path_expr_parent): Likewise.
1889 (varobj_default_is_path_expr_parent): Likewise.
1890 (varobj_is_dynamic_p): Likewise.
1891 (varobj_set_value): Likewise.
1892 (varobj_value_has_mutated): Likewise.
1893 (varobj_update): Likewise.
1894 (check_scope): Likewise.
1895 (value_of_root_1): Likewise.
1896 (varobj_value_get_print_value): Likewise.
1897 (varobj_editable_p): Likewise.
1898 (varobj_value_is_changeable_p): Likewise.
1899 (varobj_floating_p): Likewise.
1900 (varobj_default_value_is_changeable_p): Likewise.
1901 (varobj_invalidate_iter): Likewise.
1902 * varobj.h (struct varobj_update_result) <type_changed,
1903 children_changed, changed, value_installed>: Likewise.
1904 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1905 (struct lang_varobj_ops) <value_is_changeable_p,
1906 value_has_mutated, is_path_expr_parent>: Likewise.
1907 (varobj_delete): Likewise.
1908 (varobj_set_frozen): Likewise.
1909 (varobj_get_frozen): Likewise.
1910 (varobj_set_value): Likewise.
1911 (varobj_update): Likewise.
1912 (varobj_editable_p): Likewise.
1913 (varobj_floating_p): Likewise.
1914 (varobj_has_more): Likewise.
1915 (varobj_is_dynamic_p): Likewise.
1916 (varobj_default_value_is_changeable_p): Likewise.
1917 (varobj_value_is_changeable_p): Likewise.
1918 (varobj_is_anonymous_child): Likewise.
1919 (varobj_default_is_path_expr_parent): Likewise.
1920
1921 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1922
1923 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1924 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1925 <type_str>: Convert to 'std::string'.
1926 <expr>: Convert to 'expression_up'.
1927 (dtrace_probe_arg_s): Delete type and VEC.
1928 (dtrace_probe_enabler_s): Likewise.
1929 (struct dtrace_probe): Replace by...
1930 (class dtrace_static_probe_ops): ...this and...
1931 (class dtrace_probe): ...this.
1932 (dtrace_probe_is_linespec): Rename to...
1933 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1934 to reflect change.
1935 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1936 Adjust code. Create new instance of 'dtrace_probe'.
1937 (dtrace_build_arg_exprs): Rename to...
1938 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1939 reflect change.
1940 (dtrace_get_probes): Rename to...
1941 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1942 to reflect change.
1943 (dtrace_get_arg): Rename to...
1944 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1945 reflect change.
1946 (dtrace_probe_is_enabled): Rename to...
1947 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1948 change.
1949 (dtrace_get_probe_address): Rename to...
1950 (dtrace_probe::get_relocated_address): ...this. Adjust code
1951 to reflect change.
1952 (dtrace_get_probe_argument_count): Rename to...
1953 (dtrace_probe::get_argument_count): ...this. Adjust code to
1954 reflect change.
1955 (dtrace_can_evaluate_probe_arguments): Rename to...
1956 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1957 to reflect change.
1958 (dtrace_evaluate_probe_argument): Rename to...
1959 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1960 reflect change.
1961 (dtrace_compile_to_ax): Rename to...
1962 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1963 reflect change.
1964 (dtrace_probe_destroy): Delete.
1965 (dtrace_type_name): Rename to...
1966 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1967 reflect change.
1968 (dtrace_probe::get_static_ops): New method.
1969 (dtrace_gen_info_probes_table_header): Rename to...
1970 (dtrace_static_probe_ops::gen_info_probes_table_header):
1971 ...this. Adjust code to reflect change.
1972 (dtrace_gen_info_probes_table_values): Rename to...
1973 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1974 code to reflect change.
1975 (dtrace_enable_probe): Rename to...
1976 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1977 change.
1978 (dtrace_disable_probe): Rename to...
1979 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1980 change.
1981 (struct probe_ops dtrace_probe_ops): Delete.
1982 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1983 instead of 'info_probes_for_ops'.
1984 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1985 of 'all_probe_ops'.
1986
1987 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1988 Simon Marchi <simark@simark.ca>
1989
1990 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1991 variable.
1992 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1993 <aexpr>: Change type to 'expression_up'.
1994 (stap_probe_arg_s): Delete type and VEC.
1995 (struct stap_probe): Delete. Replace by...
1996 (class stap_static_probe_ops): ...this and...
1997 (class stap_probe): ...this. Rename variables to add 'm_'
1998 prefix. Do not use 'union' for arguments anymore.
1999 (stap_get_expected_argument_type): Receive probe name instead
2000 of 'struct stap_probe'. Adjust code.
2001 (stap_parse_probe_arguments): Rename to...
2002 (stap_probe::parse_arguments): ...this. Adjust code to
2003 reflect change.
2004 (stap_get_probe_address): Rename to...
2005 (stap_probe::get_relocated_address): ...this. Adjust code
2006 to reflect change.
2007 (stap_get_probe_argument_count): Rename to...
2008 (stap_probe::get_argument_count): ...this. Adjust code
2009 to reflect change.
2010 (stap_get_arg): Rename to...
2011 (stap_probe::get_arg_by_number'): ...this. Adjust code to
2012 reflect change.
2013 (can_evaluate_probe_arguments): Rename to...
2014 (stap_probe::can_evaluate_arguments): ...this. Adjust code
2015 to reflect change.
2016 (stap_evaluate_probe_argument): Rename to...
2017 (stap_probe::evaluate_argument): ...this. Adjust code
2018 to reflect change.
2019 (stap_compile_to_ax): Rename to...
2020 (stap_probe::compile_to_ax): ...this. Adjust code to
2021 reflect change.
2022 (stap_probe_destroy): Delete.
2023 (stap_modify_semaphore): Adjust comment.
2024 (stap_set_semaphore): Rename to...
2025 (stap_probe::set_semaphore): ...this. Adjust code to reflect
2026 change.
2027 (stap_clear_semaphore): Rename to...
2028 (stap_probe::clear_semaphore): ...this. Adjust code to
2029 reflect change.
2030 (stap_probe::get_static_ops): New method.
2031 (handle_stap_probe): Adjust code to create instance of
2032 'stap_probe'.
2033 (stap_get_probes): Rename to...
2034 (stap_static_probe_ops::get_probes): ...this. Adjust code to
2035 reflect change.
2036 (stap_probe_is_linespec): Rename to...
2037 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
2038 reflect change.
2039 (stap_type_name): Rename to...
2040 (stap_static_probe_ops::type_name): ...this. Adjust code to
2041 reflect change.
2042 (stap_gen_info_probes_table_header): Rename to...
2043 (stap_static_probe_ops::gen_info_probes_table_header):
2044 ...this. Adjust code to reflect change.
2045 (stap_gen_info_probes_table_values): Rename to...
2046 (stap_probe::gen_info_probes_table_values): ...this. Adjust
2047 code to reflect change.
2048 (struct probe_ops stap_probe_ops): Delete.
2049 (info_probes_stap_command): Use 'info_probes_for_spops'
2050 instead of 'info_probes_for_ops'.
2051 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
2052 of 'all_probe_ops'.
2053
2054 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
2055
2056 * break-catch-throw.c (fetch_probe_arguments): Use
2057 'probe.prob' instead of 'probe.probe'.
2058 * breakpoint.c (create_longjmp_master_breakpoint): Call
2059 'can_evaluate_arguments' and 'get_relocated_address' methods
2060 from probe.
2061 (create_exception_master_breakpoint): Likewise.
2062 (add_location_to_breakpoint): Use 'sal->prob' instead of
2063 'sal->probe'.
2064 (bkpt_probe_insert_location): Call 'set_semaphore' method from
2065 probe.
2066 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
2067 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
2068 of 'probe_ops'.
2069 (probe_key_free): Call 'delete' on probe.
2070 (check_exception_resume): Use 'probe.prob' instead of
2071 'probe.probe'.
2072 * location.c (string_to_event_location_basic): Call
2073 'probe_linespec_to_static_ops'.
2074 * probe.c (class any_static_probe_ops): New class.
2075 (any_static_probe_ops any_static_probe_ops): New variable.
2076 (parse_probes_in_pspace): Receive 'static_probe_ops' as
2077 argument. Adjust code to reflect change.
2078 (parse_probes): Use 'static_probe_ops' instead of
2079 'probe_ops'. Adjust code to reflect change.
2080 (find_probes_in_objfile): Call methods to get name and
2081 provider from probe.
2082 (find_probe_by_pc): Use 'result.prob' instead of
2083 'result.probe'. Call 'get_relocated_address' method from
2084 probe.
2085 (collect_probes): Adjust comment and argument list to receive
2086 'static_probe_ops' instead of 'probe_ops'. Adjust code to
2087 reflect change. Call necessary methods from probe.
2088 (compare_probes): Call methods to get name and provider from
2089 probes.
2090 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
2091 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
2092 adjust code accordingly.
2093 (print_ui_out_not_applicables): Likewise.
2094 (info_probes_for_ops): Rename to...
2095 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
2096 as argument instead of 'probe_ops'. Adjust code. Call
2097 necessary methods from probe.
2098 (info_probes_command): Use 'info_probes_for_spops'.
2099 (enable_probes_command): Pass correct argument to
2100 'collect_probes'. Call methods from probe.
2101 (disable_probes_command): Likewise.
2102 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
2103 (get_probe_argument_count): Move to
2104 'any_static_probe_ops::get_argument_count'.
2105 (can_evaluate_probe_arguments): Move to
2106 'any_static_probe_ops::can_evaluate_arguments'.
2107 (evaluate_probe_argument): Move to
2108 'any_static_probe_ops::evaluate_argument'.
2109 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
2110 'probe.probe'.
2111 (probe_linespec_to_ops): Rename to...
2112 (probe_linespec_to_static_ops): ...this. Adjust code.
2113 (probe_any_is_linespec): Rename to...
2114 (any_static_probe_ops::is_linespec): ...this.
2115 (probe_any_get_probes): Rename to...
2116 (any_static_probe_ops::get_probes): ...this.
2117 (any_static_probe_ops::type_name): New method.
2118 (any_static_probe_ops::gen_info_probes_table_header): New
2119 method.
2120 (compute_probe_arg): Use 'pc_probe.prob' instead of
2121 'pc_probe.probe'. Call methods from probe.
2122 (compile_probe_arg): Likewise.
2123 (std::vector<const probe_ops *> all_probe_ops): Delete.
2124 (std::vector<const static_probe_ops *> all_static_probe_ops):
2125 New variable.
2126 (_initialize_probe): Use 'all_static_probe_ops' instead of
2127 'all_probe_ops'.
2128 * probe.h (struct info_probe_column) <field_name>: Delete
2129 extraneous newline
2130 (info_probe_column_s): Delete type and VEC.
2131 (struct probe_ops): Delete. Replace with...
2132 (class static_probe_ops): ...this and...
2133 (clas probe): ...this.
2134 (struct bound_probe) <bound_probe>: Delete extraneous
2135 newline. Adjust constructor to receive 'probe' instead of
2136 'struct probe'.
2137 <probe>: Rename to...
2138 <prob>: ...this. Delete extraneous newline.
2139 <objfile>: Delete extraneous newline.
2140 (register_probe_ops): Delete unused prototype.
2141 (info_probes_for_ops): Rename to...
2142 (info_probes_for_spops): ...this. Adjust comment.
2143 (get_probe_address): Move to 'probe::get_address'.
2144 (get_probe_argument_count): Move to
2145 'probe::get_argument_count'.
2146 (can_evaluate_probe_arguments): Move to
2147 'probe::can_evaluate_arguments'.
2148 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
2149 * solib-svr4.c (struct svr4_info): Adjust comment.
2150 (struct probe_and_action) <probe>: Rename to...
2151 <prob>: ...this.
2152 (register_solib_event_probe): Receive 'probe' instead of
2153 'struct probe' as argument. Use 'prob' instead of 'probe'
2154 when applicable.
2155 (solib_event_probe_action): Call 'get_argument_count' method
2156 from probe. Adjust comment.
2157 (svr4_handle_solib_event): Adjust comment. Call
2158 'evaluate_argument' method from probe.
2159 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
2160 from probe.
2161 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
2162 'struct probe'. Call 'can_evaluate_arguments' from probe.
2163 * symfile.h: Forward declare 'class probe' instead of 'struct
2164 probe'.
2165 * symtab.h: Likewise.
2166 (struct symtab_and_line) <probe>: Rename to...
2167 <prob>: ...this.
2168 * tracepoint.c (start_tracing): Use 'prob' when applicable.
2169 Call probe methods.
2170 (stop_tracing): Likewise.
2171
2172 2017-11-22 Joel Brobecker <brobecker@adacore.com>
2173
2174 * ravenscar-thread.c (ravenscar_inferior_created): Remove
2175 trailing newline at end of string in call to warning.
2176
2177 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2178
2179 * osdata.h: Include vector isntead of vec.h.
2180 (osdata_column_s): Remove typedef.
2181 (struct osdata_column): Add constructor.
2182 <name, value>: Change type to std::string.
2183 (DEF_VEC_O (osdata_column_s)): Remove.
2184 (osdata_item_s): Remove typedef.
2185 (struct osdata_item) <columns>: Change type to std::vector.
2186 (DEF_VEC_O (osdata_item_s)): Remove.
2187 (struct osdata): Add constructor.
2188 <type>: Change type to std::string.
2189 <items>: Change type to std::vector.
2190 (osdata_p): Remove typedef.
2191 (DEF_VEC_P (osdata_p)): Remove.
2192 (osdata_parse): Return a unique_ptr.
2193 (osdata_free): Remove.
2194 (make_cleanup_osdata_free): Remove.
2195 (get_osdata): Return a unique_ptr.
2196 (get_osdata_column): Return pointer to std::string, take a
2197 reference to osdata_item as parameter.
2198 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
2199 unique_ptr.
2200 <property_name>: Change type to std::string.
2201 (osdata_start_osdata): Allocate osdata with new and adjust.
2202 (osdata_start_item): Adjust.
2203 (osdata_start_column): Adjust.
2204 (osdata_end_column): Adjust.
2205 (clear_parsing_data): Remove.
2206 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
2207 (osdata_item_clear): Remove.
2208 (get_osdata): return a unique_ptr and adjust.
2209 (get_osdata_column): Return a pointer to std::string and adjust.
2210 (info_osdata): Adjust.
2211 * mi/mi-main.c: Include <map>.
2212 (free_vector_of_osdata_items): Remove.
2213 (list_available_thread_groups): Adjust, use std::map instead of
2214 splay tree.
2215
2216 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
2217
2218 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
2219 case in switch.
2220
2221 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
2224
2225 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * varobj.h (struct varobj_update_result): Add constructor, add
2228 move constructor, disable copy and assign, initialize fields.
2229 <newobj>: Change type to std::vector.
2230 (varobj_update): Return std::vector.
2231 * varobj.c (install_dynamic_child): Change VEC parameters to
2232 std::vector and adjust.
2233 (update_dynamic_varobj_children): Likewise.
2234 (varobj_update): Return std::vector and adjust.
2235 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
2236
2237 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2238
2239 * varobj.h (struct varobj) <parent>: Remove const.
2240 <children>: Change type to std::vector.
2241 (varobj_list_children): Return std::vector const reference.
2242 (varobj_restrict_range): Change parameter type to std::vector
2243 const reference.
2244 * varobj.c (varobj_has_more): Adjust.
2245 (varobj_restrict_range): Change parameter type to std::vector
2246 const reference and adjust.
2247 (install_dynamic_child): Adjust.
2248 (update_dynamic_varobj_children): Adjust.
2249 (varobj_list_children): Return std::vector const reference and
2250 adjust.
2251 (varobj_add_child): Adjust.
2252 (update_type_if_necessary): Adjust.
2253 (varobj_update): Adjust.
2254 (delete_variable_1): Adjust.
2255 * ada-varobj.c (ada_value_has_mutated): Adjust.
2256 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
2257
2258 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2259
2260 * varobj.h (struct varobj): Add constructor and destructor,
2261 initialize fields.
2262 * varobj.c (struct varobj_root): Initialize fields.
2263 (struct varobj_dynamic): Initialize fields.
2264 (varobj_create): Use unique_ptr instead of cleanup. Create
2265 varobj with new instead of new_root_variable.
2266 (delete_variable_1): Free variable with delete instead of
2267 free_variable.
2268 (create_child_with_value): Create variable with new instead of
2269 new_variable.
2270 (varobj::varobj): New.
2271 (varobj::~varobj): New (body mostly coming from free_variable).
2272 (new_variable): Remove.
2273 (free_variable): Remove.
2274 (do_free_variable_cleanup): Remove.
2275 (make_cleanup_free_variable): Remove.
2276
2277 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2278
2279 * core-regset.c: Remove file.
2280 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
2281
2282 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2283
2284 * NEWS: Document use of GNU MPFR.
2285 * README: Likewise.
2286
2287 * Makefile.in (LIBMPFR): Add define.
2288 (CLIBS): Add $(LIBMPFR).
2289 * configure.ac: Add --with-mpfr configure option.
2290 * configure: Regenerate.
2291 * config.in: Regenerate.
2292
2293 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2294 (class mpfr_float_ops): New type.
2295 (mpfr_float_ops::from_target): Two new overloaded functions.
2296 (mpfr_float_ops::to_target): Likewise.
2297 (mpfr_float_ops::to_string): New function.
2298 (mpfr_float_ops::from_string): Likewise.
2299 (mpfr_float_ops::to_longest): Likewise.
2300 (mpfr_float_ops::from_longest): Likewise.
2301 (mpfr_float_ops::from_ulongest): Likewise.
2302 (mpfr_float_ops::to_host_double): Likewise.
2303 (mpfr_float_ops::from_host_double): Likewise.
2304 (mpfr_float_ops::convert): Likewise.
2305 (mpfr_float_ops::binop): Likewise.
2306 (mpfr_float_ops::compare): Likewise.
2307 (get_target_float_ops): Use mpfr_float_ops if available.
2308
2309 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2310
2311 * target-float.c: Do not include <math.h>.
2312 Include <cmath> and <limits>.
2313 (DOUBLEST): Do not define.
2314 (class target_float_ops): New type.
2315 (class host_float_ops): New templated type.
2316 (class decimal_float_ops): New type.
2317
2318 (floatformat_to_doublest): Rename to ...
2319 (host_float_ops<T>::from_target): ... this. Use template type T
2320 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2321 (host_float_ops<T>::from_target): New overload using a type argument.
2322 (floatformat_from_doublest): Rename to ...
2323 (host_float_ops<T>::to_target): ... this. Use template type T
2324 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2325 (host_float_ops<T>::to_target): New overload using a type argument.
2326 (floatformat_printf_format): New function.
2327 (struct printf_length_modifier): New templated type.
2328 (floatformat_to_string): Rename to ...
2329 (host_float_ops<T>::to_string): ... this. Use type instead of
2330 floatformat argument. Use floatformat_printf_format and
2331 printf_length_modifier. Remove special handling of invalid numbers,
2332 infinities and NaN (moved to target_float_to_string).
2333 (struct scanf_length_modifier): New templated type.
2334 (floatformat_from_string): Rename to ...
2335 (host_float_ops<T>::from_string): ... this. Use type instead of
2336 floatformat argument. Use scanf_length_modifier.
2337 (floatformat_to_longest): Rename to ...
2338 (host_float_ops<T>::to_longest): ... this. Use type instead of
2339 floatformat argument. Handle out-of-range values deterministically.
2340 (floatformat_from_longest): Rename to ...
2341 (host_float_ops<T>::from_longest): ... this. Use type instead of
2342 floatformat argument.
2343 (floatformat_from_ulongest): Rename to ...
2344 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2345 floatformat argument.
2346 (floatformat_to_host_double): Rename to ...
2347 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2348 floatformat argument.
2349 (floatformat_from_host_double): Rename to ...
2350 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2351 floatformat argument.
2352 (floatformat_convert): Rename to ...
2353 (host_float_ops<T>::convert): ... this. Use type instead of
2354 floatformat arguments. Remove handling of no-op conversions.
2355 (floatformat_binop): Rename to ...
2356 (host_float_ops<T>::binop): ... this. Use type instead of
2357 floatformat arguments.
2358 (floatformat_compare): Rename to ...
2359 (host_float_ops<T>::compare): ... this. Use type instead of
2360 floatformat arguments.
2361
2362 (match_endianness): Use type instead of length/byte_order arguments.
2363 (set_decnumber_context): Likewise.
2364 (decimal_from_number): Likewise. Update calls.
2365 (decimal_to_number): Likewise.
2366 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2367 (decimal_float_ops::to_host_double): New dummy function.
2368 (decimal_float_ops::from_host_double): Likewise.
2369 (decimal_to_string): Rename to ...
2370 (decimal_float_ops::to_string): ... this. Use type instead of
2371 length/byte_order arguments. Update calls.
2372 (decimal_from_string): Rename to ...
2373 (decimal_float_ops::from_string): ... this. Use type instead of
2374 length/byte_order arguments. Update calls.
2375 (decimal_from_longest): Rename to ...
2376 (decimal_float_ops::from_longest): ... this. Use type instead of
2377 length/byte_order arguments. Update calls.
2378 (decimal_from_ulongest): Rename to ...
2379 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2380 length/byte_order arguments. Update calls.
2381 (decimal_to_longest): Rename to ...
2382 (decimal_float_ops::to_longest): ... this. Use type instead of
2383 length/byte_order arguments. Update calls.
2384 (decimal_binop): Rename to ...
2385 (decimal_float_ops::binop): ... this. Use type instead of
2386 length/byte_order arguments. Update calls.
2387 (decimal_compare): Rename to ...
2388 (decimal_float_ops::compare): ... this. Use type instead of
2389 length/byte_order arguments. Update calls.
2390 (decimal_convert): Rename to ...
2391 (decimal_float_ops::convert): ... this. Use type instead of
2392 length/byte_order arguments. Update calls.
2393
2394 (target_float_same_category_p): New function.
2395 (target_float_same_format_p): Likewise.
2396 (target_float_format_length): Likewise.
2397 (enum target_float_ops_kind): New type.
2398 (get_target_float_ops_kind): New function.
2399 (get_target_float_ops): Three new overloaded functions.
2400
2401 (target_float_is_zero): Update call.
2402 (target_float_to_string): Add special handling of invalid numbers,
2403 infinities and NaN (moved from floatformat_to_string). Use
2404 target_float_ops callback.
2405 (target_float_from_string): Use target_float_ops callback.
2406 (target_float_to_longest): Likewise.
2407 (target_float_from_longest): Likewise.
2408 (target_float_from_ulongest): Likewise.
2409 (target_float_to_host_double): Likewise.
2410 (target_float_from_host_double): Likewise.
2411 (target_float_convert): Add special case for no-op conversions.
2412 Use target_float_ops callback.
2413 (target_float_binop): Use target_float_ops callback.
2414 (target_float_compare): Likewise.
2415
2416 2017-11-22 Yao Qi <yao.qi@linaro.org>
2417
2418 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2419
2420 2017-11-22 Yao Qi <yao.qi@linaro.org>
2421
2422 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2423 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2424
2425 2017-11-21 Jerome Guitton <guitton@adacore.com>
2426
2427 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2428 with event ptid from the lower layer before doing the
2429 ravenscar-specific update.
2430
2431 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2432
2433 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2434 the ptid's TID is nonzero.
2435
2436 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2437
2438 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2439 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2440 Make non-static. Change return type to char *. Adjust code
2441 accordingly. Rewrite the function's documentation.
2442 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2443 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2444 we have enough debugging information in the runtime to support
2445 Ada task debugging before we enable the ravenscar-thread layer.
2446
2447 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2448
2449 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2450 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2451 * ravenscar-thread.c: Add into comment.
2452 (base_magic_null_ptid): Delete.
2453 (base_ptid): Change documentation.
2454 (ravenscar_active_task): Renames ravenscar_running_thread.
2455 All callers updated throughout.
2456 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2457 (ravenscar_task_is_currently_active): Likewise.
2458 (get_base_thread_from_ravenscar_task): Ditto.
2459 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2460 (ravenscar_runtime_initialized): Likewise.
2461 (get_running_thread_id): Add new parameter "cpu". Adjust
2462 implementation to handle this new parameter.
2463 (ravenscar_fetch_registers): Small adjustment to use
2464 is_ravenscar_task and ravenscar_task_is_currently_active in
2465 order to decide whether to use the target beneath or this
2466 module's arch_ops.
2467 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2468 (ravenscar_stopped_by_sw_breakpoint): Use
2469 get_base_thread_from_ravenscar_task to get the underlying
2470 thread, rather than using base_ptid.
2471 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2472 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2473 Likewise.
2474 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2475
2476 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2477
2478 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2479 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2480 (get_tcb_types_info): Set fieldnos.base_cpu.
2481 (read_atcb): Set task_info->base_cpu.
2482 (info_task): Print "Base CPU" info if set by runtime.
2483
2484 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2485
2486 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2487 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2488 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2489 New functions.
2490 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2491 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2492 to_stopped_data_address and to_core_of_thread fields of
2493 ravenscar_ops.
2494
2495 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2496
2497 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2498 (struct gdbarch_tdep): New member long_double_abi.
2499 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2500 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2501 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2502 format depending on long_double_abi tdep member.
2503 (ppc_floatformat_for_type): Handle __ibm128 type.
2504
2505 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2506
2507 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2508
2509 2017-11-21 Pedro Alves <palves@redhat.com>
2510
2511 * dwarf2read.c (mapped_index::find_name_components_bounds)
2512 <completion mode, upper bound>: Use std::lower_bound instead of
2513 std::upper_bound.
2514 (test_mapped_index_find_name_component_bounds): Remove incorrect
2515 "t1_fund" from expected symbols.
2516
2517 2017-11-21 Pedro Alves <palves@redhat.com>
2518
2519 * dwarf2read.c (mapped_index::name_components_casing): New field.
2520 (mapped_index) <build_name_components,
2521 find_name_components_bounds): Declare new methods.
2522 (mapped_index::find_name_components_bounds)
2523 (mapped_index::build_name_components): New methods, factored out
2524 from dw2_expand_symtabs_matching_symbol.
2525 (check_find_bounds_finds)
2526 (test_mapped_index_find_name_component_bounds): New.
2527 (run_test): Rename to ...
2528 (test_dw2_expand_symtabs_matching_symbol): ... this.
2529 (run_test): Reimplement.
2530
2531 2017-11-21 Pedro Alves <palves@redhat.com>
2532
2533 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2534 (symbol_end): Use cp_ident_is_alnum.
2535 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2536 * dwarf2read.c (make_sort_after_prefix_name): New function.
2537 (dw2_expand_symtabs_matching_symbol): Use it.
2538 (test_symbols): Add more symbols.
2539 (run_test): Add tests.
2540
2541 2017-11-17 Tom Tromey <tom@tromey.com>
2542
2543 * symtab.h (enum symbol_subclass_kind): New.
2544 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2545 Remove.
2546 <subclass>: New member.
2547 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2548 * rust-lang.c (rust_get_trait_object_pointer): Update.
2549 * dwarf2read.c (read_func_scope): Update.
2550 (read_variable): Update.
2551
2552 2017-11-17 Tom Tromey <tom@tromey.com>
2553
2554 * dwarf2read.c (read_func_scope): Update.
2555 * symtab.h (struct template_symbol): Derive from symbol.
2556 <base>: Remove.
2557
2558 2017-11-17 Tom Tromey <tom@tromey.com>
2559
2560 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2561 (struct rust_vtable_symbol): New.
2562 (find_symbol_at_address): Declare.
2563 * symtab.c (find_symbol_at_address): New function.
2564 * symfile.h (struct quick_symbol_functions)
2565 <find_compunit_symtab_by_address>: New member.
2566 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2567 function.
2568 (debug_sym_quick_functions): Link to
2569 debug_qf_find_compunit_symtab_by_address.
2570 * rust-lang.c (rust_get_trait_object_pointer): New function.
2571 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2572 rust_get_trait_object_pointer.
2573 * psymtab.c (psym_relocate): Clear psymbol_map.
2574 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2575 functions.
2576 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2577 * objfiles.h (struct objfile) <psymbol_map>: New member.
2578 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2579 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2580 (rust_containing_type, read_variable): New functions.
2581
2582 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2583
2584 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2585
2586 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2587
2588 * common/filestuff.c: Include <algorithm>.
2589 (open_fds): Change type to std::vector<int>.
2590 (do_mark_open_fd): Adjust.
2591 (unmark_fd_no_cloexec): Adjust.
2592 (do_close): Adjust.
2593
2594 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * breakpoint.c (output_thread_groups): Take an std::vector.
2597 (print_one_breakpoint_location): Adjust.
2598
2599 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2600
2601 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2602 (ada_evaluate_subexp_for_cast): New function.
2603 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2604 ada_evaluate_subexp_for_cast.
2605 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2606 eval_skip_value.
2607 * eval.c (evaluate_var_value): Make non-static.
2608 (evaluate_var_msym_value, eval_skip_value): Likewise.
2609 * value.h (evaluate_var_value, evaluate_var_msym_value)
2610 (eval_skip_value): Declare.
2611
2612 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2613
2614 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2615 Update all callers.
2616
2617 2017-11-16 Pedro Alves <palves@redhat.com>
2618
2619 * python/py-unwind.c (pyuw_sniffer): Translate
2620 PyExc_KeyboardInterrupt to a GDB Quit exception.
2621
2622 2017-11-16 Pedro Alves <palves@redhat.com>
2623
2624 * infrun.c (resume_cleanups): Delete.
2625 (resume): No longer install a resume_cleanups cleanup nor call
2626 QUIT.
2627 (proceed): Pass the terminal to the inferior.
2628 (keep_going_pass_signal): No longer install a resume_cleanups
2629 cleanup.
2630
2631 2017-11-16 Pedro Alves <palves@redhat.com>
2632
2633 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2634 if the prompt is blocked.
2635
2636 2017-11-16 Pedro Alves <palves@redhat.com>
2637
2638 * breakpoint.c (insert_bp_location): Replace bp_err and
2639 bp_err_message locals by a gdb_exception local.
2640
2641 2017-11-16 Pedro Alves <palves@redhat.com>
2642
2643 * inflow.c (scoped_ignore_sigttou): New class.
2644 (child_terminal_ours_1, new_tty): Use it.
2645
2646 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2647
2648 * target-float.c (decimal_from_number): Add byte_order argument and
2649 call match_endianness. Error if unknown floating-point type.
2650 (decimal_to_number): Add byte_order argument and call match_endianness.
2651 (decimal_from_longest): Update call. Do not call match_endianness.
2652 (decimal_from_ulongest): Likewise.
2653 (decimal_binop): Likewise.
2654 (decimal_is_zero): Likewise.
2655 (decimal_compare): Likewise.
2656 (decimal_convert): Likewise.
2657
2658 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2659
2660 * python/python.c (gdbpy_rbreak): New function.
2661 * NEWS: Document Python rbreak feature.
2662
2663 2017-11-16 Yao Qi <yao.qi@linaro.org>
2664
2665 * features/tic6x-c62x.xml: Remove.
2666 * features/tic6x-c64x.xml: Remove.
2667 * features/tic6x-c64xp.xml: Remove.
2668
2669 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2670
2671 * symtab.h: Include <array>.
2672
2673 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2674
2675 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2676 (bsd_kvm_proc_cmd): Likewise.
2677
2678 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2679
2680 * tui/tui-win.c (window_name_completer): Replace VEC with
2681 std::vector.
2682
2683 2017-11-15 Andrew Cagney <cagney@gnu.org>
2684
2685 * MAINTAINERS: Remove no-longer applicable entries.
2686
2687 2017-11-15 Andrew Cagney <cagney@gnu.org>
2688
2689 * MAINTAINERS: Move self to Past Maintainers.
2690
2691 2017-11-15 Yao Qi <yao.qi@linaro.org>
2692
2693 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2694 * features/nios2-linux.c: Remove.
2695 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2696 initialize_tdesc_nios2_linux.
2697
2698 2017-11-15 Yao Qi <yao.qi@linaro.org>
2699
2700 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2701 M68HC11_LAST_HARD_REG + 1.
2702
2703 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2704
2705 PR gdb/22388
2706 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2707 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2708 Return TARGET_XFER_EOF if size of returned data is 0.
2709
2710 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2711
2712 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2713 memory-map-selftests.c.
2714 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2715 * memory-map.c (memory_map_start_memory): Fix computation of hi
2716 address.
2717 * unittests/memory-map-selftests.c: New file.
2718
2719 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2720
2721 * ada-lang.c: Fix some typos in the general command documenting
2722 how Ada expressions are being evaluated and how their result
2723 is printed.
2724
2725 2017-11-09 Tom Tromey <tom@tromey.com>
2726
2727 * psymtab.c (psymbol_hash): Do not hash string contents.
2728 (psymbol_compare): Add comment.
2729
2730 2017-11-09 Tom Tromey <tom@tromey.com>
2731
2732 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2733
2734 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2735
2736 * ada-exp.y (write_var_from_sym): Remove parameter
2737 "orig_left_context". Update all callers.
2738
2739 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2740
2741 * tracepoint.h (class collection_list) <stringify>: Return
2742 std::vector<std::string>.
2743 (encode_actions_rsp): Change parameters to
2744 std::vector<std::string> *.
2745 * tracepoint.c (collection_list::stringify): Return
2746 std::vector<std::string> and adjust accordingly.
2747 (encode_actions_rsp): Changee parameters to
2748 std::vector<std::string> and adjust accordingly.
2749 * remote.c (free_actions_list),
2750 free_actions_list_cleanup_wrapper): Remove.
2751 (remote_download_tracepoint): Adjust to std::vector.
2752
2753 2017-11-08 Tom Tromey <tom@tromey.com>
2754
2755 * dwarf2read.c (symbolp): Remove typedef.
2756 (read_func_scope): Use std::vector.
2757 (process_structure_scope): Use std::vector.
2758
2759 2017-11-08 Pedro Alves <palves@redhat.com>
2760
2761 * ada-lang.c (ada_make_symbol_completion_list): Use
2762 completion_skip_symbol.
2763 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2764 (symbol_is_function_or_method(symbol*)): New.
2765 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2766 completion_skip_symbol.
2767 (default_collect_symbol_completion_matches_break_on): Use
2768 completion_skip_symbol. Pass down mode.
2769 (collect_file_symbol_completion_matches): Pass down mode.
2770 * symtab.h (symbol_is_function_or_method): New declarations.
2771 (completion_skip_symbol): New template function.
2772
2773 2017-11-08 Pedro Alves <palves@redhat.com>
2774
2775 * linespec.c (iterate_over_all_matching_symtabs): Add
2776 search_domain parameter. Pass it down to expand_symtabs_matching.
2777 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2778 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2779 search_domain.
2780 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2781 Pass it down.
2782 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2783 symbols.
2784 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2785 it down.
2786
2787 2017-11-08 Pedro Alves <palves@redhat.com>
2788
2789 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2790 text_len locals and don't pass them down.
2791 * symtab.c (completion_list_add_name): Remove
2792 sym_text/sym_text_len parameters and adjust.
2793 (completion_list_add_symbol, completion_list_add_msymbol)
2794 (completion_list_objc_symbol, completion_list_add_fields)
2795 (add_symtab_completions): Likewise.
2796 (default_collect_symbol_completion_matches_break_on)
2797 (collect_file_symbol_completion_matches): Remove sym_text_len
2798 local and don't pass it down.
2799 * symtab.h (completion_list_add_name): Remove
2800 sym_text/sym_text_len parameters.
2801
2802 2017-11-08 Pedro Alves <palves@redhat.com>
2803
2804 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2805 unittests/lookup_name_info-selftests.c.
2806 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2807 * cp-support.c: Include "selftest.h".
2808 (cp_remove_params_1): Rename from cp_remove_params. Add
2809 'require_param' parameter, and handle it.
2810 (cp_remove_params): Reimplement.
2811 (cp_remove_params_if_any): New.
2812 (selftests::quote): New.
2813 (selftests::check_remove_params): New.
2814 (selftests::test_cp_remove_params): New.
2815 (_initialize_cp_support): Install
2816 selftests::test_cp_remove_params.
2817 * cp-support.h (cp_remove_params_if_any): Declare.
2818 * dwarf2read.c :Include "selftest.h".
2819 (dw2_expand_symtabs_matching_symbol): Use
2820 lookup_name_info::make_ignore_params.
2821 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2822 (selftests::dw2_expand_symtabs_matching::string_or_null)
2823 (selftests::dw2_expand_symtabs_matching::check_match)
2824 (selftests::dw2_expand_symtabs_matching::test_symbols)
2825 (selftests::dw2_expand_symtabs_matching::run_test): New.
2826 (_initialize_dwarf2_read): Register
2827 selftests::dw2_expand_symtabs_matching::run_test.
2828 * psymtab.c (psym_expand_symtabs_matching): Use
2829 lookup_name_info::make_ignore_params.
2830 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2831 If the lookup name wants to ignore parameters, strip them.
2832 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2833 code handling '('.
2834 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2835 (default_collect_symbol_completion_matches_break_on): Don't try to
2836 strip parameters.
2837 * symtab.h (lookup_name_info::lookup_name_info): Add
2838 'ignore_parameters' parameter.
2839 (lookup_name_info::ignore_parameters)
2840 (lookup_name_info::make_ignore_params): New methods.
2841 (lookup_name_info::m_ignore_parameters): New field.
2842 * unittests/lookup_name_info-selftests.c: New file.
2843
2844 2017-11-08 Pedro Alves <palves@redhat.com>
2845
2846 * dwarf2read.c (dw2_expand_marked_cus)
2847 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2848 (dw2_expand_symtabs_matching): Move further below.
2849 (dw2_expand_marked_cus): Reindent.
2850
2851 2017-11-08 Pedro Alves <palves@redhat.com>
2852
2853 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2854 (struct name_component): New.
2855 (mapped_index::name_components): New field.
2856 (mapped_index::symbol_name_at): New method.
2857 (dwarf2_read_index): Call mapped_index ctor.
2858 (dw2_map_matching_symbols): Add comment about name_components
2859 table.
2860 (dw2_expand_symtabs_matching): Factor part to...
2861 (dw2_expand_symtabs_matching_symbol): ... this new function.
2862 Build name components table, and lookup symbols in it before
2863 calling the name matcher.
2864 (dw2_expand_marked_cus): New, factored out from
2865 dw2_expand_symtabs_matching.
2866 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2867
2868 2017-11-08 Pedro Alves <palves@redhat.com>
2869
2870 * ada-lang.c (ada_encode): Rename to ..
2871 (ada_encode_1): ... this. Add throw_errors parameter and handle
2872 it.
2873 (ada_encode): Reimplement.
2874 (match_name): Delete, folded into full_name.
2875 (resolve_subexp): No longer pass the encoded name to
2876 ada_lookup_symbol_list.
2877 (should_use_wild_match): Delete.
2878 (name_match_type_from_name): New.
2879 (ada_lookup_simple_minsym): Use lookup_name_info and the
2880 language's symbol_name_matcher_ftype.
2881 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2882 (ada_add_block_renamings): Adjust to use lookup_name_info.
2883 (ada_lookup_name): New.
2884 (add_nonlocal_symbols, ada_add_all_symbols)
2885 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2886 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2887 (ada_name_for_lookup): Delete.
2888 (ada_lookup_encoded_symbol): Construct a verbatim name.
2889 (wild_match): Reverse sense of return type. Use bool.
2890 (full_match): Reverse sense of return type. Inline bits of old
2891 match_name here.
2892 (ada_add_block_symbols): Adjust to use lookup_name_info.
2893 (symbol_completion_match): Delete, folded into...
2894 (ada_lookup_name_info::matches): ... .this new method.
2895 (symbol_completion_add): Delete.
2896 (ada_collect_symbol_completion_matches): Add name_match_type
2897 parameter. Adjust to use lookup_name_info and
2898 completion_list_add_name.
2899 (get_var_value, ada_add_global_exceptions): Adjust to use
2900 lookup_name_info.
2901 (ada_get_symbol_name_cmp): Delete.
2902 (do_wild_match, do_full_match): New functions.
2903 (ada_lookup_name_info::ada_lookup_name_info): New method.
2904 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2905 functions.
2906 (ada_language_defn): Install ada_get_symbol_name_matcher.
2907 * ada-lex.l (processId): If name starts with '<', copy it
2908 verbatim.
2909 * block.c (block_iter_match_step, block_iter_match_first)
2910 (block_iter_match_next, block_lookup_symbol)
2911 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2912 lookup_name_info.
2913 * block.h (block_iter_match_first, block_iter_match_next)
2914 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2915 * c-lang.c (c_language_defn, cplus_language_defn)
2916 (asm_language_defn, minimal_language_defn): Adjust comments to
2917 refer to la_get_symbol_name_matcher.
2918 * completer.c (complete_files_symbols)
2919 (collect_explicit_location_matches, symbol_completer): Pass a
2920 symbol_name_match_type down.
2921 * completer.h (class completion_match, completion_match_result):
2922 New classes.
2923 (completion_tracker::reset_completion_match_result): New method.
2924 (completion_tracker::m_completion_match_result): New field.
2925 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2926 lookup_name_info.
2927 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2928 functions.
2929 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2930 * d-lang.c: Adjust comments to refer to
2931 la_get_symbol_name_matcher.
2932 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2933 Adjust to use lookup_name_info.
2934 (dict_iter_match_first, dict_iter_match_next)
2935 (iter_match_first_hashed, iter_match_next_hashed)
2936 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2937 with a lookup_name_info.
2938 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2939 Likewise.
2940 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2941 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2942 (gdb_index_symbol_name_matcher): New class.
2943 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2944 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2945 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2946 with a symbol_name_match_type.
2947 (f_language_defn): Adjust comments to refer to
2948 la_get_symbol_name_matcher.
2949 * go-lang.c (go_language_defn): Adjust comments to refer to
2950 la_get_symbol_name_matcher.
2951 * language.c (default_symbol_name_matcher)
2952 (language_get_symbol_name_matcher): New functions.
2953 (unknown_language_defn, auto_language_defn): Adjust comments to
2954 refer to la_get_symbol_name_matcher.
2955 * language.h (symbol_name_cmp_ftype): Delete.
2956 (language_defn) <la_collect_symbol_completion_matches>: Add match
2957 type parameter.
2958 <la_get_symbol_name_cmp>: Delete field.
2959 <la_get_symbol_name_matcher>: New field.
2960 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2961 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2962 Declare.
2963 * linespec.c (iterate_over_all_matching_symtabs)
2964 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2965 (find_methods): Add language parameter, and use lookup_name_info
2966 and the language's symbol_name_matcher_ftype.
2967 (linespec_complete_function): Adjust.
2968 (lookup_prefix_sym): Use lookup_name_info.
2969 (add_all_symbol_names_from_pspace): Adjust.
2970 (find_superclass_methods): Add language parameter and pass it
2971 down.
2972 (find_method): Pass symbol language down.
2973 (find_linespec_symbols): Don't demangle or Ada encode here.
2974 (search_minsyms_for_name): Add lookup_name_info parameter.
2975 (add_matching_symbols_to_info): Add name_match_type parameter.
2976 Use lookup_name_info.
2977 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2978 la_get_symbol_name_matcher.
2979 * minsyms.c: Include <algorithm>.
2980 (add_minsym_to_demangled_hash_table): Remove table parameter and
2981 add objfile parameter. Use search_name_hash, and add language to
2982 demangled languages vector.
2983 (struct found_minimal_symbols): New struct.
2984 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2985 New functions.
2986 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2987 input names here. Use lookup_name_info instead. Lookup up
2988 demangled names once for each language in the demangled names
2989 vector.
2990 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2991 demangled names once for each language in the demangled names
2992 vector.
2993 (build_minimal_symbol_hash_tables): Adjust.
2994 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2995 lookup_name_info.
2996 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2997 la_get_symbol_name_matcher.
2998 * objfiles.h: Include <vector>.
2999 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
3000 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
3001 la_get_symbol_name_matcher.
3002 * p-lang.c (pascal_language_defn): Adjust comment to refer to
3003 la_get_symbol_name_matcher.
3004 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
3005 (match_partial_symbol): Use symbol_name_match_type,
3006 lookup_name_info and psymbol_name_matches.
3007 (lookup_partial_symbol): Use lookup_name_info.
3008 (map_block): Use symbol_name_match_type and lookup_name_info.
3009 (psym_map_matching_symbols): Use symbol_name_match_type.
3010 (psymbol_name_matches): New.
3011 (recursively_search_psymtabs): Use lookup_name_info and
3012 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
3013 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
3014 'kind' parameter to 'domain'.
3015 * rust-lang.c (rust_language_defn): Adjust comment to refer to
3016 la_get_symbol_name_matcher.
3017 * symfile-debug.c (debug_qf_map_matching_symbols)
3018 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
3019 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
3020 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
3021 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
3022 Adjust to use symbol_name_match_type.
3023 <expand_symtabs_matching>: Adjust to use lookup_name_info.
3024 (expand_symtabs_matching): Adjust to use lookup_name_info.
3025 * symmisc.c (maintenance_expand_symtabs): Use
3026 lookup_name_info::match_any ().
3027 * symtab.c (symbol_matches_search_name): New.
3028 (eq_symbol_entry): Adjust to use lookup_name_info and the
3029 language's matcher.
3030 (demangle_for_lookup_info::demangle_for_lookup_info): New.
3031 (lookup_name_info::match_any): New.
3032 (iterate_over_symbols, search_symbols): Use lookup_name_info.
3033 (compare_symbol_name): Add language, lookup_name_info and
3034 completion_match_result parameters, and use them.
3035 (completion_list_add_name): Make extern. Add language and
3036 lookup_name_info parameters. Use them.
3037 (completion_list_add_symbol, completion_list_add_msymbol)
3038 (completion_list_objc_symbol): Add lookup_name_info parameters and
3039 adjust. Pass down language.
3040 (completion_list_add_fields): Add lookup_name_info parameters and
3041 adjust. Pass down language.
3042 (add_symtab_completions): Add lookup_name_info parameters and
3043 adjust.
3044 (default_collect_symbol_completion_matches_break_on): Add
3045 name_match_type parameter, and use it. Use lookup_name_info.
3046 (default_collect_symbol_completion_matches)
3047 (collect_symbol_completion_matches): Add name_match_type
3048 parameter, and pass it down.
3049 (collect_symbol_completion_matches_type): Adjust.
3050 (collect_file_symbol_completion_matches): Add name_match_type
3051 parameter, and use lookup_name_info.
3052 * symtab.h: Include <string> and "common/gdb_optional.h".
3053 (enum class symbol_name_match_type): New.
3054 (class ada_lookup_name_info): New.
3055 (struct demangle_for_lookup_info): New.
3056 (class lookup_name_info): New.
3057 (symbol_name_matcher_ftype): New.
3058 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
3059 (symbol_matches_search_name): Declare.
3060 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
3061 (default_collect_symbol_completion_matches)
3062 (collect_symbol_completion_matches)
3063 (collect_file_symbol_completion_matches): Add name_match_type
3064 parameter.
3065 (iterate_over_symbols): Use lookup_name_info.
3066 (completion_list_add_name): Declare.
3067 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
3068 (strncmp_iw_with_mode): Now extern.
3069 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
3070 (strncmp_iw_with_mode): Declare.
3071
3072 2017-11-08 Keith Seitz <keiths@redhat.com>
3073 Pedro Alves <palves@redhat.com>
3074
3075 * ada-lang.c (ada_language_defn): Install
3076 default_search_name_hash.
3077 * buildsym.c (struct buildsym_compunit): <language>: New field.
3078 (finish_block_internal): Pass language when creating dictionaries.
3079 (start_buildsym_compunit, start_symtab): New language parameters.
3080 Use them.
3081 (restart_symtab): Pass down compilation unit's language.
3082 * buildsym.h (enum language): Forward declare.
3083 (start_symtab): New 'language' parameter.
3084 * c-lang.c (c_language_defn, cplus_language_defn)
3085 (asm_language_defn, minimal_language_defn): Install
3086 default_search_name_hash.
3087 * coffread.c (coff_start_symtab): Adjust.
3088 * d-lang.c (d_language_defn): Install default_search_name_hash.
3089 * dbxread.c (struct symloc): Add 'pst_language' field.
3090 (PST_LANGUAGE): Define.
3091 (start_psymtab, read_ofile_symtab): Use it.
3092 (process_one_symbol): New 'language' parameter. Pass it down.
3093 * dictionary.c (struct dictionary) <language>: New field.
3094 (DICT_LANGUAGE): Define.
3095 (dict_create_hashed, dict_create_hashed_expandable)
3096 (dict_create_linear, dict_create_linear_expandable): New parameter
3097 'language'. Set the dictionary's language.
3098 (iter_match_first_hashed): Adjust to rename.
3099 (insert_symbol_hashed): Assert we don't see mismatching
3100 languages. Adjust to rename.
3101 (dict_hash): Rename to ...
3102 (default_search_name_hash): ... this and make extern.
3103 * dictionary.h (struct language_defn): Forward declare.
3104 (dict_create_hashed): New parameter 'language'.
3105 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
3106 * f-lang.c (f_language_defn): Install default_search_name_hash.
3107 * go-lang.c (go_language_defn): Install default_search_name_hash.
3108 * jit.c (finalize_symtab): Pass compunit's language to dictionary
3109 creation.
3110 * language.c (unknown_language_defn, auto_language_defn):
3111 * language.h (language_defn::la_search_name_hash): New field.
3112 (default_search_name_hash): Declare.
3113 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
3114 * mdebugread.c (new_block): New parameter 'language'.
3115 * mdebugread.c (parse_symbol): Pass symbol language to block
3116 allocation.
3117 (psymtab_to_symtab_1): Pass down language.
3118 (new_symtab): Pass compunit's language to block allocation.
3119 * objc-lang.c (objc_language_defn): Install
3120 default_search_name_hash.
3121 * opencl-lang.c (opencl_language_defn):
3122 * p-lang.c (pascal_language_defn): Install
3123 default_search_name_hash.
3124 * rust-lang.c (rust_language_defn): Install
3125 default_search_name_hash.
3126 * stabsread.h (enum language): Forward declare.
3127 (process_one_symbol): Add 'language' parameter.
3128 * symtab.c (search_name_hash): New function.
3129 * symtab.h (search_name_hash): Declare.
3130 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
3131
3132 2017-11-08 Pedro Alves <palves@redhat.com>
3133
3134 * cp-name-parser.y (main): Don't initialize extra_chars.
3135
3136 2017-11-07 Tom Tromey <tom@tromey.com>
3137
3138 * event-top.h (command_handler): Constify.
3139 * record-full.c (cmd_record_full_start): Update.
3140 * thread.c (thread_apply_all_command): Update.
3141 * printcmd.c (eval_command): Update.
3142 * mi/mi-main.c (mi_execute_cli_command): Update.
3143 (mi_execute_async_cli_command): Update.
3144 * tui/tui-stack.c (tui_update_command): Update.
3145 * cli/cli-interp.c (safe_execute_command): Constify.
3146 * record.c (record_start): Update.
3147 (record_start, record_stop, cmd_record_start): Update.
3148 * record-btrace.c (cmd_record_btrace_bts_start): Update.
3149 (cmd_record_btrace_pt_start): Update.
3150 (cmd_record_btrace_start): Update.
3151 (cmd_record_btrace_start): Update.
3152 * reverse.c (exec_reverse_once): Update.
3153 * python/python.c (execute_gdb_command): Don't copy the command.
3154 * event-top.c (command_line_handler): Update.
3155 (command_handler): Constify.
3156 * defs.h (deprecated_call_command_hook): Constify.
3157 * cli/cli-script.h (execute_user_command): Constify.
3158 * cli/cli-script.c (execute_user_command): Constify.
3159 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
3160 (enum command_control_type): Update.
3161 * main.c (catch_command_errors): Remove non-const overload.
3162 (catch_command_errors_ftype): Remove.
3163 * python/py-cmd.c (cmdpy_function): Constify.
3164 * guile/scm-cmd.c (cmdscm_function): Constify.
3165 * cli/cli-dump.c (call_dump_func): Constify.
3166 * cli/cli-decode.c (do_const_cfunc): Constify.
3167 (do_sfunc): Constify.
3168 (cmd_func): Constify.
3169 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
3170 * top.h (execute_command): Constify.
3171 * top.c (execute_command): Constify.
3172 (execute_command_to_string): Constify.
3173 (deprecated_call_command_hook): Constify.
3174 * command.h (cmd_func): Constify.
3175 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
3176
3177 2017-11-07 Tom Tromey <tom@tromey.com>
3178
3179 * ada-lang.c (catch_ada_exception_command): Constify.
3180 (catch_assert_command): Constify.
3181 * break-catch-throw.c (catch_catch_command, catch_throw_command)
3182 (catch_rethrow_command): Constify.
3183 (catch_exception_command_1): Constify.
3184 * breakpoint.h (add_catch_command): Constify.
3185 * break-catch-syscall.c (catch_syscall_command_1): Constify.
3186 (catch_syscall_split_args): Constify.
3187 * break-catch-sig.c (catch_signal_command): Constify.
3188 (catch_signal_split_args): Constify.
3189 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
3190 cmd_const_sfunc_ftype.
3191 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
3192 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3193 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3194 (add_setshow_string_cmd, struct cmd_list_element)
3195 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3196 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3197 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
3198 Constify.
3199 (set_cmd_sfunc): Constify.
3200 (empty_sfunc): Constify.
3201 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3202 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3203 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
3204 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3205 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3206 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3207 Constify.
3208 (set_cmd_sfunc): Constify.
3209 (cmd_sfunc_ftype): Remove.
3210 * compile/compile.c (set_compile_args): Constify.
3211 * infrun.c (set_disable_randomization): Constify.
3212 * infcmd.c (set_args_command, set_cwd_command): Constify.
3213 * breakpoint.c (set_condition_evaluation_mode): Constify.
3214 (add_catch_command): Constify.
3215 (catch_fork_command_1, catch_exec_command_1)
3216 (catch_load_command_1, catch_unload_command_1): Constify.
3217 (catch_load_or_unload): Constify.
3218 * guile/scm-param.c (pascm_set_func): Constify.
3219 (add_setshow_generic): Constify.
3220 * python/py-param.c (get_set_value): Constify.
3221 * top.h (set_verbose): Constify.
3222 * tui/tui-win.c (tui_set_var_cmd): Constify.
3223 * mi/mi-main.c (set_mi_async_command): Constify.
3224 * cli/cli-logging.c (set_logging_overwrite)
3225 (set_logging_redirect): Constify.
3226 * value.c (set_max_value_size): Constify.
3227 * valprint.c (set_input_radix, set_output_radix): Constify.
3228 * utils.c (set_width_command, set_height_command): Constify.
3229 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
3230 * tracepoint.c (set_disconnected_tracing)
3231 (set_circular_trace_buffer, set_trace_buffer_size)
3232 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
3233 * top.c (set_history_size_command, set_verbose, set_editing)
3234 (set_gdb_datadir, set_history_filename): Constify.
3235 * target.c (set_targetdebug, maint_set_target_async_command)
3236 (maint_set_target_non_stop_command, set_target_permissions)
3237 (set_write_memory_permission): Constify.
3238 (open_target): Constify.
3239 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
3240 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
3241 * symtab.c (set_symbol_cache_size_handler): Constify.
3242 * symfile.c (set_ext_lang_command): Constify.
3243 * symfile-debug.c (set_debug_symfile): Constify.
3244 * source.c (set_directories_command): Constify.
3245 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
3246 * serial.c (set_parity): Constify.
3247 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
3248 * remote.c (set_remote_exec_file, set_remotebreak)
3249 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
3250 * record.c (set_record_insn_history_size)
3251 (set_record_call_history_size): Constify.
3252 * record-full.c (set_record_full_insn_max_num): Constify.
3253 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
3254 * osabi.c (set_osabi): Constify.
3255 * mips-tdep.c (set_mips64_transfers_32bit_regs)
3256 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
3257 * maint.c (maintenance_set_profile_cmd): Constify.
3258 * linux-thread-db.c (set_libthread_db_search_path): Constify.
3259 * language.c (set_language_command, set_range_command)
3260 (set_case_command): Constify.
3261 * infrun.c (set_non_stop, set_observer_mode)
3262 (set_stop_on_solib_events, set_schedlock_func)
3263 (set_exec_direction_func): Constify.
3264 * infcmd.c (set_inferior_tty_command): Constify.
3265 * disasm.c (set_disassembler_options_sfunc): Constify.
3266 * demangle.c (set_demangling_command): Constify.
3267 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
3268 * cris-tdep.c (set_cris_version, set_cris_mode)
3269 (set_cris_dwarf2_cfi): Constify.
3270 * corefile.c (set_gnutarget_command): Constify.
3271 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
3272 (set_target_wide_charset_sfunc): Constify.
3273 * breakpoint.c (update_dprintf_commands): Constify.
3274 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
3275 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
3276 (set_disassembly_style_sfunc): Constify.
3277 * arch-utils.c (set_endian, set_architecture): Constify.
3278 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
3279 * agent.c (set_can_use_agent): Constify.
3280
3281 2017-11-07 Tom Tromey <tom@tromey.com>
3282
3283 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
3284 (go32_pde, go32_pte, go32_pte_for_address): Constify.
3285 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
3286 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
3287 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
3288 (parse_int_arg, show_thread_default_detach_sc_cmd)
3289 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
3290 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
3291 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
3292 (show_task_pause_cmd, set_task_detach_sc_cmd)
3293 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3294 (set_noninvasive_cmd, set_thread_pause_cmd)
3295 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3296 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3297 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3298 * windows-nat.c (display_selectors): Constify.
3299 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3300 non-const "cfunc".
3301 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3302 (cmd_cfunc_eq): Likewise.
3303 (struct cmd_list_element): Likewise.
3304 (do_cfunc): Remove.
3305 (cli_user_command_p): Update.
3306 * command.h (add_cmd): Remove non-const overload.
3307 (cmd_cfunc_ftype): Remove typedef.
3308 (cmd_cfunc_eq): Remove non-const overload.
3309 * value.c (show_values): Constify.
3310 * thread.c (thread_apply_all_command): Constify.
3311 * symfile.c (load_command): Constify.
3312 * source.c (directory_command): Constify.
3313 * maint.c (maintenance_internal_error)
3314 (maintenance_demangler_warning, maintenance_space_display)
3315 (maintenance_print_architecture, maintenance_translate_address)
3316 (maintenance_info_selftests, maintenance_internal_warning):
3317 Constify.
3318 * breakpoint.c (disable_trace_command, enable_trace_command):
3319 Constify.
3320 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3321 Constify.
3322 (add_auto_load_safe_path): Constify.
3323 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3324 * top.h (show_commands): Constify.
3325 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3326 * sparc64-tdep.c (adi_examine_command): Constify.
3327 (adi_assign_command): Constify.
3328
3329 2017-11-07 Tom Tromey <tom@tromey.com>
3330
3331 * frame.h (info_locals_command, info_args_command): Constify.
3332 * auto-load.h (auto_load_info_scripts): Constify.
3333 * inferior.h (registers_info): Constify.
3334 * copying.c: Rebuild.
3335 * copying.awk: Constify generated commands.
3336 * auto-load.c (auto_load_info_scripts)
3337 (info_auto_load_gdb_scripts): Constify.
3338 * cli/cli-decode.c (struct cmd_list_element): Take a
3339 cmd_const_cfunc_ftype.
3340 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3341 * tui/tui-win.c (tui_all_windows_info): Constify.
3342 * python/py-auto-load.c (info_auto_load_python_scripts):
3343 Constify.
3344 * cli/cli-cmds.c (show_command): Remove non-const overload.
3345 * tracepoint.c (info_tvariables_command, info_scope_command):
3346 Constify.
3347 (info_static_tracepoint_markers_command): Constify.
3348 * thread.c (info_threads_command): Constify.
3349 (print_thread_info_1): Constify.
3350 * target.c (info_target_command): Constify.
3351 * symtab.c (info_sources_command, info_functions_command)
3352 (info_types_command): Constify.
3353 (info_variables_command): Remove non-const overload.
3354 * symfile.c (info_ext_lang_command): Constify.
3355 * stack.c (info_frame_command, info_locals_command)
3356 (info_args_command): Constify.
3357 (backtrace_command): Remove non-const overload.
3358 * source.c (info_source_command, info_line_command): Constify.
3359 * solib.c (info_sharedlibrary_command): Constify.
3360 * skip.c (info_skip_command): Constify.
3361 * ser-go32.c (info_serial_command): Constify.
3362 * reverse.c (info_bookmarks_command): Constify.
3363 * printcmd.c (info_symbol_command, info_address_command)
3364 (info_display_command): Constify.
3365 * osdata.c (info_osdata_command): Constify.
3366 * objc-lang.c (info_selectors_command, info_classes_command):
3367 Constify.
3368 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3369 * memattr.c (info_mem_command): Constify.
3370 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3371 * linux-fork.c (info_checkpoints_command): Constify.
3372 * infrun.c (info_signals_command): Constify.
3373 * inflow.c (info_terminal_command): Constify.
3374 * inferior.c (info_inferiors_command): Constify.
3375 (print_inferior): Constify.
3376 * infcmd.c (info_program_command, info_all_registers_command)
3377 (info_registers_command, info_vector_command)
3378 (info_float_command): Constify.
3379 (registers_info): Constify.
3380 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3381 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3382 Constify.
3383 * f-valprint.c (info_common_command): Constify.
3384 * dcache.c (info_dcache_command): Constify.
3385 (dcache_info_1): Constify.
3386 * darwin-nat-info.c (info_mach_tasks_command)
3387 (info_mach_task_command, info_mach_ports_command)
3388 (info_mach_port_command, info_mach_threads_command)
3389 (info_mach_thread_command, info_mach_regions_command)
3390 (info_mach_regions_recurse_command, info_mach_region_command)
3391 (info_mach_exceptions_command): Constify.
3392 (get_task_from_args): Constify.
3393 * cp-support.c (info_vtbl_command): Constify.
3394 * breakpoint.c (info_watchpoints_command)
3395 (info_tracepoints_command): Constify.
3396 (info_breakpoints_command): Remove non-const overload.
3397 * avr-tdep.c (avr_io_reg_read_command): Constify.
3398 * auxv.c (info_auxv_command): Constify.
3399 * ada-tasks.c (info_tasks_command): Constify.
3400 (info_task): Constify.
3401 * ada-lang.c (info_exceptions_command): Constify.
3402
3403 2017-11-07 Tom Tromey <tom@tromey.com>
3404
3405 * solib.h (no_shared_libraries): Constify.
3406 * frame.h (return_command): Constify.
3407 * cli/cli-cmds.h (quit_command): Constify.
3408 * top.h (quit_command, execute_command): Constify.
3409 * target.h (flash_erase_command): Constify.
3410 * inferior.h (set_inferior_args, attach_command): Constify.
3411 * tracepoint.h (start_tracing, stop_tracing): Constify.
3412 * breakpoint.h (break_command, tbreak_command)
3413 (hbreak_command_wrapper, thbreak_command_wrapper)
3414 (rbreak_command_wrapper, watch_command_wrapper)
3415 (awatch_command_wrapper, rwatch_command_wrapper)
3416 (get_tracepoint_by_number): Constify.
3417 * symtab.c (info_variables_command, rbreak_command)
3418 (symtab_symbol_info): Constify.
3419 (info_variables_command): Add non-const overload.
3420 * top.c (dont_repeat_command): Constify.
3421 * breakpoint.c (ignore_command, commands_command)
3422 (condition_command, tbreak_command, hbreak_command)
3423 (thbreak_command, clear_command, break_command)
3424 (info_breakpoints_command, watch_command, rwatch_command)
3425 (awatch_command, trace_command, ftrace_command, strace_command)
3426 (trace_pass_command, break_range_command, dprintf_command)
3427 (agent_printf_command, get_tracepoint_by_number)
3428 (watch_maybe_just_location, trace_pass_command): Constify.
3429 (info_breakpoints_command): Add non-const overload.
3430 * tracefile.c (tsave_command): Constify.
3431 * infcmd.c (attach_command, disconnect_command, signal_command)
3432 (queue_signal_command, stepi_command, nexti_command)
3433 (finish_command, next_command, step_command, until_command)
3434 (advance_command, jump_command, continue_command, run_command)
3435 (start_command, starti_command, interrupt_command)
3436 (run_command_1, set_inferior_args, step_1): Constify.
3437 * inferior.c (add_inferior_command, remove_inferior_command)
3438 (clone_inferior_command): Constify.
3439 * linux-fork.c (checkpoint_command, restart_command): Constify.
3440 * windows-nat.c (signal_event_command): Constify.
3441 * guile/guile.c (guile_repl_command, guile_command): Constify.
3442 * printcmd.c (x_command, display_command, printf_command)
3443 (output_command, set_command, call_command, print_command)
3444 (eval_command): Constify.
3445 (non_const_set_command): Remove.
3446 (_initialize_printcmd): Update.
3447 * source.c (forward_search_command, reverse_search_command):
3448 Constify.
3449 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3450 Constify.
3451 * infrun.c (handle_command): Constify.
3452 * memattr.c (mem_command): Constify.
3453 * stack.c (return_command, up_command, up_silently_command)
3454 (down_command, down_silently_command, frame_command)
3455 (backtrace_command, func_command, backtrace_command_1): Constify.
3456 (backtrace_command): Add non-const overload.
3457 * remote-sim.c (simulator_command): Constify.
3458 * exec.c (set_section_command): Constify.
3459 * tracepoint.c (tdump_command, trace_variable_command)
3460 (tstatus_command, tstop_command, tstart_command)
3461 (end_actions_pseudocommand, while_stepping_pseudocommand)
3462 (collect_pseudocommand, teval_pseudocommand, actions_command)
3463 (start_tracing, stop_tracing): Constify.
3464 * value.c (init_if_undefined_command): Constify.
3465 * tui/tui-stack.c (tui_update_command): Constify.
3466 * tui/tui-win.c (tui_refresh_all_command)
3467 (tui_set_tab_width_command, tui_set_win_height_command)
3468 (tui_set_focus_command, tui_scroll_forward_command)
3469 (tui_scroll_backward_command, tui_scroll_left_command)
3470 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3471 (tui_set_win_height): Constify.
3472 * tui/tui-layout.c (tui_layout_command): Constify.
3473 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3474 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3475 (proc_untrace_sysexit_cmd): Constify.
3476 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3477 (threadset_test_cmd, threadlist_update_test_cmd)
3478 (threadalive_test): Constify.
3479 * objc-lang.c (print_object_command): Constify.
3480 * command.h (add_com): Constify.
3481 * cli/cli-dump.c (restore_command): Constify.
3482 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3483 (help_command, complete_command, shell_command, edit_command)
3484 (list_command, disassemble_command, make_command)
3485 (apropos_command, alias_command): Constify.
3486 * cli/cli-script.c (document_command, define_command)
3487 (while_command, if_command, validate_comname): Constify.
3488 * cli/cli-decode.c (struct cmd_list_element): Change type of
3489 "fun".
3490 * target.c (do_monitor_command, flash_erase_command): Constify.
3491 * regcache.c (reg_flush_command): Constify.
3492 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3493 (reverse_nexti, reverse_continue, reverse_finish)
3494 (save_bookmark_command, goto_bookmark_command)
3495 (exec_reverse_once): Constify.
3496 * python/python.c (python_interactive_command, python_command):
3497 Constify.
3498 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3499 Constify.
3500 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3501 * gcore.c (gcore_command): Constify.
3502
3503 2017-11-07 Tom Tromey <tom@tromey.com>
3504
3505 * printcmd.c (x_command): Call set_repeat_arguments.
3506 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3507 * top.c (repeat_arguments): New global.
3508 (set_repeat_arguments): New function.
3509 (execute_command): Handle repeat_arguments.
3510 (show_commands): Calls set_repeat_arguments.
3511 * command.h (set_repeat_arguments): Declare.
3512
3513 2017-11-07 Tom Tromey <tom@tromey.com>
3514
3515 * stack.c (backtrace_command): Use std::string.
3516 (backtrace_command_1): Make "count_exp" const.
3517
3518 2017-11-07 Tom Tromey <tom@tromey.com>
3519
3520 * source.c (directory_switch, mod_path, add_path): Constify.
3521 * defs.h (add_path, mod_path, directory_switch): Constify.
3522 * mi/mi-cmd-env.c (env_mod_path): Constify.
3523
3524 2017-11-07 Tom Tromey <tom@tromey.com>
3525
3526 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3527 (run_command_1, continue_command, step_1, jump_command)
3528 (signal_command, until_command, advance_command, finish_command)
3529 (attach_command): Update.
3530
3531 2017-11-07 Tom Tromey <tom@tromey.com>
3532
3533 * command.h (set_cmd_cfunc): Don't declare.
3534 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3535
3536 2017-11-07 Tom Tromey <tom@tromey.com>
3537
3538 * stack.c (select_frame_command): Constify.
3539 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3540 * command.h (add_com_suppress_notification): Constify.
3541
3542 2017-11-07 Tom Tromey <tom@tromey.com>
3543
3544 * breakpoint.c (stop_command): Constify.
3545 * cli/cli-decode.c (struct cmd_list_element): Constify.
3546 * command.h (add_abbrev_prefix_cmd): Constify.
3547
3548 2017-11-07 Pedro Alves <palves@redhat.com>
3549
3550 * breakpoint.c (extract_bp_kind): New enum.
3551 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3552 factored out from ...
3553 (extract_bp_number_and_location): ... here.
3554 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3555
3556 2017-11-07 Pedro Alves <palves@redhat.com>
3557
3558 * breakpoint.c (extract_bp_number_and_location): Change return
3559 type to void. Throw error instead of warning.
3560 (enable_disable_command): Adjust.
3561
3562 2017-11-07 Xavier Roirand <roirand@adacore.com>
3563 Pedro Alves <palves@redhat.com>
3564
3565 * breakpoint.c (map_breakpoint_number_range): New, factored out
3566 from ...
3567 (map_breakpoint_numbers): ... here.
3568 (find_location_by_number): Change parameters from string to
3569 breakpoint number and location.
3570 (extract_bp_number_and_location): New function.
3571 (enable_disable_bp_num_loc)
3572 (enable_disable_breakpoint_location_range)
3573 (enable_disable_command): New functions, factored out ...
3574 (enable_command, disable_command): ... these functions, and
3575 adjusted to support ranges.
3576 * NEWS: Document enable/disable breakpoint location range feature.
3577
3578 2017-11-06 Luis Machado <luis.machado@linaro.org>
3579
3580 * MAINTAINERS (Write After Approval): Update my e-mail address.
3581
3582 2017-11-06 Pedro Alves <palves@redhat.com>
3583
3584 * gnu-nat.c (gnu_terminal_init): Delete.
3585 (gnu_target): Don't install gnu_terminal_init.
3586 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3587 (child_terminal_init): ... this function.
3588
3589 2017-11-06 Pedro Alves <palves@redhat.com>
3590
3591 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3592 sgtty.h.
3593 * config.in, configure: Regenerate.
3594
3595 2017-11-06 Pedro Alves <palves@redhat.com>
3596
3597 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3598 (async_init_signals): Adjust.
3599 (handle_stop_sig): Rename to ...
3600 (handle_sigtstp): ... this.
3601 (async_stop_sig): Rename to ...
3602 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3603 SIGTSTP path.
3604 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3605 instead of STOP_SIGNAL thoughout.
3606 (handle_stop_sig): Rename to ...
3607 (handle_sigtstp): ... this.
3608 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3609
3610 2017-11-06 Pedro Alves <palves@redhat.com>
3611
3612 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3613 longer set flags twice in row.
3614
3615 2017-11-06 Pedro Alves <palves@redhat.com>
3616
3617 * Makefile.in (SER_HARDWIRE): Update comment.
3618 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3619 * common/gdb_termios.h: Delete file.
3620 * common/job-control.c: Include termios.h and unistd.h instead of
3621 gdb_termios.h.
3622 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3623 check.
3624 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3625 Remove sgtty code.
3626 * configure.ac: No longer check for termio.h and sgtty.h.
3627 * configure: Regenerate.
3628 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3629 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3630 Replace PROCESS_GROUP_TYPE references with pid_t references
3631 throughout.
3632 (gdb_getpgrp): Delete.
3633 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3634 (child_terminal_inferior): Remove comment. Remove sgtty code.
3635 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3636 gdb_getpgrp. Use serial_set_tty_state instead aof
3637 serial_noflush_set_tty_state. Remove sgtty code.
3638 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3639 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3640 (inferior_process_group): Now returns pid_t.
3641 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3642 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3643 * ser-event.c (serial_event_ops): Update.
3644 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3645 (dos_ops): Update.
3646 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3647 * ser-pipe.c (pipe_ops): Update.
3648 * ser-tcp.c (tcp_ops): Update.
3649 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3650 HAVE_TERMIOS checks.
3651 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3652 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3653 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3654 assume termios.
3655 (hardwire_noflush_set_tty_state): Delete.
3656 (hardwire_print_tty_state, hardwire_drain_output)
3657 (hardwire_flush_output, hardwire_flush_input)
3658 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3659 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3660 code, and assume termios.
3661 (hardwire_ops): Update.
3662 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3663 * serial.c (serial_noflush_set_tty_state): Delete.
3664 * serial.h (serial_noflush_set_tty_state): Delete.
3665 (serial_ops::noflush_set_tty_state): Delete.
3666
3667 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3668
3669 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3670 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3671 (COMMON_OBS): Remove doublest.o and dfp.o.
3672 Do not build target-float.c (instead of doublest.c)
3673 with -Wformat-nonliteral.
3674
3675 * doublest.c: Remove file.
3676 * doublest.h: Remove file.
3677 * dfp.c: Remove file.
3678 * dfp.h: Remove file.
3679
3680 * target-float.c: Do not include "doublest.h" and "dfp.h".
3681 (DOUBLEST): Move here from doublest.h.
3682 (enum float_kind): Likewise.
3683 (FLOATFORMAT_CHAR_BIT): Likewise.
3684 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3685 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3686 (floatformat_precision): Likewise.
3687 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3688 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3689 Likewise.
3690 (host_float_format, host_double_format, host_long_double_format):
3691 Likewise.
3692 (floatformat_to_string, floatformat_from_string): Likewise.
3693 (floatformat_to_doublest): Likewise. Also, inline the original
3694 convert_floatformat_to_doublest.
3695 (floatformat_from_doublest): Likewise. Also, inline the original
3696 convert_floatformat_from_doublest.
3697
3698 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3699 (MAX_DECIMAL_STRING): Move here from dfp.c.
3700 (match_endianness): Likewise.
3701 (set_decnumber_context, decimal_check_errors): Likewise.
3702 (decimal_from_number, decimal_to_number): Likewise.
3703 (decimal_to_string, decimal_from_string): Likewise. Make static.
3704 (decimal_from_longest, decimal_from_ulongest): Likewise.
3705 (decimal_to_longest): Likewise.
3706 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3707 (decimal_convert): Likewise.
3708
3709 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3710
3711 * doublest.c: Do not include "gdbtypes.h".
3712 (extract_typed_floating): Remove.
3713 (store_typed_floating): Remove.
3714 (convert_typed_floating): Remove.
3715 * doublest.h (struct type): Remove.
3716 (DOUBLEST_PRINT_FORMAT): Remove.
3717 (DOUBLEST_SCAN_FORMAT): Remove.
3718 (extract_typed_floating): Remove.
3719 (store_typed_floating): Remove.
3720 (convert_typed_floating): Remove.
3721
3722 * dfp.c (decimal_from_doublest): Remove.
3723 (decimal_to_doublest): Remove.
3724 * dfp.h: Do not include "doublest.h".
3725 (decimal_from_doublest): Remove.
3726 (decimal_to_doublest): Remove.
3727
3728 * value.c: Do not include "doublest.h" and "dfp.h".
3729 (value_as_double): Remove.
3730 (unpack_double): Remove.
3731 (value_from_double): Remove.
3732 (value_from_decfloat): Remove.
3733 * value.h: Do not include "doublest.h".
3734 (value_as_double): Remove.
3735 (unpack_double): Remove.
3736 (value_from_double): Remove.
3737 (value_from_decfloat): Remove.
3738
3739 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3740
3741 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3742 (i386_extract_return_value): Use target_float_convert.
3743 (i386_store_return_value): Likewise.
3744 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3745 (i387_value_to_register): Likewise.
3746 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3747 (ia64_register_to_value): Use target_float_convert.
3748 (ia64_value_to_register): Likewise.
3749 (ia64_extract_return_value): Likewise.
3750 (ia64_store_return_value): Likewise.
3751 (ia64_push_dummy_call): Likewise.
3752 * m68k-tdep.c: Include "target-float.h".
3753 (m68k_register_to_value): Use target_float_convert.
3754 (m68k_value_to_register): Likewise.
3755 (m68k_svr4_extract_return_value): Likewise.
3756 (m68k_svr4_store_return_value): Likewise.
3757 * ppc-sysv-tdep.c: Include "target-float.h".
3758 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3759 (do_ppc_sysv_return_value): Likewise.
3760 (ppc64_sysv_abi_push_freg): Likewise.
3761 (ppc64_sysv_abi_return_value_base): Likewise.
3762 * rs6000-aix-tdep.c: Include "target-float.h".
3763 (rs6000_push_dummy_call): Use target_float_convert.
3764 (rs6000_return_value): Likewise.
3765 * rs6000-lynx178-tdep.c: Include "target-float.h".
3766 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3767 (rs6000_lynx178_return_value): Likewise.
3768 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3769 (rs6000_register_to_value): Use target_float_convert.
3770 (rs6000_value_to_register): Likewise.
3771 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3772 (arm_extract_return_value): Use target_float_convert.
3773 (arm_store_return_value): Likewise.
3774 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3775 (sh_register_convert_to_virtual): Use target_float_convert.
3776 (sh_register_convert_to_raw): Likewise.
3777 * sh64-tdep.c: Include "target-float.h".
3778 (sh64_extract_return_value): Use target_float_convert.
3779 (sh64_register_convert_to_virtual): Likewise.
3780 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3781
3782 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3783
3784 * target-float.c (floatformat_to_host_double): New function.
3785 (floatformat_from_host_double): Likewise.
3786 (target_float_to_host_double): Likewise.
3787 (target_float_from_host_double): Likewise.
3788 * target-float.h (target_float_to_host_double): Add prototype.
3789 (target_float_from_host_double): Likewise.
3790
3791 * guile/scm-value.c: Include "target-float.h".
3792 (gdbscm_value_to_real): Use target_float_to_host_double.
3793 Handle integer source values via value_as_long.
3794 * guile/scm-math.c: Include "target-float.h". Do not include
3795 "doublest.h", "dfp.h", and "expression.h".
3796 (vlscm_convert_typed_number): Use target_float_from_host_double.
3797 (vlscm_convert_number): Likewise.
3798
3799 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3800 (convert_value_from_python): Use target_float_from_host_double.
3801
3802 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3803
3804 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3805 (cast_from_fixed): Likewise.
3806 (ada_scaling_type): New function.
3807 (ada_delta): Return value instead of DOUBLEST. Perform target
3808 arithmetic instead of host arithmetic.
3809 (scaling_factor): Rename to ...
3810 (ada_scaling_factor) ... this. Make non-static. Return value instead
3811 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3812 (ada_fixed_to_float): Remove.
3813 (ada_float_to_fixed): Remove.
3814 * ada-lang.h (ada_fixed_to_float): Remove.
3815 (ada_float_to_fixed): Remove.
3816 (ada_delta): Return value instead of DOUBLEST.
3817 (ada_scaling_factor): Add prototype.
3818
3819 * ada-typeprint.c: Include "target-float.h".
3820 (print_fixed_point_type): Perform target arithmetic instead of
3821 host arithmetic.
3822 * ada-valprint.c: Include "target-float.h".
3823 (ada_val_print_num): Perform target arithmetic instead of
3824 host arithmetic for fixed-point types.
3825
3826 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3827
3828 * target-float.c: Include <math.h>.
3829 (floatformat_binop): New function.
3830 (floatformat_compare): Likewise.
3831 (target_float_binop): Likewise.
3832 (target_float_compare): Likewise.
3833 * target-float.h: Include "expression.h".
3834 (target_float_binop): Add prototype.
3835 (target_float_compare): Likewise.
3836
3837 * valarith.c: Do not include "doublest.h" and "dfp.h".
3838 Include "common/byte-vector.h".
3839 (value_args_as_decimal): Remove, replace by ...
3840 (value_args_as_target_float): ... this function. Handle both
3841 binary and decimal target floating-point formats.
3842 (scalar_binop): Handle both binary and decimal FP using
3843 value_args_as_target_float and target_float_binop.
3844 (value_equal): Handle both binary and decimal FP using
3845 value_args_as_target_float and target_float_compare.
3846 (value_less): Likewise.
3847 (value_pos): Handle all scalar types as simple copy.
3848 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3849 * dfp.c (decimal_binop): Throw error instead of internal_error
3850 when called with an unsupported operation code.
3851
3852 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3853
3854 * target-float.c (target_float_to_string): New function.
3855 (target_float_from_string): New function.
3856 * target-float.h (target_float_to_string): Add prototype.
3857 (target_float_from_string): Add prototype.
3858
3859 * valprint.c: Include "target-float.h". Do not include
3860 "doublest.h" and "dfp.h".
3861 (print_floating): Use target_float_to_string.
3862 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3863 (printf_floating): Use target_float_to_string.
3864 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3865 (print_i387_value): Use target_float_to_string.
3866 * mips-tdep.c: Include "target-float.h".
3867 (mips_print_fp_register): Use target_float_to_string.
3868 * sh64-tdep.c: Include "target-float.h".
3869 (sh64_do_fp_register): Use target_float_to_string.
3870
3871 * parse.c: Include "target-float.h". Do not include
3872 "doublest.h" and "dfp.h".
3873 (parse_float): Use target_float_from_string.
3874 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3875 (define_symbol): Use target_float_from_string.
3876 * gdbarch-selftests.c: Include "target-float.h".
3877 (register_to_value_test): Use target_float_from_string.
3878
3879 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3880
3881 * Makefile.c (SFILES): Add target-float.c.
3882 (HFILES_NO_SRCDIR): Add target-float.h.
3883 (COMMON_OBS): Add target-float.o.
3884 * target-float.h: New file.
3885 * target-float.c: New file.
3886
3887 * doublest.c (floatformat_classify): Fix detection of float_zero.
3888
3889 * gdbtypes.c (is_floating_type): New function.
3890 * gdbtypes.h (is_floating_type): Add prototype.
3891
3892 * value.c: Do not include "floatformat.h".
3893 (unpack_double): Use target_float_is_valid.
3894 (is_floating_value): New function.
3895 * value.h (is_floating_value): Add prototype-
3896
3897 * valarith.c: Include "target-float.h".
3898 (value_logical_not): Use target_float_is_zero.
3899
3900 * python/py-value.c: Include "target-float.h".
3901 (valpy_nonzero): Use target_float_is_zero.
3902
3903 2017-11-04 Tom Tromey <tom@tromey.com>
3904
3905 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3906
3907 2017-11-04 Tom Tromey <tom@tromey.com>
3908
3909 * breakpoint.c (set_momentary_breakpoint): Return
3910 breakpoint_up.
3911 (until_break_command): Update.
3912 (new_until_break_fsm): Change argument types to
3913 breakpoint_up.
3914 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3915 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3916 Remove.
3917 * infcmd.c (finish_forward): Update.
3918 * breakpoint.h (set_momentary_breakpoint)
3919 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3920 (make_cleanup_delete_breakpoint): Remove.
3921 (struct breakpoint_deleter): New.
3922 (breakpoint_up): New typedef.
3923 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3924 (insert_exception_resume_breakpoint): Update.
3925 (insert_exception_resume_from_probe): Update.
3926 (insert_longjmp_resume_breakpoint): Update.
3927 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3928 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3929 * infcall.c (call_function_by_hand_dummy): Update
3930
3931 2017-11-04 Tom Tromey <tom@tromey.com>
3932
3933 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3934
3935 2017-11-04 Tom Tromey <tom@tromey.com>
3936
3937 * linux-tdep.c (linux_core_info_proc_mappings): Use
3938 gdb::def_vector.
3939 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3940 "size" argument.
3941 (linux_corefile_thread): Update.
3942 (linux_make_corefile_notes): Remove unused variable.
3943
3944 2017-11-04 Tom Tromey <tom@tromey.com>
3945
3946 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3947 gdb::byte_vector.
3948
3949 2017-11-04 Tom Tromey <tom@tromey.com>
3950
3951 * objfiles.c (do_free_objfile_cleanup): Remove.
3952 * compile/compile-object-load.c (compile_object_load): Update.
3953 * objfiles.h (make_cleanup_free_objfile): Remove.
3954
3955 2017-11-04 Tom Tromey <tom@tromey.com>
3956
3957 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3958 (adi_read_versions): Change "tags" to "gdb_byte *".
3959 (adi_print_versions): Likewise.
3960
3961 2017-11-04 Tom Tromey <tom@tromey.com>
3962
3963 * breakpoint.c
3964 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3965 from start_rbreak_breakpoints.
3966 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3967 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3968 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3969 * symtab.c (do_end_rbreak_breakpoints): Remove.
3970 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3971
3972 2017-11-04 Tom Tromey <tom@tromey.com>
3973
3974 * cp-namespace.c (reset_directive_searched): Remove.
3975 (cp_lookup_symbol_via_imports): Use scoped_restore.
3976 * cp-support.c (reset_directive_searched): Remove.
3977 (make_symbol_overload_list_using): Use scoped_restore.
3978 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3979 (reset_directive_searched): Remove.
3980
3981 2017-11-04 Tom Tromey <tom@tromey.com>
3982
3983 * symfile.c (find_separate_debug_file_by_debuglink): Use
3984 unique_xmalloc_ptr.
3985
3986 2017-11-04 Tom Tromey <tom@tromey.com>
3987
3988 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3989 type of "info".
3990 (compute_stack_depth): Likewise.
3991 (do_compile_dwarf_expr_to_c): Use std::vector.
3992
3993 2017-11-04 Tom Tromey <tom@tromey.com>
3994
3995 * compile/compile-object-load.c (link_callbacks_einfo): Use
3996 std::string.
3997
3998 2017-11-04 Tom Tromey <tom@tromey.com>
3999
4000 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4001 Use scoped_free_pendings.
4002 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
4003 scoped_free_pendings.
4004 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
4005 (xcoff_initial_scan): Likewise.
4006 * buildsym.c (reset_symtab_globals): Update comment.
4007 (scoped_free_pendings): Rename from really_free_pendings.
4008 (prepare_for_building): Update comment.
4009 (buildsym_init): Likewise.
4010 * buildsym.h (class scoped_free_pendings): New class.
4011 (really_free_pendings): Don't declare.
4012
4013 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
4014
4015 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
4016 output when converting a zero value to a special byteorder format.
4017
4018 2017-11-02 Yao Qi <yao.qi@linaro.org>
4019
4020 * frame.c (do_frame_register_read): Remove aspace.
4021 * jit.c (jit_frame_sniffer): Likwise.
4022 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
4023 * regcache.c (regcache::regcache): Pass nullptr.
4024 (regcache_print): Caller updated.
4025 * regcache.h (regcache::regcache): Remove one constructor
4026 parameter aspace.
4027
4028 2017-11-02 Yao Qi <yao.qi@linaro.org>
4029
4030 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
4031
4032 2017-11-02 Yao Qi <yao.qi@linaro.org>
4033
4034 * breakpoint.c (insert_single_step_breakpoints): Update.
4035 * frame.c (struct frame_info) <aspace>: Add const.
4036 (frame_save_as_regcache): Add const.
4037 (get_frame_address_space): Return const address_space *.
4038 * frame.h (get_frame_address_space): Update declaration.
4039 * infrun.c (struct step_over_info) <aspace>: Add const.
4040 (set_step_over_info): Make aspace const.
4041 (displaced_step_prepare_throw): Change variable const.
4042 (resume): Likewise.
4043 (proceed): Likewise.
4044 (adjust_pc_after_break): Likewise.
4045 (save_waitstatus): Likewise.
4046 (handle_signal_stop): Likewise.
4047 (keep_going_pass_signal): Likewise.
4048 * jit.c (jit_frame_sniffer): Add const.
4049 * mips-tdep.c (mips_single_step_through_delay): Likewise.
4050 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
4051 * record-full.c (record_full_wait_1): Likewise.
4052 * regcache.c (regcache::regcache): Change parameter to const.
4053 * regcache.h (regcache::regcache): Likewise.
4054 (regcache::aspace): Return const address_space *.
4055 (regcache) <m_aspace>: Add const.
4056
4057 2017-11-02 Yao Qi <yao.qi@linaro.org>
4058
4059 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
4060 * frame.c (create_sentinel_frame): Likewise.
4061 * infrun.c (displaced_step_prepare_throw): Likewise.
4062 (resume): Likewise.
4063 (thread_still_needs_step_over_bp): Likewise.
4064 (proceed): Likewise.
4065 (do_target_wait): Likewise.
4066 (adjust_pc_after_break): Likewise.
4067 (handle_syscall_event): Likewise.
4068 (save_waitstatus): Likewise.
4069 (handle_inferior_event_1): Likewise.
4070 (handle_signal_stop): Likewise.
4071 (keep_going_pass_signal): Likewise.
4072 * linux-nat.c (status_callback): Likewise.
4073 (save_stop_reason): Likewise.
4074 (resume_stopped_resumed_lwps): Likewise.
4075 * record-full.c (record_full_exec_insn): Likewise.
4076 (record_full_wait_1): Likewise.
4077 * regcache.c (get_regcache_aspace): Remove.
4078 * regcache.h (get_regcache_aspace): Remove.
4079
4080 2017-11-02 Yao Qi <yao.qi@linaro.org>
4081
4082 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
4083 (init_regcache_descr): Use gdbarch_num_regs.
4084 (regcache::regcache): Likewise.
4085 (regcache::get_register_status): Likewise.
4086 (regcache::assert_raw_regnum): Likewise.
4087 (regcache::cooked_read): Likewise.
4088 (regcache::cooked_read_value): Likewise.
4089 (regcache::cooked_write): Likewise.
4090 (regcache::dump): Likewise.
4091 (regcache::num_raw_registers): New method.
4092 * regcache.h (class regcache) <num_raw_registers>: New.
4093
4094 2017-11-02 Yao Qi <yao.qi@linaro.org>
4095
4096 * regcache.c (regcache::assert_regnum): New method.
4097 (regcache::invalidate): Call assert_regnum.
4098 (regcache::raw_update): Likewise.
4099 (regcache::raw_write): Likewise.
4100 (regcache::raw_read_part): Likewise.
4101 (regcache::raw_write_part): Likewise.
4102 (regcache::raw_supply): Likewise.
4103 (regcache::raw_supply_integer): Likewise.
4104 (regcache::raw_supply_zeroed): Likewise.
4105 (regcache::raw_collect): Likewise.
4106 (regcache::raw_collect_integer): Likewise.
4107 * regcache.h (regcache::assert_regnum): Declare.
4108
4109 2017-11-02 Yao Qi <yao.qi@linaro.org>
4110
4111 * regcache.c (regcache::dump): Remove code.
4112
4113 2017-11-02 Yao Qi <yao.qi@linaro.org>
4114
4115 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
4116 Remove.
4117 <sizeof_cooked_register_status>: Remove.
4118 (init_regcache_descr): Update.
4119 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
4120 (regcache::save): Likewise.
4121 (regcache::dump): Likewise.
4122
4123 2017-11-01 James Bowman <james.bowman@ftdichip.com>
4124
4125 * ft32-tdep.c (ft32_fetch_instruction): New function.
4126 (ft32_analyze_prologue): Use ft32_fetch_instruction().
4127
4128 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
4129
4130 * cli/cli-script.c (execute_control_command): Rename to ...
4131 (execute_control_command_1): ... this.
4132 (execute_control_command): New function.
4133
4134 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
4135
4136 * tracepoint.c (tfind_command): Remove const_cast.
4137
4138 2017-10-30 Mike Gulick <mgulick@mathworks.com>
4139
4140 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
4141
4142 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
4143
4144 * common/common-utils.h (in_inclusive_range): New function.
4145 * arm-tdep.c (arm_record_extension_space): Use
4146 in_inclusive_range.
4147 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
4148 * cris-tdep.c (cris_spec_reg_applicable): Use
4149 in_inclusive_range.
4150
4151 2017-10-30 Pedro Alves <palves@redhat.com>
4152 Simon Marchi <simon.marchi@ericsson.com>
4153
4154 * remote.c (remote_set_syscall_catchpoint): Build a std::string
4155 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
4156
4157 2017-10-30 Pedro Alves <palves@redhat.com>
4158
4159 * common/common-utils.c (string_appendf, string_vappendf): New
4160 functions.
4161 * common/common-utils.h (string_appendf, string_vappendf): New
4162 declarations.
4163 * unittests/common-utils-selftests.c (string_appendf_func)
4164 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
4165 (string_vappendf_tests): New functions.
4166 (_initialize_common_utils_selftests): Register "string_appendf" and
4167 "string_vappendf tests".
4168
4169 2017-10-30 Pedro Alves <palves@redhat.com>
4170
4171 * unittests/common-utils-selftests.c (format_func): New typedef.
4172 (string_printf_tests, string_vprintf_tests): Tests factored out
4173 and merged to ...
4174 (test_format_func): ... this new function.
4175 (string_printf_tests, string_vprintf_tests): Reimplement on top of
4176 test_format_func.
4177
4178 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4179
4180 * darwin-nat.c: Remove include of gdb.h.
4181
4182 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4183
4184 * xtensa-xtregs.c: Fix formatting issues.
4185
4186 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4187
4188 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
4189
4190 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
4191
4192 PR python/21213
4193 * python/py-infthread.c (thpy_get_inferior): Increment reference
4194 of inferior before returning it.
4195
4196 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4197
4198 * unittests/common-utils-selftests.c (format): Add
4199 ATTRIBUTE_PRINTF.
4200
4201 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4202
4203 * xml-syscall.c (struct syscall_desc): Add constructor.
4204 <name>: Change type to std::string.
4205 (syscall_desc_up): New typedef.
4206 (syscall_desc_p): Remove typeder.
4207 (DEF_VEC_P(syscall_desc_p)): Remove.
4208 (struct syscall_group_desc): Add constructor.
4209 <name>: Change type to std::string.
4210 <syscalls>: Change type to std::vector.
4211 (syscall_group_desc_up): New typedef.
4212 (syscall_group_desc_p): Remove typedef.
4213 (DEF_VEC_P(syscall_group_desc_p)): Remove.
4214 (struct syscalls_info) <syscalls>: Change type to std::vector of
4215 unique_ptr.
4216 <groups>: Likewise.
4217 <my_gdb_datadir>: Change type to std::string.
4218 (syscalls_info_up): New typedef.
4219 (allocate_syscalls_info): Remove.
4220 (syscalls_info_free_syscalls_desc): Remove.
4221 (syscalls_info_free_syscall_group_desc): Remove.
4222 (free_syscalls_info): Remove.
4223 (make_cleanup_free_syscalls_info): Remove.
4224 (syscall_group_create_syscall_group_desc): Adjust.
4225 (syscall_group_add_syscall): Adjust.
4226 (syscall_create_syscall_desc): Adjust.
4227 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
4228 (init_syscalls_info): Adjust.
4229 (syscall_group_get_group_by_name): Adjust.
4230 (xml_get_syscall_number): Adjust.
4231 (xml_get_syscall_name): Adjust.
4232 (xml_list_of_syscalls): Adjust.
4233 (xml_list_syscalls_by_group): Adjust.
4234 (xml_list_of_groups): Adjust.
4235
4236 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4237
4238 * probe.h: Don't include gdb_vecs.h.
4239 (DEF_VEC_P (probe_p)): Remove.
4240 (find_probes_in_objfile): Return an std::vector.
4241 * probe.c (find_probes_in_objfile): Likewise.
4242 * breakpoint.c (breakpoint_objfile_data)
4243 <longjmp_probes>: Change type to std::vector.
4244 <exception_probes>: Likewise.
4245 (free_breakpoint_probes): Don't manually free vectors.
4246 (create_longjmp_master_breakpoint): Adjust.
4247 (create_exception_master_breakpoint): Adjust.
4248 * solib-svr4.c (svr4_create_probe_breakpoints): Change
4249 parameter type, adjust.
4250 (svr4_create_solib_event_breakpoints): Adjust.
4251
4252 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4253
4254 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
4255 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
4256 with new.
4257 (free_breakpoint_probes): Rename to ...
4258 (free_breakpoint_objfile_data): ... this, and call delete on
4259 bp_objfile_data..
4260
4261 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4262
4263 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
4264 (loaded_script_ptr): Remove typedef.
4265 (DEF_VEC_P (loaded_script_ptr)): Remove.
4266 (struct collect_matching_scripts_data): Add constructor.
4267 <scripts_p>: Change type to (pointer to) std::vector.
4268 (collect_matching_scripts_data): Adjust.
4269 (sort_scripts_by_name): Make suitable for std::sort.
4270 (print_scripts): Don't sort vector, adjust to std::vector.
4271 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
4272
4273 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4274
4275 * symfile.c (filename_language): Make struct, not typedef. Add
4276 constructor.
4277 <ext>: Change type to std::string.
4278 (DEF_VEC_O (filename_language)): Remove.
4279 (filename_language_table): Change type to std::vector.
4280 (add_filename_language): Adjust.
4281 (set_ext_lang_command): Adjust.
4282 (info_ext_lang_command): Adjust.
4283 (deduce_language_from_filename): Adjust.
4284 (class scoped_restore_filename_language_table): Remove.
4285 (test_filename_language): Use scoped_restore.
4286 (test_set_ext_lang_command): Use scoped_restore, adjust to
4287 std::vector change.
4288
4289 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4290
4291 * symfile.c: Include selftest.h.
4292 (class scoped_restore_filename_language_table): New.
4293 (test_filename_language): New test.
4294 (test_set_ext_lang_command): New test.
4295 (_initialize_symfile): Register tests.
4296
4297 2017-10-27 Keith Seitz <keiths@redhat.com>
4298
4299 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4300 in the bp_location, falling back to find_pc_sect_function when
4301 needed.
4302 (add_location_to_breakpoint): Save sal->symbol.
4303 * breakpoint.h (struct bp_location) <symbol>: New field.
4304 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4305 * symtab.h (struct symtab_and_line) <symbol>: New field.
4306
4307 2017-10-26 Patrick Frants <osscontribute@gmail.com>
4308
4309 PR gdb/13669
4310 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4311 to rewind obstack.
4312
4313 2017-10-26 Pedro Alves <palves@redhat.com>
4314
4315 * remote.c (remote_async_terminal_ours_p): Delete.
4316 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4317 Remove references to 'remote_async_terminal_ours_p'.
4318
4319 2017-10-26 Yao Qi <yao.qi@linaro.org>
4320
4321 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4322
4323 2017-10-26 Yao Qi <yao.qi@linaro.org>
4324
4325 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4326 aspace const.
4327 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4328 Likewise.
4329 * breakpoint.c (bpstat_check_location): Remove cast.
4330 (breakpoint_hit_catch_fork): Make aspce const.
4331 (breakpoint_hit_catch_solib): Likewise.
4332 (breakpoint_hit_catch_exec): Likewise.
4333 (breakpoint_hit_ranged_breakpoint): Likewise.
4334 (breakpoint_hit_watchpoint): Likewise.
4335 (base_breakpoint_breakpoint_hit): Likewise.
4336 (bkpt_breakpoint_hit): Likewise.
4337 (dprintf_breakpoint_hit): Likewise.
4338 (tracepoint_breakpoint_hit): Likewise.
4339 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4340
4341 2017-10-26 Yao Qi <yao.qi@linaro.org>
4342
4343 * breakpoint.c (breakpoint_location_address_match): Change
4344 "struct address_space *" to "const address_space".
4345 (breakpoint_location_address_range_overlap): Likewise.
4346 (breakpoint_here_p): Likewise.
4347 (breakpoint_in_range_p): Likewise.
4348 (moribund_breakpoint_here_p): Likewise.
4349 (bp_location_inserted_here_p): Likewise.
4350 (software_breakpoint_inserted_here_p): Likewise.
4351 (hardware_breakpoint_inserted_here_p): Likewise.
4352 (hardware_watchpoint_inserted_in_range): Likewise.
4353 (bpstat_check_location): Likewise.
4354 (bpstat_stop_status): Likewise.
4355 (breakpoint_address_match): Likewise.
4356 (breakpoint_address_match_range): Likewise.
4357 (breakpoint_location_address_match): Likewise.
4358 (breakpoint_location_address_range_overlap): Likewise.
4359 (insert_single_step_breakpoint): Likewise.
4360 (breakpoint_has_location_inserted_here): Likewise.
4361 (single_step_breakpoint_inserted_here_p): Likewise.
4362 (pc_at_non_inline_function): Likewise.
4363 * breakpoint.h (bpstat_stop_status): Update declaration.
4364 (breakpoint_here_p): Likewise.
4365 (breakpoint_in_range_p): Likewise.
4366 (moribund_breakpoint_here_p): Likewise.
4367 (breakpoint_inserted_here_p): Likewise.
4368 (software_breakpoint_inserted_here_p): Likewise.
4369 (hardware_breakpoint_inserted_here_p): Likewise.
4370 (breakpoint_has_location_inserted_here): Likewise.
4371 (single_step_breakpoint_inserted_here_p): Likewise.
4372 (hardware_watchpoint_inserted_in_range): Likewise.
4373 (breakpoint_address_match): Likewise.
4374 (insert_single_step_breakpoint): Likewise.
4375 (pc_at_non_inline_function): Likewise.
4376 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4377 * record.c (record_check_stopped_by_breakpoint): Likewise.
4378 * record.h (record_check_stopped_by_breakpoint): Likewise.
4379 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4380
4381 2017-10-25 Yao Qi <yao.qi@linaro.org>
4382
4383 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4384 regcache->arch () instead get_regcache_arch.
4385 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4386 Likewise.
4387 (aarch64_fbsd_store_inferior_registers): Likewise.
4388 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4389 (store_gregs_to_thread): Likewise.
4390 (fetch_fpregs_from_thread): Likewise.
4391 (store_fpregs_to_thread): Likewise.
4392 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4393 (aarch64_store_return_value): Likewise.
4394 (aarch64_software_single_step): Likewise.
4395 * aix-thread.c (aix_thread_wait): Likewise.
4396 (supply_reg32): Likewise.
4397 (supply_sprs64): Likewise.
4398 (supply_sprs32): Likewise.
4399 (fill_gprs64): Likewise.
4400 (fill_gprs32): Likewise.
4401 (fill_sprs64): Likewise.
4402 (fill_sprs32): Likewise.
4403 (store_regs_user_thread): Likewise.
4404 (store_regs_kernel_thread): Likewise.
4405 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4406 (alphabsd_store_inferior_registers): Likewise.
4407 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4408 (alpha_store_return_value): Likewise.
4409 (alpha_deal_with_atomic_sequence): Likewise.
4410 (alpha_next_pc): Likewise.
4411 (alpha_software_single_step): Likewise.
4412 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4413 (amd64bsd_store_inferior_registers): Likewise.
4414 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4415 Likewise.
4416 (amd64_linux_store_inferior_registers): Likewise.
4417 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4418 (amd64_collect_native_gregset): Likewise.
4419 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4420 (amd64obsd_collect_uthread): Likewise.
4421 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4422 (amd64_collect_fpregset): Likewise.
4423 (amd64_supply_fxsave): Likewise.
4424 (amd64_supply_xsave): Likewise.
4425 (amd64_collect_fxsave): Likewise.
4426 (amd64_collect_xsave): Likewise.
4427 * arc-tdep.c (arc_write_pc): Likewise.
4428 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4429 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4430 (arm_fbsd_store_inferior_registers): Likewise.
4431 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4432 (store_vfp_regs): Likewise.
4433 (arm_linux_fetch_inferior_registers): Likewise.
4434 (arm_linux_store_inferior_registers): Likewise.
4435 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4436 (arm_linux_sigreturn_next_pc): Likewise.
4437 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4438 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4439 (fetch_register): Likewise.
4440 (store_register): Likewise.
4441 * arm-tdep.c (arm_is_thumb): Likewise.
4442 (displaced_in_arm_mode): Likewise.
4443 (bx_write_pc): Likewise.
4444 (arm_get_next_pcs_addr_bits_remove): Likewise.
4445 (arm_software_single_step): Likewise.
4446 (arm_extract_return_value): Likewise.
4447 (arm_store_return_value): Likewise.
4448 (arm_write_pc): Likewise.
4449 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4450 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4451 (bsd_uthread_store_registers): Likewise.
4452 * core-regset.c (fetch_core_registers): Likewise.
4453 * corelow.c (get_core_registers): Likewise.
4454 * cris-tdep.c (cris_store_return_value): Likewise.
4455 (cris_extract_return_value): Likewise.
4456 (find_step_target): Likewise.
4457 (find_step_target): Likewise.
4458 (cris_software_single_step): Likewise.
4459 * ctf.c (ctf_fetch_registers): Likewise.
4460 * darwin-nat.c (cancel_breakpoint): Likewise.
4461 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4462 * frv-tdep.c (frv_extract_return_value): Likewise.
4463 * ft32-tdep.c (ft32_store_return_value): Likewise.
4464 (ft32_extract_return_value): Likewise.
4465 * go32-nat.c (fetch_register): Likewise.
4466 (go32_fetch_registers): Likewise.
4467 (go32_store_registers): Likewise.
4468 (store_register): Likewise.
4469 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4470 (h8300_store_return_value): Likewise.
4471 * hppa-linux-nat.c (fetch_register): Likewise.
4472 (store_register): Likewise.
4473 (hppa_linux_fetch_inferior_registers): Likewise.
4474 (hppa_linux_store_inferior_registers): Likewise.
4475 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4476 (i386_darwin_store_inferior_registers): Likewise.
4477 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4478 (gnu_store_registers): Likewise.
4479 * i386-linux-nat.c (fetch_register): Likewise.
4480 (store_register): Likewise.
4481 (supply_gregset): Likewise.
4482 (fill_gregset): Likewise.
4483 (i386_linux_fetch_inferior_registers): Likewise.
4484 (i386_linux_store_inferior_registers): Likewise.
4485 (i386_linux_resume): Likewise.
4486 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4487 Likewise.
4488 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4489 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4490 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4491 (i386obsd_collect_uthread): Likewise.
4492 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4493 (i386_supply_gregset): Likewise.
4494 (i386_collect_gregset): Likewise.
4495 (i386_supply_fpregset): Likewise.
4496 (i386_collect_fpregset): Likewise.
4497 (i386_mpx_bd_base): Likewise.
4498 * i386-v4-nat.c (supply_fpregset): Likewise.
4499 (fill_fpregset): Likewise.
4500 * i387-tdep.c (i387_supply_fsave): Likewise.
4501 (i387_collect_fsave): Likewise.
4502 (i387_supply_fxsave): Likewise.
4503 (i387_collect_fxsave): Likewise.
4504 (i387_supply_xsave): Likewise.
4505 (i387_collect_xsave): Likewise.
4506 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4507 (ia64_linux_store_registers): Likewise.
4508 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4509 (ia64_extract_return_value): Likewise.
4510 (ia64_store_return_value): Likewise.
4511 (find_func_descr): Likewise.
4512 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4513 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4514 (inf_ptrace_store_registers): Likewise.
4515 * infrun.c (use_displaced_stepping): Likewise.
4516 (displaced_step_prepare_throw): Likewise.
4517 (resume): Likewise.
4518 (proceed): Likewise.
4519 (do_target_wait): Likewise.
4520 (adjust_pc_after_break): Likewise.
4521 (handle_inferior_event_1): Likewise.
4522 (handle_signal_stop): Likewise.
4523 (save_infcall_suspend_state): Likewise.
4524 (restore_infcall_suspend_state): Likewise.
4525 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4526 * jit.c (jit_frame_prev_register): Likewise.
4527 * linux-nat.c (save_stop_reason): Likewise.
4528 (linux_nat_wait_1): Likewise.
4529 (resume_stopped_resumed_lwps): Likewise.
4530 * linux-record.c (record_linux_sockaddr): Likewise.
4531 (record_linux_msghdr): Likewise.
4532 (record_linux_system_call): Likewise.
4533 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4534 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4535 (lm32_store_return_value): Likewise.
4536 * m32c-tdep.c (m32c_read_flg): Likewise.
4537 (m32c_pseudo_register_read): Likewise.
4538 (m32c_pseudo_register_write): Likewise.
4539 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4540 (m32r_linux_collect_gregset): Likewise.
4541 * m32r-tdep.c (m32r_store_return_value): Likewise.
4542 (m32r_extract_return_value): Likewise.
4543 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4544 (m68kbsd_collect_fpregset): Likewise.
4545 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4546 * m68k-linux-nat.c (fetch_register): Likewise.
4547 (old_fetch_inferior_registers): Likewise.
4548 (old_store_inferior_registers): Likewise.
4549 (store_regs): Likewise.
4550 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4551 (m68k_svr4_store_return_value): Likewise.
4552 * m88k-tdep.c (m88k_store_arguments): Likewise.
4553 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4554 (mi_cmd_data_write_register_values): Likewise.
4555 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4556 (mips_fbsd_store_inferior_registers): Likewise.
4557 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4558 (mips_fbsd_supply_gregs): Likewise.
4559 (mips_fbsd_collect_fpregs): Likewise.
4560 (mips_fbsd_collect_gregs): Likewise.
4561 (mips_fbsd_supply_fpregset): Likewise.
4562 (mips_fbsd_collect_fpregset): Likewise.
4563 (mips_fbsd_supply_gregset): Likewise.
4564 (mips_fbsd_collect_gregset): Likewise.
4565 * mips-linux-nat.c (supply_gregset): Likewise.
4566 (fill_gregset): Likewise.
4567 (supply_fpregset): Likewise.
4568 (fill_fpregset): Likewise.
4569 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4570 (mips_fill_gregset): Likewise.
4571 (mips_supply_fpregset): Likewise.
4572 (mips_fill_fpregset): Likewise.
4573 (mips64_supply_gregset): Likewise.
4574 (micromips_linux_sigframe_validate): Likewise.
4575 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4576 (mipsnbsd_fetch_inferior_registers): Likewise.
4577 (mipsnbsd_store_inferior_registers): Likewise.
4578 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4579 (mipsnbsd_supply_gregset): Likewise.
4580 (mipsnbsd_iterate_over_regset_sections): Likewise.
4581 (mipsnbsd_supply_reg): Likewise.
4582 (mipsnbsd_supply_fpreg): Likewise.
4583 * mips-tdep.c (mips_in_frame_stub): Likewise.
4584 (mips_dummy_id): Likewise.
4585 (is_octeon_bbit_op): Likewise.
4586 (micromips_bc1_pc): Likewise.
4587 (extended_mips16_next_pc): Likewise.
4588 (mips16_next_pc): Likewise.
4589 (deal_with_atomic_sequence): Likewise.
4590 * moxie-tdep.c (moxie_process_readu): Likewise.
4591 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4592 * nto-procfs.c (procfs_store_registers): Likewise.
4593 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4594 (ppcfbsd_store_inferior_registers): Likewise.
4595 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4596 (fetch_altivec_register): Likewise.
4597 (get_spe_registers): Likewise.
4598 (fetch_spe_register): Likewise.
4599 (fetch_altivec_registers): Likewise.
4600 (fetch_all_gp_regs): Likewise.
4601 (fetch_all_fp_regs): Likewise.
4602 (store_vsx_register): Likewise.
4603 (store_altivec_register): Likewise.
4604 (set_spe_registers): Likewise.
4605 (store_spe_register): Likewise.
4606 (store_altivec_registers): Likewise.
4607 (store_all_gp_regs): Likewise.
4608 (store_all_fp_regs): Likewise.
4609 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4610 (ppc_linux_collect_gregset): Likewise.
4611 (ppc_canonicalize_syscall): Likewise.
4612 (ppc_linux_record_signal): Likewise.
4613 (ppu2spu_prev_register): Likewise.
4614 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4615 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4616 (ppcobsd_store_registers): Likewise.
4617 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4618 Likewise.
4619 (ppc_ravenscar_generic_store_registers): Likewise.
4620 * procfs.c (procfs_fetch_registers): Likewise.
4621 (procfs_store_registers): Likewise.
4622 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4623 (ravenscar_store_registers): Likewise.
4624 (ravenscar_prepare_to_store): Likewise.
4625 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4626 * record-full.c (record_full_wait_1): Likewise.
4627 (record_full_registers_change): Likewise.
4628 (record_full_store_registers): Likewise.
4629 (record_full_core_fetch_registers): Likewise.
4630 (record_full_save): Likewise.
4631 (record_full_goto_insn): Likewise.
4632 * regcache.c (regcache_register_size): Likewise.
4633 (get_regcache_arch): Remove.
4634 (regcache_read_pc): Likewise.
4635 * regcache.h (get_regcache_arch): Remove.
4636 * remote-sim.c (gdbsim_fetch_register): Likewise.
4637 (gdbsim_store_register): Likewise.
4638 * remote.c (fetch_register_using_p): Likewise.
4639 (send_g_packet): Likewise.
4640 (remote_prepare_to_store): Likewise.
4641 (store_registers_using_G): Likewise.
4642 * reverse.c (save_bookmark_command): Likewise.
4643 (goto_bookmark_command): Likewise.
4644 * rs6000-aix-tdep.c (branch_dest): Likewise.
4645 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4646 (fetch_register): Likewise.
4647 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4648 (ppc_collect_reg): Likewise.
4649 (ppc_collect_gregset): Likewise.
4650 (ppc_collect_fpregset): Likewise.
4651 (ppc_collect_vsxregset): Likewise.
4652 (ppc_collect_vrregset): Likewise.
4653 (ppc_displaced_step_hw_singlestep): Likewise.
4654 (rs6000_pseudo_register_read): Likewise.
4655 (rs6000_pseudo_register_write): Likewise.
4656 * s390-linux-nat.c (supply_gregset): Likewise.
4657 (fill_gregset): Likewise.
4658 (s390_linux_fetch_inferior_registers): Likewise.
4659 * s390-linux-tdep.c (s390_write_pc): Likewise.
4660 (s390_software_single_step): Likewise.
4661 (s390_all_but_pc_registers_record): Likewise.
4662 (s390_linux_syscall_record): Likewise.
4663 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4664 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4665 (shnbsd_store_inferior_registers): Likewise.
4666 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4667 (sh_extract_return_value_fpu): Likewise.
4668 (sh_store_return_value_nofpu): Likewise.
4669 (sh_corefile_supply_regset): Likewise.
4670 (sh_corefile_collect_regset): Likewise.
4671 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4672 (sh64_store_return_value): Likewise.
4673 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4674 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4675 (sparc_store_inferior_registers): Likewise.
4676 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4677 (sparc_ravenscar_prepare_to_store): Likewise.
4678 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4679 (sparc_analyze_control_transfer): Likewise.
4680 (sparc_step_trap): Likewise.
4681 (sparc_software_single_step): Likewise.
4682 (sparc32_gdbarch_init): Likewise.
4683 (sparc_supply_rwindow): Likewise.
4684 (sparc_collect_rwindow): Likewise.
4685 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4686 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4687 (sparc64nbsd_collect_gregset): Likewise.
4688 (sparc64nbsd_supply_fpregset): Likewise.
4689 (sparc64nbsd_collect_fpregset): Likewise.
4690 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4691 (sparc64_supply_gregset): Likewise.
4692 (sparc64_collect_gregset): Likewise.
4693 (sparc64_supply_fpregset): Likewise.
4694 (sparc64_collect_fpregset): Likewise.
4695 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4696 * spu-tdep.c (spu_unwind_sp): Likewise.
4697 (spu2ppu_prev_register): Likewise.
4698 (spu_memory_remove_breakpoint): Likewise.
4699 * stack.c (return_command): Likewise.
4700 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4701 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4702 * tracefile.c (trace_save_ctf): Likewise.
4703 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4704 (do_windows_store_inferior_registers): Likewise.
4705 (windows_resume): Likewise.
4706 * xtensa-linux-nat.c (fill_gregset): Likewise.
4707 (supply_gregset_reg): Likewise.
4708 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4709 (xtensa_register_read_masked): Likewise.
4710 (xtensa_supply_gregset): Likewise.
4711 (xtensa_extract_return_value): Likewise.
4712 (xtensa_store_return_value): Likewise.
4713
4714 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4715
4716 * doublest.c (floatformat_from_string): New function.
4717 * doublest.h (floatformat_from_string): Add prototype.
4718
4719 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4720 (OP_FLOAT): ... this.
4721 * expression.h: Do not include "doublest.h".
4722 (union exp_element): Replace doubleconst and decfloatconst by
4723 new element floatconst.
4724 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4725 (ada_evaluate_subexp): Likewise.
4726 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4727 OP_DOUBLE and OP_DECFLOAT.
4728 * expprint.c (print_subexp_standard): Likewise.
4729 (dump_subexp_body_standard): Likewise.
4730 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4731
4732 * parse.c: Include "dfp.h".
4733 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4734 (write_exp_elt_floatcst): New function.
4735 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4736 and OP_DECFLOAT.
4737 (operator_check_standard): Likewise.
4738 (parse_float): Do not accept suffix. Take type as input. Return bool.
4739 Return target format buffer instead of host DOUBLEST.
4740 Use floatformat_from_string and decimal_from_string to parse
4741 either binary or decimal floating-point types.
4742 (parse_c_float): Remove.
4743 * parser-defs.h: Do not include "doublest.h".
4744 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4745 (write_exp_elt_floatcst): Add prototype.
4746 (parse_float): Update prototype.
4747 (parse_c_float): Remove.
4748
4749 * c-exp.y: Do not include "dfp.h".
4750 (typed_val_float): Use byte buffer instead of DOUBLEST.
4751 (typed_val_decfloat): Remove.
4752 (DECFLOAT): Remove.
4753 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4754 (parse_number): Update to new parse_float interface.
4755 Parse suffixes and determine type before calling parse_float.
4756 Handle decimal and binary FP types the same way.
4757
4758 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4759 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4760 (parse_number): Update to new parse_float interface.
4761 Parse suffixes and determine type before calling parse_float.
4762
4763 * f-exp.y: Replace dval by typed_val_float.
4764 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4765 (parse_number): Use parse_float instead of atof.
4766
4767 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4768 (parse_go_float): Remove.
4769 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4770 (parse_number): Call parse_float instead of parse_go_float.
4771 Parse suffixes and determine type before calling parse_float.
4772
4773 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4774 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4775 (parse_number): Update to new parse_float interface.
4776 Parse suffixes and determine type before calling parse_float.
4777
4778 * m2-exp.y: Replace dval by byte buffer val.
4779 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4780 (parse_number): Call parse_float instead of atof.
4781
4782 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4783 (lex_number): Call parse_float instead of strtod.
4784 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4785 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4786 Use write_exp_elt_floatcst.
4787 (unit_testing): Remove static variable.
4788 (rust_type): Do not check unit_testing.
4789 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4790
4791 * ada-exp.y (type_float, type_double): Remove.
4792 (typed_val_float): Use byte buffer instead of DOUBLEST.
4793 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4794 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4795
4796 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4797
4798 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4799 * arch/aarch64.h: New file.
4800
4801 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4802
4803 * dfp.h (decimal_from_string): Use const reference for argument.
4804 * dfp.c (decimal_from_string): Likewise.
4805
4806 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4807
4808 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4809 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4810 * mips-tdep.c (mips_print_fp_register): Likewise.
4811
4812 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4813
4814 * common/format.h (enum argclass): Replace decfloat_arg by
4815 dec32float_arg, dec64float_arg, and dec128float_arg.
4816 * common/format.c (parse_format_string): Update to return
4817 new decimal float argument classes.
4818
4819 * printcmd.c (printf_decfloat): Rename to ...
4820 (printf_floating): ... this. Add argclass argument, and use it
4821 instead of parsing the format string again. Add support for
4822 binary floating-point values, using floatformat_to_string.
4823 Convert value to the target format if it doesn't already match.
4824 (ui_printf): Call printf_floating instead of printf_decfloat,
4825 also for double_arg / long_double_arg. Pass argclass.
4826
4827 * dfp.c (decimal_to_string): Add format string argument.
4828 * dfp.h (decimal_to_string): Likewise.
4829
4830 * doublest.c (floatformat_to_string): Add format string argument.
4831 * doublest.h (floatformat_to_string): Likewise.
4832
4833 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4834
4835 * doublest.c (floatformat_precision): New routine.
4836 (floatformat_to_string): Likewise.
4837 * doublest.c (floatformat_to_string): Add prototype.
4838
4839 * printcmd.c (print_scalar_formatted): Only call print_floating
4840 on floating-point types.
4841 * valprint.c: Do not include "floatformat.h".
4842 (generic_val_print_decfloat): Remove.
4843 (generic_val_print): Call generic_val_print_float for both
4844 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4845 (print_floating): Use floatformat_to_string. Handle decimal float.
4846 (print_decimal_floating): Remove, merge into floatformat_to_string.
4847 * value.h (print_decimal_floating): Remove.
4848
4849 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4850
4851 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4852
4853 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4854
4855 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4856
4857 * memattr.h: Don't include vec.h.
4858 (struct mem_attrib): Initialize fields.
4859 <unknown>: New static method.
4860 (struct mem_region): Add constructors, operator<, initialize
4861 fields.
4862 * memattr.c: Include algorithm.
4863 (default_mem_attrib, unknown_mem_attrib): Remove.
4864 (user_mem_region_list): New global.
4865 (target_mem_region_list, mem_region_list): Change type to
4866 std::vector<mem_region>.
4867 (mem_use_target): Now a function.
4868 (target_mem_regions_valid): Change type to bool.
4869 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4870 (require_user_regions): Adjust.
4871 (require_target_regions): Adjust.
4872 (create_mem_region): Adjust.
4873 (lookup_mem_region): Adjust.
4874 (invalidate_target_mem_regions): Adjust.
4875 (mem_clear): Rename to...
4876 (user_mem_clear): ... this, and adjust.
4877 (mem_command): Adjust.
4878 (info_mem_command): Adjust.
4879 (mem_enable, enable_mem_command, mem_disable,
4880 disable_mem_command): Adjust.
4881 (mem_delete): Adjust.
4882 (delete_mem_command): Adjust.
4883 * memory-map.h (parse_memory_map): Return an std::vector.
4884 * memory-map.c (parse_memory_map): Likewise.
4885 (struct memory_map_parsing_data): Add constructor.
4886 <memory_map>: Point to std::vector.
4887 (memory_map_start_memory): Adjust.
4888 (memory_map_end_memory): Adjust.
4889 (memory_map_end_property): Adjust.
4890 (clear_result): Remove.
4891 * remote.c (remote_memory_map): Return an std::vector.
4892 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4893 Remove.
4894 (target_debug_print_mem_region_vector): New.
4895 * target-delegates.c: Regenerate.
4896 * target.h (mem_region_vector): New typedef.
4897 (to_memory_map): Return mem_region_vector.
4898 (target_memory_map): Return an std::vector.
4899 * target.c (target_memory_map): Return an std::vector.
4900 (flash_erase_command): Adjust.
4901
4902 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4903
4904 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4905 Change type to std::string.
4906 (memory_map_start_property): Adjust.
4907 (memory_map_end_property): Adjust.
4908
4909 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4910
4911 * infrun.h: Include common/byte-vector.h.
4912 (struct displaced_step_closure): New struct.
4913 (struct buf_displaced_step_closure): New struct.
4914 * infrun.c (displaced_step_closure::~displaced_step_closure):
4915 Provide default implementation.
4916 (displaced_step_clear): Deallocate step closure with delete.
4917 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4918 (aarch64_displaced_step_closure): ... this, extend
4919 displaced_step_closure.
4920 (aarch64_displaced_step_data) <dsc>: Change type to
4921 aarch64_displaced_step_closure.
4922 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4923 unique_ptr.
4924 (aarch64_displaced_step_fixup): Add cast for displaced step
4925 closure.
4926 * amd64-tdep.c (displaced_step_closure): Rename to ...
4927 (amd64_displaced_step_closure): ... this, extend
4928 displaced_step_closure.
4929 <insn_buf>: Change type to std::vector<gdb_byte>.
4930 <max_len>: Remove.
4931 (fixup_riprel): Change type of DSC parameter, adjust to type
4932 change of insn_buf.
4933 (fixup_displaced_copy): Change type of DSC parameter.
4934 (amd64_displaced_step_copy_insn): Instantiate
4935 amd64_displaced_step_closure.
4936 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4937 to type change of insn_buf.
4938 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4939 parameter DSC.
4940 (arm_linux_copy_svc): Likewise.
4941 (cleanup_kernel_helper_return): Likewise.
4942 (arm_catch_kernel_helper_return): Likewise.
4943 (arm_linux_displaced_step_copy_insn): Instantiate
4944 arm_displaced_step_closure.
4945 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4946 (displaced_read_reg): Change type of parameter DSC.
4947 (branch_write_pc): Likewise.
4948 (load_write_pc): Likewise.
4949 (alu_write_pc): Likewise.
4950 (displaced_write_reg): Likewise.
4951 (arm_copy_unmodified): Likewise.
4952 (thumb_copy_unmodified_32bit): Likewise.
4953 (thumb_copy_unmodified_16bit): Likewise.
4954 (cleanup_preload): Likewise.
4955 (install_preload): Likewise.
4956 (arm_copy_preload): Likewise.
4957 (thumb2_copy_preload): Likewise.
4958 (install_preload_reg): Likewise.
4959 (arm_copy_preload_reg): Likewise.
4960 (cleanup_copro_load_store): Likewise.
4961 (install_copro_load_store): Likewise.
4962 (arm_copy_copro_load_store) Likewise.
4963 (thumb2_copy_copro_load_store): Likewise.
4964 (cleanup_branch): Likewise.
4965 (install_b_bl_blx): Likewise.
4966 (arm_copy_b_bl_blx): Likewise.
4967 (thumb2_copy_b_bl_blx): Likewise.
4968 (thumb_copy_b): Likewise.
4969 (install_bx_blx_reg): Likewise.
4970 (arm_copy_bx_blx_reg): Likewise.
4971 (thumb_copy_bx_blx_reg): Likewise.
4972 (cleanup_alu_imm): Likewise.
4973 (arm_copy_alu_imm): Likewise.
4974 (thumb2_copy_alu_imm): Likewise.
4975 (cleanup_alu_reg): Likewise.
4976 (install_alu_reg): Likewise.
4977 (arm_copy_alu_reg): Likewise.
4978 (thumb_copy_alu_reg): Likewise.
4979 (cleanup_alu_shifted_reg): Likewise.
4980 (install_alu_shifted_reg): Likewise.
4981 (arm_copy_alu_shifted_reg): Likewise.
4982 (cleanup_load): Likewise.
4983 (cleanup_store): Likewise.
4984 (arm_copy_extra_ld_st): Likewise.
4985 (install_load_store): Likewise.
4986 (thumb2_copy_load_literal): Likewise.
4987 (thumb2_copy_load_reg_imm): Likewise.
4988 (arm_copy_ldr_str_ldrb_strb): Likewise.
4989 (cleanup_block_load_all): Likewise.
4990 (cleanup_block_store_pc): Likewise.
4991 (cleanup_block_load_pc): Likewise.
4992 (arm_copy_block_xfer): Likewise.
4993 (thumb2_copy_block_xfer): Likewise.
4994 (cleanup_svc): Likewise.
4995 (install_svc): Likewise.
4996 (arm_copy_svc): Likewise.
4997 (thumb_copy_svc): Likewise.
4998 (arm_copy_undef): Likewise.
4999 (thumb_32bit_copy_undef): Likewise.
5000 (arm_copy_unpred): Likewise.
5001 (arm_decode_misc_memhint_neon): Likewise.
5002 (arm_decode_unconditional): Likewise.
5003 (arm_decode_miscellaneous): Likewise.
5004 (arm_decode_dp_misc): Likewise.
5005 (arm_decode_ld_st_word_ubyte): Likewise.
5006 (arm_decode_media): Likewise.
5007 (arm_decode_b_bl_ldmstm): Likewise.
5008 (arm_decode_ext_reg_ld_st): Likewise.
5009 (thumb2_decode_dp_shift_reg): Likewise.
5010 (thumb2_decode_ext_reg_ld_st): Likewise.
5011 (arm_decode_svc_copro): Likewise.
5012 (thumb2_decode_svc_copro): Likewise.
5013 (install_pc_relative): Likewise.
5014 (thumb_copy_pc_relative_16bit): Likewise.
5015 (thumb_decode_pc_relative_16bit): Likewise.
5016 (thumb_copy_pc_relative_32bit): Likewise.
5017 (thumb_copy_16bit_ldr_literal): Likewise.
5018 (thumb_copy_cbnz_cbz): Likewise.
5019 (thumb2_copy_table_branch): Likewise.
5020 (cleanup_pop_pc_16bit_all): Likewise.
5021 (thumb_copy_pop_pc_16bit): Likewise.
5022 (thumb_process_displaced_16bit_insn): Likewise.
5023 (decode_thumb_32bit_ld_mem_hints): Likewise.
5024 (thumb_process_displaced_32bit_insn): Likewise.
5025 (thumb_process_displaced_insn): Likewise.
5026 (arm_process_displaced_insn): Likewise.
5027 (arm_displaced_init_closure): Likewise.
5028 (arm_displaced_step_fixup): Add cast for closure.
5029 * arm-tdep.h: Include infrun.h.
5030 (displaced_step_closure): Rename to ...
5031 (arm_displaced_step_closure): ... this, extend
5032 displaced_step_closure.
5033 <u::svc::copy_svc_os>: Change type of parameter DSC.
5034 <cleanup>: Likewise.
5035 (arm_process_displaced_insn): Likewise.
5036 (arm_displaced_init_closure): Likewise.
5037 (displaced_read_reg): Likewise.
5038 (displaced_write_reg): Likewise.
5039 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5040 Adjust.
5041 * i386-tdep.h: Include infrun.h.
5042 (i386_displaced_step_closure): New typedef.
5043 * i386-tdep.c (i386_displaced_step_copy_insn): Use
5044 i386_displaced_step_closure.
5045 (i386_displaced_step_fixup): Adjust.
5046 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
5047 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
5048 and unique_ptr.
5049 (ppc_displaced_step_fixup): Adjust.
5050 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
5051 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
5052 and unique_ptr.
5053 (s390_displaced_step_fixup): Adjust.
5054
5055 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
5056
5057 * interps.h (interp_resume, interp_suspend, interp_set_temp):
5058 Remove declarations.
5059
5060 2017-10-20 Tom Tromey <tom@tromey.com>
5061
5062 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
5063 std::vector.
5064 (gdb_bfd_record_inclusion): Update.
5065 (bfdp): Remove typedef.
5066
5067 2017-10-20 Tom Tromey <tom@tromey.com>
5068
5069 * gdb_bfd.c (gdb_bfd_ref): Use new.
5070 (struct gdb_bfd_data): Add constructor, destructor, and member
5071 initializers.
5072 (gdb_bfd_unref): Use delete.
5073
5074 2017-10-20 Tom Tromey <tom@tromey.com>
5075
5076 * exec.c (exec_file_attach): Use new_bfd_ref.
5077 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
5078 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5079 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
5080 new_bfd_ref.
5081 * gdb_bfd.h (new_bfd_ref): New function.
5082
5083 2017-10-20 Pedro Alves <palves@redhat.com>
5084
5085 * main.c (captured_command_loop): Add attribute noinline.
5086
5087 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
5088
5089 * interps.c (struct interp_factory): Add constructor.
5090 (interp_factory_p): Remove typedef.
5091 (DEF_VEC_P(interp_factory_p)): Remove.
5092 (interpreter_factories): Change type to std::vector.
5093 (interp_factory_register): Adjust.
5094 (interp_lookup): Adjust.
5095 (interpreter_completer): Adjust.
5096
5097 2017-10-19 Tom Tromey <tom@tromey.com>
5098
5099 * break-catch-syscall.c (catch_syscall_completer): Use
5100 std::string, gdb::unique_xmalloc_ptr.
5101
5102 2017-10-19 Tom Tromey <tom@tromey.com>
5103
5104 * infcall.c (call_function_by_hand_dummy): Use std::string.
5105
5106 2017-10-19 Tom Tromey <tom@tromey.com>
5107
5108 * mi/mi-main.c (mi_cmd_execute): Update.
5109 * top.h (prepare_execute_command): Return scoped_value_mark.
5110 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
5111 Add move constructor.
5112 * top.c (prepare_execute_command): Return scoped_value_mark.
5113 (execute_command): Update.
5114
5115 2017-10-19 Pedro Alves <palves@redhat.com>
5116
5117 * xml-support.c (xml_fetch_content_from_file): Check fread's
5118 return.
5119
5120 2017-10-19 Pedro Alves <palves@redhat.com>
5121
5122 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
5123 async.
5124 (handle_error_fd): New function.
5125 (ser_base_async): Add/delete an event loop file handler for
5126 error_fd.
5127
5128 2017-10-19 Pedro Alves <palves@redhat.com>
5129
5130 * xml-support.c (xml_fetch_content_from_file): Don't read in
5131 chunks. Instead use fseek to determine the file's size, and read
5132 it in one go.
5133
5134 2017-11-18 Keith Seitz <keiths@redhat.com>
5135
5136 * c-exp.y (oper): Canonicalize conversion operators of user-defined
5137 types.
5138 Add whitespace to front of type name.
5139
5140 2017-10-18 Keith Seitz <keiths@redhat.com>
5141
5142 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
5143 DW_AT_accessibility.
5144
5145 2017-10-18 Yao Qi <yao.qi@linaro.org>
5146
5147 * features/tic6x-c62x-linux.c: Remove.
5148
5149 2017-10-17 Tom Tromey <tom@tromey.com>
5150
5151 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
5152 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
5153 (do_mixed_source_and_assembly): Likewise.
5154
5155 2017-10-17 Tom Tromey <tom@tromey.com>
5156
5157 * regcache.c (regcache::xfer_part): Remove assertion.
5158
5159 2017-10-17 Pedro Alves <palves@redhat.com>
5160
5161 * xml-support.c (xml_fetch_content_from_file): Call
5162 unique_ptr::release() instead unique_ptr::get() when passing
5163 through xrealloc.
5164
5165 2017-10-17 Yao Qi <yao.qi@linaro.org>
5166
5167 * regcache.c (regcache::xfer_part): Remove parameters read and
5168 write, add parameter is_raw. All callers are updated.
5169
5170 2017-10-16 Keith Seitz <keiths@redhat.com>
5171
5172 * c-typeprint.c (enum access_specifier): Moved here from
5173 c_type_print_base.
5174 (output_access_specifier): New function.
5175 (c_type_print_base): Consider typedefs when assessing
5176 whether access labels are needed.
5177 Use output_access_specifier as needed.
5178 Output access specifier for typedefs, if needed.
5179 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
5180 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
5181 fields.
5182 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
5183 accessor macros.
5184
5185 2017-10-16 Tom Tromey <tom@tromey.com>
5186
5187 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
5188 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
5189 * target.c (target_fileio_read_stralloc): Update.
5190 * sparc64-tdep.c (adi_is_addr_mapped): Update.
5191 * target.h (target_fileio_read_stralloc): Return
5192 unique_xmalloc_ptr.
5193
5194 2017-10-16 Tom Tromey <tom@tromey.com>
5195
5196 * xml-syscall.c (xml_init_syscalls_info): Update.
5197 * xml-support.c (xinclude_start_include): Update.
5198 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
5199 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
5200 (xml_fetch_content_from_file): Likewise.
5201 * osdata.c (get_osdata): Update.
5202 * target.h (target_read_stralloc, target_get_osdata): Return
5203 unique_xmalloc_ptr.
5204 * solib-aix.c (solib_aix_get_library_list): Update.
5205 * solib-target.c (solib_target_current_sos): Update.
5206 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
5207 * xml-tdesc.c (fetch_available_features_from_target): Update.
5208 (target_fetch_description_xml): Update.
5209 (file_read_description_xml): Update.
5210 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
5211 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
5212 (remote_pid_to_exec_file): Update.
5213 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
5214 (target_get_osdata): Likewise.
5215
5216 2017-10-16 Tom Tromey <tom@tromey.com>
5217
5218 * remote.c (remote_register_number_and_offset): Use std::vector.
5219 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
5220 (putpkt_binary): Use gdb::def_vector.
5221 (compare_sections_command): Use gdb::byte_vector.
5222
5223 2017-10-16 Tom Tromey <tom@tromey.com>
5224
5225 * ppc-linux-nat.c (hwdebug_insert_point): Use
5226 gdb::unique_xmalloc_ptr, XDUP.
5227
5228 2017-10-16 Tom Tromey <tom@tromey.com>
5229
5230 * probe.c (parse_probes): Use std::string.
5231 (info_probes_for_ops, enable_probes_command)
5232 (disable_probes_command): Remove cleanups.
5233
5234 2017-10-16 Tom Tromey <tom@tromey.com>
5235
5236 * buildsym.c (block_compar): Remove.
5237 (end_symtab_get_static_block): Use std::vector.
5238
5239 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
5240
5241 * memrange.h (struct mem_range): Define operator< and operator==.
5242 (mem_range_s): Remove.
5243 (DEF_VEC_O (mem_range_s)): Remove.
5244 (normalize_mem_ranges): Change parameter type to std::vector.
5245 * memrange.c (compare_mem_ranges): Remove.
5246 (normalize_mem_ranges): Change parameter type to std::vector,
5247 adjust to vector change.
5248 * exec.c (section_table_available_memory): Return vector, remove
5249 parameter.
5250 (section_table_read_available_memory): Adjust to std::vector
5251 change.
5252 * remote.c (remote_read_bytes): Adjust to std::vector
5253 change.
5254 * tracepoint.h (traceframe_available_memory): Change parameter
5255 type to std::vector.
5256 * tracepoint.c (traceframe_available_memory): Change parameter
5257 type to std::vector, adjust.
5258 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
5259 std::vector change.
5260 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5261 unittests/memrange-selftests.c.
5262 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
5263 * gdb/unittests/memrange-selftests.c: New file.
5264
5265 2017-10-16 Pedro Alves <palves@redhat.com>
5266
5267 * elfread.c (probe_key_free): Rename range-for variable.
5268 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
5269 (find_probe_by_pc, collect_probes): Rename range-for variable.
5270
5271 2017-10-16 Yao Qi <yao.qi@linaro.org>
5272
5273 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
5274 * features/tic6x-c62x.c: Remove.
5275 * features/tic6x-c64x-linux.c: Remove.
5276 * features/tic6x-c64x.c: Remove.
5277 * features/tic6x-c64xp-linux.c: Remove.
5278 * features/tic6x-c64xp.c: Remove.
5279 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
5280 initialize_tdesc_tic6x_*_linux functions.
5281 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
5282 initialize_tdesc_tic6x_* functions.
5283
5284 2017-10-16 Yao Qi <yao.qi@linaro.org>
5285
5286 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
5287 tic6x-c62x.
5288 * regformats/tic6x-c62x.dat: Remove.
5289 * regformats/tic6x-c64x.dat: Remove.
5290 * regformats/tic6x-c64xp.dat: Remove.
5291
5292 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
5293
5294 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5295 (the !HAVE_LIBEXPAT version).
5296
5297 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5298
5299 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5300 const.
5301
5302 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5303
5304 * target.h: Include tracepoint.h.
5305 (enum trace_find_type): Move to tracepoint.h.
5306 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5307 * tracepoint.h: Don't include target.h
5308 (enum trace_find_type): Move from target.h.
5309 (parse_traceframe_info): Return a unique ptr.
5310 * tracepoint.c (current_traceframe_info): Change type to unique
5311 ptr.
5312 (free_traceframe_info): Remove.
5313 (clear_traceframe_info): Don't manually free
5314 current_traceframe_info.
5315 (free_result): Remove.
5316 (parse_traceframe_info): Return a unique ptr.
5317 (get_traceframe_info): Adjust to unique ptr.
5318 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5319 * remote.c (remote_traceframe_info): Return a unique ptr.
5320 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5321 ptr.
5322 * target-debug.h (target_debug_print_traceframe_info_up): New
5323 macro.
5324 * target-delegates.c: Regenerate.
5325
5326 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5327
5328 * memrange.h (struct mem_range): Add constructors.
5329 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5330 std::vector<mem_range>.
5331 * tracepoint.c (free_traceframe_info): Don't manually free
5332 vector.
5333 (traceframe_info_start_memory): Adjust to vector change.
5334 (traceframe_available_memory): Likewise.
5335 * tracefile-tfile.c (build_traceframe_info): Likewise.
5336 * ctf.c (ctf_traceframe_info): Likewise.
5337
5338 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5339
5340 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5341 std::vector<int>.
5342 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5343 (traceframe_info_start_tvar): Adjust to vector change.
5344 (parse_traceframe_info): Allocate with new.
5345 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5346 vector change.
5347 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5348 change.
5349 tfile_traceframe_info): Allocate with new.
5350 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5351 change.
5352
5353 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5354
5355 * tracepoint.c (traceframe_info): Rename to...
5356 (current_traceframe_info): ...this.
5357 (clear_traceframe_info): Adjust.
5358 (get_traceframe_info): Adjust.
5359
5360 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5361
5362 * nat/linux-osdata.c: Include algorithm.
5363 (compare_processes): Remove.
5364 (struct pid_pgid_entry): New struct.
5365 (linux_xfer_osdata_processgroups): Use std::vector instead of
5366 XNEWVEC.
5367
5368 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5369
5370 * objfiles.h: Don't include symfile.h.
5371 (struct partial_symbol): Remove forward-declaration.
5372 (struct objfile) <global_psymbols, static_psymbols>: Change type
5373 to std::vector<partial_symbol *>.
5374 * objfiles.c (objfile::objfile): Don't memset those fields.
5375 (objfile::~objfile): Don't free those fields.
5376 * psympriv.h (struct psymbol_allocation_list): Remove
5377 forward-declaration.
5378 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5379 to std::vector.
5380 (start_psymtab_common): Change parameters to std::vector.
5381 * psymtab.c: Include algorithm.
5382 (require_partial_symbols): Call shrink_to_fit.
5383 (find_pc_sect_psymbol): Adjust to vector change.
5384 (match_partial_symbol): Likewise.
5385 (lookup_partial_symbol): Likewise.
5386 (psym_relocate): Likewise.
5387 (dump_psymtab): Likewise.
5388 (recursively_search_psymtabs): Likewise.
5389 (compare_psymbols): Remove.
5390 (sort_pst_symbols): Adjust to vector change.
5391 (start_psymtab_common): Likewise.
5392 (end_psymtab_common): Likewise.
5393 (psymbol_bcache_full): De-constify return value.
5394 (add_psymbol_to_bcache): Likewise.
5395 (extend_psymbol_list): Remove.
5396 (append_psymbol_to_list): Adjust to vector change.
5397 (add_psymbol_to_list): Likewise.
5398 (init_psymbol_list): Likewise.
5399 (maintenance_info_psymtabs): Likewise.
5400 (maintenance_check_psymtabs): Likewise.
5401 * symfile.h (struct psymbol_allocation_list): Remove.
5402 * symfile.c (reread_symbols): Adjust to vector change.
5403 * dbxread.c (start_psymtab): Change type of parameters.
5404 (dbx_symfile_read): Adjust to vector change.
5405 (read_dbx_symtab): Likewise.
5406 (start_psymtab): Change type of parameters.
5407 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5408 (create_partial_symtab): Likewise.
5409 (add_partial_symbol): Likewise.
5410 (write_one_signatured_type): Likewise.
5411 (recursively_write_psymbols): Likewise.
5412 * mdebugread.c (parse_partial_symbols): Likewise.
5413 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5414 (scan_xcoff_symtab): Adjust to vector change.
5415 (xcoff_initial_scan): Likewise.
5416
5417 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5418
5419 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5420
5421 2017-10-13 Yao Qi <yao.qi@linaro.org>
5422
5423 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5424 Remove s390x-*-expedite, add s390x-expedite.
5425
5426 2017-10-13 Yao Qi <yao.qi@linaro.org>
5427
5428 * features/s390-gs-linux64.c: Regenerated.
5429 * features/s390x-gs-linux64.c: Regenerated.
5430
5431 2017-10-13 Tom Tromey <tom@tromey.com>
5432
5433 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5434 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5435 delete.
5436 * symfile.c (symbol_file_add_with_addrs): Use new.
5437 (symbol_file_add_separate): Update comment.
5438 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5439 * jit.c (jit_object_close_impl): Use new.
5440 (jit_unregister_code): Use delete.
5441 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5442 (~objfile): Rename from free_objfile.
5443 (free_objfile_separate_debug, do_free_objfile_cleanup)
5444 (free_all_objfiles, objfile_purge_solibs): Use delete.
5445 * objfiles.h (struct objfile): Add constructor and destructor.
5446 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5447 (allocate_objfile, free_objfile): Don't declare.
5448 (struct objstats): Add initializers.
5449
5450 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5451
5452 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5453 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5454 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5455 * gdbarch.h: Regenerate.
5456 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5457 Adjust comment.
5458 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5459 (i386_displaced_step_fixup): Adjust comment.
5460 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5461
5462 2017-10-12 Tom Tromey <tom@tromey.com>
5463
5464 * prologue-value.h (pv_area::store_would_trash): Return bool.
5465 (pv_area::find_reg): Likewise.
5466 * prologue-value.c (pv_area::store_would_trash): Return bool.
5467 (pv_area::find_reg): Likewise.
5468
5469 2017-10-12 Tom Tromey <tom@tromey.com>
5470
5471 * s390-linux-tdep.c (s390_store, s390_load)
5472 (s390_check_for_saved, s390_analyze_prologue): Update.
5473 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5474 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5475 * prologue-value.h (class pv_area): Move from prologue-value.c.
5476 Change names of members. Add constructor, destructor, member
5477 functions.
5478 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5479 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5480 (pv_area_fetch, pv_area_scan): Don't declare.
5481 * prologue-value.c (struct pv_area::area_entry): Now member of
5482 pv_area.
5483 (struct pv_area): Move to prologue-value.h.
5484 (pv_area::pv_area): Rename from make_pv_area.
5485 (pv_area::~pv_area): Rename from free_pv_area.
5486 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5487 (clear_entries, find_entry, overlaps, store_would_trash, store)
5488 (fetch, find_reg, scan): Now member of pv_area.
5489 Remove "area" argument. Update.
5490 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5491 Update.
5492 * mn10300-tdep.c (push_reg, check_for_saved)
5493 (mn10300_analyze_prologue): Update.
5494 * mep-tdep.c (is_arg_spill, check_for_saved)
5495 (mep_analyze_prologue): Update.
5496 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5497 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5498 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5499 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5500 Update.
5501 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5502 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5503
5504 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5505
5506 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5507 * linux-nat.c (linux_nat_delete_thread): New variable.
5508 (lwp_free): Invoke linux_nat_delete_thread if set.
5509 (linux_nat_set_delete_thread): New function.
5510 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5511 thread delete callback.
5512 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5513 (_initialize_arm_linux_nat): Assign thread delete callback.
5514 * s390-linux-nat.c (s390_delete_thread): New function.
5515 (_initialize_s390_nat): Assign thread delete callback.
5516 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5517 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5518 function.
5519 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5520 declaration.
5521 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5522 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5523
5524 2017-10-09 Tom Tromey <tom@tromey.com>
5525
5526 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5527 std::string.
5528 * tui/tui-layout.c (enum tui_status): Use std::string.
5529
5530 2017-10-11 Tom Tromey <tom@tromey.com>
5531
5532 * gdbthread.h (thread_command): Constify.
5533 * inferior.h (detach_command): Constify.
5534 * top.h (set_history, show_history): Constify.
5535 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5536 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5537 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5538 * printcmd.c (set_command): Constify.
5539 (non_const_set_command): New function.
5540 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5541 * breakpoint.c (enable_command, disable_command, delete_command)
5542 (catch_command, tcatch_command, set_breakpoint_cmd)
5543 (show_breakpoint_cmd): Constify.
5544 * macrocmd.c (macro_command): Constify.
5545 * infcmd.c (unset_command, kill_command, detach_command)
5546 (info_proc_cmd): Constify.
5547 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5548 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5549 (info_auto_load_cmd): Constify.
5550 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5551 (unset_tdesc_cmd): Constify.
5552 * ada-lang.c (set_ada_command, show_ada_command)
5553 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5554 * guile/guile.c (set_guile_command, show_guile_command)
5555 (info_guile_command): Constify.
5556 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5557 Constify.
5558 * skip.c (skip_command): Constify.
5559 * compile/compile.c (_initialize_compile): Constify.
5560 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5561 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5562 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5563 (maint_btrace_pt_show_cmd): Constify.
5564 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5565 Constify.
5566 * python/python.c (user_show_python, user_set_python): Constify.
5567 * mips-tdep.c (set_mips_command, show_mips_command)
5568 (set_mipsfpu_command): Constify.
5569 * record-btrace.c (cmd_record_btrace_start)
5570 (cmd_set_record_btrace, cmd_show_record_btrace)
5571 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5572 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5573 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5574 Constify.
5575 * symfile.c (overlay_command): Constify.
5576 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5577 * cli/cli-logging.c (set_logging_command, show_logging_command):
5578 Constify.
5579 * cli/cli-dump.c (dump_command, append_command)
5580 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5581 (tekhex_dump_command, binary_dump_command)
5582 (binary_append_command): Constify.
5583 * cli/cli-decode.c (struct cmd_list_element): Change type of
5584 "fun".
5585 * cli/cli-cmds.c (info_command, show_command, set_debug)
5586 (show_debug): Constify.
5587 (show_command): Add non-const overload.
5588 * top.c (set_history, show_history): Constify.
5589 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5590 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5591 * target.c (target_command): Constify.
5592 * sparc64-tdep.c (info_adi_command): Constify.
5593 * record-full.c (cmd_record_full_start): Constify.
5594 (set_record_full_command): Constify. Fix typo.
5595 (show_record_full_command): Constify.
5596 * thread.c (thread_command, thread_apply_command): Constify.
5597 * memattr.c (dummy_cmd): Constify.
5598 * value.c (function_command): Constify.
5599 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5600 * probe.c (info_probes_command): Constify.
5601 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5602 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5603 (show_thread_cmd, set_thread_default_cmd)
5604 (show_thread_default_cmd): Constify.
5605 (check_empty): Constify.
5606 * tracepoint.c (tfind_command): Constify.
5607 * cp-support.c (maint_cplus_command): Constify.
5608 * windows-tdep.c (info_w32_command): Constify.
5609 * record.c (cmd_record_start, set_record_command)
5610 (show_record_command, info_record_command, cmd_record_goto):
5611 Constify.
5612 * ravenscar-thread.c (set_ravenscar_command)
5613 (show_ravenscar_command): Constify.
5614 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5615 Constify.
5616 (add_internal_problem_command): Remove casts.
5617 * arc-tdep.c (maintenance_print_arc_command): Constify.
5618 * valprint.c (set_print, show_print, set_print_raw)
5619 (show_print_raw): Constify.
5620 * maint.c (maintenance_command, maintenance_info_command)
5621 (maintenance_print_command, maintenance_set_cmd)
5622 (maintenance_show_cmd, set_per_command_cmd)
5623 (show_per_command_cmd, maintenance_check_command): Constify.
5624 * language.c (set_check, show_check): Constify.
5625 * typeprint.c (show_print_type, set_print_type): Constify.
5626 * go32-nat.c (go32_info_dos_command): Constify.
5627
5628 2017-10-11 Tom Tromey <tom@tromey.com>
5629
5630 * breakpoint.c (prepare_re_set_context): Remove.
5631 (breakpoint_re_set_one): Update. Don't use cleanups.
5632 (breakpoint_re_set): Use scoped_restore, std::string, and
5633 scoped_restore_current_language.
5634
5635 2017-10-11 Tom Tromey <tom@tromey.com>
5636
5637 * breakpoint.c (commands_command_1): Use std::string.
5638 (cleanup_executing_breakpoints): Remove.
5639 (bpstat_do_actions_1): Use scoped_restore.
5640 (bpstat_check_watchpoint): Use std::string.
5641 (decode_static_tracepoint_spec): Likewise.
5642 (break_range_command): Likewise.
5643 (watch_command_1): Likewise.
5644 (compare_breakpoints): Change argument types.
5645 (clear_command): Use std::vector.
5646 (cleanup_executing_breakpoints): Remove.
5647 (update_global_location_list): Use unique_xmalloc_ptr.
5648 (strace_command): Remove unused declaration.
5649
5650 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5651
5652 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5653 * NEWS: Mention new FreeBSD/arm native configuration.
5654 * configure.host: Add arm*-*-freebsd*.
5655 * configure.nat: Likewise.
5656 * arm-fbsd-nat.c: New file.
5657
5658 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5659
5660 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5661 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5662 * NEWS: Mention new FreeBSD/arm target.
5663 * configure.tgt: Add arm*-*-freebsd*.
5664 * arm-fbsd-tdep.c: New file.
5665 * arm-fbsd-tdep.h: New file.
5666
5667 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5668
5669 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5670 `gdbarch_elfcore_write_linux_prpsinfo'.
5671 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5672 method.
5673 (elf_internal_linux_prpsinfo): Remove declaration.
5674 * gdbarch.h: Regenerate.
5675 * gdbarch.c: Regenerate.
5676
5677 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5678
5679 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5680 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5681
5682 2017-10-11 Pedro Alves <palves@redhat.com>
5683
5684 * breakpoint.c (reattach_breakpoints): Delete.
5685 * breakpoint.h (reattach_breakpoints): Delete.
5686
5687 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5688
5689 * symfile.c (registered_sym_fns): Make struct, not typedef.
5690 (DEF_VEC_O (registered_sym_fns)): Remove.
5691 (symtab_fns): Change type to std::vector.
5692 (add_symtab_fns): Adjust.
5693 (find_sym_fns): Adjust.
5694
5695 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5696
5697 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5698 * arc-tdep.h (arc_arch_is_em): New function.
5699 (arc_arch_is_hs): Likewise.
5700
5701 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5702
5703 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5704 parentheses in the declaration.
5705 (macro_lookup_inclusion): Likewise.
5706 (macro_lookup_definition): Likewise.
5707 * p-lang.h (pascal_builtin_types): Likewise.
5708 * tui/tui-data.c (tui_win_list): Likewise.
5709 * tui/tui-data.h (tui_win_list): Likewise.
5710 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5711
5712 2017-10-11 Mark Rages <markrages@gmail.com>
5713
5714 * target-memory.c (block_boundaries): Fix for block address not
5715 aligned on block size.
5716
5717 2017-10-10 Pedro Alves <palves@redhat.com>
5718 Tom Tromey <tom@tromey.com>
5719
5720 * breakpoint.c (struct captured_breakpoint_query_args)
5721 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5722 (print_breakpoint): New.
5723 * breakpoint.h (print_breakpoint): Declare.
5724 * common/common-exceptions.h (enum return_reason): Remove
5725 references to catch_exceptions.
5726 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5727 Delete.
5728 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5729 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5730 * gdb.h: Delete.
5731 * gdbthread.h (thread_select): Declare.
5732 * mi/mi-cmd-break.c: Don't include gdb.h.
5733 (breakpoint_notify): Use print_breakpoint.
5734 * mi/mi-cmd-catch.c: Don't include gdb.h.
5735 * mi/mi-interp.c: Don't include gdb.h.
5736 (mi_print_breakpoint_for_event): New.
5737 (mi_breakpoint_created, mi_breakpoint_modified): Use
5738 mi_print_breakpoint_for_event.
5739 * mi/mi-main.c: Don't include gdb.h.
5740 (mi_cmd_thread_select): Parse the global thread ID here. Use
5741 thread_select instead of gdb_thread_select.
5742 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5743 of using gdb_list_thread_ids.
5744 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5745 FILEIO_ENOSYS here.
5746 (remote_fileio_request): Use TRY/CATCH instead of
5747 catch_exceptions.
5748 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5749 (symbol_file_add_from_memory_wrapper): Delete.
5750 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5751 * thread.c: Don't include gdb.h.
5752 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5753 (thread_alive): Use thread_select.
5754 (do_captured_thread_select): Delete, parts salvaged as ...
5755 (thread_select): ... this new function.
5756 (gdb_thread_select): Delete.
5757
5758 2017-10-10 Pedro Alves <palves@redhat.com>
5759 Tom Tromey <tom@tromey.com>
5760
5761 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5762 and reverse logic.
5763 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5764 No longer macros. Instead ...
5765 (enum wp_check_result): They're now values of this new
5766 enumeration.
5767 (watchpoint_check): Change return type to wp_check_result and
5768 parameter type to bpstat.
5769 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5770 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5771 catch_errors. Reverse logic of watchpoint_check call.
5772 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5773 pointer as parameter.
5774 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5775 * common/common-exceptions.c (throw_exception_sjlj): Update
5776 comments to avoid mentioning catch_errors.
5777 * exceptions.c (catch_errors): Delete.
5778 * exceptions.h: Update comments to avoid mentioning catch_errors.
5779 (catch_errors_ftype, catch_errors): Delete.
5780 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5781 (hook_stop_stub): Delete.
5782 (restore_selected_frame): Change return type to void, and
5783 parameter type to const frame_id &.
5784 (restore_infcall_control_state): Use TRY/CATCH instead of
5785 catch_errors.
5786 * main.c (captured_command_loop): Return void and remove
5787 parameter. Remove references to catch_errors.
5788 (captured_main): Use TRY/CATCH instead of catch_errors.
5789 * objc-lang.c (objc_submethod_helper_data)
5790 (find_objc_msgcall_submethod_helper): Delete.
5791 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5792 catch_errors.
5793 * record-full.c (record_full_message): Return void.
5794 (record_full_message_args, record_full_message_wrapper): Delete.
5795 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5796 instead of catch_errors.
5797 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5798 parameter type to int.
5799 * solib-darwin.c (open_symbol_file_object): Ditto.
5800 * solib-dsbt.c (open_symbol_file_object): Ditto.
5801 * solib-frv.c (open_symbol_file_object): Ditto.
5802 * solib-svr4.c (open_symbol_file_object): Ditto.
5803 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5804 * solib.c (update_solib_list): Use TRY/CATCH instead of
5805 catch_errors.
5806 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5807 Change type.
5808 * symmisc.c (struct print_symbol_args): Remove.
5809 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5810 (print_symbol): Change type.
5811 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5812 and remove parameters.
5813 (catch_errors): New.
5814 (get_windows_debug_event): Adjust.
5815
5816 2017-10-09 Tom Tromey <tom@tromey.com>
5817
5818 * mi/mi-main.c (free_splay_tree): Remove.
5819 (list_available_thread_groups): Use splay_tree_up.
5820 * common/gdb_splay_tree.h: New file.
5821
5822 2017-10-09 Tom Tromey <tom@tromey.com>
5823
5824 * mi/mi-main.c (do_nothing): Remove.
5825 (list_available_thread_groups): Update.
5826
5827 2017-10-09 Pedro Alves <palves@redhat.com>
5828
5829 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5830 reading registers when switching context.
5831
5832 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5833
5834 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5835 (fbsd_convert_siginfo): Likewise.
5836 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5837
5838 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5839
5840 * configure.ac (try_guile_versions): Remove guile-2.2.
5841 * configure: Regenerate.
5842
5843 2017-10-09 Tom Tromey <tom@tromey.com>
5844
5845 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5846 (COMPILE.pre): Use $(CXX).
5847
5848 2017-10-09 Pedro Alves <palves@redhat.com>
5849
5850 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5851 Use bool.
5852 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5853 * cp-support.h (cp_remove_params): Now returns a
5854 gdb::unique_xmalloc_ptr.
5855 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5856 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5857 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5858 returning a gdb::unique_xmalloc_ptr.
5859 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5860 * stack.c (find_frame_funname): Adjust to cp_remove_params
5861 returning a gdb::unique_xmalloc_ptr.
5862
5863 2017-10-08 Tom Tromey <tom@tromey.com>
5864
5865 * dwarf2read.c (dwarf2_get_dwz_file): Use
5866 gdb::unique_xmalloc_ptr.
5867 (find_slot_in_mapped_hash): Likewise.
5868 (dwarf2_physname): Likewise.
5869 (create_dwo_unit_in_dwp_v1): Use std::string.
5870 (create_dwo_unit_in_dwp_v2): Likewise.
5871 (lookup_dwo_cutu): Likewise.
5872 (inherit_abstract_dies): Use std::vector.
5873 (read_array_type): Likewise.
5874 (dwarf_decode_macros): Remove unused declaration.
5875 (unsigned_int_compar): Remove.
5876 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5877 (psymtabs_addrmap_cleanup): Remove.
5878
5879 2017-10-08 Tom Tromey <tom@tromey.com>
5880
5881 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5882 * frame.h (frame_cleanup_after_sniffer): Declare.
5883 (frame_prepare_for_sniffer): Return void.
5884 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5885 type of argument.
5886 (frame_prepare_for_sniffer): Return void.
5887
5888 2017-10-08 Tom Tromey <tom@tromey.com>
5889
5890 * utils.h (make_cleanup_value_free): Remove.
5891 * utils.c (do_value_free, struct cleanup): Remove.
5892 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5893 Use gdb_value_up.
5894 * value.h (struct value_deleter): New.
5895 (gdb_value_up): New typedef.
5896
5897 2017-10-08 Tom Tromey <tom@tromey.com>
5898
5899 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5900 (make_cleanup_free_search_symbols): Remove.
5901 (search_symbols): Return std::vector.
5902 (symbol_search::compare_search_syms): Now member of
5903 symbol_search. Change arguments.
5904 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5905 (symtab_symbol_info, rbreak_command): Update.
5906 * symtab.h (struct symbol_search) <next>: Remove.
5907 Add constructors.
5908 (symbol_search::operator<): New function.
5909 (symbol_search::operator==): New function.
5910 (search_symbols): Remove std::vector.
5911 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5912 (symbol_search::compare_search_syms): Declare.
5913
5914 2017-10-06 Yao Qi <yao.qi@linaro.org>
5915
5916 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5917 arch/aarch64-insn.o.
5918 Remove one rule.
5919 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5920
5921 2017-10-06 Yao Qi <yao.qi@linaro.org>
5922
5923 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5924 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5925 arch/arm-linux.o respectively.
5926 * configure.tgt: Likewise.
5927
5928 2017-10-06 Yao Qi <yao.qi@linaro.org>
5929
5930 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5931 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5932
5933 2017-10-06 Pedro Alves <palves@redhat.com>
5934
5935 * windows-nat.c: Include <algorithm>.
5936
5937 2017-10-06 Yao Qi <yao.qi@linaro.org>
5938
5939 * configure.tgt (i386_tobjs): New variable.
5940 (amd64_tobjs): New variable.
5941 Set $cpu_obs and $os_obs.
5942
5943 2017-10-06 Yao Qi <yao.qi@linaro.org>
5944
5945 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5946 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5947 (clean): Remove object files and dependency files.
5948 (distclean): Remove the directory.
5949 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5950 * configure: Re-generated.
5951 * configure.tgt: Replace amd64.o with arch/amd64.o.
5952
5953 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5954
5955 PR build/22188
5956 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5957 and SETEND.
5958
5959 2017-10-05 Pedro Alves <palves@redhat.com>
5960
5961 * linux-nat.c (linux_child_follow_fork): When following the parent
5962 and detaching the child, consult the parent thread's architecture
5963 instead of the child's.
5964
5965 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5966
5967 * ax.h: Do not include "doublest.h".
5968 (union agent_val): Remove.
5969
5970 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5971
5972 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5973 (decimal_to_string): Return std::string object.
5974 (decimal_from_string): Accept std::string object. Return bool.
5975 (decimal_from_integral, decimal_from_doublest): Remove.
5976 (decimal_from_longest): Add prototype.
5977 (decimal_from_ulongest): Likewise.
5978 (decimal_to_longest): Likewise.
5979 (decimal_from_doublest): Likewise.
5980 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5981 (MAX_DECIMAL_STRING): Move here.
5982 (decimal_to_string): Return std::string object.
5983 (decimal_from_string): Accept std::string object. Return bool.
5984 (decimal_from_integral): Remove, replace by ...
5985 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5986 (decimal_to_longest): New function.
5987 (decimal_from_floating): Remove, replace by ...
5988 (decimal_from_doublest): ... this new function.
5989 (decimal_to_doublest): Update to new decimal_to_string interface.
5990
5991 * value.c (unpack_long): Use decimal_to_longest.
5992 * valops.c (value_cast): Use decimal_from_doublest instead of
5993 decimal_from_floating. Use decimal_from_[u]longest isntead of
5994 decimal_from_integral.
5995 * valarith.c (value_args_as_decimal): Likewise.
5996 * valprint.c (print_decimal_floating): Update to new
5997 decimal_to_string interface.
5998 * printcmd.c (printf_decfloat): Likewise.
5999 * c-exp.y (parse_number): Update to new decimal_from_string interface.
6000
6001 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
6002
6003 * doublest.h: Do not include "floatformat.h". Remove stale comments.
6004 * gdbtypes.c: Include "floatformat.h".
6005 * value.c: Likewise.
6006 * m68k-tdep.c: Likewise.
6007
6008 * findvar.c: Do not include "floatformat.h".
6009 * amd64-darwin-tdep.c: Likewise.
6010 * arm-linux-tdep.c: Likewise.
6011 * i386-darwin-tdep.c: Likewise.
6012 * i387-tdep.c: Likewise.
6013 * m68k-linux-tdep.c: Likewise.
6014 * mep-tdep.c: Likewise.
6015 * mips-tdep.c: Likewise.
6016 * nios2-tdep.c: Likewise.
6017 * s390-linux-tdep.c: Likewise.
6018 * sparc-obsd-tdep.c: Likewise.
6019 * sparc-tdep.c: Likewise.
6020 * sparc64-tdep.c: Likewise.
6021 * spu-tdep.c: Likewise.
6022 * tic6x-tdep.c: Likewise.
6023 * tilegx-tdep.c: Likewise.
6024 * vax-tdep.c: Likewise.
6025 * xstormy16-tdep.c: Likewise.
6026 * xtensa-tdep.c: Likewise.
6027
6028 * top.c: Do not include "doublest.h".
6029 * aarch64-tdep.c: Likewise.
6030 * alpha-tdep.c: Likewise.
6031 * arm-linux-tdep.c: Likewise.
6032 * m68k-linux-tdep.c: Likewise.
6033 * tilegx-tdep.c: Likewise.
6034 * xstormy16-tdep.c: Likewise.
6035
6036 2017-10-05 John Baldwin <jhb@FreeBSD.org>
6037
6038 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
6039 (mipsn32_fbsd_sigframe): Define.
6040 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
6041 for FreeBSD/mipsn32.
6042
6043 2017-10-05 John Baldwin <jhb@FreeBSD.org>
6044
6045 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
6046 AT_HWCAP.
6047
6048 2017-10-05 Tristan Gingold <tgingold@free.fr>
6049
6050 * MAINTAINERS (Misc): Update my email address.
6051
6052 2017-10-04 Pedro Alves <palves@redhat.com>
6053
6054 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
6055 it instead of target_gdbarch.
6056 (get_remote_state, get_remote_packet_size): Adjust
6057 get_remote_arch_state calls, passing down target_gdbarch
6058 explicitly.
6059 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
6060 'gdbarch' and use it instead of target_gdbarch.
6061 (get_memory_packet_size): Adjust get_remote_arch_state calls,
6062 passing down target_gdbarch explicitly.
6063 (struct stop_reply) <arch>: New field.
6064 (remote_parse_stop_reply): Use the stopped thread's architecture,
6065 not the current inferior's. Save the architecture in the
6066 stop_reply.
6067 (process_stop_reply): Use the stop reply's architecture.
6068 (process_g_packet, remote_fetch_registers)
6069 (remote_prepare_to_store, store_registers_using_G)
6070 (remote_store_registers): Adjust get_remote_arch_state calls,
6071 using the regcache's architecture.
6072 (remote_get_trace_status): Adjust get_remote_arch_state calls,
6073 passing down target_gdbarch explicitly.
6074 * spu-multiarch.c (spu_thread_architecture): Defer to the target
6075 beneath instead of calling target_gdbarch.
6076 * target.c (default_thread_architecture): Use the specified
6077 inferior's architecture, instead of the current inferior's
6078 architecture (via target_gdbarch).
6079
6080 2017-10-04 Pedro Alves <palves@redhat.com>
6081
6082 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
6083 case.
6084 (regcache_print): Handle !target_has_registers here instead.
6085
6086 2017-10-04 Pedro Alves <palves@redhat.com>
6087
6088 * frame.c (create_test_frame): Delete.
6089 * frame.h (create_test_frame): Delete.
6090 * gdbarch-selftests.c: Include gdbthread.h and target.h.
6091 (class regcache_test): Delete.
6092 (test_target_has_registers, test_target_has_stack)
6093 (test_target_has_memory, test_target_prepare_to_store)
6094 (test_target_store_registers): New functions.
6095 (test_target_ops): New class.
6096 (register_to_value_test): Error out if there's already a
6097 process_stratum (or higher) target pushed. Create a fuller mock
6098 environment, with mock target_ops, inferior, address space, thread
6099 and inferior_ptid.
6100 * progspace.c (struct address_space): Move to ...
6101 * progspace.h (struct address_space): ... here.
6102 * regcache.h (regcache::~regcache, regcache::raw_write)
6103 [GDB_SELF_TEST]: No longer virtual.
6104
6105 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
6106
6107 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
6108
6109 2017-10-04 Pedro Alves <palves@redhat.com>
6110
6111 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
6112 out of 'between TRY and CATCH'.
6113
6114 2017-10-04 Pedro Alves <palves@redhat.com>
6115
6116 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
6117 * common/common-exceptions.h (TRY): Open an outermost scope.
6118 Expand intro comment.
6119 (CATCH): Reindent.
6120 (END_CATCH): Close the outermost scope.
6121 * completer.c (complete_line_internal): Add missing END_CATCH.
6122
6123 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6124
6125 * NEWS (Changes since GDB 8.0): Add entry about new
6126 'set-cwd-on-gdbserver' feature.
6127 (New remote packets): Add entry for QSetWorkingDir.
6128 * common/common-inferior.h (set_inferior_cwd): New prototype.
6129 * infcmd.c (set_inferior_cwd): Remove "static".
6130 (show_cwd_command): Expand text to include remote debugging.
6131 * remote.c: Add PACKET_QSetWorkingDir.
6132 (remote_protocol_features) <QSetWorkingDir>: New entry for
6133 PACKET_QSetWorkingDir.
6134 (extended_remote_set_inferior_cwd): New function.
6135 (extended_remote_create_inferior): Call
6136 "extended_remote_set_inferior_cwd".
6137 (_initialize_remote): Call "add_packet_config_cmd" for
6138 QSetWorkingDir.
6139
6140 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6141
6142 * NEWS (New commands): Mention "set/show cwd".
6143 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
6144 "cd" command's help text.
6145 * common/common-inferior.h (get_inferior_cwd): New prototype.
6146 * infcmd.c (inferior_cwd_scratch): New global variable.
6147 (set_inferior_cwd): New function.
6148 (get_inferior_cwd): Likewise.
6149 (set_cwd_command): Likewise.
6150 (show_cwd_command): Likewise.
6151 (_initialize_infcmd): Add "set/show cwd" commands.
6152 * inferior.h (class inferior) <cwd>: New field.
6153 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
6154 (fork_inferior): Change inferior's cwd before its execution.
6155 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
6156 to CreateProcess.
6157
6158 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6159
6160 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
6161 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
6162 (COMMON_OBS): Add gdb_tilde_expand.o.
6163 * common/gdb_tilde_expand.c: New file.
6164 * common/gdb_tilde_expand.h: Likewise.
6165
6166 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
6167
6168 * gdbarch.sh (objfile): Remove duplicate declaration.
6169 * gdbarch.h: Regenerate.
6170
6171 2017-10-03 Tom Tromey <tom@tromey.com>
6172
6173 * utils.c (internal_vproblem): Use string_vprintf.
6174
6175 2017-10-03 Tom Tromey <tom@tromey.com>
6176
6177 * printcmd.c (info_symbol_command): Use std::string.
6178
6179 2017-10-03 Tom Tromey <tom@tromey.com>
6180
6181 * top.c (gdb_safe_append_history): Use std::string.
6182
6183 2017-10-03 Tom Tromey <tom@tromey.com>
6184
6185 * event-top.c (stdin_event_handler): Update.
6186 * main.c (captured_main_1): Update.
6187 * top.h (make_delete_ui_cleanup): Remove.
6188 (struct ui): Add constructor and destructor.
6189 (new_ui, delete_ui): Remove.
6190 * top.c (make_delete_ui_cleanup): Remove.
6191 (new_ui_command): Use std::unique_ptr.
6192 (delete_ui_cleanup): Remove.
6193 (ui::ui): Rename from new_ui. Update.
6194 (free_ui): Remove.
6195 (ui::~ui): Rename from delete_ui. Update.
6196
6197 2017-10-03 Tom Tromey <tom@tromey.com>
6198
6199 * symfile.c (load_progress): Use gdb::byte_vector.
6200
6201 2017-10-03 Tom Tromey <tom@tromey.com>
6202
6203 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
6204 declaration.
6205 * printcmd.c (x_command): Remove unused declaration.
6206 * symfile.c (symbol_file_command): Remove unused declaration.
6207
6208 2017-10-03 Tom Tromey <tom@tromey.com>
6209
6210 * utils.c (internal_vproblem): Use std::string.
6211 (defaulted_query): Likewise.
6212
6213 2017-10-03 Tom Tromey <tom@tromey.com>
6214
6215 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
6216 * top.c (execute_command_to_string): Update.
6217 * utils.c (make_cleanup_restore_page_info): Remove.
6218 (do_restore_page_info_cleanup): Remove.
6219 (set_batch_flag_and_restore_page_info):
6220 New.
6221 (make_cleanup_restore_page_info): Remove.
6222 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6223 (~set_batch_flag_and_restore_page_info): New
6224 (make_cleanup_restore_uinteger): Remove.
6225 (make_cleanup_restore_integer): Remove.
6226 (struct restore_integer_closure): Remove.
6227 (restore_integer): Remove.
6228 * utils.h (struct set_batch_flag_and_restore_page_info): New
6229 class.
6230 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6231 (make_cleanup_restore_page_info): Remove.
6232 (make_cleanup_restore_uinteger) Remove.
6233 (make_cleanup_restore_integer) Remove.
6234
6235 2017-10-03 Tom Tromey <tom@tromey.com>
6236
6237 * record-full.h (record_full_gdb_operation_disable_set): Return
6238 scoped_restore_tmpl<int>.
6239 * infrun.c (adjust_pc_after_break): Update.
6240 (handle_signal_stop): Update.
6241 * record-full.c (record_full_gdb_operation_disable_set): Return
6242 scoped_restore_tmpl<int>.
6243 (record_full_wait_1, record_full_insert_breakpoint)
6244 (record_full_remove_breakpoint, record_full_save)
6245 (record_full_goto_insn): Update.
6246
6247 2017-10-02 Tom Tromey <tom@tromey.com>
6248
6249 PR rust/22236:
6250 * rust-lang.c (rust_val_print_str): New function.
6251 (val_print_struct): Call it.
6252 (rust_subscript): Preserve name of slice type.
6253
6254 2017-10-02 Tom Tromey <tom@tromey.com>
6255
6256 * rust-lang.c (rust_subscript): Handle slices in
6257 EVAL_AVOID_SIDE_EFFECTS case.
6258
6259 2017-10-02 Tom Tromey <tom@tromey.com>
6260
6261 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
6262
6263 2017-10-02 Tom Tromey <tom@tromey.com>
6264
6265 * rust-lang.h (rust_slice_type): Add "extern".
6266
6267 2017-10-02 Tom Tromey <tom@tromey.com>
6268 Pedro Alves <palves@redhat.com>
6269
6270 * ada-lang.h (ada_exc_info::operator<): Make const.
6271 (ada_exc_info::operator==): Make const.
6272 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
6273 Make const.
6274
6275 2017-09-29 Tom Tromey <tom@tromey.com>
6276
6277 * target.c (read_whatever_is_readable): Change type of "result".
6278 Update.
6279 (free_memory_read_result_vector): Remove.
6280 (read_memory_robust): Change return type. Update.
6281 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
6282 bin2hex, std::string.
6283 * target.h (memory_read_result_s): Remove typedef.
6284 (free_memory_read_result_vector): Remove.
6285 (read_memory_robust): Return std::vector.
6286
6287 2017-09-29 Tom Tromey <tom@tromey.com>
6288
6289 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
6290
6291 2017-09-29 Tom Tromey <tom@tromey.com>
6292
6293 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6294 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6295 operator< and operator==.
6296 (ada_exceptions_list): Return a std::vector.
6297 * ada-lang.c (ada_exc_info::operator<): Rename from
6298 compare_ada_exception_info.
6299 (ada_exc_info::operator==): New.
6300 (sort_remove_dups_ada_exceptions_list): Change type of
6301 "exceptions".
6302 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6303 (ada_add_global_exceptions): Likewise.
6304 (ada_exceptions_list_1): Return a std::vector.
6305 (ada_exceptions_list): Likewise.
6306
6307 2017-09-29 Tom Tromey <tom@tromey.com>
6308
6309 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6310 'std::set *'.
6311 (print_one_inferior): Update.
6312 (free_vector_of_ints): Remove.
6313 (list_available_thread_groups): Change "ids" to std::set.
6314 (mi_cmd_list_thread_groups): Update.
6315 (struct collect_cores_data) <core>: Now a std::set.
6316 (collect_cores): Update.
6317 (unique): Remove.
6318 (print_one_inferior): Update.
6319
6320 2017-09-29 Tom Tromey <tom@tromey.com>
6321
6322 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6323 (mi_execute_async_cli_command): Likewise.
6324 (mi_cmd_trace_frame_collected): Use field_fmt.
6325
6326 2017-09-29 Tom Tromey <tom@tromey.com>
6327
6328 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6329 gdb::byte_vector.
6330
6331 2017-09-29 Tom Tromey <tom@tromey.com>
6332
6333 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6334
6335 2017-09-29 Tom Tromey <tom@tromey.com>
6336
6337 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6338
6339 2017-09-29 Tom Tromey <tom@tromey.com>
6340
6341 * varobj.h (varobj_gen_name): Return std::string.
6342 * varobj.c (varobj_gen_name): Return std::string.
6343 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6344 (mi_cmd_var_delete): Don't copy "name".
6345
6346 2017-09-29 Tom Tromey <tom@tromey.com>
6347
6348 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6349 (mi_cmd_break_insert_1): Update.
6350
6351 2017-09-29 Tom Tromey <tom@tromey.com>
6352
6353 * target.h (make_scoped_defer_target_commit_resume): Update.
6354 * target.c (make_scoped_defer_target_commit_resume): Rename from
6355 make_cleanup_defer_target_commit_resume. Return a
6356 scoped_restore.
6357 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6358
6359 2017-09-29 Tom Tromey <tom@tromey.com>
6360
6361 * main.c (captured_main_1): Remove unused declaration.
6362 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6363
6364 2017-09-29 Tom Tromey <tom@tromey.com>
6365
6366 * symtab.c (search_symbols): Remove unused outer cleanup.
6367 (make_source_files_completion_list): Remove unused declaration.
6368
6369 2017-09-29 Tom Tromey <tom@tromey.com>
6370
6371 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6372
6373 2017-09-29 Tom Tromey <tom@tromey.com>
6374
6375 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6376 gdb::byte_vector.
6377
6378 2017-09-29 Tom Tromey <tom@tromey.com>
6379
6380 * complaints.c (vcomplaint): Use std::string.
6381
6382 2017-09-29 Tom Tromey <tom@tromey.com>
6383
6384 * tracepoint.c (trace_variable_command): Use std::string.
6385 (encode_actions_1): Remove unused declarations.
6386 (create_tsv_from_upload): Use std::string.
6387
6388 2017-09-29 Tom Tromey <tom@tromey.com>
6389
6390 * cp-support.c (gdb_demangle): Use std::string.
6391
6392 2017-09-29 Tom Tromey <tom@tromey.com>
6393
6394 * stack.c (parse_frame_specification): Use std::string
6395 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6396
6397 2017-09-29 Tom Tromey <tom@tromey.com>
6398
6399 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6400
6401 2017-09-29 Tom Tromey <tom@tromey.com>
6402
6403 * utils.c (vfprintf_maybe_filtered): Use std::string.
6404 (vfprintf_unfiltered): Likewise.
6405
6406 2017-09-29 Tom Tromey <tom@tromey.com>
6407
6408 * event-top.c (top_level_prompt): Return std::string.
6409 (display_gdb_prompt): Update.
6410
6411 2017-09-29 Tom Tromey <tom@tromey.com>
6412
6413 * unittests/common-utils-selftests.c (format): New function.
6414 (string_vprintf_tests): New function.
6415 (_initialize_common_utils_selftests): Register new tests.
6416 * common/common-utils.c (string_vprintf): New function.
6417 * common/common-utils.h (string_vprintf): Declare.
6418
6419 2017-09-29 Pedro Alves <palves@redhat.com>
6420
6421 * common/rsp-low.c (unpack_varlen_hex): Constify.
6422 * common/rsp-low.h (unpack_varlen_hex): Constify.
6423 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6424 Constify.
6425 * remote.c (remote_set_permissions, read_ptid)
6426 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6427 (remote_static_tracepoint_marker_at)
6428 (remote_static_tracepoint_markers_by_strid)
6429 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6430 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6431 (parse_tracepoint_definition, parse_tsv_definition)
6432 (parse_static_tracepoint_marker_definition): Constify.
6433 * tracepoint.h (parse_static_tracepoint_marker_definition)
6434 (parse_trace_status, parse_tracepoint_status)
6435 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6436
6437 2017-09-29 Pedro Alves <palves@redhat.com>
6438
6439 * remote.c (target_buf, target_buf_size): Delete.
6440 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6441 Use the connection's packet buffer instead.
6442 All callers adjusted.
6443 (_initialize_remote): Remove references to target_buf and
6444 target_buf_size.
6445
6446 2017-09-28 Pedro Alves <palves@redhat.com>
6447
6448 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6449 unittests/common-utils-selftests.c.
6450 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6451 (COMMON_OBS): Remove utils-selftests.o.
6452 * utils-selftests.c: Move to ...
6453 * unittests/common-utils-selftests.c: ... here and rename self
6454 test to "string_printf".
6455
6456 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6457
6458 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6459 having NULL cus or tus.
6460
6461 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6462
6463 * arm-tdep.c: (convert_from_extended): Remove.
6464 (convert_to_extended): Likewise.
6465 (arm_extract_return_value): Use convert_typed_floating.
6466 (arm_store_return_value): Likewise.
6467
6468 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6469 * sh-tdep.c: Do not include "floatformat.h".
6470 (sh_littlebyte_bigword_type): New function.
6471 (sh_register_convert_to_virtual): Use convert_typed_floating.
6472 (sh_register_convert_to_raw): Likewise.
6473 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6474 (sh64_littlebyte_bigword_type): New function.
6475 (sh64_extract_return_value): Use convert_typed_floating.
6476 (sh64_register_convert_to_virtual): Likewise.
6477 (sh64_register_convert_to_raw): Likewise.
6478
6479 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6480
6481 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6482 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6483
6484 * gdbtypes.h (union type_specific): Make field floatformat hold
6485 just a single struct floatformat, not an array.
6486 (floatformat_from_type): Move here.
6487 * gdbtypes.c (floatformat_from_type): Move here. Update to
6488 changed TYPE_FLOATFORMAT definition.
6489 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6490 (recursive_dump_type): Likewise.
6491 (init_float_type): Install correct floatformat for byte order.
6492 (arch_float_type): Likewise.
6493
6494 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6495
6496 * gdbtypes.c (init_type): Change incoming argument from
6497 length-in-bytes to length-in-bits. Assert length is a
6498 multiple of TARGET_CHAR_BITS.
6499 (arch_type, arch_flags_type): Likewise.
6500 (init_integer_type): Update call to init_type.
6501 (init_character_type): Likewise.
6502 (init_boolean_type): Likewise.
6503 (init_float_type): Likewise.
6504 (init_decfloat_type): Likewise.
6505 (init_complex_type): Likewise.
6506 (init_pointer_type): Likewise.
6507 (objfile_type): Likewise.
6508 (arch_integer_type): Update call to arch_type.
6509 (arch_character_type): Likewise.
6510 (arch_boolean_type): Likewise.
6511 (arch_float_type): Likewise.
6512 (arch_decfloat_type): Likewise.
6513 (arch_complex_type): Likewise.
6514 (arch_pointer_type): Likewise.
6515 (gdbtypes_post_init): Likewise.
6516
6517 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6518 (read_base_type): Likewise.
6519 * mdebugread.c (basic_type): Likewise.
6520 * stabsread.c (dbx_init_float_type): Likewise.
6521 (rs6000_builtin_type): Likewise.
6522 (read_range_type): Likewise. Also, fix call to init_integer_type
6523 with erroneous length argument.
6524
6525 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6526 * d-lang.c (build_d_types): Likewise.
6527 * f-lang.c (build_fortran_types): Likewise.
6528 * go-lang.c (build_go_types): Likewise.
6529 * opencl-lang.c (build_opencl_types): Likewise.
6530 * jit.c (finalize_symtab): Likewise.
6531 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6532 (build_std_type_info_type): Likewise.
6533 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6534 update call to arch_flags_type.
6535
6536 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6537 arch_type.
6538 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6539 * windows-tdep.c (windows_get_tlb_type): Likewise.
6540
6541 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6542 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6543 * m32c-tdep.c (make_types): Likewise.
6544 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6545 (rl78_psw_type): Update call to arch_flags_type.
6546 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6547 * rx-tdep.c (rx_psw_type): Likewise.
6548 (rx_fpsw_type): Likewise.
6549 * sparc-tdep.c (sparc_psr_type): Likewise.
6550 (sparc_fsr_type): Likewise.
6551 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6552 (sparc64_ccr_type): Likewise.
6553 (sparc64_fsr_type): Likewise.
6554 (sparc64_fprs_type): Likewise.
6555
6556 2017-09-27 Tom Tromey <tom@tromey.com>
6557
6558 * findcmd.c (find_command): Constify.
6559
6560 2017-09-27 Tom Tromey <tom@tromey.com>
6561
6562 * ada-tasks.c (task_command_1, task_command): Constify.
6563
6564 2017-09-27 Tom Tromey <tom@tromey.com>
6565
6566 * symtab.c (maintenance_print_symbol_cache)
6567 (maintenance_flush_symbol_cache)
6568 (maintenance_print_symbol_cache_statistics): Constify.
6569
6570 2017-09-27 Tom Tromey <tom@tromey.com>
6571
6572 * inferior.c (detach_inferior_command, kill_inferior_command)
6573 (inferior_command): Constify.
6574
6575 2017-09-27 Tom Tromey <tom@tromey.com>
6576
6577 * regcache.c (regcache_print, maintenance_print_registers)
6578 (maintenance_print_raw_registers)
6579 (maintenance_print_cooked_registers)
6580 (maintenance_print_register_groups)
6581 (maintenance_print_remote_registers): Constify.
6582
6583 2017-09-27 Tom Tromey <tom@tromey.com>
6584
6585 * printcmd.c (map_display_numbers, undisplay_command)
6586 (enable_disable_display_command, enable_display_command)
6587 (disable_display_command): Constify.
6588
6589 2017-09-27 Tom Tromey <tom@tromey.com>
6590
6591 * breakpoint.h (delete_command): Don't declare.
6592 * breakpoint.c (delete_command, enable_once_command)
6593 (enable_count_command, enable_delete_command, breakpoint_1)
6594 (maintenance_info_breakpoints, stopin_command, stopat_command)
6595 (delete_command, delete_trace_command, save_breakpoints)
6596 (save_breakpoints_command, save_tracepoints_command): Constify.
6597
6598 2017-09-27 Tom Tromey <tom@tromey.com>
6599
6600 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6601 (skip_ws, extract_identifier, macro_define_command)
6602 (macro_undef_command, macro_list_command): Constify.
6603
6604 2017-09-27 Tom Tromey <tom@tromey.com>
6605
6606 * infcmd.c (environment_info, set_environment_command)
6607 (unset_environment_command, path_info, info_proc_cmd_1)
6608 (info_proc_cmd_mappings, info_proc_cmd_stat)
6609 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6610 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6611
6612 2017-09-27 Tom Tromey <tom@tromey.com>
6613
6614 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6615 Constify.
6616
6617 2017-09-27 Tom Tromey <tom@tromey.com>
6618
6619 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6620
6621 2017-09-27 Tom Tromey <tom@tromey.com>
6622
6623 * demangle.c (demangle_command): Constify.
6624
6625 2017-09-27 Tom Tromey <tom@tromey.com>
6626
6627 * progspace.c (maintenance_info_program_spaces_command):
6628 Constify.
6629
6630 2017-09-27 Tom Tromey <tom@tromey.com>
6631
6632 * compile/compile.c (check_raw_argument, compile_file_command)
6633 (compile_code_command, compile_print_command): Constify.
6634
6635 2017-09-27 Tom Tromey <tom@tromey.com>
6636
6637 * reggroups.c (maintenance_print_reggroups): Constify.
6638
6639 2017-09-27 Tom Tromey <tom@tromey.com>
6640
6641 * dwarf2read.c (save_gdb_index_command): Constify.
6642
6643 2017-09-27 Tom Tromey <tom@tromey.com>
6644
6645 * stap-probe.c (info_probes_stap_command): Constify.
6646
6647 2017-09-27 Tom Tromey <tom@tromey.com>
6648
6649 * fork-child.c (unset_exec_wrapper_command): Constify.
6650
6651 2017-09-27 Tom Tromey <tom@tromey.com>
6652
6653 * btrace.c (get_uint, get_context_size, no_chunk)
6654 (maint_btrace_packet_history_cmd)
6655 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6656 (maint_info_btrace_cmd): Constify.
6657
6658 2017-09-27 Tom Tromey <tom@tromey.com>
6659
6660 * reverse.c (delete_bookmark_command): Constify.
6661
6662 2017-09-27 Tom Tromey <tom@tromey.com>
6663
6664 * remote.c (set_memory_packet_size)
6665 (set_memory_write_packet_size, show_memory_write_packet_size)
6666 (set_memory_read_packet_size, show_memory_read_packet_size)
6667 (compare_sections_command, packet_command, remote_put_command)
6668 (remote_get_command, remote_delete_command): Constify.
6669
6670 2017-09-27 Tom Tromey <tom@tromey.com>
6671
6672 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6673 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6674 (set_mipsfpu_auto_command): Constify.
6675
6676 2017-09-27 Tom Tromey <tom@tromey.com>
6677
6678 * cli/cli-cmds.h (cd_command): Constify.
6679 * cli/cli-cmds.c (cd_command): Constify.
6680
6681 2017-09-27 Tom Tromey <tom@tromey.com>
6682
6683 * thread.c (thread_name_command, thread_find_command): Constify.
6684
6685 2017-09-27 Tom Tromey <tom@tromey.com>
6686
6687 * probe.c (enable_probes_command, disable_probes_command):
6688 Constify.
6689
6690 2017-09-27 Tom Tromey <tom@tromey.com>
6691
6692 * symfile.c (symbol_file_command): Constify.
6693 * gdbcore.h (deprecated_file_changed_hook): Constify.
6694 * exec.c (deprecated_file_changed_hook, exec_file_command)
6695 (file_command): Constify.
6696 * defs.h (symbol_file_command): Constify.
6697
6698 2017-09-27 Tom Tromey <tom@tromey.com>
6699
6700 * remote-fileio.c (set_system_call_allowed)
6701 (show_system_call_allowed): Constify.
6702
6703 2017-09-27 Tom Tromey <tom@tromey.com>
6704
6705 * tracepoint.c (delete_trace_variable_command)
6706 (tfind_end_command, tfind_start_command, tfind_pc_command)
6707 (tfind_tracepoint_command, tfind_line_command)
6708 (tfind_range_command, tfind_outside_command): Constify.
6709
6710 2017-09-27 Tom Tromey <tom@tromey.com>
6711
6712 * ax-gdb.c (maint_agent_printf_command, agent_command)
6713 (agent_eval_command): Constify.
6714
6715 2017-09-27 Tom Tromey <tom@tromey.com>
6716
6717 * tracepoint.c (info_scope_command): Constify.
6718 * python/python.c (gdbpy_decode_line): Constify.
6719 * python/py-breakpoint.c (bppy_init): Constify.
6720 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6721 * location.h: (new_linespec_location)
6722 (string_to_event_location_basic, string_to_event_location):
6723 Constify.
6724 * location.c (new_linespec_location)
6725 (string_to_event_location_basic, string_to_event_location):
6726 Constify.
6727 * linespec.h (decode_line_with_current_source)
6728 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6729 * linespec.c (linespec_lex_to_end)
6730 (decode_line_with_current_source)
6731 (decode_line_with_last_displayed): Constify.
6732 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6733 Constify.
6734 * cli/cli-cmds.c (edit_command, list_command): Constify.
6735 * breakpoint.h (until_break_command, watch_command_wrapper)
6736 (awatch_command_wrapper, rwatch_command_wrapper)
6737 (init_ada_exception_breakpoint): Constify.
6738 * breakpoint.c (break_command_1, dprintf_command)
6739 (break_range_command, watch_command_wrapper)
6740 (rwatch_command_wrapper, awatch_command_wrapper)
6741 (until_break_command, init_ada_exception_breakpoint)
6742 (strace_marker_create_sals_from_location, trace_command)
6743 (ftrace_command, strace_command, struct tracepoint): Constify.
6744 * ax-gdb.c (agent_command_1): Constify.
6745 * ada-lang.c (ada_exception_sal): Constify.
6746
6747 2017-09-27 Tom Tromey <tom@tromey.com>
6748
6749 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6750 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6751 (get_context_size, no_chunk, get_insn_history_modifiers)
6752 (cmd_record_insn_history, get_call_history_modifiers)
6753 (cmd_record_call_history): Constify.
6754
6755 2017-09-27 Tom Tromey <tom@tromey.com>
6756
6757 * source.c (show_substitute_path_command)
6758 (unset_substitute_path_command, set_substitute_path_command):
6759 Constify.
6760
6761 2017-09-27 Tom Tromey <tom@tromey.com>
6762
6763 * typeprint.c (maintenance_print_type): Constify.
6764 * maint.c (maintenance_dump_me, maintenance_demangle)
6765 (maintenance_time_display, maintenance_info_sections)
6766 (maintenance_print_statistics, maintenance_deprecate)
6767 (maintenance_undeprecate): Constify.
6768 (maintenance_do_deprecate): Constify. Use std::string.
6769 (maintenance_selftest): Constify.
6770 * gdbtypes.h (maintenance_print_type): Constify.
6771
6772 2017-09-27 Tom Tromey <tom@tromey.com>
6773
6774 * hppa-tdep.c (unwind_command): Constify.
6775
6776 2017-09-27 Tom Tromey <tom@tromey.com>
6777
6778 * target-descriptions.c (unset_tdesc_filename_cmd)
6779 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6780 Constify.
6781
6782 2017-09-27 Tom Tromey <tom@tromey.com>
6783
6784 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6785
6786 2017-09-27 Tom Tromey <tom@tromey.com>
6787
6788 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6789
6790 2017-09-27 Tom Tromey <tom@tromey.com>
6791
6792 * tui/tui-regs.c (tui_reg_command): Constify.
6793
6794 2017-09-27 Tom Tromey <tom@tromey.com>
6795
6796 * skip.c (skip_file_command, skip_function_command)
6797 (skip_enable_command, skip_disable_command, skip_delete_command):
6798 Constify.
6799
6800 2017-09-27 Tom Tromey <tom@tromey.com>
6801
6802 * record-btrace.c (cmd_record_btrace_bts_start)
6803 (cmd_record_btrace_pt_start): Constify.
6804
6805 2017-09-27 Tom Tromey <tom@tromey.com>
6806
6807 * symmisc.c (maintenance_print_symbols)
6808 (maintenance_print_msymbols, maintenance_print_objfiles)
6809 (maintenance_info_symtabs, maintenance_check_symtabs)
6810 (maintenance_expand_symtabs, maintenance_info_line_tables):
6811 Constify.
6812
6813 2017-09-27 Tom Tromey <tom@tromey.com>
6814
6815 * top.c (new_ui_command): Constify.
6816
6817 2017-09-27 Tom Tromey <tom@tromey.com>
6818
6819 * symfile.c (add_symbol_file_command)
6820 (remove_symbol_file_command, list_overlays_command)
6821 (map_overlay_command, unmap_overlay_command)
6822 (overlay_auto_command, overlay_manual_command)
6823 (overlay_off_command, overlay_load_command): Constify.
6824
6825 2017-09-27 Tom Tromey <tom@tromey.com>
6826
6827 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6828 (info_spu_mailbox_command, info_spu_dma_command)
6829 (info_spu_proxydma_command): Constify.
6830
6831 2017-09-27 Tom Tromey <tom@tromey.com>
6832
6833 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6834
6835 2017-09-27 Tom Tromey <tom@tromey.com>
6836
6837 * cli/cli-script.c (user_defined_command): Constify.
6838
6839 2017-09-27 Tom Tromey <tom@tromey.com>
6840
6841 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6842 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6843 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6844 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6845 (dump_binary_value, append_binary_memory, append_binary_value):
6846 Constify.
6847 (struct dump_context) <func>: Constify.
6848 (add_dump_command): Update.
6849
6850 2017-09-27 Tom Tromey <tom@tromey.com>
6851
6852 * cli/cli-cmds.c (show_version, show_configuration)
6853 (source_command, show_user): Constify.
6854
6855 2017-09-27 Tom Tromey <tom@tromey.com>
6856
6857 * target.c (maintenance_print_target_stack): Constify.
6858
6859 2017-09-27 Tom Tromey <tom@tromey.com>
6860
6861 * interps.c (interpreter_exec_cmd): Constify.
6862
6863 2017-09-27 Tom Tromey <tom@tromey.com>
6864
6865 * record-full.c (cmd_record_full_restore): Constify.
6866
6867 2017-09-27 Tom Tromey <tom@tromey.com>
6868
6869 * memattr.c (enable_mem_command, disable_mem_command)
6870 (delete_mem_command): Constify.
6871
6872 2017-09-27 Tom Tromey <tom@tromey.com>
6873
6874 * value.c (show_convenience): Constify.
6875
6876 2017-09-27 Tom Tromey <tom@tromey.com>
6877
6878 * gdbcore.h (core_file_command): Update.
6879 * corefile.c (core_file_command): Constify.
6880
6881 2017-09-27 Tom Tromey <tom@tromey.com>
6882
6883 * user-regs.c (maintenance_print_user_registers): Constify.
6884
6885 2017-09-27 Tom Tromey <tom@tromey.com>
6886
6887 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6888
6889 2017-09-27 Tom Tromey <tom@tromey.com>
6890
6891 * cp-support.c (first_component_command): Constify.
6892
6893 2017-09-27 Tom Tromey <tom@tromey.com>
6894
6895 * psymtab.c (maintenance_print_psymbols)
6896 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6897 Constify.
6898
6899 2017-09-27 Tom Tromey <tom@tromey.com>
6900
6901 * windows-tdep.c (display_tib): Constify.
6902
6903 2017-09-27 Tom Tromey <tom@tromey.com>
6904
6905 * linux-fork.c (delete_checkpoint_command)
6906 (detach_checkpoint_command): Constify.
6907
6908 2017-09-27 Tom Tromey <tom@tromey.com>
6909
6910 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6911
6912 2017-09-27 Tom Tromey <tom@tromey.com>
6913
6914 * arc-tdep.c (dump_arc_instruction_command): Constify.
6915
6916 2017-09-27 Tom Tromey <tom@tromey.com>
6917
6918 * valprint.c (set_radix, show_radix): Constify.
6919
6920 2017-09-27 Tom Tromey <tom@tromey.com>
6921
6922 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6923
6924 2017-09-27 Tom Tromey <tom@tromey.com>
6925
6926 * command.h (not_just_help_class_command): Update.
6927 * cli/cli-decode.h (not_just_help_class_command): Update.
6928 * cli/cli-decode.c (not_just_help_class_command): Constify.
6929
6930 2017-09-27 Tom Tromey <tom@tromey.com>
6931
6932 * gdb_bfd.c (maintenance_info_bfds): Constify.
6933
6934 2017-09-27 Tom Tromey <tom@tromey.com>
6935
6936 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6937 overloads.
6938 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6939 (do_const_cfunc): New function.
6940 (cmd_cfunc_eq): New overload.
6941 (cli_user_command_p): Check do_const_cfunc.
6942 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6943 const_cfunc.
6944 * command.h (add_cmd): Add const overload and no-function
6945 overload.
6946 (set_cmd_cfunc): Add const overload.
6947 (cmd_const_cfunc_ftype): Declare.
6948 (cmd_cfunc_eq): Add const overload.
6949 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6950 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6951 overload.
6952
6953 2017-09-27 Tom Tromey <tom@tromey.com>
6954
6955 * macroexp.c (get_next_token_for_substitution): New function.
6956 (substitute_args): Call it. Check for __VA_OPT__.
6957
6958 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6959 Pedro Alves <palves@redhat.com>
6960
6961 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6962 producer_is_icc_lt_14.
6963 (producer_is_icc_lt_14): New function.
6964 (check_producer): Add code for checking version of ICC.
6965 (producer_is_icc): Move to producer.c.
6966 (read_structure_type): Restrict ICC workaround to ICC<14.
6967 * producer.c: Include selftest.h.
6968 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6969 New functions.
6970 * producer.h (producer_is_icc): New declaration.
6971
6972 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6973
6974 * Makefile.in (SFILES): Add producer.c.
6975 (COMMON_OBS): Add producer.o
6976 * amd64-tdep.c (producer.h): Add new include.
6977 * dwarf2read.c (producer.h): Add new include.
6978 * producer.c: New file.
6979 * producer.h: New file.
6980 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6981 producer.c.
6982 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6983 producer.h.
6984
6985 2017-09-26 Matthias Klose <doko@ubuntu.com>
6986
6987 * configure.ac: Search ncursesw before ncurses.
6988 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6989 * gdb_curses.h: Include <ncursesw/ncurses.h>
6990 * config.in, configure: Regenerate.
6991
6992 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6993
6994 PR gdb/22185
6995 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6996 obsolete.
6997 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6998 Remove i386sol2 support.
6999 * configure.nat <i386sol2>: Remove.
7000 <sol2-64>: Fold into ...
7001 <sol2>: ... this.
7002 Move common settings to default section.
7003 Add sol-thread.o.
7004 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
7005 x86_64-*-solaris2.1[0-9]*>: Rename to ...
7006 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
7007 <i[34567]86-*-solaris*>: Remove.
7008 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
7009
7010 * configure.ac: Remove wctype in libw check.
7011 (_MSE_INT_H): Don't define on Solaris 7-9.
7012 <solaris*>: Remove libthread_db.so.1 check.
7013 * configure: Regenerate.
7014 * config.in: Regenerate.
7015
7016 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
7017 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
7018 (gdb_ps_size_t): Remove.
7019 Use base types in users.
7020 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
7021
7022 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
7023
7024 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7025
7026 PR build/22206
7027 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
7028 (adi_is_addr_mapped): Likewise.
7029 (PSR_ICC): Don't redefine.
7030 (PSR_IMPL): Likewise.
7031
7032 2017-09-25 Tom Tromey <tom@tromey.com>
7033
7034 * regcache.c (regcache::dump): Use string_printf.
7035
7036 2017-09-25 Tom Tromey <tom@tromey.com>
7037
7038 * regcache.c (class regcache_invalidator): New.
7039 (struct register_to_invalidate): Remove.
7040 (make_cleanup_regcache_invalidate): Remove.
7041 (regcache::raw_write): Use regcache_invalidator.
7042
7043 2017-09-25 Tom Tromey <tom@tromey.com>
7044
7045 * spu-tdep.c (spu2ppu_sniffer): Update.
7046 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
7047 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
7048 Remove.
7049 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
7050 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
7051 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
7052 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
7053 (frame_pop): Update.
7054
7055 2017-09-25 Tom Tromey <tom@tromey.com>
7056
7057 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
7058 * regcache.h (regcache_xfree): Don't declare.
7059 * regcache.c (regcache_xfree): Remove.
7060 (do_regcache_xfree): Use delete.
7061 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
7062 * linux-fork.c (free_fork): Use delete.
7063 (fork_save_infrun_state): Likewise.
7064 * jit.c (jit_dealloc_cache): Use delete.
7065 * infrun.c (discard_infcall_suspend_state): Use delete.
7066
7067 2017-09-25 Tom Tromey <tom@tromey.com>
7068
7069 * regcache.h (regcache_xmalloc): Don't declare.
7070 (regcache_raw_set_cached_value): Update comment.
7071 * regcache.c (regcache_xmalloc): Remove.
7072 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
7073 * jit.c (jit_frame_sniffer): Use new.
7074 * frame.c (frame_save_as_regcache): Use new.
7075
7076 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7077
7078 * NEWS: Advertise support for guarded-storage registers on IBM z.
7079
7080 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7081
7082 * s390-linux-nat.c (have_regset_gs): New static variable.
7083 (s390_linux_fetch_inferior_registers): Handle guarded-storage
7084 control block and guarded-storage broadcast control regsets.
7085 (s390_read_description): Detect whether the target has
7086 guarded-storage support, return appropriate tdesc.
7087 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
7088 (features/s390x-gs-linux64.c): Likewise.
7089 (struct gdbarch_tdep) <have_gs>: New field.
7090 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
7091 (s390_gsbc_regset): New variables.
7092 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
7093 and s390_gsbc_regset, if applicable.
7094 (s390_core_read_description): Check whether core file was from a
7095 target with guarded-storage support; include appropriate regsets.
7096 (s390_gdbarch_init): Add registers for guarded-storage support.
7097 (_initialize_s390_tdep): Initialize new target descriptions that
7098 include registers for guarded-storage support.
7099 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
7100 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
7101 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
7102 (S390_NUM_REGS): Adjust macro definition.
7103 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
7104 (tdesc_s390x_gs_linux64): New declarations.
7105
7106 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7107
7108 * features/s390-gs-linux64.xml: New file.
7109 * features/s390-gs.xml: New file.
7110 * features/s390-gsbc.xml: New file.
7111 * features/s390x-gs-linux64.xml: New file.
7112 * features/Makefile (WHICH): Add s390-gs-linux64 and
7113 s390x-gs-linux64.
7114 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
7115 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
7116 * features/s390-gs-linux64.c: New generated file.
7117 * features/s390x-gs-linux64.c: New file.
7118 * regformats/s390-gs-linux64.dat: New file.
7119 * regformats/s390x-gs-linux64.dat: New file.
7120
7121 2017-09-23 Tom Tromey <tom@tromey.com>
7122
7123 * defs.h (make_cleanup_override_quit_handler): Don't declare.
7124
7125 2017-09-22 Tom Tromey <tom@tromey.com>
7126
7127 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
7128 type to scoped_restore_tmpl.
7129 <scoped_input_handler>: Initialize m_quit_handler directly.
7130
7131 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7132
7133 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
7134 (cd_command): Likewise. Free "current_directory" before
7135 assigning to it.
7136 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
7137 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
7138 * top.c (gdb_dirbuf): Remove global declaration.
7139 * top.h (gdb_dirbuf): Likewise.
7140
7141 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7142
7143 * gnulib/aclocal.m4: Regenerate.
7144 * gnulib/config.in: Regenerate.
7145 * gnulib/configure: Regenerate.
7146 * gnulib/import/Makefile.am: Regenerate.
7147 * gnulib/import/Makefile.in: Regenerate.
7148 * gnulib/import/assure.h: New file.
7149 * gnulib/import/at-func.c: Likewise
7150 * gnulib/import/chdir-long.c: New file.
7151 * gnulib/import/chdir-long.h: New file.
7152 * gnulib/import/cloexec.c: New file.
7153 * gnulib/import/cloexec.h: New file.
7154 * gnulib/import/close.c: New file.
7155 * gnulib/import/closedir.c: New file.
7156 * gnulib/import/dirent-private.h: New file.
7157 * gnulib/import/dup-safer.c: New file.
7158 * gnulib/import/dup.c: New file.
7159 * gnulib/import/dup2.c: New file.
7160 * gnulib/import/error.c: New file.
7161 * gnulib/import/error.h: New file.
7162 * gnulib/import/exitfail.c: New file.
7163 * gnulib/import/exitfail.h: New file.
7164 * gnulib/import/fchdir.c: New file.
7165 * gnulib/import/fcntl.c: New file.
7166 * gnulib/import/fcntl.in.h: New file.
7167 * gnulib/import/fd-hook.c: New file.
7168 * gnulib/import/fd-hook.h: New file.
7169 * gnulib/import/fd-safer.c: New file.
7170 * gnulib/import/fdopendir.c: New file.
7171 * gnulib/import/filename.h: New file.
7172 * gnulib/import/filenamecat-lgpl.c: New file.
7173 * gnulib/import/filenamecat.h: New file.
7174 * gnulib/import/fstat.c: New file.
7175 * gnulib/import/fstatat.c: New file.
7176 * gnulib/import/getcwd-lgpl.c: New file.
7177 * gnulib/import/getcwd.c: New file.
7178 * gnulib/import/getdtablesize.c: New file.
7179 * gnulib/import/getlogin_r.c: New file.
7180 * gnulib/import/getprogname.c: New file.
7181 * gnulib/import/getprogname.h: New file.
7182 * gnulib/import/gettext.h: New file.
7183 * gnulib/import/glob-libc.h: New file.
7184 * gnulib/import/glob.c: New file.
7185 * gnulib/import/glob.in.h: New file.
7186 * gnulib/import/intprops.h: New file.
7187 * gnulib/import/m4/chdir-long.m4: New file.
7188 * gnulib/import/m4/close.m4: New file.
7189 * gnulib/import/m4/closedir.m4: New file.
7190 * gnulib/import/m4/d-ino.m4: New file.
7191 * gnulib/import/m4/d-type.m4: New file.
7192 * gnulib/import/m4/dup.m4: New file.
7193 * gnulib/import/m4/dup2.m4: New file.
7194 * gnulib/import/m4/error.m4: New file.
7195 * gnulib/import/m4/fchdir.m4: New file.
7196 * gnulib/import/m4/fcntl.m4: New file.
7197 * gnulib/import/m4/fcntl_h.m4: New file.
7198 * gnulib/import/m4/fdopendir.m4: New file.
7199 * gnulib/import/m4/filenamecat.m4: New file.
7200 * gnulib/import/m4/fstat.m4: New file.
7201 * gnulib/import/m4/fstatat.m4: New file.
7202 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
7203 * gnulib/import/m4/getcwd-path-max.m4: New file.
7204 * gnulib/import/m4/getcwd.m4: New file.
7205 * gnulib/import/m4/getdtablesize.m4: New file.
7206 * gnulib/import/m4/getlogin_r.m4: New file.
7207 * gnulib/import/m4/getprogname.m4: New file.
7208 * gnulib/import/m4/glob.m4: New file.
7209 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7210 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7211 * gnulib/import/m4/mempcpy.m4: New file.
7212 * gnulib/import/m4/memrchr.m4: New file.
7213 * gnulib/import/m4/mode_t.m4: New file.
7214 * gnulib/import/m4/msvc-inval.m4: New file.
7215 * gnulib/import/m4/msvc-nothrow.m4: New file.
7216 * gnulib/import/m4/open.m4: New file.
7217 * gnulib/import/m4/openat.m4: New file.
7218 * gnulib/import/m4/opendir.m4: New file.
7219 * gnulib/import/m4/readdir.m4: New file.
7220 * gnulib/import/m4/realloc.m4: New file.
7221 * gnulib/import/m4/rewinddir.m4: New file.
7222 * gnulib/import/m4/save-cwd.m4: New file.
7223 * gnulib/import/m4/strdup.m4: New file.
7224 * gnulib/import/m4/strerror.m4: New file.
7225 * gnulib/import/m4/unistd-safer.m4: New file.
7226 * gnulib/import/mempcpy.c: New file.
7227 * gnulib/import/memrchr.c: New file.
7228 * gnulib/import/msvc-inval.c: New file.
7229 * gnulib/import/msvc-inval.h: New file.
7230 * gnulib/import/msvc-nothrow.c: New file.
7231 * gnulib/import/msvc-nothrow.h: New file.
7232 * gnulib/import/open.c: New file.
7233 * gnulib/import/openat-die.c: New file.
7234 * gnulib/import/openat-priv.h: New file.
7235 * gnulib/import/openat-proc.c: New file.
7236 * gnulib/import/openat.c: New file.
7237 * gnulib/import/openat.h: New file.
7238 * gnulib/import/opendir.c: New file.
7239 * gnulib/import/pipe-safer.c: New file.
7240 * gnulib/import/readdir.c: New file.
7241 * gnulib/import/realloc.c: New file.
7242 * gnulib/import/rewinddir.c: New file.
7243 * gnulib/import/save-cwd.c: New file.
7244 * gnulib/import/save-cwd.h: New file.
7245 * gnulib/import/strdup.c: New file.
7246 * gnulib/import/strerror-override.c: New file.
7247 * gnulib/import/strerror-override.h: New file.
7248 * gnulib/import/strerror.c: New file.
7249 * gnulib/import/unistd--.h: New file.
7250 * gnulib/import/unistd-safer.h: New file.
7251 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7252 "getcwd" and "glob".
7253 * ser-tcp.c: Undefine "close" before redefining it.
7254
7255 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7256
7257 * guile/scm-value.c (gdbscm_value_address): Initialize address,
7258 get rid of res_val.
7259
7260 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7261
7262 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
7263 <sol2,sparc>: Likewise.
7264 <sol2-64,i386>: Likewise.
7265
7266 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
7267 -Wdeprecated-declarations on *-*-solaris*.
7268 * configure: Regenerate.
7269
7270 * procfs.c: Include "nat/inferior.h".
7271 (procfs_info_proc): Fix typo.
7272
7273 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7274
7275 * remote.c (vector): Include.
7276 (struct private_thread_info): Add field, thread_handle.
7277 (free_private_thread_info): Deallocate storage associated with
7278 thread handle.
7279 (get_private_info_thread): Initialize `thread_handle' field.
7280 (struct thread_item): Add field, thread_handle.
7281 (clear_threads_listing_context): Deallocate storage associated
7282 with thread handle.
7283 (start_thread): Add support for "handle" attribute.
7284 (thread_attributes): Add "handle".
7285 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
7286 field.
7287 (remote_update_thread_list): Update thread_handle.
7288 (remote_thread_handle_to_thread_info): New function.
7289 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
7290
7291 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7292
7293 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7294 function.
7295 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7296 * python/python-internal.h (thread_object_type): Declare.
7297
7298 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7299
7300 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7301 (target_thread_handle_to_thread_info): Declare.
7302 * target.c (target_thread_handle_to_thread_info): New function.
7303 * target-delegates.c: Regenerate.
7304 * gdbthread.h (find_thread_by_handle): Declare.
7305 * thread.c (find_thread_by_handle): New function.
7306 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7307 function.
7308 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7309
7310 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7311
7312 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7313
7314 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7315
7316 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7317
7318 2017-09-21 Yao Qi <yao.qi@linaro.org>
7319
7320 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7321 to gdb_target_obs.
7322
7323 2017-09-20 Tom Tromey <tom@tromey.com>
7324
7325 * breakpoint.c (struct counted_command_line): Remove.
7326 (breakpoint_commands): Update.
7327 (alloc_counted_command_line, incref_counted_command_line)
7328 (decref_counted_command_line, do_cleanup_counted_command_line)
7329 (make_cleanup_decref_counted_command_line): Remove.
7330 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7331 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7332 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7333 (save_breakpoints): Update.
7334 * breakpoint.h (counted_command_line): Now a typedef to
7335 shared_ptr.
7336 (struct breakpoint) <commands>: Now a counted_command_line.
7337 (struct bpstats) <command>: Likewise.
7338
7339 2017-09-20 Tom Tromey <tom@tromey.com>
7340
7341 * breakpoint.c (struct commands_info, do_map_commands_command):
7342 Remove.
7343 (commands_command_1): Update.
7344 (iterate_over_related_breakpoints): Take a function_view.
7345 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7346 (delete_command): Update.
7347 (map_breakpoint_numbers): Take a function_view.
7348 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7349 (disable_command): Update.
7350 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7351 (enable_command): Update.
7352 (struct disp_data, do_enable_breakpoint_disp)
7353 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7354 (do_map_enable_delete_breakpoint): Remove.
7355 (enable_once_command, enable_count_command, enable_delete_command)
7356 (delete_trace_variable_command): Update.
7357
7358 2017-09-20 Tom Tromey <tom@tromey.com>
7359
7360 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7361 (bpstat_clear): Use delete.
7362 (bpstats): New constructors.
7363 (bpstat_copy, bpstat_stop_status): Use new.
7364 (dprintf_after_condition_true): Update.
7365 * breakpoint.h (bpstats::bpstats): Add constructors.
7366 (bpstats::~bpstats): Add destructor.
7367
7368 2017-09-20 Pedro Alves <palves@redhat.com>
7369
7370 * eval.c (make_params): Delete, refactored as ...
7371 (class fake_method): ... this new type's ctor.
7372 (fake_method::~fake_method): New.
7373 (evaluate_subexp_standard): Use 'fake_method'.
7374
7375 2017-09-20 Tom Tromey <tom@tromey.com>
7376
7377 * windows-nat.c (get_windows_debug_event, windows_wait)
7378 (do_initial_windows_stuff, windows_attach): Update.
7379 * utils.c (vwarning, internal_vproblem): Update.
7380 (ui_unregister_input_event_handler_cleanup)
7381 (prepare_to_handle_input): Remove.
7382 (class scoped_input_handler): New.
7383 (defaulted_query, prompt_for_continue): Update.
7384 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7385 Update.
7386 * top.c (undo_terminal_modifications_before_exit): Update.
7387 * target/target.h (target_terminal_init, target_terminal_inferior)
7388 (target_terminal_ours): Don't declare.
7389 (class target_terminal): New.
7390 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7391 (target_terminal_ours_for_output)
7392 (make_cleanup_restore_target_terminal): Don't declare.
7393 (target_terminal_info): Remove.
7394 * target.c (enum terminal_state, terminal_state): Remove.
7395 (target_terminal::terminal_state): Define.
7396 (target_terminal::init): Rename from target_terminal_init.
7397 (target_terminal::inferior): Rename from
7398 target_terminal_inferior.
7399 (target_terminal::ours): Rename from target_terminal_ours.
7400 (target_terminal::ours_for_output): Rename from
7401 target_terminal_ours_for_output.
7402 (target_terminal::info): New method.
7403 (cleanup_restore_target_terminal)
7404 (make_cleanup_restore_target_terminal): Remove.
7405 * solib.c (handle_solib_event): Update.
7406 * remote.c (remote_serial_quit_handler): Update.
7407 (remote_terminal_inferior, remote_wait_as): Update.
7408 * record-full.c (record_full_wait_1): Update.
7409 * nto-procfs.c (procfs_create_inferior): Update.
7410 * nat/fork-inferior.c (startup_inferior): Update.
7411 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7412 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7413 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7414 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7415 (mi_breakpoint_created, mi_breakpoint_deleted)
7416 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7417 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7418 (mi_user_selected_context_changed, report_initial_inferior):
7419 Update.
7420 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7421 (linux_nat_terminal_inferior): Update.
7422 * infrun.c (follow_fork_inferior)
7423 (handle_vfork_child_exec_or_exit, do_target_resume)
7424 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7425 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7426 Update.
7427 * inflow.c (child_terminal_init, info_terminal_command): Update.
7428 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7429 (attach_command): Update.
7430 * infcall.c (call_thread_fsm_should_stop): Update.
7431 * gnu-nat.c (gnu_attach): Update.
7432 * extension.c (struct active_ext_lang_state)
7433 (restore_active_ext_lang): Update.
7434 * exceptions.c (print_flush): Update.
7435 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7436 (struct quit_handler_cleanup_data, restore_quit_handler)
7437 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7438 Remove.
7439 * cp-support.c (gdb_demangle): Update.
7440 * breakpoint.c (update_inserted_breakpoint_locations)
7441 (insert_breakpoint_locations, handle_jit_event)
7442 (disable_breakpoints_in_unloaded_shlib): Update.
7443 * annotate.c (annotate_breakpoints_invalid)
7444 (annotate_frames_invalid): Update.
7445
7446 2017-09-20 Tom Tromey <tom@tromey.com>
7447
7448 * main.c (catch_command_errors): Rename from
7449 catch_command_errors_const.
7450 (captured_main_1): Update.
7451
7452 2017-09-20 Pedro Alves <palves@redhat.com>
7453
7454 * cli/cli-cmds.c (list_command): Use print_sal_location.
7455 (print_sal_location): New function.
7456 (ambiguous_line_spec): Use print_sal_location.
7457 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7458 * symtab.c (find_function_start_sal): Likewise.
7459 * symtab.h (symtab_and_line::symbol): New field.
7460
7461 2017-09-20 Pedro Alves <palves@redhat.com>
7462
7463 * linespec.c (minsym_found): Handle non-text minsyms.
7464 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7465
7466 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7467
7468 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7469 backslash.
7470
7471 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7472
7473 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7474 vmovups instead vmovaps.
7475 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7476
7477 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7478
7479 * NEWS (Changes since GDB 8.0): Add starti.
7480 * infcmd.c (enum run_break): New.
7481 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7482 case.
7483 (run_command): Use enum run_how.
7484 (start_command): Likewise.
7485 (starti_command): New function.
7486 (RUN_ARGS_HELP): New macro.
7487 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7488 commands. Add starti command.
7489
7490 2017-09-19 Yao Qi <yao.qi@linaro.org>
7491
7492 * Makefile.in (monitor.o): Remove the rule.
7493
7494 2017-09-19 Yao Qi <yao.qi@linaro.org>
7495
7496 * annotate.h (struct annotate_arg_emitter): Use
7497 DISABLE_COPY_AND_ASSIGN.
7498 * common/refcounted-object.h (refcounted_object): Likewise.
7499 * completer.h (struct completion_result): Likewise.
7500 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7501 * filename-seen-cache.h (filename_seen_cache): Likewise.
7502 * gdbcore.h (thread_section_name): Likewise.
7503 * gdb_regex.h (compiled_regex): Likewise.
7504 * gdbthread.h (scoped_restore_current_thread): Likewise.
7505 * inferior.h (scoped_restore_current_inferior): Likewise.
7506 * jit.c (jit_reader): Likewise.
7507 * linespec.h (struct linespec_result): Likewise.
7508 * mi/mi-parse.h (struct mi_parse): Likewise.
7509 * nat/fork-inferior.c (execv_argv): Likewise.
7510 * progspace.h (scoped_restore_current_program_space): Likewise.
7511 * python/python-internal.h (class gdbpy_enter): Likewise.
7512 * regcache.h (regcache): Likewise.
7513 * target-descriptions.c (struct tdesc_reg): Likewise.
7514 (struct tdesc_type): Likewise.
7515 (struct tdesc_feature): Likewise.
7516 * ui-out.h (ui_out_emit_type): Likewise.
7517
7518 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7519
7520 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7521 label abort_expression.
7522
7523 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7524
7525 * common/buffer.c (buffer_xml_printf): Adjust.
7526 * common/xml-utils.c (xml_escape_text): Change return type to
7527 std::string, update code accordingly.
7528 * common/xml-utils.h (xml_escape_text): Change return type to
7529 std::string.
7530 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7531 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7532 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7533 Adjust.
7534
7535 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7536
7537 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7538 (SUBDIR_UNITTESTS_OBS): Add new object file.
7539 * unittests/xml-utils-selftests.c: New file.
7540
7541 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7542
7543 * common/selftest.h (selftest): New struct/interface.
7544 (register_test): Add name parameter, add new overload.
7545 (run_tests): Add filter parameter.
7546 (for_each_selftest_ftype): New typedef.
7547 (for_each_selftest): New declaration.
7548 * common/selftest.c (tests): Change type to
7549 map<string, unique_ptr<selftest>>.
7550 (simple_selftest): New struct.
7551 (register_test): New function.
7552 (register_test): Add name parameter and use it.
7553 (run_tests): Add filter parameter and use it. Add prints.
7554 Adjust to vector -> map change.
7555 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7556 registering selftests.
7557 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7558 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7559 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7560 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7561 * findvar.c (_initialize_findvar): Likewise.
7562 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7563 * maint.c (maintenance_selftest): Update call to run_tests.
7564 (maintenance_info_selftests): New function.
7565 (_initialize_maint_cmds): Register "maintenance info selftests"
7566 command. Update "maintenance selftest" doc.
7567 * regcache.c (_initialize_regcache): Add names when registering
7568 selftests.
7569 * rust-exp.y (_initialize_rust_exp): Likewise.
7570 * selftest-arch.c (gdbarch_selftest): New struct.
7571 (gdbarch_tests): Remove.
7572 (register_test_foreach_arch): Add name parameter. Call
7573 register_test.
7574 (tests_with_arch): Remove, move most content to
7575 gdbarch_selftest::operator().
7576 (_initialize_selftests_foreach_arch): Remove.
7577 * selftest-arch.h (register_test_foreach_arch): Add name
7578 parameter.
7579 (run_tests_with_arch): New declaration.
7580 * utils-selftests.c (_initialize_utils_selftests): Add names
7581 when registering selftests.
7582 * utils.c (_initialize_utils): Likewise.
7583 * unittests/array-view-selftests.c
7584 (_initialize_array_view_selftests): Likewise.
7585 * unittests/environ-selftests.c (_initialize_environ_selftests):
7586 Likewise.
7587 * unittests/function-view-selftests.c
7588 (_initialize_function_view_selftests): Likewise.
7589 * unittests/offset-type-selftests.c
7590 (_initialize_offset_type_selftests): Likewise.
7591 * unittests/optional-selftests.c
7592 (_initialize_optional_selftests): Likewise.
7593 * unittests/scoped_restore-selftests.c
7594 (_initialize_scoped_restore_selftests): Likewise.
7595 * NEWS: Document "maintenance selftest" and "maint info
7596 selftests".
7597
7598 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7599
7600 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7601 scoped_restore.
7602
7603 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7604
7605 * mi/mi-main.c (mi_load_progress): Make uiout variable
7606 a unique_ptr.
7607
7608 2017-09-15 Pedro Alves <palves@redhat.com>
7609
7610 * compile/compile-c-types.c (convert_enum, convert_int)
7611 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7612
7613 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7614
7615 * dwarf2read.c (copy_string): Remove.
7616 (parse_macro_definition): Replace copy_string with savestring.
7617
7618 2017-09-15 Yao Qi <yao.qi@linaro.org>
7619
7620 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7621 gdb_target_obs.
7622 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7623 Likewise.
7624 (i[34567]86-*-linux*): Likewise.
7625
7626 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7627
7628 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7629 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7630 <stack>: Change type to std::vector.
7631 <stack_len, stack_allocated>: Remove.
7632 <grow_stack>: Remove.
7633 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7634 (dwarf_expr_context::~dwarf_expr_context): Remove.
7635 (dwarf_expr_context::grow_stack): Remove.
7636 (dwarf_expr_context::push): Adjust.
7637 (dwarf_expr_context::pop): Adjust.
7638 (dwarf_expr_context::fetch): Adjust.
7639 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7640 (dwarf_expr_context::stack_empty_p): Adjust.
7641 (dwarf_expr_context::execute_stack_op): Adjust.
7642
7643 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7644
7645 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7646 return type to bool.
7647 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7648
7649 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7650
7651 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7652 Change type to bool.
7653 (dwarf_stack_value) <in_stack_memory>: Likewise.
7654 (dwarf_expr_context) <push_address>: Change parameter type to
7655 bool.
7656 <fetch_in_stack_memory>: Change return type to bool.
7657 <push>: Change parameter type to bool.
7658 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7659 to bool.
7660 (dwarf_expr_context::push_address): Likewise.
7661 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7662 to bool.
7663 (dwarf_expr_context::execute_stack_op): Adjust.
7664 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7665
7666 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7667
7668 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7669 (struct dwarf_expr_context) <n_pieces>: Remove.
7670 <pieces>: Change type to std::vector.
7671 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7672 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7673 pieces.
7674 (dwarf_expr_context::add_piece): Adjust.
7675 * dwarf2loc.c (struct piece_closure): Initialize fields.
7676 <n_pieces>: Remove.
7677 <pieces>: Change type to std::vector.
7678 (allocate_piece_closure): Adjust, change parameter to
7679 std::vector rvalue and std::move it to piece_closure.
7680 (rw_pieced_value): Adjust.
7681 (check_pieced_synthetic_pointer): Adjust.
7682 (indirect_synthetic_pointer): Adjust.
7683 (coerce_pieced_ref): Adjust.
7684 (free_pieced_value_closure): Adjust. Use delete to free
7685 piece_closure.
7686 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7687 to allocate_piece_closure.
7688 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7689
7690 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7691
7692 * probe.h (probe_ops_cp): Remove typedef.
7693 (DEF_VEC_P (probe_ops_cp)): Remove.
7694 (all_probe_ops): Change type to std::vector.
7695 * probe.c (info_probes_for_ops): Adjust to vector change.
7696 (probe_linespec_to_ops): Likewise.
7697 (all_probe_ops): Change type to std::vector.
7698 (_initialize_probe): Adjust to vector change.
7699 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7700 * elfread.c (elf_get_probes): Likewise.
7701 * stap-probe.c (_initialize_stap_probe): Likewise.
7702
7703 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7704
7705 * probe.h (struct bound_probe): Define constructors.
7706 * probe.c (bound_probe_s): Remove typedef.
7707 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7708 (collect_probes): Change return type to std::vector, remove
7709 cleanup.
7710 (compare_probes): Return bool, change parameter type. Change
7711 semantic to "less than".
7712 (gen_ui_out_table_header_info): Change parameter to std::vector
7713 and update.
7714 (exists_probe_with_pops): Likewise.
7715 (info_probes_for_ops): Update to std::vector change.
7716 (enable_probes_command): Likewise.
7717 (disable_probes_command): Likewise.
7718
7719 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7720
7721 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7722 vec to std::vector.
7723 * probe.c (parse_probes_in_pspace): Update.
7724 (find_probes_in_objfile): Update.
7725 (find_probe_by_pc): Update.
7726 (collect_probes): Update.
7727 (probe_any_get_probes): Update.
7728 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7729 return type to reference to std::vector.
7730 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7731 std::vector and update.
7732 (dtrace_process_dof): Likewise.
7733 (dtrace_get_probes): Likewise.
7734 * elfread.c (elf_get_probes): Change return type to std::vector,
7735 store an std::vector in bfd_data.
7736 (probe_key_free): Update to std::vector.
7737 * stap-probe.c (handle_stap_probe): Change parameter to
7738 std::vector and update.
7739 (stap_get_probes): Likewise.
7740 * symfile-debug.c (debug_sym_get_probes): Change return type to
7741 std::vector and update.
7742
7743 2017-09-11 Tom Tromey <tom@tromey.com>
7744
7745 * breakpoint.c (program_breakpoint_here_p): Update.
7746 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7747 from make_show_memory_breakpoints_cleanup. Return a
7748 scoped_restore_tmpl<int>.
7749 (restore_show_memory_breakpoints): Remove.
7750 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7751 * mem-break.c (memory_validate_breakpoint): Update.
7752 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7753 (ia64_memory_remove_breakpoint): Update.
7754 (ia64_breakpoint_from_pc): Update.
7755 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7756 from make_show_memory_breakpoints_cleanup.
7757
7758 2017-09-11 Tom Tromey <tom@tromey.com>
7759
7760 * d-namespace.c (d_lookup_symbol): Use std::string.
7761 (find_symbol_in_baseclass): Likewise.
7762
7763 2017-09-11 Tom Tromey <tom@tromey.com>
7764
7765 * ctf.c (ctf_start): Use std::string.
7766
7767 2017-09-11 Tom Tromey <tom@tromey.com>
7768
7769 * ada-lang.c (is_known_support_routine): Update.
7770 (ada_unhandled_exception_name_addr_from_raise): Update.
7771 * guile/scm-frame.c (gdbscm_frame_name): Update.
7772 * python/py-frame.c (frapy_name): Update.
7773 (frapy_function): Update.
7774 * stack.h (find_frame_funname): Update.
7775 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7776 (print_frame): Update.
7777
7778 2017-09-11 Tom Tromey <tom@tromey.com>
7779
7780 * findcmd.c (put_bits): Take a gdb::byte_vector.
7781 (parse_find_args): Return gdb::byte_vector. "args" now const.
7782 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7783 cleanups.
7784 (find_command): Update.
7785
7786 2017-09-11 Tom Tromey <tom@tromey.com>
7787
7788 * cli/cli-script.c (class scoped_restore_hook_in): New.
7789 (clear_hook_in_cleanup): Remove.
7790 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7791 scoped_restore_hook_in.
7792
7793 2017-09-11 Tom Tromey <tom@tromey.com>
7794
7795 * cli/cli-script.c (restore_interp): Remove.
7796 (read_command_lines): Use scoped_restore_interp.
7797 * interps.c (scoped_restore_interp::set_temp): Rename from
7798 interp_set_temp.
7799 * interps.h (class scoped_restore_interp): New.
7800 (interp_set_temp): Remove.
7801
7802 2017-09-11 Tom Tromey <tom@tromey.com>
7803
7804 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7805 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7806 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7807 scoped_restore.
7808 (mi_cmd_break_insert_1): Update.
7809 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7810 scoped_restore.
7811
7812 2017-09-11 Tom Tromey <tom@tromey.com>
7813
7814 * demangle.c (demangle_command): Update.
7815 * breakpoint.c (disable_command): Update.
7816 (enable_command): Update.
7817 (find_location_by_number): Make "number" const. Use
7818 get_number_trailer.
7819 * cli/cli-utils.c (extract_arg): Return std::string.
7820 * probe.c (parse_probe_linespec): Update. Change types.
7821 (collect_probes): Take string arguments.
7822 (parse_probe_linespec): Likewise.
7823 (info_probes_for_ops): Update.
7824 (enable_probes_command): Update.
7825 (disable_probes_command): Update.
7826 * break-catch-sig.c (catch_signal_split_args): Update.
7827 * mi/mi-parse.c (mi_parse): Update.
7828
7829 2017-09-11 Tom Tromey <tom@tromey.com>
7830
7831 * language.h (language_enum): Make argument const.
7832 * language.c (language_enum): Make argument const.
7833
7834 2017-09-11 Tom Tromey <tom@tromey.com>
7835
7836 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7837 as function.
7838 (skip_to_space): Rename from skip_to_space_const.
7839 * common/common-utils.c (skip_to_space): New function.
7840 (skip_to_space): Rename from skip_to_space_const.
7841 * cli/cli-utils.h (get_number): Rename from get_number_const.
7842 (extract_arg): Rename from extract_arg_const.
7843 * cli/cli-utils.c (get_number): Rename from get_number_const.
7844 (extract_arg): Rename from extract_arg_const.
7845 (number_or_range_parser::get_number): Use ::get_number.
7846 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7847 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7848 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7849 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7850 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7851 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7852 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7853 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7854
7855 2017-09-11 Tom Tromey <tom@tromey.com>
7856
7857 * python/python.c (do_start_initialization): Use
7858 py-event-types.def to initialize types.
7859 Define all object type structures.
7860 * python/python-internal.h: Don't declare event initialization
7861 functions.
7862 * python/py-threadevent.c (thread_event_object_type): Don't
7863 define.
7864 * python/py-stopevent.c (stop_event_object_type): Don't define.
7865 * python/py-signalevent.c (signal_event_object_type): Don't
7866 declare or define.
7867 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7868 (clear_objfiles_event_object_type): Don't declare or define.
7869 * python/py-infevents.c (inferior_call_pre_event_object_type)
7870 (inferior_call_post_event_object_type)
7871 (register_changed_event_object_type)
7872 (memory_changed_event_object_type): Don't declare or define.
7873 * python/py-inferior.c (new_thread_event_object_type)
7874 (new_inferior_event_object_type)
7875 (inferior_deleted_event_object_type): Don't declare or define.
7876 * python/py-exitedevent.c (exited_event_object_type): Don't
7877 declare or define.
7878 * python/py-evts.c (gdbpy_initialize_py_events): Use
7879 py-all-events.def.
7880 * python/py-events.h (thread_event_object_type): Don't declare.
7881 (events_object): Use py-all-events.def.
7882 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7883 py-event-types.def.
7884 * python/py-event-types.def: New file.
7885 * python/py-continueevent.c (create_continue_event_object): Don't
7886 declare or define.
7887 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7888 declare or define.
7889 * python/py-all-events.def: New file.
7890
7891 2017-09-11 Tom Tromey <tom@tromey.com>
7892
7893 * python/py-threadevent.c (create_thread_event_object): Return
7894 gdbpy_ref.
7895 * python/py-stopevent.h (create_stop_event_object)
7896 (create_breakpoint_event_object, create_signal_event_object):
7897 Update.
7898 * python/py-stopevent.c (create_stop_event_object): Return
7899 gdbpy_ref.
7900 (emit_stop_event): Update.
7901 * python/py-signalevent.c (create_signal_event_object): Return
7902 gdbpy_ref.
7903 * python/py-infevents.c (create_inferior_call_event_object):
7904 Update.
7905 * python/py-event.h (create_event_object)
7906 (create_thread_event_object): Update.
7907 * python/py-event.c (create_event_object): Return gdbpy_ref.
7908 * python/py-continueevent.c: Return gdbpy_ref.
7909 * python/py-bpevent.c (create_breakpoint_event_object): Return
7910 gdbpy_ref.
7911
7912 2017-09-11 Tom Tromey <tom@tromey.com>
7913
7914 PR python/15622:
7915 * NEWS: Add entry.
7916 * python/python.c (do_start_initialization): Initialize new event
7917 types.
7918 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7919 (gdbpy_initialize_inferior_deleted_event)
7920 (gdbpy_initialize_new_thread_event): Declare.
7921 * python/py-threadevent.c (create_thread_event_object): Add option
7922 "thread" parameter.
7923 * python/py-inferior.c (new_thread_event_object_type)
7924 (new_inferior_event_object_type)
7925 (inferior_deleted_event_object_type): Declare.
7926 (python_new_inferior, python_inferior_deleted): New functions.
7927 (add_thread_object): Emit new_thread event.
7928 (gdbpy_initialize_inferior): Attach new functions to corresponding
7929 observers.
7930 (new_thread, new_inferior, inferior_deleted): Define new event
7931 types.
7932 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7933 registries.
7934 * python/py-events.h (events_object) <new_inferior,
7935 inferior_deleted, new_thread>: New fields.
7936 * python/py-event.h (create_thread_event_breakpoint): Add optional
7937 "thread" parameter.
7938
7939 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7940
7941 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7942 check current_ui instead.
7943 (internal_vproblem): Likewise.
7944
7945 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7946
7947 * thread.c (print_thread_info_1): Remove unnecessary calls to
7948 uiout->is_mi_like_p.
7949
7950 2017-09-09 Tom Tromey <tom@tromey.com>
7951
7952 * namespace.h (add_using_directive): Update.
7953 * namespace.c (add_using_directive): Change type of excludes to
7954 std::vector.
7955 * dwarf2read.c (read_import_statement): Use std::vector.
7956 (read_namespace): Update.
7957 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7958
7959 2017-09-09 Tom Tromey <tom@tromey.com>
7960
7961 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7962
7963 2017-09-09 Tom Tromey <tom@tromey.com>
7964
7965 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7966
7967 2017-09-09 Tom Tromey <tom@tromey.com>
7968
7969 * stack.c (func_command): Use gdb::def_vector.
7970
7971 2017-09-09 Tom Tromey <tom@tromey.com>
7972
7973 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7974 ui_out_emit_list, ui_out_emit_tuple.
7975 (mi_cmd_var_update): Likewise.
7976
7977 2017-09-09 Tom Tromey <tom@tromey.com>
7978
7979 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7980 ui_out_redirect_pop.
7981 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7982 ui_out_redirect_pop.
7983 * utils.c (do_ui_out_redirect_pop)
7984 (make_cleanup_ui_out_redirect_pop): Remove.
7985 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7986 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7987 * ui-out.h (ui_out_redirect_pop): New class.
7988
7989 2017-09-09 Tom Tromey <tom@tromey.com>
7990
7991 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7992 (list_available_thread_groups, mi_cmd_list_thread_groups)
7993 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7994 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7995 Likewise.
7996
7997 2017-09-09 Tom Tromey <tom@tromey.com>
7998
7999 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
8000 ui_out_emit_tuple.
8001
8002 2017-09-09 Tom Tromey <tom@tromey.com>
8003
8004 * target.c (flash_erase_command): Use ui_out_emit_tuple.
8005 * stack.c (print_frame): Use ui_out_emit_tuple.
8006 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
8007 (info_spu_mailbox_command, info_spu_dma_command)
8008 (info_spu_proxydma_command): Likewise.
8009 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
8010 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
8011 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
8012 ui_out_emit_tuple.
8013 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
8014
8015 2017-09-09 Tom Tromey <tom@tromey.com>
8016
8017 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
8018 (class ui_out_emit_table): Update comment.
8019 * ui-out.c (do_cleanup_table_end)
8020 (make_cleanup_ui_out_table_begin_end): Remove.
8021 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
8022 (info_spu_dma_cmdlist): Likewise.
8023 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
8024 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
8025 ui_out_emit_table.
8026
8027 2017-09-09 Tom Tromey <tom@tromey.com>
8028
8029 * thread.c (print_thread_info_1): Use ui_out_emit_table,
8030 ui_out_emit_list, gdb::optional.
8031
8032 2017-09-09 John Baldwin <jhb@FreeBSD.org>
8033
8034 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
8035 prototype.
8036 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
8037 prototype.
8038 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
8039 prototype.
8040 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
8041 * ada-exp.y: Remove _initialize_ada_exp prototype.
8042 * ada-lang.c: Remove _initialize_ada_language prototype.
8043 * ada-tasks.c: Remove _initialize_tasks prototype.
8044 * addrmap.c: Remove _initialize_addrmap prototype.
8045 * agent.c: Remove _initialize_agent prototype.
8046 * aix-thread.c: Remove _initialize_aix_thread prototype.
8047 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
8048 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
8049 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
8050 prototype.
8051 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
8052 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
8053 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
8054 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
8055 prototype.
8056 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
8057 prototype.
8058 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
8059 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
8060 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
8061 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
8062 prototype.
8063 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
8064 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
8065 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
8066 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
8067 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8068 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
8069 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
8070 prototype.
8071 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
8072 prototype.
8073 * annotate.c: Remove _initialize_annotate prototype.
8074 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
8075 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
8076 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
8077 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
8078 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
8079 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
8080 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
8081 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
8082 prototype.
8083 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
8084 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
8085 * auto-load.c: Remove _initialize_auto_load prototype.
8086 * auxv.c: Remove _initialize_auxv prototype.
8087 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
8088 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
8089 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
8090 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
8091 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
8092 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
8093 prototype.
8094 * break-catch-throw.c: Remove _initialize_break_catch_throw
8095 prototype.
8096 * breakpoint.c: Remove _initialize_breakpoint prototype.
8097 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
8098 * btrace.c: Remove _initialize_btrace prototype.
8099 * charset.c: Remove _initialize_charset prototype.
8100 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
8101 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
8102 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
8103 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
8104 * cli/cli-script.c: Remove _initialize_cli_script prototype.
8105 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
8106 * coffread.c: Remove _initialize_coffread prototype.
8107 * compile/compile.c: Remove _initialize_compile prototype.
8108 * complaints.c: Remove _initialize_complaints prototype.
8109 * completer.c: Remove _initialize_completer prototype.
8110 * copying.awk: Remove _initialize_copying prototype.
8111 * copying.c: Regenerate.
8112 * core-regset.c: Remove _initialize_core_regset prototype.
8113 * corefile.c: Remove _initialize_core prototype.
8114 * corelow.c: Remove _initialize_corelow prototype.
8115 * cp-abi.c: Remove _initialize_cp_abi prototype.
8116 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
8117 * cp-support.c: Remove _initialize_cp_support prototype.
8118 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
8119 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
8120 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
8121 * ctf.c: Remove _initialize_ctf prototype.
8122 * d-lang.c: Remove _initialize_d_language prototype.
8123 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
8124 prototype.
8125 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
8126 * dbxread.c: Remove _initialize_dbxread prototype.
8127 * dcache.c: Remove _initialize_dcache prototype.
8128 * demangle.c: Remove _initialize_demangler prototype.
8129 * disasm-selftests.c: Remove _initialize_disasm_selftests
8130 prototype.
8131 * disasm.c: Remove _initialize_disasm prototype.
8132 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
8133 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
8134 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
8135 prototype.
8136 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
8137 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
8138 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
8139 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
8140 * elfread.c: Remove _initialize_elfread prototype.
8141 * exec.c: Remove _initialize_exec prototype.
8142 * extension.c: Remove _initialize_extension prototype.
8143 * f-lang.c: Remove _initialize_f_language prototype.
8144 * f-valprint.c: Remove _initialize_f_valprint prototype.
8145 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
8146 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
8147 * filesystem.c: Remove _initialize_filesystem prototype.
8148 * findcmd.c: Remove _initialize_mem_search prototype.
8149 * fork-child.c: Remove _initialize_fork_child prototype.
8150 * frame-base.c: Remove _initialize_frame_base prototype.
8151 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
8152 * frame.c: Remove _initialize_frame prototype.
8153 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
8154 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
8155 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
8156 * gcore.c: Remove _initialize_gcore prototype.
8157 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
8158 * gdbarch.c: Regenerate.
8159 * gdbarch.sh: Remove _initialize_gdbarch prototype.
8160 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
8161 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
8162 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
8163 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
8164 * go-lang.c: Remove _initialize_go_language prototype.
8165 * go32-nat.c: Remove _initialize_go32_nat prototype.
8166 * guile/guile.c: Remove _initialize_guile prototype.
8167 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
8168 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
8169 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
8170 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
8171 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
8172 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
8173 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
8174 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
8175 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
8176 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
8177 prototype.
8178 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
8179 prototype.
8180 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
8181 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
8182 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
8183 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
8184 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
8185 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
8186 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
8187 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
8188 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
8189 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
8190 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
8191 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
8192 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
8193 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8194 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
8195 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
8196 prototype.
8197 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
8198 prototype.
8199 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
8200 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
8201 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
8202 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
8203 * infcall.c: Remove _initialize_infcall prototype.
8204 * infcmd.c: Remove _initialize_infcmd prototype.
8205 * inferior.c: Remove _initialize_inferiors prototype.
8206 * inflow.c: Remove _initialize_inflow prototype.
8207 * infrun.c: Remove _initialize_infrun prototype.
8208 * interps.c: Remove _initialize_interpreter prototype.
8209 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
8210 * jit.c: Remove _initialize_jit prototype.
8211 * language.c: Remove _initialize_language prototype.
8212 * linux-fork.c: Remove _initialize_linux_fork prototype.
8213 * linux-nat.c: Remove _initialize_linux_nat prototype.
8214 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
8215 * linux-thread-db.c: Remove _initialize_thread_db prototype.
8216 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
8217 * m2-lang.c: Remove _initialize_m2_language prototype.
8218 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
8219 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
8220 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
8221 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
8222 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
8223 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8224 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8225 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
8226 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
8227 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
8228 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8229 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8230 * machoread.c: Remove _initialize_machoread prototype.
8231 * macrocmd.c: Remove _initialize_macrocmd prototype.
8232 * macroscope.c: Remove _initialize_macroscope prototype.
8233 * maint.c: Remove _initialize_maint_cmds prototype.
8234 * mdebugread.c: Remove _initialize_mdebugread prototype.
8235 * memattr.c: Remove _initialize_mem prototype.
8236 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
8237 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
8238 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
8239 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
8240 * mi/mi-main.c: Remove _initialize_mi_main prototype.
8241 * microblaze-linux-tdep.c: Remove
8242 _initialize_microblaze_linux_tdep prototype.
8243 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
8244 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
8245 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
8246 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
8247 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
8248 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
8249 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
8250 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
8251 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
8252 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
8253 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
8254 prototype.
8255 * mipsread.c: Remove _initialize_mipsread prototype.
8256 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
8257 prototype.
8258 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
8259 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
8260 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
8261 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
8262 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
8263 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
8264 prototype.
8265 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
8266 * nto-procfs.c: Remove _initialize_procfs prototype.
8267 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
8268 * objc-lang.c: Remove _initialize_objc_language prototype.
8269 * objfiles.c: Remove _initialize_objfiles prototype.
8270 * observer.c: Remove observer_test_first_notification_function,
8271 observer_test_second_notification_function,
8272 observer_test_third_notification_function, and
8273 _initialize_observer prototypes.
8274 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
8275 * osabi.c: Remove _initialize_gdb_osabi prototype.
8276 * osdata.c: Remove _initialize_osdata prototype.
8277 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
8278 * parse.c: Remove _initialize_parse prototype.
8279 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
8280 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
8281 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
8282 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
8283 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
8284 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
8285 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
8286 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
8287 * printcmd.c: Remove _initialize_printcmd prototype.
8288 * probe.c: Remove _initialize_probe prototype.
8289 * proc-api.c: Remove _initialize_proc_api prototype.
8290 * proc-events.c: Remove _initialize_proc_events prototype.
8291 * proc-service.c: Remove _initialize_proc_service prototype.
8292 * procfs.c: Remove _initialize_procfs prototype.
8293 * psymtab.c: Remove _initialize_psymtab prototype.
8294 * python/python.c: Remove _initialize_python prototype.
8295 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8296 * record-btrace.c: Remove _initialize_record_btrace prototype.
8297 * record-full.c: Remove _initialize_record_full prototype.
8298 * record.c: Remove _initialize_record prototype.
8299 * regcache.c: Remove _initialize_regcache prototype.
8300 * reggroups.c: Remove _initialize_reggroup prototype.
8301 * remote-notif.c: Remove _initialize_notif prototype.
8302 * remote-sim.c: Remove _initialize_remote_sim prototype.
8303 * remote.c: Remove _initialize_remote prototype.
8304 * reverse.c: Remove _initialize_reverse prototype.
8305 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8306 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8307 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8308 prototype.
8309 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8310 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8311 * rust-exp.y: Remove _initialize_rust_exp prototype.
8312 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8313 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8314 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8315 * score-tdep.c: Remove _initialize_score_tdep prototype.
8316 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8317 prototype.
8318 * ser-go32.c: Remove _initialize_ser_dos prototype.
8319 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8320 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8321 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8322 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8323 * serial.c: Remove _initialize_serial prototype.
8324 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8325 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8326 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8327 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8328 * skip.c: Remove _initialize_step_skip prototype.
8329 * sol-thread.c: Remove _initialize_sol_thread prototype.
8330 * solib-aix.c: Remove _initialize_solib_aix prototype.
8331 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8332 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8333 * solib-frv.c: Remove _initialize_frv_solib prototype.
8334 * solib-spu.c: Remove _initialize_spu_solib prototype.
8335 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8336 * solib-target.c: Remove _initialize_solib_target prototype.
8337 * solib.c: Remove _initialize_solib prototype.
8338 * source.c: Remove _initialize_source prototype.
8339 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8340 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8341 prototype.
8342 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8343 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8344 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8345 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8346 prototype.
8347 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8348 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8349 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8350 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8351 prototype.
8352 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8353 prototype.
8354 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8355 prototype.
8356 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8357 prototype.
8358 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8359 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8360 prototype.
8361 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8362 prototype.
8363 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8364 prototype.
8365 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8366 prototype.
8367 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8368 prototype.
8369 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8370 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8371 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8372 * stabsread.c: Remove _initialize_stabsread prototype.
8373 * stack.c: Remove _initialize_stack prototype.
8374 * stap-probe.c: Remove _initialize_stap_probe prototype.
8375 * std-regs.c: Remove _initialize_frame_reg prototype.
8376 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8377 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8378 * symfile.c: Remove _initialize_symfile prototype.
8379 * symmisc.c: Remove _initialize_symmisc prototype.
8380 * symtab.c: Remove _initialize_symtab prototype.
8381 * target-dcache.c: Remove _initialize_target_dcache prototype.
8382 * target-descriptions.c: Remove _initialize_target_descriptions
8383 prototype.
8384 * thread.c: Remove _initialize_thread prototype.
8385 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8386 prototype.
8387 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8388 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8389 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8390 prototype.
8391 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8392 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8393 * tracefile.c: Remove _initialize_tracefile prototype.
8394 * tracepoint.c: Remove _initialize_tracepoint prototype.
8395 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8396 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8397 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8398 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8399 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8400 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8401 * tui/tui.c: Remove _initialize_tui prototype.
8402 * typeprint.c: Remove _initialize_typeprint prototype.
8403 * user-regs.c: Remove _initialize_user_regs prototype.
8404 * utils.c: Remove _initialize_utils prototype.
8405 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8406 * valarith.c: Remove _initialize_valarith prototype.
8407 * valops.c: Remove _initialize_valops prototype.
8408 * valprint.c: Remove _initialize_valprint prototype.
8409 * value.c: Remove _initialize_values prototype.
8410 * varobj.c: Remove _initialize_varobj prototype.
8411 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8412 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8413 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8414 * windows-nat.c: Remove _initialize_windows_nat,
8415 _initialize_check_for_gdb_ini, and _initialize_loadable
8416 prototypes.
8417 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8418 * xcoffread.c: Remove _initialize_xcoffread prototype.
8419 * xml-support.c: Remove _initialize_xml_support prototype.
8420 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8421 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8422 prototype.
8423 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8424 prototype.
8425 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8426
8427 2017-09-08 Keith Seitz <keiths@redhat.com>
8428
8429 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8430 field.
8431
8432 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8433
8434 * f-valprint.c (f_val_print): Remove check for one byte
8435 sized integers. Remove printing of character type.
8436
8437 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8438 Christoph Weinmann <christoph.t.weinmann@intel.com>
8439 Bernhard Heckel <bernhard.heckel@intel.com>
8440
8441 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8442 to maintain proper indentation when printing pointers/refs.
8443
8444 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8445
8446 GDB 8.0.1 released.
8447
8448 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8449
8450 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8451
8452 2017-09-05 Tom Tromey <tom@tromey.com>
8453
8454 * parse.c (funcall_chain): Now a std::vector.
8455 (start_arglist, end_arglist): Simplify.
8456 (free_funcalls): Remove.
8457 (parse_exp_in_context_1): Remove cleanup.
8458
8459 2017-09-05 Tom Tromey <tom@tromey.com>
8460
8461 * go-exp.y (go_parse): Don't create a cleanup.
8462
8463 2017-09-05 Tom Tromey <tom@tromey.com>
8464
8465 * d-exp.y (PrimaryExpression): Use std::string.
8466 (d_parse): Don't create a cleanup.
8467
8468 2017-09-05 Tom Tromey <tom@tromey.com>
8469
8470 * utils.c (do_clear_parser_state): Remove.
8471 (make_cleanup_clear_parser_state): Remove.
8472 * p-exp.y (pascal_parse): Use scoped_restore.
8473 * m2-exp.y (m2_parse): Use scoped_restore.
8474 * f-exp.y (f_parse): Use scoped_restore.
8475 * d-exp.y (d_parse): Use scoped_restore.
8476 * c-exp.y (c_parse): Use scoped_restore.
8477 * ada-exp.y (ada_parse): Use scoped_restore.
8478 * utils.h (make_cleanup_clear_parser_state): Remove.
8479
8480 2017-09-06 Keith Seitz <keiths@redhat.com>
8481
8482 * dwarf2read.c (dw2_linkage_name_attr): New function.
8483 (dw2_linkage_name): New function.
8484 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8485 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8486 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8487
8488 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8489
8490 * config/djgpp/djconfig.sh: Correct shell portability issue.
8491
8492 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8493
8494 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8495
8496 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8497
8498 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8499 * NEWS: Mention new FreeBSD/mips native configuration.
8500 * configure.host: Add aarch64*-*-freebsd*.
8501 * configure.nat: Likewise.
8502 * aarch64-fbsd-nat.c: New file.
8503
8504 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8505
8506 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8507 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8508 * NEWS: Mention new FreeBSD/aarch64 target.
8509 * configure.tgt: Add aarch64*-*-freebsd*.
8510 * aarch64-fbsd-tdep.c: New file.
8511 * aarch64-fbsd-tdep.h: New file.
8512
8513 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8514
8515 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8516
8517 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8518
8519 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8520 of TLS symbols.
8521
8522 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8523
8524 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8525 call.
8526
8527 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8528
8529 * infrun.c (follow_exec): Call add_thread after
8530 target_find_description.
8531
8532 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8533
8534 * infrun.c (handle_inferior_event_1): When exec'ing, read
8535 stop_pc after follow_exec.
8536
8537 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8538
8539 * remote.c (process_g_packet): Update error message.
8540
8541 2017-09-05 Yao Qi <yao.qi@linaro.org>
8542
8543 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8544 targets.
8545
8546 2017-09-05 Pedro Alves <palves@redhat.com>
8547
8548 * eval.c (eval_call, evaluate_funcall): New functions, factored
8549 out from ...
8550 (evaluate_subexp_standard): ... this.
8551
8552 2017-09-05 Yao Qi <yao.qi@linaro.org>
8553
8554 * amd64-tdep.c (amd64_target_description): Create target
8555 descriptions.
8556 (_initialize_amd64_tdep): Don't call functions
8557 initialize_tdesc_amd64_*. Add self tests.
8558 * arch/amd64.c (amd64_create_target_description): Add parameter
8559 is_linux. Call set_tdesc_osabi if is_linux is true.
8560 * arch/amd64.h (amd64_create_target_description): Update the
8561 declaration.
8562 * arch/i386.c (i386_create_target_description): Add parameter
8563 is_linux. Call set_tdesc_osabi if is_linux is true.
8564 * arch/i386.h (i386_create_target_description): Update
8565 declaration.
8566 * configure.tgt: Add i386.o to gdb_target_obs.
8567 * features/Makefile (XMLTOC): Remove i386/*.xml.
8568 * features/i386/amd64-avx-avx512.c: Remove.
8569 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8570 * features/i386/amd64-avx-mpx.c: Remove.
8571 * features/i386/amd64-avx.c: Remove.
8572 * features/i386/amd64-mpx.c: Remove.
8573 * features/i386/amd64.c: Remove.
8574 * features/i386/i386-avx-avx512.c: Remove.
8575 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8576 * features/i386/i386-avx-mpx.c: Remove.
8577 * features/i386/i386-avx.c: Remove.
8578 * features/i386/i386-mmx.c: Remove.
8579 * features/i386/i386-mpx.c: Remove.
8580 * features/i386/i386.c: Remove.
8581 * i386-tdep.c: Don't include features/i386/i386*.c., include
8582 target-descriptions.h and arch/i386.h.
8583 (i386_target_description): Create target descriptions.
8584 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8585 functions. Do self tests.
8586
8587 2017-09-05 Yao Qi <yao.qi@linaro.org>
8588
8589 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8590 * features/i386/amd64-avx-avx512-linux.c: Removed.
8591 * features/i386/amd64-avx-linux.c: Removed.
8592 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8593 * features/i386/amd64-avx-mpx-linux.c: Removed.
8594 * features/i386/amd64-linux.c: Removed.
8595 * features/i386/amd64-mpx-linux.c: Removed.
8596 * features/i386/x32-avx-avx512-linux.c: Removed.
8597 * features/i386/x32-avx-linux.c: Removed.
8598 * features/i386/x32-linux.c: Removed.
8599
8600 2017-09-05 Yao Qi <yao.qi@linaro.org>
8601
8602 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8603 features/i386/*.c.
8604 (amd64_linux_read_description): Call
8605 amd64_create_target_description.
8606 * arch/amd64.c: New file.
8607 * arch/amd64.h: New file.
8608 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8609 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8610
8611 2017-09-05 Yao Qi <yao.qi@linaro.org>
8612
8613 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8614 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8615 (amd64_linux_read_description): Create target descriptions.
8616 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8617 functions. Add unit tests.
8618 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8619 x32-core.xml.
8620 * features/i386/64bit-avx.c: Generated.
8621 * features/i386/64bit-avx512.c: Generated.
8622 * features/i386/64bit-core.c: Generated.
8623 * features/i386/64bit-linux.c: Generated.
8624 * features/i386/64bit-mpx.c: Generated.
8625 * features/i386/64bit-pkeys.c: Generated.
8626 * features/i386/64bit-segments.c: Generated.
8627 * features/i386/64bit-sse.c: Generated.
8628 * features/i386/x32-core.c: Generated.
8629 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8630 c files for amd64-linux and x32-linux.
8631
8632 2017-09-05 Yao Qi <yao.qi@linaro.org>
8633
8634 * amd64-linux-tdep.c (amd64_linux_read_description): New
8635 function.
8636 (amd64_linux_core_read_description): Call
8637 amd64_linux_read_description.
8638 (amd64_linux_init_abi): Likewise.
8639 (amd64_x32_linux_init_abi): Likewise.
8640 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8641 * x86-linux-nat.c (x86_linux_read_description): Call
8642 amd64_linux_read_description.
8643
8644 2017-09-05 Yao Qi <yao.qi@linaro.org>
8645
8646 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8647 comments.
8648
8649 2017-09-05 Yao Qi <yao.qi@linaro.org>
8650
8651 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8652 * features/i386/i386-avx-avx512-linux.c: Remove.
8653 * features/i386/i386-avx-linux.c: Remove.
8654 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8655 * features/i386/i386-avx-mpx-linux.c: Remove.
8656 * features/i386/i386-linux.c: Remove.
8657 * features/i386/i386-mmx-linux.c: Remove.
8658 * features/i386/i386-mpx-linux.c: Remove.
8659
8660 2017-09-05 Yao Qi <yao.qi@linaro.org>
8661
8662 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8663 (SFILES): Add arch/i386.c.
8664 (HFILES_NO_SRCDIR): Add arch/i386.h.
8665 * arch/i386.c: New file.
8666 * arch/i386.h: New file.
8667 * arch/tdesc.h (allocate_target_description): Declare.
8668 (set_tdesc_architecture): Declare.
8669 (set_tdesc_osabi): Declare.
8670 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8671 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8672 include arch/i386.h.
8673 (i386_linux_read_description): Remove code and call
8674 i386_create_target_description.
8675 (set_tdesc_architecture): New function.
8676 (set_tdesc_osabi): New function.
8677 * target-descriptions.h (allocate_target_description): Remove.
8678
8679 2017-09-05 Yao Qi <yao.qi@linaro.org>
8680
8681 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8682 * target-descriptions.c (tdesc_create_feature): Likewise, and
8683 adjust code.
8684 * features/i386/32bit-avx.c: Re-generated.
8685 * features/i386/32bit-avx512.c: Re-generated.
8686 * features/i386/32bit-core.c: Re-generated.
8687 * features/i386/32bit-linux.c: Re-generated.
8688 * features/i386/32bit-mpx.c: Re-generated.
8689 * features/i386/32bit-pkeys.c: Re-generated.
8690 * features/i386/32bit-sse.c: Re-generated.
8691
8692 2017-09-05 Yao Qi <yao.qi@linaro.org>
8693
8694 * regformats/regdef.h (struct reg): Override operator == and !=.
8695
8696 2017-09-05 Yao Qi <yao.qi@linaro.org>
8697
8698 * arch/tdesc.h: New file.
8699 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8700 * target-descriptions.c: Update comments.
8701 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8702 declarations.
8703 * features/i386/32bit-avx.c: Re-generated.
8704 * features/i386/32bit-avx512.c: Re-generated.
8705 * features/i386/32bit-core.c: Re-generated.
8706 * features/i386/32bit-linux.c: Re-generated.
8707 * features/i386/32bit-mpx.c: Re-generated.
8708 * features/i386/32bit-pkeys.c: Re-generated.
8709 * features/i386/32bit-sse.c: Re-generated.
8710
8711 2017-09-05 Yao Qi <yao.qi@linaro.org>
8712
8713 * regformats/regdat.sh: Update generated code.
8714
8715 2017-09-05 Yao Qi <yao.qi@linaro.org>
8716
8717 * regformats/regdat.sh: Adjust code order.
8718
8719 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8720
8721 * expprint.c (dump_subexp_body_standard): Use constant format
8722 string in fprintf_filtered call.
8723
8724 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8725
8726 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8727 NetBSD/i386.
8728 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8729
8730 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8731
8732 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8733
8734 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8735
8736 * bsd-kvm.o: Define _KMEMUSER.
8737 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8738 * configure: Regenerate.
8739
8740 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8741
8742 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8743 * i386-fbsd-nat.c: Likewise.
8744
8745 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8746
8747 * unittests/array-view-selftests.c: Add include of <array>.
8748
8749 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8750
8751 * spu-tdep.c (flush_ea_cache): Add missing argument to
8752 call_function_by_hand.
8753
8754 2017-09-04 Pedro Alves <palves@redhat.com>
8755
8756 * NEWS (Safer support for debugging with no debug info): New.
8757
8758 2017-09-04 Pedro Alves <palves@redhat.com>
8759
8760 * c-exp.y (function_method, function_method_void): Add current
8761 instance flags to TYPE_INSTANCE.
8762 * dwarf2read.c (check_modifier): New.
8763 (compute_delayed_physnames): Assert that only C++ adds delayed
8764 physnames. Mark fn_fields as const/volatile depending on
8765 physname.
8766 * eval.c (make_params): New type_instance_flags parameter. Use
8767 it as the new type's instance flags.
8768 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8769 flags element and pass it to make_params.
8770 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8771 instance flags element.
8772 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8773 * gdbtypes.h: Include "enum-flags.h".
8774 (type_instance_flags): New enum-flags type.
8775 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8776 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8777 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8778 (follow_type_instance_flags): New function.
8779 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8780 * parser-defs.h (follow_type_instance_flags): Declare.
8781 * valops.c (value_struct_elt_for_reference): const/volatile must
8782 match too.
8783
8784 2017-09-04 Pedro Alves <palves@redhat.com>
8785
8786 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8787 function/method scopes; lookup the nested name as a function local
8788 static variable.
8789
8790 2017-09-04 Pedro Alves <palves@redhat.com>
8791
8792 (%type <voidval>): Add function_method.
8793 * c-exp.y (exp): New production for calls with no arguments.
8794 (function_method, function_method_void_or_typelist): New
8795 productions.
8796 (exp): New production for "method()::static_var".
8797 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8798 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8799 Handle OP_FUNC_STATIC_VAR.
8800 * parse.c (operator_length_standard):
8801 Handle OP_FUNC_STATIC_VAR.
8802
8803 2017-09-04 Pedro Alves <palves@redhat.com>
8804
8805 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8806 handling.
8807 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8808 Ditto.
8809 * parse.c (operator_length_standard, operator_check_standard):
8810 Ditto.
8811 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8812
8813 2017-09-04 Pedro Alves <palves@redhat.com>
8814
8815 * ax-gdb.c: Include "typeprint.h".
8816 (gen_expr_for_cast): New function.
8817 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8818 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8819 type is unknown.
8820 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8821 nodebug_data_symbol.
8822 * eval.c: Include "typeprint.h".
8823 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8824 Error out if symbol has unknown type.
8825 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8826 evaluate_subexp_for_cast.
8827 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8828 OP_VAR_MSYM_VALUE.
8829 (evaluate_subexp_for_cast): New function.
8830 * gdbtypes.c (init_nodebug_var_type): New function.
8831 (objfile_type): Use it to initialize types of variables with no
8832 debug info.
8833 * typeprint.c (error_unknown_type): New.
8834 * typeprint.h (error_unknown_type): New declaration.
8835 * compile/compile-c-types.c (convert_type_basic): Handle
8836 TYPE_CODE_ERROR; warn and fallback to int for variables with
8837 unknown type.
8838
8839 2017-09-04 Pedro Alves <palves@redhat.com>
8840
8841 * eval.c (evaluate_var_value): New function, factored out from ...
8842 (evaluate_subexp_standard): ... here.
8843
8844 2017-09-04 Pedro Alves <palves@redhat.com>
8845
8846 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8847 Remove useless assignments to 'op'.
8848
8849 2017-09-04 Pedro Alves <palves@redhat.com>
8850
8851 * eval.c (eval_skip_value): New function.
8852 (evaluate_subexp_standard): Use it.
8853
8854 2017-09-04 Pedro Alves <palves@redhat.com>
8855
8856 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8857 function name from symbol/minsym and pass it to
8858 error_call_unknown_return_type.
8859
8860 2017-09-04 Pedro Alves <palves@redhat.com>
8861
8862 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8863 * ax-gdb.c (gen_msym_var_ref): New function.
8864 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8865 * eval.c (evaluate_var_msym_value): New function.
8866 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8867 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8868 to call_function_by_hand.
8869 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8870 Handle OP_VAR_MSYM_VALUE.
8871 (union exp_element) <msymbol>: New field.
8872 * minsyms.h (struct type): Forward declare.
8873 (find_minsym_type_and_address): Declare.
8874 * parse.c (write_exp_elt_msym): New function.
8875 (write_exp_msymbol): Delete, refactored as ...
8876 (find_minsym_type_and_address): ... this new function.
8877 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8878 (operator_length_standard, operator_check_standard): Handle
8879 OP_VAR_MSYM_VALUE.
8880 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8881
8882 2017-09-04 Pedro Alves <palves@redhat.com>
8883
8884 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8885 TYPE_GNU_IFUNC specially here. Throw error if return type is
8886 unknown.
8887 * ada-typeprint.c (print_func_type): Handle functions with unknown
8888 return type.
8889 * c-typeprint.c (c_type_print_base): Handle functions and methods
8890 with unknown return type.
8891 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8892 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8893 * compile/compile-c-types.c: Include "objfiles.h".
8894 (convert_func): For functions with unknown return type, warn and
8895 default to int.
8896 * compile/compile-object-run.c (compile_object_run): Adjust call
8897 to call_function_by_hand_dummy.
8898 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8899 call_function_by_hand.
8900 * eval.c (evaluate_subexp_standard): Adjust calls to
8901 call_function_by_hand. Handle functions and methods with unknown
8902 return type. Pass expect_type to call_function_by_hand.
8903 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8904 return type.
8905 * gcore.c (call_target_sbrk): Adjust call to
8906 call_function_by_hand.
8907 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8908 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8909 an integer address type instead of nodebug.
8910 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8911 call_function_by_hand.
8912 * infcall.c (error_call_unknown_return_type): New function.
8913 (call_function_by_hand): New "default_return_type" parameter.
8914 Pass it down.
8915 (call_function_by_hand_dummy): New "default_return_type"
8916 parameter. Use it instead of defaulting to int. If there's no
8917 default and the return type is unknown, throw an error. If
8918 there's a default return type, and the called function has no
8919 debug info, then assume the function is prototyped.
8920 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8921 New "default_return_type" parameter.
8922 (error_call_unknown_return_type): New declaration.
8923 * linux-fork.c (call_lseek): Cast return type of lseek.
8924 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8925 call_function_by_hand.
8926 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8927 calls to call_function_by_hand.
8928 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8929 return type.
8930 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8931 (value_nsstring, print_object_command): Adjust calls to
8932 call_function_by_hand.
8933 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8934 functions with unknown return type.
8935 (pascal_type_print_func_varspec_suffix): New function.
8936 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8937 TYPE_CODE_METHOD>: Use it.
8938 * python/py-value.c (valpy_call): Adjust call to
8939 call_function_by_hand.
8940 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8941 call_function_by_hand.
8942 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8943 call_function_by_hand.
8944 * valops.c (value_allocate_space_in_inferior): Adjust call to
8945 call_function_by_hand.
8946 * typeprint.c (type_print_unknown_return_type): New function.
8947 * typeprint.h (type_print_unknown_return_type): New declaration.
8948
8949 2017-09-04 Pedro Alves <palves@redhat.com>
8950
8951 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8952 types with more than one parameter as prototyped.
8953
8954 2017-09-04 Pedro Alves <palves@redhat.com>
8955
8956 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8957 (disassemble_command): Use gdb_disassembly_flags instead of bare
8958 int.
8959 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8960 (dump_insns, do_mixed_source_and_assembly_deprecated)
8961 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8962 Use gdb_disassembly_flags instead of bare int.
8963 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8964 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8965 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8966 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8967 (enum gdb_disassembly_flag): ... values of this new enumeration.
8968 (gdb_disassembly_flags): Define.
8969 (gdb_disassembly)
8970 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8971 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8972 gdb_disassembly_flags instead of bare int.
8973 * record-btrace.c (btrace_insn_history)
8974 (record_btrace_insn_history, record_btrace_insn_history_range)
8975 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8976 instead of bare int.
8977 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8978 Use gdb_disassembly_flags instead of bare int.
8979 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8980 Define.
8981 * target-delegates.c: Regenerate.
8982 * target.c (target_insn_history, target_insn_history_from)
8983 (target_insn_history_range): Use gdb_disassembly_flags instead of
8984 bare int.
8985 * target.h: Include "disasm.h".
8986 (struct target_ops) <to_insn_history, to_insn_history_from,
8987 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8988 int.
8989 (target_insn_history, target_insn_history_from)
8990 (target_insn_history_range): Use gdb_disassembly_flags instead of
8991 bare int.
8992
8993 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8994
8995 * cli/cli-script.c (build_command_line): For if/while commands,
8996 check whether args is empty.
8997
8998 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8999
9000 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
9001 (enum command_control_type): Likewise.
9002 (struct command_line): Likewise.
9003 (free_command_lines): Likewise.
9004 (struct command_lines_deleter): Likewise.
9005 (command_line_up): Likewise.
9006 (read_command_lines): Likewise.
9007 (read_command_lines_1): Likewise.
9008 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
9009 (enum command_control_type): Likewise.
9010 (struct command_line): Likewise.
9011 (free_command_lines): Likewise.
9012 (struct command_lines_deleter): Likewise.
9013 (command_line_up): Likewise.
9014 (read_command_lines): Likewise.
9015 (read_command_lines_1): Likewise.
9016 * breakpoint.h: Include cli/cli-script.h.
9017 * extension-priv.h: Likewise.
9018 * gdbcmd.h: Likewise.
9019
9020 2017-09-04 Pedro Alves <palves@redhat.com>
9021
9022 * ada-lang.c (is_known_support_routine): Move sal declaration to
9023 where it is initialized.
9024 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
9025 (parse_breakpoint_sals, decode_static_tracepoint_spec)
9026 (clear_command, update_static_tracepoint): Remove init_sal
9027 references. Move declarations closer to initializations.
9028 * cli/cli-cmds.c (list_command): Move sal declarations closer to
9029 initializations.
9030 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
9031 references. Move sal declarations closer to initializations.
9032 * frame.c (find_frame_sal): Return a symtab_and_line via function
9033 return instead of output parameter. Remove init_sal references.
9034 * frame.h (find_frame_sal): Return a symtab_and_line via function
9035 return instead of output parameter.
9036 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
9037 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
9038 instead of memset.
9039 (gdbscm_find_pc_line): Remove init_sal reference.
9040 * infcall.c (call_function_by_hand_dummy): Remove init_sal
9041 references. Move declarations closer to initializations.
9042 * infcmd.c (set_step_frame): Update. Move declarations closer to
9043 initializations.
9044 (finish_backward): Remove init_sal references. Move declarations
9045 closer to initializations.
9046 * infrun.c (process_event_stop_test, handle_step_into_function)
9047 (insert_hp_step_resume_breakpoint_at_frame)
9048 (insert_step_resume_breakpoint_at_caller): Likewise.
9049 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
9050 (symbol_to_sal): Likewise.
9051 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
9052 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
9053 to its initialization.
9054 * reverse.c (save_bookmark_command): Use new/delete. Remove
9055 init_sal references. Move declarations closer to initializations.
9056 * source.c (get_current_source_symtab_and_line): Remove brace
9057 initialization.
9058 (set_current_source_symtab_and_line): Now takes the sal by const
9059 reference. Remove brace initialization.
9060 (line_info): Remove init_sal reference.
9061 * source.h (set_current_source_symtab_and_line): Now takes a
9062 symtab_and_line via const reference.
9063 * stack.c (set_current_sal_from_frame): Adjust.
9064 (print_frame_info): Adjust.
9065 (get_last_displayed_sal): Return the sal via function return
9066 instead of via output parameter. Simplify.
9067 (frame_info): Adjust.
9068 * stack.h (get_last_displayed_sal): Return the sal via function
9069 return instead of via output parameter.
9070 * symtab.c (init_sal): Delete.
9071 (find_pc_sect_line): Remove init_sal references. Move
9072 declarations closer to initializations.
9073 (find_function_start_sal): Remove init_sal references. Move
9074 declarations closer to initializations.
9075 * symtab.h (struct symtab_and_line): In-class initialize all
9076 fields.
9077 * tracepoint.c (set_traceframe_context)
9078 (print_one_static_tracepoint_marker): Remove init_sal references.
9079 Move declarations closer to initializations.
9080 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
9081 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
9082 declarations closer to initializations.
9083 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
9084 init_sal references. Adjust.
9085
9086 2017-09-04 Pedro Alves <palves@redhat.com>
9087
9088 * ax-gdb.c (agent_command_1): Use range-for.
9089 * break-catch-throw.c (re_set_exception_catchpoint): Update.
9090 * breakpoint.c: Include "common/array-view.h".
9091 (init_breakpoint_sal, create_breakpoint_sal): Change sals
9092 parameter from struct symtabs_and_lines to
9093 array_view<symtab_and_line>. Adjust. Use range-for. Update.
9094 (breakpoint_sals_to_pc): Change sals parameter from struct
9095 symtabs_and_lines to std::vector reference.
9096 (check_fast_tracepoint_sals): Change sals parameter from struct
9097 symtabs_and_lines to std::array_view. Use range-for.
9098 (decode_static_tracepoint_spec): Return a std::vector instead of
9099 symtabs_and_lines. Update.
9100 (create_breakpoint): Update.
9101 (break_range_command, until_break_command, clear_command): Update.
9102 (base_breakpoint_decode_location, bkpt_decode_location)
9103 (bkpt_probe_create_sals_from_location)
9104 (bkpt_probe_decode_location, tracepoint_decode_location)
9105 (tracepoint_probe_decode_location)
9106 (strace_marker_create_sals_from_location): Return a std::vector
9107 instead of symtabs_and_lines.
9108 (strace_marker_create_breakpoints_sal): Update.
9109 (strace_marker_decode_location): Return a std::vector instead of
9110 symtabs_and_lines. Update.
9111 (update_breakpoint_locations): Change struct symtabs_and_lines
9112 parameters to gdb::array_view. Adjust.
9113 (location_to_sals): Return a std::vector instead of
9114 symtabs_and_lines. Update.
9115 (breakpoint_re_set_default): Use std::vector instead of struct
9116 symtabs_and_lines.
9117 (decode_location_default): Return a std::vector instead of
9118 symtabs_and_lines. Update.
9119 * breakpoint.h: Include "common/array-view.h".
9120 (struct breakpoint_ops) <decode_location>: Now returns a
9121 std::vector instead of returning a symtabs_and_lines via output
9122 parameter.
9123 (update_breakpoint_locations): Change sals parameters to use
9124 gdb::array_view.
9125 * cli/cli-cmds.c (edit_command, list_command): Update to use
9126 std::vector and gdb::array_view.
9127 (ambiguous_line_spec): Adjust to use gdb::array_view and
9128 range-for.
9129 (compare_symtabs): Rename to ...
9130 (cmp_symtabs): ... this. Change parameters to symtab_and_line
9131 const reference and adjust.
9132 (filter_sals): Rewrite using std::vector and standard algorithms.
9133 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
9134 (jump_command): Update to use std::vector.
9135 * linespec.c (struct linespec_state) <canonical_names>: Update
9136 comment.
9137 (add_sal_to_sals_basic): Delete.
9138 (add_sal_to_sals, filter_results, convert_results_to_lsals)
9139 (decode_line_2, create_sals_line_offset)
9140 (convert_address_location_to_sals, convert_linespec_to_sals)
9141 (convert_explicit_location_to_sals, parse_linespec)
9142 (event_location_to_sals, decode_line_full, decode_line_1)
9143 (decode_line_with_current_source)
9144 (decode_line_with_last_displayed, decode_objc)
9145 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
9146 (linespec_result::~linespec_result): Adjust to use std::vector
9147 instead of symtabs_and_lines.
9148 * linespec.h (linespec_sals::sals): Now a std::vector.
9149 (struct linespec_result): Use std::vector, bool, and in-class
9150 initialization.
9151 (decode_line_1, decode_line_with_current_source)
9152 (decode_line_with_last_displayed): Return std::vector.
9153 * macrocmd.c (info_macros_command): Use std::vector.
9154 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
9155 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
9156 std::vector.
9157 * probe.h (parse_probes): Return a std::vector.
9158 * python/python.c (gdbpy_decode_line): Use std::vector and
9159 gdb::array_view.
9160 * source.c (select_source_symtab, line_info): Use std::vector.
9161 * stack.c (func_command): Use std::vector.
9162 * symtab.h (struct symtabs_and_lines): Delete.
9163 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
9164
9165 2017-09-04 Pedro Alves <palves@redhat.com>
9166
9167 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9168 unittests/array-view-selftests.c.
9169 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
9170 * common/array-view.h: New file.
9171 * unittests/array-view-selftests.c: New file.
9172
9173 2017-09-04 Pedro Alves <palves@redhat.com>
9174
9175 * cli/cli-cmds.c (edit_command): Pass message to
9176 ambiguous_line_spec.
9177 (list_command): Pass message to ambiguous_line_spec. Say
9178 "first"/"last" instead of "start" and "end" to be consistent with
9179 the manual.
9180 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
9181 them to print formatted message.
9182
9183 2017-09-04 Pedro Alves <palves@redhat.com>
9184
9185 * btrace.c (ftrace_add_pt): Pass btrace_insn to
9186 ftrace_update_insns by reference instead of pointer.
9187
9188 2017-09-04 Yao Qi <yao.qi@linaro.org>
9189
9190 * i386-go32-tdep.c: Include x86-xstate.h.
9191 (i386_go32_init_abi): Call i386_target_description.
9192 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
9193 if xcr0 is X86_XSTATE_X87_MASK.
9194 * i386-tdep.h (tdesc_i386): Remove the declaration.
9195 (tdesc_i386_mmx): Likewise.
9196
9197 2017-09-04 Yao Qi <yao.qi@linaro.org>
9198
9199 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
9200 X86_XSTATE_SSE_MASK instead of 0.
9201
9202 2017-09-04 Yao Qi <yao.qi@linaro.org>
9203
9204 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
9205 i386_target_description.
9206 * i386-fbsd-nat.c (i386fbsd_read_description): Call
9207 i386_target_description.
9208 * i386-tdep.c (i386_gdbarch_init): Likewise.
9209
9210 2017-09-04 Yao Qi <yao.qi@linaro.org>
9211
9212 * amd64-darwin-tdep.c: Include "x86-xstate.h".
9213 (x86_darwin_init_abi_64): Call amd64_target_description.
9214 * amd64-dicos-tdep.c: Likewise.
9215 * amd64-fbsd-nat.c: Likewise.
9216 * amd64-fbsd-tdep.c: Likewise.
9217 * amd64-nbsd-tdep.c: Likewise.
9218 * amd64-obsd-tdep.c: Likewise.
9219 * amd64-sol2-tdep.c: Likewise.
9220 * amd64-windows-tdep.c: Likewise.
9221 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
9222
9223 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9224
9225 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
9226 (btrace_function) <insn>: Change type to use std::vector.
9227 * btrace.c (ftrace_debug, ftrace_call_num_insn,
9228 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
9229 ftrace_update_insns, ftrace_compute_global_level_offset,
9230 btrace_stitch_bts, btrace_clear, btrace_insn_get,
9231 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
9232 change to std::vector.
9233 (ftrace_update_insns): Adjust to change to std::vector, change
9234 type of INSN parameter.
9235 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
9236 * record-btrace.c (btrace_call_history_insn_range,
9237 btrace_compute_src_line_range,
9238 record_btrace_frame_prev_register): Adjust to change to
9239 std::vector.
9240 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
9241 to change to std::vector.
9242
9243 2017-09-03 Tom Tromey <tom@tromey.com>
9244
9245 * corefile.c (reopen_exec_file): Use std::string.
9246
9247 2017-09-03 Tom Tromey <tom@tromey.com>
9248
9249 * compile/compile.c (compile_register_name_mangled): Return
9250 std::string.
9251 * compile/compile-loc2c.c (pushf_register_address): Update.
9252 (pushf_register): Update.
9253 * compile/compile-c-types.c (convert_array): Update.
9254 * compile/compile-c-symbols.c (generate_vla_size): Update.
9255 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
9256 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
9257 (convert_one_symbol): Update.
9258 (generate_c_for_for_one_variable): Update.
9259 * compile/compile-c-support.c (c_get_range_decl_name): Return a
9260 std::string.
9261 (generate_register_struct): Update.
9262 * compile/compile-internal.h (c_get_range_decl_name): Return a
9263 std::string.
9264 (compile_register_name_mangled): Return std::string.
9265
9266 2017-09-03 Tom Tromey <tom@tromey.com>
9267
9268 * utils.c (perror_string): Return a std::string.
9269 (throw_perror_with_name, perror_warning_with_name): Update.
9270
9271 2017-09-03 Tom Tromey <tom@tromey.com>
9272
9273 * demangle.c (demangle_command): Use std::string,
9274 unique_xmalloc_ptr.
9275
9276 2017-09-03 Tom Tromey <tom@tromey.com>
9277
9278 * cli/cli-setshow.c (do_set_command): Use std::string.
9279
9280 2017-09-03 Tom Tromey <tom@tromey.com>
9281
9282 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
9283
9284 2017-09-03 Tom Tromey <tom@tromey.com>
9285
9286 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
9287
9288 2017-09-03 Tom Tromey <tom@tromey.com>
9289
9290 * mi/mi-cmd-env.c (env_execute_cli_command): Use
9291 gdb::unique_xmalloc_ptr.
9292
9293 2017-09-03 Tom Tromey <tom@tromey.com>
9294
9295 * thread.c (print_thread_info_1): Use string_printf.
9296 (thread_apply_command, thread_apply_all_command): Use
9297 std::string.
9298
9299 2017-09-03 Tom Tromey <tom@tromey.com>
9300
9301 * valprint.c (val_print_string): Update.
9302 * gdbcore.h (memory_error_message): Return std::string.
9303 * corefile.c (memory_error_message): Return std::string.
9304 (memory_error): Update.
9305 * breakpoint.c (insert_bp_location): Update.
9306
9307 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9308
9309 * target/waitstatus.h (target_waitstatus_to_string): Change
9310 return type to std::string.
9311 * target/waitstatus.c (target_waitstatus_to_string): Return
9312 std::string.
9313 * target.h (target_waitstatus_to_string): Remove declaration.
9314 * infrun.c (resume, clear_proceed_status_thread,
9315 print_target_wait_results, do_target_wait, save_waitstatus,
9316 stop_all_threads): Adjust.
9317 * record-btrace.c (record_btrace_wait): Adjust.
9318 * target-debug.h
9319 (target_debug_print_struct_target_waitstatus_p): Adjust.
9320
9321 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9322
9323 PR gdb/22046
9324 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9325 detection.
9326
9327 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9328
9329 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9330 for setting/unsetting environment variables on the remote target.
9331 (New remote packets): Add entries for QEnvironmentHexEncoded,
9332 QEnvironmentUnset and QEnvironmentReset.
9333 * common/environ.c (gdb_environ::operator=): Extend method to
9334 handle m_user_set_env_list and m_user_unset_env_list.
9335 (gdb_environ::clear): Likewise.
9336 (match_var_in_string): Change type of first parameter from 'char
9337 *' to 'const char *'.
9338 (gdb_environ::set): Extend method to handle
9339 m_user_set_env_list and m_user_unset_env_list.
9340 (gdb_environ::unset): Likewise.
9341 (gdb_environ::clear_user_set_env): New method.
9342 (gdb_environ::user_set_envp): Likewise.
9343 (gdb_environ::user_unset_envp): Likewise.
9344 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9345 m_user_unset_env_list on move constructor/assignment.
9346 (unset): Add new default parameter 'update_unset_list = true'.
9347 (clear_user_set_env): New method.
9348 (user_set_envp): Likewise.
9349 (user_unset_envp): Likewise.
9350 (m_user_set_env_list): New std::set.
9351 (m_user_unset_env_list): Likewise.
9352 * common/rsp-low.c (hex2str): New function.
9353 (bin2hex): New overload for bin2hex function.
9354 * common/rsp-low.c (hex2str): New prototype.
9355 (str2hex): New overload prototype.
9356 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9357 QEnvironmentUnset and QEnvironmentReset.
9358 (remote_protocol_features): Add QEnvironmentHexEncoded,
9359 QEnvironmentUnset and QEnvironmentReset packets.
9360 (send_environment_packet): New function.
9361 (extended_remote_environment_support): Likewise.
9362 (extended_remote_create_inferior): Call
9363 extended_remote_environment_support.
9364 (_initialize_remote): Add QEnvironmentHexEncoded,
9365 QEnvironmentUnset and QEnvironmentReset packet configs.
9366 * unittests/environ-selftests.c (gdb_selftest_env_var):
9367 New variable.
9368 (test_vector_initialization): New function.
9369 (test_init_from_host_environ): Likewise.
9370 (test_reinit_from_host_environ): Likewise.
9371 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9372 Likewise.
9373 (test_unset_set_empty_vector): Likewise.
9374 (test_vector_clear): Likewise.
9375 (test_std_move): Likewise.
9376 (test_move_constructor):
9377 (test_self_move): Likewise.
9378 (test_set_unset_reset): Likewise.
9379 (run_tests): Rewrite in terms of the functions above.
9380
9381 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
9382
9383 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9384 (adi_available): Use a temp variable of type CORE_ADDR as argument
9385 3 when calling target_auxv_search.
9386 (adi_normalize_address): Use masks and xor operators to calculate
9387 normalized address.
9388 (adi_read_versions, adi_write_versions, adi_print_versions)
9389 (do_examine, do_assign): Use paddress.
9390
9391 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9392
9393 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9394 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9395 out of loop and add supply of FIR.
9396 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9397 add collect of FIR.
9398
9399 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9400
9401 PR gdb/21827
9402 * cli/cli-script.c (define_command): Don't convert command name
9403 to lower case.
9404
9405 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9406
9407 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9408 Update all callers accordingly. Remove all code blocks handling
9409 the case where DISPP is not NULL.
9410
9411 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9412
9413 PR symtab/22003
9414 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9415 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9416 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9417
9418 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9419
9420 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9421 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9422 (read_comp_units_from_section): New parameter abbrev_section, use
9423 read_and_check_comp_unit_head, allocate signatured_type if needed.
9424 (create_all_comp_units): Update read_comp_units_from_section caller.
9425
9426 2017-08-23 Pedro Alves <palves@redhat.com>
9427
9428 PR remote/21852
9429 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9430 to null_ptid and switch to thread without reading the registers
9431 after adding the inferior.
9432
9433 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9434
9435 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9436 compile-gcc.
9437 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9438 (compile_to_object): Implement compile_gcc.
9439 (_initialize_compile): Install "set compile-gcc". Initialize
9440 compile_gcc.
9441
9442 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9443
9444 * compile/compile.c (compile_to_object): Conditionally call
9445 set_verbose. Conditionally call compile or compile_v0.
9446
9447 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9448
9449 * sparc64-tdep.h: (adi_normalize_address): New export.
9450 * sparc-nat.h: (open_adi_tag_fd): New export.
9451 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9452 * sparc64-linux-tdep.c:
9453 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9454 (sparc64_linux_handle_segmentation_fault): New function.
9455 (sparc64_linux_init_abi): Register
9456 sparc64_linux_handle_segmentation_fault
9457 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9458 (sparc64_addr_bits_remove): New function.
9459 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9460 (MAX_PROC_NAME_SIZE): New macro.
9461 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9462 (sparc64adilist): New variable.
9463 (adi_proc_list): New variable.
9464 (find_adi_info): New function.
9465 (add_adi_info): New function.
9466 (get_adi_info_proc): New function.
9467 (get_adi_info): New function.
9468 (info_adi_command): New function.
9469 (read_maps_entry): New function.
9470 (adi_available): New function.
9471 (adi_normalize_address): New function.
9472 (adi_align_address): New function.
9473 (adi_convert_byte_count): New function.
9474 (adi_tag_fd): New function.
9475 (adi_is_addr_mapped): New function.
9476 (adi_read_versions): New function.
9477 (adi_write_versions): New function.
9478 (adi_print_versions): New function.
9479 (do_examine): New function.
9480 (do_assign): New function.
9481 (adi_examine_command): New function.
9482 (adi_assign_command): New function.
9483 (_initialize_sparc64_adi_tdep): New function.
9484
9485 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9486
9487 * breakpoint.c (breakpoints_info): Rename to ...
9488 (info_breakpoints_command): ... this.
9489 (watchpoints_info): Rename to ...
9490 (info_watchpoints_command): ... this.
9491 (tracepoints_info): Rename to ...
9492 (info_tracepoints_command): ... this.
9493 (_initialize_breakpoint): Adjust.
9494 * dcache.c (dcache_info): Rename to ...
9495 (info_display_command): ... this.
9496 (_initialize_dcache): Adjust.
9497 * frame.h (args_info): Rename to ...
9498 (info_args_command): ... this.
9499 (locals_info): Rename to ...
9500 (info_locals_command): ... this.
9501 * infcmd.c (nofp_registers_info): Rename to ...
9502 (info_registers_command): ... this.
9503 (float_info): Rename to ...
9504 (info_float_command): ... this.
9505 (program_info): Rename to ...
9506 (info_program_command): ... this.
9507 (all_registers_info): Rename to ...
9508 (info_all_registers_command): ... this.
9509 (vector_info): Rename to ...
9510 (info_vector_command): ... this.
9511 (float_info): Rename to ...
9512 (info_float_command): ... this.
9513 (_initialize_infcmd): Adjust.
9514 * inferior.h (term_info): Rename to ...
9515 (info_terminal_command): ... this.
9516 * inflow.c (term_info): Rename to ...
9517 (info_terminal_command): ... this.
9518 (_initialize_inflow): Adjust.
9519 * infrun.c (signals_info): Rename to ...
9520 (info_signals_command): ... this.
9521 (_initialize_infrun): Adjust.
9522 * objc-lang.c (classes_info): Rename to ...
9523 (info_classes_command): ... this.
9524 (selectors_info): Rename to ...
9525 (info_selectors_command): ... this.
9526 (_initialize_objc_language): Adjust.
9527 * printcmd.c (sym_info): Rename to ...
9528 (info_symbol_command): ... this.
9529 (address_info): Rename to ...
9530 (info_address_command): ... this.
9531 (display_info): Rename to ...
9532 (info_display_command): ... this.
9533 (_initialize_printcmd): Adjust.
9534 * reverse.c (bookmarks_info): Rename to ...
9535 (info_breakpoints_command): ... this.
9536 (_initialize_reverse): Adjust.
9537 * ser-go32.c (dos_info): Rename to ...
9538 (info_serial_command): ... this.
9539 (_initialize_ser_dos): Adjust.
9540 * skip.c (skip_info): Rename to ...
9541 (info_skip_command): ... this.
9542 (_initialize_step_skip): Adjust.
9543 * source.c (line_info): Rename to ...
9544 (info_line_command): ... this.
9545 (source_info): Rename to ...
9546 (info_source_command)
9547 * stack.c (frame_info): Rename to ...
9548 (info_frame_command): ... this.
9549 (locals_info): Rename to ...
9550 (info_locals_command): ... this.
9551 (args_info): Rename to ...
9552 (info_args_command): ... this.
9553 (_initialize_stack): Adjust.
9554 * symtab.c (sources_info): Rename to ...
9555 (info_sources_command): ... this.
9556 (variables_info): Rename to ...
9557 (info_variables_command): ... this.
9558 (functions_info): Rename to ...
9559 (info_functions_command): ... this.
9560 (types_info): Rename to ...
9561 (info_types_command): ... this.
9562 (_initialize_symtab): Adjust.
9563 * target.c (target_info): Rename to ...
9564 (info_target_command): ... this.
9565 (initialize_targets): Adjust.
9566 * tracepoint.c (tvariables_info): Rename to ...
9567 (info_tvariables_command): ... this.
9568 (scope_info): Rename to ...
9569 (info_scope_command): ... this.
9570 (trace_dump_actions): Adjust.
9571 (_initialize_tracepoint): Adjust.
9572
9573 2017-08-22 Tom Tromey <tom@tromey.com>
9574
9575 * breakpoint.h (install_breakpoint): Update.
9576 * breakpoint.c (add_solib_catchpoint): Update.
9577 (install_breakpoint): Change argument to a std::unique_ptr.
9578 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9579 (create_breakpoint_sal, create_breakpoint): Update.
9580 (watch_command_1, catch_exec_command_1)
9581 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9582 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9583 Return the breakpoint.
9584 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9585 (new_single_step_breakpoint): Update.
9586 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9587 std::unique_ptr.
9588 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9589 std::unique_ptr.
9590 * break-catch-sig.c (create_signal_catchpoint): Use
9591 std::unique_ptr.
9592 * ada-lang.c (create_ada_exception_catchpoint): Use
9593 std::unique_ptr.
9594
9595 2017-08-22 Tom Tromey <tom@tromey.com>
9596
9597 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9598
9599 2017-08-22 Tom Tromey <tom@tromey.com>
9600
9601 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9602 (lookup_partial_symbol): Update.
9603
9604 2017-08-22 Tom Tromey <tom@tromey.com>
9605
9606 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9607 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9608 (find_and_open_source, symtab_to_fullname): Update.
9609 * psymtab.c (psymtab_to_fullname): Update.
9610
9611 2017-08-22 Tom Tromey <tom@tromey.com>
9612
9613 * exec.c (exec_file_attach): Update.
9614 * linux-thread-db.c (try_thread_db_load): Update.
9615 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9616 * utils.c (gdb_realpath): Change return type.
9617 (gdb_realpath_keepfile): Update.
9618 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9619 (_initialize_utils): Register the new self test.
9620 * source.c (openp): Update.
9621 (find_and_open_source): Update.
9622 * nto-tdep.c (nto_find_and_open_solib): Update.
9623 * main.c (set_gdb_data_directory): Update.
9624 (captured_main_1): Update.
9625 * dwarf2read.c (dwarf2_get_dwz_file): Update
9626 (dw2_map_symbol_filenames): Update.
9627 * auto-load.c (auto_load_safe_path_vec_update): Update.
9628 (filename_is_in_auto_load_safe_path_vec): Change type of
9629 "filename_realp".
9630 (auto_load_objfile_script): Update.
9631 (file_is_auto_load_safe): Update. Use std::string.
9632 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9633
9634 2017-08-22 Tom Tromey <tom@tromey.com>
9635
9636 * utils.c (gdb_realpath_keepfile): Return a
9637 gdb::unique_xmalloc_ptr.
9638 * exec.c (exec_file_attach): Update.
9639 * utils.h (gdb_realpath_keepfile): Return a
9640 gdb::unique_xmalloc_ptr.
9641
9642 2017-08-22 Tom Tromey <tom@tromey.com>
9643
9644 * compile/compile.c (compile_file_command): Use
9645 gdb::unique_xmalloc_ptr, std::string.
9646 * utils.c (gdb_abspath): Change return type.
9647 * source.c (openp): Update.
9648 * objfiles.c (allocate_objfile): Update.
9649 * main.c (set_gdb_data_directory): Update.
9650 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9651
9652 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9653
9654 * cli-cmds.c (list_commands): List actual code around more than
9655 one location.
9656
9657 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9658
9659 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9660
9661 2017-08-21 Pedro Alves <palves@redhat.com>
9662
9663 PR gdb/19487
9664 * c-exp.y (variable production): Handle function aliases.
9665 * minsyms.c (msymbol_is_text): New function.
9666 * minsyms.h (msymbol_is_text): Declare.
9667 * symtab.c (find_function_alias_target): New function.
9668 * symtab.h (find_function_alias_target): Declare.
9669
9670 2017-08-21 Pedro Alves <palves@redhat.com>
9671
9672 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9673 typedefs.
9674 * typeprint.c (whatis_exp): If handling "whatis", and expression
9675 is OP_TYPE, strip one typedef level. Otherwise don't strip
9676 typedefs here.
9677 * valops.c (value_cast): Save "to" type before resolving
9678 stubs/typedefs. Use that type as resulting value's type.
9679
9680 2017-08-18 Tom Tromey <tom@tromey.com>
9681 Pedro Alves <palves@redhat.com>
9682
9683 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9684 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9685 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9686 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9687 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9688 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9689 (linux_get_siginfo_data): Add "thread" argument. Use
9690 scoped_restore.
9691 * linux-nat.c (linux_child_follow_fork)
9692 (check_stopped_by_watchpoint): Use scoped_restore.
9693 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9694 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9695 (restore_inferior_ptid, save_inferior_ptid): Remove.
9696 * btrace.c (btrace_fetch): Use scoped_restore.
9697 * bsd-uthread.c (bsd_uthread_fetch_registers)
9698 (bsd_uthread_store_registers): Use scoped_restore.
9699 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9700 scoped_restore.
9701 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9702 (aix_thread_xfer_partial): Use scoped_restore.
9703 * inferior.h (save_inferior_ptid): Remove.
9704
9705 2017-08-18 Yao Qi <yao.qi@linaro.org>
9706
9707 PR tdep/21818
9708 * arm-tdep.c (gdb_print_insn_arm): Mark
9709 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9710
9711 2017-08-18 Yao Qi <yao.qi@linaro.org>
9712
9713 * NEWS: Mention GDBserver's new option "--selftest".
9714 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9715 * selftest.c: Move it to common/selftest.c.
9716 * selftest.h: Move it to common/selftest.h.
9717 * selftest-arch.c (reset): New function.
9718 (tests_with_arch): Call reset.
9719
9720 2017-08-18 Yao Qi <yao.qi@linaro.org>
9721
9722 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9723 instead of exception_fprintf and printf_filtered.
9724
9725 2017-08-18 Yao Qi <yao.qi@linaro.org>
9726
9727 * selftest.c (register_self_test): Rename it to
9728 selftests::register_test.
9729 (run_self_tests): selftest::run_tests.
9730 * selftest.h: Update declarations.
9731 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9732 selftests::register_test_foreach_arch.
9733 * selftest-arch.h: Update declaration.
9734 * aarch64-tdep.c: Update.
9735 * arm-tdep.c: Likewise.
9736 * disasm-selftests.c: Likewise.
9737 * dwarf2loc.c: Likewise.
9738 * dwarf2-frame.c: Likewise.
9739 * findvar.c: Likewise.
9740 * gdbarch-selftests.c: Likewise.
9741 * maint.c (maintenance_selftest): Likewise.
9742 * regcache.c: Likewise.
9743 * rust-exp.y: Likewise.
9744 * selftest-arch.c: Likewise.
9745 * unittests/environ-selftests.c: Likewise.
9746 * unittests/function-view-selftests.c: Likewise.
9747 * unittests/offset-type-selftests.c: Likewise.
9748 * unittests/optional-selftests.c: Likewise.
9749 * unittests/scoped_restore-selftests.c: Likewise.
9750 * utils-selftests.c: Likewise.
9751
9752 2017-08-17 Pedro Alves <palves@redhat.com>
9753
9754 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9755 local.
9756
9757 2017-08-17 Pedro Alves <palves@redhat.com>
9758
9759 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9760 field.
9761 (reset_die_in_process): Delete, replaced by ...
9762 (process_die_scope): ... this new class. Make it responsible for
9763 freeing cu->line_header too.
9764 (process_die): Use process_die_scope.
9765 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9766 cu->line_header_die_owner. Don't release the line header if it's
9767 owned by the CU.
9768 (setup_type_unit_groups): Make the CU/DIE own the line header.
9769 Don't release the line header here.
9770
9771 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9772
9773 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9774
9775 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9776
9777 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9778 Single-Key mode
9779
9780 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9781
9782 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9783 mode command list.
9784
9785 2017-08-15 Stafford Horne <shorne@gmail.com>
9786
9787 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9788
9789 2017-08-15 Stafford Horne <shorne@gmail.com>
9790
9791 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9792
9793 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9794
9795 PR gdb/21954
9796 * infcmd.c (unset_environment_command): Use the 'clear' method on
9797 the environment instead of resetting it.
9798
9799 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9800
9801 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9802 platforms.
9803
9804 2017-08-14 Tom Tromey <tom@tromey.com>
9805
9806 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9807 (print_binary_chars): Likewise.
9808 (BITS_IN_BYTES): Remove.
9809
9810 2017-08-14 Tom Tromey <tom@tromey.com>
9811
9812 PR gdb/21675
9813 * valprint.c (LOW_ZERO): Change value to 034.
9814 (print_octal_chars): Add static_asserts for octal constants.
9815 * printcmd.c (print_scalar_formatted): Add 'd' case.
9816
9817 2017-08-11 Tom Tromey <tom@tromey.com>
9818
9819 * symfile.c (add_symbol_file_command): Use std::vector.
9820
9821 2017-08-14 Tom Tromey <tom@tromey.com>
9822
9823 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9824 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9825 std::move.
9826 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9827
9828 2017-08-11 Pedro Alves <palves@redhat.com>
9829
9830 * infrun.c (process_event_stop_test): Adjust
9831 function_name_is_marked_for_skip call.
9832 * skip.c: Include <list>.
9833 (skiplist_entry): Make it a class with private fields, and
9834 getters/setters.
9835 (skiplist_entry_chain): Delete.
9836 (skiplist_entries): New.
9837 (skiplist_entry_count): Delete.
9838 (highest_skiplist_entry_num): New.
9839 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9840 (add_skiplist_entry): Delete.
9841 (skiplist_entry::skiplist_entry): New.
9842 (skiplist_entry::add_entry): New.
9843 (skip_file_command, skip_function): Adjust.
9844 (compile_skip_regexp): Delete.
9845 (skip_command): Don't compile regexp here. Adjust to use
9846 skiplist_entry::add_entry.
9847 (skip_info): Adjust to use range-for and getters.
9848 (skip_enable_command, skip_disable_command): Adjust to use
9849 range-for and setters.
9850 (skip_delete_command): Adjust to use std::list.
9851 (add_skiplist_entry): Delete.
9852 (skip_file_p): Delete, refactored as ...
9853 (skiplist_entry::do_skip_file_p): ... this new method.
9854 (skip_gfile_p): Delete, refactored as ...
9855 (skiplist_entry::do_gskip_file_p): ... this new method.
9856 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9857 (skiplist_entry::skip_function_p): ... this new method.
9858 (function_name_is_marked_for_skip): Now returns bool, and takes
9859 the function sal by const reference. Adjust to use range-for and
9860 skiplist_entry methods.
9861 (_initialize_step_skip): Remove references to
9862 skiplist_entry_chain, skiplist_entry_count.
9863 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9864 takes the function sal by const reference.
9865
9866 2017-08-11 Yao Qi <yao.qi@linaro.org>
9867
9868 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9869 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9870 (dwarf2_frame_cache):
9871 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9872 RETURN_MASK_ALL and set *this_case to NULL.
9873 * frame-unwind.h: Update comments.
9874
9875 2017-08-11 Yao Qi <yao.qi@linaro.org>
9876
9877 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9878 (dwarf2_frame_state_copy_regs): Remove.
9879 (dwarf2_frame_state_free_regs): Remove.
9880 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9881 (dwarf2_restore_rule): Call method .alloc_regs instead of
9882 dwarf2_frame_state_alloc_regs.
9883 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9884 constructor. Call std::move.
9885 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9886 (dwarf2_frame_cache): Likewise.
9887
9888 [GDB_SELF_TEST]: Include selftest.h and
9889 selftest-arch.h.
9890 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9891 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9892 execute_cfa_program_test.
9893
9894 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9895 copy ctor, assignment operator, move assignment.
9896 <alloc_regs>: New method.
9897 <swap>: New method.
9898 (struct dwarf2_frame_state): Delete dtor.
9899 (dwarf2_frame_state_alloc_regs): Remove declaration.
9900 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9901 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9902
9903 2017-08-11 Yao Qi <yao.qi@linaro.org>
9904
9905 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9906 (dwarf2_frame_state::dwarf2_frame_state): New.
9907 (dwarf2_frame_state::~dwarf2_frame_state): New.
9908 (dwarf2_fetch_cfa_info): Update.
9909 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9910 rather than a pointer. Update code.
9911 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9912 dtor.
9913 <data_align, code_align, retaddr_column>: Change them to const.
9914 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9915 to bool.
9916
9917 2017-08-11 Yao Qi <yao.qi@linaro.org>
9918
9919 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9920 <loc.exp>: New field.
9921 * dwarf2-frame.c (execute_cfa_program): Update.
9922 (dwarf2_frame_prev_register): Update.
9923
9924 2017-08-10 Pedro Alves <palves@redhat.com>
9925
9926 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9927
9928 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9929
9930 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9931 (fbsd_pending_children): Use std::list.
9932 (fbsd_remember_child): Likewise.
9933 (fbsd_is_child_pending): Likewise.
9934 (fbsd_pending_vfork_done): Use std::forward_list.
9935 (fbsd_add_vfork_done): Likewise.
9936 (fbsd_is_vfork_done_pending): Likewise.
9937 (fbsd_next_vfork_done): Likewise.
9938
9939 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9940
9941 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9942 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9943 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9944 for `mapfilename'.
9945 (fbsd_xfer_partial): Use gdb::byte_vector.
9946 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9947
9948 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9949
9950 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9951 "filestuff.h".
9952 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9953
9954 2017-08-09 Tom Tromey <tom@tromey.com>
9955
9956 * skip.c (skiplist_entry): New constructor.
9957 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9958 (skiplist_entry::file_is_glob): Now bool.
9959 (skiplist_entry::file, skiplist_entry::function): Now
9960 std::string.
9961 (make_skip_entry): Return a unique_ptr. Use new.
9962 (free_skiplist_entry, free_skiplist_entry_cleanup)
9963 (make_free_skiplist_entry_cleanup): Remove.
9964 (skip_command, skip_disable_command, add_skiplist_entry)
9965 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9966 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9967 (function_name_is_marked_for_skip): Update.
9968 (skip_delete_command): Update. Use delete.
9969
9970 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9971
9972 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9973 (aarch64_linux_core_read_description): New function.
9974 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9975
9976 2017-08-09 Pedro Alves <palves@redhat.com>
9977
9978 * cp-name-parser.y (cp_comp_to_string): Return a
9979 gdb::unique_xmalloc_ptr<char>.
9980 * cp-support.c (replace_typedefs_qualified_name)
9981 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9982 (cp_canonicalize_string_full): Use op= instead of explicit
9983 convertion.
9984 (cp_class_name_from_physname, method_name_from_physname)
9985 (cp_func_name, cp_remove_params): Adjust to use
9986 gdb::unique_xmalloc_ptr<char>.
9987 * cp-support.h (cp_comp_to_string): Return a
9988 gdb::unique_xmalloc_ptr<char>.
9989 * python/py-type.c (typy_lookup_type): Adjust to use
9990 gdb::unique_xmalloc_ptr<char>.
9991
9992 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9993
9994 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9995
9996 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9997 Yao Qi <yao.qi@linaro.org>
9998
9999 * cp-support.c (cp_canonicalize_string_full): Use
10000 gdb::unique_xmalloc_ptr<char>.
10001 (cp_canonicalize_string): Likewise.
10002
10003 2017-08-09 Yao Qi <yao.qi@linaro.org>
10004
10005 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
10006 * regformats/i386/amd64-avx-avx512.dat: Remove.
10007 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
10008 * regformats/i386/amd64-avx-mpx.dat:Remove.
10009 * regformats/i386/amd64-avx.dat: Remove.
10010 * regformats/i386/amd64-mpx.dat: Remove.
10011 * regformats/i386/i386-avx-avx512.dat: Remove.
10012 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
10013 * regformats/i386/i386-avx-mpx.dat: Remove.
10014 * regformats/i386/i386-mmx.dat: Remove.
10015 * regformats/i386/i386-mpx.dat: Remove.
10016
10017 2017-08-09 Yao Qi <yao.qi@linaro.org>
10018
10019 * amd64-tdep.h (tdesc_x32): Remove the declaration.
10020 * amd64-tdep.c: Don't include features/i386/x32*.c.
10021 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
10022 functions.
10023 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
10024 and i386/x32-avx-avx512.
10025 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
10026 and i386/x32.xml.
10027 * features/i386/x32-avx-avx512.c: Removed.
10028 * features/i386/x32-avx-avx512.xml: Removed.
10029 * features/i386/x32-avx.c: Removed.
10030 * features/i386/x32-avx.xml: Removed.
10031 * features/i386/x32.c: Removed.
10032 * features/i386/x32.xml: Removed.
10033 * regformats/i386/x32-avx-avx512.dat: Removed.
10034 * regformats/i386/x32-avx.dat: Removed.
10035 * regformats/i386/x32.dat: Removed.
10036
10037 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10038
10039 PR breakpoints/21886
10040 * mem-break.c (default_memory_insert_breakpoint): Use
10041 `->placed_address' rather than `->reqstd_address' for the
10042 breakpoint location.
10043
10044 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10045
10046 * arch-utils.c (default_print_insn): Remove arch/mach/endian
10047 assertions.
10048
10049 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
10050
10051 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
10052 a union of `tdep_info', `tdesc_data' and `id'.
10053 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
10054 rather than `info.tdep_info'.
10055 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
10056 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10057 * i386-tdep.c (i386_gdbarch_init): Likewise.
10058 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
10059 * mips-tdep.c (mips_gdbarch_init): Likewise.
10060 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10061 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10062 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
10063 `info.tdep_info'.
10064 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
10065 `info.tdep_info'.
10066 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10067 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
10068 `info.tdep_info'.
10069 * spu-tdep.c (spu_gdbarch_init): Likewise.
10070 * gdbarch.h: Regenerate.
10071
10072 2017-08-07 Leszek Swirski <leszeks@google.com>
10073
10074 PR symtab/20899
10075 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
10076
10077 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
10078
10079 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
10080 (gdbsim_open): Rename gdb_argv args object to argv.
10081
10082 2017-08-05 Tom Tromey <tom@tromey.com>
10083
10084 * compile/compile-object-load.c (compile_object_load): Use
10085 gdb::unique_xmalloc_ptr.
10086 * cli/cli-dump.c (scan_filename): Rename from
10087 scan_filename_with_cleanup. Change return type.
10088 (scan_expression): Rename from scan_expression_with_cleanup.
10089 Change return type.
10090 (dump_memory_to_file, dump_value_to_file, restore_command):
10091 Use gdb::unique_xmalloc_ptr. Update.
10092 * cli/cli-cmds.c (find_and_open_script): Use
10093 gdb::unique_xmalloc_ptr.
10094 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
10095 * symmisc.c (maintenance_print_symbols)
10096 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
10097 * symfile.c (symfile_bfd_open, generic_load)
10098 (add_symbol_file_command, remove_symbol_file_command): Use
10099 gdb::unique_xmalloc_ptr.
10100 * source.c (openp): Use gdb::unique_xmalloc_ptr.
10101 * psymtab.c (maintenance_print_psymbols): Use
10102 gdb::unique_xmalloc_ptr.
10103 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
10104 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
10105 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
10106 (reload_shared_libraries_1): Likewise.
10107
10108 2017-08-05 Tom Tromey <tom@tromey.com>
10109
10110 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
10111 (rust_op_vector, rust_set_vector): New typedefs.
10112 (current_parser): New global.
10113 (work_obstack): Change to pointer type. Update all users.
10114 (rust_ast, pstate): Remove globals.
10115 (struct rust_parser): New.
10116 (%union) <params, field_inits>: Change type.
10117 (start, tuple_expr, unit_expr, struct_expr_list, literal)
10118 (field_expr, expr_list, maybe_expr_list, type_list): Update.
10119 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
10120 (convert_params_to_types, convert_params_to_expression): Change
10121 type of "params".
10122 (ast_string): Change type of "fields".
10123 (rust_parse): Make a rust_parser. Remove cleanups.
10124 (rust_lex_tests): Make and install an auto_obstack.
10125
10126 2017-08-04 Yao Qi <yao.qi@linaro.org>
10127
10128 * configure.srv (ipa_x32_linux_regobj): New.
10129 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
10130 instead of X86_TDESC_AVX512.
10131 (initialize_low_tracepoint): Call
10132 init_registers_x32_avx_avx512_linux.
10133
10134 2017-08-04 Yao Qi <yao.qi@linaro.org>
10135
10136 * utils.h (gdb_argv): Add namespace std for nullptr_t.
10137
10138 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
10139
10140 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
10141
10142 2017-08-03 Tom Tromey <tom@tromey.com>
10143
10144 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
10145 Remove.
10146 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
10147
10148 2017-08-03 Tom Tromey <tom@tromey.com>
10149
10150 * python/py-param.c (compute_enum_values): Use gdb_argv.
10151
10152 2017-08-03 Tom Tromey <tom@tromey.com>
10153
10154 * utils.h (struct gdb_argv_deleter): New.
10155 (gdb_argv): New class.
10156 * utils.c (gdb_argv::reset): New method.
10157 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
10158 * tracefile.c (tsave_command): Use gdb_argv.
10159 * top.c (new_ui_command): Use gdb_argv.
10160 * symmisc.c (maintenance_print_symbols)
10161 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
10162 * symfile.c (symbol_file_command, generic_load)
10163 (remove_symbol_file_command): Use gdb_argv.
10164 * stack.c (backtrace_command): Use gdb_argv.
10165 * source.c (add_path, show_substitute_path_command)
10166 (unset_substitute_path_command, set_substitute_path_command):
10167 Use gdb_argv.
10168 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
10169 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
10170 * remote.c (extended_remote_run, remote_put_command)
10171 (remote_get_command, remote_delete_command): Use gdb_argv.
10172 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
10173 (gdbsim_open): Use gdb_argv.
10174 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
10175 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
10176 * procfs.c (procfs_info_proc): Use gdb_argv.
10177 * interps.c (interpreter_exec_cmd): Use gdb_argv.
10178 * infrun.c (handle_command): Use gdb_argv.
10179 * inferior.c (add_inferior_command, clone_inferior_command):
10180 Use gdb_argv.
10181 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
10182 * exec.c (exec_file_command): Use gdb_argv.
10183 * cli/cli-cmds.c (alias_command): Use gdb_argv.
10184 * compile/compile.c (build_argc_argv): Use gdb_argv.
10185
10186 2017-08-03 Tom Tromey <tom@tromey.com>
10187
10188 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
10189
10190 2017-08-03 Tom Tromey <tom@tromey.com>
10191
10192 * python/python.c (compute_python_string): Return std::string.
10193 (gdbpy_eval_from_control_command): Update.
10194 (do_start_initialization): Use std::string.
10195 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
10196 xstrprintf.
10197 * python/py-breakpoint.c (local_setattro): Use string_printf, not
10198 xstrprintf.
10199
10200 2017-08-03 Tom Tromey <tom@tromey.com>
10201
10202 * top.h (do_restore_instream_cleanup): Remove.
10203 * top.c (do_restore_instream_cleanup): Remove.
10204 (read_command_file): Use scoped_restore.
10205 * cli/cli-script.c (execute_user_command): Use scoped_restore.
10206
10207 2017-08-03 Tom Tromey <tom@tromey.com>
10208
10209 * cli/cli-script.c (execute_user_command)
10210 (execute_control_command): Use scoped_restore.
10211
10212 2017-08-03 Tom Tromey <tom@tromey.com>
10213
10214 * cli/cli-script.c (do_restore_user_call_depth): Remove.
10215 (execute_user_command): Remove user_call_depth; use
10216 user_args_stack's size instead.
10217
10218 2017-08-03 Tom Tromey <tom@tromey.com>
10219
10220 * top.h (in_user_command): Remove.
10221 * top.c (in_user_command): Remove.
10222 * cli/cli-script.c (do_restore_user_call_depth)
10223 (execute_user_command): Update.
10224
10225 2017-08-03 Tom Tromey <tom@tromey.com>
10226
10227 * valops.c (search_struct_method): Use gdb::byte_vector.
10228 * valarith.c (value_concat): Use std::vector.
10229 * target.c (memory_xfer_partial): Use gdb::byte_vector.
10230 (simple_search_memory): Likewise.
10231 * printcmd.c (find_string_backward): Use gdb::byte_vector.
10232 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
10233 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
10234 * elfread.c (elf_rel_plt_read): Use std::string.
10235 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
10236 * cli/cli-dump.c (restore_section_callback): Use
10237 gdb::byte_vector.
10238
10239 2017-08-03 Tom Tromey <tom@tromey.com>
10240
10241 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
10242
10243 2017-08-03 Tom Tromey <tom@tromey.com>
10244
10245 * tui/tui-regs.c (tui_restore_gdbout): Remove.
10246 (tui_register_format): Use scoped_restore.
10247
10248 2017-08-03 Tom Tromey <tom@tromey.com>
10249
10250 * reverse.c (exec_direction_default): Remove.
10251 (exec_reverse_once): Use scoped_restore.
10252 * remote.c (restore_remote_timeout): Remove.
10253 (remote_flash_erase, remote_flash_write, remote_flash_done)
10254 (readchar, remote_serial_write): Use scoped_restore.
10255 * cli/cli-script.c (struct source_cleanup_lines_args)
10256 (source_cleanup_lines): Remove.
10257 (script_from_file): Use scoped_restore.
10258 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
10259 (source_command): Use scoped_restore.
10260
10261 2017-08-03 Tom Tromey <tom@tromey.com>
10262
10263 * utils.h (make_cleanup_free_so): Remove.
10264 * utils.c (do_free_so, make_cleanup_free_so): Remove.
10265 * solist.h (struct so_deleter): New.
10266 (so_list_up): New typedef.
10267 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
10268
10269 2017-08-03 Tom Tromey <tom@tromey.com>
10270
10271 * utils.h (make_cleanup_restore_current_language): Remove.
10272 * utils.c (do_restore_current_language)
10273 (make_cleanup_restore_current_language): Remove.
10274 * parse.c (parse_exp_in_context_1)
10275 (parse_expression_with_language): Use
10276 scoped_restore_current_language.
10277 * mi/mi-main.c (mi_cmd_execute): Use
10278 scoped_restore_current_language.
10279 * language.h (scoped_restore_current_language): New class.
10280
10281 2017-08-03 Tom Tromey <tom@tromey.com>
10282
10283 * compile/compile.c (cleanup_unlink_file): Remove.
10284 (compile_to_object): Use gdb::unlinker.
10285 (eval_compile_command): Likewise.
10286
10287 2017-08-03 Tom Tromey <tom@tromey.com>
10288
10289 * utils.h (make_cleanup_fclose): Remove.
10290 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
10291
10292 2017-08-03 Tom Tromey <tom@tromey.com>
10293
10294 * top.c (open_terminal_stream): Return gdb_file_up.
10295 (new_ui_command): Update.
10296
10297 2017-08-03 Tom Tromey <tom@tromey.com>
10298
10299 * source.c (print_source_lines_base, forward_search_command)
10300 (reverse_search_command): Use gdb_file_up.
10301
10302 2017-08-03 Tom Tromey <tom@tromey.com>
10303
10304 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10305
10306 2017-08-03 Tom Tromey <tom@tromey.com>
10307
10308 * cli/cli-cmds.c (find_and_open_script): Change return type.
10309 Remove "streamp" and "full_path" parameters.
10310 (source_script_with_search): Update.
10311 * auto-load.c (source_script_file): Update.
10312 * cli/cli-cmds.h (find_and_open_script): Change type.
10313 (open_script): New struct.
10314
10315 2017-08-03 Tom Tromey <tom@tromey.com>
10316
10317 * xml-support.c (xml_fetch_content_from_file): Update.
10318 * ui-file.c (stdio_file::open): Update.
10319 * tracefile-tfile.c (tfile_start): Update.
10320 * remote.c (remote_file_put, remote_file_get): Update.
10321 * nat/linux-procfs.c (linux_proc_get_int)
10322 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10323 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10324 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10325 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10326 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10327 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10328 * linux-nat.c (linux_proc_pending_signals): Update.
10329 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10330 (file_closer): Remove.
10331 * compile/compile.c (compile_to_object): Update.
10332 * common/filestuff.h (struct gdb_file_deleter): New.
10333 (gdb_file_up): New typedef.
10334 (gdb_fopen_cloexec): Change return type.
10335 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10336 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10337 (dump_binary_file, restore_binary_file): Update.
10338 * auto-load.c (auto_load_objfile_script_1): Update.
10339
10340 2017-08-03 Tom Tromey <tom@tromey.com>
10341
10342 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10343 (info_static_tracepoint_markers_command): Likewise.
10344 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10345 * skip.c (skip_info): Use ui_out_emit_table.
10346 * progspace.c (print_program_space): Use ui_out_emit_table.
10347 * osdata.c (info_osdata): Use ui_out_emit_table.
10348 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10349 ui_out_emit_table.
10350 * linux-thread-db.c (info_auto_load_libthread_db): Use
10351 ui_out_emit_table.
10352 * inferior.c (print_inferior): Use ui_out_emit_table.
10353 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10354 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10355 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10356 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10357 * ui-out.h (class ui_out_emit_table): New.
10358
10359 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10360
10361 * mips-tdep.c (mips_fpu_type_str): New function.
10362 (mips_dump_tdep): Call it.
10363
10364 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10365
10366 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10367 `->mips_fpu_type'.
10368
10369 2017-07-31 Xavier Roirand <roirand@adacore.com>
10370
10371 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10372
10373 2017-07-27 Xavier Roirand <roirand@adacore.com>
10374
10375 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10376
10377 2017-07-26 Yao Qi <yao.qi@linaro.org>
10378
10379 * cli/cli-cmds.c (maintenancechecklist): New variable.
10380 * gdbcmd.h (maintenancechecklist): Declare it.
10381 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10382 Call i386_linux_read_description with different masks.
10383 * maint.c (maintenance_check_command): New function.
10384 (_initialize_maint_cmds): Call add_prefix_cmd.
10385 * target-descriptions.c (tdesc_reg): override operator != and ==.
10386 (tdesc_type): Likewise.
10387 (tdesc_feature): Likewise.
10388 (target_desc): Likewise.
10389 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10390 (maintenance_check_xml_descriptions): New function.
10391 (_initialize_target_descriptions) Add command "xml-descriptions".
10392 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10393
10394 2017-07-26 Yao Qi <yao.qi@linaro.org>
10395
10396 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10397 Include features/i386/32bit-*.c.
10398 (i386_linux_read_description): Generate target description if it
10399 doesn't exist.
10400 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10401 functions.
10402 * features/i386/32bit-linux.c: Re-generated.
10403 * features/i386/32bit-sse.c: Likewise.
10404 * target-descriptions.c (print_c_feature::visit): Print code to
10405 set register number if needed.
10406 (print_c_feature) <m_next_regnum>: New field.
10407
10408 2017-07-26 Yao Qi <yao.qi@linaro.org>
10409
10410 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10411 (FEATURE_XMLFILES): New.
10412 (FEATURE_CFILES): New.
10413 New rules.
10414 (clean-cfiles): Remove generated c files.
10415 * features/i386/32bit-avx.c: Generated.
10416 * features/i386/32bit-avx512.c: Generated.
10417 * features/i386/32bit-core.c: Generated.
10418 * features/i386/32bit-linux.c: Generated.
10419 * features/i386/32bit-mpx.c: Generated.
10420 * features/i386/32bit-pkeys.c: Generated.
10421 * features/i386/32bit-sse.c: Generated.
10422 * target-descriptions.c: Include algorithm.
10423 (tdesc_element_visitor): Add method visit_end.
10424 (print_c_tdesc): Implement visit_end.
10425 (print_c_tdesc:: m_filename_after_features): Move it to
10426 protected.
10427 (print_c_feature): New class.
10428 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10429 name starts with "i386/32bit-".
10430
10431 2017-07-26 Yao Qi <yao.qi@linaro.org>
10432
10433 * target-descriptions.c (tdesc_element_visitor): New class.
10434 (tdesc_element): New class.
10435 (tdesc_reg): Inherit from tdesc_element.
10436 (tdesc_reg::accept): New function.
10437 (tdesc_type): Inherit from tdesc_element.
10438 (tdesc_type::accept): New function.
10439 (tdesc_feature): Inherit from tdesc_element.
10440 (tdesc_feature::accept): New function.
10441 (target_desc): Inherit from tdesc_element.
10442 (target_desc::target_desc): New.
10443 (target_desc::~target_desc): New.
10444 (target_desc::accept): New.
10445 (allocate_target_description): Use new.
10446 (free_target_description): Use delete.
10447 (print_c_tdesc): New class.
10448 (maint_print_c_tdesc_cmd): Adjust.
10449
10450 * features/aarch64.c: Re-generated.
10451 * features/arc-arcompact.c: Re-generated.
10452 * features/arc-v2.c: Re-generated.
10453 * features/arm/arm-with-iwmmxt.c: Re-generated.
10454 * features/arm/arm-with-m.c: Re-generated.
10455 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10456 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10457 * features/arm/arm-with-neon.c: Re-generated.
10458 * features/arm/arm-with-vfpv2.c: Re-generated.
10459 * features/arm/arm-with-vfpv3.c: Re-generated.
10460 * features/i386/amd64-avx-avx512.c: Re-generated.
10461 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10462 * features/i386/amd64-avx.c: Re-generated.
10463 * features/i386/amd64-avx-linux.c: Re-generated.
10464 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10465 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10466 * features/i386/amd64-avx-mpx.c: Re-generated.
10467 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10468 * features/i386/amd64.c: Re-generated.
10469 * features/i386/amd64-linux.c: Re-generated.
10470 * features/i386/amd64-mpx.c: Re-generated.
10471 * features/i386/amd64-mpx-linux.c: Re-generated.
10472 * features/i386/i386-avx-avx512.c: Re-generated.
10473 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10474 * features/i386/i386-avx.c: Re-generated.
10475 * features/i386/i386-avx-linux.c: Re-generated.
10476 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10477 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10478 * features/i386/i386-avx-mpx.c: Re-generated.
10479 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10480 * features/i386/i386.c: Re-generated.
10481 * features/i386/i386-linux.c: Re-generated.
10482 * features/i386/i386-mmx.c: Re-generated.
10483 * features/i386/i386-mmx-linux.c: Re-generated.
10484 * features/i386/i386-mpx.c: Re-generated.
10485 * features/i386/i386-mpx-linux.c: Re-generated.
10486 * features/i386/x32-avx-avx512.c: Re-generated.
10487 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10488 * features/i386/x32-avx.c: Re-generated.
10489 * features/i386/x32-avx-linux.c: Re-generated.
10490 * features/i386/x32.c: Re-generated.
10491 * features/i386/x32-linux.c: Re-generated.
10492 * features/microblaze.c: Re-generated.
10493 * features/microblaze-with-stack-protect.c: Re-generated.
10494 * features/mips64-dsp-linux.c: Re-generated.
10495 * features/mips64-linux.c: Re-generated.
10496 * features/mips-dsp-linux.c: Re-generated.
10497 * features/mips-linux.c: Re-generated.
10498 * features/nds32.c: Re-generated.
10499 * features/nios2.c: Re-generated.
10500 * features/nios2-linux.c: Re-generated.
10501 * features/rs6000/powerpc-32.c: Re-generated.
10502 * features/rs6000/powerpc-32l.c: Re-generated.
10503 * features/rs6000/powerpc-403.c: Re-generated.
10504 * features/rs6000/powerpc-403gc.c : Re-generated.
10505 * features/rs6000/powerpc-405.c: Re-generated.
10506 * features/rs6000/powerpc-505.c: Re-generated.
10507 * features/rs6000/powerpc-601.c: Re-generated.
10508 * features/rs6000/powerpc-602.c: Re-generated.
10509 * features/rs6000/powerpc-603.c: Re-generated.
10510 * features/rs6000/powerpc-604.c: Re-generated.
10511 * features/rs6000/powerpc-64.c: Re-generated.
10512 * features/rs6000/powerpc-64l.c: Re-generated.
10513 * features/rs6000/powerpc-7400.c: Re-generated.
10514 * features/rs6000/powerpc-750.c: Re-generated.
10515 * features/rs6000/powerpc-860.c: Re-generated.
10516 * features/rs6000/powerpc-altivec32.c: Re-generated.
10517 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10518 * features/rs6000/powerpc-altivec64.c: Re-generated.
10519 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10520 * features/rs6000/powerpc-cell32l.c: Re-generated.
10521 * features/rs6000/powerpc-cell64l.c: Re-generated.
10522 * features/rs6000/powerpc-e500.c: Re-generated.
10523 * features/rs6000/powerpc-e500l.c: Re-generated.
10524 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10525 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10526 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10527 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10528 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10529 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10530 * features/rs6000/powerpc-vsx32.c: Re-generated.
10531 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10532 * features/rs6000/powerpc-vsx64.c: Re-generated.
10533 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10534 * features/rs6000/rs6000.c: Re-generated.
10535 * features/s390-linux32.c: Re-generated.
10536 * features/s390-linux32v1.c: Re-generated.
10537 * features/s390-linux32v2.c: Re-generated.
10538 * features/s390-linux64.c: Re-generated.
10539 * features/s390-linux64v1.c: Re-generated.
10540 * features/s390-linux64v2.c: Re-generated.
10541 * features/s390-te-linux64.c: Re-generated.
10542 * features/s390-tevx-linux64.c: Re-generated.
10543 * features/s390-vx-linux64.c: Re-generated.
10544 * features/s390x-linux64.c: Re-generated.
10545 * features/s390x-linux64v1.c: Re-generated.
10546 * features/s390x-linux64v2.c: Re-generated.
10547 * features/s390x-te-linux64.c: Re-generated.
10548 * features/s390x-tevx-linux64.c: Re-generated.
10549 * features/s390x-vx-linux64.c: Re-generated.
10550 * features/sparc/sparc32-solaris.c: Re-generated.
10551 * features/sparc/sparc64-solaris.c: Re-generated.
10552 * features/tic6x-c62x.c: Re-generated.
10553 * features/tic6x-c62x-linux.c: Re-generated.
10554 * features/tic6x-c64x.c: Re-generated.
10555 * features/tic6x-c64x-linux.c: Re-generated.
10556 * features/tic6x-c64xp.c: Re-generated.
10557 * features/tic6x-c64xp-linux.c: Re-generated.
10558
10559 2017-07-26 Yao Qi <yao.qi@linaro.org>
10560
10561 * i386-linux-tdep.c (i386_linux_read_description): New function.
10562 (i386_linux_core_read_description): Call
10563 i386_linux_read_description.
10564 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10565 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10566 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10567 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10568 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10569 * x86-linux-nat.c (x86_linux_read_description): Call
10570 i386_linux_read_description.
10571
10572 2017-07-26 Yao Qi <yao.qi@linaro.org>
10573
10574 * NEWS: Mention it.
10575 * features/Makefile (%.c: %.xml): Pass the xml file name to
10576 command "maint print c-tdesc".
10577 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10578 name from 'arg'.
10579
10580 2017-07-26 Yao Qi <yao.qi@linaro.org>
10581
10582 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10583 in-class initialization.
10584 (tdesc_create_feature): Call new instead of XCNEW.
10585 (free_target_description): Ue delete.
10586
10587 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10588
10589 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10590
10591 2017-07-25 Yao Qi <yao.qi@linaro.org>
10592
10593 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10594 constant.
10595 (amd64_x32_init_abi): Likewise.
10596 * amd64-tdep.h (amd64_init_abi): Update declaration.
10597 (amd64_x32_init_abi): Likewise.
10598
10599 2017-07-25 Yao Qi <yao.qi@linaro.org>
10600
10601 PR tdep/21717
10602 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10603 condition for FPSCR.
10604 (arm_linux_store_inferior_registers): Likewise.
10605
10606 2017-07-22 Tom Tromey <tom@tromey.com>
10607
10608 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10609 <syscalls_counts>: Now a std::vector.
10610 (get_catch_syscall_inferior_data): Use "new".
10611 (catch_syscall_inferior_data_cleanup): Use "delete".
10612 (insert_catch_syscall, remove_catch_syscall)
10613 (clear_syscall_counts): Update.
10614
10615 2017-07-22 Tom Tromey <tom@tromey.com>
10616
10617 * break-catch-syscall.c (syscall_catchpoint)
10618 <syscalls_to_be_caught>: Now a std::vector<int>
10619 (~syscall_catchpoint): Remove.
10620 (insert_catch_syscall, remove_catch_syscall)
10621 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10622 (print_mention_catch_syscall, print_recreate_catch_syscall):
10623 Update.
10624 (create_syscall_event_catchpoint): Change type of "filter"
10625 parameter.
10626 (catch_syscall_split_args): Return a std::vector.
10627 (catch_syscall_command_1, catching_syscall_number_1): Update.
10628
10629 2017-07-22 Tom Tromey <tom@tromey.com>
10630
10631 * break-catch-throw.c (struct exception_catchpoint)
10632 <exception_rx>: Now a std::string.
10633 (~exception_catchpoint): Remove.
10634 (print_one_detail_exception_catchpoint): Update.
10635 (handle_gnu_v3_exceptions): Change type of except_rx.
10636 (extract_exception_regexp): Return a std::string.
10637 (catch_exception_command_1): Update.
10638
10639 2017-07-22 Tom Tromey <tom@tromey.com>
10640
10641 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10642 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10643 std::vector.
10644 <catch_all>: Now a bool.
10645 (~signal_catchpoint): Remove.
10646 (signal_catchpoint_insert_location)
10647 (signal_catchpoint_remove_location)
10648 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10649 (signal_catchpoint_print_mention)
10650 (signal_catchpoint_print_recreate)
10651 (signal_catchpoint_explains_signal): Update.
10652 (create_signal_catchpoint): Change type of "filter" and
10653 "catch_all".
10654 (catch_signal_split_args): Return a std::vector. Change type of
10655 "catch_all".
10656 (catch_signal_command): Update.
10657
10658 2017-07-20 Pedro Alves <palves@redhat.com>
10659
10660 * ada-lang.c (ada_language_defn): Make extern.
10661 (_initialize_ada_language): Remove add_language call.
10662 * c-lang.c (c_language_defn, cplus_language_defn)
10663 (asm_language_defn, minimal_language_defn): Make extern.
10664 (_initialize_c_language): Delete.
10665 * completer.c (compare_cstrings): Delete, moved to utils.h.
10666 * d-lang.c (d_language_defn): Make extern.
10667 (_initialize_d_language): Remove add_language calls.
10668 * defs.h (enum language): Add comment.
10669 * f-lang.c (f_language_defn): Make extern.
10670 (_initialize_f_language): Remove add_language call.
10671 * go-lang.c (go_language_defn): Make extern.
10672 (_initialize_go_language): Remove add_language call.
10673 * language.c: Include <algorithm>.
10674 (languages): Redefine as const array.
10675 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10676 (set_language_command): Handle "local". Use for-range loop.
10677 (set_language): Remove loop.
10678 (language_enum): Rewrite.
10679 (language_def, language_str): Remove loops.
10680 (add_language): Delete.
10681 (add_set_language_command): New, based on add_languages.
10682 (skip_language_trampoline): Adjust.
10683 (local_language_defn): Delete.
10684 (language_gdbarch_post_init): Adjust.
10685 (_initialize_language): Remove add_language calls. Call
10686 add_set_language_command.
10687 * language.h (add_language): Delete.
10688 (auto_language_defn)
10689 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10690 (asm_language_defn, c_language_defn, cplus_language_defn)
10691 (d_language_defn, f_language_defn, go_language_defn)
10692 (m2_language_defn, objc_language_defn, opencl_language_defn)
10693 (pascal_language_defn, rust_language_defn): Declare.
10694 * m2-lang.c (m2_language_defn): Make extern.
10695 (_initialize_m2_language): Remove add_language call.
10696 * objc-lang.c (objc_language_defn): Make extern.
10697 (_initialize_objc_language): Remove add_language call.
10698 * opencl-lang.c (opencl_language_defn): Make extern.
10699 (_initialize_opencl_language): Remove add_language call.
10700 * p-lang.c (pascal_language_defn): Make extern.
10701 (_initialize_pascal_language): Delete.
10702 * rust-lang.c (rust_language_defn): Make extern.
10703 (_initialize_rust_language): Delete.
10704 * utils.h (compare_cstrings): New static inline function.
10705
10706 2017-07-20 Pedro Alves <palves@redhat.com>
10707
10708 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10709 (get_var_value): Constify parameters.
10710 (get_int_var_value): Change prototype.
10711 (to_fixed_range_type): Adjust.
10712 * ada-lang.h (get_int_var_value): Change prototype.
10713
10714 2017-07-20 Pedro Alves <palves@redhat.com>
10715
10716 * dwarf2read.c (dw2_lookup_symbol): Use
10717 SYMBOL_MATCHES_SEARCH_NAME.
10718 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10719
10720 2017-07-20 Pedro Alves <palves@redhat.com>
10721
10722 * block.c (block_iter_name_step, block_iter_name_first)
10723 (block_iter_name_next): Delete.
10724 (block_lookup_symbol_primary): Adjust to use
10725 dict_iter_match_first/dict_iter_match_next.
10726 * block.h (block_iter_name_first, block_iter_name_next): Delete
10727 declarations.
10728 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10729 dict_iter_match_first/dict_iter_match_next.
10730
10731 2017-07-20 Pedro Alves <palves@redhat.com>
10732
10733 * cp-support.c (cp_find_first_component_aux): Add missing case for
10734 end of string.
10735
10736 2017-07-18 David Blaikie <dblaikie@gmail.com>
10737
10738 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10739 of dwo_cu's dwo_file.
10740
10741 2017-07-18 Yao Qi <yao.qi@linaro.org>
10742
10743 * remote.c (store_registers_using_G): Remove one line comment.
10744
10745 2017-07-18 Yao Qi <yao.qi@linaro.org>
10746
10747 * regcache.c (regcache_cpy): Simplify it.
10748 (regcache::cpy_no_passthrough): Remove it.
10749 * regcache.h (cpy_no_passthrough): Remove it.
10750 (regcache_dup, regcache_cpy): Update comments.
10751
10752 2017-07-18 Pedro Alves <palves@redhat.com>
10753
10754 * remote-sim.c (sim_command_completer): Adjust to work with a
10755 completion_tracker instead of a VEC.
10756
10757 2017-07-17 Pedro Alves <palves@redhat.com>
10758
10759 * completer.c (complete_source_filenames): New function.
10760 (complete_address_and_linespec_locations): New function.
10761 (location_completer): Use complete_address_and_linespec_locations.
10762 (completion_tracker::build_completion_result): Honor the tracker's
10763 request to suppress append.
10764 * completer.h (completion_tracker::suppress_append_ws)
10765 (completion_tracker::set_suppress_append_ws): New methods.
10766 (completion_tracker::m_suppress_append_ws): New field.
10767 (complete_source_filenames): New declaration.
10768 * linespec.c (linespec_complete_what): New.
10769 (struct ls_parser) <complete_what, completion_word,
10770 completion_quote_char, completion_quote_end, completion_tracker>:
10771 New fields.
10772 (string_find_incomplete_keyword_at_end): New.
10773 (linespec_lexer_lex_string): Record quote char. If in completion
10774 mode, don't throw.
10775 (linespec_lexer_consume_token): Advance the completion word point.
10776 (linespec_lexer_peek_token): Save/restore completion info.
10777 (save_stream_and_consume_token): New.
10778 (set_completion_after_number): New.
10779 (linespec_parse_basic): Set what to complete next depending on
10780 token. Handle function and label completions specially.
10781 (parse_linespec): Disable objc shortcut in completion mode. Set
10782 what to complete next depending on token type. Skip keyword if in
10783 completion mode.
10784 (complete_linespec_component, linespec_complete): New.
10785 * linespec.h (linespec_complete): Declare.
10786
10787 2017-07-17 Pedro Alves <palves@redhat.com>
10788
10789 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10790 Handle 'operator<' / 'operator<<'.
10791
10792 2017-07-17 Pedro Alves <palves@redhat.com>
10793
10794 * completer.c (collect_explicit_location_matches): Handle
10795 MATCH_LABEL.
10796 (convert_explicit_location_to_linespec): New, factored out from
10797 ...
10798 (convert_explicit_location_to_sals): ... this.
10799 (complete_label): New.
10800 (linespec_complete_label, find_label_symbols_in_block): New.
10801 (find_label_symbols): Add completion_mode parameter and adjust to
10802 call find_label_symbols_in_block.
10803 * linespec.h (linespec_complete_label): Declare.
10804
10805 2017-07-17 Pedro Alves <palves@redhat.com>
10806
10807 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10808 complete_symbol_mode parameter.
10809 * cli/cli-cmds.c (complete_command): Get the completion result out
10810 of the handle_brkchars tracker if used a custom word point.
10811 * completer.c: Include "linespec.h".
10812 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10813 (advance_to_expression_complete_word_point): New.
10814 (completion_tracker::completes_to_completion_word): New.
10815 (complete_files_symbols): Pass down
10816 complete_symbol_mode::EXPRESSION.
10817 (explicit_options, probe_options): New.
10818 (collect_explicit_location_matches): Complete on the
10819 explictit_loc->foo instead of word. Use
10820 linespec_complete_function. Handle MATCH_LINE. Handle offering
10821 keyword and options completions.
10822 (backup_text_ptr): Delete.
10823 (skip_keyword): New.
10824 (complete_explicit_location): Remove 'word' parameter. Add
10825 language, quoted_arg_start and quoted_arg_end parameters.
10826 Rewrite, parsing left to right.
10827 (location_completer): Rewrite.
10828 (location_completer_handle_brkchars): New function.
10829 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10830 (enum complete_line_internal_reason): Adjust comments.
10831 (completion_tracker::discard_completions): New.
10832 (completer_handle_brkchars_func_for_completer): Handle
10833 location_completer.
10834 (gdb_custom_word_point_brkchars)
10835 (gdb_org_rl_basic_quote_characters): New.
10836 (gdb_completion_word_break_characters_throw)
10837 (completion_find_completion_word): Handle trackers that use a
10838 custom word point.
10839 (completion_tracker::advance_custom_word_point_by): New.
10840 (completion_tracker::build_completion_result): Don't rely on
10841 readline appending the quote char.
10842 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10843 use a custom word point.
10844 (gdb_rl_attempted_completion_function): Restore
10845 rl_basic_quote_characters.
10846 * completer.h (class completion_tracker): Extend intro comment.
10847 (completion_tracker::set_quote_char)
10848 (completion_tracker::quote_char)
10849 (completion_tracker::set_use_custom_word_point)
10850 (completion_tracker::use_custom_word_point)
10851 (completion_tracker::custom_word_point)
10852 (completion_tracker::set_custom_word_point)
10853 (completion_tracker::advance_custom_word_point_by)
10854 (completion_tracker::completes_to_completion_word)
10855 (completion_tracker::discard_completions): New methods.
10856 (completion_tracker::m_quote_char)
10857 (completion_tracker::m_use_custom_word_point)
10858 (completion_tracker::m_custom_word_point): New fields.
10859 (advance_to_expression_complete_word_point): Declare.
10860 * f-lang.c (f_collect_symbol_completion_matches): Add
10861 complete_symbol_mode parameter.
10862 * language.h (struct language_defn)
10863 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10864 parameter.
10865 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10866 (linespec_complete_function): New function.
10867 (linespec_lexer_lex_keyword): Adjust.
10868 * linespec.h (linespec_keywords, linespec_complete_function): New
10869 declarations.
10870 * location.c (find_end_quote): New function.
10871 (explicit_location_lex_one): Add explicit_completion_info
10872 parameter. Save quoting info. Don't throw if being called for
10873 completion. Don't handle Ada operators here.
10874 (is_cp_operator, skip_op_false_positives, first_of)
10875 (explicit_location_lex_one_function): New function.
10876 (string_to_explicit_location): Replace 'dont_throw' parameter with
10877 an explicit_completion_info pointer parameter. Handle it. Don't
10878 use explicit_location_lex_one to lex function names. Use
10879 explicit_location_lex_one_function instead.
10880 * location.h (struct explicit_completion_info): New.
10881 (string_to_explicit_location): Replace 'dont_throw' parameter with
10882 an explicit_completion_info pointer parameter.
10883 * symtab.c (default_collect_symbol_completion_matches_break_on):
10884 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10885 (default_collect_symbol_completion_matches)
10886 (collect_symbol_completion_matches): Add complete_symbol_mode
10887 parameter.
10888 (collect_symbol_completion_matches_type): Pass down
10889 complete_symbol_mode::EXPRESSION.
10890 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10891 parameter. Handle LINESPEC mode.
10892 * symtab.h (complete_symbol_mode): New.
10893 (default_collect_symbol_completion_matches_break_on)
10894 (default_collect_symbol_completion_matches)
10895 (collect_symbol_completion_matches)
10896 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10897 parameter.
10898
10899 2017-07-17 Pedro Alves <palves@redhat.com>
10900
10901 * utils.c (enum class strncmp_iw_mode): New.
10902 (strcmp_iw): Rename to ...
10903 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10904 parameters. Handle them.
10905 (strncmp_iw): New.
10906 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10907 * utils.h (strncmp_iw): Declare.
10908 (strcmp_iw): Move describing comments here.
10909
10910 2017-07-17 Pedro Alves <palves@redhat.com>
10911
10912 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10913 CP_OPERATOR_STR.
10914 * c-typeprint.c (is_type_conversion_operator): Use
10915 CP_OPERATOR_STR.
10916 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10917 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10918 CP_OPERATOR_LEN.
10919 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10920 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10921 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10922 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10923 CP_OPERATOR_STR.
10924 * location.c: Include "cp-support.h".
10925 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10926 CP_OPERATOR_STR.
10927 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10928 CP_OPERATOR_LEN.
10929
10930 2017-07-17 Pedro Alves <palves@redhat.com>
10931
10932 * cli/cli-cmds.c (complete_command): Use a completion tracker
10933 along with completion_find_completion_word for handle_brkchars
10934 phase.
10935 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10936 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10937 (struct gdb_rl_completion_word_info): New.
10938 (gdb_rl_find_completion_word): New.
10939 (completion_find_completion_word): New.
10940 * completer.h (completion_find_completion_word): Declare.
10941
10942 2017-07-17 Pedro Alves <palves@redhat.com>
10943
10944 * ada-lang.c (symbol_completion_match): Adjust comments.
10945 (symbol_completion_add): Replace vector parameter with
10946 completion_tracker parameter. Use it.
10947 (ada_make_symbol_completion_list): Rename to...
10948 (ada_collect_symbol_completion_matches): ... this. Add
10949 completion_tracker parameter and use it.
10950 (ada_language_defn): Adjust.
10951 * break-catch-syscall.c (catch_syscall_completer): Adjust
10952 prototype and work with completion_tracker instead of VEC.
10953 * breakpoint.c (condition_completer): Adjust prototype and work
10954 with completion_tracker instead of VEC.
10955 * c-lang.c (c_language_defn, cplus_language_defn)
10956 (asm_language_defn, minimal_language_defn): Adjust to renames.
10957 * cli/cli-cmds.c (complete_command): Rework using
10958 completion_tracker. Catch exceptions when completing.
10959 * cli/cli-decode.c (integer_unlimited_completer)
10960 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10961 with completion_tracker instead of VEC.
10962 * command.h (struct completion_tracker): Forward declare.
10963 (completer_ftype, completer_handle_brkchars_ftype): Change
10964 types.
10965 (complete_on_cmdlist, complete_on_enum): Adjust.
10966 * completer.c: Include <algorithm>.
10967 (struct gdb_completer_state): New.
10968 (current_completion): New global.
10969 (readline_line_completion_function): Delete.
10970 (noop_completer, filename_completer)
10971 (filename_completer_handle_brkchars, complete_files_symbols)
10972 (linespec_location_completer): Adjust to work with a
10973 completion_tracker instead of a VEC.
10974 (string_or_empty): New.
10975 (collect_explicit_location_matches): Adjust to work with a
10976 completion_tracker instead of a VEC.
10977 (explicit_location_completer): Rename to ...
10978 (complete_explicit_location): ... this and adjust to work with a
10979 completion_tracker instead of a VEC.
10980 (location_completer): Adjust to work with a completion_tracker
10981 instead of a VEC.
10982 (add_struct_fields): Adjust to work with a completion_list instead
10983 of VEC.
10984 (expression_completer): Rename to ...
10985 (complete_expression): ... this and adjust to work with a
10986 completion_tracker instead of a VEC. Use complete_files_symbols.
10987 (expression_completer): Reimplement on top of complete_expression.
10988 (symbol_completer): Adjust to work with a completion_tracker
10989 instead of a VEC.
10990 (enum complete_line_internal_reason): Add describing comments.
10991 (complete_line_internal_normal_command): Adjust to work with a
10992 completion_tracker instead of a VEC.
10993 (complete_line_internal): Rename to ...
10994 (complete_line_internal_1): ... this and adjust to work with a
10995 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10996 handle_brkchars phase.
10997 (new_completion_tracker): Delete.
10998 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10999 complete_line_internal_1.
11000 (free_completion_tracker): Delete.
11001 (INITIAL_COMPLETION_HTAB_SIZE): New.
11002 (completion_tracker::completion_tracker)
11003 (completion_tracker::~completion_tracker): New.
11004 (maybe_add_completion): Delete.
11005 (completion_tracker::maybe_add_completion)
11006 (completion_tracker::add_completion)
11007 (completion_tracker::add_completions): New.
11008 (throw_max_completions_reached_error): Delete.
11009 (complete_line): Adjust to work with a completion_tracker instead
11010 of a VEC. Don't create a completion_tracker_t or check for max
11011 completions here.
11012 (command_completer, command_completer_handle_brkchars)
11013 (signal_completer, reg_or_group_completer_1)
11014 (reg_or_group_completer, default_completer_handle_brkchars):
11015 Adjust to work with a completion_tracker.
11016 (gdb_completion_word_break_characters_throw): New.
11017 (gdb_completion_word_break_characters): Reimplement.
11018 (line_completion_function): Delete.
11019 (completion_tracker::recompute_lowest_common_denominator)
11020 (expand_preserving_ws)
11021 (completion_tracker::build_completion_result)
11022 (completion_result::completion_result)
11023 (completion_result::completion_result)
11024 (completion_result::~completion_result)
11025 (completion_result::completion_result)
11026 (completion_result::release_match_list, compare_cstrings)
11027 (completion_result::sort_match_list)
11028 (completion_result::reset_match_list)
11029 (gdb_rl_attempted_completion_function_throw)
11030 (gdb_rl_attempted_completion_function): New.
11031 * completer.h (completion_list, struct completion_result)
11032 (class completion_tracker): New.
11033 (complete_line): Add completion_tracker parameter.
11034 (readline_line_completion_function): Delete.
11035 (gdb_rl_attempted_completion_function): New.
11036 (noop_completer, filename_completer, expression_completer)
11037 (location_completer, symbol_completer, command_completer)
11038 (signal_completer, reg_or_group_completer): Update prototypes.
11039 (completion_tracker_t, new_completion_tracker)
11040 (make_cleanup_free_completion_tracker): Delete.
11041 (enum maybe_add_completion_enum): Delete.
11042 (maybe_add_completion): Delete.
11043 (throw_max_completions_reached_error): Delete.
11044 * corefile.c (complete_set_gnutarget): Adjust to work with a
11045 completion_tracker instead of a VEC.
11046 * cp-abi.c (cp_abi_completer): Adjust to work with a
11047 completion_tracker instead of a VEC.
11048 * d-lang.c (d_language_defn): Adjust.
11049 * disasm.c (disassembler_options_completer): Adjust to work with a
11050 completion_tracker instead of a VEC.
11051 * f-lang.c (f_make_symbol_completion_list): Rename to ...
11052 (f_collect_symbol_completion_matches): ... this. Adjust to work
11053 with a completion_tracker instead of a VEC.
11054 (f_language_defn): Adjust.
11055 * go-lang.c (go_language_defn): Adjust.
11056 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
11057 Adjust to work with a completion_tracker instead of a VEC.
11058 * infrun.c (handle_completer): Likewise.
11059 * interps.c (interpreter_completer): Likewise.
11060 * interps.h (interpreter_completer): Likewise.
11061 * language.c (unknown_language_defn, auto_language_defn)
11062 (local_language_defn): Adjust.
11063 * language.h (language_defn::la_make_symbol_completion_list):
11064 Rename to ...
11065 (language_defn::la_collect_symbol_completion_matches): ... this
11066 and adjust to work with a completion_tracker instead of a VEC.
11067 * m2-lang.c (m2_language_defn): Adjust.
11068 * objc-lang.c (objc_language_defn): Adjust.
11069 * opencl-lang.c (opencl_language_defn): Adjust.
11070 * p-lang.c (pascal_language_defn): Adjust.
11071 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
11072 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
11073 with a completion_tracker.
11074 * rust-lang.c (rust_language_defn): Adjust.
11075 * symtab.c (free_completion_list, do_free_completion_list)
11076 (return_val, completion_tracker): Delete.
11077 (completion_list_add_name, completion_list_add_symbol)
11078 (completion_list_add_msymbol, completion_list_objc_symbol)
11079 (completion_list_add_fields, add_symtab_completions): Add
11080 completion_tracker parameter and use it.
11081 (default_make_symbol_completion_list_break_on_1): Rename to...
11082 (default_collect_symbol_completion_matches_break_on): ... this.
11083 Add completion_tracker parameter and use it instead of allocating
11084 a completion tracker here.
11085 (default_make_symbol_completion_list_break_on): Delete old
11086 implementation.
11087 (default_make_symbol_completion_list): Delete.
11088 (default_collect_symbol_completion_matches): New.
11089 (make_symbol_completion_list): Delete.
11090 (collect_symbol_completion_matches): New.
11091 (make_symbol_completion_type): Rename to ...
11092 (collect_symbol_completion_matches_type): ... this. Add
11093 completion_tracker parameter and use it instead of VEC.
11094 (make_file_symbol_completion_list_1): Rename to...
11095 (collect_file_symbol_completion_matches): ... this. Add
11096 completion_tracker parameter and use it instead of VEC.
11097 (make_file_symbol_completion_list): Delete.
11098 (add_filename_to_list): Use completion_list instead of a VEC.
11099 (add_partial_filename_data::list): Now a completion_list.
11100 (make_source_files_completion_list): Work with a completion_list
11101 instead of a VEC.
11102 * symtab.h: Include "completer.h".
11103 (default_make_symbol_completion_list_break_on)
11104 (default_make_symbol_completion_list, make_symbol_completion_list)
11105 (make_symbol_completion_type, make_file_symbol_completion_list)
11106 (make_source_files_completion_list): Delete.
11107 (default_collect_symbol_completion_matches_break_on)
11108 (default_collect_symbol_completion_matches)
11109 (collect_symbol_completion_matches)
11110 (collect_symbol_completion_matches_type)
11111 (collect_file_symbol_completion_matches)
11112 (make_source_files_completion_list): New.
11113 * top.c (init_main): Don't install a rl_completion_entry_function
11114 hook. Install a rl_attempted_completion_function hook instead.
11115 * tui/tui-layout.c (layout_completer): Adjust to work with a
11116 completion_tracker.
11117 * tui/tui-regs.c (tui_reggroup_completer):
11118 * tui/tui-win.c (window_name_completer, focus_completer)
11119 (winheight_completer): Adjust to work with a completion_tracker.
11120 * value.c: Include "completer.h".
11121 (complete_internalvar): Adjust to work with a completion_tracker.
11122 * value.h (complete_internalvar): Likewise.
11123
11124 2017-07-17 Pedro Alves <palves@redhat.com>
11125
11126 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
11127 renames.
11128 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
11129 comments to completer_ftype's declaration.
11130 <completer_handle_brkchars>: Change type to
11131 completer_handle_brkchars_ftype.
11132 * command.h (completer_ftype): Add describing comment and give
11133 names to parameters.
11134 (completer_ftype_void): Rename to ...
11135 (completer_handle_brkchars_ftype) ... this. Add describing comment.
11136 (set_cmd_completer_handle_brkchars): Adjust.
11137 * completer.c (filename_completer_handle_brkchars): New function.
11138 (complete_line_internal_normal_command): New function, factored
11139 out from ...
11140 (complete_line_internal): ... here.
11141 (command_completer_handle_brkchars)
11142 (default_completer_handle_brkchars)
11143 (completer_handle_brkchars_func_for_completer): New functions.
11144 * completer.h (set_gdb_completion_word_break_characters): Delete
11145 declaration.
11146 (completer_handle_brkchars_func_for_completer): New declaration.
11147 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
11148 completer_handle_brkchars_func_for_completer.
11149
11150 2017-07-17 Pedro Alves <palves@redhat.com>
11151
11152 * completer.c (symbol_completer): New function, based on
11153 make_symbol_completion_list_fn.
11154 * completer.h (symbol_completer): New declaration.
11155 * guile/scm-cmd.c (cmdscm_completers): Adjust.
11156 * python/py-cmd.c (completers): Adjust.
11157 * symtab.c (make_symbol_completion_list_fn): Delete.
11158 * symtab.h (make_symbol_completion_list_fn): Delete.
11159 * cli/cli-decode.c (add_cmd): Adjust.
11160
11161 2017-07-17 Pedro Alves <palves@redhat.com>
11162
11163 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
11164 * dwarf2read.c: Include "filename-seen-cache.h".
11165 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
11166 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
11167 * filename-seen-cache.c: New file.
11168 * filename-seen-cache.h: New file.
11169 * symtab.c: Include "filename-seen-cache.h".
11170 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
11171 (create_filename_seen_cache, clear_filename_seen_cache)
11172 (delete_filename_seen_cache, filename_seen): Delete, parts moved
11173 to filename-seen-cache.h/filename-seen-cache.c.
11174 (output_source_filename, sources_info)
11175 (maybe_add_partial_symtab_filename)
11176 (make_source_files_completion_list): Adjust to use
11177 filename_seen_cache.
11178
11179 2017-07-17 Pedro Alves <palves@redhat.com>
11180
11181 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
11182 fields.
11183 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
11184 dwarf2_debug_sections*)): New.
11185 (dwarf2_per_objfile::dwarf2_per_objfile(const
11186 dwarf2_per_objfile&)): Declare as deleted.
11187 (dwarf2_per_objfile::operator=): Declare as deleted.
11188 (dwarf2_per_objfile::dwarf2_per_objfile)
11189 (dwarf2_per_objfile::~dwarf2_per_objfile)
11190 (dwarf2_per_objfile::free_cached_comp_units): New.
11191 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
11192 ctor. Call dwarf2_per_objfile's ctor manually.
11193 (dwarf2_locate_sections): Deleted/refactored as ...
11194 (dwarf2_per_objfile::locate_sections): ... this new method.
11195 (free_cached_comp_units): Defer to
11196 dwarf2_per_objfile::free_cached_comp_units.
11197 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
11198
11199 2017-07-14 Tom Tromey <tom@tromey.com>
11200
11201 PR rust/21764:
11202 * rust-exp.y (convert_ast_to_expression): Add "want_type"
11203 parameter.
11204 <UNOP_SIZEOF>: Split into separate case.
11205 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
11206
11207 2017-07-14 Tom Tromey <tom@tromey.com>
11208
11209 PR rust/21763:
11210 * symtab.c (symbol_matches_domain): Add language_rust to special
11211 case.
11212 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
11213 treat LOC_TYPEDEF symbols as variables.
11214
11215 2017-07-14 Pedro Alves <palves@redhat.com>
11216
11217 * symtab.c (make_file_symbol_completion_list_1): Iterate over
11218 symtabs matching all symtabs with SRCFILE as file name instead of
11219 only considering the first hit, with lookup_symtab.
11220
11221 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11222
11223 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
11224 operator_name parameters.
11225 (gen_expr): Update function call.
11226
11227 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11228
11229 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
11230 parameter.
11231 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
11232 Likewise.
11233 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
11234 parameter, use agent_expr::gdbarch instead, update function
11235 calls.
11236 (locexpr_tracepoint_var_ref): Likewise.
11237 (loclist_tracepoint_var_ref): Likewise.
11238 * ax-gdb.c (gen_trace_static_fields): Likewise.
11239 (gen_traced_pop): Likewise.
11240 (gen_frame_args_address): Likewise.
11241 (gen_frame_locals_address): Likewise.
11242 (gen_var_ref): Likewise.
11243 (gen_struct_ref_recursive): Likewise.
11244 (gen_static_field): Likewise.
11245 (gen_maybe_namespace_elt): Likewise.
11246 (gen_expr): Likewise.
11247 (gen_trace_for_var): Likewise.
11248 (gen_trace_for_expr): Likewise.
11249 (gen_trace_for_return_address): Likewise.
11250
11251 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11252
11253 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
11254 parameter.
11255 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
11256
11257 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11258
11259 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
11260 from ax, update calls.
11261 (gen_usual_arithmetic): Likewise.
11262 (gen_integral_promotions): Likewise.
11263 (gen_bitfield_ref): Likewise.
11264 (gen_primitive_field): Likewise.
11265 (gen_struct_ref_recursive): Likewise.
11266 (gen_struct_ref): Likewise.
11267 (gen_maybe_namespace_elt): Likewise.
11268 (gen_struct_elt_for_reference): Likewise.
11269 (gen_namespace_elt): Likewise.
11270 (gen_aggregate_elt_ref): Likewise.
11271 (gen_expr): Get gdbarch from ax, update calls.
11272 (gen_expr_binop_rest): Likewise.
11273
11274 2017-07-13 Pedro Alves <palves@redhat.com>
11275
11276 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
11277 as default tdesc.
11278 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
11279 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
11280 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
11281 tdesc_amd64_linux as default tdesc. Get final tdesc from the
11282 tdep.
11283 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
11284 Get final tdesc from the tdep.
11285 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
11286 default tdesc.
11287 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
11288 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
11289 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
11290 Use it as default tdesc.
11291 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
11292 down to amd_init_abi. No longer handle fallback tdesc here.
11293 * amd64-tdep.h (tdesc_x32): Declare.
11294 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11295 parameter.
11296 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11297 as default tdesc.
11298
11299 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11300
11301 * s390-linux-tdep.c (s390_process_record): Add support for
11302 instructions new in arch12.
11303
11304 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11305
11306 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11307 PT_GETFSBASE and PT_GETGSBASE.
11308 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11309 PT_SETGSBASE.
11310
11311 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11312
11313 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11314 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11315 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11316 those rules.
11317 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11318 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11319 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11320 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11321 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11322 * features/i386/amd64.xml: Add 64bit-segments.xml.
11323 * features/i386/amd64-avx-avx512.c: Regenerated.
11324 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11325 * features/i386/amd64-avx-mpx.c: Regenerated.
11326 * features/i386/amd64-avx.c: Regenerated.
11327 * features/i386/amd64-mpx.c: Regenerated.
11328 * features/i386/amd64.c: Regenerated.
11329 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11330 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11331 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11332 * regformats/i386/amd64-avx.dat: Regenerated.
11333 * regformats/i386/amd64-mpx.dat: Regenerated.
11334 * regformats/i386/amd64.dat: Regenerated.
11335
11336 2017-07-10 Yao Qi <yao.qi@linaro.org>
11337
11338 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11339 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11340
11341 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11342
11343 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11344 unsetenv.
11345 * gnulib/aclocal.m4: Regenerate.
11346 * gnulib/config.in: Regenerate.
11347 * gnulib/configure: Regenerate.
11348 * gnulib/import/Makefile.am: Regenerate.
11349 * gnulib/import/Makefile.in: Regenerate.
11350 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11351 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11352 * gnulib/import/m4/environ.m4: New file.
11353 * gnulib/import/m4/setenv.m4: New file.
11354 * gnulib/import/setenv.c: New file.
11355 * gnulib/import/unsetenv.c: New file.
11356
11357 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11358
11359 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11360 address when op is DW_OP_addr.
11361
11362 2017-07-09 Tom Tromey <tom@tromey.com>
11363
11364 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11365 check and apply to outer type.
11366
11367 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11368
11369 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11370 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11371 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11372 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11373
11374 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11375
11376 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11377
11378 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11379
11380 * corelow.c (get_core_siginfo): Remove.
11381 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11382 instead of get_core_siginfo.
11383 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11384 * gdbarch.h: Re-generate.
11385 * gdbarch.c: Re-generate.
11386 * linux-tdep.c (linux_core_xfer_siginfo): New.
11387 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11388
11389 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11390
11391 * corelow.c (thread_section_name): Move to ...
11392 * gdbcore.h (thread_section_name): ... here.
11393
11394 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11395
11396 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11397 (struct siginfo32): New.
11398 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11399 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11400 via ptrace(PT_LWPINFO).
11401
11402 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11403
11404 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11405 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11406 (fbsd_get_siginfo_type): New.
11407 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11408 (_initialize_fbsd_tdep): New.
11409
11410 2017-07-06 David Blaikie <dblaikie@gmail.com>
11411
11412 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11413 a singular dwo_unit*) to support multiple CUs in the same way that
11414 multiple TUs are supported.
11415 (create_cus_hash_table): Replace create_dwo_cu with a function for
11416 parsing multiple CUs from a DWO file.
11417 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11418 create_dwo_cu.
11419 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11420 htab_find, rather than comparing the signature to a singleton CU in
11421 the dwo_file.
11422
11423 2017-07-06 Pedro Alves <palves@redhat.com>
11424
11425 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11426
11427 2017-07-04 Pedro Alves <palves@redhat.com>
11428
11429 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11430 * gdbtypes.h (TYPE_STATIC): Delete.
11431 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11432 is_synchronized, is_native>: Delete.
11433 <dummy>: Bump.
11434 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11435 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11436 (TYPE_FN_FIELD_ABSTRACT): Delete.
11437
11438 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11439
11440 * buffer.h (buffer_finish): Fix spelling mistakes.
11441
11442 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11443
11444 * .dir-locals.el: Automatically switch to C-style comments in
11445 versions of Emacs that support the feature.
11446
11447 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11448 Pedro Alves <palves@redhat.com>
11449
11450 PR cli/21688
11451 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11452 (process_next_line): New variable 'inline_cmd'.
11453 Adjust 'if' clauses for "python", "compile" and "guile" to use
11454 'command_name_equals' and check for '!inline_cmd'.
11455
11456 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11457
11458 PR cli/21688
11459 * cli/cli-script.c (command_name_equals_not_inline): New function.
11460 (process_next_line): Adjust 'if' clauses for "python", "compile"
11461 and "guile" to use command_name_equals_not_inline.
11462
11463 2017-06-29 Pedro Alves <palves@redhat.com>
11464
11465 * completer.c (expression_completer): Call
11466 linespec_location_completer instead of location_completer.
11467
11468 2017-06-29 Pedro Alves <palves@redhat.com>
11469
11470 * completer.c (expression_completer): Remove code that recomputes
11471 'text' from 'word'.
11472
11473 2017-06-29 Yao Qi <yao.qi@linaro.org>
11474
11475 * regformats/regdat.sh: Generate code with
11476 "ifndef IN_PROCESS_AGENT".
11477
11478 2017-06-28 Pedro Alves <palves@redhat.com>
11479
11480 * command.h: Include "common/scoped_restore.h".
11481
11482 2017-06-28 Yao Qi <yao.qi@linaro.org>
11483
11484 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11485 instead of obstack_grow.
11486
11487 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11488
11489 PR gdb/21337
11490 * symfile.c (reread_symbols): Call objfiles_changed just before
11491 read_symbols.
11492
11493 2017-06-27 Pedro Alves <palves@redhat.com>
11494
11495 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11496 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11497 (completion_list_add_symbol, completion_list_add_msymbol):
11498 ... these new functions.
11499 (add_symtab_completions)
11500 (default_make_symbol_completion_list_break_on_1): Adjust.
11501
11502 2017-06-27 Pedro Alves <palves@redhat.com>
11503
11504 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11505 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11506 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11507 dtor.
11508 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11509 'storage_obstack' field an auto_obstack. In-class initialize all
11510 non-bitfield fields. Make minsyms_read bool.
11511 * symfile.c (read_symbols): Adjust.
11512
11513 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11514
11515 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11516 (gdbsim_store_register): Likewise.
11517
11518 2017-06-27 Pedro Alves <palves@redhat.com>
11519
11520 * c-exp.y (name_obstack): Now an auto_obstack.
11521 (yylex): Use auto_obstack::clear.
11522 (c_parse): Use auto_obstack::clear instead of reinitializing and
11523 freeing the obstack.
11524 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11525 * d-exp.y (name_obstack): Now an auto_obstack.
11526 (yylex): Use auto_obstack::clear.
11527 (d_parse): Use auto_obstack::clear instead of reinitializing and
11528 freeing the obstack.
11529 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11530 auto_obstack.
11531 * dwarf2read.c (create_addrmap_from_index)
11532 (dwarf2_build_psymtabs_hard)
11533 (update_enumeration_type_from_children): Likewise.
11534 * gdb_obstack.h (auto_obstack): New type.
11535 * go-exp.y (name_obstack): Now an auto_obstack.
11536 (build_packaged_name): Use auto_obstack::clear.
11537 (go_parse): Use auto_obstack::clear instead of reinitializing and
11538 freeing the obstack.
11539 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11540 auto_obstack.
11541 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11542 * rust-exp.y (work_obstack): Now an auto_obstack.
11543 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11544 reinitializing and freeing the obstack.
11545 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11546 (host_char_to_target): Use auto_obstack.
11547 * utils.h (make_cleanup_obstack_free): Delete declaration.
11548 * valprint.c (generic_emit_char, generic_printstr): Use
11549 auto_obstack.
11550
11551 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11552
11553 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11554 thread.
11555 (darwin_init_thread_list): Don't update dummy thread.
11556 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11557
11558 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11559
11560 * record-full.c (netorder16): Remove.
11561
11562 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11563
11564 * common/diagnostics.h: Define macros for GCC.
11565 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11566 * common/vec.h: Include diagnostics.h.
11567 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11568 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11569 warning.
11570
11571 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11572
11573 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11574 New macro.
11575 * ada-lex.l: Ignore deprecated register warnings.
11576
11577 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11578
11579 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11580 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11581
11582 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11583
11584 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11585 its own line.
11586
11587 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11588
11589 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11590
11591 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11592
11593 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11594 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11595 (xtensa_register_read_masked): Likewise.
11596
11597 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11598
11599 * common/environ.c (gdb_environ::unset): Update comment.
11600
11601 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11602
11603 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11604 registers.
11605
11606 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11607
11608 * record-full.c (record_full_exec_insn): Use byte_vector.
11609
11610 2017-06-22 Yao Qi <yao.qi@linaro.org>
11611
11612 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11613 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11614
11615 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11616
11617 * remote.c (cached_reg): Move from here...
11618 * regcache.h (cached_reg): ...to here.
11619 * python/py-unwind.c (struct reg_info): Remove.
11620 (cached_frame_info): Use cached_reg_t.
11621 (pyuw_prev_register): Likewise.
11622 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11623 (pyuw_dealloc_cache): Free all registers.
11624
11625 2017-06-22 Pedro Alves <palves@redhat.com>
11626 Simon Marchi <simon.marchi@ericsson.com>
11627
11628 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11629 warning.
11630 * common/diagnostics.h: New file.
11631
11632 2017-06-22 Pedro Alves <palves@redhat.com>
11633
11634 * common/agent.h: Add include guards.
11635
11636 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11637
11638 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11639 talk about addressable units instead of bytes.
11640
11641 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11642
11643 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11644 of '::const_iterator'.
11645
11646 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11647
11648 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11649 'unittests/environ-selftests.c'.
11650 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11651 * charset.c (find_charset_names): Declare object 'iconv_env'.
11652 Update code to use 'iconv_env' object. Remove call to
11653 'free_environ'.
11654 * common/environ.c: Include <utility>.
11655 (make_environ): Delete function.
11656 (free_environ): Delete function.
11657 (gdb_environ::clear): New function.
11658 (gdb_environ::operator=): New function.
11659 (gdb_environ::get): Likewise.
11660 (environ_vector): Delete function.
11661 (set_in_environ): Delete function.
11662 (gdb_environ::set): New function.
11663 (unset_in_environ): Delete function.
11664 (gdb_environ::unset): New function.
11665 (gdb_environ::envp): Likewise.
11666 * common/environ.h: Include <vector>.
11667 (struct gdb_environ): Delete; transform into...
11668 (class gdb_environ): ... this class.
11669 (free_environ): Delete prototype.
11670 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11671 environ_vector): Likewise.
11672 * infcmd.c (run_command_1): Update code to call
11673 'envp' from 'gdb_environ' class.
11674 (environment_info): Update code to call methods from 'gdb_environ'
11675 class.
11676 (unset_environment_command): Likewise.
11677 (path_info): Likewise.
11678 (path_command): Likewise.
11679 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11680 (inferior::inferior): Initialize 'environment' using the host's
11681 information.
11682 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11683 Include "environ.h".
11684 (class inferior) <environment>: Change type from 'struct
11685 gdb_environ' to 'gdb_environ'.
11686 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11687 methods from 'gdb_environ' class.
11688 * solib.c (solib_find_1): Likewise
11689 * unittests/environ-selftests.c: New file.
11690
11691 2017-06-20 Yao Qi <yao.qi@linaro.org>
11692
11693 * features/i386/i386-linux.xml: Exchange the order of including
11694 32bit-linux.xml and 32bit-sse.xml.
11695 * features/i386/i386-linux.c: Regenerated.
11696
11697 2017-06-20 Yao Qi <yao.qi@linaro.org>
11698
11699 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11700 Delete copy ctor and assignment operator.
11701 (tdesc_type): Likewise.
11702 (tdesc_feature): Likewise.
11703 (tdesc_free_reg): Remove.
11704 (tdesc_create_reg): Use new.
11705 (tdesc_free_type): Remove.
11706 (tdesc_create_vector): Use new.
11707 (tdesc_create_union): Likewise.
11708 (tdesc_create_flags): Likewise.
11709 (tdesc_create_enum): Likewise.
11710 (tdesc_free_feature): Delete.
11711 (free_target_description): Use delete.
11712
11713 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11714
11715 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11716 registers.
11717
11718 2017-06-19 Pedro Alves <palves@redhat.com>
11719
11720 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11721 after gdb::unlinker.
11722
11723 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11724
11725 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11726 gdb_environ to access an environment variable.
11727
11728 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11729
11730 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11731 gdb_byte*.
11732
11733 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11734
11735 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11736
11737 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11738
11739 * configure: Re-generate.
11740 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11741
11742 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11743
11744 * configure: Re-generate.
11745 * warning.m4: Pass -Werror to compiler when checking for
11746 supported warning flags.
11747
11748 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11749
11750 * Makefile.in (COMPILE.pre): Add "-x c++".
11751
11752 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11753 Pedro Alves <palves@redhat.com>
11754 Yao Qi <yao.qi@linaro.org>
11755
11756 * defs.h (RequireLongest): New.
11757 (extract_integer): Declare function template.
11758 (extract_signed_integer): Remove the declaration, but define it
11759 static inline.
11760 (extract_unsigned_integer): Likewise.
11761 (store_integer): Declare function template.
11762 (store_signed_integer): Remove the declaration, but define it
11763 static inline.
11764 (store_unsigned_integer): Likewise.
11765 * findvar.c (extract_integer): New function template.
11766 (extract_signed_integer): Remove.
11767 (extract_unsigned_integer): Remove.
11768 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11769 instantiations.
11770 (store_integer): New function template.
11771 (store_signed_integer): Remove.
11772 (store_unsigned_integer): Remove.
11773 (store_integer): Explicit instantiations.
11774 * regcache.c (regcache_raw_read_signed): Update.
11775 (regcache::raw_read): New function.
11776 (regcache::raw_read_signed): Remove.
11777 (regcache::raw_read_unsigned): Remove.
11778 (regcache_raw_read_unsigned): Update.
11779 (regcache_raw_write_unsigned): Update.
11780 (regcache::raw_write_signed): Remove.
11781 (regcache::raw_write): New function.
11782 (regcache_cooked_read_signed): Update.
11783 (regcache::raw_write_unsigned): Remove.
11784 (regcache::cooked_read_signed): Remove.
11785 (regcache_cooked_read_unsigned): Update.
11786 (regcache::cooked_read_unsigned): Remove.
11787 (regcache_cooked_write_signed): Update.
11788 (regcache_cooked_write_unsigned): Update.
11789 * regcache.h (regcache) <raw_read_signed>: Remove.
11790 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11791 <raw_read, raw_write>: New.
11792 <cooked_read_signed, cooked_write_signed>: Remove.
11793 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11794 <cooked_read, cooked_write>: New.
11795 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11796 (sh64_pseudo_register_write): Update.
11797
11798 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11799
11800 * arc-tdep.c (arc_disassembler_options): New variable.
11801 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11802 of default_print_insn.
11803 (arc_delayed_print_insn): Set info->section when needed,
11804 use default_print_insn to retrieve a disassembler.
11805
11806 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11807
11808 PR gdb/21574
11809 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11810 to mention $SHELL and startup-with-shell.
11811
11812 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11813
11814 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11815
11816 2017-06-14 Yao Qi <yao.qi@linaro.org>
11817
11818 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11819 default_print_insn instead of print_insn_aarch64.
11820 * arm-tdep.c (gdb_print_insn_arm): Call
11821 default_print_insn instead of print_insn_big_arm
11822 and print_insn_little_arm.
11823 * i386-tdep.c (i386_print_insn): Call default_print_insn
11824 instead of print_insn_i386.
11825 * ia64-tdep.c (ia64_print_insn): Call
11826 default_print_insn instead of print_insn_ia64.
11827 * mips-tdep.c (gdb_print_insn_mips): Call
11828 default_print_insn instead of print_insn_big_mips
11829 and print_insn_little_mips.
11830 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11831 instead of print_insn_spu.
11832
11833 2017-06-14 Pedro Alves <palves@redhat.com>
11834
11835 * ada-lang.c: Include "common/byte-vector.h".
11836 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11837 * charset.c (wchar_iterator::iterate): Resize the vector instead
11838 of reserving it.
11839 * common/byte-vector.h: Include "common/def-vector.h".
11840 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11841 * cli/cli-dump.c: Include "common/byte-vector.h".
11842 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11843 * common/byte-vector.h: New file.
11844 * common/def-vector.h: New file.
11845 * common/default-init-alloc.h: New file.
11846 * dwarf2loc.c: Include "common/byte-vector.h".
11847 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11848 instead of reserving it.
11849 * dwarf2read.c: Include "common/byte-vector.h".
11850 (data_buf::m_vec): Now a gdb::byte_vector.
11851 * gdb_regex.c: Include "common/def-vector.h".
11852 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11853 * mi/mi-main.c: Include "common/byte-vector.h".
11854 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11855 * printcmd.c: Include "common/byte-vector.h".
11856 (print_scalar_formatted): Use gdb::byte_vector.
11857 * valprint.c: Include "common/byte-vector.h".
11858 (maybe_negate_by_bytes, print_decimal_chars): Use
11859 gdb::byte_vector.
11860
11861 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11862
11863 * darwin-nat.c: Include "nat/fork-inferior.h".
11864
11865 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11866
11867 * configure.nat: Factor out Darwin bits that are not
11868 architecture-specific. Add fork-inferior.o.
11869
11870 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11871
11872 * configure.nat: Factor out AIX bits that are not
11873 architecture-specific. Add fork-inferior.o.
11874
11875 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11876
11877 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11878 (read_pieced_value, write_pieced_value): ...here. Reduce to
11879 wrappers that just call rw_pieced_value.
11880
11881 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11882
11883 * dwarf2loc.c (write_pieced_value): When writing the data for a
11884 memory piece, use write_memory_with_notification instead of
11885 write_memory.
11886
11887 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11888
11889 * valops.c (read_value_memory): Change embedded_offset to
11890 represent a bit offset instead of a byte offset.
11891 * value.h (read_value_memory): Adjust comment.
11892
11893 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11894
11895 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11896 dest_offset_bits and source_offset_bits.
11897 (write_pieced_value): Likewise.
11898
11899 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11900
11901 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11902 given by DW_OP_bit_piece.
11903 (write_pieced_value): Likewise.
11904
11905 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11906
11907 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11908 some other preparations to the places where sufficient information
11909 is available.
11910 (write_pieced_value): Likewise.
11911
11912 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11913
11914 * dwarf2loc.c (bits_to_bytes): New function.
11915 (read_pieced_value): Fix offset calculations for register pieces
11916 on big-endian targets.
11917 (write_pieced_value): Likewise.
11918
11919 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11920
11921 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11922 (write_pieced_value): Likewise.
11923
11924 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11925
11926 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11927 transfer the source value's least significant bits, instead of its
11928 lowest-addressed ones. Rename type_len to max_offset.
11929 (read_pieced_value): Mirror above changes to write_pieced_value as
11930 applicable.
11931
11932 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11933
11934 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11935 truncate full bytes from dest_offset_bits before using it as an
11936 offset into the buffer.
11937
11938 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11939
11940 * dwarf2loc.c (write_pieced_value): Include transfer size in
11941 byte-wise check.
11942
11943 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11944
11945 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11946 calculation of this_size.
11947
11948 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11949
11950 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11951 when targeting a bit-field.
11952 (write_pieced_value): Likewise.
11953
11954 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11955
11956 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11957 (allocate_piece_closure): Drop addr_size parameter.
11958 (dwarf2_evaluate_loc_desc_full): Adjust call to
11959 allocate_piece_closure.
11960
11961 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11962
11963 PR gdb/21226
11964 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11965 the LSB end, independent of endianness.
11966
11967 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11968
11969 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11970 size capping.
11971
11972 2017-06-13 Yao Qi <yao.qi@linaro.org>
11973
11974 * mips-linux-nat.c: Move include features/mips*-linux.c to
11975 mips-linux-tdep.c.
11976 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11977 to mips-linux-tdep.c.
11978 * mips-linux-tdep.c: Include features/mips*-linux.c
11979 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11980 functions.
11981 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11982 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11983 (tdesc_mips64_dsp_linux): Declare.
11984
11985 2017-06-12 Tom Tromey <tom@tromey.com>
11986
11987 * valprint.h (val_print_type_code_int): Remove.
11988 * valprint.c (generic_val_print_int): Always call
11989 val_print_scalar_formatted.
11990 (val_print_type_code_int): Remove.
11991 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11992 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11993 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11994 * ada-valprint.c (ada_val_print_num): Use
11995 val_print_scalar_formatted.
11996
11997 2017-06-12 Tom Tromey <tom@tromey.com>
11998
11999 * printcmd.c (print_scalar_formatted): Unify the two switches.
12000 Don't convert scalars to LONGEST.
12001
12002 2017-06-12 Tom Tromey <tom@tromey.com>
12003
12004 PR exp/16225:
12005 * valprint.h (print_decimal_chars): Update.
12006 * valprint.c (maybe_negate_by_bytes): New function.
12007 (print_decimal_chars): Add "is_signed" argument.
12008 * printcmd.c (print_scalar_formatted): Update.
12009
12010 2017-06-12 Tom Tromey <tom@tromey.com>
12011
12012 PR exp/16225:
12013 * valprint.h (print_binary_chars, print_hex_chars): Update.
12014 * valprint.c (val_print_type_code_int): Update.
12015 (print_binary_chars): Add "zero_pad" argument.
12016 (emit_octal_digit): New function.
12017 (print_octal_chars): Don't zero-pad.
12018 (print_decimal_chars): Likewise.
12019 (print_hex_chars): Add "zero_pad" argument.
12020 * sh64-tdep.c (sh64_do_fp_register): Update.
12021 * regcache.c (regcache::dump): Update.
12022 * printcmd.c (print_scalar_formatted): Update.
12023 * infcmd.c (default_print_one_register_info): Update.
12024
12025 2017-06-12 Pedro Alves <palves@redhat.com>
12026 Alan Hayward <alan.hayward@arm.com>
12027
12028 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
12029 (mips_eabi_push_dummy_call): Rename local 'regsize' to
12030 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
12031 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
12032 Assert that abi_regsize bytes fit in 'ref_valbuf'.
12033
12034 2017-06-12 Pedro Alves <palves@redhat.com>
12035
12036 * dwarf2read.c (mapped_symtab::data): Now a vector of
12037 symtab_index_entry instead of vector of
12038 std::unique_ptr<symtab_index_entry>. All users adjusted to check
12039 whether an element's name is NULL instead of checking whether the
12040 element itself is NULL.
12041 (find_slot): Change return type. Adjust.
12042 (hash_expand, , add_index_entry, uniquify_cu_indices)
12043 (write_hash_table): Adjust.
12044
12045 2017-06-12 Pedro Alves <palves@redhat.com>
12046
12047 * dwarf2read.c (recursively_count_psymbols): New function.
12048 (write_psymtabs_to_index): Call it to compute number of psyms and
12049 pass estimate size of psyms_seen to unordered_set's ctor.
12050
12051 2017-06-12 Pedro Alves <palves@redhat.com>
12052
12053 * dwarf2read.c (write_hash_table): Check if key already exists
12054 before emplacing.
12055
12056 2017-06-12 Pedro Alves <palves@redhat.com>
12057
12058 * dwarf2read.c (data_buf::append_space): Rename to...
12059 (data_buf::grow): ... this, and make private. Adjust all callers.
12060 (data_buf::append_uint): New method.
12061 (add_address_entry, write_one_signatured_type)
12062 (write_psymtabs_to_index): Use it.
12063
12064 2017-06-12 Pedro Alves <palves@redhat.com>
12065
12066 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
12067 (file_write (FILE *, const std::vector<Elem>&)): Delete.
12068 (data_buf::file_write): Call ::fwrite directly.
12069
12070 2017-06-12 Pedro Alves <palves@redhat.com>
12071
12072 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
12073 std::vector::erase.
12074
12075 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12076
12077 Code cleanup: C++ify .gdb_index producer.
12078 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
12079 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
12080 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
12081 (create_strtab, add_string): Remove.
12082 (file_write, data_buf): New.
12083 (struct symtab_index_entry): Use std::vector for cu_indices.
12084 (struct mapped_symtab): Use std::vector for data.
12085 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
12086 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
12087 Remove.
12088 (find_slot): Change return type. Update it to the new data structures.
12089 (hash_expand, add_index_entry): Update it to the new data structures.
12090 (offset_type_compare): Remove.
12091 (uniquify_cu_indices): Update it to the new data structures.
12092 (c_str_view, c_str_view_hasher, vector_hasher): New.
12093 (add_indices_to_cpool): Remove.
12094 (write_hash_table): Update it to the new data structures.
12095 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
12096 (eq_psymtab_cu_index): Remove.
12097 (psym_index_map): New typedef.
12098 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
12099 reference and std::unordered_map for cu_index_htab.
12100 (add_address_entry, add_address_entry_worker, write_address_map)
12101 (write_psymbols): Update it to the new data structures.
12102 (write_obstack): Remove.
12103 (struct signatured_type_index_data): Change types_list to a data_buf
12104 reference and psyms_seen to a std::unordered_set reference.
12105 (write_one_signatured_type, recursively_write_psymbols)
12106 (write_psymtabs_to_index): Update it to the new data structures.
12107
12108 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
12109
12110 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
12111 separate-debug-file commands.
12112 * symfile.h (separate_debug_file_debug): New global.
12113 * symfile.c (separate_debug_file_debug): New global.
12114 (separate_debug_file_exists, find_separate_debug_file): Add
12115 debug output.
12116 (_initialize_symfile): Add "set debug separate-debug-file"
12117 command.
12118 * build-id.c (build_id_to_debug_bfd,
12119 find_separate_debug_file_by_buildid): Add debug output.
12120
12121 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
12122
12123 * gdbarch.sh (displaced_step_free_closure): Remove.
12124 * gdbarch.h, gdbarch.c: Re-generate.
12125 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
12126 displaced_step_free_closure.
12127 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
12128 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
12129 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
12130 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12131 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12132 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12133 * arch-utils.h (simple_displaced_step_free_closure): Remove.
12134 * arch-utils.c (simple_displaced_step_free_closure): Remove.
12135 * infrun.c (displaced_step_clear): Call xfree instead of
12136 gdbarch_displaced_step_free_closure.
12137
12138 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
12139
12140 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
12141 NULL".
12142
12143 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12144
12145 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
12146 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
12147 (mn10300_push_dummy_call): Likewise.
12148
12149 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12150
12151 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
12152
12153 2017-06-08 Alan Hayward <alan.hayward@arm.com>
12154
12155 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
12156
12157 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12158
12159 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
12160 able to start inferiors using a shell.
12161 (New remote packets): Announce new packet "QStartupWithShell".
12162 * remote.c: Add PACKET_QStartupWithShell.
12163 (extended_remote_create_inferior): Handle new
12164 PACKET_QStartupWithShell.
12165 (remote_protocol_features) <QStartupWithShell>: New entry for
12166 PACKET_QStartupWithShell.
12167 (_initialize_remote): Call "add_packet_config_cmd" for
12168 QStartupShell.
12169
12170 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12171 Pedro Alves <palves@redhat.com>
12172
12173 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
12174 and "nat/fork-inferior.h".
12175 * common/common-inferior.h: New file, with contents from
12176 "gdb/inferior.h".
12177 * commom/common-utils.c: Include "common-utils.h".
12178 (stringify_argv): New function.
12179 * common/common-utils.h (stringify_argv): New prototype.
12180 * configure.nat: Add "fork-inferior.o" as a dependency for
12181 "*linux*", "fbsd*" and "nbsd*" hosts.
12182 * corefile.c (get_exec_file): Update comment.
12183 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
12184 instead of "startup_inferior".
12185 (darwin_create_inferior): Call "add_thread_silent" after
12186 "fork_inferior".
12187 * fork-child.c: Cleanup unnecessary includes.
12188 (SHELL_FILE): Move to "common/common-fork-child.c".
12189 (environ): Likewise.
12190 (exec_wrapper): Initialize.
12191 (get_exec_wrapper): New function.
12192 (breakup_args): Move to "common/common-fork-child.c"; rename to
12193 "breakup_args_for_exec".
12194 (escape_bang_in_quoted_argument): Move to
12195 "common/common-fork-child.c".
12196 (saved_ui): New variable.
12197 (prefork_hook): New function.
12198 (postfork_hook): Likewise.
12199 (postfork_child_hook): Likewise.
12200 (gdb_startup_inferior): Likewise.
12201 (fork_inferior): Move to "common/common-fork-child.c". Update
12202 function to support gdbserver.
12203 (startup_inferior): Likewise.
12204 * gdbcore.h (get_exec_file): Remove declaration.
12205 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
12206 instead of "startup_inferior". Call "add_thread_silent" after
12207 "fork_inferior".
12208 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
12209 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
12210 instead of "startup_inferior". Call "add_thread_silent" after
12211 "fork_inferior".
12212 * inferior.h: Include "common-inferior.h".
12213 (trace_start_error): Move to "common/common-utils.h".
12214 (trace_start_error_with_name): Likewise.
12215 (fork_inferior): Move prototype to "nat/fork-inferior.h".
12216 (startup_inferior): Likewise.
12217 (gdb_startup_inferior): New prototype.
12218 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
12219 * nat/fork-inferior.h: New file.
12220 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
12221 instead of "startup_inferior". Call "add_thread_silent" after
12222 "fork_inferior".
12223 * target.h (target_terminal_init): Move prototype to
12224 "target/target.h".
12225 (target_terminal_inferior): Likewise.
12226 (target_terminal_ours): Likewise.
12227 * target/target.h (target_terminal_init): New prototype, moved
12228 from "target.h".
12229 (target_terminal_inferior): Likewise.
12230 (target_terminal_ours): Likewise.
12231 * utils.c (gdb_flush_out_err): New function.
12232
12233 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12234
12235 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
12236 * common/common-gdbthread.h: New file, with parts from
12237 "gdb/gdbthread.h".
12238 * gdbthread.h: Include "common-gdbthread.h".
12239 (switch_to_thread): Moved to "common/common-gdbthread.h".
12240
12241 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12242
12243 * Makefile.in (SFILES): Add "common/job-control.c".
12244 (HFILES_NO_SRCDIR): Add "common/job-control.h".
12245 (COMMON_OBS): Add "job-control.o".
12246 * common/job-control.c: New file, with contents from
12247 "gdb/inflow.c".
12248 * common/job-control.h: New file, with contents from "terminal.h".
12249 * fork-child.c: Include "job-control.h".
12250 * inflow.c: Include "job-control.h".
12251 (gdb_setpgid): Move to "common/common-inflow.c".
12252 (_initialize_inflow): Move setting of "job_control" to
12253 "handle_job_control".
12254 * terminal.h (job_control): Moved to "common/common-terminal.h".
12255 (gdb_setpgid): Likewise.
12256 * top.c: Include "job_control.h".
12257 * utils.c: Likewise.
12258 (job_control): Moved to "job-control.c".
12259
12260 2017-06-07 Pedro Alves <palves@redhat.com>
12261
12262 * Makefile.in (SFILES): Add gdb_regex.c.
12263 (COMMON_OBS): Add gdb_regex.o.
12264 * ada-lang.c (ada_add_standard_exceptions)
12265 (ada_add_exceptions_from_frame, name_matches_regex)
12266 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
12267 parameter type to compiled_regex. Adjust.
12268 (ada_exceptions_list): Use compiled_regex.
12269 * break-catch-throw.c (exception_catchpoint::pattern): Now a
12270 std::unique_ptr<compiled_regex>.
12271 (exception_catchpoint::~exception_catchpoint): Remove regfree
12272 call.
12273 (check_status_exception_catchpoint): Adjust to use compiled_regex.
12274 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
12275 * breakpoint.c (solib_catchpoint::compiled): Now a
12276 std::unique_ptr<compiled_regex>.
12277 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
12278 (check_status_catch_solib): Adjust to use compiled_regex.
12279 (add_solib_catchpoint): Adjust to use compiled_regex.
12280 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
12281 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
12282 compiled_regex reference. Adjust to use it.
12283 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
12284 declaration. Include "gdb_regex.h".
12285 (apropos_cmd): Change regex parameter to compiled_regex reference.
12286 * gdb_regex.c: New file.
12287 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
12288 declarations.
12289 (class compiled_regex): New.
12290 * linux-tdep.c: Include "common/gdb_optional.h".
12291 (struct mapping_regexes): New, factored out from
12292 mapping_is_anonymous_p, and adjusted to use compiled_regex.
12293 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12294 gdb::optional and remove cleanups. Adjust to compiled_regex.
12295 * probe.c: Include "common/gdb_optional.h".
12296 (collect_probes): Use compiled_regex and gdb::optional and remove
12297 cleanups.
12298 * skip.c: Include "common/gdb_optional.h".
12299 (skiplist_entry::compiled_function_regexp): Now a
12300 gdb::optional<compiled_regex>.
12301 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12302 (free_skiplist_entry): Remove regfree call.
12303 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12304 compiled_regex and gdb::optional.
12305 * symtab.c: Include "common/gdb_optional.h".
12306 (search_symbols): Use compiled_regex and gdb::optional.
12307 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12308 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12309 to gdb_regex.c.
12310
12311 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12312
12313 * regcache.c (regcache::save): Avoid buffer use.
12314 (regcache::dump): Likewise.
12315
12316 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12317
12318 * sh-tdep.c (sh_pseudo_register_read): Remove
12319 MAX_REGISTER_SIZE.
12320 (sh_pseudo_register_write): Likewise.
12321 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12322 (sh64_pseudo_register_write): Likewise
12323
12324 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12325
12326 * aarch64-tdep.c (aarch64_store_return_value): Use
12327 V_REGISTER_SIZE.
12328 (aarch64_pseudo_read_value): Likewise.
12329 (aarch64_pseudo_write): Likewise.
12330
12331 2017-06-06 Yao Qi <yao.qi@linaro.org>
12332
12333 * regformats/regdef.h (set_register_cache): Remove the
12334 declaration.
12335
12336 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12337
12338 * frame.c (frame_unwind_register_signed): Use
12339 frame_unwind_register_value.
12340
12341 2017-06-06 Pedro Alves <palves@redhat.com>
12342
12343 PR breakpoints/21553
12344 * breakpoint.c (create_breakpoints_sal_default)
12345 (init_breakpoint_sal, create_breakpoint_sal): Use
12346 gdb::unique_xmalloc_ptr for string parameters.
12347 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12348 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12349 (base_breakpoint_create_breakpoints_sal)
12350 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12351 (strace_marker_create_breakpoints_sal)
12352 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12353 string parameters.
12354 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12355 gdb::unique_xmalloc_ptr for string parameters.
12356 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12357 parameters.
12358
12359 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12360
12361 * alpha-tdep.c (alpha_register_to_value): Use
12362 get_frame_register_value.
12363 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12364
12365 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12366
12367 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12368 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12369 (ia64_value_to_register): Likewise.
12370 (ia64_extract_return_value): Likewise.
12371 (ia64_store_return_value): Likewise.
12372 (ia64_push_dummy_call): Likewise.
12373
12374 2017-06-04 Joel Brobecker <brobecker@adacore.com>
12375
12376 GDB 8.0 released.
12377
12378 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12379
12380 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12381
12382 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12383
12384 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12385 parameter.
12386 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12387
12388 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12389
12390 * event-loop.c (poll_timers): Unallocate timer using delete
12391 instead of xfree.
12392
12393 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12394
12395 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12396 (struct breakpoint) <~breakpoint>: New.
12397 (struct watchpoint): Inherit from breakpoint.
12398 <~watchpoint>: New.
12399 <base>: Remove.
12400 (struct tracepoint): Inherit from breakpoint.
12401 <base>: Remove.
12402 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12403 (struct longjmp_breakpoint): Inherit from breakpoint.
12404 <~longjmp_breakpoint>: New.
12405 <base>: Remove.
12406 (new_breakpoint_from_type): Remove casts.
12407 (watchpoint_in_thread_scope): Remove reference to base field.
12408 (watchpoint_del_at_next_stop): Likewise.
12409 (update_watchpoint): Likewise.
12410 (watchpoint_check): Likewise.
12411 (bpstat_check_watchpoint): Likewise.
12412 (set_longjmp_breakpoint): Likewise.
12413 (struct fork_catchpoint): Inherit from breakpoint.
12414 <base>: Remove.
12415 (struct solib_catchpoint): Inherit from breakpoint.
12416 <~solib_catchpoint>: New.
12417 <base>: Remove.
12418 (dtor_catch_solib): Change to ...
12419 (solib_catchpoint::~solib_catchpoint): ... this.
12420 (breakpoint_hit_catch_solib): Remove reference to base field.
12421 (add_solib_catchpoint): Likewise.
12422 (create_fork_vfork_event_catchpoint): Likewise.
12423 (struct exec_catchpoint): Inherit from breakpoint.
12424 <~exec_catchpoint>: New.
12425 <base>: Remove.
12426 (dtor_catch_exec): Change to ...
12427 (exec_catchpoint::~exec_catchpoint): ... this.
12428 (dtor_watchpoint): Change to ...
12429 (watchpoint::~watchpoint): ... this.
12430 (watch_command_1): Remove reference to base field.
12431 (catch_exec_command_1): Likewise.
12432 (base_breakpoint_dtor): Change to ...
12433 (breakpoint::~breakpoint): ... this.
12434 (base_breakpoint_ops): Remove dtor field value.
12435 (longjmp_bkpt_dtor): Change to ...
12436 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12437 (strace_marker_create_breakpoints_sal): Remove reference to base
12438 field.
12439 (delete_breakpoint): Don't manually call breakpoint destructor.
12440 (create_tracepoint_from_upload): Remove reference to base field.
12441 (trace_pass_set_count): Likewise.
12442 (initialize_breakpoint_ops): Don't initialize
12443 momentary_breakpoint_ops, don't set dtors.
12444 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12445 <~ada_catchpoint>: New.
12446 <base>: Remove.
12447 (create_excep_cond_exprs): Remove reference to base field.
12448 (dtor_exception): Change to ...
12449 (ada_catchpoint::~ada_catchpoint): ... this.
12450 (dtor_catch_exception): Remove.
12451 (dtor_catch_exception_unhandled): Remove.
12452 (dtor_catch_assert): Remove.
12453 (create_ada_exception_catchpoint): Remove reference to base
12454 field.
12455 (initialize_ada_catchpoint_ops): Don't set dtors.
12456 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12457 breakpoint.
12458 <~signal_catchpoint>: New.
12459 <base>: Remove.
12460 (signal_catchpoint_dtor): Change to ...
12461 (signal_catchpoint::~signal_catchpoint): ... this.
12462 (create_signal_catchpoint): Remove reference to base field.
12463 (initialize_signal_catchpoint_ops): Don't set dtor.
12464 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12465 from breakpoint.
12466 <~syscall_catchpoint>: New.
12467 <base>: Remove.
12468 (dtor_catch_syscall): Change to ...
12469 (syscall_catchpoint::~syscall_catchpoint): ... this.
12470 (create_syscall_event_catchpoint): Remove reference to base
12471 field.
12472 (initialize_syscall_catchpoint_ops): Don't set dtor.
12473 * break-catch-throw.c (struct exception_catchpoint): Inherit
12474 from breakpoint.
12475 <~exception_catchpoint>: New.
12476 <base>: Remove.
12477 (dtor_exception_catchpoint): Change to ...
12478 (exception_catchpoint::~exception_catchpoint): ... this.
12479 (handle_gnu_v3_exceptions): Remove reference to base field.
12480 (initialize_throw_catchpoint_ops): Don't set dtor.
12481 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12482 field.
12483 * remote.c (remote_get_tracepoint_status): Likewise.
12484 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12485 * tracefile.c (tracefile_fetch_registers): Likewise.
12486 * tracepoint.c (actions_command): Likewise.
12487 (validate_actionline): Likewise.
12488 (tfind_1): Likewise.
12489 (get_traceframe_location): Likewise.
12490 (find_matching_tracepoint_location): Likewise.
12491 (parse_tracepoint_status): Likewise.
12492 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12493
12494 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12495
12496 * breakpoint.c (struct longjmp_breakpoint): New struct.
12497 (is_tracepoint_type): Change return type to bool.
12498 (is_longjmp_type): New function.
12499 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12500 (set_raw_breakpoint_without_location): Use
12501 new_breakpoint_from_type.
12502 (set_raw_breakpoint): Likewise.
12503
12504 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12505
12506 * breakpoint.c (new_breakpoint_from_type): New function.
12507 (create_breakpoint_sal): Use new_breakpoint_from_type and
12508 unique_ptr.
12509 (create_breakpoint): Likewise.
12510
12511 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12512
12513 * memattr.c (mem_info_command): Rename to ...
12514 (info_mem_command): ... this.
12515 (mem_enable_command): Rename to ...
12516 (enable_mem_command): ... this.
12517 (mem_disable_command): Rename to ...
12518 (disable_mem_command): ... this.
12519 (mem_delete_command): Rename to ...
12520 (delete_mem_command): ... this.
12521 (_initialize_mem): Adjust function names.
12522
12523 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12524
12525 * btrace.c (handle_pt_insn_events): New.
12526 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12527 STATUS. Split into this and ...
12528 (handle_pt_insn_event_flags): ... this.
12529
12530 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12531
12532 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12533 and struct pt_insn.resynced.
12534 * configure: Regenerated.
12535 * config.in: Regenerated.
12536
12537 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12538
12539 * btrace.c (ftrace_find_call_by_number): New function.
12540 (ftrace_new_function): Store objects, not pointers.
12541 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12542 ftrace_new_gap, ftrace_update_function,
12543 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12544 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12545 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12546 btrace_ends_with_single_insn, btrace_call_get): Account for
12547 btrace_thread_info::functions now storing objects.
12548 * btrace.h (struct btrace_thread_info): Add constructor.
12549 (struct btrace_thread_info) <functions>: Make std::vector.
12550 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12551 Initialize with default values.
12552 * record-btrace.c (record_btrace_frame_sniffer): Account for
12553 btrace_thread_info::functions now storing objects.
12554
12555 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12556
12557 * btrace.c: Remove typedef bfun_s.
12558 (ftrace_new_gap): Directly add gaps to the list of gaps.
12559 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12560 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12561 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12562 instead of gdb VEC.
12563
12564 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12565
12566 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12567 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12568 with btrace_thread_info::next_segment and
12569 btrace_thread_info::prev_segment.
12570 * btrace.h: Remove struct btrace_func_link.
12571 (struct btrace_function): Replace pair of function segment pointers
12572 with pair of indices.
12573 * python/py-record-btrace.c (btpy_call_prev_sibling,
12574 btpy_call_next_sibling): Replace references to
12575 btrace_thread_info::segment with btrace_thread_info::next_segment and
12576 btrace_thread_info::prev_segment.
12577 * record-btrace.c (record_btrace_frame_this_id): Use
12578 btrace_find_call_by_number.
12579
12580 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12581
12582 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12583 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12584 btrace_insn_next, btrace_insn_prev): Remove references to
12585 btrace_thread_info::flow.
12586 * btrace.h (struct btrace_function): Remove FLOW.
12587
12588 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12589
12590 * btrace.c (ftrace_find_call_by_number): New function.
12591 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12592 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12593 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12594 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12595 index.
12596 * btrace.h (struct btrace_function): Turn UP into an index.
12597 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12598 as an index.
12599 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12600 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12601 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12602
12603 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12604
12605 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12606 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12607 ftrace_update_function, ftrace_compute_global_level_offset,
12608 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12609 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12610 btrace_insn_end, btrace_is_empty): Remove references to
12611 btrace_thread_info::begin and btrace_thread_info::end.
12612 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12613 (struct btrace_thread_info) <functions>: Adjust comment.
12614 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12615 btrace_thread_info::begin.
12616
12617 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12618
12619 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12620 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12621 ftrace_update_function): Remove arguments that implicitly were always
12622 BTINFO->END.
12623 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12624 Don't pass BTINFO->END.
12625
12626 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12627
12628 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12629 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12630 btrace_find_insn_by_number): Replace function segment pointer with
12631 index.
12632 (btrace_insn_cmp): Simplify.
12633 * btrace.h: (struct btrace_insn_iterator) Rename index to
12634 insn_index. Replace function segment pointer with index into function
12635 segment vector.
12636 * record-btrace.c (record_btrace_call_history): Replace function
12637 segment pointer use with index.
12638 (record_btrace_frame_sniffer): Retrieve function call segment through
12639 vector.
12640 (record_btrace_set_replay): Remove defunc't safety check.
12641
12642 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12643
12644 * btrace.c (btrace_ends_with_single_insn): New function.
12645 (btrace_call_get, btrace_call_number, btrace_call_begin,
12646 btrace_call_end, btrace_call_next, btrace_call_prev,
12647 btrace_find_call_by_number): Use index into call segment vector
12648 instead of pointer.
12649 (btrace_call_cmp): Simplify.
12650 * btrace.h (struct btrace_call_iterator): Replace function call segment
12651 pointer with index into vector.
12652 * record-btrace.c (record_btrace_call_history): Use index instead of
12653 pointer.
12654
12655 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12656
12657 * btrace.c (btrace_insn_begin, btrace_insn_end,
12658 btrace_find_insn_by_number): Add btinfo to iterator.
12659 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12660
12661 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12662
12663 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12664 and save pointers directly.
12665 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12666 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12667 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12668 changed signature of functions.
12669 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12670 (btrace_fetch): Remove code that adds btrace_function pointers to
12671 vector of btrace_functions.
12672 (btrace_clear): Simplify freeing vector of btrace_functions.
12673
12674 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12675
12676 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12677 Replace VEC_* with std::vector functions.
12678 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12679 (struct btrace_thread_info)<functions>: Change type to std::vector.
12680
12681 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12682
12683 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12684 "Removed targets and native configurations" up. Merge duplicate
12685 "New commands" sub-sections. Add "New options" sub-sections.
12686
12687 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12688
12689 * defs.h (copy_integer_to_size): New declaration.
12690 * findvar.c (copy_integer_to_size): New function.
12691 (do_cint_test): New selftest function.
12692 (copy_integer_to_size_test): Likewise.
12693 (_initialize_findvar): Likewise.
12694 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12695 (mips_fbsd_collect_reg): Use raw_collect_integer.
12696 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12697 (mips64_fill_gregset): Use raw_collect_integer
12698 (mips64_fill_fpregset): Use raw_supply_integer.
12699 * regcache.c (regcache::raw_supply_integer): New function.
12700 (regcache::raw_collect_integer): Likewise.
12701 * regcache.h: (regcache::raw_supply_integer): New declaration.
12702 (regcache::raw_collect_integer): Likewise.
12703
12704 2017-05-24 Yao Qi <yao.qi@linaro.org>
12705
12706 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12707 (COMMON_OBS): Add gdbarch-selftests.o.
12708 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12709 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12710 * gdbarch-selftests.c: New file.
12711 * regcache.h (regcache) <~regcache>: Mark it virtual if
12712 GDB_SELF_TEST.
12713 <raw_write>: Likewise.
12714
12715 2017-05-24 Yao Qi <yao.qi@linaro.org>
12716
12717 * regcache.c (current_regcache): Change it to
12718 regcache::current_regcache.
12719 (regcache_observer_target_changed): Update.
12720 (regcache_thread_ptid_changed): Make it a regcache static
12721 method.
12722 (regcache_thread_ptid_changed): Update.
12723 (class regcache_access): New.
12724 (current_regcache_test): Update.
12725 (_initialize_regcache): Update.
12726 * regcache.h: Include forward_list.
12727 (regcache): Declare regcache_thread_ptid_changed and declare
12728 registers_changed_ptid as friend.
12729
12730 2017-05-24 Yao Qi <yao.qi@linaro.org>
12731
12732 * i387-tdep.c (i387_register_to_value): Use register_size
12733 instead of TYPE_LENGTH.
12734 * m68k-tdep.c (m68k_register_to_value): Likewise.
12735
12736 2017-05-24 Yao Qi <yao.qi@linaro.org>
12737
12738 * i387-tdep.c (i387_convert_register_p): Return false if type
12739 code isn't TYPE_CODE_FLT.
12740
12741 2017-05-24 Yao Qi <yao.qi@linaro.org>
12742
12743 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12744 length is 4.
12745 (alpha_register_to_value): Remove type length check.
12746 (alpha_value_to_register): Likewise.
12747
12748 2017-05-24 Yao Qi <yao.qi@linaro.org>
12749
12750 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12751 TYPE_CODE_FLT.
12752
12753 2017-05-24 Yao Qi <yao.qi@linaro.org>
12754
12755 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12756 TYPE_CODE_FLT or not.
12757
12758 2017-05-24 Yao Qi <yao.qi@linaro.org>
12759
12760 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12761 * avr-tdep.c (avr_gdbarch_init): Likewise.
12762 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12763 * cris-tdep.c (cris_gdbarch_init): Likewise.
12764 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12765 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12766 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12768 * mep-tdep.c (mep_gdbarch_init): Likewise.
12769 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12770 * mips-tdep.c (mips_gdbarch_init): Likewise.
12771 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12772 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12773 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12774 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12775 * v850-tdep.c (v850_gdbarch_init): Likewise.
12776
12777 2017-05-24 Yao Qi <yao.qi@linaro.org>
12778
12779 * selftest-arch.c (tests_with_arch): Call registers_changed
12780 and reinit_frame_cache.
12781 * selftest.c (run_self_tests): Likewise.
12782
12783 2017-05-24 Yao Qi <yao.qi@linaro.org>
12784
12785 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12786 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12787
12788 2017-05-24 Yao Qi <yao.qi@linaro.org>
12789
12790 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12791 set_gdbarch_print_insn.
12792
12793 2017-05-24 Yao Qi <yao.qi@linaro.org>
12794
12795 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12796 set_gdbarch_print_insn.
12797
12798 2017-05-24 Yao Qi <yao.qi@linaro.org>
12799
12800 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12801 set_gdbarch_print_insn.
12802 * arc-tdep.c (arc_gdbarch_init): Likewise.
12803 * arch-utils.c: include dis-asm.h.
12804 (default_print_insn): New function.
12805 * arch-utils.h (default_print_insn): Declare.
12806 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12807 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12808 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12809 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12810 * frv-tdep.c (frv_gdbarch_init): Likewise.
12811 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12812 * gdbarch.sh (print_insn): Use default_print_insn.
12813 * gdbarch.c: Regenerated.
12814 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12815 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12816 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12817 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12818 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12819 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12820 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12821 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12822 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12823 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12824 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12825 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12826 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12827 * mt-tdep.c (mt_gdbarch_init): Likewise.
12828 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12829 * nios2-tdep.c (nios2_print_insn): Remove.
12830 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12831 * rx-tdep.c (rx_gdbarch_init): Likewise.
12832 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12833 * score-tdep.c (score_print_insn): Remove.
12834 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12835 * sh-tdep.c (sh_gdbarch_init): Likewise.
12836 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12837 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12838 * tic6x-tdep.c (tic6x_print_insn): Remove.
12839 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12840 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12841 * v850-tdep.c (v850_gdbarch_init): Likewise.
12842 * vax-tdep.c (vax_gdbarch_init): Likewise.
12843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12844 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12845
12846 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12847
12848 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12849 (MIPS_FP0_REGNUM): Remove.
12850 (MIPS_FSR_REGNUM): Remove.
12851 (mips_fbsd_supply_fpregs): Use mips_regnum.
12852 (mips_fbsd_supply_gregs): Likewise.
12853 (mips_fbsd_collect_fpregs): Likewise.
12854 (mips_fbsd_collect_gregs): Likewise.
12855
12856 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12857
12858 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12859 (getpfpregs_supplies): New function.
12860 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12861 getfpregs_supplies.
12862 (mips_fbsd_store_inferior_registers): Likewise.
12863
12864 2017-05-22 Pedro Alves <palves@redhat.com>
12865
12866 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12867 maintainer.
12868
12869 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12870
12871 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12872 (store_register): Likewise.
12873 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12874 (get_decimal_float_return_value): Likewise.
12875 (do_ppc_sysv_return_value): Likewise.
12876 (ppc64_sysv_abi_push_integer): Likewise.
12877 (ppc64_sysv_abi_push_freg): Likewise.
12878 (ppc64_sysv_abi_return_value_base): Likewise.
12879 (ppc64_sysv_abi_return_value): Likewise.
12880 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12881 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12882 * rs6000-nat.c: Likewise.
12883 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12884 (rs6000_value_to_register): Likewise.
12885 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12886
12887 2017-05-21 Tom Tromey <tom@tromey.com>
12888
12889 PR rust/21466:
12890 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12891 arrays as "[T]", not "[T; ]".
12892
12893 2017-05-19 Tom Tromey <tom@tromey.com>
12894
12895 PR rust/21484:
12896 * rust-lang.c (exp_descriptor_rust): New function.
12897 (rust_language_defn): Use it.
12898 * p-lang.c (pascal_language_defn): Update.
12899 * opencl-lang.c (opencl_language_defn): Update.
12900 * objc-lang.c (objc_language_defn): Update.
12901 * m2-lang.c (m2_language_defn): Update.
12902 * language.h (struct language_defn)
12903 <la_watch_location_expression>: New member.
12904 * language.c (unknown_language_defn, auto_language_defn)
12905 (local_language_defn): Update.
12906 * go-lang.c (go_language_defn): Update.
12907 * f-lang.c (f_language_defn): Update.
12908 * d-lang.c (d_language_defn): Update.
12909 * c-lang.h (c_watch_location_expression): Declare.
12910 * c-lang.c (c_watch_location_expression): New function.
12911 (c_language_defn, cplus_language_defn, asm_language_defn)
12912 (minimal_language_defn): Use it.
12913 * breakpoint.c (watch_command_1): Call
12914 la_watch_location_expression.
12915 * ada-lang.c (ada_language_defn): Update.
12916
12917 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12918
12919 PR tui/21482
12920 * gdb_curses.h (NOMACROS): Define.
12921 (NCURSES_NOMACROS): Define.
12922
12923 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12924
12925 PR tui/21482
12926 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12927 arg to char *.
12928 * tui/tui-wingeneral.c (box_win): Likewise.
12929 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12930 (tui_show_source_line): Likewise.
12931 (tui_show_exec_info_content): Likewise.
12932
12933 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12934
12935 * sparc-tdep.c (sparc_structure_return_p)
12936 (sparc_arg_on_registers_p): New functions.
12937 (sparc32_store_arguments): Use them.
12938 * sparc64-tdep.c (sparc64_16_byte_align_p)
12939 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12940 Handle TYPE_CODE_ARRAY.
12941
12942 2017-05-17 Yao Qi <yao.qi@linaro.org>
12943
12944 * cli/cli-decode.c (add_alias_cmd): New function.
12945 * command.h (add_alias_cmd): Declare.
12946 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12947 instead call add_alias_cmd.
12948
12949 2017-05-17 Pedro Alves <palves@redhat.com>
12950
12951 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12952 (nat_makefile_frag): ... this. All references updated.
12953 * configure.ac: Likewise.
12954 * configure.nat: Likewise. Enhance comments.
12955 * configure: Regenerate.
12956
12957 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12958
12959 * procfs.c (procfs_create_inferior): Change prototype to match
12960 definition.
12961
12962 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12963
12964 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12965 C++ compiler warning.
12966
12967 2017-05-12 Tom Tromey <tom@tromey.com>
12968
12969 PR rust/21483:
12970 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12971 recurse, just call value_struct_elt directly.
12972
12973 2017-05-12 Tom Tromey <tom@tromey.com>
12974
12975 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12976 OP_RUST_ARRAY>: Fix.
12977
12978 2017-05-12 Tom Tromey <tom@tromey.com>
12979
12980 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12981
12982 2017-05-09 Yao Qi <yao.qi@linaro.org>
12983
12984 * regcache.c: Include <forward_list>.
12985 (struct regcache_list): Remove.
12986 (current_regcache): Update.
12987 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12988 (regcache_thread_ptid_changed): Likewise.
12989 (registers_changed_ptid): Likewise.
12990 (current_regcache_size): Likewise.
12991
12992 2017-05-09 Yao Qi <yao.qi@linaro.org>
12993
12994 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12995 (current_regcache_size): New function.
12996 (current_regcache_test): New function.
12997 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12998
12999 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13000
13001 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
13002 (print_gp_register_row): Use get_frame_register_value.
13003
13004 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13005
13006 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
13007 (mips_supply_fpregset): Likewise.
13008 (mips64_supply_gregset): Likewise.
13009
13010 2017-05-08 Alan Hayward <alan.hayward@arm.com>
13011
13012 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
13013 regcache->raw_supply_zeroed.
13014
13015 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
13016
13017 * configure.nat: Rearrange 'case' statements to match
13018 host before cpu.
13019
13020 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
13021
13022 * Makefile.in: Remove "@host_makefile_frag@". Add variables
13023 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
13024 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
13025 "@nat_extra_makefile_frag@".
13026 (Makefile): Remove dependency on "@frags@".
13027 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
13028 (data-directory/Makefile): Likewise.
13029 * config/aarch64/linux.mh: Deleted; moved contents to
13030 "gdb/configure.nat".
13031 * config/alpha/alpha-linux.mh: Likewise.
13032 * config/alpha/nbsd.mh: Likewise.
13033 * config/arm/linux.mh: Likewise.
13034 * config/arm/nbsdelf.mh: Likewise.
13035 * config/i386/cygwin.mh: Likewise.
13036 * config/i386/cygwin64.mh: Likewise.
13037 * config/i386/darwin.mh: Likewise.
13038 * config/i386/fbsd.mh: Likewise.
13039 * config/i386/fbsd64.mh: Likewise.
13040 * config/i386/go32.mh: Likewise.
13041 * config/i386/i386gnu.mh: Likewise.
13042 * config/i386/i386sol2.mh: Likewise.
13043 * config/i386/linux.mh: Likewise.
13044 * config/i386/linux64.mh: Likewise.
13045 * config/i386/mingw.mh: Likewise.
13046 * config/i386/mingw64.mh: Likewise.
13047 * config/i386/nbsd64.mh: Likewise.
13048 * config/i386/nbsdelf.mh: Likewise.
13049 * config/i386/nto.mh: Likewise.
13050 * config/i386/obsd.mh: Likewise.
13051 * config/i386/obsd64.mh: Likewise.
13052 * config/i386/sol2-64.mh: Likewise.
13053 * config/ia64/linux.mh: Likewise.
13054 * config/m32r/linux.mh: Likewise.
13055 * config/m68k/linux.mh: Likewise.
13056 * config/m68k/nbsdelf.mh: Likewise.
13057 * config/m68k/obsd.mh: Likewise.
13058 * config/m88k/obsd.mh: Likewise.
13059 * config/mips/fbsd.mh: Likewise.
13060 * config/mips/linux.mh: Likewise.
13061 * config/mips/nbsd.mh: Likewise.
13062 * config/mips/obsd64.mh: Likewise.
13063 * config/pa/linux.mh: Likewise.
13064 * config/pa/nbsd.mh: Likewise.
13065 * config/pa/obsd.mh: Likewise.
13066 * config/powerpc/aix.mh: Likewise.
13067 * config/powerpc/fbsd.mh: Likewise.
13068 * config/powerpc/linux.mh: Likewise.
13069 * config/powerpc/nbsd.mh: Likewise.
13070 * config/powerpc/obsd.mh: Likewise.
13071 * config/powerpc/ppc64-linux.mh: Likewise.
13072 * config/powerpc/spu-linux.mh: Likewise.
13073 * config/s390/linux.mh: Likewise.
13074 * config/sh/nbsd.mh: Likewise.
13075 * config/sparc/fbsd.mh: Likewise.
13076 * config/sparc/linux.mh: Likewise.
13077 * config/sparc/linux64.mh: Likewise.
13078 * config/sparc/nbsd64.mh: Likewise.
13079 * config/sparc/nbsdelf.mh: Likewise.
13080 * config/sparc/obsd64.mh: Likewise.
13081 * config/sparc/sol2.mh: Likewise.
13082 * config/tilegx/linux.mh: Likewise.
13083 * config/vax/nbsdelf.mh: Likewise.
13084 * config/vax/obsd.mh: Likewise.
13085 * config/xtensa/linux.mh: Likewise.
13086 * config/i386/i386gnu.mn: New file, with excerpts from
13087 "config/i386/i386gnu.mh".
13088 * configure: Regenerate.
13089 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
13090 *.mh files under "gdb/config".
13091 * configure.nat: New file, with contents from the
13092 "gdb/config/*/*.mh" files.
13093
13094 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
13095
13096 * btrace.c (btrace_clear): Free insn vector.
13097
13098 2017-05-05 Pedro Alves <palves@redhat.com>
13099
13100 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
13101 * configure: Regenerate.
13102
13103 2017-05-04 Pedro Alves <palves@redhat.com>
13104
13105 * Makefile.in (SFILES): Add progspace-and-thread.c.
13106 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
13107 (COMMON_OBS): Add progspace-and-thread.o.
13108 * breakpoint.c: Include "progspace-and-thread.h".
13109 (update_inserted_breakpoint_locations)
13110 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
13111 Use scoped_restore_current_pspace_and_thread.
13112 (create_std_terminate_master_breakpoint): Use
13113 scoped_restore_current_program_space.
13114 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
13115 (print_breakpoint_location): Use
13116 scoped_restore_current_program_space.
13117 (bp_loc_is_permanent): Use
13118 scoped_restore_current_pspace_and_thread.
13119 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
13120 (download_tracepoint_locations): Use
13121 scoped_restore_current_pspace_and_thread.
13122 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
13123 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
13124 (enum step_over_calls_kind): Moved from inferior.h.
13125 (class scoped_restore_current_thread): New class.
13126 * gdbthread.h (make_cleanup_restore_current_thread): Delete
13127 declaration.
13128 (scoped_restore_current_thread): New class.
13129 * infcmd.c: Include "common/gdb_optional.h".
13130 (continue_1, proceed_after_attach): Use
13131 scoped_restore_current_thread.
13132 (notice_new_inferior): Use scoped_restore_current_thread.
13133 * inferior.c: Include "progspace-and-thread.h".
13134 (restore_inferior, save_current_inferior): Delete.
13135 (add_inferior_command, clone_inferior_command): Use
13136 scoped_restore_current_pspace_and_thread.
13137 * inferior.h (scoped_restore_current_inferior): New class.
13138 * infrun.c: Include "progspace-and-thread.h" and
13139 "common/gdb_optional.h".
13140 (follow_fork_inferior): Use
13141 scoped_restore_current_pspace_and_thread.
13142 (scoped_restore_exited_inferior): New class.
13143 (handle_vfork_child_exec_or_exit): Use
13144 scoped_restore_exited_inferior,
13145 scoped_restore_current_pspace_and_thread,
13146 scoped_restore_current_thread and scoped_restore.
13147 (fetch_inferior_event): Use scoped_restore_current_thread.
13148 * linespec.c (decode_line_full, decode_line_1): Use
13149 scoped_restore_current_program_space.
13150 * mi/mi-main.c: Include "progspace-and-thread.h".
13151 (exec_continue): Use scoped_restore_current_thread.
13152 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
13153 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
13154 * proc-service.c (ps_pglobal_lookup): Use
13155 scoped_restore_current_program_space.
13156 * progspace-and-thread.c: New file.
13157 * progspace-and-thread.h: New file.
13158 * progspace.c (release_program_space, clone_program_space): Use
13159 scoped_restore_current_program_space.
13160 (restore_program_space, save_current_program_space)
13161 (save_current_space_and_thread): Delete.
13162 (switch_to_program_space_and_thread): Moved to
13163 progspace-and-thread.c.
13164 * progspace.h (save_current_program_space)
13165 (save_current_space_and_thread): Delete declarations.
13166 (scoped_restore_current_program_space): New class.
13167 * remote.c (remote_btrace_maybe_reopen): Use
13168 scoped_restore_current_thread.
13169 * symtab.c: Include "progspace-and-thread.h".
13170 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
13171 * thread.c (print_thread_info_1): Use
13172 scoped_restore_current_thread.
13173 (struct current_thread_cleanup): Delete.
13174 (do_restore_current_thread_cleanup)
13175 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
13176 (scoped_restore_current_thread::~scoped_restore_current_thread):
13177 ... this new dtor.
13178 (make_cleanup_restore_current_thread): Rename/convert to ...
13179 (scoped_restore_current_thread::scoped_restore_current_thread):
13180 ... this new ctor.
13181 (thread_apply_all_command): Use scoped_restore_current_thread.
13182 (thread_apply_command): Use scoped_restore_current_thread.
13183 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
13184 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
13185
13186 2017-05-04 Pedro Alves <palves@redhat.com>
13187
13188 * thread.c (make_cleanup_restore_current_thread): Move
13189 find_thread_ptid call before the is_stopped call. Assert that the
13190 thread is found. Replace is_stopped call by checking the thread's
13191 state directly. Remove unnecessary NULL-thread check.
13192
13193 2017-05-04 Pedro Alves <palves@redhat.com>
13194
13195 * corelow.c (thread_section_name): New class.
13196 (get_core_register_section, get_core_siginfo): Use it.
13197
13198 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13199
13200 * corelow.c (sniff_core_bfd): Remove extra semicolon.
13201 (get_core_register_section): Remove xfree of NULL pointer.
13202
13203 2017-05-03 Alan Hayward <alan.hayward@arm.com>
13204
13205 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
13206 * regcache.c (regcache::raw_supply_zeroed): New function.
13207 * regcache.h (regcache::raw_supply_zeroed): New declaration.
13208
13209 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
13210
13211 * gdbarch.sh: Remove commented out definition of
13212 TARGET_CHAR_BIT.
13213 * gdbarch.h: Re-generate.
13214
13215 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
13216
13217 * configure: Regenerate.
13218
13219 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
13220
13221 * solib-target.c (solib_target_relocate_section_addresses):
13222 Remove num_section_bases, num_bases, segment_bases variables.
13223
13224 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13225
13226 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
13227
13228 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13229
13230 * solib-target.c: Include <vector>
13231 (struct lm_info_target) <~lm_info_target>: Remove.
13232 <segment_bases, section_bases>: Change type to
13233 std::vector<CORE_ADDR>.
13234 (library_list_start_segment, library_list_start_section,
13235 library_list_end_library,
13236 solib_target_relocate_section_addresses): Adjust.
13237
13238 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13239
13240 * gdbarch.sh (software_single_step): Change return type to
13241 std::vector<CORE_ADDR>.
13242 * gdbarch.c, gdbarch.h: Re-generate.
13243 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
13244 Adjust.
13245 (arm_deal_with_atomic_sequence_raw): Adjust.
13246 (thumb_get_next_pcs_raw): Adjust.
13247 (arm_get_next_pcs_raw): Adjust.
13248 (arm_get_next_pcs): Adjust.
13249 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
13250 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
13251 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
13252 (alpha_software_single_step): Adjust.
13253 * alpha-tdep.h (alpha_software_single_step): Adjust.
13254 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
13255 * arm-tdep.c (arm_software_single_step): Adjust.
13256 (arm_breakpoint_kind_from_current_state): Adjust.
13257 * arm-tdep.h (arm_software_single_step): Adjust.
13258 * breakpoint.c (insert_single_step_breakpoint): Adjust.
13259 * cris-tdep.c (cris_software_single_step): Adjust.
13260 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
13261 (micromips_deal_with_atomic_sequence): Adjust.
13262 (deal_with_atomic_sequence): Adjust.
13263 (mips_software_single_step): Adjust.
13264 * mips-tdep.h (mips_software_single_step): Adjust.
13265 * moxie-tdep.c (moxie_software_single_step): Adjust.
13266 * nios2-tdep.c (nios2_software_single_step): Adjust.
13267 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
13268 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
13269 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
13270 * s390-linux-tdep.c (s390_software_single_step): Adjust.
13271 * sparc-tdep.c (sparc_software_single_step): Adjust.
13272 * spu-tdep.c (spu_software_single_step): Adjust.
13273 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
13274
13275 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13276
13277 * gdbarch.sh: Use semi-colon as field separator instead of colon.
13278 * gdbarch.h: Re-generate.
13279
13280 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13281
13282 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
13283 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
13284 * python/py-instruction.c, python/py-instruction.h: New file.
13285 * python/py-record.c: Add py-instruction.h include.
13286 (gdbpy_initialize_record): Make gdb.Instruction a super class of
13287 gdb.RecordInstruction.
13288 * python/python-internal.h: Add gdbpy_initialize_instruction
13289 declaration.
13290 * python/python.c (do_start_initialization): Add
13291 gdbpy_initialize_instruction.
13292
13293 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13294
13295 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13296 Remove.
13297 (btrace_func_from_recpy_func): New function.
13298 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13299 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13300 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13301 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13302 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13303 Also, use new helper functions.
13304 (btpy_list_item): Use new helper functions.
13305 (recpy_bt_function_call_history): Use new type name.
13306 (btpy_call_getset): Remove.
13307 (gdbpy_initialize_btrace): Remove code to initialize
13308 gdb.BtraceFunctionCall.
13309 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13310 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13311 recpy_bt_func_prev, recpy_bt_func_next): New export.
13312 * python/py-record.c (recpy_func_type): New static object.
13313 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13314 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13315 recpy_func_next): New function.
13316 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13317 (recpy_func_getset): New static object.
13318 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13319 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13320
13321 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13322
13323 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13324 (btpy_object, btpy_insn_type, btpy_new): Remove.
13325 (btpy_list_object): Use gdb.RecordInstruction type instead of
13326 gdb.BtraceInstruction type.
13327 (btrace_insn_from_recpy_insn): New function.
13328 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13329 btpy_new.
13330 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13331 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13332 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13333 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13334 instead of btpy_object.
13335 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13336 btpy_insn_data, btpy_insn_decode): Rename to ...
13337 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13338 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13339 recpy_bt_insn_decode): This. Also, use new helper functions.
13340 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13341 recpy_insn_type.
13342 (btpy_insn_getset): Remove.
13343 (gdbpy_initialize_btrace): Remove code to initialize
13344 gdb.BtraceInstruction. Use recpy_element_object.
13345 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13346 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13347 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13348 * python/py-record.c (recpy_insn_type): New static object.
13349 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13350 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13351 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13352 New function.
13353 (recpy_insn_getset): New static object.
13354 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13355 * python/py-record.h (recpy_element_object): New typedef.
13356 (recpy_insn_type, recpy_insn_new): New export.
13357
13358 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13359
13360 * py-record-btrace.c (btpy_insn_new): Removed.
13361 (btpy_insn_or_gap_new): New function.
13362 (btpy_insn_error): Removed.
13363 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13364 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13365 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13366 btpy_insn_or_gap_new instead of btpy_insn_new.
13367 (btpy_insn_getset): Remove btpy_insn_error.
13368 * py-record.c (recpy_gap_type): New static object.
13369 (recpy_gap_object): New typedef.
13370 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13371 recpy_gap_reason_string): New function.
13372 (recpy_gap_getset): New static object.
13373 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13374 * py-record.h (recpy_gap_new): New export.
13375
13376 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13377
13378 * python/py-record.c (recpy_ptid): Remove.
13379 (recpy_record_getset): Remove recpy_ptid.
13380
13381 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13382
13383 * btrace.c (btrace_fetch): Set inferior_ptid.
13384 * python/py-record-btrace.c: Add "py-record.h" include.
13385 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13386 recpy_bt_end, recpy_bt_instruction_history,
13387 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13388 in gdb.Record object instead of current ptid.
13389 * python/py-record.c: Include new "py-record.h" file.
13390 (recpy_record_object): Moved to py-record.h.
13391 * python/py-record.h: New file.
13392
13393 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13394
13395 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13396 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13397 indentation.
13398
13399 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13400
13401 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13402 the past maintainers section.
13403
13404 2017-04-28 Yao Qi <yao.qi@linaro.org>
13405
13406 * infcmd.c (get_return_value): Use regcache ctor, and remove
13407 cleanup.
13408
13409 2017-04-28 Yao Qi <yao.qi@linaro.org>
13410 Pedro Alves <palves@redhat.com>
13411
13412 * regcache.c (regcache::regcache): New tag dispatch ctor.
13413 (do_cooked_read): Moved above.
13414 (regcache_dup): Use the tag dispatch ctor..
13415 * regcache.h (regcache): Declare ctor, delete copy ctor and
13416 assignment operator, remove friend regcache_dup.
13417
13418 2017-04-28 Yao Qi <yao.qi@linaro.org>
13419
13420 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13421 call method save instead of regcache_cpy.
13422 * regcache.h (struct regcache): Make regcache_dup a friend.
13423
13424 2017-04-28 Yao Qi <yao.qi@linaro.org>
13425
13426 * regcache.c (struct regcache): Move to regcache.h
13427 (regcache::arch): New method.
13428 (regcache_get_ptid): Update.
13429 (get_regcache_arch): Call arch method.
13430 (get_regcache_aspace): Call method aspace.
13431 (register_buffer): Change it to method.
13432 (regcache_save): Change it to regcache::save.
13433 (regcache_restore): Likewise.
13434 (regcache_cpy_no_passthrough): Remove the declaration.
13435 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13436 (regcache_cpy_no_passthrough): Change it to method
13437 cpy_no_passthrough.
13438 (regcache_register_status): Change it to method
13439 get_register_status.
13440 (regcache_invalidate): Change it to method invalidate.
13441 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13442 (regcache_raw_update): Change it to method raw_update.
13443 (regcache_raw_read): Likewise.
13444 (regcache_raw_read_signed): Likewise.
13445 (regcache_raw_read_unsigned): Likewise.
13446 (regcache_raw_write_signed): Likewise.
13447 (regcache_raw_write_unsigned): Likewise.
13448 (regcache_cooked_read): Likewise.
13449 (regcache_cooked_read_value): Likewise.
13450 (regcache_cooked_read_signed): Likewise.
13451 (regcache_cooked_read_unsigned): Likewise.
13452 (regcache_cooked_write_signed): Likewise.
13453 (regcache_cooked_write_unsigned): Likewise.
13454 (regcache_raw_set_cached_value): Likewise.
13455 (regcache_raw_write): Likewise.
13456 (regcache_cooked_write): Likewise.
13457 (regcache_xfer_part): Likewise.
13458 (regcache_raw_read_part): Likewise.
13459 (regcache_raw_write_part): Likewise.
13460 (regcache_cooked_read_part): Likewise.
13461 (regcache_cooked_write_part): Likewise.
13462 (regcache_raw_supply): Likewise.
13463 (regcache_raw_collect): Likewise.
13464 (regcache_transfer_regset): Likewise.
13465 (regcache_supply_regset): Likewise.
13466 (regcache_collect_regset): Likewise.
13467 (regcache_debug_print_register): Likewise.
13468 (enum regcache_dump_what): Move it to regcache.h.
13469 (regcache_dump): Change it to method dump.
13470 * regcache.h (enum regcache_dump_what): New.
13471 (class regcache): New.
13472 * target.c (target_fetch_registers): Call method
13473 debug_print_register.
13474 (target_store_registers): Likewise.
13475
13476 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13477
13478 * windows-nat.c (struct lm_info_windows): Initialize field.
13479 (windows_make_so): Allocate lm_info_windows with new.
13480 (windows_free_so): Free lm_info_windows with delete.
13481
13482 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13483
13484 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13485 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13486 cleanup.
13487 (darwin_free_so): Free lm_info_darwin with delete.
13488
13489 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13490
13491 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13492 <l_addr_p>: Change type to bool.
13493 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13494 (svr4_free_so): Free lm_info_svr4 with delete.
13495 (svr4_copy_library_list): Replace memcpy with call to copy
13496 constructor.
13497 (library_list_start_library, svr4_default_sos): Allocate
13498 lm_info_svr4 with new.
13499
13500 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13501
13502 * solib-target.c (struct lm_info_target): Add destructor,
13503 initialize fields.
13504 <name>: Change type to std::string.
13505 (library_list_start_library): Allocate lm_info_target with new.
13506 (solib_target_free_library_list): Free lm_info_target with
13507 delete.
13508 (solib_target_current_sos): Adapt to std::string.
13509 (solib_target_free_so): Free lm_info_target with delete.
13510
13511 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13512
13513 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13514 fields.
13515 (frv_current_sos): Allocate lm_info_frv with new.
13516 (frv_relocate_main_executable): Free lm_info_frv with delete,
13517 allocate with new.
13518 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13519
13520 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13521
13522 * solib-frv.c (struct lm_info_frv): Fix indentation.
13523
13524 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13525
13526 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13527 map field.
13528 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13529 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13530 and allocate with new.
13531 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13532
13533 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13534
13535 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13536 <filename, member_name>: Change type to std::string.
13537 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13538 (library_list_start_library): Allocate lm_info_aix with new.
13539 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13540 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13541 with copy constructor.
13542
13543 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13544
13545 * solist.h (struct lm_info): Remove.
13546 (struct lm_info_base): New class.
13547 (struct so_list) <lm_info>: Change type to lm_info_base *.
13548 * nto-tdep.c (struct lm_info): Remove.
13549 (lm_addr): Adjust.
13550 * solib-aix.c (struct lm_info): Rename to ...
13551 (struct lm_info_aix): ... this. Extend lm_info_base.
13552 (lm_info_p): Rename to ...
13553 (lm_info_aix_p): ... this, and adjust.
13554 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13555 solib_aix_parse_libraries, library_list_start_library,
13556 solib_aix_free_library_list, solib_aix_parse_libraries,
13557 solib_aix_get_library_list,
13558 solib_aix_relocate_section_addresses, solib_aix_free_so,
13559 solib_aix_get_section_offsets,
13560 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13561 Adjust.
13562 (struct solib_aix_inferior_data) <library_list>: Adjust.
13563 * solib-darwin.c (struct lm_info): Rename to ...
13564 (struct lm_info_darwin): ... this. Extend lm_info_base.
13565 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13566 * solib-dsbt.c (struct lm_info): Rename to ...
13567 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13568 (struct dsbt_info) <main_executable_lm_info): Adjust.
13569 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13570 dsbt_relocate_section_addresses): Adjust.
13571 * solib-frv.c (struct lm_info): Rename to ...
13572 (struct lm_info_frv): ... this. Extend lm_info_base.
13573 (main_executable_lm_info): Adjust.
13574 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13575 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13576 find_canonical_descriptor_in_load_object,
13577 frv_fdpic_find_canonical_descriptor): Adjust.
13578 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13579 to lm_info_svr4.
13580 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13581 svr4_clear_so, svr4_copy_library_list,
13582 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13583 svr4_current_sos, svr4_fetch_objfile_link_map,
13584 solist_update_incremental): Adjust.
13585 * solib-svr4.h (struct lm_info_svr4): Move here from
13586 solib-svr4.c.
13587 * solib-target.c (struct lm_info): Rename to ...
13588 (struct lm_info_target): ... this. Extend lm_info_base.
13589 (lm_info_p): Rename to ...
13590 (lm_info_target_p): ... this.
13591 (solib_target_parse_libraries, library_list_start_segment,
13592 library_list_start_section, library_list_start_library,
13593 library_list_end_library, solib_target_free_library_list,
13594 solib_target_current_sos, solib_target_free_so,
13595 solib_target_relocate_section_addresses): Adjust.
13596 * windows-nat.c (struct lm_info): Rename to ...
13597 (struct lm_info_windows): ... this. Extend lm_info_base.
13598 (windows_make_so, handle_load_dll, handle_unload_dll,
13599 windows_xfer_shared_libraries): Adjust.
13600
13601 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13602
13603 * solib-darwin.c (struct darwin_so_list): Remove.
13604 (darwin_current_sos): Allocate an so_list object instead of a
13605 darwin_so_list, separately allocate an lm_info object.
13606 (darwin_free_so): Free lm_info.
13607
13608 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13609
13610 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13611 with fprintf_filtered.
13612
13613 2017-04-28 Yao Qi <yao.qi@linaro.org>
13614
13615 * regcache.c (regcache::regcache): New function.
13616 (regcache::~regcache): New function.
13617 (regcache_xmalloc_1): Remove.
13618 (regcache_xmalloc): Call new regcache.
13619 (regcache_xfree): Call delete regcache.
13620 (get_thread_arch_aspace_regcache): Call new regcache.
13621
13622 2017-04-28 Yao Qi <yao.qi@linaro.org>
13623
13624 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13625 lwp instead of ptid_get_lwp.
13626
13627 2017-04-28 Yao Qi <yao.qi@linaro.org>
13628
13629 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13630 lwp_info instead of getting from inferior_ptid.
13631
13632 2017-04-27 Keith Seitz <keiths@redhat.com>
13633
13634 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13635 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13636 (CV_CONVERSION_BADNESS): Define.
13637 (rank_one_type): Remove overly restrictive rvalue reference
13638 rank checks.
13639 Add cv-qualifier checks and subranks for type equality.
13640 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13641 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13642 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13643
13644 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13645
13646 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13647 count when creating the object.
13648
13649 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13650 Ulrich Weigand <uweigand@de.ibm.com>
13651
13652 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13653 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13654 is used in AIX.
13655 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13656 (process_xcoff_symbol): Likewise.
13657 (scan_xcoff_symtab): Likewise.
13658
13659 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13660
13661 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13662 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13663 (ia64_access_reg): Use get_frame_register_unsigned.
13664 (ia64_access_rse_reg): Likewise.
13665 (ia64_libunwind_frame_prev_register): Likewise.
13666
13667 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13668
13669 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13670 * gdbarch.c: Regenerated.
13671 * gdbarch.h: Regenerated.
13672 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13673 visibility external.
13674 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13675 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13676 (enum cfa_how_kind): Move to ...
13677 (struct dwarf2_frame_state_reg_info): Likewise.
13678 (struct dwarf2_frame_state): Likewise.
13679 * dwarf2-frame.h: ... here.
13680 (dwarf2_frame_state_alloc_regs): New declaration.
13681 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13682 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13683
13684 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13685
13686 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13687 regcache_raw_read_unsigned.
13688 (xtensa_pseudo_register_write): Likewise.
13689
13690 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13691
13692 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13693 (nds32_pseudo_register_write): Likewise.
13694
13695 2017-04-25 Yao Qi <yao.qi@linaro.org>
13696
13697 * regcache.c (struct regcache) <readonly_p>: Change its type
13698 to bool.
13699 (regcache_xmalloc_1): Update parameter type and callers update.
13700
13701 2017-04-25 Yao Qi <yao.qi@linaro.org>
13702
13703 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13704 set_gdbarch_wchar_bit.
13705 * arm-tdep.c (arm_gdbarch_init): Likewise.
13706
13707 2017-04-25 Pedro Alves <palves@redhat.com>
13708
13709 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13710 (BothAreRelocatable, memcopy, memmove): Don't define.
13711 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13712 macros.
13713
13714 2017-04-25 Pedro Alves <palves@redhat.com>
13715
13716 * common/common-defs.h: Include "common/poison.h".
13717 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13718 and adjust.
13719 * common/poison.h: New file.
13720 * common/traits.h: Include <type_traits>.
13721 (Not, Or, Requires): New, moved from common/function-view.h.
13722
13723 2017-04-25 Pedro Alves <palves@redhat.com>
13724
13725 * breakpoint.h (struct breakpoint): In-class initialize all
13726 fields. Make boolean fields "bool".
13727 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13728 memset call and initializations no longer necessary.
13729
13730 2017-04-25 Pedro Alves <palves@redhat.com>
13731
13732 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13733 reference.
13734 (pt_btrace_insn): New function.
13735 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13736
13737 2017-04-25 Pedro Alves <palves@redhat.com>
13738
13739 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13740 "base" field and inherit from "bp_location" instead. Add
13741 non-default ctor.
13742 (allocate_location_exception): Use new non-default ctor.
13743 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13744 (init_bp_location): Convert to ...
13745 (bp_location::bp_location): ... this new ctor, and remove memset
13746 call.
13747 (base_breakpoint_allocate_location): Use the new non-default ctor.
13748 * breakpoint.h (bp_location): Now a class. Declare default and
13749 non-default ctors. In-class initialize all members.
13750 (init_bp_location): Remove declaration.
13751
13752 2017-04-25 Pedro Alves <palves@redhat.com>
13753
13754 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13755 assignment operator.
13756
13757 2017-04-24 Yao Qi <yao.qi@linaro.org>
13758
13759 * doublest.c (convert_doublest_to_floatformat): Call
13760 floatformat_totalsize_bytes.
13761
13762 2017-04-22 Tom Tromey <tom@tromey.com>
13763
13764 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13765 ui_out_emit_list.
13766 * stack.c (print_frame): Use ui_out_emit_list.
13767 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13768 ui_out_emit_list.
13769 * mi/mi-main.c (print_one_inferior)
13770 (mi_cmd_data_list_register_names)
13771 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13772 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13773 ui_out_emit_list.
13774 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13775 (mi_output_solib_attribs): Use ui_out_emit_list,
13776 ui_out_emit_tuple.
13777 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13778 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13779 (mi_cmd_stack_list_args, list_args_or_locals): Use
13780 ui_out_emit_list.
13781 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13782 * breakpoint.c (print_solib_event, output_thread_groups): Use
13783 ui_out_emit_list.
13784
13785 2017-04-22 Tom Tromey <tom@tromey.com>
13786
13787 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13788 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13789 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13790
13791 2017-04-22 Tom Tromey <tom@tromey.com>
13792
13793 * tracepoint.c (tvariables_info_1)
13794 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13795
13796 2017-04-22 Tom Tromey <tom@tromey.com>
13797
13798 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13799 annotate_arg_emitter.
13800 * breakpoint.c (print_mention_watchpoint)
13801 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13802 * annotate.h (struct annotate_arg_emitter): New.
13803
13804 2017-04-22 Tom Tromey <tom@tromey.com>
13805
13806 * record-btrace.c (record_btrace_insn_history)
13807 (record_btrace_insn_history_range, record_btrace_call_history)
13808 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13809 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13810 ui_out_emit_tuple.
13811 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13812 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13813 * skip.c (skip_info): Use ui_out_emit_tuple.
13814 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13815 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13816 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13817 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13818 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13819 ui_out_emit_tuple.
13820 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13821 (output_register, mi_cmd_data_read_memory)
13822 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13823 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13824 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13825 Use ui_out_emit_tuple.
13826 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13827 ui_out_emit_tuple.
13828 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13829 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13830 * linux-thread-db.c (info_auto_load_libthread_db): Use
13831 ui_out_emit_tuple.
13832 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13833 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13834 * disasm.c (do_mixed_source_and_assembly_deprecated)
13835 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13836 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13837 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13838 * breakpoint.c (print_one_breakpoint_location)
13839 (print_one_breakpoint): Use ui_out_emit_tuple.
13840 * auto-load.c (print_script, info_auto_load_cmd): Use
13841 ui_out_emit_tuple.
13842 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13843
13844 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13845
13846 * thread.c (print_thread_info_1): Remove dead code.
13847
13848 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13849
13850 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13851 GDB_SELF_TEST.
13852 * arm-tdep.c (selftests::arm_record_test): Likewise.
13853
13854 2017-04-21 Yao Qi <yao.qi@linaro.org>
13855
13856 * regcache.c (regcache_restore): Remove argument 2. Replace
13857 argument 3 with regcache. Get register status from
13858 src->register_status and get register contents from
13859 register_buffer (src, regnum).
13860 (regcache_cpy): Update.
13861
13862 2017-04-19 Pedro Alves <palves@redhat.com>
13863
13864 * gdbthread.h (thread): Add missing closing parenthesis in
13865 comment.
13866
13867 2017-04-19 Pedro Alves <palves@redhat.com>
13868
13869 * common/refcounted-object.h: New file.
13870 * gdbthread.h: Include "common/refcounted-object.h".
13871 (thread_info): Inherit from refcounted_object and add comments.
13872 (thread_info::incref, thread_info::decref)
13873 (thread_info::m_refcount): Delete.
13874 (thread_info::deletable): Use the refcounted_object::refcount()
13875 method.
13876 * inferior.c (current_inferior_): Add comment.
13877 (set_current_inferior): Increment/decrement refcounts.
13878 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13879 not-deletable instead of comparing with the current inferior.
13880 (initialize_inferiors): Increment the initial inferior's refcount.
13881 * inferior.h (struct inferior): Forward declare.
13882 Include "common/refcounted-object.h".
13883 (current_inferior, set_current_inferior): Move declaration to
13884 before struct inferior's definition, and fix comment.
13885 (inferior): Inherit from refcounted_object. Add comments.
13886 * thread.c (switch_to_thread_no_regs): Reference the thread's
13887 inferior pointer directly instead of doing a ptid lookup.
13888 (switch_to_no_thread): New function.
13889 (switch_to_thread(thread_info *)): New function, factored out
13890 from ...
13891 (switch_to_thread(ptid_t)): ... this.
13892 (restore_current_thread): Delete.
13893 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13894 fields, and add 'inf' field.
13895 (do_restore_current_thread_cleanup): Check whether old->inf is
13896 alive instead of looking up an inferior by ptid. Use
13897 switch_to_thread and switch_to_no_thread.
13898 (restore_current_thread_cleanup_dtor): Use old->inf directly
13899 instead of lookup up an inferior by id. Decref the inferior.
13900 Don't restore 'removable'.
13901 (make_cleanup_restore_current_thread): Same the inferior pointer
13902 in old, instead of the inferior number. Incref the inferior.
13903 Don't save/clear 'removable'.
13904
13905 2017-04-19 Pedro Alves <palves@redhat.com>
13906
13907 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13908 unittests/scoped_restore-selftests.c.
13909 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13910 * common/scoped_restore.h (scoped_restore_base): Make "class".
13911 (scoped_restore_base::release): New public method.
13912 (scoped_restore_base::scoped_restore_base): New protected ctor.
13913 (scoped_restore_base::m_saved_var): New protected field.
13914 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13915 scoped_restore_base base class instead of m_saved_var directly.
13916 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13917 (scoped_restore_tmpl::scoped_restore_tmpl(const
13918 scoped_restore_tmpl<T>&)): Likewise.
13919 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13920 method.
13921 (scoped_restore_tmpl::saved_var): New method.
13922 (scoped_restore_tmpl::m_saved_var): Delete.
13923 * inferior.h (inferior::detaching): Now a bool.
13924 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13925 cleanup.
13926 * unittests/scoped_restore-selftests.c: New file.
13927
13928 2017-04-19 Pedro Alves <palves@redhat.com>
13929
13930 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13931 Re-sort in alphabetic order.
13932
13933 2017-04-18 Pedro Alves <palves@redhat.com>
13934
13935 * xml-support.c (obstack_xml_printf): Delete.
13936 * xml-support.h (obstack_xml_printf): Delete.
13937
13938 2017-04-18 Pedro Alves <palves@redhat.com>
13939
13940 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13941 vdebug, verror, body_text, start_element, end_element, name,
13942 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13943 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13944 is_xinclude>: Make private and add m_ prefix.
13945 (gdb_xml_parser::body_text): New method, based on ...
13946 (gdb_xml_body_text): ... this. Adjust.
13947 (gdb_xml_parser::vdebug): New method, based on ...
13948 (gdb_xml_debug): ... this. Adjust.
13949 (gdb_xml_parser::verror): New method, based on ...
13950 (gdb_xml_error): ... this. Adjust.
13951 (gdb_xml_parser::start_element): New method, based on ...
13952 (gdb_xml_start_element): ... this. Adjust.
13953 (gdb_xml_start_element_wrapper): Defer to
13954 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13955 (gdb_xml_parser::end_element): New method, based on ...
13956 (gdb_xml_end_element_wrapper): ... this. Adjust.
13957 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13958 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13959 (gdb_xml_parser::use_dtd): New method, based on ...
13960 (gdb_xml_use_dtd): ... this. Adjust.
13961 (gdb_xml_parser::parse): New method, based on ...
13962 (gdb_xml_parse): ... this. Adjust.
13963 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13964 (xinclude_start_include): Adjust to call the parser's name method.
13965 (xml_xinclude_default, xml_xinclude_start_doctype)
13966 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13967 method.
13968 (xml_process_xincludes): Adjust to call parser methods.
13969 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13970 declarations.
13971
13972 2017-04-18 Pedro Alves <palves@redhat.com>
13973
13974 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13975 gdb::optional<std::string>.
13976 * xml-support.c: Include <string>.
13977 (scope_level::scope_level(scope_level &&))
13978 (scope_level::~scope_level): Delete.
13979 (scope_level::body): Now a std::string.
13980 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13981 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13982 parameter.
13983 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13984 (xinclude_parsing_data::output): Now a std::string reference.
13985 (xinclude_start_include): Adjust.
13986 (xml_xinclude_default): Adjust.
13987 (xml_process_xincludes): Add 'output' parameter, and return bool.
13988 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13989 and return bool.
13990 * xml-tdesc.c: Include <unordered_map> and <string>.
13991 (tdesc_xml_cache): Delete.
13992 (tdesc_xml_cache_s): Delete.
13993 (xml_cache): Now an std::unordered_map.
13994 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13995 (target_fetch_description_xml): Change return type to
13996 gdb::optional<std::string>, and adjust.
13997 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13998 (target_fetch_description_xml): Change return type to
13999 gdb::optional<std::string>.
14000
14001 2017-04-18 Pedro Alves <palves@redhat.com>
14002
14003 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14004 unittests/optional-selftests.c.
14005 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
14006 * unittests/optional-selftests.c: New file.
14007 * unittests/optional/assignment/1.cc: New file.
14008 * unittests/optional/assignment/2.cc: New file.
14009 * unittests/optional/assignment/3.cc: New file.
14010 * unittests/optional/assignment/4.cc: New file.
14011 * unittests/optional/assignment/5.cc: New file.
14012 * unittests/optional/assignment/6.cc: New file.
14013 * unittests/optional/assignment/7.cc: New file.
14014 * unittests/optional/cons/copy.cc: New file.
14015 * unittests/optional/cons/default.cc: New file.
14016 * unittests/optional/cons/move.cc: New file.
14017 * unittests/optional/cons/value.cc: New file.
14018 * unittests/optional/in_place.cc: New file.
14019 * unittests/optional/observers/1.cc: New file.
14020 * unittests/optional/observers/2.cc: New file.
14021
14022 2017-04-18 Pedro Alves <palves@redhat.com>
14023
14024 * common/gdb_optional.h: Include common/traits.h.
14025 (in_place_t): New type.
14026 (in_place): New constexpr variable.
14027 (optional::optional): Remove member initialization of
14028 m_instantiated.
14029 (optional::optional(in_place_t...)): New constructor.
14030 (optional::~optional): Use reset.
14031 (optional::optional(const optional&)): New.
14032 (optional::optional(const optional&&)): New.
14033 (optional::optional(T &)): New.
14034 (optional::optional(T &&)): New.
14035 (operator::operator=(const optional &)): New.
14036 (operator::operator=(optional &&)): New.
14037 (operator::operator= (const T &))
14038 (operator::operator= (T &&))
14039 (operator::emplace (Args &&... args)): Return a T&. Use reset.
14040 (operator::reset): New.
14041 (operator::m_instantiated):: Add in-class initializer.
14042 * common/traits.h: Include <type_traits>.
14043 (struct And): New types.
14044
14045 2017-04-18 Pedro Alves <palves@redhat.com>
14046
14047 * xml-support.c: Include <vector>.
14048 (scope_level::scope_level(const gdb_xml_element *))
14049 (scope_level::scope_level(scope_level&&)): New.
14050 (scope_level::~scope_level): New.
14051 (scope_level_s): Delete.
14052 (gdb_xml_parser::scopes): Now a std::vector.
14053 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
14054 Use std::vector.
14055 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
14056 scope cleanup code.
14057 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
14058 of the scopes member. Use std::vector::emplace_back.
14059
14060 2017-04-18 Pedro Alves <palves@redhat.com>
14061
14062 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
14063 a bool.
14064 (gdb_xml_end_element): Change type of first parameter.
14065 (gdb_xml_cleanup): Rename to ...
14066 (gdb_xml_parser::~gdb_xml_parser): ... this.
14067 (gdb_xml_create_parser_and_cleanup): Delete with ...
14068 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
14069 to this new ctor.
14070 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
14071 using gdb_xml_create_parser_and_cleanup.
14072 (xinclude_parsing_data): Add ctor/dtor.
14073 (xml_xinclude_cleanup): Delete.
14074 (xml_process_xincludes): Create a local xinclude_parsing_data
14075 instead of heap-allocating one. Create a local gdb_xml_parser
14076 instead of heap-allocating one with
14077 gdb_xml_create_parser_and_cleanup.
14078
14079 2017-04-18 John Baldwin <jhb@FreeBSD.org>
14080
14081 PR threads/20743
14082 * fbsd-nat.c (resume_one_thread_cb): Remove.
14083 (resume_all_threads_cb): Remove.
14084 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
14085 iterate_over_threads.
14086
14087 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14088
14089 * NEWS: Create a new section for the next release branch.
14090 Rename the section of the current branch, now that it has
14091 been cut.
14092
14093 2017-04-17 Joel Brobecker <brobecker@adacore.com>
14094
14095 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
14096 * version.in: Bump version to 8.0.50.DATE-git.
14097
14098 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
14099
14100 PR gdb/21385
14101 * windows-nat.c (windows_create_inferior): Declare 'allargs'
14102 independently of the host, and fix build breakage on Cygwin.
14103
14104 2017-04-13 Pedro Alves <palves@redhat.com>
14105
14106 * inferior.c (free_inferior): Convert to ...
14107 (inferior::~inferior): ... this dtor.
14108 (inferior::inferior): New ctor, factored out from ...
14109 (add_inferior_silent): ... here. Allocate the inferior with a new
14110 expression.
14111 (delete_inferior): Call delete instead of free_inferior.
14112 * inferior.h (gdb_environ, continuation): Forward declare.
14113 (inferior): Now a class. Add in-class initialization to all
14114 members. Make boolean fields bool, except 'detaching'.
14115 (inferior::inferior): New explicit ctor.
14116 (inferior::~inferior): New.
14117
14118 2017-04-13 Pedro Alves <palves@redhat.com>
14119
14120 * inferior.c (init_inferior_list): Delete.
14121 * inferior.h (init_inferior_list): Delete.
14122
14123 2017-04-13 Pedro Alves <palves@redhat.com>
14124
14125 PR threads/13217
14126 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
14127 (top level): Call it twice, with different thread sets.
14128
14129 2017-04-13 Pedro Alves <palves@redhat.com>
14130
14131 * thread.c: Include <algorithm>.
14132 (thread_array_cleanup): Delete.
14133 (scoped_inc_dec_ref): New class.
14134 (live_threads_count): New function.
14135 (set_thread_refcount): Delete.
14136 (tp_array_compar_ascending): Now a bool.
14137 (tp_array_compar): Convert to a std::sort comparison function.
14138 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
14139 and live_threads_count.
14140
14141 2017-04-13 Pedro Alves <palves@redhat.com>
14142
14143 * infrun.c (follow_fork_inferior): Also switch the current
14144 inferior.
14145
14146 2017-04-13 Pedro Alves <palves@redhat.com>
14147
14148 * breakpoint.c (watch_command_1): Save watchpoint-frame info
14149 before calling create_internal_breakpoint.
14150
14151 2017-04-13 Pedro Alves <palves@redhat.com>
14152
14153 * fork-child.c (execv_argv): New class.
14154 (breakup_args): Refactored as ...
14155 (execv_argv::init_for_no_shell): .. this method of execv_argv.
14156 Copy arguments to storage and replace separators with NULL
14157 terminators in place.
14158 (escape_bang_in_quoted_argument): Adjust to return bool.
14159 (execv_argv::execv_argv): New ctor.
14160 (execv_argv::init_for_shell): New method, factored out from
14161 fork_inferior. Don't strdup strings into the vector.
14162 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
14163 Remove free_vector_argv call.
14164
14165 2017-04-13 Yao Qi <yao.qi@linaro.org>
14166
14167 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
14168 tdep->rx_psw_type.
14169
14170 2017-04-13 Yao Qi <yao.qi@linaro.org>
14171
14172 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
14173 * rx-tdep.c (rx_gdbarch_init): Likewise.
14174
14175 2017-04-13 Pedro Alves <palves@redhat.com>
14176
14177 * breakpoint.h (struct breakpoint): Reindent.
14178
14179 2017-04-13 Pedro Alves <palves@redhat.com>
14180
14181 * breakpoint.c (bp_location): Rename to ...
14182 (bp_locations): ... this. All references updated.
14183 (bp_location_count): Rename to ...
14184 (bp_locations_count): ... this. All references updated.
14185 (bp_location_placed_address_before_address_max): Rename to ...
14186 (bp_locations_placed_address_before_address_max): ... this. All
14187 references updated.
14188 (bp_location_shadow_len_after_address_max): Rename to ...
14189 (bp_locations_shadow_len_after_address_max): ... this. All
14190 references updated.
14191 (bp_location_compare_addrs): Rename to ...
14192 (bp_locations_compare_addrs): ... this. All references updated.
14193 (bp_location_compare):Rename to ...
14194 (bp_locations_compare): ... this. All references updated.
14195 (bp_location_target_extensions_update): Rename to ...
14196 (bp_locations_target_extensions_update): ... this. All references
14197 updated.
14198
14199 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14200
14201 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
14202 * common/common.m4: Check headers 'termios.h', 'termio.h' and
14203 'sgtty.h'.
14204 * common/gdb_termios.h: New file, with parts of "terminal.h".
14205 * inflow.c: Include "gdb_termios.h".
14206 * ser-unix.c: Include "gdb_termios.h".
14207 * terminal.h: Move terminal-related defines to
14208 "common/gdb_termios.h".
14209
14210 2017-04-12 Tom Tromey <tom@tromey.com>
14211
14212 * probe.c (parse_probes): Update.
14213 * location.h (delete_event_location): Don't declare.
14214 (event_location_deleter::operator()): Update.
14215 * location.c (event_location_deleter::operator()): Rename from
14216 delete_event_location.
14217 * linespec.h (linespec_result) <location>: Change type to
14218 event_location_up.
14219 * linespec.c (canonicalize_linespec, event_location_to_sals)
14220 (decode_objc): Update.
14221 (linespec_result): Don't call delete_event_location.
14222 * breakpoint.c (create_breakpoints_sal)
14223 (bkpt_probe_create_sals_from_location)
14224 (strace_marker_create_sals_from_location): Update.
14225
14226 2017-04-12 Tom Tromey <tom@tromey.com>
14227
14228 * linespec.h (struct linespec_result): Add constructor and
14229 destructor.
14230 (init_linespec_result, destroy_linespec_result)
14231 (make_cleanup_destroy_linespec_result): Don't declare.
14232 * linespec.c (init_linespec_result): Remove.
14233 (linespec_result::~linespec_result): Rename from
14234 destroy_linespec_result. Update.
14235 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
14236 Remove.
14237 * breakpoint.c (create_breakpoint, break_range_command)
14238 (decode_location_default): Update.
14239 * ax-gdb.c (agent_command_1): Update.
14240
14241 2017-04-12 Tom Tromey <tom@tromey.com>
14242
14243 * remote.c (remote_download_tracepoint): Update.
14244 * python/py-breakpoint.c (bppy_get_location): Update.
14245 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
14246 (gdbscm_breakpoint_location): Update.
14247 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
14248 * breakpoint.h (struct breakpoint) <location, location_range_end>:
14249 Change type to event_location_up.
14250 * breakpoint.c (create_overlay_event_breakpoint)
14251 (create_longjmp_master_breakpoint)
14252 (create_std_terminate_master_breakpoint)
14253 (create_exception_master_breakpoint)
14254 (breakpoint_event_location_empty_p, print_breakpoint_location)
14255 (print_one_breakpoint_location, create_thread_event_breakpoint)
14256 (init_breakpoint_sal, create_breakpoint)
14257 (print_recreate_ranged_breakpoint, break_range_command)
14258 (init_ada_exception_breakpoint, say_where): Update.
14259 (base_breakpoint_dtor): Don't call delete_event_location.
14260 (bkpt_print_recreate, tracepoint_print_recreate)
14261 (dprintf_print_recreate, update_static_tracepoint)
14262 (breakpoint_re_set_default): Update.
14263
14264 2017-04-12 Tom Tromey <tom@tromey.com>
14265
14266 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
14267 type of "to_do". Update.
14268 (compute_stack_depth): Use std::vector.
14269
14270 2017-04-12 Tom Tromey <tom@tromey.com>
14271
14272 * printcmd.c (find_instruction_backward): Use std::vector.
14273
14274 2017-04-12 Tom Tromey <tom@tromey.com>
14275
14276 * symfile.c (objfilep): Remove typedef.
14277 (reread_symbols): Use a std::vector.
14278
14279 2017-04-12 Tom Tromey <tom@tromey.com>
14280
14281 * mi/mi-main.c (exec_direction_forward): Remove.
14282 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
14283 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
14284 scoped_restore.
14285 * guile/guile.c (guile_repl_command, guile_command)
14286 (gdbscm_execute_gdb_command): Use scoped_restore.
14287 * go-exp.y (go_parse): Use scoped_restore.
14288 * d-exp.y (d_parse): Use scoped_restore.
14289 * cli/cli-decode.c (cmd_func): Use scoped_restore.
14290 * c-exp.y (c_parse): Use scoped_restore.
14291
14292 2017-04-12 Tom Tromey <tom@tromey.com>
14293
14294 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14295 (mi_parse): Update return type.
14296 (mi_parse_free): Remove.
14297 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14298 (mi_parse::~mi_parse): Rename from mi_parse_free.
14299 (mi_parse_cleanup): Remove.
14300 (mi_parse): Return a unique_ptr. Use new.
14301 * mi/mi-main.c (mi_execute_command): Update.
14302
14303 2017-04-12 Tom Tromey <tom@tromey.com>
14304
14305 * location.c (explicit_location_lex_one): Return a
14306 unique_xmalloc_ptr.
14307 (string_to_explicit_location): Update. Remove cleanups.
14308
14309 2017-04-12 Tom Tromey <tom@tromey.com>
14310
14311 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14312 (compare_value_and_voffset): Change type. Update.
14313 (compute_vtable_size): Change type of "offset_vec".
14314 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14315 (gnuv3_get_typeid): Remove extraneous declaration.
14316
14317 2017-04-12 Tom Tromey <tom@tromey.com>
14318
14319 * charset.h (wchar_iterator): Fix comment.
14320
14321 2017-04-12 Tom Tromey <tom@tromey.com>
14322
14323 * charset.c (iconv_wrapper): New class.
14324 (cleanup_iconv): Remove.
14325 (convert_between_encodings): Use it.
14326
14327 2017-04-12 Tom Tromey <tom@tromey.com>
14328
14329 * symfile.h (increment_reading_symtab): Update type.
14330 * symfile.c (decrement_reading_symtab): Remove.
14331 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14332 * psymtab.c (psymtab_to_symtab): Update.
14333 * dwarf2read.c (dw2_instantiate_symtab): Update.
14334
14335 2017-04-12 Tom Tromey <tom@tromey.com>
14336
14337 * jit.c (struct jit_reader): Declare separately. Add constructor
14338 and destructor. Change type of "handle".
14339 (loaded_jit_reader): Define separately.
14340 (jit_reader_load): Update. New "new".
14341 (jit_reader_unload_command): Use "delete".
14342 * gdb-dlfcn.h (struct dlclose_deleter): New.
14343 (gdb_dlhandle_up): New typedef.
14344 (gdb_dlopen, gdb_dlsym): Update types.
14345 (gdb_dlclose): Remove.
14346 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14347 (gdb_dlsym): Change type of "handle".
14348 (make_cleanup_dlclose): Remove.
14349 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14350 * compile/compile-c-support.c (load_libcc): Update.
14351
14352 2017-04-12 Tom Tromey <tom@tromey.com>
14353
14354 * symtab.h (find_pcs_for_symtab_line): Change return type.
14355 * symtab.c (find_pcs_for_symtab_line): Change return type.
14356 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14357 type of "vec". Update.
14358 (ltpy_get_pcs_for_line): Update.
14359 * linespec.c (decode_digits_ordinary): Update.
14360
14361 2017-04-12 Tom Tromey <tom@tromey.com>
14362
14363 * tracepoint.c (actions_command): Update.
14364 * python/python.c (python_command, python_interactive_command):
14365 Update.
14366 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14367 * guile/guile.c (guile_command): Update.
14368 * defs.h (read_command_lines, read_command_lines_1): Return
14369 command_line_up.
14370 (command_lines_deleter): New struct.
14371 (command_line_up): New typedef.
14372 * compile/compile.c (compile_code_command)
14373 (compile_print_command): Update.
14374 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14375 command_line_up.
14376 (make_cleanup_free_command_lines): Remove.
14377 * cli/cli-script.c (get_command_line, read_command_lines_1)
14378 (copy_command_lines): Return command_line_up.
14379 (while_command, if_command, read_command_lines, define_command)
14380 (document_command): Update.
14381 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14382 Remove.
14383 * breakpoint.h (breakpoint_set_commands): Change type of
14384 "commands".
14385 * breakpoint.c (breakpoint_set_commands): Change type of
14386 "commands". Update.
14387 (do_map_commands_command, update_dprintf_command_list)
14388 (create_tracepoint_from_upload): Update.
14389
14390 2017-04-12 Tom Tromey <tom@tromey.com>
14391
14392 * tracepoint.c (scope_info): Update.
14393 * spu-tdep.c (spu_catch_start): Update.
14394 * python/python.c (gdbpy_decode_line): Update.
14395 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14396 * python/py-breakpoint.c (bppy_init): Update.
14397 * probe.c (parse_probes): Update.
14398 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14399 * location.h (event_location_deleter): New struct.
14400 (event_location_up): New typedef.
14401 (new_linespec_location, new_address_location, new_probe_location)
14402 (new_explicit_location, copy_event_location)
14403 (string_to_event_location, string_to_event_location_basic)
14404 (string_to_explicit_location): Update return type.
14405 (make_cleanup_delete_event_location): Remove.
14406 * location.c (new_linespec_location, new_address_location)
14407 (new_probe_location, new_explicit_location, copy_event_location):
14408 Return event_location_up.
14409 (delete_event_location_cleanup)
14410 (make_cleanup_delete_event_location): Remove.
14411 (string_to_explicit_location, string_to_event_location_basic)
14412 (string_to_event_location): Return event_location_up.
14413 * linespec.c (canonicalize_linespec, event_location_to_sals)
14414 (decode_line_with_current_source)
14415 (decode_line_with_last_displayed, decode_objc): Update.
14416 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14417 * completer.c (location_completer): Update.
14418 * cli/cli-cmds.c (edit_command, list_command): Update.
14419 * breakpoint.c (create_overlay_event_breakpoint)
14420 (create_longjmp_master_breakpoint)
14421 (create_std_terminate_master_breakpoint)
14422 (create_exception_master_breakpoint)
14423 (create_thread_event_breakpoint): Update.
14424 (init_breakpoint_sal): Update. Remove some dead code.
14425 (create_breakpoint_sal): Change type of "location". Update.
14426 (create_breakpoints_sal, create_breakpoint, break_command_1)
14427 (dprintf_command, break_range_command, until_break_command)
14428 (init_ada_exception_breakpoint)
14429 (strace_marker_create_sals_from_location)
14430 (update_static_tracepoint, trace_command, ftrace_command)
14431 (strace_command, create_tracepoint_from_upload): Update.
14432 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14433 * ax-gdb.c (agent_command_1): Update.
14434
14435 2017-04-12 Pedro Alves <palves@redhat.com>
14436
14437 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14438 * configure.tgt: Handle i[34567]86-*-go32* and
14439 i[34567]86-*-msdosdjgpp*.
14440 * i386-tdep.c (i386_svr4_reg_to_regnum):
14441 Make extern.
14442 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14443 i386-go32-tdep.c.
14444 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14445 * i386-go32-tdep.c: New file.
14446 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14447 declarations.
14448
14449 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14450
14451 * aix-thread.c (pd_status2str): Change return type to const char *.
14452
14453 2017-04-12 Pedro Alves <palves@redhat.com>
14454
14455 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14456 calls to set_gdbarch_gnu_triplet_regexp.
14457
14458 2017-04-12 Pedro Alves <palves@redhat.com>
14459
14460 PR gdb/21323
14461 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14462 New enum value.
14463 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14464 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14465 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14466 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14467 * gdbarch.h, gdbarch.c: Regenerate.
14468 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14469 gdbarch_wchar_bit and gdbarch_wchar_signed.
14470 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14471 * arm-tdep.c (arm_gdbarch_init): Likewise.
14472 * avr-tdep.c (avr_gdbarch_init): Likewise.
14473 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14474 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14475 * i386-tdep.c (i386_go32_init_abi): Likewise.
14476 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14477 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14478 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14479 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14480 * sh-tdep.c (sh_gdbarch_init): Likewise.
14481 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14482 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14483 * windows-tdep.c (windows_init_abi): Likewise.
14484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14485
14486 2017-04-12 Pedro Alves <palves@redhat.com>
14487
14488 PR c++/21323
14489 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14490 cplus_primitive_type_char32_t>: New enum values.
14491 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14492 and cplus_primitive_type_char32_t.
14493 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14494 32, use the archtecture's built-in type for char16_t and char32_t,
14495 respectively. Otherwise, fallback to init_integer_type as before,
14496 but make the type unsigned, and issue a complaint.
14497 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14498
14499 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14500
14501 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14502 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14503
14504 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14505
14506 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14507 'const char *'.
14508
14509 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14510
14511 * common/common-utils.c (free_vector_argv): New function.
14512 * common/common-utils.h: Include <vector>.
14513 (free_vector_argv): New prototype.
14514 * darwin-nat.c (darwin_create_inferior): Rewrite function
14515 prototype in order to constify "exec_file" and accept a
14516 "std::string" for "allargs".
14517 * fork-child.c: Include <vector>.
14518 (breakup_args): Rewrite function, using C++.
14519 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14520 and accept "std::string" for "allargs". Update the code to
14521 calculate "argv" based on "allargs". Update calls to "exec_fun"
14522 and "execvp".
14523 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14524 order to constify "exec_file" and accept a "std::string" for
14525 "allargs".
14526 * go32-nat.c (go32_create_inferior): Likewise.
14527 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14528 * infcmd.c (run_command_1): Constify "exec_file". Use
14529 "std::string" for inferior arguments.
14530 * inferior.h (fork_inferior): Update prototype.
14531 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14532 prototype in order to constify "exec_file" and accept a
14533 "std::string" for "allargs".
14534 * nto-procfs.c (procfs_create_inferior): Likewise.
14535 * procfs.c (procfs_create_inferior): Likewise.
14536 * remote-sim.c (gdbsim_create_inferior): Likewise.
14537 * remote.c (extended_remote_run): Update code to accept
14538 "std::string" as argument.
14539 (extended_remote_create_inferior): Rewrite function prototype in
14540 order to constify "exec_file" and accept a "std::string" for
14541 "allargs".
14542 * rs6000-nat.c (super_create_inferior): Likewise.
14543 (rs6000_create_inferior): Likewise.
14544 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14545 * windows-nat.c (windows_create_inferior): Likewise.
14546
14547 2017-04-11 Pedro Alves <palves@redhat.com>
14548
14549 * thread.c: Fix whitespace throughout.
14550
14551 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14552
14553 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14554
14555 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14556
14557 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14558
14559 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14560
14561 PR gdb/21364
14562 * osdata.c (info_osdata): Check if 'type' is an empty string
14563 instead of NULL.
14564
14565 2017-04-10 Pedro Alves <palves@redhat.com>
14566
14567 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14568 (ptid_to_global_thread_id, in_thread_list)
14569 (do_captured_list_thread_ids, set_resumed, set_running)
14570 (set_executing, set_stop_requested, finish_thread_state)
14571 (validate_registers_access, can_access_registers_ptid)
14572 (print_thread_info_1, switch_to_thread)
14573 (do_restore_current_thread_cleanup)
14574 (make_cleanup_restore_current_thread, thread_command)
14575 (thread_name_command): Use operator== instead of ptid_equal.
14576
14577 2017-04-10 Pedro Alves <palves@redhat.com>
14578
14579 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14580 (current_thread_cleanup_chain): Delete.
14581 (restore_current_thread_cleanup_dtor)
14582 (make_cleanup_restore_current_thread): Remove references to
14583 current_thread_cleanup_chain.
14584
14585 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14586
14587 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14588 REG_UNKNOWN.
14589
14590 2017-04-10 Yao Qi <yao.qi@linaro.org>
14591
14592 PR gdb/19942
14593 * gdbthread.h (thread_info::deletable): New method.
14594 (thread_info::incref): New method.
14595 (thread_info::decref): New method.
14596 (thread_info::refcount): Move it to private.
14597 * infrun.c (save_stop_context): Call inc_refcount.
14598 (release_stop_context_cleanup): Likewise.
14599 * thread.c (set_thread_exited): New function.
14600 (init_thread_list): Delete "tp" only it is deletable, otherwise
14601 call set_thread_exited.
14602 (delete_thread_1): Call set_thread_exited.
14603 (current_thread_cleanup) <inferior_pid>: Remove.
14604 <thread>: New field.
14605 (restore_current_thread_ptid_changed): Removed.
14606 (do_restore_current_thread_cleanup): Adjust.
14607 (restore_current_thread_cleanup_dtor): Don't call
14608 find_thread_ptid.
14609 (set_thread_refcount): Use dec_refcount.
14610 (make_cleanup_restore_current_thread): Adjust.
14611 (thread_apply_all_command): Call inc_refcount.
14612 (_initialize_thread): Don't call
14613 observer_attach_thread_ptid_changed.
14614
14615 2017-04-10 Yao Qi <yao.qi@linaro.org>
14616
14617 * thread.c (delete_thread_1): Hoist code on marking thread as
14618 exited.
14619
14620 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14621
14622 * windows-nat.c (windows_detach): Initialize ptid with
14623 minus_one_ptid.
14624
14625 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14626
14627 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14628
14629 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14630
14631 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14632 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14633 (bfin_pseudo_register_write): Likewise
14634
14635 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14636
14637 * common/ptid.h (struct ptid): Change to...
14638 (class ptid_t): ... this.
14639 <ptid_t>: New constructors.
14640 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14641 matches>: New methods.
14642 <make_null, make_minus_one>: New static methods.
14643 <pid>: Rename to...
14644 <m_pid>: ...this.
14645 <lwp>: Rename to...
14646 <m_lwp>: ...this.
14647 <tid>: Rename to...
14648 <m_tid>: ...this.
14649 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14650 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14651 as references, move comment to class ptid_t.
14652 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14653 ptid_t static methods.
14654 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14655 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14656 Take ptid arguments as references, implement using ptid_t methods.
14657 * unittests/ptid-selftests.c: New file.
14658 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14659 unittests/ptid-selftests.c.
14660 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14661
14662 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14663
14664 * python/python.c (python_run_simple_file): Cast mode literal to
14665 non-const char pointer as expected by PyFile_FromString.
14666
14667 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14668
14669 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14670 minus_one_ptid and null_ptid.
14671
14672 2017-04-05 Pedro Alves <palves@redhat.com>
14673
14674 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14675 * configure: Regenerate.
14676
14677 2017-04-05 Pedro Alves <palves@redhat.com>
14678
14679 * ada-exp.y (yyerror): Constify.
14680 * ada-lang.c (bound_name, get_selections)
14681 (ada_variant_discrim_type)
14682 (ada_variant_discrim_name, ada_value_struct_elt)
14683 (ada_lookup_struct_elt_type, is_unchecked_variant)
14684 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14685 (catch_ada_exception_command_split)
14686 (catch_ada_assert_command_split, catch_assert_command)
14687 (ada_op_name): Constify.
14688 * ada-lang.h (ada_yyerror, get_selections)
14689 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14690 * arc-tdep.c (arc_print_frame_cache): Constify.
14691 * arm-tdep.c (arm_skip_stub): Constify.
14692 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14693 (gen_aggregate_elt_ref): Constify.
14694 * bcache.c (print_bcache_statistics): Constify.
14695 * bcache.h (print_bcache_statistics): Constify.
14696 * break-catch-throw.c (catch_exception_command_1):
14697 * breakpoint.c (struct ep_type_description::description):
14698 Constify.
14699 (add_solib_catchpoint): Constify.
14700 (catch_fork_command_1): Add cast.
14701 (add_catch_command): Constify.
14702 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14703 Constify.
14704 * bsd-uthread.c (bsd_uthread_state): Constify.
14705 * buildsym.c (patch_subfile_names): Constify.
14706 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14707 Constify.
14708 * c-exp.y (yyerror): Constify.
14709 (token::oper): Constify.
14710 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14711 * c-varobj.c (cplus_describe_child): Constify.
14712 * charset.c (find_charset_names): Add cast.
14713 (find_charset_names): Constify array and add const_cast.
14714 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14715 (edit_command): Constify.
14716 * cli/cli-decode.c (lookup_cmd): Constify.
14717 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14718 Constify.
14719 (struct dump_context): Constify.
14720 (add_dump_command, restore_command): Constify.
14721 * cli/cli-script.c (get_command_line): Constify.
14722 * cli/cli-script.h (get_command_line): Constify.
14723 * cli/cli-utils.c (check_for_argument): Constify.
14724 * cli/cli-utils.h (check_for_argument): Constify.
14725 * coff-pe-read.c (struct read_pe_section_data): Constify.
14726 * command.h (lookup_cmd): Constify.
14727 * common/print-utils.c (decimal2str): Constify.
14728 * completer.c (gdb_print_filename): Constify.
14729 * corefile.c (set_gnutarget): Constify.
14730 * cp-name-parser.y (yyerror): Constify.
14731 * cp-valprint.c (cp_print_class_member): Constify.
14732 * cris-tdep.c (cris_register_name, crisv32_register_name):
14733 Constify.
14734 * d-exp.y (yyerror): Constify.
14735 (struct token::oper): Constify.
14736 * d-lang.h (d_yyerror): Constify.
14737 * dbxread.c (struct header_file_location::name): Constify.
14738 (add_old_header_file, add_new_header_file, last_function_name)
14739 (dbx_next_symbol_text, add_bincl_to_list)
14740 (find_corresponding_bincl_psymtab, set_namestring)
14741 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14742 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14743 * defs.h (command_line_input, print_address_symbolic)
14744 (deprecated_readline_begin_hook): Constify.
14745 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14746 Constify.
14747 * event-top.c (handle_line_of_input): Constify and add cast.
14748 * exceptions.c (catch_errors): Constify.
14749 * exceptions.h (catch_errors): Constify.
14750 * expprint.c (print_subexp_standard, op_string, op_name)
14751 (op_name_standard, dump_raw_expression, dump_raw_expression):
14752 * expression.h (op_name, op_string, dump_raw_expression):
14753 Constify.
14754 * f-exp.y (yyerror): Constify.
14755 (struct token::oper): Constify.
14756 (struct f77_boolean_val::name): Constify.
14757 * f-lang.c (f_word_break_characters): Constify.
14758 * f-lang.h (f_yyerror): Constify.
14759 * fork-child.c (fork_inferior): Add cast.
14760 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14761 (new_variant): Constify.
14762 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14763 * gdbarch.c: Regenerate.
14764 * gdbcore.h (set_gnutarget): Constify.
14765 * go-exp.y (yyerror): Constify.
14766 (token::oper): Constify.
14767 * go-lang.h (go_yyerror): Constify.
14768 * go32-nat.c (go32_sysinfo): Constify.
14769 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14770 * guile/scm-cmd.c (cmdscm_function): Constify.
14771 * guile/scm-param.c (pascm_param_value): Constify.
14772 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14773 (h8300sx_register_name): Constify.
14774 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14775 Constify.
14776 * ia64-tdep.c (ia64_register_names): Constify.
14777 * infcmd.c (construct_inferior_arguments): Constify.
14778 (path_command, attach_post_wait): Constify.
14779 * language.c (show_range_command, show_case_command)
14780 (unk_lang_error): Constify.
14781 * language.h (language_defn::la_error)
14782 (language_defn::la_name_of_this): Constify.
14783 * linespec.c (decode_line_2): Constify.
14784 * linux-thread-db.c (thread_db_err_str): Constify.
14785 * lm32-tdep.c (lm32_register_name): Constify.
14786 * m2-exp.y (yyerror): Constify.
14787 * m2-lang.h (m2_yyerror): Constify.
14788 * m32r-tdep.c (m32r_register_names): Constify and make static.
14789 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14790 * m88k-tdep.c (m88k_register_name): Constify.
14791 * macroexp.c (appendmem): Constify.
14792 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14793 (upgrade_type, parse_external, parse_partial_symbols)
14794 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14795 (new_symbol): Constify.
14796 * memattr.c (mem_info_command): Constify.
14797 * mep-tdep.c (register_name_from_keyword): Constify.
14798 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14799 Constify.
14800 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14801 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14802 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14803 cast.
14804 (mi_execute_async_cli_command): Constify.
14805 * mips-tdep.c (mips_register_name): Constify.
14806 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14807 (am33_register_name, am33_2_register_name)
14808 * moxie-tdep.c (moxie_register_names): Constify.
14809 * nat/linux-osdata.c (osdata_type): Constify fields.
14810 * nto-tdep.c (nto_parse_redirection): Constify.
14811 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14812 (lookup_child_selector): Constify.
14813 (objc_methcall::name): Constify.
14814 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14815 (lookup_struct_typedef): Constify.
14816 * objfiles.c (pc_in_section): Constify.
14817 * objfiles.h (pc_in_section): Constify.
14818 * p-exp.y (struct token::oper): Constify.
14819 (yyerror): Constify.
14820 * p-lang.h (pascal_yyerror): Constify.
14821 * parser-defs.h (op_name_standard): Constify.
14822 (op_print::string): Constify.
14823 (exp_descriptor::op_name): Constify.
14824 * printcmd.c (print_address_symbolic): Constify.
14825 * psymtab.c (print_partial_symbols): Constify.
14826 * python/py-breakpoint.c (stop_func): Constify.
14827 (bppy_get_expression): Constify.
14828 * python/py-cmd.c (cmdpy_completer::name): Constify.
14829 (cmdpy_function): Constify.
14830 * python/py-event.c (evpy_add_attribute)
14831 (gdbpy_initialize_event_generic): Constify.
14832 * python/py-event.h (evpy_add_attribute)
14833 (gdbpy_initialize_event_generic): Constify.
14834 * python/py-evts.c (add_new_registry): Constify.
14835 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14836 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14837 * python/py-inferior.c (get_buffer): Add cast.
14838 * python/py-param.c (parm_constant::name): Constify.
14839 * python/py-unwind.c (fprint_frame_id): Constify.
14840 * python/python.c (gdbpy_parameter_value): Constify.
14841 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14842 * remote.c (memory_packet_config::name): Constify.
14843 (show_packet_config_cmd, remote_write_bytes)
14844 (remote_buffer_add_string):
14845 * reverse.c (exec_reverse_once): Constify.
14846 * rs6000-tdep.c (variant::name, variant::description): Constify.
14847 * rust-exp.y (rustyyerror): Constify.
14848 * rust-lang.c (rust_op_name): Constify.
14849 * rust-lang.h (rustyyerror): Constify.
14850 * serial.h (serial_ops::name): Constify.
14851 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14852 (sh_sh3e_register_name, sh_sh2e_register_name)
14853 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14854 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14855 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14856 (sh_sh4al_dsp_register_name): Constify.
14857 * sh64-tdep.c (sh64_register_name): Constify.
14858 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14859 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14860 * stabsread.c (patch_block_stabs, read_type_number)
14861 (ref_map::stabs, ref_add, process_reference)
14862 (symbol_reference_defined, define_symbol, define_symbol)
14863 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14864 (read_one_struct_field, read_struct_fields, read_baseclasses)
14865 (read_tilde_fields, read_struct_type, read_array_type)
14866 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14867 (read_huge_number, read_range_type, read_args, common_block_start)
14868 (find_name_end): Constify.
14869 * stabsread.h (common_block_start, define_symbol)
14870 (process_one_symbol, symbol_reference_defined, ref_add):
14871 * symfile.c (get_section_index, add_symbol_file_command):
14872 * symfile.h (get_section_index): Constify.
14873 * target-descriptions.c (tdesc_type::name): Constify.
14874 (tdesc_free_type): Add cast.
14875 * target.c (find_default_run_target):
14876 (add_deprecated_target_alias, find_default_run_target)
14877 (target_announce_detach): Constify.
14878 (do_option): Constify.
14879 * target.h (add_deprecated_target_alias): Constify.
14880 * thread.c (print_thread_info_1): Constify.
14881 * top.c (deprecated_readline_begin_hook, command_line_input):
14882 Constify.
14883 (init_main): Add casts.
14884 * top.h (handle_line_of_input): Constify.
14885 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14886 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14887 (tfind_command): Rename to ...
14888 (tfind_command_1): ... this and constify.
14889 (tfind_command): New function.
14890 (tfind_end_command, tfind_start_command): Adjust.
14891 (encode_source_string): Constify.
14892 * tracepoint.h (encode_source_string): Constify.
14893 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14894 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14895 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14896 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14897 * tui/tui-win.c (parse_scrolling_args): Constify.
14898 * tui/tui-windata.c (tui_erase_data_content): Constify.
14899 * tui/tui-windata.h (tui_erase_data_content): Constify.
14900 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14901 * tui/tui.c (tui_enable): Add cast.
14902 * utils.c (defaulted_query): Constify.
14903 (init_page_info): Add cast.
14904 (puts_debug, subset_compare): Constify.
14905 * utils.h (subset_compare): Constify.
14906 * varobj.c (varobj_format_string): Constify.
14907 * varobj.h (varobj_format_string): Constify.
14908 * vax-tdep.c (vax_register_name): Constify.
14909 * windows-nat.c (windows_detach): Constify.
14910 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14911 * xml-support.c (gdb_xml_end_element): Constify.
14912 * xml-tdesc.c (tdesc_start_reg): Constify.
14913 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14914 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14915 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14916
14917 2017-04-05 Pedro Alves <palves@redhat.com>
14918
14919 * proc-api.c (struct trans): Constify.
14920 (procfs_note): Constify.
14921 * proc-events.c (struct trans, syscall_table):
14922 * proc-flags.c (struct trans): Constify.
14923 * proc-utils.h (procfs_note): Constify.
14924 * proc-why.c (struct trans): Constify.
14925 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14926 (procfs_detach): Constify.
14927 * sol-thread.c (struct string_map): Constify.
14928 (td_err_string, td_state_string): Constify.
14929
14930 2017-04-05 Pedro Alves <palves@redhat.com>
14931
14932 * proc-api.c (procfs_filename): Don't initialize
14933 procfs_filename.
14934 (prepare_to_trace): Assume procfs_filename is non-NULL.
14935 (_initialize_proc_api): Give procfs_filename a default value here.
14936
14937 2017-04-05 Pedro Alves <palves@redhat.com>
14938
14939 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14940 'cond_string' parameter.
14941 (extract_exception_regexp): Constify 'string' parameter.
14942 (catch_exception_command_1): Constify.
14943 * breakpoint.c (init_catchpoint)
14944 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14945 parameter.
14946 (ep_parse_optional_if_clause, catch_fork_command_1)
14947 (catch_exec_command_1): Constify.
14948 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14949 parameter.
14950 (ep_parse_optional_if_clause): Constify.
14951 * cli/cli-utils.c (remove_trailing_whitespace)
14952 (check_for_argument): Constify.
14953 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14954 non-const overload.
14955 (check_for_argument): Likewise.
14956
14957 2017-04-05 Pedro Alves <palves@redhat.com>
14958
14959 * event-top.c (command_line_handler): Add cast to execute_command
14960 call.
14961 * record-btrace.c (cmd_record_btrace_bts_start)
14962 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14963 (cmd_record_btrace_start): Add cast to execute_command call.
14964 * record-full.c (record_full_goto_insn):
14965 * record.c (record_start, record_stop): Add cast to
14966 execute_command_to_string calls.
14967 (cmd_record_start): Add cast to execute_command calls.
14968
14969 2017-04-05 Pedro Alves <palves@redhat.com>
14970
14971 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14972 static inline function.
14973 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14974 array and use gdb_PyArg_ParseTupleAndKeywords.
14975 * python/py-cmd.c (cmdpy_init): Likewise.
14976 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14977 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14978 (infpy_search_memory): Likewise.
14979 * python/py-objfile.c (objfpy_add_separate_debug_file)
14980 (gdbpy_lookup_objfile): Likewise.
14981 * python/py-symbol.c (gdbpy_lookup_symbol)
14982 (gdbpy_lookup_global_symbol): Likewise.
14983 * python/py-type.c (gdbpy_lookup_type): Likewise.
14984 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14985 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14986 Likewise.
14987
14988 2017-04-05 Pedro Alves <palves@redhat.com>
14989
14990 * python/python-internal.h (gdb_PyGetSetDef): New type.
14991 * python/py-block.c (block_object_getset)
14992 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14993 * python/py-event.c (event_object_getset)
14994 (finish_breakpoint_object_getset): Likewise.
14995 * python/py-inferior.c (inferior_object_getset): Likewise.
14996 * python/py-infthread.c (thread_object_getset): Likewise.
14997 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14998 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14999 * python/py-objfile.c (objfile_getset): Likewise.
15000 * python/py-progspace.c (pspace_getset): Likewise.
15001 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
15002 Likewise.
15003 * python/py-record.c (recpy_record_getset): Likewise.
15004 * python/py-symbol.c (symbol_object_getset): Likewise.
15005 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
15006 Likewise.
15007 * python/py-type.c (type_object_getset, field_object_getset):
15008 Likewise.
15009 * python/py-value.c (value_object_getset): Likewise.
15010
15011 2017-04-05 Pedro Alves <palves@redhat.com>
15012
15013 * python/python-internal.h (gdb_PyObject_CallMethod)
15014 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
15015 New functions.
15016 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
15017 (PySys_GetObject, PySys_SetPath): New macros.
15018
15019 2017-04-05 Pedro Alves <palves@redhat.com>
15020
15021 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
15022 info_osdata_command.
15023 * osdata.c (info_osdata_command): Rename to ...
15024 (info_osdata): ... this. Constify 'type' parameter, and remove
15025 the 'from_tty' parameter. Accept NULL TYPE.
15026 (info_osdata_command): New function.
15027 * osdata.h (info_osdata_command): Remove declaration.
15028 (info_osdata): New declaration.
15029
15030 2017-04-05 Pedro Alves <palves@redhat.com>
15031
15032 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
15033 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
15034 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
15035 parameter.
15036 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
15037 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
15038 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
15039 parameter.
15040 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
15041 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
15042 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
15043 (mi_cmd_file_list_exec_source_files)
15044 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
15045 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
15046 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
15047 parameter.
15048 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
15049 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
15050 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
15051 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
15052 (mi_cmd_stack_info_frame): Constify 'command' parameter.
15053 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
15054 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
15055 'command' parameter.
15056 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
15057 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
15058 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
15059 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
15060 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
15061 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
15062 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
15063 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
15064 (mi_cmd_var_set_update_range): Constify 'command' parameter.
15065 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
15066 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
15067 parameter.
15068 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
15069 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
15070 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
15071 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
15072 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
15073 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
15074 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
15075 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
15076 (mi_cmd_data_list_changed_registers)
15077 (mi_cmd_data_write_register_values)
15078 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
15079 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
15080 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
15081 (mi_cmd_list_features, mi_cmd_list_target_features)
15082 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
15083 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
15084 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
15085 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
15086 (mi_cmd_trace_frame_collected): Constify 'command'
15087 parameter.
15088 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
15089 'command' parameter.
15090
15091 2017-04-05 Pedro Alves <palves@redhat.com>
15092
15093 * ada-lang.c (ada_completer_word_break_characters): Now a const
15094 array.
15095 (ada_get_gdb_completer_word_break_characters): Constify.
15096 * completer.c (gdb_completer_command_word_break_characters)
15097 (gdb_completer_file_name_break_characters)
15098 (gdb_completer_quote_characters): Now const arrays.
15099 (get_gdb_completer_quote_characters): Constify.
15100 (set_rl_completer_word_break_characters): New function.
15101 (set_gdb_completion_word_break_characters)
15102 (complete_line_internal): Use it.
15103 * completer.h (get_gdb_completer_quote_characters): Constify.
15104 (set_rl_completer_word_break_characters): Declare.
15105 * f-lang.c (f_word_break_characters): Constify.
15106 * language.c (default_word_break_characters): Constify.
15107 * language.h (language_defn::la_word_break_characters): Constify.
15108 (default_word_break_characters): Constify.
15109 * top.c (init_main): Use set_rl_completer_word_break_characters.
15110
15111 2017-04-05 Pedro Alves <palves@redhat.com>
15112
15113 * aix-thread.c (aix_thread_pid_to_str)
15114 (aix_thread_extra_thread_info): Constify.
15115 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
15116 * bsd-uthread.c (bsd_uthread_extra_thread_info)
15117 (bsd_uthread_pid_to_str): Constify.
15118 * corelow.c (core_pid_to_str): Constify.
15119 * darwin-nat.c (darwin_pid_to_str): Constify.
15120 * fbsd-nat.c (fbsd_pid_to_str): Constify.
15121 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
15122 Constify.
15123 * gnu-nat.c (gnu_pid_to_str): Constify.
15124 * go32-nat.c (go32_pid_to_str): Constify.
15125 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
15126 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
15127 * inferior.c (inferior_pid_to_str): Constify.
15128 * linux-nat.c (linux_nat_pid_to_str): Constify.
15129 * linux-tdep.c (linux_core_pid_to_str): Constify.
15130 * linux-thread-db.c (thread_db_pid_to_str)
15131 (thread_db_extra_thread_info): Constify.
15132 * nto-tdep.c (nto_extra_thread_info): Constify.
15133 * nto-tdep.h (nto_extra_thread_info): Constify.
15134 * obsd-nat.c (obsd_pid_to_str): Constify.
15135 * procfs.c (procfs_pid_to_str): Constify.
15136 * ravenscar-thread.c (ravenscar_extra_thread_info)
15137 (ravenscar_pid_to_str): Constify.
15138 * remote-sim.c (gdbsim_pid_to_str): Constify.
15139 * remote.c (remote_threads_extra_info, remote_pid_to_str):
15140 Constify.
15141 * sol-thread.c (solaris_pid_to_str): Constify.
15142 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
15143 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
15144 * target.c (default_pid_to_str, target_pid_to_str)
15145 (normal_pid_to_str, default_pid_to_str): Constify.
15146 * target.h (target_ops::to_pid_to_str)
15147 (target_ops::to_extra_thread_info): Constify.
15148 (target_pid_to_str, normal_pid_to_str): Constify.
15149 * windows-nat.c (windows_pid_to_str): Constify.
15150 * gdbarch.sh (core_pid_to_str): Constify.
15151 * target-delegates.c: Regenerate.
15152 * gdbarch.h, gdbarch.c: Regenerate.
15153
15154 2017-04-05 Pedro Alves <palves@redhat.com>
15155
15156 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
15157 the memory of the temporary warning_pre_print override.
15158 * utils.c (warning_pre_print): Constify.
15159 * utils.h (warning_pre_print): Constify.
15160
15161 2017-04-05 Pedro Alves <palves@redhat.com>
15162
15163 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
15164 (shell_command): New function.
15165 (make_command): Use std::string.
15166 (init_cli_cmds): Register shell_command instead of shell_escape.
15167
15168 2017-04-05 Pedro Alves <palves@redhat.com>
15169
15170 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
15171 * tracepoint.c (default_collect): Don't initialize.
15172
15173 2017-04-05 Pedro Alves <palves@redhat.com>
15174
15175 * macroexp.c (macro_buffer::shared): Now a bool.
15176 (init_buffer): Update.
15177 (init_shared_buffer): Constify 'addr' parameter.
15178 (substitute_args, expand, macro_expand, macro_expand_next): Remove
15179 casts.
15180
15181 2017-04-05 Pedro Alves <palves@redhat.com>
15182
15183 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
15184 * disasm.c (set_disassembler_options): Constify local.
15185 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
15186
15187 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
15188
15189 PR gdb/21352
15190 * tracefile.c (tsave_command): Fix argument parsing for '-r'
15191 option.
15192
15193 2017-04-05 Yao Qi <yao.qi@linaro.org>
15194
15195 * frame.c (frame_unwind_register_unsigned): Call
15196 frame_unwind_register_value.
15197
15198 2017-04-05 Yao Qi <yao.qi@linaro.org>
15199
15200 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
15201 Use gdb_test_multiple, and don't match anchor.
15202
15203 2017-04-05 Pedro Alves <palves@redhat.com>
15204
15205 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
15206 (Write After Approval): Remove Simon Marchi.
15207
15208 2017-04-05 Pedro Alves <palves@redhat.com>
15209
15210 * common/gdb_optional.h (optional::optional): Make constexpr and
15211 initialize m_dummy.
15212
15213 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15214
15215 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15216 (amd64fbsd_jmp_buf_reg_offset): Remove.
15217 (amd64fbsd_supply_uthread): Remove function.
15218 (amd64fbsd_collect_uthread): Remove function.
15219 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
15220 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
15221 (x86_64-*-freebsd*): Remove bsd-uthread.o.
15222 (fbsd-nat.c): Update comment.
15223 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15224 (i386fbsd_jmp_buf_reg_offset): Remove.
15225 (i386fbsd_supply_uthread): Remove function.
15226 (i386fbsd_collect_uthread): Remove function.
15227 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
15228
15229 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15230
15231 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
15232 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
15233 * NEWS: Mention that support for FreeBSD/alpha was removed.
15234 * alpha-fbsd-tdep.c: Delete file.
15235 * config/alpha/fbsd.mh: Delete file.
15236 * configure.host: Delete alpha*-*-freebsd* and
15237 alpha*-*-kfreebsd*-gnu.
15238 * configure.tgt: Delete alpha*-*-freebsd* and
15239 alpha*-*-kfreebsd*-gnu.
15240
15241 2017-04-04 John Baldwin <jhb@FreeBSD.org>
15242
15243 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
15244 amd64bsd_store_inferior_registers): Use ptid from regcache.
15245
15246 2017-04-04 Pedro Alves <palves@redhat.com>
15247
15248 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
15249 data fields, make them private and add "m_" prefixes.
15250 (lnp_state_machine::lnp_state_machine): New ctor.
15251 (record_line, check_line_address, handle_set_discriminator)
15252 (handle_set_address, handle_advance_pc, handle_special_opcode)
15253 (handle_advance_line, handle_set_file, handle_negate_stmt)
15254 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
15255 (end_sequence, advance_line): New methods.
15256 (m_gdbarch, m_record_lines_p): New fields.
15257 (lnp_reader_state): Delete.
15258 (dwarf_record_line): Rename to ...
15259 (lnp_state_machine::record_line): ... adjust.
15260 (init_lnp_state_machine): Delete.
15261 (lnp_state_machine::lnp_state_machine): New.
15262 (check_line_address): Rename to ...
15263 (lnp_state_machine::check_line_address): This.
15264 (dwarf_decode_lines_1): Remove reference to "reader_state".
15265 Adjust lnp_state_machine having a non-default ctor. Use bool.
15266 State machine internal state manipulation moved to
15267 lnp_state_machine methods.
15268
15269 2017-04-04 Pedro Alves <palves@redhat.com>
15270
15271 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15272 unittests/offset-type-selftests.c.
15273 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
15274 * common/offset-type.h: New file.
15275 * common/preprocessor.h: New file.
15276 * common/traits.h: New file.
15277 * common/valid-expr.h: New file.
15278 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
15279 sect_offset and cu_offset strong typedefs throughout.
15280 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
15281 typedefs throughout.
15282 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
15283 sect_offset and cu_offset strong typedefs throughout.
15284 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
15285 typedefs throughout.
15286 * gdbtypes.h: Include "common/offset-type.h".
15287 (cu_offset): Now an offset type (strong typedef) instead of a
15288 struct.
15289 (sect_offset): Likewise.
15290 (union call_site_parameter_u): Rename "param_offset" field to
15291 "param_cu_off".
15292 * unittests/offset-type-selftests.c: New file.
15293
15294 2017-04-04 Pedro Alves <palves@redhat.com>
15295
15296 * common/underlying.h: New file.
15297 * dwarf2read.c: Include "common/gdb_optional.h" and
15298 "common/underlying.h".
15299 (dir_index, file_name_index): New types.
15300 (file_entry): Use them.
15301 (file_entry::include): Use to_underlying.
15302 (line_header::add_file_name): Use dir_index.
15303 (read_formatted_entries): Use gdb::optional. Read form before
15304 writting to file_entry.
15305 (dwarf_decode_line_header): Use dir_index.
15306 (lnp_state_machine::current_file): Use to_underlying.
15307 (lnp_state_machine::file): Change type to file_name_index.
15308 (dwarf_record_line): Use to_underlying.
15309 (init_lnp_state_machine): Use file_name_index.
15310 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15311
15312 2017-04-04 Pedro Alves <palves@redhat.com>
15313
15314 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15315 operator bool, has_value and get methods.
15316
15317 2017-04-04 Pedro Alves <palves@redhat.com>
15318
15319 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15320 fields.
15321 (line_header): Initialize all data fields. Change type of
15322 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15323 Change type of include_dirs to std::vector<const char *>. Remove
15324 num_include_dirs, include_dirs_size. Change type of file_names to
15325 std::vector<file_entry>. Remove num_file_names, file_names_size.
15326 (line_header::line_header): New.
15327 (line_header::add_include_dir, line_header::add_file_name): New
15328 methods.
15329 (line_header::include_dir_at): Remove NULL check.
15330 (line_header::file_name_at): Add const overload.
15331 (line_header_up): New unique_ptr typedef.
15332 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15333 std::vector. Remove free_line_header call.
15334 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15335 free_line_header call.
15336 (free_cu_line_header): Delete.
15337 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15338 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15339 Adjust to use std::vector.
15340 (free_line_header): Delete.
15341 (free_line_header_voidp): Use delete.
15342 (add_include_dir): Replace with ...
15343 (line_header::add_include_dir): ... this method. Use std::vector.
15344 (add_file_name): Replace with ...
15345 (line_header::add_file_name): ... this method. Use std::vector.
15346 (add_include_dir_stub): Delete.
15347 (read_formatted_entries): Remove memset.
15348 (dwarf_decode_line_header): Return a line_header_up instead of a
15349 raw pointer. Remove cleanup handling. Pass lambdas to
15350 read_formatted_entries. Adjust to use line_header methods.
15351 (dwarf_decode_lines_1): Adjust to use line_header methods.
15352 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15353 use std::vector.
15354
15355 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15356
15357 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15358 instead of struct ptid.
15359
15360 2017-05-04 Alan Hayward <alan.hayward@arm.com>
15361
15362 * frame.c (get_frame_register_bytes): Unwind using value.
15363 (put_frame_register_bytes): Likewise.
15364
15365 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15366
15367 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15368 aggregate-like.
15369
15370 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15371
15372 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15373
15374 2017-03-29 Yao Qi <yao.qi@linaro.org>
15375
15376 * gdbthread.h (struct thread_info): Declare constructor and
15377 destructor. Add some in-class member initializers.
15378 * thread.c (free_thread): Remove.
15379 (init_thread_list): Call delete instead of free_thread.
15380 (new_thread): Call thread_info constructor.
15381 (thread_info::thread_info): New function.
15382 (thread_info::~thread_info): New function.
15383 (delete_thread_1): Call delete instead of free_thread.
15384 (make_cleanup_restore_current_thread): Move tp and frame to
15385 inner block.
15386
15387 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15388
15389 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15390 (arc_skip_prologue): Likewise.
15391 (arc_make_frame_cache): Likewise.
15392 (arc_pv_get_operand): New function.
15393 (arc_is_in_prologue): Likewise.
15394 (arc_analyze_prologue): Likewise.
15395 (arc_print_frame_cache): Likewise.
15396 (MAX_PROLOGUE_LENGTH): New constant.
15397
15398 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15399
15400 * configure.tgt: Add arc-insn.o.
15401 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15402 (dump_arc_instruction_command): New function.
15403 (arc_fprintf_disasm): Likewise.
15404 (arc_disassemble_info): Likewise.
15405 (arc_insn_get_operand_value): Likewise.
15406 (arc_insn_get_operand_value_signed): Likewise.
15407 (arc_insn_get_memory_base_reg): Likewise.
15408 (arc_insn_get_memory_offset): Likewise.
15409 (arc_insn_get_branch_target): Likewise.
15410 (arc_insn_dump): Likewise.
15411 (arc_insn_get_linear_next_pc): Likewise.
15412 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15413 (arc_disassemble_info): Likewise.
15414 (arc_insn_get_branch_target): Likewise.
15415 (arc_insn_get_linear_next_pc): Likewise.
15416 * NEWS: Mention new "maint print arc arc-instruction".
15417
15418 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15419
15420 * arc-tdep (maintenance_print_arc_list): New variable.
15421 (maintenance_print_arc_command): New function.
15422
15423 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15424
15425 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15426 Add "limm" and "reserved".
15427 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15428 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15429 * arc-tdep.h (arc_regnum): Likewise.
15430
15431 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15432
15433 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15434 for THREADPTR register.
15435 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15436 register.
15437 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15438 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15439 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15440
15441 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15442
15443 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15444 registers above gdbarch_num_regs (gdbarch) as privileged in
15445 call0 ABI.
15446
15447 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15448
15449 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15450 for a single specified register or for all registers in
15451 a0_base..a0_base + C0_NREGS range.
15452 (supply_gregset_reg): Call regcache_raw_supply for a single
15453 specified register or for all registers in a0_base..a0_base +
15454 C0_NREGS range.
15455
15456 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15457
15458 * arch/xtensa.h (C0_NREGS): Add definition.
15459 * xtensa-tdep.c (C0_NREGS): Remove definition.
15460
15461 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15462
15463 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15464 Drop xtensa_default_isa initialization.
15465 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15466
15467 2017-03-27 Pedro Alves <palves@redhat.com>
15468
15469 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15470 (file_entry::include_dir): New method.
15471 (line_header::include_dir_at, line_header::file_name_at): New
15472 methods.
15473 (setup_type_unit_groups, setup_type_unit_groups)
15474 (psymtab_include_file_name): Simplify using the new methods.
15475 (lnp_state_machine) <the_line_header>: New field.
15476 <file>: Add comment.
15477 (lnp_state_machine::current_file): New method.
15478 (dwarf_record_line): Simplify using the new methods.
15479 (init_lnp_state_machine): Initialize the "the_line_header" field.
15480 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15481 Simplify using the new methods.
15482
15483 2017-03-27 Pedro Alves <palves@redhat.com>
15484
15485 * cp-name-parser.y (make_empty): Delete.
15486 (demangler_special, nested_name, ptr_operator, array_indicator)
15487 (direct_declarator, declarator_1): Use fill_comp instead of
15488 make_empty.
15489
15490 2017-03-27 Pedro Alves <palves@redhat.com>
15491
15492 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15493 to ATTRIBUTE_PRINTF.
15494 * solib-target.c (library_list_start_list): Print "string" not
15495 "version".
15496 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15497 gdb_xml_error call.
15498
15499 2017-03-27 Pedro Alves <palves@redhat.com>
15500
15501 * dwarf2read.c (struct file_and_directory): New.
15502 (dwarf2_get_dwz_file): Adjust to use std::string.
15503 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15504 (find_file_and_directory): Adjust to return a file_and_directory
15505 object.
15506 (read_file_scope): Adjust to use file_and_directory. Remove
15507 make_cleanup/do_cleanups calls.
15508 (open_and_init_dwp_file): Adjust to use std::string. Remove
15509 make_cleanup/do_cleanups calls.
15510 * python/python.c (do_start_initialization): Adjust to ldirname
15511 returning a std::string.
15512 * utils.c (ldirname): Now returns a std::string.
15513 * utils.h (ldirname): Change return type to std::string.
15514 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15515 returning a std::string.
15516 * xml-tdesc.c (file_read_description_xml): Likewise.
15517
15518 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15519
15520 * regcache.c (regcache_debug_print_register): New function.
15521 * regcache.h (regcache_debug_print_register): New declaration.
15522 * target.c (debug_print_register): Remove.
15523 (target_fetch_registers): Call regcache_debug_print_register.
15524 (target_store_registers): Likewise.
15525
15526 2017-03-24 Pádraig Brady <pbrady@fb.com>
15527
15528 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15529 reference beyond the 'lh->include_dirs' array before accessing to
15530 it.
15531 (psymtab_include_file_name): Likewise.
15532 (dwarf_decode_lines_1): Likewise.
15533 (dwarf_decode_lines): Likewise.
15534 (file_file_name): Likewise.
15535
15536 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15537
15538 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15539 inferior_ptid.
15540 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15541 ps_lsetfpregs): Likewise.
15542 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15543 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15544 ps_lsetfpregs): Likewise.
15545 * target.c (target_fetch_registers, target_store_registers):
15546 Remove asserts.
15547
15548 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15549
15550 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15551
15552 2017-03-23 Yao Qi <yao.qi@linaro.org>
15553
15554 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15555 (_initialize_aarch64_tdep): Register it.
15556 (aarch64_record_load_store): Handle PRFM instruction.
15557 (aarch64_process_record_test): New function.
15558
15559 2017-03-23 Yao Qi <yao.qi@linaro.org>
15560
15561 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15562 indentation.
15563
15564 2017-03-23 Yao Qi <yao.qi@linaro.org>
15565
15566 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15567
15568 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15569
15570 python/python.c (do_start_initialization): Fix memory leak.
15571
15572 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15573
15574 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15575 using get_ptrace_pid.
15576 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15577 inferior_ptid.
15578 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15579 inferior_ptid instead of pid.
15580
15581 2017-03-22 Yao Qi <yao.qi@linaro.org>
15582
15583 * aarch64-tdep.c: Wrap locally used classes in anonymous
15584 namespace.
15585 * arm-tdep.c: Likewise.
15586 * linespec.c: Likewise.
15587 * ui-out.c: Likewise.
15588
15589 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15590
15591 PR gdb/19637
15592 * python/lib/gdb/printer/bound_registers.py: Import sys.
15593
15594 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15595
15596 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15597 windows_thread_info parameter and use it instead of
15598 current_thread.
15599 (windows_fetch_inferior_registers): Don't set current_thread,
15600 pass the thread to do_windows_fetch_inferior_registers. Use
15601 ptid from regcache instead of inferior_ptid.
15602 (do_windows_store_inferior_registers): Add windows_thread_info
15603 parameter and use it instead of current_thread.
15604 (windows_store_inferior_registers): Don't set current_thread,
15605 pass the thread to do_windows_store_inferior_registers. Use
15606 ptid from regcache instead of inferior_ptid.
15607
15608 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15609
15610 * ser-mingw.c (ser_windows_raw): Remove reference to
15611 struct serial::current_timeout.
15612
15613 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15614
15615 PR tdep/20928
15616 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15617 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15618 (sparc64_fsr_type): Fix %fsr decoding.
15619
15620 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15621
15622 * python/py-record-btrace.c (btpy_insn_data): Change return type
15623 for Python 2.
15624
15625 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15626
15627 * spu-linux-nat.c (spu_fetch_inferior_registers,
15628 spu_store_inferior_registers): Use ptid from regcache, set and
15629 restore inferior_ptid.
15630 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15631 Likewise.
15632
15633 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15634
15635 * i386-linux-nat.c (fetch_register, store_register,
15636 i386_linux_fetch_inferior_registers,
15637 i386_linux_store_inferior_registers): Use ptid from regcache.
15638 * ia64-linux-nat.c (ia64_linux_fetch_register,
15639 ia64_linux_store_register): Likewise.
15640 * inf-ptrace.c (inf_ptrace_fetch_register,
15641 inf_ptrace_store_register): Likewise.
15642 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15643 m32r_linux_store_inferior_registers): Likewise.
15644 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15645 m68kbsd_store_inferior_registers): Likewise.
15646 * m68k-linux-nat.c (fetch_register, store_register,
15647 m68k_linux_fetch_inferior_registers,
15648 m68k_linux_store_inferior_registers): Likewise.
15649 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15650 m88kbsd_store_inferior_registers): Likewise.
15651 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15652 mips_fbsd_store_inferior_registers): Likewise.
15653 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15654 mips64_linux_regsets_store_registers): Likewise.
15655 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15656 mipsnbsd_store_inferior_registers): Likewise.
15657 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15658 mips64obsd_store_inferior_registers): Likewise.
15659 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15660 Likewise.
15661 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15662 ppcfbsd_store_inferior_registers): Likewise.
15663 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15664 ppc_linux_store_inferior_registers): Likewise.
15665 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15666 ppcnbsd_store_inferior_registers): Likewise.
15667 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15668 ppcobsd_store_registers): Likewise.
15669 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15670 Likewise.
15671 * ravenscar-thread.c (ravenscar_fetch_registers,
15672 ravenscar_store_registers, ravenscar_prepare_to_store):
15673 Likewise.
15674 * record-btrace.c (record_btrace_fetch_registers,
15675 record_btrace_store_registers, record_btrace_prepare_to_store):
15676 Likewise.
15677 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15678 Lookup inferior using ptid from regcache, instead of
15679 current_inferior.
15680 * remote.c (remote_fetch_registers, remote_store_registers): Use
15681 ptid from regcache.
15682 * rs6000-nat.c (fetch_register, store_register): Likewise.
15683 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15684 s390_linux_store_inferior_registers): Likewise.
15685 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15686 shnbsd_store_inferior_registers): Likewise.
15687 * sol-thread.c (sol_thread_fetch_registers,
15688 sol_thread_store_registers): Likewise.
15689 * sparc-nat.c (sparc_fetch_inferior_registers,
15690 sparc_store_inferior_registers): Likewise.
15691 * tilegx-linux-nat.c (fetch_inferior_registers,
15692 store_inferior_registers): Likewise.
15693 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15694 vaxbsd_store_inferior_registers): Likewise.
15695 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15696 store_xtregs): Likewise.
15697
15698 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15699
15700 PR gdb/14441
15701 * NEWS: Mention support for rvalue references in GDB and python.
15702 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15703 supports both lvalue and rvalue references.
15704
15705 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15706
15707 PR gdb/14441
15708 * gdbtypes.c (rank_one_type): Implement overloading
15709 resolution rules regarding rvalue references.
15710
15711 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15712
15713 PR gdb/14441
15714 * aarch64-tdep.c (aarch64_type_align)
15715 (aarch64_extract_return_value, aarch64_store_return_value): Change
15716 lvalue reference type checks to general reference type checks.
15717 * amd64-tdep.c (amd64_classify): Likewise.
15718 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15719 Likewise.
15720 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15721 (arm_store_return_value): Likewise.
15722 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15723 * c-typeprint.c (c_print_type): Likewise.
15724 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15725 (cplus_number_of_children, cplus_describe_child): Likewise.
15726 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15727 * completer.c (expression_completer): Likewise.
15728 * cp-support.c (make_symbol_overload_list_adl_namespace):
15729 Likewise.
15730 * darwin-nat-info.c (info_mach_region_command): Likewise.
15731 * dwarf2loc.c (entry_data_value_coerce_ref)
15732 (value_of_dwarf_reg_entry): Likewise.
15733 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15734 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15735 Likewise.
15736 * findvar.c (extract_typed_address, store_typed_address):
15737 Likewise.
15738 * gdbtypes.c (rank_one_type): Likewise.
15739 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15740 * infcall.c (value_arg_coerce): Likewise.
15741 * language.c (pointer_type): Likewise.
15742 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15743 Likewise.
15744 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15745 * mn10300-tdep.c (mn10300_type_align): Likewise.
15746 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15747 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15748 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15749 Likewise.
15750 * printcmd.c (print_formatted, x_command): Likewise.
15751 * python/py-type.c (typy_get_composite, typy_template_argument):
15752 Likewise.
15753 * python/py-value.c (valpy_referenced_value)
15754 (valpy_get_dynamic_type, value_has_field): Likewise.
15755 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15756 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15757 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15758 * spu-tdep.c (spu_scalar_value_p): Likewise.
15759 * symtab.c (lookup_symbol_aux): Likewise.
15760 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15761 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15762 Likewise.
15763 * valops.c (value_cast_pointers, value_cast)
15764 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15765 (value_struct_elt, value_struct_elt_bitpos)
15766 (value_find_oload_method_list, find_overload_match)
15767 (value_rtti_indirect_type): Likewise.
15768 * valprint.c (val_print_scalar_type_p, generic_val_print):
15769 Likewise.
15770 * value.c (value_actual_type, value_as_address, unpack_long)
15771 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15772 (coerce_ref): Likewise.
15773 * varobj.c (varobj_get_value_type): Likewise.
15774
15775 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15776
15777 PR gdb/14441
15778 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15779 table of constants.
15780 * python/lib/gdb/command/explore.py: Support exploring values
15781 of rvalue reference types.
15782 * python/lib/gdb/types.py: Implement get_basic_type() for
15783 rvalue reference types.
15784 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15785 constant.
15786 * python/py-value.c (valpy_getitem): Add an rvalue reference
15787 check.
15788 (valpy_reference_value): Add new parameter "refcode".
15789 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15790 New wrappers for valpy_reference_value().
15791 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15792 (gdbpy_invoke_xmethod): Likewise.
15793
15794 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15795
15796 PR gdb/14441
15797 * dwarf2read.c (process_die, read_type_die_1): Handle the
15798 DW_TAG_rvalue_reference_type DIE.
15799 (read_tag_reference_type): Add new parameter "refcode".
15800
15801 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15802
15803 PR gdb/14441
15804 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15805 (c_type_print_modifier, c_type_print_varspec_suffix)
15806 (c_type_print_base): Support printing rvalue reference types.
15807 * c-valprint.c (c_val_print, c_value_print): Support printing
15808 rvalue reference values.
15809
15810 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15811
15812 PR gdb/14441
15813 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15814 typename.
15815 * cp-support.c (replace_typedefs): Handle
15816 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15817 * python/py-type.c (typy_lookup_type): Likewise.
15818
15819 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15820
15821 PR gdb/14441
15822 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15823 * parse.c (insert_type): Change assert statement.
15824 (follow_types): Handle rvalue reference types.
15825 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15826 constant.
15827
15828 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15829
15830 PR gdb/14441
15831 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15832 value_ref() interface.
15833 * c-valprint.c (c_value_print): Likewise.
15834 * infcall.c (value_arg_coerce): Likewise.
15835 * python/py-value.c (valpy_reference_value): Likewise.
15836 * valops.c (value_cast, value_reinterpret_cast)
15837 (value_dynamic_cast, typecmp): Likewise.
15838 (value_ref): Parameterize by kind of return value reference type.
15839 * value.h (value_ref): Add new parameter "refcode".
15840
15841 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15842
15843 PR gdb/14441
15844 * dwarf2read.c (read_tag_reference_type): Use
15845 lookup_lvalue_reference_type() instead of lookup_reference_type().
15846 * eval.c (evaluate_subexp_standard): Likewise.
15847 * f-exp.y: Likewise.
15848 * gdbtypes.c (make_reference_type, lookup_reference_type):
15849 Generalize with rvalue reference types.
15850 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15851 convenience wrappers for lookup_reference_type().
15852 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15853 reference kind parameter.
15854 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15855 wrappers for lookup_reference_type().
15856 * guile/scm-type.c (gdbscm_type_reference): Use
15857 lookup_lvalue_reference_type() instead of lookup_reference_type().
15858 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15859 * parse.c (follow_types): Likewise.
15860 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15861 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15862 Likewise.
15863 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15864 (gdbpy_invoke_xmethod): Likewise.
15865 * stabsread.c: Provide extra argument to make_reference_type()
15866 call.
15867 * valops.c (value_ref, value_rtti_indirect_type): Use
15868 lookup_lvalue_reference_type() instead of lookup_reference_type().
15869
15870 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15871
15872 PR gdb/14441
15873 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15874 (TYPE_IS_REFERENCE): New macro.
15875 (struct type): Add rvalue_reference_type field.
15876 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15877
15878 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15879
15880 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15881 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15882 New function definition.
15883 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15884 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15885 New function declaration.
15886 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15887 * mi/mi-interp.h: New file.
15888 * solib.c (info_sharedlibrary_command): Replace for loop with
15889 ALL_SO_LIBS macro
15890 * solib.h (update_solib_list): New function declaration.
15891 (so_list_head): Move macro.
15892 * solist.h (ALL_SO_LIBS): New macro.
15893
15894 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15895
15896 * infcmd.c (post_create_inferior): Remove unused argument in
15897 call to solib_add.
15898 * remote.c (remote_start_remote): Likewise.
15899 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15900 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15901 (enable_break): Likewise.
15902 * solib.c (update_solib_list): Remove unused target argument
15903 and its documentation.
15904 (solib_add): Remove unused target argument. Remove unused
15905 argument in call to update_solib_list.
15906 (info_sharedlibrary_command): Remove unused argument in call
15907 to update_solib_list.
15908 (sharedlibrary_command): Remove unused argument in call to
15909 solib_add.
15910 (handle_solib_event): Likewise.
15911 (reload_shared_libraries): Likewise.
15912 * solib.h (solib_add): Remove unused target argument.
15913
15914 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15915
15916 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15917 (s390_displaced_step_fixup): Cover relative branches with the
15918 default fixup handling. This fixes lack of support for some
15919 relative branch instructions.
15920
15921 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15922
15923 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15924 ptid from regcache.
15925
15926 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15927
15928 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15929 i386_darwin_store_inferior_registers): Use ptid from regcache.
15930
15931 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15932
15933 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15934 i386bsd_store_inferior_registers): Use ptid from regcache.
15935
15936 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15937
15938 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15939 hppaobsd_store_registers): Use ptid from regcache.
15940
15941 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15942
15943 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15944 hppanbsd_store_registers): Use ptid from regcache.
15945
15946 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15947
15948 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15949 from regcache. Use get_ptrace_pid.
15950
15951 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15952
15953 * corelow.c (get_core_register_section): Use ptid from regcache,
15954 update doc.
15955
15956 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15957
15958 * bsd-uthread.c (bsd_uthread_fetch_registers,
15959 bsd_uthread_store_registers): Use ptid from regcache, set and
15960 restore inferior_ptid.
15961
15962 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15963
15964 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15965 fetch_fp_regs, store_register, store_regs, store_fp_register,
15966 store_fp_regs): Use ptid from regcache.
15967
15968 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15969
15970 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15971 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15972 store_vfp_regs): Use ptid from regcache.
15973
15974 2017-03-17 Pedro Alves <palves@redhat.com>
15975
15976 PR remote/21188
15977 * ser-base.c (ser_base_wait_for): Add comment.
15978 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15979 version.
15980 * ser-unix.c (hardwire_raw): Remove reference to
15981 scb->current_timeout.
15982 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15983 (hardwire_ops): Install ser_base_readchar instead of
15984 hardwire_readchar.
15985 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15986 Remove fields.
15987
15988 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15989
15990 PR gdb/19637
15991 * python/lib/gdb/printer/bound_registers.py: Add support for
15992 Python 3.
15993
15994 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15995
15996 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15997 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15998 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15999 byte_offset to subobj_byte_offset. Fix the handling of
16000 DWARF_VALUE_STACK on big-endian targets when coming via an
16001 implicit pointer.
16002 (dwarf2_evaluate_loc_desc): Adjust call to
16003 dwarf2_evaluate_loc_desc_full.
16004 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
16005 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
16006
16007 2017-03-16 Yao Qi <yao.qi@linaro.org>
16008
16009 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
16010 and REVSH instructions.
16011
16012 2017-03-16 Yao Qi <yao.qi@linaro.org>
16013
16014 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
16015 (arm_record_test): Declare.
16016 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
16017 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
16018 align with the manual.
16019 (thumb_record_misc): Adjust the code order to align with the
16020 manual.
16021 (thumb2_record_decode_insn_handler): Fix instruction matching.
16022 (instruction_reader_thumb): New class.
16023 (arm_record_test): New function.
16024
16025 2017-03-16 Yao Qi <yao.qi@linaro.org>
16026
16027 * arm-tdep.c (abstract_memory_reader): New class.
16028 (instruction_reader): New class.
16029 (extract_arm_insn): Add argument 'reader'. Callers updated.
16030 (decode_insn): Likewise.
16031
16032 2017-03-16 Doug Evans <dje@google.com>
16033
16034 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
16035 member. Change type of TYPE member to SCM. All uses updated.
16036 (lsscm_make_lazy_string_smob): Add assert.
16037 (lsscm_make_lazy_string): Flag bad length values.
16038 (lsscm_elt_type): New function.
16039 (gdbscm_lazy_string_to_value): Rewrite to use
16040 lsscm_safe_lazy_string_to_value.
16041 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
16042 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
16043 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
16044 in incoming type.
16045 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
16046 * guile/scm-type.c (tyscm_scm_to_type): New function.
16047
16048 2017-03-15 Doug Evans <dje@google.com>
16049
16050 PR python/17728, python/18439, python/18779
16051 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
16052 member. Change type of TYPE member to PyObject *. All uses updated.
16053 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
16054 (gdbpy_create_lazy_string_object): Flag bad length values.
16055 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
16056 Handle typedefs in incoming type.
16057 (stpy_lazy_string_elt_type): New function.
16058 (gdbpy_extract_lazy_string): Call it.
16059 * python/py-value.c (valpy_lazy_string): Flag bad length values.
16060 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
16061 typedefs in incoming type.
16062
16063 2017-03-16 Doug Evans <dje@google.com>
16064
16065 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
16066 * guile/scm-type.c (tyscm_scm_to_type): New function.
16067
16068 2017-03-16 Jiong Wang <jiong.wang@arm.com>
16069
16070 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
16071 "ULONGEST" for "skip".
16072
16073 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16074
16075 PR gdb/21220
16076 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
16077 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
16078 (inf_ptrace_peek_poke): ...here. New function. Now also loop
16079 over ptrace peek/poke until end of buffer or error.
16080
16081 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
16082
16083 * parse.c (length_of_subexp): Make static.
16084 * parser-defs.h (length_of_subexp): Remove.
16085
16086 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16087
16088 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
16089 as well.
16090
16091 2017-03-14 Pedro Alves <palves@redhat.com>
16092
16093 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
16094 (main): Use std::unique_ptr. Remove calls to
16095 cp_demangled_name_parse_free.
16096
16097 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16098
16099 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
16100 alphabsd_store_inferior_registers): Use regcache->ptid instead
16101 of inferior_ptid.
16102
16103 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16104
16105 * aix-thread.c (aix_thread_fetch_registers,
16106 aix_thread_store_registers): Use regcache->ptid instead of
16107 inferior_ptid.
16108
16109 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16110
16111 * aarch64-linux-nat.c (fetch_gregs_from_thread,
16112 store_gregs_to_thread, fetch_fpregs_from_thread,
16113 store_fpregs_to_thread): Use regcache->ptid instead of
16114 inferior_ptid.
16115
16116 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16117
16118 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
16119 amd64_linux_fetch_inferior_registers): Use regcache->ptid
16120 instead of inferior_ptid.
16121
16122 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16123
16124 * target.c (target_fetch_registers, target_store_registers): Add
16125 assert.
16126
16127 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16128
16129 * regcache.h (regcache_get_ptid): New function.
16130 * regcache.c (regcache_get_ptid): New function.
16131
16132 2017-03-13 Mark Wielaard <mark@klomp.org>
16133
16134 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
16135
16136 2017-03-10 Keith Seitz <keiths@redhat.com>
16137
16138 PR c++/8218
16139 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
16140
16141 2017-03-08 Pedro Alves <palves@redhat.com>
16142
16143 PR gdb/18360
16144 * infrun.c (start_step_over, do_target_resume, resume)
16145 (restart_threads): Assert we're not resuming a thread that is
16146 meant to be stopped.
16147 (infrun_thread_stop_requested_callback): Delete.
16148 (infrun_thread_stop_requested): If the thread is internally
16149 stopped, queue a pending stop event and clear the thread's
16150 inline-frame state.
16151 (handle_stop_requested): New function.
16152 (handle_syscall_event, handle_inferior_event_1): Use
16153 handle_stop_requested.
16154 (handle_stop_requested): New function.
16155 (handle_signal_stop): Set the thread's stop_signal here instead of
16156 at caller.
16157 (finish_step_over): Clear step over info unconditionally.
16158 (handle_signal_stop): If the user had interrupted the event
16159 thread, consider the stop a random signal.
16160 (handle_signal_stop) <signal arrived while stepping over
16161 breakpoint>: Don't restart threads here.
16162 (stop_waiting): Don't clear step-over info here.
16163
16164 2017-03-08 Pedro Alves <palves@redhat.com>
16165
16166 PR 21206
16167 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
16168 goes to argument 2, not 1.
16169
16170 2017-03-08 Pedro Alves <palves@redhat.com>
16171
16172 PR cli/21218
16173 * top.c (gdb_readline_wrapper): Avoid passing NULL to
16174 display_gdb_prompt.
16175 (command_line_input): Add comment.
16176
16177 2017-03-08 Pedro Alves <palves@redhat.com>
16178
16179 PR tui/21216
16180 * tui/tui-file.c (tui_file::write): New.
16181 * tui/tui-file.h (tui_file): Override "write".
16182 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
16183 factored out from ...
16184 (tui_puts): ... here.
16185 (tui_putc): Use them.
16186 (tui_write): New function.
16187 * tui/tui-io.h (tui_write): Declare.
16188
16189 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
16190
16191 * Makefile.in (SFILES): Replace "environ.c" with
16192 "common/environ.c".
16193 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
16194 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
16195 to...
16196 * common/environ.c: ... here.
16197 * environ.h: Moved to...
16198 * common/environ.h: ... here.
16199
16200 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16201
16202 * gdbarch.sh (pstring_ptr): New static function.
16203 (gdbarch_disassembler_options): Use it.
16204 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
16205 not valid_disassembler_option->name.
16206 * gdbarch.c: Regenerate.
16207
16208 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16209
16210 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
16211
16212 2017-03-07 Pedro Alves <palves@redhat.com>
16213
16214 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
16215
16216 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
16217
16218 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
16219 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
16220 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
16221 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
16222
16223 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
16224
16225 * xtensa-linux-nat.c (fetch_gregs): Remove const.
16226
16227 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
16228
16229 * remote.c (remote_add_target_side_commands): Use range-based
16230 for loop.
16231
16232 2017-03-03 Yao Qi <yao.qi@linaro.org>
16233
16234 PR gdb/21165
16235 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
16236 value is lazy.
16237 * valprint.c (common_val_print): Likewise.
16238
16239 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
16240
16241 * NEWS: Mention new set/show disassembler-options commands.
16242 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
16243 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
16244 (prospective_options): New static variable.
16245 (gdb_disassembler::gdb_disassembler): Initialize
16246 m_di.disassembler_options.
16247 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
16248 (get_disassembler_options): New function.
16249 (set_disassembler_options): Likewise.
16250 (set_disassembler_options_sfunc): Likewise.
16251 (show_disassembler_options_sfunc): Likewise.
16252 (disassembler_options_completer): Likewise.
16253 (_initialize_disasm): Likewise.
16254 * disasm.h (get_disassembler_options): New prototype.
16255 (set_disassembler_options): Likewise.
16256 * gdbarch.sh (gdbarch_disassembler_options): New variable.
16257 (gdbarch_verify_disassembler_options): Likewise.
16258 * gdbarch.c: Regenerate.
16259 * gdbarch.h: Likewise.
16260 * arm-tdep.c (num_disassembly_options): Delete.
16261 (set_disassembly_style): Likewise.
16262 (arm_disassembler_options): New static variable.
16263 (set_disassembly_style_sfunc): Convert short style name into long
16264 option name. Call set_disassembler_options.
16265 (show_disassembly_style_sfunc): New function.
16266 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
16267 set_gdbarch_verify_disassembler_options.
16268 (_initialize_arm_tdep): Delete regnames variable and update callers.
16269 (arm_disassembler_options): Initialize.
16270 (disasm_options): New variable.
16271 (num_disassembly_options): Rename from this...
16272 (num_disassembly_styles): ...to this. Compute by scanning through
16273 disasm_options.
16274 (valid_disassembly_styles): Initialize using disasm_options.
16275 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
16276 set_arm_regname_option.
16277 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
16278 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
16279 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
16280 set_gdbarch_verify_disassembler_options.
16281 * s390-tdep.c (s390_disassembler_options): New static variable.
16282 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
16283 set_gdbarch_verify_disassembler_options.
16284
16285 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16286
16287 * remote.c (remote_add_target_side_condition): Remove "struct"
16288 keyword from range-based for loop.
16289
16290 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16291
16292 * remote.c (remote_add_target_side_condition): Use range-based
16293 for loop. Update comment.
16294
16295 2017-02-27 Yao Qi <yao.qi@linaro.org>
16296
16297 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16298
16299 2017-02-26 Alan Hayward <alan.hayward@arm.com>
16300
16301 * regcache.c (regcache_raw_update): New function.
16302 (regcache_raw_read): Move code to regcache_raw_update.
16303 * regcache.h (regcache_raw_update): New declaration.
16304 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16305
16306 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16307
16308 * dwarf2read.c (create_debug_type_hash_table): Initialize
16309 header.signature and header.type_offset_in_tu.
16310
16311 2017-02-24 Pedro Alves <palves@redhat.com>
16312
16313 * symtab.c (make_file_symbol_completion_list_1): Use
16314 add_symtab_completions.
16315
16316 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16317
16318 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16319
16320 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16321
16322 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16323 I386_MAX_REGISTER_SIZE.
16324 (i386_pseudo_register_write): Likewise.
16325 (i386_process_record): Likewise.
16326 * i387-tdep.c (i387_supply_xsave): Likewise.
16327 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16328 (store_register): Likewise.
16329
16330 2017-02-23 Pedro Alves <palves@redhat.com>
16331
16332 * ada-lang.c: Include "common/function-view.h".
16333 (ada_iterate_over_symbols): Adjust to use function_view as
16334 callback type.
16335 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16336 (ada_make_symbol_completion_list): Use a lambda.
16337 (ada_exc_search_name_matches): Delete.
16338 (name_matches_regex): New.
16339 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16340 * compile/compile-c-support.c: Include "common/function-view.h".
16341 (print_one_macro): Change prototype to accept a ui_file pointer.
16342 (write_macro_definitions): Use a lambda.
16343 * dwarf2read.c: Include "common/function-view.h".
16344 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16345 (dw2_expand_symtabs_matching): Adjust to use function_view as
16346 callback type.
16347 * language.h: Include "common/function-view.h".
16348 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16349 function_view as callback type.
16350 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16351 * linespec.c: Include "common/function-view.h".
16352 (collect_info::add_symbol): New method.
16353 (struct symbol_and_data_callback, iterate_inline_only, struct
16354 symbol_matcher_data, iterate_name_matcher): Delete.
16355 (iterate_over_all_matching_symtabs): Adjust to use function_view
16356 as callback type and lambdas.
16357 (iterate_over_file_blocks): Adjust to use function_view as
16358 callback type.
16359 (decode_compound_collector): Now a class with private fields.
16360 (decode_compound_collector::release_symbols): New method.
16361 (collect_one_symbol): Rename to...
16362 (decode_compound_collector::operator()): ... this and adjust.
16363 (lookup_prefix_sym): decode_compound_collector construction bits
16364 move to decode_compound_collector ctor. Pass the
16365 decode_compound_collector object directly as callback. Remove
16366 cleanups and use decode_compound_collector::release_symbols
16367 instead.
16368 (symtab_collector): Now a class with private fields.
16369 (symtab_collector::release_symtabs): New method.
16370 (add_symtabs_to_list): Rename to...
16371 (symtab_collector::operator()): ... this and adjust.
16372 (collect_symtabs_from_filename): symtab_collector construction
16373 bits move to symtab_collector ctor. Pass the symtab_collector
16374 object directly as callback. Remove cleanups and use
16375 symtab_collector::release_symtabs instead.
16376 (collect_symbols): Delete.
16377 (add_matching_symbols_to_info): Use lambdas.
16378 * macrocmd.c (print_macro_callback): Delete.
16379 (info_macro_command): Use a lambda.
16380 (info_macros_command): Pass print_macro_definition as callable
16381 directly.
16382 (print_one_macro): Remove 'ignore' parameter.
16383 (macro_list_command): Adjust.
16384 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16385 (macro_for_each_data::user_data): Delete field.
16386 (foreach_macro): Adjust to call the function_view.
16387 (macro_for_each): Adjust to use function_view as callback type.
16388 (foreach_macro_in_scope): Adjust to call the function_view.
16389 (macro_for_each_in_scope): Adjust to use function_view as callback
16390 type.
16391 * macrotab.h: Include "common/function-view.h".
16392 (macro_callback_fn): Declare a prototype instead of a pointer.
16393 Remove "user_data" parameter.
16394 (macro_for_each, macro_for_each_in_scope): Adjust to use
16395 function_view as callback type.
16396 * psymtab.c (partial_map_expand_apply)
16397 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16398 Adjust to use function_view as callback type and to return bool.
16399 (psym_expand_symtabs_matching): Adjust to use function_view as
16400 callback types.
16401 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16402 to use function_view as callback type and to return bool.
16403 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16404 callback types.
16405 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16406 as callback types.
16407 * symfile.h: Include "common/function-view.h".
16408 (expand_symtabs_file_matcher_ftype)
16409 (expand_symtabs_symbol_matcher_ftype)
16410 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16411 return bool.
16412 (quick_symbol_functions::map_symtabs_matching_filename)
16413 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16414 function_view as callback type and return bool.
16415 (expand_symtabs_matching): Adjust to use function_view as callback
16416 type.
16417 (maintenance_expand_name_matcher)
16418 (maintenance_expand_file_matcher): Delete.
16419 (maintenance_expand_symtabs): Use lambdas.
16420 * symtab.c (iterate_over_some_symtabs): Adjust to use
16421 function_view as callback types and return bool.
16422 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16423 of a cleanup.
16424 (lookup_symtab_callback): Delete.
16425 (lookup_symtab): Use a lambda.
16426 (iterate_over_symbols): Adjust to use function_view as callback
16427 type.
16428 (struct search_symbols_data, search_symbols_file_matches)
16429 (search_symbols_name_matches): Delete.
16430 (search_symbols): Use a pair of lambdas.
16431 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16432 (symtab_expansion_callback): Delete.
16433 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16434 * symtab.h: Include "common/function-view.h".
16435 (iterate_over_some_symtabs): Adjust to use function_view as
16436 callback type and return bool.
16437 (iterate_over_symtabs): Adjust to use function_view as callback
16438 type.
16439 (symbol_found_callback_ftype): Remove 'data' parameter and return
16440 bool.
16441 (iterate_over_symbols): Adjust to use function_view as callback
16442 type.
16443
16444 2017-02-23 Pedro Alves <palves@redhat.com>
16445
16446 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16447 (%.o) <unittests/%.c>: New pattern.
16448 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16449 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16450 * common/function-view.h: New file.
16451 * unittests/function-view-selftests.c: New file.
16452 * configure: Regenerate.
16453
16454 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16455
16456 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16457 inferior_ptid.
16458 * go32-nat.c (go32_thread_alive): Likewise.
16459
16460 2017-02-23 Yao Qi <yao.qi@linaro.org>
16461
16462 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16463 delete.
16464
16465 2017-02-23 Yao Qi <yao.qi@linaro.org>
16466
16467 * varobj.c (varobj_clear_saved_item): Use delete instead of
16468 xfree.
16469 (update_dynamic_varobj_children): Likewise.
16470
16471 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16472
16473 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16474
16475 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16476
16477 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16478 m_enum_value to 0 in default constructor.
16479
16480 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16481
16482 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16483 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16484 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16485 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16486 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16487 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16488 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16489 IS_STORE_CONDITIONAL_INSN.
16490
16491 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16492
16493 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16494
16495 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16496
16497 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16498
16499 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16500
16501 * dwarf2read.c (skip_one_die, read_attribute_value)
16502 (dwarf2_const_value_attr, dump_die_shallow)
16503 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16504 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16505
16506 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16507
16508 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16509 (dwarf_parse_macro_header): Accept DWARF version 5.
16510 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16511
16512 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16513
16514 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16515 DW_AT_GNU_*.
16516 * common/common-exceptions.h (enum errors): Likewise.
16517 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16518 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16519 (dwarf_expr_context::execute_stack_op): Likewise.
16520 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16521 Likewise.
16522 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16523 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16524 (show_entry_values_debug, call_site_to_target_addr)
16525 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16526 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16527 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16528 (value_of_dwarf_block_entry, indirect_pieced_value)
16529 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16530 (disassemble_dwarf_expression): Likewise.
16531 * dwarf2read.c (process_die, inherit_abstract_dies)
16532 (read_call_site_scope): Likewise.
16533 * gdbtypes.h (struct func_type, struct call_site_parameter)
16534 (struct call_site): Likewise.
16535 * stack.c (read_frame_arg): Likewise.
16536 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16537
16538 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16539
16540 * defs.h (read_unsigned_leb128): New declaration.
16541 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16542 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16543 (dwarf2_find_location_expression): Call also
16544 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16545 * dwarf2loc.h (dwarf2_version): New declaration.
16546 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16547 rnglists.
16548 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16549 .debug_rnglists.
16550 (struct dwop_section_names): Add loclists_dwo.
16551 (dwop_section_names): Add .debug_loclists.dwo.
16552 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16553 (struct dwarf2_per_cu_data): Add dwarf_version.
16554 (struct dwo_sections): Add loclists.
16555 (struct attr_abbrev): Add implicit_const.
16556 (read_indirect_line_string): New declaration.
16557 (read_unsigned_leb128): Delete declaration.
16558 (rcuh_kind): New definition.
16559 (read_and_check_comp_unit_head): Change parameter
16560 is_debug_types_section to section_kind.
16561 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16562 (read_comp_unit_head): Change parameter abfd to section, add parameter
16563 section_kind. Handle DWARF-5.
16564 (error_check_comp_unit_head): Accept also DWARF version 5.
16565 (read_and_check_comp_unit_head): Change parameter
16566 is_debug_types_section to section_kind.
16567 (read_and_check_type_unit_head): Delete function.
16568 (read_abbrev_offset): Handle DWARF-5.
16569 (create_debug_type_hash_table): Add parameter section_kind. Process
16570 only DW_UT_type. Use signature and type_offset_in_tu from struct
16571 comp_unit_head.
16572 (create_debug_types_hash_table): Update create_debug_type_hash_table
16573 caller.
16574 (create_all_type_units): Call create_debug_type_hash_table.
16575 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16576 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16577 caller.
16578 (skip_one_die): Handle DW_FORM_implicit_const.
16579 (dwarf2_rnglists_process): New function.
16580 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16581 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16582 (read_attribute_value): Handle DW_FORM_implicit_const,
16583 DW_FORM_line_strp.
16584 (read_attribute): Handle DW_FORM_implicit_const.
16585 (read_indirect_string_at_offset_from): New function from
16586 read_indirect_string_at_offset.
16587 (read_indirect_string_at_offset): Call
16588 read_indirect_string_at_offset_from.
16589 (read_indirect_line_string_at_offset): New function.
16590 (read_indirect_string): New function comment.
16591 (read_indirect_line_string): New function.
16592 (read_unsigned_leb128): Make it global.
16593 (dwarf2_string_attr): Handle DWARF-5.
16594 (add_include_dir_stub, read_formatted_entries): New functions.
16595 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16596 Handle DWARF-5.
16597 (per_cu_header_read_in): Update read_comp_unit_head caller.
16598 (dwarf2_version): New function.
16599 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16600 rnglists.
16601 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16602 fields.
16603
16604 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16605
16606 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16607
16608 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16609
16610 * dwarf2read.c (dwarf2_ranges_process): New function from
16611 dwarf2_ranges_read.
16612 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16613 dwarf2_ranges_process.
16614
16615 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16616
16617 * dwarf2read.c (create_debug_type_hash_table): New function from
16618 create_debug_types_hash_table.
16619 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16620 (create_all_type_units, open_and_init_dwo_file): Update
16621 create_debug_types_hash_table callers.
16622
16623 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16624
16625 PR gdb/16188
16626 * fork-child.c (trace_start_error): Fix thinko. va_end should
16627 refer to 'ap', not 'args'.
16628
16629 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16630 Pedro Alves <palves@redhat.com>
16631
16632 PR gdb/16188
16633 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16634 calls succeeded.
16635 * fork-child.c (trace_start_error): New function.
16636 (trace_start_error_with_name): Likewise.
16637 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16638 * inf-ptrace.c (inf_ptrace_me): Likewise.
16639 * inferior.h (trace_start_error): New prototype.
16640 (trace_start_error_with_name): Likewise.
16641
16642 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16643
16644 PR gdb/21164
16645 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16646 NULL before using it.
16647 * symmisc.c (maintenance_print_symbols): Likewise.
16648 (maintenance_print_msymbols): Likewise.
16649
16650 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16651
16652 * NEWS: Add record Python bindings entry.
16653
16654 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16655
16656 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16657 py-record-full.o.
16658 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16659 * python/py-record-btrace.c, python/py-record-btrace.h,
16660 python/py-record-full.c, python/py-record-full.h: New file.
16661 * python/py-record.c: Add include for py-record-btrace.h and
16662 py-record-full.h.
16663 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16664 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16665 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16666 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16667 New definition.
16668 (gdbpy_initialize_btrace): New export.
16669 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16670
16671 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16672
16673 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16674 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16675 * python/py-record.c: New file.
16676 * python/python-internal.h (gdbpy_start_recording,
16677 gdbpy_current_recording, gdpy_stop_recording,
16678 gdbpy_initialize_record): New export.
16679 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16680 (python_GdbMethods): Add gdbpy_start_recording,
16681 gdbpy_current_recording and gdbpy_stop_recording.
16682
16683 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16684
16685 * record-btrace.c (record_btrace_record_method): New function.
16686 (init_record_btrace_ops): Initialize to_record_method.
16687 * record-full.c (record_full_record_method): New function.
16688 (init_record_full_ops, init_record_full_core_ops): Add
16689 record_full_record_method.
16690 * record.h (enum record_method): New enum.
16691 * target-debug.h (target_debug_print_enum_record_method: New define.
16692 * target-delegates.c: Regenerate.
16693 * target.c (target_record_method): New function.
16694 * target.h: Include record.h.
16695 (struct target_ops) <to_record_method>: New field.
16696 (target_record_method): New export.
16697
16698 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16699
16700 * record.h (record_start, record_stop): New export.
16701 * record.c (record_start, record_stop): New function.
16702
16703 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16704
16705 * btrace.c (btrace_fetch): Copy function call segments pointer
16706 into a vector.
16707 (btrace_clear): Clear the vector.
16708 (btrace_find_insn_by_number): Use binary search to find the correct
16709 function call segment.
16710 * btrace.h (brace_fun_p): New typedef.
16711 (struct btrace_thread_info) <functions>: New field.
16712
16713 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16714
16715 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16716 * btrace.c (btrace_decode_error): ... here. New function.
16717 * btrace.h (btrace_decode_error): New export.
16718
16719 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16720
16721 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16722 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16723 btrace_find_insn_by_number): Remove special case for gaps.
16724 * btrace.h (btrace_insn_get_error): New export.
16725 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16726 * record-btrace.c (btrace_insn_history): Print number for gaps.
16727 (record_btrace_info, record_btrace_goto): Handle gaps.
16728
16729 2017-02-14 Tom Tromey <tom@tromey.com>
16730
16731 PR python/13598:
16732 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16733 event.
16734 * python/py-evts.c (gdbpy_initialize_py_events): Add
16735 before_prompt registry.
16736 * python/py-events.h (events_object) <before_prompt>: New field.
16737
16738 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16739
16740 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16741
16742 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16743
16744 * symfile (_initialize_symfile): Add usage text to the load command's
16745 help text.
16746
16747 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16748
16749 * utils.c (defaulted_query): Don't query on secondary UIs.
16750
16751 2017-02-10 Tom Tromey <tom@tromey.com>
16752
16753 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16754
16755 2017-02-10 Tom Tromey <tom@tromey.com>
16756
16757 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16758 "cleanup" local.
16759 * python/py-type.c (typy_legacy_template_argument): Remove
16760 unnecessary "cleanup" local.
16761
16762 2017-02-10 Tom Tromey <tom@tromey.com>
16763
16764 * python/python.c (do_start_initialization): New function, from
16765 _initialize_python.
16766 (_initialize_python): Call do_start_initialization.
16767 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16768 goto.
16769
16770 2017-02-10 Tom Tromey <tom@tromey.com>
16771
16772 * python/py-prettyprint.c (pretty_print_one_value): Use
16773 gdbpy_ref.
16774
16775 2017-02-10 Tom Tromey <tom@tromey.com>
16776
16777 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16778 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16779 gdbpy_ref.
16780 * python/py-type.c (field_new): Use gdbpy_ref.
16781 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16782 gdbpy_ref.
16783 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16784 (py_free_pspace): Likewise.
16785 (pspace_to_pspace_object): Likewise.
16786 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16787 (py_free_objfile): Likewise.
16788 (objfile_to_objfile_object): Likewise.
16789 * python/py-inferior.c (delete_thread_object): Use
16790 gdbpy_ref.
16791 (infpy_read_memory): Likewise.
16792 (py_free_inferior): Likewise.
16793 * python/py-evtregistry.c (create_eventregistry_object): Use
16794 gdbpy_ref.
16795 * python/py-event.c (create_event_object): Use gdbpy_ref.
16796
16797 2017-02-10 Tom Tromey <tom@tromey.com>
16798
16799 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16800 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16801 used.
16802 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16803 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16804 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16805 python/py-framefilter.c, python/py-function.c,
16806 python/py-inferior.c, python/py-infevents.c,
16807 python/py-linetable.c, python/py-newobjfileevent.c,
16808 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16809 python/py-signalevent.c, python/py-stopevent.c,
16810 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16811 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16812 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16813 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16814
16815 2017-02-10 Tom Tromey <tom@tromey.com>
16816
16817 * ui-out.h (ui_out_emit_type): New class.
16818 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16819 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16820 and ui_out_emit_tuple.
16821 (enumerate_locals): Likewise.
16822 (py_mi_print_variables, py_print_locals, py_print_args): Use
16823 ui_out_emit_list.
16824 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16825 ui_out_emit_list.
16826 * common/gdb_optional.h: New file.
16827
16828 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16829
16830 * MAINTAINERS (Write After Approval): Update my e-mail address.
16831
16832 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16833
16834 PR gdb/21122
16835 * breakpoint.c (_initialize_breakpoint): Update the help description
16836 of the 'commands' command to indicate that it takes a list argument.
16837
16838 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16839
16840 * interps.c (current_interp_set_logging): Remove "return".
16841
16842 2017-02-09 Gary Benson <gbenson@redhat.com>
16843
16844 * symtab.c (add_symtab_completions): Prevent NULL pointer
16845 dereference.
16846
16847 2017-02-08 Pedro Alves <palves@redhat.com>
16848
16849 * interps.c (interp::interp): Remove reference to quiet_p.
16850 (interp_set): Make static. Remove dead "Switching to" output
16851 code.
16852 (interp_quiet_p, interp_set_quiet): Delete.
16853 (interpreter_exec_cmd): Don't set the interpreter quiet.
16854 * interps.h (interp_quiet_p): Make static.
16855 (class interp) <quiet_p>: Remove field
16856
16857 2017-02-08 Jerome Guitton <guitton@adacore.com>
16858
16859 * cli/cli-decode.c (find_command_name_length): Make it extern.
16860 * cli/cli-decode.h (find_command_name_length): Declare.
16861 * cli/cli-script.c (command_name_equals, line_first_arg):
16862 New functions.
16863 (process_next_line): Use cli-decode to parse command names.
16864 (build_command_line): Make args a constant pointer.
16865
16866 2017-02-08 Jerome Guitton <guitton@adacore.com>
16867
16868 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16869 Remove case-insensitive search.
16870
16871 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16872
16873 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16874 at the end of the line. Avoids an ARI warning.
16875
16876 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16877
16878 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16879 rdseed instructions.
16880 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16881
16882 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16883
16884 PR tdep/20936
16885 Provide and use sparc32 and sparc64 target description XML files.
16886 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16887 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16888 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16889 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16890 * features/sparc/sparc32-solaris.xml: New file.
16891 * features/sparc/sparc64-solaris.xml: New file.
16892 * features/sparc/sparc32-solaris.c: Generated.
16893 * features/sparc/sparc64-solaris.c: Generated.
16894 * sparc-tdep.h: Account for differences in target descriptions.
16895 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16896 (sparc32_register_type): Use target provided registers.
16897 (validate_tdesc_registers): New function.
16898 (sparc32_gdbarch_init): Use tdesc_has_registers.
16899 Set pseudoregister functions.
16900 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16901 (sparc64_register_type): Use target provided registers.
16902 (sparc64_init_abi): Set pseudoregister functions.
16903
16904 2017-02-03 Tom Tromey <tom@tromey.com>
16905
16906 PR rust/21097:
16907 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16908 with a single member.
16909
16910 2017-02-03 Pedro Alves <palves@redhat.com>
16911
16912 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16913 (cli_interp_base::~cli_interp_base): New.
16914 (cli_interp): New struct.
16915 (as_cli_interp): Cast the interp itself to cli_interp.
16916 (cli_interpreter_pre_command_loop): Rename to ...
16917 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16918 parameter.
16919 (cli_interpreter_init): Rename to ...
16920 (cli_interp::init): ... this. Remove 'self' parameter. Use
16921 boolean. Make extern.
16922 (cli_interpreter_resume): Rename to ...
16923 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16924 extern.
16925 (cli_interpreter_suspend): Rename to ...
16926 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16927 extern.
16928 (cli_interpreter_exec): Rename to ...
16929 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16930 extern.
16931 (cli_interpreter_supports_command_editing): Rename to ...
16932 (cli_interp_base::supports_command_editing): ... this. Remove
16933 'interp' parameter. Make extern.
16934 (cli_ui_out): Rename to ...
16935 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16936 Make extern.
16937 (cli_set_logging): Rename to ...
16938 (cli_interp_base::set_logging): ... this. Remove 'interp'
16939 parameter. Make extern.
16940 (cli_interp_procs): Delete.
16941 (cli_interp_factory): Adjust to use "new".
16942 * cli/cli-interp.h: Include "interps.h".
16943 (struct cli_interp_base): New struct.
16944 * interps.c (struct interp): Delete. Fields moved to interps.h.
16945 (interp_new): Delete.
16946 (interp::interp, interp::~interp): New.
16947 (interp_set): Use bool, and return void. Assume the interpreter
16948 has suspend, init and resume methods, and that the all return
16949 void.
16950 (set_top_level_interpreter): interp_set returns void.
16951 (interp_ui_out): Adapt.
16952 (current_interp_set_logging): Adapt.
16953 (interp_data): Delete.
16954 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16955 (interp_exec): Adapt.
16956 (top_level_interpreter_data): Delete.
16957 * interps.h (interp_init_ftype, interp_resume_ftype)
16958 (interp_suspend_ftype, interp_exec_ftype)
16959 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16960 (class interp): New.
16961 (interp_new): Delete.
16962 (interp_set): Now returns void. Use bool.
16963 (interp_data, top_level_interpreter_data): Delete.
16964 * mi/mi-common.h: Include interps.h.
16965 (class mi_interp): Inherit from interp. Define a ctor. Declare
16966 init, resume, suspect, exec, interp_ui_out, set_logging and
16967 pre_command_loop methods.
16968 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16969 (mi_interpreter_init): Rename to ...
16970 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16971 bool, return void and make extern. Adjust.
16972 (mi_interpreter_resume): ... Rename to ...
16973 (mi_interp::resume): ... this. Remove the 'data' parameter,
16974 return void and make extern. Adjust.
16975 (mi_interpreter_suspend): ... Rename to ...
16976 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16977 return void and make extern. Adjust.
16978 (mi_interpreter_exec): ... Rename to ...
16979 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16980 extern. Adjust.
16981 (mi_interpreter_pre_command_loop): ... Rename to ...
16982 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16983 parameter and make extern.
16984 (mi_on_normal_stop_1): Adjust.
16985 (mi_ui_out): Rename to ...
16986 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16987 parameter and make extern. Adjust.
16988 (mi_set_logging): Rename to ...
16989 (mi_interp::set_logging): ... this. Remove the 'interp'
16990 parameter and make extern. Adjust.
16991 (mi_interp_procs): Delete.
16992 (mi_interp_factory): Adjust to use 'new'.
16993 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16994 (mi_print_exception, mi_execute_command, mi_load_progress):
16995 Adjust.
16996 * tui/tui-interp.c (tui_interp): New class.
16997 (as_tui_interp): Return a tui_interp pointer.
16998 (tui_on_normal_stop, tui_on_signal_received)
16999 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
17000 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
17001 to use interp::interp_ui_out.
17002 (tui_init): Rename to ...
17003 (tui_interp::init): ... this. Remove the 'self' parameter, use
17004 bool, return void and make extern. Adjust.
17005 (tui_resume): Rename to ...
17006 (tui_interp::resume): ... this. Remove the 'data' parameter,
17007 return void and make extern. Adjust.
17008 (tui_suspend): Rename to ...
17009 (tui_interp::suspend): ... this. Remove the 'data' parameter,
17010 return void and make extern. Adjust.
17011 (tui_ui_out): Rename to ...
17012 (tui_interp::interp_ui_out): ... this. Remove the 'self'
17013 parameter, and make extern. Adjust.
17014 (tui_exec): Rename to ...
17015 (tui_interp::exec): ... this. Remove the 'data' parameter and
17016 make extern.
17017 (tui_interp_procs): Delete.
17018 (tui_interp_factory): Use "new".
17019
17020 2017-02-02 Tom Tromey <tom@tromey.com>
17021
17022 * rust-exp.y (ends_raw_string, space_then_number)
17023 (rust_identifier_start_p): Return bool.
17024 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
17025 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
17026 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
17027 (rust_chartype_p): Return bool.
17028 (val_print_struct, rust_print_struct_def, rust_print_type):
17029 Update.
17030 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
17031 Return bool.
17032
17033 2017-02-02 Tom Tromey <tom@tromey.com>
17034
17035 * rust-lang.c: Reindent.
17036
17037 2017-02-02 Tom Tromey <tom@tromey.com>
17038
17039 * rust-lang.h (rust_crate_for_block): Update.
17040 * rust-lang.c (rust_crate_for_block): Return std::string.
17041 (rust_get_disr_info): Use std:;string, not
17042 gdb::unique_xmalloc_ptr.
17043 * rust-exp.y (crate_name): Update.
17044
17045 2017-02-02 Pedro Alves <palves@redhat.com>
17046
17047 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
17048 field out of gdb_disassembler_test and make it static.
17049
17050 2017-02-02 Pedro Alves <palves@redhat.com>
17051
17052 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
17053 mi1_interp and mi_interp fields.
17054
17055 2017-02-02 Pedro Alves <palves@redhat.com>
17056
17057 * cli/cli-interp.c (struct saved_output_files, saved_output):
17058 Moved from cli/cli-logging.c.
17059 (cli_set_logging): New function.
17060 (cli_interp_procs): Install cli_set_logging.
17061 * cli/cli-interp.h (make_logging_output, cli_set_logging):
17062 Declare.
17063 * cli/cli-logging.c (struct saved_output_files, saved_output):
17064 Moved to cli/cli-interp.c.
17065 (pop_output_files): Don't save outputs here.
17066 (make_logging_output): New function.
17067 (handle_redirections): Don't build tee nor save previous outputs
17068 here.
17069 * interps.c (current_interp_set_logging): Change prototype.
17070 Assume there's always a set_logging_proc method installed.
17071 * interps.h (interp_set_logging_ftype): Change prototype.
17072 (current_interp_set_logging): Change prototype and adjust comment.
17073 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
17074 use make_logging_output.
17075 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
17076 2017-02-02 Pedro Alves <palves@redhat.com>
17077
17078 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
17079 from ...
17080 (set_logging_overwrite): ... here.
17081 (logging_no_redirect_file): Delete.
17082 (set_logging_redirect): Don't handle redirection on the fly.
17083 Instead warn that "logging off" / "logging on" is necessary.
17084 (pop_output_files): Delete references to logging_no_redirect_file.
17085 (show_logging_command): Always speak in terms of what will happen
17086 once logging is reenabled.
17087
17088 2017-02-02 Pedro Alves <palves@redhat.com>
17089
17090 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
17091
17092 2017-02-02 Pedro Alves <palves@redhat.com>
17093
17094 * disasm.c (gdb_pretty_print_insn): Rename to ...
17095 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
17096 Remove gdbarch parameter. Adapt to clear the object's buffers
17097 instead of allocating new buffers, and to print using the object's
17098 gdb_disassembler instead of calling gdb_print_insn.
17099 (dump_insns): Use gdb_pretty_print_disassembler.
17100 * disasm.h (gdb_pretty_print_insn): Delete declaration.
17101 (gdb_pretty_print_disassembler): New class.
17102 * record-btrace.c (btrace_insn_history): Use
17103 gdb_pretty_print_disassembler.
17104
17105 2017-02-02 Pedro Alves <palves@redhat.com>
17106
17107 * ada-lang.c (type_as_string): Use string_file.
17108 * ada-valprint.c (ada_print_floating): Use string_file.
17109 * ada-varobj.c (ada_varobj_scalar_image)
17110 (ada_varobj_get_value_image): Use string_file.
17111 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
17112 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
17113 * breakpoint.c (update_inserted_breakpoint_locations)
17114 (insert_breakpoint_locations, reattach_breakpoints)
17115 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
17116 (print_it_watchpoint): Use string_file.
17117 (save_breakpoints): Use stdio_file.
17118 * c-exp.y (oper): Use string_file.
17119 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
17120 tee_file.
17121 (pop_output_files): Use delete.
17122 (handle_redirections): Use stdio_file and tee_file.
17123 * cli/cli-setshow.c (do_show_command): Use string_file.
17124 * compile/compile-c-support.c (c_compute_program): Use
17125 string_file.
17126 * compile/compile-c-symbols.c (generate_vla_size): Take a
17127 'string_file &' instead of a 'ui_file *'.
17128 (generate_c_for_for_one_variable): Take a 'string_file &' instead
17129 of a 'ui_file *'. Use string_file.
17130 (generate_c_for_variable_locations): Take a 'string_file &'
17131 instead of a 'ui_file *'.
17132 * compile/compile-internal.h (generate_c_for_for_one_variable):
17133 Take a 'string_file &' instead of a 'ui_file *'.
17134 * compile/compile-loc2c.c (push, pushf, unary, binary)
17135 (print_label, pushf_register_address, pushf_register)
17136 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
17137 'ui_file *'. Adjust.
17138 * compile/compile.c (compile_to_object): Use string_file.
17139 * compile/compile.h (compile_dwarf_expr_to_c)
17140 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
17141 'ui_file *'.
17142 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
17143 (replace_typedefs_qualified_name): Use string_file and
17144 obstack_copy0.
17145 * disasm.c (gdb_pretty_print_insn): Use string_file.
17146 (gdb_disassembly): Adjust reference the null_stream global.
17147 (do_ui_file_delete): Delete.
17148 (gdb_insn_length): Use null_stream.
17149 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
17150 * dwarf2loc.c (dwarf2_compile_property_to_c)
17151 (locexpr_generate_c_location, loclist_generate_c_location): Take a
17152 'string_file &' instead of a 'ui_file *'.
17153 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
17154 * dwarf2read.c (do_ui_file_peek_last): Delete.
17155 (dwarf2_compute_name): Use string_file.
17156 * event-top.c (gdb_setup_readline): Use stdio_file.
17157 * gdbarch.sh (verify_gdbarch): Use string_file.
17158 * gdbtypes.c (safe_parse_type): Use null_stream.
17159 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
17160 string_file.
17161 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
17162 'string_file *' instead of a 'ui_file *'.
17163 (gdbscm_arch_disassemble): Use string_file.
17164 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
17165 * guile/scm-ports.c (class ioscm_file_port): Now a class that
17166 inherits from ui_file.
17167 (ioscm_file_port_delete, ioscm_file_port_rewind)
17168 (ioscm_file_port_put): Delete.
17169 (ioscm_file_port_write): Rename to ...
17170 (ioscm_file_port::write): ... this. Remove file_port_magic
17171 checks.
17172 (ioscm_file_port_new): Delete.
17173 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
17174 ui_file_up.
17175 * guile/scm-type.c (tyscm_type_name): Use string_file.
17176 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
17177 Use string_file.
17178 * infcmd.c (print_return_value_1): Use string_file.
17179 * infrun.c (print_target_wait_results): Use string_file.
17180 * language.c (add_language): Use string_file.
17181 * location.c (explicit_to_string_internal): Use string_file.
17182 * main.c (captured_main_1): Use null_file.
17183 * maint.c (maintenance_print_architecture): Use stdio_file.
17184 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
17185 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
17186 event_channel>: Change type to mi_console_file pointer.
17187 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
17188 (mi_console_file_delete): Delete.
17189 (struct mi_console_file): Delete.
17190 (mi_console_file_magic): Delete.
17191 (mi_console_file_new): Delete.
17192 (mi_console_file::mi_console_file): New.
17193 (mi_console_file_delete): Delete.
17194 (mi_console_file_fputs): Delete.
17195 (mi_console_file::write): New.
17196 (mi_console_raw_packet): Delete.
17197 (mi_console_file::flush): New.
17198 (mi_console_file_flush): Delete.
17199 (mi_console_set_raw): Rename to ...
17200 (mi_console_file::set_raw): ... this.
17201 * mi/mi-console.h (class mi_console_file): New class.
17202 (mi_console_file_new, mi_console_set_raw): Delete.
17203 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
17204 (mi_set_logging): Use delete and tee_file. Adjust.
17205 * mi/mi-main.c (output_register): Use string_file.
17206 (mi_cmd_data_evaluate_expression): Use string_file.
17207 (mi_cmd_data_read_memory): Use string_file.
17208 (mi_cmd_execute, print_variable_or_computed): Use string_file.
17209 * mi/mi-out.c (mi_ui_out::main_stream): New.
17210 (mi_ui_out::rewind): Use main_stream and
17211 string_file.
17212 (mi_ui_out::put): Use main_stream and string_file.
17213 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17214 Allocate a 'string_file' instead.
17215 (mi_out_new): Don't allocate a mem_fileopen stream here.
17216 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17217 (mi_ui_out::main_stream): Declare method.
17218 * printcmd.c (eval_command): Use string_file.
17219 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
17220 * python/py-arch.c (archpy_disassemble): Use string_file.
17221 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
17222 * python/py-frame.c (frapy_str): Use string_file.
17223 * python/py-framefilter.c (py_print_type, py_print_single_arg):
17224 Use string_file.
17225 * python/py-type.c (typy_str): Use string_file.
17226 * python/py-unwind.c (unwind_infopy_str): Use string_file.
17227 * python/py-value.c (valpy_str): Use string_file.
17228 * record-btrace.c (btrace_insn_history): Use string_file.
17229 * regcache.c (regcache_print): Use stdio_file.
17230 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
17231 * remote.c (escape_buffer): Use string_file.
17232 * rust-lang.c (rust_get_disr_info): Use string_file.
17233 * serial.c (serial_open_ops_1): Use stdio_file.
17234 (do_serial_close): Use delete.
17235 * stack.c (print_frame_arg): Use string_file.
17236 (print_frame_args): Remove local mem_fileopen stream, not used.
17237 (print_frame): Use string_file.
17238 * symmisc.c (maintenance_print_symbols): Use stdio_file.
17239 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
17240 Take a 'string_file *' instead of a 'ui_file *'.
17241 * top.c (new_ui): Use stdio_file and stderr_file.
17242 (free_ui): Use delete.
17243 (execute_command_to_string): Use string_file.
17244 (quit_confirm): Use string_file.
17245 * tracepoint.c (collection_list::append_exp): Use string_file.
17246 * tui/tui-disasm.c (tui_disassemble): Use string_file.
17247 * tui/tui-file.c: Don't include "ui-file.h".
17248 (enum streamtype, struct tui_stream): Delete.
17249 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
17250 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
17251 (tui_file::tui_file): New method.
17252 (tui_file_fputs): Delete.
17253 (tui_file_get_strbuf): Delete.
17254 (tui_file::puts): New method.
17255 (tui_file_adjust_strbuf): Delete.
17256 (tui_file_flush): Delete.
17257 (tui_file::flush): New method.
17258 * tui/tui-file.h: Tweak intro comment.
17259 Include ui-file.h.
17260 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
17261 (tui_file_adjust_strbuf): Delete declarations.
17262 (class tui_file): New class.
17263 * tui/tui-io.c (tui_initialize_io): Use tui_file.
17264 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
17265 (tui_register_format): Use string_stream.
17266 * tui/tui-stack.c (tui_make_status_line): Use string_file.
17267 (tui_get_function_from_frame): Use string_file.
17268 * typeprint.c (type_to_string): Use string_file.
17269 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
17270 (null_stream): New global.
17271 (ui_file_delete): Delete.
17272 (ui_file::ui_file): New.
17273 (null_file_isatty): Delete.
17274 (ui_file::~ui_file): New.
17275 (null_file_rewind): Delete.
17276 (ui_file::printf): New.
17277 (null_file_put): Delete.
17278 (null_file_flush): Delete.
17279 (ui_file::putstr): New.
17280 (null_file_write): Delete.
17281 (ui_file::putstrn): New.
17282 (null_file_read): Delete.
17283 (ui_file::putc): New.
17284 (null_file_fputs): Delete.
17285 (null_file_write_async_safe): Delete.
17286 (ui_file::vprintf): New.
17287 (null_file_delete): Delete.
17288 (null_file::write): New.
17289 (null_file_fseek): Delete.
17290 (null_file::puts): New.
17291 (ui_file_data): Delete.
17292 (null_file::write_async_safe): New.
17293 (gdb_flush, ui_file_isatty): Adjust.
17294 (ui_file_put, ui_file_rewind): Delete.
17295 (ui_file_write): Adjust.
17296 (ui_file_write_for_put): Delete.
17297 (ui_file_write_async_safe, ui_file_read): Adjust.
17298 (ui_file_fseek): Delete.
17299 (fputs_unfiltered): Adjust.
17300 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17301 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17302 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17303 (set_ui_file_data): Delete.
17304 (string_file::~string_file, string_file::write)
17305 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17306 (do_ui_file_as_string, ui_file_as_string): Delete.
17307 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17308 (struct mem_file): Delete.
17309 (mem_file_new): Delete.
17310 (stdio_file::stdio_file): New.
17311 (mem_file_delete): Delete.
17312 (stdio_file::stdio_file): New.
17313 (mem_fileopen): Delete.
17314 (stdio_file::~stdio_file): New.
17315 (mem_file_rewind): Delete.
17316 (stdio_file::set_stream): New.
17317 (mem_file_put): Delete.
17318 (stdio_file::open): New.
17319 (mem_file_write): Delete.
17320 (stdio_file_magic, struct stdio_file): Delete.
17321 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17322 (stdio_file::flush): New.
17323 (stdio_file_read): Rename to ...
17324 (stdio_file::read): ... this. Adjust.
17325 (stdio_file_write): Rename to ...
17326 (stdio_file::write): ... this. Adjust.
17327 (stdio_file_write_async_safe): Rename to ...
17328 (stdio_file::write_async_safe) ... this. Adjust.
17329 (stdio_file_fputs): Rename to ...
17330 (stdio_file::puts) ... this. Adjust.
17331 (stdio_file_isatty): Delete.
17332 (stdio_file_fseek): Delete.
17333 (stdio_file::isatty): New.
17334 (stderr_file_write): Rename to ...
17335 (stderr_file::write) ... this. Adjust.
17336 (stderr_file_fputs): Rename to ...
17337 (stderr_file::puts) ... this. Adjust.
17338 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17339 (stderr_file::stderr_file): New.
17340 (tee_file_magic): Delete.
17341 (struct tee_file): Delete.
17342 (tee_file::tee_file): New.
17343 (tee_file_new): Delete.
17344 (tee_file::~tee_file): New.
17345 (tee_file_delete): Delete.
17346 (tee_file_flush): Rename to ...
17347 (tee_file::flush): ... this. Adjust.
17348 (tee_file_write): Rename to ...
17349 (tee_file::write): ... this. Adjust.
17350 (tee_file::write_async_safe): New.
17351 (tee_file_fputs): Rename to ...
17352 (tee_file::puts): ... this. Adjust.
17353 (tee_file_isatty): Rename to ...
17354 (tee_file::isatty): ... this. Adjust.
17355 * ui-file.h (struct obstack, struct ui_file): Don't
17356 forward-declare.
17357 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17358 (ui_file_write_ftype)
17359 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17360 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17361 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17362 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17363 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17364 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17365 (set_ui_file_fseek): Delete.
17366 (ui_file_data, ui_file_delete, ui_file_rewind)
17367 (struct ui_file): New.
17368 (ui_file_up): New.
17369 (class null_file): New.
17370 (null_stream): Declare.
17371 (ui_file_write_for_put, ui_file_put): Delete.
17372 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17373 Delete.
17374 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17375 (gdb_fopen, tee_file_new): Delete.
17376 (struct string_file): New.
17377 (struct stdio_file): New.
17378 (stdio_file_up): New.
17379 (struct stderr_file): New.
17380 (class tee_file): New.
17381 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17382 of a 'ui_file *'. Adjust.
17383 * ui-out.h (class ui_out) <field_stream>: Likewise.
17384 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17385 (null_stream): Delete.
17386 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17387 Adjust.
17388 * utils.h (struct ui_file): Delete forward declaration..
17389 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17390 (error_stream): Take a 'string_file &' instead of a
17391 'ui_file *'.
17392 * varobj.c (varobj_value_get_print_value): Use string_file.
17393 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17394 * gdbarch.c: Regenerate.
17395
17396 2017-02-02 Pedro Alves <palves@redhat.com>
17397
17398 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17399 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17400 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17401 Adjust to call gdb_print_insn instead of
17402 gdb_disassembler::print_insn.
17403 (dump_insns, do_mixed_source_and_assembly_deprecated)
17404 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17405 'gdbarch' parameter. Remove gdb_disassembler parameter.
17406 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17407 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17408 declaration.
17409 (gdb_pretty_print_insn): Re-add declaration.
17410 * record-btrace.c (btrace_insn_history): Don't allocate a
17411 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17412
17413 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17414
17415 * disasm.h (gdb_disassembly): Remove file_string parameter.
17416 * disasm.c (gdb_disassembly): Likewise.
17417 * cli/cli-cmds.c (print_disassembly): Adapt.
17418 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17419 * stack.c (do_gdb_disassembly): Likewise.
17420
17421 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17422
17423 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17424 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17425 targets. And if the implicit value is longer than needed, extract
17426 the first bytes instead of the "least significant" ones.
17427
17428 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17429
17430 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17431 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17432 (btrace_fetch): Assert can_access_registers_ptid.
17433 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17434 validate_registers_access.
17435
17436 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17437
17438 * gdbthread.h (can_access_registers_ptid): New.
17439 * thread.c (can_access_registers_ptid): New.
17440
17441 2017-02-01 Pedro Alves <palves@redhat.com>
17442
17443 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17444
17445 2017-01-31 Pedro Alves <palves@redhat.com>
17446
17447 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17448 Fix typos.
17449
17450 2017-01-31 Pedro Alves <palves@redhat.com>
17451
17452 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17453 not used.
17454
17455 2017-01-31 Pedro Alves <palves@redhat.com>
17456
17457 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17458
17459 2017-01-31 Pedro Alves <palves@redhat.com>
17460
17461 * common/scoped_restore.h
17462 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17463 change the value's parameter type to T2.
17464 (make_scoped_restore): Likewise.
17465
17466 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17467 Richard Henderson <rth@redhat.com>
17468
17469 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17470 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17471 GS_BASE for older kernels.
17472 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17473 GS_BASE for older kernels.
17474 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17475 and GS_BASE to the offset table.
17476 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17477 system register group.
17478 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17479 for older kernels.
17480 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17481 amd64 ABI.
17482 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17483 AMD64_GSBASE_REGNUM.
17484 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17485 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17486 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17487 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17488 i386/64bit-segments.xml in those rules.
17489 * features/i386/64bit-segments.xml: New file.
17490 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17491 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17492 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17493 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17494 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17495 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17496 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17497 * features/i386/amd64-avx-linux.c: Regenerated.
17498 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17499 * features/i386/amd64-avx-mpx.c: Regenerated.
17500 * features/i386/amd64-avx512-linux.c: Regenerated.
17501 * features/i386/amd64-linux.c: Regenerated.
17502 * features/i386/amd64-mpx-linux.c: Regenerated.
17503 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17504 * features/i386/i386-avx-mpx.c: Regenerated.
17505 * features/i386/x32-avx-linux.c: Regenerated.
17506 * features/i386/x32-avx512-linux.c: Regenerated.
17507 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17508 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17509 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17510 * regformats/i386/amd64-linux.dat: Regenerated.
17511 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17512 * regformats/i386/x32-avx-linux.dat: Regenerated.
17513 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17514 * regformats/i386/x32-linux.dat: Regenerated.
17515
17516 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17517
17518 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17519 Set to AMD64_NUM_REGS.
17520
17521 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17522
17523 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17524 that checks validity of a register number.
17525
17526 2017-01-27 Kees Cook <keescook@google.com>
17527
17528 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17529 fetch_fpregs if target has fpa registers.
17530 (arm_linux_store_inferior_registers): Call store_fpregs if target
17531 has fpa registers.
17532
17533 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17534
17535 * cris-tdep.c (cris_gdbarch_init): Remove check for
17536 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17537
17538 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17539
17540 * corelow.c (get_core_register_section): Check for regset
17541 existence before checking for REGSET_VARIABLE_SIZE.
17542
17543 2017-01-26 Yao Qi <yao.qi@linaro.org>
17544 Pedro Alves <palves@redhat.com>
17545
17546 PR gdb/20939
17547 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17548 call memory_error, save memaddr instead.
17549 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17550 negative, cal memory_error.
17551 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17552
17553 2017-01-26 Yao Qi <yao.qi@linaro.org>
17554
17555 * disasm-selftests.c (memory_error_test): New function.
17556 (_initialize_disasm_selftests): Register memory_error_test.
17557
17558 2017-01-26 Yao Qi <yao.qi@linaro.org>
17559
17560 * Makefile.in (SFILES): Add disasm-selftests.c and
17561 selftest-arch.c.
17562 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17563 * disasm-selftests.c: New file.
17564 * selftest-arch.c: New file.
17565 * selftest-arch.h: New file.
17566
17567 2017-01-26 Yao Qi <yao.qi@linaro.org>
17568
17569 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17570 to bfd_arch_mep. Don't return 0 if section is not
17571 found. Call print_insn_mep.
17572
17573 2017-01-26 Pedro Alves <palves@redhat.com>
17574 Yao Qi <yao.qi@linaro.org>
17575
17576 * arm-tdep.c: Include "disasm.h".
17577 (gdb_print_insn_arm): Update code to get gdbarch.
17578 * disasm.c (dis_asm_read_memory): Change it to
17579 gdb_disassembler::dis_asm_read_memory.
17580 (dis_asm_memory_error): Likewise.
17581 (dis_asm_print_address): Likewise.
17582 (gdb_pretty_print_insn): Change it to
17583 gdb_disassembler::pretty_print_insn.
17584 (dump_insns): Add one argument gdb_disassemlber. All
17585 callers updated.
17586 (do_mixed_source_and_assembly_deprecated): Likewise.
17587 (do_mixed_source_and_assembly): Likewise.
17588 (do_assembly_only): Likewise.
17589 (gdb_disassembler::gdb_disassembler): New.
17590 (gdb_disassembler::print_insn): New.
17591 * disasm.h (class gdb_disassembler): New.
17592 (gdb_pretty_print_insn): Remove declaration.
17593 (gdb_disassemble_info): Likewise.
17594 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17595 (gdbscm_disasm_read_memory_worker): Update.
17596 (gdbscm_disasm_read_memory): Update.
17597 (gdbscm_disasm_memory_error): Remove.
17598 (gdbscm_disasm_print_address): Remove.
17599 (gdbscm_disassembler::gdbscm_disassembler): New.
17600 (gdbscm_print_insn_from_port): Update.
17601 * mips-tdep.c: Include disasm.h.
17602 (gdb_print_insn_mips): Update code to get gdbarch.
17603 * record-btrace.c (btrace_insn_history): Update.
17604 * spu-tdep.c: Include disasm.h.
17605 (struct spu_dis_asm_data): Remove.
17606 (struct spu_dis_asm_info): New.
17607 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17608 SPU id.
17609 (gdb_print_insn_spu): Cast disassemble_info to
17610 spu_dis_asm_info.
17611
17612 2017-01-26 Yao Qi <yao.qi@linaro.org>
17613
17614 * disasm.c (do_ui_file_delete): Delete.
17615 (gdb_insn_length): Move code creating stream to ...
17616 * utils.c (null_stream): ... here. New function.
17617 * utils.h (null_stream): Declare.
17618
17619 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17620
17621 * python/py-inferior.c (find_thread_object): Return directly
17622 from the loop. Remove "found" variable.
17623
17624 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17625
17626 GDB 7.12.1 released.
17627
17628 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17629
17630 * python/py-function.c (fnpy_call): Reorder declarations to have
17631 the gdbpy_enter object declared first.
17632 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17633
17634 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17635
17636 PR python/21068
17637 * python/python-internal.h (PyMem_RawMalloc): Define for
17638 Python < 3.4.
17639 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17640 PyMem_RawMalloc instead of PyMem_Malloc.
17641
17642 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17643 Luis Machado <lgustavo@codesourcery.com>
17644
17645 * NEWS (New commands): Mention flash-erase.
17646 (New MI commands): Mention target-flash-erase.
17647 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17648 command.
17649 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17650 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17651 * target.c (flash_erase_command): New function.
17652 (initialize_targets): Add new flash-erase command.
17653 * target.h (flash_erase_command): New declaration.
17654
17655 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17656
17657 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17658 HAVE_SYS_PROCFS_H is defined.
17659
17660 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17661
17662 * remote.c (struct cached_reg): Change data into a pointer.
17663 * (stop_reply_dtr): Free data pointers before deleting vector.
17664 (process_stop_reply): Likewise.
17665 (remote_parse_stop_reply): Allocate space for data
17666
17667 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17668
17669 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17670 MAX_REGISTER_SIZE.
17671 (amd64_pseudo_register_read_value): Likewise.
17672 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17673 (store_register_using_P): Likewise.
17674 * regcache.c (regcache_xfer_part): Likewise.
17675
17676 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17677
17678 Split real and pseudo registers.
17679 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17680 (sparc32_pseudo_regnum): New enum.
17681 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17682 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17683 (SPARC32_CP0_REGISTERS): New macro.
17684 (sparc32_pseudo_register_name): New function.
17685 (sparc32_register_name): Use sparc32_pseudo_register_name.
17686 (sparc32_pseudo_register_type): New function.
17687 (sparc32_register_type): Use sparc32_pseudo_register_type.
17688 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17689 pseudo register numbers.
17690 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17691 (SPARC64_CP0_REGISTERS): New macro.
17692 (sparc64_pseudo_register_name): New function.
17693 (sparc64_register_name): Use sparc64_pseudo_register_name.
17694 (sparc64_pseudo_register_type): New function.
17695 (sparc64_register_type): Use sparc64_pseudo_register_type.
17696 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17697 pseudo register numbers.
17698 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17699 sparc64_store_arguments): Handle pseudo register numbers.
17700
17701 2017-01-13 Yao Qi <yao.qi@linaro.org>
17702
17703 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17704 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17705 output.
17706 (getpkt_or_notif_sane_1): Likewise.
17707
17708 2017-01-13 Yao Qi <yao.qi@linaro.org>
17709
17710 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17711 of CC. Pass "-x c++-header" instead of "-x c".
17712
17713 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17714
17715 * remote.c (remote_can_async_p): Update comment.
17716
17717 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17718
17719 * linux-nat.c (linux_nat_can_async_p): Update comment.
17720
17721 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17722
17723 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17724
17725 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17726
17727 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17728
17729 2017-01-10 Tom Tromey <tom@tromey.com>
17730
17731 * python/py-type.c (typy_legacy_template_argument): Update.
17732 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17733 ~demangle_parse_info): Declare new members.
17734 (cp_demangled_name_to_comp): Return unique_ptr.
17735 (cp_demangled_name_parse_free)
17736 (make_cleanup_cp_demangled_name_parse_free)
17737 (cp_new_demangle_parse_info): Remove.
17738 * cp-support.c (do_demangled_name_parse_free_cleanup)
17739 (make_cleanup_cp_demangled_name_parse_free): Remove.
17740 (inspect_type, cp_canonicalize_string_full)
17741 (cp_canonicalize_string): Update.
17742 (mangled_name_to_comp): Change return type.
17743 (cp_class_name_from_physname, method_name_from_physname)
17744 (cp_func_name, cp_remove_params): Update.
17745 * cp-name-parser.y (demangle_parse_info): New constructor, from
17746 cp_new_demangle_parse_info.
17747 (~demangle_parse_info): New destructor, from
17748 cp_demangled_name_parse_free.
17749 (cp_merge_demangle_parse_infos): Update.
17750 (cp_demangled_name_to_comp): Change return type.
17751
17752 2017-01-10 Tom Tromey <tom@tromey.com>
17753
17754 * top.c (prevent_dont_repeat): Change return type.
17755 * python/python.c (execute_gdb_command): Use std::string.
17756 Update.
17757 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17758 * command.h (prevent_dont_repeat): Change return type.
17759 * breakpoint.c (bpstat_do_actions_1): Update.
17760
17761 2017-01-10 Tom Tromey <tom@tromey.com>
17762
17763 * value.h (scoped_value_mark::~scoped_value_mark): Call
17764 free_to_mark.
17765 (scoped_value_mark::free_to_mark): New method.
17766 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17767 scoped_value_mark.
17768
17769 2017-01-10 Tom Tromey <tom@tromey.com>
17770
17771 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17772 (valpy_reference_value, valpy_const_value, valpy_get_address)
17773 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17774 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17775 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17776 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17777 scoped_value_mark.
17778 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17779 * value.h (scoped_value_mark): New class.
17780
17781 2017-01-10 Tom Tromey <tom@tromey.com>
17782
17783 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17784 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17785 * psymtab.c (discard_psymtabs_upto): Remove.
17786 (make_cleanup_discard_psymtabs): Remove.
17787 (struct psymtab_state): Remove.
17788
17789 2017-01-10 Tom Tromey <tom@tromey.com>
17790
17791 * record-full.c (record_full_save_cleanups): Remove.
17792 (record_full_save): Use gdb::unlinker.
17793 * gcore.c (do_bfd_delete_cleanup): Remove.
17794 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17795 cleanups.
17796 * dwarf2read.c (unlink_if_set): Remove.
17797 (write_psymtabs_to_index): Use gdb::unlinker.
17798 * common/gdb_unlinker.h: New file.
17799
17800 2017-01-10 Tom Tromey <tom@tromey.com>
17801
17802 * windows-tdep.c (windows_xfer_shared_library): Update.
17803 * windows-nat.c (windows_make_so): Update.
17804 * utils.h (make_cleanup_bfd_unref): Remove.
17805 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17806 * symfile.h (symfile_bfd_open)
17807 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17808 * symfile.c (read_symbols, symbol_file_add)
17809 (separate_debug_file_exists): Update.
17810 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17811 (generic_load, reread_symbols): Update.
17812 * symfile-mem.c (symbol_file_add_from_memory): Update.
17813 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17814 (spu_symbol_file_add_from_memory): Update.
17815 * solist.h (struct target_so_ops) <bfd_open>: Return
17816 gdb_bfd_ref_ptr.
17817 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17818 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17819 gdb_bfd_ref_ptr.
17820 (solib_map_sections, reload_shared_libraries_1): Update.
17821 * solib-svr4.c (enable_break): Update.
17822 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17823 * solib-frv.c (enable_break2): Update.
17824 * solib-dsbt.c (enable_break): Update.
17825 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17826 gdb_bfd_ref_ptr.
17827 (darwin_solib_get_all_image_info_addr_at_init): Update.
17828 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17829 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17830 * record-full.c (record_full_save): Update.
17831 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17832 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17833 * minidebug.c (find_separate_debug_file_in_section): Return
17834 gdb_bfd_ref_ptr.
17835 * machoread.c (macho_add_oso_symfile): Change abfd to
17836 gdb_bfd_ref_ptr.
17837 (macho_symfile_read_all_oso): Update.
17838 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17839 (macho_symfile_read): Update.
17840 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17841 (jit_bfd_try_read_symtab): Update.
17842 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17843 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17844 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17845 gdb_bfd_ref_ptr.
17846 (gdb_bfd_ref_policy): New struct.
17847 (gdb_bfd_ref_ptr): New typedef.
17848 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17849 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17850 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17851 gdb_bfd_ref_ptr.
17852 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17853 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17854 (gcore_command): Update.
17855 * exec.c (exec_file_attach): Update.
17856 * elfread.c (elf_symfile_read): Update.
17857 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17858 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17859 (open_and_init_dwo_file): Update.
17860 (open_dwp_file): Return gdb_bfd_ref_ptr.
17861 (open_and_init_dwp_file): Update.
17862 * corelow.c (core_open): Update.
17863 * compile/compile-object-load.c (compile_object_load): Update.
17864 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17865 * coffread.c (coff_symfile_read): Update.
17866 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17867 gdb_bfd_ref_ptr. Rename.
17868 (dump_bfd_file, restore_command): Update.
17869 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17870 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17871 (find_separate_debug_file_by_buildid): Update.
17872
17873 2017-01-10 Tom Tromey <tom@tromey.com>
17874
17875 * common/gdb_ref_ptr.h: New file.
17876 * python/py-ref.h (struct gdbpy_ref_policy): New.
17877 (gdbpy_ref): Now a typedef.
17878
17879 2017-01-10 Tom Tromey <tom@tromey.com>
17880
17881 * utils.h (make_cleanup_htab_delete): Don't declare.
17882 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17883 Remove.
17884 * linespec.c (decode_compound_collector): Add constructor,
17885 destructor.
17886 (lookup_prefix_sym): Remove cleanup.
17887 (symtab_collector): Add constructor, destructor.
17888 (collect_symtabs_from_filename): Remove cleanup.
17889 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17890 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17891 Use htab_up.
17892 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17893 * dwarf2read.c (dw2_expand_symtabs_matching)
17894 (dw2_map_symbol_filenames, dwarf_decode_macros)
17895 (write_psymtabs_to_index): Use htab_up.
17896 * dwarf2loc.c (func_verify_no_selftailcall)
17897 (call_site_find_chain_1, func_verify_no_selftailcall)
17898 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17899 std::vector, gdb::unique_xmalloc_ptr.
17900 (call_sitep): Remove typedef.
17901 (dwarf2_locexpr_baton_eval): Remove unused variable.
17902
17903 2017-01-10 Tom Tromey <tom@tromey.com>
17904
17905 * python/python-internal.h (make_cleanup_py_decref)
17906 (make_cleanup_py_xdecref): Don't declare.
17907 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17908 (py_xdecref, make_cleanup_py_xdecref): Remove.
17909
17910 2017-01-10 Tom Tromey <tom@tromey.com>
17911
17912 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17913 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17914
17915 2017-01-10 Tom Tromey <tom@tromey.com>
17916
17917 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17918
17919 2017-01-10 Tom Tromey <tom@tromey.com>
17920
17921 * python/py-utils.c (unicode_to_encoded_string)
17922 (python_string_to_target_string)
17923 (python_string_to_target_python_string)
17924 (python_string_to_host_string, gdbpy_obj_to_string)
17925 (get_addr_from_python): Use gdbpy_ref.
17926
17927 2017-01-10 Tom Tromey <tom@tromey.com>
17928
17929 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17930 gdbpy_ref.
17931
17932 2017-01-10 Tom Tromey <tom@tromey.com>
17933
17934 * python/python.c (eval_python_command, gdbpy_decode_line)
17935 (gdbpy_run_events, gdbpy_start_type_printers)
17936 (gdbpy_apply_type_printers): Use gdbpy_ref.
17937
17938 2017-01-10 Tom Tromey <tom@tromey.com>
17939
17940 * python/py-param.c (get_doc_string, compute_enum_values): Use
17941 gdbpy_ref.
17942
17943 2017-01-10 Tom Tromey <tom@tromey.com>
17944
17945 * python/py-inferior.c (find_thread_object, build_inferior_list):
17946 Use gdbpy_ref.
17947
17948 2017-01-10 Tom Tromey <tom@tromey.com>
17949
17950 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17951
17952 2017-01-10 Tom Tromey <tom@tromey.com>
17953
17954 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17955 gdbpy_ref.
17956
17957 2017-01-10 Tom Tromey <tom@tromey.com>
17958
17959 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17960 extra incref.
17961 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17962 Use gdbpy_ref.
17963
17964 2017-01-10 Tom Tromey <tom@tromey.com>
17965
17966 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17967 gdbpy_ref.
17968
17969 2017-01-10 Tom Tromey <tom@tromey.com>
17970
17971 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17972 decref results of PyArg_ParseTupleAndKeywords.
17973
17974 2017-01-10 Tom Tromey <tom@tromey.com>
17975
17976 * python/python.c (python_run_simple_file): Use
17977 unique_xmalloc_ptr, gdbpy_ref.
17978
17979 2017-01-10 Tom Tromey <tom@tromey.com>
17980
17981 * python/py-prettyprint.c (print_stack_unless_memory_error)
17982 (print_string_repr, print_children): Use gdbpy_ref.
17983 (dummy_python_frame): New class.
17984 (dummy_python_frame::dummy_python_frame): Rename from
17985 push_dummy_python_frame.
17986 (py_restore_tstate): Remove.
17987
17988 2017-01-10 Tom Tromey <tom@tromey.com>
17989
17990 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17991
17992 2017-01-10 Tom Tromey <tom@tromey.com>
17993
17994 * python/python.c (ensure_python_env, restore_python_env):
17995 Remove.
17996 * python/python-internal.h (ensure_python_env): Don't declare.
17997 * varobj.h (varobj_ensure_python_env): Don't declare.
17998 * varobj.c (varobj_ensure_python_env): Remove.
17999
18000 2017-01-10 Tom Tromey <tom@tromey.com>
18001
18002 * varobj.c (varobj_value_get_print_value): Use
18003 gdbpy_enter_varobj.
18004
18005 2017-01-10 Tom Tromey <tom@tromey.com>
18006
18007 * python/py-prettyprint.c (print_string_repr, print_children):
18008 Update.
18009 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
18010 of "encoding".
18011 * varobj.c (varobj_value_get_print_value): Update.
18012 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
18013
18014 2017-01-10 Tom Tromey <tom@tromey.com>
18015
18016 * varobj.c (varobj_get_display_hint)
18017 (dynamic_varobj_has_child_method, install_new_value_visualizer)
18018 (varobj_set_visualizer, free_variable): Use
18019 gdbpy_enter_varobj.
18020
18021 2017-01-10 Tom Tromey <tom@tromey.com>
18022
18023 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
18024 (do_finish_initialization): New function. Use gdbpy_ref.
18025 (gdbpy_finish_initialization): Use gdbpy_enter. Call
18026 do_finish_initialization.
18027
18028 2017-01-10 Tom Tromey <tom@tromey.com>
18029
18030 * python/py-param.c (get_set_value, get_show_value): Use
18031 gdbpy_enter, gdbpy_ref.
18032
18033 2017-01-10 Tom Tromey <tom@tromey.com>
18034
18035 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
18036
18037 2017-01-10 Tom Tromey <tom@tromey.com>
18038
18039 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
18040
18041 2017-01-10 Tom Tromey <tom@tromey.com>
18042
18043 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
18044 Use gdbpy_enter_varobj.
18045
18046 2017-01-10 Tom Tromey <tom@tromey.com>
18047
18048 * varobj.c (gdbpy_enter_varobj): New constructor.
18049 * python/python-internal.h (gdbpy_enter_varobj): New class.
18050 * python/py-varobj.c (py_varobj_get_iterator): Use
18051 gdbpy_enter_varobj.
18052
18053 2017-01-10 Tom Tromey <tom@tromey.com>
18054
18055 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
18056 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18057 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
18058 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
18059 unique_xmalloc_ptr.
18060 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
18061
18062 2017-01-10 Tom Tromey <tom@tromey.com>
18063
18064 * python/py-xmethods.c (invoke_match_method): Use
18065 gdbpy_ref.
18066
18067 2017-01-10 Tom Tromey <tom@tromey.com>
18068
18069 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
18070 gdbpy_enter, gdbpy_ref.
18071
18072 2017-01-10 Tom Tromey <tom@tromey.com>
18073
18074 * python/python.c (python_interactive_command): Use gdbpy_enter.
18075
18076 2017-01-10 Tom Tromey <tom@tromey.com>
18077
18078 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
18079 gdbpy_ref.
18080
18081 2017-01-10 Tom Tromey <tom@tromey.com>
18082
18083 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
18084 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18085
18086 2017-01-10 Tom Tromey <tom@tromey.com>
18087
18088 * utils.h (htab_deleter): New struct.
18089 (htab_up): New typedef.
18090 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
18091 gdbpy_enter, gdbpy_ref, htab_up.
18092
18093 2017-01-10 Tom Tromey <tom@tromey.com>
18094
18095 * python/py-unwind.c (pending_frame_invalidate): Remove.
18096 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
18097
18098 2017-01-10 Tom Tromey <tom@tromey.com>
18099
18100 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
18101 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
18102
18103 2017-01-10 Tom Tromey <tom@tromey.com>
18104
18105 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
18106
18107 2017-01-10 Tom Tromey <tom@tromey.com>
18108
18109 * python/python.c (gdbpy_eval_from_control_command)
18110 (gdbpy_source_script, gdbpy_run_events)
18111 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
18112 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
18113 gdbpy_enter.
18114
18115 2017-01-10 Tom Tromey <tom@tromey.com>
18116
18117 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
18118
18119 2017-01-10 Tom Tromey <tom@tromey.com>
18120
18121 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
18122
18123 2017-01-10 Tom Tromey <tom@tromey.com>
18124
18125 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
18126 (python_on_inferior_call_pre, python_on_inferior_call_post)
18127 (python_on_memory_change, python_on_register_change)
18128 (python_inferior_exit, python_new_objfile, add_thread_object)
18129 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
18130
18131 2017-01-10 Tom Tromey <tom@tromey.com>
18132
18133 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
18134 (bpfinishpy_handle_exit): Use gdbpy_enter.
18135
18136 2017-01-10 Tom Tromey <tom@tromey.com>
18137
18138 * python/py-cmd.c (cmdpy_destroyer)
18139 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
18140 gdbpy_enter.
18141
18142 2017-01-10 Tom Tromey <tom@tromey.com>
18143
18144 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
18145 gdbpy_enter.
18146 (gdbpy_breakpoint_has_cond): Likewise.
18147
18148 2017-01-10 Tom Tromey <tom@tromey.com>
18149
18150 * python/python.c (gdbpy_enter): New constructor.
18151 (~gdbpy_enter): New destructor.
18152 (restore_python_env, ensure_python_env): Rewrite.
18153 * python/python-internal.h (gdbpy_enter): New class.
18154
18155 2017-01-10 Tom Tromey <tom@tromey.com>
18156
18157 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
18158
18159 2017-01-10 Tom Tromey <tom@tromey.com>
18160
18161 * python/py-value.c (value_has_field, get_field_flag)
18162 (get_field_type, valpy_getitem, convert_value_from_python): Use
18163 gdbpy_ref.
18164
18165 2017-01-10 Tom Tromey <tom@tromey.com>
18166
18167 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
18168 gdbpy_ref.
18169
18170 2017-01-10 Tom Tromey <tom@tromey.com>
18171
18172 * python/py-prettyprint.c (search_pp_list)
18173 (find_pretty_printer_from_objfiles)
18174 (find_pretty_printer_from_progspace)
18175 (find_pretty_printer_from_gdb, find_pretty_printer)
18176 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
18177 gdbpy_ref.
18178
18179 2017-01-10 Tom Tromey <tom@tromey.com>
18180
18181 * python/py-param.c (call_doc_function): Use gdbpy_ref.
18182
18183 2017-01-10 Tom Tromey <tom@tromey.com>
18184
18185 * python/py-linetable.c (build_line_table_tuple_from_pcs)
18186 (ltpy_get_all_source_lines): Use gdbpy_ref.
18187
18188 2017-01-10 Tom Tromey <tom@tromey.com>
18189
18190 * python/py-framefilter.c (extract_sym, extract_value)
18191 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
18192 gdbpy_ref.
18193
18194 2017-01-10 Tom Tromey <tom@tromey.com>
18195
18196 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
18197
18198 2017-01-10 Tom Tromey <tom@tromey.com>
18199
18200 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
18201
18202 2017-01-10 Tom Tromey <tom@tromey.com>
18203
18204 * python/py-function.c (convert_values_to_python, fnpy_init): Use
18205 gdbpy_ref.
18206
18207 2017-01-10 Tom Tromey <tom@tromey.com>
18208
18209 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
18210
18211 2017-01-10 Tom Tromey <tom@tromey.com>
18212
18213 * python/py-type.c (convert_field, make_fielditem, typy_fields)
18214 (typy_range): Use gdbpy_ref.
18215
18216 2017-01-10 Tom Tromey <tom@tromey.com>
18217
18218 * python/py-threadevent.c (create_thread_event_object): Use
18219 gdbpy_ref.
18220 * python/py-stopevent.c (create_stop_event_object): Simplify.
18221 (emit_stop_event): Use gdbpy_ref.
18222 * python/py-signalevent.c (create_signal_event_object): Use
18223 gdbpy_ref.
18224 * python/py-newobjfileevent.c (create_new_objfile_event_object)
18225 (emit_new_objfile_event, create_clear_objfiles_event_object)
18226 (emit_clear_objfiles_event): Use gdbpy_ref.
18227 * python/py-infevents.c (create_inferior_call_event_object)
18228 (create_register_changed_event_object)
18229 (create_memory_changed_event_object, emit_inferior_call_event)
18230 (emit_memory_changed_event, emit_register_changed_event): Use
18231 gdbpy_ref.
18232 * python/py-exitedevent.c (create_exited_event_object)
18233 (emit_exited_event): Use gdbpy_ref.
18234 * python/py-event.h (evpy_emit_event): Remove
18235 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
18236 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
18237 * python/py-continueevent.c (emit_continue_event): Use
18238 gdbpy_ref.
18239 * python/py-breakpoint.c (gdbpy_breakpoint_created)
18240 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
18241 gdbpy_ref.
18242 * python/py-bpevent.c (create_breakpoint_event_object): Use
18243 gdbpy_ref.
18244
18245 2017-01-10 Tom Tromey <tom@tromey.com>
18246
18247 * python/py-ref.h: New file.
18248
18249 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18250
18251 * cli-out.c (cli_ui_out::do_redirect): Change return type to
18252 void.
18253 * cli-out.h (cli_ui_out::do_redirect): Likewise.
18254 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
18255 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
18256 * ui-out.c (ui_out::redirect): Likewise.
18257 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
18258 * cli/cli-logging.c (set_logging_redirect): Update call site of
18259 ui_out::redirect.
18260 (handle_redirections): Likewise.
18261 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
18262 * top.c (execute_command_to_string): Likewise.
18263 * utils.c (do_ui_out_redirect_pop): Likewise.
18264
18265 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18266
18267 * stack.c (_initialize_stack): Update "frame" command help message.
18268
18269 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
18270
18271 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
18272
18273 2017-01-06 Yao Qi <yao.qi@linaro.org>
18274
18275 * x86-linux-nat.h: Include gdb_proc_service.h.
18276
18277 2017-01-06 Yao Qi <yao.qi@linaro.org>
18278
18279 * ser-base.h: Include serial.h.
18280
18281 2017-01-06 Yao Qi <yao.qi@linaro.org>
18282
18283 * ppc-linux-tdep.h: Include ppc-tdep.h.
18284
18285 2017-01-06 Yao Qi <yao.qi@linaro.org>
18286
18287 * nat/amd64-linux-siginfo.h: Include signal.h.
18288
18289 2017-01-06 Yao Qi <yao.qi@linaro.org>
18290
18291 * nat/aarch64-linux-hw-point.h: Include break-common.h.
18292
18293 2017-01-06 Yao Qi <yao.qi@linaro.org>
18294
18295 * mi/mi-parse.h: Include mi-cmds.h.
18296
18297 2017-01-06 Yao Qi <yao.qi@linaro.org>
18298
18299 * inf-loop.c: Don't include "target.h".
18300 * inf-loop.h: Include it here.
18301
18302 2017-01-06 Yao Qi <yao.qi@linaro.org>
18303
18304 * dfp.h: Include "dboulest.h" and "expression.h".
18305
18306 2017-01-06 Yao Qi <yao.qi@linaro.org>
18307
18308 * ax-gdb.h: Include "ax.h".
18309
18310 2017-01-06 Yao Qi <yao.qi@linaro.org>
18311
18312 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18313 with nat/gdb_ptrace.h.
18314
18315 2017-01-05 Yao Qi <yao.qi@linaro.org>
18316
18317 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18318 new line.
18319 (mips64_fbsd_sigframe_init): Likewise.
18320
18321 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18322
18323 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18324 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18325
18326 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18327
18328 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18329 * NEWS: Mention new FreeBSD/mips native configuration.
18330 * config/mips/fbsd.mh: New file.
18331 * configure.host: Add mips*-*-freebsd*.
18332 * mips-fbsd-nat.c: New file.
18333
18334 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18335
18336 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18337 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18338 * NEWS: Mention new FreeBSD/mips target.
18339 * configure.tgt: Add mips*-*-freebsd*.
18340 * mips-fbsd-tdep.c: New file.
18341 * mips-fbsd-tdep.h: New file.
18342
18343 2017-01-04 Yao Qi <yao.qi@linaro.org>
18344
18345 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18346 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18347
18348 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18349
18350 Update copyright year range in all GDB files.
18351
18352 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18353
18354 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
18355
18356 For older changes see ChangeLog-2016.
18357 \f
18358 Local Variables:
18359 mode: change-log
18360 left-margin: 8
18361 fill-column: 74
18362 version-control: never
18363 coding: utf-8
18364 End: