gdb: Fix function parameter alignments in or1k-tdep.c.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
38af1824
SH
12017-12-17 Stafford Horne <shorne@gmail.com>
2
3 * gdb/or1k-tdep.c (show_or1k_debug): Fix function parameter alignment.
4 (or1k_analyse_inst): Likewise.
5 (or1k_single_step_through_delay): Likewise.
6 (or1k_frame_cache): Fix parameter alignment and use paddress()
7 instead of %x.
8
b282f0f2
SH
92017-12-17 Stafford Horne <shorne@gmail.com>
10
11 * NEWS (Changes since GDB 8.0): Mention new or1k target and new
12 commands to set/show or1k debug.
13
46afe196
SDJ
142017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
15
16 * typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
17 condition.
18
7c161838
SDJ
192017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
20 Pedro Alves <palves@redhat.com>
21
22 PR cli/16224
23 * NEWS (Changes since GDB 8.0): Mention new '/o' flag.
24 * c-typeprint.c (OFFSET_SPC_LEN): New define.
25 (c_type_print_varspec_prefix): New argument 'struct
26 print_offset_data *'.
27 (c_type_print_base_1): New function and prototype.
28 (c_print_type_1): New function, with code from 'c_print_type'.
29 (c_print_type): Use 'c_print_type_1'.
30 (c_type_print_varspec_prefix): New argument 'struct
31 print_offset_data *'. Use it. Call 'c_type_print_base_1'
32 instead of 'c_print_type_base'.
33 (print_spaces_filtered_with_print_options): New function.
34 (output_access_specifier): Take new argument FLAGS. Modify
35 function to call 'print_spaces_filtered_with_print_options'.
36 (c_print_type_vtable_offset_marker): New function.
37 (c_print_type_union_field_offset): New function.
38 (c_print_type_struct_field_offset): New function.
39 (c_print_type_no_offsets): New function.
40 (c_type_print_base_struct_union): New argument 'struct
41 print_offset_data *'. Print offsets and sizes for
42 struct/union/class fields.
43 * typeprint.c (const struct type_print_options
44 type_print_raw_options): Initialize 'print_offsets'.
45 (static struct type_print_options default_ptype_flags):
46 Likewise.
47 (struct print_offset_data print_offset_default_data): New
48 variable.
49 (whatis_exp): Handle '/o' option.
50 (_initialize_typeprint): Add '/o' flag to ptype's help.
51 * typeprint.h (struct print_offset_data): New struct.
52 (struct type_print_options) <print_offsets>: New field.
53
a27ed7d6
SDJ
542017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
55
56 * c-typeprint.c (need_access_label_p): New function.
57 (c_type_print_base_struct_union): New function.
58 (c_type_print_base): Move code to handle
59 TYPE_CODE_{STRUCT,UNION} to the functions mentioned above.
60
68f81d60
RH
612017-12-15 Richard Henderson <rth@redhat.com>
62 Uros Bizjak <ubizjak@gmail.com>
63
64 PR gdb/19061
65 * alpha-tdep.c (alpha_software_single_step): Call
66 alpha_deal_with_atomic_sequence here.
67 (set_gdbarch_software_single_step): Set to
68 alpha_software_single_step.
69 * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
70 and GDB_ARCH_IS_TRAP_HWBKPT.
71
97d4fac1
YQ
722017-12-15 Yao Qi <yao.qi@linaro.org>
73
74 * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT.
75
828d5846
XR
762017-12-15 Xavier Roirand <roirand@adacore.com>
77
78 * ada-lang.c (ada_value_primitive_field): Handle field search
79 in case of homonyms.
80 (find_struct_field): Ditto.
81 (ada_search_struct_field): Ditto.
82 (ada_value_struct_elt): Ditto.
83 (ada_lookup_struct_elt_type): Ditto.
84
8e557e52
SM
852017-12-14 Simon Marchi <simon.marchi@ericsson.com>
86
87 * python/py-breakpoint.c (bppy_init): Use 'O' format specifier
88 for "qualified" and use PyObject_IsTrue.
89
8af5c486
JK
902017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com>
91
92 * dwarf2read.c (dw2_debug_names_iterator::next): Support
93 DW_IDX_type_unit.
94 (debug_names::dwarf5_offset_size, unit_kind): New.
95 (debug_names::insert): Add parameter kind.
96 (debug_names::build): Support DW_IDX_type_unit.
97 (debug_names::recursively_write_psymbols): Update
98 (debug_names::write_psymbols caller.
99 (debug_names::write_one_signatured_type_data)
100 (debug_names::write_one_signatured_type): New.
101 (debug_names::index_key, debug_names::symbol_value)
102 (debug_names::write_psymbols): Add kind.
103 (debug_names::write_one_signatured_type): New.
104 (write_debug_names): Move dwarf5_offset_size to debug_names.
105 Use debug_names::write_one_signatured_type for type units.
106
79e8fcaa
JB
1072017-12-14 Joel Brobecker <brobecker@adacore.com>
108
109 * ada-lang.c (ada_value_equal): Add handling of typedef types
110 when comparing array objects.
111
e05fa6f9
JB
1122017-12-14 Joel Brobecker <brobecker@adacore.com>
113
114 * ada-tasks.c (read_atcb): Properly set task_info->ptid
115 when !target_has_execution as well.
116 (task_command): Remove error when !target_has_execution.
117
b89641ba
SM
1182017-12-13 Simon Marchi <simon.marchi@ericsson.com>
119
120 * location.h (string_to_event_location): Add match_type
121 parameter.
122 * location.c (string_to_event_location): Likewise.
123 * python/py-breakpoint.c (bppy_init): Handle qualified
124 parameter.
125
a22ecf70
PA
1262017-12-13 Pedro Alves <palves@redhat.com>
127
128 * completer.c (completion_tracker::maybe_add_completion): New
129 'text' and 'word' parameters. Use make_completion_match_str.
130 (completion_tracker::add_completion): New 'text' and 'word'
131 parameters. Pass down.
132 (completion_tracker::recompute_lowest_common_denominator): Change
133 parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust.
134 * completer.h (completion_tracker::add_completion): New 'text' and
135 'word' parameters.
136 (completion_tracker::recompute_lowest_common_denominator): Change
137 parameter type to gdb::unique_xmalloc_ptr rval ref.
138 (completion_tracker::recompute_lowest_common_denominator): Change
139 parameter type to gdb::unique_xmalloc_ptr rval ref.
140 * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
141 as well.
142
60a20c19
PA
1432017-12-13 Pedro Alves <palves@redhat.com>
144
145 * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
146 make_completion_match_str.
147 * completer.c: Use gdb::unique_xmalloc_ptr and
148 make_completion_match_str.
149 (make_completion_match_str_1): New.
150 (make_completion_match_str(const char *, const char *,
151 const char *)): New.
152 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
153 const char *, const char *)): New.
154 * completer.h (make_completion_match_str(const char *,
155 const char *, const char *)): New.
156 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
157 const char *, const char *)): New.
158 * interps.c (interpreter_completer): Use make_completion_match_str.
159 * symtab.c (completion_list_add_name, add_filename_to_list): Use
160 make_completion_match_str.
161
96647014
SH
1622017-12-13 Stafford Horne <shorne@gmail.com>
163
164 * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
165 strings.
166 (or1k_unwind_pc): Use paddress() instead of %p.
167 (or1k_unwind_sp): Likewise.
168 (or1k_frame_cache): Use host_address_to_string()/paddress()
169 instead of %p and use _() wrapper for message strings.
170
3bbd9f18
SM
1712017-12-13 Simon Marchi <simon.marchi@ericsson.com>
172
173 * contrib/ari/gdb_ari.sh: Fix typo in help.
174
9937536c
JB
1752017-12-13 Joel Brobecker <brobecker@adacore.com>
176
177 * event-top.c (handle_line_of_input): Set server_command.
178
a994fec4
FJ
1792017-12-12 Stafford Horne <shorne@gmail.com>
180 Stefan Wallentowitz <stefan@wallentowitz.de>
181 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
182 Franck Jullien <franck.jullien@gmail.com>
183 Jeremy Bennett <jeremy.bennett@embecosm.com>
184
185 * configure.tgt: Add targets for or1k and or1knd.
186 * or1k-tdep.c: New file.
187 * or1k-tdep.h: New file.
188 * features/Makefile: Add or1k.xml to build.
189 * features/or1k.xml: New file.
190 * features/or1k-core.xml: New file.
191 * features/or1k.c: Generated.
192
db9077b7
AM
1932017-12-12 Alan Modra <amodra@gmail.com>
194
195 PR tdep/22576
196 * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
197 PLT offset, and retrieve r2 from stack when executing in reverse.
198 (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
199 rather than PLT address.
200 (ppc64_standard_linkage2_target): Likewise.
201 (ppc64_standard_linkage3_target): Likewise.
202 (ppc64_standard_linkage4_target): Likewise.
203 (ppc64_skip_trampoline_code_1): Adjust to suit.
204
a9334058
SM
2052017-12-11 Simon Marchi <simon.marchi@ericsson.com>
206
207 PR gdb/22556
208 * remote.c (remote_thread_name): Return NULL if name is empty.
209 (remote_threads_extra_info): Return NULL if extra info is empty.
210
3c0aa29a
PA
2112017-12-11 Pedro Alves <palves@redhat.com>
212
213 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
214 (elf_sym_fns_debug_names): Move to elfread.c.
215 * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
216 instead of a sym_fns and add 'index_kind' output parameter. Fill
217 the latter in with the index variant kind if using an index.
218 (enum dw_index_kind): Moved to symfile.h.
219 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
220 (elf_sym_fns_lazy_psyms): Move from defs.h.
221 (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
222 interface.
223 * symfile.h (enum class dw_index_kind): New, moved from
224 dwarf2read.c.
225 (dwarf2_initialize_objfile): Change prototype.
226
f2f9e7ec
UW
2272017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
228
229 * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
230 instead of mpfr_set_si to convert mantissa bits.
231
08f49010
XR
2322017-12-11 Xavier Roirand <roirand@adacore.com>
233 Joel Brobecker <brobecker@adacore.com>
234
235 * ada-lang.c (ada_tag_value_at_base_address): Change the way
236 tagged type base address is computed.
237 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
238 New enumerate.
239 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
240 element of lai->primitive_type_vector.
241
a3c5fafd
PA
2422017-12-08 Pedro Alves <palves@redhat.com>
243
244 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
245 mapped_index_base.
246 (check_match): Adjust to use mock_index directly.
247 (check_find_bounds_finds)
248 (test_mapped_index_find_name_component_bounds): Adjust to work
249 with a mapped_index_base.
250
44ed8f3e
PA
2512017-12-08 Pedro Alves <palves@redhat.com>
252
253 * dwarf2read.c (struct mapped_index_base): New, partially factored
254 out from ...
255 (struct mapped_index): ... this. Inherit mapped_index_base.
256 (mapped_index::symbol_name_slot_invalid):
257 (mapped_index::symbol_name_at): Add override marker.
258 (mapped_index::symbol_name_count): New.
259 (struct mapped_debug_names): Inherit mapped_index_base.
260 (mapped_debug_names::symbol_name_at): New.
261 (mapped_debug_names::symbol_name_count): New.
262 (mapped_index::find_name_components_bounds): Rename to ...
263 (mapped_index_base::find_name_components_bounds): ... this.
264 (mapped_index::build_name_components): Rename to ...
265 (mapped_index_base::build_name_components): ... this. Adjust to
266 use mapped_index_base::symbol_name_count and
267 mapped_index_base::symbol_name_slot_invalid.
268 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
269 instead of a mapped_index. Use
270 dw2_expand_symtabs_matching_symbol.
271
f00a2de2
PA
2722017-12-08 Pedro Alves <palves@redhat.com>
273
274 * dwarf2read.c (mapped_index::symbol_table_slot): New.
275 (mapped_index::address_table): Now a gdb::array_view of const
276 gdb_byte.
277 (mapped_index::symbol_table): Now a gdb::array_view of
278 symbol_table_slot.
279 (mapped_index::address_table_size)
280 (mapped_index::symbol_table_slots): Delete.
281 (create_addrmap_from_index): Adjust.
282 (find_slot_in_mapped_hash): Adjust.
283 (read_index_from_section): Adjust.
284 (dwarf2_read_index): Adjust.
285
927aa2e7
JK
2862017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
287 Pedro Alves <palves@redhat.com>
288
289 * defs.h (elf_sym_fns_debug_names): New declaration.
290 * dwarf2read.c: Include "hash_enum.h".
291 (mapped_debug_names): New.
292 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
293 debug_names_table.
294 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
295 (struct dwz_file): Add debug_names.
296 (dwarf2_per_objfile::locate_sections): Handle debug_names and
297 debug_aranges.
298 (locate_dwz_sections): Handle debug_names.
299 (create_signatured_type_table_from_debug_names)
300 (create_addrmap_from_aranges): New.
301 (dwarf2_read_index): Update function comment.
302 (dwarf5_augmentation): Moved up.
303 (read_debug_names_from_section, create_cus_from_debug_names_list)
304 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
305 (dwarf5_djb_hash): Moved up.
306 (dw2_debug_names_iterator): New.
307 (read_indirect_string_at_offset): New declaration.
308 (mapped_debug_names::namei_to_name)
309 (dw2_debug_names_iterator::find_vec_in_debug_names)
310 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
311 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
312 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
313 New.
314 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
315 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
316 (debug_names::build): Update djb_hash caller.
317 (write_debug_names): Move out and rename augmentation to
318 dwarf5_augmentation.
319 * elfread.c (elf_sym_fns_debug_names): New.
320 * psymtab.h (dwarf2_debug_names_functions): New declaration.
321 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
322 debug_aranges.
323 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
324
e5fa6583
PA
3252017-12-08 Pedro Alves <palves@redhat.com>
326
327 * common/hash_enum.h: New file.
328
4b514bc8
JK
3292017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
330
331 * dwarf2read.c (create_cu_from_index_list): New from ...
332 (create_cus_from_index_list): ... this function, use it.
333 (dw_expand_symtabs_matching_file_matcher)
334 (dw2_expand_symtabs_matching_one): New from ...
335 (dw2_expand_symtabs_matching): ... this function, use them.
336
abccd1e7
JK
3372017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
338
339 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
340 declarations from elfread.c.
341 (dwarf2_initialize_objfile): Change return value.
342 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
343 declarations to defs.h.
344 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
345 * symfile.h (dwarf2_initialize_objfile): Change return type.
346
437afbb8
JK
3472017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
348 Pedro Alves <palves@redhat.com>
349
350 * contrib/gdb-add-index.sh (index): Rename to ...
351 (index4): ... here.
352 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
353 Support also .debug_names and .debug_str.
354 * dwarf2read.c: Include cmath, set, list.
355 (INDEX_SUFFIX): Rename to ...
356 (INDEX4_SUFFIX): ... here.
357 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
358 (file_write(FILE *, const void *, size_t)): New.
359 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
360 (data_buf::append_unsigned_leb128, data_buf::empty): New.
361 (data_buf::file_write): Use ::file_write.
362 (data_buf::c_str, dwarf5_djb_hash, debug_names)
363 (check_dwarf64_offsets): New.
364 (psyms_seen_size, write_gdbindex): New from
365 write_psymtabs_to_index code.
366 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
367 (enum dw_index_kind): New.
368 (write_psymtabs_to_index): New parameter index_kind. Support
369 filename_str and out_file_str. Move code to write_gdbindex,
370 possibly call write_debug_names.
371 (save_gdb_index_command): New parameter -dwarf-5.
372 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
373
6432ec65
JK
3742017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
375 Pedro Alves <palves@redhat.com>
376
377 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
378 comment.
379 (GDB_ADD_INDEX): New variable.
380 <$want_index>: Call $GDB_ADD_INDEX.
381
92469284
SDJ
3822017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
383
384 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
385 "expression_up" inside the TRY block.
386
f17d9474
YQ
3872017-12-08 Yao Qi <yao.qi@linaro.org>
388
389 * breakpoint.c (update_watchpoint): Call
390 address_significant.
391
a0de8c21
YQ
3922017-12-08 Yao Qi <yao.qi@linaro.org>
393
394 * breakpoint.c (adjust_breakpoint_address): Call
395 address_significant.
396
a738ea1d
YQ
3972017-12-08 Yao Qi <yao.qi@linaro.org>
398
399 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
400 significant_addr_bit.
401 * gdbarch.sh (significant_addr_bit): New.
402 * gdbarch.c, gdbarch.h: Re-generated.
403 * target.c (memory_xfer_partial): Call address_significant.
404 * utils.c (address_significant): New function.
405 * utils.h (address_significant): Declare.
406
8e481c3b
TT
4072017-12-08 Tom Tromey <tom@tromey.com>
408
409 * printcmd.c (ui_printf): Update. Use std::vector.
410 * common/format.h (struct format_piece): Add constructor.
411 <string>: Now const.
412 (class format_pieces): New class.
413 (parse_format_string, free_format_pieces)
414 (free_format_pieces_cleanup): Remove.
415 * common/format.c (format_pieces::format_pieces): Rename from
416 parse_format_string. Update.
417 (free_format_pieces, free_format_pieces_cleanup): Remove.
418 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
419 * ax-gdb.h (gen_printf): Remove argument.
420 * ax-gdb.c (gen_printf): Remove "frags" argument.
421 (maint_agent_printf_command): Update. Use std::vector.
422
6b05c8bd
YQ
4232017-12-08 Yao Qi <yao.qi@linaro.org>
424
425 PR breakpionts/22567
426 * linespec.c (minsym_found): Set sal.section.
427
336ef6d2
AA
4282017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
429
430 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
431
fa6eb693
KS
4322017-12-07 Keith Seitz <keiths@redhat.com>
433
434 PR breakpoints/22569
435 * location.c (string_to_explicit_location): When terminating
436 parsing early, break out of enclosing loop instead of returning.
437
883fd55a
KS
4382017-12-07 Keith Seitz <keiths@redhat.com>
439
440 * NEWS (New commands): Mention set/show print type nested-type-limit.
441 * c-typeprint.c (c_type_print_base): Print out nested types.
442 * dwarf2read.c (struct typedef_field_list): Rename to ...
443 (struct decl_field_list): ... this. Change all uses.
444 (struct field_info) <nested_types_list, nested_types_list_count>:
445 New fields.
446 (add_partial_symbol): Look for nested type definitions in C++, too.
447 (dwarf2_add_typedef): Rename to ...
448 (dwarf2_add_type_defn): ... this.
449 (type_can_define_types): New function.
450 Update assertion to use type_can_define_types.
451 Permit NULL for a field's name.
452 (process_structure_scope): Handle child DIEs of types that can
453 define types.
454 Copy the list of nested types into the type struct.
455 * gdbtypes.h (struct typedef_field): Rename to ...
456 (struct decl_field): ... this. Change all uses.
457 [is_protected, is_private]: New fields.
458 (struct cplus_struct_type) <nested_types, nested_types_count>: New
459 fields.
460 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
461 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
462 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
463 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
464 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
465 default value for print_nested_type_limit.
466 (print_nested_type_limit): New static variable.
467 (set_print_type_nested_types, show_print_type_nested_types): New
468 functions.
469 (_initialize_typeprint): Register new commands for set/show
470 `print-nested-type-limit'.
471 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
472 New field.
473
99598d71
TT
4742017-12-07 Tom Tromey <tom@tromey.com>
475
476 PR breakpoints/22511:
477 * breakpoint.c (commands_command_1): Don't throw an exception when
478 no commands have been read.
479
23a8d186
AS
4802017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
481
482 PR c++/21222
483 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
484 range-for variable.
485
30970df7
SM
4862017-12-07 Simon Marchi <simon.marchi@ericsson.com>
487
488 * common/selftest.h (struct selftest): Add virtual destructor.
489
824cc835
PM
4902017-12-07 Phil Muldoon <pmuldoon@redhat.com>
491
492 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
493 over basic location code. Implement explicit location keywords.
494 (bppy_init_validate_args): New function.
495 * NEWS: Document Python explicit breakpoint locations.
496
9c226a86
JB
4972017-12-07 Joel Brobecker <brobecker@adacore.com>
498
499 * MAINTAINERS: Restore target entries for m68hc11-elf,
500 score-elf and xstormy16-elf, incorrectly removed in a previous
501 patch meant to only update the list of active maintainers.
502
649a140c
PA
5032017-12-06 Pedro Alves <palves@redhat.com>
504
505 * break-catch-syscall.c (insert_catch_syscall)
506 (remove_catch_syscall): Adjust to pass reference to
507 inf_data->syscalls_counts directly via gdb::array_view.
508 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
509 and gdb::array_view.
510 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
511 * remote.c (remote_set_syscall_catchpoint): Likewise.
512 * target-debug.h (target_debug_print_bool): New.
513 (define target_debug_print_gdb_array_view_const_int): New.
514 * target-delegates.c: Regenerate.
515 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
516 gdb::array_view and bool.
517 (target_set_syscall_catchpoint): Likewise.
518
9a93831c
SM
5192017-12-06 Simon Marchi <simon.marchi@ericsson.com>
520
521 * break-catch-syscall.c (catch_syscall_completer): Get pointers
522 to syscall group strings after building the string vector.
523
7cc244de
PA
5242017-12-06 Pedro Alves <palves@redhat.com>
525
526 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
527 "qXfer:features:read"" is disabled.
528 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
529 Check packet_config_support instead of packet->support directly.
530
858c9d13
SM
5312017-12-05 Simon Marchi <simon.marchi@ericsson.com>
532
533 * target-descriptions.c (struct tdesc_feature) <registers>: Use
534 tdesc_reg_up typedef.
535 (struct target_desc) <features>: Use tdesc_feature_up typedef.
536
d4a0e8b5
SM
5372017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
538
539 * target-descriptions.c (struct tdesc_type): Use default
540 destructor.
541 <u>: Remove.
542 <accept>: Remove.
543 (struct tdesc_type_builtin): New.
544 (struct tdesc_type_vector): New.
545 (struct tdesc_type_with_fields): New.
546 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
547 (tdesc_gdb_type): Remove.
548 (tdesc_register_type): Adjust.
549 (tdesc_create_vector): Create tdesc_type_vector.
550 (tdesc_create_struct): Create tdesc_type_with_fields.
551 (tdesc_set_struct_size): Change parameter type.
552 (tdesc_create_union): Create tdesc_type_with_fields.
553 (tdesc_create_flags): Likewise.
554 (tdesc_create_enum): Likewise.
555 (tdesc_add_field): Change parameter type.
556 (tdesc_add_typed_bitfield): Likewise.
557 (tdesc_add_bitfield): Likewise.
558 (tdesc_add_flag): Likewise.
559 (tdesc_add_enum_value): Likewise.
560 (print_c_tdesc) <visit>: Remove overload with tdesc_type
561 parameter, add overloads for tdesc_type_builtin,
562 tdesc_type_with_fields and tdesc_type_vector.
563 <m_printed_type>: Remove.
564 <m_printed_element_type, m_printed_type_with_fields>: Add.
565 * target-descriptions.h (tdesc_create_enum): Change return type.
566 (tdesc_add_typed_bitfield): Change parameter type.
567 (tdesc_add_enum_value): Change parameter type.
568 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
569 type to tdesc_type_with_fields.
570 (tdesc_start_struct): Adjust.
571 (tdesc_start_flags): Adjust.
572 (tdesc_start_enum): Adjust.
573 (tdesc_start_field): Adjust.
574 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
575 (struct tdesc_type_vector): Forward-declare.
576 (struct tdesc_type_with_fields): Forward-declare.
577 (tdesc_create_struct): Change return type.
578 (tdesc_create_union): Likewise.
579 (tdesc_create_flags): Likewise.
580 (tdesc_add_field): Change parameter type.
581 (tdesc_set_struct_size): Likewise.
582 (tdesc_add_bitfield): Likewise.
583 (tdesc_add_flag): Likewise.
584 * features: Re-generate C files.
585
f0cddbef
SM
5862017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
589 (struct tdesc_arch_reg): Add constructor.
590 (DEF_VEC_O (tdesc_arch_reg)): Remove.
591 (struct tdesc_arch_data): Initialize fields.
592 <arch_regs>: Change type to std::vector.
593 (target_find_description): Adjust.
594 (tdesc_find_type): Adjust.
595 (tdesc_data_init): Call tdesc_arch_data constructor.
596 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
597 (tdesc_data_cleanup): Free data with delete.
598 (tdesc_numbered_register): Adjust.
599 (tdesc_find_arch_register): Adjust.
600 (tdesc_use_registers): Adjust.
601
d05200d1
SM
6022017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
603
604 * target-descriptions.c (tdesc_type_field): Remove typedef.
605 (DEF_VEC_O (tdesc_type_field)): Remove.
606 (struct tdesc_type_field): Add constructor.
607 <name>: Change type to std::string.
608 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
609 kind uses it.
610 <~tdesc_type>: Destroy vector if the type kind uses it.
611 <u::u::fields>: Change type to std::vector.
612 (tdesc_gdb_type): Adjust.
613 (tdesc_add_field): Adjust.
614 (tdesc_add_typed_bitfield): Adjust.
615 (tdesc_add_field): Adjust.
616 (tdesc_add_enum_value): Adjust.
617 (class print_c_tdesc) <visit>: Adjust.
618
082b9140
SM
6192017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
620
621 * target-descriptions.c (struct tdesc_type) <name>: Change type
622 to std::string.
623 <~tdesc_type>: Don't manually free name.
624 <operator==>: Adjust.
625 (tdesc_named_type): Adjust.
626 (tdesc_find_type): Adjust.
627 (tdesc_gdb_type): Adjust.
628 (class print_c_tdesc) <visit>: Adjust.
629
53c934e9
SM
6302017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
631
632 * target-descriptions.c (tdesc_type_p): Remove typedef.
633 (DEF_VEC_P (tdesc_type_p)): Remove.
634 (struct tdesc_feature) <types>: Change type to std::vector.
635 <~tdesc_feature>: Replace with default implementation.
636 <accept>: Adjust.
637 (tdesc_named_type): Adjust.
638 (tdesc_create_vector): Adjust.
639 (tdesc_create_struct): Adjust.
640 (tdesc_create_union): Adjust.
641 (tdesc_create_flags): Adjust.
642 (tdesc_create_enum): Adjust.
643
a8142ee1
SM
6442017-12-05 Simon Marchi <simon.marchi@ericsson.com>
645
646 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
647 type of name_ parameter, adjust to std::string change.
648 <name, group, type>: Change type to std::string.
649 <~tdesc_reg>: Replace with default implementation.
650 <operator==>: Adjust.
651 (tdesc_find_register_early): Adjust.
652 (tdesc_register_name): Adjust.
653 (tdesc_register_type): Adjust.
654 (tdesc_register_in_reggroup_p): Adjust.
655 (class print_c_tdesc) <visit>: Adjust.
656 (class print_c_feature) <visit>: Adjust.
858c9d13
SM
657 * features/arc-arcompact.c: Re-generate.
658 * features/arc-v2.c: Re-generate.
a8142ee1 659
c9c895b9
SM
6602017-12-05 Simon Marchi <simon.marchi@ericsson.com>
661
662 * target-descriptions.c (tdesc_reg_p): Remove typedef.
663 (DEF_VEC_P (tdesc_reg_p)): Remove.
664 (struct tdesc_feature) <registers>: Change type to std::vector.
665 <~tdesc_feature>: Don't manually free registers.
666 <accept>: Adjust.
667 <operator==>: Adjust.
668 (tdesc_has_registers): Adjust.
669 (tdesc_find_register_early): Adjust.
670 (tdesc_use_registers): Adjust.
671 (tdesc_create_reg): Adjust.
672
f65ff9f9
SM
6732017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * target-descriptions.c (tdesc_feature) <name>: Change type to
676 std::string.
677 <~tdesc_feature>: Don't manually free name.
678 <operator==>: Adjust.
679 (tdesc_find_feature): Adjust.
680 (tdesc_feature_name): Adjust.
681 (class print_c_tdesc) <visit_pre>: Adjust.
682 (class print_c_feature) <visit_pre>: Adjust.
683
3eea796c
SM
6842017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
685
686 * target-descriptions.c (tdesc_feature_p): Remove typedef.
687 (DEF_VEC_P (tdesc_feature_p)): Remove.
688 (struct target_desc) <features>: Change type to std::vector.
689 <~target_desc>: Replace with default implementation.
690 <accept>: Adjust.
691 <operator==>: Adjust.
692 (tdesc_has_registers): Adjust.
693 (tdesc_find_feature): Adjust.
694 (tdesc_use_registers): Adjust.
695 (tdesc_create_feature): Adjust.
696
40e2a983
SM
6972017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * target-descriptions.c (arch_p): Remove typedef.
700 (DEF_VEC_P (arch_p)): Remove.
701 (struct target_desc) <compatible>: Change type to std::vector.
702 <~target_desc>: Don't manually free compatible.
703 (tdesc_compatible_p): Adjust.
704 (tdesc_add_compatible): Adjust.
705 (class print_c_tdesc) <visit_pre>: Adjust.
706
129c10bc
SM
7072017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
708
709 * target-descriptions.c (property_s): Remove typedef.
710 (DEF_VEC_O (property_s)): Remove.
711 (struct target_desc) <properties>: Make an std::vector.
712 <~target_desc>: Don't manually free properties.
713 (tdesc_property): Adjust.
714 (set_tdesc_property): Adjust.
715 (class print_c_tdesc) <visit_pre>: Adjust.
716
ed9376bd
SM
7172017-12-05 Simon Marchi <simon.marchi@ericsson.com>
718
719 * common/gdb_assert.h (gdb_static_assert): Redefine using
720 static_assert.
721
798a7429
SM
7222017-12-05 Simon Marchi <simon.marchi@ericsson.com>
723
724 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
725 unused variables.
726 (ada_is_redundant_range_encoding): Likewise.
727 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
728 Likewise.
729 * alpha-tdep.c (alpha_software_single_step): Likewise.
730 * arm-tdep.c (_initialize_arm_tdep): Likewise.
731 * auto-load.c (info_auto_load_cmd): Likewise.
732 * break-catch-syscall.c (insert_catch_syscall): Likewise.
733 (remove_catch_syscall): Likewise.
734 * breakpoint.c (condition_completer): Likewise.
735 (clear_command): Likewise.
736 (update_breakpoint_locations): Likewise.
737 * btrace.c (btrace_disable): Likewise.
738 (btrace_teardown): Likewise.
739 (btrace_maint_update_pt_packets): Likewise.
740 (maint_btrace_clear_cmd): Likewise.
741 * cli/cli-decode.c (lookup_cmd_1): Likewise.
742 (lookup_cmd_composition): Likewise.
743 * cli/cli-dump.c (scan_filename): Likewise.
744 (restore_command): Likewise.
745 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
746 * compile/compile-object-load.c (compile_object_load): Likewise.
747 * compile/compile-object-run.c (compile_object_run): Likewise.
748 * compile/compile.c (compile_to_object): Likewise.
749 * completer.c (filename_completer): Likewise.
750 (complete_files_symbols): Likewise.
751 (complete_expression): Likewise.
752 * corelow.c (core_open): Likewise.
753 * ctf.c (ctf_start): Likewise.
754 (ctf_write_status): Likewise.
755 (ctf_write_uploaded_tsv): Likewise.
756 (ctf_write_definition_end): Likewise.
757 (ctf_open_dir): Likewise.
758 (ctf_xfer_partial): Likewise.
759 (ctf_trace_find): Likewise.
760 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
761 Likewise.
762 * dwarf2loc.c (allocate_piece_closure): Likewise.
763 (indirect_pieced_value): Likewise.
764 (dwarf2_evaluate_loc_desc_full): Likewise.
765 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
766 (dw2_expand_symtabs_matching): Likewise.
767 (dw2_map_symbol_filenames): Likewise.
768 (read_and_check_comp_unit_head): Likewise.
769 (read_cutu_die_from_dwo): Likewise.
770 (lookup_dwo_unit): Likewise.
771 (read_comp_units_from_section): Likewise.
772 (dwarf2_compute_name): Likewise.
773 (handle_DW_AT_stmt_list): Likewise.
774 (create_cus_hash_table): Likewise.
775 (create_dwp_v2_section): Likewise.
776 (dwarf2_rnglists_process): Likewise.
777 (dwarf2_ranges_process): Likewise.
778 (dwarf2_record_block_ranges): Likewise.
779 (is_vtable_name): Likewise.
780 (read_formatted_entries): Likewise.
781 (skip_form_bytes): Likewise.
782 * elfread.c (elf_symtab_read): Likewise.
783 * exec.c (exec_file_command): Likewise.
784 * f-valprint.c (f_val_print): Likewise.
785 (info_common_command_for_block): Likewise.
786 * guile/guile.c (initialize_scheme_side): Likewise.
787 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
788 * guile/scm-cmd.c (cmdscm_completer): Likewise.
789 (gdbscm_register_command_x): Likewise.
790 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
791 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
792 * guile/scm-ports.c (file_port_magic): Likewise.
793 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
794 (ppscm_pretty_print_one_value): Likewise.
795 (ppscm_print_children): Likewise.
796 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
797 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
798 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
799 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
800 * i386-tdep.c (i386_register_reggroup_p): Likewise.
801 * infcmd.c (run_command_1): Likewise.
802 (until_next_fsm_clean_up): Likewise.
803 * linespec.c (linespec_complete): Likewise.
804 (find_label_symbols): Likewise.
805 * m2-valprint.c (m2_val_print): Likewise.
806 * memattr.c (require_user_regions): Likewise.
807 (lookup_mem_region): Likewise.
808 (disable_mem_command): Likewise.
809 (mem_delete): Likewise.
810 * mep-tdep.c (mep_register_name): Likewise.
811 (mep_analyze_prologue): Likewise.
812 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
813 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
814 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
815 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
816 * minidebug.c (lzma_open): Likewise.
817 * minsyms.c (lookup_minimal_symbol): Likewise.
818 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
819 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
820 (mips_o64_return_value): Likewise.
821 (mips_single_step_through_delay): Likewise.
822 (_initialize_mips_tdep): Likewise.
823 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
824 (nios2_software_single_step): Likewise.
825 * parse.c (find_minsym_type_and_address): Likewise.
826 * psymtab.c (psym_relocate): Likewise.
827 * python/py-breakpoint.c (bppy_get_commands): Likewise.
828 (gdbpy_breakpoint_modified): Likewise.
829 * python/py-infevents.c (create_inferior_call_event_object):
830 Likewise.
831 * python/py-record-btrace.c (btpy_list_item): Likewise.
832 * python/py-type.c (typy_str): Likewise.
833 * python/py-value.c (valpy_call): Likewise.
834 * python/python.c (do_start_initialization): Likewise.
835 * record-btrace.c (record_btrace_insn_history_range): Likewise.
836 (record_btrace_call_history_range): Likewise.
837 (record_btrace_record_method): Likewise.
838 (record_btrace_xfer_partial): Likewise.
839 (btrace_get_frame_function): Likewise.
840 * record-full.c (record_full_open): Likewise.
841 * record.c (get_context_size): Likewise.
842 * registry.h (DEFINE_REGISTRY): Likewise.
843 * remote-fileio.c (remote_fileio_request): Likewise.
844 * remote.c (remote_update_thread_list): Likewise.
845 (remote_check_symbols): Likewise.
846 (remote_commit_resume): Likewise.
847 (remote_interrupt): Likewise.
848 (remote_insert_breakpoint): Likewise.
849 (compare_sections_command): Likewise.
850 * rust-exp.y (super_name): Likewise.
851 (lex_string): Likewise.
852 (convert_ast_to_type): Likewise.
853 (convert_ast_to_expression): Likewise.
854 * rust-lang.c (rust_print_struct_def): Likewise.
855 (rust_print_type): Likewise.
856 (rust_evaluate_subexp): Likewise.
857 * rx-tdep.c (rx_register_type): Likewise.
858 * ser-event.c (serial_event_clear): Likewise.
859 * serial.c (serial_open): Likewise.
860 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
861 * symfile.c (section_is_overlay): Likewise.
862 (overlay_unmapped_address): Likewise.
863 (overlay_mapped_address): Likewise.
864 (simple_overlay_update_1): Likewise.
865 (simple_overlay_update): Likewise.
866 * symtab.c (symbol_find_demangled_name): Likewise.
867 (search_symbols): Likewise.
868 * target-descriptions.c (tdesc_predefined_type): Likewise.
869 * target.c (target_commit_resume): Likewise.
870 * thread.c (print_selected_thread_frame): Likewise.
871 * top.c (new_ui_command): Likewise.
872 (gdb_readline_no_editing): Likewise.
873 * tracefile-tfile.c (tfile_open): Likewise.
874 * tracepoint.c (create_tsv_from_upload): Likewise.
875 * utils.c (quit): Likewise.
876 (defaulted_query): Likewise.
877 * valarith.c (value_concat): Likewise.
878 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
879 * xml-tdesc.c (target_fetch_description_xml): Likewise.
880 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
881 (xtensa_pseudo_register_write): Likewise.
882
7403715e
TT
8832017-12-04 Tom Tromey <tom@tromey.com>
884
885 * NEWS: Mention Rust trait object inspection.
886
50a1fdd5
PA
8872017-12-04 Pedro Alves <palves@redhat.com>
888
889 PR gdb/22499
890 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
891 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
892 (vex2_prefix_p, vex3_prefix_p): New functions.
893 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
894 VEX3 prefixes.
895 (fixup_riprel): Set VEX3.!B.
896
1e97a227
SM
8972017-12-03 Simon Marchi <simon.marchi@ericsson.com>
898
899 * target.h (mem_region_vector): Remove.
900 (struct target_ops) <to_memory_map>: Change return type to
901 std::vector<mem_region>.
902 * target-debug.h (target_debug_print_mem_region_vector): Rename
903 to ...
904 (target_debug_print_std_vector_mem_region): ... this.
905 * target-delegates.c: Re-generate.
906
10f64178
PA
9072017-12-03 Pedro Alves <palves@redhat.com>
908
909 * make-target-delegates (munge_type): Also munge '<', '>', and
910 ':'. Avoid double underscores in identifiers, and trailing
911 underscores.
912 * target-debug.h
913 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
914 ...
915 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
916 * target-delegates.c: Regenerate.
917
6d83e819
SM
9182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
919
920 * common/poison.h (XDELETE): Fix typo.
921
97cbe998
SDJ
9222017-12-01 Andrew Cagney <cagney@redhat.com>
923 Joel Brobecker <brobecker@adacore.com>
924 Sergio Durigan Junior <sergiodj@redhat.com>
925
926 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
927 feature.
928 * coffread.c (coff_symfile_read): Do not map over sections with
929 'coff_locate_sections' if readnever is on.
930 * dwarf2read.c (dwarf2_has_info): Return 0 if
931 readnever is on.
932 * elfread.c (elf_symfile_read): Do not map over sections with
933 'elf_locate_sections' if readnever is on.
934 * main.c (validate_readnow_readnever): New function.
935 (captured_main_1): Add support for --readnever.
936 (print_gdb_help): Document --readnever.
937 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
938 flag.
939 * symfile.c (readnever_symbol_files): New global.
940 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
941 'READNEVER_SYMBOL_FILES' is set.
942 (validate_readnow_readnever): New function.
943 (symbol_file_command): Handle '-readnever' option.
944 Call 'validate_readnow_readnever'.
945 (add_symbol_file_command): Handle '-readnever' option.
946 Call 'validate_readnow_readnever'.
947 (_initialize_symfile): Document new '-readnever' option for
948 both 'symbol-file' and 'add-symbol-file' commands.
949 * top.h (readnever_symbol_files): New extern global.
950 * xcoffread.c (xcoff_initial_scan): Do not read debug
951 information if readnever is on.
952
40fc416f
SDJ
9532017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
954
955 * symfile.c (symbol_file_command): Call
956 'symbol_file_add_main_1' only after processing all command
957 line options.
958 (add_symbol_file_command): Modify logic to make arguments
959 position-independent.
960
ec6a20c2
JB
9612017-12-01 Joel Brobecker <brobecker@adacore.com>
962
963 * ada-lang.c (symbol_list_obstack): Delete.
964 (resolve_subexp): Make sure "candidates" gets xfree'ed.
965 (ada_lookup_symbol_list_worker): Remove the limitation that
966 the result is only good until the next call, now making it
967 the responsibility of the caller to free the result when no
968 longer needed. Adjust the function's intro comment accordingly.
969 (ada_lookup_symbol_list): Adjust the function's intro comment.
970 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
971 (ada_lookup_encoded_symbol, get_var_value): Likewise.
972 (_initialize_ada_language): Remove symbol_list_obstack
973 initialization.
974 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
975 (write_var_or_type, write_name_assoc): Likewise.
976
d0df06af
TT
9772017-12-01 Tom Tromey <tom@tromey.com>
978
979 * Makefile.in (all_deps_files): New variable.
980 Include .Po files using all_deps_files.
981
2ee0c9b3
JB
9822017-12-01 Joel Brobecker <brobecker@adacore.com>
983
984 * MAINTAINERS: Update list of maintainers, moving those who
985 stepped down or became inactive to the "Past Maintainers"
986 section.
987
44122162
RO
9882017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
989
990 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
991 sys/proc.h.
992 (NEW_PROC_API): Remove.
993 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
994 Likewise.
995 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
996 * configure: Regenerate.
997 * config.in: Regenerate.
998 * gdbserver/configure: Regenerate.
999 * gdbserver/config.in: Regenerate.
1000
1001 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
1002 NEW_PROC_API test.
1003 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
1004
1005 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
1006
1007 * proc-api.c: Remove !NEW_PROC_API support.
1008 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
1009 Remove tests for macros always defined on Solaris.
1010 * proc-events.c: Remove !NEW_PROC_API support.
1011 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
1012 HAVE_SYS_USER_H tests.
1013 (init_syscall_table): Remove non-Solaris syscalls.
1014 Remove tests for syscalls present on all Solaris versions.
1015 Add missing Solaris 10+ syscalls.
1016 (signal_table): Remove non-Solaris signals.
1017 Remove tests for signals present on all Solaris versions.
1018 (fault_table): Remove non-Solaris faults.
1019 Remove tests for faults present on all Solaris versions.
1020 * proc-flags.c: Remove !NEW_PROC_API support.
1021 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
1022 Remove non-Solaris flags.
1023 * proc-why.c: Remove !NEW_PROC_API support.
1024 (pr_why_table): Remove meaningless comments.
1025 Remove tests for reasons present on all Solaris versions.
1026 Remove OSF/1 cases.
1027 (proc_prettyfprint_why): Likewise.
1028
1029 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
1030 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
1031 Remove WA_READ test, IRIX watchpoint support.
1032 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
1033 types. Change users.
1034 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
1035 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
1036 Change callers.
1037 Remove CTL_PROC_NAME_FMT tests.
1038 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
1039 users.
1040 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
1041 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
1042 (proc_modify_flag): Replace GDBRESET by PCUNSET.
1043 Remove PR_ASYNC, PR_KLC tests.
1044 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
1045 (proc_parent_pid): Remove PCWATCH etc. tests.
1046 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
1047 Remove PCAGENT test.
1048 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
1049 Remove SYS_lwpcreate || SYS_lwp_create test.
1050 (proc_get_current_thread): Likewise.
1051 [PIOCNTHR && PIOCTLIST]: Remove.
1052 [PIOCLSTATUS]: Remove.
1053 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
1054 [PRFS_STOPEXEC]: Remove.
1055 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
1056 (syscall_is_exit): Likewise.
1057 (syscall_is_exec): Likewise.
1058 (syscall_is_lwp_create): Likewise.
1059 Remove SYS_syssgi support.
1060 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
1061 [SYS_syssgi]: Remove.
1062 Remove non-Solaris cases, conditionals.
1063 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
1064 Remove.
1065 (procfs_init_inferior) [SYS_syssgi]: Remove.
1066 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
1067 (procfs_inferior_created) [SYS_syssgi]: Remove.
1068 (procfs_set_watchpoint): Remove !AIX5 test.
1069 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
1070 case.
1071 (mappingflags) [MA_PHYS]: Remove.
1072 (info_mappings_callback): Remove PCAGENT test.
1073 Remove PIOCOPENLWP || PCAGENT test.
1074
e8020e54
RO
10752017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1076
1077 * sol-thread.c (info_solthreads): Constify args.
1078 Cast args to void *.
1079
75059544
JB
10802017-11-29 John Baldwin <jhb@FreeBSD.org>
1081
1082 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
1083
f5a91472
JB
10842017-11-29 Joel Brobecker <brobecker@adacore.com>
1085
1086 * ada-lang.c (to_fixed_range_type): Make sure that the size
1087 of the range type being returned is the same as the size
1088 of the range type being fixed.
1089
bd69330d
PA
10902017-11-29 Pedro Alves <palves@redhat.com>
1091
1092 PR c++/19436
1093 * NEWS: Mention setting breakpoints on functions with C++ ABI
1094 tags.
1095 * completer.h (completion_match_for_lcd) <match,
1096 mark_ignored_range>: New methods.
1097 <finish>: Consider ignored ranges.
1098 <clear>: Clear ignored ranges.
1099 <m_ignored_ranges, m_finished_storage>: New fields.
1100 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1101 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1102 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1103 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1104 * language.c (default_symbol_name_matcher): Pass the
1105 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1106 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1107 * utils.c (skip_abi_tag): New function.
1108 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1109 Handle ABI tags.
1110 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1111 parameter.
1112
11132017-11-29 Pedro Alves <palves@redhat.com>
1114
1115 PR c++/19436
1116 * NEWS: Mention setting breakpoints on functions with C++ ABI
1117 tags.
1118 * completer.h (completion_match_for_lcd) <match,
1119 mark_ignored_range>: New methods.
1120 <finish>: Consider ignored ranges.
1121 <clear>: Clear ignored ranges.
1122 <m_ignored_ranges, m_finished_storage>: New fields.
1123 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1124 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1125 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1126 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1127 * language.c (default_symbol_name_matcher): Pass the
1128 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1129 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1130 * utils.c (skip_abi_tag): New function.
1131 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1132 Handle ABI tags.
1133 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1134 parameter.
1135
a20714ff
PA
11362017-11-29 Pedro Alves <palves@redhat.com>
1137
1138 * NEWS: Mention that breakpoints on C++ functions are now set on
1139 on all namespaces/classes by default, and mention "break
1140 -qualified".
1141 * ax-gdb.c (agent_command_1): Adjust to pass a
1142 symbol_name_match_type to new_linespec_location.
1143 * breakpoint.c (parse_breakpoint_sals): Adjust to
1144 get_linespec_location's return type change.
1145 (strace_marker_create_sals_from_location): Adjust to pass a
1146 symbol_name_match_type to new_linespec_location.
1147 (strace_marker_decode_location): Adjust to get_linespec_location's
1148 return type change.
1149 (strace_command): Adjust to pass a symbol_name_match_type to
1150 new_linespec_location.
1151 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
1152 mention "-qualified".
1153 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
1154 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
1155 enumerator.
1156 (complete_address_and_linespec_locations): New parameter
1157 'match_type'. Pass it down.
1158 (explicit_options): Add "-qualified".
1159 (collect_explicit_location_matches): Pass the requested match type
1160 to the linespec completers. Handle MATCH_QUALIFIED.
1161 (location_completer): Handle "-qualified" combined with linespecs.
1162 * cp-support.c (cp_search_name_hash): New.
1163 (cp_symbol_name_matches_1): Implement wild matching for C++.
1164 (cp_fq_symbol_name_matches): Reimplement.
1165 (cp_get_symbol_name_matcher): Return different matchers depending
1166 on the lookup name's match type.
1167 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
1168 * cp-support.h (cp_search_name_hash): New declaration.
1169 * dwarf2read.c
1170 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
1171 symbols.
1172 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
1173 tests.
1174 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
1175 pass a symbol_name_match_type to new_linespec_location.
1176 * linespec.c (linespec_parse_basic): Lookup function symbols using
1177 the parser's symbol name match type.
1178 (convert_explicit_location_to_linespec): New
1179 symbol_name_match_type parameter. Pass it down to
1180 find_linespec_symbols.
1181 (convert_explicit_location_to_sals): Pass the location's name
1182 match type to convert_explicit_location_to_linespec.
1183 (parse_linespec): New match_type parameter. Save it in the
1184 parser.
1185 (linespec_parser_new): Default to symbol_name_match_type::WILD.
1186 (linespec_complete_function): New symbol_name_match_type
1187 parameter. Use it.
1188 (complete_linespec_component): Pass down the parser's recorded
1189 name match type.
1190 (linespec_complete_label): New symbol_name_match_type parameter.
1191 Use it.
1192 (linespec_complete): New symbol_name_match_type parameter. Save
1193 it in the parser and pass it down. Adjust to
1194 get_linespec_location's prototype change.
1195 (find_function_symbols, find_linespec_symbols): New
1196 symbol_name_match_type parameter. Pass it down instead of
1197 assuming symbol_name_match_type::WILD.
1198 * linespec.h (linespec_complete, linespec_complete_function)
1199 (linespec_complete_label): New symbol_name_match_type parameter.
1200 * location.c (event_location::linespec_location): Now a struct
1201 linespec_location.
1202 (EL_LINESPEC): Adjust.
1203 (initialize_explicit_location): Default to
1204 symbol_name_match_type::WILD.
1205 (new_linespec_location): New symbol_name_match_type parameter.
1206 Record it in the location.
1207 (get_linespec_location): Now returns a struct linespec_location.
1208 (new_explicit_location): Also copy func_name_match_type.
1209 (explicit_to_string_internal)
1210 (string_to_explicit_location): Handle "-qualified".
1211 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
1212 Copy symbol_name_match_type fields.
1213 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
1214 type change.
1215 (event_location_to_string): Adjust to LINESPEC_LOCATION type
1216 change. Handle "-qualfied".
1217 (string_to_explicit_location): Handle "-qualified".
1218 (string_to_event_location_basic): New symbol_name_match_type
1219 parameter. Pass it down.
1220 (string_to_event_location): Handle "-qualified".
1221 * location.h (struct linespec_location): New.
1222 (explicit_location::func_name_match_type): New field.
1223 (new_linespec_location): Now returns a const linespec_location *.
1224 (string_to_event_location_basic): New symbol_name_match_type
1225 parameter.
1226 (explicit_completion_info::saw_explicit_location_option): New
1227 field.
1228 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
1229 symbol_name_match_type to new_linespec_location.
1230 * python/py-breakpoint.c (bppy_init): Likewise.
1231 * python/python.c (gdbpy_decode_line): Likewise.
1232
a207cff2
PA
12332017-11-29 Pedro Alves <palves@redhat.com>
1234
1235 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1236 parameter from completion_match to completion_match_result.
1237 Adjust.
1238 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1239 * completer.c (completion_tracker::maybe_add_completion): Add
1240 match_for_lcd parameter and use it.
1241 (completion_tracker::add_completion): Likewise.
1242 * completer.h (class completion_match_for_lcd): New class.
1243 (completion_match_result::match_for_lcd): New field.
1244 (completion_match_result::set_match): New method.
1245 (completion_tracker): Add comments.
1246 (completion_tracker::add_completion): Add match_for_lcd parameter.
1247 (completion_tracker::reset_completion_match_result): Reset
1248 match_for_lcd too.
1249 (completion_tracker::maybe_add_completion): Add match_for_lcd
1250 parameter.
1251 (completion_tracker::m_lowest_common_denominator_unique): Extend
1252 comments.
1253 * cp-support.c (cp_symbol_name_matches_1)
1254 (cp_fq_symbol_name_matches): Change type of parameter from
1255 completion_match to completion_match_result. Adjust.
1256 * language.c (default_symbol_name_matcher): Change type of
1257 parameter from completion_match to completion_match_result.
1258 Adjust.
1259 * language.h (completion_match_for_lcd): Forward declare.
1260 (default_symbol_name_matcher): Change type of parameter from
1261 completion_match to completion_match_result.
1262 * symtab.c (compare_symbol_name): Adjust.
1263 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1264 * symtab.h (ada_lookup_name_info::matches): Change type of
1265 parameter from completion_match to completion_match_result.
1266 (symbol_name_matcher_ftype): Likewise, and update comments.
1267
4024cf2b
PA
12682017-11-29 Pedro Alves <palves@redhat.com>
1269
1270 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1271 * minsyms.c (msymbol_is_text): Delete.
1272 (msymbol_is_function): New function.
1273 * minsyms.h (msymbol_is_text): Delete.
1274 (msymbol_is_function): New declaration.
1275 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1276
5dcf52c1
TT
12772017-11-29 Tom Tromey <tom@tromey.com>
1278
1279 * Makefile.in (distclean): Handle the case where rmdir fails.
1280
8ca2f0b9
TT
12812017-11-29 Tom Tromey <tom@tromey.com>
1282
1283 * symfile.c (_initialize_symfile): Update usage text for
1284 add-symbol-file, symbol-file, load.
1285
02ca603a
TT
12862017-11-29 Tom Tromey <tom@tromey.com>
1287
1288 * symfile.c (add_symbol_file_command): Error if some arguments to
1289 -s are missing. Change unrecognized-argument error message.
1290 (_initialize_symfile): Fix usage text for add-symbol-file.
1291
18ca7347
TT
12922017-11-27 Tom Tromey <tom@tromey.com>
1293
1294 * Makefile.in (REMOTE_OBS): Remove.
1295 (SFILES): Remove remote sources.
1296 (COMMON_SFILES): Add remote sources.
1297 (ALLDEPFILES): Remove dcache.c.
1298
66599a7d
TT
12992017-11-27 Tom Tromey <tom@tromey.com>
1300
1301 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1302 variables.
1303 (SFILES): Use SUBDIR_TARGET_SRCS.
1304 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1305 (CONFIG_SRC_SUBDIR): Add target.
1306 (%.o): Remove target rule.
1307
4f04fba8
TT
13082017-11-27 Tom Tromey <tom@tromey.com>
1309
1310 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1311 registry.o, thread-fsm.o, debug.o.
1312 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1313 thread-fsm.c, debug.c.
1314
b5adff3b
TT
13152017-11-27 Tom Tromey <tom@tromey.com>
1316
1317 * Makefile.in (COMMON_SFILES): New.
1318 (SFILES): Move some entries to COMMON_SFILES.
1319 (COMMON_OBS): Use COMMON_SFILES.
1320
afa0a411
TT
13212017-11-27 Tom Tromey <tom@tromey.com>
1322
1323 * Makefile.in (YYFILES): Update comment.
1324 (YYOBJ): Redefine.
1325
8fd8d003
TT
13262017-11-27 Tom Tromey <tom@tromey.com>
1327
1328 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1329 (CONFIG_SRC_SUBDIR): Add python.
1330 (%.o): Remove python rule.
1331 (python/%.o): New rule.
1332 * configure: Rebuild.
1333 * configure.ac (CONFIG_OBS): Refer to python/python.o
1334
bd810fff
TT
13352017-11-27 Tom Tromey <tom@tromey.com>
1336
1337 * configure: Rebuild.
1338 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1339 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1340 (CONFIG_SRC_SUBDIR): Add guile.
1341 (%.o): Remove guile rule.
1342
75787ac1
TT
13432017-11-27 Tom Tromey <tom@tromey.com>
1344
1345 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1346 (%.o): Remove unittests rule.
1347 (CONFIG_SRC_SUBDIR): Add unittests.
1348
5c8a9431
TT
13492017-11-27 Tom Tromey <tom@tromey.com>
1350
1351 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1352 (CONFIG_SRC_SUBDIR): Add tui.
1353 (%.o): Remove tui rule.
1354
a26aa30c
TT
13552017-11-27 Tom Tromey <tom@tromey.com>
1356
1357 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1358 (%.o): Remove compile rule.
1359 (CONFIG_SRC_SUBDIR): Add compile.
1360
6f3cdf9a
TT
13612017-11-27 Tom Tromey <tom@tromey.com>
1362
1363 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1364 (%.o): Remove mi rule.
1365 (CONFIG_SRC_SUBDIR): Add mi.
1366 (COMMON_OBS): Use mi/mi-common.o
1367
f06afa53
TT
13682017-11-27 Tom Tromey <tom@tromey.com>
1369
1370 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1371 (%.o): Remove cli rule.
1372 (CONFIG_SRC_SUBDIR): Add cli.
1373
b22c88c2
TT
13742017-11-27 Tom Tromey <tom@tromey.com>
1375
1376 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1377 * configure: Rebuild.
1378 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1379 (CONFIG_DEP_SUBDIR): New variable.
1380 (%.o): Add order-only dependency.
1381 ($(CONFIG_DEP_SUBDIR)): New target.
1382
ee9a09e9
DC
13832017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1384
1385 PR gdb/21945
1386 * findcmd.c (_initialize_mem_search): Update find command help
1387 text.
1388
e8e7d10c
SM
13892017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1390
1391 * python/python.c (do_start_initialization): Change progname
1392 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1393 Python 2.
1394
6a997029
TT
13952017-11-26 Tom Tromey <tom@tromey.com>
1396
1397 * common/format.h: Add include guards.
1398
41272101
TT
13992017-11-26 Tom Tromey <tom@tromey.com>
1400
1401 * nat/linux-personality.h (class
1402 maybe_disable_address_space_randomization): New class.
1403 (maybe_disable_address_space_randomization): Don't declare
1404 function.
1405 * nat/linux-personality.c (restore_personality)
1406 (make_disable_asr_cleanup): Remove.
1407 (maybe_disable_address_space_randomization): Now a constructor.
1408 (~maybe_disable_address_space_randomization): New destructor.
1409 * linux-nat.c (linux_nat_create_inferior): Update.
1410
44287fd8
TT
14112017-11-26 Tom Tromey <tom@tromey.com>
1412
1413 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1414
5ffd2cb7
UW
14152017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1416
1417 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1418 "cooked" register. Access only first four bytes of branch target
1419 registers.
1420
0e5457dc
SDJ
14212017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1422
1423 PR gdb/22491
1424 * stap-probe.c (relocate_address): New function.
1425 (stap_probe::get_relocated_address): Use 'relocate_address'.
1426 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1427 'm_sem_addr'.
1428 (stap_probe::clear_semaphore): Likewise.
1429
deeeba55
PA
14302017-11-25 Pedro Alves <palves@redhat.com>
1431
1432 * dictionary.c: Include "safe-ctype.h".
1433 * minsyms.c: Include "safe-ctype.h".
1434 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1435
a81aaca0
PA
14362017-11-25 Pedro Alves <palves@redhat.com>
1437
1438 * completer.c (complete_line_internal_1): Skip spaces until the
1439 start of the command.
1440
0662b6a7
PA
14412017-11-24 Pedro Alves <palves@redhat.com>
1442
1443 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1444 cp_fq_symbol_name_matches. Pass language_cplus to
1445 strncmp_with_mode.
1446 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1447 (selftests::test_cp_symbol_name_cmp): New.
1448 (_initialize_cp_support): Register "cp_symbol_name_matches"
1449 selftests.
1450 * language.c (default_symbol_name_matcher): Pass language_minimal
1451 to strncmp_iw_with_mode.
1452 * utils.c: Include "cp-support.h" and <algorithm>.
1453 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1454 (cp_is_operator): New functions.
1455 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1456 skip whitespace in the symbol name when the lookup name doesn't
1457 have spaces, and vice versa.
1458 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1459 * utils.h (strncmp_iw_with_mode): Add language parameter.
1460
e547c119
JB
14612017-11-24 Joel Brobecker <brobecker@adacore.com>
1462
1463 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1464 New functions.
1465 (print_it_exception): If available, display the exception
1466 message as well.
1467 * NEWS: Document new feature.
1468
d7fcdff9
UW
14692017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1470
1471 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1472
30649c14
PR
14732017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1474
1475 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1476 (dtrace_probe::is_enabled, dtrace_probe::enable)
1477 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1478 variable
1479 * probe.c (gen_ui_out_table_header_info)
1480 (print_ui_out_not_applicables): Remove keyword 'struct' at
1481 for-range variable
1482
7696f5c9
AH
14832017-11-24 Alan Hayward <alan.hayward@arm.com>
1484
1485 * configure.tgt: Add arch/aarch64.o
1486
8172f16b
SM
14872017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 * common/common-utils.h: Include poison.h.
1490 (xfree): Remove declaration, add definition with static_assert.
1491 * common/common-utils.c (xfree): Remove.
1492 * common/poison.h (IsMallocatable): Define.
1493 (IsFreeable): Define.
1494 (free): Delete for non-freeable types.
1495 (xnew): New.
1496 (XNEW): Undef and redefine.
1497 (xcnew): New.
1498 (XCNEW): Undef and redefine.
1499 (xdelete): New.
1500 (XDELETE): Undef and redefine.
1501 (xnewvec): New.
1502 (XNEWVEC): Undef and redefine.
1503 (xcnewvec): New.
1504 (XCNEWVEC): Undef and redefine.
1505 (xresizevec): New.
1506 (XRESIZEVEC): Undef and redefine.
1507 (xdeletevec): New.
1508 (XDELETEVEC): Undef and redefine.
1509 (xnewvar): New.
1510 (XNEWVAR): Undef and redefine.
1511 (xcnewvar): New.
1512 (XCNEWVAR): Undef and redefine.
1513 (xresizevar): New.
1514 (XRESIZEVAR): Undef and redefine.
1515
7aabaf9d
SM
15162017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1517
1518 * gdbthread.h (private_thread_info): Define structure type, add
1519 virtual pure destructor.
1520 (thread_info) <priv>: Change type to unique_ptr.
1521 <private_dtor>: Remove.
1522 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1523 (private_thread_info::~private_thread_info): Provide default
1524 implementation.
1525 (thread_info::~thread_info): Don't call private_dtor nor
1526 manually free priv.
1527 * aix-thread.c (private_thread_info): Rename to ...
1528 (aix_thread_info): ... this.
1529 (get_aix_thread_info): New.
1530 (sync_threadlists): Adjust.
1531 (iter_tid): Adjust.
1532 (aix_thread_resume): Adjust.
1533 (aix_thread_fetch_registers): Adjust.
1534 (aix_thread_store_registers): Adjust.
1535 (aix_thread_extra_thread_info): Adjust.
1536 * darwin-nat.h (private_thread_info): Rename to ...
1537 (darwin_thread_info): ... this.
1538 (get_darwin_thread_info): New.
1539 * darwin-nat.c (darwin_init_thread_list): Adjust.
1540 (darwin_check_new_threads): Adjust.
1541 (thread_info_from_private_thread_info): Adjust.
1542 * linux-thread-db.c (private_thread_info): Rename to ...
1543 (thread_db_thread_info): ... this, initialize fields.
1544 (get_thread_db_thread_info): New.
1545 <dying>: Change type to bool.
1546 (update_thread_state): Adjust to type rename.
1547 (record_thread): Adjust to type rename an use of unique_ptr.
1548 (thread_db_pid_to_str): Likewise.
1549 (thread_db_extra_thread_info): Likewise.
1550 (thread_db_thread_handle_to_thread_info): Likewise.
1551 (thread_db_get_thread_local_address): Likewise.
1552 * nto-tdep.h (private_thread_info): Rename to ...
1553 (nto_thread_info): ... this, initialize fields.
1554 (get_nto_thread_info): New.
1555 <name>: Change type to std::string.
1556 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1557 use of unique_ptr.
1558 * nto-procfs.c (update_thread_private_data_name): Adjust to
1559 std::string change, allocate nto_private_thread_info with new.
1560 (update_thread_private_data): Adjust to unique_ptr.
1561 * remote.c (private_thread_info): Rename to ...
1562 (remote_thread_info): ... this, initialize data members with
1563 default values.
1564 <extra, name>: Change type to std::string.
1565 <thread_handle>: Change type to non-pointer.
1566 (free_private_thread_info): Remove.
1567 (get_private_info_thread): Rename to...
1568 (get_remote_thread_info): ... this, change return type, adjust to
1569 use of unique_ptr, use remote_thread_info constructor.
1570 (remote_add_thread): Adjust.
1571 (get_private_info_ptid): Rename to...
1572 (get_remote_thread_info): ...this, change return type.
1573 (remote_thread_name): Use get_remote_thread_info, adjust to
1574 change to std::string.
1575 (struct thread_item) <~thread_item>: Remove.
1576 <thread_handle>: Make non pointer.
1577 (start_thread): Adjust to thread_item::thread_handle type
1578 change.
1579 (remote_update_thread_list): Adjust to type name change, move
1580 strings from temporary to long-lived object instead of
1581 duplicating.
1582 (remote_threads_extra_info): Use get_remote_thread_info.
1583 (process_initial_stop_replies): Likewise.
1584 (resume_clear_thread_private_info): Likewise.
1585 (remote_resume): Adjust to type name change.
1586 (remote_commit_resume): Use get_remote_thread_info.
1587 (process_stop_reply): Adjust to type name change.
1588 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1589 (remote_stopped_by_hw_breakpoint): Likewise.
1590 (remote_stopped_by_watchpoint): Likewise.
1591 (remote_stopped_data_address): Likewise.
1592 (remote_core_of_thread): Likewise.
1593 (remote_thread_handle_to_thread_info): Use
1594 get_private_info_thread, adjust to thread_handle field type
1595 change.
1596
21fe1c75
SM
15972017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1598
1599 * remote.c (struct thread_item): Add constructor, disable copy
1600 construction and copy assignment, define default move
1601 construction and move assignment.
1602 <extra, name>: Change type to std::string.
1603 <core>: Initialize.
1604 <thread_handle>: Make non-pointer.
1605 (thread_item_t): Remove typedef.
1606 (DEF_VEC_O(thread_item_t)): Remove.
1607 (threads_listing_context) <contains_thread>: New method.
1608 <remove_thread>: New method.
1609 <items>: Change type to std::vector.
1610 (clear_threads_listing_context): Remove.
1611 (threads_listing_context_remove): Remove.
1612 (remote_newthread_step): Use thread_item constructor, adjust to
1613 change to std::vector.
1614 (start_thread): Use thread_item constructor, adjust to change to
1615 std::vector.
1616 (end_thread): Adjust to change to std::vector and std::string.
1617 (remote_get_threads_with_qthreadinfo): Use thread_item
1618 constructor, adjust to std::vector.
1619 (remote_update_thread_list): Adjust to change to std::vector and
1620 std::string, use threads_listing_context methods.
1621 (remove_child_of_pending_fork): Adjust.
1622 (remove_new_fork_children): Adjust.
1623 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1624 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1625 * unittests/rsp-low-selftests.c: New file.
1626 * common/rsp-low.h: Include common/byte-vector.h.
1627 (hex2bin): New overload.
1628 * common/rsp-low.c (hex2bin): New overload.
1629
089354bb
SM
16302017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1631
1632 * inferior.h (private_inferior): Define structure type, add
1633 virtual pure destructor.
1634 (inferior) <priv>: Change type to unique_ptr.
1635 * inferior.c (private_inferior::~private_inferior): Provide
1636 default implementation.
1637 (inferior::~inferior): Don't free priv field.
1638 (exit_inferior_1): Likewise.
1639 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1640 (darwin_exception_info): Remove typedef.
1641 (DEF_VEC_O (darwin_thread_t)); Remove.
1642 (private_inferior): Rename to ...
1643 (darwin_private_inferior): ... this, extend private_inferior.
1644 (get_darwin_inferior): New.
1645 <threads>: Change type to std::vector of darwin_thread_t pointers.
1646 * darwin-nat.c (darwin_check_new_threads): Adjust.
1647 (find_inferior_task_it): Adjust.
1648 (darwin_find_thread); Adjust.
1649 (darwin_suspend_inferior): Adjust.
1650 (darwin_resume_inferior): Adjust.
1651 (darwin_find_new_inferior): Adjust.
1652 (darwin_decode_notify_message): Adjust.
1653 (darwin_send_reply): Adjust.
1654 (darwin_resume_inferior_threads): Adjust.
1655 (darwin_suspend_inferior_threads): Adjust.
1656 (darwin_decode_message): Adjust.
1657 (darwin_wait): Adjust.
1658 (darwin_interrupt): Adjust.
1659 (darwin_deallocate_threads): Adjust.
1660 (darwin_mourn_inferior): Adjust, don't free private data.
1661 (darwin_reply_to_all_pending_messages): Adjust.
1662 (darwin_stop_inferior): Adjust.
1663 (darwin_setup_exceptions): Adjust.
1664 (darwin_kill_inferior): Adjust.
1665 (darwin_setup_request_notification): Adjust.
1666 (darwin_attach_pid): Adjust.
1667 (darwin_init_thread_list): Adjust.
1668 (darwin_setup_fake_stop_event): Adjust.
1669 (darwin_attach): Adjust.
1670 (darwin_detach): Adjust.
1671 (darwin_xfer_partial): Adjust.
1672 (set_enable_mach_exceptions): Adjust.
1673 (darwin_pid_to_exec_file): Adjust.
1674 (darwin_get_ada_task_ptid): Adjust.
1675 * darwin-nat-info.c (get_task_from_args): Adjust.
1676 (info_mach_ports_command): Adjust.
1677 (info_mach_region_command): Adjust.
1678 (info_mach_exceptions_command): Adjust.
1679 * remote.c (private_inferior): Rename to ...
1680 (remote_private_inferior): ... this, initialize fields.
1681 (get_remote_inferior); New.
1682 (remote_commit_resume): Use get_remote_inferior.
1683 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1684
d044bac8
PA
16852017-11-24 Pedro Alves <palves@redhat.com>
1686
1687 * NEWS: Mention linespecs and explicit locations, and completion
1688 improvements.
1689
e8d58cba
YQ
16902017-11-24 Yao Qi <yao.qi@linaro.org>
1691
1692 * regcache.c (regcache::dump): Remove footnote_register_size.
1693
a63f2d2f
YQ
16942017-11-24 Yao Qi <yao.qi@linaro.org>
1695
1696 * regcache.c (cooked_read_test): Add more test for readonly
1697 regcache.
1698
1b30aaa5
YQ
16992017-11-24 Yao Qi <yao.qi@linaro.org>
1700
1701 * gdbarch-selftests.c (test_target_has_registers): Move it to
1702 target.c.
1703 (test_target_has_stack): Likewise.
1704 (test_target_has_memory): Likewise.
1705 (test_target_prepare_to_store): Likewise.
1706 (test_target_store_registers): Likewise.
1707 (test_target_ops): Likewise.
1708 * regcache.c: Include selftest-arch.h and gdbthread.h.
1709 (target_ops_no_register): New class.
1710 (test_target_fetch_registers): New.
1711 (test_target_store_registers): New.
1712 (test_target_xfer_partial): New.
1713 (readwrite_regcache): New.
1714 (cooked_read_test): New.
1715 (_initialize_regcache): Register the test.
1716 * target.c: (test_target_has_registers): Moved from
1717 gdbarch-selftests.c.
1718 (test_target_has_stack): Likewise.
1719 (test_target_has_memory): Likewise.
1720 (test_target_prepare_to_store): Likewise.
1721 (test_target_store_registers): Likewise.
1722 * target.h (test_target_ops): New class.
1723
6654d750
AH
17242017-11-24 Alan Hayward <alan.hayward@arm.com>
1725
1726 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1727 selftest.
1728
49bdb7ee
AH
17292017-11-24 Alan Hayward <alan.hayward@arm.com>
1730
1731 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1732 * arch/aarch64.c (aarch64_create_target_description): Create
1733 new target description.
1734 * features/Makefile: Add new files.
1735 * features/aarch64.c: Remove file.
1736 * features/aarch64-core.c: New autogenerated file.
1737 * features/aarch64-fpu.c: New autogenerated file.
1738 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
da434ccb
AH
1739
17402017-11-24 Alan Hayward <alan.hayward@arm.com>
1741
1742 * Makefile.in: Add new files.
1743 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1744 aarch64_read_description.
1745 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1746 Call aarch64_read_description.
1747 * aarch64-tdep.c (aarch64_read_description): New function.
1748 (aarch64_gdbarch_init): Call aarch64_read_description.
1749 * aarch64-tdep.h (aarch64_read_description): New function.
1750 * arch/aarch64.c: New file.
1751 * configure.tgt: Add new files.
1752
98ead37e
YQ
17532017-11-24 Yao Qi <yao.qi@linaro.org>
1754
1755 * mi/mi-main.c (register_changed_p): Update.
1756 * value.c (value_contents_bits_eq): Change return type.
1757 (value_contents_eq): Likewise.
1758 * value.h: Update comments.
1759
62ad7ce7
YQ
17602017-11-24 Yao Qi <yao.qi@linaro.org>
1761
1762 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1763 local 'changed'. Remove error.
1764 (register_changed_p): Change return type to bool.
1765
506fe5f4
YQ
17662017-11-24 Yao Qi <yao.qi@linaro.org>
1767
1768 * arch/tic6x.c: New file.
1769 * arch/tic6x.h: New file.
1770 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1771 tic6x-core.xml and tic6x-gp.xml.
1772 * features/tic6x-c6xp.c: Generated.
1773 * features/tic6x-core.c: Generated.
1774 * features/tic6x-gp.c: Generated.
1775 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1776 "tic6x-".
1777
00ea2e2a
SM
17782017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1779
1780 * mi/mi-main.c (list_available_thread_groups): Change map value
1781 type to std::vector.
1782
f45e2a77
SM
17832017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1784
1785 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1786
bd046f64
SM
17872017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1788
1789 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1790 back to...
1791 <children_requested>: ... this.
1792 (varobj_get_num_children, varobj_update): Adjust.
1793
4c37490d
SM
17942017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1795
1796 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1797 (ada_value_has_mutated): Likewise.
1798 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1799 (c_is_path_expr_parent): Likewise.
1800 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1801 (mi_cmd_var_set_frozen): Likewise.
1802 (mi_cmd_var_update_iter): Likewise.
1803 (mi_cmd_var_update): Likewise.
1804 * varobj.c (pretty_printing): Likewise.
1805 (varobj_enable_pretty_printing): Likewise.
1806 (struct varobj_root) <floating, is_valid>: Likewise.
1807 (struct varobj_dynamic) <children_requested>: Likewise.
1808 (delete_variable): Likewise.
1809 (delete_variable_1): Likewise.
1810 (install_variable): Likewise.
1811 (update_type_if_necessary): Likewise.
1812 (install_new_value): Likewise.
1813 (value_of_root): Likewise.
1814 (is_root_p): Likewise.
1815 (varobj_create): Likewise.
1816 (varobj_delete): Likewise.
1817 (varobj_has_more): Likewise.
1818 (varobj_set_frozen): Likewise.
1819 (varobj_get_frozen): Likewise.
1820 (install_dynamic_child): Likewise.
1821 (dynamic_varobj_has_child_method): Likewise.
1822 (update_dynamic_varobj_children): Likewise.
1823 (varobj_get_num_children): Likewise.
1824 (varobj_list_children): Likewise.
1825 (is_path_expr_parent): Likewise.
1826 (varobj_default_is_path_expr_parent): Likewise.
1827 (varobj_is_dynamic_p): Likewise.
1828 (varobj_set_value): Likewise.
1829 (varobj_value_has_mutated): Likewise.
1830 (varobj_update): Likewise.
1831 (check_scope): Likewise.
1832 (value_of_root_1): Likewise.
1833 (varobj_value_get_print_value): Likewise.
1834 (varobj_editable_p): Likewise.
1835 (varobj_value_is_changeable_p): Likewise.
1836 (varobj_floating_p): Likewise.
1837 (varobj_default_value_is_changeable_p): Likewise.
1838 (varobj_invalidate_iter): Likewise.
1839 * varobj.h (struct varobj_update_result) <type_changed,
1840 children_changed, changed, value_installed>: Likewise.
1841 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1842 (struct lang_varobj_ops) <value_is_changeable_p,
1843 value_has_mutated, is_path_expr_parent>: Likewise.
1844 (varobj_delete): Likewise.
1845 (varobj_set_frozen): Likewise.
1846 (varobj_get_frozen): Likewise.
1847 (varobj_set_value): Likewise.
1848 (varobj_update): Likewise.
1849 (varobj_editable_p): Likewise.
1850 (varobj_floating_p): Likewise.
1851 (varobj_has_more): Likewise.
1852 (varobj_is_dynamic_p): Likewise.
1853 (varobj_default_value_is_changeable_p): Likewise.
1854 (varobj_value_is_changeable_p): Likewise.
1855 (varobj_is_anonymous_child): Likewise.
1856 (varobj_default_is_path_expr_parent): Likewise.
1857
9c23b42f
SDJ
18582017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1859
1860 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1861 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1862 <type_str>: Convert to 'std::string'.
1863 <expr>: Convert to 'expression_up'.
1864 (dtrace_probe_arg_s): Delete type and VEC.
1865 (dtrace_probe_enabler_s): Likewise.
1866 (struct dtrace_probe): Replace by...
1867 (class dtrace_static_probe_ops): ...this and...
1868 (class dtrace_probe): ...this.
1869 (dtrace_probe_is_linespec): Rename to...
1870 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1871 to reflect change.
1872 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1873 Adjust code. Create new instance of 'dtrace_probe'.
1874 (dtrace_build_arg_exprs): Rename to...
1875 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1876 reflect change.
1877 (dtrace_get_probes): Rename to...
1878 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1879 to reflect change.
1880 (dtrace_get_arg): Rename to...
1881 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1882 reflect change.
1883 (dtrace_probe_is_enabled): Rename to...
1884 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1885 change.
1886 (dtrace_get_probe_address): Rename to...
1887 (dtrace_probe::get_relocated_address): ...this. Adjust code
1888 to reflect change.
1889 (dtrace_get_probe_argument_count): Rename to...
1890 (dtrace_probe::get_argument_count): ...this. Adjust code to
1891 reflect change.
1892 (dtrace_can_evaluate_probe_arguments): Rename to...
1893 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1894 to reflect change.
1895 (dtrace_evaluate_probe_argument): Rename to...
1896 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1897 reflect change.
1898 (dtrace_compile_to_ax): Rename to...
1899 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1900 reflect change.
1901 (dtrace_probe_destroy): Delete.
1902 (dtrace_type_name): Rename to...
1903 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1904 reflect change.
1905 (dtrace_probe::get_static_ops): New method.
1906 (dtrace_gen_info_probes_table_header): Rename to...
1907 (dtrace_static_probe_ops::gen_info_probes_table_header):
1908 ...this. Adjust code to reflect change.
1909 (dtrace_gen_info_probes_table_values): Rename to...
1910 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1911 code to reflect change.
1912 (dtrace_enable_probe): Rename to...
1913 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1914 change.
1915 (dtrace_disable_probe): Rename to...
1916 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1917 change.
1918 (struct probe_ops dtrace_probe_ops): Delete.
1919 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1920 instead of 'info_probes_for_ops'.
1921 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1922 of 'all_probe_ops'.
1923
0e9ae10f
SDJ
19242017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1925 Simon Marchi <simark@simark.ca>
1926
1927 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1928 variable.
1929 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1930 <aexpr>: Change type to 'expression_up'.
1931 (stap_probe_arg_s): Delete type and VEC.
1932 (struct stap_probe): Delete. Replace by...
1933 (class stap_static_probe_ops): ...this and...
1934 (class stap_probe): ...this. Rename variables to add 'm_'
1935 prefix. Do not use 'union' for arguments anymore.
1936 (stap_get_expected_argument_type): Receive probe name instead
1937 of 'struct stap_probe'. Adjust code.
1938 (stap_parse_probe_arguments): Rename to...
1939 (stap_probe::parse_arguments): ...this. Adjust code to
1940 reflect change.
1941 (stap_get_probe_address): Rename to...
1942 (stap_probe::get_relocated_address): ...this. Adjust code
1943 to reflect change.
1944 (stap_get_probe_argument_count): Rename to...
1945 (stap_probe::get_argument_count): ...this. Adjust code
1946 to reflect change.
1947 (stap_get_arg): Rename to...
1948 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1949 reflect change.
1950 (can_evaluate_probe_arguments): Rename to...
1951 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1952 to reflect change.
1953 (stap_evaluate_probe_argument): Rename to...
1954 (stap_probe::evaluate_argument): ...this. Adjust code
1955 to reflect change.
1956 (stap_compile_to_ax): Rename to...
1957 (stap_probe::compile_to_ax): ...this. Adjust code to
1958 reflect change.
1959 (stap_probe_destroy): Delete.
1960 (stap_modify_semaphore): Adjust comment.
1961 (stap_set_semaphore): Rename to...
1962 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1963 change.
1964 (stap_clear_semaphore): Rename to...
1965 (stap_probe::clear_semaphore): ...this. Adjust code to
1966 reflect change.
1967 (stap_probe::get_static_ops): New method.
1968 (handle_stap_probe): Adjust code to create instance of
1969 'stap_probe'.
1970 (stap_get_probes): Rename to...
1971 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1972 reflect change.
1973 (stap_probe_is_linespec): Rename to...
1974 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1975 reflect change.
1976 (stap_type_name): Rename to...
1977 (stap_static_probe_ops::type_name): ...this. Adjust code to
1978 reflect change.
1979 (stap_gen_info_probes_table_header): Rename to...
1980 (stap_static_probe_ops::gen_info_probes_table_header):
1981 ...this. Adjust code to reflect change.
1982 (stap_gen_info_probes_table_values): Rename to...
1983 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1984 code to reflect change.
1985 (struct probe_ops stap_probe_ops): Delete.
1986 (info_probes_stap_command): Use 'info_probes_for_spops'
1987 instead of 'info_probes_for_ops'.
1988 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1989 of 'all_probe_ops'.
1990
935676c9
SDJ
19912017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1992
1993 * break-catch-throw.c (fetch_probe_arguments): Use
1994 'probe.prob' instead of 'probe.probe'.
1995 * breakpoint.c (create_longjmp_master_breakpoint): Call
1996 'can_evaluate_arguments' and 'get_relocated_address' methods
1997 from probe.
1998 (create_exception_master_breakpoint): Likewise.
1999 (add_location_to_breakpoint): Use 'sal->prob' instead of
2000 'sal->probe'.
2001 (bkpt_probe_insert_location): Call 'set_semaphore' method from
2002 probe.
2003 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
2004 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
2005 of 'probe_ops'.
2006 (probe_key_free): Call 'delete' on probe.
2007 (check_exception_resume): Use 'probe.prob' instead of
2008 'probe.probe'.
2009 * location.c (string_to_event_location_basic): Call
2010 'probe_linespec_to_static_ops'.
2011 * probe.c (class any_static_probe_ops): New class.
2012 (any_static_probe_ops any_static_probe_ops): New variable.
2013 (parse_probes_in_pspace): Receive 'static_probe_ops' as
2014 argument. Adjust code to reflect change.
2015 (parse_probes): Use 'static_probe_ops' instead of
2016 'probe_ops'. Adjust code to reflect change.
2017 (find_probes_in_objfile): Call methods to get name and
2018 provider from probe.
2019 (find_probe_by_pc): Use 'result.prob' instead of
2020 'result.probe'. Call 'get_relocated_address' method from
2021 probe.
2022 (collect_probes): Adjust comment and argument list to receive
2023 'static_probe_ops' instead of 'probe_ops'. Adjust code to
2024 reflect change. Call necessary methods from probe.
2025 (compare_probes): Call methods to get name and provider from
2026 probes.
2027 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
2028 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
2029 adjust code accordingly.
2030 (print_ui_out_not_applicables): Likewise.
2031 (info_probes_for_ops): Rename to...
2032 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
2033 as argument instead of 'probe_ops'. Adjust code. Call
2034 necessary methods from probe.
2035 (info_probes_command): Use 'info_probes_for_spops'.
2036 (enable_probes_command): Pass correct argument to
2037 'collect_probes'. Call methods from probe.
2038 (disable_probes_command): Likewise.
2039 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
2040 (get_probe_argument_count): Move to
2041 'any_static_probe_ops::get_argument_count'.
2042 (can_evaluate_probe_arguments): Move to
2043 'any_static_probe_ops::can_evaluate_arguments'.
2044 (evaluate_probe_argument): Move to
2045 'any_static_probe_ops::evaluate_argument'.
2046 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
2047 'probe.probe'.
2048 (probe_linespec_to_ops): Rename to...
2049 (probe_linespec_to_static_ops): ...this. Adjust code.
2050 (probe_any_is_linespec): Rename to...
2051 (any_static_probe_ops::is_linespec): ...this.
2052 (probe_any_get_probes): Rename to...
2053 (any_static_probe_ops::get_probes): ...this.
2054 (any_static_probe_ops::type_name): New method.
2055 (any_static_probe_ops::gen_info_probes_table_header): New
2056 method.
2057 (compute_probe_arg): Use 'pc_probe.prob' instead of
2058 'pc_probe.probe'. Call methods from probe.
2059 (compile_probe_arg): Likewise.
2060 (std::vector<const probe_ops *> all_probe_ops): Delete.
2061 (std::vector<const static_probe_ops *> all_static_probe_ops):
2062 New variable.
2063 (_initialize_probe): Use 'all_static_probe_ops' instead of
2064 'all_probe_ops'.
2065 * probe.h (struct info_probe_column) <field_name>: Delete
2066 extraneous newline
2067 (info_probe_column_s): Delete type and VEC.
2068 (struct probe_ops): Delete. Replace with...
2069 (class static_probe_ops): ...this and...
2070 (clas probe): ...this.
2071 (struct bound_probe) <bound_probe>: Delete extraneous
2072 newline. Adjust constructor to receive 'probe' instead of
2073 'struct probe'.
2074 <probe>: Rename to...
2075 <prob>: ...this. Delete extraneous newline.
2076 <objfile>: Delete extraneous newline.
2077 (register_probe_ops): Delete unused prototype.
2078 (info_probes_for_ops): Rename to...
2079 (info_probes_for_spops): ...this. Adjust comment.
2080 (get_probe_address): Move to 'probe::get_address'.
2081 (get_probe_argument_count): Move to
2082 'probe::get_argument_count'.
2083 (can_evaluate_probe_arguments): Move to
2084 'probe::can_evaluate_arguments'.
2085 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
2086 * solib-svr4.c (struct svr4_info): Adjust comment.
2087 (struct probe_and_action) <probe>: Rename to...
2088 <prob>: ...this.
2089 (register_solib_event_probe): Receive 'probe' instead of
2090 'struct probe' as argument. Use 'prob' instead of 'probe'
2091 when applicable.
2092 (solib_event_probe_action): Call 'get_argument_count' method
2093 from probe. Adjust comment.
2094 (svr4_handle_solib_event): Adjust comment. Call
2095 'evaluate_argument' method from probe.
2096 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
2097 from probe.
2098 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
2099 'struct probe'. Call 'can_evaluate_arguments' from probe.
2100 * symfile.h: Forward declare 'class probe' instead of 'struct
2101 probe'.
2102 * symtab.h: Likewise.
2103 (struct symtab_and_line) <probe>: Rename to...
2104 <prob>: ...this.
2105 * tracepoint.c (start_tracing): Use 'prob' when applicable.
2106 Call probe methods.
2107 (stop_tracing): Likewise.
2108
8f6cb6c3
JB
21092017-11-22 Joel Brobecker <brobecker@adacore.com>
2110
2111 * ravenscar-thread.c (ravenscar_inferior_created): Remove
2112 trailing newline at end of string in call to warning.
2113
479f8de1
SM
21142017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 * osdata.h: Include vector isntead of vec.h.
2117 (osdata_column_s): Remove typedef.
2118 (struct osdata_column): Add constructor.
2119 <name, value>: Change type to std::string.
2120 (DEF_VEC_O (osdata_column_s)): Remove.
2121 (osdata_item_s): Remove typedef.
2122 (struct osdata_item) <columns>: Change type to std::vector.
2123 (DEF_VEC_O (osdata_item_s)): Remove.
2124 (struct osdata): Add constructor.
2125 <type>: Change type to std::string.
2126 <items>: Change type to std::vector.
2127 (osdata_p): Remove typedef.
2128 (DEF_VEC_P (osdata_p)): Remove.
2129 (osdata_parse): Return a unique_ptr.
2130 (osdata_free): Remove.
2131 (make_cleanup_osdata_free): Remove.
2132 (get_osdata): Return a unique_ptr.
2133 (get_osdata_column): Return pointer to std::string, take a
2134 reference to osdata_item as parameter.
2135 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
2136 unique_ptr.
2137 <property_name>: Change type to std::string.
2138 (osdata_start_osdata): Allocate osdata with new and adjust.
2139 (osdata_start_item): Adjust.
2140 (osdata_start_column): Adjust.
2141 (osdata_end_column): Adjust.
2142 (clear_parsing_data): Remove.
2143 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
2144 (osdata_item_clear): Remove.
2145 (get_osdata): return a unique_ptr and adjust.
2146 (get_osdata_column): Return a pointer to std::string and adjust.
2147 (info_osdata): Adjust.
2148 * mi/mi-main.c: Include <map>.
2149 (free_vector_of_osdata_items): Remove.
2150 (list_available_thread_groups): Adjust, use std::map instead of
2151 splay tree.
2152
41bd68f5
SM
21532017-11-22 Simon Marchi <simon.marchi@ericsson.com>
2154
2155 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
2156 case in switch.
2157
7e2fd2f4
SM
21582017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2159
2160 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
2161
0604393c
SM
21622017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2163
2164 * varobj.h (struct varobj_update_result): Add constructor, add
2165 move constructor, disable copy and assign, initialize fields.
2166 <newobj>: Change type to std::vector.
2167 (varobj_update): Return std::vector.
2168 * varobj.c (install_dynamic_child): Change VEC parameters to
2169 std::vector and adjust.
2170 (update_dynamic_varobj_children): Likewise.
2171 (varobj_update): Return std::vector and adjust.
2172 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
2173
ddf0ea08
SM
21742017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2175
2176 * varobj.h (struct varobj) <parent>: Remove const.
2177 <children>: Change type to std::vector.
2178 (varobj_list_children): Return std::vector const reference.
2179 (varobj_restrict_range): Change parameter type to std::vector
2180 const reference.
2181 * varobj.c (varobj_has_more): Adjust.
2182 (varobj_restrict_range): Change parameter type to std::vector
2183 const reference and adjust.
2184 (install_dynamic_child): Adjust.
2185 (update_dynamic_varobj_children): Adjust.
2186 (varobj_list_children): Return std::vector const reference and
2187 adjust.
2188 (varobj_add_child): Adjust.
2189 (update_type_if_necessary): Adjust.
2190 (varobj_update): Adjust.
2191 (delete_variable_1): Adjust.
2192 * ada-varobj.c (ada_value_has_mutated): Adjust.
2193 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
2194
9e5b9d2b
SM
21952017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * varobj.h (struct varobj): Add constructor and destructor,
2198 initialize fields.
2199 * varobj.c (struct varobj_root): Initialize fields.
2200 (struct varobj_dynamic): Initialize fields.
2201 (varobj_create): Use unique_ptr instead of cleanup. Create
2202 varobj with new instead of new_root_variable.
2203 (delete_variable_1): Free variable with delete instead of
2204 free_variable.
2205 (create_child_with_value): Create variable with new instead of
2206 new_variable.
2207 (varobj::varobj): New.
2208 (varobj::~varobj): New (body mostly coming from free_variable).
2209 (new_variable): Remove.
2210 (free_variable): Remove.
2211 (do_free_variable_cleanup): Remove.
2212 (make_cleanup_free_variable): Remove.
2213
fc35dab1
UW
22142017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2215
2216 * core-regset.c: Remove file.
2217 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
2218
2400729e
UW
22192017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2220
2221 * NEWS: Document use of GNU MPFR.
2222 * README: Likewise.
2223
2224 * Makefile.in (LIBMPFR): Add define.
2225 (CLIBS): Add $(LIBMPFR).
2226 * configure.ac: Add --with-mpfr configure option.
2227 * configure: Regenerate.
2228 * config.in: Regenerate.
2229
2230 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2231 (class mpfr_float_ops): New type.
2232 (mpfr_float_ops::from_target): Two new overloaded functions.
2233 (mpfr_float_ops::to_target): Likewise.
2234 (mpfr_float_ops::to_string): New function.
2235 (mpfr_float_ops::from_string): Likewise.
2236 (mpfr_float_ops::to_longest): Likewise.
2237 (mpfr_float_ops::from_longest): Likewise.
2238 (mpfr_float_ops::from_ulongest): Likewise.
2239 (mpfr_float_ops::to_host_double): Likewise.
2240 (mpfr_float_ops::from_host_double): Likewise.
2241 (mpfr_float_ops::convert): Likewise.
2242 (mpfr_float_ops::binop): Likewise.
2243 (mpfr_float_ops::compare): Likewise.
2244 (get_target_float_ops): Use mpfr_float_ops if available.
2245
7a26362d
UW
22462017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2247
2248 * target-float.c: Do not include <math.h>.
2249 Include <cmath> and <limits>.
2250 (DOUBLEST): Do not define.
2251 (class target_float_ops): New type.
2252 (class host_float_ops): New templated type.
2253 (class decimal_float_ops): New type.
2254
2255 (floatformat_to_doublest): Rename to ...
2256 (host_float_ops<T>::from_target): ... this. Use template type T
2257 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2258 (host_float_ops<T>::from_target): New overload using a type argument.
2259 (floatformat_from_doublest): Rename to ...
2260 (host_float_ops<T>::to_target): ... this. Use template type T
2261 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2262 (host_float_ops<T>::to_target): New overload using a type argument.
2263 (floatformat_printf_format): New function.
2264 (struct printf_length_modifier): New templated type.
2265 (floatformat_to_string): Rename to ...
2266 (host_float_ops<T>::to_string): ... this. Use type instead of
2267 floatformat argument. Use floatformat_printf_format and
2268 printf_length_modifier. Remove special handling of invalid numbers,
2269 infinities and NaN (moved to target_float_to_string).
2270 (struct scanf_length_modifier): New templated type.
2271 (floatformat_from_string): Rename to ...
2272 (host_float_ops<T>::from_string): ... this. Use type instead of
2273 floatformat argument. Use scanf_length_modifier.
2274 (floatformat_to_longest): Rename to ...
2275 (host_float_ops<T>::to_longest): ... this. Use type instead of
2276 floatformat argument. Handle out-of-range values deterministically.
2277 (floatformat_from_longest): Rename to ...
2278 (host_float_ops<T>::from_longest): ... this. Use type instead of
2279 floatformat argument.
2280 (floatformat_from_ulongest): Rename to ...
2281 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2282 floatformat argument.
2283 (floatformat_to_host_double): Rename to ...
2284 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2285 floatformat argument.
2286 (floatformat_from_host_double): Rename to ...
2287 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2288 floatformat argument.
2289 (floatformat_convert): Rename to ...
2290 (host_float_ops<T>::convert): ... this. Use type instead of
2291 floatformat arguments. Remove handling of no-op conversions.
2292 (floatformat_binop): Rename to ...
2293 (host_float_ops<T>::binop): ... this. Use type instead of
2294 floatformat arguments.
2295 (floatformat_compare): Rename to ...
2296 (host_float_ops<T>::compare): ... this. Use type instead of
2297 floatformat arguments.
2298
2299 (match_endianness): Use type instead of length/byte_order arguments.
2300 (set_decnumber_context): Likewise.
2301 (decimal_from_number): Likewise. Update calls.
2302 (decimal_to_number): Likewise.
2303 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2304 (decimal_float_ops::to_host_double): New dummy function.
2305 (decimal_float_ops::from_host_double): Likewise.
2306 (decimal_to_string): Rename to ...
2307 (decimal_float_ops::to_string): ... this. Use type instead of
2308 length/byte_order arguments. Update calls.
2309 (decimal_from_string): Rename to ...
2310 (decimal_float_ops::from_string): ... this. Use type instead of
2311 length/byte_order arguments. Update calls.
2312 (decimal_from_longest): Rename to ...
2313 (decimal_float_ops::from_longest): ... this. Use type instead of
2314 length/byte_order arguments. Update calls.
2315 (decimal_from_ulongest): Rename to ...
2316 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2317 length/byte_order arguments. Update calls.
2318 (decimal_to_longest): Rename to ...
2319 (decimal_float_ops::to_longest): ... this. Use type instead of
2320 length/byte_order arguments. Update calls.
2321 (decimal_binop): Rename to ...
2322 (decimal_float_ops::binop): ... this. Use type instead of
2323 length/byte_order arguments. Update calls.
2324 (decimal_compare): Rename to ...
2325 (decimal_float_ops::compare): ... this. Use type instead of
2326 length/byte_order arguments. Update calls.
2327 (decimal_convert): Rename to ...
2328 (decimal_float_ops::convert): ... this. Use type instead of
2329 length/byte_order arguments. Update calls.
2330
2331 (target_float_same_category_p): New function.
2332 (target_float_same_format_p): Likewise.
2333 (target_float_format_length): Likewise.
2334 (enum target_float_ops_kind): New type.
2335 (get_target_float_ops_kind): New function.
2336 (get_target_float_ops): Three new overloaded functions.
2337
2338 (target_float_is_zero): Update call.
2339 (target_float_to_string): Add special handling of invalid numbers,
2340 infinities and NaN (moved from floatformat_to_string). Use
2341 target_float_ops callback.
2342 (target_float_from_string): Use target_float_ops callback.
2343 (target_float_to_longest): Likewise.
2344 (target_float_from_longest): Likewise.
2345 (target_float_from_ulongest): Likewise.
2346 (target_float_to_host_double): Likewise.
2347 (target_float_from_host_double): Likewise.
2348 (target_float_convert): Add special case for no-op conversions.
2349 Use target_float_ops callback.
2350 (target_float_binop): Use target_float_ops callback.
2351 (target_float_compare): Likewise.
2352
a9f26f60
YQ
23532017-11-22 Yao Qi <yao.qi@linaro.org>
2354
2355 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2356
29f9a567
YQ
23572017-11-22 Yao Qi <yao.qi@linaro.org>
2358
2359 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2360 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2361
3b1b69bf
JG
23622017-11-21 Jerome Guitton <guitton@adacore.com>
2363
2364 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2365 with event ptid from the lower layer before doing the
2366 ravenscar-specific update.
2367
54aa6c67
JB
23682017-11-21 Joel Brobecker <brobecker@adacore.com>
2369
2370 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2371 the ptid's TID is nonzero.
2372
cf3fbed4
JB
23732017-11-21 Joel Brobecker <brobecker@adacore.com>
2374
2375 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2376 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2377 Make non-static. Change return type to char *. Adjust code
2378 accordingly. Rewrite the function's documentation.
2379 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2380 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2381 we have enough debugging information in the runtime to support
2382 Ada task debugging before we enable the ravenscar-thread layer.
2383
9edcc12f
JB
23842017-11-21 Joel Brobecker <brobecker@adacore.com>
2385
2386 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2387 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2388 * ravenscar-thread.c: Add into comment.
2389 (base_magic_null_ptid): Delete.
2390 (base_ptid): Change documentation.
2391 (ravenscar_active_task): Renames ravenscar_running_thread.
2392 All callers updated throughout.
2393 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2394 (ravenscar_task_is_currently_active): Likewise.
2395 (get_base_thread_from_ravenscar_task): Ditto.
2396 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2397 (ravenscar_runtime_initialized): Likewise.
2398 (get_running_thread_id): Add new parameter "cpu". Adjust
2399 implementation to handle this new parameter.
2400 (ravenscar_fetch_registers): Small adjustment to use
2401 is_ravenscar_task and ravenscar_task_is_currently_active in
2402 order to decide whether to use the target beneath or this
2403 module's arch_ops.
2404 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2405 (ravenscar_stopped_by_sw_breakpoint): Use
2406 get_base_thread_from_ravenscar_task to get the underlying
2407 thread, rather than using base_ptid.
2408 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2409 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2410 Likewise.
2411 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2412
65d40437
JB
24132017-11-21 Joel Brobecker <brobecker@adacore.com>
2414
2415 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2416 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2417 (get_tcb_types_info): Set fieldnos.base_cpu.
2418 (read_atcb): Set task_info->base_cpu.
2419 (info_task): Print "Base CPU" info if set by runtime.
2420
e02544b2
JB
24212017-11-21 Joel Brobecker <brobecker@adacore.com>
2422
2423 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2424 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2425 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2426 New functions.
2427 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2428 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2429 to_stopped_data_address and to_core_of_thread fields of
2430 ravenscar_ops.
2431
ed0f4273
UW
24322017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2433
2434 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2435 (struct gdbarch_tdep): New member long_double_abi.
2436 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2437 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2438 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2439 format depending on long_double_abi tdep member.
2440 (ppc_floatformat_for_type): Handle __ibm128 type.
2441
0fc76421
SM
24422017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2443
2444 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2445
e6b2f5ef
PA
24462017-11-21 Pedro Alves <palves@redhat.com>
2447
2448 * dwarf2read.c (mapped_index::find_name_components_bounds)
2449 <completion mode, upper bound>: Use std::lower_bound instead of
2450 std::upper_bound.
2451 (test_mapped_index_find_name_component_bounds): Remove incorrect
2452 "t1_fund" from expected symbols.
2453
5c58de74
PA
24542017-11-21 Pedro Alves <palves@redhat.com>
2455
2456 * dwarf2read.c (mapped_index::name_components_casing): New field.
2457 (mapped_index) <build_name_components,
2458 find_name_components_bounds): Declare new methods.
2459 (mapped_index::find_name_components_bounds)
2460 (mapped_index::build_name_components): New methods, factored out
2461 from dw2_expand_symtabs_matching_symbol.
2462 (check_find_bounds_finds)
2463 (test_mapped_index_find_name_component_bounds): New.
2464 (run_test): Rename to ...
2465 (test_dw2_expand_symtabs_matching_symbol): ... this.
2466 (run_test): Reimplement.
2467
e1ef7d7a
PA
24682017-11-21 Pedro Alves <palves@redhat.com>
2469
2470 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2471 (symbol_end): Use cp_ident_is_alnum.
2472 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2473 * dwarf2read.c (make_sort_after_prefix_name): New function.
2474 (dw2_expand_symtabs_matching_symbol): Use it.
2475 (test_symbols): Add more symbols.
2476 (run_test): Add tests.
2477
cf724bc9
TT
24782017-11-17 Tom Tromey <tom@tromey.com>
2479
2480 * symtab.h (enum symbol_subclass_kind): New.
2481 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2482 Remove.
2483 <subclass>: New member.
2484 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2485 * rust-lang.c (rust_get_trait_object_pointer): Update.
2486 * dwarf2read.c (read_func_scope): Update.
2487 (read_variable): Update.
2488
68e745e3
TT
24892017-11-17 Tom Tromey <tom@tromey.com>
2490
2491 * dwarf2read.c (read_func_scope): Update.
2492 * symtab.h (struct template_symbol): Derive from symbol.
2493 <base>: Remove.
2494
71a3c369
TT
24952017-11-17 Tom Tromey <tom@tromey.com>
2496
2497 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2498 (struct rust_vtable_symbol): New.
2499 (find_symbol_at_address): Declare.
2500 * symtab.c (find_symbol_at_address): New function.
2501 * symfile.h (struct quick_symbol_functions)
2502 <find_compunit_symtab_by_address>: New member.
2503 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2504 function.
2505 (debug_sym_quick_functions): Link to
2506 debug_qf_find_compunit_symtab_by_address.
2507 * rust-lang.c (rust_get_trait_object_pointer): New function.
2508 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2509 rust_get_trait_object_pointer.
2510 * psymtab.c (psym_relocate): Clear psymbol_map.
2511 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2512 functions.
2513 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2514 * objfiles.h (struct objfile) <psymbol_map>: New member.
2515 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2516 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2517 (rust_containing_type, read_variable): New functions.
2518
7468702d
SM
25192017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2520
2521 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2522
37269bc9
SM
25232017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2524
2525 * common/filestuff.c: Include <algorithm>.
2526 (open_fds): Change type to std::vector<int>.
2527 (do_mark_open_fd): Adjust.
2528 (unmark_fd_no_cloexec): Adjust.
2529 (do_close): Adjust.
2530
5c632425
SM
25312017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 * breakpoint.c (output_thread_groups): Take an std::vector.
2534 (print_one_breakpoint_location): Adjust.
2535
ced9779b
JB
25362017-11-17 Joel Brobecker <brobecker@adacore.com>
2537
2538 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2539 (ada_evaluate_subexp_for_cast): New function.
2540 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2541 ada_evaluate_subexp_for_cast.
2542 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2543 eval_skip_value.
2544 * eval.c (evaluate_var_value): Make non-static.
2545 (evaluate_var_msym_value, eval_skip_value): Likewise.
2546 * value.h (evaluate_var_value, evaluate_var_msym_value)
2547 (eval_skip_value): Declare.
2548
b7e22850
JB
25492017-11-16 Joel Brobecker <brobecker@adacore.com>
2550
2551 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2552 Update all callers.
2553
9ccabccd
PA
25542017-11-16 Pedro Alves <palves@redhat.com>
2555
2556 * python/py-unwind.c (pyuw_sniffer): Translate
2557 PyExc_KeyboardInterrupt to a GDB Quit exception.
2558
d930703d
PA
25592017-11-16 Pedro Alves <palves@redhat.com>
2560
2561 * infrun.c (resume_cleanups): Delete.
2562 (resume): No longer install a resume_cleanups cleanup nor call
2563 QUIT.
2564 (proceed): Pass the terminal to the inferior.
2565 (keep_going_pass_signal): No longer install a resume_cleanups
2566 cleanup.
2567
38dc2859
PA
25682017-11-16 Pedro Alves <palves@redhat.com>
2569
2570 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2571 if the prompt is blocked.
2572
688fca4f
PA
25732017-11-16 Pedro Alves <palves@redhat.com>
2574
2575 * breakpoint.c (insert_bp_location): Replace bp_err and
2576 bp_err_message locals by a gdb_exception local.
2577
e2c33ac7
PA
25782017-11-16 Pedro Alves <palves@redhat.com>
2579
2580 * inflow.c (scoped_ignore_sigttou): New class.
2581 (child_terminal_ours_1, new_tty): Use it.
2582
d7236961
UW
25832017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2584
2585 * target-float.c (decimal_from_number): Add byte_order argument and
2586 call match_endianness. Error if unknown floating-point type.
2587 (decimal_to_number): Add byte_order argument and call match_endianness.
2588 (decimal_from_longest): Update call. Do not call match_endianness.
2589 (decimal_from_ulongest): Likewise.
2590 (decimal_binop): Likewise.
2591 (decimal_is_zero): Likewise.
2592 (decimal_compare): Likewise.
2593 (decimal_convert): Likewise.
2594
d8ae99a7
PM
25952017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2596
2597 * python/python.c (gdbpy_rbreak): New function.
2598 * NEWS: Document Python rbreak feature.
2599
c632b645
YQ
26002017-11-16 Yao Qi <yao.qi@linaro.org>
2601
2602 * features/tic6x-c62x.xml: Remove.
2603 * features/tic6x-c64x.xml: Remove.
2604 * features/tic6x-c64xp.xml: Remove.
2605
a014b87a
JB
26062017-11-15 John Baldwin <jhb@FreeBSD.org>
2607
2608 * symtab.h: Include <array>.
2609
94765011
JB
26102017-11-15 John Baldwin <jhb@FreeBSD.org>
2611
2612 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2613 (bsd_kvm_proc_cmd): Likewise.
2614
625ad440
SM
26152017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2616
2617 * tui/tui-win.c (window_name_completer): Replace VEC with
2618 std::vector.
2619
c0c11fa9
AC
26202017-11-15 Andrew Cagney <cagney@gnu.org>
2621
2622 * MAINTAINERS: Remove no-longer applicable entries.
2623
34a7ebaf
AC
26242017-11-15 Andrew Cagney <cagney@gnu.org>
2625
2626 * MAINTAINERS: Move self to Past Maintainers.
2627
5334ef39
YQ
26282017-11-15 Yao Qi <yao.qi@linaro.org>
2629
2630 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2631 * features/nios2-linux.c: Remove.
2632 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2633 initialize_tdesc_nios2_linux.
2634
a714b0d6
YQ
26352017-11-15 Yao Qi <yao.qi@linaro.org>
2636
2637 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2638 M68HC11_LAST_HARD_REG + 1.
2639
92ffd475
PC
26402017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2641
2642 PR gdb/22388
2643 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2644 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2645 Return TARGET_XFER_EOF if size of returned data is 0.
2646
07431908
SM
26472017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2648
2649 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2650 memory-map-selftests.c.
2651 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2652 * memory-map.c (memory_map_start_memory): Fix computation of hi
2653 address.
2654 * unittests/memory-map-selftests.c: New file.
2655
31432a67
JB
26562017-11-09 Joel Brobecker <brobecker@adacore.com>
2657
2658 * ada-lang.c: Fix some typos in the general command documenting
2659 how Ada expressions are being evaluated and how their result
2660 is printed.
2661
e793c052
TT
26622017-11-09 Tom Tromey <tom@tromey.com>
2663
2664 * psymtab.c (psymbol_hash): Do not hash string contents.
2665 (psymbol_compare): Add comment.
2666
7e8835c5
TT
26672017-11-09 Tom Tromey <tom@tromey.com>
2668
2669 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2670
286acbb5
JB
26712017-11-08 Joel Brobecker <brobecker@adacore.com>
2672
2673 * ada-exp.y (write_var_from_sym): Remove parameter
2674 "orig_left_context". Update all callers.
2675
b44ec619
SM
26762017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2677
2678 * tracepoint.h (class collection_list) <stringify>: Return
2679 std::vector<std::string>.
2680 (encode_actions_rsp): Change parameters to
2681 std::vector<std::string> *.
2682 * tracepoint.c (collection_list::stringify): Return
2683 std::vector<std::string> and adjust accordingly.
2684 (encode_actions_rsp): Changee parameters to
2685 std::vector<std::string> and adjust accordingly.
2686 * remote.c (free_actions_list),
2687 free_actions_list_cleanup_wrapper): Remove.
2688 (remote_download_tracepoint): Adjust to std::vector.
2689
2f4732b0
TT
26902017-11-08 Tom Tromey <tom@tromey.com>
2691
2692 * dwarf2read.c (symbolp): Remove typedef.
2693 (read_func_scope): Use std::vector.
2694 (process_structure_scope): Use std::vector.
2695
f9d67a22
PA
26962017-11-08 Pedro Alves <palves@redhat.com>
2697
2698 * ada-lang.c (ada_make_symbol_completion_list): Use
2699 completion_skip_symbol.
2700 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2701 (symbol_is_function_or_method(symbol*)): New.
2702 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2703 completion_skip_symbol.
2704 (default_collect_symbol_completion_matches_break_on): Use
2705 completion_skip_symbol. Pass down mode.
2706 (collect_file_symbol_completion_matches): Pass down mode.
2707 * symtab.h (symbol_is_function_or_method): New declarations.
2708 (completion_skip_symbol): New template function.
2709
56d87ef7
PA
27102017-11-08 Pedro Alves <palves@redhat.com>
2711
2712 * linespec.c (iterate_over_all_matching_symtabs): Add
2713 search_domain parameter. Pass it down to expand_symtabs_matching.
2714 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2715 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2716 search_domain.
2717 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2718 Pass it down.
2719 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2720 symbols.
2721 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2722 it down.
2723
1b026119
PA
27242017-11-08 Pedro Alves <palves@redhat.com>
2725
2726 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2727 text_len locals and don't pass them down.
2728 * symtab.c (completion_list_add_name): Remove
2729 sym_text/sym_text_len parameters and adjust.
2730 (completion_list_add_symbol, completion_list_add_msymbol)
2731 (completion_list_objc_symbol, completion_list_add_fields)
2732 (add_symtab_completions): Likewise.
2733 (default_collect_symbol_completion_matches_break_on)
2734 (collect_file_symbol_completion_matches): Remove sym_text_len
2735 local and don't pass it down.
2736 * symtab.h (completion_list_add_name): Remove
2737 sym_text/sym_text_len parameters.
2738
c62446b1
PA
27392017-11-08 Pedro Alves <palves@redhat.com>
2740
2741 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2742 unittests/lookup_name_info-selftests.c.
2743 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2744 * cp-support.c: Include "selftest.h".
2745 (cp_remove_params_1): Rename from cp_remove_params. Add
2746 'require_param' parameter, and handle it.
2747 (cp_remove_params): Reimplement.
2748 (cp_remove_params_if_any): New.
2749 (selftests::quote): New.
2750 (selftests::check_remove_params): New.
2751 (selftests::test_cp_remove_params): New.
2752 (_initialize_cp_support): Install
2753 selftests::test_cp_remove_params.
2754 * cp-support.h (cp_remove_params_if_any): Declare.
2755 * dwarf2read.c :Include "selftest.h".
2756 (dw2_expand_symtabs_matching_symbol): Use
2757 lookup_name_info::make_ignore_params.
2758 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2759 (selftests::dw2_expand_symtabs_matching::string_or_null)
2760 (selftests::dw2_expand_symtabs_matching::check_match)
2761 (selftests::dw2_expand_symtabs_matching::test_symbols)
2762 (selftests::dw2_expand_symtabs_matching::run_test): New.
2763 (_initialize_dwarf2_read): Register
2764 selftests::dw2_expand_symtabs_matching::run_test.
2765 * psymtab.c (psym_expand_symtabs_matching): Use
2766 lookup_name_info::make_ignore_params.
2767 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2768 If the lookup name wants to ignore parameters, strip them.
2769 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2770 code handling '('.
2771 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2772 (default_collect_symbol_completion_matches_break_on): Don't try to
2773 strip parameters.
2774 * symtab.h (lookup_name_info::lookup_name_info): Add
2775 'ignore_parameters' parameter.
2776 (lookup_name_info::ignore_parameters)
2777 (lookup_name_info::make_ignore_params): New methods.
2778 (lookup_name_info::m_ignore_parameters): New field.
2779 * unittests/lookup_name_info-selftests.c: New file.
2780
61920122
PA
27812017-11-08 Pedro Alves <palves@redhat.com>
2782
2783 * dwarf2read.c (dw2_expand_marked_cus)
2784 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2785 (dw2_expand_symtabs_matching): Move further below.
2786 (dw2_expand_marked_cus): Reindent.
2787
3f563c84
PA
27882017-11-08 Pedro Alves <palves@redhat.com>
2789
2790 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2791 (struct name_component): New.
2792 (mapped_index::name_components): New field.
2793 (mapped_index::symbol_name_at): New method.
2794 (dwarf2_read_index): Call mapped_index ctor.
2795 (dw2_map_matching_symbols): Add comment about name_components
2796 table.
2797 (dw2_expand_symtabs_matching): Factor part to...
2798 (dw2_expand_symtabs_matching_symbol): ... this new function.
2799 Build name components table, and lookup symbols in it before
2800 calling the name matcher.
2801 (dw2_expand_marked_cus): New, factored out from
2802 dw2_expand_symtabs_matching.
2803 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2804
b5ec771e
PA
28052017-11-08 Pedro Alves <palves@redhat.com>
2806
2807 * ada-lang.c (ada_encode): Rename to ..
2808 (ada_encode_1): ... this. Add throw_errors parameter and handle
2809 it.
2810 (ada_encode): Reimplement.
2811 (match_name): Delete, folded into full_name.
2812 (resolve_subexp): No longer pass the encoded name to
2813 ada_lookup_symbol_list.
2814 (should_use_wild_match): Delete.
2815 (name_match_type_from_name): New.
2816 (ada_lookup_simple_minsym): Use lookup_name_info and the
2817 language's symbol_name_matcher_ftype.
2818 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2819 (ada_add_block_renamings): Adjust to use lookup_name_info.
2820 (ada_lookup_name): New.
2821 (add_nonlocal_symbols, ada_add_all_symbols)
2822 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2823 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2824 (ada_name_for_lookup): Delete.
2825 (ada_lookup_encoded_symbol): Construct a verbatim name.
2826 (wild_match): Reverse sense of return type. Use bool.
2827 (full_match): Reverse sense of return type. Inline bits of old
2828 match_name here.
2829 (ada_add_block_symbols): Adjust to use lookup_name_info.
2830 (symbol_completion_match): Delete, folded into...
2831 (ada_lookup_name_info::matches): ... .this new method.
2832 (symbol_completion_add): Delete.
2833 (ada_collect_symbol_completion_matches): Add name_match_type
2834 parameter. Adjust to use lookup_name_info and
2835 completion_list_add_name.
2836 (get_var_value, ada_add_global_exceptions): Adjust to use
2837 lookup_name_info.
2838 (ada_get_symbol_name_cmp): Delete.
2839 (do_wild_match, do_full_match): New functions.
2840 (ada_lookup_name_info::ada_lookup_name_info): New method.
2841 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2842 functions.
2843 (ada_language_defn): Install ada_get_symbol_name_matcher.
2844 * ada-lex.l (processId): If name starts with '<', copy it
2845 verbatim.
2846 * block.c (block_iter_match_step, block_iter_match_first)
2847 (block_iter_match_next, block_lookup_symbol)
2848 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2849 lookup_name_info.
2850 * block.h (block_iter_match_first, block_iter_match_next)
2851 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2852 * c-lang.c (c_language_defn, cplus_language_defn)
2853 (asm_language_defn, minimal_language_defn): Adjust comments to
2854 refer to la_get_symbol_name_matcher.
2855 * completer.c (complete_files_symbols)
2856 (collect_explicit_location_matches, symbol_completer): Pass a
2857 symbol_name_match_type down.
2858 * completer.h (class completion_match, completion_match_result):
2859 New classes.
2860 (completion_tracker::reset_completion_match_result): New method.
2861 (completion_tracker::m_completion_match_result): New field.
2862 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2863 lookup_name_info.
2864 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2865 functions.
2866 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2867 * d-lang.c: Adjust comments to refer to
2868 la_get_symbol_name_matcher.
2869 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2870 Adjust to use lookup_name_info.
2871 (dict_iter_match_first, dict_iter_match_next)
2872 (iter_match_first_hashed, iter_match_next_hashed)
2873 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2874 with a lookup_name_info.
2875 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2876 Likewise.
2877 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2878 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2879 (gdb_index_symbol_name_matcher): New class.
2880 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2881 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2882 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2883 with a symbol_name_match_type.
2884 (f_language_defn): Adjust comments to refer to
2885 la_get_symbol_name_matcher.
2886 * go-lang.c (go_language_defn): Adjust comments to refer to
2887 la_get_symbol_name_matcher.
2888 * language.c (default_symbol_name_matcher)
2889 (language_get_symbol_name_matcher): New functions.
2890 (unknown_language_defn, auto_language_defn): Adjust comments to
2891 refer to la_get_symbol_name_matcher.
2892 * language.h (symbol_name_cmp_ftype): Delete.
2893 (language_defn) <la_collect_symbol_completion_matches>: Add match
2894 type parameter.
2895 <la_get_symbol_name_cmp>: Delete field.
2896 <la_get_symbol_name_matcher>: New field.
2897 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2898 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2899 Declare.
2900 * linespec.c (iterate_over_all_matching_symtabs)
2901 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2902 (find_methods): Add language parameter, and use lookup_name_info
2903 and the language's symbol_name_matcher_ftype.
2904 (linespec_complete_function): Adjust.
2905 (lookup_prefix_sym): Use lookup_name_info.
2906 (add_all_symbol_names_from_pspace): Adjust.
2907 (find_superclass_methods): Add language parameter and pass it
2908 down.
2909 (find_method): Pass symbol language down.
2910 (find_linespec_symbols): Don't demangle or Ada encode here.
2911 (search_minsyms_for_name): Add lookup_name_info parameter.
2912 (add_matching_symbols_to_info): Add name_match_type parameter.
2913 Use lookup_name_info.
2914 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2915 la_get_symbol_name_matcher.
2916 * minsyms.c: Include <algorithm>.
2917 (add_minsym_to_demangled_hash_table): Remove table parameter and
2918 add objfile parameter. Use search_name_hash, and add language to
2919 demangled languages vector.
2920 (struct found_minimal_symbols): New struct.
2921 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2922 New functions.
2923 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2924 input names here. Use lookup_name_info instead. Lookup up
2925 demangled names once for each language in the demangled names
2926 vector.
2927 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2928 demangled names once for each language in the demangled names
2929 vector.
2930 (build_minimal_symbol_hash_tables): Adjust.
2931 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2932 lookup_name_info.
2933 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2934 la_get_symbol_name_matcher.
2935 * objfiles.h: Include <vector>.
2936 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2937 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2938 la_get_symbol_name_matcher.
2939 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2940 la_get_symbol_name_matcher.
2941 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2942 (match_partial_symbol): Use symbol_name_match_type,
2943 lookup_name_info and psymbol_name_matches.
2944 (lookup_partial_symbol): Use lookup_name_info.
2945 (map_block): Use symbol_name_match_type and lookup_name_info.
2946 (psym_map_matching_symbols): Use symbol_name_match_type.
2947 (psymbol_name_matches): New.
2948 (recursively_search_psymtabs): Use lookup_name_info and
2949 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2950 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2951 'kind' parameter to 'domain'.
2952 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2953 la_get_symbol_name_matcher.
2954 * symfile-debug.c (debug_qf_map_matching_symbols)
2955 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2956 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2957 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2958 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2959 Adjust to use symbol_name_match_type.
2960 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2961 (expand_symtabs_matching): Adjust to use lookup_name_info.
2962 * symmisc.c (maintenance_expand_symtabs): Use
2963 lookup_name_info::match_any ().
2964 * symtab.c (symbol_matches_search_name): New.
2965 (eq_symbol_entry): Adjust to use lookup_name_info and the
2966 language's matcher.
2967 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2968 (lookup_name_info::match_any): New.
2969 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2970 (compare_symbol_name): Add language, lookup_name_info and
2971 completion_match_result parameters, and use them.
2972 (completion_list_add_name): Make extern. Add language and
2973 lookup_name_info parameters. Use them.
2974 (completion_list_add_symbol, completion_list_add_msymbol)
2975 (completion_list_objc_symbol): Add lookup_name_info parameters and
2976 adjust. Pass down language.
2977 (completion_list_add_fields): Add lookup_name_info parameters and
2978 adjust. Pass down language.
2979 (add_symtab_completions): Add lookup_name_info parameters and
2980 adjust.
2981 (default_collect_symbol_completion_matches_break_on): Add
2982 name_match_type parameter, and use it. Use lookup_name_info.
2983 (default_collect_symbol_completion_matches)
2984 (collect_symbol_completion_matches): Add name_match_type
2985 parameter, and pass it down.
2986 (collect_symbol_completion_matches_type): Adjust.
2987 (collect_file_symbol_completion_matches): Add name_match_type
2988 parameter, and use lookup_name_info.
2989 * symtab.h: Include <string> and "common/gdb_optional.h".
2990 (enum class symbol_name_match_type): New.
2991 (class ada_lookup_name_info): New.
2992 (struct demangle_for_lookup_info): New.
2993 (class lookup_name_info): New.
2994 (symbol_name_matcher_ftype): New.
2995 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2996 (symbol_matches_search_name): Declare.
2997 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2998 (default_collect_symbol_completion_matches)
2999 (collect_symbol_completion_matches)
3000 (collect_file_symbol_completion_matches): Add name_match_type
3001 parameter.
3002 (iterate_over_symbols): Use lookup_name_info.
3003 (completion_list_add_name): Declare.
3004 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
3005 (strncmp_iw_with_mode): Now extern.
3006 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
3007 (strncmp_iw_with_mode): Declare.
3008
5ffa0793
PA
30092017-11-08 Keith Seitz <keiths@redhat.com>
3010 Pedro Alves <palves@redhat.com>
3011
3012 * ada-lang.c (ada_language_defn): Install
3013 default_search_name_hash.
3014 * buildsym.c (struct buildsym_compunit): <language>: New field.
3015 (finish_block_internal): Pass language when creating dictionaries.
3016 (start_buildsym_compunit, start_symtab): New language parameters.
3017 Use them.
3018 (restart_symtab): Pass down compilation unit's language.
3019 * buildsym.h (enum language): Forward declare.
3020 (start_symtab): New 'language' parameter.
3021 * c-lang.c (c_language_defn, cplus_language_defn)
3022 (asm_language_defn, minimal_language_defn): Install
3023 default_search_name_hash.
3024 * coffread.c (coff_start_symtab): Adjust.
3025 * d-lang.c (d_language_defn): Install default_search_name_hash.
3026 * dbxread.c (struct symloc): Add 'pst_language' field.
3027 (PST_LANGUAGE): Define.
3028 (start_psymtab, read_ofile_symtab): Use it.
3029 (process_one_symbol): New 'language' parameter. Pass it down.
3030 * dictionary.c (struct dictionary) <language>: New field.
3031 (DICT_LANGUAGE): Define.
3032 (dict_create_hashed, dict_create_hashed_expandable)
3033 (dict_create_linear, dict_create_linear_expandable): New parameter
3034 'language'. Set the dictionary's language.
3035 (iter_match_first_hashed): Adjust to rename.
3036 (insert_symbol_hashed): Assert we don't see mismatching
3037 languages. Adjust to rename.
3038 (dict_hash): Rename to ...
3039 (default_search_name_hash): ... this and make extern.
3040 * dictionary.h (struct language_defn): Forward declare.
3041 (dict_create_hashed): New parameter 'language'.
3042 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
3043 * f-lang.c (f_language_defn): Install default_search_name_hash.
3044 * go-lang.c (go_language_defn): Install default_search_name_hash.
3045 * jit.c (finalize_symtab): Pass compunit's language to dictionary
3046 creation.
3047 * language.c (unknown_language_defn, auto_language_defn):
3048 * language.h (language_defn::la_search_name_hash): New field.
3049 (default_search_name_hash): Declare.
3050 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
3051 * mdebugread.c (new_block): New parameter 'language'.
3052 * mdebugread.c (parse_symbol): Pass symbol language to block
3053 allocation.
3054 (psymtab_to_symtab_1): Pass down language.
3055 (new_symtab): Pass compunit's language to block allocation.
3056 * objc-lang.c (objc_language_defn): Install
3057 default_search_name_hash.
3058 * opencl-lang.c (opencl_language_defn):
3059 * p-lang.c (pascal_language_defn): Install
3060 default_search_name_hash.
3061 * rust-lang.c (rust_language_defn): Install
3062 default_search_name_hash.
3063 * stabsread.h (enum language): Forward declare.
3064 (process_one_symbol): Add 'language' parameter.
3065 * symtab.c (search_name_hash): New function.
3066 * symtab.h (search_name_hash): Declare.
3067 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
3068
2a1dde5d
PA
30692017-11-08 Pedro Alves <palves@redhat.com>
3070
3071 * cp-name-parser.y (main): Don't initialize extra_chars.
3072
95a6b0a1
TT
30732017-11-07 Tom Tromey <tom@tromey.com>
3074
3075 * event-top.h (command_handler): Constify.
3076 * record-full.c (cmd_record_full_start): Update.
3077 * thread.c (thread_apply_all_command): Update.
3078 * printcmd.c (eval_command): Update.
3079 * mi/mi-main.c (mi_execute_cli_command): Update.
3080 (mi_execute_async_cli_command): Update.
3081 * tui/tui-stack.c (tui_update_command): Update.
3082 * cli/cli-interp.c (safe_execute_command): Constify.
3083 * record.c (record_start): Update.
3084 (record_start, record_stop, cmd_record_start): Update.
3085 * record-btrace.c (cmd_record_btrace_bts_start): Update.
3086 (cmd_record_btrace_pt_start): Update.
3087 (cmd_record_btrace_start): Update.
3088 (cmd_record_btrace_start): Update.
3089 * reverse.c (exec_reverse_once): Update.
3090 * python/python.c (execute_gdb_command): Don't copy the command.
3091 * event-top.c (command_line_handler): Update.
3092 (command_handler): Constify.
3093 * defs.h (deprecated_call_command_hook): Constify.
3094 * cli/cli-script.h (execute_user_command): Constify.
3095 * cli/cli-script.c (execute_user_command): Constify.
3096 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
3097 (enum command_control_type): Update.
3098 * main.c (catch_command_errors): Remove non-const overload.
3099 (catch_command_errors_ftype): Remove.
3100 * python/py-cmd.c (cmdpy_function): Constify.
3101 * guile/scm-cmd.c (cmdscm_function): Constify.
3102 * cli/cli-dump.c (call_dump_func): Constify.
3103 * cli/cli-decode.c (do_const_cfunc): Constify.
3104 (do_sfunc): Constify.
3105 (cmd_func): Constify.
3106 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
3107 * top.h (execute_command): Constify.
3108 * top.c (execute_command): Constify.
3109 (execute_command_to_string): Constify.
3110 (deprecated_call_command_hook): Constify.
3111 * command.h (cmd_func): Constify.
3112 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
3113
eb4c3f4a
TT
31142017-11-07 Tom Tromey <tom@tromey.com>
3115
3116 * ada-lang.c (catch_ada_exception_command): Constify.
3117 (catch_assert_command): Constify.
3118 * break-catch-throw.c (catch_catch_command, catch_throw_command)
3119 (catch_rethrow_command): Constify.
3120 (catch_exception_command_1): Constify.
3121 * breakpoint.h (add_catch_command): Constify.
3122 * break-catch-syscall.c (catch_syscall_command_1): Constify.
3123 (catch_syscall_split_args): Constify.
3124 * break-catch-sig.c (catch_signal_command): Constify.
3125 (catch_signal_split_args): Constify.
3126 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
3127 cmd_const_sfunc_ftype.
3128 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
3129 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3130 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3131 (add_setshow_string_cmd, struct cmd_list_element)
3132 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3133 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3134 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
3135 Constify.
3136 (set_cmd_sfunc): Constify.
3137 (empty_sfunc): Constify.
3138 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3139 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3140 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
3141 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3142 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3143 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3144 Constify.
3145 (set_cmd_sfunc): Constify.
3146 (cmd_sfunc_ftype): Remove.
3147 * compile/compile.c (set_compile_args): Constify.
3148 * infrun.c (set_disable_randomization): Constify.
3149 * infcmd.c (set_args_command, set_cwd_command): Constify.
3150 * breakpoint.c (set_condition_evaluation_mode): Constify.
3151 (add_catch_command): Constify.
3152 (catch_fork_command_1, catch_exec_command_1)
3153 (catch_load_command_1, catch_unload_command_1): Constify.
3154 (catch_load_or_unload): Constify.
3155 * guile/scm-param.c (pascm_set_func): Constify.
3156 (add_setshow_generic): Constify.
3157 * python/py-param.c (get_set_value): Constify.
3158 * top.h (set_verbose): Constify.
3159 * tui/tui-win.c (tui_set_var_cmd): Constify.
3160 * mi/mi-main.c (set_mi_async_command): Constify.
3161 * cli/cli-logging.c (set_logging_overwrite)
3162 (set_logging_redirect): Constify.
3163 * value.c (set_max_value_size): Constify.
3164 * valprint.c (set_input_radix, set_output_radix): Constify.
3165 * utils.c (set_width_command, set_height_command): Constify.
3166 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
3167 * tracepoint.c (set_disconnected_tracing)
3168 (set_circular_trace_buffer, set_trace_buffer_size)
3169 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
3170 * top.c (set_history_size_command, set_verbose, set_editing)
3171 (set_gdb_datadir, set_history_filename): Constify.
3172 * target.c (set_targetdebug, maint_set_target_async_command)
3173 (maint_set_target_non_stop_command, set_target_permissions)
3174 (set_write_memory_permission): Constify.
3175 (open_target): Constify.
3176 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
3177 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
3178 * symtab.c (set_symbol_cache_size_handler): Constify.
3179 * symfile.c (set_ext_lang_command): Constify.
3180 * symfile-debug.c (set_debug_symfile): Constify.
3181 * source.c (set_directories_command): Constify.
3182 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
3183 * serial.c (set_parity): Constify.
3184 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
3185 * remote.c (set_remote_exec_file, set_remotebreak)
3186 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
3187 * record.c (set_record_insn_history_size)
3188 (set_record_call_history_size): Constify.
3189 * record-full.c (set_record_full_insn_max_num): Constify.
3190 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
3191 * osabi.c (set_osabi): Constify.
3192 * mips-tdep.c (set_mips64_transfers_32bit_regs)
3193 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
3194 * maint.c (maintenance_set_profile_cmd): Constify.
3195 * linux-thread-db.c (set_libthread_db_search_path): Constify.
3196 * language.c (set_language_command, set_range_command)
3197 (set_case_command): Constify.
3198 * infrun.c (set_non_stop, set_observer_mode)
3199 (set_stop_on_solib_events, set_schedlock_func)
3200 (set_exec_direction_func): Constify.
3201 * infcmd.c (set_inferior_tty_command): Constify.
3202 * disasm.c (set_disassembler_options_sfunc): Constify.
3203 * demangle.c (set_demangling_command): Constify.
3204 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
3205 * cris-tdep.c (set_cris_version, set_cris_mode)
3206 (set_cris_dwarf2_cfi): Constify.
3207 * corefile.c (set_gnutarget_command): Constify.
3208 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
3209 (set_target_wide_charset_sfunc): Constify.
3210 * breakpoint.c (update_dprintf_commands): Constify.
3211 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
3212 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
3213 (set_disassembly_style_sfunc): Constify.
3214 * arch-utils.c (set_endian, set_architecture): Constify.
3215 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
3216 * agent.c (set_can_use_agent): Constify.
3217
5fed81ff
TT
32182017-11-07 Tom Tromey <tom@tromey.com>
3219
3220 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
3221 (go32_pde, go32_pte, go32_pte_for_address): Constify.
3222 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
3223 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
3224 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
3225 (parse_int_arg, show_thread_default_detach_sc_cmd)
3226 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
3227 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
3228 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
3229 (show_task_pause_cmd, set_task_detach_sc_cmd)
3230 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3231 (set_noninvasive_cmd, set_thread_pause_cmd)
3232 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3233 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3234 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3235 * windows-nat.c (display_selectors): Constify.
3236 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3237 non-const "cfunc".
3238 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3239 (cmd_cfunc_eq): Likewise.
3240 (struct cmd_list_element): Likewise.
3241 (do_cfunc): Remove.
3242 (cli_user_command_p): Update.
3243 * command.h (add_cmd): Remove non-const overload.
3244 (cmd_cfunc_ftype): Remove typedef.
3245 (cmd_cfunc_eq): Remove non-const overload.
3246 * value.c (show_values): Constify.
3247 * thread.c (thread_apply_all_command): Constify.
3248 * symfile.c (load_command): Constify.
3249 * source.c (directory_command): Constify.
3250 * maint.c (maintenance_internal_error)
3251 (maintenance_demangler_warning, maintenance_space_display)
3252 (maintenance_print_architecture, maintenance_translate_address)
3253 (maintenance_info_selftests, maintenance_internal_warning):
3254 Constify.
3255 * breakpoint.c (disable_trace_command, enable_trace_command):
3256 Constify.
3257 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3258 Constify.
3259 (add_auto_load_safe_path): Constify.
3260 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3261 * top.h (show_commands): Constify.
3262 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3263 * sparc64-tdep.c (adi_examine_command): Constify.
3264 (adi_assign_command): Constify.
3265
1d12d88f
TT
32662017-11-07 Tom Tromey <tom@tromey.com>
3267
3268 * frame.h (info_locals_command, info_args_command): Constify.
3269 * auto-load.h (auto_load_info_scripts): Constify.
3270 * inferior.h (registers_info): Constify.
3271 * copying.c: Rebuild.
3272 * copying.awk: Constify generated commands.
3273 * auto-load.c (auto_load_info_scripts)
3274 (info_auto_load_gdb_scripts): Constify.
3275 * cli/cli-decode.c (struct cmd_list_element): Take a
3276 cmd_const_cfunc_ftype.
3277 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3278 * tui/tui-win.c (tui_all_windows_info): Constify.
3279 * python/py-auto-load.c (info_auto_load_python_scripts):
3280 Constify.
3281 * cli/cli-cmds.c (show_command): Remove non-const overload.
3282 * tracepoint.c (info_tvariables_command, info_scope_command):
3283 Constify.
3284 (info_static_tracepoint_markers_command): Constify.
3285 * thread.c (info_threads_command): Constify.
3286 (print_thread_info_1): Constify.
3287 * target.c (info_target_command): Constify.
3288 * symtab.c (info_sources_command, info_functions_command)
3289 (info_types_command): Constify.
3290 (info_variables_command): Remove non-const overload.
3291 * symfile.c (info_ext_lang_command): Constify.
3292 * stack.c (info_frame_command, info_locals_command)
3293 (info_args_command): Constify.
3294 (backtrace_command): Remove non-const overload.
3295 * source.c (info_source_command, info_line_command): Constify.
3296 * solib.c (info_sharedlibrary_command): Constify.
3297 * skip.c (info_skip_command): Constify.
3298 * ser-go32.c (info_serial_command): Constify.
3299 * reverse.c (info_bookmarks_command): Constify.
3300 * printcmd.c (info_symbol_command, info_address_command)
3301 (info_display_command): Constify.
3302 * osdata.c (info_osdata_command): Constify.
3303 * objc-lang.c (info_selectors_command, info_classes_command):
3304 Constify.
3305 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3306 * memattr.c (info_mem_command): Constify.
3307 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3308 * linux-fork.c (info_checkpoints_command): Constify.
3309 * infrun.c (info_signals_command): Constify.
3310 * inflow.c (info_terminal_command): Constify.
3311 * inferior.c (info_inferiors_command): Constify.
3312 (print_inferior): Constify.
3313 * infcmd.c (info_program_command, info_all_registers_command)
3314 (info_registers_command, info_vector_command)
3315 (info_float_command): Constify.
3316 (registers_info): Constify.
3317 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3318 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3319 Constify.
3320 * f-valprint.c (info_common_command): Constify.
3321 * dcache.c (info_dcache_command): Constify.
3322 (dcache_info_1): Constify.
3323 * darwin-nat-info.c (info_mach_tasks_command)
3324 (info_mach_task_command, info_mach_ports_command)
3325 (info_mach_port_command, info_mach_threads_command)
3326 (info_mach_thread_command, info_mach_regions_command)
3327 (info_mach_regions_recurse_command, info_mach_region_command)
3328 (info_mach_exceptions_command): Constify.
3329 (get_task_from_args): Constify.
3330 * cp-support.c (info_vtbl_command): Constify.
3331 * breakpoint.c (info_watchpoints_command)
3332 (info_tracepoints_command): Constify.
3333 (info_breakpoints_command): Remove non-const overload.
3334 * avr-tdep.c (avr_io_reg_read_command): Constify.
3335 * auxv.c (info_auxv_command): Constify.
3336 * ada-tasks.c (info_tasks_command): Constify.
3337 (info_task): Constify.
3338 * ada-lang.c (info_exceptions_command): Constify.
3339
0b39b52e
TT
33402017-11-07 Tom Tromey <tom@tromey.com>
3341
3342 * solib.h (no_shared_libraries): Constify.
3343 * frame.h (return_command): Constify.
3344 * cli/cli-cmds.h (quit_command): Constify.
3345 * top.h (quit_command, execute_command): Constify.
3346 * target.h (flash_erase_command): Constify.
3347 * inferior.h (set_inferior_args, attach_command): Constify.
3348 * tracepoint.h (start_tracing, stop_tracing): Constify.
3349 * breakpoint.h (break_command, tbreak_command)
3350 (hbreak_command_wrapper, thbreak_command_wrapper)
3351 (rbreak_command_wrapper, watch_command_wrapper)
3352 (awatch_command_wrapper, rwatch_command_wrapper)
3353 (get_tracepoint_by_number): Constify.
3354 * symtab.c (info_variables_command, rbreak_command)
3355 (symtab_symbol_info): Constify.
3356 (info_variables_command): Add non-const overload.
3357 * top.c (dont_repeat_command): Constify.
3358 * breakpoint.c (ignore_command, commands_command)
3359 (condition_command, tbreak_command, hbreak_command)
3360 (thbreak_command, clear_command, break_command)
3361 (info_breakpoints_command, watch_command, rwatch_command)
3362 (awatch_command, trace_command, ftrace_command, strace_command)
3363 (trace_pass_command, break_range_command, dprintf_command)
3364 (agent_printf_command, get_tracepoint_by_number)
3365 (watch_maybe_just_location, trace_pass_command): Constify.
3366 (info_breakpoints_command): Add non-const overload.
3367 * tracefile.c (tsave_command): Constify.
3368 * infcmd.c (attach_command, disconnect_command, signal_command)
3369 (queue_signal_command, stepi_command, nexti_command)
3370 (finish_command, next_command, step_command, until_command)
3371 (advance_command, jump_command, continue_command, run_command)
3372 (start_command, starti_command, interrupt_command)
3373 (run_command_1, set_inferior_args, step_1): Constify.
3374 * inferior.c (add_inferior_command, remove_inferior_command)
3375 (clone_inferior_command): Constify.
3376 * linux-fork.c (checkpoint_command, restart_command): Constify.
3377 * windows-nat.c (signal_event_command): Constify.
3378 * guile/guile.c (guile_repl_command, guile_command): Constify.
3379 * printcmd.c (x_command, display_command, printf_command)
3380 (output_command, set_command, call_command, print_command)
3381 (eval_command): Constify.
3382 (non_const_set_command): Remove.
3383 (_initialize_printcmd): Update.
3384 * source.c (forward_search_command, reverse_search_command):
3385 Constify.
3386 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3387 Constify.
3388 * infrun.c (handle_command): Constify.
3389 * memattr.c (mem_command): Constify.
3390 * stack.c (return_command, up_command, up_silently_command)
3391 (down_command, down_silently_command, frame_command)
3392 (backtrace_command, func_command, backtrace_command_1): Constify.
3393 (backtrace_command): Add non-const overload.
3394 * remote-sim.c (simulator_command): Constify.
3395 * exec.c (set_section_command): Constify.
3396 * tracepoint.c (tdump_command, trace_variable_command)
3397 (tstatus_command, tstop_command, tstart_command)
3398 (end_actions_pseudocommand, while_stepping_pseudocommand)
3399 (collect_pseudocommand, teval_pseudocommand, actions_command)
3400 (start_tracing, stop_tracing): Constify.
3401 * value.c (init_if_undefined_command): Constify.
3402 * tui/tui-stack.c (tui_update_command): Constify.
3403 * tui/tui-win.c (tui_refresh_all_command)
3404 (tui_set_tab_width_command, tui_set_win_height_command)
3405 (tui_set_focus_command, tui_scroll_forward_command)
3406 (tui_scroll_backward_command, tui_scroll_left_command)
3407 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3408 (tui_set_win_height): Constify.
3409 * tui/tui-layout.c (tui_layout_command): Constify.
3410 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3411 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3412 (proc_untrace_sysexit_cmd): Constify.
3413 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3414 (threadset_test_cmd, threadlist_update_test_cmd)
3415 (threadalive_test): Constify.
3416 * objc-lang.c (print_object_command): Constify.
3417 * command.h (add_com): Constify.
3418 * cli/cli-dump.c (restore_command): Constify.
3419 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3420 (help_command, complete_command, shell_command, edit_command)
3421 (list_command, disassemble_command, make_command)
3422 (apropos_command, alias_command): Constify.
3423 * cli/cli-script.c (document_command, define_command)
3424 (while_command, if_command, validate_comname): Constify.
3425 * cli/cli-decode.c (struct cmd_list_element): Change type of
3426 "fun".
3427 * target.c (do_monitor_command, flash_erase_command): Constify.
3428 * regcache.c (reg_flush_command): Constify.
3429 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3430 (reverse_nexti, reverse_continue, reverse_finish)
3431 (save_bookmark_command, goto_bookmark_command)
3432 (exec_reverse_once): Constify.
3433 * python/python.c (python_interactive_command, python_command):
3434 Constify.
3435 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3436 Constify.
3437 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3438 * gcore.c (gcore_command): Constify.
3439
85c4be7c
TT
34402017-11-07 Tom Tromey <tom@tromey.com>
3441
3442 * printcmd.c (x_command): Call set_repeat_arguments.
3443 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3444 * top.c (repeat_arguments): New global.
3445 (set_repeat_arguments): New function.
3446 (execute_command): Handle repeat_arguments.
3447 (show_commands): Calls set_repeat_arguments.
3448 * command.h (set_repeat_arguments): Declare.
3449
022643b4
TT
34502017-11-07 Tom Tromey <tom@tromey.com>
3451
3452 * stack.c (backtrace_command): Use std::string.
3453 (backtrace_command_1): Make "count_exp" const.
3454
5614fb77
TT
34552017-11-07 Tom Tromey <tom@tromey.com>
3456
3457 * source.c (directory_switch, mod_path, add_path): Constify.
3458 * defs.h (add_path, mod_path, directory_switch): Constify.
3459 * mi/mi-cmd-env.c (env_mod_path): Constify.
3460
6be9a197
TT
34612017-11-07 Tom Tromey <tom@tromey.com>
3462
3463 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3464 (run_command_1, continue_command, step_1, jump_command)
3465 (signal_command, until_command, advance_command, finish_command)
3466 (attach_command): Update.
3467
c2252c0d
TT
34682017-11-07 Tom Tromey <tom@tromey.com>
3469
3470 * command.h (set_cmd_cfunc): Don't declare.
3471 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3472
1ee870c5
TT
34732017-11-07 Tom Tromey <tom@tromey.com>
3474
3475 * stack.c (select_frame_command): Constify.
3476 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3477 * command.h (add_com_suppress_notification): Constify.
3478
ee7ddd71
TT
34792017-11-07 Tom Tromey <tom@tromey.com>
3480
3481 * breakpoint.c (stop_command): Constify.
3482 * cli/cli-decode.c (struct cmd_list_element): Constify.
3483 * command.h (add_abbrev_prefix_cmd): Constify.
3484
95e95a6d
PA
34852017-11-07 Pedro Alves <palves@redhat.com>
3486
3487 * breakpoint.c (extract_bp_kind): New enum.
3488 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3489 factored out from ...
3490 (extract_bp_number_and_location): ... here.
3491 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3492
cc638e86
PA
34932017-11-07 Pedro Alves <palves@redhat.com>
3494
3495 * breakpoint.c (extract_bp_number_and_location): Change return
3496 type to void. Throw error instead of warning.
3497 (enable_disable_command): Adjust.
3498
d0fe4701
XR
34992017-11-07 Xavier Roirand <roirand@adacore.com>
3500 Pedro Alves <palves@redhat.com>
3501
3502 * breakpoint.c (map_breakpoint_number_range): New, factored out
3503 from ...
3504 (map_breakpoint_numbers): ... here.
3505 (find_location_by_number): Change parameters from string to
3506 breakpoint number and location.
3507 (extract_bp_number_and_location): New function.
3508 (enable_disable_bp_num_loc)
3509 (enable_disable_breakpoint_location_range)
3510 (enable_disable_command): New functions, factored out ...
3511 (enable_command, disable_command): ... these functions, and
3512 adjusted to support ranges.
3513 * NEWS: Document enable/disable breakpoint location range feature.
3514
635dc5b2
LM
35152017-11-06 Luis Machado <luis.machado@linaro.org>
3516
3517 * MAINTAINERS (Write After Approval): Update my e-mail address.
3518
556e5da5
PA
35192017-11-06 Pedro Alves <palves@redhat.com>
3520
3521 * gnu-nat.c (gnu_terminal_init): Delete.
3522 (gnu_target): Don't install gnu_terminal_init.
3523 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3524 (child_terminal_init): ... this function.
3525
d1928160
PA
35262017-11-06 Pedro Alves <palves@redhat.com>
3527
3528 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3529 sgtty.h.
3530 * config.in, configure: Regenerate.
3531
6aa899ce
PA
35322017-11-06 Pedro Alves <palves@redhat.com>
3533
3534 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3535 (async_init_signals): Adjust.
3536 (handle_stop_sig): Rename to ...
3537 (handle_sigtstp): ... this.
3538 (async_stop_sig): Rename to ...
3539 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3540 SIGTSTP path.
3541 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3542 instead of STOP_SIGNAL thoughout.
3543 (handle_stop_sig): Rename to ...
3544 (handle_sigtstp): ... this.
3545 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3546
a94799ac
PA
35472017-11-06 Pedro Alves <palves@redhat.com>
3548
3549 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3550 longer set flags twice in row.
3551
726e1356
PA
35522017-11-06 Pedro Alves <palves@redhat.com>
3553
3554 * Makefile.in (SER_HARDWIRE): Update comment.
3555 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3556 * common/gdb_termios.h: Delete file.
3557 * common/job-control.c: Include termios.h and unistd.h instead of
3558 gdb_termios.h.
3559 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3560 check.
3561 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3562 Remove sgtty code.
3563 * configure.ac: No longer check for termio.h and sgtty.h.
3564 * configure: Regenerate.
3565 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3566 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3567 Replace PROCESS_GROUP_TYPE references with pid_t references
3568 throughout.
3569 (gdb_getpgrp): Delete.
3570 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3571 (child_terminal_inferior): Remove comment. Remove sgtty code.
3572 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3573 gdb_getpgrp. Use serial_set_tty_state instead aof
3574 serial_noflush_set_tty_state. Remove sgtty code.
3575 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3576 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3577 (inferior_process_group): Now returns pid_t.
3578 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3579 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3580 * ser-event.c (serial_event_ops): Update.
3581 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3582 (dos_ops): Update.
3583 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3584 * ser-pipe.c (pipe_ops): Update.
3585 * ser-tcp.c (tcp_ops): Update.
3586 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3587 HAVE_TERMIOS checks.
3588 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3589 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3590 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3591 assume termios.
3592 (hardwire_noflush_set_tty_state): Delete.
3593 (hardwire_print_tty_state, hardwire_drain_output)
3594 (hardwire_flush_output, hardwire_flush_input)
3595 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3596 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3597 code, and assume termios.
3598 (hardwire_ops): Update.
3599 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3600 * serial.c (serial_noflush_set_tty_state): Delete.
3601 * serial.h (serial_noflush_set_tty_state): Delete.
3602 (serial_ops::noflush_set_tty_state): Delete.
3603
1cfb73db
UW
36042017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3605
3606 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3607 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3608 (COMMON_OBS): Remove doublest.o and dfp.o.
3609 Do not build target-float.c (instead of doublest.c)
3610 with -Wformat-nonliteral.
3611
3612 * doublest.c: Remove file.
3613 * doublest.h: Remove file.
3614 * dfp.c: Remove file.
3615 * dfp.h: Remove file.
3616
3617 * target-float.c: Do not include "doublest.h" and "dfp.h".
3618 (DOUBLEST): Move here from doublest.h.
3619 (enum float_kind): Likewise.
3620 (FLOATFORMAT_CHAR_BIT): Likewise.
3621 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3622 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3623 (floatformat_precision): Likewise.
3624 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3625 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3626 Likewise.
3627 (host_float_format, host_double_format, host_long_double_format):
3628 Likewise.
3629 (floatformat_to_string, floatformat_from_string): Likewise.
3630 (floatformat_to_doublest): Likewise. Also, inline the original
3631 convert_floatformat_to_doublest.
3632 (floatformat_from_doublest): Likewise. Also, inline the original
3633 convert_floatformat_from_doublest.
3634
3635 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3636 (MAX_DECIMAL_STRING): Move here from dfp.c.
3637 (match_endianness): Likewise.
3638 (set_decnumber_context, decimal_check_errors): Likewise.
3639 (decimal_from_number, decimal_to_number): Likewise.
3640 (decimal_to_string, decimal_from_string): Likewise. Make static.
3641 (decimal_from_longest, decimal_from_ulongest): Likewise.
3642 (decimal_to_longest): Likewise.
3643 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3644 (decimal_convert): Likewise.
3645
b07e9c46
UW
36462017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3647
3648 * doublest.c: Do not include "gdbtypes.h".
3649 (extract_typed_floating): Remove.
3650 (store_typed_floating): Remove.
3651 (convert_typed_floating): Remove.
3652 * doublest.h (struct type): Remove.
3653 (DOUBLEST_PRINT_FORMAT): Remove.
3654 (DOUBLEST_SCAN_FORMAT): Remove.
3655 (extract_typed_floating): Remove.
3656 (store_typed_floating): Remove.
3657 (convert_typed_floating): Remove.
3658
3659 * dfp.c (decimal_from_doublest): Remove.
3660 (decimal_to_doublest): Remove.
3661 * dfp.h: Do not include "doublest.h".
3662 (decimal_from_doublest): Remove.
3663 (decimal_to_doublest): Remove.
3664
3665 * value.c: Do not include "doublest.h" and "dfp.h".
3666 (value_as_double): Remove.
3667 (unpack_double): Remove.
3668 (value_from_double): Remove.
3669 (value_from_decfloat): Remove.
3670 * value.h: Do not include "doublest.h".
3671 (value_as_double): Remove.
3672 (unpack_double): Remove.
3673 (value_from_double): Remove.
3674 (value_from_decfloat): Remove.
3675
3b2ca824
UW
36762017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3677
3678 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3679 (i386_extract_return_value): Use target_float_convert.
3680 (i386_store_return_value): Likewise.
3681 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3682 (i387_value_to_register): Likewise.
3683 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3684 (ia64_register_to_value): Use target_float_convert.
3685 (ia64_value_to_register): Likewise.
3686 (ia64_extract_return_value): Likewise.
3687 (ia64_store_return_value): Likewise.
3688 (ia64_push_dummy_call): Likewise.
3689 * m68k-tdep.c: Include "target-float.h".
3690 (m68k_register_to_value): Use target_float_convert.
3691 (m68k_value_to_register): Likewise.
3692 (m68k_svr4_extract_return_value): Likewise.
3693 (m68k_svr4_store_return_value): Likewise.
3694 * ppc-sysv-tdep.c: Include "target-float.h".
3695 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3696 (do_ppc_sysv_return_value): Likewise.
3697 (ppc64_sysv_abi_push_freg): Likewise.
3698 (ppc64_sysv_abi_return_value_base): Likewise.
3699 * rs6000-aix-tdep.c: Include "target-float.h".
3700 (rs6000_push_dummy_call): Use target_float_convert.
3701 (rs6000_return_value): Likewise.
3702 * rs6000-lynx178-tdep.c: Include "target-float.h".
3703 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3704 (rs6000_lynx178_return_value): Likewise.
3705 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3706 (rs6000_register_to_value): Use target_float_convert.
3707 (rs6000_value_to_register): Likewise.
3708 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3709 (arm_extract_return_value): Use target_float_convert.
3710 (arm_store_return_value): Likewise.
3711 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3712 (sh_register_convert_to_virtual): Use target_float_convert.
3713 (sh_register_convert_to_raw): Likewise.
3714 * sh64-tdep.c: Include "target-float.h".
3715 (sh64_extract_return_value): Use target_float_convert.
3716 (sh64_register_convert_to_virtual): Likewise.
3717 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3718
14ad9311
UW
37192017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3720
3721 * target-float.c (floatformat_to_host_double): New function.
3722 (floatformat_from_host_double): Likewise.
3723 (target_float_to_host_double): Likewise.
3724 (target_float_from_host_double): Likewise.
3725 * target-float.h (target_float_to_host_double): Add prototype.
3726 (target_float_from_host_double): Likewise.
3727
3728 * guile/scm-value.c: Include "target-float.h".
3729 (gdbscm_value_to_real): Use target_float_to_host_double.
3730 Handle integer source values via value_as_long.
3731 * guile/scm-math.c: Include "target-float.h". Do not include
3732 "doublest.h", "dfp.h", and "expression.h".
3733 (vlscm_convert_typed_number): Use target_float_from_host_double.
3734 (vlscm_convert_number): Likewise.
3735
3736 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3737 (convert_value_from_python): Use target_float_from_host_double.
3738
50eff16b
UW
37392017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3740
3741 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3742 (cast_from_fixed): Likewise.
3743 (ada_scaling_type): New function.
3744 (ada_delta): Return value instead of DOUBLEST. Perform target
3745 arithmetic instead of host arithmetic.
3746 (scaling_factor): Rename to ...
3747 (ada_scaling_factor) ... this. Make non-static. Return value instead
3748 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3749 (ada_fixed_to_float): Remove.
3750 (ada_float_to_fixed): Remove.
3751 * ada-lang.h (ada_fixed_to_float): Remove.
3752 (ada_float_to_fixed): Remove.
3753 (ada_delta): Return value instead of DOUBLEST.
3754 (ada_scaling_factor): Add prototype.
3755
3756 * ada-typeprint.c: Include "target-float.h".
3757 (print_fixed_point_type): Perform target arithmetic instead of
3758 host arithmetic.
3759 * ada-valprint.c: Include "target-float.h".
3760 (ada_val_print_num): Perform target arithmetic instead of
3761 host arithmetic for fixed-point types.
3762
66c02b9e
UW
37632017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3764
3765 * target-float.c: Include <math.h>.
3766 (floatformat_binop): New function.
3767 (floatformat_compare): Likewise.
3768 (target_float_binop): Likewise.
3769 (target_float_compare): Likewise.
3770 * target-float.h: Include "expression.h".
3771 (target_float_binop): Add prototype.
3772 (target_float_compare): Likewise.
3773
3774 * valarith.c: Do not include "doublest.h" and "dfp.h".
3775 Include "common/byte-vector.h".
3776 (value_args_as_decimal): Remove, replace by ...
3777 (value_args_as_target_float): ... this function. Handle both
3778 binary and decimal target floating-point formats.
3779 (scalar_binop): Handle both binary and decimal FP using
3780 value_args_as_target_float and target_float_binop.
3781 (value_equal): Handle both binary and decimal FP using
3782 value_args_as_target_float and target_float_compare.
3783 (value_less): Likewise.
3784 (value_pos): Handle all scalar types as simple copy.
3785 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3786 * dfp.c (decimal_binop): Throw error instead of internal_error
3787 when called with an unsupported operation code.
3788
f69fdf9b
UW
37892017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3790
3791 * target-float.c (target_float_to_string): New function.
3792 (target_float_from_string): New function.
3793 * target-float.h (target_float_to_string): Add prototype.
3794 (target_float_from_string): Add prototype.
3795
3796 * valprint.c: Include "target-float.h". Do not include
3797 "doublest.h" and "dfp.h".
3798 (print_floating): Use target_float_to_string.
3799 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3800 (printf_floating): Use target_float_to_string.
3801 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3802 (print_i387_value): Use target_float_to_string.
3803 * mips-tdep.c: Include "target-float.h".
3804 (mips_print_fp_register): Use target_float_to_string.
3805 * sh64-tdep.c: Include "target-float.h".
3806 (sh64_do_fp_register): Use target_float_to_string.
3807
3808 * parse.c: Include "target-float.h". Do not include
3809 "doublest.h" and "dfp.h".
3810 (parse_float): Use target_float_from_string.
3811 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3812 (define_symbol): Use target_float_from_string.
3813 * gdbarch-selftests.c: Include "target-float.h".
3814 (register_to_value_test): Use target_float_from_string.
3815
70100014
UW
38162017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3817
3818 * Makefile.c (SFILES): Add target-float.c.
3819 (HFILES_NO_SRCDIR): Add target-float.h.
3820 (COMMON_OBS): Add target-float.o.
3821 * target-float.h: New file.
3822 * target-float.c: New file.
3823
3824 * doublest.c (floatformat_classify): Fix detection of float_zero.
3825
3826 * gdbtypes.c (is_floating_type): New function.
3827 * gdbtypes.h (is_floating_type): Add prototype.
3828
3829 * value.c: Do not include "floatformat.h".
3830 (unpack_double): Use target_float_is_valid.
3831 (is_floating_value): New function.
3832 * value.h (is_floating_value): Add prototype-
3833
3834 * valarith.c: Include "target-float.h".
3835 (value_logical_not): Use target_float_is_zero.
3836
3837 * python/py-value.c: Include "target-float.h".
3838 (valpy_nonzero): Use target_float_is_zero.
3839
ab4b1c46
TT
38402017-11-04 Tom Tromey <tom@tromey.com>
3841
3842 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3843
454dafbd
TT
38442017-11-04 Tom Tromey <tom@tromey.com>
3845
3846 * breakpoint.c (set_momentary_breakpoint): Return
3847 breakpoint_up.
3848 (until_break_command): Update.
3849 (new_until_break_fsm): Change argument types to
3850 breakpoint_up.
3851 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3852 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3853 Remove.
3854 * infcmd.c (finish_forward): Update.
3855 * breakpoint.h (set_momentary_breakpoint)
3856 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3857 (make_cleanup_delete_breakpoint): Remove.
3858 (struct breakpoint_deleter): New.
3859 (breakpoint_up): New typedef.
3860 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3861 (insert_exception_resume_breakpoint): Update.
3862 (insert_exception_resume_from_probe): Update.
3863 (insert_longjmp_resume_breakpoint): Update.
3864 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3865 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3866 * infcall.c (call_function_by_hand_dummy): Update
3867
331b71e5
TT
38682017-11-04 Tom Tromey <tom@tromey.com>
3869
3870 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3871
9f584b37
TT
38722017-11-04 Tom Tromey <tom@tromey.com>
3873
3874 * linux-tdep.c (linux_core_info_proc_mappings): Use
3875 gdb::def_vector.
3876 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3877 "size" argument.
3878 (linux_corefile_thread): Update.
3879 (linux_make_corefile_notes): Remove unused variable.
3880
779bc38e
TT
38812017-11-04 Tom Tromey <tom@tromey.com>
3882
3883 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3884 gdb::byte_vector.
3885
ed2b3126
TT
38862017-11-04 Tom Tromey <tom@tromey.com>
3887
3888 * objfiles.c (do_free_objfile_cleanup): Remove.
3889 * compile/compile-object-load.c (compile_object_load): Update.
3890 * objfiles.h (make_cleanup_free_objfile): Remove.
3891
7f6743fd
TT
38922017-11-04 Tom Tromey <tom@tromey.com>
3893
3894 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3895 (adi_read_versions): Change "tags" to "gdb_byte *".
3896 (adi_print_versions): Likewise.
3897
c80049d3
TT
38982017-11-04 Tom Tromey <tom@tromey.com>
3899
3900 * breakpoint.c
3901 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3902 from start_rbreak_breakpoints.
3903 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3904 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3905 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3906 * symtab.c (do_end_rbreak_breakpoints): Remove.
3907 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3908
167b0be1
TT
39092017-11-04 Tom Tromey <tom@tromey.com>
3910
3911 * cp-namespace.c (reset_directive_searched): Remove.
3912 (cp_lookup_symbol_via_imports): Use scoped_restore.
3913 * cp-support.c (reset_directive_searched): Remove.
3914 (make_symbol_overload_list_using): Use scoped_restore.
3915 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3916 (reset_directive_searched): Remove.
3917
5eae7aea
TT
39182017-11-04 Tom Tromey <tom@tromey.com>
3919
3920 * symfile.c (find_separate_debug_file_by_debuglink): Use
3921 unique_xmalloc_ptr.
3922
c6bcad5f
TT
39232017-11-04 Tom Tromey <tom@tromey.com>
3924
3925 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3926 type of "info".
3927 (compute_stack_depth): Likewise.
3928 (do_compile_dwarf_expr_to_c): Use std::vector.
3929
20dcd8ca
TT
39302017-11-04 Tom Tromey <tom@tromey.com>
3931
3932 * compile/compile-object-load.c (link_callbacks_einfo): Use
3933 std::string.
3934
33c7c59d
TT
39352017-11-04 Tom Tromey <tom@tromey.com>
3936
3937 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3938 Use scoped_free_pendings.
3939 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3940 scoped_free_pendings.
3941 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3942 (xcoff_initial_scan): Likewise.
3943 * buildsym.c (reset_symtab_globals): Update comment.
3944 (scoped_free_pendings): Rename from really_free_pendings.
3945 (prepare_for_building): Update comment.
3946 (buildsym_init): Likewise.
3947 * buildsym.h (class scoped_free_pendings): New class.
3948 (really_free_pendings): Don't declare.
3949
67fa57cf
UW
39502017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3951
3952 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3953 output when converting a zero value to a special byteorder format.
3954
f26ae15b
YQ
39552017-11-02 Yao Qi <yao.qi@linaro.org>
3956
3957 * frame.c (do_frame_register_read): Remove aspace.
3958 * jit.c (jit_frame_sniffer): Likwise.
3959 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3960 * regcache.c (regcache::regcache): Pass nullptr.
3961 (regcache_print): Caller updated.
3962 * regcache.h (regcache::regcache): Remove one constructor
3963 parameter aspace.
3964
6c6e9412
YQ
39652017-11-02 Yao Qi <yao.qi@linaro.org>
3966
3967 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3968
8b86c959
YQ
39692017-11-02 Yao Qi <yao.qi@linaro.org>
3970
3971 * breakpoint.c (insert_single_step_breakpoints): Update.
3972 * frame.c (struct frame_info) <aspace>: Add const.
3973 (frame_save_as_regcache): Add const.
3974 (get_frame_address_space): Return const address_space *.
3975 * frame.h (get_frame_address_space): Update declaration.
3976 * infrun.c (struct step_over_info) <aspace>: Add const.
3977 (set_step_over_info): Make aspace const.
3978 (displaced_step_prepare_throw): Change variable const.
3979 (resume): Likewise.
3980 (proceed): Likewise.
3981 (adjust_pc_after_break): Likewise.
3982 (save_waitstatus): Likewise.
3983 (handle_signal_stop): Likewise.
3984 (keep_going_pass_signal): Likewise.
3985 * jit.c (jit_frame_sniffer): Add const.
3986 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3987 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3988 * record-full.c (record_full_wait_1): Likewise.
3989 * regcache.c (regcache::regcache): Change parameter to const.
3990 * regcache.h (regcache::regcache): Likewise.
3991 (regcache::aspace): Return const address_space *.
3992 (regcache) <m_aspace>: Add const.
3993
a01bda52
YQ
39942017-11-02 Yao Qi <yao.qi@linaro.org>
3995
3996 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3997 * frame.c (create_sentinel_frame): Likewise.
3998 * infrun.c (displaced_step_prepare_throw): Likewise.
3999 (resume): Likewise.
4000 (thread_still_needs_step_over_bp): Likewise.
4001 (proceed): Likewise.
4002 (do_target_wait): Likewise.
4003 (adjust_pc_after_break): Likewise.
4004 (handle_syscall_event): Likewise.
4005 (save_waitstatus): Likewise.
4006 (handle_inferior_event_1): Likewise.
4007 (handle_signal_stop): Likewise.
4008 (keep_going_pass_signal): Likewise.
4009 * linux-nat.c (status_callback): Likewise.
4010 (save_stop_reason): Likewise.
4011 (resume_stopped_resumed_lwps): Likewise.
4012 * record-full.c (record_full_exec_insn): Likewise.
4013 (record_full_wait_1): Likewise.
4014 * regcache.c (get_regcache_aspace): Remove.
4015 * regcache.h (get_regcache_aspace): Remove.
4016
d999647b
YQ
40172017-11-02 Yao Qi <yao.qi@linaro.org>
4018
4019 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
4020 (init_regcache_descr): Use gdbarch_num_regs.
4021 (regcache::regcache): Likewise.
4022 (regcache::get_register_status): Likewise.
4023 (regcache::assert_raw_regnum): Likewise.
4024 (regcache::cooked_read): Likewise.
4025 (regcache::cooked_read_value): Likewise.
4026 (regcache::cooked_write): Likewise.
4027 (regcache::dump): Likewise.
4028 (regcache::num_raw_registers): New method.
4029 * regcache.h (class regcache) <num_raw_registers>: New.
4030
4e888c28
YQ
40312017-11-02 Yao Qi <yao.qi@linaro.org>
4032
4033 * regcache.c (regcache::assert_regnum): New method.
4034 (regcache::invalidate): Call assert_regnum.
4035 (regcache::raw_update): Likewise.
4036 (regcache::raw_write): Likewise.
4037 (regcache::raw_read_part): Likewise.
4038 (regcache::raw_write_part): Likewise.
4039 (regcache::raw_supply): Likewise.
4040 (regcache::raw_supply_integer): Likewise.
4041 (regcache::raw_supply_zeroed): Likewise.
4042 (regcache::raw_collect): Likewise.
4043 (regcache::raw_collect_integer): Likewise.
4044 * regcache.h (regcache::assert_regnum): Declare.
4045
2e1b49b3
YQ
40462017-11-02 Yao Qi <yao.qi@linaro.org>
4047
4048 * regcache.c (regcache::dump): Remove code.
4049
6c5218df
YQ
40502017-11-02 Yao Qi <yao.qi@linaro.org>
4051
4052 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
4053 Remove.
4054 <sizeof_cooked_register_status>: Remove.
4055 (init_regcache_descr): Update.
4056 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
4057 (regcache::save): Likewise.
4058 (regcache::dump): Likewise.
4059
dcc31d28
JB
40602017-11-01 James Bowman <james.bowman@ftdichip.com>
4061
4062 * ft32-tdep.c (ft32_fetch_instruction): New function.
4063 (ft32_analyze_prologue): Use ft32_fetch_instruction().
4064
3a87ae65
SM
40652017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
4066
4067 * cli/cli-script.c (execute_control_command): Rename to ...
4068 (execute_control_command_1): ... this.
4069 (execute_control_command): New function.
4070
09b847f3
SM
40712017-10-31 Simon Marchi <simon.marchi@ericsson.com>
4072
4073 * tracepoint.c (tfind_command): Remove const_cast.
4074
f871c485
MG
40752017-10-30 Mike Gulick <mgulick@mathworks.com>
4076
4077 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
4078
b020ff80
SM
40792017-10-30 Simon Marchi <simon.marchi@ericsson.com>
4080
4081 * common/common-utils.h (in_inclusive_range): New function.
4082 * arm-tdep.c (arm_record_extension_space): Use
4083 in_inclusive_range.
4084 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
4085 * cris-tdep.c (cris_spec_reg_applicable): Use
4086 in_inclusive_range.
4087
1b81856f
PA
40882017-10-30 Pedro Alves <palves@redhat.com>
4089 Simon Marchi <simon.marchi@ericsson.com>
4090
4091 * remote.c (remote_set_syscall_catchpoint): Build a std::string
4092 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
4093
31b833b3
PA
40942017-10-30 Pedro Alves <palves@redhat.com>
4095
4096 * common/common-utils.c (string_appendf, string_vappendf): New
4097 functions.
4098 * common/common-utils.h (string_appendf, string_vappendf): New
4099 declarations.
4100 * unittests/common-utils-selftests.c (string_appendf_func)
4101 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
4102 (string_vappendf_tests): New functions.
4103 (_initialize_common_utils_selftests): Register "string_appendf" and
4104 "string_vappendf tests".
4105
4a250334
PA
41062017-10-30 Pedro Alves <palves@redhat.com>
4107
4108 * unittests/common-utils-selftests.c (format_func): New typedef.
4109 (string_printf_tests, string_vprintf_tests): Tests factored out
4110 and merged to ...
4111 (test_format_func): ... this new function.
4112 (string_printf_tests, string_vprintf_tests): Reimplement on top of
4113 test_format_func.
4114
16c5c17e
SM
41152017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4116
4117 * darwin-nat.c: Remove include of gdb.h.
4118
7ca51576
SM
41192017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4120
4121 * xtensa-xtregs.c: Fix formatting issues.
4122
c1342859
SM
41232017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4124
4125 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
4126
484d8d36
MD
41272017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
4128
4129 PR python/21213
4130 * python/py-infthread.c (thpy_get_inferior): Increment reference
4131 of inferior before returning it.
4132
b5540b5f
SM
41332017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4134
4135 * unittests/common-utils-selftests.c (format): Add
4136 ATTRIBUTE_PRINTF.
4137
5a9dcda1
SM
41382017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4139
4140 * xml-syscall.c (struct syscall_desc): Add constructor.
4141 <name>: Change type to std::string.
4142 (syscall_desc_up): New typedef.
4143 (syscall_desc_p): Remove typeder.
4144 (DEF_VEC_P(syscall_desc_p)): Remove.
4145 (struct syscall_group_desc): Add constructor.
4146 <name>: Change type to std::string.
4147 <syscalls>: Change type to std::vector.
4148 (syscall_group_desc_up): New typedef.
4149 (syscall_group_desc_p): Remove typedef.
4150 (DEF_VEC_P(syscall_group_desc_p)): Remove.
4151 (struct syscalls_info) <syscalls>: Change type to std::vector of
4152 unique_ptr.
4153 <groups>: Likewise.
4154 <my_gdb_datadir>: Change type to std::string.
4155 (syscalls_info_up): New typedef.
4156 (allocate_syscalls_info): Remove.
4157 (syscalls_info_free_syscalls_desc): Remove.
4158 (syscalls_info_free_syscall_group_desc): Remove.
4159 (free_syscalls_info): Remove.
4160 (make_cleanup_free_syscalls_info): Remove.
4161 (syscall_group_create_syscall_group_desc): Adjust.
4162 (syscall_group_add_syscall): Adjust.
4163 (syscall_create_syscall_desc): Adjust.
4164 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
4165 (init_syscalls_info): Adjust.
4166 (syscall_group_get_group_by_name): Adjust.
4167 (xml_get_syscall_number): Adjust.
4168 (xml_get_syscall_name): Adjust.
4169 (xml_list_of_syscalls): Adjust.
4170 (xml_list_syscalls_by_group): Adjust.
4171 (xml_list_of_groups): Adjust.
4172
45461e0d
SM
41732017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4174
4175 * probe.h: Don't include gdb_vecs.h.
4176 (DEF_VEC_P (probe_p)): Remove.
4177 (find_probes_in_objfile): Return an std::vector.
4178 * probe.c (find_probes_in_objfile): Likewise.
4179 * breakpoint.c (breakpoint_objfile_data)
4180 <longjmp_probes>: Change type to std::vector.
4181 <exception_probes>: Likewise.
4182 (free_breakpoint_probes): Don't manually free vectors.
4183 (create_longjmp_master_breakpoint): Adjust.
4184 (create_exception_master_breakpoint): Adjust.
4185 * solib-svr4.c (svr4_create_probe_breakpoints): Change
4186 parameter type, adjust.
4187 (svr4_create_solib_event_breakpoints): Adjust.
4188
43dce439
SM
41892017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4190
4191 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
4192 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
4193 with new.
4194 (free_breakpoint_probes): Rename to ...
4195 (free_breakpoint_objfile_data): ... this, and call delete on
4196 bp_objfile_data..
4197
6a1b9516
SM
41982017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4199
4200 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
4201 (loaded_script_ptr): Remove typedef.
4202 (DEF_VEC_P (loaded_script_ptr)): Remove.
4203 (struct collect_matching_scripts_data): Add constructor.
4204 <scripts_p>: Change type to (pointer to) std::vector.
4205 (collect_matching_scripts_data): Adjust.
4206 (sort_scripts_by_name): Make suitable for std::sort.
4207 (print_scripts): Don't sort vector, adjust to std::vector.
4208 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
4209
593e3209
SM
42102017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4211
4212 * symfile.c (filename_language): Make struct, not typedef. Add
4213 constructor.
4214 <ext>: Change type to std::string.
4215 (DEF_VEC_O (filename_language)): Remove.
4216 (filename_language_table): Change type to std::vector.
4217 (add_filename_language): Adjust.
4218 (set_ext_lang_command): Adjust.
4219 (info_ext_lang_command): Adjust.
4220 (deduce_language_from_filename): Adjust.
4221 (class scoped_restore_filename_language_table): Remove.
4222 (test_filename_language): Use scoped_restore.
4223 (test_set_ext_lang_command): Use scoped_restore, adjust to
4224 std::vector change.
4225
32fa66eb
SM
42262017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4227
4228 * symfile.c: Include selftest.h.
4229 (class scoped_restore_filename_language_table): New.
4230 (test_filename_language): New test.
4231 (test_set_ext_lang_command): New test.
4232 (_initialize_symfile): Register tests.
4233
4a27f119
KS
42342017-10-27 Keith Seitz <keiths@redhat.com>
4235
4236 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4237 in the bp_location, falling back to find_pc_sect_function when
4238 needed.
4239 (add_location_to_breakpoint): Save sal->symbol.
4240 * breakpoint.h (struct bp_location) <symbol>: New field.
4241 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4242 * symtab.h (struct symtab_and_line) <symbol>: New field.
4243
a43f3893
PF
42442017-10-26 Patrick Frants <osscontribute@gmail.com>
4245
7453e6b2 4246 PR gdb/13669
a43f3893
PF
4247 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4248 to rewind obstack.
4249
23cc4e1b
PA
42502017-10-26 Pedro Alves <palves@redhat.com>
4251
4252 * remote.c (remote_async_terminal_ours_p): Delete.
4253 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4254 Remove references to 'remote_async_terminal_ours_p'.
4255
6abc18bb
YQ
42562017-10-26 Yao Qi <yao.qi@linaro.org>
4257
4258 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4259
bd522513
YQ
42602017-10-26 Yao Qi <yao.qi@linaro.org>
4261
4262 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4263 aspace const.
4264 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4265 Likewise.
4266 * breakpoint.c (bpstat_check_location): Remove cast.
4267 (breakpoint_hit_catch_fork): Make aspce const.
4268 (breakpoint_hit_catch_solib): Likewise.
4269 (breakpoint_hit_catch_exec): Likewise.
4270 (breakpoint_hit_ranged_breakpoint): Likewise.
4271 (breakpoint_hit_watchpoint): Likewise.
4272 (base_breakpoint_breakpoint_hit): Likewise.
4273 (bkpt_breakpoint_hit): Likewise.
4274 (dprintf_breakpoint_hit): Likewise.
4275 (tracepoint_breakpoint_hit): Likewise.
4276 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4277
accd0bcd
YQ
42782017-10-26 Yao Qi <yao.qi@linaro.org>
4279
4280 * breakpoint.c (breakpoint_location_address_match): Change
4281 "struct address_space *" to "const address_space".
4282 (breakpoint_location_address_range_overlap): Likewise.
4283 (breakpoint_here_p): Likewise.
4284 (breakpoint_in_range_p): Likewise.
4285 (moribund_breakpoint_here_p): Likewise.
4286 (bp_location_inserted_here_p): Likewise.
4287 (software_breakpoint_inserted_here_p): Likewise.
4288 (hardware_breakpoint_inserted_here_p): Likewise.
4289 (hardware_watchpoint_inserted_in_range): Likewise.
4290 (bpstat_check_location): Likewise.
4291 (bpstat_stop_status): Likewise.
4292 (breakpoint_address_match): Likewise.
4293 (breakpoint_address_match_range): Likewise.
4294 (breakpoint_location_address_match): Likewise.
4295 (breakpoint_location_address_range_overlap): Likewise.
4296 (insert_single_step_breakpoint): Likewise.
4297 (breakpoint_has_location_inserted_here): Likewise.
4298 (single_step_breakpoint_inserted_here_p): Likewise.
4299 (pc_at_non_inline_function): Likewise.
4300 * breakpoint.h (bpstat_stop_status): Update declaration.
4301 (breakpoint_here_p): Likewise.
4302 (breakpoint_in_range_p): Likewise.
4303 (moribund_breakpoint_here_p): Likewise.
4304 (breakpoint_inserted_here_p): Likewise.
4305 (software_breakpoint_inserted_here_p): Likewise.
4306 (hardware_breakpoint_inserted_here_p): Likewise.
4307 (breakpoint_has_location_inserted_here): Likewise.
4308 (single_step_breakpoint_inserted_here_p): Likewise.
4309 (hardware_watchpoint_inserted_in_range): Likewise.
4310 (breakpoint_address_match): Likewise.
4311 (insert_single_step_breakpoint): Likewise.
4312 (pc_at_non_inline_function): Likewise.
4313 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4314 * record.c (record_check_stopped_by_breakpoint): Likewise.
4315 * record.h (record_check_stopped_by_breakpoint): Likewise.
4316 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4317
ac7936df
YQ
43182017-10-25 Yao Qi <yao.qi@linaro.org>
4319
4320 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4321 regcache->arch () instead get_regcache_arch.
4322 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4323 Likewise.
4324 (aarch64_fbsd_store_inferior_registers): Likewise.
4325 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4326 (store_gregs_to_thread): Likewise.
4327 (fetch_fpregs_from_thread): Likewise.
4328 (store_fpregs_to_thread): Likewise.
4329 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4330 (aarch64_store_return_value): Likewise.
4331 (aarch64_software_single_step): Likewise.
4332 * aix-thread.c (aix_thread_wait): Likewise.
4333 (supply_reg32): Likewise.
4334 (supply_sprs64): Likewise.
4335 (supply_sprs32): Likewise.
4336 (fill_gprs64): Likewise.
4337 (fill_gprs32): Likewise.
4338 (fill_sprs64): Likewise.
4339 (fill_sprs32): Likewise.
4340 (store_regs_user_thread): Likewise.
4341 (store_regs_kernel_thread): Likewise.
4342 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4343 (alphabsd_store_inferior_registers): Likewise.
4344 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4345 (alpha_store_return_value): Likewise.
4346 (alpha_deal_with_atomic_sequence): Likewise.
4347 (alpha_next_pc): Likewise.
4348 (alpha_software_single_step): Likewise.
4349 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4350 (amd64bsd_store_inferior_registers): Likewise.
4351 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4352 Likewise.
4353 (amd64_linux_store_inferior_registers): Likewise.
4354 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4355 (amd64_collect_native_gregset): Likewise.
4356 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4357 (amd64obsd_collect_uthread): Likewise.
4358 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4359 (amd64_collect_fpregset): Likewise.
4360 (amd64_supply_fxsave): Likewise.
4361 (amd64_supply_xsave): Likewise.
4362 (amd64_collect_fxsave): Likewise.
4363 (amd64_collect_xsave): Likewise.
4364 * arc-tdep.c (arc_write_pc): Likewise.
4365 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4366 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4367 (arm_fbsd_store_inferior_registers): Likewise.
4368 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4369 (store_vfp_regs): Likewise.
4370 (arm_linux_fetch_inferior_registers): Likewise.
4371 (arm_linux_store_inferior_registers): Likewise.
4372 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4373 (arm_linux_sigreturn_next_pc): Likewise.
4374 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4375 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4376 (fetch_register): Likewise.
4377 (store_register): Likewise.
4378 * arm-tdep.c (arm_is_thumb): Likewise.
4379 (displaced_in_arm_mode): Likewise.
4380 (bx_write_pc): Likewise.
4381 (arm_get_next_pcs_addr_bits_remove): Likewise.
4382 (arm_software_single_step): Likewise.
4383 (arm_extract_return_value): Likewise.
4384 (arm_store_return_value): Likewise.
4385 (arm_write_pc): Likewise.
4386 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4387 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4388 (bsd_uthread_store_registers): Likewise.
4389 * core-regset.c (fetch_core_registers): Likewise.
4390 * corelow.c (get_core_registers): Likewise.
4391 * cris-tdep.c (cris_store_return_value): Likewise.
4392 (cris_extract_return_value): Likewise.
4393 (find_step_target): Likewise.
4394 (find_step_target): Likewise.
4395 (cris_software_single_step): Likewise.
4396 * ctf.c (ctf_fetch_registers): Likewise.
4397 * darwin-nat.c (cancel_breakpoint): Likewise.
4398 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4399 * frv-tdep.c (frv_extract_return_value): Likewise.
4400 * ft32-tdep.c (ft32_store_return_value): Likewise.
4401 (ft32_extract_return_value): Likewise.
4402 * go32-nat.c (fetch_register): Likewise.
4403 (go32_fetch_registers): Likewise.
4404 (go32_store_registers): Likewise.
4405 (store_register): Likewise.
4406 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4407 (h8300_store_return_value): Likewise.
4408 * hppa-linux-nat.c (fetch_register): Likewise.
4409 (store_register): Likewise.
4410 (hppa_linux_fetch_inferior_registers): Likewise.
4411 (hppa_linux_store_inferior_registers): Likewise.
4412 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4413 (i386_darwin_store_inferior_registers): Likewise.
4414 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4415 (gnu_store_registers): Likewise.
4416 * i386-linux-nat.c (fetch_register): Likewise.
4417 (store_register): Likewise.
4418 (supply_gregset): Likewise.
4419 (fill_gregset): Likewise.
4420 (i386_linux_fetch_inferior_registers): Likewise.
4421 (i386_linux_store_inferior_registers): Likewise.
4422 (i386_linux_resume): Likewise.
4423 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4424 Likewise.
4425 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4426 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4427 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4428 (i386obsd_collect_uthread): Likewise.
4429 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4430 (i386_supply_gregset): Likewise.
4431 (i386_collect_gregset): Likewise.
4432 (i386_supply_fpregset): Likewise.
4433 (i386_collect_fpregset): Likewise.
4434 (i386_mpx_bd_base): Likewise.
4435 * i386-v4-nat.c (supply_fpregset): Likewise.
4436 (fill_fpregset): Likewise.
4437 * i387-tdep.c (i387_supply_fsave): Likewise.
4438 (i387_collect_fsave): Likewise.
4439 (i387_supply_fxsave): Likewise.
4440 (i387_collect_fxsave): Likewise.
4441 (i387_supply_xsave): Likewise.
4442 (i387_collect_xsave): Likewise.
4443 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4444 (ia64_linux_store_registers): Likewise.
4445 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4446 (ia64_extract_return_value): Likewise.
4447 (ia64_store_return_value): Likewise.
4448 (find_func_descr): Likewise.
4449 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4450 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4451 (inf_ptrace_store_registers): Likewise.
4452 * infrun.c (use_displaced_stepping): Likewise.
4453 (displaced_step_prepare_throw): Likewise.
4454 (resume): Likewise.
4455 (proceed): Likewise.
4456 (do_target_wait): Likewise.
4457 (adjust_pc_after_break): Likewise.
4458 (handle_inferior_event_1): Likewise.
4459 (handle_signal_stop): Likewise.
4460 (save_infcall_suspend_state): Likewise.
4461 (restore_infcall_suspend_state): Likewise.
4462 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4463 * jit.c (jit_frame_prev_register): Likewise.
4464 * linux-nat.c (save_stop_reason): Likewise.
4465 (linux_nat_wait_1): Likewise.
4466 (resume_stopped_resumed_lwps): Likewise.
4467 * linux-record.c (record_linux_sockaddr): Likewise.
4468 (record_linux_msghdr): Likewise.
4469 (record_linux_system_call): Likewise.
4470 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4471 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4472 (lm32_store_return_value): Likewise.
4473 * m32c-tdep.c (m32c_read_flg): Likewise.
4474 (m32c_pseudo_register_read): Likewise.
4475 (m32c_pseudo_register_write): Likewise.
4476 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4477 (m32r_linux_collect_gregset): Likewise.
4478 * m32r-tdep.c (m32r_store_return_value): Likewise.
4479 (m32r_extract_return_value): Likewise.
4480 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4481 (m68kbsd_collect_fpregset): Likewise.
4482 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4483 * m68k-linux-nat.c (fetch_register): Likewise.
4484 (old_fetch_inferior_registers): Likewise.
4485 (old_store_inferior_registers): Likewise.
4486 (store_regs): Likewise.
4487 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4488 (m68k_svr4_store_return_value): Likewise.
4489 * m88k-tdep.c (m88k_store_arguments): Likewise.
4490 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4491 (mi_cmd_data_write_register_values): Likewise.
4492 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4493 (mips_fbsd_store_inferior_registers): Likewise.
4494 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4495 (mips_fbsd_supply_gregs): Likewise.
4496 (mips_fbsd_collect_fpregs): Likewise.
4497 (mips_fbsd_collect_gregs): Likewise.
4498 (mips_fbsd_supply_fpregset): Likewise.
4499 (mips_fbsd_collect_fpregset): Likewise.
4500 (mips_fbsd_supply_gregset): Likewise.
4501 (mips_fbsd_collect_gregset): Likewise.
4502 * mips-linux-nat.c (supply_gregset): Likewise.
4503 (fill_gregset): Likewise.
4504 (supply_fpregset): Likewise.
4505 (fill_fpregset): Likewise.
4506 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4507 (mips_fill_gregset): Likewise.
4508 (mips_supply_fpregset): Likewise.
4509 (mips_fill_fpregset): Likewise.
4510 (mips64_supply_gregset): Likewise.
4511 (micromips_linux_sigframe_validate): Likewise.
4512 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4513 (mipsnbsd_fetch_inferior_registers): Likewise.
4514 (mipsnbsd_store_inferior_registers): Likewise.
4515 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4516 (mipsnbsd_supply_gregset): Likewise.
4517 (mipsnbsd_iterate_over_regset_sections): Likewise.
4518 (mipsnbsd_supply_reg): Likewise.
4519 (mipsnbsd_supply_fpreg): Likewise.
4520 * mips-tdep.c (mips_in_frame_stub): Likewise.
4521 (mips_dummy_id): Likewise.
4522 (is_octeon_bbit_op): Likewise.
4523 (micromips_bc1_pc): Likewise.
4524 (extended_mips16_next_pc): Likewise.
4525 (mips16_next_pc): Likewise.
4526 (deal_with_atomic_sequence): Likewise.
4527 * moxie-tdep.c (moxie_process_readu): Likewise.
4528 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4529 * nto-procfs.c (procfs_store_registers): Likewise.
4530 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4531 (ppcfbsd_store_inferior_registers): Likewise.
4532 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4533 (fetch_altivec_register): Likewise.
4534 (get_spe_registers): Likewise.
4535 (fetch_spe_register): Likewise.
4536 (fetch_altivec_registers): Likewise.
4537 (fetch_all_gp_regs): Likewise.
4538 (fetch_all_fp_regs): Likewise.
4539 (store_vsx_register): Likewise.
4540 (store_altivec_register): Likewise.
4541 (set_spe_registers): Likewise.
4542 (store_spe_register): Likewise.
4543 (store_altivec_registers): Likewise.
4544 (store_all_gp_regs): Likewise.
4545 (store_all_fp_regs): Likewise.
4546 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4547 (ppc_linux_collect_gregset): Likewise.
4548 (ppc_canonicalize_syscall): Likewise.
4549 (ppc_linux_record_signal): Likewise.
4550 (ppu2spu_prev_register): Likewise.
4551 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4552 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4553 (ppcobsd_store_registers): Likewise.
4554 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4555 Likewise.
4556 (ppc_ravenscar_generic_store_registers): Likewise.
4557 * procfs.c (procfs_fetch_registers): Likewise.
4558 (procfs_store_registers): Likewise.
4559 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4560 (ravenscar_store_registers): Likewise.
4561 (ravenscar_prepare_to_store): Likewise.
4562 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4563 * record-full.c (record_full_wait_1): Likewise.
4564 (record_full_registers_change): Likewise.
4565 (record_full_store_registers): Likewise.
4566 (record_full_core_fetch_registers): Likewise.
4567 (record_full_save): Likewise.
4568 (record_full_goto_insn): Likewise.
4569 * regcache.c (regcache_register_size): Likewise.
4570 (get_regcache_arch): Remove.
4571 (regcache_read_pc): Likewise.
4572 * regcache.h (get_regcache_arch): Remove.
4573 * remote-sim.c (gdbsim_fetch_register): Likewise.
4574 (gdbsim_store_register): Likewise.
4575 * remote.c (fetch_register_using_p): Likewise.
4576 (send_g_packet): Likewise.
4577 (remote_prepare_to_store): Likewise.
4578 (store_registers_using_G): Likewise.
4579 * reverse.c (save_bookmark_command): Likewise.
4580 (goto_bookmark_command): Likewise.
4581 * rs6000-aix-tdep.c (branch_dest): Likewise.
4582 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4583 (fetch_register): Likewise.
4584 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4585 (ppc_collect_reg): Likewise.
4586 (ppc_collect_gregset): Likewise.
4587 (ppc_collect_fpregset): Likewise.
4588 (ppc_collect_vsxregset): Likewise.
4589 (ppc_collect_vrregset): Likewise.
4590 (ppc_displaced_step_hw_singlestep): Likewise.
4591 (rs6000_pseudo_register_read): Likewise.
4592 (rs6000_pseudo_register_write): Likewise.
4593 * s390-linux-nat.c (supply_gregset): Likewise.
4594 (fill_gregset): Likewise.
4595 (s390_linux_fetch_inferior_registers): Likewise.
4596 * s390-linux-tdep.c (s390_write_pc): Likewise.
4597 (s390_software_single_step): Likewise.
4598 (s390_all_but_pc_registers_record): Likewise.
4599 (s390_linux_syscall_record): Likewise.
4600 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4601 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4602 (shnbsd_store_inferior_registers): Likewise.
4603 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4604 (sh_extract_return_value_fpu): Likewise.
4605 (sh_store_return_value_nofpu): Likewise.
4606 (sh_corefile_supply_regset): Likewise.
4607 (sh_corefile_collect_regset): Likewise.
4608 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4609 (sh64_store_return_value): Likewise.
4610 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4611 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4612 (sparc_store_inferior_registers): Likewise.
4613 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4614 (sparc_ravenscar_prepare_to_store): Likewise.
4615 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4616 (sparc_analyze_control_transfer): Likewise.
4617 (sparc_step_trap): Likewise.
4618 (sparc_software_single_step): Likewise.
4619 (sparc32_gdbarch_init): Likewise.
4620 (sparc_supply_rwindow): Likewise.
4621 (sparc_collect_rwindow): Likewise.
4622 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4623 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4624 (sparc64nbsd_collect_gregset): Likewise.
4625 (sparc64nbsd_supply_fpregset): Likewise.
4626 (sparc64nbsd_collect_fpregset): Likewise.
4627 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4628 (sparc64_supply_gregset): Likewise.
4629 (sparc64_collect_gregset): Likewise.
4630 (sparc64_supply_fpregset): Likewise.
4631 (sparc64_collect_fpregset): Likewise.
4632 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4633 * spu-tdep.c (spu_unwind_sp): Likewise.
4634 (spu2ppu_prev_register): Likewise.
4635 (spu_memory_remove_breakpoint): Likewise.
4636 * stack.c (return_command): Likewise.
4637 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4638 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4639 * tracefile.c (trace_save_ctf): Likewise.
4640 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4641 (do_windows_store_inferior_registers): Likewise.
4642 (windows_resume): Likewise.
4643 * xtensa-linux-nat.c (fill_gregset): Likewise.
4644 (supply_gregset_reg): Likewise.
4645 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4646 (xtensa_register_read_masked): Likewise.
4647 (xtensa_supply_gregset): Likewise.
4648 (xtensa_extract_return_value): Likewise.
4649 (xtensa_store_return_value): Likewise.
4650
edd079d9
UW
46512017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4652
4653 * doublest.c (floatformat_from_string): New function.
4654 * doublest.h (floatformat_from_string): Add prototype.
4655
4656 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4657 (OP_FLOAT): ... this.
4658 * expression.h: Do not include "doublest.h".
4659 (union exp_element): Replace doubleconst and decfloatconst by
4660 new element floatconst.
4661 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4662 (ada_evaluate_subexp): Likewise.
4663 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4664 OP_DOUBLE and OP_DECFLOAT.
4665 * expprint.c (print_subexp_standard): Likewise.
4666 (dump_subexp_body_standard): Likewise.
4667 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4668
4669 * parse.c: Include "dfp.h".
4670 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4671 (write_exp_elt_floatcst): New function.
4672 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4673 and OP_DECFLOAT.
4674 (operator_check_standard): Likewise.
4675 (parse_float): Do not accept suffix. Take type as input. Return bool.
4676 Return target format buffer instead of host DOUBLEST.
4677 Use floatformat_from_string and decimal_from_string to parse
4678 either binary or decimal floating-point types.
4679 (parse_c_float): Remove.
4680 * parser-defs.h: Do not include "doublest.h".
4681 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4682 (write_exp_elt_floatcst): Add prototype.
4683 (parse_float): Update prototype.
4684 (parse_c_float): Remove.
4685
4686 * c-exp.y: Do not include "dfp.h".
4687 (typed_val_float): Use byte buffer instead of DOUBLEST.
4688 (typed_val_decfloat): Remove.
4689 (DECFLOAT): Remove.
4690 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4691 (parse_number): Update to new parse_float interface.
4692 Parse suffixes and determine type before calling parse_float.
4693 Handle decimal and binary FP types the same way.
4694
4695 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4696 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4697 (parse_number): Update to new parse_float interface.
4698 Parse suffixes and determine type before calling parse_float.
4699
4700 * f-exp.y: Replace dval by typed_val_float.
4701 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4702 (parse_number): Use parse_float instead of atof.
4703
4704 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4705 (parse_go_float): Remove.
4706 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4707 (parse_number): Call parse_float instead of parse_go_float.
4708 Parse suffixes and determine type before calling parse_float.
4709
4710 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4711 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4712 (parse_number): Update to new parse_float interface.
4713 Parse suffixes and determine type before calling parse_float.
4714
4715 * m2-exp.y: Replace dval by byte buffer val.
4716 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4717 (parse_number): Call parse_float instead of atof.
4718
4719 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4720 (lex_number): Call parse_float instead of strtod.
4721 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4722 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4723 Use write_exp_elt_floatcst.
4724 (unit_testing): Remove static variable.
4725 (rust_type): Do not check unit_testing.
4726 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4727
4728 * ada-exp.y (type_float, type_double): Remove.
4729 (typed_val_float): Use byte buffer instead of DOUBLEST.
4730 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4731 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4732
cc628f3d
AH
47332017-10-25 Alan Hayward <alan.hayward@arm.com>
4734
4735 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4736 * arch/aarch64.h: New file.
4737
09a7c6aa
UW
47382017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4739
4740 * dfp.h (decimal_from_string): Use const reference for argument.
4741 * dfp.c (decimal_from_string): Likewise.
4742
8ba0dd51
UW
47432017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4744
4745 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4746 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4747 * mips-tdep.c (mips_print_fp_register): Likewise.
4748
16e812b2
UW
47492017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4750
4751 * common/format.h (enum argclass): Replace decfloat_arg by
4752 dec32float_arg, dec64float_arg, and dec128float_arg.
4753 * common/format.c (parse_format_string): Update to return
4754 new decimal float argument classes.
4755
4756 * printcmd.c (printf_decfloat): Rename to ...
4757 (printf_floating): ... this. Add argclass argument, and use it
4758 instead of parsing the format string again. Add support for
4759 binary floating-point values, using floatformat_to_string.
4760 Convert value to the target format if it doesn't already match.
4761 (ui_printf): Call printf_floating instead of printf_decfloat,
4762 also for double_arg / long_double_arg. Pass argclass.
4763
4764 * dfp.c (decimal_to_string): Add format string argument.
4765 * dfp.h (decimal_to_string): Likewise.
4766
4767 * doublest.c (floatformat_to_string): Add format string argument.
4768 * doublest.h (floatformat_to_string): Likewise.
4769
fdf0cbc2
UW
47702017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4771
4772 * doublest.c (floatformat_precision): New routine.
4773 (floatformat_to_string): Likewise.
4774 * doublest.c (floatformat_to_string): Add prototype.
4775
4776 * printcmd.c (print_scalar_formatted): Only call print_floating
4777 on floating-point types.
4778 * valprint.c: Do not include "floatformat.h".
4779 (generic_val_print_decfloat): Remove.
4780 (generic_val_print): Call generic_val_print_float for both
4781 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4782 (print_floating): Use floatformat_to_string. Handle decimal float.
4783 (print_decimal_floating): Remove, merge into floatformat_to_string.
4784 * value.h (print_decimal_floating): Remove.
4785
4786 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4787
5033013f
UW
47882017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4789
4790 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4791
a664f67e
SM
47922017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4793
4794 * memattr.h: Don't include vec.h.
4795 (struct mem_attrib): Initialize fields.
4796 <unknown>: New static method.
4797 (struct mem_region): Add constructors, operator<, initialize
4798 fields.
4799 * memattr.c: Include algorithm.
4800 (default_mem_attrib, unknown_mem_attrib): Remove.
4801 (user_mem_region_list): New global.
4802 (target_mem_region_list, mem_region_list): Change type to
4803 std::vector<mem_region>.
4804 (mem_use_target): Now a function.
4805 (target_mem_regions_valid): Change type to bool.
4806 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4807 (require_user_regions): Adjust.
4808 (require_target_regions): Adjust.
4809 (create_mem_region): Adjust.
4810 (lookup_mem_region): Adjust.
4811 (invalidate_target_mem_regions): Adjust.
4812 (mem_clear): Rename to...
4813 (user_mem_clear): ... this, and adjust.
4814 (mem_command): Adjust.
4815 (info_mem_command): Adjust.
4816 (mem_enable, enable_mem_command, mem_disable,
4817 disable_mem_command): Adjust.
4818 (mem_delete): Adjust.
4819 (delete_mem_command): Adjust.
4820 * memory-map.h (parse_memory_map): Return an std::vector.
4821 * memory-map.c (parse_memory_map): Likewise.
4822 (struct memory_map_parsing_data): Add constructor.
4823 <memory_map>: Point to std::vector.
4824 (memory_map_start_memory): Adjust.
4825 (memory_map_end_memory): Adjust.
4826 (memory_map_end_property): Adjust.
4827 (clear_result): Remove.
4828 * remote.c (remote_memory_map): Return an std::vector.
4829 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4830 Remove.
4831 (target_debug_print_mem_region_vector): New.
4832 * target-delegates.c: Regenerate.
4833 * target.h (mem_region_vector): New typedef.
4834 (to_memory_map): Return mem_region_vector.
4835 (target_memory_map): Return an std::vector.
4836 * target.c (target_memory_map): Return an std::vector.
4837 (flash_erase_command): Adjust.
4838
6e17c565
SM
48392017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4840
4841 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4842 Change type to std::string.
4843 (memory_map_start_property): Adjust.
4844 (memory_map_end_property): Adjust.
4845
cfba9872
SM
48462017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4847
4848 * infrun.h: Include common/byte-vector.h.
4849 (struct displaced_step_closure): New struct.
4850 (struct buf_displaced_step_closure): New struct.
4851 * infrun.c (displaced_step_closure::~displaced_step_closure):
4852 Provide default implementation.
4853 (displaced_step_clear): Deallocate step closure with delete.
4854 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4855 (aarch64_displaced_step_closure): ... this, extend
4856 displaced_step_closure.
4857 (aarch64_displaced_step_data) <dsc>: Change type to
4858 aarch64_displaced_step_closure.
4859 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4860 unique_ptr.
4861 (aarch64_displaced_step_fixup): Add cast for displaced step
4862 closure.
4863 * amd64-tdep.c (displaced_step_closure): Rename to ...
4864 (amd64_displaced_step_closure): ... this, extend
4865 displaced_step_closure.
4866 <insn_buf>: Change type to std::vector<gdb_byte>.
4867 <max_len>: Remove.
4868 (fixup_riprel): Change type of DSC parameter, adjust to type
4869 change of insn_buf.
4870 (fixup_displaced_copy): Change type of DSC parameter.
4871 (amd64_displaced_step_copy_insn): Instantiate
4872 amd64_displaced_step_closure.
4873 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4874 to type change of insn_buf.
4875 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4876 parameter DSC.
4877 (arm_linux_copy_svc): Likewise.
4878 (cleanup_kernel_helper_return): Likewise.
4879 (arm_catch_kernel_helper_return): Likewise.
4880 (arm_linux_displaced_step_copy_insn): Instantiate
4881 arm_displaced_step_closure.
4882 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4883 (displaced_read_reg): Change type of parameter DSC.
4884 (branch_write_pc): Likewise.
4885 (load_write_pc): Likewise.
4886 (alu_write_pc): Likewise.
4887 (displaced_write_reg): Likewise.
4888 (arm_copy_unmodified): Likewise.
4889 (thumb_copy_unmodified_32bit): Likewise.
4890 (thumb_copy_unmodified_16bit): Likewise.
4891 (cleanup_preload): Likewise.
4892 (install_preload): Likewise.
4893 (arm_copy_preload): Likewise.
4894 (thumb2_copy_preload): Likewise.
4895 (install_preload_reg): Likewise.
4896 (arm_copy_preload_reg): Likewise.
4897 (cleanup_copro_load_store): Likewise.
4898 (install_copro_load_store): Likewise.
4899 (arm_copy_copro_load_store) Likewise.
4900 (thumb2_copy_copro_load_store): Likewise.
4901 (cleanup_branch): Likewise.
4902 (install_b_bl_blx): Likewise.
4903 (arm_copy_b_bl_blx): Likewise.
4904 (thumb2_copy_b_bl_blx): Likewise.
4905 (thumb_copy_b): Likewise.
4906 (install_bx_blx_reg): Likewise.
4907 (arm_copy_bx_blx_reg): Likewise.
4908 (thumb_copy_bx_blx_reg): Likewise.
4909 (cleanup_alu_imm): Likewise.
4910 (arm_copy_alu_imm): Likewise.
4911 (thumb2_copy_alu_imm): Likewise.
4912 (cleanup_alu_reg): Likewise.
4913 (install_alu_reg): Likewise.
4914 (arm_copy_alu_reg): Likewise.
4915 (thumb_copy_alu_reg): Likewise.
4916 (cleanup_alu_shifted_reg): Likewise.
4917 (install_alu_shifted_reg): Likewise.
4918 (arm_copy_alu_shifted_reg): Likewise.
4919 (cleanup_load): Likewise.
4920 (cleanup_store): Likewise.
4921 (arm_copy_extra_ld_st): Likewise.
4922 (install_load_store): Likewise.
4923 (thumb2_copy_load_literal): Likewise.
4924 (thumb2_copy_load_reg_imm): Likewise.
4925 (arm_copy_ldr_str_ldrb_strb): Likewise.
4926 (cleanup_block_load_all): Likewise.
4927 (cleanup_block_store_pc): Likewise.
4928 (cleanup_block_load_pc): Likewise.
4929 (arm_copy_block_xfer): Likewise.
4930 (thumb2_copy_block_xfer): Likewise.
4931 (cleanup_svc): Likewise.
4932 (install_svc): Likewise.
4933 (arm_copy_svc): Likewise.
4934 (thumb_copy_svc): Likewise.
4935 (arm_copy_undef): Likewise.
4936 (thumb_32bit_copy_undef): Likewise.
4937 (arm_copy_unpred): Likewise.
4938 (arm_decode_misc_memhint_neon): Likewise.
4939 (arm_decode_unconditional): Likewise.
4940 (arm_decode_miscellaneous): Likewise.
4941 (arm_decode_dp_misc): Likewise.
4942 (arm_decode_ld_st_word_ubyte): Likewise.
4943 (arm_decode_media): Likewise.
4944 (arm_decode_b_bl_ldmstm): Likewise.
4945 (arm_decode_ext_reg_ld_st): Likewise.
4946 (thumb2_decode_dp_shift_reg): Likewise.
4947 (thumb2_decode_ext_reg_ld_st): Likewise.
4948 (arm_decode_svc_copro): Likewise.
4949 (thumb2_decode_svc_copro): Likewise.
4950 (install_pc_relative): Likewise.
4951 (thumb_copy_pc_relative_16bit): Likewise.
4952 (thumb_decode_pc_relative_16bit): Likewise.
4953 (thumb_copy_pc_relative_32bit): Likewise.
4954 (thumb_copy_16bit_ldr_literal): Likewise.
4955 (thumb_copy_cbnz_cbz): Likewise.
4956 (thumb2_copy_table_branch): Likewise.
4957 (cleanup_pop_pc_16bit_all): Likewise.
4958 (thumb_copy_pop_pc_16bit): Likewise.
4959 (thumb_process_displaced_16bit_insn): Likewise.
4960 (decode_thumb_32bit_ld_mem_hints): Likewise.
4961 (thumb_process_displaced_32bit_insn): Likewise.
4962 (thumb_process_displaced_insn): Likewise.
4963 (arm_process_displaced_insn): Likewise.
4964 (arm_displaced_init_closure): Likewise.
4965 (arm_displaced_step_fixup): Add cast for closure.
4966 * arm-tdep.h: Include infrun.h.
4967 (displaced_step_closure): Rename to ...
4968 (arm_displaced_step_closure): ... this, extend
4969 displaced_step_closure.
4970 <u::svc::copy_svc_os>: Change type of parameter DSC.
4971 <cleanup>: Likewise.
4972 (arm_process_displaced_insn): Likewise.
4973 (arm_displaced_init_closure): Likewise.
4974 (displaced_read_reg): Likewise.
4975 (displaced_write_reg): Likewise.
4976 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4977 Adjust.
4978 * i386-tdep.h: Include infrun.h.
4979 (i386_displaced_step_closure): New typedef.
4980 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4981 i386_displaced_step_closure.
4982 (i386_displaced_step_fixup): Adjust.
4983 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4984 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4985 and unique_ptr.
4986 (ppc_displaced_step_fixup): Adjust.
4987 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4988 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4989 and unique_ptr.
4990 (s390_displaced_step_fixup): Adjust.
4991
b392b304
SM
49922017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4993
4994 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4995 Remove declarations.
4996
d5833c62
TT
49972017-10-20 Tom Tromey <tom@tromey.com>
4998
4999 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
5000 std::vector.
5001 (gdb_bfd_record_inclusion): Update.
5002 (bfdp): Remove typedef.
5003
06d5bbc8
TT
50042017-10-20 Tom Tromey <tom@tromey.com>
5005
5006 * gdb_bfd.c (gdb_bfd_ref): Use new.
5007 (struct gdb_bfd_data): Add constructor, destructor, and member
5008 initializers.
5009 (gdb_bfd_unref): Use delete.
5010
2712ce2e
TT
50112017-10-20 Tom Tromey <tom@tromey.com>
5012
5013 * exec.c (exec_file_attach): Use new_bfd_ref.
5014 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
5015 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5016 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
5017 new_bfd_ref.
5018 * gdb_bfd.h (new_bfd_ref): New function.
5019
fcc8fb2f
PA
50202017-10-20 Pedro Alves <palves@redhat.com>
5021
5022 * main.c (captured_command_loop): Add attribute noinline.
5023
4c2287b0
SM
50242017-10-19 Simon Marchi <simon.marchi@ericsson.com>
5025
5026 * interps.c (struct interp_factory): Add constructor.
5027 (interp_factory_p): Remove typedef.
5028 (DEF_VEC_P(interp_factory_p)): Remove.
5029 (interpreter_factories): Change type to std::vector.
5030 (interp_factory_register): Adjust.
5031 (interp_lookup): Adjust.
5032 (interpreter_completer): Adjust.
5033
3d415c26
TT
50342017-10-19 Tom Tromey <tom@tromey.com>
5035
5036 * break-catch-syscall.c (catch_syscall_completer): Use
5037 std::string, gdb::unique_xmalloc_ptr.
5038
395423c4
TT
50392017-10-19 Tom Tromey <tom@tromey.com>
5040
5041 * infcall.c (call_function_by_hand_dummy): Use std::string.
5042
54f70bc1
TT
50432017-10-19 Tom Tromey <tom@tromey.com>
5044
5045 * mi/mi-main.c (mi_cmd_execute): Update.
5046 * top.h (prepare_execute_command): Return scoped_value_mark.
5047 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
5048 Add move constructor.
5049 * top.c (prepare_execute_command): Return scoped_value_mark.
5050 (execute_command): Update.
5051
63929e84
PA
50522017-10-19 Pedro Alves <palves@redhat.com>
5053
5054 * xml-support.c (xml_fetch_content_from_file): Check fread's
5055 return.
5056
a75868f5
PA
50572017-10-19 Pedro Alves <palves@redhat.com>
5058
5059 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
5060 async.
5061 (handle_error_fd): New function.
5062 (ser_base_async): Add/delete an event loop file handler for
5063 error_fd.
5064
2edf834e
PA
50652017-10-19 Pedro Alves <palves@redhat.com>
5066
5067 * xml-support.c (xml_fetch_content_from_file): Don't read in
5068 chunks. Instead use fseek to determine the file's size, and read
5069 it in one go.
5070
c8ba13ad
KS
50712017-11-18 Keith Seitz <keiths@redhat.com>
5072
5073 * c-exp.y (oper): Canonicalize conversion operators of user-defined
5074 types.
5075 Add whitespace to front of type name.
5076
37534686
KS
50772017-10-18 Keith Seitz <keiths@redhat.com>
5078
5079 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
5080 DW_AT_accessibility.
5081
28c7c158
YQ
50822017-10-18 Yao Qi <yao.qi@linaro.org>
5083
5084 * features/tic6x-c62x-linux.c: Remove.
5085
30f0b101
TT
50862017-10-17 Tom Tromey <tom@tromey.com>
5087
5088 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
5089 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
5090 (do_mixed_source_and_assembly): Likewise.
5091
57e12da9
TT
50922017-10-17 Tom Tromey <tom@tromey.com>
5093
5094 * regcache.c (regcache::xfer_part): Remove assertion.
5095
7b700999
PA
50962017-10-17 Pedro Alves <palves@redhat.com>
5097
5098 * xml-support.c (xml_fetch_content_from_file): Call
5099 unique_ptr::release() instead unique_ptr::get() when passing
5100 through xrealloc.
5101
d3037ba6
YQ
51022017-10-17 Yao Qi <yao.qi@linaro.org>
5103
5104 * regcache.c (regcache::xfer_part): Remove parameters read and
5105 write, add parameter is_raw. All callers are updated.
5106
83d5a34d
KS
51072017-10-16 Keith Seitz <keiths@redhat.com>
5108
5109 * c-typeprint.c (enum access_specifier): Moved here from
5110 c_type_print_base.
5111 (output_access_specifier): New function.
5112 (c_type_print_base): Consider typedefs when assessing
5113 whether access labels are needed.
5114 Use output_access_specifier as needed.
5115 Output access specifier for typedefs, if needed.
5116 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
5117 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
5118 fields.
5119 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
5120 accessor macros.
5121
87028b87
TT
51222017-10-16 Tom Tromey <tom@tromey.com>
5123
5124 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
5125 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
5126 * target.c (target_fileio_read_stralloc): Update.
5127 * sparc64-tdep.c (adi_is_addr_mapped): Update.
5128 * target.h (target_fileio_read_stralloc): Return
5129 unique_xmalloc_ptr.
5130
b7b030ad
TT
51312017-10-16 Tom Tromey <tom@tromey.com>
5132
5133 * xml-syscall.c (xml_init_syscalls_info): Update.
5134 * xml-support.c (xinclude_start_include): Update.
5135 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
5136 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
5137 (xml_fetch_content_from_file): Likewise.
5138 * osdata.c (get_osdata): Update.
5139 * target.h (target_read_stralloc, target_get_osdata): Return
5140 unique_xmalloc_ptr.
5141 * solib-aix.c (solib_aix_get_library_list): Update.
5142 * solib-target.c (solib_target_current_sos): Update.
5143 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
5144 * xml-tdesc.c (fetch_available_features_from_target): Update.
5145 (target_fetch_description_xml): Update.
5146 (file_read_description_xml): Update.
5147 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
5148 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
5149 (remote_pid_to_exec_file): Update.
5150 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
5151 (target_get_osdata): Likewise.
5152
b80406ac
TT
51532017-10-16 Tom Tromey <tom@tromey.com>
5154
5155 * remote.c (remote_register_number_and_offset): Use std::vector.
5156 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
5157 (putpkt_binary): Use gdb::def_vector.
5158 (compare_sections_command): Use gdb::byte_vector.
5159
a90ecff8
TT
51602017-10-16 Tom Tromey <tom@tromey.com>
5161
5162 * ppc-linux-nat.c (hwdebug_insert_point): Use
5163 gdb::unique_xmalloc_ptr, XDUP.
5164
2dc0e219
TT
51652017-10-16 Tom Tromey <tom@tromey.com>
5166
5167 * probe.c (parse_probes): Use std::string.
5168 (info_probes_for_ops, enable_probes_command)
5169 (disable_probes_command): Remove cleanups.
5170
b05628f0
TT
51712017-10-16 Tom Tromey <tom@tromey.com>
5172
5173 * buildsym.c (block_compar): Remove.
5174 (end_symtab_get_static_block): Use std::vector.
5175
a79b1bc6
SM
51762017-10-16 Simon Marchi <simon.marchi@ericsson.com>
5177
5178 * memrange.h (struct mem_range): Define operator< and operator==.
5179 (mem_range_s): Remove.
5180 (DEF_VEC_O (mem_range_s)): Remove.
5181 (normalize_mem_ranges): Change parameter type to std::vector.
5182 * memrange.c (compare_mem_ranges): Remove.
5183 (normalize_mem_ranges): Change parameter type to std::vector,
5184 adjust to vector change.
5185 * exec.c (section_table_available_memory): Return vector, remove
5186 parameter.
5187 (section_table_read_available_memory): Adjust to std::vector
5188 change.
5189 * remote.c (remote_read_bytes): Adjust to std::vector
5190 change.
5191 * tracepoint.h (traceframe_available_memory): Change parameter
5192 type to std::vector.
5193 * tracepoint.c (traceframe_available_memory): Change parameter
5194 type to std::vector, adjust.
5195 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
5196 std::vector change.
5197 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5198 unittests/memrange-selftests.c.
5199 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
5200 * gdb/unittests/memrange-selftests.c: New file.
5201
63f0e930
PA
52022017-10-16 Pedro Alves <palves@redhat.com>
5203
5204 * elfread.c (probe_key_free): Rename range-for variable.
5205 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
5206 (find_probe_by_pc, collect_probes): Rename range-for variable.
5207
c40c7bfc
YQ
52082017-10-16 Yao Qi <yao.qi@linaro.org>
5209
5210 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
5211 * features/tic6x-c62x.c: Remove.
5212 * features/tic6x-c64x-linux.c: Remove.
5213 * features/tic6x-c64x.c: Remove.
5214 * features/tic6x-c64xp-linux.c: Remove.
5215 * features/tic6x-c64xp.c: Remove.
5216 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
5217 initialize_tdesc_tic6x_*_linux functions.
5218 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
5219 initialize_tdesc_tic6x_* functions.
5220
df27ae6a
YQ
52212017-10-16 Yao Qi <yao.qi@linaro.org>
5222
5223 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
5224 tic6x-c62x.
5225 * regformats/tic6x-c62x.dat: Remove.
5226 * regformats/tic6x-c64x.dat: Remove.
5227 * regformats/tic6x-c64xp.dat: Remove.
5228
86766165
SM
52292017-10-15 Simon Marchi <simon.marchi@ericsson.com>
5230
5231 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5232 (the !HAVE_LIBEXPAT version).
5233
824dfcc3
SM
52342017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5235
5236 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5237 const.
5238
2098b393
SM
52392017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5240
5241 * target.h: Include tracepoint.h.
5242 (enum trace_find_type): Move to tracepoint.h.
5243 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5244 * tracepoint.h: Don't include target.h
5245 (enum trace_find_type): Move from target.h.
5246 (parse_traceframe_info): Return a unique ptr.
5247 * tracepoint.c (current_traceframe_info): Change type to unique
5248 ptr.
5249 (free_traceframe_info): Remove.
5250 (clear_traceframe_info): Don't manually free
5251 current_traceframe_info.
5252 (free_result): Remove.
5253 (parse_traceframe_info): Return a unique ptr.
5254 (get_traceframe_info): Adjust to unique ptr.
5255 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5256 * remote.c (remote_traceframe_info): Return a unique ptr.
5257 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5258 ptr.
5259 * target-debug.h (target_debug_print_traceframe_info_up): New
5260 macro.
5261 * target-delegates.c: Regenerate.
5262
4cdd21a8
SM
52632017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5264
5265 * memrange.h (struct mem_range): Add constructors.
5266 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5267 std::vector<mem_range>.
5268 * tracepoint.c (free_traceframe_info): Don't manually free
5269 vector.
5270 (traceframe_info_start_memory): Adjust to vector change.
5271 (traceframe_available_memory): Likewise.
5272 * tracefile-tfile.c (build_traceframe_info): Likewise.
5273 * ctf.c (ctf_traceframe_info): Likewise.
5274
d0d292a2
SM
52752017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5276
5277 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5278 std::vector<int>.
5279 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5280 (traceframe_info_start_tvar): Adjust to vector change.
5281 (parse_traceframe_info): Allocate with new.
5282 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5283 vector change.
5284 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5285 change.
5286 tfile_traceframe_info): Allocate with new.
5287 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5288 change.
5289
8d3c73ef
SM
52902017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5291
5292 * tracepoint.c (traceframe_info): Rename to...
5293 (current_traceframe_info): ...this.
5294 (clear_traceframe_info): Adjust.
5295 (get_traceframe_info): Adjust.
5296
b129dcac
SM
52972017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5298
5299 * nat/linux-osdata.c: Include algorithm.
5300 (compare_processes): Remove.
5301 (struct pid_pgid_entry): New struct.
5302 (linux_xfer_osdata_processgroups): Use std::vector instead of
5303 XNEWVEC.
5304
af5bf4ad
SM
53052017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5306
5307 * objfiles.h: Don't include symfile.h.
5308 (struct partial_symbol): Remove forward-declaration.
5309 (struct objfile) <global_psymbols, static_psymbols>: Change type
5310 to std::vector<partial_symbol *>.
5311 * objfiles.c (objfile::objfile): Don't memset those fields.
5312 (objfile::~objfile): Don't free those fields.
5313 * psympriv.h (struct psymbol_allocation_list): Remove
5314 forward-declaration.
5315 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5316 to std::vector.
5317 (start_psymtab_common): Change parameters to std::vector.
5318 * psymtab.c: Include algorithm.
5319 (require_partial_symbols): Call shrink_to_fit.
5320 (find_pc_sect_psymbol): Adjust to vector change.
5321 (match_partial_symbol): Likewise.
5322 (lookup_partial_symbol): Likewise.
5323 (psym_relocate): Likewise.
5324 (dump_psymtab): Likewise.
5325 (recursively_search_psymtabs): Likewise.
5326 (compare_psymbols): Remove.
5327 (sort_pst_symbols): Adjust to vector change.
5328 (start_psymtab_common): Likewise.
5329 (end_psymtab_common): Likewise.
5330 (psymbol_bcache_full): De-constify return value.
5331 (add_psymbol_to_bcache): Likewise.
5332 (extend_psymbol_list): Remove.
5333 (append_psymbol_to_list): Adjust to vector change.
5334 (add_psymbol_to_list): Likewise.
5335 (init_psymbol_list): Likewise.
5336 (maintenance_info_psymtabs): Likewise.
5337 (maintenance_check_psymtabs): Likewise.
5338 * symfile.h (struct psymbol_allocation_list): Remove.
5339 * symfile.c (reread_symbols): Adjust to vector change.
5340 * dbxread.c (start_psymtab): Change type of parameters.
5341 (dbx_symfile_read): Adjust to vector change.
5342 (read_dbx_symtab): Likewise.
5343 (start_psymtab): Change type of parameters.
5344 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5345 (create_partial_symtab): Likewise.
5346 (add_partial_symbol): Likewise.
5347 (write_one_signatured_type): Likewise.
5348 (recursively_write_psymbols): Likewise.
5349 * mdebugread.c (parse_partial_symbols): Likewise.
5350 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5351 (scan_xcoff_symtab): Adjust to vector change.
5352 (xcoff_initial_scan): Likewise.
5353
3ec5942f
SM
53542017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5355
5356 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5357
2399fe6a
YQ
53582017-10-13 Yao Qi <yao.qi@linaro.org>
5359
5360 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5361 Remove s390x-*-expedite, add s390x-expedite.
5362
4bf3f4a8
YQ
53632017-10-13 Yao Qi <yao.qi@linaro.org>
5364
5365 * features/s390-gs-linux64.c: Regenerated.
5366 * features/s390x-gs-linux64.c: Regenerated.
5367
9e86da07
TT
53682017-10-13 Tom Tromey <tom@tromey.com>
5369
5370 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5371 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5372 delete.
5373 * symfile.c (symbol_file_add_with_addrs): Use new.
5374 (symbol_file_add_separate): Update comment.
5375 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5376 * jit.c (jit_object_close_impl): Use new.
5377 (jit_unregister_code): Use delete.
5378 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5379 (~objfile): Rename from free_objfile.
5380 (free_objfile_separate_debug, do_free_objfile_cleanup)
5381 (free_all_objfiles, objfile_purge_solibs): Use delete.
5382 * objfiles.h (struct objfile): Add constructor and destructor.
5383 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5384 (allocate_objfile, free_objfile): Don't declare.
5385 (struct objstats): Add initializers.
5386
c2508e90
SM
53872017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5388
5389 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5390 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5391 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5392 * gdbarch.h: Regenerate.
5393 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5394 Adjust comment.
5395 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5396 (i386_displaced_step_fixup): Adjust comment.
5397 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5398
a900ff72
TT
53992017-10-12 Tom Tromey <tom@tromey.com>
5400
5401 * prologue-value.h (pv_area::store_would_trash): Return bool.
5402 (pv_area::find_reg): Likewise.
5403 * prologue-value.c (pv_area::store_would_trash): Return bool.
5404 (pv_area::find_reg): Likewise.
5405
f7b7ed97
TT
54062017-10-12 Tom Tromey <tom@tromey.com>
5407
5408 * s390-linux-tdep.c (s390_store, s390_load)
5409 (s390_check_for_saved, s390_analyze_prologue): Update.
5410 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5411 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5412 * prologue-value.h (class pv_area): Move from prologue-value.c.
5413 Change names of members. Add constructor, destructor, member
5414 functions.
5415 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5416 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5417 (pv_area_fetch, pv_area_scan): Don't declare.
5418 * prologue-value.c (struct pv_area::area_entry): Now member of
5419 pv_area.
5420 (struct pv_area): Move to prologue-value.h.
5421 (pv_area::pv_area): Rename from make_pv_area.
5422 (pv_area::~pv_area): Rename from free_pv_area.
5423 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5424 (clear_entries, find_entry, overlaps, store_would_trash, store)
5425 (fetch, find_reg, scan): Now member of pv_area.
5426 Remove "area" argument. Update.
5427 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5428 Update.
5429 * mn10300-tdep.c (push_reg, check_for_saved)
5430 (mn10300_analyze_prologue): Update.
5431 * mep-tdep.c (is_arg_spill, check_for_saved)
5432 (mep_analyze_prologue): Update.
5433 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5434 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5435 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5436 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5437 Update.
5438 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5439 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5440
466eecee
SM
54412017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5442
5443 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5444 * linux-nat.c (linux_nat_delete_thread): New variable.
5445 (lwp_free): Invoke linux_nat_delete_thread if set.
5446 (linux_nat_set_delete_thread): New function.
5447 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5448 thread delete callback.
5449 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5450 (_initialize_arm_linux_nat): Assign thread delete callback.
5451 * s390-linux-nat.c (s390_delete_thread): New function.
5452 (_initialize_s390_nat): Assign thread delete callback.
5453 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5454 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5455 function.
5456 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5457 declaration.
5458 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5459 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5460
f71c8822
TT
54612017-10-09 Tom Tromey <tom@tromey.com>
5462
5463 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5464 std::string.
5465 * tui/tui-layout.c (enum tui_status): Use std::string.
5466
981a3fb3
TT
54672017-10-11 Tom Tromey <tom@tromey.com>
5468
5469 * gdbthread.h (thread_command): Constify.
5470 * inferior.h (detach_command): Constify.
5471 * top.h (set_history, show_history): Constify.
5472 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5473 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5474 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5475 * printcmd.c (set_command): Constify.
5476 (non_const_set_command): New function.
5477 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5478 * breakpoint.c (enable_command, disable_command, delete_command)
5479 (catch_command, tcatch_command, set_breakpoint_cmd)
5480 (show_breakpoint_cmd): Constify.
5481 * macrocmd.c (macro_command): Constify.
5482 * infcmd.c (unset_command, kill_command, detach_command)
5483 (info_proc_cmd): Constify.
5484 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5485 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5486 (info_auto_load_cmd): Constify.
5487 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5488 (unset_tdesc_cmd): Constify.
5489 * ada-lang.c (set_ada_command, show_ada_command)
5490 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5491 * guile/guile.c (set_guile_command, show_guile_command)
5492 (info_guile_command): Constify.
5493 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5494 Constify.
5495 * skip.c (skip_command): Constify.
5496 * compile/compile.c (_initialize_compile): Constify.
5497 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5498 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5499 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5500 (maint_btrace_pt_show_cmd): Constify.
5501 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5502 Constify.
5503 * python/python.c (user_show_python, user_set_python): Constify.
5504 * mips-tdep.c (set_mips_command, show_mips_command)
5505 (set_mipsfpu_command): Constify.
5506 * record-btrace.c (cmd_record_btrace_start)
5507 (cmd_set_record_btrace, cmd_show_record_btrace)
5508 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5509 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5510 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5511 Constify.
5512 * symfile.c (overlay_command): Constify.
5513 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5514 * cli/cli-logging.c (set_logging_command, show_logging_command):
5515 Constify.
5516 * cli/cli-dump.c (dump_command, append_command)
5517 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5518 (tekhex_dump_command, binary_dump_command)
5519 (binary_append_command): Constify.
5520 * cli/cli-decode.c (struct cmd_list_element): Change type of
5521 "fun".
5522 * cli/cli-cmds.c (info_command, show_command, set_debug)
5523 (show_debug): Constify.
5524 (show_command): Add non-const overload.
5525 * top.c (set_history, show_history): Constify.
5526 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5527 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5528 * target.c (target_command): Constify.
5529 * sparc64-tdep.c (info_adi_command): Constify.
5530 * record-full.c (cmd_record_full_start): Constify.
5531 (set_record_full_command): Constify. Fix typo.
5532 (show_record_full_command): Constify.
5533 * thread.c (thread_command, thread_apply_command): Constify.
5534 * memattr.c (dummy_cmd): Constify.
5535 * value.c (function_command): Constify.
5536 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5537 * probe.c (info_probes_command): Constify.
5538 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5539 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5540 (show_thread_cmd, set_thread_default_cmd)
5541 (show_thread_default_cmd): Constify.
5542 (check_empty): Constify.
5543 * tracepoint.c (tfind_command): Constify.
5544 * cp-support.c (maint_cplus_command): Constify.
5545 * windows-tdep.c (info_w32_command): Constify.
5546 * record.c (cmd_record_start, set_record_command)
5547 (show_record_command, info_record_command, cmd_record_goto):
5548 Constify.
5549 * ravenscar-thread.c (set_ravenscar_command)
5550 (show_ravenscar_command): Constify.
5551 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5552 Constify.
5553 (add_internal_problem_command): Remove casts.
5554 * arc-tdep.c (maintenance_print_arc_command): Constify.
5555 * valprint.c (set_print, show_print, set_print_raw)
5556 (show_print_raw): Constify.
5557 * maint.c (maintenance_command, maintenance_info_command)
5558 (maintenance_print_command, maintenance_set_cmd)
5559 (maintenance_show_cmd, set_per_command_cmd)
5560 (show_per_command_cmd, maintenance_check_command): Constify.
5561 * language.c (set_check, show_check): Constify.
5562 * typeprint.c (show_print_type, set_print_type): Constify.
5563 * go32-nat.c (go32_info_dos_command): Constify.
5564
fdf44873
TT
55652017-10-11 Tom Tromey <tom@tromey.com>
5566
5567 * breakpoint.c (prepare_re_set_context): Remove.
5568 (breakpoint_re_set_one): Update. Don't use cleanups.
5569 (breakpoint_re_set): Use scoped_restore, std::string, and
5570 scoped_restore_current_language.
5571
81b1e71c
TT
55722017-10-11 Tom Tromey <tom@tromey.com>
5573
5574 * breakpoint.c (commands_command_1): Use std::string.
5575 (cleanup_executing_breakpoints): Remove.
5576 (bpstat_do_actions_1): Use scoped_restore.
5577 (bpstat_check_watchpoint): Use std::string.
5578 (decode_static_tracepoint_spec): Likewise.
5579 (break_range_command): Likewise.
5580 (watch_command_1): Likewise.
5581 (compare_breakpoints): Change argument types.
5582 (clear_command): Use std::vector.
5583 (cleanup_executing_breakpoints): Remove.
5584 (update_global_location_list): Use unique_xmalloc_ptr.
5585 (strace_command): Remove unused declaration.
5586
4f9d9906
JB
55872017-10-11 John Baldwin <jhb@FreeBSD.org>
5588
5589 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5590 * NEWS: Mention new FreeBSD/arm native configuration.
5591 * configure.host: Add arm*-*-freebsd*.
5592 * configure.nat: Likewise.
5593 * arm-fbsd-nat.c: New file.
5594
7176dfd2
JB
55952017-10-11 John Baldwin <jhb@FreeBSD.org>
5596
5597 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5598 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5599 * NEWS: Mention new FreeBSD/arm target.
5600 * configure.tgt: Add arm*-*-freebsd*.
5601 * arm-fbsd-tdep.c: New file.
5602 * arm-fbsd-tdep.h: New file.
5603
fe220226
MR
56042017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5605
5606 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5607 `gdbarch_elfcore_write_linux_prpsinfo'.
5608 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5609 method.
5610 (elf_internal_linux_prpsinfo): Remove declaration.
5611 * gdbarch.h: Regenerate.
5612 * gdbarch.c: Regenerate.
5613
a2f63b2e
MR
56142017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5615
5616 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5617 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5618
458ca1d0
PA
56192017-10-11 Pedro Alves <palves@redhat.com>
5620
5621 * breakpoint.c (reattach_breakpoints): Delete.
5622 * breakpoint.h (reattach_breakpoints): Delete.
5623
905014d7
SM
56242017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5625
5626 * symfile.c (registered_sym_fns): Make struct, not typedef.
5627 (DEF_VEC_O (registered_sym_fns)): Remove.
5628 (symtab_fns): Change type to std::vector.
5629 (add_symtab_fns): Adjust.
5630 (find_sym_fns): Adjust.
5631
56d704da
AK
56322017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5633
5634 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5635 * arc-tdep.h (arc_arch_is_em): New function.
5636 (arc_arch_is_hs): Likewise.
5637
7fa29be9
EB
56382017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5639
5640 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5641 parentheses in the declaration.
5642 (macro_lookup_inclusion): Likewise.
5643 (macro_lookup_definition): Likewise.
5644 * p-lang.h (pascal_builtin_types): Likewise.
5645 * tui/tui-data.c (tui_win_list): Likewise.
5646 * tui/tui-data.h (tui_win_list): Likewise.
5647 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5648
d9b477e3
KB
56492017-10-11 Mark Rages <markrages@gmail.com>
5650
5651 * target-memory.c (block_boundaries): Fix for block address not
5652 aligned on block size.
5653
65630365
PA
56542017-10-10 Pedro Alves <palves@redhat.com>
5655 Tom Tromey <tom@tromey.com>
5656
5657 * breakpoint.c (struct captured_breakpoint_query_args)
5658 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5659 (print_breakpoint): New.
5660 * breakpoint.h (print_breakpoint): Declare.
5661 * common/common-exceptions.h (enum return_reason): Remove
5662 references to catch_exceptions.
5663 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5664 Delete.
5665 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5666 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5667 * gdb.h: Delete.
5668 * gdbthread.h (thread_select): Declare.
5669 * mi/mi-cmd-break.c: Don't include gdb.h.
5670 (breakpoint_notify): Use print_breakpoint.
5671 * mi/mi-cmd-catch.c: Don't include gdb.h.
5672 * mi/mi-interp.c: Don't include gdb.h.
5673 (mi_print_breakpoint_for_event): New.
5674 (mi_breakpoint_created, mi_breakpoint_modified): Use
5675 mi_print_breakpoint_for_event.
5676 * mi/mi-main.c: Don't include gdb.h.
5677 (mi_cmd_thread_select): Parse the global thread ID here. Use
5678 thread_select instead of gdb_thread_select.
5679 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5680 of using gdb_list_thread_ids.
5681 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5682 FILEIO_ENOSYS here.
5683 (remote_fileio_request): Use TRY/CATCH instead of
5684 catch_exceptions.
5685 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5686 (symbol_file_add_from_memory_wrapper): Delete.
5687 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5688 * thread.c: Don't include gdb.h.
5689 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5690 (thread_alive): Use thread_select.
5691 (do_captured_thread_select): Delete, parts salvaged as ...
5692 (thread_select): ... this new function.
5693 (gdb_thread_select): Delete.
5694
bf469271
PA
56952017-10-10 Pedro Alves <palves@redhat.com>
5696 Tom Tromey <tom@tromey.com>
5697
5698 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5699 and reverse logic.
5700 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5701 No longer macros. Instead ...
5702 (enum wp_check_result): They're now values of this new
5703 enumeration.
5704 (watchpoint_check): Change return type to wp_check_result and
5705 parameter type to bpstat.
5706 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5707 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5708 catch_errors. Reverse logic of watchpoint_check call.
5709 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5710 pointer as parameter.
5711 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5712 * common/common-exceptions.c (throw_exception_sjlj): Update
5713 comments to avoid mentioning catch_errors.
5714 * exceptions.c (catch_errors): Delete.
5715 * exceptions.h: Update comments to avoid mentioning catch_errors.
5716 (catch_errors_ftype, catch_errors): Delete.
5717 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5718 (hook_stop_stub): Delete.
5719 (restore_selected_frame): Change return type to void, and
5720 parameter type to const frame_id &.
5721 (restore_infcall_control_state): Use TRY/CATCH instead of
5722 catch_errors.
5723 * main.c (captured_command_loop): Return void and remove
5724 parameter. Remove references to catch_errors.
5725 (captured_main): Use TRY/CATCH instead of catch_errors.
5726 * objc-lang.c (objc_submethod_helper_data)
5727 (find_objc_msgcall_submethod_helper): Delete.
5728 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5729 catch_errors.
5730 * record-full.c (record_full_message): Return void.
5731 (record_full_message_args, record_full_message_wrapper): Delete.
5732 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5733 instead of catch_errors.
5734 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5735 parameter type to int.
5736 * solib-darwin.c (open_symbol_file_object): Ditto.
5737 * solib-dsbt.c (open_symbol_file_object): Ditto.
5738 * solib-frv.c (open_symbol_file_object): Ditto.
5739 * solib-svr4.c (open_symbol_file_object): Ditto.
5740 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5741 * solib.c (update_solib_list): Use TRY/CATCH instead of
5742 catch_errors.
5743 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5744 Change type.
5745 * symmisc.c (struct print_symbol_args): Remove.
5746 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5747 (print_symbol): Change type.
5748 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5749 and remove parameters.
5750 (catch_errors): New.
5751 (get_windows_debug_event): Adjust.
5752
1a56bfa5
TT
57532017-10-09 Tom Tromey <tom@tromey.com>
5754
5755 * mi/mi-main.c (free_splay_tree): Remove.
5756 (list_available_thread_groups): Use splay_tree_up.
5757 * common/gdb_splay_tree.h: New file.
5758
0c478e2d
TT
57592017-10-09 Tom Tromey <tom@tromey.com>
5760
5761 * mi/mi-main.c (do_nothing): Remove.
5762 (list_available_thread_groups): Update.
5763
cbd2b4e3
PA
57642017-10-09 Pedro Alves <palves@redhat.com>
5765
5766 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5767 reading registers when switching context.
5768
a181c0bf
JB
57692017-10-09 John Baldwin <jhb@FreeBSD.org>
5770
5771 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5772 (fbsd_convert_siginfo): Likewise.
5773 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5774
6e66f753
SM
57752017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5776
5777 * configure.ac (try_guile_versions): Remove guile-2.2.
5778 * configure: Regenerate.
5779
890e9790
TT
57802017-10-09 Tom Tromey <tom@tromey.com>
5781
5782 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5783 (COMPILE.pre): Use $(CXX).
5784
109483d9
PA
57852017-10-09 Pedro Alves <palves@redhat.com>
5786
5787 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5788 Use bool.
5789 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5790 * cp-support.h (cp_remove_params): Now returns a
5791 gdb::unique_xmalloc_ptr.
5792 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5793 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5794 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5795 returning a gdb::unique_xmalloc_ptr.
5796 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5797 * stack.c (find_frame_funname): Adjust to cp_remove_params
5798 returning a gdb::unique_xmalloc_ptr.
5799
791afaa2
TT
58002017-10-08 Tom Tromey <tom@tromey.com>
5801
5802 * dwarf2read.c (dwarf2_get_dwz_file): Use
5803 gdb::unique_xmalloc_ptr.
5804 (find_slot_in_mapped_hash): Likewise.
5805 (dwarf2_physname): Likewise.
5806 (create_dwo_unit_in_dwp_v1): Use std::string.
5807 (create_dwo_unit_in_dwp_v2): Likewise.
5808 (lookup_dwo_cutu): Likewise.
5809 (inherit_abstract_dies): Use std::vector.
5810 (read_array_type): Likewise.
5811 (dwarf_decode_macros): Remove unused declaration.
5812 (unsigned_int_compar): Remove.
5813 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5814 (psymtabs_addrmap_cleanup): Remove.
5815
30a9c02f
TT
58162017-10-08 Tom Tromey <tom@tromey.com>
5817
5818 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5819 * frame.h (frame_cleanup_after_sniffer): Declare.
5820 (frame_prepare_for_sniffer): Return void.
5821 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5822 type of argument.
5823 (frame_prepare_for_sniffer): Return void.
5824
757325a3
TT
58252017-10-08 Tom Tromey <tom@tromey.com>
5826
5827 * utils.h (make_cleanup_value_free): Remove.
5828 * utils.c (do_value_free, struct cleanup): Remove.
5829 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5830 Use gdb_value_up.
5831 * value.h (struct value_deleter): New.
5832 (gdb_value_up): New typedef.
5833
b9c04fb2
TT
58342017-10-08 Tom Tromey <tom@tromey.com>
5835
5836 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5837 (make_cleanup_free_search_symbols): Remove.
5838 (search_symbols): Return std::vector.
5839 (symbol_search::compare_search_syms): Now member of
5840 symbol_search. Change arguments.
5841 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5842 (symtab_symbol_info, rbreak_command): Update.
5843 * symtab.h (struct symbol_search) <next>: Remove.
5844 Add constructors.
5845 (symbol_search::operator<): New function.
5846 (symbol_search::operator==): New function.
5847 (search_symbols): Remove std::vector.
5848 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5849 (symbol_search::compare_search_syms): Declare.
5850
0d28b0a5
YQ
58512017-10-06 Yao Qi <yao.qi@linaro.org>
5852
5853 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5854 arch/aarch64-insn.o.
5855 Remove one rule.
5856 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5857
71917808
YQ
58582017-10-06 Yao Qi <yao.qi@linaro.org>
5859
5860 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5861 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5862 arch/arm-linux.o respectively.
5863 * configure.tgt: Likewise.
5864
2081b2b2
YQ
58652017-10-06 Yao Qi <yao.qi@linaro.org>
5866
5867 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5868 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5869
a1b85d28
PA
58702017-10-06 Pedro Alves <palves@redhat.com>
5871
5872 * windows-nat.c: Include <algorithm>.
5873
d97987e2
YQ
58742017-10-06 Yao Qi <yao.qi@linaro.org>
5875
5876 * configure.tgt (i386_tobjs): New variable.
5877 (amd64_tobjs): New variable.
5878 Set $cpu_obs and $os_obs.
5879
f38307f5
YQ
58802017-10-06 Yao Qi <yao.qi@linaro.org>
5881
5882 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5883 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5884 (clean): Remove object files and dependency files.
5885 (distclean): Remove the directory.
5886 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5887 * configure: Re-generated.
5888 * configure.tgt: Replace amd64.o with arch/amd64.o.
5889
2f924de6
JM
58902017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5891
5892 PR build/22188
5893 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5894 and SETEND.
5895
2fd9d7ca
PA
58962017-10-05 Pedro Alves <palves@redhat.com>
5897
5898 * linux-nat.c (linux_child_follow_fork): When following the parent
5899 and detaching the child, consult the parent thread's architecture
5900 instead of the child's.
5901
d13b8493
UW
59022017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5903
5904 * ax.h: Do not include "doublest.h".
5905 (union agent_val): Remove.
5906
3b4b2f16
UW
59072017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5908
5909 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5910 (decimal_to_string): Return std::string object.
5911 (decimal_from_string): Accept std::string object. Return bool.
5912 (decimal_from_integral, decimal_from_doublest): Remove.
5913 (decimal_from_longest): Add prototype.
5914 (decimal_from_ulongest): Likewise.
5915 (decimal_to_longest): Likewise.
5916 (decimal_from_doublest): Likewise.
5917 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5918 (MAX_DECIMAL_STRING): Move here.
5919 (decimal_to_string): Return std::string object.
5920 (decimal_from_string): Accept std::string object. Return bool.
5921 (decimal_from_integral): Remove, replace by ...
5922 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5923 (decimal_to_longest): New function.
5924 (decimal_from_floating): Remove, replace by ...
5925 (decimal_from_doublest): ... this new function.
5926 (decimal_to_doublest): Update to new decimal_to_string interface.
5927
5928 * value.c (unpack_long): Use decimal_to_longest.
5929 * valops.c (value_cast): Use decimal_from_doublest instead of
5930 decimal_from_floating. Use decimal_from_[u]longest isntead of
5931 decimal_from_integral.
5932 * valarith.c (value_args_as_decimal): Likewise.
5933 * valprint.c (print_decimal_floating): Update to new
5934 decimal_to_string interface.
5935 * printcmd.c (printf_decfloat): Likewise.
5936 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5937
1841ee5d
UW
59382017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5939
5940 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5941 * gdbtypes.c: Include "floatformat.h".
5942 * value.c: Likewise.
5943 * m68k-tdep.c: Likewise.
5944
5945 * findvar.c: Do not include "floatformat.h".
5946 * amd64-darwin-tdep.c: Likewise.
5947 * arm-linux-tdep.c: Likewise.
5948 * i386-darwin-tdep.c: Likewise.
5949 * i387-tdep.c: Likewise.
5950 * m68k-linux-tdep.c: Likewise.
5951 * mep-tdep.c: Likewise.
5952 * mips-tdep.c: Likewise.
5953 * nios2-tdep.c: Likewise.
5954 * s390-linux-tdep.c: Likewise.
5955 * sparc-obsd-tdep.c: Likewise.
5956 * sparc-tdep.c: Likewise.
5957 * sparc64-tdep.c: Likewise.
5958 * spu-tdep.c: Likewise.
5959 * tic6x-tdep.c: Likewise.
5960 * tilegx-tdep.c: Likewise.
5961 * vax-tdep.c: Likewise.
5962 * xstormy16-tdep.c: Likewise.
5963 * xtensa-tdep.c: Likewise.
5964
5965 * top.c: Do not include "doublest.h".
5966 * aarch64-tdep.c: Likewise.
5967 * alpha-tdep.c: Likewise.
5968 * arm-linux-tdep.c: Likewise.
5969 * m68k-linux-tdep.c: Likewise.
5970 * tilegx-tdep.c: Likewise.
5971 * xstormy16-tdep.c: Likewise.
5972
a80a6471
JB
59732017-10-05 John Baldwin <jhb@FreeBSD.org>
5974
5975 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5976 (mipsn32_fbsd_sigframe): Define.
5977 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5978 for FreeBSD/mipsn32.
5979
12c4bd7f
JB
59802017-10-05 John Baldwin <jhb@FreeBSD.org>
5981
5982 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5983 AT_HWCAP.
5984
c91933e9
TG
59852017-10-05 Tristan Gingold <tgingold@free.fr>
5986
5987 * MAINTAINERS (Misc): Update my email address.
5988
5cd63fda
PA
59892017-10-04 Pedro Alves <palves@redhat.com>
5990
5991 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5992 it instead of target_gdbarch.
5993 (get_remote_state, get_remote_packet_size): Adjust
5994 get_remote_arch_state calls, passing down target_gdbarch
5995 explicitly.
5996 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5997 'gdbarch' and use it instead of target_gdbarch.
5998 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5999 passing down target_gdbarch explicitly.
6000 (struct stop_reply) <arch>: New field.
6001 (remote_parse_stop_reply): Use the stopped thread's architecture,
6002 not the current inferior's. Save the architecture in the
6003 stop_reply.
6004 (process_stop_reply): Use the stop reply's architecture.
6005 (process_g_packet, remote_fetch_registers)
6006 (remote_prepare_to_store, store_registers_using_G)
6007 (remote_store_registers): Adjust get_remote_arch_state calls,
6008 using the regcache's architecture.
6009 (remote_get_trace_status): Adjust get_remote_arch_state calls,
6010 passing down target_gdbarch explicitly.
6011 * spu-multiarch.c (spu_thread_architecture): Defer to the target
6012 beneath instead of calling target_gdbarch.
6013 * target.c (default_thread_architecture): Use the specified
6014 inferior's architecture, instead of the current inferior's
6015 architecture (via target_gdbarch).
6016
ed4227b7
PA
60172017-10-04 Pedro Alves <palves@redhat.com>
6018
6019 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
6020 case.
6021 (regcache_print): Handle !target_has_registers here instead.
6022
55b11ddf
PA
60232017-10-04 Pedro Alves <palves@redhat.com>
6024
6025 * frame.c (create_test_frame): Delete.
6026 * frame.h (create_test_frame): Delete.
6027 * gdbarch-selftests.c: Include gdbthread.h and target.h.
6028 (class regcache_test): Delete.
6029 (test_target_has_registers, test_target_has_stack)
6030 (test_target_has_memory, test_target_prepare_to_store)
6031 (test_target_store_registers): New functions.
6032 (test_target_ops): New class.
6033 (register_to_value_test): Error out if there's already a
6034 process_stratum (or higher) target pushed. Create a fuller mock
6035 environment, with mock target_ops, inferior, address space, thread
6036 and inferior_ptid.
6037 * progspace.c (struct address_space): Move to ...
6038 * progspace.h (struct address_space): ... here.
6039 * regcache.h (regcache::~regcache, regcache::raw_write)
6040 [GDB_SELF_TEST]: No longer virtual.
6041
4c71c105
SM
60422017-10-04 Simon Marchi <simon.marchi@ericsson.com>
6043
6044 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
6045
73dcd72d
PA
60462017-10-04 Pedro Alves <palves@redhat.com>
6047
6048 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
6049 out of 'between TRY and CATCH'.
6050
44704526
PA
60512017-10-04 Pedro Alves <palves@redhat.com>
6052
6053 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
6054 * common/common-exceptions.h (TRY): Open an outermost scope.
6055 Expand intro comment.
6056 (CATCH): Reindent.
6057 (END_CATCH): Close the outermost scope.
6058 * completer.c (complete_line_internal): Add missing END_CATCH.
6059
bc3b087d
SDJ
60602017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6061
6062 * NEWS (Changes since GDB 8.0): Add entry about new
6063 'set-cwd-on-gdbserver' feature.
6064 (New remote packets): Add entry for QSetWorkingDir.
6065 * common/common-inferior.h (set_inferior_cwd): New prototype.
6066 * infcmd.c (set_inferior_cwd): Remove "static".
6067 (show_cwd_command): Expand text to include remote debugging.
6068 * remote.c: Add PACKET_QSetWorkingDir.
6069 (remote_protocol_features) <QSetWorkingDir>: New entry for
6070 PACKET_QSetWorkingDir.
6071 (extended_remote_set_inferior_cwd): New function.
6072 (extended_remote_create_inferior): Call
6073 "extended_remote_set_inferior_cwd".
6074 (_initialize_remote): Call "add_packet_config_cmd" for
6075 QSetWorkingDir.
6076
d092c5a2
SDJ
60772017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6078
6079 * NEWS (New commands): Mention "set/show cwd".
6080 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
6081 "cd" command's help text.
6082 * common/common-inferior.h (get_inferior_cwd): New prototype.
6083 * infcmd.c (inferior_cwd_scratch): New global variable.
6084 (set_inferior_cwd): New function.
6085 (get_inferior_cwd): Likewise.
6086 (set_cwd_command): Likewise.
6087 (show_cwd_command): Likewise.
6088 (_initialize_infcmd): Add "set/show cwd" commands.
6089 * inferior.h (class inferior) <cwd>: New field.
6090 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
6091 (fork_inferior): Change inferior's cwd before its execution.
6092 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
6093 to CreateProcess.
6094
7da0a886
SDJ
60952017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6096
6097 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
6098 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
6099 (COMMON_OBS): Add gdb_tilde_expand.o.
6100 * common/gdb_tilde_expand.c: New file.
6101 * common/gdb_tilde_expand.h: Likewise.
6102
db8dd160
MR
61032017-10-03 Maciej W. Rozycki <macro@imgtec.com>
6104
6105 * gdbarch.sh (objfile): Remove duplicate declaration.
6106 * gdbarch.h: Regenerate.
6107
f8bfbf22
TT
61082017-10-03 Tom Tromey <tom@tromey.com>
6109
6110 * utils.c (internal_vproblem): Use string_vprintf.
6111
5178ed48
TT
61122017-10-03 Tom Tromey <tom@tromey.com>
6113
6114 * printcmd.c (info_symbol_command): Use std::string.
6115
8cff8730
TT
61162017-10-03 Tom Tromey <tom@tromey.com>
6117
6118 * top.c (gdb_safe_append_history): Use std::string.
6119
895b8f30
TT
61202017-10-03 Tom Tromey <tom@tromey.com>
6121
6122 * event-top.c (stdin_event_handler): Update.
6123 * main.c (captured_main_1): Update.
6124 * top.h (make_delete_ui_cleanup): Remove.
6125 (struct ui): Add constructor and destructor.
6126 (new_ui, delete_ui): Remove.
6127 * top.c (make_delete_ui_cleanup): Remove.
6128 (new_ui_command): Use std::unique_ptr.
6129 (delete_ui_cleanup): Remove.
6130 (ui::ui): Rename from new_ui. Update.
6131 (free_ui): Remove.
6132 (ui::~ui): Rename from delete_ui. Update.
6133
0efef640
TT
61342017-10-03 Tom Tromey <tom@tromey.com>
6135
6136 * symfile.c (load_progress): Use gdb::byte_vector.
6137
245ad7d3
TT
61382017-10-03 Tom Tromey <tom@tromey.com>
6139
6140 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
6141 declaration.
6142 * printcmd.c (x_command): Remove unused declaration.
6143 * symfile.c (symbol_file_command): Remove unused declaration.
6144
e05550d7
TT
61452017-10-03 Tom Tromey <tom@tromey.com>
6146
6147 * utils.c (internal_vproblem): Use std::string.
6148 (defaulted_query): Likewise.
6149
b95de2b7
TT
61502017-10-03 Tom Tromey <tom@tromey.com>
6151
6152 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
6153 * top.c (execute_command_to_string): Update.
6154 * utils.c (make_cleanup_restore_page_info): Remove.
6155 (do_restore_page_info_cleanup): Remove.
6156 (set_batch_flag_and_restore_page_info):
6157 New.
6158 (make_cleanup_restore_page_info): Remove.
6159 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6160 (~set_batch_flag_and_restore_page_info): New
6161 (make_cleanup_restore_uinteger): Remove.
6162 (make_cleanup_restore_integer): Remove.
6163 (struct restore_integer_closure): Remove.
6164 (restore_integer): Remove.
6165 * utils.h (struct set_batch_flag_and_restore_page_info): New
6166 class.
6167 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6168 (make_cleanup_restore_page_info): Remove.
6169 (make_cleanup_restore_uinteger) Remove.
6170 (make_cleanup_restore_integer) Remove.
6171
07036511
TT
61722017-10-03 Tom Tromey <tom@tromey.com>
6173
6174 * record-full.h (record_full_gdb_operation_disable_set): Return
6175 scoped_restore_tmpl<int>.
6176 * infrun.c (adjust_pc_after_break): Update.
6177 (handle_signal_stop): Update.
6178 * record-full.c (record_full_gdb_operation_disable_set): Return
6179 scoped_restore_tmpl<int>.
6180 (record_full_wait_1, record_full_insert_breakpoint)
6181 (record_full_remove_breakpoint, record_full_save)
6182 (record_full_goto_insn): Update.
6183
45320ffa
TT
61842017-10-02 Tom Tromey <tom@tromey.com>
6185
6186 PR rust/22236:
6187 * rust-lang.c (rust_val_print_str): New function.
6188 (val_print_struct): Call it.
6189 (rust_subscript): Preserve name of slice type.
6190
b3e3859b
TT
61912017-10-02 Tom Tromey <tom@tromey.com>
6192
6193 * rust-lang.c (rust_subscript): Handle slices in
6194 EVAL_AVOID_SIDE_EFFECTS case.
6195
01af5e0d
TT
61962017-10-02 Tom Tromey <tom@tromey.com>
6197
6198 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
6199
888e3ddb
TT
62002017-10-02 Tom Tromey <tom@tromey.com>
6201
6202 * rust-lang.h (rust_slice_type): Add "extern".
6203
cc536b21
PA
62042017-10-02 Tom Tromey <tom@tromey.com>
6205 Pedro Alves <palves@redhat.com>
6206
6207 * ada-lang.h (ada_exc_info::operator<): Make const.
6208 (ada_exc_info::operator==): Make const.
6209 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
6210 Make const.
6211
386c8614
TT
62122017-09-29 Tom Tromey <tom@tromey.com>
6213
6214 * target.c (read_whatever_is_readable): Change type of "result".
6215 Update.
6216 (free_memory_read_result_vector): Remove.
6217 (read_memory_robust): Change return type. Update.
6218 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
6219 bin2hex, std::string.
6220 * target.h (memory_read_result_s): Remove typedef.
6221 (free_memory_read_result_vector): Remove.
6222 (read_memory_robust): Return std::vector.
6223
789c4b5e
TT
62242017-09-29 Tom Tromey <tom@tromey.com>
6225
6226 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
6227
ab816a27
TT
62282017-09-29 Tom Tromey <tom@tromey.com>
6229
6230 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6231 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6232 operator< and operator==.
6233 (ada_exceptions_list): Return a std::vector.
6234 * ada-lang.c (ada_exc_info::operator<): Rename from
6235 compare_ada_exception_info.
6236 (ada_exc_info::operator==): New.
6237 (sort_remove_dups_ada_exceptions_list): Change type of
6238 "exceptions".
6239 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6240 (ada_add_global_exceptions): Likewise.
6241 (ada_exceptions_list_1): Return a std::vector.
6242 (ada_exceptions_list): Likewise.
6243
52f9abe4
TT
62442017-09-29 Tom Tromey <tom@tromey.com>
6245
6246 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6247 'std::set *'.
6248 (print_one_inferior): Update.
6249 (free_vector_of_ints): Remove.
6250 (list_available_thread_groups): Change "ids" to std::set.
6251 (mi_cmd_list_thread_groups): Update.
6252 (struct collect_cores_data) <core>: Now a std::set.
6253 (collect_cores): Update.
6254 (unique): Remove.
6255 (print_one_inferior): Update.
6256
dcd5ddcc
TT
62572017-09-29 Tom Tromey <tom@tromey.com>
6258
6259 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6260 (mi_execute_async_cli_command): Likewise.
6261 (mi_cmd_trace_frame_collected): Use field_fmt.
6262
45d288cc
TT
62632017-09-29 Tom Tromey <tom@tromey.com>
6264
6265 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6266 gdb::byte_vector.
6267
6afe2f4a
TT
62682017-09-29 Tom Tromey <tom@tromey.com>
6269
6270 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6271
9813429a
TT
62722017-09-29 Tom Tromey <tom@tromey.com>
6273
6274 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6275
2d6960b4
TT
62762017-09-29 Tom Tromey <tom@tromey.com>
6277
6278 * varobj.h (varobj_gen_name): Return std::string.
6279 * varobj.c (varobj_gen_name): Return std::string.
6280 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6281 (mi_cmd_var_delete): Don't copy "name".
6282
784c453a
TT
62832017-09-29 Tom Tromey <tom@tromey.com>
6284
6285 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6286 (mi_cmd_break_insert_1): Update.
6287
a9bc57b9
TT
62882017-09-29 Tom Tromey <tom@tromey.com>
6289
6290 * target.h (make_scoped_defer_target_commit_resume): Update.
6291 * target.c (make_scoped_defer_target_commit_resume): Rename from
6292 make_cleanup_defer_target_commit_resume. Return a
6293 scoped_restore.
6294 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6295
9754d8c4
TT
62962017-09-29 Tom Tromey <tom@tromey.com>
6297
6298 * main.c (captured_main_1): Remove unused declaration.
6299 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6300
99ef965c
TT
63012017-09-29 Tom Tromey <tom@tromey.com>
6302
6303 * symtab.c (search_symbols): Remove unused outer cleanup.
6304 (make_source_files_completion_list): Remove unused declaration.
6305
42518ba7
TT
63062017-09-29 Tom Tromey <tom@tromey.com>
6307
6308 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6309
726b2169
TT
63102017-09-29 Tom Tromey <tom@tromey.com>
6311
6312 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6313 gdb::byte_vector.
6314
55b06432
TT
63152017-09-29 Tom Tromey <tom@tromey.com>
6316
6317 * complaints.c (vcomplaint): Use std::string.
6318
8abcee91
TT
63192017-09-29 Tom Tromey <tom@tromey.com>
6320
6321 * tracepoint.c (trace_variable_command): Use std::string.
6322 (encode_actions_1): Remove unused declarations.
6323 (create_tsv_from_upload): Use std::string.
6324
6ad94bc7
TT
63252017-09-29 Tom Tromey <tom@tromey.com>
6326
6327 * cp-support.c (gdb_demangle): Use std::string.
6328
2003f3d8
TT
63292017-09-29 Tom Tromey <tom@tromey.com>
6330
6331 * stack.c (parse_frame_specification): Use std::string
6332 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6333
8f8accb5
TT
63342017-09-29 Tom Tromey <tom@tromey.com>
6335
6336 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6337
200aa7b1
TT
63382017-09-29 Tom Tromey <tom@tromey.com>
6339
6340 * utils.c (vfprintf_maybe_filtered): Use std::string.
6341 (vfprintf_unfiltered): Likewise.
6342
606aae8a
TT
63432017-09-29 Tom Tromey <tom@tromey.com>
6344
6345 * event-top.c (top_level_prompt): Return std::string.
6346 (display_gdb_prompt): Update.
6347
bd413795
TT
63482017-09-29 Tom Tromey <tom@tromey.com>
6349
6350 * unittests/common-utils-selftests.c (format): New function.
6351 (string_vprintf_tests): New function.
6352 (_initialize_common_utils_selftests): Register new tests.
6353 * common/common-utils.c (string_vprintf): New function.
6354 * common/common-utils.h (string_vprintf): Declare.
6355
256642e8
PA
63562017-09-29 Pedro Alves <palves@redhat.com>
6357
6358 * common/rsp-low.c (unpack_varlen_hex): Constify.
6359 * common/rsp-low.h (unpack_varlen_hex): Constify.
6360 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6361 Constify.
6362 * remote.c (remote_set_permissions, read_ptid)
6363 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6364 (remote_static_tracepoint_marker_at)
6365 (remote_static_tracepoint_markers_by_strid)
6366 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6367 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6368 (parse_tracepoint_definition, parse_tsv_definition)
6369 (parse_static_tracepoint_marker_definition): Constify.
6370 * tracepoint.h (parse_static_tracepoint_marker_definition)
6371 (parse_trace_status, parse_tracepoint_status)
6372 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6373
b6bb3468
PA
63742017-09-29 Pedro Alves <palves@redhat.com>
6375
6376 * remote.c (target_buf, target_buf_size): Delete.
6377 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6378 Use the connection's packet buffer instead.
6379 All callers adjusted.
6380 (_initialize_remote): Remove references to target_buf and
6381 target_buf_size.
6382
b2f8eb7a
PA
63832017-09-28 Pedro Alves <palves@redhat.com>
6384
6385 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6386 unittests/common-utils-selftests.c.
6387 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6388 (COMMON_OBS): Remove utils-selftests.o.
6389 * utils-selftests.c: Move to ...
6390 * unittests/common-utils-selftests.c: ... here and rename self
6391 test to "string_printf".
6392
08302ed2
DE
63932017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6394
6395 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6396 having NULL cus or tus.
6397
96a5a1d3
UW
63982017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6399
6400 * arm-tdep.c: (convert_from_extended): Remove.
6401 (convert_to_extended): Likewise.
6402 (arm_extract_return_value): Use convert_typed_floating.
6403 (arm_store_return_value): Likewise.
6404
6405 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6406 * sh-tdep.c: Do not include "floatformat.h".
6407 (sh_littlebyte_bigword_type): New function.
6408 (sh_register_convert_to_virtual): Use convert_typed_floating.
6409 (sh_register_convert_to_raw): Likewise.
6410 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6411 (sh64_littlebyte_bigword_type): New function.
6412 (sh64_extract_return_value): Use convert_typed_floating.
6413 (sh64_register_convert_to_virtual): Likewise.
6414 (sh64_register_convert_to_raw): Likewise.
6415
0db7851f
UW
64162017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6417
6418 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6419 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6420
6421 * gdbtypes.h (union type_specific): Make field floatformat hold
6422 just a single struct floatformat, not an array.
6423 (floatformat_from_type): Move here.
6424 * gdbtypes.c (floatformat_from_type): Move here. Update to
6425 changed TYPE_FLOATFORMAT definition.
6426 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6427 (recursive_dump_type): Likewise.
6428 (init_float_type): Install correct floatformat for byte order.
6429 (arch_float_type): Likewise.
6430
77b7c781
UW
64312017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6432
6433 * gdbtypes.c (init_type): Change incoming argument from
6434 length-in-bytes to length-in-bits. Assert length is a
6435 multiple of TARGET_CHAR_BITS.
6436 (arch_type, arch_flags_type): Likewise.
6437 (init_integer_type): Update call to init_type.
6438 (init_character_type): Likewise.
6439 (init_boolean_type): Likewise.
6440 (init_float_type): Likewise.
6441 (init_decfloat_type): Likewise.
6442 (init_complex_type): Likewise.
6443 (init_pointer_type): Likewise.
6444 (objfile_type): Likewise.
6445 (arch_integer_type): Update call to arch_type.
6446 (arch_character_type): Likewise.
6447 (arch_boolean_type): Likewise.
6448 (arch_float_type): Likewise.
6449 (arch_decfloat_type): Likewise.
6450 (arch_complex_type): Likewise.
6451 (arch_pointer_type): Likewise.
6452 (gdbtypes_post_init): Likewise.
6453
6454 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6455 (read_base_type): Likewise.
6456 * mdebugread.c (basic_type): Likewise.
6457 * stabsread.c (dbx_init_float_type): Likewise.
6458 (rs6000_builtin_type): Likewise.
6459 (read_range_type): Likewise. Also, fix call to init_integer_type
6460 with erroneous length argument.
6461
6462 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6463 * d-lang.c (build_d_types): Likewise.
6464 * f-lang.c (build_fortran_types): Likewise.
6465 * go-lang.c (build_go_types): Likewise.
6466 * opencl-lang.c (build_opencl_types): Likewise.
6467 * jit.c (finalize_symtab): Likewise.
6468 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6469 (build_std_type_info_type): Likewise.
6470 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6471 update call to arch_flags_type.
6472
6473 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6474 arch_type.
6475 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6476 * windows-tdep.c (windows_get_tlb_type): Likewise.
6477
6478 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6479 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6480 * m32c-tdep.c (make_types): Likewise.
6481 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6482 (rl78_psw_type): Update call to arch_flags_type.
6483 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6484 * rx-tdep.c (rx_psw_type): Likewise.
6485 (rx_fpsw_type): Likewise.
6486 * sparc-tdep.c (sparc_psr_type): Likewise.
6487 (sparc_fsr_type): Likewise.
6488 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6489 (sparc64_ccr_type): Likewise.
6490 (sparc64_fsr_type): Likewise.
6491 (sparc64_fprs_type): Likewise.
6492
f21b4d5c
TT
64932017-09-27 Tom Tromey <tom@tromey.com>
6494
6495 * findcmd.c (find_command): Constify.
6496
643c2ffa
TT
64972017-09-27 Tom Tromey <tom@tromey.com>
6498
6499 * ada-tasks.c (task_command_1, task_command): Constify.
6500
510e5e56
TT
65012017-09-27 Tom Tromey <tom@tromey.com>
6502
6503 * symtab.c (maintenance_print_symbol_cache)
6504 (maintenance_flush_symbol_cache)
6505 (maintenance_print_symbol_cache_statistics): Constify.
6506
e503b191
TT
65072017-09-27 Tom Tromey <tom@tromey.com>
6508
6509 * inferior.c (detach_inferior_command, kill_inferior_command)
6510 (inferior_command): Constify.
6511
4e001312
TT
65122017-09-27 Tom Tromey <tom@tromey.com>
6513
6514 * regcache.c (regcache_print, maintenance_print_registers)
6515 (maintenance_print_raw_registers)
6516 (maintenance_print_cooked_registers)
6517 (maintenance_print_register_groups)
6518 (maintenance_print_remote_registers): Constify.
6519
77763700
TT
65202017-09-27 Tom Tromey <tom@tromey.com>
6521
6522 * printcmd.c (map_display_numbers, undisplay_command)
6523 (enable_disable_display_command, enable_display_command)
6524 (disable_display_command): Constify.
6525
4495129a
TT
65262017-09-27 Tom Tromey <tom@tromey.com>
6527
6528 * breakpoint.h (delete_command): Don't declare.
6529 * breakpoint.c (delete_command, enable_once_command)
6530 (enable_count_command, enable_delete_command, breakpoint_1)
6531 (maintenance_info_breakpoints, stopin_command, stopat_command)
6532 (delete_command, delete_trace_command, save_breakpoints)
6533 (save_breakpoints_command, save_tracepoints_command): Constify.
6534
3088cf40
TT
65352017-09-27 Tom Tromey <tom@tromey.com>
6536
6537 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6538 (skip_ws, extract_identifier, macro_define_command)
6539 (macro_undef_command, macro_list_command): Constify.
6540
69f476a3
TT
65412017-09-27 Tom Tromey <tom@tromey.com>
6542
6543 * infcmd.c (environment_info, set_environment_command)
6544 (unset_environment_command, path_info, info_proc_cmd_1)
6545 (info_proc_cmd_mappings, info_proc_cmd_stat)
6546 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6547 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6548
c4a3e68e
TT
65492017-09-27 Tom Tromey <tom@tromey.com>
6550
6551 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6552 Constify.
6553
c9d31bd6
TT
65542017-09-27 Tom Tromey <tom@tromey.com>
6555
6556 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6557
1f3f85eb
TT
65582017-09-27 Tom Tromey <tom@tromey.com>
6559
6560 * demangle.c (demangle_command): Constify.
6561
9c504b5d
TT
65622017-09-27 Tom Tromey <tom@tromey.com>
6563
6564 * progspace.c (maintenance_info_program_spaces_command):
6565 Constify.
6566
6663cf91
TT
65672017-09-27 Tom Tromey <tom@tromey.com>
6568
6569 * compile/compile.c (check_raw_argument, compile_file_command)
6570 (compile_code_command, compile_print_command): Constify.
6571
34e5fa26
TT
65722017-09-27 Tom Tromey <tom@tromey.com>
6573
6574 * reggroups.c (maintenance_print_reggroups): Constify.
6575
8384c356
TT
65762017-09-27 Tom Tromey <tom@tromey.com>
6577
6578 * dwarf2read.c (save_gdb_index_command): Constify.
6579
884beb0c
TT
65802017-09-27 Tom Tromey <tom@tromey.com>
6581
6582 * stap-probe.c (info_probes_stap_command): Constify.
6583
e0b2930c
TT
65842017-09-27 Tom Tromey <tom@tromey.com>
6585
6586 * fork-child.c (unset_exec_wrapper_command): Constify.
6587
f938677d
TT
65882017-09-27 Tom Tromey <tom@tromey.com>
6589
6590 * btrace.c (get_uint, get_context_size, no_chunk)
6591 (maint_btrace_packet_history_cmd)
6592 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6593 (maint_info_btrace_cmd): Constify.
6594
8949cb87
TT
65952017-09-27 Tom Tromey <tom@tromey.com>
6596
6597 * reverse.c (delete_bookmark_command): Constify.
6598
ac88e2de
TT
65992017-09-27 Tom Tromey <tom@tromey.com>
6600
6601 * remote.c (set_memory_packet_size)
6602 (set_memory_write_packet_size, show_memory_write_packet_size)
6603 (set_memory_read_packet_size, show_memory_read_packet_size)
6604 (compare_sections_command, packet_command, remote_put_command)
6605 (remote_get_command, remote_delete_command): Constify.
6606
bd4c9dfe
TT
66072017-09-27 Tom Tromey <tom@tromey.com>
6608
6609 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6610 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6611 (set_mipsfpu_auto_command): Constify.
6612
5e93d4c6
TT
66132017-09-27 Tom Tromey <tom@tromey.com>
6614
6615 * cli/cli-cmds.h (cd_command): Constify.
6616 * cli/cli-cmds.c (cd_command): Constify.
6617
fc41a75b
TT
66182017-09-27 Tom Tromey <tom@tromey.com>
6619
6620 * thread.c (thread_name_command, thread_find_command): Constify.
6621
67810076
TT
66222017-09-27 Tom Tromey <tom@tromey.com>
6623
6624 * probe.c (enable_probes_command, disable_probes_command):
6625 Constify.
6626
1d8b34a7
TT
66272017-09-27 Tom Tromey <tom@tromey.com>
6628
6629 * symfile.c (symbol_file_command): Constify.
6630 * gdbcore.h (deprecated_file_changed_hook): Constify.
6631 * exec.c (deprecated_file_changed_hook, exec_file_command)
6632 (file_command): Constify.
6633 * defs.h (symbol_file_command): Constify.
6634
442019e1
TT
66352017-09-27 Tom Tromey <tom@tromey.com>
6636
6637 * remote-fileio.c (set_system_call_allowed)
6638 (show_system_call_allowed): Constify.
6639
2983f7cb
TT
66402017-09-27 Tom Tromey <tom@tromey.com>
6641
6642 * tracepoint.c (delete_trace_variable_command)
6643 (tfind_end_command, tfind_start_command, tfind_pc_command)
6644 (tfind_tracepoint_command, tfind_line_command)
6645 (tfind_range_command, tfind_outside_command): Constify.
6646
4fd41b24
TT
66472017-09-27 Tom Tromey <tom@tromey.com>
6648
6649 * ax-gdb.c (maint_agent_printf_command, agent_command)
6650 (agent_eval_command): Constify.
6651
f2fc3015
TT
66522017-09-27 Tom Tromey <tom@tromey.com>
6653
6654 * tracepoint.c (info_scope_command): Constify.
6655 * python/python.c (gdbpy_decode_line): Constify.
6656 * python/py-breakpoint.c (bppy_init): Constify.
6657 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6658 * location.h: (new_linespec_location)
6659 (string_to_event_location_basic, string_to_event_location):
6660 Constify.
6661 * location.c (new_linespec_location)
6662 (string_to_event_location_basic, string_to_event_location):
6663 Constify.
6664 * linespec.h (decode_line_with_current_source)
6665 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6666 * linespec.c (linespec_lex_to_end)
6667 (decode_line_with_current_source)
6668 (decode_line_with_last_displayed): Constify.
6669 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6670 Constify.
6671 * cli/cli-cmds.c (edit_command, list_command): Constify.
6672 * breakpoint.h (until_break_command, watch_command_wrapper)
6673 (awatch_command_wrapper, rwatch_command_wrapper)
6674 (init_ada_exception_breakpoint): Constify.
6675 * breakpoint.c (break_command_1, dprintf_command)
6676 (break_range_command, watch_command_wrapper)
6677 (rwatch_command_wrapper, awatch_command_wrapper)
6678 (until_break_command, init_ada_exception_breakpoint)
6679 (strace_marker_create_sals_from_location, trace_command)
6680 (ftrace_command, strace_command, struct tracepoint): Constify.
6681 * ax-gdb.c (agent_command_1): Constify.
6682 * ada-lang.c (ada_exception_sal): Constify.
6683
8c2f95f4
TT
66842017-09-27 Tom Tromey <tom@tromey.com>
6685
6686 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6687 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6688 (get_context_size, no_chunk, get_insn_history_modifiers)
6689 (cmd_record_insn_history, get_call_history_modifiers)
6690 (cmd_record_call_history): Constify.
6691
a0d65762
TT
66922017-09-27 Tom Tromey <tom@tromey.com>
6693
6694 * source.c (show_substitute_path_command)
6695 (unset_substitute_path_command, set_substitute_path_command):
6696 Constify.
6697
58971144
TT
66982017-09-27 Tom Tromey <tom@tromey.com>
6699
6700 * typeprint.c (maintenance_print_type): Constify.
6701 * maint.c (maintenance_dump_me, maintenance_demangle)
6702 (maintenance_time_display, maintenance_info_sections)
6703 (maintenance_print_statistics, maintenance_deprecate)
6704 (maintenance_undeprecate): Constify.
6705 (maintenance_do_deprecate): Constify. Use std::string.
6706 (maintenance_selftest): Constify.
6707 * gdbtypes.h (maintenance_print_type): Constify.
6708
c482f52c
TT
67092017-09-27 Tom Tromey <tom@tromey.com>
6710
6711 * hppa-tdep.c (unwind_command): Constify.
6712
e100df1a
TT
67132017-09-27 Tom Tromey <tom@tromey.com>
6714
6715 * target-descriptions.c (unset_tdesc_filename_cmd)
6716 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6717 Constify.
6718
31d56ade
TT
67192017-09-27 Tom Tromey <tom@tromey.com>
6720
6721 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6722
b961da0b
TT
67232017-09-27 Tom Tromey <tom@tromey.com>
6724
6725 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6726
e2d8ae16
TT
67272017-09-27 Tom Tromey <tom@tromey.com>
6728
6729 * tui/tui-regs.c (tui_reg_command): Constify.
6730
863779b0
TT
67312017-09-27 Tom Tromey <tom@tromey.com>
6732
6733 * skip.c (skip_file_command, skip_function_command)
6734 (skip_enable_command, skip_disable_command, skip_delete_command):
6735 Constify.
6736
cdb34d4a
TT
67372017-09-27 Tom Tromey <tom@tromey.com>
6738
6739 * record-btrace.c (cmd_record_btrace_bts_start)
6740 (cmd_record_btrace_pt_start): Constify.
6741
e99c83e7
TT
67422017-09-27 Tom Tromey <tom@tromey.com>
6743
6744 * symmisc.c (maintenance_print_symbols)
6745 (maintenance_print_msymbols, maintenance_print_objfiles)
6746 (maintenance_info_symtabs, maintenance_check_symtabs)
6747 (maintenance_expand_symtabs, maintenance_info_line_tables):
6748 Constify.
6749
32faf971
TT
67502017-09-27 Tom Tromey <tom@tromey.com>
6751
6752 * top.c (new_ui_command): Constify.
6753
2cf311eb
TT
67542017-09-27 Tom Tromey <tom@tromey.com>
6755
6756 * symfile.c (add_symbol_file_command)
6757 (remove_symbol_file_command, list_overlays_command)
6758 (map_overlay_command, unmap_overlay_command)
6759 (overlay_auto_command, overlay_manual_command)
6760 (overlay_off_command, overlay_load_command): Constify.
6761
e6738699
TT
67622017-09-27 Tom Tromey <tom@tromey.com>
6763
6764 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6765 (info_spu_mailbox_command, info_spu_dma_command)
6766 (info_spu_proxydma_command): Constify.
6767
aa360cd5
TT
67682017-09-27 Tom Tromey <tom@tromey.com>
6769
6770 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6771
898241a5
TT
67722017-09-27 Tom Tromey <tom@tromey.com>
6773
6774 * cli/cli-script.c (user_defined_command): Constify.
6775
2d0ac106
TT
67762017-09-27 Tom Tromey <tom@tromey.com>
6777
6778 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6779 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6780 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6781 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6782 (dump_binary_value, append_binary_memory, append_binary_value):
6783 Constify.
6784 (struct dump_context) <func>: Constify.
6785 (add_dump_command): Update.
6786
dede02ce
TT
67872017-09-27 Tom Tromey <tom@tromey.com>
6788
6789 * cli/cli-cmds.c (show_version, show_configuration)
6790 (source_command, show_user): Constify.
6791
d3cb6b99
TT
67922017-09-27 Tom Tromey <tom@tromey.com>
6793
6794 * target.c (maintenance_print_target_stack): Constify.
6795
1970a12f
TT
67962017-09-27 Tom Tromey <tom@tromey.com>
6797
6798 * interps.c (interpreter_exec_cmd): Constify.
6799
41243651
TT
68002017-09-27 Tom Tromey <tom@tromey.com>
6801
6802 * record-full.c (cmd_record_full_restore): Constify.
6803
4465d9db
TT
68042017-09-27 Tom Tromey <tom@tromey.com>
6805
6806 * memattr.c (enable_mem_command, disable_mem_command)
6807 (delete_mem_command): Constify.
6808
ad25e423
TT
68092017-09-27 Tom Tromey <tom@tromey.com>
6810
6811 * value.c (show_convenience): Constify.
6812
d64097b1
TT
68132017-09-27 Tom Tromey <tom@tromey.com>
6814
6815 * gdbcore.h (core_file_command): Update.
6816 * corefile.c (core_file_command): Constify.
6817
4d4589ef
TT
68182017-09-27 Tom Tromey <tom@tromey.com>
6819
6820 * user-regs.c (maintenance_print_user_registers): Constify.
6821
32a7bf17
TT
68222017-09-27 Tom Tromey <tom@tromey.com>
6823
6824 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6825
4a475551
TT
68262017-09-27 Tom Tromey <tom@tromey.com>
6827
6828 * cp-support.c (first_component_command): Constify.
6829
990b9f9f
TT
68302017-09-27 Tom Tromey <tom@tromey.com>
6831
6832 * psymtab.c (maintenance_print_psymbols)
6833 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6834 Constify.
6835
c281872e
TT
68362017-09-27 Tom Tromey <tom@tromey.com>
6837
6838 * windows-tdep.c (display_tib): Constify.
6839
5b64bf74
TT
68402017-09-27 Tom Tromey <tom@tromey.com>
6841
6842 * linux-fork.c (delete_checkpoint_command)
6843 (detach_checkpoint_command): Constify.
6844
4ada038f
TT
68452017-09-27 Tom Tromey <tom@tromey.com>
6846
6847 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6848
57f5a81b
TT
68492017-09-27 Tom Tromey <tom@tromey.com>
6850
6851 * arc-tdep.c (dump_arc_instruction_command): Constify.
6852
b0a8e6c4
TT
68532017-09-27 Tom Tromey <tom@tromey.com>
6854
6855 * valprint.c (set_radix, show_radix): Constify.
6856
8d97dc1c
TT
68572017-09-27 Tom Tromey <tom@tromey.com>
6858
6859 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6860
eb7c454d
TT
68612017-09-27 Tom Tromey <tom@tromey.com>
6862
6863 * command.h (not_just_help_class_command): Update.
6864 * cli/cli-decode.h (not_just_help_class_command): Update.
6865 * cli/cli-decode.c (not_just_help_class_command): Constify.
6866
e4e33335
TT
68672017-09-27 Tom Tromey <tom@tromey.com>
6868
6869 * gdb_bfd.c (maintenance_info_bfds): Constify.
6870
0450cc4c
TT
68712017-09-27 Tom Tromey <tom@tromey.com>
6872
6873 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6874 overloads.
6875 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6876 (do_const_cfunc): New function.
6877 (cmd_cfunc_eq): New overload.
6878 (cli_user_command_p): Check do_const_cfunc.
6879 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6880 const_cfunc.
6881 * command.h (add_cmd): Add const overload and no-function
6882 overload.
6883 (set_cmd_cfunc): Add const overload.
6884 (cmd_const_cfunc_ftype): Declare.
6885 (cmd_cfunc_eq): Add const overload.
6886 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6887 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6888 overload.
6889
a9bbfbd8
TT
68902017-09-27 Tom Tromey <tom@tromey.com>
6891
6892 * macroexp.c (get_next_token_for_substitution): New function.
6893 (substitute_args): Call it. Check for __VA_OPT__.
6894
5230b05a
WT
68952017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6896 Pedro Alves <palves@redhat.com>
6897
6898 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6899 producer_is_icc_lt_14.
6900 (producer_is_icc_lt_14): New function.
6901 (check_producer): Add code for checking version of ICC.
6902 (producer_is_icc): Move to producer.c.
6903 (read_structure_type): Restrict ICC workaround to ICC<14.
6904 * producer.c: Include selftest.h.
6905 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6906 New functions.
6907 * producer.h (producer_is_icc): New declaration.
6908
b32b108a
WT
69092017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6910
6911 * Makefile.in (SFILES): Add producer.c.
6912 (COMMON_OBS): Add producer.o
6913 * amd64-tdep.c (producer.h): Add new include.
6914 * dwarf2read.c (producer.h): Add new include.
6915 * producer.c: New file.
6916 * producer.h: New file.
6917 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6918 producer.c.
6919 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6920 producer.h.
6921
5007d765
MK
69222017-09-26 Matthias Klose <doko@ubuntu.com>
6923
6924 * configure.ac: Search ncursesw before ncurses.
6925 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6926 * gdb_curses.h: Include <ncursesw/ncurses.h>
6927 * config.in, configure: Regenerate.
6928
281c4447
RO
69292017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6930
6931 PR gdb/22185
6932 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6933 obsolete.
6934 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6935 Remove i386sol2 support.
6936 * configure.nat <i386sol2>: Remove.
6937 <sol2-64>: Fold into ...
6938 <sol2>: ... this.
6939 Move common settings to default section.
6940 Add sol-thread.o.
6941 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6942 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6943 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6944 <i[34567]86-*-solaris*>: Remove.
6945 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6946
6947 * configure.ac: Remove wctype in libw check.
6948 (_MSE_INT_H): Don't define on Solaris 7-9.
6949 <solaris*>: Remove libthread_db.so.1 check.
6950 * configure: Regenerate.
6951 * config.in: Regenerate.
6952
6953 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6954 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6955 (gdb_ps_size_t): Remove.
6956 Use base types in users.
6957 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6958
6959 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6960
39b06c20
RO
69612017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6962
6963 PR build/22206
6964 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6965 (adi_is_addr_mapped): Likewise.
6966 (PSR_ICC): Don't redefine.
6967 (PSR_IMPL): Likewise.
6968
6c3e20f1
TT
69692017-09-25 Tom Tromey <tom@tromey.com>
6970
6971 * regcache.c (regcache::dump): Use string_printf.
6972
b292235f
TT
69732017-09-25 Tom Tromey <tom@tromey.com>
6974
6975 * regcache.c (class regcache_invalidator): New.
6976 (struct register_to_invalidate): Remove.
6977 (make_cleanup_regcache_invalidate): Remove.
6978 (regcache::raw_write): Use regcache_invalidator.
6979
9ac86b52
TT
69802017-09-25 Tom Tromey <tom@tromey.com>
6981
6982 * spu-tdep.c (spu2ppu_sniffer): Update.
6983 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6984 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6985 Remove.
6986 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6987 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6988 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6989 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6990 (frame_pop): Update.
6991
c0e383c6
TT
69922017-09-25 Tom Tromey <tom@tromey.com>
6993
6994 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6995 * regcache.h (regcache_xfree): Don't declare.
6996 * regcache.c (regcache_xfree): Remove.
6997 (do_regcache_xfree): Use delete.
6998 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6999 * linux-fork.c (free_fork): Use delete.
7000 (fork_save_infrun_state): Likewise.
7001 * jit.c (jit_dealloc_cache): Use delete.
7002 * infrun.c (discard_infcall_suspend_state): Use delete.
7003
791199cc
TT
70042017-09-25 Tom Tromey <tom@tromey.com>
7005
7006 * regcache.h (regcache_xmalloc): Don't declare.
7007 (regcache_raw_set_cached_value): Update comment.
7008 * regcache.c (regcache_xmalloc): Remove.
7009 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
7010 * jit.c (jit_frame_sniffer): Use new.
7011 * frame.c (frame_save_as_regcache): Use new.
7012
289e23aa
AA
70132017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7014
7015 * NEWS: Advertise support for guarded-storage registers on IBM z.
7016
1b63490c
AA
70172017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7018
7019 * s390-linux-nat.c (have_regset_gs): New static variable.
7020 (s390_linux_fetch_inferior_registers): Handle guarded-storage
7021 control block and guarded-storage broadcast control regsets.
7022 (s390_read_description): Detect whether the target has
7023 guarded-storage support, return appropriate tdesc.
7024 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
7025 (features/s390x-gs-linux64.c): Likewise.
7026 (struct gdbarch_tdep) <have_gs>: New field.
7027 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
7028 (s390_gsbc_regset): New variables.
7029 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
7030 and s390_gsbc_regset, if applicable.
7031 (s390_core_read_description): Check whether core file was from a
7032 target with guarded-storage support; include appropriate regsets.
7033 (s390_gdbarch_init): Add registers for guarded-storage support.
7034 (_initialize_s390_tdep): Initialize new target descriptions that
7035 include registers for guarded-storage support.
7036 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
7037 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
7038 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
7039 (S390_NUM_REGS): Adjust macro definition.
7040 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
7041 (tdesc_s390x_gs_linux64): New declarations.
7042
96235dc1
AA
70432017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7044
7045 * features/s390-gs-linux64.xml: New file.
7046 * features/s390-gs.xml: New file.
7047 * features/s390-gsbc.xml: New file.
7048 * features/s390x-gs-linux64.xml: New file.
7049 * features/Makefile (WHICH): Add s390-gs-linux64 and
7050 s390x-gs-linux64.
7051 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
7052 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
7053 * features/s390-gs-linux64.c: New generated file.
7054 * features/s390x-gs-linux64.c: New file.
7055 * regformats/s390-gs-linux64.dat: New file.
7056 * regformats/s390x-gs-linux64.dat: New file.
7057
b4a7c699
TT
70582017-09-23 Tom Tromey <tom@tromey.com>
7059
7060 * defs.h (make_cleanup_override_quit_handler): Don't declare.
7061
c2f97536
TT
70622017-09-22 Tom Tromey <tom@tromey.com>
7063
7064 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
7065 type to scoped_restore_tmpl.
7066 <scoped_input_handler>: Initialize m_quit_handler directly.
7067
43573013
SDJ
70682017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7069
7070 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
7071 (cd_command): Likewise. Free "current_directory" before
7072 assigning to it.
7073 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
7074 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
7075 * top.c (gdb_dirbuf): Remove global declaration.
7076 * top.h (gdb_dirbuf): Likewise.
7077
6ec2e0f5
SDJ
70782017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
7079
7080 * gnulib/aclocal.m4: Regenerate.
7081 * gnulib/config.in: Regenerate.
7082 * gnulib/configure: Regenerate.
7083 * gnulib/import/Makefile.am: Regenerate.
7084 * gnulib/import/Makefile.in: Regenerate.
7085 * gnulib/import/assure.h: New file.
7086 * gnulib/import/at-func.c: Likewise
7087 * gnulib/import/chdir-long.c: New file.
7088 * gnulib/import/chdir-long.h: New file.
7089 * gnulib/import/cloexec.c: New file.
7090 * gnulib/import/cloexec.h: New file.
7091 * gnulib/import/close.c: New file.
7092 * gnulib/import/closedir.c: New file.
7093 * gnulib/import/dirent-private.h: New file.
7094 * gnulib/import/dup-safer.c: New file.
7095 * gnulib/import/dup.c: New file.
7096 * gnulib/import/dup2.c: New file.
7097 * gnulib/import/error.c: New file.
7098 * gnulib/import/error.h: New file.
7099 * gnulib/import/exitfail.c: New file.
7100 * gnulib/import/exitfail.h: New file.
7101 * gnulib/import/fchdir.c: New file.
7102 * gnulib/import/fcntl.c: New file.
7103 * gnulib/import/fcntl.in.h: New file.
7104 * gnulib/import/fd-hook.c: New file.
7105 * gnulib/import/fd-hook.h: New file.
7106 * gnulib/import/fd-safer.c: New file.
7107 * gnulib/import/fdopendir.c: New file.
7108 * gnulib/import/filename.h: New file.
7109 * gnulib/import/filenamecat-lgpl.c: New file.
7110 * gnulib/import/filenamecat.h: New file.
7111 * gnulib/import/fstat.c: New file.
7112 * gnulib/import/fstatat.c: New file.
7113 * gnulib/import/getcwd-lgpl.c: New file.
7114 * gnulib/import/getcwd.c: New file.
7115 * gnulib/import/getdtablesize.c: New file.
7116 * gnulib/import/getlogin_r.c: New file.
7117 * gnulib/import/getprogname.c: New file.
7118 * gnulib/import/getprogname.h: New file.
7119 * gnulib/import/gettext.h: New file.
7120 * gnulib/import/glob-libc.h: New file.
7121 * gnulib/import/glob.c: New file.
7122 * gnulib/import/glob.in.h: New file.
7123 * gnulib/import/intprops.h: New file.
7124 * gnulib/import/m4/chdir-long.m4: New file.
7125 * gnulib/import/m4/close.m4: New file.
7126 * gnulib/import/m4/closedir.m4: New file.
7127 * gnulib/import/m4/d-ino.m4: New file.
7128 * gnulib/import/m4/d-type.m4: New file.
7129 * gnulib/import/m4/dup.m4: New file.
7130 * gnulib/import/m4/dup2.m4: New file.
7131 * gnulib/import/m4/error.m4: New file.
7132 * gnulib/import/m4/fchdir.m4: New file.
7133 * gnulib/import/m4/fcntl.m4: New file.
7134 * gnulib/import/m4/fcntl_h.m4: New file.
7135 * gnulib/import/m4/fdopendir.m4: New file.
7136 * gnulib/import/m4/filenamecat.m4: New file.
7137 * gnulib/import/m4/fstat.m4: New file.
7138 * gnulib/import/m4/fstatat.m4: New file.
7139 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
7140 * gnulib/import/m4/getcwd-path-max.m4: New file.
7141 * gnulib/import/m4/getcwd.m4: New file.
7142 * gnulib/import/m4/getdtablesize.m4: New file.
7143 * gnulib/import/m4/getlogin_r.m4: New file.
7144 * gnulib/import/m4/getprogname.m4: New file.
7145 * gnulib/import/m4/glob.m4: New file.
7146 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7147 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7148 * gnulib/import/m4/mempcpy.m4: New file.
7149 * gnulib/import/m4/memrchr.m4: New file.
7150 * gnulib/import/m4/mode_t.m4: New file.
7151 * gnulib/import/m4/msvc-inval.m4: New file.
7152 * gnulib/import/m4/msvc-nothrow.m4: New file.
7153 * gnulib/import/m4/open.m4: New file.
7154 * gnulib/import/m4/openat.m4: New file.
7155 * gnulib/import/m4/opendir.m4: New file.
7156 * gnulib/import/m4/readdir.m4: New file.
7157 * gnulib/import/m4/realloc.m4: New file.
7158 * gnulib/import/m4/rewinddir.m4: New file.
7159 * gnulib/import/m4/save-cwd.m4: New file.
7160 * gnulib/import/m4/strdup.m4: New file.
7161 * gnulib/import/m4/strerror.m4: New file.
7162 * gnulib/import/m4/unistd-safer.m4: New file.
7163 * gnulib/import/mempcpy.c: New file.
7164 * gnulib/import/memrchr.c: New file.
7165 * gnulib/import/msvc-inval.c: New file.
7166 * gnulib/import/msvc-inval.h: New file.
7167 * gnulib/import/msvc-nothrow.c: New file.
7168 * gnulib/import/msvc-nothrow.h: New file.
7169 * gnulib/import/open.c: New file.
7170 * gnulib/import/openat-die.c: New file.
7171 * gnulib/import/openat-priv.h: New file.
7172 * gnulib/import/openat-proc.c: New file.
7173 * gnulib/import/openat.c: New file.
7174 * gnulib/import/openat.h: New file.
7175 * gnulib/import/opendir.c: New file.
7176 * gnulib/import/pipe-safer.c: New file.
7177 * gnulib/import/readdir.c: New file.
7178 * gnulib/import/realloc.c: New file.
7179 * gnulib/import/rewinddir.c: New file.
7180 * gnulib/import/save-cwd.c: New file.
7181 * gnulib/import/save-cwd.h: New file.
7182 * gnulib/import/strdup.c: New file.
7183 * gnulib/import/strerror-override.c: New file.
7184 * gnulib/import/strerror-override.h: New file.
7185 * gnulib/import/strerror.c: New file.
7186 * gnulib/import/unistd--.h: New file.
7187 * gnulib/import/unistd-safer.h: New file.
7188 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7189 "getcwd" and "glob".
7190 * ser-tcp.c: Undefine "close" before redefining it.
7191
432ae719
SM
71922017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7193
7194 * guile/scm-value.c (gdbscm_value_address): Initialize address,
7195 get rid of res_val.
7196
4fa7574e
RO
71972017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7198
7199 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
7200 <sol2,sparc>: Likewise.
7201 <sol2-64,i386>: Likewise.
7202
7203 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
7204 -Wdeprecated-declarations on *-*-solaris*.
7205 * configure: Regenerate.
7206
7207 * procfs.c: Include "nat/inferior.h".
7208 (procfs_info_proc): Fix typo.
7209
f6327dcb
KB
72102017-09-21 Kevin Buettner <kevinb@redhat.com>
7211
7212 * remote.c (vector): Include.
7213 (struct private_thread_info): Add field, thread_handle.
7214 (free_private_thread_info): Deallocate storage associated with
7215 thread handle.
7216 (get_private_info_thread): Initialize `thread_handle' field.
7217 (struct thread_item): Add field, thread_handle.
7218 (clear_threads_listing_context): Deallocate storage associated
7219 with thread handle.
7220 (start_thread): Add support for "handle" attribute.
7221 (thread_attributes): Add "handle".
7222 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
7223 field.
7224 (remote_update_thread_list): Update thread_handle.
7225 (remote_thread_handle_to_thread_info): New function.
7226 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
7227
fbbe5337
KB
72282017-09-21 Kevin Buettner <kevinb@redhat.com>
7229
7230 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7231 function.
7232 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7233 * python/python-internal.h (thread_object_type): Declare.
7234
e04ee09e
KB
72352017-09-21 Kevin Buettner <kevinb@redhat.com>
7236
7237 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7238 (target_thread_handle_to_thread_info): Declare.
7239 * target.c (target_thread_handle_to_thread_info): New function.
7240 * target-delegates.c: Regenerate.
7241 * gdbthread.h (find_thread_by_handle): Declare.
7242 * thread.c (find_thread_by_handle): New function.
7243 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7244 function.
7245 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7246
1e5b66ed
SM
72472017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7248
7249 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7250
ebe48ba0
SM
72512017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7252
7253 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7254
0a0bf5dc
YQ
72552017-09-21 Yao Qi <yao.qi@linaro.org>
7256
7257 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7258 to gdb_target_obs.
7259
d1b0a7bf
TT
72602017-09-20 Tom Tromey <tom@tromey.com>
7261
7262 * breakpoint.c (struct counted_command_line): Remove.
7263 (breakpoint_commands): Update.
7264 (alloc_counted_command_line, incref_counted_command_line)
7265 (decref_counted_command_line, do_cleanup_counted_command_line)
7266 (make_cleanup_decref_counted_command_line): Remove.
7267 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7268 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7269 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7270 (save_breakpoints): Update.
7271 * breakpoint.h (counted_command_line): Now a typedef to
7272 shared_ptr.
7273 (struct breakpoint) <commands>: Now a counted_command_line.
7274 (struct bpstats) <command>: Likewise.
7275
48649e1b
TT
72762017-09-20 Tom Tromey <tom@tromey.com>
7277
7278 * breakpoint.c (struct commands_info, do_map_commands_command):
7279 Remove.
7280 (commands_command_1): Update.
7281 (iterate_over_related_breakpoints): Take a function_view.
7282 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7283 (delete_command): Update.
7284 (map_breakpoint_numbers): Take a function_view.
7285 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7286 (disable_command): Update.
7287 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7288 (enable_command): Update.
7289 (struct disp_data, do_enable_breakpoint_disp)
7290 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7291 (do_map_enable_delete_breakpoint): Remove.
7292 (enable_once_command, enable_count_command, enable_delete_command)
7293 (delete_trace_variable_command): Update.
7294
04afa70c
TT
72952017-09-20 Tom Tromey <tom@tromey.com>
7296
7297 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7298 (bpstat_clear): Use delete.
7299 (bpstats): New constructors.
7300 (bpstat_copy, bpstat_stop_status): Use new.
7301 (dprintf_after_condition_true): Update.
7302 * breakpoint.h (bpstats::bpstats): Add constructors.
7303 (bpstats::~bpstats): Add destructor.
7304
c83833f4
PA
73052017-09-20 Pedro Alves <palves@redhat.com>
7306
7307 * eval.c (make_params): Delete, refactored as ...
7308 (class fake_method): ... this new type's ctor.
7309 (fake_method::~fake_method): New.
7310 (evaluate_subexp_standard): Use 'fake_method'.
7311
223ffa71
TT
73122017-09-20 Tom Tromey <tom@tromey.com>
7313
7314 * windows-nat.c (get_windows_debug_event, windows_wait)
7315 (do_initial_windows_stuff, windows_attach): Update.
7316 * utils.c (vwarning, internal_vproblem): Update.
7317 (ui_unregister_input_event_handler_cleanup)
7318 (prepare_to_handle_input): Remove.
7319 (class scoped_input_handler): New.
7320 (defaulted_query, prompt_for_continue): Update.
7321 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7322 Update.
7323 * top.c (undo_terminal_modifications_before_exit): Update.
7324 * target/target.h (target_terminal_init, target_terminal_inferior)
7325 (target_terminal_ours): Don't declare.
7326 (class target_terminal): New.
7327 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7328 (target_terminal_ours_for_output)
7329 (make_cleanup_restore_target_terminal): Don't declare.
7330 (target_terminal_info): Remove.
7331 * target.c (enum terminal_state, terminal_state): Remove.
7332 (target_terminal::terminal_state): Define.
7333 (target_terminal::init): Rename from target_terminal_init.
7334 (target_terminal::inferior): Rename from
7335 target_terminal_inferior.
7336 (target_terminal::ours): Rename from target_terminal_ours.
7337 (target_terminal::ours_for_output): Rename from
7338 target_terminal_ours_for_output.
7339 (target_terminal::info): New method.
7340 (cleanup_restore_target_terminal)
7341 (make_cleanup_restore_target_terminal): Remove.
7342 * solib.c (handle_solib_event): Update.
7343 * remote.c (remote_serial_quit_handler): Update.
7344 (remote_terminal_inferior, remote_wait_as): Update.
7345 * record-full.c (record_full_wait_1): Update.
7346 * nto-procfs.c (procfs_create_inferior): Update.
7347 * nat/fork-inferior.c (startup_inferior): Update.
7348 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7349 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7350 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7351 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7352 (mi_breakpoint_created, mi_breakpoint_deleted)
7353 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7354 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7355 (mi_user_selected_context_changed, report_initial_inferior):
7356 Update.
7357 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7358 (linux_nat_terminal_inferior): Update.
7359 * infrun.c (follow_fork_inferior)
7360 (handle_vfork_child_exec_or_exit, do_target_resume)
7361 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7362 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7363 Update.
7364 * inflow.c (child_terminal_init, info_terminal_command): Update.
7365 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7366 (attach_command): Update.
7367 * infcall.c (call_thread_fsm_should_stop): Update.
7368 * gnu-nat.c (gnu_attach): Update.
7369 * extension.c (struct active_ext_lang_state)
7370 (restore_active_ext_lang): Update.
7371 * exceptions.c (print_flush): Update.
7372 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7373 (struct quit_handler_cleanup_data, restore_quit_handler)
7374 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7375 Remove.
7376 * cp-support.c (gdb_demangle): Update.
7377 * breakpoint.c (update_inserted_breakpoint_locations)
7378 (insert_breakpoint_locations, handle_jit_event)
7379 (disable_breakpoints_in_unloaded_shlib): Update.
7380 * annotate.c (annotate_breakpoints_invalid)
7381 (annotate_frames_invalid): Update.
7382
013af3fc
TT
73832017-09-20 Tom Tromey <tom@tromey.com>
7384
7385 * main.c (catch_command_errors): Rename from
7386 catch_command_errors_const.
7387 (captured_main_1): Update.
7388
06871ae8
PA
73892017-09-20 Pedro Alves <palves@redhat.com>
7390
7391 * cli/cli-cmds.c (list_command): Use print_sal_location.
7392 (print_sal_location): New function.
7393 (ambiguous_line_spec): Use print_sal_location.
7394 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7395 * symtab.c (find_function_start_sal): Likewise.
7396 * symtab.h (symtab_and_line::symbol): New field.
7397
e5f25bc5
PA
73982017-09-20 Pedro Alves <palves@redhat.com>
7399
7400 * linespec.c (minsym_found): Handle non-text minsyms.
7401 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7402
1b7fa39e
WT
74032017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7404
7405 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7406 backslash.
7407
37dd0825
WT
74082017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7409
7410 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7411 vmovups instead vmovaps.
7412 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7413
4e5a4f58
JB
74142017-09-19 John Baldwin <jhb@FreeBSD.org>
7415
7416 * NEWS (Changes since GDB 8.0): Add starti.
7417 * infcmd.c (enum run_break): New.
7418 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7419 case.
7420 (run_command): Use enum run_how.
7421 (start_command): Likewise.
7422 (starti_command): New function.
7423 (RUN_ARGS_HELP): New macro.
7424 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7425 commands. Add starti command.
7426
aa70c9f1
YQ
74272017-09-19 Yao Qi <yao.qi@linaro.org>
7428
7429 * Makefile.in (monitor.o): Remove the rule.
7430
d6541620
YQ
74312017-09-19 Yao Qi <yao.qi@linaro.org>
7432
7433 * annotate.h (struct annotate_arg_emitter): Use
7434 DISABLE_COPY_AND_ASSIGN.
7435 * common/refcounted-object.h (refcounted_object): Likewise.
7436 * completer.h (struct completion_result): Likewise.
7437 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7438 * filename-seen-cache.h (filename_seen_cache): Likewise.
7439 * gdbcore.h (thread_section_name): Likewise.
7440 * gdb_regex.h (compiled_regex): Likewise.
7441 * gdbthread.h (scoped_restore_current_thread): Likewise.
7442 * inferior.h (scoped_restore_current_inferior): Likewise.
7443 * jit.c (jit_reader): Likewise.
7444 * linespec.h (struct linespec_result): Likewise.
7445 * mi/mi-parse.h (struct mi_parse): Likewise.
7446 * nat/fork-inferior.c (execv_argv): Likewise.
7447 * progspace.h (scoped_restore_current_program_space): Likewise.
7448 * python/python-internal.h (class gdbpy_enter): Likewise.
7449 * regcache.h (regcache): Likewise.
7450 * target-descriptions.c (struct tdesc_reg): Likewise.
7451 (struct tdesc_type): Likewise.
7452 (struct tdesc_feature): Likewise.
7453 * ui-out.h (ui_out_emit_type): Likewise.
7454
0615127c
SM
74552017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7456
7457 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7458 label abort_expression.
7459
5e187554
SM
74602017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7461
7462 * common/buffer.c (buffer_xml_printf): Adjust.
7463 * common/xml-utils.c (xml_escape_text): Change return type to
7464 std::string, update code accordingly.
7465 * common/xml-utils.h (xml_escape_text): Change return type to
7466 std::string.
7467 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7468 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7469 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7470 Adjust.
7471
c3d7b541
SM
74722017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7473
7474 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7475 (SUBDIR_UNITTESTS_OBS): Add new object file.
7476 * unittests/xml-utils-selftests.c: New file.
7477
1526853e
SM
74782017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7479
7480 * common/selftest.h (selftest): New struct/interface.
7481 (register_test): Add name parameter, add new overload.
7482 (run_tests): Add filter parameter.
7483 (for_each_selftest_ftype): New typedef.
7484 (for_each_selftest): New declaration.
7485 * common/selftest.c (tests): Change type to
7486 map<string, unique_ptr<selftest>>.
7487 (simple_selftest): New struct.
7488 (register_test): New function.
7489 (register_test): Add name parameter and use it.
7490 (run_tests): Add filter parameter and use it. Add prints.
7491 Adjust to vector -> map change.
7492 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7493 registering selftests.
7494 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7495 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7496 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7497 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7498 * findvar.c (_initialize_findvar): Likewise.
7499 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7500 * maint.c (maintenance_selftest): Update call to run_tests.
7501 (maintenance_info_selftests): New function.
7502 (_initialize_maint_cmds): Register "maintenance info selftests"
7503 command. Update "maintenance selftest" doc.
7504 * regcache.c (_initialize_regcache): Add names when registering
7505 selftests.
7506 * rust-exp.y (_initialize_rust_exp): Likewise.
7507 * selftest-arch.c (gdbarch_selftest): New struct.
7508 (gdbarch_tests): Remove.
7509 (register_test_foreach_arch): Add name parameter. Call
7510 register_test.
7511 (tests_with_arch): Remove, move most content to
7512 gdbarch_selftest::operator().
7513 (_initialize_selftests_foreach_arch): Remove.
7514 * selftest-arch.h (register_test_foreach_arch): Add name
7515 parameter.
7516 (run_tests_with_arch): New declaration.
7517 * utils-selftests.c (_initialize_utils_selftests): Add names
7518 when registering selftests.
7519 * utils.c (_initialize_utils): Likewise.
7520 * unittests/array-view-selftests.c
7521 (_initialize_array_view_selftests): Likewise.
7522 * unittests/environ-selftests.c (_initialize_environ_selftests):
7523 Likewise.
7524 * unittests/function-view-selftests.c
7525 (_initialize_function_view_selftests): Likewise.
7526 * unittests/offset-type-selftests.c
7527 (_initialize_offset_type_selftests): Likewise.
7528 * unittests/optional-selftests.c
7529 (_initialize_optional_selftests): Likewise.
7530 * unittests/scoped_restore-selftests.c
7531 (_initialize_scoped_restore_selftests): Likewise.
7532 * NEWS: Document "maintenance selftest" and "maint info
7533 selftests".
7534
5846367a
SM
75352017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7536
7537 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7538 scoped_restore.
7539
bd77e8ff
SM
75402017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7541
7542 * mi/mi-main.c (mi_load_progress): Make uiout variable
7543 a unique_ptr.
7544
26a67918
PA
75452017-09-15 Pedro Alves <palves@redhat.com>
7546
7547 * compile/compile-c-types.c (convert_enum, convert_int)
7548 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7549
3f8a7804
SM
75502017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7551
7552 * dwarf2read.c (copy_string): Remove.
7553 (parse_macro_definition): Replace copy_string with savestring.
7554
8d200706
YQ
75552017-09-15 Yao Qi <yao.qi@linaro.org>
7556
7557 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7558 gdb_target_obs.
7559 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7560 Likewise.
7561 (i[34567]86-*-linux*): Likewise.
7562
d185219d
SM
75632017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7564
7565 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7566 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7567 <stack>: Change type to std::vector.
7568 <stack_len, stack_allocated>: Remove.
7569 <grow_stack>: Remove.
7570 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7571 (dwarf_expr_context::~dwarf_expr_context): Remove.
7572 (dwarf_expr_context::grow_stack): Remove.
7573 (dwarf_expr_context::push): Adjust.
7574 (dwarf_expr_context::pop): Adjust.
7575 (dwarf_expr_context::fetch): Adjust.
7576 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7577 (dwarf_expr_context::stack_empty_p): Adjust.
7578 (dwarf_expr_context::execute_stack_op): Adjust.
7579
eccd80d6
SM
75802017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7581
7582 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7583 return type to bool.
7584 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7585
69009882
SM
75862017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7587
7588 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7589 Change type to bool.
7590 (dwarf_stack_value) <in_stack_memory>: Likewise.
7591 (dwarf_expr_context) <push_address>: Change parameter type to
7592 bool.
7593 <fetch_in_stack_memory>: Change return type to bool.
7594 <push>: Change parameter type to bool.
7595 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7596 to bool.
7597 (dwarf_expr_context::push_address): Likewise.
7598 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7599 to bool.
7600 (dwarf_expr_context::execute_stack_op): Adjust.
7601 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7602
1e467161
SM
76032017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7604
7605 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7606 (struct dwarf_expr_context) <n_pieces>: Remove.
7607 <pieces>: Change type to std::vector.
7608 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7609 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7610 pieces.
7611 (dwarf_expr_context::add_piece): Adjust.
7612 * dwarf2loc.c (struct piece_closure): Initialize fields.
7613 <n_pieces>: Remove.
7614 <pieces>: Change type to std::vector.
7615 (allocate_piece_closure): Adjust, change parameter to
7616 std::vector rvalue and std::move it to piece_closure.
7617 (rw_pieced_value): Adjust.
7618 (check_pieced_synthetic_pointer): Adjust.
7619 (indirect_synthetic_pointer): Adjust.
7620 (coerce_pieced_ref): Adjust.
7621 (free_pieced_value_closure): Adjust. Use delete to free
7622 piece_closure.
7623 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7624 to allocate_piece_closure.
7625 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7626
0782db84
SM
76272017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7628
7629 * probe.h (probe_ops_cp): Remove typedef.
7630 (DEF_VEC_P (probe_ops_cp)): Remove.
7631 (all_probe_ops): Change type to std::vector.
7632 * probe.c (info_probes_for_ops): Adjust to vector change.
7633 (probe_linespec_to_ops): Likewise.
7634 (all_probe_ops): Change type to std::vector.
7635 (_initialize_probe): Adjust to vector change.
7636 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7637 * elfread.c (elf_get_probes): Likewise.
7638 * stap-probe.c (_initialize_stap_probe): Likewise.
7639
1eac6bea
SM
76402017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7641
7642 * probe.h (struct bound_probe): Define constructors.
7643 * probe.c (bound_probe_s): Remove typedef.
7644 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7645 (collect_probes): Change return type to std::vector, remove
7646 cleanup.
7647 (compare_probes): Return bool, change parameter type. Change
7648 semantic to "less than".
7649 (gen_ui_out_table_header_info): Change parameter to std::vector
7650 and update.
7651 (exists_probe_with_pops): Likewise.
7652 (info_probes_for_ops): Update to std::vector change.
7653 (enable_probes_command): Likewise.
7654 (disable_probes_command): Likewise.
7655
aaa63a31
SM
76562017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7657
7658 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7659 vec to std::vector.
7660 * probe.c (parse_probes_in_pspace): Update.
7661 (find_probes_in_objfile): Update.
7662 (find_probe_by_pc): Update.
7663 (collect_probes): Update.
7664 (probe_any_get_probes): Update.
7665 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7666 return type to reference to std::vector.
7667 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7668 std::vector and update.
7669 (dtrace_process_dof): Likewise.
7670 (dtrace_get_probes): Likewise.
7671 * elfread.c (elf_get_probes): Change return type to std::vector,
7672 store an std::vector in bfd_data.
7673 (probe_key_free): Update to std::vector.
7674 * stap-probe.c (handle_stap_probe): Change parameter to
7675 std::vector and update.
7676 (stap_get_probes): Likewise.
7677 * symfile-debug.c (debug_sym_get_probes): Change return type to
7678 std::vector and update.
7679
cb85b21b
TT
76802017-09-11 Tom Tromey <tom@tromey.com>
7681
7682 * breakpoint.c (program_breakpoint_here_p): Update.
7683 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7684 from make_show_memory_breakpoints_cleanup. Return a
7685 scoped_restore_tmpl<int>.
7686 (restore_show_memory_breakpoints): Remove.
7687 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7688 * mem-break.c (memory_validate_breakpoint): Update.
7689 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7690 (ia64_memory_remove_breakpoint): Update.
7691 (ia64_breakpoint_from_pc): Update.
7692 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7693 from make_show_memory_breakpoints_cleanup.
7694
8fbc99ef
TT
76952017-09-11 Tom Tromey <tom@tromey.com>
7696
7697 * d-namespace.c (d_lookup_symbol): Use std::string.
7698 (find_symbol_in_baseclass): Likewise.
7699
50feb4bd
TT
77002017-09-11 Tom Tromey <tom@tromey.com>
7701
7702 * ctf.c (ctf_start): Use std::string.
7703
c6dc63a1
TT
77042017-09-11 Tom Tromey <tom@tromey.com>
7705
7706 * ada-lang.c (is_known_support_routine): Update.
7707 (ada_unhandled_exception_name_addr_from_raise): Update.
7708 * guile/scm-frame.c (gdbscm_frame_name): Update.
7709 * python/py-frame.c (frapy_name): Update.
7710 (frapy_function): Update.
7711 * stack.h (find_frame_funname): Update.
7712 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7713 (print_frame): Update.
7714
d6b9b80f
TT
77152017-09-11 Tom Tromey <tom@tromey.com>
7716
7717 * findcmd.c (put_bits): Take a gdb::byte_vector.
7718 (parse_find_args): Return gdb::byte_vector. "args" now const.
7719 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7720 cleanups.
7721 (find_command): Update.
7722
a9921622
TT
77232017-09-11 Tom Tromey <tom@tromey.com>
7724
7725 * cli/cli-script.c (class scoped_restore_hook_in): New.
7726 (clear_hook_in_cleanup): Remove.
7727 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7728 scoped_restore_hook_in.
7729
be0d7abb
TT
77302017-09-11 Tom Tromey <tom@tromey.com>
7731
7732 * cli/cli-script.c (restore_interp): Remove.
7733 (read_command_lines): Use scoped_restore_interp.
7734 * interps.c (scoped_restore_interp::set_temp): Rename from
7735 interp_set_temp.
7736 * interps.h (class scoped_restore_interp): New.
7737 (interp_set_temp): Remove.
7738
00f675ff
TT
77392017-09-11 Tom Tromey <tom@tromey.com>
7740
7741 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7742 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7743 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7744 scoped_restore.
7745 (mi_cmd_break_insert_1): Update.
7746 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7747 scoped_restore.
7748
cb791d59
TT
77492017-09-11 Tom Tromey <tom@tromey.com>
7750
7751 * demangle.c (demangle_command): Update.
7752 * breakpoint.c (disable_command): Update.
7753 (enable_command): Update.
7754 (find_location_by_number): Make "number" const. Use
7755 get_number_trailer.
7756 * cli/cli-utils.c (extract_arg): Return std::string.
7757 * probe.c (parse_probe_linespec): Update. Change types.
7758 (collect_probes): Take string arguments.
7759 (parse_probe_linespec): Likewise.
7760 (info_probes_for_ops): Update.
7761 (enable_probes_command): Update.
7762 (disable_probes_command): Update.
7763 * break-catch-sig.c (catch_signal_split_args): Update.
7764 * mi/mi-parse.c (mi_parse): Update.
7765
2039bd9f
TT
77662017-09-11 Tom Tromey <tom@tromey.com>
7767
7768 * language.h (language_enum): Make argument const.
7769 * language.c (language_enum): Make argument const.
7770
f1735a53
TT
77712017-09-11 Tom Tromey <tom@tromey.com>
7772
7773 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7774 as function.
7775 (skip_to_space): Rename from skip_to_space_const.
7776 * common/common-utils.c (skip_to_space): New function.
7777 (skip_to_space): Rename from skip_to_space_const.
7778 * cli/cli-utils.h (get_number): Rename from get_number_const.
7779 (extract_arg): Rename from extract_arg_const.
7780 * cli/cli-utils.c (get_number): Rename from get_number_const.
7781 (extract_arg): Rename from extract_arg_const.
7782 (number_or_range_parser::get_number): Use ::get_number.
7783 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7784 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7785 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7786 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7787 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7788 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7789 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7790 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7791
7d221d74
TT
77922017-09-11 Tom Tromey <tom@tromey.com>
7793
7794 * python/python.c (do_start_initialization): Use
7795 py-event-types.def to initialize types.
7796 Define all object type structures.
7797 * python/python-internal.h: Don't declare event initialization
7798 functions.
7799 * python/py-threadevent.c (thread_event_object_type): Don't
7800 define.
7801 * python/py-stopevent.c (stop_event_object_type): Don't define.
7802 * python/py-signalevent.c (signal_event_object_type): Don't
7803 declare or define.
7804 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7805 (clear_objfiles_event_object_type): Don't declare or define.
7806 * python/py-infevents.c (inferior_call_pre_event_object_type)
7807 (inferior_call_post_event_object_type)
7808 (register_changed_event_object_type)
7809 (memory_changed_event_object_type): Don't declare or define.
7810 * python/py-inferior.c (new_thread_event_object_type)
7811 (new_inferior_event_object_type)
7812 (inferior_deleted_event_object_type): Don't declare or define.
7813 * python/py-exitedevent.c (exited_event_object_type): Don't
7814 declare or define.
7815 * python/py-evts.c (gdbpy_initialize_py_events): Use
7816 py-all-events.def.
7817 * python/py-events.h (thread_event_object_type): Don't declare.
7818 (events_object): Use py-all-events.def.
7819 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7820 py-event-types.def.
7821 * python/py-event-types.def: New file.
7822 * python/py-continueevent.c (create_continue_event_object): Don't
7823 declare or define.
7824 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7825 declare or define.
7826 * python/py-all-events.def: New file.
7827
35c61a1d
TT
78282017-09-11 Tom Tromey <tom@tromey.com>
7829
7830 * python/py-threadevent.c (create_thread_event_object): Return
7831 gdbpy_ref.
7832 * python/py-stopevent.h (create_stop_event_object)
7833 (create_breakpoint_event_object, create_signal_event_object):
7834 Update.
7835 * python/py-stopevent.c (create_stop_event_object): Return
7836 gdbpy_ref.
7837 (emit_stop_event): Update.
7838 * python/py-signalevent.c (create_signal_event_object): Return
7839 gdbpy_ref.
7840 * python/py-infevents.c (create_inferior_call_event_object):
7841 Update.
7842 * python/py-event.h (create_event_object)
7843 (create_thread_event_object): Update.
7844 * python/py-event.c (create_event_object): Return gdbpy_ref.
7845 * python/py-continueevent.c: Return gdbpy_ref.
7846 * python/py-bpevent.c (create_breakpoint_event_object): Return
7847 gdbpy_ref.
7848
7c96f8c1
TT
78492017-09-11 Tom Tromey <tom@tromey.com>
7850
7851 PR python/15622:
7852 * NEWS: Add entry.
7853 * python/python.c (do_start_initialization): Initialize new event
7854 types.
7855 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7856 (gdbpy_initialize_inferior_deleted_event)
7857 (gdbpy_initialize_new_thread_event): Declare.
7858 * python/py-threadevent.c (create_thread_event_object): Add option
7859 "thread" parameter.
7860 * python/py-inferior.c (new_thread_event_object_type)
7861 (new_inferior_event_object_type)
7862 (inferior_deleted_event_object_type): Declare.
7863 (python_new_inferior, python_inferior_deleted): New functions.
7864 (add_thread_object): Emit new_thread event.
7865 (gdbpy_initialize_inferior): Attach new functions to corresponding
7866 observers.
7867 (new_thread, new_inferior, inferior_deleted): Define new event
7868 types.
7869 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7870 registries.
7871 * python/py-events.h (events_object) <new_inferior,
7872 inferior_deleted, new_thread>: New fields.
7873 * python/py-event.h (create_thread_event_breakpoint): Add optional
7874 "thread" parameter.
7875
72542b8e
AB
78762017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7879 check current_ui instead.
7880 (internal_vproblem): Likewise.
7881
0d64823e
SM
78822017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7883
7884 * thread.c (print_thread_info_1): Remove unnecessary calls to
7885 uiout->is_mi_like_p.
7886
eb1e02fd
TT
78872017-09-09 Tom Tromey <tom@tromey.com>
7888
7889 * namespace.h (add_using_directive): Update.
7890 * namespace.c (add_using_directive): Change type of excludes to
7891 std::vector.
7892 * dwarf2read.c (read_import_statement): Use std::vector.
7893 (read_namespace): Update.
7894 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7895
0fc21fd8
TT
78962017-09-09 Tom Tromey <tom@tromey.com>
7897
7898 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7899
49663d05
TT
79002017-09-09 Tom Tromey <tom@tromey.com>
7901
7902 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7903
0b868b60
TT
79042017-09-09 Tom Tromey <tom@tromey.com>
7905
7906 * stack.c (func_command): Use gdb::def_vector.
7907
c0470d48
TT
79082017-09-09 Tom Tromey <tom@tromey.com>
7909
7910 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7911 ui_out_emit_list, ui_out_emit_tuple.
7912 (mi_cmd_var_update): Likewise.
7913
ca5909c7
TT
79142017-09-09 Tom Tromey <tom@tromey.com>
7915
7916 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7917 ui_out_redirect_pop.
7918 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7919 ui_out_redirect_pop.
7920 * utils.c (do_ui_out_redirect_pop)
7921 (make_cleanup_ui_out_redirect_pop): Remove.
7922 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7923 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7924 * ui-out.h (ui_out_redirect_pop): New class.
7925
e6a2252a
TT
79262017-09-09 Tom Tromey <tom@tromey.com>
7927
7928 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7929 (list_available_thread_groups, mi_cmd_list_thread_groups)
7930 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7931 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7932 Likewise.
7933
393702cd
TT
79342017-09-09 Tom Tromey <tom@tromey.com>
7935
7936 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7937 ui_out_emit_tuple.
7938
76f9c9cf
TT
79392017-09-09 Tom Tromey <tom@tromey.com>
7940
7941 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7942 * stack.c (print_frame): Use ui_out_emit_tuple.
7943 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7944 (info_spu_mailbox_command, info_spu_dma_command)
7945 (info_spu_proxydma_command): Likewise.
7946 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7947 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7948 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7949 ui_out_emit_tuple.
7950 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7951
dc9fe180
TT
79522017-09-09 Tom Tromey <tom@tromey.com>
7953
7954 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7955 (class ui_out_emit_table): Update comment.
7956 * ui-out.c (do_cleanup_table_end)
7957 (make_cleanup_ui_out_table_begin_end): Remove.
7958 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7959 (info_spu_dma_cmdlist): Likewise.
7960 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7961 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7962 ui_out_emit_table.
7963
f8cc3da6
TT
79642017-09-09 Tom Tromey <tom@tromey.com>
7965
7966 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7967 ui_out_emit_list, gdb::optional.
7968
481695ed
JB
79692017-09-09 John Baldwin <jhb@FreeBSD.org>
7970
7971 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7972 prototype.
7973 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7974 prototype.
7975 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7976 prototype.
7977 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7978 * ada-exp.y: Remove _initialize_ada_exp prototype.
7979 * ada-lang.c: Remove _initialize_ada_language prototype.
7980 * ada-tasks.c: Remove _initialize_tasks prototype.
7981 * addrmap.c: Remove _initialize_addrmap prototype.
7982 * agent.c: Remove _initialize_agent prototype.
7983 * aix-thread.c: Remove _initialize_aix_thread prototype.
7984 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7985 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7986 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7987 prototype.
7988 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7989 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7990 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7991 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7992 prototype.
7993 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7994 prototype.
7995 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7996 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7997 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7998 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7999 prototype.
8000 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
8001 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
8002 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
8003 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
8004 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8005 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
8006 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
8007 prototype.
8008 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
8009 prototype.
8010 * annotate.c: Remove _initialize_annotate prototype.
8011 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
8012 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
8013 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
8014 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
8015 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
8016 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
8017 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
8018 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
8019 prototype.
8020 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
8021 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
8022 * auto-load.c: Remove _initialize_auto_load prototype.
8023 * auxv.c: Remove _initialize_auxv prototype.
8024 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
8025 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
8026 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
8027 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
8028 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
8029 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
8030 prototype.
8031 * break-catch-throw.c: Remove _initialize_break_catch_throw
8032 prototype.
8033 * breakpoint.c: Remove _initialize_breakpoint prototype.
8034 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
8035 * btrace.c: Remove _initialize_btrace prototype.
8036 * charset.c: Remove _initialize_charset prototype.
8037 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
8038 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
8039 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
8040 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
8041 * cli/cli-script.c: Remove _initialize_cli_script prototype.
8042 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
8043 * coffread.c: Remove _initialize_coffread prototype.
8044 * compile/compile.c: Remove _initialize_compile prototype.
8045 * complaints.c: Remove _initialize_complaints prototype.
8046 * completer.c: Remove _initialize_completer prototype.
8047 * copying.awk: Remove _initialize_copying prototype.
8048 * copying.c: Regenerate.
8049 * core-regset.c: Remove _initialize_core_regset prototype.
8050 * corefile.c: Remove _initialize_core prototype.
8051 * corelow.c: Remove _initialize_corelow prototype.
8052 * cp-abi.c: Remove _initialize_cp_abi prototype.
8053 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
8054 * cp-support.c: Remove _initialize_cp_support prototype.
8055 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
8056 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
8057 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
8058 * ctf.c: Remove _initialize_ctf prototype.
8059 * d-lang.c: Remove _initialize_d_language prototype.
8060 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
8061 prototype.
8062 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
8063 * dbxread.c: Remove _initialize_dbxread prototype.
8064 * dcache.c: Remove _initialize_dcache prototype.
8065 * demangle.c: Remove _initialize_demangler prototype.
8066 * disasm-selftests.c: Remove _initialize_disasm_selftests
8067 prototype.
8068 * disasm.c: Remove _initialize_disasm prototype.
8069 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
8070 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
8071 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
8072 prototype.
8073 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
8074 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
8075 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
8076 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
8077 * elfread.c: Remove _initialize_elfread prototype.
8078 * exec.c: Remove _initialize_exec prototype.
8079 * extension.c: Remove _initialize_extension prototype.
8080 * f-lang.c: Remove _initialize_f_language prototype.
8081 * f-valprint.c: Remove _initialize_f_valprint prototype.
8082 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
8083 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
8084 * filesystem.c: Remove _initialize_filesystem prototype.
8085 * findcmd.c: Remove _initialize_mem_search prototype.
8086 * fork-child.c: Remove _initialize_fork_child prototype.
8087 * frame-base.c: Remove _initialize_frame_base prototype.
8088 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
8089 * frame.c: Remove _initialize_frame prototype.
8090 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
8091 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
8092 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
8093 * gcore.c: Remove _initialize_gcore prototype.
8094 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
8095 * gdbarch.c: Regenerate.
8096 * gdbarch.sh: Remove _initialize_gdbarch prototype.
8097 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
8098 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
8099 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
8100 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
8101 * go-lang.c: Remove _initialize_go_language prototype.
8102 * go32-nat.c: Remove _initialize_go32_nat prototype.
8103 * guile/guile.c: Remove _initialize_guile prototype.
8104 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
8105 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
8106 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
8107 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
8108 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
8109 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
8110 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
8111 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
8112 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
8113 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
8114 prototype.
8115 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
8116 prototype.
8117 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
8118 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
8119 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
8120 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
8121 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
8122 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
8123 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
8124 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
8125 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
8126 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
8127 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
8128 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
8129 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
8130 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8131 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
8132 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
8133 prototype.
8134 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
8135 prototype.
8136 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
8137 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
8138 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
8139 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
8140 * infcall.c: Remove _initialize_infcall prototype.
8141 * infcmd.c: Remove _initialize_infcmd prototype.
8142 * inferior.c: Remove _initialize_inferiors prototype.
8143 * inflow.c: Remove _initialize_inflow prototype.
8144 * infrun.c: Remove _initialize_infrun prototype.
8145 * interps.c: Remove _initialize_interpreter prototype.
8146 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
8147 * jit.c: Remove _initialize_jit prototype.
8148 * language.c: Remove _initialize_language prototype.
8149 * linux-fork.c: Remove _initialize_linux_fork prototype.
8150 * linux-nat.c: Remove _initialize_linux_nat prototype.
8151 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
8152 * linux-thread-db.c: Remove _initialize_thread_db prototype.
8153 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
8154 * m2-lang.c: Remove _initialize_m2_language prototype.
8155 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
8156 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
8157 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
8158 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
8159 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
8160 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8161 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8162 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
8163 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
8164 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
8165 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8166 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8167 * machoread.c: Remove _initialize_machoread prototype.
8168 * macrocmd.c: Remove _initialize_macrocmd prototype.
8169 * macroscope.c: Remove _initialize_macroscope prototype.
8170 * maint.c: Remove _initialize_maint_cmds prototype.
8171 * mdebugread.c: Remove _initialize_mdebugread prototype.
8172 * memattr.c: Remove _initialize_mem prototype.
8173 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
8174 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
8175 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
8176 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
8177 * mi/mi-main.c: Remove _initialize_mi_main prototype.
8178 * microblaze-linux-tdep.c: Remove
8179 _initialize_microblaze_linux_tdep prototype.
8180 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
8181 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
8182 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
8183 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
8184 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
8185 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
8186 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
8187 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
8188 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
8189 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
8190 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
8191 prototype.
8192 * mipsread.c: Remove _initialize_mipsread prototype.
8193 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
8194 prototype.
8195 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
8196 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
8197 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
8198 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
8199 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
8200 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
8201 prototype.
8202 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
8203 * nto-procfs.c: Remove _initialize_procfs prototype.
8204 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
8205 * objc-lang.c: Remove _initialize_objc_language prototype.
8206 * objfiles.c: Remove _initialize_objfiles prototype.
8207 * observer.c: Remove observer_test_first_notification_function,
8208 observer_test_second_notification_function,
8209 observer_test_third_notification_function, and
8210 _initialize_observer prototypes.
8211 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
8212 * osabi.c: Remove _initialize_gdb_osabi prototype.
8213 * osdata.c: Remove _initialize_osdata prototype.
8214 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
8215 * parse.c: Remove _initialize_parse prototype.
8216 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
8217 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
8218 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
8219 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
8220 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
8221 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
8222 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
8223 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
8224 * printcmd.c: Remove _initialize_printcmd prototype.
8225 * probe.c: Remove _initialize_probe prototype.
8226 * proc-api.c: Remove _initialize_proc_api prototype.
8227 * proc-events.c: Remove _initialize_proc_events prototype.
8228 * proc-service.c: Remove _initialize_proc_service prototype.
8229 * procfs.c: Remove _initialize_procfs prototype.
8230 * psymtab.c: Remove _initialize_psymtab prototype.
8231 * python/python.c: Remove _initialize_python prototype.
8232 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8233 * record-btrace.c: Remove _initialize_record_btrace prototype.
8234 * record-full.c: Remove _initialize_record_full prototype.
8235 * record.c: Remove _initialize_record prototype.
8236 * regcache.c: Remove _initialize_regcache prototype.
8237 * reggroups.c: Remove _initialize_reggroup prototype.
8238 * remote-notif.c: Remove _initialize_notif prototype.
8239 * remote-sim.c: Remove _initialize_remote_sim prototype.
8240 * remote.c: Remove _initialize_remote prototype.
8241 * reverse.c: Remove _initialize_reverse prototype.
8242 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8243 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8244 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8245 prototype.
8246 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8247 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8248 * rust-exp.y: Remove _initialize_rust_exp prototype.
8249 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8250 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8251 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8252 * score-tdep.c: Remove _initialize_score_tdep prototype.
8253 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8254 prototype.
8255 * ser-go32.c: Remove _initialize_ser_dos prototype.
8256 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8257 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8258 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8259 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8260 * serial.c: Remove _initialize_serial prototype.
8261 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8262 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8263 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8264 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8265 * skip.c: Remove _initialize_step_skip prototype.
8266 * sol-thread.c: Remove _initialize_sol_thread prototype.
8267 * solib-aix.c: Remove _initialize_solib_aix prototype.
8268 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8269 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8270 * solib-frv.c: Remove _initialize_frv_solib prototype.
8271 * solib-spu.c: Remove _initialize_spu_solib prototype.
8272 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8273 * solib-target.c: Remove _initialize_solib_target prototype.
8274 * solib.c: Remove _initialize_solib prototype.
8275 * source.c: Remove _initialize_source prototype.
8276 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8277 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8278 prototype.
8279 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8280 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8281 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8282 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8283 prototype.
8284 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8285 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8286 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8287 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8288 prototype.
8289 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8290 prototype.
8291 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8292 prototype.
8293 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8294 prototype.
8295 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8296 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8297 prototype.
8298 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8299 prototype.
8300 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8301 prototype.
8302 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8303 prototype.
8304 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8305 prototype.
8306 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8307 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8308 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8309 * stabsread.c: Remove _initialize_stabsread prototype.
8310 * stack.c: Remove _initialize_stack prototype.
8311 * stap-probe.c: Remove _initialize_stap_probe prototype.
8312 * std-regs.c: Remove _initialize_frame_reg prototype.
8313 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8314 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8315 * symfile.c: Remove _initialize_symfile prototype.
8316 * symmisc.c: Remove _initialize_symmisc prototype.
8317 * symtab.c: Remove _initialize_symtab prototype.
8318 * target-dcache.c: Remove _initialize_target_dcache prototype.
8319 * target-descriptions.c: Remove _initialize_target_descriptions
8320 prototype.
8321 * thread.c: Remove _initialize_thread prototype.
8322 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8323 prototype.
8324 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8325 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8326 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8327 prototype.
8328 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8329 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8330 * tracefile.c: Remove _initialize_tracefile prototype.
8331 * tracepoint.c: Remove _initialize_tracepoint prototype.
8332 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8333 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8334 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8335 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8336 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8337 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8338 * tui/tui.c: Remove _initialize_tui prototype.
8339 * typeprint.c: Remove _initialize_typeprint prototype.
8340 * user-regs.c: Remove _initialize_user_regs prototype.
8341 * utils.c: Remove _initialize_utils prototype.
8342 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8343 * valarith.c: Remove _initialize_valarith prototype.
8344 * valops.c: Remove _initialize_valops prototype.
8345 * valprint.c: Remove _initialize_valprint prototype.
8346 * value.c: Remove _initialize_values prototype.
8347 * varobj.c: Remove _initialize_varobj prototype.
8348 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8349 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8350 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8351 * windows-nat.c: Remove _initialize_windows_nat,
8352 _initialize_check_for_gdb_ini, and _initialize_loadable
8353 prototypes.
8354 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8355 * xcoffread.c: Remove _initialize_xcoffread prototype.
8356 * xml-support.c: Remove _initialize_xml_support prototype.
8357 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8358 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8359 prototype.
8360 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8361 prototype.
8362 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8363
a611b5cb
KS
83642017-09-08 Keith Seitz <keiths@redhat.com>
8365
8366 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8367 field.
8368
469412dd
CW
83692017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8370
8371 * f-valprint.c (f_val_print): Remove check for one byte
8372 sized integers. Remove printing of character type.
8373
a5ad232b
FP
83742017-09-08 Frank Penczek <frank.penczek@intel.com>
8375 Christoph Weinmann <christoph.t.weinmann@intel.com>
8376 Bernhard Heckel <bernhard.heckel@intel.com>
8377
8378 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8379 to maintain proper indentation when printing pointers/refs.
8380
e5014227
JB
83812017-09-07 Joel Brobecker <brobecker@adacore.com>
8382
8383 GDB 8.0.1 released.
8384
63c99141
JB
83852017-09-07 Joel Brobecker <brobecker@adacore.com>
8386
8387 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8388
69c1e056
TT
83892017-09-05 Tom Tromey <tom@tromey.com>
8390
8391 * parse.c (funcall_chain): Now a std::vector.
8392 (start_arglist, end_arglist): Simplify.
8393 (free_funcalls): Remove.
8394 (parse_exp_in_context_1): Remove cleanup.
8395
fef704bf
TT
83962017-09-05 Tom Tromey <tom@tromey.com>
8397
8398 * go-exp.y (go_parse): Don't create a cleanup.
8399
5613c585
TT
84002017-09-05 Tom Tromey <tom@tromey.com>
8401
8402 * d-exp.y (PrimaryExpression): Use std::string.
8403 (d_parse): Don't create a cleanup.
8404
eae49211
TT
84052017-09-05 Tom Tromey <tom@tromey.com>
8406
8407 * utils.c (do_clear_parser_state): Remove.
8408 (make_cleanup_clear_parser_state): Remove.
8409 * p-exp.y (pascal_parse): Use scoped_restore.
8410 * m2-exp.y (m2_parse): Use scoped_restore.
8411 * f-exp.y (f_parse): Use scoped_restore.
8412 * d-exp.y (d_parse): Use scoped_restore.
8413 * c-exp.y (c_parse): Use scoped_restore.
8414 * ada-exp.y (ada_parse): Use scoped_restore.
8415 * utils.h (make_cleanup_clear_parser_state): Remove.
8416
73b9be8b
KS
84172017-09-06 Keith Seitz <keiths@redhat.com>
8418
8419 * dwarf2read.c (dw2_linkage_name_attr): New function.
8420 (dw2_linkage_name): New function.
8421 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8422 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8423 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8424
a102602b
KR
84252017-09-06 Kamil Rytarowski <n54@gmx.com>
8426
8427 * config/djgpp/djconfig.sh: Correct shell portability issue.
8428
28ad437d
KR
84292017-09-06 Kamil Rytarowski <n54@gmx.com>
8430
8431 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8432
351787dd
JB
84332017-09-06 John Baldwin <jhb@FreeBSD.org>
8434
8435 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8436 * NEWS: Mention new FreeBSD/mips native configuration.
8437 * configure.host: Add aarch64*-*-freebsd*.
8438 * configure.nat: Likewise.
8439 * aarch64-fbsd-nat.c: New file.
8440
c0f84956
JB
84412017-09-06 John Baldwin <jhb@FreeBSD.org>
8442
8443 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8444 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8445 * NEWS: Mention new FreeBSD/aarch64 target.
8446 * configure.tgt: Add aarch64*-*-freebsd*.
8447 * aarch64-fbsd-tdep.c: New file.
8448 * aarch64-fbsd-tdep.h: New file.
8449
7610297a
KR
84502017-09-06 Kamil Rytarowski <n54@gmx.com>
8451
8452 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8453
fbd1b771
JK
84542017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8455
8456 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8457 of TLS symbols.
8458
5ca79eae
PW
84592017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8460
8461 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8462 call.
8463
bf93d7ba
SM
84642017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8465
8466 * infrun.c (follow_exec): Call add_thread after
8467 target_find_description.
8468
1bb7c059
SM
84692017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8470
8471 * infrun.c (handle_inferior_event_1): When exec'ing, read
8472 stop_pc after follow_exec.
8473
fc809827
SM
84742017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8475
8476 * remote.c (process_g_packet): Update error message.
8477
d2fcdd85
YQ
84782017-09-05 Yao Qi <yao.qi@linaro.org>
8479
8480 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8481 targets.
8482
e69570ee
PA
84832017-09-05 Pedro Alves <palves@redhat.com>
8484
8485 * eval.c (eval_call, evaluate_funcall): New functions, factored
8486 out from ...
8487 (evaluate_subexp_standard): ... this.
8488
22916b07
YQ
84892017-09-05 Yao Qi <yao.qi@linaro.org>
8490
8491 * amd64-tdep.c (amd64_target_description): Create target
8492 descriptions.
8493 (_initialize_amd64_tdep): Don't call functions
8494 initialize_tdesc_amd64_*. Add self tests.
8495 * arch/amd64.c (amd64_create_target_description): Add parameter
8496 is_linux. Call set_tdesc_osabi if is_linux is true.
8497 * arch/amd64.h (amd64_create_target_description): Update the
8498 declaration.
8499 * arch/i386.c (i386_create_target_description): Add parameter
8500 is_linux. Call set_tdesc_osabi if is_linux is true.
8501 * arch/i386.h (i386_create_target_description): Update
8502 declaration.
8503 * configure.tgt: Add i386.o to gdb_target_obs.
8504 * features/Makefile (XMLTOC): Remove i386/*.xml.
8505 * features/i386/amd64-avx-avx512.c: Remove.
8506 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8507 * features/i386/amd64-avx-mpx.c: Remove.
8508 * features/i386/amd64-avx.c: Remove.
8509 * features/i386/amd64-mpx.c: Remove.
8510 * features/i386/amd64.c: Remove.
8511 * features/i386/i386-avx-avx512.c: Remove.
8512 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8513 * features/i386/i386-avx-mpx.c: Remove.
8514 * features/i386/i386-avx.c: Remove.
8515 * features/i386/i386-mmx.c: Remove.
8516 * features/i386/i386-mpx.c: Remove.
8517 * features/i386/i386.c: Remove.
8518 * i386-tdep.c: Don't include features/i386/i386*.c., include
8519 target-descriptions.h and arch/i386.h.
8520 (i386_target_description): Create target descriptions.
8521 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8522 functions. Do self tests.
8523
0854b7b1
YQ
85242017-09-05 Yao Qi <yao.qi@linaro.org>
8525
8526 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8527 * features/i386/amd64-avx-avx512-linux.c: Removed.
8528 * features/i386/amd64-avx-linux.c: Removed.
8529 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8530 * features/i386/amd64-avx-mpx-linux.c: Removed.
8531 * features/i386/amd64-linux.c: Removed.
8532 * features/i386/amd64-mpx-linux.c: Removed.
8533 * features/i386/x32-avx-avx512-linux.c: Removed.
8534 * features/i386/x32-avx-linux.c: Removed.
8535 * features/i386/x32-linux.c: Removed.
8536
b4570e4b
YQ
85372017-09-05 Yao Qi <yao.qi@linaro.org>
8538
8539 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8540 features/i386/*.c.
8541 (amd64_linux_read_description): Call
8542 amd64_create_target_description.
8543 * arch/amd64.c: New file.
8544 * arch/amd64.h: New file.
8545 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8546 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8547
6c73f67f
YQ
85482017-09-05 Yao Qi <yao.qi@linaro.org>
8549
8550 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8551 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8552 (amd64_linux_read_description): Create target descriptions.
8553 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8554 functions. Add unit tests.
8555 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8556 x32-core.xml.
8557 * features/i386/64bit-avx.c: Generated.
8558 * features/i386/64bit-avx512.c: Generated.
8559 * features/i386/64bit-core.c: Generated.
8560 * features/i386/64bit-linux.c: Generated.
8561 * features/i386/64bit-mpx.c: Generated.
8562 * features/i386/64bit-pkeys.c: Generated.
8563 * features/i386/64bit-segments.c: Generated.
8564 * features/i386/64bit-sse.c: Generated.
8565 * features/i386/x32-core.c: Generated.
8566 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8567 c files for amd64-linux and x32-linux.
8568
9d3d478b
YQ
85692017-09-05 Yao Qi <yao.qi@linaro.org>
8570
8571 * amd64-linux-tdep.c (amd64_linux_read_description): New
8572 function.
8573 (amd64_linux_core_read_description): Call
8574 amd64_linux_read_description.
8575 (amd64_linux_init_abi): Likewise.
8576 (amd64_x32_linux_init_abi): Likewise.
8577 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8578 * x86-linux-nat.c (x86_linux_read_description): Call
8579 amd64_linux_read_description.
8580
b9f1d50f
YQ
85812017-09-05 Yao Qi <yao.qi@linaro.org>
8582
8583 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8584 comments.
8585
188c9e6d
YQ
85862017-09-05 Yao Qi <yao.qi@linaro.org>
8587
8588 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8589 * features/i386/i386-avx-avx512-linux.c: Remove.
8590 * features/i386/i386-avx-linux.c: Remove.
8591 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8592 * features/i386/i386-avx-mpx-linux.c: Remove.
8593 * features/i386/i386-linux.c: Remove.
8594 * features/i386/i386-mmx-linux.c: Remove.
8595 * features/i386/i386-mpx-linux.c: Remove.
8596
5f035c07
YQ
85972017-09-05 Yao Qi <yao.qi@linaro.org>
8598
8599 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8600 (SFILES): Add arch/i386.c.
8601 (HFILES_NO_SRCDIR): Add arch/i386.h.
8602 * arch/i386.c: New file.
8603 * arch/i386.h: New file.
8604 * arch/tdesc.h (allocate_target_description): Declare.
8605 (set_tdesc_architecture): Declare.
8606 (set_tdesc_osabi): Declare.
8607 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8608 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8609 include arch/i386.h.
8610 (i386_linux_read_description): Remove code and call
8611 i386_create_target_description.
8612 (set_tdesc_architecture): New function.
8613 (set_tdesc_osabi): New function.
8614 * target-descriptions.h (allocate_target_description): Remove.
8615
0abe8a89
YQ
86162017-09-05 Yao Qi <yao.qi@linaro.org>
8617
8618 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8619 * target-descriptions.c (tdesc_create_feature): Likewise, and
8620 adjust code.
8621 * features/i386/32bit-avx.c: Re-generated.
8622 * features/i386/32bit-avx512.c: Re-generated.
8623 * features/i386/32bit-core.c: Re-generated.
8624 * features/i386/32bit-linux.c: Re-generated.
8625 * features/i386/32bit-mpx.c: Re-generated.
8626 * features/i386/32bit-pkeys.c: Re-generated.
8627 * features/i386/32bit-sse.c: Re-generated.
8628
0a188386
YQ
86292017-09-05 Yao Qi <yao.qi@linaro.org>
8630
8631 * regformats/regdef.h (struct reg): Override operator == and !=.
8632
f49ff000
YQ
86332017-09-05 Yao Qi <yao.qi@linaro.org>
8634
8635 * arch/tdesc.h: New file.
8636 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8637 * target-descriptions.c: Update comments.
8638 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8639 declarations.
8640 * features/i386/32bit-avx.c: Re-generated.
8641 * features/i386/32bit-avx512.c: Re-generated.
8642 * features/i386/32bit-core.c: Re-generated.
8643 * features/i386/32bit-linux.c: Re-generated.
8644 * features/i386/32bit-mpx.c: Re-generated.
8645 * features/i386/32bit-pkeys.c: Re-generated.
8646 * features/i386/32bit-sse.c: Re-generated.
8647
f7000548
YQ
86482017-09-05 Yao Qi <yao.qi@linaro.org>
8649
8650 * regformats/regdat.sh: Update generated code.
8651
c9a5e2a5
YQ
86522017-09-05 Yao Qi <yao.qi@linaro.org>
8653
8654 * regformats/regdat.sh: Adjust code order.
8655
d6b687ac
SM
86562017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8657
8658 * expprint.c (dump_subexp_body_standard): Use constant format
8659 string in fprintf_filtered call.
8660
a379bfd0
JB
86612017-09-04 John Baldwin <jhb@FreeBSD.org>
8662
8663 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8664 NetBSD/i386.
8665 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8666
f7efc967
JB
86672017-09-04 John Baldwin <jhb@FreeBSD.org>
8668
8669 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8670
c49fbc6c
JB
86712017-09-04 John Baldwin <jhb@FreeBSD.org>
8672
8673 * bsd-kvm.o: Define _KMEMUSER.
8674 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8675 * configure: Regenerate.
8676
26562e73
JB
86772017-09-04 John Baldwin <jhb@FreeBSD.org>
8678
8679 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8680 * i386-fbsd-nat.c: Likewise.
8681
31cf1487
JB
86822017-09-04 John Baldwin <jhb@FreeBSD.org>
8683
8684 * unittests/array-view-selftests.c: Add include of <array>.
8685
5b9f8a7c
JB
86862017-09-04 John Baldwin <jhb@FreeBSD.org>
8687
8688 * spu-tdep.c (flush_ea_cache): Add missing argument to
8689 call_function_by_hand.
8690
d69cf9b2
PA
86912017-09-04 Pedro Alves <palves@redhat.com>
8692
8693 * NEWS (Safer support for debugging with no debug info): New.
8694
3693fdb3
PA
86952017-09-04 Pedro Alves <palves@redhat.com>
8696
8697 * c-exp.y (function_method, function_method_void): Add current
8698 instance flags to TYPE_INSTANCE.
8699 * dwarf2read.c (check_modifier): New.
8700 (compute_delayed_physnames): Assert that only C++ adds delayed
8701 physnames. Mark fn_fields as const/volatile depending on
8702 physname.
8703 * eval.c (make_params): New type_instance_flags parameter. Use
8704 it as the new type's instance flags.
8705 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8706 flags element and pass it to make_params.
8707 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8708 instance flags element.
8709 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8710 * gdbtypes.h: Include "enum-flags.h".
8711 (type_instance_flags): New enum-flags type.
8712 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8713 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8714 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8715 (follow_type_instance_flags): New function.
8716 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8717 * parser-defs.h (follow_type_instance_flags): Declare.
8718 * valops.c (value_struct_elt_for_reference): const/volatile must
8719 match too.
8720
e68cb8e0
PA
87212017-09-04 Pedro Alves <palves@redhat.com>
8722
8723 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8724 function/method scopes; lookup the nested name as a function local
8725 static variable.
8726
858be34c
PA
87272017-09-04 Pedro Alves <palves@redhat.com>
8728
8729 (%type <voidval>): Add function_method.
8730 * c-exp.y (exp): New production for calls with no arguments.
8731 (function_method, function_method_void_or_typelist): New
8732 productions.
8733 (exp): New production for "method()::static_var".
8734 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8735 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8736 Handle OP_FUNC_STATIC_VAR.
8737 * parse.c (operator_length_standard):
8738 Handle OP_FUNC_STATIC_VAR.
8739
dd5901a6
PA
87402017-09-04 Pedro Alves <palves@redhat.com>
8741
8742 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8743 handling.
8744 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8745 Ditto.
8746 * parse.c (operator_length_standard, operator_check_standard):
8747 Ditto.
8748 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8749
46a4882b
PA
87502017-09-04 Pedro Alves <palves@redhat.com>
8751
8752 * ax-gdb.c: Include "typeprint.h".
8753 (gen_expr_for_cast): New function.
8754 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8755 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8756 type is unknown.
8757 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8758 nodebug_data_symbol.
8759 * eval.c: Include "typeprint.h".
8760 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8761 Error out if symbol has unknown type.
8762 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8763 evaluate_subexp_for_cast.
8764 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8765 OP_VAR_MSYM_VALUE.
8766 (evaluate_subexp_for_cast): New function.
8767 * gdbtypes.c (init_nodebug_var_type): New function.
8768 (objfile_type): Use it to initialize types of variables with no
8769 debug info.
8770 * typeprint.c (error_unknown_type): New.
8771 * typeprint.h (error_unknown_type): New declaration.
8772 * compile/compile-c-types.c (convert_type_basic): Handle
8773 TYPE_CODE_ERROR; warn and fallback to int for variables with
8774 unknown type.
8775
fe13dfec
PA
87762017-09-04 Pedro Alves <palves@redhat.com>
8777
8778 * eval.c (evaluate_var_value): New function, factored out from ...
8779 (evaluate_subexp_standard): ... here.
8780
d008ee21
PA
87812017-09-04 Pedro Alves <palves@redhat.com>
8782
8783 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8784 Remove useless assignments to 'op'.
8785
827d0c51
PA
87862017-09-04 Pedro Alves <palves@redhat.com>
8787
8788 * eval.c (eval_skip_value): New function.
8789 (evaluate_subexp_standard): Use it.
8790
2c5a2be1
PA
87912017-09-04 Pedro Alves <palves@redhat.com>
8792
8793 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8794 function name from symbol/minsym and pass it to
8795 error_call_unknown_return_type.
8796
74ea4be4
PA
87972017-09-04 Pedro Alves <palves@redhat.com>
8798
8799 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8800 * ax-gdb.c (gen_msym_var_ref): New function.
8801 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8802 * eval.c (evaluate_var_msym_value): New function.
8803 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8804 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8805 to call_function_by_hand.
8806 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8807 Handle OP_VAR_MSYM_VALUE.
8808 (union exp_element) <msymbol>: New field.
8809 * minsyms.h (struct type): Forward declare.
8810 (find_minsym_type_and_address): Declare.
8811 * parse.c (write_exp_elt_msym): New function.
8812 (write_exp_msymbol): Delete, refactored as ...
8813 (find_minsym_type_and_address): ... this new function.
8814 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8815 (operator_length_standard, operator_check_standard): Handle
8816 OP_VAR_MSYM_VALUE.
8817 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8818
7022349d
PA
88192017-09-04 Pedro Alves <palves@redhat.com>
8820
8821 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8822 TYPE_GNU_IFUNC specially here. Throw error if return type is
8823 unknown.
8824 * ada-typeprint.c (print_func_type): Handle functions with unknown
8825 return type.
8826 * c-typeprint.c (c_type_print_base): Handle functions and methods
8827 with unknown return type.
8828 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8829 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8830 * compile/compile-c-types.c: Include "objfiles.h".
8831 (convert_func): For functions with unknown return type, warn and
8832 default to int.
8833 * compile/compile-object-run.c (compile_object_run): Adjust call
8834 to call_function_by_hand_dummy.
8835 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8836 call_function_by_hand.
8837 * eval.c (evaluate_subexp_standard): Adjust calls to
8838 call_function_by_hand. Handle functions and methods with unknown
8839 return type. Pass expect_type to call_function_by_hand.
8840 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8841 return type.
8842 * gcore.c (call_target_sbrk): Adjust call to
8843 call_function_by_hand.
8844 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8845 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8846 an integer address type instead of nodebug.
8847 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8848 call_function_by_hand.
8849 * infcall.c (error_call_unknown_return_type): New function.
8850 (call_function_by_hand): New "default_return_type" parameter.
8851 Pass it down.
8852 (call_function_by_hand_dummy): New "default_return_type"
8853 parameter. Use it instead of defaulting to int. If there's no
8854 default and the return type is unknown, throw an error. If
8855 there's a default return type, and the called function has no
8856 debug info, then assume the function is prototyped.
8857 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8858 New "default_return_type" parameter.
8859 (error_call_unknown_return_type): New declaration.
8860 * linux-fork.c (call_lseek): Cast return type of lseek.
8861 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8862 call_function_by_hand.
8863 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8864 calls to call_function_by_hand.
8865 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8866 return type.
8867 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8868 (value_nsstring, print_object_command): Adjust calls to
8869 call_function_by_hand.
8870 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8871 functions with unknown return type.
8872 (pascal_type_print_func_varspec_suffix): New function.
8873 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8874 TYPE_CODE_METHOD>: Use it.
8875 * python/py-value.c (valpy_call): Adjust call to
8876 call_function_by_hand.
8877 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8878 call_function_by_hand.
8879 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8880 call_function_by_hand.
8881 * valops.c (value_allocate_space_in_inferior): Adjust call to
8882 call_function_by_hand.
8883 * typeprint.c (type_print_unknown_return_type): New function.
8884 * typeprint.h (type_print_unknown_return_type): New declaration.
8885
54990598
PA
88862017-09-04 Pedro Alves <palves@redhat.com>
8887
8888 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8889 types with more than one parameter as prototyped.
8890
9a24775b
PA
88912017-09-04 Pedro Alves <palves@redhat.com>
8892
8893 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8894 (disassemble_command): Use gdb_disassembly_flags instead of bare
8895 int.
8896 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8897 (dump_insns, do_mixed_source_and_assembly_deprecated)
8898 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8899 Use gdb_disassembly_flags instead of bare int.
8900 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8901 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8902 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8903 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8904 (enum gdb_disassembly_flag): ... values of this new enumeration.
8905 (gdb_disassembly_flags): Define.
8906 (gdb_disassembly)
8907 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8908 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8909 gdb_disassembly_flags instead of bare int.
8910 * record-btrace.c (btrace_insn_history)
8911 (record_btrace_insn_history, record_btrace_insn_history_range)
8912 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8913 instead of bare int.
8914 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8915 Use gdb_disassembly_flags instead of bare int.
8916 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8917 Define.
8918 * target-delegates.c: Regenerate.
8919 * target.c (target_insn_history, target_insn_history_from)
8920 (target_insn_history_range): Use gdb_disassembly_flags instead of
8921 bare int.
8922 * target.h: Include "disasm.h".
8923 (struct target_ops) <to_insn_history, to_insn_history_from,
8924 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8925 int.
8926 (target_insn_history, target_insn_history_from)
8927 (target_insn_history_range): Use gdb_disassembly_flags instead of
8928 bare int.
8929
80a65e9b
SM
89302017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8931
8932 * cli/cli-script.c (build_command_line): For if/while commands,
8933 check whether args is empty.
8934
6b66338c
SM
89352017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8936
8937 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8938 (enum command_control_type): Likewise.
8939 (struct command_line): Likewise.
8940 (free_command_lines): Likewise.
8941 (struct command_lines_deleter): Likewise.
8942 (command_line_up): Likewise.
8943 (read_command_lines): Likewise.
8944 (read_command_lines_1): Likewise.
8945 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8946 (enum command_control_type): Likewise.
8947 (struct command_line): Likewise.
8948 (free_command_lines): Likewise.
8949 (struct command_lines_deleter): Likewise.
8950 (command_line_up): Likewise.
8951 (read_command_lines): Likewise.
8952 (read_command_lines_1): Likewise.
8953 * breakpoint.h: Include cli/cli-script.h.
8954 * extension-priv.h: Likewise.
8955 * gdbcmd.h: Likewise.
8956
51abb421
PA
89572017-09-04 Pedro Alves <palves@redhat.com>
8958
8959 * ada-lang.c (is_known_support_routine): Move sal declaration to
8960 where it is initialized.
8961 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8962 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8963 (clear_command, update_static_tracepoint): Remove init_sal
8964 references. Move declarations closer to initializations.
8965 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8966 initializations.
8967 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8968 references. Move sal declarations closer to initializations.
8969 * frame.c (find_frame_sal): Return a symtab_and_line via function
8970 return instead of output parameter. Remove init_sal references.
8971 * frame.h (find_frame_sal): Return a symtab_and_line via function
8972 return instead of output parameter.
8973 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8974 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8975 instead of memset.
8976 (gdbscm_find_pc_line): Remove init_sal reference.
8977 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8978 references. Move declarations closer to initializations.
8979 * infcmd.c (set_step_frame): Update. Move declarations closer to
8980 initializations.
8981 (finish_backward): Remove init_sal references. Move declarations
8982 closer to initializations.
8983 * infrun.c (process_event_stop_test, handle_step_into_function)
8984 (insert_hp_step_resume_breakpoint_at_frame)
8985 (insert_step_resume_breakpoint_at_caller): Likewise.
8986 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8987 (symbol_to_sal): Likewise.
8988 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8989 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8990 to its initialization.
8991 * reverse.c (save_bookmark_command): Use new/delete. Remove
8992 init_sal references. Move declarations closer to initializations.
8993 * source.c (get_current_source_symtab_and_line): Remove brace
8994 initialization.
8995 (set_current_source_symtab_and_line): Now takes the sal by const
8996 reference. Remove brace initialization.
8997 (line_info): Remove init_sal reference.
8998 * source.h (set_current_source_symtab_and_line): Now takes a
8999 symtab_and_line via const reference.
9000 * stack.c (set_current_sal_from_frame): Adjust.
9001 (print_frame_info): Adjust.
9002 (get_last_displayed_sal): Return the sal via function return
9003 instead of via output parameter. Simplify.
9004 (frame_info): Adjust.
9005 * stack.h (get_last_displayed_sal): Return the sal via function
9006 return instead of via output parameter.
9007 * symtab.c (init_sal): Delete.
9008 (find_pc_sect_line): Remove init_sal references. Move
9009 declarations closer to initializations.
9010 (find_function_start_sal): Remove init_sal references. Move
9011 declarations closer to initializations.
9012 * symtab.h (struct symtab_and_line): In-class initialize all
9013 fields.
9014 * tracepoint.c (set_traceframe_context)
9015 (print_one_static_tracepoint_marker): Remove init_sal references.
9016 Move declarations closer to initializations.
9017 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
9018 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
9019 declarations closer to initializations.
9020 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
9021 init_sal references. Adjust.
9022
6c5b2ebe
PA
90232017-09-04 Pedro Alves <palves@redhat.com>
9024
9025 * ax-gdb.c (agent_command_1): Use range-for.
9026 * break-catch-throw.c (re_set_exception_catchpoint): Update.
9027 * breakpoint.c: Include "common/array-view.h".
9028 (init_breakpoint_sal, create_breakpoint_sal): Change sals
9029 parameter from struct symtabs_and_lines to
9030 array_view<symtab_and_line>. Adjust. Use range-for. Update.
9031 (breakpoint_sals_to_pc): Change sals parameter from struct
9032 symtabs_and_lines to std::vector reference.
9033 (check_fast_tracepoint_sals): Change sals parameter from struct
9034 symtabs_and_lines to std::array_view. Use range-for.
9035 (decode_static_tracepoint_spec): Return a std::vector instead of
9036 symtabs_and_lines. Update.
9037 (create_breakpoint): Update.
9038 (break_range_command, until_break_command, clear_command): Update.
9039 (base_breakpoint_decode_location, bkpt_decode_location)
9040 (bkpt_probe_create_sals_from_location)
9041 (bkpt_probe_decode_location, tracepoint_decode_location)
9042 (tracepoint_probe_decode_location)
9043 (strace_marker_create_sals_from_location): Return a std::vector
9044 instead of symtabs_and_lines.
9045 (strace_marker_create_breakpoints_sal): Update.
9046 (strace_marker_decode_location): Return a std::vector instead of
9047 symtabs_and_lines. Update.
9048 (update_breakpoint_locations): Change struct symtabs_and_lines
9049 parameters to gdb::array_view. Adjust.
9050 (location_to_sals): Return a std::vector instead of
9051 symtabs_and_lines. Update.
9052 (breakpoint_re_set_default): Use std::vector instead of struct
9053 symtabs_and_lines.
9054 (decode_location_default): Return a std::vector instead of
9055 symtabs_and_lines. Update.
9056 * breakpoint.h: Include "common/array-view.h".
9057 (struct breakpoint_ops) <decode_location>: Now returns a
9058 std::vector instead of returning a symtabs_and_lines via output
9059 parameter.
9060 (update_breakpoint_locations): Change sals parameters to use
9061 gdb::array_view.
9062 * cli/cli-cmds.c (edit_command, list_command): Update to use
9063 std::vector and gdb::array_view.
9064 (ambiguous_line_spec): Adjust to use gdb::array_view and
9065 range-for.
9066 (compare_symtabs): Rename to ...
9067 (cmp_symtabs): ... this. Change parameters to symtab_and_line
9068 const reference and adjust.
9069 (filter_sals): Rewrite using std::vector and standard algorithms.
9070 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
9071 (jump_command): Update to use std::vector.
9072 * linespec.c (struct linespec_state) <canonical_names>: Update
9073 comment.
9074 (add_sal_to_sals_basic): Delete.
9075 (add_sal_to_sals, filter_results, convert_results_to_lsals)
9076 (decode_line_2, create_sals_line_offset)
9077 (convert_address_location_to_sals, convert_linespec_to_sals)
9078 (convert_explicit_location_to_sals, parse_linespec)
9079 (event_location_to_sals, decode_line_full, decode_line_1)
9080 (decode_line_with_current_source)
9081 (decode_line_with_last_displayed, decode_objc)
9082 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
9083 (linespec_result::~linespec_result): Adjust to use std::vector
9084 instead of symtabs_and_lines.
9085 * linespec.h (linespec_sals::sals): Now a std::vector.
9086 (struct linespec_result): Use std::vector, bool, and in-class
9087 initialization.
9088 (decode_line_1, decode_line_with_current_source)
9089 (decode_line_with_last_displayed): Return std::vector.
9090 * macrocmd.c (info_macros_command): Use std::vector.
9091 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
9092 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
9093 std::vector.
9094 * probe.h (parse_probes): Return a std::vector.
9095 * python/python.c (gdbpy_decode_line): Use std::vector and
9096 gdb::array_view.
9097 * source.c (select_source_symtab, line_info): Use std::vector.
9098 * stack.c (func_command): Use std::vector.
9099 * symtab.h (struct symtabs_and_lines): Delete.
9100 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
9101
7c44b49c
PA
91022017-09-04 Pedro Alves <palves@redhat.com>
9103
9104 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9105 unittests/array-view-selftests.c.
9106 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
9107 * common/array-view.h: New file.
9108 * unittests/array-view-selftests.c: New file.
9109
e439fa14
PA
91102017-09-04 Pedro Alves <palves@redhat.com>
9111
9112 * cli/cli-cmds.c (edit_command): Pass message to
9113 ambiguous_line_spec.
9114 (list_command): Pass message to ambiguous_line_spec. Say
9115 "first"/"last" instead of "start" and "end" to be consistent with
9116 the manual.
9117 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
9118 them to print formatted message.
9119
7525b645
PA
91202017-09-04 Pedro Alves <palves@redhat.com>
9121
9122 * btrace.c (ftrace_add_pt): Pass btrace_insn to
9123 ftrace_update_insns by reference instead of pointer.
9124
badc0020
YQ
91252017-09-04 Yao Qi <yao.qi@linaro.org>
9126
9127 * i386-go32-tdep.c: Include x86-xstate.h.
9128 (i386_go32_init_abi): Call i386_target_description.
9129 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
9130 if xcr0 is X86_XSTATE_X87_MASK.
9131 * i386-tdep.h (tdesc_i386): Remove the declaration.
9132 (tdesc_i386_mmx): Likewise.
9133
d78bdb54
YQ
91342017-09-04 Yao Qi <yao.qi@linaro.org>
9135
9136 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
9137 X86_XSTATE_SSE_MASK instead of 0.
9138
ca1fa5ee
YQ
91392017-09-04 Yao Qi <yao.qi@linaro.org>
9140
9141 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
9142 i386_target_description.
9143 * i386-fbsd-nat.c (i386fbsd_read_description): Call
9144 i386_target_description.
9145 * i386-tdep.c (i386_gdbarch_init): Likewise.
9146
2434b019
YQ
91472017-09-04 Yao Qi <yao.qi@linaro.org>
9148
9149 * amd64-darwin-tdep.c: Include "x86-xstate.h".
9150 (x86_darwin_init_abi_64): Call amd64_target_description.
9151 * amd64-dicos-tdep.c: Likewise.
9152 * amd64-fbsd-nat.c: Likewise.
9153 * amd64-fbsd-tdep.c: Likewise.
9154 * amd64-nbsd-tdep.c: Likewise.
9155 * amd64-obsd-tdep.c: Likewise.
9156 * amd64-sol2-tdep.c: Likewise.
9157 * amd64-windows-tdep.c: Likewise.
9158 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
9159
0860c437
SM
91602017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9161
9162 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
9163 (btrace_function) <insn>: Change type to use std::vector.
9164 * btrace.c (ftrace_debug, ftrace_call_num_insn,
9165 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
9166 ftrace_update_insns, ftrace_compute_global_level_offset,
9167 btrace_stitch_bts, btrace_clear, btrace_insn_get,
9168 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
9169 change to std::vector.
9170 (ftrace_update_insns): Adjust to change to std::vector, change
9171 type of INSN parameter.
9172 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
9173 * record-btrace.c (btrace_call_history_insn_range,
9174 btrace_compute_src_line_range,
9175 record_btrace_frame_prev_register): Adjust to change to
9176 std::vector.
9177 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
9178 to change to std::vector.
9179
0638b7f9
TT
91802017-09-03 Tom Tromey <tom@tromey.com>
9181
9182 * corefile.c (reopen_exec_file): Use std::string.
9183
8f84fb0e
TT
91842017-09-03 Tom Tromey <tom@tromey.com>
9185
9186 * compile/compile.c (compile_register_name_mangled): Return
9187 std::string.
9188 * compile/compile-loc2c.c (pushf_register_address): Update.
9189 (pushf_register): Update.
9190 * compile/compile-c-types.c (convert_array): Update.
9191 * compile/compile-c-symbols.c (generate_vla_size): Update.
9192 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
9193 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
9194 (convert_one_symbol): Update.
9195 (generate_c_for_for_one_variable): Update.
9196 * compile/compile-c-support.c (c_get_range_decl_name): Return a
9197 std::string.
9198 (generate_register_struct): Update.
9199 * compile/compile-internal.h (c_get_range_decl_name): Return a
9200 std::string.
9201 (compile_register_name_mangled): Return std::string.
9202
18e9961f
TT
92032017-09-03 Tom Tromey <tom@tromey.com>
9204
9205 * utils.c (perror_string): Return a std::string.
9206 (throw_perror_with_name, perror_warning_with_name): Update.
9207
45343786
TT
92082017-09-03 Tom Tromey <tom@tromey.com>
9209
9210 * demangle.c (demangle_command): Use std::string,
9211 unique_xmalloc_ptr.
9212
b57af503
TT
92132017-09-03 Tom Tromey <tom@tromey.com>
9214
9215 * cli/cli-setshow.c (do_set_command): Use std::string.
9216
6eecf35f
TT
92172017-09-03 Tom Tromey <tom@tromey.com>
9218
9219 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
9220
56496dd4
TT
92212017-09-03 Tom Tromey <tom@tromey.com>
9222
9223 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
9224
e91a1fa7
TT
92252017-09-03 Tom Tromey <tom@tromey.com>
9226
9227 * mi/mi-cmd-env.c (env_execute_cli_command): Use
9228 gdb::unique_xmalloc_ptr.
9229
7ffd83d7
TT
92302017-09-03 Tom Tromey <tom@tromey.com>
9231
9232 * thread.c (print_thread_info_1): Use string_printf.
9233 (thread_apply_command, thread_apply_all_command): Use
9234 std::string.
9235
1ccbe998
TT
92362017-09-03 Tom Tromey <tom@tromey.com>
9237
9238 * valprint.c (val_print_string): Update.
9239 * gdbcore.h (memory_error_message): Return std::string.
9240 * corefile.c (memory_error_message): Return std::string.
9241 (memory_error): Update.
9242 * breakpoint.c (insert_bp_location): Update.
9243
23fdd69e
SM
92442017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9245
9246 * target/waitstatus.h (target_waitstatus_to_string): Change
9247 return type to std::string.
9248 * target/waitstatus.c (target_waitstatus_to_string): Return
9249 std::string.
9250 * target.h (target_waitstatus_to_string): Remove declaration.
9251 * infrun.c (resume, clear_proceed_status_thread,
9252 print_target_wait_results, do_target_wait, save_waitstatus,
9253 stop_all_threads): Adjust.
9254 * record-btrace.c (record_btrace_wait): Adjust.
9255 * target-debug.h
9256 (target_debug_print_struct_target_waitstatus_p): Adjust.
9257
5c811d30
JK
92582017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9259
9260 PR gdb/22046
9261 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9262 detection.
9263
0a2dde4a
SDJ
92642017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9265
9266 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9267 for setting/unsetting environment variables on the remote target.
9268 (New remote packets): Add entries for QEnvironmentHexEncoded,
9269 QEnvironmentUnset and QEnvironmentReset.
9270 * common/environ.c (gdb_environ::operator=): Extend method to
9271 handle m_user_set_env_list and m_user_unset_env_list.
9272 (gdb_environ::clear): Likewise.
9273 (match_var_in_string): Change type of first parameter from 'char
9274 *' to 'const char *'.
9275 (gdb_environ::set): Extend method to handle
9276 m_user_set_env_list and m_user_unset_env_list.
9277 (gdb_environ::unset): Likewise.
9278 (gdb_environ::clear_user_set_env): New method.
9279 (gdb_environ::user_set_envp): Likewise.
9280 (gdb_environ::user_unset_envp): Likewise.
9281 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9282 m_user_unset_env_list on move constructor/assignment.
9283 (unset): Add new default parameter 'update_unset_list = true'.
9284 (clear_user_set_env): New method.
9285 (user_set_envp): Likewise.
9286 (user_unset_envp): Likewise.
9287 (m_user_set_env_list): New std::set.
9288 (m_user_unset_env_list): Likewise.
9289 * common/rsp-low.c (hex2str): New function.
9290 (bin2hex): New overload for bin2hex function.
9291 * common/rsp-low.c (hex2str): New prototype.
9292 (str2hex): New overload prototype.
9293 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9294 QEnvironmentUnset and QEnvironmentReset.
9295 (remote_protocol_features): Add QEnvironmentHexEncoded,
9296 QEnvironmentUnset and QEnvironmentReset packets.
9297 (send_environment_packet): New function.
9298 (extended_remote_environment_support): Likewise.
9299 (extended_remote_create_inferior): Call
9300 extended_remote_environment_support.
9301 (_initialize_remote): Add QEnvironmentHexEncoded,
9302 QEnvironmentUnset and QEnvironmentReset packet configs.
9303 * unittests/environ-selftests.c (gdb_selftest_env_var):
9304 New variable.
9305 (test_vector_initialization): New function.
9306 (test_init_from_host_environ): Likewise.
9307 (test_reinit_from_host_environ): Likewise.
9308 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9309 Likewise.
9310 (test_unset_set_empty_vector): Likewise.
9311 (test_vector_clear): Likewise.
9312 (test_std_move): Likewise.
9313 (test_move_constructor):
9314 (test_self_move): Likewise.
9315 (test_set_unset_reset): Likewise.
9316 (run_tests): Rewrite in terms of the functions above.
9317
654670a4
WP
93182017-08-31 Weimin Pan <weimin.pan@oracle.com>
9319
9320 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9321 (adi_available): Use a temp variable of type CORE_ADDR as argument
9322 3 when calling target_auxv_search.
9323 (adi_normalize_address): Use masks and xor operators to calculate
9324 normalized address.
9325 (adi_read_versions, adi_write_versions, adi_print_versions)
9326 (do_examine, do_assign): Use paddress.
9327
7755ddb7
JB
93282017-08-29 John Baldwin <jhb@FreeBSD.org>
9329
9330 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9331 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9332 out of loop and add supply of FIR.
9333 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9334 add collect of FIR.
9335
fd437cbc
SM
93362017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9337
3804a343 9338 PR gdb/21827
fd437cbc
SM
9339 * cli/cli-script.c (define_command): Don't convert command name
9340 to lower case.
9341
988f6b3d
JB
93422017-08-25 Joel Brobecker <brobecker@adacore.com>
9343
9344 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9345 Update all callers accordingly. Remove all code blocks handling
9346 the case where DISPP is not NULL.
9347
663c44ac
JK
93482017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9349
9350 PR symtab/22003
9351 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9352 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9353 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9354
f1902523
JK
93552017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9356
9357 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9358 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9359 (read_comp_units_from_section): New parameter abbrev_section, use
9360 read_and_check_comp_unit_head, allocate signatured_type if needed.
9361 (create_all_comp_units): Update read_comp_units_from_section caller.
9362
87215ad1
SDJ
93632017-08-23 Pedro Alves <palves@redhat.com>
9364
9365 PR remote/21852
9366 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9367 to null_ptid and switch to thread without reading the registers
9368 after adding the inferior.
9369
6e41ddec
JK
93702017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9371
9372 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9373 compile-gcc.
9374 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9375 (compile_to_object): Implement compile_gcc.
9376 (_initialize_compile): Install "set compile-gcc". Initialize
9377 compile_gcc.
9378
e68c32d5
JK
93792017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9380
9381 * compile/compile.c (compile_to_object): Conditionally call
9382 set_verbose. Conditionally call compile or compile_v0.
9383
58afddc6
WP
93842017-08-07 Weimin Pan <weimin.pan@oracle.com>
9385
9386 * sparc64-tdep.h: (adi_normalize_address): New export.
9387 * sparc-nat.h: (open_adi_tag_fd): New export.
9388 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9389 * sparc64-linux-tdep.c:
9390 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9391 (sparc64_linux_handle_segmentation_fault): New function.
9392 (sparc64_linux_init_abi): Register
9393 sparc64_linux_handle_segmentation_fault
9394 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9395 (sparc64_addr_bits_remove): New function.
9396 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9397 (MAX_PROC_NAME_SIZE): New macro.
9398 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9399 (sparc64adilist): New variable.
9400 (adi_proc_list): New variable.
9401 (find_adi_info): New function.
9402 (add_adi_info): New function.
9403 (get_adi_info_proc): New function.
9404 (get_adi_info): New function.
9405 (info_adi_command): New function.
9406 (read_maps_entry): New function.
9407 (adi_available): New function.
9408 (adi_normalize_address): New function.
9409 (adi_align_address): New function.
9410 (adi_convert_byte_count): New function.
9411 (adi_tag_fd): New function.
9412 (adi_is_addr_mapped): New function.
9413 (adi_read_versions): New function.
9414 (adi_write_versions): New function.
9415 (adi_print_versions): New function.
9416 (do_examine): New function.
9417 (do_assign): New function.
9418 (adi_examine_command): New function.
9419 (adi_assign_command): New function.
9420 (_initialize_sparc64_adi_tdep): New function.
9421
11db9430
SM
94222017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9423
9424 * breakpoint.c (breakpoints_info): Rename to ...
9425 (info_breakpoints_command): ... this.
9426 (watchpoints_info): Rename to ...
9427 (info_watchpoints_command): ... this.
9428 (tracepoints_info): Rename to ...
9429 (info_tracepoints_command): ... this.
9430 (_initialize_breakpoint): Adjust.
9431 * dcache.c (dcache_info): Rename to ...
9432 (info_display_command): ... this.
9433 (_initialize_dcache): Adjust.
9434 * frame.h (args_info): Rename to ...
9435 (info_args_command): ... this.
9436 (locals_info): Rename to ...
9437 (info_locals_command): ... this.
9438 * infcmd.c (nofp_registers_info): Rename to ...
9439 (info_registers_command): ... this.
9440 (float_info): Rename to ...
9441 (info_float_command): ... this.
9442 (program_info): Rename to ...
9443 (info_program_command): ... this.
9444 (all_registers_info): Rename to ...
9445 (info_all_registers_command): ... this.
9446 (vector_info): Rename to ...
9447 (info_vector_command): ... this.
9448 (float_info): Rename to ...
9449 (info_float_command): ... this.
9450 (_initialize_infcmd): Adjust.
9451 * inferior.h (term_info): Rename to ...
9452 (info_terminal_command): ... this.
9453 * inflow.c (term_info): Rename to ...
9454 (info_terminal_command): ... this.
9455 (_initialize_inflow): Adjust.
9456 * infrun.c (signals_info): Rename to ...
9457 (info_signals_command): ... this.
9458 (_initialize_infrun): Adjust.
9459 * objc-lang.c (classes_info): Rename to ...
9460 (info_classes_command): ... this.
9461 (selectors_info): Rename to ...
9462 (info_selectors_command): ... this.
9463 (_initialize_objc_language): Adjust.
9464 * printcmd.c (sym_info): Rename to ...
9465 (info_symbol_command): ... this.
9466 (address_info): Rename to ...
9467 (info_address_command): ... this.
9468 (display_info): Rename to ...
9469 (info_display_command): ... this.
9470 (_initialize_printcmd): Adjust.
9471 * reverse.c (bookmarks_info): Rename to ...
9472 (info_breakpoints_command): ... this.
9473 (_initialize_reverse): Adjust.
9474 * ser-go32.c (dos_info): Rename to ...
9475 (info_serial_command): ... this.
9476 (_initialize_ser_dos): Adjust.
9477 * skip.c (skip_info): Rename to ...
9478 (info_skip_command): ... this.
9479 (_initialize_step_skip): Adjust.
9480 * source.c (line_info): Rename to ...
9481 (info_line_command): ... this.
9482 (source_info): Rename to ...
9483 (info_source_command)
9484 * stack.c (frame_info): Rename to ...
9485 (info_frame_command): ... this.
9486 (locals_info): Rename to ...
9487 (info_locals_command): ... this.
9488 (args_info): Rename to ...
9489 (info_args_command): ... this.
9490 (_initialize_stack): Adjust.
9491 * symtab.c (sources_info): Rename to ...
9492 (info_sources_command): ... this.
9493 (variables_info): Rename to ...
9494 (info_variables_command): ... this.
9495 (functions_info): Rename to ...
9496 (info_functions_command): ... this.
9497 (types_info): Rename to ...
9498 (info_types_command): ... this.
9499 (_initialize_symtab): Adjust.
9500 * target.c (target_info): Rename to ...
9501 (info_target_command): ... this.
9502 (initialize_targets): Adjust.
9503 * tracepoint.c (tvariables_info): Rename to ...
9504 (info_tvariables_command): ... this.
9505 (scope_info): Rename to ...
9506 (info_scope_command): ... this.
9507 (trace_dump_actions): Adjust.
9508 (_initialize_tracepoint): Adjust.
9509
b270e6f9
TT
95102017-08-22 Tom Tromey <tom@tromey.com>
9511
9512 * breakpoint.h (install_breakpoint): Update.
9513 * breakpoint.c (add_solib_catchpoint): Update.
9514 (install_breakpoint): Change argument to a std::unique_ptr.
9515 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9516 (create_breakpoint_sal, create_breakpoint): Update.
9517 (watch_command_1, catch_exec_command_1)
9518 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9519 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9520 Return the breakpoint.
9521 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9522 (new_single_step_breakpoint): Update.
9523 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9524 std::unique_ptr.
9525 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9526 std::unique_ptr.
9527 * break-catch-sig.c (create_signal_catchpoint): Use
9528 std::unique_ptr.
9529 * ada-lang.c (create_ada_exception_catchpoint): Use
9530 std::unique_ptr.
9531
36bd8eaa
TT
95322017-08-22 Tom Tromey <tom@tromey.com>
9533
9534 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9535
56f37645
TT
95362017-08-22 Tom Tromey <tom@tromey.com>
9537
9538 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9539 (lookup_partial_symbol): Update.
9540
0b581c69
TT
95412017-08-22 Tom Tromey <tom@tromey.com>
9542
9543 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9544 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9545 (find_and_open_source, symtab_to_fullname): Update.
9546 * psymtab.c (psymtab_to_fullname): Update.
9547
14278e1f
TT
95482017-08-22 Tom Tromey <tom@tromey.com>
9549
9550 * exec.c (exec_file_attach): Update.
9551 * linux-thread-db.c (try_thread_db_load): Update.
9552 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9553 * utils.c (gdb_realpath): Change return type.
9554 (gdb_realpath_keepfile): Update.
9555 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9556 (_initialize_utils): Register the new self test.
9557 * source.c (openp): Update.
9558 (find_and_open_source): Update.
9559 * nto-tdep.c (nto_find_and_open_solib): Update.
9560 * main.c (set_gdb_data_directory): Update.
9561 (captured_main_1): Update.
9562 * dwarf2read.c (dwarf2_get_dwz_file): Update
9563 (dw2_map_symbol_filenames): Update.
9564 * auto-load.c (auto_load_safe_path_vec_update): Update.
9565 (filename_is_in_auto_load_safe_path_vec): Change type of
9566 "filename_realp".
9567 (auto_load_objfile_script): Update.
9568 (file_is_auto_load_safe): Update. Use std::string.
9569 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9570
4971c9a7
TT
95712017-08-22 Tom Tromey <tom@tromey.com>
9572
9573 * utils.c (gdb_realpath_keepfile): Return a
9574 gdb::unique_xmalloc_ptr.
9575 * exec.c (exec_file_attach): Update.
9576 * utils.h (gdb_realpath_keepfile): Return a
9577 gdb::unique_xmalloc_ptr.
9578
e3e41d58
TT
95792017-08-22 Tom Tromey <tom@tromey.com>
9580
9581 * compile/compile.c (compile_file_command): Use
9582 gdb::unique_xmalloc_ptr, std::string.
9583 * utils.c (gdb_abspath): Change return type.
9584 * source.c (openp): Update.
9585 * objfiles.c (allocate_objfile): Update.
9586 * main.c (set_gdb_data_directory): Update.
9587 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9588
0d999a6e
ZZ
95892017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9590
9591 * cli-cmds.c (list_commands): List actual code around more than
9592 one location.
9593
329d5e7e
JB
95942017-08-21 John Baldwin <jhb@FreeBSD.org>
9595
9596 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9597
bf223d3e
PA
95982017-08-21 Pedro Alves <palves@redhat.com>
9599
9600 PR gdb/19487
9601 * c-exp.y (variable production): Handle function aliases.
9602 * minsyms.c (msymbol_is_text): New function.
9603 * minsyms.h (msymbol_is_text): Declare.
9604 * symtab.c (find_function_alias_target): New function.
9605 * symtab.h (find_function_alias_target): Declare.
9606
c973d0aa
PA
96072017-08-21 Pedro Alves <palves@redhat.com>
9608
9609 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9610 typedefs.
9611 * typeprint.c (whatis_exp): If handling "whatis", and expression
9612 is OP_TYPE, strip one typedef level. Otherwise don't strip
9613 typedefs here.
9614 * valops.c (value_cast): Save "to" type before resolving
9615 stubs/typedefs. Use that type as resulting value's type.
9616
2989a365
TT
96172017-08-18 Tom Tromey <tom@tromey.com>
9618 Pedro Alves <palves@redhat.com>
9619
9620 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9621 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9622 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9623 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9624 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9625 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9626 (linux_get_siginfo_data): Add "thread" argument. Use
9627 scoped_restore.
9628 * linux-nat.c (linux_child_follow_fork)
9629 (check_stopped_by_watchpoint): Use scoped_restore.
9630 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9631 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9632 (restore_inferior_ptid, save_inferior_ptid): Remove.
9633 * btrace.c (btrace_fetch): Use scoped_restore.
9634 * bsd-uthread.c (bsd_uthread_fetch_registers)
9635 (bsd_uthread_store_registers): Use scoped_restore.
9636 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9637 scoped_restore.
9638 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9639 (aix_thread_xfer_partial): Use scoped_restore.
9640 * inferior.h (save_inferior_ptid): Remove.
9641
e60eb288
YQ
96422017-08-18 Yao Qi <yao.qi@linaro.org>
9643
9644 PR tdep/21818
9645 * arm-tdep.c (gdb_print_insn_arm): Mark
9646 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9647
6d580b63
YQ
96482017-08-18 Yao Qi <yao.qi@linaro.org>
9649
9650 * NEWS: Mention GDBserver's new option "--selftest".
9651 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9652 * selftest.c: Move it to common/selftest.c.
9653 * selftest.h: Move it to common/selftest.h.
9654 * selftest-arch.c (reset): New function.
9655 (tests_with_arch): Call reset.
9656
86dcbf50
YQ
96572017-08-18 Yao Qi <yao.qi@linaro.org>
9658
9659 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9660 instead of exception_fprintf and printf_filtered.
9661
7649770c
YQ
96622017-08-18 Yao Qi <yao.qi@linaro.org>
9663
9664 * selftest.c (register_self_test): Rename it to
9665 selftests::register_test.
9666 (run_self_tests): selftest::run_tests.
9667 * selftest.h: Update declarations.
9668 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9669 selftests::register_test_foreach_arch.
9670 * selftest-arch.h: Update declaration.
9671 * aarch64-tdep.c: Update.
9672 * arm-tdep.c: Likewise.
9673 * disasm-selftests.c: Likewise.
9674 * dwarf2loc.c: Likewise.
9675 * dwarf2-frame.c: Likewise.
9676 * findvar.c: Likewise.
9677 * gdbarch-selftests.c: Likewise.
9678 * maint.c (maintenance_selftest): Likewise.
9679 * regcache.c: Likewise.
9680 * rust-exp.y: Likewise.
9681 * selftest-arch.c: Likewise.
9682 * unittests/environ-selftests.c: Likewise.
9683 * unittests/function-view-selftests.c: Likewise.
9684 * unittests/offset-type-selftests.c: Likewise.
9685 * unittests/optional-selftests.c: Likewise.
9686 * unittests/scoped_restore-selftests.c: Likewise.
9687 * utils-selftests.c: Likewise.
9688
b0cba12e
PA
96892017-08-17 Pedro Alves <palves@redhat.com>
9690
9691 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9692 local.
9693
4c8aa72d
PA
96942017-08-17 Pedro Alves <palves@redhat.com>
9695
9696 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9697 field.
9698 (reset_die_in_process): Delete, replaced by ...
9699 (process_die_scope): ... this new class. Make it responsible for
9700 freeing cu->line_header too.
9701 (process_die): Use process_die_scope.
9702 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9703 cu->line_header_die_owner. Don't release the line header if it's
9704 owned by the CU.
9705 (setup_type_unit_groups): Make the CU/DIE own the line header.
9706 Don't release the line header here.
9707
ba713918
AL
97082017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9709
9710 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9711
44d0fb3a
RK
97122017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9713
9714 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9715 Single-Key mode
9716
a5afdb16
RK
97172017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9718
9719 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9720 mode command list.
9721
47613aeb
SH
97222017-08-15 Stafford Horne <shorne@gmail.com>
9723
9724 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9725
9c3cc999
SH
97262017-08-15 Stafford Horne <shorne@gmail.com>
9727
9728 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9729
206726fb
SDJ
97302017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9731
9732 PR gdb/21954
9733 * infcmd.c (unset_environment_command): Use the 'clear' method on
9734 the environment instead of resetting it.
9735
0335ac6d
JB
97362017-08-15 John Baldwin <jhb@FreeBSD.org>
9737
9738 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9739 platforms.
9740
d3abe1c8
TT
97412017-08-14 Tom Tromey <tom@tromey.com>
9742
9743 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9744 (print_binary_chars): Likewise.
9745 (BITS_IN_BYTES): Remove.
9746
d6382fff
TT
97472017-08-14 Tom Tromey <tom@tromey.com>
9748
9749 PR gdb/21675
9750 * valprint.c (LOW_ZERO): Change value to 034.
9751 (print_octal_chars): Add static_asserts for octal constants.
9752 * printcmd.c (print_scalar_formatted): Add 'd' case.
9753
f978cb06
TT
97542017-08-11 Tom Tromey <tom@tromey.com>
9755
9756 * symfile.c (add_symbol_file_command): Use std::vector.
9757
2f5404b3
TT
97582017-08-14 Tom Tromey <tom@tromey.com>
9759
9760 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9761 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9762 std::move.
9763 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9764
de7985c3
PA
97652017-08-11 Pedro Alves <palves@redhat.com>
9766
9767 * infrun.c (process_event_stop_test): Adjust
9768 function_name_is_marked_for_skip call.
9769 * skip.c: Include <list>.
9770 (skiplist_entry): Make it a class with private fields, and
9771 getters/setters.
9772 (skiplist_entry_chain): Delete.
9773 (skiplist_entries): New.
9774 (skiplist_entry_count): Delete.
9775 (highest_skiplist_entry_num): New.
9776 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9777 (add_skiplist_entry): Delete.
9778 (skiplist_entry::skiplist_entry): New.
9779 (skiplist_entry::add_entry): New.
9780 (skip_file_command, skip_function): Adjust.
9781 (compile_skip_regexp): Delete.
9782 (skip_command): Don't compile regexp here. Adjust to use
9783 skiplist_entry::add_entry.
9784 (skip_info): Adjust to use range-for and getters.
9785 (skip_enable_command, skip_disable_command): Adjust to use
9786 range-for and setters.
9787 (skip_delete_command): Adjust to use std::list.
9788 (add_skiplist_entry): Delete.
9789 (skip_file_p): Delete, refactored as ...
9790 (skiplist_entry::do_skip_file_p): ... this new method.
9791 (skip_gfile_p): Delete, refactored as ...
9792 (skiplist_entry::do_gskip_file_p): ... this new method.
9793 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9794 (skiplist_entry::skip_function_p): ... this new method.
9795 (function_name_is_marked_for_skip): Now returns bool, and takes
9796 the function sal by const reference. Adjust to use range-for and
9797 skiplist_entry methods.
9798 (_initialize_step_skip): Remove references to
9799 skiplist_entry_chain, skiplist_entry_count.
9800 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9801 takes the function sal by const reference.
9802
be7d3cd5
YQ
98032017-08-11 Yao Qi <yao.qi@linaro.org>
9804
9805 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9806 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9807 (dwarf2_frame_cache):
9808 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9809 RETURN_MASK_ALL and set *this_case to NULL.
9810 * frame-unwind.h: Update comments.
9811
1c90d9f0
YQ
98122017-08-11 Yao Qi <yao.qi@linaro.org>
9813
9814 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9815 (dwarf2_frame_state_copy_regs): Remove.
9816 (dwarf2_frame_state_free_regs): Remove.
9817 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9818 (dwarf2_restore_rule): Call method .alloc_regs instead of
9819 dwarf2_frame_state_alloc_regs.
9820 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9821 constructor. Call std::move.
9822 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9823 (dwarf2_frame_cache): Likewise.
9824
9825 [GDB_SELF_TEST]: Include selftest.h and
9826 selftest-arch.h.
9827 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9828 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9829 execute_cfa_program_test.
9830
9831 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9832 copy ctor, assignment operator, move assignment.
9833 <alloc_regs>: New method.
9834 <swap>: New method.
9835 (struct dwarf2_frame_state): Delete dtor.
9836 (dwarf2_frame_state_alloc_regs): Remove declaration.
9837 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9838 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9839
afe37d6b
YQ
98402017-08-11 Yao Qi <yao.qi@linaro.org>
9841
9842 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9843 (dwarf2_frame_state::dwarf2_frame_state): New.
9844 (dwarf2_frame_state::~dwarf2_frame_state): New.
9845 (dwarf2_fetch_cfa_info): Update.
9846 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9847 rather than a pointer. Update code.
9848 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9849 dtor.
9850 <data_align, code_align, retaddr_column>: Change them to const.
9851 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9852 to bool.
9853
b348037f
YQ
98542017-08-11 Yao Qi <yao.qi@linaro.org>
9855
9856 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9857 <loc.exp>: New field.
9858 * dwarf2-frame.c (execute_cfa_program): Update.
9859 (dwarf2_frame_prev_register): Update.
9860
e7c9de26
PA
98612017-08-10 Pedro Alves <palves@redhat.com>
9862
9863 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9864
e8c6b620
JB
98652017-08-09 John Baldwin <jhb@FreeBSD.org>
9866
9867 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9868 (fbsd_pending_children): Use std::list.
9869 (fbsd_remember_child): Likewise.
9870 (fbsd_is_child_pending): Likewise.
9871 (fbsd_pending_vfork_done): Use std::forward_list.
9872 (fbsd_add_vfork_done): Likewise.
9873 (fbsd_is_vfork_done_pending): Likewise.
9874 (fbsd_next_vfork_done): Likewise.
9875
e4a26669
JB
98762017-08-09 John Baldwin <jhb@FreeBSD.org>
9877
9878 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9879 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9880 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9881 for `mapfilename'.
9882 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 9883 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 9884
142311d3
JB
98852017-08-09 John Baldwin <jhb@FreeBSD.org>
9886
9887 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9888 "filestuff.h".
9889 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9890
42fa2e0e
TT
98912017-08-09 Tom Tromey <tom@tromey.com>
9892
9893 * skip.c (skiplist_entry): New constructor.
9894 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9895 (skiplist_entry::file_is_glob): Now bool.
9896 (skiplist_entry::file, skiplist_entry::function): Now
9897 std::string.
9898 (make_skip_entry): Return a unique_ptr. Use new.
9899 (free_skiplist_entry, free_skiplist_entry_cleanup)
9900 (make_free_skiplist_entry_cleanup): Remove.
9901 (skip_command, skip_disable_command, add_skiplist_entry)
9902 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9903 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9904 (function_name_is_marked_for_skip): Update.
9905 (skip_delete_command): Update. Use delete.
9906
cd3af38d
JW
99072017-08-09 Jiong Wang <jiong.wang@arm.com>
9908
9909 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9910 (aarch64_linux_core_read_description): New function.
9911 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9912
29592bde
PA
99132017-08-09 Pedro Alves <palves@redhat.com>
9914
9915 * cp-name-parser.y (cp_comp_to_string): Return a
9916 gdb::unique_xmalloc_ptr<char>.
9917 * cp-support.c (replace_typedefs_qualified_name)
9918 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9919 (cp_canonicalize_string_full): Use op= instead of explicit
9920 convertion.
9921 (cp_class_name_from_physname, method_name_from_physname)
9922 (cp_func_name, cp_remove_params): Adjust to use
9923 gdb::unique_xmalloc_ptr<char>.
9924 * cp-support.h (cp_comp_to_string): Return a
9925 gdb::unique_xmalloc_ptr<char>.
9926 * python/py-type.c (typy_lookup_type): Adjust to use
9927 gdb::unique_xmalloc_ptr<char>.
9928
b3340438
L
99292017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9930
9931 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9932
e88e8651
YQ
99332017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9934 Yao Qi <yao.qi@linaro.org>
9935
9936 * cp-support.c (cp_canonicalize_string_full): Use
9937 gdb::unique_xmalloc_ptr<char>.
9938 (cp_canonicalize_string): Likewise.
9939
f5a29eb0
YQ
99402017-08-09 Yao Qi <yao.qi@linaro.org>
9941
9942 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9943 * regformats/i386/amd64-avx-avx512.dat: Remove.
9944 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9945 * regformats/i386/amd64-avx-mpx.dat:Remove.
9946 * regformats/i386/amd64-avx.dat: Remove.
9947 * regformats/i386/amd64-mpx.dat: Remove.
9948 * regformats/i386/i386-avx-avx512.dat: Remove.
9949 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9950 * regformats/i386/i386-avx-mpx.dat: Remove.
9951 * regformats/i386/i386-mmx.dat: Remove.
9952 * regformats/i386/i386-mpx.dat: Remove.
9953
57757c2f
YQ
99542017-08-09 Yao Qi <yao.qi@linaro.org>
9955
9956 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9957 * amd64-tdep.c: Don't include features/i386/x32*.c.
9958 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9959 functions.
9960 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9961 and i386/x32-avx-avx512.
9962 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9963 and i386/x32.xml.
9964 * features/i386/x32-avx-avx512.c: Removed.
9965 * features/i386/x32-avx-avx512.xml: Removed.
9966 * features/i386/x32-avx.c: Removed.
9967 * features/i386/x32-avx.xml: Removed.
9968 * features/i386/x32.c: Removed.
9969 * features/i386/x32.xml: Removed.
9970 * regformats/i386/x32-avx-avx512.dat: Removed.
9971 * regformats/i386/x32-avx.dat: Removed.
9972 * regformats/i386/x32.dat: Removed.
9973
ba7b109b
MR
99742017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9975
9976 PR breakpoints/21886
9977 * mem-break.c (default_memory_insert_breakpoint): Use
9978 `->placed_address' rather than `->reqstd_address' for the
9979 breakpoint location.
9980
e347efc3
MR
99812017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9982
9983 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9984 assertions.
9985
0dba2a6c
MR
99862017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9987
9988 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9989 a union of `tdep_info', `tdesc_data' and `id'.
9990 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9991 rather than `info.tdep_info'.
9992 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9993 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9994 * i386-tdep.c (i386_gdbarch_init): Likewise.
9995 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9996 * mips-tdep.c (mips_gdbarch_init): Likewise.
9997 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9998 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9999 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
10000 `info.tdep_info'.
10001 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
10002 `info.tdep_info'.
10003 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10004 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
10005 `info.tdep_info'.
10006 * spu-tdep.c (spu_gdbarch_init): Likewise.
10007 * gdbarch.h: Regenerate.
10008
16eb6b2d
LS
100092017-08-07 Leszek Swirski <leszeks@google.com>
10010
7b005726 10011 PR symtab/20899
16eb6b2d
LS
10012 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
10013
74cbb09e
SM
100142017-08-07 Simon Marchi <simon.marchi@ericsson.com>
10015
10016 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
10017 (gdbsim_open): Rename gdb_argv args object to argv.
10018
ee0c3293
TT
100192017-08-05 Tom Tromey <tom@tromey.com>
10020
10021 * compile/compile-object-load.c (compile_object_load): Use
10022 gdb::unique_xmalloc_ptr.
10023 * cli/cli-dump.c (scan_filename): Rename from
10024 scan_filename_with_cleanup. Change return type.
10025 (scan_expression): Rename from scan_expression_with_cleanup.
10026 Change return type.
10027 (dump_memory_to_file, dump_value_to_file, restore_command):
10028 Use gdb::unique_xmalloc_ptr. Update.
10029 * cli/cli-cmds.c (find_and_open_script): Use
10030 gdb::unique_xmalloc_ptr.
10031 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
10032 * symmisc.c (maintenance_print_symbols)
10033 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
10034 * symfile.c (symfile_bfd_open, generic_load)
10035 (add_symbol_file_command, remove_symbol_file_command): Use
10036 gdb::unique_xmalloc_ptr.
10037 * source.c (openp): Use gdb::unique_xmalloc_ptr.
10038 * psymtab.c (maintenance_print_psymbols): Use
10039 gdb::unique_xmalloc_ptr.
10040 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
10041 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
10042 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
10043 (reload_shared_libraries_1): Likewise.
10044
3232fabd
TT
100452017-08-05 Tom Tromey <tom@tromey.com>
10046
10047 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
10048 (rust_op_vector, rust_set_vector): New typedefs.
10049 (current_parser): New global.
10050 (work_obstack): Change to pointer type. Update all users.
10051 (rust_ast, pstate): Remove globals.
10052 (struct rust_parser): New.
10053 (%union) <params, field_inits>: Change type.
10054 (start, tuple_expr, unit_expr, struct_expr_list, literal)
10055 (field_expr, expr_list, maybe_expr_list, type_list): Update.
10056 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
10057 (convert_params_to_types, convert_params_to_expression): Change
10058 type of "params".
10059 (ast_string): Change type of "fields".
10060 (rust_parse): Make a rust_parser. Remove cleanups.
10061 (rust_lex_tests): Make and install an auto_obstack.
10062
f02fd774
YQ
100632017-08-04 Yao Qi <yao.qi@linaro.org>
10064
10065 * configure.srv (ipa_x32_linux_regobj): New.
10066 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
10067 instead of X86_TDESC_AVX512.
10068 (initialize_low_tracepoint): Call
10069 init_registers_x32_avx_avx512_linux.
10070
91975afd
YQ
100712017-08-04 Yao Qi <yao.qi@linaro.org>
10072
10073 * utils.h (gdb_argv): Add namespace std for nullptr_t.
10074
2331fa3a
RK
100752017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
10076
10077 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
10078
744e4fe1
TT
100792017-08-03 Tom Tromey <tom@tromey.com>
10080
10081 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
10082 Remove.
10083 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
10084
1c034b67
TT
100852017-08-03 Tom Tromey <tom@tromey.com>
10086
10087 * python/py-param.c (compute_enum_values): Use gdb_argv.
10088
773a1edc
TT
100892017-08-03 Tom Tromey <tom@tromey.com>
10090
10091 * utils.h (struct gdb_argv_deleter): New.
10092 (gdb_argv): New class.
10093 * utils.c (gdb_argv::reset): New method.
10094 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
10095 * tracefile.c (tsave_command): Use gdb_argv.
10096 * top.c (new_ui_command): Use gdb_argv.
10097 * symmisc.c (maintenance_print_symbols)
10098 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
10099 * symfile.c (symbol_file_command, generic_load)
10100 (remove_symbol_file_command): Use gdb_argv.
10101 * stack.c (backtrace_command): Use gdb_argv.
10102 * source.c (add_path, show_substitute_path_command)
10103 (unset_substitute_path_command, set_substitute_path_command):
10104 Use gdb_argv.
10105 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
10106 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
10107 * remote.c (extended_remote_run, remote_put_command)
10108 (remote_get_command, remote_delete_command): Use gdb_argv.
10109 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
10110 (gdbsim_open): Use gdb_argv.
10111 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
10112 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
10113 * procfs.c (procfs_info_proc): Use gdb_argv.
10114 * interps.c (interpreter_exec_cmd): Use gdb_argv.
10115 * infrun.c (handle_command): Use gdb_argv.
10116 * inferior.c (add_inferior_command, clone_inferior_command):
10117 Use gdb_argv.
10118 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
10119 * exec.c (exec_file_command): Use gdb_argv.
10120 * cli/cli-cmds.c (alias_command): Use gdb_argv.
10121 * compile/compile.c (build_argc_argv): Use gdb_argv.
10122
0d50bde3
TT
101232017-08-03 Tom Tromey <tom@tromey.com>
10124
10125 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
10126
7f968c89
TT
101272017-08-03 Tom Tromey <tom@tromey.com>
10128
10129 * python/python.c (compute_python_string): Return std::string.
10130 (gdbpy_eval_from_control_command): Update.
10131 (do_start_initialization): Use std::string.
10132 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
10133 xstrprintf.
10134 * python/py-breakpoint.c (local_setattro): Use string_printf, not
10135 xstrprintf.
10136
3c9ebddd
TT
101372017-08-03 Tom Tromey <tom@tromey.com>
10138
10139 * top.h (do_restore_instream_cleanup): Remove.
10140 * top.c (do_restore_instream_cleanup): Remove.
10141 (read_command_file): Use scoped_restore.
10142 * cli/cli-script.c (execute_user_command): Use scoped_restore.
10143
b51b225e
TT
101442017-08-03 Tom Tromey <tom@tromey.com>
10145
10146 * cli/cli-script.c (execute_user_command)
10147 (execute_control_command): Use scoped_restore.
10148
ac991630
TT
101492017-08-03 Tom Tromey <tom@tromey.com>
10150
10151 * cli/cli-script.c (do_restore_user_call_depth): Remove.
10152 (execute_user_command): Remove user_call_depth; use
10153 user_args_stack's size instead.
10154
898e0c8e
TT
101552017-08-03 Tom Tromey <tom@tromey.com>
10156
10157 * top.h (in_user_command): Remove.
10158 * top.c (in_user_command): Remove.
10159 * cli/cli-script.c (do_restore_user_call_depth)
10160 (execute_user_command): Update.
10161
26fcd5d7
TT
101622017-08-03 Tom Tromey <tom@tromey.com>
10163
10164 * valops.c (search_struct_method): Use gdb::byte_vector.
10165 * valarith.c (value_concat): Use std::vector.
10166 * target.c (memory_xfer_partial): Use gdb::byte_vector.
10167 (simple_search_memory): Likewise.
10168 * printcmd.c (find_string_backward): Use gdb::byte_vector.
10169 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
10170 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
10171 * elfread.c (elf_rel_plt_read): Use std::string.
10172 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
10173 * cli/cli-dump.c (restore_section_callback): Use
10174 gdb::byte_vector.
10175
7c218e6c
TT
101762017-08-03 Tom Tromey <tom@tromey.com>
10177
10178 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
10179
31b68d4a
TT
101802017-08-03 Tom Tromey <tom@tromey.com>
10181
10182 * tui/tui-regs.c (tui_restore_gdbout): Remove.
10183 (tui_register_format): Use scoped_restore.
10184
2ec845e7
TT
101852017-08-03 Tom Tromey <tom@tromey.com>
10186
10187 * reverse.c (exec_direction_default): Remove.
10188 (exec_reverse_once): Use scoped_restore.
10189 * remote.c (restore_remote_timeout): Remove.
10190 (remote_flash_erase, remote_flash_write, remote_flash_done)
10191 (readchar, remote_serial_write): Use scoped_restore.
10192 * cli/cli-script.c (struct source_cleanup_lines_args)
10193 (source_cleanup_lines): Remove.
10194 (script_from_file): Use scoped_restore.
10195 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
10196 (source_command): Use scoped_restore.
10197
b3bc8453
TT
101982017-08-03 Tom Tromey <tom@tromey.com>
10199
10200 * utils.h (make_cleanup_free_so): Remove.
10201 * utils.c (do_free_so, make_cleanup_free_so): Remove.
10202 * solist.h (struct so_deleter): New.
10203 (so_list_up): New typedef.
10204 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
10205
e3ad2841
TT
102062017-08-03 Tom Tromey <tom@tromey.com>
10207
10208 * utils.h (make_cleanup_restore_current_language): Remove.
10209 * utils.c (do_restore_current_language)
10210 (make_cleanup_restore_current_language): Remove.
10211 * parse.c (parse_exp_in_context_1)
10212 (parse_expression_with_language): Use
10213 scoped_restore_current_language.
10214 * mi/mi-main.c (mi_cmd_execute): Use
10215 scoped_restore_current_language.
10216 * language.h (scoped_restore_current_language): New class.
10217
b80cf838
TT
102182017-08-03 Tom Tromey <tom@tromey.com>
10219
10220 * compile/compile.c (cleanup_unlink_file): Remove.
10221 (compile_to_object): Use gdb::unlinker.
10222 (eval_compile_command): Likewise.
10223
fad0444a
TT
102242017-08-03 Tom Tromey <tom@tromey.com>
10225
10226 * utils.h (make_cleanup_fclose): Remove.
10227 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
10228
6e7bc05c
TT
102292017-08-03 Tom Tromey <tom@tromey.com>
10230
10231 * top.c (open_terminal_stream): Return gdb_file_up.
10232 (new_ui_command): Update.
10233
4a45905b
TT
102342017-08-03 Tom Tromey <tom@tromey.com>
10235
10236 * source.c (print_source_lines_base, forward_search_command)
10237 (reverse_search_command): Use gdb_file_up.
10238
7cd06d6e
TT
102392017-08-03 Tom Tromey <tom@tromey.com>
10240
10241 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10242
ed166945
TT
102432017-08-03 Tom Tromey <tom@tromey.com>
10244
10245 * cli/cli-cmds.c (find_and_open_script): Change return type.
10246 Remove "streamp" and "full_path" parameters.
10247 (source_script_with_search): Update.
10248 * auto-load.c (source_script_file): Update.
10249 * cli/cli-cmds.h (find_and_open_script): Change type.
10250 (open_script): New struct.
10251
d419f42d
TT
102522017-08-03 Tom Tromey <tom@tromey.com>
10253
10254 * xml-support.c (xml_fetch_content_from_file): Update.
10255 * ui-file.c (stdio_file::open): Update.
10256 * tracefile-tfile.c (tfile_start): Update.
10257 * remote.c (remote_file_put, remote_file_get): Update.
10258 * nat/linux-procfs.c (linux_proc_get_int)
10259 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10260 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10261 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10262 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10263 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10264 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10265 * linux-nat.c (linux_proc_pending_signals): Update.
10266 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10267 (file_closer): Remove.
10268 * compile/compile.c (compile_to_object): Update.
10269 * common/filestuff.h (struct gdb_file_deleter): New.
10270 (gdb_file_up): New typedef.
10271 (gdb_fopen_cloexec): Change return type.
10272 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10273 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10274 (dump_binary_file, restore_binary_file): Update.
10275 * auto-load.c (auto_load_objfile_script_1): Update.
10276
4a2b031d
TT
102772017-08-03 Tom Tromey <tom@tromey.com>
10278
10279 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10280 (info_static_tracepoint_markers_command): Likewise.
10281 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10282 * skip.c (skip_info): Use ui_out_emit_table.
10283 * progspace.c (print_program_space): Use ui_out_emit_table.
10284 * osdata.c (info_osdata): Use ui_out_emit_table.
10285 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10286 ui_out_emit_table.
10287 * linux-thread-db.c (info_auto_load_libthread_db): Use
10288 ui_out_emit_table.
10289 * inferior.c (print_inferior): Use ui_out_emit_table.
10290 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10291 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10292 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10293 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10294 * ui-out.h (class ui_out_emit_table): New.
10295
a4f320fd
MR
102962017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10297
10298 * mips-tdep.c (mips_fpu_type_str): New function.
10299 (mips_dump_tdep): Call it.
10300
a2f1f308
MR
103012017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10302
10303 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10304 `->mips_fpu_type'.
10305
7e5ed83b
XR
103062017-07-31 Xavier Roirand <roirand@adacore.com>
10307
10308 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10309
4c9dc811
XR
103102017-07-27 Xavier Roirand <roirand@adacore.com>
10311
10312 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10313
27d41eac
YQ
103142017-07-26 Yao Qi <yao.qi@linaro.org>
10315
10316 * cli/cli-cmds.c (maintenancechecklist): New variable.
10317 * gdbcmd.h (maintenancechecklist): Declare it.
10318 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10319 Call i386_linux_read_description with different masks.
10320 * maint.c (maintenance_check_command): New function.
10321 (_initialize_maint_cmds): Call add_prefix_cmd.
10322 * target-descriptions.c (tdesc_reg): override operator != and ==.
10323 (tdesc_type): Likewise.
10324 (tdesc_feature): Likewise.
10325 (target_desc): Likewise.
10326 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10327 (maintenance_check_xml_descriptions): New function.
10328 (_initialize_target_descriptions) Add command "xml-descriptions".
10329 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10330
ea03d0d3
YQ
103312017-07-26 Yao Qi <yao.qi@linaro.org>
10332
10333 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10334 Include features/i386/32bit-*.c.
10335 (i386_linux_read_description): Generate target description if it
10336 doesn't exist.
10337 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10338 functions.
10339 * features/i386/32bit-linux.c: Re-generated.
10340 * features/i386/32bit-sse.c: Likewise.
10341 * target-descriptions.c (print_c_feature::visit): Print code to
10342 set register number if needed.
10343 (print_c_feature) <m_next_regnum>: New field.
10344
25aa13e5
YQ
103452017-07-26 Yao Qi <yao.qi@linaro.org>
10346
10347 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10348 (FEATURE_XMLFILES): New.
10349 (FEATURE_CFILES): New.
10350 New rules.
10351 (clean-cfiles): Remove generated c files.
10352 * features/i386/32bit-avx.c: Generated.
10353 * features/i386/32bit-avx512.c: Generated.
10354 * features/i386/32bit-core.c: Generated.
10355 * features/i386/32bit-linux.c: Generated.
10356 * features/i386/32bit-mpx.c: Generated.
10357 * features/i386/32bit-pkeys.c: Generated.
10358 * features/i386/32bit-sse.c: Generated.
10359 * target-descriptions.c: Include algorithm.
10360 (tdesc_element_visitor): Add method visit_end.
10361 (print_c_tdesc): Implement visit_end.
10362 (print_c_tdesc:: m_filename_after_features): Move it to
10363 protected.
10364 (print_c_feature): New class.
10365 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10366 name starts with "i386/32bit-".
10367
6eb1e6a8
YQ
103682017-07-26 Yao Qi <yao.qi@linaro.org>
10369
10370 * target-descriptions.c (tdesc_element_visitor): New class.
10371 (tdesc_element): New class.
10372 (tdesc_reg): Inherit from tdesc_element.
10373 (tdesc_reg::accept): New function.
10374 (tdesc_type): Inherit from tdesc_element.
10375 (tdesc_type::accept): New function.
10376 (tdesc_feature): Inherit from tdesc_element.
10377 (tdesc_feature::accept): New function.
10378 (target_desc): Inherit from tdesc_element.
10379 (target_desc::target_desc): New.
10380 (target_desc::~target_desc): New.
10381 (target_desc::accept): New.
10382 (allocate_target_description): Use new.
10383 (free_target_description): Use delete.
10384 (print_c_tdesc): New class.
10385 (maint_print_c_tdesc_cmd): Adjust.
10386
10387 * features/aarch64.c: Re-generated.
10388 * features/arc-arcompact.c: Re-generated.
10389 * features/arc-v2.c: Re-generated.
10390 * features/arm/arm-with-iwmmxt.c: Re-generated.
10391 * features/arm/arm-with-m.c: Re-generated.
10392 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10393 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10394 * features/arm/arm-with-neon.c: Re-generated.
10395 * features/arm/arm-with-vfpv2.c: Re-generated.
10396 * features/arm/arm-with-vfpv3.c: Re-generated.
10397 * features/i386/amd64-avx-avx512.c: Re-generated.
10398 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10399 * features/i386/amd64-avx.c: Re-generated.
10400 * features/i386/amd64-avx-linux.c: Re-generated.
10401 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10402 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10403 * features/i386/amd64-avx-mpx.c: Re-generated.
10404 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10405 * features/i386/amd64.c: Re-generated.
10406 * features/i386/amd64-linux.c: Re-generated.
10407 * features/i386/amd64-mpx.c: Re-generated.
10408 * features/i386/amd64-mpx-linux.c: Re-generated.
10409 * features/i386/i386-avx-avx512.c: Re-generated.
10410 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10411 * features/i386/i386-avx.c: Re-generated.
10412 * features/i386/i386-avx-linux.c: Re-generated.
10413 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10414 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10415 * features/i386/i386-avx-mpx.c: Re-generated.
10416 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10417 * features/i386/i386.c: Re-generated.
10418 * features/i386/i386-linux.c: Re-generated.
10419 * features/i386/i386-mmx.c: Re-generated.
10420 * features/i386/i386-mmx-linux.c: Re-generated.
10421 * features/i386/i386-mpx.c: Re-generated.
10422 * features/i386/i386-mpx-linux.c: Re-generated.
10423 * features/i386/x32-avx-avx512.c: Re-generated.
10424 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10425 * features/i386/x32-avx.c: Re-generated.
10426 * features/i386/x32-avx-linux.c: Re-generated.
10427 * features/i386/x32.c: Re-generated.
10428 * features/i386/x32-linux.c: Re-generated.
10429 * features/microblaze.c: Re-generated.
10430 * features/microblaze-with-stack-protect.c: Re-generated.
10431 * features/mips64-dsp-linux.c: Re-generated.
10432 * features/mips64-linux.c: Re-generated.
10433 * features/mips-dsp-linux.c: Re-generated.
10434 * features/mips-linux.c: Re-generated.
10435 * features/nds32.c: Re-generated.
10436 * features/nios2.c: Re-generated.
10437 * features/nios2-linux.c: Re-generated.
10438 * features/rs6000/powerpc-32.c: Re-generated.
10439 * features/rs6000/powerpc-32l.c: Re-generated.
10440 * features/rs6000/powerpc-403.c: Re-generated.
10441 * features/rs6000/powerpc-403gc.c : Re-generated.
10442 * features/rs6000/powerpc-405.c: Re-generated.
10443 * features/rs6000/powerpc-505.c: Re-generated.
10444 * features/rs6000/powerpc-601.c: Re-generated.
10445 * features/rs6000/powerpc-602.c: Re-generated.
10446 * features/rs6000/powerpc-603.c: Re-generated.
10447 * features/rs6000/powerpc-604.c: Re-generated.
10448 * features/rs6000/powerpc-64.c: Re-generated.
10449 * features/rs6000/powerpc-64l.c: Re-generated.
10450 * features/rs6000/powerpc-7400.c: Re-generated.
10451 * features/rs6000/powerpc-750.c: Re-generated.
10452 * features/rs6000/powerpc-860.c: Re-generated.
10453 * features/rs6000/powerpc-altivec32.c: Re-generated.
10454 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10455 * features/rs6000/powerpc-altivec64.c: Re-generated.
10456 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10457 * features/rs6000/powerpc-cell32l.c: Re-generated.
10458 * features/rs6000/powerpc-cell64l.c: Re-generated.
10459 * features/rs6000/powerpc-e500.c: Re-generated.
10460 * features/rs6000/powerpc-e500l.c: Re-generated.
10461 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10462 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10463 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10464 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10465 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10466 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10467 * features/rs6000/powerpc-vsx32.c: Re-generated.
10468 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10469 * features/rs6000/powerpc-vsx64.c: Re-generated.
10470 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10471 * features/rs6000/rs6000.c: Re-generated.
10472 * features/s390-linux32.c: Re-generated.
10473 * features/s390-linux32v1.c: Re-generated.
10474 * features/s390-linux32v2.c: Re-generated.
10475 * features/s390-linux64.c: Re-generated.
10476 * features/s390-linux64v1.c: Re-generated.
10477 * features/s390-linux64v2.c: Re-generated.
10478 * features/s390-te-linux64.c: Re-generated.
10479 * features/s390-tevx-linux64.c: Re-generated.
10480 * features/s390-vx-linux64.c: Re-generated.
10481 * features/s390x-linux64.c: Re-generated.
10482 * features/s390x-linux64v1.c: Re-generated.
10483 * features/s390x-linux64v2.c: Re-generated.
10484 * features/s390x-te-linux64.c: Re-generated.
10485 * features/s390x-tevx-linux64.c: Re-generated.
10486 * features/s390x-vx-linux64.c: Re-generated.
10487 * features/sparc/sparc32-solaris.c: Re-generated.
10488 * features/sparc/sparc64-solaris.c: Re-generated.
10489 * features/tic6x-c62x.c: Re-generated.
10490 * features/tic6x-c62x-linux.c: Re-generated.
10491 * features/tic6x-c64x.c: Re-generated.
10492 * features/tic6x-c64x-linux.c: Re-generated.
10493 * features/tic6x-c64xp.c: Re-generated.
10494 * features/tic6x-c64xp-linux.c: Re-generated.
10495
35b4818d
YQ
104962017-07-26 Yao Qi <yao.qi@linaro.org>
10497
10498 * i386-linux-tdep.c (i386_linux_read_description): New function.
10499 (i386_linux_core_read_description): Call
10500 i386_linux_read_description.
10501 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10502 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10503 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10504 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10505 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10506 * x86-linux-nat.c (x86_linux_read_description): Call
10507 i386_linux_read_description.
10508
8e2141c6
YQ
105092017-07-26 Yao Qi <yao.qi@linaro.org>
10510
10511 * NEWS: Mention it.
10512 * features/Makefile (%.c: %.xml): Pass the xml file name to
10513 command "maint print c-tdesc".
10514 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10515 name from 'arg'.
10516
b468ff4c
YQ
105172017-07-26 Yao Qi <yao.qi@linaro.org>
10518
10519 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10520 in-class initialization.
10521 (tdesc_create_feature): Call new instead of XCNEW.
10522 (free_target_description): Ue delete.
10523
b9c0e1b4
JB
105242017-07-25 John Baldwin <jhb@FreeBSD.org>
10525
10526 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10527
a04b5337
YQ
105282017-07-25 Yao Qi <yao.qi@linaro.org>
10529
10530 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10531 constant.
10532 (amd64_x32_init_abi): Likewise.
10533 * amd64-tdep.h (amd64_init_abi): Update declaration.
10534 (amd64_x32_init_abi): Likewise.
10535
02ad7fc2
YQ
105362017-07-25 Yao Qi <yao.qi@linaro.org>
10537
10538 PR tdep/21717
10539 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10540 condition for FPSCR.
10541 (arm_linux_store_inferior_registers): Likewise.
10542
b6f48cb0
TT
105432017-07-22 Tom Tromey <tom@tromey.com>
10544
10545 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10546 <syscalls_counts>: Now a std::vector.
10547 (get_catch_syscall_inferior_data): Use "new".
10548 (catch_syscall_inferior_data_cleanup): Use "delete".
10549 (insert_catch_syscall, remove_catch_syscall)
10550 (clear_syscall_counts): Update.
10551
e12c9b7a
TT
105522017-07-22 Tom Tromey <tom@tromey.com>
10553
10554 * break-catch-syscall.c (syscall_catchpoint)
10555 <syscalls_to_be_caught>: Now a std::vector<int>
10556 (~syscall_catchpoint): Remove.
10557 (insert_catch_syscall, remove_catch_syscall)
10558 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10559 (print_mention_catch_syscall, print_recreate_catch_syscall):
10560 Update.
10561 (create_syscall_event_catchpoint): Change type of "filter"
10562 parameter.
10563 (catch_syscall_split_args): Return a std::vector.
10564 (catch_syscall_command_1, catching_syscall_number_1): Update.
10565
4fa8aeac
TT
105662017-07-22 Tom Tromey <tom@tromey.com>
10567
10568 * break-catch-throw.c (struct exception_catchpoint)
10569 <exception_rx>: Now a std::string.
10570 (~exception_catchpoint): Remove.
10571 (print_one_detail_exception_catchpoint): Update.
10572 (handle_gnu_v3_exceptions): Change type of except_rx.
10573 (extract_exception_regexp): Return a std::string.
10574 (catch_exception_command_1): Update.
10575
f746a154
TT
105762017-07-22 Tom Tromey <tom@tromey.com>
10577
10578 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10579 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10580 std::vector.
10581 <catch_all>: Now a bool.
10582 (~signal_catchpoint): Remove.
10583 (signal_catchpoint_insert_location)
10584 (signal_catchpoint_remove_location)
10585 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10586 (signal_catchpoint_print_mention)
10587 (signal_catchpoint_print_recreate)
10588 (signal_catchpoint_explains_signal): Update.
10589 (create_signal_catchpoint): Change type of "filter" and
10590 "catch_all".
10591 (catch_signal_split_args): Return a std::vector. Change type of
10592 "catch_all".
10593 (catch_signal_command): Update.
10594
47e77640
PA
105952017-07-20 Pedro Alves <palves@redhat.com>
10596
10597 * ada-lang.c (ada_language_defn): Make extern.
10598 (_initialize_ada_language): Remove add_language call.
10599 * c-lang.c (c_language_defn, cplus_language_defn)
10600 (asm_language_defn, minimal_language_defn): Make extern.
10601 (_initialize_c_language): Delete.
10602 * completer.c (compare_cstrings): Delete, moved to utils.h.
10603 * d-lang.c (d_language_defn): Make extern.
10604 (_initialize_d_language): Remove add_language calls.
10605 * defs.h (enum language): Add comment.
10606 * f-lang.c (f_language_defn): Make extern.
10607 (_initialize_f_language): Remove add_language call.
10608 * go-lang.c (go_language_defn): Make extern.
10609 (_initialize_go_language): Remove add_language call.
10610 * language.c: Include <algorithm>.
10611 (languages): Redefine as const array.
10612 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10613 (set_language_command): Handle "local". Use for-range loop.
10614 (set_language): Remove loop.
10615 (language_enum): Rewrite.
10616 (language_def, language_str): Remove loops.
10617 (add_language): Delete.
10618 (add_set_language_command): New, based on add_languages.
10619 (skip_language_trampoline): Adjust.
10620 (local_language_defn): Delete.
10621 (language_gdbarch_post_init): Adjust.
10622 (_initialize_language): Remove add_language calls. Call
10623 add_set_language_command.
10624 * language.h (add_language): Delete.
10625 (auto_language_defn)
10626 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10627 (asm_language_defn, c_language_defn, cplus_language_defn)
10628 (d_language_defn, f_language_defn, go_language_defn)
10629 (m2_language_defn, objc_language_defn, opencl_language_defn)
10630 (pascal_language_defn, rust_language_defn): Declare.
10631 * m2-lang.c (m2_language_defn): Make extern.
10632 (_initialize_m2_language): Remove add_language call.
10633 * objc-lang.c (objc_language_defn): Make extern.
10634 (_initialize_objc_language): Remove add_language call.
10635 * opencl-lang.c (opencl_language_defn): Make extern.
10636 (_initialize_opencl_language): Remove add_language call.
10637 * p-lang.c (pascal_language_defn): Make extern.
10638 (_initialize_pascal_language): Delete.
10639 * rust-lang.c (rust_language_defn): Make extern.
10640 (_initialize_rust_language): Delete.
10641 * utils.h (compare_cstrings): New static inline function.
10642
edb0c9cb
PA
106432017-07-20 Pedro Alves <palves@redhat.com>
10644
10645 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10646 (get_var_value): Constify parameters.
10647 (get_int_var_value): Change prototype.
10648 (to_fixed_range_type): Adjust.
10649 * ada-lang.h (get_int_var_value): Change prototype.
10650
a778f165
PA
106512017-07-20 Pedro Alves <palves@redhat.com>
10652
10653 * dwarf2read.c (dw2_lookup_symbol): Use
10654 SYMBOL_MATCHES_SEARCH_NAME.
10655 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10656
42edd901
PA
106572017-07-20 Pedro Alves <palves@redhat.com>
10658
10659 * block.c (block_iter_name_step, block_iter_name_first)
10660 (block_iter_name_next): Delete.
10661 (block_lookup_symbol_primary): Adjust to use
10662 dict_iter_match_first/dict_iter_match_next.
10663 * block.h (block_iter_name_first, block_iter_name_next): Delete
10664 declarations.
10665 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10666 dict_iter_match_first/dict_iter_match_next.
10667
cf325299
PA
106682017-07-20 Pedro Alves <palves@redhat.com>
10669
10670 * cp-support.c (cp_find_first_component_aux): Add missing case for
10671 end of string.
10672
c5ed0576
DB
106732017-07-18 David Blaikie <dblaikie@gmail.com>
10674
10675 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10676 of dwo_cu's dwo_file.
10677
27841e76
YQ
106782017-07-18 Yao Qi <yao.qi@linaro.org>
10679
10680 * remote.c (store_registers_using_G): Remove one line comment.
10681
cfb7e58b
YQ
106822017-07-18 Yao Qi <yao.qi@linaro.org>
10683
10684 * regcache.c (regcache_cpy): Simplify it.
10685 (regcache::cpy_no_passthrough): Remove it.
10686 * regcache.h (cpy_no_passthrough): Remove it.
10687 (regcache_dup, regcache_cpy): Update comments.
10688
386535dd
PA
106892017-07-18 Pedro Alves <palves@redhat.com>
10690
10691 * remote-sim.c (sim_command_completer): Adjust to work with a
10692 completion_tracker instead of a VEC.
10693
c45ec17c
PA
106942017-07-17 Pedro Alves <palves@redhat.com>
10695
10696 * completer.c (complete_source_filenames): New function.
10697 (complete_address_and_linespec_locations): New function.
10698 (location_completer): Use complete_address_and_linespec_locations.
10699 (completion_tracker::build_completion_result): Honor the tracker's
10700 request to suppress append.
10701 * completer.h (completion_tracker::suppress_append_ws)
10702 (completion_tracker::set_suppress_append_ws): New methods.
10703 (completion_tracker::m_suppress_append_ws): New field.
10704 (complete_source_filenames): New declaration.
10705 * linespec.c (linespec_complete_what): New.
10706 (struct ls_parser) <complete_what, completion_word,
10707 completion_quote_char, completion_quote_end, completion_tracker>:
10708 New fields.
10709 (string_find_incomplete_keyword_at_end): New.
10710 (linespec_lexer_lex_string): Record quote char. If in completion
10711 mode, don't throw.
10712 (linespec_lexer_consume_token): Advance the completion word point.
10713 (linespec_lexer_peek_token): Save/restore completion info.
10714 (save_stream_and_consume_token): New.
10715 (set_completion_after_number): New.
10716 (linespec_parse_basic): Set what to complete next depending on
10717 token. Handle function and label completions specially.
10718 (parse_linespec): Disable objc shortcut in completion mode. Set
10719 what to complete next depending on token type. Skip keyword if in
10720 completion mode.
10721 (complete_linespec_component, linespec_complete): New.
10722 * linespec.h (linespec_complete): Declare.
10723
be966d42
PA
107242017-07-17 Pedro Alves <palves@redhat.com>
10725
10726 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10727 Handle 'operator<' / 'operator<<'.
10728
a2459270
PA
107292017-07-17 Pedro Alves <palves@redhat.com>
10730
10731 * completer.c (collect_explicit_location_matches): Handle
10732 MATCH_LABEL.
10733 (convert_explicit_location_to_linespec): New, factored out from
10734 ...
10735 (convert_explicit_location_to_sals): ... this.
10736 (complete_label): New.
10737 (linespec_complete_label, find_label_symbols_in_block): New.
10738 (find_label_symbols): Add completion_mode parameter and adjust to
10739 call find_label_symbols_in_block.
10740 * linespec.h (linespec_complete_label): Declare.
10741
c6756f62
PA
107422017-07-17 Pedro Alves <palves@redhat.com>
10743
10744 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10745 complete_symbol_mode parameter.
10746 * cli/cli-cmds.c (complete_command): Get the completion result out
10747 of the handle_brkchars tracker if used a custom word point.
10748 * completer.c: Include "linespec.h".
10749 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10750 (advance_to_expression_complete_word_point): New.
10751 (completion_tracker::completes_to_completion_word): New.
10752 (complete_files_symbols): Pass down
10753 complete_symbol_mode::EXPRESSION.
10754 (explicit_options, probe_options): New.
10755 (collect_explicit_location_matches): Complete on the
10756 explictit_loc->foo instead of word. Use
10757 linespec_complete_function. Handle MATCH_LINE. Handle offering
10758 keyword and options completions.
10759 (backup_text_ptr): Delete.
10760 (skip_keyword): New.
10761 (complete_explicit_location): Remove 'word' parameter. Add
10762 language, quoted_arg_start and quoted_arg_end parameters.
10763 Rewrite, parsing left to right.
10764 (location_completer): Rewrite.
10765 (location_completer_handle_brkchars): New function.
10766 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10767 (enum complete_line_internal_reason): Adjust comments.
10768 (completion_tracker::discard_completions): New.
10769 (completer_handle_brkchars_func_for_completer): Handle
10770 location_completer.
10771 (gdb_custom_word_point_brkchars)
10772 (gdb_org_rl_basic_quote_characters): New.
10773 (gdb_completion_word_break_characters_throw)
10774 (completion_find_completion_word): Handle trackers that use a
10775 custom word point.
10776 (completion_tracker::advance_custom_word_point_by): New.
10777 (completion_tracker::build_completion_result): Don't rely on
10778 readline appending the quote char.
10779 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10780 use a custom word point.
10781 (gdb_rl_attempted_completion_function): Restore
10782 rl_basic_quote_characters.
10783 * completer.h (class completion_tracker): Extend intro comment.
10784 (completion_tracker::set_quote_char)
10785 (completion_tracker::quote_char)
10786 (completion_tracker::set_use_custom_word_point)
10787 (completion_tracker::use_custom_word_point)
10788 (completion_tracker::custom_word_point)
10789 (completion_tracker::set_custom_word_point)
10790 (completion_tracker::advance_custom_word_point_by)
10791 (completion_tracker::completes_to_completion_word)
10792 (completion_tracker::discard_completions): New methods.
10793 (completion_tracker::m_quote_char)
10794 (completion_tracker::m_use_custom_word_point)
10795 (completion_tracker::m_custom_word_point): New fields.
10796 (advance_to_expression_complete_word_point): Declare.
10797 * f-lang.c (f_collect_symbol_completion_matches): Add
10798 complete_symbol_mode parameter.
10799 * language.h (struct language_defn)
10800 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10801 parameter.
10802 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10803 (linespec_complete_function): New function.
10804 (linespec_lexer_lex_keyword): Adjust.
10805 * linespec.h (linespec_keywords, linespec_complete_function): New
10806 declarations.
10807 * location.c (find_end_quote): New function.
10808 (explicit_location_lex_one): Add explicit_completion_info
10809 parameter. Save quoting info. Don't throw if being called for
10810 completion. Don't handle Ada operators here.
10811 (is_cp_operator, skip_op_false_positives, first_of)
10812 (explicit_location_lex_one_function): New function.
10813 (string_to_explicit_location): Replace 'dont_throw' parameter with
10814 an explicit_completion_info pointer parameter. Handle it. Don't
10815 use explicit_location_lex_one to lex function names. Use
10816 explicit_location_lex_one_function instead.
10817 * location.h (struct explicit_completion_info): New.
10818 (string_to_explicit_location): Replace 'dont_throw' parameter with
10819 an explicit_completion_info pointer parameter.
10820 * symtab.c (default_collect_symbol_completion_matches_break_on):
10821 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10822 (default_collect_symbol_completion_matches)
10823 (collect_symbol_completion_matches): Add complete_symbol_mode
10824 parameter.
10825 (collect_symbol_completion_matches_type): Pass down
10826 complete_symbol_mode::EXPRESSION.
10827 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10828 parameter. Handle LINESPEC mode.
10829 * symtab.h (complete_symbol_mode): New.
10830 (default_collect_symbol_completion_matches_break_on)
10831 (default_collect_symbol_completion_matches)
10832 (collect_symbol_completion_matches)
10833 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10834 parameter.
10835
1d550c82
PA
108362017-07-17 Pedro Alves <palves@redhat.com>
10837
10838 * utils.c (enum class strncmp_iw_mode): New.
10839 (strcmp_iw): Rename to ...
10840 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10841 parameters. Handle them.
10842 (strncmp_iw): New.
10843 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10844 * utils.h (strncmp_iw): Declare.
10845 (strcmp_iw): Move describing comments here.
10846
8090b426
PA
108472017-07-17 Pedro Alves <palves@redhat.com>
10848
10849 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10850 CP_OPERATOR_STR.
10851 * c-typeprint.c (is_type_conversion_operator): Use
10852 CP_OPERATOR_STR.
10853 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10854 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10855 CP_OPERATOR_LEN.
10856 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10857 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10858 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10859 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10860 CP_OPERATOR_STR.
10861 * location.c: Include "cp-support.h".
10862 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10863 CP_OPERATOR_STR.
10864 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10865 CP_OPERATOR_LEN.
10866
6a2c1b87
PA
108672017-07-17 Pedro Alves <palves@redhat.com>
10868
10869 * cli/cli-cmds.c (complete_command): Use a completion tracker
10870 along with completion_find_completion_word for handle_brkchars
10871 phase.
10872 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10873 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10874 (struct gdb_rl_completion_word_info): New.
10875 (gdb_rl_find_completion_word): New.
10876 (completion_find_completion_word): New.
10877 * completer.h (completion_find_completion_word): Declare.
10878
eb3ff9a5
PA
108792017-07-17 Pedro Alves <palves@redhat.com>
10880
10881 * ada-lang.c (symbol_completion_match): Adjust comments.
10882 (symbol_completion_add): Replace vector parameter with
10883 completion_tracker parameter. Use it.
10884 (ada_make_symbol_completion_list): Rename to...
10885 (ada_collect_symbol_completion_matches): ... this. Add
10886 completion_tracker parameter and use it.
10887 (ada_language_defn): Adjust.
10888 * break-catch-syscall.c (catch_syscall_completer): Adjust
10889 prototype and work with completion_tracker instead of VEC.
10890 * breakpoint.c (condition_completer): Adjust prototype and work
10891 with completion_tracker instead of VEC.
10892 * c-lang.c (c_language_defn, cplus_language_defn)
10893 (asm_language_defn, minimal_language_defn): Adjust to renames.
10894 * cli/cli-cmds.c (complete_command): Rework using
10895 completion_tracker. Catch exceptions when completing.
10896 * cli/cli-decode.c (integer_unlimited_completer)
10897 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10898 with completion_tracker instead of VEC.
10899 * command.h (struct completion_tracker): Forward declare.
10900 (completer_ftype, completer_handle_brkchars_ftype): Change
10901 types.
10902 (complete_on_cmdlist, complete_on_enum): Adjust.
10903 * completer.c: Include <algorithm>.
10904 (struct gdb_completer_state): New.
10905 (current_completion): New global.
10906 (readline_line_completion_function): Delete.
10907 (noop_completer, filename_completer)
10908 (filename_completer_handle_brkchars, complete_files_symbols)
10909 (linespec_location_completer): Adjust to work with a
10910 completion_tracker instead of a VEC.
10911 (string_or_empty): New.
10912 (collect_explicit_location_matches): Adjust to work with a
10913 completion_tracker instead of a VEC.
10914 (explicit_location_completer): Rename to ...
10915 (complete_explicit_location): ... this and adjust to work with a
10916 completion_tracker instead of a VEC.
10917 (location_completer): Adjust to work with a completion_tracker
10918 instead of a VEC.
10919 (add_struct_fields): Adjust to work with a completion_list instead
10920 of VEC.
10921 (expression_completer): Rename to ...
10922 (complete_expression): ... this and adjust to work with a
10923 completion_tracker instead of a VEC. Use complete_files_symbols.
10924 (expression_completer): Reimplement on top of complete_expression.
10925 (symbol_completer): Adjust to work with a completion_tracker
10926 instead of a VEC.
10927 (enum complete_line_internal_reason): Add describing comments.
10928 (complete_line_internal_normal_command): Adjust to work with a
10929 completion_tracker instead of a VEC.
10930 (complete_line_internal): Rename to ...
10931 (complete_line_internal_1): ... this and adjust to work with a
10932 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10933 handle_brkchars phase.
10934 (new_completion_tracker): Delete.
10935 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10936 complete_line_internal_1.
10937 (free_completion_tracker): Delete.
10938 (INITIAL_COMPLETION_HTAB_SIZE): New.
10939 (completion_tracker::completion_tracker)
10940 (completion_tracker::~completion_tracker): New.
10941 (maybe_add_completion): Delete.
10942 (completion_tracker::maybe_add_completion)
10943 (completion_tracker::add_completion)
10944 (completion_tracker::add_completions): New.
10945 (throw_max_completions_reached_error): Delete.
10946 (complete_line): Adjust to work with a completion_tracker instead
10947 of a VEC. Don't create a completion_tracker_t or check for max
10948 completions here.
10949 (command_completer, command_completer_handle_brkchars)
10950 (signal_completer, reg_or_group_completer_1)
10951 (reg_or_group_completer, default_completer_handle_brkchars):
10952 Adjust to work with a completion_tracker.
10953 (gdb_completion_word_break_characters_throw): New.
10954 (gdb_completion_word_break_characters): Reimplement.
10955 (line_completion_function): Delete.
10956 (completion_tracker::recompute_lowest_common_denominator)
10957 (expand_preserving_ws)
10958 (completion_tracker::build_completion_result)
10959 (completion_result::completion_result)
10960 (completion_result::completion_result)
10961 (completion_result::~completion_result)
10962 (completion_result::completion_result)
10963 (completion_result::release_match_list, compare_cstrings)
10964 (completion_result::sort_match_list)
10965 (completion_result::reset_match_list)
10966 (gdb_rl_attempted_completion_function_throw)
10967 (gdb_rl_attempted_completion_function): New.
10968 * completer.h (completion_list, struct completion_result)
10969 (class completion_tracker): New.
10970 (complete_line): Add completion_tracker parameter.
10971 (readline_line_completion_function): Delete.
10972 (gdb_rl_attempted_completion_function): New.
10973 (noop_completer, filename_completer, expression_completer)
10974 (location_completer, symbol_completer, command_completer)
10975 (signal_completer, reg_or_group_completer): Update prototypes.
10976 (completion_tracker_t, new_completion_tracker)
10977 (make_cleanup_free_completion_tracker): Delete.
10978 (enum maybe_add_completion_enum): Delete.
10979 (maybe_add_completion): Delete.
10980 (throw_max_completions_reached_error): Delete.
10981 * corefile.c (complete_set_gnutarget): Adjust to work with a
10982 completion_tracker instead of a VEC.
10983 * cp-abi.c (cp_abi_completer): Adjust to work with a
10984 completion_tracker instead of a VEC.
10985 * d-lang.c (d_language_defn): Adjust.
10986 * disasm.c (disassembler_options_completer): Adjust to work with a
10987 completion_tracker instead of a VEC.
10988 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10989 (f_collect_symbol_completion_matches): ... this. Adjust to work
10990 with a completion_tracker instead of a VEC.
10991 (f_language_defn): Adjust.
10992 * go-lang.c (go_language_defn): Adjust.
10993 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10994 Adjust to work with a completion_tracker instead of a VEC.
10995 * infrun.c (handle_completer): Likewise.
10996 * interps.c (interpreter_completer): Likewise.
10997 * interps.h (interpreter_completer): Likewise.
10998 * language.c (unknown_language_defn, auto_language_defn)
10999 (local_language_defn): Adjust.
11000 * language.h (language_defn::la_make_symbol_completion_list):
11001 Rename to ...
11002 (language_defn::la_collect_symbol_completion_matches): ... this
11003 and adjust to work with a completion_tracker instead of a VEC.
11004 * m2-lang.c (m2_language_defn): Adjust.
11005 * objc-lang.c (objc_language_defn): Adjust.
11006 * opencl-lang.c (opencl_language_defn): Adjust.
11007 * p-lang.c (pascal_language_defn): Adjust.
11008 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
11009 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
11010 with a completion_tracker.
11011 * rust-lang.c (rust_language_defn): Adjust.
11012 * symtab.c (free_completion_list, do_free_completion_list)
11013 (return_val, completion_tracker): Delete.
11014 (completion_list_add_name, completion_list_add_symbol)
11015 (completion_list_add_msymbol, completion_list_objc_symbol)
11016 (completion_list_add_fields, add_symtab_completions): Add
11017 completion_tracker parameter and use it.
11018 (default_make_symbol_completion_list_break_on_1): Rename to...
11019 (default_collect_symbol_completion_matches_break_on): ... this.
11020 Add completion_tracker parameter and use it instead of allocating
11021 a completion tracker here.
11022 (default_make_symbol_completion_list_break_on): Delete old
11023 implementation.
11024 (default_make_symbol_completion_list): Delete.
11025 (default_collect_symbol_completion_matches): New.
11026 (make_symbol_completion_list): Delete.
11027 (collect_symbol_completion_matches): New.
11028 (make_symbol_completion_type): Rename to ...
11029 (collect_symbol_completion_matches_type): ... this. Add
11030 completion_tracker parameter and use it instead of VEC.
11031 (make_file_symbol_completion_list_1): Rename to...
11032 (collect_file_symbol_completion_matches): ... this. Add
11033 completion_tracker parameter and use it instead of VEC.
11034 (make_file_symbol_completion_list): Delete.
11035 (add_filename_to_list): Use completion_list instead of a VEC.
11036 (add_partial_filename_data::list): Now a completion_list.
11037 (make_source_files_completion_list): Work with a completion_list
11038 instead of a VEC.
11039 * symtab.h: Include "completer.h".
11040 (default_make_symbol_completion_list_break_on)
11041 (default_make_symbol_completion_list, make_symbol_completion_list)
11042 (make_symbol_completion_type, make_file_symbol_completion_list)
11043 (make_source_files_completion_list): Delete.
11044 (default_collect_symbol_completion_matches_break_on)
11045 (default_collect_symbol_completion_matches)
11046 (collect_symbol_completion_matches)
11047 (collect_symbol_completion_matches_type)
11048 (collect_file_symbol_completion_matches)
11049 (make_source_files_completion_list): New.
11050 * top.c (init_main): Don't install a rl_completion_entry_function
11051 hook. Install a rl_attempted_completion_function hook instead.
11052 * tui/tui-layout.c (layout_completer): Adjust to work with a
11053 completion_tracker.
11054 * tui/tui-regs.c (tui_reggroup_completer):
11055 * tui/tui-win.c (window_name_completer, focus_completer)
11056 (winheight_completer): Adjust to work with a completion_tracker.
11057 * value.c: Include "completer.h".
11058 (complete_internalvar): Adjust to work with a completion_tracker.
11059 * value.h (complete_internalvar): Likewise.
11060
6e1dbf8c
PA
110612017-07-17 Pedro Alves <palves@redhat.com>
11062
11063 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
11064 renames.
11065 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
11066 comments to completer_ftype's declaration.
11067 <completer_handle_brkchars>: Change type to
11068 completer_handle_brkchars_ftype.
11069 * command.h (completer_ftype): Add describing comment and give
11070 names to parameters.
11071 (completer_ftype_void): Rename to ...
11072 (completer_handle_brkchars_ftype) ... this. Add describing comment.
11073 (set_cmd_completer_handle_brkchars): Adjust.
11074 * completer.c (filename_completer_handle_brkchars): New function.
11075 (complete_line_internal_normal_command): New function, factored
11076 out from ...
11077 (complete_line_internal): ... here.
11078 (command_completer_handle_brkchars)
11079 (default_completer_handle_brkchars)
11080 (completer_handle_brkchars_func_for_completer): New functions.
11081 * completer.h (set_gdb_completion_word_break_characters): Delete
11082 declaration.
11083 (completer_handle_brkchars_func_for_completer): New declaration.
11084 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
11085 completer_handle_brkchars_func_for_completer.
11086
78b13106
PA
110872017-07-17 Pedro Alves <palves@redhat.com>
11088
11089 * completer.c (symbol_completer): New function, based on
11090 make_symbol_completion_list_fn.
11091 * completer.h (symbol_completer): New declaration.
11092 * guile/scm-cmd.c (cmdscm_completers): Adjust.
11093 * python/py-cmd.c (completers): Adjust.
11094 * symtab.c (make_symbol_completion_list_fn): Delete.
11095 * symtab.h (make_symbol_completion_list_fn): Delete.
11096 * cli/cli-decode.c (add_cmd): Adjust.
11097
bbf2f4df
PA
110982017-07-17 Pedro Alves <palves@redhat.com>
11099
11100 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
11101 * dwarf2read.c: Include "filename-seen-cache.h".
11102 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
11103 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
11104 * filename-seen-cache.c: New file.
11105 * filename-seen-cache.h: New file.
11106 * symtab.c: Include "filename-seen-cache.h".
11107 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
11108 (create_filename_seen_cache, clear_filename_seen_cache)
11109 (delete_filename_seen_cache, filename_seen): Delete, parts moved
11110 to filename-seen-cache.h/filename-seen-cache.c.
11111 (output_source_filename, sources_info)
11112 (maybe_add_partial_symtab_filename)
11113 (make_source_files_completion_list): Adjust to use
11114 filename_seen_cache.
11115
330cdd98
PA
111162017-07-17 Pedro Alves <palves@redhat.com>
11117
11118 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
11119 fields.
11120 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
11121 dwarf2_debug_sections*)): New.
11122 (dwarf2_per_objfile::dwarf2_per_objfile(const
11123 dwarf2_per_objfile&)): Declare as deleted.
11124 (dwarf2_per_objfile::operator=): Declare as deleted.
11125 (dwarf2_per_objfile::dwarf2_per_objfile)
11126 (dwarf2_per_objfile::~dwarf2_per_objfile)
11127 (dwarf2_per_objfile::free_cached_comp_units): New.
11128 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
11129 ctor. Call dwarf2_per_objfile's ctor manually.
11130 (dwarf2_locate_sections): Deleted/refactored as ...
11131 (dwarf2_per_objfile::locate_sections): ... this new method.
11132 (free_cached_comp_units): Defer to
11133 dwarf2_per_objfile::free_cached_comp_units.
11134 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
11135
8880f2a9
TT
111362017-07-14 Tom Tromey <tom@tromey.com>
11137
11138 PR rust/21764:
11139 * rust-exp.y (convert_ast_to_expression): Add "want_type"
11140 parameter.
11141 <UNOP_SIZEOF>: Split into separate case.
11142 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
11143
65547233
TT
111442017-07-14 Tom Tromey <tom@tromey.com>
11145
11146 PR rust/21763:
11147 * symtab.c (symbol_matches_domain): Add language_rust to special
11148 case.
11149 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
11150 treat LOC_TYPEDEF symbols as variables.
11151
8f14146e
PA
111522017-07-14 Pedro Alves <palves@redhat.com>
11153
11154 * symtab.c (make_file_symbol_completion_list_1): Iterate over
11155 symtabs matching all symtabs with SRCFILE as file name instead of
11156 only considering the first hit, with lookup_symtab.
11157
2347965c
SM
111582017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11159
11160 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
11161 operator_name parameters.
11162 (gen_expr): Update function call.
11163
40f4af28
SM
111642017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11165
11166 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
11167 parameter.
11168 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
11169 Likewise.
11170 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
11171 parameter, use agent_expr::gdbarch instead, update function
11172 calls.
11173 (locexpr_tracepoint_var_ref): Likewise.
11174 (loclist_tracepoint_var_ref): Likewise.
11175 * ax-gdb.c (gen_trace_static_fields): Likewise.
11176 (gen_traced_pop): Likewise.
11177 (gen_frame_args_address): Likewise.
11178 (gen_frame_locals_address): Likewise.
11179 (gen_var_ref): Likewise.
11180 (gen_struct_ref_recursive): Likewise.
11181 (gen_static_field): Likewise.
11182 (gen_maybe_namespace_elt): Likewise.
11183 (gen_expr): Likewise.
11184 (gen_trace_for_var): Likewise.
11185 (gen_trace_for_expr): Likewise.
11186 (gen_trace_for_return_address): Likewise.
11187
053f8057
SM
111882017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11189
11190 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
11191 parameter.
11192 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
11193
6661ad48
SM
111942017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11195
11196 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
11197 from ax, update calls.
11198 (gen_usual_arithmetic): Likewise.
11199 (gen_integral_promotions): Likewise.
11200 (gen_bitfield_ref): Likewise.
11201 (gen_primitive_field): Likewise.
11202 (gen_struct_ref_recursive): Likewise.
11203 (gen_struct_ref): Likewise.
11204 (gen_maybe_namespace_elt): Likewise.
11205 (gen_struct_elt_for_reference): Likewise.
11206 (gen_namespace_elt): Likewise.
11207 (gen_aggregate_elt_ref): Likewise.
11208 (gen_expr): Get gdbarch from ax, update calls.
11209 (gen_expr_binop_rest): Likewise.
11210
c55a47e7
PA
112112017-07-13 Pedro Alves <palves@redhat.com>
11212
11213 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
11214 as default tdesc.
11215 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
11216 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
11217 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
11218 tdesc_amd64_linux as default tdesc. Get final tdesc from the
11219 tdep.
11220 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
11221 Get final tdesc from the tdep.
11222 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
11223 default tdesc.
11224 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
11225 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
11226 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
11227 Use it as default tdesc.
11228 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
11229 down to amd_init_abi. No longer handle fallback tdesc here.
11230 * amd64-tdep.h (tdesc_x32): Declare.
11231 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11232 parameter.
11233 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11234 as default tdesc.
11235
55efceab
AA
112362017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11237
11238 * s390-linux-tdep.c (s390_process_record): Add support for
11239 instructions new in arch12.
11240
0aa37b65
JB
112412017-07-11 John Baldwin <jhb@FreeBSD.org>
11242
11243 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11244 PT_GETFSBASE and PT_GETGSBASE.
11245 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11246 PT_SETGSBASE.
11247
48aeef91
JB
112482017-07-11 John Baldwin <jhb@FreeBSD.org>
11249
11250 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11251 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11252 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11253 those rules.
11254 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11255 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11256 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11257 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11258 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11259 * features/i386/amd64.xml: Add 64bit-segments.xml.
11260 * features/i386/amd64-avx-avx512.c: Regenerated.
11261 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11262 * features/i386/amd64-avx-mpx.c: Regenerated.
11263 * features/i386/amd64-avx.c: Regenerated.
11264 * features/i386/amd64-mpx.c: Regenerated.
11265 * features/i386/amd64.c: Regenerated.
11266 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11267 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11268 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11269 * regformats/i386/amd64-avx.dat: Regenerated.
11270 * regformats/i386/amd64-mpx.dat: Regenerated.
11271 * regformats/i386/amd64.dat: Regenerated.
11272
77c501bc
YQ
112732017-07-10 Yao Qi <yao.qi@linaro.org>
11274
11275 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11276 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11277
6dc8d757
AK
112782017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11279
11280 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11281 unsetenv.
11282 * gnulib/aclocal.m4: Regenerate.
11283 * gnulib/config.in: Regenerate.
11284 * gnulib/configure: Regenerate.
11285 * gnulib/import/Makefile.am: Regenerate.
11286 * gnulib/import/Makefile.in: Regenerate.
11287 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11288 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11289 * gnulib/import/m4/environ.m4: New file.
11290 * gnulib/import/m4/setenv.m4: New file.
11291 * gnulib/import/setenv.c: New file.
11292 * gnulib/import/unsetenv.c: New file.
11293
266934d1
SM
112942017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11295
11296 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11297 address when op is DW_OP_addr.
11298
03278692
TT
112992017-07-09 Tom Tromey <tom@tromey.com>
11300
11301 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11302 check and apply to outer type.
11303
4b654465
JB
113042017-07-07 John Baldwin <jhb@FreeBSD.org>
11305
11306 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11307 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11308 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11309 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11310
2af9fc44
JB
113112017-07-07 John Baldwin <jhb@FreeBSD.org>
11312
11313 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11314
382b69bb
JB
113152017-07-07 John Baldwin <jhb@FreeBSD.org>
11316
11317 * corelow.c (get_core_siginfo): Remove.
11318 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11319 instead of get_core_siginfo.
11320 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11321 * gdbarch.h: Re-generate.
11322 * gdbarch.c: Re-generate.
11323 * linux-tdep.c (linux_core_xfer_siginfo): New.
11324 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11325
6e5eab33
JB
113262017-07-07 John Baldwin <jhb@FreeBSD.org>
11327
11328 * corelow.c (thread_section_name): Move to ...
11329 * gdbcore.h (thread_section_name): ... here.
11330
929edea9
JB
113312017-07-07 John Baldwin <jhb@FreeBSD.org>
11332
11333 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11334 (struct siginfo32): New.
11335 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11336 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11337 via ptrace(PT_LWPINFO).
11338
762c974a
JB
113392017-07-07 John Baldwin <jhb@FreeBSD.org>
11340
11341 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11342 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11343 (fbsd_get_siginfo_type): New.
11344 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11345 (_initialize_fbsd_tdep): New.
11346
33c5cd75
DB
113472017-07-06 David Blaikie <dblaikie@gmail.com>
11348
11349 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11350 a singular dwo_unit*) to support multiple CUs in the same way that
11351 multiple TUs are supported.
11352 (create_cus_hash_table): Replace create_dwo_cu with a function for
11353 parsing multiple CUs from a DWO file.
11354 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11355 create_dwo_cu.
11356 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11357 htab_find, rather than comparing the signature to a singleton CU in
11358 the dwo_file.
11359
8455d262
PA
113602017-07-06 Pedro Alves <palves@redhat.com>
11361
11362 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11363
4da3eb35
PA
113642017-07-04 Pedro Alves <palves@redhat.com>
11365
11366 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11367 * gdbtypes.h (TYPE_STATIC): Delete.
11368 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11369 is_synchronized, is_native>: Delete.
11370 <dummy>: Bump.
11371 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11372 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11373 (TYPE_FN_FIELD_ABSTRACT): Delete.
11374
5bfd255c
SM
113752017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11376
11377 * buffer.h (buffer_finish): Fix spelling mistakes.
11378
25c54127
EZ
113792017-07-01 Eli Zaretskii <eliz@gnu.org>
11380
11381 * .dir-locals.el: Automatically switch to C-style comments in
11382 versions of Emacs that support the feature.
11383
dc4bde35
SDJ
113842017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11385 Pedro Alves <palves@redhat.com>
11386
11387 PR cli/21688
11388 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11389 (process_next_line): New variable 'inline_cmd'.
11390 Adjust 'if' clauses for "python", "compile" and "guile" to use
11391 'command_name_equals' and check for '!inline_cmd'.
11392
51ed89aa
SDJ
113932017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11394
11395 PR cli/21688
11396 * cli/cli-script.c (command_name_equals_not_inline): New function.
11397 (process_next_line): Adjust 'if' clauses for "python", "compile"
11398 and "guile" to use command_name_equals_not_inline.
11399
eb17d413
PA
114002017-06-29 Pedro Alves <palves@redhat.com>
11401
11402 * completer.c (expression_completer): Call
11403 linespec_location_completer instead of location_completer.
11404
195bcdd5
PA
114052017-06-29 Pedro Alves <palves@redhat.com>
11406
11407 * completer.c (expression_completer): Remove code that recomputes
11408 'text' from 'word'.
11409
adc764e7
YQ
114102017-06-29 Yao Qi <yao.qi@linaro.org>
11411
11412 * regformats/regdat.sh: Generate code with
11413 "ifndef IN_PROCESS_AGENT".
11414
6e75794e
PA
114152017-06-28 Pedro Alves <palves@redhat.com>
11416
11417 * command.h: Include "common/scoped_restore.h".
11418
bc491f2e
YQ
114192017-06-28 Yao Qi <yao.qi@linaro.org>
11420
11421 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11422 instead of obstack_grow.
11423
41664b45
DG
114242017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11425
11426 PR gdb/21337
11427 * symfile.c (reread_symbols): Call objfiles_changed just before
11428 read_symbols.
11429
6da67eb1
PA
114302017-06-27 Pedro Alves <palves@redhat.com>
11431
11432 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11433 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11434 (completion_list_add_symbol, completion_list_add_msymbol):
11435 ... these new functions.
11436 (add_symtab_completions)
11437 (default_make_symbol_completion_list_break_on_1): Adjust.
11438
23732b1e
PA
114392017-06-27 Pedro Alves <palves@redhat.com>
11440
11441 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11442 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11443 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11444 dtor.
11445 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11446 'storage_obstack' field an auto_obstack. In-class initialize all
11447 non-bitfield fields. Make minsyms_read bool.
11448 * symfile.c (read_symbols): Adjust.
11449
a4d1e79a
AH
114502017-06-27 Alan Hayward <alan.hayward@arm.com>
11451
11452 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11453 (gdbsim_store_register): Likewise.
11454
8268c778
PA
114552017-06-27 Pedro Alves <palves@redhat.com>
11456
11457 * c-exp.y (name_obstack): Now an auto_obstack.
11458 (yylex): Use auto_obstack::clear.
11459 (c_parse): Use auto_obstack::clear instead of reinitializing and
11460 freeing the obstack.
11461 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11462 * d-exp.y (name_obstack): Now an auto_obstack.
11463 (yylex): Use auto_obstack::clear.
11464 (d_parse): Use auto_obstack::clear instead of reinitializing and
11465 freeing the obstack.
11466 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11467 auto_obstack.
11468 * dwarf2read.c (create_addrmap_from_index)
11469 (dwarf2_build_psymtabs_hard)
11470 (update_enumeration_type_from_children): Likewise.
11471 * gdb_obstack.h (auto_obstack): New type.
11472 * go-exp.y (name_obstack): Now an auto_obstack.
11473 (build_packaged_name): Use auto_obstack::clear.
11474 (go_parse): Use auto_obstack::clear instead of reinitializing and
11475 freeing the obstack.
11476 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11477 auto_obstack.
11478 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11479 * rust-exp.y (work_obstack): Now an auto_obstack.
11480 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11481 reinitializing and freeing the obstack.
11482 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11483 (host_char_to_target): Use auto_obstack.
11484 * utils.h (make_cleanup_obstack_free): Delete declaration.
11485 * valprint.c (generic_emit_char, generic_printstr): Use
11486 auto_obstack.
11487
db665f42
SM
114882017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11489
11490 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11491 thread.
11492 (darwin_init_thread_list): Don't update dummy thread.
11493 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11494
873c0814
SM
114952017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11496
11497 * record-full.c (netorder16): Remove.
11498
8b5a7a6e
SM
114992017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11500
11501 * common/diagnostics.h: Define macros for GCC.
11502 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11503 * common/vec.h: Include diagnostics.h.
11504 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11505 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11506 warning.
11507
d1435379
SM
115082017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11509
11510 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11511 New macro.
11512 * ada-lex.l: Ignore deprecated register warnings.
11513
cc75e0fd
SM
115142017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11515
11516 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11517 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11518
07809eaf
SM
115192017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11520
11521 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11522 its own line.
11523
f076f034
SM
115242017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11525
11526 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11527
0dd5cbc5
AH
115282017-06-23 Alan Hayward <alan.hayward@arm.com>
11529
11530 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11531 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11532 (xtensa_register_read_masked): Likewise.
11533
d4c6ce5b
SDJ
115342017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11535
11536 * common/environ.c (gdb_environ::unset): Update comment.
11537
16892a03
AH
115382017-06-22 Alan Hayward <alan.hayward@arm.com>
11539
11540 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11541 registers.
11542
d7dcbefc
AH
115432017-06-22 Alan Hayward <alan.hayward@arm.com>
11544
11545 * record-full.c (record_full_exec_insn): Use byte_vector.
11546
b30ff123
YQ
115472017-06-22 Yao Qi <yao.qi@linaro.org>
11548
11549 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11550 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11551
4fa847d7
AH
115522017-06-22 Alan Hayward <alan.hayward@arm.com>
11553
11554 * remote.c (cached_reg): Move from here...
11555 * regcache.h (cached_reg): ...to here.
11556 * python/py-unwind.c (struct reg_info): Remove.
11557 (cached_frame_info): Use cached_reg_t.
11558 (pyuw_prev_register): Likewise.
11559 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11560 (pyuw_dealloc_cache): Free all registers.
11561
f4906a9a
PA
115622017-06-22 Pedro Alves <palves@redhat.com>
11563 Simon Marchi <simon.marchi@ericsson.com>
11564
11565 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11566 warning.
11567 * common/diagnostics.h: New file.
11568
b45a1208
PA
115692017-06-22 Pedro Alves <palves@redhat.com>
11570
11571 * common/agent.h: Add include guards.
11572
e4da2c61
SM
115732017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11574
11575 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11576 talk about addressable units instead of bytes.
11577
96160d60
SDJ
115782017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11579
11580 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11581 of '::const_iterator'.
11582
9a6c7d9c
SDJ
115832017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11584
11585 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11586 'unittests/environ-selftests.c'.
11587 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11588 * charset.c (find_charset_names): Declare object 'iconv_env'.
11589 Update code to use 'iconv_env' object. Remove call to
11590 'free_environ'.
11591 * common/environ.c: Include <utility>.
11592 (make_environ): Delete function.
11593 (free_environ): Delete function.
11594 (gdb_environ::clear): New function.
11595 (gdb_environ::operator=): New function.
11596 (gdb_environ::get): Likewise.
11597 (environ_vector): Delete function.
11598 (set_in_environ): Delete function.
11599 (gdb_environ::set): New function.
11600 (unset_in_environ): Delete function.
11601 (gdb_environ::unset): New function.
11602 (gdb_environ::envp): Likewise.
11603 * common/environ.h: Include <vector>.
11604 (struct gdb_environ): Delete; transform into...
11605 (class gdb_environ): ... this class.
11606 (free_environ): Delete prototype.
11607 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11608 environ_vector): Likewise.
11609 * infcmd.c (run_command_1): Update code to call
11610 'envp' from 'gdb_environ' class.
11611 (environment_info): Update code to call methods from 'gdb_environ'
11612 class.
11613 (unset_environment_command): Likewise.
11614 (path_info): Likewise.
11615 (path_command): Likewise.
11616 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11617 (inferior::inferior): Initialize 'environment' using the host's
11618 information.
11619 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11620 Include "environ.h".
11621 (class inferior) <environment>: Change type from 'struct
11622 gdb_environ' to 'gdb_environ'.
11623 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11624 methods from 'gdb_environ' class.
11625 * solib.c (solib_find_1): Likewise
11626 * unittests/environ-selftests.c: New file.
11627
75c554cf
YQ
116282017-06-20 Yao Qi <yao.qi@linaro.org>
11629
11630 * features/i386/i386-linux.xml: Exchange the order of including
11631 32bit-linux.xml and 32bit-sse.xml.
11632 * features/i386/i386-linux.c: Regenerated.
11633
72ddacb7
YQ
116342017-06-20 Yao Qi <yao.qi@linaro.org>
11635
11636 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11637 Delete copy ctor and assignment operator.
11638 (tdesc_type): Likewise.
11639 (tdesc_feature): Likewise.
11640 (tdesc_free_reg): Remove.
11641 (tdesc_create_reg): Use new.
11642 (tdesc_free_type): Remove.
11643 (tdesc_create_vector): Use new.
11644 (tdesc_create_union): Likewise.
11645 (tdesc_create_flags): Likewise.
11646 (tdesc_create_enum): Likewise.
11647 (tdesc_free_feature): Delete.
11648 (free_target_description): Use delete.
11649
325c9fd4
JB
116502017-06-19 John Baldwin <jhb@FreeBSD.org>
11651
11652 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11653 registers.
11654
16b7a719
PA
116552017-06-19 Pedro Alves <palves@redhat.com>
11656
11657 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11658 after gdb::unlinker.
11659
1c8e01c9
SDJ
116602017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11661
11662 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11663 gdb_environ to access an environment variable.
11664
ffce45d2
TP
116652017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11666
11667 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11668 gdb_byte*.
11669
1d4fbac9
SM
116702017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11671
11672 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11673
8465943a
SM
116742017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11675
11676 * configure: Re-generate.
11677 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11678
3e019bdc
SM
116792017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11680
11681 * configure: Re-generate.
11682 * warning.m4: Pass -Werror to compiler when checking for
11683 supported warning flags.
11684
cf0dd6f0
SM
116852017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11686
11687 * Makefile.in (COMPILE.pre): Add "-x c++".
11688
6f98355c
YQ
116892017-06-16 Alan Hayward <alan.hayward@arm.com>
11690 Pedro Alves <palves@redhat.com>
11691 Yao Qi <yao.qi@linaro.org>
11692
11693 * defs.h (RequireLongest): New.
11694 (extract_integer): Declare function template.
11695 (extract_signed_integer): Remove the declaration, but define it
11696 static inline.
11697 (extract_unsigned_integer): Likewise.
11698 (store_integer): Declare function template.
11699 (store_signed_integer): Remove the declaration, but define it
11700 static inline.
11701 (store_unsigned_integer): Likewise.
11702 * findvar.c (extract_integer): New function template.
11703 (extract_signed_integer): Remove.
11704 (extract_unsigned_integer): Remove.
11705 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11706 instantiations.
11707 (store_integer): New function template.
11708 (store_signed_integer): Remove.
11709 (store_unsigned_integer): Remove.
11710 (store_integer): Explicit instantiations.
11711 * regcache.c (regcache_raw_read_signed): Update.
11712 (regcache::raw_read): New function.
11713 (regcache::raw_read_signed): Remove.
11714 (regcache::raw_read_unsigned): Remove.
11715 (regcache_raw_read_unsigned): Update.
11716 (regcache_raw_write_unsigned): Update.
11717 (regcache::raw_write_signed): Remove.
11718 (regcache::raw_write): New function.
11719 (regcache_cooked_read_signed): Update.
11720 (regcache::raw_write_unsigned): Remove.
11721 (regcache::cooked_read_signed): Remove.
11722 (regcache_cooked_read_unsigned): Update.
11723 (regcache::cooked_read_unsigned): Remove.
11724 (regcache_cooked_write_signed): Update.
11725 (regcache_cooked_write_unsigned): Update.
11726 * regcache.h (regcache) <raw_read_signed>: Remove.
11727 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11728 <raw_read, raw_write>: New.
11729 <cooked_read_signed, cooked_write_signed>: Remove.
11730 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11731 <cooked_read, cooked_write>: New.
11732 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11733 (sh64_pseudo_register_write): Update.
11734
a87dc45a
AK
117352017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11736
11737 * arc-tdep.c (arc_disassembler_options): New variable.
11738 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11739 of default_print_insn.
11740 (arc_delayed_print_insn): Set info->section when needed,
11741 use default_print_insn to retrieve a disassembler.
11742
45159d6a
SDJ
117432017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11744
11745 PR gdb/21574
11746 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11747 to mention $SHELL and startup-with-shell.
11748
b46c4cf0
MF
117492017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11750
11751 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11752
6394c606
YQ
117532017-06-14 Yao Qi <yao.qi@linaro.org>
11754
11755 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11756 default_print_insn instead of print_insn_aarch64.
11757 * arm-tdep.c (gdb_print_insn_arm): Call
11758 default_print_insn instead of print_insn_big_arm
11759 and print_insn_little_arm.
11760 * i386-tdep.c (i386_print_insn): Call default_print_insn
11761 instead of print_insn_i386.
11762 * ia64-tdep.c (ia64_print_insn): Call
11763 default_print_insn instead of print_insn_ia64.
11764 * mips-tdep.c (gdb_print_insn_mips): Call
11765 default_print_insn instead of print_insn_big_mips
11766 and print_insn_little_mips.
11767 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11768 instead of print_insn_spu.
11769
d5722aa2
PA
117702017-06-14 Pedro Alves <palves@redhat.com>
11771
11772 * ada-lang.c: Include "common/byte-vector.h".
11773 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11774 * charset.c (wchar_iterator::iterate): Resize the vector instead
11775 of reserving it.
11776 * common/byte-vector.h: Include "common/def-vector.h".
11777 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11778 * cli/cli-dump.c: Include "common/byte-vector.h".
11779 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11780 * common/byte-vector.h: New file.
11781 * common/def-vector.h: New file.
11782 * common/default-init-alloc.h: New file.
11783 * dwarf2loc.c: Include "common/byte-vector.h".
11784 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11785 instead of reserving it.
11786 * dwarf2read.c: Include "common/byte-vector.h".
11787 (data_buf::m_vec): Now a gdb::byte_vector.
11788 * gdb_regex.c: Include "common/def-vector.h".
11789 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11790 * mi/mi-main.c: Include "common/byte-vector.h".
11791 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11792 * printcmd.c: Include "common/byte-vector.h".
11793 (print_scalar_formatted): Use gdb::byte_vector.
11794 * valprint.c: Include "common/byte-vector.h".
11795 (maybe_negate_by_bytes, print_decimal_chars): Use
11796 gdb::byte_vector.
11797
01ec7a27
SM
117982017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11799
11800 * darwin-nat.c: Include "nat/fork-inferior.h".
11801
848d9074
SM
118022017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11803
11804 * configure.nat: Factor out Darwin bits that are not
11805 architecture-specific. Add fork-inferior.o.
11806
3b912944
SM
118072017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11808
11809 * configure.nat: Factor out AIX bits that are not
11810 architecture-specific. Add fork-inferior.o.
11811
55acdf22
AA
118122017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11813
11814 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11815 (read_pieced_value, write_pieced_value): ...here. Reduce to
11816 wrappers that just call rw_pieced_value.
11817
f65e2044
AA
118182017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11819
11820 * dwarf2loc.c (write_pieced_value): When writing the data for a
11821 memory piece, use write_memory_with_notification instead of
11822 write_memory.
11823
23f945bf
AA
118242017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11825
11826 * valops.c (read_value_memory): Change embedded_offset to
11827 represent a bit offset instead of a byte offset.
11828 * value.h (read_value_memory): Adjust comment.
11829
f236533e
AA
118302017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11831
11832 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11833 dest_offset_bits and source_offset_bits.
11834 (write_pieced_value): Likewise.
11835
65d84b76
AA
118362017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11837
11838 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11839 given by DW_OP_bit_piece.
11840 (write_pieced_value): Likewise.
11841
242d31ab
AA
118422017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11843
11844 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11845 some other preparations to the places where sufficient information
11846 is available.
11847 (write_pieced_value): Likewise.
11848
03c8af18
AA
118492017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11850
11851 * dwarf2loc.c (bits_to_bytes): New function.
11852 (read_pieced_value): Fix offset calculations for register pieces
11853 on big-endian targets.
11854 (write_pieced_value): Likewise.
11855
840989c1
AA
118562017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11857
11858 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11859 (write_pieced_value): Likewise.
11860
359b19bb
AA
118612017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11862
11863 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11864 transfer the source value's least significant bits, instead of its
11865 lowest-addressed ones. Rename type_len to max_offset.
11866 (read_pieced_value): Mirror above changes to write_pieced_value as
11867 applicable.
11868
07c9ca3b
AA
118692017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11870
11871 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11872 truncate full bytes from dest_offset_bits before using it as an
11873 offset into the buffer.
11874
f1cc9874
AA
118752017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11876
11877 * dwarf2loc.c (write_pieced_value): Include transfer size in
11878 byte-wise check.
11879
cdaac320
AA
118802017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11881
11882 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11883 calculation of this_size.
11884
af547a96
AA
118852017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11886
11887 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11888 when targeting a bit-field.
11889 (write_pieced_value): Likewise.
11890
ddd7882a
AA
118912017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11892
11893 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11894 (allocate_piece_closure): Drop addr_size parameter.
11895 (dwarf2_evaluate_loc_desc_full): Adjust call to
11896 allocate_piece_closure.
11897
e9352324
AA
118982017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11899
11900 PR gdb/21226
11901 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11902 the LSB end, independent of endianness.
11903
d5d1163e
AA
119042017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11905
11906 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11907 size capping.
11908
032bb6ea
YQ
119092017-06-13 Yao Qi <yao.qi@linaro.org>
11910
11911 * mips-linux-nat.c: Move include features/mips*-linux.c to
11912 mips-linux-tdep.c.
11913 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11914 to mips-linux-tdep.c.
11915 * mips-linux-tdep.c: Include features/mips*-linux.c
11916 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11917 functions.
11918 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11919 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11920 (tdesc_mips64_dsp_linux): Declare.
11921
f12f6bad
TT
119222017-06-12 Tom Tromey <tom@tromey.com>
11923
11924 * valprint.h (val_print_type_code_int): Remove.
11925 * valprint.c (generic_val_print_int): Always call
11926 val_print_scalar_formatted.
11927 (val_print_type_code_int): Remove.
11928 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11929 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11930 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11931 * ada-valprint.c (ada_val_print_num): Use
11932 val_print_scalar_formatted.
11933
d9109c80
TT
119342017-06-12 Tom Tromey <tom@tromey.com>
11935
11936 * printcmd.c (print_scalar_formatted): Unify the two switches.
11937 Don't convert scalars to LONGEST.
11938
4ac0cb1c
TT
119392017-06-12 Tom Tromey <tom@tromey.com>
11940
11941 PR exp/16225:
11942 * valprint.h (print_decimal_chars): Update.
11943 * valprint.c (maybe_negate_by_bytes): New function.
11944 (print_decimal_chars): Add "is_signed" argument.
11945 * printcmd.c (print_scalar_formatted): Update.
11946
30a25466
TT
119472017-06-12 Tom Tromey <tom@tromey.com>
11948
11949 PR exp/16225:
11950 * valprint.h (print_binary_chars, print_hex_chars): Update.
11951 * valprint.c (val_print_type_code_int): Update.
11952 (print_binary_chars): Add "zero_pad" argument.
11953 (emit_octal_digit): New function.
11954 (print_octal_chars): Don't zero-pad.
11955 (print_decimal_chars): Likewise.
11956 (print_hex_chars): Add "zero_pad" argument.
11957 * sh64-tdep.c (sh64_do_fp_register): Update.
11958 * regcache.c (regcache::dump): Update.
11959 * printcmd.c (print_scalar_formatted): Update.
11960 * infcmd.c (default_print_one_register_info): Update.
11961
b3464d03
PA
119622017-06-12 Pedro Alves <palves@redhat.com>
11963 Alan Hayward <alan.hayward@arm.com>
11964
11965 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11966 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11967 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11968 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11969 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11970
4b76cda9
PA
119712017-06-12 Pedro Alves <palves@redhat.com>
11972
11973 * dwarf2read.c (mapped_symtab::data): Now a vector of
11974 symtab_index_entry instead of vector of
11975 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11976 whether an element's name is NULL instead of checking whether the
11977 element itself is NULL.
11978 (find_slot): Change return type. Adjust.
11979 (hash_expand, , add_index_entry, uniquify_cu_indices)
11980 (write_hash_table): Adjust.
11981
e8f8bcb3
PA
119822017-06-12 Pedro Alves <palves@redhat.com>
11983
11984 * dwarf2read.c (recursively_count_psymbols): New function.
11985 (write_psymtabs_to_index): Call it to compute number of psyms and
11986 pass estimate size of psyms_seen to unordered_set's ctor.
11987
70a1152b
PA
119882017-06-12 Pedro Alves <palves@redhat.com>
11989
11990 * dwarf2read.c (write_hash_table): Check if key already exists
11991 before emplacing.
11992
c2f134ac
PA
119932017-06-12 Pedro Alves <palves@redhat.com>
11994
11995 * dwarf2read.c (data_buf::append_space): Rename to...
11996 (data_buf::grow): ... this, and make private. Adjust all callers.
11997 (data_buf::append_uint): New method.
11998 (add_address_entry, write_one_signatured_type)
11999 (write_psymtabs_to_index): Use it.
12000
a81e6d4d
PA
120012017-06-12 Pedro Alves <palves@redhat.com>
12002
12003 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
12004 (file_write (FILE *, const std::vector<Elem>&)): Delete.
12005 (data_buf::file_write): Call ::fwrite directly.
12006
6fd931f2
PA
120072017-06-12 Pedro Alves <palves@redhat.com>
12008
12009 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
12010 std::vector::erase.
12011
bc8f2430
JK
120122017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12013
12014 Code cleanup: C++ify .gdb_index producer.
12015 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
12016 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
12017 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
12018 (create_strtab, add_string): Remove.
12019 (file_write, data_buf): New.
12020 (struct symtab_index_entry): Use std::vector for cu_indices.
12021 (struct mapped_symtab): Use std::vector for data.
12022 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
12023 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
12024 Remove.
12025 (find_slot): Change return type. Update it to the new data structures.
12026 (hash_expand, add_index_entry): Update it to the new data structures.
12027 (offset_type_compare): Remove.
12028 (uniquify_cu_indices): Update it to the new data structures.
12029 (c_str_view, c_str_view_hasher, vector_hasher): New.
12030 (add_indices_to_cpool): Remove.
12031 (write_hash_table): Update it to the new data structures.
12032 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
12033 (eq_psymtab_cu_index): Remove.
12034 (psym_index_map): New typedef.
12035 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
12036 reference and std::unordered_map for cu_index_htab.
12037 (add_address_entry, add_address_entry_worker, write_address_map)
12038 (write_psymbols): Update it to the new data structures.
12039 (write_obstack): Remove.
12040 (struct signatured_type_index_data): Change types_list to a data_buf
12041 reference and psyms_seen to a std::unordered_set reference.
12042 (write_one_signatured_type, recursively_write_psymbols)
12043 (write_psymtabs_to_index): Update it to the new data structures.
12044
c4dcb155
SM
120452017-06-11 Simon Marchi <simon.marchi@ericsson.com>
12046
12047 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
12048 separate-debug-file commands.
12049 * symfile.h (separate_debug_file_debug): New global.
12050 * symfile.c (separate_debug_file_debug): New global.
12051 (separate_debug_file_exists, find_separate_debug_file): Add
12052 debug output.
12053 (_initialize_symfile): Add "set debug separate-debug-file"
12054 command.
12055 * build-id.c (build_id_to_debug_bfd,
12056 find_separate_debug_file_by_buildid): Add debug output.
12057
6d45d4b4
SM
120582017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
12059
12060 * gdbarch.sh (displaced_step_free_closure): Remove.
12061 * gdbarch.h, gdbarch.c: Re-generate.
12062 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
12063 displaced_step_free_closure.
12064 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
12065 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
12066 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
12067 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12068 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12069 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12070 * arch-utils.h (simple_displaced_step_free_closure): Remove.
12071 * arch-utils.c (simple_displaced_step_free_closure): Remove.
12072 * infrun.c (displaced_step_clear): Call xfree instead of
12073 gdbarch_displaced_step_free_closure.
12074
2f91880f
SDJ
120752017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
12076
12077 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
12078 NULL".
12079
b8b6e72f
AH
120802017-06-08 Alan Hayward <alan.hayward@arm.com>
12081
12082 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
12083 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
12084 (mn10300_push_dummy_call): Likewise.
12085
5369082e
AH
120862017-06-08 Alan Hayward <alan.hayward@arm.com>
12087
12088 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
12089
ff4ca5ac
AH
120902017-06-08 Alan Hayward <alan.hayward@arm.com>
12091
12092 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
12093
aefd8b33
SDJ
120942017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12095
12096 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
12097 able to start inferiors using a shell.
12098 (New remote packets): Announce new packet "QStartupWithShell".
12099 * remote.c: Add PACKET_QStartupWithShell.
12100 (extended_remote_create_inferior): Handle new
12101 PACKET_QStartupWithShell.
12102 (remote_protocol_features) <QStartupWithShell>: New entry for
12103 PACKET_QStartupWithShell.
12104 (_initialize_remote): Call "add_packet_config_cmd" for
12105 QStartupShell.
12106
2090129c
SDJ
121072017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12108 Pedro Alves <palves@redhat.com>
12109
12110 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
12111 and "nat/fork-inferior.h".
12112 * common/common-inferior.h: New file, with contents from
12113 "gdb/inferior.h".
12114 * commom/common-utils.c: Include "common-utils.h".
12115 (stringify_argv): New function.
12116 * common/common-utils.h (stringify_argv): New prototype.
12117 * configure.nat: Add "fork-inferior.o" as a dependency for
12118 "*linux*", "fbsd*" and "nbsd*" hosts.
12119 * corefile.c (get_exec_file): Update comment.
12120 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
12121 instead of "startup_inferior".
12122 (darwin_create_inferior): Call "add_thread_silent" after
12123 "fork_inferior".
12124 * fork-child.c: Cleanup unnecessary includes.
12125 (SHELL_FILE): Move to "common/common-fork-child.c".
12126 (environ): Likewise.
12127 (exec_wrapper): Initialize.
12128 (get_exec_wrapper): New function.
12129 (breakup_args): Move to "common/common-fork-child.c"; rename to
12130 "breakup_args_for_exec".
12131 (escape_bang_in_quoted_argument): Move to
12132 "common/common-fork-child.c".
12133 (saved_ui): New variable.
12134 (prefork_hook): New function.
12135 (postfork_hook): Likewise.
12136 (postfork_child_hook): Likewise.
12137 (gdb_startup_inferior): Likewise.
12138 (fork_inferior): Move to "common/common-fork-child.c". Update
12139 function to support gdbserver.
12140 (startup_inferior): Likewise.
12141 * gdbcore.h (get_exec_file): Remove declaration.
12142 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
12143 instead of "startup_inferior". Call "add_thread_silent" after
12144 "fork_inferior".
12145 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
12146 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
12147 instead of "startup_inferior". Call "add_thread_silent" after
12148 "fork_inferior".
12149 * inferior.h: Include "common-inferior.h".
12150 (trace_start_error): Move to "common/common-utils.h".
12151 (trace_start_error_with_name): Likewise.
12152 (fork_inferior): Move prototype to "nat/fork-inferior.h".
12153 (startup_inferior): Likewise.
12154 (gdb_startup_inferior): New prototype.
12155 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
12156 * nat/fork-inferior.h: New file.
12157 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
12158 instead of "startup_inferior". Call "add_thread_silent" after
12159 "fork_inferior".
12160 * target.h (target_terminal_init): Move prototype to
12161 "target/target.h".
12162 (target_terminal_inferior): Likewise.
12163 (target_terminal_ours): Likewise.
12164 * target/target.h (target_terminal_init): New prototype, moved
12165 from "target.h".
12166 (target_terminal_inferior): Likewise.
12167 (target_terminal_ours): Likewise.
12168 * utils.c (gdb_flush_out_err): New function.
12169
043a4934
SDJ
121702017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12171
12172 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
12173 * common/common-gdbthread.h: New file, with parts from
12174 "gdb/gdbthread.h".
12175 * gdbthread.h: Include "common-gdbthread.h".
12176 (switch_to_thread): Moved to "common/common-gdbthread.h".
12177
15652511
SDJ
121782017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12179
12180 * Makefile.in (SFILES): Add "common/job-control.c".
12181 (HFILES_NO_SRCDIR): Add "common/job-control.h".
12182 (COMMON_OBS): Add "job-control.o".
12183 * common/job-control.c: New file, with contents from
12184 "gdb/inflow.c".
12185 * common/job-control.h: New file, with contents from "terminal.h".
12186 * fork-child.c: Include "job-control.h".
12187 * inflow.c: Include "job-control.h".
12188 (gdb_setpgid): Move to "common/common-inflow.c".
12189 (_initialize_inflow): Move setting of "job_control" to
12190 "handle_job_control".
12191 * terminal.h (job_control): Moved to "common/common-terminal.h".
12192 (gdb_setpgid): Likewise.
12193 * top.c: Include "job_control.h".
12194 * utils.c: Likewise.
12195 (job_control): Moved to "job-control.c".
12196
2d7cc5c7
PA
121972017-06-07 Pedro Alves <palves@redhat.com>
12198
12199 * Makefile.in (SFILES): Add gdb_regex.c.
12200 (COMMON_OBS): Add gdb_regex.o.
12201 * ada-lang.c (ada_add_standard_exceptions)
12202 (ada_add_exceptions_from_frame, name_matches_regex)
12203 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
12204 parameter type to compiled_regex. Adjust.
12205 (ada_exceptions_list): Use compiled_regex.
12206 * break-catch-throw.c (exception_catchpoint::pattern): Now a
12207 std::unique_ptr<compiled_regex>.
12208 (exception_catchpoint::~exception_catchpoint): Remove regfree
12209 call.
12210 (check_status_exception_catchpoint): Adjust to use compiled_regex.
12211 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
12212 * breakpoint.c (solib_catchpoint::compiled): Now a
12213 std::unique_ptr<compiled_regex>.
12214 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
12215 (check_status_catch_solib): Adjust to use compiled_regex.
12216 (add_solib_catchpoint): Adjust to use compiled_regex.
12217 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
12218 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
12219 compiled_regex reference. Adjust to use it.
12220 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
12221 declaration. Include "gdb_regex.h".
12222 (apropos_cmd): Change regex parameter to compiled_regex reference.
12223 * gdb_regex.c: New file.
12224 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
12225 declarations.
12226 (class compiled_regex): New.
12227 * linux-tdep.c: Include "common/gdb_optional.h".
12228 (struct mapping_regexes): New, factored out from
12229 mapping_is_anonymous_p, and adjusted to use compiled_regex.
12230 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12231 gdb::optional and remove cleanups. Adjust to compiled_regex.
12232 * probe.c: Include "common/gdb_optional.h".
12233 (collect_probes): Use compiled_regex and gdb::optional and remove
12234 cleanups.
12235 * skip.c: Include "common/gdb_optional.h".
12236 (skiplist_entry::compiled_function_regexp): Now a
12237 gdb::optional<compiled_regex>.
12238 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12239 (free_skiplist_entry): Remove regfree call.
12240 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12241 compiled_regex and gdb::optional.
12242 * symtab.c: Include "common/gdb_optional.h".
12243 (search_symbols): Use compiled_regex and gdb::optional.
12244 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12245 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12246 to gdb_regex.c.
12247
50d6adef
AH
122482017-06-07 Alan Hayward <alan.hayward@arm.com>
12249
12250 * regcache.c (regcache::save): Avoid buffer use.
12251 (regcache::dump): Likewise.
12252
4a8a33c8
AH
122532017-06-07 Alan Hayward <alan.hayward@arm.com>
12254
12255 * sh-tdep.c (sh_pseudo_register_read): Remove
12256 MAX_REGISTER_SIZE.
12257 (sh_pseudo_register_write): Likewise.
12258 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12259 (sh64_pseudo_register_write): Likewise
12260
d1be909e
AH
122612017-06-07 Alan Hayward <alan.hayward@arm.com>
12262
12263 * aarch64-tdep.c (aarch64_store_return_value): Use
12264 V_REGISTER_SIZE.
12265 (aarch64_pseudo_read_value): Likewise.
12266 (aarch64_pseudo_write): Likewise.
12267
f4a65042
YQ
122682017-06-06 Yao Qi <yao.qi@linaro.org>
12269
12270 * regformats/regdef.h (set_register_cache): Remove the
12271 declaration.
12272
9f7fb0aa
AH
122732017-06-06 Alan Hayward <alan.hayward@arm.com>
12274
12275 * frame.c (frame_unwind_register_signed): Use
12276 frame_unwind_register_value.
12277
e1e01040
PA
122782017-06-06 Pedro Alves <palves@redhat.com>
12279
12280 PR breakpoints/21553
12281 * breakpoint.c (create_breakpoints_sal_default)
12282 (init_breakpoint_sal, create_breakpoint_sal): Use
12283 gdb::unique_xmalloc_ptr for string parameters.
12284 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12285 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12286 (base_breakpoint_create_breakpoints_sal)
12287 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12288 (strace_marker_create_breakpoints_sal)
12289 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12290 string parameters.
12291 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12292 gdb::unique_xmalloc_ptr for string parameters.
12293 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12294 parameters.
12295
fbe654c8
AH
122962017-06-06 Alan Hayward <alan.hayward@arm.com>
12297
12298 * alpha-tdep.c (alpha_register_to_value): Use
12299 get_frame_register_value.
12300 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12301
ae0d01d6
AH
123022017-06-06 Alan Hayward <alan.hayward@arm.com>
12303
12304 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12305 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12306 (ia64_value_to_register): Likewise.
12307 (ia64_extract_return_value): Likewise.
12308 (ia64_store_return_value): Likewise.
12309 (ia64_push_dummy_call): Likewise.
12310
49cf576c
JB
123112017-06-04 Joel Brobecker <brobecker@adacore.com>
12312
12313 GDB 8.0 released.
12314
26b6a6ab
SM
123152017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12316
12317 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12318
22827c51
SM
123192017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12320
12321 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12322 parameter.
12323 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12324
0e05cf3a
SM
123252017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12326
12327 * event-loop.c (poll_timers): Unallocate timer using delete
12328 instead of xfree.
12329
c1fc2657
SM
123302017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12331
12332 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12333 (struct breakpoint) <~breakpoint>: New.
12334 (struct watchpoint): Inherit from breakpoint.
12335 <~watchpoint>: New.
12336 <base>: Remove.
12337 (struct tracepoint): Inherit from breakpoint.
12338 <base>: Remove.
12339 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12340 (struct longjmp_breakpoint): Inherit from breakpoint.
12341 <~longjmp_breakpoint>: New.
12342 <base>: Remove.
12343 (new_breakpoint_from_type): Remove casts.
12344 (watchpoint_in_thread_scope): Remove reference to base field.
12345 (watchpoint_del_at_next_stop): Likewise.
12346 (update_watchpoint): Likewise.
12347 (watchpoint_check): Likewise.
12348 (bpstat_check_watchpoint): Likewise.
12349 (set_longjmp_breakpoint): Likewise.
12350 (struct fork_catchpoint): Inherit from breakpoint.
12351 <base>: Remove.
12352 (struct solib_catchpoint): Inherit from breakpoint.
12353 <~solib_catchpoint>: New.
12354 <base>: Remove.
12355 (dtor_catch_solib): Change to ...
12356 (solib_catchpoint::~solib_catchpoint): ... this.
12357 (breakpoint_hit_catch_solib): Remove reference to base field.
12358 (add_solib_catchpoint): Likewise.
12359 (create_fork_vfork_event_catchpoint): Likewise.
12360 (struct exec_catchpoint): Inherit from breakpoint.
12361 <~exec_catchpoint>: New.
12362 <base>: Remove.
12363 (dtor_catch_exec): Change to ...
12364 (exec_catchpoint::~exec_catchpoint): ... this.
12365 (dtor_watchpoint): Change to ...
12366 (watchpoint::~watchpoint): ... this.
12367 (watch_command_1): Remove reference to base field.
12368 (catch_exec_command_1): Likewise.
12369 (base_breakpoint_dtor): Change to ...
12370 (breakpoint::~breakpoint): ... this.
12371 (base_breakpoint_ops): Remove dtor field value.
12372 (longjmp_bkpt_dtor): Change to ...
12373 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12374 (strace_marker_create_breakpoints_sal): Remove reference to base
12375 field.
12376 (delete_breakpoint): Don't manually call breakpoint destructor.
12377 (create_tracepoint_from_upload): Remove reference to base field.
12378 (trace_pass_set_count): Likewise.
12379 (initialize_breakpoint_ops): Don't initialize
12380 momentary_breakpoint_ops, don't set dtors.
12381 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12382 <~ada_catchpoint>: New.
12383 <base>: Remove.
12384 (create_excep_cond_exprs): Remove reference to base field.
12385 (dtor_exception): Change to ...
12386 (ada_catchpoint::~ada_catchpoint): ... this.
12387 (dtor_catch_exception): Remove.
12388 (dtor_catch_exception_unhandled): Remove.
12389 (dtor_catch_assert): Remove.
12390 (create_ada_exception_catchpoint): Remove reference to base
12391 field.
12392 (initialize_ada_catchpoint_ops): Don't set dtors.
12393 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12394 breakpoint.
12395 <~signal_catchpoint>: New.
12396 <base>: Remove.
12397 (signal_catchpoint_dtor): Change to ...
12398 (signal_catchpoint::~signal_catchpoint): ... this.
12399 (create_signal_catchpoint): Remove reference to base field.
12400 (initialize_signal_catchpoint_ops): Don't set dtor.
12401 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12402 from breakpoint.
12403 <~syscall_catchpoint>: New.
12404 <base>: Remove.
12405 (dtor_catch_syscall): Change to ...
12406 (syscall_catchpoint::~syscall_catchpoint): ... this.
12407 (create_syscall_event_catchpoint): Remove reference to base
12408 field.
12409 (initialize_syscall_catchpoint_ops): Don't set dtor.
12410 * break-catch-throw.c (struct exception_catchpoint): Inherit
12411 from breakpoint.
12412 <~exception_catchpoint>: New.
12413 <base>: Remove.
12414 (dtor_exception_catchpoint): Change to ...
12415 (exception_catchpoint::~exception_catchpoint): ... this.
12416 (handle_gnu_v3_exceptions): Remove reference to base field.
12417 (initialize_throw_catchpoint_ops): Don't set dtor.
12418 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12419 field.
12420 * remote.c (remote_get_tracepoint_status): Likewise.
12421 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12422 * tracefile.c (tracefile_fetch_registers): Likewise.
12423 * tracepoint.c (actions_command): Likewise.
12424 (validate_actionline): Likewise.
12425 (tfind_1): Likewise.
12426 (get_traceframe_location): Likewise.
12427 (find_matching_tracepoint_location): Likewise.
12428 (parse_tracepoint_status): Likewise.
12429 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12430
3b0871f4
SM
124312017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12432
12433 * breakpoint.c (struct longjmp_breakpoint): New struct.
12434 (is_tracepoint_type): Change return type to bool.
12435 (is_longjmp_type): New function.
12436 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12437 (set_raw_breakpoint_without_location): Use
12438 new_breakpoint_from_type.
12439 (set_raw_breakpoint): Likewise.
12440
a5e364af
SM
124412017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12442
12443 * breakpoint.c (new_breakpoint_from_type): New function.
12444 (create_breakpoint_sal): Use new_breakpoint_from_type and
12445 unique_ptr.
12446 (create_breakpoint): Likewise.
12447
ae3b3f34
SM
124482017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12449
12450 * memattr.c (mem_info_command): Rename to ...
12451 (info_mem_command): ... this.
12452 (mem_enable_command): Rename to ...
12453 (enable_mem_command): ... this.
12454 (mem_disable_command): Rename to ...
12455 (disable_mem_command): ... this.
12456 (mem_delete_command): Rename to ...
12457 (delete_mem_command): ... this.
12458 (_initialize_mem): Adjust function names.
12459
13ace077
MM
124602017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12461
12462 * btrace.c (handle_pt_insn_events): New.
12463 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12464 STATUS. Split into this and ...
12465 (handle_pt_insn_event_flags): ... this.
12466
c56ccc05
MM
124672017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12468
12469 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12470 and struct pt_insn.resynced.
12471 * configure: Regenerated.
12472 * config.in: Regenerated.
12473
08c3f6d2
TW
124742017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12475
12476 * btrace.c (ftrace_find_call_by_number): New function.
12477 (ftrace_new_function): Store objects, not pointers.
12478 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12479 ftrace_new_gap, ftrace_update_function,
12480 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12481 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12482 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12483 btrace_ends_with_single_insn, btrace_call_get): Account for
12484 btrace_thread_info::functions now storing objects.
12485 * btrace.h (struct btrace_thread_info): Add constructor.
12486 (struct btrace_thread_info) <functions>: Make std::vector.
12487 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12488 Initialize with default values.
12489 * record-btrace.c (record_btrace_frame_sniffer): Account for
12490 btrace_thread_info::functions now storing objects.
12491
8ffd39f2
TW
124922017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12493
12494 * btrace.c: Remove typedef bfun_s.
12495 (ftrace_new_gap): Directly add gaps to the list of gaps.
12496 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12497 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12498 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12499 instead of gdb VEC.
12500
4aeb0dfc
TW
125012017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12502
12503 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12504 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12505 with btrace_thread_info::next_segment and
12506 btrace_thread_info::prev_segment.
12507 * btrace.h: Remove struct btrace_func_link.
12508 (struct btrace_function): Replace pair of function segment pointers
12509 with pair of indices.
12510 * python/py-record-btrace.c (btpy_call_prev_sibling,
12511 btpy_call_next_sibling): Replace references to
12512 btrace_thread_info::segment with btrace_thread_info::next_segment and
12513 btrace_thread_info::prev_segment.
12514 * record-btrace.c (record_btrace_frame_this_id): Use
12515 btrace_find_call_by_number.
12516
eb8f2b9c
TW
125172017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12518
12519 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12520 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12521 btrace_insn_next, btrace_insn_prev): Remove references to
12522 btrace_thread_info::flow.
12523 * btrace.h (struct btrace_function): Remove FLOW.
12524
42bfe59e
TW
125252017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12526
12527 * btrace.c (ftrace_find_call_by_number): New function.
12528 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12529 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12530 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12531 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12532 index.
12533 * btrace.h (struct btrace_function): Turn UP into an index.
12534 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12535 as an index.
12536 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12537 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12538 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12539
b54b03bd
TW
125402017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12541
12542 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12543 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12544 ftrace_update_function, ftrace_compute_global_level_offset,
12545 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12546 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12547 btrace_insn_end, btrace_is_empty): Remove references to
12548 btrace_thread_info::begin and btrace_thread_info::end.
12549 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12550 (struct btrace_thread_info) <functions>: Adjust comment.
12551 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12552 btrace_thread_info::begin.
12553
8286623c
TW
125542017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12555
12556 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12557 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12558 ftrace_update_function): Remove arguments that implicitly were always
12559 BTINFO->END.
12560 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12561 Don't pass BTINFO->END.
12562
a0f1b963
TW
125632017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12564
12565 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12566 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12567 btrace_find_insn_by_number): Replace function segment pointer with
12568 index.
12569 (btrace_insn_cmp): Simplify.
12570 * btrace.h: (struct btrace_insn_iterator) Rename index to
12571 insn_index. Replace function segment pointer with index into function
12572 segment vector.
12573 * record-btrace.c (record_btrace_call_history): Replace function
12574 segment pointer use with index.
12575 (record_btrace_frame_sniffer): Retrieve function call segment through
12576 vector.
12577 (record_btrace_set_replay): Remove defunc't safety check.
12578
f158f208
TW
125792017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12580
12581 * btrace.c (btrace_ends_with_single_insn): New function.
12582 (btrace_call_get, btrace_call_number, btrace_call_begin,
12583 btrace_call_end, btrace_call_next, btrace_call_prev,
12584 btrace_find_call_by_number): Use index into call segment vector
12585 instead of pointer.
12586 (btrace_call_cmp): Simplify.
12587 * btrace.h (struct btrace_call_iterator): Replace function call segment
12588 pointer with index into vector.
12589 * record-btrace.c (record_btrace_call_history): Use index instead of
12590 pointer.
12591
521103fd
TW
125922017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12593
12594 * btrace.c (btrace_insn_begin, btrace_insn_end,
12595 btrace_find_insn_by_number): Add btinfo to iterator.
12596 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12597
17b89b34
TW
125982017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12599
12600 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12601 and save pointers directly.
12602 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12603 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12604 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12605 changed signature of functions.
12606 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12607 (btrace_fetch): Remove code that adds btrace_function pointers to
12608 vector of btrace_functions.
12609 (btrace_clear): Simplify freeing vector of btrace_functions.
12610
2b51eddc
TW
126112017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12612
12613 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12614 Replace VEC_* with std::vector functions.
12615 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12616 (struct btrace_thread_info)<functions>: Change type to std::vector.
12617
db6be0d5
SM
126182017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12619
12620 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12621 "Removed targets and native configurations" up. Merge duplicate
12622 "New commands" sub-sections. Add "New options" sub-sections.
12623
b057297a
AH
126242017-05-26 Alan Hayward <alan.hayward@arm.com>
12625
12626 * defs.h (copy_integer_to_size): New declaration.
12627 * findvar.c (copy_integer_to_size): New function.
12628 (do_cint_test): New selftest function.
12629 (copy_integer_to_size_test): Likewise.
12630 (_initialize_findvar): Likewise.
12631 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12632 (mips_fbsd_collect_reg): Use raw_collect_integer.
12633 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12634 (mips64_fill_gregset): Use raw_collect_integer
12635 (mips64_fill_fpregset): Use raw_supply_integer.
12636 * regcache.c (regcache::raw_supply_integer): New function.
12637 (regcache::raw_collect_integer): Likewise.
12638 * regcache.h: (regcache::raw_supply_integer): New declaration.
12639 (regcache::raw_collect_integer): Likewise.
12640
b77b02a5
YQ
126412017-05-24 Yao Qi <yao.qi@linaro.org>
12642
12643 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12644 (COMMON_OBS): Add gdbarch-selftests.o.
12645 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12646 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12647 * gdbarch-selftests.c: New file.
12648 * regcache.h (regcache) <~regcache>: Mark it virtual if
12649 GDB_SELF_TEST.
12650 <raw_write>: Likewise.
12651
e521e87e
YQ
126522017-05-24 Yao Qi <yao.qi@linaro.org>
12653
12654 * regcache.c (current_regcache): Change it to
12655 regcache::current_regcache.
12656 (regcache_observer_target_changed): Update.
12657 (regcache_thread_ptid_changed): Make it a regcache static
12658 method.
12659 (regcache_thread_ptid_changed): Update.
12660 (class regcache_access): New.
12661 (current_regcache_test): Update.
12662 (_initialize_regcache): Update.
12663 * regcache.h: Include forward_list.
12664 (regcache): Declare regcache_thread_ptid_changed and declare
12665 registers_changed_ptid as friend.
12666
d8e07dda
YQ
126672017-05-24 Yao Qi <yao.qi@linaro.org>
12668
12669 * i387-tdep.c (i387_register_to_value): Use register_size
12670 instead of TYPE_LENGTH.
12671 * m68k-tdep.c (m68k_register_to_value): Likewise.
12672
8c8f9122
YQ
126732017-05-24 Yao Qi <yao.qi@linaro.org>
12674
12675 * i387-tdep.c (i387_convert_register_p): Return false if type
12676 code isn't TYPE_CODE_FLT.
12677
68fce50f
YQ
126782017-05-24 Yao Qi <yao.qi@linaro.org>
12679
12680 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12681 length is 4.
12682 (alpha_register_to_value): Remove type length check.
12683 (alpha_value_to_register): Likewise.
12684
88954b49
YQ
126852017-05-24 Yao Qi <yao.qi@linaro.org>
12686
12687 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12688 TYPE_CODE_FLT.
12689
e3ec9b69
YQ
126902017-05-24 Yao Qi <yao.qi@linaro.org>
12691
12692 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12693 TYPE_CODE_FLT or not.
12694
cdd238da
YQ
126952017-05-24 Yao Qi <yao.qi@linaro.org>
12696
12697 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12698 * avr-tdep.c (avr_gdbarch_init): Likewise.
12699 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12700 * cris-tdep.c (cris_gdbarch_init): Likewise.
12701 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12702 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12703 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12705 * mep-tdep.c (mep_gdbarch_init): Likewise.
12706 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12707 * mips-tdep.c (mips_gdbarch_init): Likewise.
12708 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12709 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12710 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12711 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12712 * v850-tdep.c (v850_gdbarch_init): Likewise.
12713
7a3929c4
YQ
127142017-05-24 Yao Qi <yao.qi@linaro.org>
12715
12716 * selftest-arch.c (tests_with_arch): Call registers_changed
12717 and reinit_frame_cache.
12718 * selftest.c (run_self_tests): Likewise.
12719
f4985dba
YQ
127202017-05-24 Yao Qi <yao.qi@linaro.org>
12721
12722 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12723 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12724
ab20fa4a
YQ
127252017-05-24 Yao Qi <yao.qi@linaro.org>
12726
12727 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12728 set_gdbarch_print_insn.
12729
f532ab94
YQ
127302017-05-24 Yao Qi <yao.qi@linaro.org>
12731
12732 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12733 set_gdbarch_print_insn.
12734
39503f82
YQ
127352017-05-24 Yao Qi <yao.qi@linaro.org>
12736
12737 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12738 set_gdbarch_print_insn.
12739 * arc-tdep.c (arc_gdbarch_init): Likewise.
12740 * arch-utils.c: include dis-asm.h.
12741 (default_print_insn): New function.
12742 * arch-utils.h (default_print_insn): Declare.
12743 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12744 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12745 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12746 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12747 * frv-tdep.c (frv_gdbarch_init): Likewise.
12748 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12749 * gdbarch.sh (print_insn): Use default_print_insn.
12750 * gdbarch.c: Regenerated.
12751 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12752 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12753 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12754 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12755 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12756 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12757 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12758 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12759 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12760 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12761 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12762 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12763 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12764 * mt-tdep.c (mt_gdbarch_init): Likewise.
12765 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12766 * nios2-tdep.c (nios2_print_insn): Remove.
12767 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12768 * rx-tdep.c (rx_gdbarch_init): Likewise.
12769 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12770 * score-tdep.c (score_print_insn): Remove.
12771 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12772 * sh-tdep.c (sh_gdbarch_init): Likewise.
12773 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12774 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12775 * tic6x-tdep.c (tic6x_print_insn): Remove.
12776 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12777 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12778 * v850-tdep.c (v850_gdbarch_init): Likewise.
12779 * vax-tdep.c (vax_gdbarch_init): Likewise.
12780 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12781 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12782
f7241d4f
JB
127832017-05-23 John Baldwin <jhb@FreeBSD.org>
12784
12785 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12786 (MIPS_FP0_REGNUM): Remove.
12787 (MIPS_FSR_REGNUM): Remove.
12788 (mips_fbsd_supply_fpregs): Use mips_regnum.
12789 (mips_fbsd_supply_gregs): Likewise.
12790 (mips_fbsd_collect_fpregs): Likewise.
12791 (mips_fbsd_collect_gregs): Likewise.
12792
d489d81d
JB
127932017-05-23 John Baldwin <jhb@FreeBSD.org>
12794
12795 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12796 (getpfpregs_supplies): New function.
12797 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12798 getfpregs_supplies.
12799 (mips_fbsd_store_inferior_registers): Likewise.
12800
e11b3cdc
PA
128012017-05-22 Pedro Alves <palves@redhat.com>
12802
12803 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12804 maintainer.
12805
0f068fb5
AH
128062017-05-22 Alan Hayward <alan.hayward@arm.com>
12807
12808 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12809 (store_register): Likewise.
12810 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12811 (get_decimal_float_return_value): Likewise.
12812 (do_ppc_sysv_return_value): Likewise.
12813 (ppc64_sysv_abi_push_integer): Likewise.
12814 (ppc64_sysv_abi_push_freg): Likewise.
12815 (ppc64_sysv_abi_return_value_base): Likewise.
12816 (ppc64_sysv_abi_return_value): Likewise.
12817 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12818 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12819 * rs6000-nat.c: Likewise.
12820 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12821 (rs6000_value_to_register): Likewise.
12822 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12823
e6cf65f2
TT
128242017-05-21 Tom Tromey <tom@tromey.com>
12825
12826 PR rust/21466:
12827 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12828 arrays as "[T]", not "[T; ]".
12829
43cc5389
TT
128302017-05-19 Tom Tromey <tom@tromey.com>
12831
12832 PR rust/21484:
12833 * rust-lang.c (exp_descriptor_rust): New function.
12834 (rust_language_defn): Use it.
12835 * p-lang.c (pascal_language_defn): Update.
12836 * opencl-lang.c (opencl_language_defn): Update.
12837 * objc-lang.c (objc_language_defn): Update.
12838 * m2-lang.c (m2_language_defn): Update.
12839 * language.h (struct language_defn)
12840 <la_watch_location_expression>: New member.
12841 * language.c (unknown_language_defn, auto_language_defn)
12842 (local_language_defn): Update.
12843 * go-lang.c (go_language_defn): Update.
12844 * f-lang.c (f_language_defn): Update.
12845 * d-lang.c (d_language_defn): Update.
12846 * c-lang.h (c_watch_location_expression): Declare.
12847 * c-lang.c (c_watch_location_expression): New function.
12848 (c_language_defn, cplus_language_defn, asm_language_defn)
12849 (minimal_language_defn): Use it.
12850 * breakpoint.c (watch_command_1): Call
12851 la_watch_location_expression.
12852 * ada-lang.c (ada_language_defn): Update.
12853
7a6e7fcc
RO
128542017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12855
6e7e1744
RO
12856 PR tui/21482
12857 * gdb_curses.h (NOMACROS): Define.
12858 (NCURSES_NOMACROS): Define.
12859
128602017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12861
12862 PR tui/21482
7a6e7fcc
RO
12863 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12864 arg to char *.
12865 * tui/tui-wingeneral.c (box_win): Likewise.
12866 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12867 (tui_show_source_line): Likewise.
12868 (tui_show_exec_info_content): Likewise.
12869
1933fd8e
VM
128702017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12871
12872 * sparc-tdep.c (sparc_structure_return_p)
12873 (sparc_arg_on_registers_p): New functions.
12874 (sparc32_store_arguments): Use them.
12875 * sparc64-tdep.c (sparc64_16_byte_align_p)
12876 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12877 Handle TYPE_CODE_ARRAY.
12878
21873064
YQ
128792017-05-17 Yao Qi <yao.qi@linaro.org>
12880
12881 * cli/cli-decode.c (add_alias_cmd): New function.
12882 * command.h (add_alias_cmd): Declare.
12883 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12884 instead call add_alias_cmd.
12885
2b351b19
PA
128862017-05-17 Pedro Alves <palves@redhat.com>
12887
12888 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12889 (nat_makefile_frag): ... this. All references updated.
12890 * configure.ac: Likewise.
12891 * configure.nat: Likewise. Enhance comments.
12892 * configure: Regenerate.
12893
5f2ad7a3
RO
128942017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12895
12896 * procfs.c (procfs_create_inferior): Change prototype to match
12897 definition.
12898
adf3dde5
EZ
128992017-05-13 Eli Zaretskii <eliz@gnu.org>
12900
12901 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12902 C++ compiler warning.
12903
6830f270
TT
129042017-05-12 Tom Tromey <tom@tromey.com>
12905
12906 PR rust/21483:
12907 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12908 recurse, just call value_struct_elt directly.
12909
68f2f2e3
TT
129102017-05-12 Tom Tromey <tom@tromey.com>
12911
12912 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12913 OP_RUST_ARRAY>: Fix.
12914
256afbc2
TT
129152017-05-12 Tom Tromey <tom@tromey.com>
12916
12917 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12918
94bb8dfe
YQ
129192017-05-09 Yao Qi <yao.qi@linaro.org>
12920
12921 * regcache.c: Include <forward_list>.
12922 (struct regcache_list): Remove.
12923 (current_regcache): Update.
12924 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12925 (regcache_thread_ptid_changed): Likewise.
12926 (registers_changed_ptid): Likewise.
12927 (current_regcache_size): Likewise.
12928
8248946c
YQ
129292017-05-09 Yao Qi <yao.qi@linaro.org>
12930
12931 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12932 (current_regcache_size): New function.
12933 (current_regcache_test): New function.
12934 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12935
313c5961
AH
129362017-05-08 Alan Hayward <alan.hayward@arm.com>
12937
12938 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12939 (print_gp_register_row): Use get_frame_register_value.
12940
27bfc1d1
AH
129412017-05-08 Alan Hayward <alan.hayward@arm.com>
12942
12943 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12944 (mips_supply_fpregset): Likewise.
12945 (mips64_supply_gregset): Likewise.
12946
146e6c5c
AH
129472017-05-08 Alan Hayward <alan.hayward@arm.com>
12948
12949 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12950 regcache->raw_supply_zeroed.
12951
e50f25ec
SDJ
129522017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12953
12954 * configure.nat: Rearrange 'case' statements to match
12955 host before cpu.
12956
21ea5acd
SDJ
129572017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12958
12959 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12960 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12961 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12962 "@nat_extra_makefile_frag@".
12963 (Makefile): Remove dependency on "@frags@".
12964 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12965 (data-directory/Makefile): Likewise.
12966 * config/aarch64/linux.mh: Deleted; moved contents to
12967 "gdb/configure.nat".
12968 * config/alpha/alpha-linux.mh: Likewise.
12969 * config/alpha/nbsd.mh: Likewise.
12970 * config/arm/linux.mh: Likewise.
12971 * config/arm/nbsdelf.mh: Likewise.
12972 * config/i386/cygwin.mh: Likewise.
12973 * config/i386/cygwin64.mh: Likewise.
12974 * config/i386/darwin.mh: Likewise.
12975 * config/i386/fbsd.mh: Likewise.
12976 * config/i386/fbsd64.mh: Likewise.
12977 * config/i386/go32.mh: Likewise.
12978 * config/i386/i386gnu.mh: Likewise.
12979 * config/i386/i386sol2.mh: Likewise.
12980 * config/i386/linux.mh: Likewise.
12981 * config/i386/linux64.mh: Likewise.
12982 * config/i386/mingw.mh: Likewise.
12983 * config/i386/mingw64.mh: Likewise.
12984 * config/i386/nbsd64.mh: Likewise.
12985 * config/i386/nbsdelf.mh: Likewise.
12986 * config/i386/nto.mh: Likewise.
12987 * config/i386/obsd.mh: Likewise.
12988 * config/i386/obsd64.mh: Likewise.
12989 * config/i386/sol2-64.mh: Likewise.
12990 * config/ia64/linux.mh: Likewise.
12991 * config/m32r/linux.mh: Likewise.
12992 * config/m68k/linux.mh: Likewise.
12993 * config/m68k/nbsdelf.mh: Likewise.
12994 * config/m68k/obsd.mh: Likewise.
12995 * config/m88k/obsd.mh: Likewise.
12996 * config/mips/fbsd.mh: Likewise.
12997 * config/mips/linux.mh: Likewise.
12998 * config/mips/nbsd.mh: Likewise.
12999 * config/mips/obsd64.mh: Likewise.
13000 * config/pa/linux.mh: Likewise.
13001 * config/pa/nbsd.mh: Likewise.
13002 * config/pa/obsd.mh: Likewise.
13003 * config/powerpc/aix.mh: Likewise.
13004 * config/powerpc/fbsd.mh: Likewise.
13005 * config/powerpc/linux.mh: Likewise.
13006 * config/powerpc/nbsd.mh: Likewise.
13007 * config/powerpc/obsd.mh: Likewise.
13008 * config/powerpc/ppc64-linux.mh: Likewise.
13009 * config/powerpc/spu-linux.mh: Likewise.
13010 * config/s390/linux.mh: Likewise.
13011 * config/sh/nbsd.mh: Likewise.
13012 * config/sparc/fbsd.mh: Likewise.
13013 * config/sparc/linux.mh: Likewise.
13014 * config/sparc/linux64.mh: Likewise.
13015 * config/sparc/nbsd64.mh: Likewise.
13016 * config/sparc/nbsdelf.mh: Likewise.
13017 * config/sparc/obsd64.mh: Likewise.
13018 * config/sparc/sol2.mh: Likewise.
13019 * config/tilegx/linux.mh: Likewise.
13020 * config/vax/nbsdelf.mh: Likewise.
13021 * config/vax/obsd.mh: Likewise.
13022 * config/xtensa/linux.mh: Likewise.
13023 * config/i386/i386gnu.mn: New file, with excerpts from
13024 "config/i386/i386gnu.mh".
13025 * configure: Regenerate.
13026 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
13027 *.mh files under "gdb/config".
13028 * configure.nat: New file, with contents from the
13029 "gdb/config/*/*.mh" files.
13030
7ed1acaf
TW
130312017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
13032
13033 * btrace.c (btrace_clear): Free insn vector.
13034
e13cb306
PA
130352017-05-05 Pedro Alves <palves@redhat.com>
13036
13037 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
13038 * configure: Regenerate.
13039
5ed8105e
PA
130402017-05-04 Pedro Alves <palves@redhat.com>
13041
13042 * Makefile.in (SFILES): Add progspace-and-thread.c.
13043 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
13044 (COMMON_OBS): Add progspace-and-thread.o.
13045 * breakpoint.c: Include "progspace-and-thread.h".
13046 (update_inserted_breakpoint_locations)
13047 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
13048 Use scoped_restore_current_pspace_and_thread.
13049 (create_std_terminate_master_breakpoint): Use
13050 scoped_restore_current_program_space.
13051 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
13052 (print_breakpoint_location): Use
13053 scoped_restore_current_program_space.
13054 (bp_loc_is_permanent): Use
13055 scoped_restore_current_pspace_and_thread.
13056 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
13057 (download_tracepoint_locations): Use
13058 scoped_restore_current_pspace_and_thread.
13059 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
13060 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
13061 (enum step_over_calls_kind): Moved from inferior.h.
13062 (class scoped_restore_current_thread): New class.
13063 * gdbthread.h (make_cleanup_restore_current_thread): Delete
13064 declaration.
13065 (scoped_restore_current_thread): New class.
13066 * infcmd.c: Include "common/gdb_optional.h".
13067 (continue_1, proceed_after_attach): Use
13068 scoped_restore_current_thread.
13069 (notice_new_inferior): Use scoped_restore_current_thread.
13070 * inferior.c: Include "progspace-and-thread.h".
13071 (restore_inferior, save_current_inferior): Delete.
13072 (add_inferior_command, clone_inferior_command): Use
13073 scoped_restore_current_pspace_and_thread.
13074 * inferior.h (scoped_restore_current_inferior): New class.
13075 * infrun.c: Include "progspace-and-thread.h" and
13076 "common/gdb_optional.h".
13077 (follow_fork_inferior): Use
13078 scoped_restore_current_pspace_and_thread.
13079 (scoped_restore_exited_inferior): New class.
13080 (handle_vfork_child_exec_or_exit): Use
13081 scoped_restore_exited_inferior,
13082 scoped_restore_current_pspace_and_thread,
13083 scoped_restore_current_thread and scoped_restore.
13084 (fetch_inferior_event): Use scoped_restore_current_thread.
13085 * linespec.c (decode_line_full, decode_line_1): Use
13086 scoped_restore_current_program_space.
13087 * mi/mi-main.c: Include "progspace-and-thread.h".
13088 (exec_continue): Use scoped_restore_current_thread.
13089 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
13090 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
13091 * proc-service.c (ps_pglobal_lookup): Use
13092 scoped_restore_current_program_space.
13093 * progspace-and-thread.c: New file.
13094 * progspace-and-thread.h: New file.
13095 * progspace.c (release_program_space, clone_program_space): Use
13096 scoped_restore_current_program_space.
13097 (restore_program_space, save_current_program_space)
13098 (save_current_space_and_thread): Delete.
13099 (switch_to_program_space_and_thread): Moved to
13100 progspace-and-thread.c.
13101 * progspace.h (save_current_program_space)
13102 (save_current_space_and_thread): Delete declarations.
13103 (scoped_restore_current_program_space): New class.
13104 * remote.c (remote_btrace_maybe_reopen): Use
13105 scoped_restore_current_thread.
13106 * symtab.c: Include "progspace-and-thread.h".
13107 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
13108 * thread.c (print_thread_info_1): Use
13109 scoped_restore_current_thread.
13110 (struct current_thread_cleanup): Delete.
13111 (do_restore_current_thread_cleanup)
13112 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
13113 (scoped_restore_current_thread::~scoped_restore_current_thread):
13114 ... this new dtor.
13115 (make_cleanup_restore_current_thread): Rename/convert to ...
13116 (scoped_restore_current_thread::scoped_restore_current_thread):
13117 ... this new ctor.
13118 (thread_apply_all_command): Use scoped_restore_current_thread.
13119 (thread_apply_command): Use scoped_restore_current_thread.
13120 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
13121 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
13122
f6223dbb
PA
131232017-05-04 Pedro Alves <palves@redhat.com>
13124
13125 * thread.c (make_cleanup_restore_current_thread): Move
13126 find_thread_ptid call before the is_stopped call. Assert that the
13127 thread is found. Replace is_stopped call by checking the thread's
13128 state directly. Remove unnecessary NULL-thread check.
13129
3c3ae77e
PA
131302017-05-04 Pedro Alves <palves@redhat.com>
13131
13132 * corelow.c (thread_section_name): New class.
13133 (get_core_register_section, get_core_siginfo): Use it.
13134
45eba0ab
AA
131352017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13136
13137 * corelow.c (sniff_core_bfd): Remove extra semicolon.
13138 (get_core_register_section): Remove xfree of NULL pointer.
13139
f81fdd35
AH
131402017-05-03 Alan Hayward <alan.hayward@arm.com>
13141
13142 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
13143 * regcache.c (regcache::raw_supply_zeroed): New function.
13144 * regcache.h (regcache::raw_supply_zeroed): New declaration.
13145
35837774
SM
131462017-05-03 Simon Marchi <simon.marchi@ericsson.com>
13147
13148 * gdbarch.sh: Remove commented out definition of
13149 TARGET_CHAR_BIT.
13150 * gdbarch.h: Re-generate.
13151
c94fee56
SDJ
131522017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
13153
13154 * configure: Regenerate.
13155
d17f7b36
SM
131562017-05-02 Simon Marchi <simon.marchi@ericsson.com>
13157
13158 * solib-target.c (solib_target_relocate_section_addresses):
13159 Remove num_section_bases, num_bases, segment_bases variables.
13160
b560ebd6
SM
131612017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13162
13163 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
13164
f2f46dfc
SM
131652017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13166
13167 * solib-target.c: Include <vector>
13168 (struct lm_info_target) <~lm_info_target>: Remove.
13169 <segment_bases, section_bases>: Change type to
13170 std::vector<CORE_ADDR>.
13171 (library_list_start_segment, library_list_start_section,
13172 library_list_end_library,
13173 solib_target_relocate_section_addresses): Adjust.
13174
a0ff9e1a
SM
131752017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13176
13177 * gdbarch.sh (software_single_step): Change return type to
13178 std::vector<CORE_ADDR>.
13179 * gdbarch.c, gdbarch.h: Re-generate.
13180 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
13181 Adjust.
13182 (arm_deal_with_atomic_sequence_raw): Adjust.
13183 (thumb_get_next_pcs_raw): Adjust.
13184 (arm_get_next_pcs_raw): Adjust.
13185 (arm_get_next_pcs): Adjust.
13186 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
13187 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
13188 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
13189 (alpha_software_single_step): Adjust.
13190 * alpha-tdep.h (alpha_software_single_step): Adjust.
13191 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
13192 * arm-tdep.c (arm_software_single_step): Adjust.
13193 (arm_breakpoint_kind_from_current_state): Adjust.
13194 * arm-tdep.h (arm_software_single_step): Adjust.
13195 * breakpoint.c (insert_single_step_breakpoint): Adjust.
13196 * cris-tdep.c (cris_software_single_step): Adjust.
13197 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
13198 (micromips_deal_with_atomic_sequence): Adjust.
13199 (deal_with_atomic_sequence): Adjust.
13200 (mips_software_single_step): Adjust.
13201 * mips-tdep.h (mips_software_single_step): Adjust.
13202 * moxie-tdep.c (moxie_software_single_step): Adjust.
13203 * nios2-tdep.c (nios2_software_single_step): Adjust.
13204 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
13205 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
13206 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
13207 * s390-linux-tdep.c (s390_software_single_step): Adjust.
13208 * sparc-tdep.c (sparc_software_single_step): Adjust.
13209 * spu-tdep.c (spu_software_single_step): Adjust.
13210 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
13211
ea480a30
SM
132122017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13213
13214 * gdbarch.sh: Use semi-colon as field separator instead of colon.
13215 * gdbarch.h: Re-generate.
13216
d050f7d7
TW
132172017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13218
13219 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
13220 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
13221 * python/py-instruction.c, python/py-instruction.h: New file.
13222 * python/py-record.c: Add py-instruction.h include.
13223 (gdbpy_initialize_record): Make gdb.Instruction a super class of
13224 gdb.RecordInstruction.
13225 * python/python-internal.h: Add gdbpy_initialize_instruction
13226 declaration.
13227 * python/python.c (do_start_initialization): Add
13228 gdbpy_initialize_instruction.
13229
14f819c8
TW
132302017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13231
13232 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13233 Remove.
13234 (btrace_func_from_recpy_func): New function.
13235 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13236 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13237 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13238 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13239 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13240 Also, use new helper functions.
13241 (btpy_list_item): Use new helper functions.
13242 (recpy_bt_function_call_history): Use new type name.
13243 (btpy_call_getset): Remove.
13244 (gdbpy_initialize_btrace): Remove code to initialize
13245 gdb.BtraceFunctionCall.
13246 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13247 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13248 recpy_bt_func_prev, recpy_bt_func_next): New export.
13249 * python/py-record.c (recpy_func_type): New static object.
13250 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13251 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13252 recpy_func_next): New function.
13253 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13254 (recpy_func_getset): New static object.
13255 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13256 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13257
0ed5da75
TW
132582017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13259
13260 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13261 (btpy_object, btpy_insn_type, btpy_new): Remove.
13262 (btpy_list_object): Use gdb.RecordInstruction type instead of
13263 gdb.BtraceInstruction type.
13264 (btrace_insn_from_recpy_insn): New function.
13265 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13266 btpy_new.
13267 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13268 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13269 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13270 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13271 instead of btpy_object.
13272 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13273 btpy_insn_data, btpy_insn_decode): Rename to ...
13274 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13275 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13276 recpy_bt_insn_decode): This. Also, use new helper functions.
13277 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13278 recpy_insn_type.
13279 (btpy_insn_getset): Remove.
13280 (gdbpy_initialize_btrace): Remove code to initialize
13281 gdb.BtraceInstruction. Use recpy_element_object.
13282 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13283 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13284 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13285 * python/py-record.c (recpy_insn_type): New static object.
13286 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13287 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13288 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13289 New function.
13290 (recpy_insn_getset): New static object.
13291 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13292 * python/py-record.h (recpy_element_object): New typedef.
13293 (recpy_insn_type, recpy_insn_new): New export.
13294
913aeadd
TW
132952017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13296
13297 * py-record-btrace.c (btpy_insn_new): Removed.
13298 (btpy_insn_or_gap_new): New function.
13299 (btpy_insn_error): Removed.
13300 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13301 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13302 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13303 btpy_insn_or_gap_new instead of btpy_insn_new.
13304 (btpy_insn_getset): Remove btpy_insn_error.
13305 * py-record.c (recpy_gap_type): New static object.
13306 (recpy_gap_object): New typedef.
13307 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13308 recpy_gap_reason_string): New function.
13309 (recpy_gap_getset): New static object.
13310 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13311 * py-record.h (recpy_gap_new): New export.
13312
a3be24ad
TW
133132017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13314
13315 * python/py-record.c (recpy_ptid): Remove.
13316 (recpy_record_getset): Remove recpy_ptid.
13317
ae20e79a
TW
133182017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13319
13320 * btrace.c (btrace_fetch): Set inferior_ptid.
13321 * python/py-record-btrace.c: Add "py-record.h" include.
13322 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13323 recpy_bt_end, recpy_bt_instruction_history,
13324 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13325 in gdb.Record object instead of current ptid.
13326 * python/py-record.c: Include new "py-record.h" file.
13327 (recpy_record_object): Moved to py-record.h.
13328 * python/py-record.h: New file.
13329
8d0050ea
TW
133302017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13331
13332 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13333 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13334 indentation.
13335
3f380b50
JB
133362017-05-01 Joel Brobecker <brobecker@adacore.com>
13337
13338 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13339 the past maintainers section.
13340
07495424
YQ
133412017-04-28 Yao Qi <yao.qi@linaro.org>
13342
13343 * infcmd.c (get_return_value): Use regcache ctor, and remove
13344 cleanup.
13345
deb1fa3e
YQ
133462017-04-28 Yao Qi <yao.qi@linaro.org>
13347 Pedro Alves <palves@redhat.com>
13348
13349 * regcache.c (regcache::regcache): New tag dispatch ctor.
13350 (do_cooked_read): Moved above.
13351 (regcache_dup): Use the tag dispatch ctor..
13352 * regcache.h (regcache): Declare ctor, delete copy ctor and
13353 assignment operator, remove friend regcache_dup.
13354
b421c83c
YQ
133552017-04-28 Yao Qi <yao.qi@linaro.org>
13356
13357 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13358 call method save instead of regcache_cpy.
13359 * regcache.h (struct regcache): Make regcache_dup a friend.
13360
ef79d9a3
YQ
133612017-04-28 Yao Qi <yao.qi@linaro.org>
13362
13363 * regcache.c (struct regcache): Move to regcache.h
13364 (regcache::arch): New method.
13365 (regcache_get_ptid): Update.
13366 (get_regcache_arch): Call arch method.
13367 (get_regcache_aspace): Call method aspace.
13368 (register_buffer): Change it to method.
13369 (regcache_save): Change it to regcache::save.
13370 (regcache_restore): Likewise.
13371 (regcache_cpy_no_passthrough): Remove the declaration.
13372 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13373 (regcache_cpy_no_passthrough): Change it to method
13374 cpy_no_passthrough.
13375 (regcache_register_status): Change it to method
13376 get_register_status.
13377 (regcache_invalidate): Change it to method invalidate.
13378 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13379 (regcache_raw_update): Change it to method raw_update.
13380 (regcache_raw_read): Likewise.
13381 (regcache_raw_read_signed): Likewise.
13382 (regcache_raw_read_unsigned): Likewise.
13383 (regcache_raw_write_signed): Likewise.
13384 (regcache_raw_write_unsigned): Likewise.
13385 (regcache_cooked_read): Likewise.
13386 (regcache_cooked_read_value): Likewise.
13387 (regcache_cooked_read_signed): Likewise.
13388 (regcache_cooked_read_unsigned): Likewise.
13389 (regcache_cooked_write_signed): Likewise.
13390 (regcache_cooked_write_unsigned): Likewise.
13391 (regcache_raw_set_cached_value): Likewise.
13392 (regcache_raw_write): Likewise.
13393 (regcache_cooked_write): Likewise.
13394 (regcache_xfer_part): Likewise.
13395 (regcache_raw_read_part): Likewise.
13396 (regcache_raw_write_part): Likewise.
13397 (regcache_cooked_read_part): Likewise.
13398 (regcache_cooked_write_part): Likewise.
13399 (regcache_raw_supply): Likewise.
13400 (regcache_raw_collect): Likewise.
13401 (regcache_transfer_regset): Likewise.
13402 (regcache_supply_regset): Likewise.
13403 (regcache_collect_regset): Likewise.
13404 (regcache_debug_print_register): Likewise.
13405 (enum regcache_dump_what): Move it to regcache.h.
13406 (regcache_dump): Change it to method dump.
13407 * regcache.h (enum regcache_dump_what): New.
13408 (class regcache): New.
13409 * target.c (target_fetch_registers): Call method
13410 debug_print_register.
13411 (target_store_registers): Likewise.
13412
f8fdb78e
SM
134132017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13414
13415 * windows-nat.c (struct lm_info_windows): Initialize field.
13416 (windows_make_so): Allocate lm_info_windows with new.
13417 (windows_free_so): Free lm_info_windows with delete.
13418
9ccbfd7b
SM
134192017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13420
13421 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13422 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13423 cleanup.
13424 (darwin_free_so): Free lm_info_darwin with delete.
13425
76e75227
SM
134262017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13427
13428 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13429 <l_addr_p>: Change type to bool.
13430 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13431 (svr4_free_so): Free lm_info_svr4 with delete.
13432 (svr4_copy_library_list): Replace memcpy with call to copy
13433 constructor.
13434 (library_list_start_library, svr4_default_sos): Allocate
13435 lm_info_svr4 with new.
13436
51046d9e
SM
134372017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13438
13439 * solib-target.c (struct lm_info_target): Add destructor,
13440 initialize fields.
13441 <name>: Change type to std::string.
13442 (library_list_start_library): Allocate lm_info_target with new.
13443 (solib_target_free_library_list): Free lm_info_target with
13444 delete.
13445 (solib_target_current_sos): Adapt to std::string.
13446 (solib_target_free_so): Free lm_info_target with delete.
13447
4023ae76
SM
134482017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13449
13450 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13451 fields.
13452 (frv_current_sos): Allocate lm_info_frv with new.
13453 (frv_relocate_main_executable): Free lm_info_frv with delete,
13454 allocate with new.
13455 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13456
af43057b
SM
134572017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13458
13459 * solib-frv.c (struct lm_info_frv): Fix indentation.
13460
b0911207
SM
134612017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13462
13463 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13464 map field.
13465 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13466 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13467 and allocate with new.
13468 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13469
6c401f72
SM
134702017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13471
13472 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13473 <filename, member_name>: Change type to std::string.
13474 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13475 (library_list_start_library): Allocate lm_info_aix with new.
13476 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13477 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13478 with copy constructor.
13479
d0e449a1
SM
134802017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13481
13482 * solist.h (struct lm_info): Remove.
13483 (struct lm_info_base): New class.
13484 (struct so_list) <lm_info>: Change type to lm_info_base *.
13485 * nto-tdep.c (struct lm_info): Remove.
13486 (lm_addr): Adjust.
13487 * solib-aix.c (struct lm_info): Rename to ...
13488 (struct lm_info_aix): ... this. Extend lm_info_base.
13489 (lm_info_p): Rename to ...
13490 (lm_info_aix_p): ... this, and adjust.
13491 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13492 solib_aix_parse_libraries, library_list_start_library,
13493 solib_aix_free_library_list, solib_aix_parse_libraries,
13494 solib_aix_get_library_list,
13495 solib_aix_relocate_section_addresses, solib_aix_free_so,
13496 solib_aix_get_section_offsets,
13497 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13498 Adjust.
13499 (struct solib_aix_inferior_data) <library_list>: Adjust.
13500 * solib-darwin.c (struct lm_info): Rename to ...
13501 (struct lm_info_darwin): ... this. Extend lm_info_base.
13502 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13503 * solib-dsbt.c (struct lm_info): Rename to ...
13504 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13505 (struct dsbt_info) <main_executable_lm_info): Adjust.
13506 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13507 dsbt_relocate_section_addresses): Adjust.
13508 * solib-frv.c (struct lm_info): Rename to ...
13509 (struct lm_info_frv): ... this. Extend lm_info_base.
13510 (main_executable_lm_info): Adjust.
13511 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13512 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13513 find_canonical_descriptor_in_load_object,
13514 frv_fdpic_find_canonical_descriptor): Adjust.
13515 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13516 to lm_info_svr4.
13517 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13518 svr4_clear_so, svr4_copy_library_list,
13519 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13520 svr4_current_sos, svr4_fetch_objfile_link_map,
13521 solist_update_incremental): Adjust.
13522 * solib-svr4.h (struct lm_info_svr4): Move here from
13523 solib-svr4.c.
13524 * solib-target.c (struct lm_info): Rename to ...
13525 (struct lm_info_target): ... this. Extend lm_info_base.
13526 (lm_info_p): Rename to ...
13527 (lm_info_target_p): ... this.
13528 (solib_target_parse_libraries, library_list_start_segment,
13529 library_list_start_section, library_list_start_library,
13530 library_list_end_library, solib_target_free_library_list,
13531 solib_target_current_sos, solib_target_free_so,
13532 solib_target_relocate_section_addresses): Adjust.
13533 * windows-nat.c (struct lm_info): Rename to ...
13534 (struct lm_info_windows): ... this. Extend lm_info_base.
13535 (windows_make_so, handle_load_dll, handle_unload_dll,
13536 windows_xfer_shared_libraries): Adjust.
13537
434a4023
SM
135382017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13539
13540 * solib-darwin.c (struct darwin_so_list): Remove.
13541 (darwin_current_sos): Allocate an so_list object instead of a
13542 darwin_so_list, separately allocate an lm_info object.
13543 (darwin_free_so): Free lm_info.
13544
428544e8
JB
135452017-04-28 John Baldwin <jhb@FreeBSD.org>
13546
13547 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13548 with fprintf_filtered.
13549
4621115f
YQ
135502017-04-28 Yao Qi <yao.qi@linaro.org>
13551
13552 * regcache.c (regcache::regcache): New function.
13553 (regcache::~regcache): New function.
13554 (regcache_xmalloc_1): Remove.
13555 (regcache_xmalloc): Call new regcache.
13556 (regcache_xfree): Call delete regcache.
13557 (get_thread_arch_aspace_regcache): Call new regcache.
13558
339053c2
YQ
135592017-04-28 Yao Qi <yao.qi@linaro.org>
13560
13561 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13562 lwp instead of ptid_get_lwp.
13563
7974a605
YQ
135642017-04-28 Yao Qi <yao.qi@linaro.org>
13565
13566 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13567 lwp_info instead of getting from inferior_ptid.
13568
e15c3eb4
KS
135692017-04-27 Keith Seitz <keiths@redhat.com>
13570
13571 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13572 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13573 (CV_CONVERSION_BADNESS): Define.
13574 (rank_one_type): Remove overly restrictive rvalue reference
13575 rank checks.
13576 Add cv-qualifier checks and subranks for type equality.
13577 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13578 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13579 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13580
72bc1d24
SM
135812017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13582
13583 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13584 count when creating the object.
13585
55bcecda
UW
135862017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13587 Ulrich Weigand <uweigand@de.ibm.com>
13588
13589 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13590 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13591 is used in AIX.
13592 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13593 (process_xcoff_symbol): Likewise.
13594 (scan_xcoff_symtab): Likewise.
13595
5c99fcf8
AH
135962017-04-26 Alan Hayward <alan.hayward@arm.com>
13597
13598 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13599 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13600 (ia64_access_reg): Use get_frame_register_unsigned.
13601 (ia64_access_rse_reg): Likewise.
13602 (ia64_libunwind_frame_prev_register): Likewise.
13603
b41c5a85
JW
136042017-04-26 Jiong Wang <jiong.wang@arm.com>
13605
13606 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13607 * gdbarch.c: Regenerated.
13608 * gdbarch.h: Regenerated.
13609 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13610 visibility external.
13611 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13612 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13613 (enum cfa_how_kind): Move to ...
13614 (struct dwarf2_frame_state_reg_info): Likewise.
13615 (struct dwarf2_frame_state): Likewise.
13616 * dwarf2-frame.h: ... here.
13617 (dwarf2_frame_state_alloc_regs): New declaration.
13618 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13619 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13620
c185f580
AH
136212017-04-26 Alan Hayward <alan.hayward@arm.com>
13622
13623 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13624 regcache_raw_read_unsigned.
13625 (xtensa_pseudo_register_write): Likewise.
13626
19c45594
AH
136272017-04-26 Alan Hayward <alan.hayward@arm.com>
13628
13629 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13630 (nds32_pseudo_register_write): Likewise.
13631
4658f12e
YQ
136322017-04-25 Yao Qi <yao.qi@linaro.org>
13633
13634 * regcache.c (struct regcache) <readonly_p>: Change its type
13635 to bool.
13636 (regcache_xmalloc_1): Update parameter type and callers update.
13637
d581dda8
YQ
136382017-04-25 Yao Qi <yao.qi@linaro.org>
13639
13640 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13641 set_gdbarch_wchar_bit.
13642 * arm-tdep.c (arm_gdbarch_init): Likewise.
13643
debed3db
PA
136442017-04-25 Pedro Alves <palves@redhat.com>
13645
13646 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13647 (BothAreRelocatable, memcopy, memmove): Don't define.
13648 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13649 macros.
13650
b0b92aeb
PA
136512017-04-25 Pedro Alves <palves@redhat.com>
13652
13653 * common/common-defs.h: Include "common/poison.h".
13654 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13655 and adjust.
13656 * common/poison.h: New file.
13657 * common/traits.h: Include <type_traits>.
13658 (Not, Or, Requires): New, moved from common/function-view.h.
13659
16c4d54a
PA
136602017-04-25 Pedro Alves <palves@redhat.com>
13661
13662 * breakpoint.h (struct breakpoint): In-class initialize all
13663 fields. Make boolean fields "bool".
13664 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13665 memset call and initializations no longer necessary.
13666
b5c36682
PA
136672017-04-25 Pedro Alves <palves@redhat.com>
13668
13669 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13670 reference.
13671 (pt_btrace_insn): New function.
13672 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13673
5625a286
PA
136742017-04-25 Pedro Alves <palves@redhat.com>
13675
13676 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13677 "base" field and inherit from "bp_location" instead. Add
13678 non-default ctor.
13679 (allocate_location_exception): Use new non-default ctor.
13680 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13681 (init_bp_location): Convert to ...
13682 (bp_location::bp_location): ... this new ctor, and remove memset
13683 call.
13684 (base_breakpoint_allocate_location): Use the new non-default ctor.
13685 * breakpoint.h (bp_location): Now a class. Declare default and
13686 non-default ctors. In-class initialize all members.
13687 (init_bp_location): Remove declaration.
13688
23bcc18f
PA
136892017-04-25 Pedro Alves <palves@redhat.com>
13690
13691 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13692 assignment operator.
13693
e1ba3053
YQ
136942017-04-24 Yao Qi <yao.qi@linaro.org>
13695
13696 * doublest.c (convert_doublest_to_floatformat): Call
13697 floatformat_totalsize_bytes.
13698
10f489e5
TT
136992017-04-22 Tom Tromey <tom@tromey.com>
13700
13701 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13702 ui_out_emit_list.
13703 * stack.c (print_frame): Use ui_out_emit_list.
13704 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13705 ui_out_emit_list.
13706 * mi/mi-main.c (print_one_inferior)
13707 (mi_cmd_data_list_register_names)
13708 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13709 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13710 ui_out_emit_list.
13711 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13712 (mi_output_solib_attribs): Use ui_out_emit_list,
13713 ui_out_emit_tuple.
13714 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13715 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13716 (mi_cmd_stack_list_args, list_args_or_locals): Use
13717 ui_out_emit_list.
13718 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13719 * breakpoint.c (print_solib_event, output_thread_groups): Use
13720 ui_out_emit_list.
13721
0092b74d
TT
137222017-04-22 Tom Tromey <tom@tromey.com>
13723
13724 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13725 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13726 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13727
a14a62dd
TT
137282017-04-22 Tom Tromey <tom@tromey.com>
13729
13730 * tracepoint.c (tvariables_info_1)
13731 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13732
46b9c129
TT
137332017-04-22 Tom Tromey <tom@tromey.com>
13734
13735 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13736 annotate_arg_emitter.
13737 * breakpoint.c (print_mention_watchpoint)
13738 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13739 * annotate.h (struct annotate_arg_emitter): New.
13740
2e783024
TT
137412017-04-22 Tom Tromey <tom@tromey.com>
13742
13743 * record-btrace.c (record_btrace_insn_history)
13744 (record_btrace_insn_history_range, record_btrace_call_history)
13745 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13746 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13747 ui_out_emit_tuple.
13748 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13749 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13750 * skip.c (skip_info): Use ui_out_emit_tuple.
13751 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13752 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13753 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13754 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13755 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13756 ui_out_emit_tuple.
13757 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13758 (output_register, mi_cmd_data_read_memory)
13759 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13760 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13761 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13762 Use ui_out_emit_tuple.
13763 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13764 ui_out_emit_tuple.
13765 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13766 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13767 * linux-thread-db.c (info_auto_load_libthread_db): Use
13768 ui_out_emit_tuple.
13769 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13770 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13771 * disasm.c (do_mixed_source_and_assembly_deprecated)
13772 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13773 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13774 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13775 * breakpoint.c (print_one_breakpoint_location)
13776 (print_one_breakpoint): Use ui_out_emit_tuple.
13777 * auto-load.c (print_script, info_auto_load_cmd): Use
13778 ui_out_emit_tuple.
13779 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13780
9be21bb4
SM
137812017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13782
13783 * thread.c (print_thread_info_1): Remove dead code.
13784
0d4c07af
JK
137852017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13786
13787 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13788 GDB_SELF_TEST.
13789 * arm-tdep.c (selftests::arm_record_test): Likewise.
13790
4daf993d
YQ
137912017-04-21 Yao Qi <yao.qi@linaro.org>
13792
13793 * regcache.c (regcache_restore): Remove argument 2. Replace
13794 argument 3 with regcache. Get register status from
13795 src->register_status and get register contents from
13796 register_buffer (src, regnum).
13797 (regcache_cpy): Update.
13798
a6c21d4a
PA
137992017-04-19 Pedro Alves <palves@redhat.com>
13800
13801 * gdbthread.h (thread): Add missing closing parenthesis in
13802 comment.
13803
3a3fd0fd
PA
138042017-04-19 Pedro Alves <palves@redhat.com>
13805
13806 * common/refcounted-object.h: New file.
13807 * gdbthread.h: Include "common/refcounted-object.h".
13808 (thread_info): Inherit from refcounted_object and add comments.
13809 (thread_info::incref, thread_info::decref)
13810 (thread_info::m_refcount): Delete.
13811 (thread_info::deletable): Use the refcounted_object::refcount()
13812 method.
13813 * inferior.c (current_inferior_): Add comment.
13814 (set_current_inferior): Increment/decrement refcounts.
13815 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13816 not-deletable instead of comparing with the current inferior.
13817 (initialize_inferiors): Increment the initial inferior's refcount.
13818 * inferior.h (struct inferior): Forward declare.
13819 Include "common/refcounted-object.h".
13820 (current_inferior, set_current_inferior): Move declaration to
13821 before struct inferior's definition, and fix comment.
13822 (inferior): Inherit from refcounted_object. Add comments.
13823 * thread.c (switch_to_thread_no_regs): Reference the thread's
13824 inferior pointer directly instead of doing a ptid lookup.
13825 (switch_to_no_thread): New function.
13826 (switch_to_thread(thread_info *)): New function, factored out
13827 from ...
13828 (switch_to_thread(ptid_t)): ... this.
13829 (restore_current_thread): Delete.
13830 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13831 fields, and add 'inf' field.
13832 (do_restore_current_thread_cleanup): Check whether old->inf is
13833 alive instead of looking up an inferior by ptid. Use
13834 switch_to_thread and switch_to_no_thread.
13835 (restore_current_thread_cleanup_dtor): Use old->inf directly
13836 instead of lookup up an inferior by id. Decref the inferior.
13837 Don't restore 'removable'.
13838 (make_cleanup_restore_current_thread): Same the inferior pointer
13839 in old, instead of the inferior number. Incref the inferior.
13840 Don't save/clear 'removable'.
13841
9bcb1f16
PA
138422017-04-19 Pedro Alves <palves@redhat.com>
13843
13844 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13845 unittests/scoped_restore-selftests.c.
13846 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13847 * common/scoped_restore.h (scoped_restore_base): Make "class".
13848 (scoped_restore_base::release): New public method.
13849 (scoped_restore_base::scoped_restore_base): New protected ctor.
13850 (scoped_restore_base::m_saved_var): New protected field.
13851 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13852 scoped_restore_base base class instead of m_saved_var directly.
13853 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13854 (scoped_restore_tmpl::scoped_restore_tmpl(const
13855 scoped_restore_tmpl<T>&)): Likewise.
13856 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13857 method.
13858 (scoped_restore_tmpl::saved_var): New method.
13859 (scoped_restore_tmpl::m_saved_var): Delete.
13860 * inferior.h (inferior::detaching): Now a bool.
13861 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13862 cleanup.
13863 * unittests/scoped_restore-selftests.c: New file.
13864
26fcd539
PA
138652017-04-19 Pedro Alves <palves@redhat.com>
13866
13867 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13868 Re-sort in alphabetic order.
13869
fdd243b0
PA
138702017-04-18 Pedro Alves <palves@redhat.com>
13871
13872 * xml-support.c (obstack_xml_printf): Delete.
13873 * xml-support.h (obstack_xml_printf): Delete.
13874
4895cde2
PA
138752017-04-18 Pedro Alves <palves@redhat.com>
13876
13877 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13878 vdebug, verror, body_text, start_element, end_element, name,
13879 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13880 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13881 is_xinclude>: Make private and add m_ prefix.
13882 (gdb_xml_parser::body_text): New method, based on ...
13883 (gdb_xml_body_text): ... this. Adjust.
13884 (gdb_xml_parser::vdebug): New method, based on ...
13885 (gdb_xml_debug): ... this. Adjust.
13886 (gdb_xml_parser::verror): New method, based on ...
13887 (gdb_xml_error): ... this. Adjust.
13888 (gdb_xml_parser::start_element): New method, based on ...
13889 (gdb_xml_start_element): ... this. Adjust.
13890 (gdb_xml_start_element_wrapper): Defer to
13891 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13892 (gdb_xml_parser::end_element): New method, based on ...
13893 (gdb_xml_end_element_wrapper): ... this. Adjust.
13894 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13895 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13896 (gdb_xml_parser::use_dtd): New method, based on ...
13897 (gdb_xml_use_dtd): ... this. Adjust.
13898 (gdb_xml_parser::parse): New method, based on ...
13899 (gdb_xml_parse): ... this. Adjust.
13900 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13901 (xinclude_start_include): Adjust to call the parser's name method.
13902 (xml_xinclude_default, xml_xinclude_start_doctype)
13903 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13904 method.
13905 (xml_process_xincludes): Adjust to call parser methods.
13906 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13907 declarations.
13908
bd8a901f
PA
139092017-04-18 Pedro Alves <palves@redhat.com>
13910
13911 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13912 gdb::optional<std::string>.
13913 * xml-support.c: Include <string>.
13914 (scope_level::scope_level(scope_level &&))
13915 (scope_level::~scope_level): Delete.
13916 (scope_level::body): Now a std::string.
13917 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13918 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13919 parameter.
13920 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13921 (xinclude_parsing_data::output): Now a std::string reference.
13922 (xinclude_start_include): Adjust.
13923 (xml_xinclude_default): Adjust.
13924 (xml_process_xincludes): Add 'output' parameter, and return bool.
13925 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13926 and return bool.
13927 * xml-tdesc.c: Include <unordered_map> and <string>.
13928 (tdesc_xml_cache): Delete.
13929 (tdesc_xml_cache_s): Delete.
13930 (xml_cache): Now an std::unordered_map.
13931 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13932 (target_fetch_description_xml): Change return type to
13933 gdb::optional<std::string>, and adjust.
13934 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13935 (target_fetch_description_xml): Change return type to
13936 gdb::optional<std::string>.
13937
d35d1958
PA
139382017-04-18 Pedro Alves <palves@redhat.com>
13939
13940 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13941 unittests/optional-selftests.c.
13942 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13943 * unittests/optional-selftests.c: New file.
13944 * unittests/optional/assignment/1.cc: New file.
13945 * unittests/optional/assignment/2.cc: New file.
13946 * unittests/optional/assignment/3.cc: New file.
13947 * unittests/optional/assignment/4.cc: New file.
13948 * unittests/optional/assignment/5.cc: New file.
13949 * unittests/optional/assignment/6.cc: New file.
13950 * unittests/optional/assignment/7.cc: New file.
13951 * unittests/optional/cons/copy.cc: New file.
13952 * unittests/optional/cons/default.cc: New file.
13953 * unittests/optional/cons/move.cc: New file.
13954 * unittests/optional/cons/value.cc: New file.
13955 * unittests/optional/in_place.cc: New file.
13956 * unittests/optional/observers/1.cc: New file.
13957 * unittests/optional/observers/2.cc: New file.
13958
22796e97
PA
139592017-04-18 Pedro Alves <palves@redhat.com>
13960
13961 * common/gdb_optional.h: Include common/traits.h.
13962 (in_place_t): New type.
13963 (in_place): New constexpr variable.
13964 (optional::optional): Remove member initialization of
13965 m_instantiated.
13966 (optional::optional(in_place_t...)): New constructor.
13967 (optional::~optional): Use reset.
13968 (optional::optional(const optional&)): New.
13969 (optional::optional(const optional&&)): New.
13970 (optional::optional(T &)): New.
13971 (optional::optional(T &&)): New.
13972 (operator::operator=(const optional &)): New.
13973 (operator::operator=(optional &&)): New.
13974 (operator::operator= (const T &))
13975 (operator::operator= (T &&))
13976 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13977 (operator::reset): New.
13978 (operator::m_instantiated):: Add in-class initializer.
13979 * common/traits.h: Include <type_traits>.
13980 (struct And): New types.
13981
a7fc9b61
PA
139822017-04-18 Pedro Alves <palves@redhat.com>
13983
13984 * xml-support.c: Include <vector>.
13985 (scope_level::scope_level(const gdb_xml_element *))
13986 (scope_level::scope_level(scope_level&&)): New.
13987 (scope_level::~scope_level): New.
13988 (scope_level_s): Delete.
13989 (gdb_xml_parser::scopes): Now a std::vector.
13990 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13991 Use std::vector.
13992 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13993 scope cleanup code.
13994 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13995 of the scopes member. Use std::vector::emplace_back.
13996
010151c9
PA
139972017-04-18 Pedro Alves <palves@redhat.com>
13998
13999 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
14000 a bool.
14001 (gdb_xml_end_element): Change type of first parameter.
14002 (gdb_xml_cleanup): Rename to ...
14003 (gdb_xml_parser::~gdb_xml_parser): ... this.
14004 (gdb_xml_create_parser_and_cleanup): Delete with ...
14005 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
14006 to this new ctor.
14007 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
14008 using gdb_xml_create_parser_and_cleanup.
14009 (xinclude_parsing_data): Add ctor/dtor.
14010 (xml_xinclude_cleanup): Delete.
14011 (xml_process_xincludes): Create a local xinclude_parsing_data
14012 instead of heap-allocating one. Create a local gdb_xml_parser
14013 instead of heap-allocating one with
14014 gdb_xml_create_parser_and_cleanup.
14015
d56060f0
JB
140162017-04-18 John Baldwin <jhb@FreeBSD.org>
14017
14018 PR threads/20743
14019 * fbsd-nat.c (resume_one_thread_cb): Remove.
14020 (resume_all_threads_cb): Remove.
14021 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
14022 iterate_over_threads.
14023
305d16a9
JB
140242017-04-17 Joel Brobecker <brobecker@adacore.com>
14025
14026 * NEWS: Create a new section for the next release branch.
14027 Rename the section of the current branch, now that it has
14028 been cut.
14029
8bb57231
JB
140302017-04-17 Joel Brobecker <brobecker@adacore.com>
14031
14032 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
14033 * version.in: Bump version to 8.0.50.DATE-git.
14034
096c92dd
SDJ
140352017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
14036
14037 PR gdb/21385
14038 * windows-nat.c (windows_create_inferior): Declare 'allargs'
14039 independently of the host, and fix build breakage on Cygwin.
14040
0550c955
PA
140412017-04-13 Pedro Alves <palves@redhat.com>
14042
14043 * inferior.c (free_inferior): Convert to ...
14044 (inferior::~inferior): ... this dtor.
14045 (inferior::inferior): New ctor, factored out from ...
14046 (add_inferior_silent): ... here. Allocate the inferior with a new
14047 expression.
14048 (delete_inferior): Call delete instead of free_inferior.
14049 * inferior.h (gdb_environ, continuation): Forward declare.
14050 (inferior): Now a class. Add in-class initialization to all
14051 members. Make boolean fields bool, except 'detaching'.
14052 (inferior::inferior): New explicit ctor.
14053 (inferior::~inferior): New.
14054
e3d60dfc
PA
140552017-04-13 Pedro Alves <palves@redhat.com>
14056
14057 * inferior.c (init_inferior_list): Delete.
14058 * inferior.h (init_inferior_list): Delete.
14059
5fd69d0a
PA
140602017-04-13 Pedro Alves <palves@redhat.com>
14061
14062 PR threads/13217
14063 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
14064 (top level): Call it twice, with different thread sets.
14065
c6609450
PA
140662017-04-13 Pedro Alves <palves@redhat.com>
14067
14068 * thread.c: Include <algorithm>.
14069 (thread_array_cleanup): Delete.
14070 (scoped_inc_dec_ref): New class.
14071 (live_threads_count): New function.
14072 (set_thread_refcount): Delete.
14073 (tp_array_compar_ascending): Now a bool.
14074 (tp_array_compar): Convert to a std::sort comparison function.
14075 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
14076 and live_threads_count.
14077
2a00d7ce
PA
140782017-04-13 Pedro Alves <palves@redhat.com>
14079
14080 * infrun.c (follow_fork_inferior): Also switch the current
14081 inferior.
14082
441d7c93
PA
140832017-04-13 Pedro Alves <palves@redhat.com>
14084
14085 * breakpoint.c (watch_command_1): Save watchpoint-frame info
14086 before calling create_internal_breakpoint.
14087
808480f6
PA
140882017-04-13 Pedro Alves <palves@redhat.com>
14089
14090 * fork-child.c (execv_argv): New class.
14091 (breakup_args): Refactored as ...
14092 (execv_argv::init_for_no_shell): .. this method of execv_argv.
14093 Copy arguments to storage and replace separators with NULL
14094 terminators in place.
14095 (escape_bang_in_quoted_argument): Adjust to return bool.
14096 (execv_argv::execv_argv): New ctor.
14097 (execv_argv::init_for_shell): New method, factored out from
14098 fork_inferior. Don't strdup strings into the vector.
14099 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
14100 Remove free_vector_argv call.
14101
ad3d022a
YQ
141022017-04-13 Yao Qi <yao.qi@linaro.org>
14103
14104 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
14105 tdep->rx_psw_type.
14106
e6ddc3bf
YQ
141072017-04-13 Yao Qi <yao.qi@linaro.org>
14108
14109 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
14110 * rx-tdep.c (rx_gdbarch_init): Likewise.
14111
bfb8cf90
PA
141122017-04-13 Pedro Alves <palves@redhat.com>
14113
14114 * breakpoint.h (struct breakpoint): Reindent.
14115
f5336ca5
PA
141162017-04-13 Pedro Alves <palves@redhat.com>
14117
14118 * breakpoint.c (bp_location): Rename to ...
14119 (bp_locations): ... this. All references updated.
14120 (bp_location_count): Rename to ...
14121 (bp_locations_count): ... this. All references updated.
14122 (bp_location_placed_address_before_address_max): Rename to ...
14123 (bp_locations_placed_address_before_address_max): ... this. All
14124 references updated.
14125 (bp_location_shadow_len_after_address_max): Rename to ...
14126 (bp_locations_shadow_len_after_address_max): ... this. All
14127 references updated.
14128 (bp_location_compare_addrs): Rename to ...
14129 (bp_locations_compare_addrs): ... this. All references updated.
14130 (bp_location_compare):Rename to ...
14131 (bp_locations_compare): ... this. All references updated.
14132 (bp_location_target_extensions_update): Rename to ...
14133 (bp_locations_target_extensions_update): ... this. All references
14134 updated.
14135
be628ab8
SDJ
141362017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14137
14138 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
14139 * common/common.m4: Check headers 'termios.h', 'termio.h' and
14140 'sgtty.h'.
14141 * common/gdb_termios.h: New file, with parts of "terminal.h".
14142 * inflow.c: Include "gdb_termios.h".
14143 * ser-unix.c: Include "gdb_termios.h".
14144 * terminal.h: Move terminal-related defines to
14145 "common/gdb_termios.h".
14146
8e9e35b1
TT
141472017-04-12 Tom Tromey <tom@tromey.com>
14148
14149 * probe.c (parse_probes): Update.
14150 * location.h (delete_event_location): Don't declare.
14151 (event_location_deleter::operator()): Update.
14152 * location.c (event_location_deleter::operator()): Rename from
14153 delete_event_location.
14154 * linespec.h (linespec_result) <location>: Change type to
14155 event_location_up.
14156 * linespec.c (canonicalize_linespec, event_location_to_sals)
14157 (decode_objc): Update.
14158 (linespec_result): Don't call delete_event_location.
14159 * breakpoint.c (create_breakpoints_sal)
14160 (bkpt_probe_create_sals_from_location)
14161 (strace_marker_create_sals_from_location): Update.
14162
16e802b9
TT
141632017-04-12 Tom Tromey <tom@tromey.com>
14164
14165 * linespec.h (struct linespec_result): Add constructor and
14166 destructor.
14167 (init_linespec_result, destroy_linespec_result)
14168 (make_cleanup_destroy_linespec_result): Don't declare.
14169 * linespec.c (init_linespec_result): Remove.
14170 (linespec_result::~linespec_result): Rename from
14171 destroy_linespec_result. Update.
14172 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
14173 Remove.
14174 * breakpoint.c (create_breakpoint, break_range_command)
14175 (decode_location_default): Update.
14176 * ax-gdb.c (agent_command_1): Update.
14177
d28cd78a
TT
141782017-04-12 Tom Tromey <tom@tromey.com>
14179
14180 * remote.c (remote_download_tracepoint): Update.
14181 * python/py-breakpoint.c (bppy_get_location): Update.
14182 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
14183 (gdbscm_breakpoint_location): Update.
14184 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
14185 * breakpoint.h (struct breakpoint) <location, location_range_end>:
14186 Change type to event_location_up.
14187 * breakpoint.c (create_overlay_event_breakpoint)
14188 (create_longjmp_master_breakpoint)
14189 (create_std_terminate_master_breakpoint)
14190 (create_exception_master_breakpoint)
14191 (breakpoint_event_location_empty_p, print_breakpoint_location)
14192 (print_one_breakpoint_location, create_thread_event_breakpoint)
14193 (init_breakpoint_sal, create_breakpoint)
14194 (print_recreate_ranged_breakpoint, break_range_command)
14195 (init_ada_exception_breakpoint, say_where): Update.
14196 (base_breakpoint_dtor): Don't call delete_event_location.
14197 (bkpt_print_recreate, tracepoint_print_recreate)
14198 (dprintf_print_recreate, update_static_tracepoint)
14199 (breakpoint_re_set_default): Update.
14200
711799d5
TT
142012017-04-12 Tom Tromey <tom@tromey.com>
14202
14203 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
14204 type of "to_do". Update.
14205 (compute_stack_depth): Use std::vector.
14206
52d214d3
TT
142072017-04-12 Tom Tromey <tom@tromey.com>
14208
14209 * printcmd.c (find_instruction_backward): Use std::vector.
14210
4c404b8b
TT
142112017-04-12 Tom Tromey <tom@tromey.com>
14212
14213 * symfile.c (objfilep): Remove typedef.
14214 (reread_symbols): Use a std::vector.
14215
156d9eab
TT
142162017-04-12 Tom Tromey <tom@tromey.com>
14217
14218 * mi/mi-main.c (exec_direction_forward): Remove.
14219 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
14220 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
14221 scoped_restore.
14222 * guile/guile.c (guile_repl_command, guile_command)
14223 (gdbscm_execute_gdb_command): Use scoped_restore.
14224 * go-exp.y (go_parse): Use scoped_restore.
14225 * d-exp.y (d_parse): Use scoped_restore.
14226 * cli/cli-decode.c (cmd_func): Use scoped_restore.
14227 * c-exp.y (c_parse): Use scoped_restore.
14228
4d89769a
TT
142292017-04-12 Tom Tromey <tom@tromey.com>
14230
14231 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14232 (mi_parse): Update return type.
14233 (mi_parse_free): Remove.
14234 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14235 (mi_parse::~mi_parse): Rename from mi_parse_free.
14236 (mi_parse_cleanup): Remove.
14237 (mi_parse): Return a unique_ptr. Use new.
14238 * mi/mi-main.c (mi_execute_command): Update.
14239
4b217cc7
TT
142402017-04-12 Tom Tromey <tom@tromey.com>
14241
14242 * location.c (explicit_location_lex_one): Return a
14243 unique_xmalloc_ptr.
14244 (string_to_explicit_location): Update. Remove cleanups.
14245
59d3651b
TT
142462017-04-12 Tom Tromey <tom@tromey.com>
14247
14248 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14249 (compare_value_and_voffset): Change type. Update.
14250 (compute_vtable_size): Change type of "offset_vec".
14251 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14252 (gnuv3_get_typeid): Remove extraneous declaration.
14253
b24b0d6c
TT
142542017-04-12 Tom Tromey <tom@tromey.com>
14255
14256 * charset.h (wchar_iterator): Fix comment.
14257
80a3b8c5
TT
142582017-04-12 Tom Tromey <tom@tromey.com>
14259
14260 * charset.c (iconv_wrapper): New class.
14261 (cleanup_iconv): Remove.
14262 (convert_between_encodings): Use it.
14263
c83dd867
TT
142642017-04-12 Tom Tromey <tom@tromey.com>
14265
14266 * symfile.h (increment_reading_symtab): Update type.
14267 * symfile.c (decrement_reading_symtab): Remove.
14268 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14269 * psymtab.c (psymtab_to_symtab): Update.
14270 * dwarf2read.c (dw2_instantiate_symtab): Update.
14271
0e8621a0
TT
142722017-04-12 Tom Tromey <tom@tromey.com>
14273
14274 * jit.c (struct jit_reader): Declare separately. Add constructor
14275 and destructor. Change type of "handle".
14276 (loaded_jit_reader): Define separately.
14277 (jit_reader_load): Update. New "new".
14278 (jit_reader_unload_command): Use "delete".
14279 * gdb-dlfcn.h (struct dlclose_deleter): New.
14280 (gdb_dlhandle_up): New typedef.
14281 (gdb_dlopen, gdb_dlsym): Update types.
14282 (gdb_dlclose): Remove.
14283 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14284 (gdb_dlsym): Change type of "handle".
14285 (make_cleanup_dlclose): Remove.
14286 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14287 * compile/compile-c-support.c (load_libcc): Update.
14288
67d89901
TT
142892017-04-12 Tom Tromey <tom@tromey.com>
14290
14291 * symtab.h (find_pcs_for_symtab_line): Change return type.
14292 * symtab.c (find_pcs_for_symtab_line): Change return type.
14293 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14294 type of "vec". Update.
14295 (ltpy_get_pcs_for_line): Update.
14296 * linespec.c (decode_digits_ordinary): Update.
14297
93921405
TT
142982017-04-12 Tom Tromey <tom@tromey.com>
14299
14300 * tracepoint.c (actions_command): Update.
14301 * python/python.c (python_command, python_interactive_command):
14302 Update.
14303 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14304 * guile/guile.c (guile_command): Update.
14305 * defs.h (read_command_lines, read_command_lines_1): Return
14306 command_line_up.
14307 (command_lines_deleter): New struct.
14308 (command_line_up): New typedef.
14309 * compile/compile.c (compile_code_command)
14310 (compile_print_command): Update.
14311 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14312 command_line_up.
14313 (make_cleanup_free_command_lines): Remove.
14314 * cli/cli-script.c (get_command_line, read_command_lines_1)
14315 (copy_command_lines): Return command_line_up.
14316 (while_command, if_command, read_command_lines, define_command)
14317 (document_command): Update.
14318 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14319 Remove.
14320 * breakpoint.h (breakpoint_set_commands): Change type of
14321 "commands".
14322 * breakpoint.c (breakpoint_set_commands): Change type of
14323 "commands". Update.
14324 (do_map_commands_command, update_dprintf_command_list)
14325 (create_tracepoint_from_upload): Update.
14326
ffc2605c
TT
143272017-04-12 Tom Tromey <tom@tromey.com>
14328
14329 * tracepoint.c (scope_info): Update.
14330 * spu-tdep.c (spu_catch_start): Update.
14331 * python/python.c (gdbpy_decode_line): Update.
14332 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14333 * python/py-breakpoint.c (bppy_init): Update.
14334 * probe.c (parse_probes): Update.
14335 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14336 * location.h (event_location_deleter): New struct.
14337 (event_location_up): New typedef.
14338 (new_linespec_location, new_address_location, new_probe_location)
14339 (new_explicit_location, copy_event_location)
14340 (string_to_event_location, string_to_event_location_basic)
14341 (string_to_explicit_location): Update return type.
14342 (make_cleanup_delete_event_location): Remove.
14343 * location.c (new_linespec_location, new_address_location)
14344 (new_probe_location, new_explicit_location, copy_event_location):
14345 Return event_location_up.
14346 (delete_event_location_cleanup)
14347 (make_cleanup_delete_event_location): Remove.
14348 (string_to_explicit_location, string_to_event_location_basic)
14349 (string_to_event_location): Return event_location_up.
14350 * linespec.c (canonicalize_linespec, event_location_to_sals)
14351 (decode_line_with_current_source)
14352 (decode_line_with_last_displayed, decode_objc): Update.
14353 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14354 * completer.c (location_completer): Update.
14355 * cli/cli-cmds.c (edit_command, list_command): Update.
14356 * breakpoint.c (create_overlay_event_breakpoint)
14357 (create_longjmp_master_breakpoint)
14358 (create_std_terminate_master_breakpoint)
14359 (create_exception_master_breakpoint)
14360 (create_thread_event_breakpoint): Update.
14361 (init_breakpoint_sal): Update. Remove some dead code.
14362 (create_breakpoint_sal): Change type of "location". Update.
14363 (create_breakpoints_sal, create_breakpoint, break_command_1)
14364 (dprintf_command, break_range_command, until_break_command)
14365 (init_ada_exception_breakpoint)
14366 (strace_marker_create_sals_from_location)
14367 (update_static_tracepoint, trace_command, ftrace_command)
14368 (strace_command, create_tracepoint_from_upload): Update.
14369 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14370 * ax-gdb.c (agent_command_1): Update.
14371
8f10c932
PA
143722017-04-12 Pedro Alves <palves@redhat.com>
14373
14374 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14375 * configure.tgt: Handle i[34567]86-*-go32* and
14376 i[34567]86-*-msdosdjgpp*.
14377 * i386-tdep.c (i386_svr4_reg_to_regnum):
14378 Make extern.
14379 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14380 i386-go32-tdep.c.
14381 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14382 * i386-go32-tdep.c: New file.
14383 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14384 declarations.
14385
0a31ccfb
SM
143862017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14387
14388 * aix-thread.c (pd_status2str): Change return type to const char *.
14389
e9bb3fbb
PA
143902017-04-12 Pedro Alves <palves@redhat.com>
14391
14392 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14393 calls to set_gdbarch_gnu_triplet_regexp.
14394
53375380
PA
143952017-04-12 Pedro Alves <palves@redhat.com>
14396
14397 PR gdb/21323
14398 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14399 New enum value.
14400 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14401 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14402 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14403 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14404 * gdbarch.h, gdbarch.c: Regenerate.
14405 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14406 gdbarch_wchar_bit and gdbarch_wchar_signed.
14407 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14408 * arm-tdep.c (arm_gdbarch_init): Likewise.
14409 * avr-tdep.c (avr_gdbarch_init): Likewise.
14410 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14411 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14412 * i386-tdep.c (i386_go32_init_abi): Likewise.
14413 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14414 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14415 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14416 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14417 * sh-tdep.c (sh_gdbarch_init): Likewise.
14418 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14419 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14420 * windows-tdep.c (windows_init_abi): Likewise.
14421 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14422
53e710ac
PA
144232017-04-12 Pedro Alves <palves@redhat.com>
14424
14425 PR c++/21323
14426 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14427 cplus_primitive_type_char32_t>: New enum values.
14428 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14429 and cplus_primitive_type_char32_t.
14430 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14431 32, use the archtecture's built-in type for char16_t and char32_t,
14432 respectively. Otherwise, fallback to init_integer_type as before,
14433 but make the type unsigned, and issue a complaint.
14434 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14435
ab0538b8
AH
144362017-04-12 Alan Hayward <alan.hayward@arm.com>
14437
5e0e0422 14438 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
14439 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14440
5430098f
SDJ
144412017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14442
14443 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14444 'const char *'.
14445
7c5ded6a
SDJ
144462017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14447
14448 * common/common-utils.c (free_vector_argv): New function.
14449 * common/common-utils.h: Include <vector>.
14450 (free_vector_argv): New prototype.
14451 * darwin-nat.c (darwin_create_inferior): Rewrite function
14452 prototype in order to constify "exec_file" and accept a
14453 "std::string" for "allargs".
14454 * fork-child.c: Include <vector>.
14455 (breakup_args): Rewrite function, using C++.
14456 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14457 and accept "std::string" for "allargs". Update the code to
14458 calculate "argv" based on "allargs". Update calls to "exec_fun"
14459 and "execvp".
14460 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14461 order to constify "exec_file" and accept a "std::string" for
14462 "allargs".
14463 * go32-nat.c (go32_create_inferior): Likewise.
14464 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14465 * infcmd.c (run_command_1): Constify "exec_file". Use
14466 "std::string" for inferior arguments.
14467 * inferior.h (fork_inferior): Update prototype.
14468 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14469 prototype in order to constify "exec_file" and accept a
14470 "std::string" for "allargs".
14471 * nto-procfs.c (procfs_create_inferior): Likewise.
14472 * procfs.c (procfs_create_inferior): Likewise.
14473 * remote-sim.c (gdbsim_create_inferior): Likewise.
14474 * remote.c (extended_remote_run): Update code to accept
14475 "std::string" as argument.
14476 (extended_remote_create_inferior): Rewrite function prototype in
14477 order to constify "exec_file" and accept a "std::string" for
14478 "allargs".
14479 * rs6000-nat.c (super_create_inferior): Likewise.
14480 (rs6000_create_inferior): Likewise.
14481 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14482 * windows-nat.c (windows_create_inferior): Likewise.
14483
ae0eee42
PA
144842017-04-11 Pedro Alves <palves@redhat.com>
14485
14486 * thread.c: Fix whitespace throughout.
14487
a6acac06
PR
144882017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14489
14490 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14491
64403bd1
AH
144922017-04-11 Alan Hayward <alan.hayward@arm.com>
14493
14494 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14495
a5bef50f
SDJ
144962017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14497
14498 PR gdb/21364
14499 * osdata.c (info_osdata): Check if 'type' is an empty string
14500 instead of NULL.
14501
9295a5a9
PA
145022017-04-10 Pedro Alves <palves@redhat.com>
14503
14504 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14505 (ptid_to_global_thread_id, in_thread_list)
14506 (do_captured_list_thread_ids, set_resumed, set_running)
14507 (set_executing, set_stop_requested, finish_thread_state)
14508 (validate_registers_access, can_access_registers_ptid)
14509 (print_thread_info_1, switch_to_thread)
14510 (do_restore_current_thread_cleanup)
14511 (make_cleanup_restore_current_thread, thread_command)
14512 (thread_name_command): Use operator== instead of ptid_equal.
14513
996812e3
PA
145142017-04-10 Pedro Alves <palves@redhat.com>
14515
14516 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14517 (current_thread_cleanup_chain): Delete.
14518 (restore_current_thread_cleanup_dtor)
14519 (make_cleanup_restore_current_thread): Remove references to
14520 current_thread_cleanup_chain.
14521
845b344f
AH
145222017-04-10 Alan Hayward <alan.hayward@arm.com>
14523
14524 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14525 REG_UNKNOWN.
14526
803bdfe4
YQ
145272017-04-10 Yao Qi <yao.qi@linaro.org>
14528
14529 PR gdb/19942
14530 * gdbthread.h (thread_info::deletable): New method.
14531 (thread_info::incref): New method.
14532 (thread_info::decref): New method.
14533 (thread_info::refcount): Move it to private.
14534 * infrun.c (save_stop_context): Call inc_refcount.
14535 (release_stop_context_cleanup): Likewise.
14536 * thread.c (set_thread_exited): New function.
14537 (init_thread_list): Delete "tp" only it is deletable, otherwise
14538 call set_thread_exited.
14539 (delete_thread_1): Call set_thread_exited.
14540 (current_thread_cleanup) <inferior_pid>: Remove.
14541 <thread>: New field.
14542 (restore_current_thread_ptid_changed): Removed.
14543 (do_restore_current_thread_cleanup): Adjust.
14544 (restore_current_thread_cleanup_dtor): Don't call
14545 find_thread_ptid.
14546 (set_thread_refcount): Use dec_refcount.
14547 (make_cleanup_restore_current_thread): Adjust.
14548 (thread_apply_all_command): Call inc_refcount.
14549 (_initialize_thread): Don't call
14550 observer_attach_thread_ptid_changed.
14551
8c25b497
YQ
145522017-04-10 Yao Qi <yao.qi@linaro.org>
14553
14554 * thread.c (delete_thread_1): Hoist code on marking thread as
14555 exited.
14556
8473b447
SM
145572017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14558
14559 * windows-nat.c (windows_detach): Initialize ptid with
14560 minus_one_ptid.
14561
6670ec13
SM
145622017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14563
14564 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14565
ba2f91bb
AH
145662017-04-07 Alan Hayward <alan.hayward@arm.com>
14567
14568 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14569 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14570 (bfin_pseudo_register_write): Likewise
14571
436252de
SM
145722017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14573
14574 * common/ptid.h (struct ptid): Change to...
14575 (class ptid_t): ... this.
14576 <ptid_t>: New constructors.
14577 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14578 matches>: New methods.
14579 <make_null, make_minus_one>: New static methods.
14580 <pid>: Rename to...
14581 <m_pid>: ...this.
14582 <lwp>: Rename to...
14583 <m_lwp>: ...this.
14584 <tid>: Rename to...
14585 <m_tid>: ...this.
14586 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14587 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14588 as references, move comment to class ptid_t.
14589 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14590 ptid_t static methods.
14591 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14592 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14593 Take ptid arguments as references, implement using ptid_t methods.
14594 * unittests/ptid-selftests.c: New file.
14595 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14596 unittests/ptid-selftests.c.
14597 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14598
0dedf377
TP
145992017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14600
14601 * python/python.c (python_run_simple_file): Cast mode literal to
14602 non-const char pointer as expected by PyFile_FromString.
14603
4e9868d4
SM
146042017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14605
14606 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14607 minus_one_ptid and null_ptid.
14608
9bf2a700
PA
146092017-04-05 Pedro Alves <palves@redhat.com>
14610
14611 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14612 * configure: Regenerate.
14613
a121b7c1
PA
146142017-04-05 Pedro Alves <palves@redhat.com>
14615
14616 * ada-exp.y (yyerror): Constify.
14617 * ada-lang.c (bound_name, get_selections)
14618 (ada_variant_discrim_type)
14619 (ada_variant_discrim_name, ada_value_struct_elt)
14620 (ada_lookup_struct_elt_type, is_unchecked_variant)
14621 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14622 (catch_ada_exception_command_split)
14623 (catch_ada_assert_command_split, catch_assert_command)
14624 (ada_op_name): Constify.
14625 * ada-lang.h (ada_yyerror, get_selections)
14626 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14627 * arc-tdep.c (arc_print_frame_cache): Constify.
14628 * arm-tdep.c (arm_skip_stub): Constify.
14629 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14630 (gen_aggregate_elt_ref): Constify.
14631 * bcache.c (print_bcache_statistics): Constify.
14632 * bcache.h (print_bcache_statistics): Constify.
14633 * break-catch-throw.c (catch_exception_command_1):
14634 * breakpoint.c (struct ep_type_description::description):
14635 Constify.
14636 (add_solib_catchpoint): Constify.
14637 (catch_fork_command_1): Add cast.
14638 (add_catch_command): Constify.
14639 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14640 Constify.
14641 * bsd-uthread.c (bsd_uthread_state): Constify.
14642 * buildsym.c (patch_subfile_names): Constify.
14643 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14644 Constify.
14645 * c-exp.y (yyerror): Constify.
14646 (token::oper): Constify.
14647 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14648 * c-varobj.c (cplus_describe_child): Constify.
14649 * charset.c (find_charset_names): Add cast.
14650 (find_charset_names): Constify array and add const_cast.
14651 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14652 (edit_command): Constify.
14653 * cli/cli-decode.c (lookup_cmd): Constify.
14654 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14655 Constify.
14656 (struct dump_context): Constify.
14657 (add_dump_command, restore_command): Constify.
14658 * cli/cli-script.c (get_command_line): Constify.
14659 * cli/cli-script.h (get_command_line): Constify.
14660 * cli/cli-utils.c (check_for_argument): Constify.
14661 * cli/cli-utils.h (check_for_argument): Constify.
14662 * coff-pe-read.c (struct read_pe_section_data): Constify.
14663 * command.h (lookup_cmd): Constify.
14664 * common/print-utils.c (decimal2str): Constify.
14665 * completer.c (gdb_print_filename): Constify.
14666 * corefile.c (set_gnutarget): Constify.
14667 * cp-name-parser.y (yyerror): Constify.
14668 * cp-valprint.c (cp_print_class_member): Constify.
14669 * cris-tdep.c (cris_register_name, crisv32_register_name):
14670 Constify.
14671 * d-exp.y (yyerror): Constify.
14672 (struct token::oper): Constify.
14673 * d-lang.h (d_yyerror): Constify.
14674 * dbxread.c (struct header_file_location::name): Constify.
14675 (add_old_header_file, add_new_header_file, last_function_name)
14676 (dbx_next_symbol_text, add_bincl_to_list)
14677 (find_corresponding_bincl_psymtab, set_namestring)
14678 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14679 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14680 * defs.h (command_line_input, print_address_symbolic)
14681 (deprecated_readline_begin_hook): Constify.
14682 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14683 Constify.
14684 * event-top.c (handle_line_of_input): Constify and add cast.
14685 * exceptions.c (catch_errors): Constify.
14686 * exceptions.h (catch_errors): Constify.
14687 * expprint.c (print_subexp_standard, op_string, op_name)
14688 (op_name_standard, dump_raw_expression, dump_raw_expression):
14689 * expression.h (op_name, op_string, dump_raw_expression):
14690 Constify.
14691 * f-exp.y (yyerror): Constify.
14692 (struct token::oper): Constify.
14693 (struct f77_boolean_val::name): Constify.
14694 * f-lang.c (f_word_break_characters): Constify.
14695 * f-lang.h (f_yyerror): Constify.
14696 * fork-child.c (fork_inferior): Add cast.
14697 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14698 (new_variant): Constify.
14699 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14700 * gdbarch.c: Regenerate.
14701 * gdbcore.h (set_gnutarget): Constify.
14702 * go-exp.y (yyerror): Constify.
14703 (token::oper): Constify.
14704 * go-lang.h (go_yyerror): Constify.
14705 * go32-nat.c (go32_sysinfo): Constify.
14706 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14707 * guile/scm-cmd.c (cmdscm_function): Constify.
14708 * guile/scm-param.c (pascm_param_value): Constify.
14709 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14710 (h8300sx_register_name): Constify.
14711 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14712 Constify.
14713 * ia64-tdep.c (ia64_register_names): Constify.
14714 * infcmd.c (construct_inferior_arguments): Constify.
14715 (path_command, attach_post_wait): Constify.
14716 * language.c (show_range_command, show_case_command)
14717 (unk_lang_error): Constify.
14718 * language.h (language_defn::la_error)
14719 (language_defn::la_name_of_this): Constify.
14720 * linespec.c (decode_line_2): Constify.
14721 * linux-thread-db.c (thread_db_err_str): Constify.
14722 * lm32-tdep.c (lm32_register_name): Constify.
14723 * m2-exp.y (yyerror): Constify.
14724 * m2-lang.h (m2_yyerror): Constify.
14725 * m32r-tdep.c (m32r_register_names): Constify and make static.
14726 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14727 * m88k-tdep.c (m88k_register_name): Constify.
14728 * macroexp.c (appendmem): Constify.
14729 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14730 (upgrade_type, parse_external, parse_partial_symbols)
14731 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14732 (new_symbol): Constify.
14733 * memattr.c (mem_info_command): Constify.
14734 * mep-tdep.c (register_name_from_keyword): Constify.
14735 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14736 Constify.
14737 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14738 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14739 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14740 cast.
14741 (mi_execute_async_cli_command): Constify.
14742 * mips-tdep.c (mips_register_name): Constify.
14743 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14744 (am33_register_name, am33_2_register_name)
14745 * moxie-tdep.c (moxie_register_names): Constify.
14746 * nat/linux-osdata.c (osdata_type): Constify fields.
14747 * nto-tdep.c (nto_parse_redirection): Constify.
14748 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14749 (lookup_child_selector): Constify.
14750 (objc_methcall::name): Constify.
14751 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14752 (lookup_struct_typedef): Constify.
14753 * objfiles.c (pc_in_section): Constify.
14754 * objfiles.h (pc_in_section): Constify.
14755 * p-exp.y (struct token::oper): Constify.
14756 (yyerror): Constify.
14757 * p-lang.h (pascal_yyerror): Constify.
14758 * parser-defs.h (op_name_standard): Constify.
14759 (op_print::string): Constify.
14760 (exp_descriptor::op_name): Constify.
14761 * printcmd.c (print_address_symbolic): Constify.
14762 * psymtab.c (print_partial_symbols): Constify.
14763 * python/py-breakpoint.c (stop_func): Constify.
14764 (bppy_get_expression): Constify.
14765 * python/py-cmd.c (cmdpy_completer::name): Constify.
14766 (cmdpy_function): Constify.
14767 * python/py-event.c (evpy_add_attribute)
14768 (gdbpy_initialize_event_generic): Constify.
14769 * python/py-event.h (evpy_add_attribute)
14770 (gdbpy_initialize_event_generic): Constify.
14771 * python/py-evts.c (add_new_registry): Constify.
14772 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14773 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14774 * python/py-inferior.c (get_buffer): Add cast.
14775 * python/py-param.c (parm_constant::name): Constify.
14776 * python/py-unwind.c (fprint_frame_id): Constify.
14777 * python/python.c (gdbpy_parameter_value): Constify.
14778 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14779 * remote.c (memory_packet_config::name): Constify.
14780 (show_packet_config_cmd, remote_write_bytes)
14781 (remote_buffer_add_string):
14782 * reverse.c (exec_reverse_once): Constify.
14783 * rs6000-tdep.c (variant::name, variant::description): Constify.
14784 * rust-exp.y (rustyyerror): Constify.
14785 * rust-lang.c (rust_op_name): Constify.
14786 * rust-lang.h (rustyyerror): Constify.
14787 * serial.h (serial_ops::name): Constify.
14788 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14789 (sh_sh3e_register_name, sh_sh2e_register_name)
14790 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14791 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14792 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14793 (sh_sh4al_dsp_register_name): Constify.
14794 * sh64-tdep.c (sh64_register_name): Constify.
14795 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14796 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14797 * stabsread.c (patch_block_stabs, read_type_number)
14798 (ref_map::stabs, ref_add, process_reference)
14799 (symbol_reference_defined, define_symbol, define_symbol)
14800 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14801 (read_one_struct_field, read_struct_fields, read_baseclasses)
14802 (read_tilde_fields, read_struct_type, read_array_type)
14803 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14804 (read_huge_number, read_range_type, read_args, common_block_start)
14805 (find_name_end): Constify.
14806 * stabsread.h (common_block_start, define_symbol)
14807 (process_one_symbol, symbol_reference_defined, ref_add):
14808 * symfile.c (get_section_index, add_symbol_file_command):
14809 * symfile.h (get_section_index): Constify.
14810 * target-descriptions.c (tdesc_type::name): Constify.
14811 (tdesc_free_type): Add cast.
14812 * target.c (find_default_run_target):
14813 (add_deprecated_target_alias, find_default_run_target)
14814 (target_announce_detach): Constify.
14815 (do_option): Constify.
14816 * target.h (add_deprecated_target_alias): Constify.
14817 * thread.c (print_thread_info_1): Constify.
14818 * top.c (deprecated_readline_begin_hook, command_line_input):
14819 Constify.
14820 (init_main): Add casts.
14821 * top.h (handle_line_of_input): Constify.
14822 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14823 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14824 (tfind_command): Rename to ...
14825 (tfind_command_1): ... this and constify.
14826 (tfind_command): New function.
14827 (tfind_end_command, tfind_start_command): Adjust.
14828 (encode_source_string): Constify.
14829 * tracepoint.h (encode_source_string): Constify.
14830 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14831 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14832 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14833 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14834 * tui/tui-win.c (parse_scrolling_args): Constify.
14835 * tui/tui-windata.c (tui_erase_data_content): Constify.
14836 * tui/tui-windata.h (tui_erase_data_content): Constify.
14837 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14838 * tui/tui.c (tui_enable): Add cast.
14839 * utils.c (defaulted_query): Constify.
14840 (init_page_info): Add cast.
14841 (puts_debug, subset_compare): Constify.
14842 * utils.h (subset_compare): Constify.
14843 * varobj.c (varobj_format_string): Constify.
14844 * varobj.h (varobj_format_string): Constify.
14845 * vax-tdep.c (vax_register_name): Constify.
14846 * windows-nat.c (windows_detach): Constify.
14847 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14848 * xml-support.c (gdb_xml_end_element): Constify.
14849 * xml-tdesc.c (tdesc_start_reg): Constify.
14850 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14851 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14852 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14853
995816ba
PA
148542017-04-05 Pedro Alves <palves@redhat.com>
14855
14856 * proc-api.c (struct trans): Constify.
14857 (procfs_note): Constify.
14858 * proc-events.c (struct trans, syscall_table):
14859 * proc-flags.c (struct trans): Constify.
14860 * proc-utils.h (procfs_note): Constify.
14861 * proc-why.c (struct trans): Constify.
14862 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14863 (procfs_detach): Constify.
14864 * sol-thread.c (struct string_map): Constify.
14865 (td_err_string, td_state_string): Constify.
14866
3e83a920
PA
148672017-04-05 Pedro Alves <palves@redhat.com>
14868
14869 * proc-api.c (procfs_filename): Don't initialize
14870 procfs_filename.
14871 (prepare_to_trace): Assume procfs_filename is non-NULL.
14872 (_initialize_proc_api): Give procfs_filename a default value here.
14873
63160a43
PA
148742017-04-05 Pedro Alves <palves@redhat.com>
14875
14876 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14877 'cond_string' parameter.
14878 (extract_exception_regexp): Constify 'string' parameter.
14879 (catch_exception_command_1): Constify.
14880 * breakpoint.c (init_catchpoint)
14881 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14882 parameter.
14883 (ep_parse_optional_if_clause, catch_fork_command_1)
14884 (catch_exec_command_1): Constify.
14885 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14886 parameter.
14887 (ep_parse_optional_if_clause): Constify.
14888 * cli/cli-utils.c (remove_trailing_whitespace)
14889 (check_for_argument): Constify.
14890 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14891 non-const overload.
14892 (check_for_argument): Likewise.
14893
9b2eba3d
PA
148942017-04-05 Pedro Alves <palves@redhat.com>
14895
14896 * event-top.c (command_line_handler): Add cast to execute_command
14897 call.
14898 * record-btrace.c (cmd_record_btrace_bts_start)
14899 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14900 (cmd_record_btrace_start): Add cast to execute_command call.
14901 * record-full.c (record_full_goto_insn):
14902 * record.c (record_start, record_stop): Add cast to
14903 execute_command_to_string calls.
14904 (cmd_record_start): Add cast to execute_command calls.
14905
2adadf51
PA
149062017-04-05 Pedro Alves <palves@redhat.com>
14907
14908 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14909 static inline function.
14910 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14911 array and use gdb_PyArg_ParseTupleAndKeywords.
14912 * python/py-cmd.c (cmdpy_init): Likewise.
14913 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14914 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14915 (infpy_search_memory): Likewise.
14916 * python/py-objfile.c (objfpy_add_separate_debug_file)
14917 (gdbpy_lookup_objfile): Likewise.
14918 * python/py-symbol.c (gdbpy_lookup_symbol)
14919 (gdbpy_lookup_global_symbol): Likewise.
14920 * python/py-type.c (gdbpy_lookup_type): Likewise.
14921 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14922 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14923 Likewise.
14924
0d1f4ceb
PA
149252017-04-05 Pedro Alves <palves@redhat.com>
14926
14927 * python/python-internal.h (gdb_PyGetSetDef): New type.
14928 * python/py-block.c (block_object_getset)
14929 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14930 * python/py-event.c (event_object_getset)
14931 (finish_breakpoint_object_getset): Likewise.
14932 * python/py-inferior.c (inferior_object_getset): Likewise.
14933 * python/py-infthread.c (thread_object_getset): Likewise.
14934 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14935 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14936 * python/py-objfile.c (objfile_getset): Likewise.
14937 * python/py-progspace.c (pspace_getset): Likewise.
14938 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14939 Likewise.
14940 * python/py-record.c (recpy_record_getset): Likewise.
14941 * python/py-symbol.c (symbol_object_getset): Likewise.
14942 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14943 Likewise.
14944 * python/py-type.c (type_object_getset, field_object_getset):
14945 Likewise.
14946 * python/py-value.c (value_object_getset): Likewise.
14947
4d759979
PA
149482017-04-05 Pedro Alves <palves@redhat.com>
14949
14950 * python/python-internal.h (gdb_PyObject_CallMethod)
14951 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14952 New functions.
14953 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14954 (PySys_GetObject, PySys_SetPath): New macros.
14955
fdf9e36f
PA
149562017-04-05 Pedro Alves <palves@redhat.com>
14957
14958 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14959 info_osdata_command.
14960 * osdata.c (info_osdata_command): Rename to ...
14961 (info_osdata): ... this. Constify 'type' parameter, and remove
14962 the 'from_tty' parameter. Accept NULL TYPE.
14963 (info_osdata_command): New function.
14964 * osdata.h (info_osdata_command): Remove declaration.
14965 (info_osdata): New declaration.
14966
9f33b8b7
PA
149672017-04-05 Pedro Alves <palves@redhat.com>
14968
14969 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14970 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14971 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14972 parameter.
14973 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14974 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14975 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14976 parameter.
14977 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14978 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14979 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14980 (mi_cmd_file_list_exec_source_files)
14981 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14982 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14983 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14984 parameter.
14985 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14986 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14987 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14988 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14989 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14990 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14991 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14992 'command' parameter.
14993 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14994 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14995 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14996 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14997 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14998 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14999 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
15000 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
15001 (mi_cmd_var_set_update_range): Constify 'command' parameter.
15002 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
15003 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
15004 parameter.
15005 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
15006 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
15007 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
15008 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
15009 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
15010 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
15011 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
15012 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
15013 (mi_cmd_data_list_changed_registers)
15014 (mi_cmd_data_write_register_values)
15015 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
15016 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
15017 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
15018 (mi_cmd_list_features, mi_cmd_list_target_features)
15019 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
15020 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
15021 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
15022 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
15023 (mi_cmd_trace_frame_collected): Constify 'command'
15024 parameter.
15025 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
15026 'command' parameter.
15027
67cb5b2d
PA
150282017-04-05 Pedro Alves <palves@redhat.com>
15029
15030 * ada-lang.c (ada_completer_word_break_characters): Now a const
15031 array.
15032 (ada_get_gdb_completer_word_break_characters): Constify.
15033 * completer.c (gdb_completer_command_word_break_characters)
15034 (gdb_completer_file_name_break_characters)
15035 (gdb_completer_quote_characters): Now const arrays.
15036 (get_gdb_completer_quote_characters): Constify.
15037 (set_rl_completer_word_break_characters): New function.
15038 (set_gdb_completion_word_break_characters)
15039 (complete_line_internal): Use it.
15040 * completer.h (get_gdb_completer_quote_characters): Constify.
15041 (set_rl_completer_word_break_characters): Declare.
15042 * f-lang.c (f_word_break_characters): Constify.
15043 * language.c (default_word_break_characters): Constify.
15044 * language.h (language_defn::la_word_break_characters): Constify.
15045 (default_word_break_characters): Constify.
15046 * top.c (init_main): Use set_rl_completer_word_break_characters.
15047
7a114964
PA
150482017-04-05 Pedro Alves <palves@redhat.com>
15049
15050 * aix-thread.c (aix_thread_pid_to_str)
15051 (aix_thread_extra_thread_info): Constify.
15052 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
15053 * bsd-uthread.c (bsd_uthread_extra_thread_info)
15054 (bsd_uthread_pid_to_str): Constify.
15055 * corelow.c (core_pid_to_str): Constify.
15056 * darwin-nat.c (darwin_pid_to_str): Constify.
15057 * fbsd-nat.c (fbsd_pid_to_str): Constify.
15058 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
15059 Constify.
15060 * gnu-nat.c (gnu_pid_to_str): Constify.
15061 * go32-nat.c (go32_pid_to_str): Constify.
15062 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
15063 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
15064 * inferior.c (inferior_pid_to_str): Constify.
15065 * linux-nat.c (linux_nat_pid_to_str): Constify.
15066 * linux-tdep.c (linux_core_pid_to_str): Constify.
15067 * linux-thread-db.c (thread_db_pid_to_str)
15068 (thread_db_extra_thread_info): Constify.
15069 * nto-tdep.c (nto_extra_thread_info): Constify.
15070 * nto-tdep.h (nto_extra_thread_info): Constify.
15071 * obsd-nat.c (obsd_pid_to_str): Constify.
15072 * procfs.c (procfs_pid_to_str): Constify.
15073 * ravenscar-thread.c (ravenscar_extra_thread_info)
15074 (ravenscar_pid_to_str): Constify.
15075 * remote-sim.c (gdbsim_pid_to_str): Constify.
15076 * remote.c (remote_threads_extra_info, remote_pid_to_str):
15077 Constify.
15078 * sol-thread.c (solaris_pid_to_str): Constify.
15079 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
15080 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
15081 * target.c (default_pid_to_str, target_pid_to_str)
15082 (normal_pid_to_str, default_pid_to_str): Constify.
15083 * target.h (target_ops::to_pid_to_str)
15084 (target_ops::to_extra_thread_info): Constify.
15085 (target_pid_to_str, normal_pid_to_str): Constify.
15086 * windows-nat.c (windows_pid_to_str): Constify.
15087 * gdbarch.sh (core_pid_to_str): Constify.
15088 * target-delegates.c: Regenerate.
15089 * gdbarch.h, gdbarch.c: Regenerate.
15090
69bbf465
PA
150912017-04-05 Pedro Alves <palves@redhat.com>
15092
15093 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
15094 the memory of the temporary warning_pre_print override.
15095 * utils.c (warning_pre_print): Constify.
15096 * utils.h (warning_pre_print): Constify.
15097
be47f9e8
PA
150982017-04-05 Pedro Alves <palves@redhat.com>
15099
15100 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
15101 (shell_command): New function.
15102 (make_command): Use std::string.
15103 (init_cli_cmds): Register shell_command instead of shell_escape.
15104
bde6261a
PA
151052017-04-05 Pedro Alves <palves@redhat.com>
15106
15107 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
15108 * tracepoint.c (default_collect): Don't initialize.
15109
b38ef47f
PA
151102017-04-05 Pedro Alves <palves@redhat.com>
15111
15112 * macroexp.c (macro_buffer::shared): Now a bool.
15113 (init_buffer): Update.
15114 (init_shared_buffer): Constify 'addr' parameter.
15115 (substitute_args, expand, macro_expand, macro_expand_next): Remove
15116 casts.
15117
f995bbe8
PA
151182017-04-05 Pedro Alves <palves@redhat.com>
15119
15120 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
15121 * disasm.c (set_disassembler_options): Constify local.
15122 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
15123
4a596fe2
SDJ
151242017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
15125
15126 PR gdb/21352
15127 * tracefile.c (tsave_command): Fix argument parsing for '-r'
15128 option.
15129
2cad08ea
YQ
151302017-04-05 Yao Qi <yao.qi@linaro.org>
15131
15132 * frame.c (frame_unwind_register_unsigned): Call
15133 frame_unwind_register_value.
15134
55a98976
YQ
151352017-04-05 Yao Qi <yao.qi@linaro.org>
15136
15137 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
15138 Use gdb_test_multiple, and don't match anchor.
15139
4ac40124
PA
151402017-04-05 Pedro Alves <palves@redhat.com>
15141
15142 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
15143 (Write After Approval): Remove Simon Marchi.
15144
c053b654
PA
151452017-04-05 Pedro Alves <palves@redhat.com>
15146
15147 * common/gdb_optional.h (optional::optional): Make constexpr and
15148 initialize m_dummy.
15149
4c7bf4f9
JB
151502017-04-04 John Baldwin <jhb@FreeBSD.org>
15151
15152 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15153 (amd64fbsd_jmp_buf_reg_offset): Remove.
15154 (amd64fbsd_supply_uthread): Remove function.
15155 (amd64fbsd_collect_uthread): Remove function.
15156 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
15157 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
15158 (x86_64-*-freebsd*): Remove bsd-uthread.o.
15159 (fbsd-nat.c): Update comment.
15160 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15161 (i386fbsd_jmp_buf_reg_offset): Remove.
15162 (i386fbsd_supply_uthread): Remove function.
15163 (i386fbsd_collect_uthread): Remove function.
15164 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
15165
1e1a8bef
JB
151662017-04-04 John Baldwin <jhb@FreeBSD.org>
15167
15168 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
15169 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
15170 * NEWS: Mention that support for FreeBSD/alpha was removed.
15171 * alpha-fbsd-tdep.c: Delete file.
15172 * config/alpha/fbsd.mh: Delete file.
15173 * configure.host: Delete alpha*-*-freebsd* and
15174 alpha*-*-kfreebsd*-gnu.
15175 * configure.tgt: Delete alpha*-*-freebsd* and
15176 alpha*-*-kfreebsd*-gnu.
15177
49907934
JB
151782017-04-04 John Baldwin <jhb@FreeBSD.org>
15179
15180 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
15181 amd64bsd_store_inferior_registers): Use ptid from regcache.
15182
6f77053d
PA
151832017-04-04 Pedro Alves <palves@redhat.com>
15184
15185 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
15186 data fields, make them private and add "m_" prefixes.
15187 (lnp_state_machine::lnp_state_machine): New ctor.
15188 (record_line, check_line_address, handle_set_discriminator)
15189 (handle_set_address, handle_advance_pc, handle_special_opcode)
15190 (handle_advance_line, handle_set_file, handle_negate_stmt)
15191 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
15192 (end_sequence, advance_line): New methods.
15193 (m_gdbarch, m_record_lines_p): New fields.
15194 (lnp_reader_state): Delete.
15195 (dwarf_record_line): Rename to ...
15196 (lnp_state_machine::record_line): ... adjust.
15197 (init_lnp_state_machine): Delete.
15198 (lnp_state_machine::lnp_state_machine): New.
15199 (check_line_address): Rename to ...
15200 (lnp_state_machine::check_line_address): This.
15201 (dwarf_decode_lines_1): Remove reference to "reader_state".
15202 Adjust lnp_state_machine having a non-default ctor. Use bool.
15203 State machine internal state manipulation moved to
15204 lnp_state_machine methods.
15205
9c541725
PA
152062017-04-04 Pedro Alves <palves@redhat.com>
15207
15208 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15209 unittests/offset-type-selftests.c.
15210 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
15211 * common/offset-type.h: New file.
15212 * common/preprocessor.h: New file.
15213 * common/traits.h: New file.
15214 * common/valid-expr.h: New file.
15215 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
15216 sect_offset and cu_offset strong typedefs throughout.
15217 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
15218 typedefs throughout.
15219 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
15220 sect_offset and cu_offset strong typedefs throughout.
15221 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
15222 typedefs throughout.
15223 * gdbtypes.h: Include "common/offset-type.h".
15224 (cu_offset): Now an offset type (strong typedef) instead of a
15225 struct.
15226 (sect_offset): Likewise.
15227 (union call_site_parameter_u): Rename "param_offset" field to
15228 "param_cu_off".
15229 * unittests/offset-type-selftests.c: New file.
15230
ecfb656c
PA
152312017-04-04 Pedro Alves <palves@redhat.com>
15232
15233 * common/underlying.h: New file.
15234 * dwarf2read.c: Include "common/gdb_optional.h" and
15235 "common/underlying.h".
15236 (dir_index, file_name_index): New types.
15237 (file_entry): Use them.
15238 (file_entry::include): Use to_underlying.
15239 (line_header::add_file_name): Use dir_index.
15240 (read_formatted_entries): Use gdb::optional. Read form before
15241 writting to file_entry.
15242 (dwarf_decode_line_header): Use dir_index.
15243 (lnp_state_machine::current_file): Use to_underlying.
15244 (lnp_state_machine::file): Change type to file_name_index.
15245 (dwarf_record_line): Use to_underlying.
15246 (init_lnp_state_machine): Use file_name_index.
15247 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15248
d194f1fe
PA
152492017-04-04 Pedro Alves <palves@redhat.com>
15250
15251 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15252 operator bool, has_value and get methods.
15253
fff8551c
PA
152542017-04-04 Pedro Alves <palves@redhat.com>
15255
15256 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15257 fields.
15258 (line_header): Initialize all data fields. Change type of
15259 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15260 Change type of include_dirs to std::vector<const char *>. Remove
15261 num_include_dirs, include_dirs_size. Change type of file_names to
15262 std::vector<file_entry>. Remove num_file_names, file_names_size.
15263 (line_header::line_header): New.
15264 (line_header::add_include_dir, line_header::add_file_name): New
15265 methods.
15266 (line_header::include_dir_at): Remove NULL check.
15267 (line_header::file_name_at): Add const overload.
15268 (line_header_up): New unique_ptr typedef.
15269 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15270 std::vector. Remove free_line_header call.
15271 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15272 free_line_header call.
15273 (free_cu_line_header): Delete.
15274 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15275 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15276 Adjust to use std::vector.
15277 (free_line_header): Delete.
15278 (free_line_header_voidp): Use delete.
15279 (add_include_dir): Replace with ...
15280 (line_header::add_include_dir): ... this method. Use std::vector.
15281 (add_file_name): Replace with ...
15282 (line_header::add_file_name): ... this method. Use std::vector.
15283 (add_include_dir_stub): Delete.
15284 (read_formatted_entries): Remove memset.
15285 (dwarf_decode_line_header): Return a line_header_up instead of a
15286 raw pointer. Remove cleanup handling. Pass lambdas to
15287 read_formatted_entries. Adjust to use line_header methods.
15288 (dwarf_decode_lines_1): Adjust to use line_header methods.
15289 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15290 use std::vector.
15291
d62a8ae2
SM
152922017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15293
15294 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15295 instead of struct ptid.
15296
db3a1dc7
AH
152972017-05-04 Alan Hayward <alan.hayward@arm.com>
15298
15299 * frame.c (get_frame_register_bytes): Unwind using value.
15300 (put_frame_register_bytes): Likewise.
15301
b1b45502
IB
153022017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15303
15304 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15305 aggregate-like.
15306
ec13808e
JK
153072017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15308
15309 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15310
12316564
YQ
153112017-03-29 Yao Qi <yao.qi@linaro.org>
15312
15313 * gdbthread.h (struct thread_info): Declare constructor and
15314 destructor. Add some in-class member initializers.
15315 * thread.c (free_thread): Remove.
15316 (init_thread_list): Call delete instead of free_thread.
15317 (new_thread): Call thread_info constructor.
15318 (thread_info::thread_info): New function.
15319 (thread_info::~thread_info): New function.
15320 (delete_thread_1): Call delete instead of free_thread.
15321 (make_cleanup_restore_current_thread): Move tp and frame to
15322 inner block.
15323
fe5f7374
AK
153242017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15325
15326 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15327 (arc_skip_prologue): Likewise.
15328 (arc_make_frame_cache): Likewise.
15329 (arc_pv_get_operand): New function.
15330 (arc_is_in_prologue): Likewise.
15331 (arc_analyze_prologue): Likewise.
15332 (arc_print_frame_cache): Likewise.
15333 (MAX_PROLOGUE_LENGTH): New constant.
15334
eea78757
AK
153352017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15336
15337 * configure.tgt: Add arc-insn.o.
15338 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15339 (dump_arc_instruction_command): New function.
15340 (arc_fprintf_disasm): Likewise.
15341 (arc_disassemble_info): Likewise.
15342 (arc_insn_get_operand_value): Likewise.
15343 (arc_insn_get_operand_value_signed): Likewise.
15344 (arc_insn_get_memory_base_reg): Likewise.
15345 (arc_insn_get_memory_offset): Likewise.
15346 (arc_insn_get_branch_target): Likewise.
15347 (arc_insn_dump): Likewise.
15348 (arc_insn_get_linear_next_pc): Likewise.
15349 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15350 (arc_disassemble_info): Likewise.
15351 (arc_insn_get_branch_target): Likewise.
15352 (arc_insn_get_linear_next_pc): Likewise.
15353 * NEWS: Mention new "maint print arc arc-instruction".
15354
3be78afd
AK
153552017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15356
15357 * arc-tdep (maintenance_print_arc_list): New variable.
15358 (maintenance_print_arc_command): New function.
15359
296ec4fa
AK
153602017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15361
15362 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15363 Add "limm" and "reserved".
15364 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15365 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15366 * arc-tdep.h (arc_regnum): Likewise.
15367
f74f865e
MF
153682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15369
15370 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15371 for THREADPTR register.
15372 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15373 register.
15374 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15375 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15376 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15377
0d0bf81a
MF
153782017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15379
15380 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15381 registers above gdbarch_num_regs (gdbarch) as privileged in
15382 call0 ABI.
15383
0ce4291e
MF
153842017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15385
15386 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15387 for a single specified register or for all registers in
15388 a0_base..a0_base + C0_NREGS range.
15389 (supply_gregset_reg): Call regcache_raw_supply for a single
15390 specified register or for all registers in a0_base..a0_base +
15391 C0_NREGS range.
15392
c56054f9
MF
153932017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15394
15395 * arch/xtensa.h (C0_NREGS): Add definition.
15396 * xtensa-tdep.c (C0_NREGS): Remove definition.
15397
a4398628
MF
153982017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15399
15400 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15401 Drop xtensa_default_isa initialization.
15402 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15403
8c43009f
PA
154042017-03-27 Pedro Alves <palves@redhat.com>
15405
15406 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15407 (file_entry::include_dir): New method.
15408 (line_header::include_dir_at, line_header::file_name_at): New
15409 methods.
15410 (setup_type_unit_groups, setup_type_unit_groups)
15411 (psymtab_include_file_name): Simplify using the new methods.
15412 (lnp_state_machine) <the_line_header>: New field.
15413 <file>: Add comment.
15414 (lnp_state_machine::current_file): New method.
15415 (dwarf_record_line): Simplify using the new methods.
15416 (init_lnp_state_machine): Initialize the "the_line_header" field.
15417 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15418 Simplify using the new methods.
15419
a7e80b9e
PA
154202017-03-27 Pedro Alves <palves@redhat.com>
15421
15422 * cp-name-parser.y (make_empty): Delete.
15423 (demangler_special, nested_name, ptr_operator, array_indicator)
15424 (direct_declarator, declarator_1): Use fill_comp instead of
15425 make_empty.
15426
21047726
PA
154272017-03-27 Pedro Alves <palves@redhat.com>
15428
15429 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15430 to ATTRIBUTE_PRINTF.
15431 * solib-target.c (library_list_start_list): Print "string" not
15432 "version".
15433 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15434 gdb_xml_error call.
15435
d721ba37
PA
154362017-03-27 Pedro Alves <palves@redhat.com>
15437
15438 * dwarf2read.c (struct file_and_directory): New.
15439 (dwarf2_get_dwz_file): Adjust to use std::string.
15440 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15441 (find_file_and_directory): Adjust to return a file_and_directory
15442 object.
15443 (read_file_scope): Adjust to use file_and_directory. Remove
15444 make_cleanup/do_cleanups calls.
15445 (open_and_init_dwp_file): Adjust to use std::string. Remove
15446 make_cleanup/do_cleanups calls.
15447 * python/python.c (do_start_initialization): Adjust to ldirname
15448 returning a std::string.
15449 * utils.c (ldirname): Now returns a std::string.
15450 * utils.h (ldirname): Change return type to std::string.
15451 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15452 returning a std::string.
15453 * xml-tdesc.c (file_read_description_xml): Likewise.
15454
ed771251
AH
154552017-03-24 Alan Hayward <alan.hayward@arm.com>
15456
15457 * regcache.c (regcache_debug_print_register): New function.
15458 * regcache.h (regcache_debug_print_register): New declaration.
15459 * target.c (debug_print_register): Remove.
15460 (target_fetch_registers): Call regcache_debug_print_register.
15461 (target_store_registers): Likewise.
15462
568c1b9f
PB
154632017-03-24 Pádraig Brady <pbrady@fb.com>
15464
15465 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15466 reference beyond the 'lh->include_dirs' array before accessing to
15467 it.
15468 (psymtab_include_file_name): Likewise.
15469 (dwarf_decode_lines_1): Likewise.
15470 (dwarf_decode_lines): Likewise.
15471 (file_file_name): Likewise.
15472
3e00d44f
SM
154732017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15474
15475 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15476 inferior_ptid.
15477 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15478 ps_lsetfpregs): Likewise.
15479 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15480 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15481 ps_lsetfpregs): Likewise.
15482 * target.c (target_fetch_registers, target_store_registers):
15483 Remove asserts.
15484
077ae656
AH
154852017-03-23 Alan Hayward <alan.hayward@arm.com>
15486
15487 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15488
1e2b521d
YQ
154892017-03-23 Yao Qi <yao.qi@linaro.org>
15490
15491 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15492 (_initialize_aarch64_tdep): Register it.
15493 (aarch64_record_load_store): Handle PRFM instruction.
15494 (aarch64_process_record_test): New function.
15495
33877125
YQ
154962017-03-23 Yao Qi <yao.qi@linaro.org>
15497
15498 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15499 indentation.
15500
a0eef940
YQ
155012017-03-23 Yao Qi <yao.qi@linaro.org>
15502
15503 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15504
3f2a3564
PR
155052017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15506
15507 python/python.c (do_start_initialization): Fix memory leak.
15508
b67aeab0
SM
155092017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15510
15511 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15512 using get_ptrace_pid.
15513 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15514 inferior_ptid.
15515 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15516 inferior_ptid instead of pid.
15517
ffdbe864
YQ
155182017-03-22 Yao Qi <yao.qi@linaro.org>
15519
15520 * aarch64-tdep.c: Wrap locally used classes in anonymous
15521 namespace.
15522 * arm-tdep.c: Likewise.
15523 * linespec.c: Likewise.
15524 * ui-out.c: Likewise.
15525
9d736fbf
JG
155262017-03-22 Jonah Graham <jonah@kichwacoders.com>
15527
15528 PR gdb/19637
15529 * python/lib/gdb/printer/bound_registers.py: Import sys.
15530
3de88e9a
SM
155312017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15532
15533 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15534 windows_thread_info parameter and use it instead of
15535 current_thread.
15536 (windows_fetch_inferior_registers): Don't set current_thread,
15537 pass the thread to do_windows_fetch_inferior_registers. Use
15538 ptid from regcache instead of inferior_ptid.
15539 (do_windows_store_inferior_registers): Add windows_thread_info
15540 parameter and use it instead of current_thread.
15541 (windows_store_inferior_registers): Don't set current_thread,
15542 pass the thread to do_windows_store_inferior_registers. Use
15543 ptid from regcache instead of inferior_ptid.
15544
0e7b8f61
SM
155452017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15546
15547 * ser-mingw.c (ser_windows_raw): Remove reference to
15548 struct serial::current_timeout.
15549
5badf10a
IR
155502017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15551
15552 PR tdep/20928
15553 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15554 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15555 (sparc64_fsr_type): Fix %fsr decoding.
15556
cee59b3f
TW
155572017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15558
15559 * python/py-record-btrace.c (btpy_insn_data): Change return type
15560 for Python 2.
15561
639a9038
SM
155622017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15563
15564 * spu-linux-nat.c (spu_fetch_inferior_registers,
15565 spu_store_inferior_registers): Use ptid from regcache, set and
15566 restore inferior_ptid.
15567 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15568 Likewise.
15569
bcc0c096
SM
155702017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15571
15572 * i386-linux-nat.c (fetch_register, store_register,
15573 i386_linux_fetch_inferior_registers,
15574 i386_linux_store_inferior_registers): Use ptid from regcache.
15575 * ia64-linux-nat.c (ia64_linux_fetch_register,
15576 ia64_linux_store_register): Likewise.
15577 * inf-ptrace.c (inf_ptrace_fetch_register,
15578 inf_ptrace_store_register): Likewise.
15579 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15580 m32r_linux_store_inferior_registers): Likewise.
15581 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15582 m68kbsd_store_inferior_registers): Likewise.
15583 * m68k-linux-nat.c (fetch_register, store_register,
15584 m68k_linux_fetch_inferior_registers,
15585 m68k_linux_store_inferior_registers): Likewise.
15586 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15587 m88kbsd_store_inferior_registers): Likewise.
15588 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15589 mips_fbsd_store_inferior_registers): Likewise.
15590 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15591 mips64_linux_regsets_store_registers): Likewise.
15592 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15593 mipsnbsd_store_inferior_registers): Likewise.
15594 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15595 mips64obsd_store_inferior_registers): Likewise.
15596 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15597 Likewise.
15598 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15599 ppcfbsd_store_inferior_registers): Likewise.
15600 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15601 ppc_linux_store_inferior_registers): Likewise.
15602 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15603 ppcnbsd_store_inferior_registers): Likewise.
15604 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15605 ppcobsd_store_registers): Likewise.
15606 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15607 Likewise.
15608 * ravenscar-thread.c (ravenscar_fetch_registers,
15609 ravenscar_store_registers, ravenscar_prepare_to_store):
15610 Likewise.
15611 * record-btrace.c (record_btrace_fetch_registers,
15612 record_btrace_store_registers, record_btrace_prepare_to_store):
15613 Likewise.
15614 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15615 Lookup inferior using ptid from regcache, instead of
15616 current_inferior.
15617 * remote.c (remote_fetch_registers, remote_store_registers): Use
15618 ptid from regcache.
15619 * rs6000-nat.c (fetch_register, store_register): Likewise.
15620 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15621 s390_linux_store_inferior_registers): Likewise.
15622 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15623 shnbsd_store_inferior_registers): Likewise.
15624 * sol-thread.c (sol_thread_fetch_registers,
15625 sol_thread_store_registers): Likewise.
15626 * sparc-nat.c (sparc_fetch_inferior_registers,
15627 sparc_store_inferior_registers): Likewise.
15628 * tilegx-linux-nat.c (fetch_inferior_registers,
15629 store_inferior_registers): Likewise.
15630 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15631 vaxbsd_store_inferior_registers): Likewise.
15632 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15633 store_xtregs): Likewise.
15634
c0f55cc6
AV
156352017-03-20 Artemiy Volkov <artemiyv@acm.org>
15636
15637 PR gdb/14441
15638 * NEWS: Mention support for rvalue references in GDB and python.
15639 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15640 supports both lvalue and rvalue references.
15641
15c0a2a9
AV
156422017-03-20 Artemiy Volkov <artemiyv@acm.org>
15643
15644 PR gdb/14441
15645 * gdbtypes.c (rank_one_type): Implement overloading
15646 resolution rules regarding rvalue references.
15647
aa006118
AV
156482017-03-20 Artemiy Volkov <artemiyv@acm.org>
15649
15650 PR gdb/14441
15651 * aarch64-tdep.c (aarch64_type_align)
15652 (aarch64_extract_return_value, aarch64_store_return_value): Change
15653 lvalue reference type checks to general reference type checks.
15654 * amd64-tdep.c (amd64_classify): Likewise.
15655 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15656 Likewise.
15657 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15658 (arm_store_return_value): Likewise.
15659 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15660 * c-typeprint.c (c_print_type): Likewise.
15661 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15662 (cplus_number_of_children, cplus_describe_child): Likewise.
15663 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15664 * completer.c (expression_completer): Likewise.
15665 * cp-support.c (make_symbol_overload_list_adl_namespace):
15666 Likewise.
15667 * darwin-nat-info.c (info_mach_region_command): Likewise.
15668 * dwarf2loc.c (entry_data_value_coerce_ref)
15669 (value_of_dwarf_reg_entry): Likewise.
15670 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15671 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15672 Likewise.
15673 * findvar.c (extract_typed_address, store_typed_address):
15674 Likewise.
15675 * gdbtypes.c (rank_one_type): Likewise.
15676 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15677 * infcall.c (value_arg_coerce): Likewise.
15678 * language.c (pointer_type): Likewise.
15679 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15680 Likewise.
15681 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15682 * mn10300-tdep.c (mn10300_type_align): Likewise.
15683 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15684 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15685 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15686 Likewise.
15687 * printcmd.c (print_formatted, x_command): Likewise.
15688 * python/py-type.c (typy_get_composite, typy_template_argument):
15689 Likewise.
15690 * python/py-value.c (valpy_referenced_value)
15691 (valpy_get_dynamic_type, value_has_field): Likewise.
15692 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15693 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15694 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15695 * spu-tdep.c (spu_scalar_value_p): Likewise.
15696 * symtab.c (lookup_symbol_aux): Likewise.
15697 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15698 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15699 Likewise.
15700 * valops.c (value_cast_pointers, value_cast)
15701 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15702 (value_struct_elt, value_struct_elt_bitpos)
15703 (value_find_oload_method_list, find_overload_match)
15704 (value_rtti_indirect_type): Likewise.
15705 * valprint.c (val_print_scalar_type_p, generic_val_print):
15706 Likewise.
15707 * value.c (value_actual_type, value_as_address, unpack_long)
15708 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15709 (coerce_ref): Likewise.
15710 * varobj.c (varobj_get_value_type): Likewise.
15711
3fcf899d
AV
157122017-03-20 Artemiy Volkov <artemiyv@acm.org>
15713
15714 PR gdb/14441
15715 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15716 table of constants.
15717 * python/lib/gdb/command/explore.py: Support exploring values
15718 of rvalue reference types.
15719 * python/lib/gdb/types.py: Implement get_basic_type() for
15720 rvalue reference types.
15721 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15722 constant.
15723 * python/py-value.c (valpy_getitem): Add an rvalue reference
15724 check.
15725 (valpy_reference_value): Add new parameter "refcode".
15726 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15727 New wrappers for valpy_reference_value().
15728 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15729 (gdbpy_invoke_xmethod): Likewise.
15730
4297a3f0
AV
157312017-03-20 Artemiy Volkov <artemiyv@acm.org>
15732
15733 PR gdb/14441
15734 * dwarf2read.c (process_die, read_type_die_1): Handle the
15735 DW_TAG_rvalue_reference_type DIE.
15736 (read_tag_reference_type): Add new parameter "refcode".
15737
e1cb3213
AV
157382017-03-20 Artemiy Volkov <artemiyv@acm.org>
15739
15740 PR gdb/14441
15741 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15742 (c_type_print_modifier, c_type_print_varspec_suffix)
15743 (c_type_print_base): Support printing rvalue reference types.
15744 * c-valprint.c (c_val_print, c_value_print): Support printing
15745 rvalue reference values.
15746
e4347c89
AV
157472017-03-20 Artemiy Volkov <artemiyv@acm.org>
15748
15749 PR gdb/14441
15750 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15751 typename.
15752 * cp-support.c (replace_typedefs): Handle
15753 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15754 * python/py-type.c (typy_lookup_type): Likewise.
15755
53cc15f5
AV
157562017-03-20 Artemiy Volkov <artemiyv@acm.org>
15757
15758 PR gdb/14441
15759 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15760 * parse.c (insert_type): Change assert statement.
15761 (follow_types): Handle rvalue reference types.
15762 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15763 constant.
15764
a65cfae5
AV
157652017-03-20 Artemiy Volkov <artemiyv@acm.org>
15766
15767 PR gdb/14441
15768 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15769 value_ref() interface.
15770 * c-valprint.c (c_value_print): Likewise.
15771 * infcall.c (value_arg_coerce): Likewise.
15772 * python/py-value.c (valpy_reference_value): Likewise.
15773 * valops.c (value_cast, value_reinterpret_cast)
15774 (value_dynamic_cast, typecmp): Likewise.
15775 (value_ref): Parameterize by kind of return value reference type.
15776 * value.h (value_ref): Add new parameter "refcode".
15777
3b224330
AV
157782017-03-20 Artemiy Volkov <artemiyv@acm.org>
15779
15780 PR gdb/14441
15781 * dwarf2read.c (read_tag_reference_type): Use
15782 lookup_lvalue_reference_type() instead of lookup_reference_type().
15783 * eval.c (evaluate_subexp_standard): Likewise.
15784 * f-exp.y: Likewise.
15785 * gdbtypes.c (make_reference_type, lookup_reference_type):
15786 Generalize with rvalue reference types.
15787 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15788 convenience wrappers for lookup_reference_type().
15789 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15790 reference kind parameter.
15791 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15792 wrappers for lookup_reference_type().
15793 * guile/scm-type.c (gdbscm_type_reference): Use
15794 lookup_lvalue_reference_type() instead of lookup_reference_type().
15795 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15796 * parse.c (follow_types): Likewise.
15797 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15798 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15799 Likewise.
15800 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15801 (gdbpy_invoke_xmethod): Likewise.
15802 * stabsread.c: Provide extra argument to make_reference_type()
15803 call.
15804 * valops.c (value_ref, value_rtti_indirect_type): Use
15805 lookup_lvalue_reference_type() instead of lookup_reference_type().
15806
f9aeb8d4
AV
158072017-03-20 Artemiy Volkov <artemiyv@acm.org>
15808
15809 PR gdb/14441
15810 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15811 (TYPE_IS_REFERENCE): New macro.
15812 (struct type): Add rvalue_reference_type field.
15813 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15814
51457a05
MAL
158152017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15816
15817 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15818 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15819 New function definition.
15820 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15821 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15822 New function declaration.
15823 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15824 * mi/mi-interp.h: New file.
15825 * solib.c (info_sharedlibrary_command): Replace for loop with
15826 ALL_SO_LIBS macro
15827 * solib.h (update_solib_list): New function declaration.
15828 (so_list_head): Move macro.
15829 * solist.h (ALL_SO_LIBS): New macro.
15830
e696b3ad
MAL
158312017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15832
15833 * infcmd.c (post_create_inferior): Remove unused argument in
15834 call to solib_add.
15835 * remote.c (remote_start_remote): Likewise.
15836 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15837 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15838 (enable_break): Likewise.
15839 * solib.c (update_solib_list): Remove unused target argument
15840 and its documentation.
15841 (solib_add): Remove unused target argument. Remove unused
15842 argument in call to update_solib_list.
15843 (info_sharedlibrary_command): Remove unused argument in call
15844 to update_solib_list.
15845 (sharedlibrary_command): Remove unused argument in call to
15846 solib_add.
15847 (handle_solib_event): Likewise.
15848 (reload_shared_libraries): Likewise.
15849 * solib.h (solib_add): Remove unused target argument.
15850
dcb84eda
AA
158512017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15852
15853 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15854 (s390_displaced_step_fixup): Cover relative branches with the
15855 default fixup handling. This fixes lack of support for some
15856 relative branch instructions.
15857
d9cb6cdc
SM
158582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15859
15860 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15861 ptid from regcache.
15862
1afaf9f4
SM
158632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15864
15865 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15866 i386_darwin_store_inferior_registers): Use ptid from regcache.
15867
aac12e24
SM
158682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15869
15870 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15871 i386bsd_store_inferior_registers): Use ptid from regcache.
15872
bbe1eef1
SM
158732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15874
15875 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15876 hppaobsd_store_registers): Use ptid from regcache.
15877
10799020
SM
158782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15879
15880 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15881 hppanbsd_store_registers): Use ptid from regcache.
15882
00204cf7
SM
158832017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15884
15885 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15886 from regcache. Use get_ptrace_pid.
15887
11a33714
SM
158882017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15889
15890 * corelow.c (get_core_register_section): Use ptid from regcache,
15891 update doc.
15892
317cd492
SM
158932017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15894
15895 * bsd-uthread.c (bsd_uthread_fetch_registers,
15896 bsd_uthread_store_registers): Use ptid from regcache, set and
15897 restore inferior_ptid.
15898
9ac8a7c2
SM
158992017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15900
15901 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15902 fetch_fp_regs, store_register, store_regs, store_fp_register,
15903 store_fp_regs): Use ptid from regcache.
15904
4ac4bb6a
SM
159052017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15906
15907 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15908 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15909 store_vfp_regs): Use ptid from regcache.
15910
9bcbdca8
PA
159112017-03-17 Pedro Alves <palves@redhat.com>
15912
15913 PR remote/21188
15914 * ser-base.c (ser_base_wait_for): Add comment.
15915 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15916 version.
15917 * ser-unix.c (hardwire_raw): Remove reference to
15918 scb->current_timeout.
15919 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15920 (hardwire_ops): Install ser_base_readchar instead of
15921 hardwire_readchar.
15922 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15923 Remove fields.
15924
7503099f
JG
159252017-03-17 Jonah Graham <jonah@kichwacoders.com>
15926
15927 PR gdb/19637
15928 * python/lib/gdb/printer/bound_registers.py: Add support for
15929 Python 3.
15930
7942e96e
AA
159312017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15932
15933 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15934 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15935 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15936 byte_offset to subobj_byte_offset. Fix the handling of
15937 DWARF_VALUE_STACK on big-endian targets when coming via an
15938 implicit pointer.
15939 (dwarf2_evaluate_loc_desc): Adjust call to
15940 dwarf2_evaluate_loc_desc_full.
15941 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15942 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15943
ba14f379
YQ
159442017-03-16 Yao Qi <yao.qi@linaro.org>
15945
15946 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15947 and REVSH instructions.
15948
b121eeb9
YQ
159492017-03-16 Yao Qi <yao.qi@linaro.org>
15950
15951 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15952 (arm_record_test): Declare.
15953 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15954 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15955 align with the manual.
15956 (thumb_record_misc): Adjust the code order to align with the
15957 manual.
15958 (thumb2_record_decode_insn_handler): Fix instruction matching.
15959 (instruction_reader_thumb): New class.
15960 (arm_record_test): New function.
15961
728a7913
YQ
159622017-03-16 Yao Qi <yao.qi@linaro.org>
15963
15964 * arm-tdep.c (abstract_memory_reader): New class.
15965 (instruction_reader): New class.
15966 (extract_arm_insn): Add argument 'reader'. Callers updated.
15967 (decode_insn): Likewise.
15968
34b43320
DE
159692017-03-16 Doug Evans <dje@google.com>
15970
a7c0469f
DE
15971 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15972 member. Change type of TYPE member to SCM. All uses updated.
15973 (lsscm_make_lazy_string_smob): Add assert.
15974 (lsscm_make_lazy_string): Flag bad length values.
15975 (lsscm_elt_type): New function.
15976 (gdbscm_lazy_string_to_value): Rewrite to use
15977 lsscm_safe_lazy_string_to_value.
15978 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15979 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15980 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15981 in incoming type.
15982 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15983 * guile/scm-type.c (tyscm_scm_to_type): New function.
15984
159852017-03-15 Doug Evans <dje@google.com>
15986
34b43320
DE
15987 PR python/17728, python/18439, python/18779
15988 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15989 member. Change type of TYPE member to PyObject *. All uses updated.
15990 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15991 (gdbpy_create_lazy_string_object): Flag bad length values.
15992 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15993 Handle typedefs in incoming type.
15994 (stpy_lazy_string_elt_type): New function.
15995 (gdbpy_extract_lazy_string): Call it.
15996 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15997 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15998 typedefs in incoming type.
15999
a3a5fecc
DE
160002017-03-16 Doug Evans <dje@google.com>
16001
16002 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
16003 * guile/scm-type.c (tyscm_scm_to_type): New function.
16004
28f1c605
JW
160052017-03-16 Jiong Wang <jiong.wang@arm.com>
16006
16007 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
16008 "ULONGEST" for "skip".
16009
87c336f6
AA
160102017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16011
16012 PR gdb/21220
16013 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
16014 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
16015 (inf_ptrace_peek_poke): ...here. New function. Now also loop
16016 over ptrace peek/poke until end of buffer or error.
16017
cf81cf60
SM
160182017-03-14 Simon Marchi <simon.marchi@ericsson.com>
16019
16020 * parse.c (length_of_subexp): Make static.
16021 * parser-defs.h (length_of_subexp): Remove.
16022
a379284a
AA
160232017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
16024
16025 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
16026 as well.
16027
8a6200ba
PA
160282017-03-14 Pedro Alves <palves@redhat.com>
16029
16030 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
16031 (main): Use std::unique_ptr. Remove calls to
16032 cp_demangled_name_parse_free.
16033
f79ec206
SM
160342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16035
16036 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
16037 alphabsd_store_inferior_registers): Use regcache->ptid instead
16038 of inferior_ptid.
16039
edb5fb00
SM
160402017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16041
16042 * aix-thread.c (aix_thread_fetch_registers,
16043 aix_thread_store_registers): Use regcache->ptid instead of
16044 inferior_ptid.
16045
55119686
SM
160462017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16047
16048 * aarch64-linux-nat.c (fetch_gregs_from_thread,
16049 store_gregs_to_thread, fetch_fpregs_from_thread,
16050 store_fpregs_to_thread): Use regcache->ptid instead of
16051 inferior_ptid.
16052
6a06fbb7
SM
160532017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16054
16055 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
16056 amd64_linux_fetch_inferior_registers): Use regcache->ptid
16057 instead of inferior_ptid.
16058
c6386875
SM
160592017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16060
16061 * target.c (target_fetch_registers, target_store_registers): Add
16062 assert.
16063
ddaaf0fb
SM
160642017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
16065
16066 * regcache.h (regcache_get_ptid): New function.
16067 * regcache.c (regcache_get_ptid): New function.
16068
b9da89d1 160692017-03-13 Mark Wielaard <mark@klomp.org>
16070
16071 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
16072
5f4d1085
KS
160732017-03-10 Keith Seitz <keiths@redhat.com>
16074
16075 PR c++/8218
16076 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
16077
c65d6b55
PA
160782017-03-08 Pedro Alves <palves@redhat.com>
16079
16080 PR gdb/18360
16081 * infrun.c (start_step_over, do_target_resume, resume)
16082 (restart_threads): Assert we're not resuming a thread that is
16083 meant to be stopped.
16084 (infrun_thread_stop_requested_callback): Delete.
16085 (infrun_thread_stop_requested): If the thread is internally
16086 stopped, queue a pending stop event and clear the thread's
16087 inline-frame state.
16088 (handle_stop_requested): New function.
16089 (handle_syscall_event, handle_inferior_event_1): Use
16090 handle_stop_requested.
16091 (handle_stop_requested): New function.
16092 (handle_signal_stop): Set the thread's stop_signal here instead of
16093 at caller.
16094 (finish_step_over): Clear step over info unconditionally.
16095 (handle_signal_stop): If the user had interrupted the event
16096 thread, consider the stop a random signal.
16097 (handle_signal_stop) <signal arrived while stepping over
16098 breakpoint>: Don't restart threads here.
16099 (stop_waiting): Don't clear step-over info here.
16100
15c22686
PA
161012017-03-08 Pedro Alves <palves@redhat.com>
16102
16103 PR 21206
16104 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
16105 goes to argument 2, not 1.
16106
6e5d74e7
PA
161072017-03-08 Pedro Alves <palves@redhat.com>
16108
16109 PR cli/21218
16110 * top.c (gdb_readline_wrapper): Avoid passing NULL to
16111 display_gdb_prompt.
16112 (command_line_input): Add comment.
16113
9753a2f6
PA
161142017-03-08 Pedro Alves <palves@redhat.com>
16115
16116 PR tui/21216
16117 * tui/tui-file.c (tui_file::write): New.
16118 * tui/tui-file.h (tui_file): Override "write".
16119 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
16120 factored out from ...
16121 (tui_puts): ... here.
16122 (tui_putc): Use them.
16123 (tui_write): New function.
16124 * tui/tui-io.h (tui_write): Declare.
16125
1672e0d9
SDJ
161262017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
16127
16128 * Makefile.in (SFILES): Replace "environ.c" with
16129 "common/environ.c".
16130 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
16131 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
16132 to...
16133 * common/environ.c: ... here.
16134 * environ.h: Moved to...
16135 * common/environ.h: ... here.
16136
f7bb4e3a
PB
161372017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16138
16139 * gdbarch.sh (pstring_ptr): New static function.
16140 (gdbarch_disassembler_options): Use it.
16141 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
16142 not valid_disassembler_option->name.
16143 * gdbarch.c: Regenerate.
16144
e45ced6c
PB
161452017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16146
16147 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
16148
5f6fd321
PA
161492017-03-07 Pedro Alves <palves@redhat.com>
16150
16151 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
16152
6dbb839a 161532017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
16154
16155 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
16156 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
16157 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 16158 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 16159
d274ecf4
SM
161602017-03-06 Simon Marchi <simon.marchi@ericsson.com>
16161
16162 * xtensa-linux-nat.c (fetch_gregs): Remove const.
16163
df97be55
SM
161642017-03-03 Simon Marchi <simon.marchi@ericsson.com>
16165
16166 * remote.c (remote_add_target_side_commands): Use range-based
16167 for loop.
16168
7d45f3df
YQ
161692017-03-03 Yao Qi <yao.qi@linaro.org>
16170
16171 PR gdb/21165
16172 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
16173 value is lazy.
16174 * valprint.c (common_val_print): Likewise.
16175
65b48a81
PB
161762017-02-28 Peter Bergner <bergner@vnet.ibm.com>
16177
16178 * NEWS: Mention new set/show disassembler-options commands.
16179 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
16180 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
16181 (prospective_options): New static variable.
16182 (gdb_disassembler::gdb_disassembler): Initialize
16183 m_di.disassembler_options.
16184 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
16185 (get_disassembler_options): New function.
16186 (set_disassembler_options): Likewise.
16187 (set_disassembler_options_sfunc): Likewise.
16188 (show_disassembler_options_sfunc): Likewise.
16189 (disassembler_options_completer): Likewise.
16190 (_initialize_disasm): Likewise.
16191 * disasm.h (get_disassembler_options): New prototype.
16192 (set_disassembler_options): Likewise.
16193 * gdbarch.sh (gdbarch_disassembler_options): New variable.
16194 (gdbarch_verify_disassembler_options): Likewise.
16195 * gdbarch.c: Regenerate.
16196 * gdbarch.h: Likewise.
16197 * arm-tdep.c (num_disassembly_options): Delete.
16198 (set_disassembly_style): Likewise.
16199 (arm_disassembler_options): New static variable.
16200 (set_disassembly_style_sfunc): Convert short style name into long
16201 option name. Call set_disassembler_options.
16202 (show_disassembly_style_sfunc): New function.
16203 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
16204 set_gdbarch_verify_disassembler_options.
16205 (_initialize_arm_tdep): Delete regnames variable and update callers.
16206 (arm_disassembler_options): Initialize.
16207 (disasm_options): New variable.
16208 (num_disassembly_options): Rename from this...
16209 (num_disassembly_styles): ...to this. Compute by scanning through
16210 disasm_options.
16211 (valid_disassembly_styles): Initialize using disasm_options.
16212 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
16213 set_arm_regname_option.
16214 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
16215 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
16216 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
16217 set_gdbarch_verify_disassembler_options.
16218 * s390-tdep.c (s390_disassembler_options): New static variable.
16219 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
16220 set_gdbarch_verify_disassembler_options.
16221
d538e36d
SM
162222017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16223
16224 * remote.c (remote_add_target_side_condition): Remove "struct"
16225 keyword from range-based for loop.
16226
83621223
SM
162272017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16228
16229 * remote.c (remote_add_target_side_condition): Use range-based
16230 for loop. Update comment.
16231
2123df0e
YQ
162322017-02-27 Yao Qi <yao.qi@linaro.org>
16233
16234 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16235
8e368124
AH
162362017-02-26 Alan Hayward <alan.hayward@arm.com>
16237
16238 * regcache.c (regcache_raw_update): New function.
16239 (regcache_raw_read): Move code to regcache_raw_update.
16240 * regcache.h (regcache_raw_update): New declaration.
16241 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16242
a49dd8dd
JK
162432017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16244
16245 * dwarf2read.c (create_debug_type_hash_table): Initialize
16246 header.signature and header.type_offset_in_tu.
16247
34e4bae9
PA
162482017-02-24 Pedro Alves <palves@redhat.com>
16249
16250 * symtab.c (make_file_symbol_completion_list_1): Use
16251 add_symtab_completions.
16252
b0e4b369
AH
162532017-02-24 Alan Hayward <alan.hayward@arm.com>
16254
16255 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16256
975c21ab
AH
162572017-02-24 Alan Hayward <alan.hayward@arm.com>
16258
16259 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16260 I386_MAX_REGISTER_SIZE.
16261 (i386_pseudo_register_write): Likewise.
16262 (i386_process_record): Likewise.
16263 * i387-tdep.c (i387_supply_xsave): Likewise.
16264 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16265 (store_register): Likewise.
16266
14bc53a8
PA
162672017-02-23 Pedro Alves <palves@redhat.com>
16268
16269 * ada-lang.c: Include "common/function-view.h".
16270 (ada_iterate_over_symbols): Adjust to use function_view as
16271 callback type.
16272 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16273 (ada_make_symbol_completion_list): Use a lambda.
16274 (ada_exc_search_name_matches): Delete.
16275 (name_matches_regex): New.
16276 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16277 * compile/compile-c-support.c: Include "common/function-view.h".
16278 (print_one_macro): Change prototype to accept a ui_file pointer.
16279 (write_macro_definitions): Use a lambda.
16280 * dwarf2read.c: Include "common/function-view.h".
16281 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16282 (dw2_expand_symtabs_matching): Adjust to use function_view as
16283 callback type.
16284 * language.h: Include "common/function-view.h".
16285 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16286 function_view as callback type.
16287 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16288 * linespec.c: Include "common/function-view.h".
16289 (collect_info::add_symbol): New method.
16290 (struct symbol_and_data_callback, iterate_inline_only, struct
16291 symbol_matcher_data, iterate_name_matcher): Delete.
16292 (iterate_over_all_matching_symtabs): Adjust to use function_view
16293 as callback type and lambdas.
16294 (iterate_over_file_blocks): Adjust to use function_view as
16295 callback type.
16296 (decode_compound_collector): Now a class with private fields.
16297 (decode_compound_collector::release_symbols): New method.
16298 (collect_one_symbol): Rename to...
16299 (decode_compound_collector::operator()): ... this and adjust.
16300 (lookup_prefix_sym): decode_compound_collector construction bits
16301 move to decode_compound_collector ctor. Pass the
16302 decode_compound_collector object directly as callback. Remove
16303 cleanups and use decode_compound_collector::release_symbols
16304 instead.
16305 (symtab_collector): Now a class with private fields.
16306 (symtab_collector::release_symtabs): New method.
16307 (add_symtabs_to_list): Rename to...
16308 (symtab_collector::operator()): ... this and adjust.
16309 (collect_symtabs_from_filename): symtab_collector construction
16310 bits move to symtab_collector ctor. Pass the symtab_collector
16311 object directly as callback. Remove cleanups and use
16312 symtab_collector::release_symtabs instead.
16313 (collect_symbols): Delete.
16314 (add_matching_symbols_to_info): Use lambdas.
16315 * macrocmd.c (print_macro_callback): Delete.
16316 (info_macro_command): Use a lambda.
16317 (info_macros_command): Pass print_macro_definition as callable
16318 directly.
16319 (print_one_macro): Remove 'ignore' parameter.
16320 (macro_list_command): Adjust.
16321 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16322 (macro_for_each_data::user_data): Delete field.
16323 (foreach_macro): Adjust to call the function_view.
16324 (macro_for_each): Adjust to use function_view as callback type.
16325 (foreach_macro_in_scope): Adjust to call the function_view.
16326 (macro_for_each_in_scope): Adjust to use function_view as callback
16327 type.
16328 * macrotab.h: Include "common/function-view.h".
16329 (macro_callback_fn): Declare a prototype instead of a pointer.
16330 Remove "user_data" parameter.
16331 (macro_for_each, macro_for_each_in_scope): Adjust to use
16332 function_view as callback type.
16333 * psymtab.c (partial_map_expand_apply)
16334 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16335 Adjust to use function_view as callback type and to return bool.
16336 (psym_expand_symtabs_matching): Adjust to use function_view as
16337 callback types.
16338 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16339 to use function_view as callback type and to return bool.
16340 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16341 callback types.
16342 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16343 as callback types.
16344 * symfile.h: Include "common/function-view.h".
16345 (expand_symtabs_file_matcher_ftype)
16346 (expand_symtabs_symbol_matcher_ftype)
16347 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16348 return bool.
16349 (quick_symbol_functions::map_symtabs_matching_filename)
16350 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16351 function_view as callback type and return bool.
16352 (expand_symtabs_matching): Adjust to use function_view as callback
16353 type.
16354 (maintenance_expand_name_matcher)
16355 (maintenance_expand_file_matcher): Delete.
16356 (maintenance_expand_symtabs): Use lambdas.
16357 * symtab.c (iterate_over_some_symtabs): Adjust to use
16358 function_view as callback types and return bool.
16359 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16360 of a cleanup.
16361 (lookup_symtab_callback): Delete.
16362 (lookup_symtab): Use a lambda.
16363 (iterate_over_symbols): Adjust to use function_view as callback
16364 type.
16365 (struct search_symbols_data, search_symbols_file_matches)
16366 (search_symbols_name_matches): Delete.
16367 (search_symbols): Use a pair of lambdas.
16368 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16369 (symtab_expansion_callback): Delete.
16370 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16371 * symtab.h: Include "common/function-view.h".
16372 (iterate_over_some_symtabs): Adjust to use function_view as
16373 callback type and return bool.
16374 (iterate_over_symtabs): Adjust to use function_view as callback
16375 type.
16376 (symbol_found_callback_ftype): Remove 'data' parameter and return
16377 bool.
16378 (iterate_over_symbols): Adjust to use function_view as callback
16379 type.
16380
07e253aa
PA
163812017-02-23 Pedro Alves <palves@redhat.com>
16382
16383 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16384 (%.o) <unittests/%.c>: New pattern.
16385 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16386 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16387 * common/function-view.h: New file.
16388 * unittests/function-view-selftests.c: New file.
16389 * configure: Regenerate.
16390
8eaf5320
SM
163912017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16392
16393 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16394 inferior_ptid.
16395 * go32-nat.c (go32_thread_alive): Likewise.
16396
38768751
YQ
163972017-02-23 Yao Qi <yao.qi@linaro.org>
16398
16399 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16400 delete.
16401
0a8beaba
YQ
164022017-02-23 Yao Qi <yao.qi@linaro.org>
16403
16404 * varobj.c (varobj_clear_saved_item): Use delete instead of
16405 xfree.
16406 (update_dynamic_varobj_children): Likewise.
16407
58fdfd2c
JK
164082017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16409
16410 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16411
1b90b139
SM
164122017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16413
16414 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16415 m_enum_value to 0 in default constructor.
16416
2039d74e
EBM
164172017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16418
16419 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16420 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16421 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16422 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16423 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16424 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16425 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16426 IS_STORE_CONDITIONAL_INSN.
16427
7814882a
JK
164282017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16429
16430 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16431
0ae60b63
JK
164322017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16433
16434 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16435
0224619f
JK
164362017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16437
16438 * dwarf2read.c (skip_one_die, read_attribute_value)
16439 (dwarf2_const_value_attr, dump_die_shallow)
16440 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16441 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16442
0af92d60
JK
164432017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16444
16445 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16446 (dwarf_parse_macro_header): Accept DWARF version 5.
16447 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16448
216f72a1
JK
164492017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16450
16451 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16452 DW_AT_GNU_*.
16453 * common/common-exceptions.h (enum errors): Likewise.
16454 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16455 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16456 (dwarf_expr_context::execute_stack_op): Likewise.
16457 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16458 Likewise.
16459 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16460 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16461 (show_entry_values_debug, call_site_to_target_addr)
16462 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16463 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16464 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16465 (value_of_dwarf_block_entry, indirect_pieced_value)
16466 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16467 (disassemble_dwarf_expression): Likewise.
16468 * dwarf2read.c (process_die, inherit_abstract_dies)
16469 (read_call_site_scope): Likewise.
16470 * gdbtypes.h (struct func_type, struct call_site_parameter)
16471 (struct call_site): Likewise.
16472 * stack.c (read_frame_arg): Likewise.
16473 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16474
43988095
JK
164752017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16476
16477 * defs.h (read_unsigned_leb128): New declaration.
16478 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16479 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16480 (dwarf2_find_location_expression): Call also
16481 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16482 * dwarf2loc.h (dwarf2_version): New declaration.
16483 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16484 rnglists.
16485 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16486 .debug_rnglists.
16487 (struct dwop_section_names): Add loclists_dwo.
16488 (dwop_section_names): Add .debug_loclists.dwo.
16489 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16490 (struct dwarf2_per_cu_data): Add dwarf_version.
16491 (struct dwo_sections): Add loclists.
16492 (struct attr_abbrev): Add implicit_const.
16493 (read_indirect_line_string): New declaration.
16494 (read_unsigned_leb128): Delete declaration.
16495 (rcuh_kind): New definition.
16496 (read_and_check_comp_unit_head): Change parameter
16497 is_debug_types_section to section_kind.
16498 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16499 (read_comp_unit_head): Change parameter abfd to section, add parameter
16500 section_kind. Handle DWARF-5.
16501 (error_check_comp_unit_head): Accept also DWARF version 5.
16502 (read_and_check_comp_unit_head): Change parameter
16503 is_debug_types_section to section_kind.
16504 (read_and_check_type_unit_head): Delete function.
16505 (read_abbrev_offset): Handle DWARF-5.
16506 (create_debug_type_hash_table): Add parameter section_kind. Process
16507 only DW_UT_type. Use signature and type_offset_in_tu from struct
16508 comp_unit_head.
16509 (create_debug_types_hash_table): Update create_debug_type_hash_table
16510 caller.
16511 (create_all_type_units): Call create_debug_type_hash_table.
16512 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16513 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16514 caller.
16515 (skip_one_die): Handle DW_FORM_implicit_const.
16516 (dwarf2_rnglists_process): New function.
16517 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16518 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16519 (read_attribute_value): Handle DW_FORM_implicit_const,
16520 DW_FORM_line_strp.
16521 (read_attribute): Handle DW_FORM_implicit_const.
16522 (read_indirect_string_at_offset_from): New function from
16523 read_indirect_string_at_offset.
16524 (read_indirect_string_at_offset): Call
16525 read_indirect_string_at_offset_from.
16526 (read_indirect_line_string_at_offset): New function.
16527 (read_indirect_string): New function comment.
16528 (read_indirect_line_string): New function.
16529 (read_unsigned_leb128): Make it global.
16530 (dwarf2_string_attr): Handle DWARF-5.
16531 (add_include_dir_stub, read_formatted_entries): New functions.
16532 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16533 Handle DWARF-5.
16534 (per_cu_header_read_in): Update read_comp_unit_head caller.
16535 (dwarf2_version): New function.
16536 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16537 rnglists.
16538 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16539 fields.
16540
22d2f3ab
JK
165412017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16542
16543 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16544
5f46c5a5
JK
165452017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16546
16547 * dwarf2read.c (dwarf2_ranges_process): New function from
16548 dwarf2_ranges_read.
16549 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16550 dwarf2_ranges_process.
16551
78d4d2c5
JK
165522017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16553
16554 * dwarf2read.c (create_debug_type_hash_table): New function from
16555 create_debug_types_hash_table.
16556 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16557 (create_all_type_units, open_and_init_dwo_file): Update
16558 create_debug_types_hash_table callers.
16559
1b076f25
SDJ
165602017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16561
16562 PR gdb/16188
16563 * fork-child.c (trace_start_error): Fix thinko. va_end should
16564 refer to 'ap', not 'args'.
16565
0db8980c
SDJ
165662017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16567 Pedro Alves <palves@redhat.com>
16568
16569 PR gdb/16188
16570 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16571 calls succeeded.
16572 * fork-child.c (trace_start_error): New function.
16573 (trace_start_error_with_name): Likewise.
16574 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16575 * inf-ptrace.c (inf_ptrace_me): Likewise.
16576 * inferior.h (trace_start_error): New prototype.
16577 (trace_start_error_with_name): Likewise.
16578
99e8a4f9
SDJ
165792017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16580
16581 PR gdb/21164
16582 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16583 NULL before using it.
16584 * symmisc.c (maintenance_print_symbols): Likewise.
16585 (maintenance_print_msymbols): Likewise.
16586
4e746bb6
TW
165872017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16588
16589 * NEWS: Add record Python bindings entry.
16590
165912017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16592
16593 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16594 py-record-full.o.
16595 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16596 * python/py-record-btrace.c, python/py-record-btrace.h,
16597 python/py-record-full.c, python/py-record-full.h: New file.
16598 * python/py-record.c: Add include for py-record-btrace.h and
16599 py-record-full.h.
16600 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16601 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16602 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16603 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16604 New definition.
16605 (gdbpy_initialize_btrace): New export.
16606 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16607
166082017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16609
16610 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16611 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16612 * python/py-record.c: New file.
16613 * python/python-internal.h (gdbpy_start_recording,
16614 gdbpy_current_recording, gdpy_stop_recording,
16615 gdbpy_initialize_record): New export.
16616 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16617 (python_GdbMethods): Add gdbpy_start_recording,
16618 gdbpy_current_recording and gdbpy_stop_recording.
16619
166202017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16621
16622 * record-btrace.c (record_btrace_record_method): New function.
16623 (init_record_btrace_ops): Initialize to_record_method.
16624 * record-full.c (record_full_record_method): New function.
16625 (init_record_full_ops, init_record_full_core_ops): Add
16626 record_full_record_method.
16627 * record.h (enum record_method): New enum.
16628 * target-debug.h (target_debug_print_enum_record_method: New define.
16629 * target-delegates.c: Regenerate.
16630 * target.c (target_record_method): New function.
16631 * target.h: Include record.h.
16632 (struct target_ops) <to_record_method>: New field.
16633 (target_record_method): New export.
16634
166352017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16636
16637 * record.h (record_start, record_stop): New export.
16638 * record.c (record_start, record_stop): New function.
16639
166402017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16641
16642 * btrace.c (btrace_fetch): Copy function call segments pointer
16643 into a vector.
16644 (btrace_clear): Clear the vector.
16645 (btrace_find_insn_by_number): Use binary search to find the correct
16646 function call segment.
16647 * btrace.h (brace_fun_p): New typedef.
16648 (struct btrace_thread_info) <functions>: New field.
16649
166502017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16651
16652 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16653 * btrace.c (btrace_decode_error): ... here. New function.
16654 * btrace.h (btrace_decode_error): New export.
16655
166562017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16657
16658 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16659 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16660 btrace_find_insn_by_number): Remove special case for gaps.
16661 * btrace.h (btrace_insn_get_error): New export.
16662 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16663 * record-btrace.c (btrace_insn_history): Print number for gaps.
16664 (record_btrace_info, record_btrace_goto): Handle gaps.
16665
3f77c769
TT
166662017-02-14 Tom Tromey <tom@tromey.com>
16667
16668 PR python/13598:
16669 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16670 event.
16671 * python/py-evts.c (gdbpy_initialize_py_events): Add
16672 before_prompt registry.
16673 * python/py-events.h (events_object) <before_prompt>: New field.
16674
4c2c7ac6
MM
166752017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16676
16677 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16678
5cf30ebf
LM
166792017-02-13 Luis Machado <lgustavo@codesourcery.com>
16680
16681 * symfile (_initialize_symfile): Add usage text to the load command's
16682 help text.
16683
26a06916
SM
166842017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16685
16686 * utils.c (defaulted_query): Don't query on secondary UIs.
16687
0b145e37
TT
166882017-02-10 Tom Tromey <tom@tromey.com>
16689
16690 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16691
2d8365c4
TT
166922017-02-10 Tom Tromey <tom@tromey.com>
16693
16694 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16695 "cleanup" local.
16696 * python/py-type.c (typy_legacy_template_argument): Remove
16697 unnecessary "cleanup" local.
16698
2bb8f231
TT
166992017-02-10 Tom Tromey <tom@tromey.com>
16700
16701 * python/python.c (do_start_initialization): New function, from
16702 _initialize_python.
16703 (_initialize_python): Call do_start_initialization.
16704 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16705 goto.
16706
1bdfaf42
TT
167072017-02-10 Tom Tromey <tom@tromey.com>
16708
16709 * python/py-prettyprint.c (pretty_print_one_value): Use
16710 gdbpy_ref.
16711
88b6faea
TT
167122017-02-10 Tom Tromey <tom@tromey.com>
16713
16714 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16715 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16716 gdbpy_ref.
16717 * python/py-type.c (field_new): Use gdbpy_ref.
16718 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16719 gdbpy_ref.
16720 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16721 (py_free_pspace): Likewise.
16722 (pspace_to_pspace_object): Likewise.
16723 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16724 (py_free_objfile): Likewise.
16725 (objfile_to_objfile_object): Likewise.
16726 * python/py-inferior.c (delete_thread_object): Use
16727 gdbpy_ref.
16728 (infpy_read_memory): Likewise.
16729 (py_free_inferior): Likewise.
16730 * python/py-evtregistry.c (create_eventregistry_object): Use
16731 gdbpy_ref.
16732 * python/py-event.c (create_event_object): Use gdbpy_ref.
16733
7780f186
TT
167342017-02-10 Tom Tromey <tom@tromey.com>
16735
16736 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16737 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16738 used.
16739 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16740 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16741 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16742 python/py-framefilter.c, python/py-function.c,
16743 python/py-inferior.c, python/py-infevents.c,
16744 python/py-linetable.c, python/py-newobjfileevent.c,
16745 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16746 python/py-signalevent.c, python/py-stopevent.c,
16747 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16748 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16749 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16750 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16751
d4b0bb18
TT
167522017-02-10 Tom Tromey <tom@tromey.com>
16753
16754 * ui-out.h (ui_out_emit_type): New class.
16755 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16756 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16757 and ui_out_emit_tuple.
16758 (enumerate_locals): Likewise.
16759 (py_mi_print_variables, py_print_locals, py_print_args): Use
16760 ui_out_emit_list.
16761 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16762 ui_out_emit_list.
16763 * common/gdb_optional.h: New file.
16764
f67f945c
MG
167652017-02-10 Martin Galvan <martingalvan@sourceware.org>
16766
16767 * MAINTAINERS (Write After Approval): Update my e-mail address.
16768
18da0c51
MG
167692017-02-10 Martin Galvan <martingalvan@sourceware.org>
16770
16771 PR gdb/21122
16772 * breakpoint.c (_initialize_breakpoint): Update the help description
16773 of the 'commands' command to indicate that it takes a list argument.
16774
62c14536
SM
167752017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16776
16777 * interps.c (current_interp_set_logging): Remove "return".
16778
ff6fa247
GB
167792017-02-09 Gary Benson <gbenson@redhat.com>
16780
16781 * symtab.c (add_symtab_completions): Prevent NULL pointer
16782 dereference.
16783
a474bd8e
PA
167842017-02-08 Pedro Alves <palves@redhat.com>
16785
16786 * interps.c (interp::interp): Remove reference to quiet_p.
16787 (interp_set): Make static. Remove dead "Switching to" output
16788 code.
16789 (interp_quiet_p, interp_set_quiet): Delete.
16790 (interpreter_exec_cmd): Don't set the interpreter quiet.
16791 * interps.h (interp_quiet_p): Make static.
16792 (class interp) <quiet_p>: Remove field
16793
3d7b173c
JG
167942017-02-08 Jerome Guitton <guitton@adacore.com>
16795
604c4576
JG
16796 * cli/cli-decode.c (find_command_name_length): Make it extern.
16797 * cli/cli-decode.h (find_command_name_length): Declare.
16798 * cli/cli-script.c (command_name_equals, line_first_arg):
16799 New functions.
16800 (process_next_line): Use cli-decode to parse command names.
16801 (build_command_line): Make args a constant pointer.
16802
168032017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 16804
3d7b173c
JG
16805 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16806 Remove case-insensitive search.
16807
1291063d
JM
168082017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16809
16810 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16811 at the end of the line. Avoids an ARI warning.
16812
20b477a7
LM
168132017-02-06 Luis Machado <lgustavo@codesourcery.com>
16814
16815 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16816 rdseed instructions.
16817 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16818
3f7b46f2
IR
168192017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16820
16821 PR tdep/20936
16822 Provide and use sparc32 and sparc64 target description XML files.
16823 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16824 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16825 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16826 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16827 * features/sparc/sparc32-solaris.xml: New file.
16828 * features/sparc/sparc64-solaris.xml: New file.
16829 * features/sparc/sparc32-solaris.c: Generated.
16830 * features/sparc/sparc64-solaris.c: Generated.
16831 * sparc-tdep.h: Account for differences in target descriptions.
16832 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16833 (sparc32_register_type): Use target provided registers.
16834 (validate_tdesc_registers): New function.
16835 (sparc32_gdbarch_init): Use tdesc_has_registers.
16836 Set pseudoregister functions.
16837 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16838 (sparc64_register_type): Use target provided registers.
16839 (sparc64_init_abi): Set pseudoregister functions.
16840
f0fd41c1
TT
168412017-02-03 Tom Tromey <tom@tromey.com>
16842
16843 PR rust/21097:
16844 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16845 with a single member.
16846
d6f9b0fb
PA
168472017-02-03 Pedro Alves <palves@redhat.com>
16848
16849 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16850 (cli_interp_base::~cli_interp_base): New.
16851 (cli_interp): New struct.
16852 (as_cli_interp): Cast the interp itself to cli_interp.
16853 (cli_interpreter_pre_command_loop): Rename to ...
16854 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16855 parameter.
16856 (cli_interpreter_init): Rename to ...
16857 (cli_interp::init): ... this. Remove 'self' parameter. Use
16858 boolean. Make extern.
16859 (cli_interpreter_resume): Rename to ...
16860 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16861 extern.
16862 (cli_interpreter_suspend): Rename to ...
16863 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16864 extern.
16865 (cli_interpreter_exec): Rename to ...
16866 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16867 extern.
16868 (cli_interpreter_supports_command_editing): Rename to ...
16869 (cli_interp_base::supports_command_editing): ... this. Remove
16870 'interp' parameter. Make extern.
16871 (cli_ui_out): Rename to ...
16872 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16873 Make extern.
16874 (cli_set_logging): Rename to ...
16875 (cli_interp_base::set_logging): ... this. Remove 'interp'
16876 parameter. Make extern.
16877 (cli_interp_procs): Delete.
16878 (cli_interp_factory): Adjust to use "new".
16879 * cli/cli-interp.h: Include "interps.h".
16880 (struct cli_interp_base): New struct.
16881 * interps.c (struct interp): Delete. Fields moved to interps.h.
16882 (interp_new): Delete.
16883 (interp::interp, interp::~interp): New.
16884 (interp_set): Use bool, and return void. Assume the interpreter
16885 has suspend, init and resume methods, and that the all return
16886 void.
16887 (set_top_level_interpreter): interp_set returns void.
16888 (interp_ui_out): Adapt.
16889 (current_interp_set_logging): Adapt.
16890 (interp_data): Delete.
16891 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16892 (interp_exec): Adapt.
16893 (top_level_interpreter_data): Delete.
16894 * interps.h (interp_init_ftype, interp_resume_ftype)
16895 (interp_suspend_ftype, interp_exec_ftype)
16896 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16897 (class interp): New.
16898 (interp_new): Delete.
16899 (interp_set): Now returns void. Use bool.
16900 (interp_data, top_level_interpreter_data): Delete.
16901 * mi/mi-common.h: Include interps.h.
16902 (class mi_interp): Inherit from interp. Define a ctor. Declare
16903 init, resume, suspect, exec, interp_ui_out, set_logging and
16904 pre_command_loop methods.
16905 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16906 (mi_interpreter_init): Rename to ...
16907 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16908 bool, return void and make extern. Adjust.
16909 (mi_interpreter_resume): ... Rename to ...
16910 (mi_interp::resume): ... this. Remove the 'data' parameter,
16911 return void and make extern. Adjust.
16912 (mi_interpreter_suspend): ... Rename to ...
16913 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16914 return void and make extern. Adjust.
16915 (mi_interpreter_exec): ... Rename to ...
16916 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16917 extern. Adjust.
16918 (mi_interpreter_pre_command_loop): ... Rename to ...
16919 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16920 parameter and make extern.
16921 (mi_on_normal_stop_1): Adjust.
16922 (mi_ui_out): Rename to ...
16923 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16924 parameter and make extern. Adjust.
16925 (mi_set_logging): Rename to ...
16926 (mi_interp::set_logging): ... this. Remove the 'interp'
16927 parameter and make extern. Adjust.
16928 (mi_interp_procs): Delete.
16929 (mi_interp_factory): Adjust to use 'new'.
16930 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16931 (mi_print_exception, mi_execute_command, mi_load_progress):
16932 Adjust.
16933 * tui/tui-interp.c (tui_interp): New class.
16934 (as_tui_interp): Return a tui_interp pointer.
16935 (tui_on_normal_stop, tui_on_signal_received)
16936 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16937 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16938 to use interp::interp_ui_out.
16939 (tui_init): Rename to ...
16940 (tui_interp::init): ... this. Remove the 'self' parameter, use
16941 bool, return void and make extern. Adjust.
16942 (tui_resume): Rename to ...
16943 (tui_interp::resume): ... this. Remove the 'data' parameter,
16944 return void and make extern. Adjust.
16945 (tui_suspend): Rename to ...
16946 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16947 return void and make extern. Adjust.
16948 (tui_ui_out): Rename to ...
16949 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16950 parameter, and make extern. Adjust.
16951 (tui_exec): Rename to ...
16952 (tui_interp::exec): ... this. Remove the 'data' parameter and
16953 make extern.
16954 (tui_interp_procs): Delete.
16955 (tui_interp_factory): Use "new".
16956
65c40c95
TT
169572017-02-02 Tom Tromey <tom@tromey.com>
16958
16959 * rust-exp.y (ends_raw_string, space_then_number)
16960 (rust_identifier_start_p): Return bool.
16961 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16962 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16963 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16964 (rust_chartype_p): Return bool.
16965 (val_print_struct, rust_print_struct_def, rust_print_type):
16966 Update.
16967 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16968 Return bool.
16969
b50f188d
TT
169702017-02-02 Tom Tromey <tom@tromey.com>
16971
16972 * rust-lang.c: Reindent.
16973
03c85b11
TT
169742017-02-02 Tom Tromey <tom@tromey.com>
16975
16976 * rust-lang.h (rust_crate_for_block): Update.
16977 * rust-lang.c (rust_crate_for_block): Return std::string.
16978 (rust_get_disr_info): Use std:;string, not
16979 gdb::unique_xmalloc_ptr.
16980 * rust-exp.y (crate_name): Update.
16981
9b6da501
PA
169822017-02-02 Pedro Alves <palves@redhat.com>
16983
16984 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16985 field out of gdb_disassembler_test and make it static.
16986
ec4cb20b
PA
169872017-02-02 Pedro Alves <palves@redhat.com>
16988
16989 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16990 mi1_interp and mi_interp fields.
16991
5be5dbf0
PA
169922017-02-02 Pedro Alves <palves@redhat.com>
16993
616268b6
PA
16994 * cli/cli-interp.c (struct saved_output_files, saved_output):
16995 Moved from cli/cli-logging.c.
16996 (cli_set_logging): New function.
16997 (cli_interp_procs): Install cli_set_logging.
16998 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16999 Declare.
17000 * cli/cli-logging.c (struct saved_output_files, saved_output):
17001 Moved to cli/cli-interp.c.
17002 (pop_output_files): Don't save outputs here.
17003 (make_logging_output): New function.
17004 (handle_redirections): Don't build tee nor save previous outputs
17005 here.
17006 * interps.c (current_interp_set_logging): Change prototype.
17007 Assume there's always a set_logging_proc method installed.
17008 * interps.h (interp_set_logging_ftype): Change prototype.
17009 (current_interp_set_logging): Change prototype and adjust comment.
17010 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
17011 use make_logging_output.
17012 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
170132017-02-02 Pedro Alves <palves@redhat.com>
17014
5be5dbf0
PA
17015 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
17016 from ...
17017 (set_logging_overwrite): ... here.
17018 (logging_no_redirect_file): Delete.
17019 (set_logging_redirect): Don't handle redirection on the fly.
17020 Instead warn that "logging off" / "logging on" is necessary.
17021 (pop_output_files): Delete references to logging_no_redirect_file.
17022 (show_logging_command): Always speak in terms of what will happen
17023 once logging is reenabled.
17024
c99cc448
PA
170252017-02-02 Pedro Alves <palves@redhat.com>
17026
17027 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
17028
8b172ce7
PA
170292017-02-02 Pedro Alves <palves@redhat.com>
17030
17031 * disasm.c (gdb_pretty_print_insn): Rename to ...
17032 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
17033 Remove gdbarch parameter. Adapt to clear the object's buffers
17034 instead of allocating new buffers, and to print using the object's
17035 gdb_disassembler instead of calling gdb_print_insn.
17036 (dump_insns): Use gdb_pretty_print_disassembler.
17037 * disasm.h (gdb_pretty_print_insn): Delete declaration.
17038 (gdb_pretty_print_disassembler): New class.
17039 * record-btrace.c (btrace_insn_history): Use
17040 gdb_pretty_print_disassembler.
17041
d7e74731
PA
170422017-02-02 Pedro Alves <palves@redhat.com>
17043
17044 * ada-lang.c (type_as_string): Use string_file.
17045 * ada-valprint.c (ada_print_floating): Use string_file.
17046 * ada-varobj.c (ada_varobj_scalar_image)
17047 (ada_varobj_get_value_image): Use string_file.
17048 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
17049 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
17050 * breakpoint.c (update_inserted_breakpoint_locations)
17051 (insert_breakpoint_locations, reattach_breakpoints)
17052 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
17053 (print_it_watchpoint): Use string_file.
17054 (save_breakpoints): Use stdio_file.
17055 * c-exp.y (oper): Use string_file.
17056 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
17057 tee_file.
17058 (pop_output_files): Use delete.
17059 (handle_redirections): Use stdio_file and tee_file.
17060 * cli/cli-setshow.c (do_show_command): Use string_file.
17061 * compile/compile-c-support.c (c_compute_program): Use
17062 string_file.
17063 * compile/compile-c-symbols.c (generate_vla_size): Take a
17064 'string_file &' instead of a 'ui_file *'.
17065 (generate_c_for_for_one_variable): Take a 'string_file &' instead
17066 of a 'ui_file *'. Use string_file.
17067 (generate_c_for_variable_locations): Take a 'string_file &'
17068 instead of a 'ui_file *'.
17069 * compile/compile-internal.h (generate_c_for_for_one_variable):
17070 Take a 'string_file &' instead of a 'ui_file *'.
17071 * compile/compile-loc2c.c (push, pushf, unary, binary)
17072 (print_label, pushf_register_address, pushf_register)
17073 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
17074 'ui_file *'. Adjust.
17075 * compile/compile.c (compile_to_object): Use string_file.
17076 * compile/compile.h (compile_dwarf_expr_to_c)
17077 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
17078 'ui_file *'.
17079 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
17080 (replace_typedefs_qualified_name): Use string_file and
17081 obstack_copy0.
17082 * disasm.c (gdb_pretty_print_insn): Use string_file.
17083 (gdb_disassembly): Adjust reference the null_stream global.
17084 (do_ui_file_delete): Delete.
17085 (gdb_insn_length): Use null_stream.
17086 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
17087 * dwarf2loc.c (dwarf2_compile_property_to_c)
17088 (locexpr_generate_c_location, loclist_generate_c_location): Take a
17089 'string_file &' instead of a 'ui_file *'.
17090 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
17091 * dwarf2read.c (do_ui_file_peek_last): Delete.
17092 (dwarf2_compute_name): Use string_file.
17093 * event-top.c (gdb_setup_readline): Use stdio_file.
17094 * gdbarch.sh (verify_gdbarch): Use string_file.
17095 * gdbtypes.c (safe_parse_type): Use null_stream.
17096 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
17097 string_file.
17098 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
17099 'string_file *' instead of a 'ui_file *'.
17100 (gdbscm_arch_disassemble): Use string_file.
17101 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
17102 * guile/scm-ports.c (class ioscm_file_port): Now a class that
17103 inherits from ui_file.
17104 (ioscm_file_port_delete, ioscm_file_port_rewind)
17105 (ioscm_file_port_put): Delete.
17106 (ioscm_file_port_write): Rename to ...
17107 (ioscm_file_port::write): ... this. Remove file_port_magic
17108 checks.
17109 (ioscm_file_port_new): Delete.
17110 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
17111 ui_file_up.
17112 * guile/scm-type.c (tyscm_type_name): Use string_file.
17113 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
17114 Use string_file.
17115 * infcmd.c (print_return_value_1): Use string_file.
17116 * infrun.c (print_target_wait_results): Use string_file.
17117 * language.c (add_language): Use string_file.
17118 * location.c (explicit_to_string_internal): Use string_file.
17119 * main.c (captured_main_1): Use null_file.
17120 * maint.c (maintenance_print_architecture): Use stdio_file.
17121 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
17122 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
17123 event_channel>: Change type to mi_console_file pointer.
17124 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
17125 (mi_console_file_delete): Delete.
17126 (struct mi_console_file): Delete.
17127 (mi_console_file_magic): Delete.
17128 (mi_console_file_new): Delete.
17129 (mi_console_file::mi_console_file): New.
17130 (mi_console_file_delete): Delete.
17131 (mi_console_file_fputs): Delete.
17132 (mi_console_file::write): New.
17133 (mi_console_raw_packet): Delete.
17134 (mi_console_file::flush): New.
17135 (mi_console_file_flush): Delete.
17136 (mi_console_set_raw): Rename to ...
17137 (mi_console_file::set_raw): ... this.
17138 * mi/mi-console.h (class mi_console_file): New class.
17139 (mi_console_file_new, mi_console_set_raw): Delete.
17140 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
17141 (mi_set_logging): Use delete and tee_file. Adjust.
17142 * mi/mi-main.c (output_register): Use string_file.
17143 (mi_cmd_data_evaluate_expression): Use string_file.
17144 (mi_cmd_data_read_memory): Use string_file.
17145 (mi_cmd_execute, print_variable_or_computed): Use string_file.
17146 * mi/mi-out.c (mi_ui_out::main_stream): New.
17147 (mi_ui_out::rewind): Use main_stream and
17148 string_file.
17149 (mi_ui_out::put): Use main_stream and string_file.
17150 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17151 Allocate a 'string_file' instead.
17152 (mi_out_new): Don't allocate a mem_fileopen stream here.
17153 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17154 (mi_ui_out::main_stream): Declare method.
17155 * printcmd.c (eval_command): Use string_file.
17156 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
17157 * python/py-arch.c (archpy_disassemble): Use string_file.
17158 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
17159 * python/py-frame.c (frapy_str): Use string_file.
17160 * python/py-framefilter.c (py_print_type, py_print_single_arg):
17161 Use string_file.
17162 * python/py-type.c (typy_str): Use string_file.
17163 * python/py-unwind.c (unwind_infopy_str): Use string_file.
17164 * python/py-value.c (valpy_str): Use string_file.
17165 * record-btrace.c (btrace_insn_history): Use string_file.
17166 * regcache.c (regcache_print): Use stdio_file.
17167 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
17168 * remote.c (escape_buffer): Use string_file.
17169 * rust-lang.c (rust_get_disr_info): Use string_file.
17170 * serial.c (serial_open_ops_1): Use stdio_file.
17171 (do_serial_close): Use delete.
17172 * stack.c (print_frame_arg): Use string_file.
17173 (print_frame_args): Remove local mem_fileopen stream, not used.
17174 (print_frame): Use string_file.
17175 * symmisc.c (maintenance_print_symbols): Use stdio_file.
17176 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
17177 Take a 'string_file *' instead of a 'ui_file *'.
17178 * top.c (new_ui): Use stdio_file and stderr_file.
17179 (free_ui): Use delete.
17180 (execute_command_to_string): Use string_file.
17181 (quit_confirm): Use string_file.
17182 * tracepoint.c (collection_list::append_exp): Use string_file.
17183 * tui/tui-disasm.c (tui_disassemble): Use string_file.
17184 * tui/tui-file.c: Don't include "ui-file.h".
17185 (enum streamtype, struct tui_stream): Delete.
17186 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
17187 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
17188 (tui_file::tui_file): New method.
17189 (tui_file_fputs): Delete.
17190 (tui_file_get_strbuf): Delete.
17191 (tui_file::puts): New method.
17192 (tui_file_adjust_strbuf): Delete.
17193 (tui_file_flush): Delete.
17194 (tui_file::flush): New method.
17195 * tui/tui-file.h: Tweak intro comment.
17196 Include ui-file.h.
17197 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
17198 (tui_file_adjust_strbuf): Delete declarations.
17199 (class tui_file): New class.
17200 * tui/tui-io.c (tui_initialize_io): Use tui_file.
17201 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
17202 (tui_register_format): Use string_stream.
17203 * tui/tui-stack.c (tui_make_status_line): Use string_file.
17204 (tui_get_function_from_frame): Use string_file.
17205 * typeprint.c (type_to_string): Use string_file.
17206 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
17207 (null_stream): New global.
17208 (ui_file_delete): Delete.
17209 (ui_file::ui_file): New.
17210 (null_file_isatty): Delete.
17211 (ui_file::~ui_file): New.
17212 (null_file_rewind): Delete.
17213 (ui_file::printf): New.
17214 (null_file_put): Delete.
17215 (null_file_flush): Delete.
17216 (ui_file::putstr): New.
17217 (null_file_write): Delete.
17218 (ui_file::putstrn): New.
17219 (null_file_read): Delete.
17220 (ui_file::putc): New.
17221 (null_file_fputs): Delete.
17222 (null_file_write_async_safe): Delete.
17223 (ui_file::vprintf): New.
17224 (null_file_delete): Delete.
17225 (null_file::write): New.
17226 (null_file_fseek): Delete.
17227 (null_file::puts): New.
17228 (ui_file_data): Delete.
17229 (null_file::write_async_safe): New.
17230 (gdb_flush, ui_file_isatty): Adjust.
17231 (ui_file_put, ui_file_rewind): Delete.
17232 (ui_file_write): Adjust.
17233 (ui_file_write_for_put): Delete.
17234 (ui_file_write_async_safe, ui_file_read): Adjust.
17235 (ui_file_fseek): Delete.
17236 (fputs_unfiltered): Adjust.
17237 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17238 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17239 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17240 (set_ui_file_data): Delete.
17241 (string_file::~string_file, string_file::write)
17242 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17243 (do_ui_file_as_string, ui_file_as_string): Delete.
17244 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17245 (struct mem_file): Delete.
17246 (mem_file_new): Delete.
17247 (stdio_file::stdio_file): New.
17248 (mem_file_delete): Delete.
17249 (stdio_file::stdio_file): New.
17250 (mem_fileopen): Delete.
17251 (stdio_file::~stdio_file): New.
17252 (mem_file_rewind): Delete.
17253 (stdio_file::set_stream): New.
17254 (mem_file_put): Delete.
17255 (stdio_file::open): New.
17256 (mem_file_write): Delete.
17257 (stdio_file_magic, struct stdio_file): Delete.
17258 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17259 (stdio_file::flush): New.
17260 (stdio_file_read): Rename to ...
17261 (stdio_file::read): ... this. Adjust.
17262 (stdio_file_write): Rename to ...
17263 (stdio_file::write): ... this. Adjust.
17264 (stdio_file_write_async_safe): Rename to ...
17265 (stdio_file::write_async_safe) ... this. Adjust.
17266 (stdio_file_fputs): Rename to ...
17267 (stdio_file::puts) ... this. Adjust.
17268 (stdio_file_isatty): Delete.
17269 (stdio_file_fseek): Delete.
17270 (stdio_file::isatty): New.
17271 (stderr_file_write): Rename to ...
17272 (stderr_file::write) ... this. Adjust.
17273 (stderr_file_fputs): Rename to ...
17274 (stderr_file::puts) ... this. Adjust.
17275 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17276 (stderr_file::stderr_file): New.
17277 (tee_file_magic): Delete.
17278 (struct tee_file): Delete.
17279 (tee_file::tee_file): New.
17280 (tee_file_new): Delete.
17281 (tee_file::~tee_file): New.
17282 (tee_file_delete): Delete.
17283 (tee_file_flush): Rename to ...
17284 (tee_file::flush): ... this. Adjust.
17285 (tee_file_write): Rename to ...
17286 (tee_file::write): ... this. Adjust.
17287 (tee_file::write_async_safe): New.
17288 (tee_file_fputs): Rename to ...
17289 (tee_file::puts): ... this. Adjust.
17290 (tee_file_isatty): Rename to ...
17291 (tee_file::isatty): ... this. Adjust.
17292 * ui-file.h (struct obstack, struct ui_file): Don't
17293 forward-declare.
17294 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17295 (ui_file_write_ftype)
17296 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17297 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17298 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17299 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17300 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17301 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17302 (set_ui_file_fseek): Delete.
17303 (ui_file_data, ui_file_delete, ui_file_rewind)
17304 (struct ui_file): New.
17305 (ui_file_up): New.
17306 (class null_file): New.
17307 (null_stream): Declare.
17308 (ui_file_write_for_put, ui_file_put): Delete.
17309 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17310 Delete.
17311 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17312 (gdb_fopen, tee_file_new): Delete.
17313 (struct string_file): New.
17314 (struct stdio_file): New.
17315 (stdio_file_up): New.
17316 (struct stderr_file): New.
17317 (class tee_file): New.
17318 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17319 of a 'ui_file *'. Adjust.
17320 * ui-out.h (class ui_out) <field_stream>: Likewise.
17321 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17322 (null_stream): Delete.
17323 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17324 Adjust.
17325 * utils.h (struct ui_file): Delete forward declaration..
17326 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17327 (error_stream): Take a 'string_file &' instead of a
17328 'ui_file *'.
17329 * varobj.c (varobj_value_get_print_value): Use string_file.
17330 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17331 * gdbarch.c: Regenerate.
17332
187808b0
PA
173332017-02-02 Pedro Alves <palves@redhat.com>
17334
17335 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17336 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17337 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17338 Adjust to call gdb_print_insn instead of
17339 gdb_disassembler::print_insn.
17340 (dump_insns, do_mixed_source_and_assembly_deprecated)
17341 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17342 'gdbarch' parameter. Remove gdb_disassembler parameter.
17343 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17344 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17345 declaration.
17346 (gdb_pretty_print_insn): Re-add declaration.
17347 * record-btrace.c (btrace_insn_history): Don't allocate a
17348 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17349
7a8eb317
SM
173502017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17351
17352 * disasm.h (gdb_disassembly): Remove file_string parameter.
17353 * disasm.c (gdb_disassembly): Likewise.
17354 * cli/cli-cmds.c (print_disassembly): Adapt.
17355 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17356 * stack.c (do_gdb_disassembly): Likewise.
17357
7346ef59
AA
173582017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17359
17360 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17361 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17362 targets. And if the implicit value is longer than needed, extract
17363 the first bytes instead of the "least significant" ones.
17364
cd4007e4
MM
173652017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17366
17367 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17368 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17369 (btrace_fetch): Assert can_access_registers_ptid.
17370 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17371 validate_registers_access.
17372
cf77c34e
MM
173732017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17374
17375 * gdbthread.h (can_access_registers_ptid): New.
17376 * thread.c (can_access_registers_ptid): New.
17377
be85ce7d
PA
173782017-02-01 Pedro Alves <palves@redhat.com>
17379
17380 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17381
29b0b251
PA
173822017-01-31 Pedro Alves <palves@redhat.com>
17383
17384 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17385 Fix typos.
17386
289b5b24
PA
173872017-01-31 Pedro Alves <palves@redhat.com>
17388
17389 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17390 not used.
17391
b47413b4
PA
173922017-01-31 Pedro Alves <palves@redhat.com>
17393
17394 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17395
60adb36c
PA
173962017-01-31 Pedro Alves <palves@redhat.com>
17397
17398 * common/scoped_restore.h
17399 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17400 change the value's parameter type to T2.
17401 (make_scoped_restore): Likewise.
17402
2735833d
WT
174032017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17404 Richard Henderson <rth@redhat.com>
17405
17406 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17407 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17408 GS_BASE for older kernels.
17409 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17410 GS_BASE for older kernels.
17411 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17412 and GS_BASE to the offset table.
17413 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17414 system register group.
17415 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17416 for older kernels.
17417 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17418 amd64 ABI.
17419 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17420 AMD64_GSBASE_REGNUM.
17421 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17422 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17423 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17424 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17425 i386/64bit-segments.xml in those rules.
17426 * features/i386/64bit-segments.xml: New file.
17427 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17428 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17429 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17430 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17431 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17432 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17433 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17434 * features/i386/amd64-avx-linux.c: Regenerated.
17435 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17436 * features/i386/amd64-avx-mpx.c: Regenerated.
17437 * features/i386/amd64-avx512-linux.c: Regenerated.
17438 * features/i386/amd64-linux.c: Regenerated.
17439 * features/i386/amd64-mpx-linux.c: Regenerated.
17440 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17441 * features/i386/i386-avx-mpx.c: Regenerated.
17442 * features/i386/x32-avx-linux.c: Regenerated.
17443 * features/i386/x32-avx512-linux.c: Regenerated.
17444 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17445 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17446 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17447 * regformats/i386/amd64-linux.dat: Regenerated.
17448 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17449 * regformats/i386/x32-avx-linux.dat: Regenerated.
17450 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17451 * regformats/i386/x32-linux.dat: Regenerated.
17452
8884e97e
WT
174532017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17454
17455 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17456 Set to AMD64_NUM_REGS.
17457
7005d26a
WT
174582017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17459
17460 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17461 that checks validity of a register number.
17462
4bd2e1b2
KC
174632017-01-27 Kees Cook <keescook@google.com>
17464
17465 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17466 fetch_fpregs if target has fpa registers.
17467 (arm_linux_store_inferior_registers): Call store_fpregs if target
17468 has fpa registers.
17469
7cf1de6c
AA
174702017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17471
17472 * cris-tdep.c (cris_gdbarch_init): Remove check for
17473 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17474
874a1c8c
AT
174752017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17476
17477 * corelow.c (get_core_register_section): Check for regset
17478 existence before checking for REGSET_VARIABLE_SIZE.
17479
d8b49cf0
YQ
174802017-01-26 Yao Qi <yao.qi@linaro.org>
17481 Pedro Alves <palves@redhat.com>
17482
17483 PR gdb/20939
17484 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17485 call memory_error, save memaddr instead.
17486 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17487 negative, cal memory_error.
17488 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17489
658ca58c
YQ
174902017-01-26 Yao Qi <yao.qi@linaro.org>
17491
17492 * disasm-selftests.c (memory_error_test): New function.
17493 (_initialize_disasm_selftests): Register memory_error_test.
17494
79843d45
YQ
174952017-01-26 Yao Qi <yao.qi@linaro.org>
17496
17497 * Makefile.in (SFILES): Add disasm-selftests.c and
17498 selftest-arch.c.
17499 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17500 * disasm-selftests.c: New file.
17501 * selftest-arch.c: New file.
17502 * selftest-arch.h: New file.
17503
8cafda32
YQ
175042017-01-26 Yao Qi <yao.qi@linaro.org>
17505
17506 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17507 to bfd_arch_mep. Don't return 0 if section is not
17508 found. Call print_insn_mep.
17509
e47ad6c0
YQ
175102017-01-26 Pedro Alves <palves@redhat.com>
17511 Yao Qi <yao.qi@linaro.org>
17512
17513 * arm-tdep.c: Include "disasm.h".
17514 (gdb_print_insn_arm): Update code to get gdbarch.
17515 * disasm.c (dis_asm_read_memory): Change it to
17516 gdb_disassembler::dis_asm_read_memory.
17517 (dis_asm_memory_error): Likewise.
17518 (dis_asm_print_address): Likewise.
17519 (gdb_pretty_print_insn): Change it to
17520 gdb_disassembler::pretty_print_insn.
17521 (dump_insns): Add one argument gdb_disassemlber. All
17522 callers updated.
17523 (do_mixed_source_and_assembly_deprecated): Likewise.
17524 (do_mixed_source_and_assembly): Likewise.
17525 (do_assembly_only): Likewise.
17526 (gdb_disassembler::gdb_disassembler): New.
17527 (gdb_disassembler::print_insn): New.
17528 * disasm.h (class gdb_disassembler): New.
17529 (gdb_pretty_print_insn): Remove declaration.
17530 (gdb_disassemble_info): Likewise.
17531 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17532 (gdbscm_disasm_read_memory_worker): Update.
17533 (gdbscm_disasm_read_memory): Update.
17534 (gdbscm_disasm_memory_error): Remove.
17535 (gdbscm_disasm_print_address): Remove.
17536 (gdbscm_disassembler::gdbscm_disassembler): New.
17537 (gdbscm_print_insn_from_port): Update.
17538 * mips-tdep.c: Include disasm.h.
17539 (gdb_print_insn_mips): Update code to get gdbarch.
17540 * record-btrace.c (btrace_insn_history): Update.
17541 * spu-tdep.c: Include disasm.h.
17542 (struct spu_dis_asm_data): Remove.
17543 (struct spu_dis_asm_info): New.
17544 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17545 SPU id.
17546 (gdb_print_insn_spu): Cast disassemble_info to
17547 spu_dis_asm_info.
17548
80d75874
YQ
175492017-01-26 Yao Qi <yao.qi@linaro.org>
17550
17551 * disasm.c (do_ui_file_delete): Delete.
17552 (gdb_insn_length): Move code creating stream to ...
17553 * utils.c (null_stream): ... here. New function.
17554 * utils.h (null_stream): Declare.
17555
60685cd0
SM
175562017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17557
17558 * python/py-inferior.c (find_thread_object): Return directly
17559 from the loop. Remove "found" variable.
17560
eb1cdb62
JB
175612017-01-21 Joel Brobecker <brobecker@adacore.com>
17562
17563 GDB 7.12.1 released.
17564
b1ce6568
SM
175652017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17566
17567 * python/py-function.c (fnpy_call): Reorder declarations to have
17568 the gdbpy_enter object declared first.
17569 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17570
6f8b0407
SM
175712017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17572
fec93fb1 17573 PR python/21068
6f8b0407
SM
17574 * python/python-internal.h (PyMem_RawMalloc): Define for
17575 Python < 3.4.
17576 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17577 PyMem_RawMalloc instead of PyMem_Malloc.
17578
78cbbba8
LM
175792017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17580 Luis Machado <lgustavo@codesourcery.com>
17581
17582 * NEWS (New commands): Mention flash-erase.
17583 (New MI commands): Mention target-flash-erase.
17584 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17585 command.
17586 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17587 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17588 * target.c (flash_erase_command): New function.
17589 (initialize_targets): Add new flash-erase command.
17590 * target.h (flash_erase_command): New declaration.
17591
2132fe85
JB
175922017-01-20 Joel Brobecker <brobecker@adacore.com>
17593
17594 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17595 HAVE_SYS_PROCFS_H is defined.
17596
d1dff226
AH
175972017-01-18 Alan Hayward <alan.hayward@arm.com>
17598
17599 * remote.c (struct cached_reg): Change data into a pointer.
17600 * (stop_reply_dtr): Free data pointers before deleting vector.
17601 (process_stop_reply): Likewise.
17602 (remote_parse_stop_reply): Allocate space for data
17603
9890e433
AH
176042017-01-18 Alan Hayward <alan.hayward@arm.com>
17605
17606 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17607 MAX_REGISTER_SIZE.
17608 (amd64_pseudo_register_read_value): Likewise.
17609 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17610 (store_register_using_P): Likewise.
17611 * regcache.c (regcache_xfer_part): Likewise.
17612
7a36499a
IR
176132017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17614
17615 Split real and pseudo registers.
17616 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17617 (sparc32_pseudo_regnum): New enum.
17618 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17619 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17620 (SPARC32_CP0_REGISTERS): New macro.
17621 (sparc32_pseudo_register_name): New function.
17622 (sparc32_register_name): Use sparc32_pseudo_register_name.
17623 (sparc32_pseudo_register_type): New function.
17624 (sparc32_register_type): Use sparc32_pseudo_register_type.
17625 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17626 pseudo register numbers.
17627 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17628 (SPARC64_CP0_REGISTERS): New macro.
17629 (sparc64_pseudo_register_name): New function.
17630 (sparc64_register_name): Use sparc64_pseudo_register_name.
17631 (sparc64_pseudo_register_type): New function.
17632 (sparc64_register_type): Use sparc64_pseudo_register_type.
17633 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17634 pseudo register numbers.
17635 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17636 sparc64_store_arguments): Handle pseudo register numbers.
17637
6f8976bf
YQ
176382017-01-13 Yao Qi <yao.qi@linaro.org>
17639
17640 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17641 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17642 output.
17643 (getpkt_or_notif_sane_1): Likewise.
17644
e4241ace
YQ
176452017-01-13 Yao Qi <yao.qi@linaro.org>
17646
17647 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17648 of CC. Pass "-x c++-header" instead of "-x c".
17649
3015c064
SM
176502017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17651
17652 * remote.c (remote_can_async_p): Update comment.
17653
fde1b17d
SM
176542017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17655
17656 * linux-nat.c (linux_nat_can_async_p): Update comment.
17657
ca1ca08b
SM
176582017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17659
17660 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17661
4ad2da73
SM
176622017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17663
17664 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17665
c8b23b3f
TT
176662017-01-10 Tom Tromey <tom@tromey.com>
17667
17668 * python/py-type.c (typy_legacy_template_argument): Update.
17669 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17670 ~demangle_parse_info): Declare new members.
17671 (cp_demangled_name_to_comp): Return unique_ptr.
17672 (cp_demangled_name_parse_free)
17673 (make_cleanup_cp_demangled_name_parse_free)
17674 (cp_new_demangle_parse_info): Remove.
17675 * cp-support.c (do_demangled_name_parse_free_cleanup)
17676 (make_cleanup_cp_demangled_name_parse_free): Remove.
17677 (inspect_type, cp_canonicalize_string_full)
17678 (cp_canonicalize_string): Update.
17679 (mangled_name_to_comp): Change return type.
17680 (cp_class_name_from_physname, method_name_from_physname)
17681 (cp_func_name, cp_remove_params): Update.
17682 * cp-name-parser.y (demangle_parse_info): New constructor, from
17683 cp_new_demangle_parse_info.
17684 (~demangle_parse_info): New destructor, from
17685 cp_demangled_name_parse_free.
17686 (cp_merge_demangle_parse_infos): Update.
17687 (cp_demangled_name_to_comp): Change return type.
17688
1ac32117
TT
176892017-01-10 Tom Tromey <tom@tromey.com>
17690
17691 * top.c (prevent_dont_repeat): Change return type.
17692 * python/python.c (execute_gdb_command): Use std::string.
17693 Update.
17694 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17695 * command.h (prevent_dont_repeat): Change return type.
17696 * breakpoint.c (bpstat_do_actions_1): Update.
17697
0cf08227
TT
176982017-01-10 Tom Tromey <tom@tromey.com>
17699
17700 * value.h (scoped_value_mark::~scoped_value_mark): Call
17701 free_to_mark.
17702 (scoped_value_mark::free_to_mark): New method.
17703 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17704 scoped_value_mark.
17705
eb115069
TT
177062017-01-10 Tom Tromey <tom@tromey.com>
17707
17708 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17709 (valpy_reference_value, valpy_const_value, valpy_get_address)
17710 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17711 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17712 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17713 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17714 scoped_value_mark.
17715 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17716 * value.h (scoped_value_mark): New class.
17717
906768f9
TT
177182017-01-10 Tom Tromey <tom@tromey.com>
17719
17720 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17721 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17722 * psymtab.c (discard_psymtabs_upto): Remove.
17723 (make_cleanup_discard_psymtabs): Remove.
17724 (struct psymtab_state): Remove.
17725
bef155c3
TT
177262017-01-10 Tom Tromey <tom@tromey.com>
17727
17728 * record-full.c (record_full_save_cleanups): Remove.
17729 (record_full_save): Use gdb::unlinker.
17730 * gcore.c (do_bfd_delete_cleanup): Remove.
17731 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17732 cleanups.
17733 * dwarf2read.c (unlink_if_set): Remove.
17734 (write_psymtabs_to_index): Use gdb::unlinker.
17735 * common/gdb_unlinker.h: New file.
17736
192b62ce
TT
177372017-01-10 Tom Tromey <tom@tromey.com>
17738
17739 * windows-tdep.c (windows_xfer_shared_library): Update.
17740 * windows-nat.c (windows_make_so): Update.
17741 * utils.h (make_cleanup_bfd_unref): Remove.
17742 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17743 * symfile.h (symfile_bfd_open)
17744 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17745 * symfile.c (read_symbols, symbol_file_add)
17746 (separate_debug_file_exists): Update.
17747 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17748 (generic_load, reread_symbols): Update.
17749 * symfile-mem.c (symbol_file_add_from_memory): Update.
17750 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17751 (spu_symbol_file_add_from_memory): Update.
17752 * solist.h (struct target_so_ops) <bfd_open>: Return
17753 gdb_bfd_ref_ptr.
17754 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17755 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17756 gdb_bfd_ref_ptr.
17757 (solib_map_sections, reload_shared_libraries_1): Update.
17758 * solib-svr4.c (enable_break): Update.
17759 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17760 * solib-frv.c (enable_break2): Update.
17761 * solib-dsbt.c (enable_break): Update.
17762 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17763 gdb_bfd_ref_ptr.
17764 (darwin_solib_get_all_image_info_addr_at_init): Update.
17765 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17766 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17767 * record-full.c (record_full_save): Update.
17768 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17769 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17770 * minidebug.c (find_separate_debug_file_in_section): Return
17771 gdb_bfd_ref_ptr.
17772 * machoread.c (macho_add_oso_symfile): Change abfd to
17773 gdb_bfd_ref_ptr.
17774 (macho_symfile_read_all_oso): Update.
17775 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17776 (macho_symfile_read): Update.
17777 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17778 (jit_bfd_try_read_symtab): Update.
17779 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17780 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17781 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17782 gdb_bfd_ref_ptr.
17783 (gdb_bfd_ref_policy): New struct.
17784 (gdb_bfd_ref_ptr): New typedef.
17785 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17786 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17787 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17788 gdb_bfd_ref_ptr.
17789 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17790 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17791 (gcore_command): Update.
17792 * exec.c (exec_file_attach): Update.
17793 * elfread.c (elf_symfile_read): Update.
17794 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17795 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17796 (open_and_init_dwo_file): Update.
17797 (open_dwp_file): Return gdb_bfd_ref_ptr.
17798 (open_and_init_dwp_file): Update.
17799 * corelow.c (core_open): Update.
17800 * compile/compile-object-load.c (compile_object_load): Update.
17801 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17802 * coffread.c (coff_symfile_read): Update.
17803 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17804 gdb_bfd_ref_ptr. Rename.
17805 (dump_bfd_file, restore_command): Update.
17806 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17807 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17808 (find_separate_debug_file_by_buildid): Update.
17809
50315b21
TT
178102017-01-10 Tom Tromey <tom@tromey.com>
17811
17812 * common/gdb_ref_ptr.h: New file.
17813 * python/py-ref.h (struct gdbpy_ref_policy): New.
17814 (gdbpy_ref): Now a typedef.
17815
fc4007c9
TT
178162017-01-10 Tom Tromey <tom@tromey.com>
17817
17818 * utils.h (make_cleanup_htab_delete): Don't declare.
17819 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17820 Remove.
17821 * linespec.c (decode_compound_collector): Add constructor,
17822 destructor.
17823 (lookup_prefix_sym): Remove cleanup.
17824 (symtab_collector): Add constructor, destructor.
17825 (collect_symtabs_from_filename): Remove cleanup.
17826 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17827 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17828 Use htab_up.
17829 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17830 * dwarf2read.c (dw2_expand_symtabs_matching)
17831 (dw2_map_symbol_filenames, dwarf_decode_macros)
17832 (write_psymtabs_to_index): Use htab_up.
17833 * dwarf2loc.c (func_verify_no_selftailcall)
17834 (call_site_find_chain_1, func_verify_no_selftailcall)
17835 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17836 std::vector, gdb::unique_xmalloc_ptr.
17837 (call_sitep): Remove typedef.
17838 (dwarf2_locexpr_baton_eval): Remove unused variable.
17839
8dbcee67
TT
178402017-01-10 Tom Tromey <tom@tromey.com>
17841
17842 * python/python-internal.h (make_cleanup_py_decref)
17843 (make_cleanup_py_xdecref): Don't declare.
17844 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17845 (py_xdecref, make_cleanup_py_xdecref): Remove.
17846
13df46cc
TT
178472017-01-10 Tom Tromey <tom@tromey.com>
17848
17849 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17850 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17851
06fc9bf7
TT
178522017-01-10 Tom Tromey <tom@tromey.com>
17853
17854 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17855
830a4934
TT
178562017-01-10 Tom Tromey <tom@tromey.com>
17857
17858 * python/py-utils.c (unicode_to_encoded_string)
17859 (python_string_to_target_string)
17860 (python_string_to_target_python_string)
17861 (python_string_to_host_string, gdbpy_obj_to_string)
17862 (get_addr_from_python): Use gdbpy_ref.
17863
4586d543
TT
178642017-01-10 Tom Tromey <tom@tromey.com>
17865
17866 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17867 gdbpy_ref.
17868
59876f8f
TT
178692017-01-10 Tom Tromey <tom@tromey.com>
17870
17871 * python/python.c (eval_python_command, gdbpy_decode_line)
17872 (gdbpy_run_events, gdbpy_start_type_printers)
17873 (gdbpy_apply_type_printers): Use gdbpy_ref.
17874
97d83487
TT
178752017-01-10 Tom Tromey <tom@tromey.com>
17876
17877 * python/py-param.c (get_doc_string, compute_enum_values): Use
17878 gdbpy_ref.
17879
9205649a
TT
178802017-01-10 Tom Tromey <tom@tromey.com>
17881
17882 * python/py-inferior.c (find_thread_object, build_inferior_list):
17883 Use gdbpy_ref.
17884
74c49d45
TT
178852017-01-10 Tom Tromey <tom@tromey.com>
17886
17887 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17888
16361ffb
TT
178892017-01-10 Tom Tromey <tom@tromey.com>
17890
17891 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17892 gdbpy_ref.
17893
905f2cca
TT
178942017-01-10 Tom Tromey <tom@tromey.com>
17895
17896 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17897 extra incref.
17898 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17899 Use gdbpy_ref.
17900
64081434
TT
179012017-01-10 Tom Tromey <tom@tromey.com>
17902
17903 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17904 gdbpy_ref.
17905
59e9e831
TT
179062017-01-10 Tom Tromey <tom@tromey.com>
17907
17908 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17909 decref results of PyArg_ParseTupleAndKeywords.
17910
9de10f6d
TT
179112017-01-10 Tom Tromey <tom@tromey.com>
17912
17913 * python/python.c (python_run_simple_file): Use
17914 unique_xmalloc_ptr, gdbpy_ref.
17915
2bd5759d
TT
179162017-01-10 Tom Tromey <tom@tromey.com>
17917
17918 * python/py-prettyprint.c (print_stack_unless_memory_error)
17919 (print_string_repr, print_children): Use gdbpy_ref.
17920 (dummy_python_frame): New class.
17921 (dummy_python_frame::dummy_python_frame): Rename from
17922 push_dummy_python_frame.
17923 (py_restore_tstate): Remove.
17924
3b4e0e01
TT
179252017-01-10 Tom Tromey <tom@tromey.com>
17926
17927 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17928
17a22718
TT
179292017-01-10 Tom Tromey <tom@tromey.com>
17930
17931 * python/python.c (ensure_python_env, restore_python_env):
17932 Remove.
17933 * python/python-internal.h (ensure_python_env): Don't declare.
17934 * varobj.h (varobj_ensure_python_env): Don't declare.
17935 * varobj.c (varobj_ensure_python_env): Remove.
17936
68cdc557
TT
179372017-01-10 Tom Tromey <tom@tromey.com>
17938
17939 * varobj.c (varobj_value_get_print_value): Use
17940 gdbpy_enter_varobj.
17941
1eba6383
TT
179422017-01-10 Tom Tromey <tom@tromey.com>
17943
17944 * python/py-prettyprint.c (print_string_repr, print_children):
17945 Update.
17946 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17947 of "encoding".
17948 * varobj.c (varobj_value_get_print_value): Update.
17949 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17950
bde7b3e3
TT
179512017-01-10 Tom Tromey <tom@tromey.com>
17952
17953 * varobj.c (varobj_get_display_hint)
17954 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17955 (varobj_set_visualizer, free_variable): Use
17956 gdbpy_enter_varobj.
17957
a7785f8c
TT
179582017-01-10 Tom Tromey <tom@tromey.com>
17959
17960 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17961 (do_finish_initialization): New function. Use gdbpy_ref.
17962 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17963 do_finish_initialization.
17964
2865bfce
TT
179652017-01-10 Tom Tromey <tom@tromey.com>
17966
17967 * python/py-param.c (get_set_value, get_show_value): Use
17968 gdbpy_enter, gdbpy_ref.
17969
0e9dcc75
TT
179702017-01-10 Tom Tromey <tom@tromey.com>
17971
17972 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17973
12a5cedd
TT
179742017-01-10 Tom Tromey <tom@tromey.com>
17975
17976 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17977
788f2586
TT
179782017-01-10 Tom Tromey <tom@tromey.com>
17979
17980 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17981 Use gdbpy_enter_varobj.
17982
6cd67bea
TT
179832017-01-10 Tom Tromey <tom@tromey.com>
17984
17985 * varobj.c (gdbpy_enter_varobj): New constructor.
17986 * python/python-internal.h (gdbpy_enter_varobj): New class.
17987 * python/py-varobj.c (py_varobj_get_iterator): Use
17988 gdbpy_enter_varobj.
17989
14b122bf
TT
179902017-01-10 Tom Tromey <tom@tromey.com>
17991
17992 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17993 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17994 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17995 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17996 unique_xmalloc_ptr.
17997 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17998
bf1ca3b9
TT
179992017-01-10 Tom Tromey <tom@tromey.com>
18000
18001 * python/py-xmethods.c (invoke_match_method): Use
18002 gdbpy_ref.
18003
572a5524
TT
180042017-01-10 Tom Tromey <tom@tromey.com>
18005
18006 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
18007 gdbpy_enter, gdbpy_ref.
18008
396a78b6
TT
180092017-01-10 Tom Tromey <tom@tromey.com>
18010
18011 * python/python.c (python_interactive_command): Use gdbpy_enter.
18012
a88b13c7
TT
180132017-01-10 Tom Tromey <tom@tromey.com>
18014
18015 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
18016 gdbpy_ref.
18017
e9f0c363
TT
180182017-01-10 Tom Tromey <tom@tromey.com>
18019
18020 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
18021 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
18022
6349f452
TT
180232017-01-10 Tom Tromey <tom@tromey.com>
18024
18025 * utils.h (htab_deleter): New struct.
18026 (htab_up): New typedef.
18027 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
18028 gdbpy_enter, gdbpy_ref, htab_up.
18029
c0171de6
TT
180302017-01-10 Tom Tromey <tom@tromey.com>
18031
18032 * python/py-unwind.c (pending_frame_invalidate): Remove.
18033 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
18034
f18e226f
TT
180352017-01-10 Tom Tromey <tom@tromey.com>
18036
18037 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
18038 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
18039
c57af3f1
TT
180402017-01-10 Tom Tromey <tom@tromey.com>
18041
18042 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
18043
60e600ec
TT
180442017-01-10 Tom Tromey <tom@tromey.com>
18045
18046 * python/python.c (gdbpy_eval_from_control_command)
18047 (gdbpy_source_script, gdbpy_run_events)
18048 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
18049 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
18050 gdbpy_enter.
18051
bf7da5b0
TT
180522017-01-10 Tom Tromey <tom@tromey.com>
18053
18054 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
18055
2d38bced
TT
180562017-01-10 Tom Tromey <tom@tromey.com>
18057
18058 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
18059
07bc7329
TT
180602017-01-10 Tom Tromey <tom@tromey.com>
18061
18062 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
18063 (python_on_inferior_call_pre, python_on_inferior_call_post)
18064 (python_on_memory_change, python_on_register_change)
18065 (python_inferior_exit, python_new_objfile, add_thread_object)
18066 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
18067
6e7c365e
TT
180682017-01-10 Tom Tromey <tom@tromey.com>
18069
18070 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
18071 (bpfinishpy_handle_exit): Use gdbpy_enter.
18072
6ba0cd40
TT
180732017-01-10 Tom Tromey <tom@tromey.com>
18074
18075 * python/py-cmd.c (cmdpy_destroyer)
18076 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
18077 gdbpy_enter.
18078
de2dc875
TT
180792017-01-10 Tom Tromey <tom@tromey.com>
18080
18081 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
18082 gdbpy_enter.
18083 (gdbpy_breakpoint_has_cond): Likewise.
18084
4ecee2c4
TT
180852017-01-10 Tom Tromey <tom@tromey.com>
18086
18087 * python/python.c (gdbpy_enter): New constructor.
18088 (~gdbpy_enter): New destructor.
18089 (restore_python_env, ensure_python_env): Rewrite.
18090 * python/python-internal.h (gdbpy_enter): New class.
18091
37fce74f
TT
180922017-01-10 Tom Tromey <tom@tromey.com>
18093
18094 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
18095
53a0cca3
TT
180962017-01-10 Tom Tromey <tom@tromey.com>
18097
18098 * python/py-value.c (value_has_field, get_field_flag)
18099 (get_field_type, valpy_getitem, convert_value_from_python): Use
18100 gdbpy_ref.
18101
ff3724f5
TT
181022017-01-10 Tom Tromey <tom@tromey.com>
18103
18104 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
18105 gdbpy_ref.
18106
0700aea5
TT
181072017-01-10 Tom Tromey <tom@tromey.com>
18108
18109 * python/py-prettyprint.c (search_pp_list)
18110 (find_pretty_printer_from_objfiles)
18111 (find_pretty_printer_from_progspace)
18112 (find_pretty_printer_from_gdb, find_pretty_printer)
18113 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
18114 gdbpy_ref.
18115
1bb44c9f
TT
181162017-01-10 Tom Tromey <tom@tromey.com>
18117
18118 * python/py-param.c (call_doc_function): Use gdbpy_ref.
18119
87ce03fd
TT
181202017-01-10 Tom Tromey <tom@tromey.com>
18121
18122 * python/py-linetable.c (build_line_table_tuple_from_pcs)
18123 (ltpy_get_all_source_lines): Use gdbpy_ref.
18124
ee0a3fb8
TT
181252017-01-10 Tom Tromey <tom@tromey.com>
18126
18127 * python/py-framefilter.c (extract_sym, extract_value)
18128 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
18129 gdbpy_ref.
18130
bf2a52fa
TT
181312017-01-10 Tom Tromey <tom@tromey.com>
18132
18133 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
18134
f59fe7f8
TT
181352017-01-10 Tom Tromey <tom@tromey.com>
18136
18137 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
18138
80bd970a
TT
181392017-01-10 Tom Tromey <tom@tromey.com>
18140
18141 * python/py-function.c (convert_values_to_python, fnpy_init): Use
18142 gdbpy_ref.
18143
d1b3de2e
TT
181442017-01-10 Tom Tromey <tom@tromey.com>
18145
18146 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
18147
3bb43384
TT
181482017-01-10 Tom Tromey <tom@tromey.com>
18149
18150 * python/py-type.c (convert_field, make_fielditem, typy_fields)
18151 (typy_range): Use gdbpy_ref.
18152
abf5651e
TT
181532017-01-10 Tom Tromey <tom@tromey.com>
18154
18155 * python/py-threadevent.c (create_thread_event_object): Use
18156 gdbpy_ref.
18157 * python/py-stopevent.c (create_stop_event_object): Simplify.
18158 (emit_stop_event): Use gdbpy_ref.
18159 * python/py-signalevent.c (create_signal_event_object): Use
18160 gdbpy_ref.
18161 * python/py-newobjfileevent.c (create_new_objfile_event_object)
18162 (emit_new_objfile_event, create_clear_objfiles_event_object)
18163 (emit_clear_objfiles_event): Use gdbpy_ref.
18164 * python/py-infevents.c (create_inferior_call_event_object)
18165 (create_register_changed_event_object)
18166 (create_memory_changed_event_object, emit_inferior_call_event)
18167 (emit_memory_changed_event, emit_register_changed_event): Use
18168 gdbpy_ref.
18169 * python/py-exitedevent.c (create_exited_event_object)
18170 (emit_exited_event): Use gdbpy_ref.
18171 * python/py-event.h (evpy_emit_event): Remove
18172 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
18173 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
18174 * python/py-continueevent.c (emit_continue_event): Use
18175 gdbpy_ref.
18176 * python/py-breakpoint.c (gdbpy_breakpoint_created)
18177 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
18178 gdbpy_ref.
18179 * python/py-bpevent.c (create_breakpoint_event_object): Use
18180 gdbpy_ref.
18181
a68ff33e
TT
181822017-01-10 Tom Tromey <tom@tromey.com>
18183
18184 * python/py-ref.h: New file.
18185
7becfd03
SM
181862017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18187
18188 * cli-out.c (cli_ui_out::do_redirect): Change return type to
18189 void.
18190 * cli-out.h (cli_ui_out::do_redirect): Likewise.
18191 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
18192 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
18193 * ui-out.c (ui_out::redirect): Likewise.
18194 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
18195 * cli/cli-logging.c (set_logging_redirect): Update call site of
18196 ui_out::redirect.
18197 (handle_redirections): Likewise.
18198 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
18199 * top.c (execute_command_to_string): Likewise.
18200 * utils.c (do_ui_out_redirect_pop): Likewise.
18201
df294654
SM
182022017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18203
18204 * stack.c (_initialize_stack): Update "frame" command help message.
18205
f5e6296e
IB
182062017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
18207
18208 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
18209
0e2d6fa6
YQ
182102017-01-06 Yao Qi <yao.qi@linaro.org>
18211
18212 * x86-linux-nat.h: Include gdb_proc_service.h.
18213
44d6d3f9
YQ
182142017-01-06 Yao Qi <yao.qi@linaro.org>
18215
18216 * ser-base.h: Include serial.h.
18217
656731fe
YQ
182182017-01-06 Yao Qi <yao.qi@linaro.org>
18219
18220 * ppc-linux-tdep.h: Include ppc-tdep.h.
18221
1ca8f924
YQ
182222017-01-06 Yao Qi <yao.qi@linaro.org>
18223
18224 * nat/amd64-linux-siginfo.h: Include signal.h.
18225
bc3008c4
YQ
182262017-01-06 Yao Qi <yao.qi@linaro.org>
18227
18228 * nat/aarch64-linux-hw-point.h: Include break-common.h.
18229
66c80d03
YQ
182302017-01-06 Yao Qi <yao.qi@linaro.org>
18231
18232 * mi/mi-parse.h: Include mi-cmds.h.
18233
051d2dda
YQ
182342017-01-06 Yao Qi <yao.qi@linaro.org>
18235
18236 * inf-loop.c: Don't include "target.h".
18237 * inf-loop.h: Include it here.
18238
8018d34f
YQ
182392017-01-06 Yao Qi <yao.qi@linaro.org>
18240
18241 * dfp.h: Include "dboulest.h" and "expression.h".
18242
c0b8369c
YQ
182432017-01-06 Yao Qi <yao.qi@linaro.org>
18244
18245 * ax-gdb.h: Include "ax.h".
18246
ad5cba2a
YQ
182472017-01-06 Yao Qi <yao.qi@linaro.org>
18248
18249 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18250 with nat/gdb_ptrace.h.
18251
1c33cd7f
YQ
182522017-01-05 Yao Qi <yao.qi@linaro.org>
18253
18254 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18255 new line.
18256 (mips64_fbsd_sigframe_init): Likewise.
18257
c988ac1d
JB
182582017-01-04 John Baldwin <jhb@FreeBSD.org>
18259
18260 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18261 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18262
b268007c
JB
182632017-01-04 John Baldwin <jhb@FreeBSD.org>
18264
18265 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18266 * NEWS: Mention new FreeBSD/mips native configuration.
18267 * config/mips/fbsd.mh: New file.
18268 * configure.host: Add mips*-*-freebsd*.
18269 * mips-fbsd-nat.c: New file.
18270
387360da
JB
182712017-01-04 John Baldwin <jhb@FreeBSD.org>
18272
18273 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18274 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18275 * NEWS: Mention new FreeBSD/mips target.
18276 * configure.tgt: Add mips*-*-freebsd*.
18277 * mips-fbsd-tdep.c: New file.
18278 * mips-fbsd-tdep.h: New file.
18279
2aaaf250
YQ
182802017-01-04 Yao Qi <yao.qi@linaro.org>
18281
18282 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18283 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18284
61baf725
JB
182852017-01-01 Joel Brobecker <brobecker@adacore.com>
18286
6dbb839a 18287 Update copyright year range in all GDB files.
61baf725 18288
c113e7ff 182892017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 18290
c113e7ff 18291 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 18292
c113e7ff 18293For older changes see ChangeLog-2016.
c906108c
SS
18294\f
18295Local Variables:
18296mode: change-log
18297left-margin: 8
18298fill-column: 74
18299version-control: never
57da7796 18300coding: utf-8
c906108c 18301End:
This page took 3.109864 seconds and 4 git commands to generate.