(Ada) Add support for task switching when debugging core files
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e05fa6f9
JB
12017-12-14 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-tasks.c (read_atcb): Properly set task_info->ptid
4 when !target_has_execution as well.
5 (task_command): Remove error when !target_has_execution.
6
b89641ba
SM
72017-12-13 Simon Marchi <simon.marchi@ericsson.com>
8
9 * location.h (string_to_event_location): Add match_type
10 parameter.
11 * location.c (string_to_event_location): Likewise.
12 * python/py-breakpoint.c (bppy_init): Handle qualified
13 parameter.
14
a22ecf70
PA
152017-12-13 Pedro Alves <palves@redhat.com>
16
17 * completer.c (completion_tracker::maybe_add_completion): New
18 'text' and 'word' parameters. Use make_completion_match_str.
19 (completion_tracker::add_completion): New 'text' and 'word'
20 parameters. Pass down.
21 (completion_tracker::recompute_lowest_common_denominator): Change
22 parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust.
23 * completer.h (completion_tracker::add_completion): New 'text' and
24 'word' parameters.
25 (completion_tracker::recompute_lowest_common_denominator): Change
26 parameter type to gdb::unique_xmalloc_ptr rval ref.
27 (completion_tracker::recompute_lowest_common_denominator): Change
28 parameter type to gdb::unique_xmalloc_ptr rval ref.
29 * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
30 as well.
31
60a20c19
PA
322017-12-13 Pedro Alves <palves@redhat.com>
33
34 * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
35 make_completion_match_str.
36 * completer.c: Use gdb::unique_xmalloc_ptr and
37 make_completion_match_str.
38 (make_completion_match_str_1): New.
39 (make_completion_match_str(const char *, const char *,
40 const char *)): New.
41 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
42 const char *, const char *)): New.
43 * completer.h (make_completion_match_str(const char *,
44 const char *, const char *)): New.
45 (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
46 const char *, const char *)): New.
47 * interps.c (interpreter_completer): Use make_completion_match_str.
48 * symtab.c (completion_list_add_name, add_filename_to_list): Use
49 make_completion_match_str.
50
96647014
SH
512017-12-13 Stafford Horne <shorne@gmail.com>
52
53 * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
54 strings.
55 (or1k_unwind_pc): Use paddress() instead of %p.
56 (or1k_unwind_sp): Likewise.
57 (or1k_frame_cache): Use host_address_to_string()/paddress()
58 instead of %p and use _() wrapper for message strings.
59
3bbd9f18
SM
602017-12-13 Simon Marchi <simon.marchi@ericsson.com>
61
62 * contrib/ari/gdb_ari.sh: Fix typo in help.
63
9937536c
JB
642017-12-13 Joel Brobecker <brobecker@adacore.com>
65
66 * event-top.c (handle_line_of_input): Set server_command.
67
a994fec4
FJ
682017-12-12 Stafford Horne <shorne@gmail.com>
69 Stefan Wallentowitz <stefan@wallentowitz.de>
70 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
71 Franck Jullien <franck.jullien@gmail.com>
72 Jeremy Bennett <jeremy.bennett@embecosm.com>
73
74 * configure.tgt: Add targets for or1k and or1knd.
75 * or1k-tdep.c: New file.
76 * or1k-tdep.h: New file.
77 * features/Makefile: Add or1k.xml to build.
78 * features/or1k.xml: New file.
79 * features/or1k-core.xml: New file.
80 * features/or1k.c: Generated.
81
db9077b7
AM
822017-12-12 Alan Modra <amodra@gmail.com>
83
84 PR tdep/22576
85 * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
86 PLT offset, and retrieve r2 from stack when executing in reverse.
87 (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
88 rather than PLT address.
89 (ppc64_standard_linkage2_target): Likewise.
90 (ppc64_standard_linkage3_target): Likewise.
91 (ppc64_standard_linkage4_target): Likewise.
92 (ppc64_skip_trampoline_code_1): Adjust to suit.
93
a9334058
SM
942017-12-11 Simon Marchi <simon.marchi@ericsson.com>
95
96 PR gdb/22556
97 * remote.c (remote_thread_name): Return NULL if name is empty.
98 (remote_threads_extra_info): Return NULL if extra info is empty.
99
3c0aa29a
PA
1002017-12-11 Pedro Alves <palves@redhat.com>
101
102 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
103 (elf_sym_fns_debug_names): Move to elfread.c.
104 * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
105 instead of a sym_fns and add 'index_kind' output parameter. Fill
106 the latter in with the index variant kind if using an index.
107 (enum dw_index_kind): Moved to symfile.h.
108 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
109 (elf_sym_fns_lazy_psyms): Move from defs.h.
110 (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
111 interface.
112 * symfile.h (enum class dw_index_kind): New, moved from
113 dwarf2read.c.
114 (dwarf2_initialize_objfile): Change prototype.
115
f2f9e7ec
UW
1162017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
117
118 * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
119 instead of mpfr_set_si to convert mantissa bits.
120
08f49010
XR
1212017-12-11 Xavier Roirand <roirand@adacore.com>
122 Joel Brobecker <brobecker@adacore.com>
123
124 * ada-lang.c (ada_tag_value_at_base_address): Change the way
125 tagged type base address is computed.
126 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
127 New enumerate.
128 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
129 element of lai->primitive_type_vector.
130
a3c5fafd
PA
1312017-12-08 Pedro Alves <palves@redhat.com>
132
133 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
134 mapped_index_base.
135 (check_match): Adjust to use mock_index directly.
136 (check_find_bounds_finds)
137 (test_mapped_index_find_name_component_bounds): Adjust to work
138 with a mapped_index_base.
139
44ed8f3e
PA
1402017-12-08 Pedro Alves <palves@redhat.com>
141
142 * dwarf2read.c (struct mapped_index_base): New, partially factored
143 out from ...
144 (struct mapped_index): ... this. Inherit mapped_index_base.
145 (mapped_index::symbol_name_slot_invalid):
146 (mapped_index::symbol_name_at): Add override marker.
147 (mapped_index::symbol_name_count): New.
148 (struct mapped_debug_names): Inherit mapped_index_base.
149 (mapped_debug_names::symbol_name_at): New.
150 (mapped_debug_names::symbol_name_count): New.
151 (mapped_index::find_name_components_bounds): Rename to ...
152 (mapped_index_base::find_name_components_bounds): ... this.
153 (mapped_index::build_name_components): Rename to ...
154 (mapped_index_base::build_name_components): ... this. Adjust to
155 use mapped_index_base::symbol_name_count and
156 mapped_index_base::symbol_name_slot_invalid.
157 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
158 instead of a mapped_index. Use
159 dw2_expand_symtabs_matching_symbol.
160
f00a2de2
PA
1612017-12-08 Pedro Alves <palves@redhat.com>
162
163 * dwarf2read.c (mapped_index::symbol_table_slot): New.
164 (mapped_index::address_table): Now a gdb::array_view of const
165 gdb_byte.
166 (mapped_index::symbol_table): Now a gdb::array_view of
167 symbol_table_slot.
168 (mapped_index::address_table_size)
169 (mapped_index::symbol_table_slots): Delete.
170 (create_addrmap_from_index): Adjust.
171 (find_slot_in_mapped_hash): Adjust.
172 (read_index_from_section): Adjust.
173 (dwarf2_read_index): Adjust.
174
927aa2e7
JK
1752017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
176 Pedro Alves <palves@redhat.com>
177
178 * defs.h (elf_sym_fns_debug_names): New declaration.
179 * dwarf2read.c: Include "hash_enum.h".
180 (mapped_debug_names): New.
181 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
182 debug_names_table.
183 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
184 (struct dwz_file): Add debug_names.
185 (dwarf2_per_objfile::locate_sections): Handle debug_names and
186 debug_aranges.
187 (locate_dwz_sections): Handle debug_names.
188 (create_signatured_type_table_from_debug_names)
189 (create_addrmap_from_aranges): New.
190 (dwarf2_read_index): Update function comment.
191 (dwarf5_augmentation): Moved up.
192 (read_debug_names_from_section, create_cus_from_debug_names_list)
193 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
194 (dwarf5_djb_hash): Moved up.
195 (dw2_debug_names_iterator): New.
196 (read_indirect_string_at_offset): New declaration.
197 (mapped_debug_names::namei_to_name)
198 (dw2_debug_names_iterator::find_vec_in_debug_names)
199 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
200 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
201 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
202 New.
203 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
204 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
205 (debug_names::build): Update djb_hash caller.
206 (write_debug_names): Move out and rename augmentation to
207 dwarf5_augmentation.
208 * elfread.c (elf_sym_fns_debug_names): New.
209 * psymtab.h (dwarf2_debug_names_functions): New declaration.
210 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
211 debug_aranges.
212 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
213
e5fa6583
PA
2142017-12-08 Pedro Alves <palves@redhat.com>
215
216 * common/hash_enum.h: New file.
217
4b514bc8
JK
2182017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
219
220 * dwarf2read.c (create_cu_from_index_list): New from ...
221 (create_cus_from_index_list): ... this function, use it.
222 (dw_expand_symtabs_matching_file_matcher)
223 (dw2_expand_symtabs_matching_one): New from ...
224 (dw2_expand_symtabs_matching): ... this function, use them.
225
abccd1e7
JK
2262017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
227
228 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
229 declarations from elfread.c.
230 (dwarf2_initialize_objfile): Change return value.
231 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
232 declarations to defs.h.
233 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
234 * symfile.h (dwarf2_initialize_objfile): Change return type.
235
437afbb8
JK
2362017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
237 Pedro Alves <palves@redhat.com>
238
239 * contrib/gdb-add-index.sh (index): Rename to ...
240 (index4): ... here.
241 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
242 Support also .debug_names and .debug_str.
243 * dwarf2read.c: Include cmath, set, list.
244 (INDEX_SUFFIX): Rename to ...
245 (INDEX4_SUFFIX): ... here.
246 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
247 (file_write(FILE *, const void *, size_t)): New.
248 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
249 (data_buf::append_unsigned_leb128, data_buf::empty): New.
250 (data_buf::file_write): Use ::file_write.
251 (data_buf::c_str, dwarf5_djb_hash, debug_names)
252 (check_dwarf64_offsets): New.
253 (psyms_seen_size, write_gdbindex): New from
254 write_psymtabs_to_index code.
255 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
256 (enum dw_index_kind): New.
257 (write_psymtabs_to_index): New parameter index_kind. Support
258 filename_str and out_file_str. Move code to write_gdbindex,
259 possibly call write_debug_names.
260 (save_gdb_index_command): New parameter -dwarf-5.
261 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
262
6432ec65
JK
2632017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
264 Pedro Alves <palves@redhat.com>
265
266 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
267 comment.
268 (GDB_ADD_INDEX): New variable.
269 <$want_index>: Call $GDB_ADD_INDEX.
270
92469284
SDJ
2712017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
272
273 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
274 "expression_up" inside the TRY block.
275
f17d9474
YQ
2762017-12-08 Yao Qi <yao.qi@linaro.org>
277
278 * breakpoint.c (update_watchpoint): Call
279 address_significant.
280
a0de8c21
YQ
2812017-12-08 Yao Qi <yao.qi@linaro.org>
282
283 * breakpoint.c (adjust_breakpoint_address): Call
284 address_significant.
285
a738ea1d
YQ
2862017-12-08 Yao Qi <yao.qi@linaro.org>
287
288 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
289 significant_addr_bit.
290 * gdbarch.sh (significant_addr_bit): New.
291 * gdbarch.c, gdbarch.h: Re-generated.
292 * target.c (memory_xfer_partial): Call address_significant.
293 * utils.c (address_significant): New function.
294 * utils.h (address_significant): Declare.
295
8e481c3b
TT
2962017-12-08 Tom Tromey <tom@tromey.com>
297
298 * printcmd.c (ui_printf): Update. Use std::vector.
299 * common/format.h (struct format_piece): Add constructor.
300 <string>: Now const.
301 (class format_pieces): New class.
302 (parse_format_string, free_format_pieces)
303 (free_format_pieces_cleanup): Remove.
304 * common/format.c (format_pieces::format_pieces): Rename from
305 parse_format_string. Update.
306 (free_format_pieces, free_format_pieces_cleanup): Remove.
307 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
308 * ax-gdb.h (gen_printf): Remove argument.
309 * ax-gdb.c (gen_printf): Remove "frags" argument.
310 (maint_agent_printf_command): Update. Use std::vector.
311
6b05c8bd
YQ
3122017-12-08 Yao Qi <yao.qi@linaro.org>
313
314 PR breakpionts/22567
315 * linespec.c (minsym_found): Set sal.section.
316
336ef6d2
AA
3172017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
318
319 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
320
fa6eb693
KS
3212017-12-07 Keith Seitz <keiths@redhat.com>
322
323 PR breakpoints/22569
324 * location.c (string_to_explicit_location): When terminating
325 parsing early, break out of enclosing loop instead of returning.
326
883fd55a
KS
3272017-12-07 Keith Seitz <keiths@redhat.com>
328
329 * NEWS (New commands): Mention set/show print type nested-type-limit.
330 * c-typeprint.c (c_type_print_base): Print out nested types.
331 * dwarf2read.c (struct typedef_field_list): Rename to ...
332 (struct decl_field_list): ... this. Change all uses.
333 (struct field_info) <nested_types_list, nested_types_list_count>:
334 New fields.
335 (add_partial_symbol): Look for nested type definitions in C++, too.
336 (dwarf2_add_typedef): Rename to ...
337 (dwarf2_add_type_defn): ... this.
338 (type_can_define_types): New function.
339 Update assertion to use type_can_define_types.
340 Permit NULL for a field's name.
341 (process_structure_scope): Handle child DIEs of types that can
342 define types.
343 Copy the list of nested types into the type struct.
344 * gdbtypes.h (struct typedef_field): Rename to ...
345 (struct decl_field): ... this. Change all uses.
346 [is_protected, is_private]: New fields.
347 (struct cplus_struct_type) <nested_types, nested_types_count>: New
348 fields.
349 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
350 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
351 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
352 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
353 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
354 default value for print_nested_type_limit.
355 (print_nested_type_limit): New static variable.
356 (set_print_type_nested_types, show_print_type_nested_types): New
357 functions.
358 (_initialize_typeprint): Register new commands for set/show
359 `print-nested-type-limit'.
360 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
361 New field.
362
99598d71
TT
3632017-12-07 Tom Tromey <tom@tromey.com>
364
365 PR breakpoints/22511:
366 * breakpoint.c (commands_command_1): Don't throw an exception when
367 no commands have been read.
368
23a8d186
AS
3692017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
370
371 PR c++/21222
372 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
373 range-for variable.
374
30970df7
SM
3752017-12-07 Simon Marchi <simon.marchi@ericsson.com>
376
377 * common/selftest.h (struct selftest): Add virtual destructor.
378
824cc835
PM
3792017-12-07 Phil Muldoon <pmuldoon@redhat.com>
380
381 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
382 over basic location code. Implement explicit location keywords.
383 (bppy_init_validate_args): New function.
384 * NEWS: Document Python explicit breakpoint locations.
385
9c226a86
JB
3862017-12-07 Joel Brobecker <brobecker@adacore.com>
387
388 * MAINTAINERS: Restore target entries for m68hc11-elf,
389 score-elf and xstormy16-elf, incorrectly removed in a previous
390 patch meant to only update the list of active maintainers.
391
649a140c
PA
3922017-12-06 Pedro Alves <palves@redhat.com>
393
394 * break-catch-syscall.c (insert_catch_syscall)
395 (remove_catch_syscall): Adjust to pass reference to
396 inf_data->syscalls_counts directly via gdb::array_view.
397 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
398 and gdb::array_view.
399 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
400 * remote.c (remote_set_syscall_catchpoint): Likewise.
401 * target-debug.h (target_debug_print_bool): New.
402 (define target_debug_print_gdb_array_view_const_int): New.
403 * target-delegates.c: Regenerate.
404 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
405 gdb::array_view and bool.
406 (target_set_syscall_catchpoint): Likewise.
407
9a93831c
SM
4082017-12-06 Simon Marchi <simon.marchi@ericsson.com>
409
410 * break-catch-syscall.c (catch_syscall_completer): Get pointers
411 to syscall group strings after building the string vector.
412
7cc244de
PA
4132017-12-06 Pedro Alves <palves@redhat.com>
414
415 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
416 "qXfer:features:read"" is disabled.
417 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
418 Check packet_config_support instead of packet->support directly.
419
858c9d13
SM
4202017-12-05 Simon Marchi <simon.marchi@ericsson.com>
421
422 * target-descriptions.c (struct tdesc_feature) <registers>: Use
423 tdesc_reg_up typedef.
424 (struct target_desc) <features>: Use tdesc_feature_up typedef.
425
d4a0e8b5
SM
4262017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
427
428 * target-descriptions.c (struct tdesc_type): Use default
429 destructor.
430 <u>: Remove.
431 <accept>: Remove.
432 (struct tdesc_type_builtin): New.
433 (struct tdesc_type_vector): New.
434 (struct tdesc_type_with_fields): New.
435 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
436 (tdesc_gdb_type): Remove.
437 (tdesc_register_type): Adjust.
438 (tdesc_create_vector): Create tdesc_type_vector.
439 (tdesc_create_struct): Create tdesc_type_with_fields.
440 (tdesc_set_struct_size): Change parameter type.
441 (tdesc_create_union): Create tdesc_type_with_fields.
442 (tdesc_create_flags): Likewise.
443 (tdesc_create_enum): Likewise.
444 (tdesc_add_field): Change parameter type.
445 (tdesc_add_typed_bitfield): Likewise.
446 (tdesc_add_bitfield): Likewise.
447 (tdesc_add_flag): Likewise.
448 (tdesc_add_enum_value): Likewise.
449 (print_c_tdesc) <visit>: Remove overload with tdesc_type
450 parameter, add overloads for tdesc_type_builtin,
451 tdesc_type_with_fields and tdesc_type_vector.
452 <m_printed_type>: Remove.
453 <m_printed_element_type, m_printed_type_with_fields>: Add.
454 * target-descriptions.h (tdesc_create_enum): Change return type.
455 (tdesc_add_typed_bitfield): Change parameter type.
456 (tdesc_add_enum_value): Change parameter type.
457 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
458 type to tdesc_type_with_fields.
459 (tdesc_start_struct): Adjust.
460 (tdesc_start_flags): Adjust.
461 (tdesc_start_enum): Adjust.
462 (tdesc_start_field): Adjust.
463 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
464 (struct tdesc_type_vector): Forward-declare.
465 (struct tdesc_type_with_fields): Forward-declare.
466 (tdesc_create_struct): Change return type.
467 (tdesc_create_union): Likewise.
468 (tdesc_create_flags): Likewise.
469 (tdesc_add_field): Change parameter type.
470 (tdesc_set_struct_size): Likewise.
471 (tdesc_add_bitfield): Likewise.
472 (tdesc_add_flag): Likewise.
473 * features: Re-generate C files.
474
f0cddbef
SM
4752017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
476
477 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
478 (struct tdesc_arch_reg): Add constructor.
479 (DEF_VEC_O (tdesc_arch_reg)): Remove.
480 (struct tdesc_arch_data): Initialize fields.
481 <arch_regs>: Change type to std::vector.
482 (target_find_description): Adjust.
483 (tdesc_find_type): Adjust.
484 (tdesc_data_init): Call tdesc_arch_data constructor.
485 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
486 (tdesc_data_cleanup): Free data with delete.
487 (tdesc_numbered_register): Adjust.
488 (tdesc_find_arch_register): Adjust.
489 (tdesc_use_registers): Adjust.
490
d05200d1
SM
4912017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
492
493 * target-descriptions.c (tdesc_type_field): Remove typedef.
494 (DEF_VEC_O (tdesc_type_field)): Remove.
495 (struct tdesc_type_field): Add constructor.
496 <name>: Change type to std::string.
497 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
498 kind uses it.
499 <~tdesc_type>: Destroy vector if the type kind uses it.
500 <u::u::fields>: Change type to std::vector.
501 (tdesc_gdb_type): Adjust.
502 (tdesc_add_field): Adjust.
503 (tdesc_add_typed_bitfield): Adjust.
504 (tdesc_add_field): Adjust.
505 (tdesc_add_enum_value): Adjust.
506 (class print_c_tdesc) <visit>: Adjust.
507
082b9140
SM
5082017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * target-descriptions.c (struct tdesc_type) <name>: Change type
511 to std::string.
512 <~tdesc_type>: Don't manually free name.
513 <operator==>: Adjust.
514 (tdesc_named_type): Adjust.
515 (tdesc_find_type): Adjust.
516 (tdesc_gdb_type): Adjust.
517 (class print_c_tdesc) <visit>: Adjust.
518
53c934e9
SM
5192017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * target-descriptions.c (tdesc_type_p): Remove typedef.
522 (DEF_VEC_P (tdesc_type_p)): Remove.
523 (struct tdesc_feature) <types>: Change type to std::vector.
524 <~tdesc_feature>: Replace with default implementation.
525 <accept>: Adjust.
526 (tdesc_named_type): Adjust.
527 (tdesc_create_vector): Adjust.
528 (tdesc_create_struct): Adjust.
529 (tdesc_create_union): Adjust.
530 (tdesc_create_flags): Adjust.
531 (tdesc_create_enum): Adjust.
532
a8142ee1
SM
5332017-12-05 Simon Marchi <simon.marchi@ericsson.com>
534
535 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
536 type of name_ parameter, adjust to std::string change.
537 <name, group, type>: Change type to std::string.
538 <~tdesc_reg>: Replace with default implementation.
539 <operator==>: Adjust.
540 (tdesc_find_register_early): Adjust.
541 (tdesc_register_name): Adjust.
542 (tdesc_register_type): Adjust.
543 (tdesc_register_in_reggroup_p): Adjust.
544 (class print_c_tdesc) <visit>: Adjust.
545 (class print_c_feature) <visit>: Adjust.
858c9d13
SM
546 * features/arc-arcompact.c: Re-generate.
547 * features/arc-v2.c: Re-generate.
a8142ee1 548
c9c895b9
SM
5492017-12-05 Simon Marchi <simon.marchi@ericsson.com>
550
551 * target-descriptions.c (tdesc_reg_p): Remove typedef.
552 (DEF_VEC_P (tdesc_reg_p)): Remove.
553 (struct tdesc_feature) <registers>: Change type to std::vector.
554 <~tdesc_feature>: Don't manually free registers.
555 <accept>: Adjust.
556 <operator==>: Adjust.
557 (tdesc_has_registers): Adjust.
558 (tdesc_find_register_early): Adjust.
559 (tdesc_use_registers): Adjust.
560 (tdesc_create_reg): Adjust.
561
f65ff9f9
SM
5622017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
563
564 * target-descriptions.c (tdesc_feature) <name>: Change type to
565 std::string.
566 <~tdesc_feature>: Don't manually free name.
567 <operator==>: Adjust.
568 (tdesc_find_feature): Adjust.
569 (tdesc_feature_name): Adjust.
570 (class print_c_tdesc) <visit_pre>: Adjust.
571 (class print_c_feature) <visit_pre>: Adjust.
572
3eea796c
SM
5732017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * target-descriptions.c (tdesc_feature_p): Remove typedef.
576 (DEF_VEC_P (tdesc_feature_p)): Remove.
577 (struct target_desc) <features>: Change type to std::vector.
578 <~target_desc>: Replace with default implementation.
579 <accept>: Adjust.
580 <operator==>: Adjust.
581 (tdesc_has_registers): Adjust.
582 (tdesc_find_feature): Adjust.
583 (tdesc_use_registers): Adjust.
584 (tdesc_create_feature): Adjust.
585
40e2a983
SM
5862017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * target-descriptions.c (arch_p): Remove typedef.
589 (DEF_VEC_P (arch_p)): Remove.
590 (struct target_desc) <compatible>: Change type to std::vector.
591 <~target_desc>: Don't manually free compatible.
592 (tdesc_compatible_p): Adjust.
593 (tdesc_add_compatible): Adjust.
594 (class print_c_tdesc) <visit_pre>: Adjust.
595
129c10bc
SM
5962017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
597
598 * target-descriptions.c (property_s): Remove typedef.
599 (DEF_VEC_O (property_s)): Remove.
600 (struct target_desc) <properties>: Make an std::vector.
601 <~target_desc>: Don't manually free properties.
602 (tdesc_property): Adjust.
603 (set_tdesc_property): Adjust.
604 (class print_c_tdesc) <visit_pre>: Adjust.
605
ed9376bd
SM
6062017-12-05 Simon Marchi <simon.marchi@ericsson.com>
607
608 * common/gdb_assert.h (gdb_static_assert): Redefine using
609 static_assert.
610
798a7429
SM
6112017-12-05 Simon Marchi <simon.marchi@ericsson.com>
612
613 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
614 unused variables.
615 (ada_is_redundant_range_encoding): Likewise.
616 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
617 Likewise.
618 * alpha-tdep.c (alpha_software_single_step): Likewise.
619 * arm-tdep.c (_initialize_arm_tdep): Likewise.
620 * auto-load.c (info_auto_load_cmd): Likewise.
621 * break-catch-syscall.c (insert_catch_syscall): Likewise.
622 (remove_catch_syscall): Likewise.
623 * breakpoint.c (condition_completer): Likewise.
624 (clear_command): Likewise.
625 (update_breakpoint_locations): Likewise.
626 * btrace.c (btrace_disable): Likewise.
627 (btrace_teardown): Likewise.
628 (btrace_maint_update_pt_packets): Likewise.
629 (maint_btrace_clear_cmd): Likewise.
630 * cli/cli-decode.c (lookup_cmd_1): Likewise.
631 (lookup_cmd_composition): Likewise.
632 * cli/cli-dump.c (scan_filename): Likewise.
633 (restore_command): Likewise.
634 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
635 * compile/compile-object-load.c (compile_object_load): Likewise.
636 * compile/compile-object-run.c (compile_object_run): Likewise.
637 * compile/compile.c (compile_to_object): Likewise.
638 * completer.c (filename_completer): Likewise.
639 (complete_files_symbols): Likewise.
640 (complete_expression): Likewise.
641 * corelow.c (core_open): Likewise.
642 * ctf.c (ctf_start): Likewise.
643 (ctf_write_status): Likewise.
644 (ctf_write_uploaded_tsv): Likewise.
645 (ctf_write_definition_end): Likewise.
646 (ctf_open_dir): Likewise.
647 (ctf_xfer_partial): Likewise.
648 (ctf_trace_find): Likewise.
649 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
650 Likewise.
651 * dwarf2loc.c (allocate_piece_closure): Likewise.
652 (indirect_pieced_value): Likewise.
653 (dwarf2_evaluate_loc_desc_full): Likewise.
654 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
655 (dw2_expand_symtabs_matching): Likewise.
656 (dw2_map_symbol_filenames): Likewise.
657 (read_and_check_comp_unit_head): Likewise.
658 (read_cutu_die_from_dwo): Likewise.
659 (lookup_dwo_unit): Likewise.
660 (read_comp_units_from_section): Likewise.
661 (dwarf2_compute_name): Likewise.
662 (handle_DW_AT_stmt_list): Likewise.
663 (create_cus_hash_table): Likewise.
664 (create_dwp_v2_section): Likewise.
665 (dwarf2_rnglists_process): Likewise.
666 (dwarf2_ranges_process): Likewise.
667 (dwarf2_record_block_ranges): Likewise.
668 (is_vtable_name): Likewise.
669 (read_formatted_entries): Likewise.
670 (skip_form_bytes): Likewise.
671 * elfread.c (elf_symtab_read): Likewise.
672 * exec.c (exec_file_command): Likewise.
673 * f-valprint.c (f_val_print): Likewise.
674 (info_common_command_for_block): Likewise.
675 * guile/guile.c (initialize_scheme_side): Likewise.
676 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
677 * guile/scm-cmd.c (cmdscm_completer): Likewise.
678 (gdbscm_register_command_x): Likewise.
679 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
680 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
681 * guile/scm-ports.c (file_port_magic): Likewise.
682 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
683 (ppscm_pretty_print_one_value): Likewise.
684 (ppscm_print_children): Likewise.
685 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
686 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
687 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
688 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
689 * i386-tdep.c (i386_register_reggroup_p): Likewise.
690 * infcmd.c (run_command_1): Likewise.
691 (until_next_fsm_clean_up): Likewise.
692 * linespec.c (linespec_complete): Likewise.
693 (find_label_symbols): Likewise.
694 * m2-valprint.c (m2_val_print): Likewise.
695 * memattr.c (require_user_regions): Likewise.
696 (lookup_mem_region): Likewise.
697 (disable_mem_command): Likewise.
698 (mem_delete): Likewise.
699 * mep-tdep.c (mep_register_name): Likewise.
700 (mep_analyze_prologue): Likewise.
701 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
702 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
703 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
704 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
705 * minidebug.c (lzma_open): Likewise.
706 * minsyms.c (lookup_minimal_symbol): Likewise.
707 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
708 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
709 (mips_o64_return_value): Likewise.
710 (mips_single_step_through_delay): Likewise.
711 (_initialize_mips_tdep): Likewise.
712 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
713 (nios2_software_single_step): Likewise.
714 * parse.c (find_minsym_type_and_address): Likewise.
715 * psymtab.c (psym_relocate): Likewise.
716 * python/py-breakpoint.c (bppy_get_commands): Likewise.
717 (gdbpy_breakpoint_modified): Likewise.
718 * python/py-infevents.c (create_inferior_call_event_object):
719 Likewise.
720 * python/py-record-btrace.c (btpy_list_item): Likewise.
721 * python/py-type.c (typy_str): Likewise.
722 * python/py-value.c (valpy_call): Likewise.
723 * python/python.c (do_start_initialization): Likewise.
724 * record-btrace.c (record_btrace_insn_history_range): Likewise.
725 (record_btrace_call_history_range): Likewise.
726 (record_btrace_record_method): Likewise.
727 (record_btrace_xfer_partial): Likewise.
728 (btrace_get_frame_function): Likewise.
729 * record-full.c (record_full_open): Likewise.
730 * record.c (get_context_size): Likewise.
731 * registry.h (DEFINE_REGISTRY): Likewise.
732 * remote-fileio.c (remote_fileio_request): Likewise.
733 * remote.c (remote_update_thread_list): Likewise.
734 (remote_check_symbols): Likewise.
735 (remote_commit_resume): Likewise.
736 (remote_interrupt): Likewise.
737 (remote_insert_breakpoint): Likewise.
738 (compare_sections_command): Likewise.
739 * rust-exp.y (super_name): Likewise.
740 (lex_string): Likewise.
741 (convert_ast_to_type): Likewise.
742 (convert_ast_to_expression): Likewise.
743 * rust-lang.c (rust_print_struct_def): Likewise.
744 (rust_print_type): Likewise.
745 (rust_evaluate_subexp): Likewise.
746 * rx-tdep.c (rx_register_type): Likewise.
747 * ser-event.c (serial_event_clear): Likewise.
748 * serial.c (serial_open): Likewise.
749 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
750 * symfile.c (section_is_overlay): Likewise.
751 (overlay_unmapped_address): Likewise.
752 (overlay_mapped_address): Likewise.
753 (simple_overlay_update_1): Likewise.
754 (simple_overlay_update): Likewise.
755 * symtab.c (symbol_find_demangled_name): Likewise.
756 (search_symbols): Likewise.
757 * target-descriptions.c (tdesc_predefined_type): Likewise.
758 * target.c (target_commit_resume): Likewise.
759 * thread.c (print_selected_thread_frame): Likewise.
760 * top.c (new_ui_command): Likewise.
761 (gdb_readline_no_editing): Likewise.
762 * tracefile-tfile.c (tfile_open): Likewise.
763 * tracepoint.c (create_tsv_from_upload): Likewise.
764 * utils.c (quit): Likewise.
765 (defaulted_query): Likewise.
766 * valarith.c (value_concat): Likewise.
767 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
768 * xml-tdesc.c (target_fetch_description_xml): Likewise.
769 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
770 (xtensa_pseudo_register_write): Likewise.
771
7403715e
TT
7722017-12-04 Tom Tromey <tom@tromey.com>
773
774 * NEWS: Mention Rust trait object inspection.
775
50a1fdd5
PA
7762017-12-04 Pedro Alves <palves@redhat.com>
777
778 PR gdb/22499
779 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
780 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
781 (vex2_prefix_p, vex3_prefix_p): New functions.
782 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
783 VEX3 prefixes.
784 (fixup_riprel): Set VEX3.!B.
785
1e97a227
SM
7862017-12-03 Simon Marchi <simon.marchi@ericsson.com>
787
788 * target.h (mem_region_vector): Remove.
789 (struct target_ops) <to_memory_map>: Change return type to
790 std::vector<mem_region>.
791 * target-debug.h (target_debug_print_mem_region_vector): Rename
792 to ...
793 (target_debug_print_std_vector_mem_region): ... this.
794 * target-delegates.c: Re-generate.
795
10f64178
PA
7962017-12-03 Pedro Alves <palves@redhat.com>
797
798 * make-target-delegates (munge_type): Also munge '<', '>', and
799 ':'. Avoid double underscores in identifiers, and trailing
800 underscores.
801 * target-debug.h
802 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
803 ...
804 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
805 * target-delegates.c: Regenerate.
806
6d83e819
SM
8072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * common/poison.h (XDELETE): Fix typo.
810
97cbe998
SDJ
8112017-12-01 Andrew Cagney <cagney@redhat.com>
812 Joel Brobecker <brobecker@adacore.com>
813 Sergio Durigan Junior <sergiodj@redhat.com>
814
815 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
816 feature.
817 * coffread.c (coff_symfile_read): Do not map over sections with
818 'coff_locate_sections' if readnever is on.
819 * dwarf2read.c (dwarf2_has_info): Return 0 if
820 readnever is on.
821 * elfread.c (elf_symfile_read): Do not map over sections with
822 'elf_locate_sections' if readnever is on.
823 * main.c (validate_readnow_readnever): New function.
824 (captured_main_1): Add support for --readnever.
825 (print_gdb_help): Document --readnever.
826 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
827 flag.
828 * symfile.c (readnever_symbol_files): New global.
829 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
830 'READNEVER_SYMBOL_FILES' is set.
831 (validate_readnow_readnever): New function.
832 (symbol_file_command): Handle '-readnever' option.
833 Call 'validate_readnow_readnever'.
834 (add_symbol_file_command): Handle '-readnever' option.
835 Call 'validate_readnow_readnever'.
836 (_initialize_symfile): Document new '-readnever' option for
837 both 'symbol-file' and 'add-symbol-file' commands.
838 * top.h (readnever_symbol_files): New extern global.
839 * xcoffread.c (xcoff_initial_scan): Do not read debug
840 information if readnever is on.
841
40fc416f
SDJ
8422017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
843
844 * symfile.c (symbol_file_command): Call
845 'symbol_file_add_main_1' only after processing all command
846 line options.
847 (add_symbol_file_command): Modify logic to make arguments
848 position-independent.
849
ec6a20c2
JB
8502017-12-01 Joel Brobecker <brobecker@adacore.com>
851
852 * ada-lang.c (symbol_list_obstack): Delete.
853 (resolve_subexp): Make sure "candidates" gets xfree'ed.
854 (ada_lookup_symbol_list_worker): Remove the limitation that
855 the result is only good until the next call, now making it
856 the responsibility of the caller to free the result when no
857 longer needed. Adjust the function's intro comment accordingly.
858 (ada_lookup_symbol_list): Adjust the function's intro comment.
859 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
860 (ada_lookup_encoded_symbol, get_var_value): Likewise.
861 (_initialize_ada_language): Remove symbol_list_obstack
862 initialization.
863 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
864 (write_var_or_type, write_name_assoc): Likewise.
865
d0df06af
TT
8662017-12-01 Tom Tromey <tom@tromey.com>
867
868 * Makefile.in (all_deps_files): New variable.
869 Include .Po files using all_deps_files.
870
2ee0c9b3
JB
8712017-12-01 Joel Brobecker <brobecker@adacore.com>
872
873 * MAINTAINERS: Update list of maintainers, moving those who
874 stepped down or became inactive to the "Past Maintainers"
875 section.
876
44122162
RO
8772017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
878
879 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
880 sys/proc.h.
881 (NEW_PROC_API): Remove.
882 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
883 Likewise.
884 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
885 * configure: Regenerate.
886 * config.in: Regenerate.
887 * gdbserver/configure: Regenerate.
888 * gdbserver/config.in: Regenerate.
889
890 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
891 NEW_PROC_API test.
892 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
893
894 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
895
896 * proc-api.c: Remove !NEW_PROC_API support.
897 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
898 Remove tests for macros always defined on Solaris.
899 * proc-events.c: Remove !NEW_PROC_API support.
900 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
901 HAVE_SYS_USER_H tests.
902 (init_syscall_table): Remove non-Solaris syscalls.
903 Remove tests for syscalls present on all Solaris versions.
904 Add missing Solaris 10+ syscalls.
905 (signal_table): Remove non-Solaris signals.
906 Remove tests for signals present on all Solaris versions.
907 (fault_table): Remove non-Solaris faults.
908 Remove tests for faults present on all Solaris versions.
909 * proc-flags.c: Remove !NEW_PROC_API support.
910 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
911 Remove non-Solaris flags.
912 * proc-why.c: Remove !NEW_PROC_API support.
913 (pr_why_table): Remove meaningless comments.
914 Remove tests for reasons present on all Solaris versions.
915 Remove OSF/1 cases.
916 (proc_prettyfprint_why): Likewise.
917
918 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
919 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
920 Remove WA_READ test, IRIX watchpoint support.
921 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
922 types. Change users.
923 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
924 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
925 Change callers.
926 Remove CTL_PROC_NAME_FMT tests.
927 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
928 users.
929 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
930 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
931 (proc_modify_flag): Replace GDBRESET by PCUNSET.
932 Remove PR_ASYNC, PR_KLC tests.
933 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
934 (proc_parent_pid): Remove PCWATCH etc. tests.
935 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
936 Remove PCAGENT test.
937 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
938 Remove SYS_lwpcreate || SYS_lwp_create test.
939 (proc_get_current_thread): Likewise.
940 [PIOCNTHR && PIOCTLIST]: Remove.
941 [PIOCLSTATUS]: Remove.
942 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
943 [PRFS_STOPEXEC]: Remove.
944 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
945 (syscall_is_exit): Likewise.
946 (syscall_is_exec): Likewise.
947 (syscall_is_lwp_create): Likewise.
948 Remove SYS_syssgi support.
949 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
950 [SYS_syssgi]: Remove.
951 Remove non-Solaris cases, conditionals.
952 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
953 Remove.
954 (procfs_init_inferior) [SYS_syssgi]: Remove.
955 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
956 (procfs_inferior_created) [SYS_syssgi]: Remove.
957 (procfs_set_watchpoint): Remove !AIX5 test.
958 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
959 case.
960 (mappingflags) [MA_PHYS]: Remove.
961 (info_mappings_callback): Remove PCAGENT test.
962 Remove PIOCOPENLWP || PCAGENT test.
963
e8020e54
RO
9642017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
965
966 * sol-thread.c (info_solthreads): Constify args.
967 Cast args to void *.
968
75059544
JB
9692017-11-29 John Baldwin <jhb@FreeBSD.org>
970
971 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
972
f5a91472
JB
9732017-11-29 Joel Brobecker <brobecker@adacore.com>
974
975 * ada-lang.c (to_fixed_range_type): Make sure that the size
976 of the range type being returned is the same as the size
977 of the range type being fixed.
978
bd69330d
PA
9792017-11-29 Pedro Alves <palves@redhat.com>
980
981 PR c++/19436
982 * NEWS: Mention setting breakpoints on functions with C++ ABI
983 tags.
984 * completer.h (completion_match_for_lcd) <match,
985 mark_ignored_range>: New methods.
986 <finish>: Consider ignored ranges.
987 <clear>: Clear ignored ranges.
988 <m_ignored_ranges, m_finished_storage>: New fields.
989 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
990 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
991 completion_match_for_lcd pointer to strncmp_iw_with_mode.
992 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
993 * language.c (default_symbol_name_matcher): Pass the
994 completion_match_for_lcd pointer to strncmp_iw_with_mode.
995 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
996 * utils.c (skip_abi_tag): New function.
997 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
998 Handle ABI tags.
999 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1000 parameter.
1001
10022017-11-29 Pedro Alves <palves@redhat.com>
1003
1004 PR c++/19436
1005 * NEWS: Mention setting breakpoints on functions with C++ ABI
1006 tags.
1007 * completer.h (completion_match_for_lcd) <match,
1008 mark_ignored_range>: New methods.
1009 <finish>: Consider ignored ranges.
1010 <clear>: Clear ignored ranges.
1011 <m_ignored_ranges, m_finished_storage>: New fields.
1012 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
1013 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
1014 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1015 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
1016 * language.c (default_symbol_name_matcher): Pass the
1017 completion_match_for_lcd pointer to strncmp_iw_with_mode.
1018 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
1019 * utils.c (skip_abi_tag): New function.
1020 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
1021 Handle ABI tags.
1022 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
1023 parameter.
1024
a20714ff
PA
10252017-11-29 Pedro Alves <palves@redhat.com>
1026
1027 * NEWS: Mention that breakpoints on C++ functions are now set on
1028 on all namespaces/classes by default, and mention "break
1029 -qualified".
1030 * ax-gdb.c (agent_command_1): Adjust to pass a
1031 symbol_name_match_type to new_linespec_location.
1032 * breakpoint.c (parse_breakpoint_sals): Adjust to
1033 get_linespec_location's return type change.
1034 (strace_marker_create_sals_from_location): Adjust to pass a
1035 symbol_name_match_type to new_linespec_location.
1036 (strace_marker_decode_location): Adjust to get_linespec_location's
1037 return type change.
1038 (strace_command): Adjust to pass a symbol_name_match_type to
1039 new_linespec_location.
1040 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
1041 mention "-qualified".
1042 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
1043 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
1044 enumerator.
1045 (complete_address_and_linespec_locations): New parameter
1046 'match_type'. Pass it down.
1047 (explicit_options): Add "-qualified".
1048 (collect_explicit_location_matches): Pass the requested match type
1049 to the linespec completers. Handle MATCH_QUALIFIED.
1050 (location_completer): Handle "-qualified" combined with linespecs.
1051 * cp-support.c (cp_search_name_hash): New.
1052 (cp_symbol_name_matches_1): Implement wild matching for C++.
1053 (cp_fq_symbol_name_matches): Reimplement.
1054 (cp_get_symbol_name_matcher): Return different matchers depending
1055 on the lookup name's match type.
1056 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
1057 * cp-support.h (cp_search_name_hash): New declaration.
1058 * dwarf2read.c
1059 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
1060 symbols.
1061 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
1062 tests.
1063 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
1064 pass a symbol_name_match_type to new_linespec_location.
1065 * linespec.c (linespec_parse_basic): Lookup function symbols using
1066 the parser's symbol name match type.
1067 (convert_explicit_location_to_linespec): New
1068 symbol_name_match_type parameter. Pass it down to
1069 find_linespec_symbols.
1070 (convert_explicit_location_to_sals): Pass the location's name
1071 match type to convert_explicit_location_to_linespec.
1072 (parse_linespec): New match_type parameter. Save it in the
1073 parser.
1074 (linespec_parser_new): Default to symbol_name_match_type::WILD.
1075 (linespec_complete_function): New symbol_name_match_type
1076 parameter. Use it.
1077 (complete_linespec_component): Pass down the parser's recorded
1078 name match type.
1079 (linespec_complete_label): New symbol_name_match_type parameter.
1080 Use it.
1081 (linespec_complete): New symbol_name_match_type parameter. Save
1082 it in the parser and pass it down. Adjust to
1083 get_linespec_location's prototype change.
1084 (find_function_symbols, find_linespec_symbols): New
1085 symbol_name_match_type parameter. Pass it down instead of
1086 assuming symbol_name_match_type::WILD.
1087 * linespec.h (linespec_complete, linespec_complete_function)
1088 (linespec_complete_label): New symbol_name_match_type parameter.
1089 * location.c (event_location::linespec_location): Now a struct
1090 linespec_location.
1091 (EL_LINESPEC): Adjust.
1092 (initialize_explicit_location): Default to
1093 symbol_name_match_type::WILD.
1094 (new_linespec_location): New symbol_name_match_type parameter.
1095 Record it in the location.
1096 (get_linespec_location): Now returns a struct linespec_location.
1097 (new_explicit_location): Also copy func_name_match_type.
1098 (explicit_to_string_internal)
1099 (string_to_explicit_location): Handle "-qualified".
1100 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
1101 Copy symbol_name_match_type fields.
1102 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
1103 type change.
1104 (event_location_to_string): Adjust to LINESPEC_LOCATION type
1105 change. Handle "-qualfied".
1106 (string_to_explicit_location): Handle "-qualified".
1107 (string_to_event_location_basic): New symbol_name_match_type
1108 parameter. Pass it down.
1109 (string_to_event_location): Handle "-qualified".
1110 * location.h (struct linespec_location): New.
1111 (explicit_location::func_name_match_type): New field.
1112 (new_linespec_location): Now returns a const linespec_location *.
1113 (string_to_event_location_basic): New symbol_name_match_type
1114 parameter.
1115 (explicit_completion_info::saw_explicit_location_option): New
1116 field.
1117 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
1118 symbol_name_match_type to new_linespec_location.
1119 * python/py-breakpoint.c (bppy_init): Likewise.
1120 * python/python.c (gdbpy_decode_line): Likewise.
1121
a207cff2
PA
11222017-11-29 Pedro Alves <palves@redhat.com>
1123
1124 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1125 parameter from completion_match to completion_match_result.
1126 Adjust.
1127 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1128 * completer.c (completion_tracker::maybe_add_completion): Add
1129 match_for_lcd parameter and use it.
1130 (completion_tracker::add_completion): Likewise.
1131 * completer.h (class completion_match_for_lcd): New class.
1132 (completion_match_result::match_for_lcd): New field.
1133 (completion_match_result::set_match): New method.
1134 (completion_tracker): Add comments.
1135 (completion_tracker::add_completion): Add match_for_lcd parameter.
1136 (completion_tracker::reset_completion_match_result): Reset
1137 match_for_lcd too.
1138 (completion_tracker::maybe_add_completion): Add match_for_lcd
1139 parameter.
1140 (completion_tracker::m_lowest_common_denominator_unique): Extend
1141 comments.
1142 * cp-support.c (cp_symbol_name_matches_1)
1143 (cp_fq_symbol_name_matches): Change type of parameter from
1144 completion_match to completion_match_result. Adjust.
1145 * language.c (default_symbol_name_matcher): Change type of
1146 parameter from completion_match to completion_match_result.
1147 Adjust.
1148 * language.h (completion_match_for_lcd): Forward declare.
1149 (default_symbol_name_matcher): Change type of parameter from
1150 completion_match to completion_match_result.
1151 * symtab.c (compare_symbol_name): Adjust.
1152 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1153 * symtab.h (ada_lookup_name_info::matches): Change type of
1154 parameter from completion_match to completion_match_result.
1155 (symbol_name_matcher_ftype): Likewise, and update comments.
1156
4024cf2b
PA
11572017-11-29 Pedro Alves <palves@redhat.com>
1158
1159 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1160 * minsyms.c (msymbol_is_text): Delete.
1161 (msymbol_is_function): New function.
1162 * minsyms.h (msymbol_is_text): Delete.
1163 (msymbol_is_function): New declaration.
1164 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1165
5dcf52c1
TT
11662017-11-29 Tom Tromey <tom@tromey.com>
1167
1168 * Makefile.in (distclean): Handle the case where rmdir fails.
1169
8ca2f0b9
TT
11702017-11-29 Tom Tromey <tom@tromey.com>
1171
1172 * symfile.c (_initialize_symfile): Update usage text for
1173 add-symbol-file, symbol-file, load.
1174
02ca603a
TT
11752017-11-29 Tom Tromey <tom@tromey.com>
1176
1177 * symfile.c (add_symbol_file_command): Error if some arguments to
1178 -s are missing. Change unrecognized-argument error message.
1179 (_initialize_symfile): Fix usage text for add-symbol-file.
1180
18ca7347
TT
11812017-11-27 Tom Tromey <tom@tromey.com>
1182
1183 * Makefile.in (REMOTE_OBS): Remove.
1184 (SFILES): Remove remote sources.
1185 (COMMON_SFILES): Add remote sources.
1186 (ALLDEPFILES): Remove dcache.c.
1187
66599a7d
TT
11882017-11-27 Tom Tromey <tom@tromey.com>
1189
1190 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1191 variables.
1192 (SFILES): Use SUBDIR_TARGET_SRCS.
1193 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1194 (CONFIG_SRC_SUBDIR): Add target.
1195 (%.o): Remove target rule.
1196
4f04fba8
TT
11972017-11-27 Tom Tromey <tom@tromey.com>
1198
1199 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1200 registry.o, thread-fsm.o, debug.o.
1201 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1202 thread-fsm.c, debug.c.
1203
b5adff3b
TT
12042017-11-27 Tom Tromey <tom@tromey.com>
1205
1206 * Makefile.in (COMMON_SFILES): New.
1207 (SFILES): Move some entries to COMMON_SFILES.
1208 (COMMON_OBS): Use COMMON_SFILES.
1209
afa0a411
TT
12102017-11-27 Tom Tromey <tom@tromey.com>
1211
1212 * Makefile.in (YYFILES): Update comment.
1213 (YYOBJ): Redefine.
1214
8fd8d003
TT
12152017-11-27 Tom Tromey <tom@tromey.com>
1216
1217 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1218 (CONFIG_SRC_SUBDIR): Add python.
1219 (%.o): Remove python rule.
1220 (python/%.o): New rule.
1221 * configure: Rebuild.
1222 * configure.ac (CONFIG_OBS): Refer to python/python.o
1223
bd810fff
TT
12242017-11-27 Tom Tromey <tom@tromey.com>
1225
1226 * configure: Rebuild.
1227 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1228 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1229 (CONFIG_SRC_SUBDIR): Add guile.
1230 (%.o): Remove guile rule.
1231
75787ac1
TT
12322017-11-27 Tom Tromey <tom@tromey.com>
1233
1234 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1235 (%.o): Remove unittests rule.
1236 (CONFIG_SRC_SUBDIR): Add unittests.
1237
5c8a9431
TT
12382017-11-27 Tom Tromey <tom@tromey.com>
1239
1240 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1241 (CONFIG_SRC_SUBDIR): Add tui.
1242 (%.o): Remove tui rule.
1243
a26aa30c
TT
12442017-11-27 Tom Tromey <tom@tromey.com>
1245
1246 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1247 (%.o): Remove compile rule.
1248 (CONFIG_SRC_SUBDIR): Add compile.
1249
6f3cdf9a
TT
12502017-11-27 Tom Tromey <tom@tromey.com>
1251
1252 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1253 (%.o): Remove mi rule.
1254 (CONFIG_SRC_SUBDIR): Add mi.
1255 (COMMON_OBS): Use mi/mi-common.o
1256
f06afa53
TT
12572017-11-27 Tom Tromey <tom@tromey.com>
1258
1259 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1260 (%.o): Remove cli rule.
1261 (CONFIG_SRC_SUBDIR): Add cli.
1262
b22c88c2
TT
12632017-11-27 Tom Tromey <tom@tromey.com>
1264
1265 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1266 * configure: Rebuild.
1267 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1268 (CONFIG_DEP_SUBDIR): New variable.
1269 (%.o): Add order-only dependency.
1270 ($(CONFIG_DEP_SUBDIR)): New target.
1271
ee9a09e9
DC
12722017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1273
1274 PR gdb/21945
1275 * findcmd.c (_initialize_mem_search): Update find command help
1276 text.
1277
e8e7d10c
SM
12782017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1279
1280 * python/python.c (do_start_initialization): Change progname
1281 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1282 Python 2.
1283
6a997029
TT
12842017-11-26 Tom Tromey <tom@tromey.com>
1285
1286 * common/format.h: Add include guards.
1287
41272101
TT
12882017-11-26 Tom Tromey <tom@tromey.com>
1289
1290 * nat/linux-personality.h (class
1291 maybe_disable_address_space_randomization): New class.
1292 (maybe_disable_address_space_randomization): Don't declare
1293 function.
1294 * nat/linux-personality.c (restore_personality)
1295 (make_disable_asr_cleanup): Remove.
1296 (maybe_disable_address_space_randomization): Now a constructor.
1297 (~maybe_disable_address_space_randomization): New destructor.
1298 * linux-nat.c (linux_nat_create_inferior): Update.
1299
44287fd8
TT
13002017-11-26 Tom Tromey <tom@tromey.com>
1301
1302 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1303
5ffd2cb7
UW
13042017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1305
1306 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1307 "cooked" register. Access only first four bytes of branch target
1308 registers.
1309
0e5457dc
SDJ
13102017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1311
1312 PR gdb/22491
1313 * stap-probe.c (relocate_address): New function.
1314 (stap_probe::get_relocated_address): Use 'relocate_address'.
1315 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1316 'm_sem_addr'.
1317 (stap_probe::clear_semaphore): Likewise.
1318
deeeba55
PA
13192017-11-25 Pedro Alves <palves@redhat.com>
1320
1321 * dictionary.c: Include "safe-ctype.h".
1322 * minsyms.c: Include "safe-ctype.h".
1323 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1324
a81aaca0
PA
13252017-11-25 Pedro Alves <palves@redhat.com>
1326
1327 * completer.c (complete_line_internal_1): Skip spaces until the
1328 start of the command.
1329
0662b6a7
PA
13302017-11-24 Pedro Alves <palves@redhat.com>
1331
1332 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1333 cp_fq_symbol_name_matches. Pass language_cplus to
1334 strncmp_with_mode.
1335 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1336 (selftests::test_cp_symbol_name_cmp): New.
1337 (_initialize_cp_support): Register "cp_symbol_name_matches"
1338 selftests.
1339 * language.c (default_symbol_name_matcher): Pass language_minimal
1340 to strncmp_iw_with_mode.
1341 * utils.c: Include "cp-support.h" and <algorithm>.
1342 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1343 (cp_is_operator): New functions.
1344 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1345 skip whitespace in the symbol name when the lookup name doesn't
1346 have spaces, and vice versa.
1347 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1348 * utils.h (strncmp_iw_with_mode): Add language parameter.
1349
e547c119
JB
13502017-11-24 Joel Brobecker <brobecker@adacore.com>
1351
1352 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1353 New functions.
1354 (print_it_exception): If available, display the exception
1355 message as well.
1356 * NEWS: Document new feature.
1357
d7fcdff9
UW
13582017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1359
1360 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1361
30649c14
PR
13622017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1363
1364 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1365 (dtrace_probe::is_enabled, dtrace_probe::enable)
1366 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1367 variable
1368 * probe.c (gen_ui_out_table_header_info)
1369 (print_ui_out_not_applicables): Remove keyword 'struct' at
1370 for-range variable
1371
7696f5c9
AH
13722017-11-24 Alan Hayward <alan.hayward@arm.com>
1373
1374 * configure.tgt: Add arch/aarch64.o
1375
8172f16b
SM
13762017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1377
1378 * common/common-utils.h: Include poison.h.
1379 (xfree): Remove declaration, add definition with static_assert.
1380 * common/common-utils.c (xfree): Remove.
1381 * common/poison.h (IsMallocatable): Define.
1382 (IsFreeable): Define.
1383 (free): Delete for non-freeable types.
1384 (xnew): New.
1385 (XNEW): Undef and redefine.
1386 (xcnew): New.
1387 (XCNEW): Undef and redefine.
1388 (xdelete): New.
1389 (XDELETE): Undef and redefine.
1390 (xnewvec): New.
1391 (XNEWVEC): Undef and redefine.
1392 (xcnewvec): New.
1393 (XCNEWVEC): Undef and redefine.
1394 (xresizevec): New.
1395 (XRESIZEVEC): Undef and redefine.
1396 (xdeletevec): New.
1397 (XDELETEVEC): Undef and redefine.
1398 (xnewvar): New.
1399 (XNEWVAR): Undef and redefine.
1400 (xcnewvar): New.
1401 (XCNEWVAR): Undef and redefine.
1402 (xresizevar): New.
1403 (XRESIZEVAR): Undef and redefine.
1404
7aabaf9d
SM
14052017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1406
1407 * gdbthread.h (private_thread_info): Define structure type, add
1408 virtual pure destructor.
1409 (thread_info) <priv>: Change type to unique_ptr.
1410 <private_dtor>: Remove.
1411 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1412 (private_thread_info::~private_thread_info): Provide default
1413 implementation.
1414 (thread_info::~thread_info): Don't call private_dtor nor
1415 manually free priv.
1416 * aix-thread.c (private_thread_info): Rename to ...
1417 (aix_thread_info): ... this.
1418 (get_aix_thread_info): New.
1419 (sync_threadlists): Adjust.
1420 (iter_tid): Adjust.
1421 (aix_thread_resume): Adjust.
1422 (aix_thread_fetch_registers): Adjust.
1423 (aix_thread_store_registers): Adjust.
1424 (aix_thread_extra_thread_info): Adjust.
1425 * darwin-nat.h (private_thread_info): Rename to ...
1426 (darwin_thread_info): ... this.
1427 (get_darwin_thread_info): New.
1428 * darwin-nat.c (darwin_init_thread_list): Adjust.
1429 (darwin_check_new_threads): Adjust.
1430 (thread_info_from_private_thread_info): Adjust.
1431 * linux-thread-db.c (private_thread_info): Rename to ...
1432 (thread_db_thread_info): ... this, initialize fields.
1433 (get_thread_db_thread_info): New.
1434 <dying>: Change type to bool.
1435 (update_thread_state): Adjust to type rename.
1436 (record_thread): Adjust to type rename an use of unique_ptr.
1437 (thread_db_pid_to_str): Likewise.
1438 (thread_db_extra_thread_info): Likewise.
1439 (thread_db_thread_handle_to_thread_info): Likewise.
1440 (thread_db_get_thread_local_address): Likewise.
1441 * nto-tdep.h (private_thread_info): Rename to ...
1442 (nto_thread_info): ... this, initialize fields.
1443 (get_nto_thread_info): New.
1444 <name>: Change type to std::string.
1445 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1446 use of unique_ptr.
1447 * nto-procfs.c (update_thread_private_data_name): Adjust to
1448 std::string change, allocate nto_private_thread_info with new.
1449 (update_thread_private_data): Adjust to unique_ptr.
1450 * remote.c (private_thread_info): Rename to ...
1451 (remote_thread_info): ... this, initialize data members with
1452 default values.
1453 <extra, name>: Change type to std::string.
1454 <thread_handle>: Change type to non-pointer.
1455 (free_private_thread_info): Remove.
1456 (get_private_info_thread): Rename to...
1457 (get_remote_thread_info): ... this, change return type, adjust to
1458 use of unique_ptr, use remote_thread_info constructor.
1459 (remote_add_thread): Adjust.
1460 (get_private_info_ptid): Rename to...
1461 (get_remote_thread_info): ...this, change return type.
1462 (remote_thread_name): Use get_remote_thread_info, adjust to
1463 change to std::string.
1464 (struct thread_item) <~thread_item>: Remove.
1465 <thread_handle>: Make non pointer.
1466 (start_thread): Adjust to thread_item::thread_handle type
1467 change.
1468 (remote_update_thread_list): Adjust to type name change, move
1469 strings from temporary to long-lived object instead of
1470 duplicating.
1471 (remote_threads_extra_info): Use get_remote_thread_info.
1472 (process_initial_stop_replies): Likewise.
1473 (resume_clear_thread_private_info): Likewise.
1474 (remote_resume): Adjust to type name change.
1475 (remote_commit_resume): Use get_remote_thread_info.
1476 (process_stop_reply): Adjust to type name change.
1477 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1478 (remote_stopped_by_hw_breakpoint): Likewise.
1479 (remote_stopped_by_watchpoint): Likewise.
1480 (remote_stopped_data_address): Likewise.
1481 (remote_core_of_thread): Likewise.
1482 (remote_thread_handle_to_thread_info): Use
1483 get_private_info_thread, adjust to thread_handle field type
1484 change.
1485
21fe1c75
SM
14862017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * remote.c (struct thread_item): Add constructor, disable copy
1489 construction and copy assignment, define default move
1490 construction and move assignment.
1491 <extra, name>: Change type to std::string.
1492 <core>: Initialize.
1493 <thread_handle>: Make non-pointer.
1494 (thread_item_t): Remove typedef.
1495 (DEF_VEC_O(thread_item_t)): Remove.
1496 (threads_listing_context) <contains_thread>: New method.
1497 <remove_thread>: New method.
1498 <items>: Change type to std::vector.
1499 (clear_threads_listing_context): Remove.
1500 (threads_listing_context_remove): Remove.
1501 (remote_newthread_step): Use thread_item constructor, adjust to
1502 change to std::vector.
1503 (start_thread): Use thread_item constructor, adjust to change to
1504 std::vector.
1505 (end_thread): Adjust to change to std::vector and std::string.
1506 (remote_get_threads_with_qthreadinfo): Use thread_item
1507 constructor, adjust to std::vector.
1508 (remote_update_thread_list): Adjust to change to std::vector and
1509 std::string, use threads_listing_context methods.
1510 (remove_child_of_pending_fork): Adjust.
1511 (remove_new_fork_children): Adjust.
1512 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1513 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1514 * unittests/rsp-low-selftests.c: New file.
1515 * common/rsp-low.h: Include common/byte-vector.h.
1516 (hex2bin): New overload.
1517 * common/rsp-low.c (hex2bin): New overload.
1518
089354bb
SM
15192017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1520
1521 * inferior.h (private_inferior): Define structure type, add
1522 virtual pure destructor.
1523 (inferior) <priv>: Change type to unique_ptr.
1524 * inferior.c (private_inferior::~private_inferior): Provide
1525 default implementation.
1526 (inferior::~inferior): Don't free priv field.
1527 (exit_inferior_1): Likewise.
1528 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1529 (darwin_exception_info): Remove typedef.
1530 (DEF_VEC_O (darwin_thread_t)); Remove.
1531 (private_inferior): Rename to ...
1532 (darwin_private_inferior): ... this, extend private_inferior.
1533 (get_darwin_inferior): New.
1534 <threads>: Change type to std::vector of darwin_thread_t pointers.
1535 * darwin-nat.c (darwin_check_new_threads): Adjust.
1536 (find_inferior_task_it): Adjust.
1537 (darwin_find_thread); Adjust.
1538 (darwin_suspend_inferior): Adjust.
1539 (darwin_resume_inferior): Adjust.
1540 (darwin_find_new_inferior): Adjust.
1541 (darwin_decode_notify_message): Adjust.
1542 (darwin_send_reply): Adjust.
1543 (darwin_resume_inferior_threads): Adjust.
1544 (darwin_suspend_inferior_threads): Adjust.
1545 (darwin_decode_message): Adjust.
1546 (darwin_wait): Adjust.
1547 (darwin_interrupt): Adjust.
1548 (darwin_deallocate_threads): Adjust.
1549 (darwin_mourn_inferior): Adjust, don't free private data.
1550 (darwin_reply_to_all_pending_messages): Adjust.
1551 (darwin_stop_inferior): Adjust.
1552 (darwin_setup_exceptions): Adjust.
1553 (darwin_kill_inferior): Adjust.
1554 (darwin_setup_request_notification): Adjust.
1555 (darwin_attach_pid): Adjust.
1556 (darwin_init_thread_list): Adjust.
1557 (darwin_setup_fake_stop_event): Adjust.
1558 (darwin_attach): Adjust.
1559 (darwin_detach): Adjust.
1560 (darwin_xfer_partial): Adjust.
1561 (set_enable_mach_exceptions): Adjust.
1562 (darwin_pid_to_exec_file): Adjust.
1563 (darwin_get_ada_task_ptid): Adjust.
1564 * darwin-nat-info.c (get_task_from_args): Adjust.
1565 (info_mach_ports_command): Adjust.
1566 (info_mach_region_command): Adjust.
1567 (info_mach_exceptions_command): Adjust.
1568 * remote.c (private_inferior): Rename to ...
1569 (remote_private_inferior): ... this, initialize fields.
1570 (get_remote_inferior); New.
1571 (remote_commit_resume): Use get_remote_inferior.
1572 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1573
d044bac8
PA
15742017-11-24 Pedro Alves <palves@redhat.com>
1575
1576 * NEWS: Mention linespecs and explicit locations, and completion
1577 improvements.
1578
e8d58cba
YQ
15792017-11-24 Yao Qi <yao.qi@linaro.org>
1580
1581 * regcache.c (regcache::dump): Remove footnote_register_size.
1582
a63f2d2f
YQ
15832017-11-24 Yao Qi <yao.qi@linaro.org>
1584
1585 * regcache.c (cooked_read_test): Add more test for readonly
1586 regcache.
1587
1b30aaa5
YQ
15882017-11-24 Yao Qi <yao.qi@linaro.org>
1589
1590 * gdbarch-selftests.c (test_target_has_registers): Move it to
1591 target.c.
1592 (test_target_has_stack): Likewise.
1593 (test_target_has_memory): Likewise.
1594 (test_target_prepare_to_store): Likewise.
1595 (test_target_store_registers): Likewise.
1596 (test_target_ops): Likewise.
1597 * regcache.c: Include selftest-arch.h and gdbthread.h.
1598 (target_ops_no_register): New class.
1599 (test_target_fetch_registers): New.
1600 (test_target_store_registers): New.
1601 (test_target_xfer_partial): New.
1602 (readwrite_regcache): New.
1603 (cooked_read_test): New.
1604 (_initialize_regcache): Register the test.
1605 * target.c: (test_target_has_registers): Moved from
1606 gdbarch-selftests.c.
1607 (test_target_has_stack): Likewise.
1608 (test_target_has_memory): Likewise.
1609 (test_target_prepare_to_store): Likewise.
1610 (test_target_store_registers): Likewise.
1611 * target.h (test_target_ops): New class.
1612
6654d750
AH
16132017-11-24 Alan Hayward <alan.hayward@arm.com>
1614
1615 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1616 selftest.
1617
49bdb7ee
AH
16182017-11-24 Alan Hayward <alan.hayward@arm.com>
1619
1620 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1621 * arch/aarch64.c (aarch64_create_target_description): Create
1622 new target description.
1623 * features/Makefile: Add new files.
1624 * features/aarch64.c: Remove file.
1625 * features/aarch64-core.c: New autogenerated file.
1626 * features/aarch64-fpu.c: New autogenerated file.
1627 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
da434ccb
AH
1628
16292017-11-24 Alan Hayward <alan.hayward@arm.com>
1630
1631 * Makefile.in: Add new files.
1632 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1633 aarch64_read_description.
1634 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1635 Call aarch64_read_description.
1636 * aarch64-tdep.c (aarch64_read_description): New function.
1637 (aarch64_gdbarch_init): Call aarch64_read_description.
1638 * aarch64-tdep.h (aarch64_read_description): New function.
1639 * arch/aarch64.c: New file.
1640 * configure.tgt: Add new files.
1641
98ead37e
YQ
16422017-11-24 Yao Qi <yao.qi@linaro.org>
1643
1644 * mi/mi-main.c (register_changed_p): Update.
1645 * value.c (value_contents_bits_eq): Change return type.
1646 (value_contents_eq): Likewise.
1647 * value.h: Update comments.
1648
62ad7ce7
YQ
16492017-11-24 Yao Qi <yao.qi@linaro.org>
1650
1651 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1652 local 'changed'. Remove error.
1653 (register_changed_p): Change return type to bool.
1654
506fe5f4
YQ
16552017-11-24 Yao Qi <yao.qi@linaro.org>
1656
1657 * arch/tic6x.c: New file.
1658 * arch/tic6x.h: New file.
1659 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1660 tic6x-core.xml and tic6x-gp.xml.
1661 * features/tic6x-c6xp.c: Generated.
1662 * features/tic6x-core.c: Generated.
1663 * features/tic6x-gp.c: Generated.
1664 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1665 "tic6x-".
1666
00ea2e2a
SM
16672017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1668
1669 * mi/mi-main.c (list_available_thread_groups): Change map value
1670 type to std::vector.
1671
f45e2a77
SM
16722017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1673
1674 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1675
bd046f64
SM
16762017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1677
1678 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1679 back to...
1680 <children_requested>: ... this.
1681 (varobj_get_num_children, varobj_update): Adjust.
1682
4c37490d
SM
16832017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1684
1685 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1686 (ada_value_has_mutated): Likewise.
1687 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1688 (c_is_path_expr_parent): Likewise.
1689 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1690 (mi_cmd_var_set_frozen): Likewise.
1691 (mi_cmd_var_update_iter): Likewise.
1692 (mi_cmd_var_update): Likewise.
1693 * varobj.c (pretty_printing): Likewise.
1694 (varobj_enable_pretty_printing): Likewise.
1695 (struct varobj_root) <floating, is_valid>: Likewise.
1696 (struct varobj_dynamic) <children_requested>: Likewise.
1697 (delete_variable): Likewise.
1698 (delete_variable_1): Likewise.
1699 (install_variable): Likewise.
1700 (update_type_if_necessary): Likewise.
1701 (install_new_value): Likewise.
1702 (value_of_root): Likewise.
1703 (is_root_p): Likewise.
1704 (varobj_create): Likewise.
1705 (varobj_delete): Likewise.
1706 (varobj_has_more): Likewise.
1707 (varobj_set_frozen): Likewise.
1708 (varobj_get_frozen): Likewise.
1709 (install_dynamic_child): Likewise.
1710 (dynamic_varobj_has_child_method): Likewise.
1711 (update_dynamic_varobj_children): Likewise.
1712 (varobj_get_num_children): Likewise.
1713 (varobj_list_children): Likewise.
1714 (is_path_expr_parent): Likewise.
1715 (varobj_default_is_path_expr_parent): Likewise.
1716 (varobj_is_dynamic_p): Likewise.
1717 (varobj_set_value): Likewise.
1718 (varobj_value_has_mutated): Likewise.
1719 (varobj_update): Likewise.
1720 (check_scope): Likewise.
1721 (value_of_root_1): Likewise.
1722 (varobj_value_get_print_value): Likewise.
1723 (varobj_editable_p): Likewise.
1724 (varobj_value_is_changeable_p): Likewise.
1725 (varobj_floating_p): Likewise.
1726 (varobj_default_value_is_changeable_p): Likewise.
1727 (varobj_invalidate_iter): Likewise.
1728 * varobj.h (struct varobj_update_result) <type_changed,
1729 children_changed, changed, value_installed>: Likewise.
1730 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1731 (struct lang_varobj_ops) <value_is_changeable_p,
1732 value_has_mutated, is_path_expr_parent>: Likewise.
1733 (varobj_delete): Likewise.
1734 (varobj_set_frozen): Likewise.
1735 (varobj_get_frozen): Likewise.
1736 (varobj_set_value): Likewise.
1737 (varobj_update): Likewise.
1738 (varobj_editable_p): Likewise.
1739 (varobj_floating_p): Likewise.
1740 (varobj_has_more): Likewise.
1741 (varobj_is_dynamic_p): Likewise.
1742 (varobj_default_value_is_changeable_p): Likewise.
1743 (varobj_value_is_changeable_p): Likewise.
1744 (varobj_is_anonymous_child): Likewise.
1745 (varobj_default_is_path_expr_parent): Likewise.
1746
9c23b42f
SDJ
17472017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1748
1749 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1750 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1751 <type_str>: Convert to 'std::string'.
1752 <expr>: Convert to 'expression_up'.
1753 (dtrace_probe_arg_s): Delete type and VEC.
1754 (dtrace_probe_enabler_s): Likewise.
1755 (struct dtrace_probe): Replace by...
1756 (class dtrace_static_probe_ops): ...this and...
1757 (class dtrace_probe): ...this.
1758 (dtrace_probe_is_linespec): Rename to...
1759 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1760 to reflect change.
1761 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1762 Adjust code. Create new instance of 'dtrace_probe'.
1763 (dtrace_build_arg_exprs): Rename to...
1764 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1765 reflect change.
1766 (dtrace_get_probes): Rename to...
1767 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1768 to reflect change.
1769 (dtrace_get_arg): Rename to...
1770 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1771 reflect change.
1772 (dtrace_probe_is_enabled): Rename to...
1773 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1774 change.
1775 (dtrace_get_probe_address): Rename to...
1776 (dtrace_probe::get_relocated_address): ...this. Adjust code
1777 to reflect change.
1778 (dtrace_get_probe_argument_count): Rename to...
1779 (dtrace_probe::get_argument_count): ...this. Adjust code to
1780 reflect change.
1781 (dtrace_can_evaluate_probe_arguments): Rename to...
1782 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1783 to reflect change.
1784 (dtrace_evaluate_probe_argument): Rename to...
1785 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1786 reflect change.
1787 (dtrace_compile_to_ax): Rename to...
1788 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1789 reflect change.
1790 (dtrace_probe_destroy): Delete.
1791 (dtrace_type_name): Rename to...
1792 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1793 reflect change.
1794 (dtrace_probe::get_static_ops): New method.
1795 (dtrace_gen_info_probes_table_header): Rename to...
1796 (dtrace_static_probe_ops::gen_info_probes_table_header):
1797 ...this. Adjust code to reflect change.
1798 (dtrace_gen_info_probes_table_values): Rename to...
1799 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1800 code to reflect change.
1801 (dtrace_enable_probe): Rename to...
1802 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1803 change.
1804 (dtrace_disable_probe): Rename to...
1805 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1806 change.
1807 (struct probe_ops dtrace_probe_ops): Delete.
1808 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1809 instead of 'info_probes_for_ops'.
1810 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1811 of 'all_probe_ops'.
1812
0e9ae10f
SDJ
18132017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1814 Simon Marchi <simark@simark.ca>
1815
1816 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1817 variable.
1818 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1819 <aexpr>: Change type to 'expression_up'.
1820 (stap_probe_arg_s): Delete type and VEC.
1821 (struct stap_probe): Delete. Replace by...
1822 (class stap_static_probe_ops): ...this and...
1823 (class stap_probe): ...this. Rename variables to add 'm_'
1824 prefix. Do not use 'union' for arguments anymore.
1825 (stap_get_expected_argument_type): Receive probe name instead
1826 of 'struct stap_probe'. Adjust code.
1827 (stap_parse_probe_arguments): Rename to...
1828 (stap_probe::parse_arguments): ...this. Adjust code to
1829 reflect change.
1830 (stap_get_probe_address): Rename to...
1831 (stap_probe::get_relocated_address): ...this. Adjust code
1832 to reflect change.
1833 (stap_get_probe_argument_count): Rename to...
1834 (stap_probe::get_argument_count): ...this. Adjust code
1835 to reflect change.
1836 (stap_get_arg): Rename to...
1837 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1838 reflect change.
1839 (can_evaluate_probe_arguments): Rename to...
1840 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1841 to reflect change.
1842 (stap_evaluate_probe_argument): Rename to...
1843 (stap_probe::evaluate_argument): ...this. Adjust code
1844 to reflect change.
1845 (stap_compile_to_ax): Rename to...
1846 (stap_probe::compile_to_ax): ...this. Adjust code to
1847 reflect change.
1848 (stap_probe_destroy): Delete.
1849 (stap_modify_semaphore): Adjust comment.
1850 (stap_set_semaphore): Rename to...
1851 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1852 change.
1853 (stap_clear_semaphore): Rename to...
1854 (stap_probe::clear_semaphore): ...this. Adjust code to
1855 reflect change.
1856 (stap_probe::get_static_ops): New method.
1857 (handle_stap_probe): Adjust code to create instance of
1858 'stap_probe'.
1859 (stap_get_probes): Rename to...
1860 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1861 reflect change.
1862 (stap_probe_is_linespec): Rename to...
1863 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1864 reflect change.
1865 (stap_type_name): Rename to...
1866 (stap_static_probe_ops::type_name): ...this. Adjust code to
1867 reflect change.
1868 (stap_gen_info_probes_table_header): Rename to...
1869 (stap_static_probe_ops::gen_info_probes_table_header):
1870 ...this. Adjust code to reflect change.
1871 (stap_gen_info_probes_table_values): Rename to...
1872 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1873 code to reflect change.
1874 (struct probe_ops stap_probe_ops): Delete.
1875 (info_probes_stap_command): Use 'info_probes_for_spops'
1876 instead of 'info_probes_for_ops'.
1877 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1878 of 'all_probe_ops'.
1879
935676c9
SDJ
18802017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1881
1882 * break-catch-throw.c (fetch_probe_arguments): Use
1883 'probe.prob' instead of 'probe.probe'.
1884 * breakpoint.c (create_longjmp_master_breakpoint): Call
1885 'can_evaluate_arguments' and 'get_relocated_address' methods
1886 from probe.
1887 (create_exception_master_breakpoint): Likewise.
1888 (add_location_to_breakpoint): Use 'sal->prob' instead of
1889 'sal->probe'.
1890 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1891 probe.
1892 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1893 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1894 of 'probe_ops'.
1895 (probe_key_free): Call 'delete' on probe.
1896 (check_exception_resume): Use 'probe.prob' instead of
1897 'probe.probe'.
1898 * location.c (string_to_event_location_basic): Call
1899 'probe_linespec_to_static_ops'.
1900 * probe.c (class any_static_probe_ops): New class.
1901 (any_static_probe_ops any_static_probe_ops): New variable.
1902 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1903 argument. Adjust code to reflect change.
1904 (parse_probes): Use 'static_probe_ops' instead of
1905 'probe_ops'. Adjust code to reflect change.
1906 (find_probes_in_objfile): Call methods to get name and
1907 provider from probe.
1908 (find_probe_by_pc): Use 'result.prob' instead of
1909 'result.probe'. Call 'get_relocated_address' method from
1910 probe.
1911 (collect_probes): Adjust comment and argument list to receive
1912 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1913 reflect change. Call necessary methods from probe.
1914 (compare_probes): Call methods to get name and provider from
1915 probes.
1916 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1917 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1918 adjust code accordingly.
1919 (print_ui_out_not_applicables): Likewise.
1920 (info_probes_for_ops): Rename to...
1921 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1922 as argument instead of 'probe_ops'. Adjust code. Call
1923 necessary methods from probe.
1924 (info_probes_command): Use 'info_probes_for_spops'.
1925 (enable_probes_command): Pass correct argument to
1926 'collect_probes'. Call methods from probe.
1927 (disable_probes_command): Likewise.
1928 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1929 (get_probe_argument_count): Move to
1930 'any_static_probe_ops::get_argument_count'.
1931 (can_evaluate_probe_arguments): Move to
1932 'any_static_probe_ops::can_evaluate_arguments'.
1933 (evaluate_probe_argument): Move to
1934 'any_static_probe_ops::evaluate_argument'.
1935 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1936 'probe.probe'.
1937 (probe_linespec_to_ops): Rename to...
1938 (probe_linespec_to_static_ops): ...this. Adjust code.
1939 (probe_any_is_linespec): Rename to...
1940 (any_static_probe_ops::is_linespec): ...this.
1941 (probe_any_get_probes): Rename to...
1942 (any_static_probe_ops::get_probes): ...this.
1943 (any_static_probe_ops::type_name): New method.
1944 (any_static_probe_ops::gen_info_probes_table_header): New
1945 method.
1946 (compute_probe_arg): Use 'pc_probe.prob' instead of
1947 'pc_probe.probe'. Call methods from probe.
1948 (compile_probe_arg): Likewise.
1949 (std::vector<const probe_ops *> all_probe_ops): Delete.
1950 (std::vector<const static_probe_ops *> all_static_probe_ops):
1951 New variable.
1952 (_initialize_probe): Use 'all_static_probe_ops' instead of
1953 'all_probe_ops'.
1954 * probe.h (struct info_probe_column) <field_name>: Delete
1955 extraneous newline
1956 (info_probe_column_s): Delete type and VEC.
1957 (struct probe_ops): Delete. Replace with...
1958 (class static_probe_ops): ...this and...
1959 (clas probe): ...this.
1960 (struct bound_probe) <bound_probe>: Delete extraneous
1961 newline. Adjust constructor to receive 'probe' instead of
1962 'struct probe'.
1963 <probe>: Rename to...
1964 <prob>: ...this. Delete extraneous newline.
1965 <objfile>: Delete extraneous newline.
1966 (register_probe_ops): Delete unused prototype.
1967 (info_probes_for_ops): Rename to...
1968 (info_probes_for_spops): ...this. Adjust comment.
1969 (get_probe_address): Move to 'probe::get_address'.
1970 (get_probe_argument_count): Move to
1971 'probe::get_argument_count'.
1972 (can_evaluate_probe_arguments): Move to
1973 'probe::can_evaluate_arguments'.
1974 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1975 * solib-svr4.c (struct svr4_info): Adjust comment.
1976 (struct probe_and_action) <probe>: Rename to...
1977 <prob>: ...this.
1978 (register_solib_event_probe): Receive 'probe' instead of
1979 'struct probe' as argument. Use 'prob' instead of 'probe'
1980 when applicable.
1981 (solib_event_probe_action): Call 'get_argument_count' method
1982 from probe. Adjust comment.
1983 (svr4_handle_solib_event): Adjust comment. Call
1984 'evaluate_argument' method from probe.
1985 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1986 from probe.
1987 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1988 'struct probe'. Call 'can_evaluate_arguments' from probe.
1989 * symfile.h: Forward declare 'class probe' instead of 'struct
1990 probe'.
1991 * symtab.h: Likewise.
1992 (struct symtab_and_line) <probe>: Rename to...
1993 <prob>: ...this.
1994 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1995 Call probe methods.
1996 (stop_tracing): Likewise.
1997
8f6cb6c3
JB
19982017-11-22 Joel Brobecker <brobecker@adacore.com>
1999
2000 * ravenscar-thread.c (ravenscar_inferior_created): Remove
2001 trailing newline at end of string in call to warning.
2002
479f8de1
SM
20032017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2004
2005 * osdata.h: Include vector isntead of vec.h.
2006 (osdata_column_s): Remove typedef.
2007 (struct osdata_column): Add constructor.
2008 <name, value>: Change type to std::string.
2009 (DEF_VEC_O (osdata_column_s)): Remove.
2010 (osdata_item_s): Remove typedef.
2011 (struct osdata_item) <columns>: Change type to std::vector.
2012 (DEF_VEC_O (osdata_item_s)): Remove.
2013 (struct osdata): Add constructor.
2014 <type>: Change type to std::string.
2015 <items>: Change type to std::vector.
2016 (osdata_p): Remove typedef.
2017 (DEF_VEC_P (osdata_p)): Remove.
2018 (osdata_parse): Return a unique_ptr.
2019 (osdata_free): Remove.
2020 (make_cleanup_osdata_free): Remove.
2021 (get_osdata): Return a unique_ptr.
2022 (get_osdata_column): Return pointer to std::string, take a
2023 reference to osdata_item as parameter.
2024 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
2025 unique_ptr.
2026 <property_name>: Change type to std::string.
2027 (osdata_start_osdata): Allocate osdata with new and adjust.
2028 (osdata_start_item): Adjust.
2029 (osdata_start_column): Adjust.
2030 (osdata_end_column): Adjust.
2031 (clear_parsing_data): Remove.
2032 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
2033 (osdata_item_clear): Remove.
2034 (get_osdata): return a unique_ptr and adjust.
2035 (get_osdata_column): Return a pointer to std::string and adjust.
2036 (info_osdata): Adjust.
2037 * mi/mi-main.c: Include <map>.
2038 (free_vector_of_osdata_items): Remove.
2039 (list_available_thread_groups): Adjust, use std::map instead of
2040 splay tree.
2041
41bd68f5
SM
20422017-11-22 Simon Marchi <simon.marchi@ericsson.com>
2043
2044 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
2045 case in switch.
2046
7e2fd2f4
SM
20472017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2048
2049 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
2050
0604393c
SM
20512017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2052
2053 * varobj.h (struct varobj_update_result): Add constructor, add
2054 move constructor, disable copy and assign, initialize fields.
2055 <newobj>: Change type to std::vector.
2056 (varobj_update): Return std::vector.
2057 * varobj.c (install_dynamic_child): Change VEC parameters to
2058 std::vector and adjust.
2059 (update_dynamic_varobj_children): Likewise.
2060 (varobj_update): Return std::vector and adjust.
2061 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
2062
ddf0ea08
SM
20632017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2064
2065 * varobj.h (struct varobj) <parent>: Remove const.
2066 <children>: Change type to std::vector.
2067 (varobj_list_children): Return std::vector const reference.
2068 (varobj_restrict_range): Change parameter type to std::vector
2069 const reference.
2070 * varobj.c (varobj_has_more): Adjust.
2071 (varobj_restrict_range): Change parameter type to std::vector
2072 const reference and adjust.
2073 (install_dynamic_child): Adjust.
2074 (update_dynamic_varobj_children): Adjust.
2075 (varobj_list_children): Return std::vector const reference and
2076 adjust.
2077 (varobj_add_child): Adjust.
2078 (update_type_if_necessary): Adjust.
2079 (varobj_update): Adjust.
2080 (delete_variable_1): Adjust.
2081 * ada-varobj.c (ada_value_has_mutated): Adjust.
2082 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
2083
9e5b9d2b
SM
20842017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 * varobj.h (struct varobj): Add constructor and destructor,
2087 initialize fields.
2088 * varobj.c (struct varobj_root): Initialize fields.
2089 (struct varobj_dynamic): Initialize fields.
2090 (varobj_create): Use unique_ptr instead of cleanup. Create
2091 varobj with new instead of new_root_variable.
2092 (delete_variable_1): Free variable with delete instead of
2093 free_variable.
2094 (create_child_with_value): Create variable with new instead of
2095 new_variable.
2096 (varobj::varobj): New.
2097 (varobj::~varobj): New (body mostly coming from free_variable).
2098 (new_variable): Remove.
2099 (free_variable): Remove.
2100 (do_free_variable_cleanup): Remove.
2101 (make_cleanup_free_variable): Remove.
2102
fc35dab1
UW
21032017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2104
2105 * core-regset.c: Remove file.
2106 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
2107
2400729e
UW
21082017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2109
2110 * NEWS: Document use of GNU MPFR.
2111 * README: Likewise.
2112
2113 * Makefile.in (LIBMPFR): Add define.
2114 (CLIBS): Add $(LIBMPFR).
2115 * configure.ac: Add --with-mpfr configure option.
2116 * configure: Regenerate.
2117 * config.in: Regenerate.
2118
2119 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2120 (class mpfr_float_ops): New type.
2121 (mpfr_float_ops::from_target): Two new overloaded functions.
2122 (mpfr_float_ops::to_target): Likewise.
2123 (mpfr_float_ops::to_string): New function.
2124 (mpfr_float_ops::from_string): Likewise.
2125 (mpfr_float_ops::to_longest): Likewise.
2126 (mpfr_float_ops::from_longest): Likewise.
2127 (mpfr_float_ops::from_ulongest): Likewise.
2128 (mpfr_float_ops::to_host_double): Likewise.
2129 (mpfr_float_ops::from_host_double): Likewise.
2130 (mpfr_float_ops::convert): Likewise.
2131 (mpfr_float_ops::binop): Likewise.
2132 (mpfr_float_ops::compare): Likewise.
2133 (get_target_float_ops): Use mpfr_float_ops if available.
2134
7a26362d
UW
21352017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2136
2137 * target-float.c: Do not include <math.h>.
2138 Include <cmath> and <limits>.
2139 (DOUBLEST): Do not define.
2140 (class target_float_ops): New type.
2141 (class host_float_ops): New templated type.
2142 (class decimal_float_ops): New type.
2143
2144 (floatformat_to_doublest): Rename to ...
2145 (host_float_ops<T>::from_target): ... this. Use template type T
2146 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2147 (host_float_ops<T>::from_target): New overload using a type argument.
2148 (floatformat_from_doublest): Rename to ...
2149 (host_float_ops<T>::to_target): ... this. Use template type T
2150 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2151 (host_float_ops<T>::to_target): New overload using a type argument.
2152 (floatformat_printf_format): New function.
2153 (struct printf_length_modifier): New templated type.
2154 (floatformat_to_string): Rename to ...
2155 (host_float_ops<T>::to_string): ... this. Use type instead of
2156 floatformat argument. Use floatformat_printf_format and
2157 printf_length_modifier. Remove special handling of invalid numbers,
2158 infinities and NaN (moved to target_float_to_string).
2159 (struct scanf_length_modifier): New templated type.
2160 (floatformat_from_string): Rename to ...
2161 (host_float_ops<T>::from_string): ... this. Use type instead of
2162 floatformat argument. Use scanf_length_modifier.
2163 (floatformat_to_longest): Rename to ...
2164 (host_float_ops<T>::to_longest): ... this. Use type instead of
2165 floatformat argument. Handle out-of-range values deterministically.
2166 (floatformat_from_longest): Rename to ...
2167 (host_float_ops<T>::from_longest): ... this. Use type instead of
2168 floatformat argument.
2169 (floatformat_from_ulongest): Rename to ...
2170 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2171 floatformat argument.
2172 (floatformat_to_host_double): Rename to ...
2173 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2174 floatformat argument.
2175 (floatformat_from_host_double): Rename to ...
2176 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2177 floatformat argument.
2178 (floatformat_convert): Rename to ...
2179 (host_float_ops<T>::convert): ... this. Use type instead of
2180 floatformat arguments. Remove handling of no-op conversions.
2181 (floatformat_binop): Rename to ...
2182 (host_float_ops<T>::binop): ... this. Use type instead of
2183 floatformat arguments.
2184 (floatformat_compare): Rename to ...
2185 (host_float_ops<T>::compare): ... this. Use type instead of
2186 floatformat arguments.
2187
2188 (match_endianness): Use type instead of length/byte_order arguments.
2189 (set_decnumber_context): Likewise.
2190 (decimal_from_number): Likewise. Update calls.
2191 (decimal_to_number): Likewise.
2192 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2193 (decimal_float_ops::to_host_double): New dummy function.
2194 (decimal_float_ops::from_host_double): Likewise.
2195 (decimal_to_string): Rename to ...
2196 (decimal_float_ops::to_string): ... this. Use type instead of
2197 length/byte_order arguments. Update calls.
2198 (decimal_from_string): Rename to ...
2199 (decimal_float_ops::from_string): ... this. Use type instead of
2200 length/byte_order arguments. Update calls.
2201 (decimal_from_longest): Rename to ...
2202 (decimal_float_ops::from_longest): ... this. Use type instead of
2203 length/byte_order arguments. Update calls.
2204 (decimal_from_ulongest): Rename to ...
2205 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2206 length/byte_order arguments. Update calls.
2207 (decimal_to_longest): Rename to ...
2208 (decimal_float_ops::to_longest): ... this. Use type instead of
2209 length/byte_order arguments. Update calls.
2210 (decimal_binop): Rename to ...
2211 (decimal_float_ops::binop): ... this. Use type instead of
2212 length/byte_order arguments. Update calls.
2213 (decimal_compare): Rename to ...
2214 (decimal_float_ops::compare): ... this. Use type instead of
2215 length/byte_order arguments. Update calls.
2216 (decimal_convert): Rename to ...
2217 (decimal_float_ops::convert): ... this. Use type instead of
2218 length/byte_order arguments. Update calls.
2219
2220 (target_float_same_category_p): New function.
2221 (target_float_same_format_p): Likewise.
2222 (target_float_format_length): Likewise.
2223 (enum target_float_ops_kind): New type.
2224 (get_target_float_ops_kind): New function.
2225 (get_target_float_ops): Three new overloaded functions.
2226
2227 (target_float_is_zero): Update call.
2228 (target_float_to_string): Add special handling of invalid numbers,
2229 infinities and NaN (moved from floatformat_to_string). Use
2230 target_float_ops callback.
2231 (target_float_from_string): Use target_float_ops callback.
2232 (target_float_to_longest): Likewise.
2233 (target_float_from_longest): Likewise.
2234 (target_float_from_ulongest): Likewise.
2235 (target_float_to_host_double): Likewise.
2236 (target_float_from_host_double): Likewise.
2237 (target_float_convert): Add special case for no-op conversions.
2238 Use target_float_ops callback.
2239 (target_float_binop): Use target_float_ops callback.
2240 (target_float_compare): Likewise.
2241
a9f26f60
YQ
22422017-11-22 Yao Qi <yao.qi@linaro.org>
2243
2244 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2245
29f9a567
YQ
22462017-11-22 Yao Qi <yao.qi@linaro.org>
2247
2248 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2249 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2250
3b1b69bf
JG
22512017-11-21 Jerome Guitton <guitton@adacore.com>
2252
2253 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2254 with event ptid from the lower layer before doing the
2255 ravenscar-specific update.
2256
54aa6c67
JB
22572017-11-21 Joel Brobecker <brobecker@adacore.com>
2258
2259 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2260 the ptid's TID is nonzero.
2261
cf3fbed4
JB
22622017-11-21 Joel Brobecker <brobecker@adacore.com>
2263
2264 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2265 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2266 Make non-static. Change return type to char *. Adjust code
2267 accordingly. Rewrite the function's documentation.
2268 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2269 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2270 we have enough debugging information in the runtime to support
2271 Ada task debugging before we enable the ravenscar-thread layer.
2272
9edcc12f
JB
22732017-11-21 Joel Brobecker <brobecker@adacore.com>
2274
2275 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2276 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2277 * ravenscar-thread.c: Add into comment.
2278 (base_magic_null_ptid): Delete.
2279 (base_ptid): Change documentation.
2280 (ravenscar_active_task): Renames ravenscar_running_thread.
2281 All callers updated throughout.
2282 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2283 (ravenscar_task_is_currently_active): Likewise.
2284 (get_base_thread_from_ravenscar_task): Ditto.
2285 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2286 (ravenscar_runtime_initialized): Likewise.
2287 (get_running_thread_id): Add new parameter "cpu". Adjust
2288 implementation to handle this new parameter.
2289 (ravenscar_fetch_registers): Small adjustment to use
2290 is_ravenscar_task and ravenscar_task_is_currently_active in
2291 order to decide whether to use the target beneath or this
2292 module's arch_ops.
2293 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2294 (ravenscar_stopped_by_sw_breakpoint): Use
2295 get_base_thread_from_ravenscar_task to get the underlying
2296 thread, rather than using base_ptid.
2297 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2298 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2299 Likewise.
2300 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2301
65d40437
JB
23022017-11-21 Joel Brobecker <brobecker@adacore.com>
2303
2304 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2305 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2306 (get_tcb_types_info): Set fieldnos.base_cpu.
2307 (read_atcb): Set task_info->base_cpu.
2308 (info_task): Print "Base CPU" info if set by runtime.
2309
e02544b2
JB
23102017-11-21 Joel Brobecker <brobecker@adacore.com>
2311
2312 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2313 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2314 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2315 New functions.
2316 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2317 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2318 to_stopped_data_address and to_core_of_thread fields of
2319 ravenscar_ops.
2320
ed0f4273
UW
23212017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2322
2323 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2324 (struct gdbarch_tdep): New member long_double_abi.
2325 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2326 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2327 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2328 format depending on long_double_abi tdep member.
2329 (ppc_floatformat_for_type): Handle __ibm128 type.
2330
0fc76421
SM
23312017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2332
2333 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2334
e6b2f5ef
PA
23352017-11-21 Pedro Alves <palves@redhat.com>
2336
2337 * dwarf2read.c (mapped_index::find_name_components_bounds)
2338 <completion mode, upper bound>: Use std::lower_bound instead of
2339 std::upper_bound.
2340 (test_mapped_index_find_name_component_bounds): Remove incorrect
2341 "t1_fund" from expected symbols.
2342
5c58de74
PA
23432017-11-21 Pedro Alves <palves@redhat.com>
2344
2345 * dwarf2read.c (mapped_index::name_components_casing): New field.
2346 (mapped_index) <build_name_components,
2347 find_name_components_bounds): Declare new methods.
2348 (mapped_index::find_name_components_bounds)
2349 (mapped_index::build_name_components): New methods, factored out
2350 from dw2_expand_symtabs_matching_symbol.
2351 (check_find_bounds_finds)
2352 (test_mapped_index_find_name_component_bounds): New.
2353 (run_test): Rename to ...
2354 (test_dw2_expand_symtabs_matching_symbol): ... this.
2355 (run_test): Reimplement.
2356
e1ef7d7a
PA
23572017-11-21 Pedro Alves <palves@redhat.com>
2358
2359 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2360 (symbol_end): Use cp_ident_is_alnum.
2361 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2362 * dwarf2read.c (make_sort_after_prefix_name): New function.
2363 (dw2_expand_symtabs_matching_symbol): Use it.
2364 (test_symbols): Add more symbols.
2365 (run_test): Add tests.
2366
cf724bc9
TT
23672017-11-17 Tom Tromey <tom@tromey.com>
2368
2369 * symtab.h (enum symbol_subclass_kind): New.
2370 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2371 Remove.
2372 <subclass>: New member.
2373 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2374 * rust-lang.c (rust_get_trait_object_pointer): Update.
2375 * dwarf2read.c (read_func_scope): Update.
2376 (read_variable): Update.
2377
68e745e3
TT
23782017-11-17 Tom Tromey <tom@tromey.com>
2379
2380 * dwarf2read.c (read_func_scope): Update.
2381 * symtab.h (struct template_symbol): Derive from symbol.
2382 <base>: Remove.
2383
71a3c369
TT
23842017-11-17 Tom Tromey <tom@tromey.com>
2385
2386 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2387 (struct rust_vtable_symbol): New.
2388 (find_symbol_at_address): Declare.
2389 * symtab.c (find_symbol_at_address): New function.
2390 * symfile.h (struct quick_symbol_functions)
2391 <find_compunit_symtab_by_address>: New member.
2392 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2393 function.
2394 (debug_sym_quick_functions): Link to
2395 debug_qf_find_compunit_symtab_by_address.
2396 * rust-lang.c (rust_get_trait_object_pointer): New function.
2397 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2398 rust_get_trait_object_pointer.
2399 * psymtab.c (psym_relocate): Clear psymbol_map.
2400 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2401 functions.
2402 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2403 * objfiles.h (struct objfile) <psymbol_map>: New member.
2404 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2405 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2406 (rust_containing_type, read_variable): New functions.
2407
7468702d
SM
24082017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2409
2410 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2411
37269bc9
SM
24122017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2413
2414 * common/filestuff.c: Include <algorithm>.
2415 (open_fds): Change type to std::vector<int>.
2416 (do_mark_open_fd): Adjust.
2417 (unmark_fd_no_cloexec): Adjust.
2418 (do_close): Adjust.
2419
5c632425
SM
24202017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2421
2422 * breakpoint.c (output_thread_groups): Take an std::vector.
2423 (print_one_breakpoint_location): Adjust.
2424
ced9779b
JB
24252017-11-17 Joel Brobecker <brobecker@adacore.com>
2426
2427 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2428 (ada_evaluate_subexp_for_cast): New function.
2429 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2430 ada_evaluate_subexp_for_cast.
2431 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2432 eval_skip_value.
2433 * eval.c (evaluate_var_value): Make non-static.
2434 (evaluate_var_msym_value, eval_skip_value): Likewise.
2435 * value.h (evaluate_var_value, evaluate_var_msym_value)
2436 (eval_skip_value): Declare.
2437
b7e22850
JB
24382017-11-16 Joel Brobecker <brobecker@adacore.com>
2439
2440 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2441 Update all callers.
2442
9ccabccd
PA
24432017-11-16 Pedro Alves <palves@redhat.com>
2444
2445 * python/py-unwind.c (pyuw_sniffer): Translate
2446 PyExc_KeyboardInterrupt to a GDB Quit exception.
2447
d930703d
PA
24482017-11-16 Pedro Alves <palves@redhat.com>
2449
2450 * infrun.c (resume_cleanups): Delete.
2451 (resume): No longer install a resume_cleanups cleanup nor call
2452 QUIT.
2453 (proceed): Pass the terminal to the inferior.
2454 (keep_going_pass_signal): No longer install a resume_cleanups
2455 cleanup.
2456
38dc2859
PA
24572017-11-16 Pedro Alves <palves@redhat.com>
2458
2459 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2460 if the prompt is blocked.
2461
688fca4f
PA
24622017-11-16 Pedro Alves <palves@redhat.com>
2463
2464 * breakpoint.c (insert_bp_location): Replace bp_err and
2465 bp_err_message locals by a gdb_exception local.
2466
e2c33ac7
PA
24672017-11-16 Pedro Alves <palves@redhat.com>
2468
2469 * inflow.c (scoped_ignore_sigttou): New class.
2470 (child_terminal_ours_1, new_tty): Use it.
2471
d7236961
UW
24722017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2473
2474 * target-float.c (decimal_from_number): Add byte_order argument and
2475 call match_endianness. Error if unknown floating-point type.
2476 (decimal_to_number): Add byte_order argument and call match_endianness.
2477 (decimal_from_longest): Update call. Do not call match_endianness.
2478 (decimal_from_ulongest): Likewise.
2479 (decimal_binop): Likewise.
2480 (decimal_is_zero): Likewise.
2481 (decimal_compare): Likewise.
2482 (decimal_convert): Likewise.
2483
d8ae99a7
PM
24842017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2485
2486 * python/python.c (gdbpy_rbreak): New function.
2487 * NEWS: Document Python rbreak feature.
2488
c632b645
YQ
24892017-11-16 Yao Qi <yao.qi@linaro.org>
2490
2491 * features/tic6x-c62x.xml: Remove.
2492 * features/tic6x-c64x.xml: Remove.
2493 * features/tic6x-c64xp.xml: Remove.
2494
a014b87a
JB
24952017-11-15 John Baldwin <jhb@FreeBSD.org>
2496
2497 * symtab.h: Include <array>.
2498
94765011
JB
24992017-11-15 John Baldwin <jhb@FreeBSD.org>
2500
2501 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2502 (bsd_kvm_proc_cmd): Likewise.
2503
625ad440
SM
25042017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2505
2506 * tui/tui-win.c (window_name_completer): Replace VEC with
2507 std::vector.
2508
c0c11fa9
AC
25092017-11-15 Andrew Cagney <cagney@gnu.org>
2510
2511 * MAINTAINERS: Remove no-longer applicable entries.
2512
34a7ebaf
AC
25132017-11-15 Andrew Cagney <cagney@gnu.org>
2514
2515 * MAINTAINERS: Move self to Past Maintainers.
2516
5334ef39
YQ
25172017-11-15 Yao Qi <yao.qi@linaro.org>
2518
2519 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2520 * features/nios2-linux.c: Remove.
2521 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2522 initialize_tdesc_nios2_linux.
2523
a714b0d6
YQ
25242017-11-15 Yao Qi <yao.qi@linaro.org>
2525
2526 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2527 M68HC11_LAST_HARD_REG + 1.
2528
92ffd475
PC
25292017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2530
2531 PR gdb/22388
2532 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2533 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2534 Return TARGET_XFER_EOF if size of returned data is 0.
2535
07431908
SM
25362017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2537
2538 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2539 memory-map-selftests.c.
2540 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2541 * memory-map.c (memory_map_start_memory): Fix computation of hi
2542 address.
2543 * unittests/memory-map-selftests.c: New file.
2544
31432a67
JB
25452017-11-09 Joel Brobecker <brobecker@adacore.com>
2546
2547 * ada-lang.c: Fix some typos in the general command documenting
2548 how Ada expressions are being evaluated and how their result
2549 is printed.
2550
e793c052
TT
25512017-11-09 Tom Tromey <tom@tromey.com>
2552
2553 * psymtab.c (psymbol_hash): Do not hash string contents.
2554 (psymbol_compare): Add comment.
2555
7e8835c5
TT
25562017-11-09 Tom Tromey <tom@tromey.com>
2557
2558 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2559
286acbb5
JB
25602017-11-08 Joel Brobecker <brobecker@adacore.com>
2561
2562 * ada-exp.y (write_var_from_sym): Remove parameter
2563 "orig_left_context". Update all callers.
2564
b44ec619
SM
25652017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2566
2567 * tracepoint.h (class collection_list) <stringify>: Return
2568 std::vector<std::string>.
2569 (encode_actions_rsp): Change parameters to
2570 std::vector<std::string> *.
2571 * tracepoint.c (collection_list::stringify): Return
2572 std::vector<std::string> and adjust accordingly.
2573 (encode_actions_rsp): Changee parameters to
2574 std::vector<std::string> and adjust accordingly.
2575 * remote.c (free_actions_list),
2576 free_actions_list_cleanup_wrapper): Remove.
2577 (remote_download_tracepoint): Adjust to std::vector.
2578
2f4732b0
TT
25792017-11-08 Tom Tromey <tom@tromey.com>
2580
2581 * dwarf2read.c (symbolp): Remove typedef.
2582 (read_func_scope): Use std::vector.
2583 (process_structure_scope): Use std::vector.
2584
f9d67a22
PA
25852017-11-08 Pedro Alves <palves@redhat.com>
2586
2587 * ada-lang.c (ada_make_symbol_completion_list): Use
2588 completion_skip_symbol.
2589 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2590 (symbol_is_function_or_method(symbol*)): New.
2591 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2592 completion_skip_symbol.
2593 (default_collect_symbol_completion_matches_break_on): Use
2594 completion_skip_symbol. Pass down mode.
2595 (collect_file_symbol_completion_matches): Pass down mode.
2596 * symtab.h (symbol_is_function_or_method): New declarations.
2597 (completion_skip_symbol): New template function.
2598
56d87ef7
PA
25992017-11-08 Pedro Alves <palves@redhat.com>
2600
2601 * linespec.c (iterate_over_all_matching_symtabs): Add
2602 search_domain parameter. Pass it down to expand_symtabs_matching.
2603 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2604 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2605 search_domain.
2606 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2607 Pass it down.
2608 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2609 symbols.
2610 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2611 it down.
2612
1b026119
PA
26132017-11-08 Pedro Alves <palves@redhat.com>
2614
2615 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2616 text_len locals and don't pass them down.
2617 * symtab.c (completion_list_add_name): Remove
2618 sym_text/sym_text_len parameters and adjust.
2619 (completion_list_add_symbol, completion_list_add_msymbol)
2620 (completion_list_objc_symbol, completion_list_add_fields)
2621 (add_symtab_completions): Likewise.
2622 (default_collect_symbol_completion_matches_break_on)
2623 (collect_file_symbol_completion_matches): Remove sym_text_len
2624 local and don't pass it down.
2625 * symtab.h (completion_list_add_name): Remove
2626 sym_text/sym_text_len parameters.
2627
c62446b1
PA
26282017-11-08 Pedro Alves <palves@redhat.com>
2629
2630 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2631 unittests/lookup_name_info-selftests.c.
2632 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2633 * cp-support.c: Include "selftest.h".
2634 (cp_remove_params_1): Rename from cp_remove_params. Add
2635 'require_param' parameter, and handle it.
2636 (cp_remove_params): Reimplement.
2637 (cp_remove_params_if_any): New.
2638 (selftests::quote): New.
2639 (selftests::check_remove_params): New.
2640 (selftests::test_cp_remove_params): New.
2641 (_initialize_cp_support): Install
2642 selftests::test_cp_remove_params.
2643 * cp-support.h (cp_remove_params_if_any): Declare.
2644 * dwarf2read.c :Include "selftest.h".
2645 (dw2_expand_symtabs_matching_symbol): Use
2646 lookup_name_info::make_ignore_params.
2647 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2648 (selftests::dw2_expand_symtabs_matching::string_or_null)
2649 (selftests::dw2_expand_symtabs_matching::check_match)
2650 (selftests::dw2_expand_symtabs_matching::test_symbols)
2651 (selftests::dw2_expand_symtabs_matching::run_test): New.
2652 (_initialize_dwarf2_read): Register
2653 selftests::dw2_expand_symtabs_matching::run_test.
2654 * psymtab.c (psym_expand_symtabs_matching): Use
2655 lookup_name_info::make_ignore_params.
2656 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2657 If the lookup name wants to ignore parameters, strip them.
2658 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2659 code handling '('.
2660 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2661 (default_collect_symbol_completion_matches_break_on): Don't try to
2662 strip parameters.
2663 * symtab.h (lookup_name_info::lookup_name_info): Add
2664 'ignore_parameters' parameter.
2665 (lookup_name_info::ignore_parameters)
2666 (lookup_name_info::make_ignore_params): New methods.
2667 (lookup_name_info::m_ignore_parameters): New field.
2668 * unittests/lookup_name_info-selftests.c: New file.
2669
61920122
PA
26702017-11-08 Pedro Alves <palves@redhat.com>
2671
2672 * dwarf2read.c (dw2_expand_marked_cus)
2673 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2674 (dw2_expand_symtabs_matching): Move further below.
2675 (dw2_expand_marked_cus): Reindent.
2676
3f563c84
PA
26772017-11-08 Pedro Alves <palves@redhat.com>
2678
2679 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2680 (struct name_component): New.
2681 (mapped_index::name_components): New field.
2682 (mapped_index::symbol_name_at): New method.
2683 (dwarf2_read_index): Call mapped_index ctor.
2684 (dw2_map_matching_symbols): Add comment about name_components
2685 table.
2686 (dw2_expand_symtabs_matching): Factor part to...
2687 (dw2_expand_symtabs_matching_symbol): ... this new function.
2688 Build name components table, and lookup symbols in it before
2689 calling the name matcher.
2690 (dw2_expand_marked_cus): New, factored out from
2691 dw2_expand_symtabs_matching.
2692 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2693
b5ec771e
PA
26942017-11-08 Pedro Alves <palves@redhat.com>
2695
2696 * ada-lang.c (ada_encode): Rename to ..
2697 (ada_encode_1): ... this. Add throw_errors parameter and handle
2698 it.
2699 (ada_encode): Reimplement.
2700 (match_name): Delete, folded into full_name.
2701 (resolve_subexp): No longer pass the encoded name to
2702 ada_lookup_symbol_list.
2703 (should_use_wild_match): Delete.
2704 (name_match_type_from_name): New.
2705 (ada_lookup_simple_minsym): Use lookup_name_info and the
2706 language's symbol_name_matcher_ftype.
2707 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2708 (ada_add_block_renamings): Adjust to use lookup_name_info.
2709 (ada_lookup_name): New.
2710 (add_nonlocal_symbols, ada_add_all_symbols)
2711 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2712 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2713 (ada_name_for_lookup): Delete.
2714 (ada_lookup_encoded_symbol): Construct a verbatim name.
2715 (wild_match): Reverse sense of return type. Use bool.
2716 (full_match): Reverse sense of return type. Inline bits of old
2717 match_name here.
2718 (ada_add_block_symbols): Adjust to use lookup_name_info.
2719 (symbol_completion_match): Delete, folded into...
2720 (ada_lookup_name_info::matches): ... .this new method.
2721 (symbol_completion_add): Delete.
2722 (ada_collect_symbol_completion_matches): Add name_match_type
2723 parameter. Adjust to use lookup_name_info and
2724 completion_list_add_name.
2725 (get_var_value, ada_add_global_exceptions): Adjust to use
2726 lookup_name_info.
2727 (ada_get_symbol_name_cmp): Delete.
2728 (do_wild_match, do_full_match): New functions.
2729 (ada_lookup_name_info::ada_lookup_name_info): New method.
2730 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2731 functions.
2732 (ada_language_defn): Install ada_get_symbol_name_matcher.
2733 * ada-lex.l (processId): If name starts with '<', copy it
2734 verbatim.
2735 * block.c (block_iter_match_step, block_iter_match_first)
2736 (block_iter_match_next, block_lookup_symbol)
2737 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2738 lookup_name_info.
2739 * block.h (block_iter_match_first, block_iter_match_next)
2740 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2741 * c-lang.c (c_language_defn, cplus_language_defn)
2742 (asm_language_defn, minimal_language_defn): Adjust comments to
2743 refer to la_get_symbol_name_matcher.
2744 * completer.c (complete_files_symbols)
2745 (collect_explicit_location_matches, symbol_completer): Pass a
2746 symbol_name_match_type down.
2747 * completer.h (class completion_match, completion_match_result):
2748 New classes.
2749 (completion_tracker::reset_completion_match_result): New method.
2750 (completion_tracker::m_completion_match_result): New field.
2751 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2752 lookup_name_info.
2753 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2754 functions.
2755 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2756 * d-lang.c: Adjust comments to refer to
2757 la_get_symbol_name_matcher.
2758 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2759 Adjust to use lookup_name_info.
2760 (dict_iter_match_first, dict_iter_match_next)
2761 (iter_match_first_hashed, iter_match_next_hashed)
2762 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2763 with a lookup_name_info.
2764 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2765 Likewise.
2766 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2767 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2768 (gdb_index_symbol_name_matcher): New class.
2769 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2770 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2771 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2772 with a symbol_name_match_type.
2773 (f_language_defn): Adjust comments to refer to
2774 la_get_symbol_name_matcher.
2775 * go-lang.c (go_language_defn): Adjust comments to refer to
2776 la_get_symbol_name_matcher.
2777 * language.c (default_symbol_name_matcher)
2778 (language_get_symbol_name_matcher): New functions.
2779 (unknown_language_defn, auto_language_defn): Adjust comments to
2780 refer to la_get_symbol_name_matcher.
2781 * language.h (symbol_name_cmp_ftype): Delete.
2782 (language_defn) <la_collect_symbol_completion_matches>: Add match
2783 type parameter.
2784 <la_get_symbol_name_cmp>: Delete field.
2785 <la_get_symbol_name_matcher>: New field.
2786 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2787 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2788 Declare.
2789 * linespec.c (iterate_over_all_matching_symtabs)
2790 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2791 (find_methods): Add language parameter, and use lookup_name_info
2792 and the language's symbol_name_matcher_ftype.
2793 (linespec_complete_function): Adjust.
2794 (lookup_prefix_sym): Use lookup_name_info.
2795 (add_all_symbol_names_from_pspace): Adjust.
2796 (find_superclass_methods): Add language parameter and pass it
2797 down.
2798 (find_method): Pass symbol language down.
2799 (find_linespec_symbols): Don't demangle or Ada encode here.
2800 (search_minsyms_for_name): Add lookup_name_info parameter.
2801 (add_matching_symbols_to_info): Add name_match_type parameter.
2802 Use lookup_name_info.
2803 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2804 la_get_symbol_name_matcher.
2805 * minsyms.c: Include <algorithm>.
2806 (add_minsym_to_demangled_hash_table): Remove table parameter and
2807 add objfile parameter. Use search_name_hash, and add language to
2808 demangled languages vector.
2809 (struct found_minimal_symbols): New struct.
2810 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2811 New functions.
2812 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2813 input names here. Use lookup_name_info instead. Lookup up
2814 demangled names once for each language in the demangled names
2815 vector.
2816 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2817 demangled names once for each language in the demangled names
2818 vector.
2819 (build_minimal_symbol_hash_tables): Adjust.
2820 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2821 lookup_name_info.
2822 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2823 la_get_symbol_name_matcher.
2824 * objfiles.h: Include <vector>.
2825 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2826 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2827 la_get_symbol_name_matcher.
2828 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2829 la_get_symbol_name_matcher.
2830 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2831 (match_partial_symbol): Use symbol_name_match_type,
2832 lookup_name_info and psymbol_name_matches.
2833 (lookup_partial_symbol): Use lookup_name_info.
2834 (map_block): Use symbol_name_match_type and lookup_name_info.
2835 (psym_map_matching_symbols): Use symbol_name_match_type.
2836 (psymbol_name_matches): New.
2837 (recursively_search_psymtabs): Use lookup_name_info and
2838 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2839 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2840 'kind' parameter to 'domain'.
2841 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2842 la_get_symbol_name_matcher.
2843 * symfile-debug.c (debug_qf_map_matching_symbols)
2844 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2845 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2846 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2847 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2848 Adjust to use symbol_name_match_type.
2849 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2850 (expand_symtabs_matching): Adjust to use lookup_name_info.
2851 * symmisc.c (maintenance_expand_symtabs): Use
2852 lookup_name_info::match_any ().
2853 * symtab.c (symbol_matches_search_name): New.
2854 (eq_symbol_entry): Adjust to use lookup_name_info and the
2855 language's matcher.
2856 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2857 (lookup_name_info::match_any): New.
2858 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2859 (compare_symbol_name): Add language, lookup_name_info and
2860 completion_match_result parameters, and use them.
2861 (completion_list_add_name): Make extern. Add language and
2862 lookup_name_info parameters. Use them.
2863 (completion_list_add_symbol, completion_list_add_msymbol)
2864 (completion_list_objc_symbol): Add lookup_name_info parameters and
2865 adjust. Pass down language.
2866 (completion_list_add_fields): Add lookup_name_info parameters and
2867 adjust. Pass down language.
2868 (add_symtab_completions): Add lookup_name_info parameters and
2869 adjust.
2870 (default_collect_symbol_completion_matches_break_on): Add
2871 name_match_type parameter, and use it. Use lookup_name_info.
2872 (default_collect_symbol_completion_matches)
2873 (collect_symbol_completion_matches): Add name_match_type
2874 parameter, and pass it down.
2875 (collect_symbol_completion_matches_type): Adjust.
2876 (collect_file_symbol_completion_matches): Add name_match_type
2877 parameter, and use lookup_name_info.
2878 * symtab.h: Include <string> and "common/gdb_optional.h".
2879 (enum class symbol_name_match_type): New.
2880 (class ada_lookup_name_info): New.
2881 (struct demangle_for_lookup_info): New.
2882 (class lookup_name_info): New.
2883 (symbol_name_matcher_ftype): New.
2884 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2885 (symbol_matches_search_name): Declare.
2886 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2887 (default_collect_symbol_completion_matches)
2888 (collect_symbol_completion_matches)
2889 (collect_file_symbol_completion_matches): Add name_match_type
2890 parameter.
2891 (iterate_over_symbols): Use lookup_name_info.
2892 (completion_list_add_name): Declare.
2893 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2894 (strncmp_iw_with_mode): Now extern.
2895 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2896 (strncmp_iw_with_mode): Declare.
2897
5ffa0793
PA
28982017-11-08 Keith Seitz <keiths@redhat.com>
2899 Pedro Alves <palves@redhat.com>
2900
2901 * ada-lang.c (ada_language_defn): Install
2902 default_search_name_hash.
2903 * buildsym.c (struct buildsym_compunit): <language>: New field.
2904 (finish_block_internal): Pass language when creating dictionaries.
2905 (start_buildsym_compunit, start_symtab): New language parameters.
2906 Use them.
2907 (restart_symtab): Pass down compilation unit's language.
2908 * buildsym.h (enum language): Forward declare.
2909 (start_symtab): New 'language' parameter.
2910 * c-lang.c (c_language_defn, cplus_language_defn)
2911 (asm_language_defn, minimal_language_defn): Install
2912 default_search_name_hash.
2913 * coffread.c (coff_start_symtab): Adjust.
2914 * d-lang.c (d_language_defn): Install default_search_name_hash.
2915 * dbxread.c (struct symloc): Add 'pst_language' field.
2916 (PST_LANGUAGE): Define.
2917 (start_psymtab, read_ofile_symtab): Use it.
2918 (process_one_symbol): New 'language' parameter. Pass it down.
2919 * dictionary.c (struct dictionary) <language>: New field.
2920 (DICT_LANGUAGE): Define.
2921 (dict_create_hashed, dict_create_hashed_expandable)
2922 (dict_create_linear, dict_create_linear_expandable): New parameter
2923 'language'. Set the dictionary's language.
2924 (iter_match_first_hashed): Adjust to rename.
2925 (insert_symbol_hashed): Assert we don't see mismatching
2926 languages. Adjust to rename.
2927 (dict_hash): Rename to ...
2928 (default_search_name_hash): ... this and make extern.
2929 * dictionary.h (struct language_defn): Forward declare.
2930 (dict_create_hashed): New parameter 'language'.
2931 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2932 * f-lang.c (f_language_defn): Install default_search_name_hash.
2933 * go-lang.c (go_language_defn): Install default_search_name_hash.
2934 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2935 creation.
2936 * language.c (unknown_language_defn, auto_language_defn):
2937 * language.h (language_defn::la_search_name_hash): New field.
2938 (default_search_name_hash): Declare.
2939 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2940 * mdebugread.c (new_block): New parameter 'language'.
2941 * mdebugread.c (parse_symbol): Pass symbol language to block
2942 allocation.
2943 (psymtab_to_symtab_1): Pass down language.
2944 (new_symtab): Pass compunit's language to block allocation.
2945 * objc-lang.c (objc_language_defn): Install
2946 default_search_name_hash.
2947 * opencl-lang.c (opencl_language_defn):
2948 * p-lang.c (pascal_language_defn): Install
2949 default_search_name_hash.
2950 * rust-lang.c (rust_language_defn): Install
2951 default_search_name_hash.
2952 * stabsread.h (enum language): Forward declare.
2953 (process_one_symbol): Add 'language' parameter.
2954 * symtab.c (search_name_hash): New function.
2955 * symtab.h (search_name_hash): Declare.
2956 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2957
2a1dde5d
PA
29582017-11-08 Pedro Alves <palves@redhat.com>
2959
2960 * cp-name-parser.y (main): Don't initialize extra_chars.
2961
95a6b0a1
TT
29622017-11-07 Tom Tromey <tom@tromey.com>
2963
2964 * event-top.h (command_handler): Constify.
2965 * record-full.c (cmd_record_full_start): Update.
2966 * thread.c (thread_apply_all_command): Update.
2967 * printcmd.c (eval_command): Update.
2968 * mi/mi-main.c (mi_execute_cli_command): Update.
2969 (mi_execute_async_cli_command): Update.
2970 * tui/tui-stack.c (tui_update_command): Update.
2971 * cli/cli-interp.c (safe_execute_command): Constify.
2972 * record.c (record_start): Update.
2973 (record_start, record_stop, cmd_record_start): Update.
2974 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2975 (cmd_record_btrace_pt_start): Update.
2976 (cmd_record_btrace_start): Update.
2977 (cmd_record_btrace_start): Update.
2978 * reverse.c (exec_reverse_once): Update.
2979 * python/python.c (execute_gdb_command): Don't copy the command.
2980 * event-top.c (command_line_handler): Update.
2981 (command_handler): Constify.
2982 * defs.h (deprecated_call_command_hook): Constify.
2983 * cli/cli-script.h (execute_user_command): Constify.
2984 * cli/cli-script.c (execute_user_command): Constify.
2985 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2986 (enum command_control_type): Update.
2987 * main.c (catch_command_errors): Remove non-const overload.
2988 (catch_command_errors_ftype): Remove.
2989 * python/py-cmd.c (cmdpy_function): Constify.
2990 * guile/scm-cmd.c (cmdscm_function): Constify.
2991 * cli/cli-dump.c (call_dump_func): Constify.
2992 * cli/cli-decode.c (do_const_cfunc): Constify.
2993 (do_sfunc): Constify.
2994 (cmd_func): Constify.
2995 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2996 * top.h (execute_command): Constify.
2997 * top.c (execute_command): Constify.
2998 (execute_command_to_string): Constify.
2999 (deprecated_call_command_hook): Constify.
3000 * command.h (cmd_func): Constify.
3001 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
3002
eb4c3f4a
TT
30032017-11-07 Tom Tromey <tom@tromey.com>
3004
3005 * ada-lang.c (catch_ada_exception_command): Constify.
3006 (catch_assert_command): Constify.
3007 * break-catch-throw.c (catch_catch_command, catch_throw_command)
3008 (catch_rethrow_command): Constify.
3009 (catch_exception_command_1): Constify.
3010 * breakpoint.h (add_catch_command): Constify.
3011 * break-catch-syscall.c (catch_syscall_command_1): Constify.
3012 (catch_syscall_split_args): Constify.
3013 * break-catch-sig.c (catch_signal_command): Constify.
3014 (catch_signal_split_args): Constify.
3015 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
3016 cmd_const_sfunc_ftype.
3017 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
3018 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3019 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3020 (add_setshow_string_cmd, struct cmd_list_element)
3021 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3022 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3023 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
3024 Constify.
3025 (set_cmd_sfunc): Constify.
3026 (empty_sfunc): Constify.
3027 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3028 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3029 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
3030 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3031 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3032 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3033 Constify.
3034 (set_cmd_sfunc): Constify.
3035 (cmd_sfunc_ftype): Remove.
3036 * compile/compile.c (set_compile_args): Constify.
3037 * infrun.c (set_disable_randomization): Constify.
3038 * infcmd.c (set_args_command, set_cwd_command): Constify.
3039 * breakpoint.c (set_condition_evaluation_mode): Constify.
3040 (add_catch_command): Constify.
3041 (catch_fork_command_1, catch_exec_command_1)
3042 (catch_load_command_1, catch_unload_command_1): Constify.
3043 (catch_load_or_unload): Constify.
3044 * guile/scm-param.c (pascm_set_func): Constify.
3045 (add_setshow_generic): Constify.
3046 * python/py-param.c (get_set_value): Constify.
3047 * top.h (set_verbose): Constify.
3048 * tui/tui-win.c (tui_set_var_cmd): Constify.
3049 * mi/mi-main.c (set_mi_async_command): Constify.
3050 * cli/cli-logging.c (set_logging_overwrite)
3051 (set_logging_redirect): Constify.
3052 * value.c (set_max_value_size): Constify.
3053 * valprint.c (set_input_radix, set_output_radix): Constify.
3054 * utils.c (set_width_command, set_height_command): Constify.
3055 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
3056 * tracepoint.c (set_disconnected_tracing)
3057 (set_circular_trace_buffer, set_trace_buffer_size)
3058 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
3059 * top.c (set_history_size_command, set_verbose, set_editing)
3060 (set_gdb_datadir, set_history_filename): Constify.
3061 * target.c (set_targetdebug, maint_set_target_async_command)
3062 (maint_set_target_non_stop_command, set_target_permissions)
3063 (set_write_memory_permission): Constify.
3064 (open_target): Constify.
3065 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
3066 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
3067 * symtab.c (set_symbol_cache_size_handler): Constify.
3068 * symfile.c (set_ext_lang_command): Constify.
3069 * symfile-debug.c (set_debug_symfile): Constify.
3070 * source.c (set_directories_command): Constify.
3071 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
3072 * serial.c (set_parity): Constify.
3073 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
3074 * remote.c (set_remote_exec_file, set_remotebreak)
3075 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
3076 * record.c (set_record_insn_history_size)
3077 (set_record_call_history_size): Constify.
3078 * record-full.c (set_record_full_insn_max_num): Constify.
3079 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
3080 * osabi.c (set_osabi): Constify.
3081 * mips-tdep.c (set_mips64_transfers_32bit_regs)
3082 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
3083 * maint.c (maintenance_set_profile_cmd): Constify.
3084 * linux-thread-db.c (set_libthread_db_search_path): Constify.
3085 * language.c (set_language_command, set_range_command)
3086 (set_case_command): Constify.
3087 * infrun.c (set_non_stop, set_observer_mode)
3088 (set_stop_on_solib_events, set_schedlock_func)
3089 (set_exec_direction_func): Constify.
3090 * infcmd.c (set_inferior_tty_command): Constify.
3091 * disasm.c (set_disassembler_options_sfunc): Constify.
3092 * demangle.c (set_demangling_command): Constify.
3093 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
3094 * cris-tdep.c (set_cris_version, set_cris_mode)
3095 (set_cris_dwarf2_cfi): Constify.
3096 * corefile.c (set_gnutarget_command): Constify.
3097 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
3098 (set_target_wide_charset_sfunc): Constify.
3099 * breakpoint.c (update_dprintf_commands): Constify.
3100 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
3101 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
3102 (set_disassembly_style_sfunc): Constify.
3103 * arch-utils.c (set_endian, set_architecture): Constify.
3104 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
3105 * agent.c (set_can_use_agent): Constify.
3106
5fed81ff
TT
31072017-11-07 Tom Tromey <tom@tromey.com>
3108
3109 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
3110 (go32_pde, go32_pte, go32_pte_for_address): Constify.
3111 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
3112 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
3113 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
3114 (parse_int_arg, show_thread_default_detach_sc_cmd)
3115 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
3116 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
3117 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
3118 (show_task_pause_cmd, set_task_detach_sc_cmd)
3119 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3120 (set_noninvasive_cmd, set_thread_pause_cmd)
3121 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3122 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3123 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3124 * windows-nat.c (display_selectors): Constify.
3125 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3126 non-const "cfunc".
3127 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3128 (cmd_cfunc_eq): Likewise.
3129 (struct cmd_list_element): Likewise.
3130 (do_cfunc): Remove.
3131 (cli_user_command_p): Update.
3132 * command.h (add_cmd): Remove non-const overload.
3133 (cmd_cfunc_ftype): Remove typedef.
3134 (cmd_cfunc_eq): Remove non-const overload.
3135 * value.c (show_values): Constify.
3136 * thread.c (thread_apply_all_command): Constify.
3137 * symfile.c (load_command): Constify.
3138 * source.c (directory_command): Constify.
3139 * maint.c (maintenance_internal_error)
3140 (maintenance_demangler_warning, maintenance_space_display)
3141 (maintenance_print_architecture, maintenance_translate_address)
3142 (maintenance_info_selftests, maintenance_internal_warning):
3143 Constify.
3144 * breakpoint.c (disable_trace_command, enable_trace_command):
3145 Constify.
3146 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3147 Constify.
3148 (add_auto_load_safe_path): Constify.
3149 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3150 * top.h (show_commands): Constify.
3151 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3152 * sparc64-tdep.c (adi_examine_command): Constify.
3153 (adi_assign_command): Constify.
3154
1d12d88f
TT
31552017-11-07 Tom Tromey <tom@tromey.com>
3156
3157 * frame.h (info_locals_command, info_args_command): Constify.
3158 * auto-load.h (auto_load_info_scripts): Constify.
3159 * inferior.h (registers_info): Constify.
3160 * copying.c: Rebuild.
3161 * copying.awk: Constify generated commands.
3162 * auto-load.c (auto_load_info_scripts)
3163 (info_auto_load_gdb_scripts): Constify.
3164 * cli/cli-decode.c (struct cmd_list_element): Take a
3165 cmd_const_cfunc_ftype.
3166 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3167 * tui/tui-win.c (tui_all_windows_info): Constify.
3168 * python/py-auto-load.c (info_auto_load_python_scripts):
3169 Constify.
3170 * cli/cli-cmds.c (show_command): Remove non-const overload.
3171 * tracepoint.c (info_tvariables_command, info_scope_command):
3172 Constify.
3173 (info_static_tracepoint_markers_command): Constify.
3174 * thread.c (info_threads_command): Constify.
3175 (print_thread_info_1): Constify.
3176 * target.c (info_target_command): Constify.
3177 * symtab.c (info_sources_command, info_functions_command)
3178 (info_types_command): Constify.
3179 (info_variables_command): Remove non-const overload.
3180 * symfile.c (info_ext_lang_command): Constify.
3181 * stack.c (info_frame_command, info_locals_command)
3182 (info_args_command): Constify.
3183 (backtrace_command): Remove non-const overload.
3184 * source.c (info_source_command, info_line_command): Constify.
3185 * solib.c (info_sharedlibrary_command): Constify.
3186 * skip.c (info_skip_command): Constify.
3187 * ser-go32.c (info_serial_command): Constify.
3188 * reverse.c (info_bookmarks_command): Constify.
3189 * printcmd.c (info_symbol_command, info_address_command)
3190 (info_display_command): Constify.
3191 * osdata.c (info_osdata_command): Constify.
3192 * objc-lang.c (info_selectors_command, info_classes_command):
3193 Constify.
3194 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3195 * memattr.c (info_mem_command): Constify.
3196 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3197 * linux-fork.c (info_checkpoints_command): Constify.
3198 * infrun.c (info_signals_command): Constify.
3199 * inflow.c (info_terminal_command): Constify.
3200 * inferior.c (info_inferiors_command): Constify.
3201 (print_inferior): Constify.
3202 * infcmd.c (info_program_command, info_all_registers_command)
3203 (info_registers_command, info_vector_command)
3204 (info_float_command): Constify.
3205 (registers_info): Constify.
3206 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3207 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3208 Constify.
3209 * f-valprint.c (info_common_command): Constify.
3210 * dcache.c (info_dcache_command): Constify.
3211 (dcache_info_1): Constify.
3212 * darwin-nat-info.c (info_mach_tasks_command)
3213 (info_mach_task_command, info_mach_ports_command)
3214 (info_mach_port_command, info_mach_threads_command)
3215 (info_mach_thread_command, info_mach_regions_command)
3216 (info_mach_regions_recurse_command, info_mach_region_command)
3217 (info_mach_exceptions_command): Constify.
3218 (get_task_from_args): Constify.
3219 * cp-support.c (info_vtbl_command): Constify.
3220 * breakpoint.c (info_watchpoints_command)
3221 (info_tracepoints_command): Constify.
3222 (info_breakpoints_command): Remove non-const overload.
3223 * avr-tdep.c (avr_io_reg_read_command): Constify.
3224 * auxv.c (info_auxv_command): Constify.
3225 * ada-tasks.c (info_tasks_command): Constify.
3226 (info_task): Constify.
3227 * ada-lang.c (info_exceptions_command): Constify.
3228
0b39b52e
TT
32292017-11-07 Tom Tromey <tom@tromey.com>
3230
3231 * solib.h (no_shared_libraries): Constify.
3232 * frame.h (return_command): Constify.
3233 * cli/cli-cmds.h (quit_command): Constify.
3234 * top.h (quit_command, execute_command): Constify.
3235 * target.h (flash_erase_command): Constify.
3236 * inferior.h (set_inferior_args, attach_command): Constify.
3237 * tracepoint.h (start_tracing, stop_tracing): Constify.
3238 * breakpoint.h (break_command, tbreak_command)
3239 (hbreak_command_wrapper, thbreak_command_wrapper)
3240 (rbreak_command_wrapper, watch_command_wrapper)
3241 (awatch_command_wrapper, rwatch_command_wrapper)
3242 (get_tracepoint_by_number): Constify.
3243 * symtab.c (info_variables_command, rbreak_command)
3244 (symtab_symbol_info): Constify.
3245 (info_variables_command): Add non-const overload.
3246 * top.c (dont_repeat_command): Constify.
3247 * breakpoint.c (ignore_command, commands_command)
3248 (condition_command, tbreak_command, hbreak_command)
3249 (thbreak_command, clear_command, break_command)
3250 (info_breakpoints_command, watch_command, rwatch_command)
3251 (awatch_command, trace_command, ftrace_command, strace_command)
3252 (trace_pass_command, break_range_command, dprintf_command)
3253 (agent_printf_command, get_tracepoint_by_number)
3254 (watch_maybe_just_location, trace_pass_command): Constify.
3255 (info_breakpoints_command): Add non-const overload.
3256 * tracefile.c (tsave_command): Constify.
3257 * infcmd.c (attach_command, disconnect_command, signal_command)
3258 (queue_signal_command, stepi_command, nexti_command)
3259 (finish_command, next_command, step_command, until_command)
3260 (advance_command, jump_command, continue_command, run_command)
3261 (start_command, starti_command, interrupt_command)
3262 (run_command_1, set_inferior_args, step_1): Constify.
3263 * inferior.c (add_inferior_command, remove_inferior_command)
3264 (clone_inferior_command): Constify.
3265 * linux-fork.c (checkpoint_command, restart_command): Constify.
3266 * windows-nat.c (signal_event_command): Constify.
3267 * guile/guile.c (guile_repl_command, guile_command): Constify.
3268 * printcmd.c (x_command, display_command, printf_command)
3269 (output_command, set_command, call_command, print_command)
3270 (eval_command): Constify.
3271 (non_const_set_command): Remove.
3272 (_initialize_printcmd): Update.
3273 * source.c (forward_search_command, reverse_search_command):
3274 Constify.
3275 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3276 Constify.
3277 * infrun.c (handle_command): Constify.
3278 * memattr.c (mem_command): Constify.
3279 * stack.c (return_command, up_command, up_silently_command)
3280 (down_command, down_silently_command, frame_command)
3281 (backtrace_command, func_command, backtrace_command_1): Constify.
3282 (backtrace_command): Add non-const overload.
3283 * remote-sim.c (simulator_command): Constify.
3284 * exec.c (set_section_command): Constify.
3285 * tracepoint.c (tdump_command, trace_variable_command)
3286 (tstatus_command, tstop_command, tstart_command)
3287 (end_actions_pseudocommand, while_stepping_pseudocommand)
3288 (collect_pseudocommand, teval_pseudocommand, actions_command)
3289 (start_tracing, stop_tracing): Constify.
3290 * value.c (init_if_undefined_command): Constify.
3291 * tui/tui-stack.c (tui_update_command): Constify.
3292 * tui/tui-win.c (tui_refresh_all_command)
3293 (tui_set_tab_width_command, tui_set_win_height_command)
3294 (tui_set_focus_command, tui_scroll_forward_command)
3295 (tui_scroll_backward_command, tui_scroll_left_command)
3296 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3297 (tui_set_win_height): Constify.
3298 * tui/tui-layout.c (tui_layout_command): Constify.
3299 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3300 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3301 (proc_untrace_sysexit_cmd): Constify.
3302 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3303 (threadset_test_cmd, threadlist_update_test_cmd)
3304 (threadalive_test): Constify.
3305 * objc-lang.c (print_object_command): Constify.
3306 * command.h (add_com): Constify.
3307 * cli/cli-dump.c (restore_command): Constify.
3308 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3309 (help_command, complete_command, shell_command, edit_command)
3310 (list_command, disassemble_command, make_command)
3311 (apropos_command, alias_command): Constify.
3312 * cli/cli-script.c (document_command, define_command)
3313 (while_command, if_command, validate_comname): Constify.
3314 * cli/cli-decode.c (struct cmd_list_element): Change type of
3315 "fun".
3316 * target.c (do_monitor_command, flash_erase_command): Constify.
3317 * regcache.c (reg_flush_command): Constify.
3318 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3319 (reverse_nexti, reverse_continue, reverse_finish)
3320 (save_bookmark_command, goto_bookmark_command)
3321 (exec_reverse_once): Constify.
3322 * python/python.c (python_interactive_command, python_command):
3323 Constify.
3324 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3325 Constify.
3326 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3327 * gcore.c (gcore_command): Constify.
3328
85c4be7c
TT
33292017-11-07 Tom Tromey <tom@tromey.com>
3330
3331 * printcmd.c (x_command): Call set_repeat_arguments.
3332 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3333 * top.c (repeat_arguments): New global.
3334 (set_repeat_arguments): New function.
3335 (execute_command): Handle repeat_arguments.
3336 (show_commands): Calls set_repeat_arguments.
3337 * command.h (set_repeat_arguments): Declare.
3338
022643b4
TT
33392017-11-07 Tom Tromey <tom@tromey.com>
3340
3341 * stack.c (backtrace_command): Use std::string.
3342 (backtrace_command_1): Make "count_exp" const.
3343
5614fb77
TT
33442017-11-07 Tom Tromey <tom@tromey.com>
3345
3346 * source.c (directory_switch, mod_path, add_path): Constify.
3347 * defs.h (add_path, mod_path, directory_switch): Constify.
3348 * mi/mi-cmd-env.c (env_mod_path): Constify.
3349
6be9a197
TT
33502017-11-07 Tom Tromey <tom@tromey.com>
3351
3352 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3353 (run_command_1, continue_command, step_1, jump_command)
3354 (signal_command, until_command, advance_command, finish_command)
3355 (attach_command): Update.
3356
c2252c0d
TT
33572017-11-07 Tom Tromey <tom@tromey.com>
3358
3359 * command.h (set_cmd_cfunc): Don't declare.
3360 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3361
1ee870c5
TT
33622017-11-07 Tom Tromey <tom@tromey.com>
3363
3364 * stack.c (select_frame_command): Constify.
3365 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3366 * command.h (add_com_suppress_notification): Constify.
3367
ee7ddd71
TT
33682017-11-07 Tom Tromey <tom@tromey.com>
3369
3370 * breakpoint.c (stop_command): Constify.
3371 * cli/cli-decode.c (struct cmd_list_element): Constify.
3372 * command.h (add_abbrev_prefix_cmd): Constify.
3373
95e95a6d
PA
33742017-11-07 Pedro Alves <palves@redhat.com>
3375
3376 * breakpoint.c (extract_bp_kind): New enum.
3377 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3378 factored out from ...
3379 (extract_bp_number_and_location): ... here.
3380 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3381
cc638e86
PA
33822017-11-07 Pedro Alves <palves@redhat.com>
3383
3384 * breakpoint.c (extract_bp_number_and_location): Change return
3385 type to void. Throw error instead of warning.
3386 (enable_disable_command): Adjust.
3387
d0fe4701
XR
33882017-11-07 Xavier Roirand <roirand@adacore.com>
3389 Pedro Alves <palves@redhat.com>
3390
3391 * breakpoint.c (map_breakpoint_number_range): New, factored out
3392 from ...
3393 (map_breakpoint_numbers): ... here.
3394 (find_location_by_number): Change parameters from string to
3395 breakpoint number and location.
3396 (extract_bp_number_and_location): New function.
3397 (enable_disable_bp_num_loc)
3398 (enable_disable_breakpoint_location_range)
3399 (enable_disable_command): New functions, factored out ...
3400 (enable_command, disable_command): ... these functions, and
3401 adjusted to support ranges.
3402 * NEWS: Document enable/disable breakpoint location range feature.
3403
635dc5b2
LM
34042017-11-06 Luis Machado <luis.machado@linaro.org>
3405
3406 * MAINTAINERS (Write After Approval): Update my e-mail address.
3407
556e5da5
PA
34082017-11-06 Pedro Alves <palves@redhat.com>
3409
3410 * gnu-nat.c (gnu_terminal_init): Delete.
3411 (gnu_target): Don't install gnu_terminal_init.
3412 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3413 (child_terminal_init): ... this function.
3414
d1928160
PA
34152017-11-06 Pedro Alves <palves@redhat.com>
3416
3417 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3418 sgtty.h.
3419 * config.in, configure: Regenerate.
3420
6aa899ce
PA
34212017-11-06 Pedro Alves <palves@redhat.com>
3422
3423 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3424 (async_init_signals): Adjust.
3425 (handle_stop_sig): Rename to ...
3426 (handle_sigtstp): ... this.
3427 (async_stop_sig): Rename to ...
3428 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3429 SIGTSTP path.
3430 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3431 instead of STOP_SIGNAL thoughout.
3432 (handle_stop_sig): Rename to ...
3433 (handle_sigtstp): ... this.
3434 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3435
a94799ac
PA
34362017-11-06 Pedro Alves <palves@redhat.com>
3437
3438 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3439 longer set flags twice in row.
3440
726e1356
PA
34412017-11-06 Pedro Alves <palves@redhat.com>
3442
3443 * Makefile.in (SER_HARDWIRE): Update comment.
3444 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3445 * common/gdb_termios.h: Delete file.
3446 * common/job-control.c: Include termios.h and unistd.h instead of
3447 gdb_termios.h.
3448 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3449 check.
3450 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3451 Remove sgtty code.
3452 * configure.ac: No longer check for termio.h and sgtty.h.
3453 * configure: Regenerate.
3454 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3455 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3456 Replace PROCESS_GROUP_TYPE references with pid_t references
3457 throughout.
3458 (gdb_getpgrp): Delete.
3459 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3460 (child_terminal_inferior): Remove comment. Remove sgtty code.
3461 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3462 gdb_getpgrp. Use serial_set_tty_state instead aof
3463 serial_noflush_set_tty_state. Remove sgtty code.
3464 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3465 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3466 (inferior_process_group): Now returns pid_t.
3467 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3468 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3469 * ser-event.c (serial_event_ops): Update.
3470 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3471 (dos_ops): Update.
3472 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3473 * ser-pipe.c (pipe_ops): Update.
3474 * ser-tcp.c (tcp_ops): Update.
3475 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3476 HAVE_TERMIOS checks.
3477 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3478 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3479 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3480 assume termios.
3481 (hardwire_noflush_set_tty_state): Delete.
3482 (hardwire_print_tty_state, hardwire_drain_output)
3483 (hardwire_flush_output, hardwire_flush_input)
3484 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3485 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3486 code, and assume termios.
3487 (hardwire_ops): Update.
3488 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3489 * serial.c (serial_noflush_set_tty_state): Delete.
3490 * serial.h (serial_noflush_set_tty_state): Delete.
3491 (serial_ops::noflush_set_tty_state): Delete.
3492
1cfb73db
UW
34932017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3494
3495 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3496 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3497 (COMMON_OBS): Remove doublest.o and dfp.o.
3498 Do not build target-float.c (instead of doublest.c)
3499 with -Wformat-nonliteral.
3500
3501 * doublest.c: Remove file.
3502 * doublest.h: Remove file.
3503 * dfp.c: Remove file.
3504 * dfp.h: Remove file.
3505
3506 * target-float.c: Do not include "doublest.h" and "dfp.h".
3507 (DOUBLEST): Move here from doublest.h.
3508 (enum float_kind): Likewise.
3509 (FLOATFORMAT_CHAR_BIT): Likewise.
3510 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3511 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3512 (floatformat_precision): Likewise.
3513 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3514 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3515 Likewise.
3516 (host_float_format, host_double_format, host_long_double_format):
3517 Likewise.
3518 (floatformat_to_string, floatformat_from_string): Likewise.
3519 (floatformat_to_doublest): Likewise. Also, inline the original
3520 convert_floatformat_to_doublest.
3521 (floatformat_from_doublest): Likewise. Also, inline the original
3522 convert_floatformat_from_doublest.
3523
3524 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3525 (MAX_DECIMAL_STRING): Move here from dfp.c.
3526 (match_endianness): Likewise.
3527 (set_decnumber_context, decimal_check_errors): Likewise.
3528 (decimal_from_number, decimal_to_number): Likewise.
3529 (decimal_to_string, decimal_from_string): Likewise. Make static.
3530 (decimal_from_longest, decimal_from_ulongest): Likewise.
3531 (decimal_to_longest): Likewise.
3532 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3533 (decimal_convert): Likewise.
3534
b07e9c46
UW
35352017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3536
3537 * doublest.c: Do not include "gdbtypes.h".
3538 (extract_typed_floating): Remove.
3539 (store_typed_floating): Remove.
3540 (convert_typed_floating): Remove.
3541 * doublest.h (struct type): Remove.
3542 (DOUBLEST_PRINT_FORMAT): Remove.
3543 (DOUBLEST_SCAN_FORMAT): Remove.
3544 (extract_typed_floating): Remove.
3545 (store_typed_floating): Remove.
3546 (convert_typed_floating): Remove.
3547
3548 * dfp.c (decimal_from_doublest): Remove.
3549 (decimal_to_doublest): Remove.
3550 * dfp.h: Do not include "doublest.h".
3551 (decimal_from_doublest): Remove.
3552 (decimal_to_doublest): Remove.
3553
3554 * value.c: Do not include "doublest.h" and "dfp.h".
3555 (value_as_double): Remove.
3556 (unpack_double): Remove.
3557 (value_from_double): Remove.
3558 (value_from_decfloat): Remove.
3559 * value.h: Do not include "doublest.h".
3560 (value_as_double): Remove.
3561 (unpack_double): Remove.
3562 (value_from_double): Remove.
3563 (value_from_decfloat): Remove.
3564
3b2ca824
UW
35652017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3566
3567 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3568 (i386_extract_return_value): Use target_float_convert.
3569 (i386_store_return_value): Likewise.
3570 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3571 (i387_value_to_register): Likewise.
3572 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3573 (ia64_register_to_value): Use target_float_convert.
3574 (ia64_value_to_register): Likewise.
3575 (ia64_extract_return_value): Likewise.
3576 (ia64_store_return_value): Likewise.
3577 (ia64_push_dummy_call): Likewise.
3578 * m68k-tdep.c: Include "target-float.h".
3579 (m68k_register_to_value): Use target_float_convert.
3580 (m68k_value_to_register): Likewise.
3581 (m68k_svr4_extract_return_value): Likewise.
3582 (m68k_svr4_store_return_value): Likewise.
3583 * ppc-sysv-tdep.c: Include "target-float.h".
3584 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3585 (do_ppc_sysv_return_value): Likewise.
3586 (ppc64_sysv_abi_push_freg): Likewise.
3587 (ppc64_sysv_abi_return_value_base): Likewise.
3588 * rs6000-aix-tdep.c: Include "target-float.h".
3589 (rs6000_push_dummy_call): Use target_float_convert.
3590 (rs6000_return_value): Likewise.
3591 * rs6000-lynx178-tdep.c: Include "target-float.h".
3592 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3593 (rs6000_lynx178_return_value): Likewise.
3594 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3595 (rs6000_register_to_value): Use target_float_convert.
3596 (rs6000_value_to_register): Likewise.
3597 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3598 (arm_extract_return_value): Use target_float_convert.
3599 (arm_store_return_value): Likewise.
3600 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3601 (sh_register_convert_to_virtual): Use target_float_convert.
3602 (sh_register_convert_to_raw): Likewise.
3603 * sh64-tdep.c: Include "target-float.h".
3604 (sh64_extract_return_value): Use target_float_convert.
3605 (sh64_register_convert_to_virtual): Likewise.
3606 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3607
14ad9311
UW
36082017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3609
3610 * target-float.c (floatformat_to_host_double): New function.
3611 (floatformat_from_host_double): Likewise.
3612 (target_float_to_host_double): Likewise.
3613 (target_float_from_host_double): Likewise.
3614 * target-float.h (target_float_to_host_double): Add prototype.
3615 (target_float_from_host_double): Likewise.
3616
3617 * guile/scm-value.c: Include "target-float.h".
3618 (gdbscm_value_to_real): Use target_float_to_host_double.
3619 Handle integer source values via value_as_long.
3620 * guile/scm-math.c: Include "target-float.h". Do not include
3621 "doublest.h", "dfp.h", and "expression.h".
3622 (vlscm_convert_typed_number): Use target_float_from_host_double.
3623 (vlscm_convert_number): Likewise.
3624
3625 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3626 (convert_value_from_python): Use target_float_from_host_double.
3627
50eff16b
UW
36282017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3629
3630 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3631 (cast_from_fixed): Likewise.
3632 (ada_scaling_type): New function.
3633 (ada_delta): Return value instead of DOUBLEST. Perform target
3634 arithmetic instead of host arithmetic.
3635 (scaling_factor): Rename to ...
3636 (ada_scaling_factor) ... this. Make non-static. Return value instead
3637 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3638 (ada_fixed_to_float): Remove.
3639 (ada_float_to_fixed): Remove.
3640 * ada-lang.h (ada_fixed_to_float): Remove.
3641 (ada_float_to_fixed): Remove.
3642 (ada_delta): Return value instead of DOUBLEST.
3643 (ada_scaling_factor): Add prototype.
3644
3645 * ada-typeprint.c: Include "target-float.h".
3646 (print_fixed_point_type): Perform target arithmetic instead of
3647 host arithmetic.
3648 * ada-valprint.c: Include "target-float.h".
3649 (ada_val_print_num): Perform target arithmetic instead of
3650 host arithmetic for fixed-point types.
3651
66c02b9e
UW
36522017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3653
3654 * target-float.c: Include <math.h>.
3655 (floatformat_binop): New function.
3656 (floatformat_compare): Likewise.
3657 (target_float_binop): Likewise.
3658 (target_float_compare): Likewise.
3659 * target-float.h: Include "expression.h".
3660 (target_float_binop): Add prototype.
3661 (target_float_compare): Likewise.
3662
3663 * valarith.c: Do not include "doublest.h" and "dfp.h".
3664 Include "common/byte-vector.h".
3665 (value_args_as_decimal): Remove, replace by ...
3666 (value_args_as_target_float): ... this function. Handle both
3667 binary and decimal target floating-point formats.
3668 (scalar_binop): Handle both binary and decimal FP using
3669 value_args_as_target_float and target_float_binop.
3670 (value_equal): Handle both binary and decimal FP using
3671 value_args_as_target_float and target_float_compare.
3672 (value_less): Likewise.
3673 (value_pos): Handle all scalar types as simple copy.
3674 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3675 * dfp.c (decimal_binop): Throw error instead of internal_error
3676 when called with an unsupported operation code.
3677
f69fdf9b
UW
36782017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3679
3680 * target-float.c (target_float_to_string): New function.
3681 (target_float_from_string): New function.
3682 * target-float.h (target_float_to_string): Add prototype.
3683 (target_float_from_string): Add prototype.
3684
3685 * valprint.c: Include "target-float.h". Do not include
3686 "doublest.h" and "dfp.h".
3687 (print_floating): Use target_float_to_string.
3688 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3689 (printf_floating): Use target_float_to_string.
3690 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3691 (print_i387_value): Use target_float_to_string.
3692 * mips-tdep.c: Include "target-float.h".
3693 (mips_print_fp_register): Use target_float_to_string.
3694 * sh64-tdep.c: Include "target-float.h".
3695 (sh64_do_fp_register): Use target_float_to_string.
3696
3697 * parse.c: Include "target-float.h". Do not include
3698 "doublest.h" and "dfp.h".
3699 (parse_float): Use target_float_from_string.
3700 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3701 (define_symbol): Use target_float_from_string.
3702 * gdbarch-selftests.c: Include "target-float.h".
3703 (register_to_value_test): Use target_float_from_string.
3704
70100014
UW
37052017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3706
3707 * Makefile.c (SFILES): Add target-float.c.
3708 (HFILES_NO_SRCDIR): Add target-float.h.
3709 (COMMON_OBS): Add target-float.o.
3710 * target-float.h: New file.
3711 * target-float.c: New file.
3712
3713 * doublest.c (floatformat_classify): Fix detection of float_zero.
3714
3715 * gdbtypes.c (is_floating_type): New function.
3716 * gdbtypes.h (is_floating_type): Add prototype.
3717
3718 * value.c: Do not include "floatformat.h".
3719 (unpack_double): Use target_float_is_valid.
3720 (is_floating_value): New function.
3721 * value.h (is_floating_value): Add prototype-
3722
3723 * valarith.c: Include "target-float.h".
3724 (value_logical_not): Use target_float_is_zero.
3725
3726 * python/py-value.c: Include "target-float.h".
3727 (valpy_nonzero): Use target_float_is_zero.
3728
ab4b1c46
TT
37292017-11-04 Tom Tromey <tom@tromey.com>
3730
3731 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3732
454dafbd
TT
37332017-11-04 Tom Tromey <tom@tromey.com>
3734
3735 * breakpoint.c (set_momentary_breakpoint): Return
3736 breakpoint_up.
3737 (until_break_command): Update.
3738 (new_until_break_fsm): Change argument types to
3739 breakpoint_up.
3740 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3741 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3742 Remove.
3743 * infcmd.c (finish_forward): Update.
3744 * breakpoint.h (set_momentary_breakpoint)
3745 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3746 (make_cleanup_delete_breakpoint): Remove.
3747 (struct breakpoint_deleter): New.
3748 (breakpoint_up): New typedef.
3749 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3750 (insert_exception_resume_breakpoint): Update.
3751 (insert_exception_resume_from_probe): Update.
3752 (insert_longjmp_resume_breakpoint): Update.
3753 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3754 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3755 * infcall.c (call_function_by_hand_dummy): Update
3756
331b71e5
TT
37572017-11-04 Tom Tromey <tom@tromey.com>
3758
3759 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3760
9f584b37
TT
37612017-11-04 Tom Tromey <tom@tromey.com>
3762
3763 * linux-tdep.c (linux_core_info_proc_mappings): Use
3764 gdb::def_vector.
3765 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3766 "size" argument.
3767 (linux_corefile_thread): Update.
3768 (linux_make_corefile_notes): Remove unused variable.
3769
779bc38e
TT
37702017-11-04 Tom Tromey <tom@tromey.com>
3771
3772 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3773 gdb::byte_vector.
3774
ed2b3126
TT
37752017-11-04 Tom Tromey <tom@tromey.com>
3776
3777 * objfiles.c (do_free_objfile_cleanup): Remove.
3778 * compile/compile-object-load.c (compile_object_load): Update.
3779 * objfiles.h (make_cleanup_free_objfile): Remove.
3780
7f6743fd
TT
37812017-11-04 Tom Tromey <tom@tromey.com>
3782
3783 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3784 (adi_read_versions): Change "tags" to "gdb_byte *".
3785 (adi_print_versions): Likewise.
3786
c80049d3
TT
37872017-11-04 Tom Tromey <tom@tromey.com>
3788
3789 * breakpoint.c
3790 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3791 from start_rbreak_breakpoints.
3792 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3793 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3794 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3795 * symtab.c (do_end_rbreak_breakpoints): Remove.
3796 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3797
167b0be1
TT
37982017-11-04 Tom Tromey <tom@tromey.com>
3799
3800 * cp-namespace.c (reset_directive_searched): Remove.
3801 (cp_lookup_symbol_via_imports): Use scoped_restore.
3802 * cp-support.c (reset_directive_searched): Remove.
3803 (make_symbol_overload_list_using): Use scoped_restore.
3804 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3805 (reset_directive_searched): Remove.
3806
5eae7aea
TT
38072017-11-04 Tom Tromey <tom@tromey.com>
3808
3809 * symfile.c (find_separate_debug_file_by_debuglink): Use
3810 unique_xmalloc_ptr.
3811
c6bcad5f
TT
38122017-11-04 Tom Tromey <tom@tromey.com>
3813
3814 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3815 type of "info".
3816 (compute_stack_depth): Likewise.
3817 (do_compile_dwarf_expr_to_c): Use std::vector.
3818
20dcd8ca
TT
38192017-11-04 Tom Tromey <tom@tromey.com>
3820
3821 * compile/compile-object-load.c (link_callbacks_einfo): Use
3822 std::string.
3823
33c7c59d
TT
38242017-11-04 Tom Tromey <tom@tromey.com>
3825
3826 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3827 Use scoped_free_pendings.
3828 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3829 scoped_free_pendings.
3830 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3831 (xcoff_initial_scan): Likewise.
3832 * buildsym.c (reset_symtab_globals): Update comment.
3833 (scoped_free_pendings): Rename from really_free_pendings.
3834 (prepare_for_building): Update comment.
3835 (buildsym_init): Likewise.
3836 * buildsym.h (class scoped_free_pendings): New class.
3837 (really_free_pendings): Don't declare.
3838
67fa57cf
UW
38392017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3840
3841 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3842 output when converting a zero value to a special byteorder format.
3843
f26ae15b
YQ
38442017-11-02 Yao Qi <yao.qi@linaro.org>
3845
3846 * frame.c (do_frame_register_read): Remove aspace.
3847 * jit.c (jit_frame_sniffer): Likwise.
3848 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3849 * regcache.c (regcache::regcache): Pass nullptr.
3850 (regcache_print): Caller updated.
3851 * regcache.h (regcache::regcache): Remove one constructor
3852 parameter aspace.
3853
6c6e9412
YQ
38542017-11-02 Yao Qi <yao.qi@linaro.org>
3855
3856 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3857
8b86c959
YQ
38582017-11-02 Yao Qi <yao.qi@linaro.org>
3859
3860 * breakpoint.c (insert_single_step_breakpoints): Update.
3861 * frame.c (struct frame_info) <aspace>: Add const.
3862 (frame_save_as_regcache): Add const.
3863 (get_frame_address_space): Return const address_space *.
3864 * frame.h (get_frame_address_space): Update declaration.
3865 * infrun.c (struct step_over_info) <aspace>: Add const.
3866 (set_step_over_info): Make aspace const.
3867 (displaced_step_prepare_throw): Change variable const.
3868 (resume): Likewise.
3869 (proceed): Likewise.
3870 (adjust_pc_after_break): Likewise.
3871 (save_waitstatus): Likewise.
3872 (handle_signal_stop): Likewise.
3873 (keep_going_pass_signal): Likewise.
3874 * jit.c (jit_frame_sniffer): Add const.
3875 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3876 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3877 * record-full.c (record_full_wait_1): Likewise.
3878 * regcache.c (regcache::regcache): Change parameter to const.
3879 * regcache.h (regcache::regcache): Likewise.
3880 (regcache::aspace): Return const address_space *.
3881 (regcache) <m_aspace>: Add const.
3882
a01bda52
YQ
38832017-11-02 Yao Qi <yao.qi@linaro.org>
3884
3885 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3886 * frame.c (create_sentinel_frame): Likewise.
3887 * infrun.c (displaced_step_prepare_throw): Likewise.
3888 (resume): Likewise.
3889 (thread_still_needs_step_over_bp): Likewise.
3890 (proceed): Likewise.
3891 (do_target_wait): Likewise.
3892 (adjust_pc_after_break): Likewise.
3893 (handle_syscall_event): Likewise.
3894 (save_waitstatus): Likewise.
3895 (handle_inferior_event_1): Likewise.
3896 (handle_signal_stop): Likewise.
3897 (keep_going_pass_signal): Likewise.
3898 * linux-nat.c (status_callback): Likewise.
3899 (save_stop_reason): Likewise.
3900 (resume_stopped_resumed_lwps): Likewise.
3901 * record-full.c (record_full_exec_insn): Likewise.
3902 (record_full_wait_1): Likewise.
3903 * regcache.c (get_regcache_aspace): Remove.
3904 * regcache.h (get_regcache_aspace): Remove.
3905
d999647b
YQ
39062017-11-02 Yao Qi <yao.qi@linaro.org>
3907
3908 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3909 (init_regcache_descr): Use gdbarch_num_regs.
3910 (regcache::regcache): Likewise.
3911 (regcache::get_register_status): Likewise.
3912 (regcache::assert_raw_regnum): Likewise.
3913 (regcache::cooked_read): Likewise.
3914 (regcache::cooked_read_value): Likewise.
3915 (regcache::cooked_write): Likewise.
3916 (regcache::dump): Likewise.
3917 (regcache::num_raw_registers): New method.
3918 * regcache.h (class regcache) <num_raw_registers>: New.
3919
4e888c28
YQ
39202017-11-02 Yao Qi <yao.qi@linaro.org>
3921
3922 * regcache.c (regcache::assert_regnum): New method.
3923 (regcache::invalidate): Call assert_regnum.
3924 (regcache::raw_update): Likewise.
3925 (regcache::raw_write): Likewise.
3926 (regcache::raw_read_part): Likewise.
3927 (regcache::raw_write_part): Likewise.
3928 (regcache::raw_supply): Likewise.
3929 (regcache::raw_supply_integer): Likewise.
3930 (regcache::raw_supply_zeroed): Likewise.
3931 (regcache::raw_collect): Likewise.
3932 (regcache::raw_collect_integer): Likewise.
3933 * regcache.h (regcache::assert_regnum): Declare.
3934
2e1b49b3
YQ
39352017-11-02 Yao Qi <yao.qi@linaro.org>
3936
3937 * regcache.c (regcache::dump): Remove code.
3938
6c5218df
YQ
39392017-11-02 Yao Qi <yao.qi@linaro.org>
3940
3941 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3942 Remove.
3943 <sizeof_cooked_register_status>: Remove.
3944 (init_regcache_descr): Update.
3945 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3946 (regcache::save): Likewise.
3947 (regcache::dump): Likewise.
3948
dcc31d28
JB
39492017-11-01 James Bowman <james.bowman@ftdichip.com>
3950
3951 * ft32-tdep.c (ft32_fetch_instruction): New function.
3952 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3953
3a87ae65
SM
39542017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3955
3956 * cli/cli-script.c (execute_control_command): Rename to ...
3957 (execute_control_command_1): ... this.
3958 (execute_control_command): New function.
3959
09b847f3
SM
39602017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3961
3962 * tracepoint.c (tfind_command): Remove const_cast.
3963
f871c485
MG
39642017-10-30 Mike Gulick <mgulick@mathworks.com>
3965
3966 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3967
b020ff80
SM
39682017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3969
3970 * common/common-utils.h (in_inclusive_range): New function.
3971 * arm-tdep.c (arm_record_extension_space): Use
3972 in_inclusive_range.
3973 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3974 * cris-tdep.c (cris_spec_reg_applicable): Use
3975 in_inclusive_range.
3976
1b81856f
PA
39772017-10-30 Pedro Alves <palves@redhat.com>
3978 Simon Marchi <simon.marchi@ericsson.com>
3979
3980 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3981 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3982
31b833b3
PA
39832017-10-30 Pedro Alves <palves@redhat.com>
3984
3985 * common/common-utils.c (string_appendf, string_vappendf): New
3986 functions.
3987 * common/common-utils.h (string_appendf, string_vappendf): New
3988 declarations.
3989 * unittests/common-utils-selftests.c (string_appendf_func)
3990 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3991 (string_vappendf_tests): New functions.
3992 (_initialize_common_utils_selftests): Register "string_appendf" and
3993 "string_vappendf tests".
3994
4a250334
PA
39952017-10-30 Pedro Alves <palves@redhat.com>
3996
3997 * unittests/common-utils-selftests.c (format_func): New typedef.
3998 (string_printf_tests, string_vprintf_tests): Tests factored out
3999 and merged to ...
4000 (test_format_func): ... this new function.
4001 (string_printf_tests, string_vprintf_tests): Reimplement on top of
4002 test_format_func.
4003
16c5c17e
SM
40042017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4005
4006 * darwin-nat.c: Remove include of gdb.h.
4007
7ca51576
SM
40082017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4009
4010 * xtensa-xtregs.c: Fix formatting issues.
4011
c1342859
SM
40122017-10-29 Simon Marchi <simon.marchi@ericsson.com>
4013
4014 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
4015
484d8d36
MD
40162017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
4017
4018 PR python/21213
4019 * python/py-infthread.c (thpy_get_inferior): Increment reference
4020 of inferior before returning it.
4021
b5540b5f
SM
40222017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4023
4024 * unittests/common-utils-selftests.c (format): Add
4025 ATTRIBUTE_PRINTF.
4026
5a9dcda1
SM
40272017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4028
4029 * xml-syscall.c (struct syscall_desc): Add constructor.
4030 <name>: Change type to std::string.
4031 (syscall_desc_up): New typedef.
4032 (syscall_desc_p): Remove typeder.
4033 (DEF_VEC_P(syscall_desc_p)): Remove.
4034 (struct syscall_group_desc): Add constructor.
4035 <name>: Change type to std::string.
4036 <syscalls>: Change type to std::vector.
4037 (syscall_group_desc_up): New typedef.
4038 (syscall_group_desc_p): Remove typedef.
4039 (DEF_VEC_P(syscall_group_desc_p)): Remove.
4040 (struct syscalls_info) <syscalls>: Change type to std::vector of
4041 unique_ptr.
4042 <groups>: Likewise.
4043 <my_gdb_datadir>: Change type to std::string.
4044 (syscalls_info_up): New typedef.
4045 (allocate_syscalls_info): Remove.
4046 (syscalls_info_free_syscalls_desc): Remove.
4047 (syscalls_info_free_syscall_group_desc): Remove.
4048 (free_syscalls_info): Remove.
4049 (make_cleanup_free_syscalls_info): Remove.
4050 (syscall_group_create_syscall_group_desc): Adjust.
4051 (syscall_group_add_syscall): Adjust.
4052 (syscall_create_syscall_desc): Adjust.
4053 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
4054 (init_syscalls_info): Adjust.
4055 (syscall_group_get_group_by_name): Adjust.
4056 (xml_get_syscall_number): Adjust.
4057 (xml_get_syscall_name): Adjust.
4058 (xml_list_of_syscalls): Adjust.
4059 (xml_list_syscalls_by_group): Adjust.
4060 (xml_list_of_groups): Adjust.
4061
45461e0d
SM
40622017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4063
4064 * probe.h: Don't include gdb_vecs.h.
4065 (DEF_VEC_P (probe_p)): Remove.
4066 (find_probes_in_objfile): Return an std::vector.
4067 * probe.c (find_probes_in_objfile): Likewise.
4068 * breakpoint.c (breakpoint_objfile_data)
4069 <longjmp_probes>: Change type to std::vector.
4070 <exception_probes>: Likewise.
4071 (free_breakpoint_probes): Don't manually free vectors.
4072 (create_longjmp_master_breakpoint): Adjust.
4073 (create_exception_master_breakpoint): Adjust.
4074 * solib-svr4.c (svr4_create_probe_breakpoints): Change
4075 parameter type, adjust.
4076 (svr4_create_solib_event_breakpoints): Adjust.
4077
43dce439
SM
40782017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4079
4080 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
4081 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
4082 with new.
4083 (free_breakpoint_probes): Rename to ...
4084 (free_breakpoint_objfile_data): ... this, and call delete on
4085 bp_objfile_data..
4086
6a1b9516
SM
40872017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
4088
4089 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
4090 (loaded_script_ptr): Remove typedef.
4091 (DEF_VEC_P (loaded_script_ptr)): Remove.
4092 (struct collect_matching_scripts_data): Add constructor.
4093 <scripts_p>: Change type to (pointer to) std::vector.
4094 (collect_matching_scripts_data): Adjust.
4095 (sort_scripts_by_name): Make suitable for std::sort.
4096 (print_scripts): Don't sort vector, adjust to std::vector.
4097 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
4098
593e3209
SM
40992017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4100
4101 * symfile.c (filename_language): Make struct, not typedef. Add
4102 constructor.
4103 <ext>: Change type to std::string.
4104 (DEF_VEC_O (filename_language)): Remove.
4105 (filename_language_table): Change type to std::vector.
4106 (add_filename_language): Adjust.
4107 (set_ext_lang_command): Adjust.
4108 (info_ext_lang_command): Adjust.
4109 (deduce_language_from_filename): Adjust.
4110 (class scoped_restore_filename_language_table): Remove.
4111 (test_filename_language): Use scoped_restore.
4112 (test_set_ext_lang_command): Use scoped_restore, adjust to
4113 std::vector change.
4114
32fa66eb
SM
41152017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4116
4117 * symfile.c: Include selftest.h.
4118 (class scoped_restore_filename_language_table): New.
4119 (test_filename_language): New test.
4120 (test_set_ext_lang_command): New test.
4121 (_initialize_symfile): Register tests.
4122
4a27f119
KS
41232017-10-27 Keith Seitz <keiths@redhat.com>
4124
4125 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4126 in the bp_location, falling back to find_pc_sect_function when
4127 needed.
4128 (add_location_to_breakpoint): Save sal->symbol.
4129 * breakpoint.h (struct bp_location) <symbol>: New field.
4130 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4131 * symtab.h (struct symtab_and_line) <symbol>: New field.
4132
a43f3893
PF
41332017-10-26 Patrick Frants <osscontribute@gmail.com>
4134
7453e6b2 4135 PR gdb/13669
a43f3893
PF
4136 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4137 to rewind obstack.
4138
23cc4e1b
PA
41392017-10-26 Pedro Alves <palves@redhat.com>
4140
4141 * remote.c (remote_async_terminal_ours_p): Delete.
4142 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4143 Remove references to 'remote_async_terminal_ours_p'.
4144
6abc18bb
YQ
41452017-10-26 Yao Qi <yao.qi@linaro.org>
4146
4147 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4148
bd522513
YQ
41492017-10-26 Yao Qi <yao.qi@linaro.org>
4150
4151 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4152 aspace const.
4153 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4154 Likewise.
4155 * breakpoint.c (bpstat_check_location): Remove cast.
4156 (breakpoint_hit_catch_fork): Make aspce const.
4157 (breakpoint_hit_catch_solib): Likewise.
4158 (breakpoint_hit_catch_exec): Likewise.
4159 (breakpoint_hit_ranged_breakpoint): Likewise.
4160 (breakpoint_hit_watchpoint): Likewise.
4161 (base_breakpoint_breakpoint_hit): Likewise.
4162 (bkpt_breakpoint_hit): Likewise.
4163 (dprintf_breakpoint_hit): Likewise.
4164 (tracepoint_breakpoint_hit): Likewise.
4165 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4166
accd0bcd
YQ
41672017-10-26 Yao Qi <yao.qi@linaro.org>
4168
4169 * breakpoint.c (breakpoint_location_address_match): Change
4170 "struct address_space *" to "const address_space".
4171 (breakpoint_location_address_range_overlap): Likewise.
4172 (breakpoint_here_p): Likewise.
4173 (breakpoint_in_range_p): Likewise.
4174 (moribund_breakpoint_here_p): Likewise.
4175 (bp_location_inserted_here_p): Likewise.
4176 (software_breakpoint_inserted_here_p): Likewise.
4177 (hardware_breakpoint_inserted_here_p): Likewise.
4178 (hardware_watchpoint_inserted_in_range): Likewise.
4179 (bpstat_check_location): Likewise.
4180 (bpstat_stop_status): Likewise.
4181 (breakpoint_address_match): Likewise.
4182 (breakpoint_address_match_range): Likewise.
4183 (breakpoint_location_address_match): Likewise.
4184 (breakpoint_location_address_range_overlap): Likewise.
4185 (insert_single_step_breakpoint): Likewise.
4186 (breakpoint_has_location_inserted_here): Likewise.
4187 (single_step_breakpoint_inserted_here_p): Likewise.
4188 (pc_at_non_inline_function): Likewise.
4189 * breakpoint.h (bpstat_stop_status): Update declaration.
4190 (breakpoint_here_p): Likewise.
4191 (breakpoint_in_range_p): Likewise.
4192 (moribund_breakpoint_here_p): Likewise.
4193 (breakpoint_inserted_here_p): Likewise.
4194 (software_breakpoint_inserted_here_p): Likewise.
4195 (hardware_breakpoint_inserted_here_p): Likewise.
4196 (breakpoint_has_location_inserted_here): Likewise.
4197 (single_step_breakpoint_inserted_here_p): Likewise.
4198 (hardware_watchpoint_inserted_in_range): Likewise.
4199 (breakpoint_address_match): Likewise.
4200 (insert_single_step_breakpoint): Likewise.
4201 (pc_at_non_inline_function): Likewise.
4202 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4203 * record.c (record_check_stopped_by_breakpoint): Likewise.
4204 * record.h (record_check_stopped_by_breakpoint): Likewise.
4205 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4206
ac7936df
YQ
42072017-10-25 Yao Qi <yao.qi@linaro.org>
4208
4209 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4210 regcache->arch () instead get_regcache_arch.
4211 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4212 Likewise.
4213 (aarch64_fbsd_store_inferior_registers): Likewise.
4214 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4215 (store_gregs_to_thread): Likewise.
4216 (fetch_fpregs_from_thread): Likewise.
4217 (store_fpregs_to_thread): Likewise.
4218 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4219 (aarch64_store_return_value): Likewise.
4220 (aarch64_software_single_step): Likewise.
4221 * aix-thread.c (aix_thread_wait): Likewise.
4222 (supply_reg32): Likewise.
4223 (supply_sprs64): Likewise.
4224 (supply_sprs32): Likewise.
4225 (fill_gprs64): Likewise.
4226 (fill_gprs32): Likewise.
4227 (fill_sprs64): Likewise.
4228 (fill_sprs32): Likewise.
4229 (store_regs_user_thread): Likewise.
4230 (store_regs_kernel_thread): Likewise.
4231 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4232 (alphabsd_store_inferior_registers): Likewise.
4233 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4234 (alpha_store_return_value): Likewise.
4235 (alpha_deal_with_atomic_sequence): Likewise.
4236 (alpha_next_pc): Likewise.
4237 (alpha_software_single_step): Likewise.
4238 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4239 (amd64bsd_store_inferior_registers): Likewise.
4240 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4241 Likewise.
4242 (amd64_linux_store_inferior_registers): Likewise.
4243 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4244 (amd64_collect_native_gregset): Likewise.
4245 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4246 (amd64obsd_collect_uthread): Likewise.
4247 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4248 (amd64_collect_fpregset): Likewise.
4249 (amd64_supply_fxsave): Likewise.
4250 (amd64_supply_xsave): Likewise.
4251 (amd64_collect_fxsave): Likewise.
4252 (amd64_collect_xsave): Likewise.
4253 * arc-tdep.c (arc_write_pc): Likewise.
4254 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4255 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4256 (arm_fbsd_store_inferior_registers): Likewise.
4257 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4258 (store_vfp_regs): Likewise.
4259 (arm_linux_fetch_inferior_registers): Likewise.
4260 (arm_linux_store_inferior_registers): Likewise.
4261 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4262 (arm_linux_sigreturn_next_pc): Likewise.
4263 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4264 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4265 (fetch_register): Likewise.
4266 (store_register): Likewise.
4267 * arm-tdep.c (arm_is_thumb): Likewise.
4268 (displaced_in_arm_mode): Likewise.
4269 (bx_write_pc): Likewise.
4270 (arm_get_next_pcs_addr_bits_remove): Likewise.
4271 (arm_software_single_step): Likewise.
4272 (arm_extract_return_value): Likewise.
4273 (arm_store_return_value): Likewise.
4274 (arm_write_pc): Likewise.
4275 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4276 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4277 (bsd_uthread_store_registers): Likewise.
4278 * core-regset.c (fetch_core_registers): Likewise.
4279 * corelow.c (get_core_registers): Likewise.
4280 * cris-tdep.c (cris_store_return_value): Likewise.
4281 (cris_extract_return_value): Likewise.
4282 (find_step_target): Likewise.
4283 (find_step_target): Likewise.
4284 (cris_software_single_step): Likewise.
4285 * ctf.c (ctf_fetch_registers): Likewise.
4286 * darwin-nat.c (cancel_breakpoint): Likewise.
4287 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4288 * frv-tdep.c (frv_extract_return_value): Likewise.
4289 * ft32-tdep.c (ft32_store_return_value): Likewise.
4290 (ft32_extract_return_value): Likewise.
4291 * go32-nat.c (fetch_register): Likewise.
4292 (go32_fetch_registers): Likewise.
4293 (go32_store_registers): Likewise.
4294 (store_register): Likewise.
4295 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4296 (h8300_store_return_value): Likewise.
4297 * hppa-linux-nat.c (fetch_register): Likewise.
4298 (store_register): Likewise.
4299 (hppa_linux_fetch_inferior_registers): Likewise.
4300 (hppa_linux_store_inferior_registers): Likewise.
4301 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4302 (i386_darwin_store_inferior_registers): Likewise.
4303 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4304 (gnu_store_registers): Likewise.
4305 * i386-linux-nat.c (fetch_register): Likewise.
4306 (store_register): Likewise.
4307 (supply_gregset): Likewise.
4308 (fill_gregset): Likewise.
4309 (i386_linux_fetch_inferior_registers): Likewise.
4310 (i386_linux_store_inferior_registers): Likewise.
4311 (i386_linux_resume): Likewise.
4312 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4313 Likewise.
4314 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4315 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4316 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4317 (i386obsd_collect_uthread): Likewise.
4318 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4319 (i386_supply_gregset): Likewise.
4320 (i386_collect_gregset): Likewise.
4321 (i386_supply_fpregset): Likewise.
4322 (i386_collect_fpregset): Likewise.
4323 (i386_mpx_bd_base): Likewise.
4324 * i386-v4-nat.c (supply_fpregset): Likewise.
4325 (fill_fpregset): Likewise.
4326 * i387-tdep.c (i387_supply_fsave): Likewise.
4327 (i387_collect_fsave): Likewise.
4328 (i387_supply_fxsave): Likewise.
4329 (i387_collect_fxsave): Likewise.
4330 (i387_supply_xsave): Likewise.
4331 (i387_collect_xsave): Likewise.
4332 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4333 (ia64_linux_store_registers): Likewise.
4334 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4335 (ia64_extract_return_value): Likewise.
4336 (ia64_store_return_value): Likewise.
4337 (find_func_descr): Likewise.
4338 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4339 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4340 (inf_ptrace_store_registers): Likewise.
4341 * infrun.c (use_displaced_stepping): Likewise.
4342 (displaced_step_prepare_throw): Likewise.
4343 (resume): Likewise.
4344 (proceed): Likewise.
4345 (do_target_wait): Likewise.
4346 (adjust_pc_after_break): Likewise.
4347 (handle_inferior_event_1): Likewise.
4348 (handle_signal_stop): Likewise.
4349 (save_infcall_suspend_state): Likewise.
4350 (restore_infcall_suspend_state): Likewise.
4351 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4352 * jit.c (jit_frame_prev_register): Likewise.
4353 * linux-nat.c (save_stop_reason): Likewise.
4354 (linux_nat_wait_1): Likewise.
4355 (resume_stopped_resumed_lwps): Likewise.
4356 * linux-record.c (record_linux_sockaddr): Likewise.
4357 (record_linux_msghdr): Likewise.
4358 (record_linux_system_call): Likewise.
4359 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4360 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4361 (lm32_store_return_value): Likewise.
4362 * m32c-tdep.c (m32c_read_flg): Likewise.
4363 (m32c_pseudo_register_read): Likewise.
4364 (m32c_pseudo_register_write): Likewise.
4365 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4366 (m32r_linux_collect_gregset): Likewise.
4367 * m32r-tdep.c (m32r_store_return_value): Likewise.
4368 (m32r_extract_return_value): Likewise.
4369 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4370 (m68kbsd_collect_fpregset): Likewise.
4371 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4372 * m68k-linux-nat.c (fetch_register): Likewise.
4373 (old_fetch_inferior_registers): Likewise.
4374 (old_store_inferior_registers): Likewise.
4375 (store_regs): Likewise.
4376 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4377 (m68k_svr4_store_return_value): Likewise.
4378 * m88k-tdep.c (m88k_store_arguments): Likewise.
4379 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4380 (mi_cmd_data_write_register_values): Likewise.
4381 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4382 (mips_fbsd_store_inferior_registers): Likewise.
4383 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4384 (mips_fbsd_supply_gregs): Likewise.
4385 (mips_fbsd_collect_fpregs): Likewise.
4386 (mips_fbsd_collect_gregs): Likewise.
4387 (mips_fbsd_supply_fpregset): Likewise.
4388 (mips_fbsd_collect_fpregset): Likewise.
4389 (mips_fbsd_supply_gregset): Likewise.
4390 (mips_fbsd_collect_gregset): Likewise.
4391 * mips-linux-nat.c (supply_gregset): Likewise.
4392 (fill_gregset): Likewise.
4393 (supply_fpregset): Likewise.
4394 (fill_fpregset): Likewise.
4395 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4396 (mips_fill_gregset): Likewise.
4397 (mips_supply_fpregset): Likewise.
4398 (mips_fill_fpregset): Likewise.
4399 (mips64_supply_gregset): Likewise.
4400 (micromips_linux_sigframe_validate): Likewise.
4401 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4402 (mipsnbsd_fetch_inferior_registers): Likewise.
4403 (mipsnbsd_store_inferior_registers): Likewise.
4404 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4405 (mipsnbsd_supply_gregset): Likewise.
4406 (mipsnbsd_iterate_over_regset_sections): Likewise.
4407 (mipsnbsd_supply_reg): Likewise.
4408 (mipsnbsd_supply_fpreg): Likewise.
4409 * mips-tdep.c (mips_in_frame_stub): Likewise.
4410 (mips_dummy_id): Likewise.
4411 (is_octeon_bbit_op): Likewise.
4412 (micromips_bc1_pc): Likewise.
4413 (extended_mips16_next_pc): Likewise.
4414 (mips16_next_pc): Likewise.
4415 (deal_with_atomic_sequence): Likewise.
4416 * moxie-tdep.c (moxie_process_readu): Likewise.
4417 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4418 * nto-procfs.c (procfs_store_registers): Likewise.
4419 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4420 (ppcfbsd_store_inferior_registers): Likewise.
4421 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4422 (fetch_altivec_register): Likewise.
4423 (get_spe_registers): Likewise.
4424 (fetch_spe_register): Likewise.
4425 (fetch_altivec_registers): Likewise.
4426 (fetch_all_gp_regs): Likewise.
4427 (fetch_all_fp_regs): Likewise.
4428 (store_vsx_register): Likewise.
4429 (store_altivec_register): Likewise.
4430 (set_spe_registers): Likewise.
4431 (store_spe_register): Likewise.
4432 (store_altivec_registers): Likewise.
4433 (store_all_gp_regs): Likewise.
4434 (store_all_fp_regs): Likewise.
4435 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4436 (ppc_linux_collect_gregset): Likewise.
4437 (ppc_canonicalize_syscall): Likewise.
4438 (ppc_linux_record_signal): Likewise.
4439 (ppu2spu_prev_register): Likewise.
4440 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4441 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4442 (ppcobsd_store_registers): Likewise.
4443 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4444 Likewise.
4445 (ppc_ravenscar_generic_store_registers): Likewise.
4446 * procfs.c (procfs_fetch_registers): Likewise.
4447 (procfs_store_registers): Likewise.
4448 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4449 (ravenscar_store_registers): Likewise.
4450 (ravenscar_prepare_to_store): Likewise.
4451 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4452 * record-full.c (record_full_wait_1): Likewise.
4453 (record_full_registers_change): Likewise.
4454 (record_full_store_registers): Likewise.
4455 (record_full_core_fetch_registers): Likewise.
4456 (record_full_save): Likewise.
4457 (record_full_goto_insn): Likewise.
4458 * regcache.c (regcache_register_size): Likewise.
4459 (get_regcache_arch): Remove.
4460 (regcache_read_pc): Likewise.
4461 * regcache.h (get_regcache_arch): Remove.
4462 * remote-sim.c (gdbsim_fetch_register): Likewise.
4463 (gdbsim_store_register): Likewise.
4464 * remote.c (fetch_register_using_p): Likewise.
4465 (send_g_packet): Likewise.
4466 (remote_prepare_to_store): Likewise.
4467 (store_registers_using_G): Likewise.
4468 * reverse.c (save_bookmark_command): Likewise.
4469 (goto_bookmark_command): Likewise.
4470 * rs6000-aix-tdep.c (branch_dest): Likewise.
4471 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4472 (fetch_register): Likewise.
4473 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4474 (ppc_collect_reg): Likewise.
4475 (ppc_collect_gregset): Likewise.
4476 (ppc_collect_fpregset): Likewise.
4477 (ppc_collect_vsxregset): Likewise.
4478 (ppc_collect_vrregset): Likewise.
4479 (ppc_displaced_step_hw_singlestep): Likewise.
4480 (rs6000_pseudo_register_read): Likewise.
4481 (rs6000_pseudo_register_write): Likewise.
4482 * s390-linux-nat.c (supply_gregset): Likewise.
4483 (fill_gregset): Likewise.
4484 (s390_linux_fetch_inferior_registers): Likewise.
4485 * s390-linux-tdep.c (s390_write_pc): Likewise.
4486 (s390_software_single_step): Likewise.
4487 (s390_all_but_pc_registers_record): Likewise.
4488 (s390_linux_syscall_record): Likewise.
4489 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4490 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4491 (shnbsd_store_inferior_registers): Likewise.
4492 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4493 (sh_extract_return_value_fpu): Likewise.
4494 (sh_store_return_value_nofpu): Likewise.
4495 (sh_corefile_supply_regset): Likewise.
4496 (sh_corefile_collect_regset): Likewise.
4497 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4498 (sh64_store_return_value): Likewise.
4499 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4500 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4501 (sparc_store_inferior_registers): Likewise.
4502 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4503 (sparc_ravenscar_prepare_to_store): Likewise.
4504 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4505 (sparc_analyze_control_transfer): Likewise.
4506 (sparc_step_trap): Likewise.
4507 (sparc_software_single_step): Likewise.
4508 (sparc32_gdbarch_init): Likewise.
4509 (sparc_supply_rwindow): Likewise.
4510 (sparc_collect_rwindow): Likewise.
4511 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4512 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4513 (sparc64nbsd_collect_gregset): Likewise.
4514 (sparc64nbsd_supply_fpregset): Likewise.
4515 (sparc64nbsd_collect_fpregset): Likewise.
4516 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4517 (sparc64_supply_gregset): Likewise.
4518 (sparc64_collect_gregset): Likewise.
4519 (sparc64_supply_fpregset): Likewise.
4520 (sparc64_collect_fpregset): Likewise.
4521 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4522 * spu-tdep.c (spu_unwind_sp): Likewise.
4523 (spu2ppu_prev_register): Likewise.
4524 (spu_memory_remove_breakpoint): Likewise.
4525 * stack.c (return_command): Likewise.
4526 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4527 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4528 * tracefile.c (trace_save_ctf): Likewise.
4529 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4530 (do_windows_store_inferior_registers): Likewise.
4531 (windows_resume): Likewise.
4532 * xtensa-linux-nat.c (fill_gregset): Likewise.
4533 (supply_gregset_reg): Likewise.
4534 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4535 (xtensa_register_read_masked): Likewise.
4536 (xtensa_supply_gregset): Likewise.
4537 (xtensa_extract_return_value): Likewise.
4538 (xtensa_store_return_value): Likewise.
4539
edd079d9
UW
45402017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4541
4542 * doublest.c (floatformat_from_string): New function.
4543 * doublest.h (floatformat_from_string): Add prototype.
4544
4545 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4546 (OP_FLOAT): ... this.
4547 * expression.h: Do not include "doublest.h".
4548 (union exp_element): Replace doubleconst and decfloatconst by
4549 new element floatconst.
4550 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4551 (ada_evaluate_subexp): Likewise.
4552 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4553 OP_DOUBLE and OP_DECFLOAT.
4554 * expprint.c (print_subexp_standard): Likewise.
4555 (dump_subexp_body_standard): Likewise.
4556 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4557
4558 * parse.c: Include "dfp.h".
4559 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4560 (write_exp_elt_floatcst): New function.
4561 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4562 and OP_DECFLOAT.
4563 (operator_check_standard): Likewise.
4564 (parse_float): Do not accept suffix. Take type as input. Return bool.
4565 Return target format buffer instead of host DOUBLEST.
4566 Use floatformat_from_string and decimal_from_string to parse
4567 either binary or decimal floating-point types.
4568 (parse_c_float): Remove.
4569 * parser-defs.h: Do not include "doublest.h".
4570 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4571 (write_exp_elt_floatcst): Add prototype.
4572 (parse_float): Update prototype.
4573 (parse_c_float): Remove.
4574
4575 * c-exp.y: Do not include "dfp.h".
4576 (typed_val_float): Use byte buffer instead of DOUBLEST.
4577 (typed_val_decfloat): Remove.
4578 (DECFLOAT): Remove.
4579 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4580 (parse_number): Update to new parse_float interface.
4581 Parse suffixes and determine type before calling parse_float.
4582 Handle decimal and binary FP types the same way.
4583
4584 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4585 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4586 (parse_number): Update to new parse_float interface.
4587 Parse suffixes and determine type before calling parse_float.
4588
4589 * f-exp.y: Replace dval by typed_val_float.
4590 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4591 (parse_number): Use parse_float instead of atof.
4592
4593 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4594 (parse_go_float): Remove.
4595 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4596 (parse_number): Call parse_float instead of parse_go_float.
4597 Parse suffixes and determine type before calling parse_float.
4598
4599 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4600 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4601 (parse_number): Update to new parse_float interface.
4602 Parse suffixes and determine type before calling parse_float.
4603
4604 * m2-exp.y: Replace dval by byte buffer val.
4605 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4606 (parse_number): Call parse_float instead of atof.
4607
4608 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4609 (lex_number): Call parse_float instead of strtod.
4610 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4611 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4612 Use write_exp_elt_floatcst.
4613 (unit_testing): Remove static variable.
4614 (rust_type): Do not check unit_testing.
4615 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4616
4617 * ada-exp.y (type_float, type_double): Remove.
4618 (typed_val_float): Use byte buffer instead of DOUBLEST.
4619 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4620 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4621
cc628f3d
AH
46222017-10-25 Alan Hayward <alan.hayward@arm.com>
4623
4624 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4625 * arch/aarch64.h: New file.
4626
09a7c6aa
UW
46272017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4628
4629 * dfp.h (decimal_from_string): Use const reference for argument.
4630 * dfp.c (decimal_from_string): Likewise.
4631
8ba0dd51
UW
46322017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4633
4634 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4635 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4636 * mips-tdep.c (mips_print_fp_register): Likewise.
4637
16e812b2
UW
46382017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4639
4640 * common/format.h (enum argclass): Replace decfloat_arg by
4641 dec32float_arg, dec64float_arg, and dec128float_arg.
4642 * common/format.c (parse_format_string): Update to return
4643 new decimal float argument classes.
4644
4645 * printcmd.c (printf_decfloat): Rename to ...
4646 (printf_floating): ... this. Add argclass argument, and use it
4647 instead of parsing the format string again. Add support for
4648 binary floating-point values, using floatformat_to_string.
4649 Convert value to the target format if it doesn't already match.
4650 (ui_printf): Call printf_floating instead of printf_decfloat,
4651 also for double_arg / long_double_arg. Pass argclass.
4652
4653 * dfp.c (decimal_to_string): Add format string argument.
4654 * dfp.h (decimal_to_string): Likewise.
4655
4656 * doublest.c (floatformat_to_string): Add format string argument.
4657 * doublest.h (floatformat_to_string): Likewise.
4658
fdf0cbc2
UW
46592017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4660
4661 * doublest.c (floatformat_precision): New routine.
4662 (floatformat_to_string): Likewise.
4663 * doublest.c (floatformat_to_string): Add prototype.
4664
4665 * printcmd.c (print_scalar_formatted): Only call print_floating
4666 on floating-point types.
4667 * valprint.c: Do not include "floatformat.h".
4668 (generic_val_print_decfloat): Remove.
4669 (generic_val_print): Call generic_val_print_float for both
4670 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4671 (print_floating): Use floatformat_to_string. Handle decimal float.
4672 (print_decimal_floating): Remove, merge into floatformat_to_string.
4673 * value.h (print_decimal_floating): Remove.
4674
4675 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4676
5033013f
UW
46772017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4678
4679 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4680
a664f67e
SM
46812017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4682
4683 * memattr.h: Don't include vec.h.
4684 (struct mem_attrib): Initialize fields.
4685 <unknown>: New static method.
4686 (struct mem_region): Add constructors, operator<, initialize
4687 fields.
4688 * memattr.c: Include algorithm.
4689 (default_mem_attrib, unknown_mem_attrib): Remove.
4690 (user_mem_region_list): New global.
4691 (target_mem_region_list, mem_region_list): Change type to
4692 std::vector<mem_region>.
4693 (mem_use_target): Now a function.
4694 (target_mem_regions_valid): Change type to bool.
4695 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4696 (require_user_regions): Adjust.
4697 (require_target_regions): Adjust.
4698 (create_mem_region): Adjust.
4699 (lookup_mem_region): Adjust.
4700 (invalidate_target_mem_regions): Adjust.
4701 (mem_clear): Rename to...
4702 (user_mem_clear): ... this, and adjust.
4703 (mem_command): Adjust.
4704 (info_mem_command): Adjust.
4705 (mem_enable, enable_mem_command, mem_disable,
4706 disable_mem_command): Adjust.
4707 (mem_delete): Adjust.
4708 (delete_mem_command): Adjust.
4709 * memory-map.h (parse_memory_map): Return an std::vector.
4710 * memory-map.c (parse_memory_map): Likewise.
4711 (struct memory_map_parsing_data): Add constructor.
4712 <memory_map>: Point to std::vector.
4713 (memory_map_start_memory): Adjust.
4714 (memory_map_end_memory): Adjust.
4715 (memory_map_end_property): Adjust.
4716 (clear_result): Remove.
4717 * remote.c (remote_memory_map): Return an std::vector.
4718 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4719 Remove.
4720 (target_debug_print_mem_region_vector): New.
4721 * target-delegates.c: Regenerate.
4722 * target.h (mem_region_vector): New typedef.
4723 (to_memory_map): Return mem_region_vector.
4724 (target_memory_map): Return an std::vector.
4725 * target.c (target_memory_map): Return an std::vector.
4726 (flash_erase_command): Adjust.
4727
6e17c565
SM
47282017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4729
4730 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4731 Change type to std::string.
4732 (memory_map_start_property): Adjust.
4733 (memory_map_end_property): Adjust.
4734
cfba9872
SM
47352017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4736
4737 * infrun.h: Include common/byte-vector.h.
4738 (struct displaced_step_closure): New struct.
4739 (struct buf_displaced_step_closure): New struct.
4740 * infrun.c (displaced_step_closure::~displaced_step_closure):
4741 Provide default implementation.
4742 (displaced_step_clear): Deallocate step closure with delete.
4743 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4744 (aarch64_displaced_step_closure): ... this, extend
4745 displaced_step_closure.
4746 (aarch64_displaced_step_data) <dsc>: Change type to
4747 aarch64_displaced_step_closure.
4748 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4749 unique_ptr.
4750 (aarch64_displaced_step_fixup): Add cast for displaced step
4751 closure.
4752 * amd64-tdep.c (displaced_step_closure): Rename to ...
4753 (amd64_displaced_step_closure): ... this, extend
4754 displaced_step_closure.
4755 <insn_buf>: Change type to std::vector<gdb_byte>.
4756 <max_len>: Remove.
4757 (fixup_riprel): Change type of DSC parameter, adjust to type
4758 change of insn_buf.
4759 (fixup_displaced_copy): Change type of DSC parameter.
4760 (amd64_displaced_step_copy_insn): Instantiate
4761 amd64_displaced_step_closure.
4762 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4763 to type change of insn_buf.
4764 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4765 parameter DSC.
4766 (arm_linux_copy_svc): Likewise.
4767 (cleanup_kernel_helper_return): Likewise.
4768 (arm_catch_kernel_helper_return): Likewise.
4769 (arm_linux_displaced_step_copy_insn): Instantiate
4770 arm_displaced_step_closure.
4771 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4772 (displaced_read_reg): Change type of parameter DSC.
4773 (branch_write_pc): Likewise.
4774 (load_write_pc): Likewise.
4775 (alu_write_pc): Likewise.
4776 (displaced_write_reg): Likewise.
4777 (arm_copy_unmodified): Likewise.
4778 (thumb_copy_unmodified_32bit): Likewise.
4779 (thumb_copy_unmodified_16bit): Likewise.
4780 (cleanup_preload): Likewise.
4781 (install_preload): Likewise.
4782 (arm_copy_preload): Likewise.
4783 (thumb2_copy_preload): Likewise.
4784 (install_preload_reg): Likewise.
4785 (arm_copy_preload_reg): Likewise.
4786 (cleanup_copro_load_store): Likewise.
4787 (install_copro_load_store): Likewise.
4788 (arm_copy_copro_load_store) Likewise.
4789 (thumb2_copy_copro_load_store): Likewise.
4790 (cleanup_branch): Likewise.
4791 (install_b_bl_blx): Likewise.
4792 (arm_copy_b_bl_blx): Likewise.
4793 (thumb2_copy_b_bl_blx): Likewise.
4794 (thumb_copy_b): Likewise.
4795 (install_bx_blx_reg): Likewise.
4796 (arm_copy_bx_blx_reg): Likewise.
4797 (thumb_copy_bx_blx_reg): Likewise.
4798 (cleanup_alu_imm): Likewise.
4799 (arm_copy_alu_imm): Likewise.
4800 (thumb2_copy_alu_imm): Likewise.
4801 (cleanup_alu_reg): Likewise.
4802 (install_alu_reg): Likewise.
4803 (arm_copy_alu_reg): Likewise.
4804 (thumb_copy_alu_reg): Likewise.
4805 (cleanup_alu_shifted_reg): Likewise.
4806 (install_alu_shifted_reg): Likewise.
4807 (arm_copy_alu_shifted_reg): Likewise.
4808 (cleanup_load): Likewise.
4809 (cleanup_store): Likewise.
4810 (arm_copy_extra_ld_st): Likewise.
4811 (install_load_store): Likewise.
4812 (thumb2_copy_load_literal): Likewise.
4813 (thumb2_copy_load_reg_imm): Likewise.
4814 (arm_copy_ldr_str_ldrb_strb): Likewise.
4815 (cleanup_block_load_all): Likewise.
4816 (cleanup_block_store_pc): Likewise.
4817 (cleanup_block_load_pc): Likewise.
4818 (arm_copy_block_xfer): Likewise.
4819 (thumb2_copy_block_xfer): Likewise.
4820 (cleanup_svc): Likewise.
4821 (install_svc): Likewise.
4822 (arm_copy_svc): Likewise.
4823 (thumb_copy_svc): Likewise.
4824 (arm_copy_undef): Likewise.
4825 (thumb_32bit_copy_undef): Likewise.
4826 (arm_copy_unpred): Likewise.
4827 (arm_decode_misc_memhint_neon): Likewise.
4828 (arm_decode_unconditional): Likewise.
4829 (arm_decode_miscellaneous): Likewise.
4830 (arm_decode_dp_misc): Likewise.
4831 (arm_decode_ld_st_word_ubyte): Likewise.
4832 (arm_decode_media): Likewise.
4833 (arm_decode_b_bl_ldmstm): Likewise.
4834 (arm_decode_ext_reg_ld_st): Likewise.
4835 (thumb2_decode_dp_shift_reg): Likewise.
4836 (thumb2_decode_ext_reg_ld_st): Likewise.
4837 (arm_decode_svc_copro): Likewise.
4838 (thumb2_decode_svc_copro): Likewise.
4839 (install_pc_relative): Likewise.
4840 (thumb_copy_pc_relative_16bit): Likewise.
4841 (thumb_decode_pc_relative_16bit): Likewise.
4842 (thumb_copy_pc_relative_32bit): Likewise.
4843 (thumb_copy_16bit_ldr_literal): Likewise.
4844 (thumb_copy_cbnz_cbz): Likewise.
4845 (thumb2_copy_table_branch): Likewise.
4846 (cleanup_pop_pc_16bit_all): Likewise.
4847 (thumb_copy_pop_pc_16bit): Likewise.
4848 (thumb_process_displaced_16bit_insn): Likewise.
4849 (decode_thumb_32bit_ld_mem_hints): Likewise.
4850 (thumb_process_displaced_32bit_insn): Likewise.
4851 (thumb_process_displaced_insn): Likewise.
4852 (arm_process_displaced_insn): Likewise.
4853 (arm_displaced_init_closure): Likewise.
4854 (arm_displaced_step_fixup): Add cast for closure.
4855 * arm-tdep.h: Include infrun.h.
4856 (displaced_step_closure): Rename to ...
4857 (arm_displaced_step_closure): ... this, extend
4858 displaced_step_closure.
4859 <u::svc::copy_svc_os>: Change type of parameter DSC.
4860 <cleanup>: Likewise.
4861 (arm_process_displaced_insn): Likewise.
4862 (arm_displaced_init_closure): Likewise.
4863 (displaced_read_reg): Likewise.
4864 (displaced_write_reg): Likewise.
4865 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4866 Adjust.
4867 * i386-tdep.h: Include infrun.h.
4868 (i386_displaced_step_closure): New typedef.
4869 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4870 i386_displaced_step_closure.
4871 (i386_displaced_step_fixup): Adjust.
4872 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4873 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4874 and unique_ptr.
4875 (ppc_displaced_step_fixup): Adjust.
4876 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4877 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4878 and unique_ptr.
4879 (s390_displaced_step_fixup): Adjust.
4880
b392b304
SM
48812017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4882
4883 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4884 Remove declarations.
4885
d5833c62
TT
48862017-10-20 Tom Tromey <tom@tromey.com>
4887
4888 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4889 std::vector.
4890 (gdb_bfd_record_inclusion): Update.
4891 (bfdp): Remove typedef.
4892
06d5bbc8
TT
48932017-10-20 Tom Tromey <tom@tromey.com>
4894
4895 * gdb_bfd.c (gdb_bfd_ref): Use new.
4896 (struct gdb_bfd_data): Add constructor, destructor, and member
4897 initializers.
4898 (gdb_bfd_unref): Use delete.
4899
2712ce2e
TT
49002017-10-20 Tom Tromey <tom@tromey.com>
4901
4902 * exec.c (exec_file_attach): Use new_bfd_ref.
4903 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4904 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4905 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4906 new_bfd_ref.
4907 * gdb_bfd.h (new_bfd_ref): New function.
4908
fcc8fb2f
PA
49092017-10-20 Pedro Alves <palves@redhat.com>
4910
4911 * main.c (captured_command_loop): Add attribute noinline.
4912
4c2287b0
SM
49132017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4914
4915 * interps.c (struct interp_factory): Add constructor.
4916 (interp_factory_p): Remove typedef.
4917 (DEF_VEC_P(interp_factory_p)): Remove.
4918 (interpreter_factories): Change type to std::vector.
4919 (interp_factory_register): Adjust.
4920 (interp_lookup): Adjust.
4921 (interpreter_completer): Adjust.
4922
3d415c26
TT
49232017-10-19 Tom Tromey <tom@tromey.com>
4924
4925 * break-catch-syscall.c (catch_syscall_completer): Use
4926 std::string, gdb::unique_xmalloc_ptr.
4927
395423c4
TT
49282017-10-19 Tom Tromey <tom@tromey.com>
4929
4930 * infcall.c (call_function_by_hand_dummy): Use std::string.
4931
54f70bc1
TT
49322017-10-19 Tom Tromey <tom@tromey.com>
4933
4934 * mi/mi-main.c (mi_cmd_execute): Update.
4935 * top.h (prepare_execute_command): Return scoped_value_mark.
4936 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4937 Add move constructor.
4938 * top.c (prepare_execute_command): Return scoped_value_mark.
4939 (execute_command): Update.
4940
63929e84
PA
49412017-10-19 Pedro Alves <palves@redhat.com>
4942
4943 * xml-support.c (xml_fetch_content_from_file): Check fread's
4944 return.
4945
a75868f5
PA
49462017-10-19 Pedro Alves <palves@redhat.com>
4947
4948 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4949 async.
4950 (handle_error_fd): New function.
4951 (ser_base_async): Add/delete an event loop file handler for
4952 error_fd.
4953
2edf834e
PA
49542017-10-19 Pedro Alves <palves@redhat.com>
4955
4956 * xml-support.c (xml_fetch_content_from_file): Don't read in
4957 chunks. Instead use fseek to determine the file's size, and read
4958 it in one go.
4959
c8ba13ad
KS
49602017-11-18 Keith Seitz <keiths@redhat.com>
4961
4962 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4963 types.
4964 Add whitespace to front of type name.
4965
37534686
KS
49662017-10-18 Keith Seitz <keiths@redhat.com>
4967
4968 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4969 DW_AT_accessibility.
4970
28c7c158
YQ
49712017-10-18 Yao Qi <yao.qi@linaro.org>
4972
4973 * features/tic6x-c62x-linux.c: Remove.
4974
30f0b101
TT
49752017-10-17 Tom Tromey <tom@tromey.com>
4976
4977 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4978 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4979 (do_mixed_source_and_assembly): Likewise.
4980
57e12da9
TT
49812017-10-17 Tom Tromey <tom@tromey.com>
4982
4983 * regcache.c (regcache::xfer_part): Remove assertion.
4984
7b700999
PA
49852017-10-17 Pedro Alves <palves@redhat.com>
4986
4987 * xml-support.c (xml_fetch_content_from_file): Call
4988 unique_ptr::release() instead unique_ptr::get() when passing
4989 through xrealloc.
4990
d3037ba6
YQ
49912017-10-17 Yao Qi <yao.qi@linaro.org>
4992
4993 * regcache.c (regcache::xfer_part): Remove parameters read and
4994 write, add parameter is_raw. All callers are updated.
4995
83d5a34d
KS
49962017-10-16 Keith Seitz <keiths@redhat.com>
4997
4998 * c-typeprint.c (enum access_specifier): Moved here from
4999 c_type_print_base.
5000 (output_access_specifier): New function.
5001 (c_type_print_base): Consider typedefs when assessing
5002 whether access labels are needed.
5003 Use output_access_specifier as needed.
5004 Output access specifier for typedefs, if needed.
5005 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
5006 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
5007 fields.
5008 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
5009 accessor macros.
5010
87028b87
TT
50112017-10-16 Tom Tromey <tom@tromey.com>
5012
5013 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
5014 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
5015 * target.c (target_fileio_read_stralloc): Update.
5016 * sparc64-tdep.c (adi_is_addr_mapped): Update.
5017 * target.h (target_fileio_read_stralloc): Return
5018 unique_xmalloc_ptr.
5019
b7b030ad
TT
50202017-10-16 Tom Tromey <tom@tromey.com>
5021
5022 * xml-syscall.c (xml_init_syscalls_info): Update.
5023 * xml-support.c (xinclude_start_include): Update.
5024 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
5025 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
5026 (xml_fetch_content_from_file): Likewise.
5027 * osdata.c (get_osdata): Update.
5028 * target.h (target_read_stralloc, target_get_osdata): Return
5029 unique_xmalloc_ptr.
5030 * solib-aix.c (solib_aix_get_library_list): Update.
5031 * solib-target.c (solib_target_current_sos): Update.
5032 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
5033 * xml-tdesc.c (fetch_available_features_from_target): Update.
5034 (target_fetch_description_xml): Update.
5035 (file_read_description_xml): Update.
5036 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
5037 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
5038 (remote_pid_to_exec_file): Update.
5039 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
5040 (target_get_osdata): Likewise.
5041
b80406ac
TT
50422017-10-16 Tom Tromey <tom@tromey.com>
5043
5044 * remote.c (remote_register_number_and_offset): Use std::vector.
5045 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
5046 (putpkt_binary): Use gdb::def_vector.
5047 (compare_sections_command): Use gdb::byte_vector.
5048
a90ecff8
TT
50492017-10-16 Tom Tromey <tom@tromey.com>
5050
5051 * ppc-linux-nat.c (hwdebug_insert_point): Use
5052 gdb::unique_xmalloc_ptr, XDUP.
5053
2dc0e219
TT
50542017-10-16 Tom Tromey <tom@tromey.com>
5055
5056 * probe.c (parse_probes): Use std::string.
5057 (info_probes_for_ops, enable_probes_command)
5058 (disable_probes_command): Remove cleanups.
5059
b05628f0
TT
50602017-10-16 Tom Tromey <tom@tromey.com>
5061
5062 * buildsym.c (block_compar): Remove.
5063 (end_symtab_get_static_block): Use std::vector.
5064
a79b1bc6
SM
50652017-10-16 Simon Marchi <simon.marchi@ericsson.com>
5066
5067 * memrange.h (struct mem_range): Define operator< and operator==.
5068 (mem_range_s): Remove.
5069 (DEF_VEC_O (mem_range_s)): Remove.
5070 (normalize_mem_ranges): Change parameter type to std::vector.
5071 * memrange.c (compare_mem_ranges): Remove.
5072 (normalize_mem_ranges): Change parameter type to std::vector,
5073 adjust to vector change.
5074 * exec.c (section_table_available_memory): Return vector, remove
5075 parameter.
5076 (section_table_read_available_memory): Adjust to std::vector
5077 change.
5078 * remote.c (remote_read_bytes): Adjust to std::vector
5079 change.
5080 * tracepoint.h (traceframe_available_memory): Change parameter
5081 type to std::vector.
5082 * tracepoint.c (traceframe_available_memory): Change parameter
5083 type to std::vector, adjust.
5084 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
5085 std::vector change.
5086 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5087 unittests/memrange-selftests.c.
5088 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
5089 * gdb/unittests/memrange-selftests.c: New file.
5090
63f0e930
PA
50912017-10-16 Pedro Alves <palves@redhat.com>
5092
5093 * elfread.c (probe_key_free): Rename range-for variable.
5094 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
5095 (find_probe_by_pc, collect_probes): Rename range-for variable.
5096
c40c7bfc
YQ
50972017-10-16 Yao Qi <yao.qi@linaro.org>
5098
5099 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
5100 * features/tic6x-c62x.c: Remove.
5101 * features/tic6x-c64x-linux.c: Remove.
5102 * features/tic6x-c64x.c: Remove.
5103 * features/tic6x-c64xp-linux.c: Remove.
5104 * features/tic6x-c64xp.c: Remove.
5105 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
5106 initialize_tdesc_tic6x_*_linux functions.
5107 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
5108 initialize_tdesc_tic6x_* functions.
5109
df27ae6a
YQ
51102017-10-16 Yao Qi <yao.qi@linaro.org>
5111
5112 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
5113 tic6x-c62x.
5114 * regformats/tic6x-c62x.dat: Remove.
5115 * regformats/tic6x-c64x.dat: Remove.
5116 * regformats/tic6x-c64xp.dat: Remove.
5117
86766165
SM
51182017-10-15 Simon Marchi <simon.marchi@ericsson.com>
5119
5120 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5121 (the !HAVE_LIBEXPAT version).
5122
824dfcc3
SM
51232017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5124
5125 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5126 const.
5127
2098b393
SM
51282017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5129
5130 * target.h: Include tracepoint.h.
5131 (enum trace_find_type): Move to tracepoint.h.
5132 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5133 * tracepoint.h: Don't include target.h
5134 (enum trace_find_type): Move from target.h.
5135 (parse_traceframe_info): Return a unique ptr.
5136 * tracepoint.c (current_traceframe_info): Change type to unique
5137 ptr.
5138 (free_traceframe_info): Remove.
5139 (clear_traceframe_info): Don't manually free
5140 current_traceframe_info.
5141 (free_result): Remove.
5142 (parse_traceframe_info): Return a unique ptr.
5143 (get_traceframe_info): Adjust to unique ptr.
5144 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5145 * remote.c (remote_traceframe_info): Return a unique ptr.
5146 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5147 ptr.
5148 * target-debug.h (target_debug_print_traceframe_info_up): New
5149 macro.
5150 * target-delegates.c: Regenerate.
5151
4cdd21a8
SM
51522017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5153
5154 * memrange.h (struct mem_range): Add constructors.
5155 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5156 std::vector<mem_range>.
5157 * tracepoint.c (free_traceframe_info): Don't manually free
5158 vector.
5159 (traceframe_info_start_memory): Adjust to vector change.
5160 (traceframe_available_memory): Likewise.
5161 * tracefile-tfile.c (build_traceframe_info): Likewise.
5162 * ctf.c (ctf_traceframe_info): Likewise.
5163
d0d292a2
SM
51642017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5165
5166 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5167 std::vector<int>.
5168 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5169 (traceframe_info_start_tvar): Adjust to vector change.
5170 (parse_traceframe_info): Allocate with new.
5171 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5172 vector change.
5173 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5174 change.
5175 tfile_traceframe_info): Allocate with new.
5176 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5177 change.
5178
8d3c73ef
SM
51792017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5180
5181 * tracepoint.c (traceframe_info): Rename to...
5182 (current_traceframe_info): ...this.
5183 (clear_traceframe_info): Adjust.
5184 (get_traceframe_info): Adjust.
5185
b129dcac
SM
51862017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5187
5188 * nat/linux-osdata.c: Include algorithm.
5189 (compare_processes): Remove.
5190 (struct pid_pgid_entry): New struct.
5191 (linux_xfer_osdata_processgroups): Use std::vector instead of
5192 XNEWVEC.
5193
af5bf4ad
SM
51942017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5195
5196 * objfiles.h: Don't include symfile.h.
5197 (struct partial_symbol): Remove forward-declaration.
5198 (struct objfile) <global_psymbols, static_psymbols>: Change type
5199 to std::vector<partial_symbol *>.
5200 * objfiles.c (objfile::objfile): Don't memset those fields.
5201 (objfile::~objfile): Don't free those fields.
5202 * psympriv.h (struct psymbol_allocation_list): Remove
5203 forward-declaration.
5204 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5205 to std::vector.
5206 (start_psymtab_common): Change parameters to std::vector.
5207 * psymtab.c: Include algorithm.
5208 (require_partial_symbols): Call shrink_to_fit.
5209 (find_pc_sect_psymbol): Adjust to vector change.
5210 (match_partial_symbol): Likewise.
5211 (lookup_partial_symbol): Likewise.
5212 (psym_relocate): Likewise.
5213 (dump_psymtab): Likewise.
5214 (recursively_search_psymtabs): Likewise.
5215 (compare_psymbols): Remove.
5216 (sort_pst_symbols): Adjust to vector change.
5217 (start_psymtab_common): Likewise.
5218 (end_psymtab_common): Likewise.
5219 (psymbol_bcache_full): De-constify return value.
5220 (add_psymbol_to_bcache): Likewise.
5221 (extend_psymbol_list): Remove.
5222 (append_psymbol_to_list): Adjust to vector change.
5223 (add_psymbol_to_list): Likewise.
5224 (init_psymbol_list): Likewise.
5225 (maintenance_info_psymtabs): Likewise.
5226 (maintenance_check_psymtabs): Likewise.
5227 * symfile.h (struct psymbol_allocation_list): Remove.
5228 * symfile.c (reread_symbols): Adjust to vector change.
5229 * dbxread.c (start_psymtab): Change type of parameters.
5230 (dbx_symfile_read): Adjust to vector change.
5231 (read_dbx_symtab): Likewise.
5232 (start_psymtab): Change type of parameters.
5233 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5234 (create_partial_symtab): Likewise.
5235 (add_partial_symbol): Likewise.
5236 (write_one_signatured_type): Likewise.
5237 (recursively_write_psymbols): Likewise.
5238 * mdebugread.c (parse_partial_symbols): Likewise.
5239 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5240 (scan_xcoff_symtab): Adjust to vector change.
5241 (xcoff_initial_scan): Likewise.
5242
3ec5942f
SM
52432017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5244
5245 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5246
2399fe6a
YQ
52472017-10-13 Yao Qi <yao.qi@linaro.org>
5248
5249 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5250 Remove s390x-*-expedite, add s390x-expedite.
5251
4bf3f4a8
YQ
52522017-10-13 Yao Qi <yao.qi@linaro.org>
5253
5254 * features/s390-gs-linux64.c: Regenerated.
5255 * features/s390x-gs-linux64.c: Regenerated.
5256
9e86da07
TT
52572017-10-13 Tom Tromey <tom@tromey.com>
5258
5259 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5260 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5261 delete.
5262 * symfile.c (symbol_file_add_with_addrs): Use new.
5263 (symbol_file_add_separate): Update comment.
5264 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5265 * jit.c (jit_object_close_impl): Use new.
5266 (jit_unregister_code): Use delete.
5267 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5268 (~objfile): Rename from free_objfile.
5269 (free_objfile_separate_debug, do_free_objfile_cleanup)
5270 (free_all_objfiles, objfile_purge_solibs): Use delete.
5271 * objfiles.h (struct objfile): Add constructor and destructor.
5272 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5273 (allocate_objfile, free_objfile): Don't declare.
5274 (struct objstats): Add initializers.
5275
c2508e90
SM
52762017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5277
5278 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5279 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5280 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5281 * gdbarch.h: Regenerate.
5282 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5283 Adjust comment.
5284 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5285 (i386_displaced_step_fixup): Adjust comment.
5286 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5287
a900ff72
TT
52882017-10-12 Tom Tromey <tom@tromey.com>
5289
5290 * prologue-value.h (pv_area::store_would_trash): Return bool.
5291 (pv_area::find_reg): Likewise.
5292 * prologue-value.c (pv_area::store_would_trash): Return bool.
5293 (pv_area::find_reg): Likewise.
5294
f7b7ed97
TT
52952017-10-12 Tom Tromey <tom@tromey.com>
5296
5297 * s390-linux-tdep.c (s390_store, s390_load)
5298 (s390_check_for_saved, s390_analyze_prologue): Update.
5299 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5300 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5301 * prologue-value.h (class pv_area): Move from prologue-value.c.
5302 Change names of members. Add constructor, destructor, member
5303 functions.
5304 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5305 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5306 (pv_area_fetch, pv_area_scan): Don't declare.
5307 * prologue-value.c (struct pv_area::area_entry): Now member of
5308 pv_area.
5309 (struct pv_area): Move to prologue-value.h.
5310 (pv_area::pv_area): Rename from make_pv_area.
5311 (pv_area::~pv_area): Rename from free_pv_area.
5312 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5313 (clear_entries, find_entry, overlaps, store_would_trash, store)
5314 (fetch, find_reg, scan): Now member of pv_area.
5315 Remove "area" argument. Update.
5316 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5317 Update.
5318 * mn10300-tdep.c (push_reg, check_for_saved)
5319 (mn10300_analyze_prologue): Update.
5320 * mep-tdep.c (is_arg_spill, check_for_saved)
5321 (mep_analyze_prologue): Update.
5322 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5323 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5324 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5325 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5326 Update.
5327 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5328 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5329
466eecee
SM
53302017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5331
5332 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5333 * linux-nat.c (linux_nat_delete_thread): New variable.
5334 (lwp_free): Invoke linux_nat_delete_thread if set.
5335 (linux_nat_set_delete_thread): New function.
5336 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5337 thread delete callback.
5338 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5339 (_initialize_arm_linux_nat): Assign thread delete callback.
5340 * s390-linux-nat.c (s390_delete_thread): New function.
5341 (_initialize_s390_nat): Assign thread delete callback.
5342 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5343 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5344 function.
5345 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5346 declaration.
5347 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5348 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5349
f71c8822
TT
53502017-10-09 Tom Tromey <tom@tromey.com>
5351
5352 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5353 std::string.
5354 * tui/tui-layout.c (enum tui_status): Use std::string.
5355
981a3fb3
TT
53562017-10-11 Tom Tromey <tom@tromey.com>
5357
5358 * gdbthread.h (thread_command): Constify.
5359 * inferior.h (detach_command): Constify.
5360 * top.h (set_history, show_history): Constify.
5361 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5362 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5363 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5364 * printcmd.c (set_command): Constify.
5365 (non_const_set_command): New function.
5366 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5367 * breakpoint.c (enable_command, disable_command, delete_command)
5368 (catch_command, tcatch_command, set_breakpoint_cmd)
5369 (show_breakpoint_cmd): Constify.
5370 * macrocmd.c (macro_command): Constify.
5371 * infcmd.c (unset_command, kill_command, detach_command)
5372 (info_proc_cmd): Constify.
5373 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5374 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5375 (info_auto_load_cmd): Constify.
5376 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5377 (unset_tdesc_cmd): Constify.
5378 * ada-lang.c (set_ada_command, show_ada_command)
5379 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5380 * guile/guile.c (set_guile_command, show_guile_command)
5381 (info_guile_command): Constify.
5382 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5383 Constify.
5384 * skip.c (skip_command): Constify.
5385 * compile/compile.c (_initialize_compile): Constify.
5386 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5387 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5388 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5389 (maint_btrace_pt_show_cmd): Constify.
5390 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5391 Constify.
5392 * python/python.c (user_show_python, user_set_python): Constify.
5393 * mips-tdep.c (set_mips_command, show_mips_command)
5394 (set_mipsfpu_command): Constify.
5395 * record-btrace.c (cmd_record_btrace_start)
5396 (cmd_set_record_btrace, cmd_show_record_btrace)
5397 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5398 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5399 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5400 Constify.
5401 * symfile.c (overlay_command): Constify.
5402 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5403 * cli/cli-logging.c (set_logging_command, show_logging_command):
5404 Constify.
5405 * cli/cli-dump.c (dump_command, append_command)
5406 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5407 (tekhex_dump_command, binary_dump_command)
5408 (binary_append_command): Constify.
5409 * cli/cli-decode.c (struct cmd_list_element): Change type of
5410 "fun".
5411 * cli/cli-cmds.c (info_command, show_command, set_debug)
5412 (show_debug): Constify.
5413 (show_command): Add non-const overload.
5414 * top.c (set_history, show_history): Constify.
5415 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5416 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5417 * target.c (target_command): Constify.
5418 * sparc64-tdep.c (info_adi_command): Constify.
5419 * record-full.c (cmd_record_full_start): Constify.
5420 (set_record_full_command): Constify. Fix typo.
5421 (show_record_full_command): Constify.
5422 * thread.c (thread_command, thread_apply_command): Constify.
5423 * memattr.c (dummy_cmd): Constify.
5424 * value.c (function_command): Constify.
5425 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5426 * probe.c (info_probes_command): Constify.
5427 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5428 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5429 (show_thread_cmd, set_thread_default_cmd)
5430 (show_thread_default_cmd): Constify.
5431 (check_empty): Constify.
5432 * tracepoint.c (tfind_command): Constify.
5433 * cp-support.c (maint_cplus_command): Constify.
5434 * windows-tdep.c (info_w32_command): Constify.
5435 * record.c (cmd_record_start, set_record_command)
5436 (show_record_command, info_record_command, cmd_record_goto):
5437 Constify.
5438 * ravenscar-thread.c (set_ravenscar_command)
5439 (show_ravenscar_command): Constify.
5440 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5441 Constify.
5442 (add_internal_problem_command): Remove casts.
5443 * arc-tdep.c (maintenance_print_arc_command): Constify.
5444 * valprint.c (set_print, show_print, set_print_raw)
5445 (show_print_raw): Constify.
5446 * maint.c (maintenance_command, maintenance_info_command)
5447 (maintenance_print_command, maintenance_set_cmd)
5448 (maintenance_show_cmd, set_per_command_cmd)
5449 (show_per_command_cmd, maintenance_check_command): Constify.
5450 * language.c (set_check, show_check): Constify.
5451 * typeprint.c (show_print_type, set_print_type): Constify.
5452 * go32-nat.c (go32_info_dos_command): Constify.
5453
fdf44873
TT
54542017-10-11 Tom Tromey <tom@tromey.com>
5455
5456 * breakpoint.c (prepare_re_set_context): Remove.
5457 (breakpoint_re_set_one): Update. Don't use cleanups.
5458 (breakpoint_re_set): Use scoped_restore, std::string, and
5459 scoped_restore_current_language.
5460
81b1e71c
TT
54612017-10-11 Tom Tromey <tom@tromey.com>
5462
5463 * breakpoint.c (commands_command_1): Use std::string.
5464 (cleanup_executing_breakpoints): Remove.
5465 (bpstat_do_actions_1): Use scoped_restore.
5466 (bpstat_check_watchpoint): Use std::string.
5467 (decode_static_tracepoint_spec): Likewise.
5468 (break_range_command): Likewise.
5469 (watch_command_1): Likewise.
5470 (compare_breakpoints): Change argument types.
5471 (clear_command): Use std::vector.
5472 (cleanup_executing_breakpoints): Remove.
5473 (update_global_location_list): Use unique_xmalloc_ptr.
5474 (strace_command): Remove unused declaration.
5475
4f9d9906
JB
54762017-10-11 John Baldwin <jhb@FreeBSD.org>
5477
5478 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5479 * NEWS: Mention new FreeBSD/arm native configuration.
5480 * configure.host: Add arm*-*-freebsd*.
5481 * configure.nat: Likewise.
5482 * arm-fbsd-nat.c: New file.
5483
7176dfd2
JB
54842017-10-11 John Baldwin <jhb@FreeBSD.org>
5485
5486 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5487 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5488 * NEWS: Mention new FreeBSD/arm target.
5489 * configure.tgt: Add arm*-*-freebsd*.
5490 * arm-fbsd-tdep.c: New file.
5491 * arm-fbsd-tdep.h: New file.
5492
fe220226
MR
54932017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5494
5495 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5496 `gdbarch_elfcore_write_linux_prpsinfo'.
5497 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5498 method.
5499 (elf_internal_linux_prpsinfo): Remove declaration.
5500 * gdbarch.h: Regenerate.
5501 * gdbarch.c: Regenerate.
5502
a2f63b2e
MR
55032017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5504
5505 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5506 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5507
458ca1d0
PA
55082017-10-11 Pedro Alves <palves@redhat.com>
5509
5510 * breakpoint.c (reattach_breakpoints): Delete.
5511 * breakpoint.h (reattach_breakpoints): Delete.
5512
905014d7
SM
55132017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5514
5515 * symfile.c (registered_sym_fns): Make struct, not typedef.
5516 (DEF_VEC_O (registered_sym_fns)): Remove.
5517 (symtab_fns): Change type to std::vector.
5518 (add_symtab_fns): Adjust.
5519 (find_sym_fns): Adjust.
5520
56d704da
AK
55212017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5522
5523 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5524 * arc-tdep.h (arc_arch_is_em): New function.
5525 (arc_arch_is_hs): Likewise.
5526
7fa29be9
EB
55272017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5528
5529 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5530 parentheses in the declaration.
5531 (macro_lookup_inclusion): Likewise.
5532 (macro_lookup_definition): Likewise.
5533 * p-lang.h (pascal_builtin_types): Likewise.
5534 * tui/tui-data.c (tui_win_list): Likewise.
5535 * tui/tui-data.h (tui_win_list): Likewise.
5536 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5537
d9b477e3
KB
55382017-10-11 Mark Rages <markrages@gmail.com>
5539
5540 * target-memory.c (block_boundaries): Fix for block address not
5541 aligned on block size.
5542
65630365
PA
55432017-10-10 Pedro Alves <palves@redhat.com>
5544 Tom Tromey <tom@tromey.com>
5545
5546 * breakpoint.c (struct captured_breakpoint_query_args)
5547 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5548 (print_breakpoint): New.
5549 * breakpoint.h (print_breakpoint): Declare.
5550 * common/common-exceptions.h (enum return_reason): Remove
5551 references to catch_exceptions.
5552 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5553 Delete.
5554 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5555 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5556 * gdb.h: Delete.
5557 * gdbthread.h (thread_select): Declare.
5558 * mi/mi-cmd-break.c: Don't include gdb.h.
5559 (breakpoint_notify): Use print_breakpoint.
5560 * mi/mi-cmd-catch.c: Don't include gdb.h.
5561 * mi/mi-interp.c: Don't include gdb.h.
5562 (mi_print_breakpoint_for_event): New.
5563 (mi_breakpoint_created, mi_breakpoint_modified): Use
5564 mi_print_breakpoint_for_event.
5565 * mi/mi-main.c: Don't include gdb.h.
5566 (mi_cmd_thread_select): Parse the global thread ID here. Use
5567 thread_select instead of gdb_thread_select.
5568 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5569 of using gdb_list_thread_ids.
5570 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5571 FILEIO_ENOSYS here.
5572 (remote_fileio_request): Use TRY/CATCH instead of
5573 catch_exceptions.
5574 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5575 (symbol_file_add_from_memory_wrapper): Delete.
5576 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5577 * thread.c: Don't include gdb.h.
5578 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5579 (thread_alive): Use thread_select.
5580 (do_captured_thread_select): Delete, parts salvaged as ...
5581 (thread_select): ... this new function.
5582 (gdb_thread_select): Delete.
5583
bf469271
PA
55842017-10-10 Pedro Alves <palves@redhat.com>
5585 Tom Tromey <tom@tromey.com>
5586
5587 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5588 and reverse logic.
5589 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5590 No longer macros. Instead ...
5591 (enum wp_check_result): They're now values of this new
5592 enumeration.
5593 (watchpoint_check): Change return type to wp_check_result and
5594 parameter type to bpstat.
5595 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5596 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5597 catch_errors. Reverse logic of watchpoint_check call.
5598 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5599 pointer as parameter.
5600 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5601 * common/common-exceptions.c (throw_exception_sjlj): Update
5602 comments to avoid mentioning catch_errors.
5603 * exceptions.c (catch_errors): Delete.
5604 * exceptions.h: Update comments to avoid mentioning catch_errors.
5605 (catch_errors_ftype, catch_errors): Delete.
5606 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5607 (hook_stop_stub): Delete.
5608 (restore_selected_frame): Change return type to void, and
5609 parameter type to const frame_id &.
5610 (restore_infcall_control_state): Use TRY/CATCH instead of
5611 catch_errors.
5612 * main.c (captured_command_loop): Return void and remove
5613 parameter. Remove references to catch_errors.
5614 (captured_main): Use TRY/CATCH instead of catch_errors.
5615 * objc-lang.c (objc_submethod_helper_data)
5616 (find_objc_msgcall_submethod_helper): Delete.
5617 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5618 catch_errors.
5619 * record-full.c (record_full_message): Return void.
5620 (record_full_message_args, record_full_message_wrapper): Delete.
5621 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5622 instead of catch_errors.
5623 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5624 parameter type to int.
5625 * solib-darwin.c (open_symbol_file_object): Ditto.
5626 * solib-dsbt.c (open_symbol_file_object): Ditto.
5627 * solib-frv.c (open_symbol_file_object): Ditto.
5628 * solib-svr4.c (open_symbol_file_object): Ditto.
5629 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5630 * solib.c (update_solib_list): Use TRY/CATCH instead of
5631 catch_errors.
5632 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5633 Change type.
5634 * symmisc.c (struct print_symbol_args): Remove.
5635 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5636 (print_symbol): Change type.
5637 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5638 and remove parameters.
5639 (catch_errors): New.
5640 (get_windows_debug_event): Adjust.
5641
1a56bfa5
TT
56422017-10-09 Tom Tromey <tom@tromey.com>
5643
5644 * mi/mi-main.c (free_splay_tree): Remove.
5645 (list_available_thread_groups): Use splay_tree_up.
5646 * common/gdb_splay_tree.h: New file.
5647
0c478e2d
TT
56482017-10-09 Tom Tromey <tom@tromey.com>
5649
5650 * mi/mi-main.c (do_nothing): Remove.
5651 (list_available_thread_groups): Update.
5652
cbd2b4e3
PA
56532017-10-09 Pedro Alves <palves@redhat.com>
5654
5655 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5656 reading registers when switching context.
5657
a181c0bf
JB
56582017-10-09 John Baldwin <jhb@FreeBSD.org>
5659
5660 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5661 (fbsd_convert_siginfo): Likewise.
5662 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5663
6e66f753
SM
56642017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5665
5666 * configure.ac (try_guile_versions): Remove guile-2.2.
5667 * configure: Regenerate.
5668
890e9790
TT
56692017-10-09 Tom Tromey <tom@tromey.com>
5670
5671 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5672 (COMPILE.pre): Use $(CXX).
5673
109483d9
PA
56742017-10-09 Pedro Alves <palves@redhat.com>
5675
5676 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5677 Use bool.
5678 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5679 * cp-support.h (cp_remove_params): Now returns a
5680 gdb::unique_xmalloc_ptr.
5681 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5682 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5683 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5684 returning a gdb::unique_xmalloc_ptr.
5685 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5686 * stack.c (find_frame_funname): Adjust to cp_remove_params
5687 returning a gdb::unique_xmalloc_ptr.
5688
791afaa2
TT
56892017-10-08 Tom Tromey <tom@tromey.com>
5690
5691 * dwarf2read.c (dwarf2_get_dwz_file): Use
5692 gdb::unique_xmalloc_ptr.
5693 (find_slot_in_mapped_hash): Likewise.
5694 (dwarf2_physname): Likewise.
5695 (create_dwo_unit_in_dwp_v1): Use std::string.
5696 (create_dwo_unit_in_dwp_v2): Likewise.
5697 (lookup_dwo_cutu): Likewise.
5698 (inherit_abstract_dies): Use std::vector.
5699 (read_array_type): Likewise.
5700 (dwarf_decode_macros): Remove unused declaration.
5701 (unsigned_int_compar): Remove.
5702 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5703 (psymtabs_addrmap_cleanup): Remove.
5704
30a9c02f
TT
57052017-10-08 Tom Tromey <tom@tromey.com>
5706
5707 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5708 * frame.h (frame_cleanup_after_sniffer): Declare.
5709 (frame_prepare_for_sniffer): Return void.
5710 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5711 type of argument.
5712 (frame_prepare_for_sniffer): Return void.
5713
757325a3
TT
57142017-10-08 Tom Tromey <tom@tromey.com>
5715
5716 * utils.h (make_cleanup_value_free): Remove.
5717 * utils.c (do_value_free, struct cleanup): Remove.
5718 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5719 Use gdb_value_up.
5720 * value.h (struct value_deleter): New.
5721 (gdb_value_up): New typedef.
5722
b9c04fb2
TT
57232017-10-08 Tom Tromey <tom@tromey.com>
5724
5725 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5726 (make_cleanup_free_search_symbols): Remove.
5727 (search_symbols): Return std::vector.
5728 (symbol_search::compare_search_syms): Now member of
5729 symbol_search. Change arguments.
5730 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5731 (symtab_symbol_info, rbreak_command): Update.
5732 * symtab.h (struct symbol_search) <next>: Remove.
5733 Add constructors.
5734 (symbol_search::operator<): New function.
5735 (symbol_search::operator==): New function.
5736 (search_symbols): Remove std::vector.
5737 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5738 (symbol_search::compare_search_syms): Declare.
5739
0d28b0a5
YQ
57402017-10-06 Yao Qi <yao.qi@linaro.org>
5741
5742 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5743 arch/aarch64-insn.o.
5744 Remove one rule.
5745 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5746
71917808
YQ
57472017-10-06 Yao Qi <yao.qi@linaro.org>
5748
5749 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5750 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5751 arch/arm-linux.o respectively.
5752 * configure.tgt: Likewise.
5753
2081b2b2
YQ
57542017-10-06 Yao Qi <yao.qi@linaro.org>
5755
5756 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5757 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5758
a1b85d28
PA
57592017-10-06 Pedro Alves <palves@redhat.com>
5760
5761 * windows-nat.c: Include <algorithm>.
5762
d97987e2
YQ
57632017-10-06 Yao Qi <yao.qi@linaro.org>
5764
5765 * configure.tgt (i386_tobjs): New variable.
5766 (amd64_tobjs): New variable.
5767 Set $cpu_obs and $os_obs.
5768
f38307f5
YQ
57692017-10-06 Yao Qi <yao.qi@linaro.org>
5770
5771 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5772 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5773 (clean): Remove object files and dependency files.
5774 (distclean): Remove the directory.
5775 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5776 * configure: Re-generated.
5777 * configure.tgt: Replace amd64.o with arch/amd64.o.
5778
2f924de6
JM
57792017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5780
5781 PR build/22188
5782 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5783 and SETEND.
5784
2fd9d7ca
PA
57852017-10-05 Pedro Alves <palves@redhat.com>
5786
5787 * linux-nat.c (linux_child_follow_fork): When following the parent
5788 and detaching the child, consult the parent thread's architecture
5789 instead of the child's.
5790
d13b8493
UW
57912017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5792
5793 * ax.h: Do not include "doublest.h".
5794 (union agent_val): Remove.
5795
3b4b2f16
UW
57962017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5797
5798 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5799 (decimal_to_string): Return std::string object.
5800 (decimal_from_string): Accept std::string object. Return bool.
5801 (decimal_from_integral, decimal_from_doublest): Remove.
5802 (decimal_from_longest): Add prototype.
5803 (decimal_from_ulongest): Likewise.
5804 (decimal_to_longest): Likewise.
5805 (decimal_from_doublest): Likewise.
5806 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5807 (MAX_DECIMAL_STRING): Move here.
5808 (decimal_to_string): Return std::string object.
5809 (decimal_from_string): Accept std::string object. Return bool.
5810 (decimal_from_integral): Remove, replace by ...
5811 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5812 (decimal_to_longest): New function.
5813 (decimal_from_floating): Remove, replace by ...
5814 (decimal_from_doublest): ... this new function.
5815 (decimal_to_doublest): Update to new decimal_to_string interface.
5816
5817 * value.c (unpack_long): Use decimal_to_longest.
5818 * valops.c (value_cast): Use decimal_from_doublest instead of
5819 decimal_from_floating. Use decimal_from_[u]longest isntead of
5820 decimal_from_integral.
5821 * valarith.c (value_args_as_decimal): Likewise.
5822 * valprint.c (print_decimal_floating): Update to new
5823 decimal_to_string interface.
5824 * printcmd.c (printf_decfloat): Likewise.
5825 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5826
1841ee5d
UW
58272017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5828
5829 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5830 * gdbtypes.c: Include "floatformat.h".
5831 * value.c: Likewise.
5832 * m68k-tdep.c: Likewise.
5833
5834 * findvar.c: Do not include "floatformat.h".
5835 * amd64-darwin-tdep.c: Likewise.
5836 * arm-linux-tdep.c: Likewise.
5837 * i386-darwin-tdep.c: Likewise.
5838 * i387-tdep.c: Likewise.
5839 * m68k-linux-tdep.c: Likewise.
5840 * mep-tdep.c: Likewise.
5841 * mips-tdep.c: Likewise.
5842 * nios2-tdep.c: Likewise.
5843 * s390-linux-tdep.c: Likewise.
5844 * sparc-obsd-tdep.c: Likewise.
5845 * sparc-tdep.c: Likewise.
5846 * sparc64-tdep.c: Likewise.
5847 * spu-tdep.c: Likewise.
5848 * tic6x-tdep.c: Likewise.
5849 * tilegx-tdep.c: Likewise.
5850 * vax-tdep.c: Likewise.
5851 * xstormy16-tdep.c: Likewise.
5852 * xtensa-tdep.c: Likewise.
5853
5854 * top.c: Do not include "doublest.h".
5855 * aarch64-tdep.c: Likewise.
5856 * alpha-tdep.c: Likewise.
5857 * arm-linux-tdep.c: Likewise.
5858 * m68k-linux-tdep.c: Likewise.
5859 * tilegx-tdep.c: Likewise.
5860 * xstormy16-tdep.c: Likewise.
5861
a80a6471
JB
58622017-10-05 John Baldwin <jhb@FreeBSD.org>
5863
5864 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5865 (mipsn32_fbsd_sigframe): Define.
5866 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5867 for FreeBSD/mipsn32.
5868
12c4bd7f
JB
58692017-10-05 John Baldwin <jhb@FreeBSD.org>
5870
5871 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5872 AT_HWCAP.
5873
c91933e9
TG
58742017-10-05 Tristan Gingold <tgingold@free.fr>
5875
5876 * MAINTAINERS (Misc): Update my email address.
5877
5cd63fda
PA
58782017-10-04 Pedro Alves <palves@redhat.com>
5879
5880 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5881 it instead of target_gdbarch.
5882 (get_remote_state, get_remote_packet_size): Adjust
5883 get_remote_arch_state calls, passing down target_gdbarch
5884 explicitly.
5885 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5886 'gdbarch' and use it instead of target_gdbarch.
5887 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5888 passing down target_gdbarch explicitly.
5889 (struct stop_reply) <arch>: New field.
5890 (remote_parse_stop_reply): Use the stopped thread's architecture,
5891 not the current inferior's. Save the architecture in the
5892 stop_reply.
5893 (process_stop_reply): Use the stop reply's architecture.
5894 (process_g_packet, remote_fetch_registers)
5895 (remote_prepare_to_store, store_registers_using_G)
5896 (remote_store_registers): Adjust get_remote_arch_state calls,
5897 using the regcache's architecture.
5898 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5899 passing down target_gdbarch explicitly.
5900 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5901 beneath instead of calling target_gdbarch.
5902 * target.c (default_thread_architecture): Use the specified
5903 inferior's architecture, instead of the current inferior's
5904 architecture (via target_gdbarch).
5905
ed4227b7
PA
59062017-10-04 Pedro Alves <palves@redhat.com>
5907
5908 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5909 case.
5910 (regcache_print): Handle !target_has_registers here instead.
5911
55b11ddf
PA
59122017-10-04 Pedro Alves <palves@redhat.com>
5913
5914 * frame.c (create_test_frame): Delete.
5915 * frame.h (create_test_frame): Delete.
5916 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5917 (class regcache_test): Delete.
5918 (test_target_has_registers, test_target_has_stack)
5919 (test_target_has_memory, test_target_prepare_to_store)
5920 (test_target_store_registers): New functions.
5921 (test_target_ops): New class.
5922 (register_to_value_test): Error out if there's already a
5923 process_stratum (or higher) target pushed. Create a fuller mock
5924 environment, with mock target_ops, inferior, address space, thread
5925 and inferior_ptid.
5926 * progspace.c (struct address_space): Move to ...
5927 * progspace.h (struct address_space): ... here.
5928 * regcache.h (regcache::~regcache, regcache::raw_write)
5929 [GDB_SELF_TEST]: No longer virtual.
5930
4c71c105
SM
59312017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5932
5933 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5934
73dcd72d
PA
59352017-10-04 Pedro Alves <palves@redhat.com>
5936
5937 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5938 out of 'between TRY and CATCH'.
5939
44704526
PA
59402017-10-04 Pedro Alves <palves@redhat.com>
5941
5942 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5943 * common/common-exceptions.h (TRY): Open an outermost scope.
5944 Expand intro comment.
5945 (CATCH): Reindent.
5946 (END_CATCH): Close the outermost scope.
5947 * completer.c (complete_line_internal): Add missing END_CATCH.
5948
bc3b087d
SDJ
59492017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5950
5951 * NEWS (Changes since GDB 8.0): Add entry about new
5952 'set-cwd-on-gdbserver' feature.
5953 (New remote packets): Add entry for QSetWorkingDir.
5954 * common/common-inferior.h (set_inferior_cwd): New prototype.
5955 * infcmd.c (set_inferior_cwd): Remove "static".
5956 (show_cwd_command): Expand text to include remote debugging.
5957 * remote.c: Add PACKET_QSetWorkingDir.
5958 (remote_protocol_features) <QSetWorkingDir>: New entry for
5959 PACKET_QSetWorkingDir.
5960 (extended_remote_set_inferior_cwd): New function.
5961 (extended_remote_create_inferior): Call
5962 "extended_remote_set_inferior_cwd".
5963 (_initialize_remote): Call "add_packet_config_cmd" for
5964 QSetWorkingDir.
5965
d092c5a2
SDJ
59662017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5967
5968 * NEWS (New commands): Mention "set/show cwd".
5969 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5970 "cd" command's help text.
5971 * common/common-inferior.h (get_inferior_cwd): New prototype.
5972 * infcmd.c (inferior_cwd_scratch): New global variable.
5973 (set_inferior_cwd): New function.
5974 (get_inferior_cwd): Likewise.
5975 (set_cwd_command): Likewise.
5976 (show_cwd_command): Likewise.
5977 (_initialize_infcmd): Add "set/show cwd" commands.
5978 * inferior.h (class inferior) <cwd>: New field.
5979 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5980 (fork_inferior): Change inferior's cwd before its execution.
5981 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5982 to CreateProcess.
5983
7da0a886
SDJ
59842017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5985
5986 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5987 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5988 (COMMON_OBS): Add gdb_tilde_expand.o.
5989 * common/gdb_tilde_expand.c: New file.
5990 * common/gdb_tilde_expand.h: Likewise.
5991
db8dd160
MR
59922017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5993
5994 * gdbarch.sh (objfile): Remove duplicate declaration.
5995 * gdbarch.h: Regenerate.
5996
f8bfbf22
TT
59972017-10-03 Tom Tromey <tom@tromey.com>
5998
5999 * utils.c (internal_vproblem): Use string_vprintf.
6000
5178ed48
TT
60012017-10-03 Tom Tromey <tom@tromey.com>
6002
6003 * printcmd.c (info_symbol_command): Use std::string.
6004
8cff8730
TT
60052017-10-03 Tom Tromey <tom@tromey.com>
6006
6007 * top.c (gdb_safe_append_history): Use std::string.
6008
895b8f30
TT
60092017-10-03 Tom Tromey <tom@tromey.com>
6010
6011 * event-top.c (stdin_event_handler): Update.
6012 * main.c (captured_main_1): Update.
6013 * top.h (make_delete_ui_cleanup): Remove.
6014 (struct ui): Add constructor and destructor.
6015 (new_ui, delete_ui): Remove.
6016 * top.c (make_delete_ui_cleanup): Remove.
6017 (new_ui_command): Use std::unique_ptr.
6018 (delete_ui_cleanup): Remove.
6019 (ui::ui): Rename from new_ui. Update.
6020 (free_ui): Remove.
6021 (ui::~ui): Rename from delete_ui. Update.
6022
0efef640
TT
60232017-10-03 Tom Tromey <tom@tromey.com>
6024
6025 * symfile.c (load_progress): Use gdb::byte_vector.
6026
245ad7d3
TT
60272017-10-03 Tom Tromey <tom@tromey.com>
6028
6029 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
6030 declaration.
6031 * printcmd.c (x_command): Remove unused declaration.
6032 * symfile.c (symbol_file_command): Remove unused declaration.
6033
e05550d7
TT
60342017-10-03 Tom Tromey <tom@tromey.com>
6035
6036 * utils.c (internal_vproblem): Use std::string.
6037 (defaulted_query): Likewise.
6038
b95de2b7
TT
60392017-10-03 Tom Tromey <tom@tromey.com>
6040
6041 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
6042 * top.c (execute_command_to_string): Update.
6043 * utils.c (make_cleanup_restore_page_info): Remove.
6044 (do_restore_page_info_cleanup): Remove.
6045 (set_batch_flag_and_restore_page_info):
6046 New.
6047 (make_cleanup_restore_page_info): Remove.
6048 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6049 (~set_batch_flag_and_restore_page_info): New
6050 (make_cleanup_restore_uinteger): Remove.
6051 (make_cleanup_restore_integer): Remove.
6052 (struct restore_integer_closure): Remove.
6053 (restore_integer): Remove.
6054 * utils.h (struct set_batch_flag_and_restore_page_info): New
6055 class.
6056 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
6057 (make_cleanup_restore_page_info): Remove.
6058 (make_cleanup_restore_uinteger) Remove.
6059 (make_cleanup_restore_integer) Remove.
6060
07036511
TT
60612017-10-03 Tom Tromey <tom@tromey.com>
6062
6063 * record-full.h (record_full_gdb_operation_disable_set): Return
6064 scoped_restore_tmpl<int>.
6065 * infrun.c (adjust_pc_after_break): Update.
6066 (handle_signal_stop): Update.
6067 * record-full.c (record_full_gdb_operation_disable_set): Return
6068 scoped_restore_tmpl<int>.
6069 (record_full_wait_1, record_full_insert_breakpoint)
6070 (record_full_remove_breakpoint, record_full_save)
6071 (record_full_goto_insn): Update.
6072
45320ffa
TT
60732017-10-02 Tom Tromey <tom@tromey.com>
6074
6075 PR rust/22236:
6076 * rust-lang.c (rust_val_print_str): New function.
6077 (val_print_struct): Call it.
6078 (rust_subscript): Preserve name of slice type.
6079
b3e3859b
TT
60802017-10-02 Tom Tromey <tom@tromey.com>
6081
6082 * rust-lang.c (rust_subscript): Handle slices in
6083 EVAL_AVOID_SIDE_EFFECTS case.
6084
01af5e0d
TT
60852017-10-02 Tom Tromey <tom@tromey.com>
6086
6087 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
6088
888e3ddb
TT
60892017-10-02 Tom Tromey <tom@tromey.com>
6090
6091 * rust-lang.h (rust_slice_type): Add "extern".
6092
cc536b21
PA
60932017-10-02 Tom Tromey <tom@tromey.com>
6094 Pedro Alves <palves@redhat.com>
6095
6096 * ada-lang.h (ada_exc_info::operator<): Make const.
6097 (ada_exc_info::operator==): Make const.
6098 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
6099 Make const.
6100
386c8614
TT
61012017-09-29 Tom Tromey <tom@tromey.com>
6102
6103 * target.c (read_whatever_is_readable): Change type of "result".
6104 Update.
6105 (free_memory_read_result_vector): Remove.
6106 (read_memory_robust): Change return type. Update.
6107 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
6108 bin2hex, std::string.
6109 * target.h (memory_read_result_s): Remove typedef.
6110 (free_memory_read_result_vector): Remove.
6111 (read_memory_robust): Return std::vector.
6112
789c4b5e
TT
61132017-09-29 Tom Tromey <tom@tromey.com>
6114
6115 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
6116
ab816a27
TT
61172017-09-29 Tom Tromey <tom@tromey.com>
6118
6119 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6120 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6121 operator< and operator==.
6122 (ada_exceptions_list): Return a std::vector.
6123 * ada-lang.c (ada_exc_info::operator<): Rename from
6124 compare_ada_exception_info.
6125 (ada_exc_info::operator==): New.
6126 (sort_remove_dups_ada_exceptions_list): Change type of
6127 "exceptions".
6128 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6129 (ada_add_global_exceptions): Likewise.
6130 (ada_exceptions_list_1): Return a std::vector.
6131 (ada_exceptions_list): Likewise.
6132
52f9abe4
TT
61332017-09-29 Tom Tromey <tom@tromey.com>
6134
6135 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6136 'std::set *'.
6137 (print_one_inferior): Update.
6138 (free_vector_of_ints): Remove.
6139 (list_available_thread_groups): Change "ids" to std::set.
6140 (mi_cmd_list_thread_groups): Update.
6141 (struct collect_cores_data) <core>: Now a std::set.
6142 (collect_cores): Update.
6143 (unique): Remove.
6144 (print_one_inferior): Update.
6145
dcd5ddcc
TT
61462017-09-29 Tom Tromey <tom@tromey.com>
6147
6148 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6149 (mi_execute_async_cli_command): Likewise.
6150 (mi_cmd_trace_frame_collected): Use field_fmt.
6151
45d288cc
TT
61522017-09-29 Tom Tromey <tom@tromey.com>
6153
6154 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6155 gdb::byte_vector.
6156
6afe2f4a
TT
61572017-09-29 Tom Tromey <tom@tromey.com>
6158
6159 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6160
9813429a
TT
61612017-09-29 Tom Tromey <tom@tromey.com>
6162
6163 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6164
2d6960b4
TT
61652017-09-29 Tom Tromey <tom@tromey.com>
6166
6167 * varobj.h (varobj_gen_name): Return std::string.
6168 * varobj.c (varobj_gen_name): Return std::string.
6169 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6170 (mi_cmd_var_delete): Don't copy "name".
6171
784c453a
TT
61722017-09-29 Tom Tromey <tom@tromey.com>
6173
6174 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6175 (mi_cmd_break_insert_1): Update.
6176
a9bc57b9
TT
61772017-09-29 Tom Tromey <tom@tromey.com>
6178
6179 * target.h (make_scoped_defer_target_commit_resume): Update.
6180 * target.c (make_scoped_defer_target_commit_resume): Rename from
6181 make_cleanup_defer_target_commit_resume. Return a
6182 scoped_restore.
6183 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6184
9754d8c4
TT
61852017-09-29 Tom Tromey <tom@tromey.com>
6186
6187 * main.c (captured_main_1): Remove unused declaration.
6188 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6189
99ef965c
TT
61902017-09-29 Tom Tromey <tom@tromey.com>
6191
6192 * symtab.c (search_symbols): Remove unused outer cleanup.
6193 (make_source_files_completion_list): Remove unused declaration.
6194
42518ba7
TT
61952017-09-29 Tom Tromey <tom@tromey.com>
6196
6197 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6198
726b2169
TT
61992017-09-29 Tom Tromey <tom@tromey.com>
6200
6201 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6202 gdb::byte_vector.
6203
55b06432
TT
62042017-09-29 Tom Tromey <tom@tromey.com>
6205
6206 * complaints.c (vcomplaint): Use std::string.
6207
8abcee91
TT
62082017-09-29 Tom Tromey <tom@tromey.com>
6209
6210 * tracepoint.c (trace_variable_command): Use std::string.
6211 (encode_actions_1): Remove unused declarations.
6212 (create_tsv_from_upload): Use std::string.
6213
6ad94bc7
TT
62142017-09-29 Tom Tromey <tom@tromey.com>
6215
6216 * cp-support.c (gdb_demangle): Use std::string.
6217
2003f3d8
TT
62182017-09-29 Tom Tromey <tom@tromey.com>
6219
6220 * stack.c (parse_frame_specification): Use std::string
6221 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6222
8f8accb5
TT
62232017-09-29 Tom Tromey <tom@tromey.com>
6224
6225 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6226
200aa7b1
TT
62272017-09-29 Tom Tromey <tom@tromey.com>
6228
6229 * utils.c (vfprintf_maybe_filtered): Use std::string.
6230 (vfprintf_unfiltered): Likewise.
6231
606aae8a
TT
62322017-09-29 Tom Tromey <tom@tromey.com>
6233
6234 * event-top.c (top_level_prompt): Return std::string.
6235 (display_gdb_prompt): Update.
6236
bd413795
TT
62372017-09-29 Tom Tromey <tom@tromey.com>
6238
6239 * unittests/common-utils-selftests.c (format): New function.
6240 (string_vprintf_tests): New function.
6241 (_initialize_common_utils_selftests): Register new tests.
6242 * common/common-utils.c (string_vprintf): New function.
6243 * common/common-utils.h (string_vprintf): Declare.
6244
256642e8
PA
62452017-09-29 Pedro Alves <palves@redhat.com>
6246
6247 * common/rsp-low.c (unpack_varlen_hex): Constify.
6248 * common/rsp-low.h (unpack_varlen_hex): Constify.
6249 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6250 Constify.
6251 * remote.c (remote_set_permissions, read_ptid)
6252 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6253 (remote_static_tracepoint_marker_at)
6254 (remote_static_tracepoint_markers_by_strid)
6255 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6256 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6257 (parse_tracepoint_definition, parse_tsv_definition)
6258 (parse_static_tracepoint_marker_definition): Constify.
6259 * tracepoint.h (parse_static_tracepoint_marker_definition)
6260 (parse_trace_status, parse_tracepoint_status)
6261 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6262
b6bb3468
PA
62632017-09-29 Pedro Alves <palves@redhat.com>
6264
6265 * remote.c (target_buf, target_buf_size): Delete.
6266 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6267 Use the connection's packet buffer instead.
6268 All callers adjusted.
6269 (_initialize_remote): Remove references to target_buf and
6270 target_buf_size.
6271
b2f8eb7a
PA
62722017-09-28 Pedro Alves <palves@redhat.com>
6273
6274 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6275 unittests/common-utils-selftests.c.
6276 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6277 (COMMON_OBS): Remove utils-selftests.o.
6278 * utils-selftests.c: Move to ...
6279 * unittests/common-utils-selftests.c: ... here and rename self
6280 test to "string_printf".
6281
08302ed2
DE
62822017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6283
6284 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6285 having NULL cus or tus.
6286
96a5a1d3
UW
62872017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6288
6289 * arm-tdep.c: (convert_from_extended): Remove.
6290 (convert_to_extended): Likewise.
6291 (arm_extract_return_value): Use convert_typed_floating.
6292 (arm_store_return_value): Likewise.
6293
6294 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6295 * sh-tdep.c: Do not include "floatformat.h".
6296 (sh_littlebyte_bigword_type): New function.
6297 (sh_register_convert_to_virtual): Use convert_typed_floating.
6298 (sh_register_convert_to_raw): Likewise.
6299 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6300 (sh64_littlebyte_bigword_type): New function.
6301 (sh64_extract_return_value): Use convert_typed_floating.
6302 (sh64_register_convert_to_virtual): Likewise.
6303 (sh64_register_convert_to_raw): Likewise.
6304
0db7851f
UW
63052017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6306
6307 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6308 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6309
6310 * gdbtypes.h (union type_specific): Make field floatformat hold
6311 just a single struct floatformat, not an array.
6312 (floatformat_from_type): Move here.
6313 * gdbtypes.c (floatformat_from_type): Move here. Update to
6314 changed TYPE_FLOATFORMAT definition.
6315 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6316 (recursive_dump_type): Likewise.
6317 (init_float_type): Install correct floatformat for byte order.
6318 (arch_float_type): Likewise.
6319
77b7c781
UW
63202017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6321
6322 * gdbtypes.c (init_type): Change incoming argument from
6323 length-in-bytes to length-in-bits. Assert length is a
6324 multiple of TARGET_CHAR_BITS.
6325 (arch_type, arch_flags_type): Likewise.
6326 (init_integer_type): Update call to init_type.
6327 (init_character_type): Likewise.
6328 (init_boolean_type): Likewise.
6329 (init_float_type): Likewise.
6330 (init_decfloat_type): Likewise.
6331 (init_complex_type): Likewise.
6332 (init_pointer_type): Likewise.
6333 (objfile_type): Likewise.
6334 (arch_integer_type): Update call to arch_type.
6335 (arch_character_type): Likewise.
6336 (arch_boolean_type): Likewise.
6337 (arch_float_type): Likewise.
6338 (arch_decfloat_type): Likewise.
6339 (arch_complex_type): Likewise.
6340 (arch_pointer_type): Likewise.
6341 (gdbtypes_post_init): Likewise.
6342
6343 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6344 (read_base_type): Likewise.
6345 * mdebugread.c (basic_type): Likewise.
6346 * stabsread.c (dbx_init_float_type): Likewise.
6347 (rs6000_builtin_type): Likewise.
6348 (read_range_type): Likewise. Also, fix call to init_integer_type
6349 with erroneous length argument.
6350
6351 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6352 * d-lang.c (build_d_types): Likewise.
6353 * f-lang.c (build_fortran_types): Likewise.
6354 * go-lang.c (build_go_types): Likewise.
6355 * opencl-lang.c (build_opencl_types): Likewise.
6356 * jit.c (finalize_symtab): Likewise.
6357 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6358 (build_std_type_info_type): Likewise.
6359 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6360 update call to arch_flags_type.
6361
6362 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6363 arch_type.
6364 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6365 * windows-tdep.c (windows_get_tlb_type): Likewise.
6366
6367 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6368 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6369 * m32c-tdep.c (make_types): Likewise.
6370 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6371 (rl78_psw_type): Update call to arch_flags_type.
6372 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6373 * rx-tdep.c (rx_psw_type): Likewise.
6374 (rx_fpsw_type): Likewise.
6375 * sparc-tdep.c (sparc_psr_type): Likewise.
6376 (sparc_fsr_type): Likewise.
6377 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6378 (sparc64_ccr_type): Likewise.
6379 (sparc64_fsr_type): Likewise.
6380 (sparc64_fprs_type): Likewise.
6381
f21b4d5c
TT
63822017-09-27 Tom Tromey <tom@tromey.com>
6383
6384 * findcmd.c (find_command): Constify.
6385
643c2ffa
TT
63862017-09-27 Tom Tromey <tom@tromey.com>
6387
6388 * ada-tasks.c (task_command_1, task_command): Constify.
6389
510e5e56
TT
63902017-09-27 Tom Tromey <tom@tromey.com>
6391
6392 * symtab.c (maintenance_print_symbol_cache)
6393 (maintenance_flush_symbol_cache)
6394 (maintenance_print_symbol_cache_statistics): Constify.
6395
e503b191
TT
63962017-09-27 Tom Tromey <tom@tromey.com>
6397
6398 * inferior.c (detach_inferior_command, kill_inferior_command)
6399 (inferior_command): Constify.
6400
4e001312
TT
64012017-09-27 Tom Tromey <tom@tromey.com>
6402
6403 * regcache.c (regcache_print, maintenance_print_registers)
6404 (maintenance_print_raw_registers)
6405 (maintenance_print_cooked_registers)
6406 (maintenance_print_register_groups)
6407 (maintenance_print_remote_registers): Constify.
6408
77763700
TT
64092017-09-27 Tom Tromey <tom@tromey.com>
6410
6411 * printcmd.c (map_display_numbers, undisplay_command)
6412 (enable_disable_display_command, enable_display_command)
6413 (disable_display_command): Constify.
6414
4495129a
TT
64152017-09-27 Tom Tromey <tom@tromey.com>
6416
6417 * breakpoint.h (delete_command): Don't declare.
6418 * breakpoint.c (delete_command, enable_once_command)
6419 (enable_count_command, enable_delete_command, breakpoint_1)
6420 (maintenance_info_breakpoints, stopin_command, stopat_command)
6421 (delete_command, delete_trace_command, save_breakpoints)
6422 (save_breakpoints_command, save_tracepoints_command): Constify.
6423
3088cf40
TT
64242017-09-27 Tom Tromey <tom@tromey.com>
6425
6426 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6427 (skip_ws, extract_identifier, macro_define_command)
6428 (macro_undef_command, macro_list_command): Constify.
6429
69f476a3
TT
64302017-09-27 Tom Tromey <tom@tromey.com>
6431
6432 * infcmd.c (environment_info, set_environment_command)
6433 (unset_environment_command, path_info, info_proc_cmd_1)
6434 (info_proc_cmd_mappings, info_proc_cmd_stat)
6435 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6436 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6437
c4a3e68e
TT
64382017-09-27 Tom Tromey <tom@tromey.com>
6439
6440 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6441 Constify.
6442
c9d31bd6
TT
64432017-09-27 Tom Tromey <tom@tromey.com>
6444
6445 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6446
1f3f85eb
TT
64472017-09-27 Tom Tromey <tom@tromey.com>
6448
6449 * demangle.c (demangle_command): Constify.
6450
9c504b5d
TT
64512017-09-27 Tom Tromey <tom@tromey.com>
6452
6453 * progspace.c (maintenance_info_program_spaces_command):
6454 Constify.
6455
6663cf91
TT
64562017-09-27 Tom Tromey <tom@tromey.com>
6457
6458 * compile/compile.c (check_raw_argument, compile_file_command)
6459 (compile_code_command, compile_print_command): Constify.
6460
34e5fa26
TT
64612017-09-27 Tom Tromey <tom@tromey.com>
6462
6463 * reggroups.c (maintenance_print_reggroups): Constify.
6464
8384c356
TT
64652017-09-27 Tom Tromey <tom@tromey.com>
6466
6467 * dwarf2read.c (save_gdb_index_command): Constify.
6468
884beb0c
TT
64692017-09-27 Tom Tromey <tom@tromey.com>
6470
6471 * stap-probe.c (info_probes_stap_command): Constify.
6472
e0b2930c
TT
64732017-09-27 Tom Tromey <tom@tromey.com>
6474
6475 * fork-child.c (unset_exec_wrapper_command): Constify.
6476
f938677d
TT
64772017-09-27 Tom Tromey <tom@tromey.com>
6478
6479 * btrace.c (get_uint, get_context_size, no_chunk)
6480 (maint_btrace_packet_history_cmd)
6481 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6482 (maint_info_btrace_cmd): Constify.
6483
8949cb87
TT
64842017-09-27 Tom Tromey <tom@tromey.com>
6485
6486 * reverse.c (delete_bookmark_command): Constify.
6487
ac88e2de
TT
64882017-09-27 Tom Tromey <tom@tromey.com>
6489
6490 * remote.c (set_memory_packet_size)
6491 (set_memory_write_packet_size, show_memory_write_packet_size)
6492 (set_memory_read_packet_size, show_memory_read_packet_size)
6493 (compare_sections_command, packet_command, remote_put_command)
6494 (remote_get_command, remote_delete_command): Constify.
6495
bd4c9dfe
TT
64962017-09-27 Tom Tromey <tom@tromey.com>
6497
6498 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6499 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6500 (set_mipsfpu_auto_command): Constify.
6501
5e93d4c6
TT
65022017-09-27 Tom Tromey <tom@tromey.com>
6503
6504 * cli/cli-cmds.h (cd_command): Constify.
6505 * cli/cli-cmds.c (cd_command): Constify.
6506
fc41a75b
TT
65072017-09-27 Tom Tromey <tom@tromey.com>
6508
6509 * thread.c (thread_name_command, thread_find_command): Constify.
6510
67810076
TT
65112017-09-27 Tom Tromey <tom@tromey.com>
6512
6513 * probe.c (enable_probes_command, disable_probes_command):
6514 Constify.
6515
1d8b34a7
TT
65162017-09-27 Tom Tromey <tom@tromey.com>
6517
6518 * symfile.c (symbol_file_command): Constify.
6519 * gdbcore.h (deprecated_file_changed_hook): Constify.
6520 * exec.c (deprecated_file_changed_hook, exec_file_command)
6521 (file_command): Constify.
6522 * defs.h (symbol_file_command): Constify.
6523
442019e1
TT
65242017-09-27 Tom Tromey <tom@tromey.com>
6525
6526 * remote-fileio.c (set_system_call_allowed)
6527 (show_system_call_allowed): Constify.
6528
2983f7cb
TT
65292017-09-27 Tom Tromey <tom@tromey.com>
6530
6531 * tracepoint.c (delete_trace_variable_command)
6532 (tfind_end_command, tfind_start_command, tfind_pc_command)
6533 (tfind_tracepoint_command, tfind_line_command)
6534 (tfind_range_command, tfind_outside_command): Constify.
6535
4fd41b24
TT
65362017-09-27 Tom Tromey <tom@tromey.com>
6537
6538 * ax-gdb.c (maint_agent_printf_command, agent_command)
6539 (agent_eval_command): Constify.
6540
f2fc3015
TT
65412017-09-27 Tom Tromey <tom@tromey.com>
6542
6543 * tracepoint.c (info_scope_command): Constify.
6544 * python/python.c (gdbpy_decode_line): Constify.
6545 * python/py-breakpoint.c (bppy_init): Constify.
6546 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6547 * location.h: (new_linespec_location)
6548 (string_to_event_location_basic, string_to_event_location):
6549 Constify.
6550 * location.c (new_linespec_location)
6551 (string_to_event_location_basic, string_to_event_location):
6552 Constify.
6553 * linespec.h (decode_line_with_current_source)
6554 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6555 * linespec.c (linespec_lex_to_end)
6556 (decode_line_with_current_source)
6557 (decode_line_with_last_displayed): Constify.
6558 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6559 Constify.
6560 * cli/cli-cmds.c (edit_command, list_command): Constify.
6561 * breakpoint.h (until_break_command, watch_command_wrapper)
6562 (awatch_command_wrapper, rwatch_command_wrapper)
6563 (init_ada_exception_breakpoint): Constify.
6564 * breakpoint.c (break_command_1, dprintf_command)
6565 (break_range_command, watch_command_wrapper)
6566 (rwatch_command_wrapper, awatch_command_wrapper)
6567 (until_break_command, init_ada_exception_breakpoint)
6568 (strace_marker_create_sals_from_location, trace_command)
6569 (ftrace_command, strace_command, struct tracepoint): Constify.
6570 * ax-gdb.c (agent_command_1): Constify.
6571 * ada-lang.c (ada_exception_sal): Constify.
6572
8c2f95f4
TT
65732017-09-27 Tom Tromey <tom@tromey.com>
6574
6575 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6576 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6577 (get_context_size, no_chunk, get_insn_history_modifiers)
6578 (cmd_record_insn_history, get_call_history_modifiers)
6579 (cmd_record_call_history): Constify.
6580
a0d65762
TT
65812017-09-27 Tom Tromey <tom@tromey.com>
6582
6583 * source.c (show_substitute_path_command)
6584 (unset_substitute_path_command, set_substitute_path_command):
6585 Constify.
6586
58971144
TT
65872017-09-27 Tom Tromey <tom@tromey.com>
6588
6589 * typeprint.c (maintenance_print_type): Constify.
6590 * maint.c (maintenance_dump_me, maintenance_demangle)
6591 (maintenance_time_display, maintenance_info_sections)
6592 (maintenance_print_statistics, maintenance_deprecate)
6593 (maintenance_undeprecate): Constify.
6594 (maintenance_do_deprecate): Constify. Use std::string.
6595 (maintenance_selftest): Constify.
6596 * gdbtypes.h (maintenance_print_type): Constify.
6597
c482f52c
TT
65982017-09-27 Tom Tromey <tom@tromey.com>
6599
6600 * hppa-tdep.c (unwind_command): Constify.
6601
e100df1a
TT
66022017-09-27 Tom Tromey <tom@tromey.com>
6603
6604 * target-descriptions.c (unset_tdesc_filename_cmd)
6605 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6606 Constify.
6607
31d56ade
TT
66082017-09-27 Tom Tromey <tom@tromey.com>
6609
6610 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6611
b961da0b
TT
66122017-09-27 Tom Tromey <tom@tromey.com>
6613
6614 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6615
e2d8ae16
TT
66162017-09-27 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-regs.c (tui_reg_command): Constify.
6619
863779b0
TT
66202017-09-27 Tom Tromey <tom@tromey.com>
6621
6622 * skip.c (skip_file_command, skip_function_command)
6623 (skip_enable_command, skip_disable_command, skip_delete_command):
6624 Constify.
6625
cdb34d4a
TT
66262017-09-27 Tom Tromey <tom@tromey.com>
6627
6628 * record-btrace.c (cmd_record_btrace_bts_start)
6629 (cmd_record_btrace_pt_start): Constify.
6630
e99c83e7
TT
66312017-09-27 Tom Tromey <tom@tromey.com>
6632
6633 * symmisc.c (maintenance_print_symbols)
6634 (maintenance_print_msymbols, maintenance_print_objfiles)
6635 (maintenance_info_symtabs, maintenance_check_symtabs)
6636 (maintenance_expand_symtabs, maintenance_info_line_tables):
6637 Constify.
6638
32faf971
TT
66392017-09-27 Tom Tromey <tom@tromey.com>
6640
6641 * top.c (new_ui_command): Constify.
6642
2cf311eb
TT
66432017-09-27 Tom Tromey <tom@tromey.com>
6644
6645 * symfile.c (add_symbol_file_command)
6646 (remove_symbol_file_command, list_overlays_command)
6647 (map_overlay_command, unmap_overlay_command)
6648 (overlay_auto_command, overlay_manual_command)
6649 (overlay_off_command, overlay_load_command): Constify.
6650
e6738699
TT
66512017-09-27 Tom Tromey <tom@tromey.com>
6652
6653 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6654 (info_spu_mailbox_command, info_spu_dma_command)
6655 (info_spu_proxydma_command): Constify.
6656
aa360cd5
TT
66572017-09-27 Tom Tromey <tom@tromey.com>
6658
6659 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6660
898241a5
TT
66612017-09-27 Tom Tromey <tom@tromey.com>
6662
6663 * cli/cli-script.c (user_defined_command): Constify.
6664
2d0ac106
TT
66652017-09-27 Tom Tromey <tom@tromey.com>
6666
6667 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6668 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6669 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6670 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6671 (dump_binary_value, append_binary_memory, append_binary_value):
6672 Constify.
6673 (struct dump_context) <func>: Constify.
6674 (add_dump_command): Update.
6675
dede02ce
TT
66762017-09-27 Tom Tromey <tom@tromey.com>
6677
6678 * cli/cli-cmds.c (show_version, show_configuration)
6679 (source_command, show_user): Constify.
6680
d3cb6b99
TT
66812017-09-27 Tom Tromey <tom@tromey.com>
6682
6683 * target.c (maintenance_print_target_stack): Constify.
6684
1970a12f
TT
66852017-09-27 Tom Tromey <tom@tromey.com>
6686
6687 * interps.c (interpreter_exec_cmd): Constify.
6688
41243651
TT
66892017-09-27 Tom Tromey <tom@tromey.com>
6690
6691 * record-full.c (cmd_record_full_restore): Constify.
6692
4465d9db
TT
66932017-09-27 Tom Tromey <tom@tromey.com>
6694
6695 * memattr.c (enable_mem_command, disable_mem_command)
6696 (delete_mem_command): Constify.
6697
ad25e423
TT
66982017-09-27 Tom Tromey <tom@tromey.com>
6699
6700 * value.c (show_convenience): Constify.
6701
d64097b1
TT
67022017-09-27 Tom Tromey <tom@tromey.com>
6703
6704 * gdbcore.h (core_file_command): Update.
6705 * corefile.c (core_file_command): Constify.
6706
4d4589ef
TT
67072017-09-27 Tom Tromey <tom@tromey.com>
6708
6709 * user-regs.c (maintenance_print_user_registers): Constify.
6710
32a7bf17
TT
67112017-09-27 Tom Tromey <tom@tromey.com>
6712
6713 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6714
4a475551
TT
67152017-09-27 Tom Tromey <tom@tromey.com>
6716
6717 * cp-support.c (first_component_command): Constify.
6718
990b9f9f
TT
67192017-09-27 Tom Tromey <tom@tromey.com>
6720
6721 * psymtab.c (maintenance_print_psymbols)
6722 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6723 Constify.
6724
c281872e
TT
67252017-09-27 Tom Tromey <tom@tromey.com>
6726
6727 * windows-tdep.c (display_tib): Constify.
6728
5b64bf74
TT
67292017-09-27 Tom Tromey <tom@tromey.com>
6730
6731 * linux-fork.c (delete_checkpoint_command)
6732 (detach_checkpoint_command): Constify.
6733
4ada038f
TT
67342017-09-27 Tom Tromey <tom@tromey.com>
6735
6736 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6737
57f5a81b
TT
67382017-09-27 Tom Tromey <tom@tromey.com>
6739
6740 * arc-tdep.c (dump_arc_instruction_command): Constify.
6741
b0a8e6c4
TT
67422017-09-27 Tom Tromey <tom@tromey.com>
6743
6744 * valprint.c (set_radix, show_radix): Constify.
6745
8d97dc1c
TT
67462017-09-27 Tom Tromey <tom@tromey.com>
6747
6748 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6749
eb7c454d
TT
67502017-09-27 Tom Tromey <tom@tromey.com>
6751
6752 * command.h (not_just_help_class_command): Update.
6753 * cli/cli-decode.h (not_just_help_class_command): Update.
6754 * cli/cli-decode.c (not_just_help_class_command): Constify.
6755
e4e33335
TT
67562017-09-27 Tom Tromey <tom@tromey.com>
6757
6758 * gdb_bfd.c (maintenance_info_bfds): Constify.
6759
0450cc4c
TT
67602017-09-27 Tom Tromey <tom@tromey.com>
6761
6762 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6763 overloads.
6764 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6765 (do_const_cfunc): New function.
6766 (cmd_cfunc_eq): New overload.
6767 (cli_user_command_p): Check do_const_cfunc.
6768 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6769 const_cfunc.
6770 * command.h (add_cmd): Add const overload and no-function
6771 overload.
6772 (set_cmd_cfunc): Add const overload.
6773 (cmd_const_cfunc_ftype): Declare.
6774 (cmd_cfunc_eq): Add const overload.
6775 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6776 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6777 overload.
6778
a9bbfbd8
TT
67792017-09-27 Tom Tromey <tom@tromey.com>
6780
6781 * macroexp.c (get_next_token_for_substitution): New function.
6782 (substitute_args): Call it. Check for __VA_OPT__.
6783
5230b05a
WT
67842017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6785 Pedro Alves <palves@redhat.com>
6786
6787 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6788 producer_is_icc_lt_14.
6789 (producer_is_icc_lt_14): New function.
6790 (check_producer): Add code for checking version of ICC.
6791 (producer_is_icc): Move to producer.c.
6792 (read_structure_type): Restrict ICC workaround to ICC<14.
6793 * producer.c: Include selftest.h.
6794 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6795 New functions.
6796 * producer.h (producer_is_icc): New declaration.
6797
b32b108a
WT
67982017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6799
6800 * Makefile.in (SFILES): Add producer.c.
6801 (COMMON_OBS): Add producer.o
6802 * amd64-tdep.c (producer.h): Add new include.
6803 * dwarf2read.c (producer.h): Add new include.
6804 * producer.c: New file.
6805 * producer.h: New file.
6806 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6807 producer.c.
6808 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6809 producer.h.
6810
5007d765
MK
68112017-09-26 Matthias Klose <doko@ubuntu.com>
6812
6813 * configure.ac: Search ncursesw before ncurses.
6814 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6815 * gdb_curses.h: Include <ncursesw/ncurses.h>
6816 * config.in, configure: Regenerate.
6817
281c4447
RO
68182017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6819
6820 PR gdb/22185
6821 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6822 obsolete.
6823 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6824 Remove i386sol2 support.
6825 * configure.nat <i386sol2>: Remove.
6826 <sol2-64>: Fold into ...
6827 <sol2>: ... this.
6828 Move common settings to default section.
6829 Add sol-thread.o.
6830 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6831 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6832 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6833 <i[34567]86-*-solaris*>: Remove.
6834 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6835
6836 * configure.ac: Remove wctype in libw check.
6837 (_MSE_INT_H): Don't define on Solaris 7-9.
6838 <solaris*>: Remove libthread_db.so.1 check.
6839 * configure: Regenerate.
6840 * config.in: Regenerate.
6841
6842 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6843 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6844 (gdb_ps_size_t): Remove.
6845 Use base types in users.
6846 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6847
6848 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6849
39b06c20
RO
68502017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6851
6852 PR build/22206
6853 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6854 (adi_is_addr_mapped): Likewise.
6855 (PSR_ICC): Don't redefine.
6856 (PSR_IMPL): Likewise.
6857
6c3e20f1
TT
68582017-09-25 Tom Tromey <tom@tromey.com>
6859
6860 * regcache.c (regcache::dump): Use string_printf.
6861
b292235f
TT
68622017-09-25 Tom Tromey <tom@tromey.com>
6863
6864 * regcache.c (class regcache_invalidator): New.
6865 (struct register_to_invalidate): Remove.
6866 (make_cleanup_regcache_invalidate): Remove.
6867 (regcache::raw_write): Use regcache_invalidator.
6868
9ac86b52
TT
68692017-09-25 Tom Tromey <tom@tromey.com>
6870
6871 * spu-tdep.c (spu2ppu_sniffer): Update.
6872 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6873 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6874 Remove.
6875 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6876 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6877 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6878 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6879 (frame_pop): Update.
6880
c0e383c6
TT
68812017-09-25 Tom Tromey <tom@tromey.com>
6882
6883 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6884 * regcache.h (regcache_xfree): Don't declare.
6885 * regcache.c (regcache_xfree): Remove.
6886 (do_regcache_xfree): Use delete.
6887 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6888 * linux-fork.c (free_fork): Use delete.
6889 (fork_save_infrun_state): Likewise.
6890 * jit.c (jit_dealloc_cache): Use delete.
6891 * infrun.c (discard_infcall_suspend_state): Use delete.
6892
791199cc
TT
68932017-09-25 Tom Tromey <tom@tromey.com>
6894
6895 * regcache.h (regcache_xmalloc): Don't declare.
6896 (regcache_raw_set_cached_value): Update comment.
6897 * regcache.c (regcache_xmalloc): Remove.
6898 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6899 * jit.c (jit_frame_sniffer): Use new.
6900 * frame.c (frame_save_as_regcache): Use new.
6901
289e23aa
AA
69022017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6903
6904 * NEWS: Advertise support for guarded-storage registers on IBM z.
6905
1b63490c
AA
69062017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6907
6908 * s390-linux-nat.c (have_regset_gs): New static variable.
6909 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6910 control block and guarded-storage broadcast control regsets.
6911 (s390_read_description): Detect whether the target has
6912 guarded-storage support, return appropriate tdesc.
6913 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6914 (features/s390x-gs-linux64.c): Likewise.
6915 (struct gdbarch_tdep) <have_gs>: New field.
6916 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6917 (s390_gsbc_regset): New variables.
6918 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6919 and s390_gsbc_regset, if applicable.
6920 (s390_core_read_description): Check whether core file was from a
6921 target with guarded-storage support; include appropriate regsets.
6922 (s390_gdbarch_init): Add registers for guarded-storage support.
6923 (_initialize_s390_tdep): Initialize new target descriptions that
6924 include registers for guarded-storage support.
6925 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6926 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6927 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6928 (S390_NUM_REGS): Adjust macro definition.
6929 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6930 (tdesc_s390x_gs_linux64): New declarations.
6931
96235dc1
AA
69322017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6933
6934 * features/s390-gs-linux64.xml: New file.
6935 * features/s390-gs.xml: New file.
6936 * features/s390-gsbc.xml: New file.
6937 * features/s390x-gs-linux64.xml: New file.
6938 * features/Makefile (WHICH): Add s390-gs-linux64 and
6939 s390x-gs-linux64.
6940 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6941 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6942 * features/s390-gs-linux64.c: New generated file.
6943 * features/s390x-gs-linux64.c: New file.
6944 * regformats/s390-gs-linux64.dat: New file.
6945 * regformats/s390x-gs-linux64.dat: New file.
6946
b4a7c699
TT
69472017-09-23 Tom Tromey <tom@tromey.com>
6948
6949 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6950
c2f97536
TT
69512017-09-22 Tom Tromey <tom@tromey.com>
6952
6953 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6954 type to scoped_restore_tmpl.
6955 <scoped_input_handler>: Initialize m_quit_handler directly.
6956
43573013
SDJ
69572017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6958
6959 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6960 (cd_command): Likewise. Free "current_directory" before
6961 assigning to it.
6962 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6963 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6964 * top.c (gdb_dirbuf): Remove global declaration.
6965 * top.h (gdb_dirbuf): Likewise.
6966
6ec2e0f5
SDJ
69672017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6968
6969 * gnulib/aclocal.m4: Regenerate.
6970 * gnulib/config.in: Regenerate.
6971 * gnulib/configure: Regenerate.
6972 * gnulib/import/Makefile.am: Regenerate.
6973 * gnulib/import/Makefile.in: Regenerate.
6974 * gnulib/import/assure.h: New file.
6975 * gnulib/import/at-func.c: Likewise
6976 * gnulib/import/chdir-long.c: New file.
6977 * gnulib/import/chdir-long.h: New file.
6978 * gnulib/import/cloexec.c: New file.
6979 * gnulib/import/cloexec.h: New file.
6980 * gnulib/import/close.c: New file.
6981 * gnulib/import/closedir.c: New file.
6982 * gnulib/import/dirent-private.h: New file.
6983 * gnulib/import/dup-safer.c: New file.
6984 * gnulib/import/dup.c: New file.
6985 * gnulib/import/dup2.c: New file.
6986 * gnulib/import/error.c: New file.
6987 * gnulib/import/error.h: New file.
6988 * gnulib/import/exitfail.c: New file.
6989 * gnulib/import/exitfail.h: New file.
6990 * gnulib/import/fchdir.c: New file.
6991 * gnulib/import/fcntl.c: New file.
6992 * gnulib/import/fcntl.in.h: New file.
6993 * gnulib/import/fd-hook.c: New file.
6994 * gnulib/import/fd-hook.h: New file.
6995 * gnulib/import/fd-safer.c: New file.
6996 * gnulib/import/fdopendir.c: New file.
6997 * gnulib/import/filename.h: New file.
6998 * gnulib/import/filenamecat-lgpl.c: New file.
6999 * gnulib/import/filenamecat.h: New file.
7000 * gnulib/import/fstat.c: New file.
7001 * gnulib/import/fstatat.c: New file.
7002 * gnulib/import/getcwd-lgpl.c: New file.
7003 * gnulib/import/getcwd.c: New file.
7004 * gnulib/import/getdtablesize.c: New file.
7005 * gnulib/import/getlogin_r.c: New file.
7006 * gnulib/import/getprogname.c: New file.
7007 * gnulib/import/getprogname.h: New file.
7008 * gnulib/import/gettext.h: New file.
7009 * gnulib/import/glob-libc.h: New file.
7010 * gnulib/import/glob.c: New file.
7011 * gnulib/import/glob.in.h: New file.
7012 * gnulib/import/intprops.h: New file.
7013 * gnulib/import/m4/chdir-long.m4: New file.
7014 * gnulib/import/m4/close.m4: New file.
7015 * gnulib/import/m4/closedir.m4: New file.
7016 * gnulib/import/m4/d-ino.m4: New file.
7017 * gnulib/import/m4/d-type.m4: New file.
7018 * gnulib/import/m4/dup.m4: New file.
7019 * gnulib/import/m4/dup2.m4: New file.
7020 * gnulib/import/m4/error.m4: New file.
7021 * gnulib/import/m4/fchdir.m4: New file.
7022 * gnulib/import/m4/fcntl.m4: New file.
7023 * gnulib/import/m4/fcntl_h.m4: New file.
7024 * gnulib/import/m4/fdopendir.m4: New file.
7025 * gnulib/import/m4/filenamecat.m4: New file.
7026 * gnulib/import/m4/fstat.m4: New file.
7027 * gnulib/import/m4/fstatat.m4: New file.
7028 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
7029 * gnulib/import/m4/getcwd-path-max.m4: New file.
7030 * gnulib/import/m4/getcwd.m4: New file.
7031 * gnulib/import/m4/getdtablesize.m4: New file.
7032 * gnulib/import/m4/getlogin_r.m4: New file.
7033 * gnulib/import/m4/getprogname.m4: New file.
7034 * gnulib/import/m4/glob.m4: New file.
7035 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7036 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7037 * gnulib/import/m4/mempcpy.m4: New file.
7038 * gnulib/import/m4/memrchr.m4: New file.
7039 * gnulib/import/m4/mode_t.m4: New file.
7040 * gnulib/import/m4/msvc-inval.m4: New file.
7041 * gnulib/import/m4/msvc-nothrow.m4: New file.
7042 * gnulib/import/m4/open.m4: New file.
7043 * gnulib/import/m4/openat.m4: New file.
7044 * gnulib/import/m4/opendir.m4: New file.
7045 * gnulib/import/m4/readdir.m4: New file.
7046 * gnulib/import/m4/realloc.m4: New file.
7047 * gnulib/import/m4/rewinddir.m4: New file.
7048 * gnulib/import/m4/save-cwd.m4: New file.
7049 * gnulib/import/m4/strdup.m4: New file.
7050 * gnulib/import/m4/strerror.m4: New file.
7051 * gnulib/import/m4/unistd-safer.m4: New file.
7052 * gnulib/import/mempcpy.c: New file.
7053 * gnulib/import/memrchr.c: New file.
7054 * gnulib/import/msvc-inval.c: New file.
7055 * gnulib/import/msvc-inval.h: New file.
7056 * gnulib/import/msvc-nothrow.c: New file.
7057 * gnulib/import/msvc-nothrow.h: New file.
7058 * gnulib/import/open.c: New file.
7059 * gnulib/import/openat-die.c: New file.
7060 * gnulib/import/openat-priv.h: New file.
7061 * gnulib/import/openat-proc.c: New file.
7062 * gnulib/import/openat.c: New file.
7063 * gnulib/import/openat.h: New file.
7064 * gnulib/import/opendir.c: New file.
7065 * gnulib/import/pipe-safer.c: New file.
7066 * gnulib/import/readdir.c: New file.
7067 * gnulib/import/realloc.c: New file.
7068 * gnulib/import/rewinddir.c: New file.
7069 * gnulib/import/save-cwd.c: New file.
7070 * gnulib/import/save-cwd.h: New file.
7071 * gnulib/import/strdup.c: New file.
7072 * gnulib/import/strerror-override.c: New file.
7073 * gnulib/import/strerror-override.h: New file.
7074 * gnulib/import/strerror.c: New file.
7075 * gnulib/import/unistd--.h: New file.
7076 * gnulib/import/unistd-safer.h: New file.
7077 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7078 "getcwd" and "glob".
7079 * ser-tcp.c: Undefine "close" before redefining it.
7080
432ae719
SM
70812017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7082
7083 * guile/scm-value.c (gdbscm_value_address): Initialize address,
7084 get rid of res_val.
7085
4fa7574e
RO
70862017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7087
7088 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
7089 <sol2,sparc>: Likewise.
7090 <sol2-64,i386>: Likewise.
7091
7092 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
7093 -Wdeprecated-declarations on *-*-solaris*.
7094 * configure: Regenerate.
7095
7096 * procfs.c: Include "nat/inferior.h".
7097 (procfs_info_proc): Fix typo.
7098
f6327dcb
KB
70992017-09-21 Kevin Buettner <kevinb@redhat.com>
7100
7101 * remote.c (vector): Include.
7102 (struct private_thread_info): Add field, thread_handle.
7103 (free_private_thread_info): Deallocate storage associated with
7104 thread handle.
7105 (get_private_info_thread): Initialize `thread_handle' field.
7106 (struct thread_item): Add field, thread_handle.
7107 (clear_threads_listing_context): Deallocate storage associated
7108 with thread handle.
7109 (start_thread): Add support for "handle" attribute.
7110 (thread_attributes): Add "handle".
7111 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
7112 field.
7113 (remote_update_thread_list): Update thread_handle.
7114 (remote_thread_handle_to_thread_info): New function.
7115 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
7116
fbbe5337
KB
71172017-09-21 Kevin Buettner <kevinb@redhat.com>
7118
7119 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7120 function.
7121 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7122 * python/python-internal.h (thread_object_type): Declare.
7123
e04ee09e
KB
71242017-09-21 Kevin Buettner <kevinb@redhat.com>
7125
7126 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7127 (target_thread_handle_to_thread_info): Declare.
7128 * target.c (target_thread_handle_to_thread_info): New function.
7129 * target-delegates.c: Regenerate.
7130 * gdbthread.h (find_thread_by_handle): Declare.
7131 * thread.c (find_thread_by_handle): New function.
7132 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7133 function.
7134 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7135
1e5b66ed
SM
71362017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7137
7138 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7139
ebe48ba0
SM
71402017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7141
7142 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7143
0a0bf5dc
YQ
71442017-09-21 Yao Qi <yao.qi@linaro.org>
7145
7146 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7147 to gdb_target_obs.
7148
d1b0a7bf
TT
71492017-09-20 Tom Tromey <tom@tromey.com>
7150
7151 * breakpoint.c (struct counted_command_line): Remove.
7152 (breakpoint_commands): Update.
7153 (alloc_counted_command_line, incref_counted_command_line)
7154 (decref_counted_command_line, do_cleanup_counted_command_line)
7155 (make_cleanup_decref_counted_command_line): Remove.
7156 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7157 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7158 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7159 (save_breakpoints): Update.
7160 * breakpoint.h (counted_command_line): Now a typedef to
7161 shared_ptr.
7162 (struct breakpoint) <commands>: Now a counted_command_line.
7163 (struct bpstats) <command>: Likewise.
7164
48649e1b
TT
71652017-09-20 Tom Tromey <tom@tromey.com>
7166
7167 * breakpoint.c (struct commands_info, do_map_commands_command):
7168 Remove.
7169 (commands_command_1): Update.
7170 (iterate_over_related_breakpoints): Take a function_view.
7171 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7172 (delete_command): Update.
7173 (map_breakpoint_numbers): Take a function_view.
7174 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7175 (disable_command): Update.
7176 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7177 (enable_command): Update.
7178 (struct disp_data, do_enable_breakpoint_disp)
7179 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7180 (do_map_enable_delete_breakpoint): Remove.
7181 (enable_once_command, enable_count_command, enable_delete_command)
7182 (delete_trace_variable_command): Update.
7183
04afa70c
TT
71842017-09-20 Tom Tromey <tom@tromey.com>
7185
7186 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7187 (bpstat_clear): Use delete.
7188 (bpstats): New constructors.
7189 (bpstat_copy, bpstat_stop_status): Use new.
7190 (dprintf_after_condition_true): Update.
7191 * breakpoint.h (bpstats::bpstats): Add constructors.
7192 (bpstats::~bpstats): Add destructor.
7193
c83833f4
PA
71942017-09-20 Pedro Alves <palves@redhat.com>
7195
7196 * eval.c (make_params): Delete, refactored as ...
7197 (class fake_method): ... this new type's ctor.
7198 (fake_method::~fake_method): New.
7199 (evaluate_subexp_standard): Use 'fake_method'.
7200
223ffa71
TT
72012017-09-20 Tom Tromey <tom@tromey.com>
7202
7203 * windows-nat.c (get_windows_debug_event, windows_wait)
7204 (do_initial_windows_stuff, windows_attach): Update.
7205 * utils.c (vwarning, internal_vproblem): Update.
7206 (ui_unregister_input_event_handler_cleanup)
7207 (prepare_to_handle_input): Remove.
7208 (class scoped_input_handler): New.
7209 (defaulted_query, prompt_for_continue): Update.
7210 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7211 Update.
7212 * top.c (undo_terminal_modifications_before_exit): Update.
7213 * target/target.h (target_terminal_init, target_terminal_inferior)
7214 (target_terminal_ours): Don't declare.
7215 (class target_terminal): New.
7216 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7217 (target_terminal_ours_for_output)
7218 (make_cleanup_restore_target_terminal): Don't declare.
7219 (target_terminal_info): Remove.
7220 * target.c (enum terminal_state, terminal_state): Remove.
7221 (target_terminal::terminal_state): Define.
7222 (target_terminal::init): Rename from target_terminal_init.
7223 (target_terminal::inferior): Rename from
7224 target_terminal_inferior.
7225 (target_terminal::ours): Rename from target_terminal_ours.
7226 (target_terminal::ours_for_output): Rename from
7227 target_terminal_ours_for_output.
7228 (target_terminal::info): New method.
7229 (cleanup_restore_target_terminal)
7230 (make_cleanup_restore_target_terminal): Remove.
7231 * solib.c (handle_solib_event): Update.
7232 * remote.c (remote_serial_quit_handler): Update.
7233 (remote_terminal_inferior, remote_wait_as): Update.
7234 * record-full.c (record_full_wait_1): Update.
7235 * nto-procfs.c (procfs_create_inferior): Update.
7236 * nat/fork-inferior.c (startup_inferior): Update.
7237 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7238 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7239 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7240 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7241 (mi_breakpoint_created, mi_breakpoint_deleted)
7242 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7243 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7244 (mi_user_selected_context_changed, report_initial_inferior):
7245 Update.
7246 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7247 (linux_nat_terminal_inferior): Update.
7248 * infrun.c (follow_fork_inferior)
7249 (handle_vfork_child_exec_or_exit, do_target_resume)
7250 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7251 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7252 Update.
7253 * inflow.c (child_terminal_init, info_terminal_command): Update.
7254 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7255 (attach_command): Update.
7256 * infcall.c (call_thread_fsm_should_stop): Update.
7257 * gnu-nat.c (gnu_attach): Update.
7258 * extension.c (struct active_ext_lang_state)
7259 (restore_active_ext_lang): Update.
7260 * exceptions.c (print_flush): Update.
7261 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7262 (struct quit_handler_cleanup_data, restore_quit_handler)
7263 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7264 Remove.
7265 * cp-support.c (gdb_demangle): Update.
7266 * breakpoint.c (update_inserted_breakpoint_locations)
7267 (insert_breakpoint_locations, handle_jit_event)
7268 (disable_breakpoints_in_unloaded_shlib): Update.
7269 * annotate.c (annotate_breakpoints_invalid)
7270 (annotate_frames_invalid): Update.
7271
013af3fc
TT
72722017-09-20 Tom Tromey <tom@tromey.com>
7273
7274 * main.c (catch_command_errors): Rename from
7275 catch_command_errors_const.
7276 (captured_main_1): Update.
7277
06871ae8
PA
72782017-09-20 Pedro Alves <palves@redhat.com>
7279
7280 * cli/cli-cmds.c (list_command): Use print_sal_location.
7281 (print_sal_location): New function.
7282 (ambiguous_line_spec): Use print_sal_location.
7283 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7284 * symtab.c (find_function_start_sal): Likewise.
7285 * symtab.h (symtab_and_line::symbol): New field.
7286
e5f25bc5
PA
72872017-09-20 Pedro Alves <palves@redhat.com>
7288
7289 * linespec.c (minsym_found): Handle non-text minsyms.
7290 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7291
1b7fa39e
WT
72922017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7293
7294 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7295 backslash.
7296
37dd0825
WT
72972017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7298
7299 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7300 vmovups instead vmovaps.
7301 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7302
4e5a4f58
JB
73032017-09-19 John Baldwin <jhb@FreeBSD.org>
7304
7305 * NEWS (Changes since GDB 8.0): Add starti.
7306 * infcmd.c (enum run_break): New.
7307 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7308 case.
7309 (run_command): Use enum run_how.
7310 (start_command): Likewise.
7311 (starti_command): New function.
7312 (RUN_ARGS_HELP): New macro.
7313 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7314 commands. Add starti command.
7315
aa70c9f1
YQ
73162017-09-19 Yao Qi <yao.qi@linaro.org>
7317
7318 * Makefile.in (monitor.o): Remove the rule.
7319
d6541620
YQ
73202017-09-19 Yao Qi <yao.qi@linaro.org>
7321
7322 * annotate.h (struct annotate_arg_emitter): Use
7323 DISABLE_COPY_AND_ASSIGN.
7324 * common/refcounted-object.h (refcounted_object): Likewise.
7325 * completer.h (struct completion_result): Likewise.
7326 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7327 * filename-seen-cache.h (filename_seen_cache): Likewise.
7328 * gdbcore.h (thread_section_name): Likewise.
7329 * gdb_regex.h (compiled_regex): Likewise.
7330 * gdbthread.h (scoped_restore_current_thread): Likewise.
7331 * inferior.h (scoped_restore_current_inferior): Likewise.
7332 * jit.c (jit_reader): Likewise.
7333 * linespec.h (struct linespec_result): Likewise.
7334 * mi/mi-parse.h (struct mi_parse): Likewise.
7335 * nat/fork-inferior.c (execv_argv): Likewise.
7336 * progspace.h (scoped_restore_current_program_space): Likewise.
7337 * python/python-internal.h (class gdbpy_enter): Likewise.
7338 * regcache.h (regcache): Likewise.
7339 * target-descriptions.c (struct tdesc_reg): Likewise.
7340 (struct tdesc_type): Likewise.
7341 (struct tdesc_feature): Likewise.
7342 * ui-out.h (ui_out_emit_type): Likewise.
7343
0615127c
SM
73442017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7345
7346 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7347 label abort_expression.
7348
5e187554
SM
73492017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7350
7351 * common/buffer.c (buffer_xml_printf): Adjust.
7352 * common/xml-utils.c (xml_escape_text): Change return type to
7353 std::string, update code accordingly.
7354 * common/xml-utils.h (xml_escape_text): Change return type to
7355 std::string.
7356 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7357 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7358 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7359 Adjust.
7360
c3d7b541
SM
73612017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7362
7363 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7364 (SUBDIR_UNITTESTS_OBS): Add new object file.
7365 * unittests/xml-utils-selftests.c: New file.
7366
1526853e
SM
73672017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7368
7369 * common/selftest.h (selftest): New struct/interface.
7370 (register_test): Add name parameter, add new overload.
7371 (run_tests): Add filter parameter.
7372 (for_each_selftest_ftype): New typedef.
7373 (for_each_selftest): New declaration.
7374 * common/selftest.c (tests): Change type to
7375 map<string, unique_ptr<selftest>>.
7376 (simple_selftest): New struct.
7377 (register_test): New function.
7378 (register_test): Add name parameter and use it.
7379 (run_tests): Add filter parameter and use it. Add prints.
7380 Adjust to vector -> map change.
7381 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7382 registering selftests.
7383 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7384 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7385 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7386 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7387 * findvar.c (_initialize_findvar): Likewise.
7388 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7389 * maint.c (maintenance_selftest): Update call to run_tests.
7390 (maintenance_info_selftests): New function.
7391 (_initialize_maint_cmds): Register "maintenance info selftests"
7392 command. Update "maintenance selftest" doc.
7393 * regcache.c (_initialize_regcache): Add names when registering
7394 selftests.
7395 * rust-exp.y (_initialize_rust_exp): Likewise.
7396 * selftest-arch.c (gdbarch_selftest): New struct.
7397 (gdbarch_tests): Remove.
7398 (register_test_foreach_arch): Add name parameter. Call
7399 register_test.
7400 (tests_with_arch): Remove, move most content to
7401 gdbarch_selftest::operator().
7402 (_initialize_selftests_foreach_arch): Remove.
7403 * selftest-arch.h (register_test_foreach_arch): Add name
7404 parameter.
7405 (run_tests_with_arch): New declaration.
7406 * utils-selftests.c (_initialize_utils_selftests): Add names
7407 when registering selftests.
7408 * utils.c (_initialize_utils): Likewise.
7409 * unittests/array-view-selftests.c
7410 (_initialize_array_view_selftests): Likewise.
7411 * unittests/environ-selftests.c (_initialize_environ_selftests):
7412 Likewise.
7413 * unittests/function-view-selftests.c
7414 (_initialize_function_view_selftests): Likewise.
7415 * unittests/offset-type-selftests.c
7416 (_initialize_offset_type_selftests): Likewise.
7417 * unittests/optional-selftests.c
7418 (_initialize_optional_selftests): Likewise.
7419 * unittests/scoped_restore-selftests.c
7420 (_initialize_scoped_restore_selftests): Likewise.
7421 * NEWS: Document "maintenance selftest" and "maint info
7422 selftests".
7423
5846367a
SM
74242017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7425
7426 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7427 scoped_restore.
7428
bd77e8ff
SM
74292017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7430
7431 * mi/mi-main.c (mi_load_progress): Make uiout variable
7432 a unique_ptr.
7433
26a67918
PA
74342017-09-15 Pedro Alves <palves@redhat.com>
7435
7436 * compile/compile-c-types.c (convert_enum, convert_int)
7437 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7438
3f8a7804
SM
74392017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7440
7441 * dwarf2read.c (copy_string): Remove.
7442 (parse_macro_definition): Replace copy_string with savestring.
7443
8d200706
YQ
74442017-09-15 Yao Qi <yao.qi@linaro.org>
7445
7446 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7447 gdb_target_obs.
7448 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7449 Likewise.
7450 (i[34567]86-*-linux*): Likewise.
7451
d185219d
SM
74522017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7453
7454 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7455 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7456 <stack>: Change type to std::vector.
7457 <stack_len, stack_allocated>: Remove.
7458 <grow_stack>: Remove.
7459 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7460 (dwarf_expr_context::~dwarf_expr_context): Remove.
7461 (dwarf_expr_context::grow_stack): Remove.
7462 (dwarf_expr_context::push): Adjust.
7463 (dwarf_expr_context::pop): Adjust.
7464 (dwarf_expr_context::fetch): Adjust.
7465 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7466 (dwarf_expr_context::stack_empty_p): Adjust.
7467 (dwarf_expr_context::execute_stack_op): Adjust.
7468
eccd80d6
SM
74692017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7470
7471 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7472 return type to bool.
7473 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7474
69009882
SM
74752017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7476
7477 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7478 Change type to bool.
7479 (dwarf_stack_value) <in_stack_memory>: Likewise.
7480 (dwarf_expr_context) <push_address>: Change parameter type to
7481 bool.
7482 <fetch_in_stack_memory>: Change return type to bool.
7483 <push>: Change parameter type to bool.
7484 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7485 to bool.
7486 (dwarf_expr_context::push_address): Likewise.
7487 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7488 to bool.
7489 (dwarf_expr_context::execute_stack_op): Adjust.
7490 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7491
1e467161
SM
74922017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7493
7494 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7495 (struct dwarf_expr_context) <n_pieces>: Remove.
7496 <pieces>: Change type to std::vector.
7497 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7498 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7499 pieces.
7500 (dwarf_expr_context::add_piece): Adjust.
7501 * dwarf2loc.c (struct piece_closure): Initialize fields.
7502 <n_pieces>: Remove.
7503 <pieces>: Change type to std::vector.
7504 (allocate_piece_closure): Adjust, change parameter to
7505 std::vector rvalue and std::move it to piece_closure.
7506 (rw_pieced_value): Adjust.
7507 (check_pieced_synthetic_pointer): Adjust.
7508 (indirect_synthetic_pointer): Adjust.
7509 (coerce_pieced_ref): Adjust.
7510 (free_pieced_value_closure): Adjust. Use delete to free
7511 piece_closure.
7512 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7513 to allocate_piece_closure.
7514 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7515
0782db84
SM
75162017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7517
7518 * probe.h (probe_ops_cp): Remove typedef.
7519 (DEF_VEC_P (probe_ops_cp)): Remove.
7520 (all_probe_ops): Change type to std::vector.
7521 * probe.c (info_probes_for_ops): Adjust to vector change.
7522 (probe_linespec_to_ops): Likewise.
7523 (all_probe_ops): Change type to std::vector.
7524 (_initialize_probe): Adjust to vector change.
7525 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7526 * elfread.c (elf_get_probes): Likewise.
7527 * stap-probe.c (_initialize_stap_probe): Likewise.
7528
1eac6bea
SM
75292017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7530
7531 * probe.h (struct bound_probe): Define constructors.
7532 * probe.c (bound_probe_s): Remove typedef.
7533 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7534 (collect_probes): Change return type to std::vector, remove
7535 cleanup.
7536 (compare_probes): Return bool, change parameter type. Change
7537 semantic to "less than".
7538 (gen_ui_out_table_header_info): Change parameter to std::vector
7539 and update.
7540 (exists_probe_with_pops): Likewise.
7541 (info_probes_for_ops): Update to std::vector change.
7542 (enable_probes_command): Likewise.
7543 (disable_probes_command): Likewise.
7544
aaa63a31
SM
75452017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7546
7547 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7548 vec to std::vector.
7549 * probe.c (parse_probes_in_pspace): Update.
7550 (find_probes_in_objfile): Update.
7551 (find_probe_by_pc): Update.
7552 (collect_probes): Update.
7553 (probe_any_get_probes): Update.
7554 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7555 return type to reference to std::vector.
7556 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7557 std::vector and update.
7558 (dtrace_process_dof): Likewise.
7559 (dtrace_get_probes): Likewise.
7560 * elfread.c (elf_get_probes): Change return type to std::vector,
7561 store an std::vector in bfd_data.
7562 (probe_key_free): Update to std::vector.
7563 * stap-probe.c (handle_stap_probe): Change parameter to
7564 std::vector and update.
7565 (stap_get_probes): Likewise.
7566 * symfile-debug.c (debug_sym_get_probes): Change return type to
7567 std::vector and update.
7568
cb85b21b
TT
75692017-09-11 Tom Tromey <tom@tromey.com>
7570
7571 * breakpoint.c (program_breakpoint_here_p): Update.
7572 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7573 from make_show_memory_breakpoints_cleanup. Return a
7574 scoped_restore_tmpl<int>.
7575 (restore_show_memory_breakpoints): Remove.
7576 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7577 * mem-break.c (memory_validate_breakpoint): Update.
7578 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7579 (ia64_memory_remove_breakpoint): Update.
7580 (ia64_breakpoint_from_pc): Update.
7581 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7582 from make_show_memory_breakpoints_cleanup.
7583
8fbc99ef
TT
75842017-09-11 Tom Tromey <tom@tromey.com>
7585
7586 * d-namespace.c (d_lookup_symbol): Use std::string.
7587 (find_symbol_in_baseclass): Likewise.
7588
50feb4bd
TT
75892017-09-11 Tom Tromey <tom@tromey.com>
7590
7591 * ctf.c (ctf_start): Use std::string.
7592
c6dc63a1
TT
75932017-09-11 Tom Tromey <tom@tromey.com>
7594
7595 * ada-lang.c (is_known_support_routine): Update.
7596 (ada_unhandled_exception_name_addr_from_raise): Update.
7597 * guile/scm-frame.c (gdbscm_frame_name): Update.
7598 * python/py-frame.c (frapy_name): Update.
7599 (frapy_function): Update.
7600 * stack.h (find_frame_funname): Update.
7601 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7602 (print_frame): Update.
7603
d6b9b80f
TT
76042017-09-11 Tom Tromey <tom@tromey.com>
7605
7606 * findcmd.c (put_bits): Take a gdb::byte_vector.
7607 (parse_find_args): Return gdb::byte_vector. "args" now const.
7608 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7609 cleanups.
7610 (find_command): Update.
7611
a9921622
TT
76122017-09-11 Tom Tromey <tom@tromey.com>
7613
7614 * cli/cli-script.c (class scoped_restore_hook_in): New.
7615 (clear_hook_in_cleanup): Remove.
7616 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7617 scoped_restore_hook_in.
7618
be0d7abb
TT
76192017-09-11 Tom Tromey <tom@tromey.com>
7620
7621 * cli/cli-script.c (restore_interp): Remove.
7622 (read_command_lines): Use scoped_restore_interp.
7623 * interps.c (scoped_restore_interp::set_temp): Rename from
7624 interp_set_temp.
7625 * interps.h (class scoped_restore_interp): New.
7626 (interp_set_temp): Remove.
7627
00f675ff
TT
76282017-09-11 Tom Tromey <tom@tromey.com>
7629
7630 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7631 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7632 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7633 scoped_restore.
7634 (mi_cmd_break_insert_1): Update.
7635 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7636 scoped_restore.
7637
cb791d59
TT
76382017-09-11 Tom Tromey <tom@tromey.com>
7639
7640 * demangle.c (demangle_command): Update.
7641 * breakpoint.c (disable_command): Update.
7642 (enable_command): Update.
7643 (find_location_by_number): Make "number" const. Use
7644 get_number_trailer.
7645 * cli/cli-utils.c (extract_arg): Return std::string.
7646 * probe.c (parse_probe_linespec): Update. Change types.
7647 (collect_probes): Take string arguments.
7648 (parse_probe_linespec): Likewise.
7649 (info_probes_for_ops): Update.
7650 (enable_probes_command): Update.
7651 (disable_probes_command): Update.
7652 * break-catch-sig.c (catch_signal_split_args): Update.
7653 * mi/mi-parse.c (mi_parse): Update.
7654
2039bd9f
TT
76552017-09-11 Tom Tromey <tom@tromey.com>
7656
7657 * language.h (language_enum): Make argument const.
7658 * language.c (language_enum): Make argument const.
7659
f1735a53
TT
76602017-09-11 Tom Tromey <tom@tromey.com>
7661
7662 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7663 as function.
7664 (skip_to_space): Rename from skip_to_space_const.
7665 * common/common-utils.c (skip_to_space): New function.
7666 (skip_to_space): Rename from skip_to_space_const.
7667 * cli/cli-utils.h (get_number): Rename from get_number_const.
7668 (extract_arg): Rename from extract_arg_const.
7669 * cli/cli-utils.c (get_number): Rename from get_number_const.
7670 (extract_arg): Rename from extract_arg_const.
7671 (number_or_range_parser::get_number): Use ::get_number.
7672 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7673 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7674 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7675 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7676 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7677 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7678 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7679 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7680
7d221d74
TT
76812017-09-11 Tom Tromey <tom@tromey.com>
7682
7683 * python/python.c (do_start_initialization): Use
7684 py-event-types.def to initialize types.
7685 Define all object type structures.
7686 * python/python-internal.h: Don't declare event initialization
7687 functions.
7688 * python/py-threadevent.c (thread_event_object_type): Don't
7689 define.
7690 * python/py-stopevent.c (stop_event_object_type): Don't define.
7691 * python/py-signalevent.c (signal_event_object_type): Don't
7692 declare or define.
7693 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7694 (clear_objfiles_event_object_type): Don't declare or define.
7695 * python/py-infevents.c (inferior_call_pre_event_object_type)
7696 (inferior_call_post_event_object_type)
7697 (register_changed_event_object_type)
7698 (memory_changed_event_object_type): Don't declare or define.
7699 * python/py-inferior.c (new_thread_event_object_type)
7700 (new_inferior_event_object_type)
7701 (inferior_deleted_event_object_type): Don't declare or define.
7702 * python/py-exitedevent.c (exited_event_object_type): Don't
7703 declare or define.
7704 * python/py-evts.c (gdbpy_initialize_py_events): Use
7705 py-all-events.def.
7706 * python/py-events.h (thread_event_object_type): Don't declare.
7707 (events_object): Use py-all-events.def.
7708 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7709 py-event-types.def.
7710 * python/py-event-types.def: New file.
7711 * python/py-continueevent.c (create_continue_event_object): Don't
7712 declare or define.
7713 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7714 declare or define.
7715 * python/py-all-events.def: New file.
7716
35c61a1d
TT
77172017-09-11 Tom Tromey <tom@tromey.com>
7718
7719 * python/py-threadevent.c (create_thread_event_object): Return
7720 gdbpy_ref.
7721 * python/py-stopevent.h (create_stop_event_object)
7722 (create_breakpoint_event_object, create_signal_event_object):
7723 Update.
7724 * python/py-stopevent.c (create_stop_event_object): Return
7725 gdbpy_ref.
7726 (emit_stop_event): Update.
7727 * python/py-signalevent.c (create_signal_event_object): Return
7728 gdbpy_ref.
7729 * python/py-infevents.c (create_inferior_call_event_object):
7730 Update.
7731 * python/py-event.h (create_event_object)
7732 (create_thread_event_object): Update.
7733 * python/py-event.c (create_event_object): Return gdbpy_ref.
7734 * python/py-continueevent.c: Return gdbpy_ref.
7735 * python/py-bpevent.c (create_breakpoint_event_object): Return
7736 gdbpy_ref.
7737
7c96f8c1
TT
77382017-09-11 Tom Tromey <tom@tromey.com>
7739
7740 PR python/15622:
7741 * NEWS: Add entry.
7742 * python/python.c (do_start_initialization): Initialize new event
7743 types.
7744 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7745 (gdbpy_initialize_inferior_deleted_event)
7746 (gdbpy_initialize_new_thread_event): Declare.
7747 * python/py-threadevent.c (create_thread_event_object): Add option
7748 "thread" parameter.
7749 * python/py-inferior.c (new_thread_event_object_type)
7750 (new_inferior_event_object_type)
7751 (inferior_deleted_event_object_type): Declare.
7752 (python_new_inferior, python_inferior_deleted): New functions.
7753 (add_thread_object): Emit new_thread event.
7754 (gdbpy_initialize_inferior): Attach new functions to corresponding
7755 observers.
7756 (new_thread, new_inferior, inferior_deleted): Define new event
7757 types.
7758 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7759 registries.
7760 * python/py-events.h (events_object) <new_inferior,
7761 inferior_deleted, new_thread>: New fields.
7762 * python/py-event.h (create_thread_event_breakpoint): Add optional
7763 "thread" parameter.
7764
72542b8e
AB
77652017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7766
7767 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7768 check current_ui instead.
7769 (internal_vproblem): Likewise.
7770
0d64823e
SM
77712017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7772
7773 * thread.c (print_thread_info_1): Remove unnecessary calls to
7774 uiout->is_mi_like_p.
7775
eb1e02fd
TT
77762017-09-09 Tom Tromey <tom@tromey.com>
7777
7778 * namespace.h (add_using_directive): Update.
7779 * namespace.c (add_using_directive): Change type of excludes to
7780 std::vector.
7781 * dwarf2read.c (read_import_statement): Use std::vector.
7782 (read_namespace): Update.
7783 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7784
0fc21fd8
TT
77852017-09-09 Tom Tromey <tom@tromey.com>
7786
7787 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7788
49663d05
TT
77892017-09-09 Tom Tromey <tom@tromey.com>
7790
7791 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7792
0b868b60
TT
77932017-09-09 Tom Tromey <tom@tromey.com>
7794
7795 * stack.c (func_command): Use gdb::def_vector.
7796
c0470d48
TT
77972017-09-09 Tom Tromey <tom@tromey.com>
7798
7799 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7800 ui_out_emit_list, ui_out_emit_tuple.
7801 (mi_cmd_var_update): Likewise.
7802
ca5909c7
TT
78032017-09-09 Tom Tromey <tom@tromey.com>
7804
7805 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7806 ui_out_redirect_pop.
7807 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7808 ui_out_redirect_pop.
7809 * utils.c (do_ui_out_redirect_pop)
7810 (make_cleanup_ui_out_redirect_pop): Remove.
7811 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7812 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7813 * ui-out.h (ui_out_redirect_pop): New class.
7814
e6a2252a
TT
78152017-09-09 Tom Tromey <tom@tromey.com>
7816
7817 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7818 (list_available_thread_groups, mi_cmd_list_thread_groups)
7819 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7820 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7821 Likewise.
7822
393702cd
TT
78232017-09-09 Tom Tromey <tom@tromey.com>
7824
7825 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7826 ui_out_emit_tuple.
7827
76f9c9cf
TT
78282017-09-09 Tom Tromey <tom@tromey.com>
7829
7830 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7831 * stack.c (print_frame): Use ui_out_emit_tuple.
7832 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7833 (info_spu_mailbox_command, info_spu_dma_command)
7834 (info_spu_proxydma_command): Likewise.
7835 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7836 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7837 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7838 ui_out_emit_tuple.
7839 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7840
dc9fe180
TT
78412017-09-09 Tom Tromey <tom@tromey.com>
7842
7843 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7844 (class ui_out_emit_table): Update comment.
7845 * ui-out.c (do_cleanup_table_end)
7846 (make_cleanup_ui_out_table_begin_end): Remove.
7847 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7848 (info_spu_dma_cmdlist): Likewise.
7849 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7850 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7851 ui_out_emit_table.
7852
f8cc3da6
TT
78532017-09-09 Tom Tromey <tom@tromey.com>
7854
7855 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7856 ui_out_emit_list, gdb::optional.
7857
481695ed
JB
78582017-09-09 John Baldwin <jhb@FreeBSD.org>
7859
7860 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7861 prototype.
7862 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7863 prototype.
7864 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7865 prototype.
7866 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7867 * ada-exp.y: Remove _initialize_ada_exp prototype.
7868 * ada-lang.c: Remove _initialize_ada_language prototype.
7869 * ada-tasks.c: Remove _initialize_tasks prototype.
7870 * addrmap.c: Remove _initialize_addrmap prototype.
7871 * agent.c: Remove _initialize_agent prototype.
7872 * aix-thread.c: Remove _initialize_aix_thread prototype.
7873 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7874 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7875 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7876 prototype.
7877 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7878 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7879 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7880 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7881 prototype.
7882 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7883 prototype.
7884 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7885 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7886 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7887 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7888 prototype.
7889 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7890 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7891 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7892 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7893 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7894 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7895 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7896 prototype.
7897 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7898 prototype.
7899 * annotate.c: Remove _initialize_annotate prototype.
7900 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7901 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7902 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7903 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7904 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7905 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7906 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7907 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7908 prototype.
7909 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7910 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7911 * auto-load.c: Remove _initialize_auto_load prototype.
7912 * auxv.c: Remove _initialize_auxv prototype.
7913 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7914 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7915 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7916 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7917 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7918 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7919 prototype.
7920 * break-catch-throw.c: Remove _initialize_break_catch_throw
7921 prototype.
7922 * breakpoint.c: Remove _initialize_breakpoint prototype.
7923 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7924 * btrace.c: Remove _initialize_btrace prototype.
7925 * charset.c: Remove _initialize_charset prototype.
7926 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7927 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7928 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7929 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7930 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7931 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7932 * coffread.c: Remove _initialize_coffread prototype.
7933 * compile/compile.c: Remove _initialize_compile prototype.
7934 * complaints.c: Remove _initialize_complaints prototype.
7935 * completer.c: Remove _initialize_completer prototype.
7936 * copying.awk: Remove _initialize_copying prototype.
7937 * copying.c: Regenerate.
7938 * core-regset.c: Remove _initialize_core_regset prototype.
7939 * corefile.c: Remove _initialize_core prototype.
7940 * corelow.c: Remove _initialize_corelow prototype.
7941 * cp-abi.c: Remove _initialize_cp_abi prototype.
7942 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7943 * cp-support.c: Remove _initialize_cp_support prototype.
7944 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7945 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7946 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7947 * ctf.c: Remove _initialize_ctf prototype.
7948 * d-lang.c: Remove _initialize_d_language prototype.
7949 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7950 prototype.
7951 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7952 * dbxread.c: Remove _initialize_dbxread prototype.
7953 * dcache.c: Remove _initialize_dcache prototype.
7954 * demangle.c: Remove _initialize_demangler prototype.
7955 * disasm-selftests.c: Remove _initialize_disasm_selftests
7956 prototype.
7957 * disasm.c: Remove _initialize_disasm prototype.
7958 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7959 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7960 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7961 prototype.
7962 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7963 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7964 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7965 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7966 * elfread.c: Remove _initialize_elfread prototype.
7967 * exec.c: Remove _initialize_exec prototype.
7968 * extension.c: Remove _initialize_extension prototype.
7969 * f-lang.c: Remove _initialize_f_language prototype.
7970 * f-valprint.c: Remove _initialize_f_valprint prototype.
7971 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7972 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7973 * filesystem.c: Remove _initialize_filesystem prototype.
7974 * findcmd.c: Remove _initialize_mem_search prototype.
7975 * fork-child.c: Remove _initialize_fork_child prototype.
7976 * frame-base.c: Remove _initialize_frame_base prototype.
7977 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7978 * frame.c: Remove _initialize_frame prototype.
7979 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7980 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7981 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7982 * gcore.c: Remove _initialize_gcore prototype.
7983 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7984 * gdbarch.c: Regenerate.
7985 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7986 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7987 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7988 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7989 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7990 * go-lang.c: Remove _initialize_go_language prototype.
7991 * go32-nat.c: Remove _initialize_go32_nat prototype.
7992 * guile/guile.c: Remove _initialize_guile prototype.
7993 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7994 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7995 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7996 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7997 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7998 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7999 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
8000 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
8001 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
8002 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
8003 prototype.
8004 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
8005 prototype.
8006 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
8007 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
8008 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
8009 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
8010 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
8011 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
8012 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
8013 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
8014 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
8015 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
8016 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
8017 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
8018 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
8019 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
8020 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
8021 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
8022 prototype.
8023 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
8024 prototype.
8025 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
8026 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
8027 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
8028 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
8029 * infcall.c: Remove _initialize_infcall prototype.
8030 * infcmd.c: Remove _initialize_infcmd prototype.
8031 * inferior.c: Remove _initialize_inferiors prototype.
8032 * inflow.c: Remove _initialize_inflow prototype.
8033 * infrun.c: Remove _initialize_infrun prototype.
8034 * interps.c: Remove _initialize_interpreter prototype.
8035 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
8036 * jit.c: Remove _initialize_jit prototype.
8037 * language.c: Remove _initialize_language prototype.
8038 * linux-fork.c: Remove _initialize_linux_fork prototype.
8039 * linux-nat.c: Remove _initialize_linux_nat prototype.
8040 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
8041 * linux-thread-db.c: Remove _initialize_thread_db prototype.
8042 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
8043 * m2-lang.c: Remove _initialize_m2_language prototype.
8044 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
8045 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
8046 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
8047 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
8048 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
8049 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8050 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8051 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
8052 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
8053 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
8054 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
8055 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
8056 * machoread.c: Remove _initialize_machoread prototype.
8057 * macrocmd.c: Remove _initialize_macrocmd prototype.
8058 * macroscope.c: Remove _initialize_macroscope prototype.
8059 * maint.c: Remove _initialize_maint_cmds prototype.
8060 * mdebugread.c: Remove _initialize_mdebugread prototype.
8061 * memattr.c: Remove _initialize_mem prototype.
8062 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
8063 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
8064 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
8065 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
8066 * mi/mi-main.c: Remove _initialize_mi_main prototype.
8067 * microblaze-linux-tdep.c: Remove
8068 _initialize_microblaze_linux_tdep prototype.
8069 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
8070 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
8071 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
8072 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
8073 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
8074 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
8075 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
8076 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
8077 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
8078 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
8079 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
8080 prototype.
8081 * mipsread.c: Remove _initialize_mipsread prototype.
8082 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
8083 prototype.
8084 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
8085 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
8086 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
8087 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
8088 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
8089 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
8090 prototype.
8091 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
8092 * nto-procfs.c: Remove _initialize_procfs prototype.
8093 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
8094 * objc-lang.c: Remove _initialize_objc_language prototype.
8095 * objfiles.c: Remove _initialize_objfiles prototype.
8096 * observer.c: Remove observer_test_first_notification_function,
8097 observer_test_second_notification_function,
8098 observer_test_third_notification_function, and
8099 _initialize_observer prototypes.
8100 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
8101 * osabi.c: Remove _initialize_gdb_osabi prototype.
8102 * osdata.c: Remove _initialize_osdata prototype.
8103 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
8104 * parse.c: Remove _initialize_parse prototype.
8105 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
8106 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
8107 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
8108 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
8109 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
8110 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
8111 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
8112 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
8113 * printcmd.c: Remove _initialize_printcmd prototype.
8114 * probe.c: Remove _initialize_probe prototype.
8115 * proc-api.c: Remove _initialize_proc_api prototype.
8116 * proc-events.c: Remove _initialize_proc_events prototype.
8117 * proc-service.c: Remove _initialize_proc_service prototype.
8118 * procfs.c: Remove _initialize_procfs prototype.
8119 * psymtab.c: Remove _initialize_psymtab prototype.
8120 * python/python.c: Remove _initialize_python prototype.
8121 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8122 * record-btrace.c: Remove _initialize_record_btrace prototype.
8123 * record-full.c: Remove _initialize_record_full prototype.
8124 * record.c: Remove _initialize_record prototype.
8125 * regcache.c: Remove _initialize_regcache prototype.
8126 * reggroups.c: Remove _initialize_reggroup prototype.
8127 * remote-notif.c: Remove _initialize_notif prototype.
8128 * remote-sim.c: Remove _initialize_remote_sim prototype.
8129 * remote.c: Remove _initialize_remote prototype.
8130 * reverse.c: Remove _initialize_reverse prototype.
8131 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8132 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8133 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8134 prototype.
8135 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8136 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8137 * rust-exp.y: Remove _initialize_rust_exp prototype.
8138 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8139 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8140 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8141 * score-tdep.c: Remove _initialize_score_tdep prototype.
8142 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8143 prototype.
8144 * ser-go32.c: Remove _initialize_ser_dos prototype.
8145 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8146 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8147 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8148 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8149 * serial.c: Remove _initialize_serial prototype.
8150 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8151 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8152 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8153 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8154 * skip.c: Remove _initialize_step_skip prototype.
8155 * sol-thread.c: Remove _initialize_sol_thread prototype.
8156 * solib-aix.c: Remove _initialize_solib_aix prototype.
8157 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8158 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8159 * solib-frv.c: Remove _initialize_frv_solib prototype.
8160 * solib-spu.c: Remove _initialize_spu_solib prototype.
8161 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8162 * solib-target.c: Remove _initialize_solib_target prototype.
8163 * solib.c: Remove _initialize_solib prototype.
8164 * source.c: Remove _initialize_source prototype.
8165 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8166 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8167 prototype.
8168 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8169 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8170 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8171 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8172 prototype.
8173 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8174 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8175 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8176 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8177 prototype.
8178 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8179 prototype.
8180 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8181 prototype.
8182 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8183 prototype.
8184 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8185 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8186 prototype.
8187 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8188 prototype.
8189 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8190 prototype.
8191 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8192 prototype.
8193 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8194 prototype.
8195 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8196 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8197 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8198 * stabsread.c: Remove _initialize_stabsread prototype.
8199 * stack.c: Remove _initialize_stack prototype.
8200 * stap-probe.c: Remove _initialize_stap_probe prototype.
8201 * std-regs.c: Remove _initialize_frame_reg prototype.
8202 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8203 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8204 * symfile.c: Remove _initialize_symfile prototype.
8205 * symmisc.c: Remove _initialize_symmisc prototype.
8206 * symtab.c: Remove _initialize_symtab prototype.
8207 * target-dcache.c: Remove _initialize_target_dcache prototype.
8208 * target-descriptions.c: Remove _initialize_target_descriptions
8209 prototype.
8210 * thread.c: Remove _initialize_thread prototype.
8211 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8212 prototype.
8213 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8214 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8215 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8216 prototype.
8217 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8218 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8219 * tracefile.c: Remove _initialize_tracefile prototype.
8220 * tracepoint.c: Remove _initialize_tracepoint prototype.
8221 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8222 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8223 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8224 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8225 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8226 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8227 * tui/tui.c: Remove _initialize_tui prototype.
8228 * typeprint.c: Remove _initialize_typeprint prototype.
8229 * user-regs.c: Remove _initialize_user_regs prototype.
8230 * utils.c: Remove _initialize_utils prototype.
8231 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8232 * valarith.c: Remove _initialize_valarith prototype.
8233 * valops.c: Remove _initialize_valops prototype.
8234 * valprint.c: Remove _initialize_valprint prototype.
8235 * value.c: Remove _initialize_values prototype.
8236 * varobj.c: Remove _initialize_varobj prototype.
8237 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8238 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8239 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8240 * windows-nat.c: Remove _initialize_windows_nat,
8241 _initialize_check_for_gdb_ini, and _initialize_loadable
8242 prototypes.
8243 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8244 * xcoffread.c: Remove _initialize_xcoffread prototype.
8245 * xml-support.c: Remove _initialize_xml_support prototype.
8246 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8247 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8248 prototype.
8249 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8250 prototype.
8251 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8252
a611b5cb
KS
82532017-09-08 Keith Seitz <keiths@redhat.com>
8254
8255 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8256 field.
8257
469412dd
CW
82582017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8259
8260 * f-valprint.c (f_val_print): Remove check for one byte
8261 sized integers. Remove printing of character type.
8262
a5ad232b
FP
82632017-09-08 Frank Penczek <frank.penczek@intel.com>
8264 Christoph Weinmann <christoph.t.weinmann@intel.com>
8265 Bernhard Heckel <bernhard.heckel@intel.com>
8266
8267 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8268 to maintain proper indentation when printing pointers/refs.
8269
e5014227
JB
82702017-09-07 Joel Brobecker <brobecker@adacore.com>
8271
8272 GDB 8.0.1 released.
8273
63c99141
JB
82742017-09-07 Joel Brobecker <brobecker@adacore.com>
8275
8276 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8277
69c1e056
TT
82782017-09-05 Tom Tromey <tom@tromey.com>
8279
8280 * parse.c (funcall_chain): Now a std::vector.
8281 (start_arglist, end_arglist): Simplify.
8282 (free_funcalls): Remove.
8283 (parse_exp_in_context_1): Remove cleanup.
8284
fef704bf
TT
82852017-09-05 Tom Tromey <tom@tromey.com>
8286
8287 * go-exp.y (go_parse): Don't create a cleanup.
8288
5613c585
TT
82892017-09-05 Tom Tromey <tom@tromey.com>
8290
8291 * d-exp.y (PrimaryExpression): Use std::string.
8292 (d_parse): Don't create a cleanup.
8293
eae49211
TT
82942017-09-05 Tom Tromey <tom@tromey.com>
8295
8296 * utils.c (do_clear_parser_state): Remove.
8297 (make_cleanup_clear_parser_state): Remove.
8298 * p-exp.y (pascal_parse): Use scoped_restore.
8299 * m2-exp.y (m2_parse): Use scoped_restore.
8300 * f-exp.y (f_parse): Use scoped_restore.
8301 * d-exp.y (d_parse): Use scoped_restore.
8302 * c-exp.y (c_parse): Use scoped_restore.
8303 * ada-exp.y (ada_parse): Use scoped_restore.
8304 * utils.h (make_cleanup_clear_parser_state): Remove.
8305
73b9be8b
KS
83062017-09-06 Keith Seitz <keiths@redhat.com>
8307
8308 * dwarf2read.c (dw2_linkage_name_attr): New function.
8309 (dw2_linkage_name): New function.
8310 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8311 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8312 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8313
a102602b
KR
83142017-09-06 Kamil Rytarowski <n54@gmx.com>
8315
8316 * config/djgpp/djconfig.sh: Correct shell portability issue.
8317
28ad437d
KR
83182017-09-06 Kamil Rytarowski <n54@gmx.com>
8319
8320 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8321
351787dd
JB
83222017-09-06 John Baldwin <jhb@FreeBSD.org>
8323
8324 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8325 * NEWS: Mention new FreeBSD/mips native configuration.
8326 * configure.host: Add aarch64*-*-freebsd*.
8327 * configure.nat: Likewise.
8328 * aarch64-fbsd-nat.c: New file.
8329
c0f84956
JB
83302017-09-06 John Baldwin <jhb@FreeBSD.org>
8331
8332 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8333 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8334 * NEWS: Mention new FreeBSD/aarch64 target.
8335 * configure.tgt: Add aarch64*-*-freebsd*.
8336 * aarch64-fbsd-tdep.c: New file.
8337 * aarch64-fbsd-tdep.h: New file.
8338
7610297a
KR
83392017-09-06 Kamil Rytarowski <n54@gmx.com>
8340
8341 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8342
fbd1b771
JK
83432017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8344
8345 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8346 of TLS symbols.
8347
5ca79eae
PW
83482017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8349
8350 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8351 call.
8352
bf93d7ba
SM
83532017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8354
8355 * infrun.c (follow_exec): Call add_thread after
8356 target_find_description.
8357
1bb7c059
SM
83582017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8359
8360 * infrun.c (handle_inferior_event_1): When exec'ing, read
8361 stop_pc after follow_exec.
8362
fc809827
SM
83632017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8364
8365 * remote.c (process_g_packet): Update error message.
8366
d2fcdd85
YQ
83672017-09-05 Yao Qi <yao.qi@linaro.org>
8368
8369 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8370 targets.
8371
e69570ee
PA
83722017-09-05 Pedro Alves <palves@redhat.com>
8373
8374 * eval.c (eval_call, evaluate_funcall): New functions, factored
8375 out from ...
8376 (evaluate_subexp_standard): ... this.
8377
22916b07
YQ
83782017-09-05 Yao Qi <yao.qi@linaro.org>
8379
8380 * amd64-tdep.c (amd64_target_description): Create target
8381 descriptions.
8382 (_initialize_amd64_tdep): Don't call functions
8383 initialize_tdesc_amd64_*. Add self tests.
8384 * arch/amd64.c (amd64_create_target_description): Add parameter
8385 is_linux. Call set_tdesc_osabi if is_linux is true.
8386 * arch/amd64.h (amd64_create_target_description): Update the
8387 declaration.
8388 * arch/i386.c (i386_create_target_description): Add parameter
8389 is_linux. Call set_tdesc_osabi if is_linux is true.
8390 * arch/i386.h (i386_create_target_description): Update
8391 declaration.
8392 * configure.tgt: Add i386.o to gdb_target_obs.
8393 * features/Makefile (XMLTOC): Remove i386/*.xml.
8394 * features/i386/amd64-avx-avx512.c: Remove.
8395 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8396 * features/i386/amd64-avx-mpx.c: Remove.
8397 * features/i386/amd64-avx.c: Remove.
8398 * features/i386/amd64-mpx.c: Remove.
8399 * features/i386/amd64.c: Remove.
8400 * features/i386/i386-avx-avx512.c: Remove.
8401 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8402 * features/i386/i386-avx-mpx.c: Remove.
8403 * features/i386/i386-avx.c: Remove.
8404 * features/i386/i386-mmx.c: Remove.
8405 * features/i386/i386-mpx.c: Remove.
8406 * features/i386/i386.c: Remove.
8407 * i386-tdep.c: Don't include features/i386/i386*.c., include
8408 target-descriptions.h and arch/i386.h.
8409 (i386_target_description): Create target descriptions.
8410 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8411 functions. Do self tests.
8412
0854b7b1
YQ
84132017-09-05 Yao Qi <yao.qi@linaro.org>
8414
8415 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8416 * features/i386/amd64-avx-avx512-linux.c: Removed.
8417 * features/i386/amd64-avx-linux.c: Removed.
8418 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8419 * features/i386/amd64-avx-mpx-linux.c: Removed.
8420 * features/i386/amd64-linux.c: Removed.
8421 * features/i386/amd64-mpx-linux.c: Removed.
8422 * features/i386/x32-avx-avx512-linux.c: Removed.
8423 * features/i386/x32-avx-linux.c: Removed.
8424 * features/i386/x32-linux.c: Removed.
8425
b4570e4b
YQ
84262017-09-05 Yao Qi <yao.qi@linaro.org>
8427
8428 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8429 features/i386/*.c.
8430 (amd64_linux_read_description): Call
8431 amd64_create_target_description.
8432 * arch/amd64.c: New file.
8433 * arch/amd64.h: New file.
8434 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8435 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8436
6c73f67f
YQ
84372017-09-05 Yao Qi <yao.qi@linaro.org>
8438
8439 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8440 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8441 (amd64_linux_read_description): Create target descriptions.
8442 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8443 functions. Add unit tests.
8444 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8445 x32-core.xml.
8446 * features/i386/64bit-avx.c: Generated.
8447 * features/i386/64bit-avx512.c: Generated.
8448 * features/i386/64bit-core.c: Generated.
8449 * features/i386/64bit-linux.c: Generated.
8450 * features/i386/64bit-mpx.c: Generated.
8451 * features/i386/64bit-pkeys.c: Generated.
8452 * features/i386/64bit-segments.c: Generated.
8453 * features/i386/64bit-sse.c: Generated.
8454 * features/i386/x32-core.c: Generated.
8455 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8456 c files for amd64-linux and x32-linux.
8457
9d3d478b
YQ
84582017-09-05 Yao Qi <yao.qi@linaro.org>
8459
8460 * amd64-linux-tdep.c (amd64_linux_read_description): New
8461 function.
8462 (amd64_linux_core_read_description): Call
8463 amd64_linux_read_description.
8464 (amd64_linux_init_abi): Likewise.
8465 (amd64_x32_linux_init_abi): Likewise.
8466 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8467 * x86-linux-nat.c (x86_linux_read_description): Call
8468 amd64_linux_read_description.
8469
b9f1d50f
YQ
84702017-09-05 Yao Qi <yao.qi@linaro.org>
8471
8472 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8473 comments.
8474
188c9e6d
YQ
84752017-09-05 Yao Qi <yao.qi@linaro.org>
8476
8477 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8478 * features/i386/i386-avx-avx512-linux.c: Remove.
8479 * features/i386/i386-avx-linux.c: Remove.
8480 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8481 * features/i386/i386-avx-mpx-linux.c: Remove.
8482 * features/i386/i386-linux.c: Remove.
8483 * features/i386/i386-mmx-linux.c: Remove.
8484 * features/i386/i386-mpx-linux.c: Remove.
8485
5f035c07
YQ
84862017-09-05 Yao Qi <yao.qi@linaro.org>
8487
8488 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8489 (SFILES): Add arch/i386.c.
8490 (HFILES_NO_SRCDIR): Add arch/i386.h.
8491 * arch/i386.c: New file.
8492 * arch/i386.h: New file.
8493 * arch/tdesc.h (allocate_target_description): Declare.
8494 (set_tdesc_architecture): Declare.
8495 (set_tdesc_osabi): Declare.
8496 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8497 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8498 include arch/i386.h.
8499 (i386_linux_read_description): Remove code and call
8500 i386_create_target_description.
8501 (set_tdesc_architecture): New function.
8502 (set_tdesc_osabi): New function.
8503 * target-descriptions.h (allocate_target_description): Remove.
8504
0abe8a89
YQ
85052017-09-05 Yao Qi <yao.qi@linaro.org>
8506
8507 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8508 * target-descriptions.c (tdesc_create_feature): Likewise, and
8509 adjust code.
8510 * features/i386/32bit-avx.c: Re-generated.
8511 * features/i386/32bit-avx512.c: Re-generated.
8512 * features/i386/32bit-core.c: Re-generated.
8513 * features/i386/32bit-linux.c: Re-generated.
8514 * features/i386/32bit-mpx.c: Re-generated.
8515 * features/i386/32bit-pkeys.c: Re-generated.
8516 * features/i386/32bit-sse.c: Re-generated.
8517
0a188386
YQ
85182017-09-05 Yao Qi <yao.qi@linaro.org>
8519
8520 * regformats/regdef.h (struct reg): Override operator == and !=.
8521
f49ff000
YQ
85222017-09-05 Yao Qi <yao.qi@linaro.org>
8523
8524 * arch/tdesc.h: New file.
8525 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8526 * target-descriptions.c: Update comments.
8527 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8528 declarations.
8529 * features/i386/32bit-avx.c: Re-generated.
8530 * features/i386/32bit-avx512.c: Re-generated.
8531 * features/i386/32bit-core.c: Re-generated.
8532 * features/i386/32bit-linux.c: Re-generated.
8533 * features/i386/32bit-mpx.c: Re-generated.
8534 * features/i386/32bit-pkeys.c: Re-generated.
8535 * features/i386/32bit-sse.c: Re-generated.
8536
f7000548
YQ
85372017-09-05 Yao Qi <yao.qi@linaro.org>
8538
8539 * regformats/regdat.sh: Update generated code.
8540
c9a5e2a5
YQ
85412017-09-05 Yao Qi <yao.qi@linaro.org>
8542
8543 * regformats/regdat.sh: Adjust code order.
8544
d6b687ac
SM
85452017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8546
8547 * expprint.c (dump_subexp_body_standard): Use constant format
8548 string in fprintf_filtered call.
8549
a379bfd0
JB
85502017-09-04 John Baldwin <jhb@FreeBSD.org>
8551
8552 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8553 NetBSD/i386.
8554 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8555
f7efc967
JB
85562017-09-04 John Baldwin <jhb@FreeBSD.org>
8557
8558 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8559
c49fbc6c
JB
85602017-09-04 John Baldwin <jhb@FreeBSD.org>
8561
8562 * bsd-kvm.o: Define _KMEMUSER.
8563 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8564 * configure: Regenerate.
8565
26562e73
JB
85662017-09-04 John Baldwin <jhb@FreeBSD.org>
8567
8568 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8569 * i386-fbsd-nat.c: Likewise.
8570
31cf1487
JB
85712017-09-04 John Baldwin <jhb@FreeBSD.org>
8572
8573 * unittests/array-view-selftests.c: Add include of <array>.
8574
5b9f8a7c
JB
85752017-09-04 John Baldwin <jhb@FreeBSD.org>
8576
8577 * spu-tdep.c (flush_ea_cache): Add missing argument to
8578 call_function_by_hand.
8579
d69cf9b2
PA
85802017-09-04 Pedro Alves <palves@redhat.com>
8581
8582 * NEWS (Safer support for debugging with no debug info): New.
8583
3693fdb3
PA
85842017-09-04 Pedro Alves <palves@redhat.com>
8585
8586 * c-exp.y (function_method, function_method_void): Add current
8587 instance flags to TYPE_INSTANCE.
8588 * dwarf2read.c (check_modifier): New.
8589 (compute_delayed_physnames): Assert that only C++ adds delayed
8590 physnames. Mark fn_fields as const/volatile depending on
8591 physname.
8592 * eval.c (make_params): New type_instance_flags parameter. Use
8593 it as the new type's instance flags.
8594 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8595 flags element and pass it to make_params.
8596 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8597 instance flags element.
8598 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8599 * gdbtypes.h: Include "enum-flags.h".
8600 (type_instance_flags): New enum-flags type.
8601 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8602 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8603 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8604 (follow_type_instance_flags): New function.
8605 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8606 * parser-defs.h (follow_type_instance_flags): Declare.
8607 * valops.c (value_struct_elt_for_reference): const/volatile must
8608 match too.
8609
e68cb8e0
PA
86102017-09-04 Pedro Alves <palves@redhat.com>
8611
8612 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8613 function/method scopes; lookup the nested name as a function local
8614 static variable.
8615
858be34c
PA
86162017-09-04 Pedro Alves <palves@redhat.com>
8617
8618 (%type <voidval>): Add function_method.
8619 * c-exp.y (exp): New production for calls with no arguments.
8620 (function_method, function_method_void_or_typelist): New
8621 productions.
8622 (exp): New production for "method()::static_var".
8623 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8624 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8625 Handle OP_FUNC_STATIC_VAR.
8626 * parse.c (operator_length_standard):
8627 Handle OP_FUNC_STATIC_VAR.
8628
dd5901a6
PA
86292017-09-04 Pedro Alves <palves@redhat.com>
8630
8631 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8632 handling.
8633 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8634 Ditto.
8635 * parse.c (operator_length_standard, operator_check_standard):
8636 Ditto.
8637 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8638
46a4882b
PA
86392017-09-04 Pedro Alves <palves@redhat.com>
8640
8641 * ax-gdb.c: Include "typeprint.h".
8642 (gen_expr_for_cast): New function.
8643 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8644 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8645 type is unknown.
8646 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8647 nodebug_data_symbol.
8648 * eval.c: Include "typeprint.h".
8649 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8650 Error out if symbol has unknown type.
8651 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8652 evaluate_subexp_for_cast.
8653 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8654 OP_VAR_MSYM_VALUE.
8655 (evaluate_subexp_for_cast): New function.
8656 * gdbtypes.c (init_nodebug_var_type): New function.
8657 (objfile_type): Use it to initialize types of variables with no
8658 debug info.
8659 * typeprint.c (error_unknown_type): New.
8660 * typeprint.h (error_unknown_type): New declaration.
8661 * compile/compile-c-types.c (convert_type_basic): Handle
8662 TYPE_CODE_ERROR; warn and fallback to int for variables with
8663 unknown type.
8664
fe13dfec
PA
86652017-09-04 Pedro Alves <palves@redhat.com>
8666
8667 * eval.c (evaluate_var_value): New function, factored out from ...
8668 (evaluate_subexp_standard): ... here.
8669
d008ee21
PA
86702017-09-04 Pedro Alves <palves@redhat.com>
8671
8672 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8673 Remove useless assignments to 'op'.
8674
827d0c51
PA
86752017-09-04 Pedro Alves <palves@redhat.com>
8676
8677 * eval.c (eval_skip_value): New function.
8678 (evaluate_subexp_standard): Use it.
8679
2c5a2be1
PA
86802017-09-04 Pedro Alves <palves@redhat.com>
8681
8682 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8683 function name from symbol/minsym and pass it to
8684 error_call_unknown_return_type.
8685
74ea4be4
PA
86862017-09-04 Pedro Alves <palves@redhat.com>
8687
8688 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8689 * ax-gdb.c (gen_msym_var_ref): New function.
8690 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8691 * eval.c (evaluate_var_msym_value): New function.
8692 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8693 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8694 to call_function_by_hand.
8695 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8696 Handle OP_VAR_MSYM_VALUE.
8697 (union exp_element) <msymbol>: New field.
8698 * minsyms.h (struct type): Forward declare.
8699 (find_minsym_type_and_address): Declare.
8700 * parse.c (write_exp_elt_msym): New function.
8701 (write_exp_msymbol): Delete, refactored as ...
8702 (find_minsym_type_and_address): ... this new function.
8703 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8704 (operator_length_standard, operator_check_standard): Handle
8705 OP_VAR_MSYM_VALUE.
8706 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8707
7022349d
PA
87082017-09-04 Pedro Alves <palves@redhat.com>
8709
8710 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8711 TYPE_GNU_IFUNC specially here. Throw error if return type is
8712 unknown.
8713 * ada-typeprint.c (print_func_type): Handle functions with unknown
8714 return type.
8715 * c-typeprint.c (c_type_print_base): Handle functions and methods
8716 with unknown return type.
8717 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8718 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8719 * compile/compile-c-types.c: Include "objfiles.h".
8720 (convert_func): For functions with unknown return type, warn and
8721 default to int.
8722 * compile/compile-object-run.c (compile_object_run): Adjust call
8723 to call_function_by_hand_dummy.
8724 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8725 call_function_by_hand.
8726 * eval.c (evaluate_subexp_standard): Adjust calls to
8727 call_function_by_hand. Handle functions and methods with unknown
8728 return type. Pass expect_type to call_function_by_hand.
8729 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8730 return type.
8731 * gcore.c (call_target_sbrk): Adjust call to
8732 call_function_by_hand.
8733 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8734 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8735 an integer address type instead of nodebug.
8736 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8737 call_function_by_hand.
8738 * infcall.c (error_call_unknown_return_type): New function.
8739 (call_function_by_hand): New "default_return_type" parameter.
8740 Pass it down.
8741 (call_function_by_hand_dummy): New "default_return_type"
8742 parameter. Use it instead of defaulting to int. If there's no
8743 default and the return type is unknown, throw an error. If
8744 there's a default return type, and the called function has no
8745 debug info, then assume the function is prototyped.
8746 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8747 New "default_return_type" parameter.
8748 (error_call_unknown_return_type): New declaration.
8749 * linux-fork.c (call_lseek): Cast return type of lseek.
8750 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8751 call_function_by_hand.
8752 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8753 calls to call_function_by_hand.
8754 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8755 return type.
8756 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8757 (value_nsstring, print_object_command): Adjust calls to
8758 call_function_by_hand.
8759 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8760 functions with unknown return type.
8761 (pascal_type_print_func_varspec_suffix): New function.
8762 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8763 TYPE_CODE_METHOD>: Use it.
8764 * python/py-value.c (valpy_call): Adjust call to
8765 call_function_by_hand.
8766 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8767 call_function_by_hand.
8768 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8769 call_function_by_hand.
8770 * valops.c (value_allocate_space_in_inferior): Adjust call to
8771 call_function_by_hand.
8772 * typeprint.c (type_print_unknown_return_type): New function.
8773 * typeprint.h (type_print_unknown_return_type): New declaration.
8774
54990598
PA
87752017-09-04 Pedro Alves <palves@redhat.com>
8776
8777 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8778 types with more than one parameter as prototyped.
8779
9a24775b
PA
87802017-09-04 Pedro Alves <palves@redhat.com>
8781
8782 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8783 (disassemble_command): Use gdb_disassembly_flags instead of bare
8784 int.
8785 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8786 (dump_insns, do_mixed_source_and_assembly_deprecated)
8787 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8788 Use gdb_disassembly_flags instead of bare int.
8789 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8790 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8791 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8792 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8793 (enum gdb_disassembly_flag): ... values of this new enumeration.
8794 (gdb_disassembly_flags): Define.
8795 (gdb_disassembly)
8796 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8797 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8798 gdb_disassembly_flags instead of bare int.
8799 * record-btrace.c (btrace_insn_history)
8800 (record_btrace_insn_history, record_btrace_insn_history_range)
8801 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8802 instead of bare int.
8803 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8804 Use gdb_disassembly_flags instead of bare int.
8805 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8806 Define.
8807 * target-delegates.c: Regenerate.
8808 * target.c (target_insn_history, target_insn_history_from)
8809 (target_insn_history_range): Use gdb_disassembly_flags instead of
8810 bare int.
8811 * target.h: Include "disasm.h".
8812 (struct target_ops) <to_insn_history, to_insn_history_from,
8813 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8814 int.
8815 (target_insn_history, target_insn_history_from)
8816 (target_insn_history_range): Use gdb_disassembly_flags instead of
8817 bare int.
8818
80a65e9b
SM
88192017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8820
8821 * cli/cli-script.c (build_command_line): For if/while commands,
8822 check whether args is empty.
8823
6b66338c
SM
88242017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8825
8826 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8827 (enum command_control_type): Likewise.
8828 (struct command_line): Likewise.
8829 (free_command_lines): Likewise.
8830 (struct command_lines_deleter): Likewise.
8831 (command_line_up): Likewise.
8832 (read_command_lines): Likewise.
8833 (read_command_lines_1): Likewise.
8834 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8835 (enum command_control_type): Likewise.
8836 (struct command_line): Likewise.
8837 (free_command_lines): Likewise.
8838 (struct command_lines_deleter): Likewise.
8839 (command_line_up): Likewise.
8840 (read_command_lines): Likewise.
8841 (read_command_lines_1): Likewise.
8842 * breakpoint.h: Include cli/cli-script.h.
8843 * extension-priv.h: Likewise.
8844 * gdbcmd.h: Likewise.
8845
51abb421
PA
88462017-09-04 Pedro Alves <palves@redhat.com>
8847
8848 * ada-lang.c (is_known_support_routine): Move sal declaration to
8849 where it is initialized.
8850 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8851 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8852 (clear_command, update_static_tracepoint): Remove init_sal
8853 references. Move declarations closer to initializations.
8854 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8855 initializations.
8856 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8857 references. Move sal declarations closer to initializations.
8858 * frame.c (find_frame_sal): Return a symtab_and_line via function
8859 return instead of output parameter. Remove init_sal references.
8860 * frame.h (find_frame_sal): Return a symtab_and_line via function
8861 return instead of output parameter.
8862 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8863 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8864 instead of memset.
8865 (gdbscm_find_pc_line): Remove init_sal reference.
8866 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8867 references. Move declarations closer to initializations.
8868 * infcmd.c (set_step_frame): Update. Move declarations closer to
8869 initializations.
8870 (finish_backward): Remove init_sal references. Move declarations
8871 closer to initializations.
8872 * infrun.c (process_event_stop_test, handle_step_into_function)
8873 (insert_hp_step_resume_breakpoint_at_frame)
8874 (insert_step_resume_breakpoint_at_caller): Likewise.
8875 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8876 (symbol_to_sal): Likewise.
8877 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8878 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8879 to its initialization.
8880 * reverse.c (save_bookmark_command): Use new/delete. Remove
8881 init_sal references. Move declarations closer to initializations.
8882 * source.c (get_current_source_symtab_and_line): Remove brace
8883 initialization.
8884 (set_current_source_symtab_and_line): Now takes the sal by const
8885 reference. Remove brace initialization.
8886 (line_info): Remove init_sal reference.
8887 * source.h (set_current_source_symtab_and_line): Now takes a
8888 symtab_and_line via const reference.
8889 * stack.c (set_current_sal_from_frame): Adjust.
8890 (print_frame_info): Adjust.
8891 (get_last_displayed_sal): Return the sal via function return
8892 instead of via output parameter. Simplify.
8893 (frame_info): Adjust.
8894 * stack.h (get_last_displayed_sal): Return the sal via function
8895 return instead of via output parameter.
8896 * symtab.c (init_sal): Delete.
8897 (find_pc_sect_line): Remove init_sal references. Move
8898 declarations closer to initializations.
8899 (find_function_start_sal): Remove init_sal references. Move
8900 declarations closer to initializations.
8901 * symtab.h (struct symtab_and_line): In-class initialize all
8902 fields.
8903 * tracepoint.c (set_traceframe_context)
8904 (print_one_static_tracepoint_marker): Remove init_sal references.
8905 Move declarations closer to initializations.
8906 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8907 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8908 declarations closer to initializations.
8909 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8910 init_sal references. Adjust.
8911
6c5b2ebe
PA
89122017-09-04 Pedro Alves <palves@redhat.com>
8913
8914 * ax-gdb.c (agent_command_1): Use range-for.
8915 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8916 * breakpoint.c: Include "common/array-view.h".
8917 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8918 parameter from struct symtabs_and_lines to
8919 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8920 (breakpoint_sals_to_pc): Change sals parameter from struct
8921 symtabs_and_lines to std::vector reference.
8922 (check_fast_tracepoint_sals): Change sals parameter from struct
8923 symtabs_and_lines to std::array_view. Use range-for.
8924 (decode_static_tracepoint_spec): Return a std::vector instead of
8925 symtabs_and_lines. Update.
8926 (create_breakpoint): Update.
8927 (break_range_command, until_break_command, clear_command): Update.
8928 (base_breakpoint_decode_location, bkpt_decode_location)
8929 (bkpt_probe_create_sals_from_location)
8930 (bkpt_probe_decode_location, tracepoint_decode_location)
8931 (tracepoint_probe_decode_location)
8932 (strace_marker_create_sals_from_location): Return a std::vector
8933 instead of symtabs_and_lines.
8934 (strace_marker_create_breakpoints_sal): Update.
8935 (strace_marker_decode_location): Return a std::vector instead of
8936 symtabs_and_lines. Update.
8937 (update_breakpoint_locations): Change struct symtabs_and_lines
8938 parameters to gdb::array_view. Adjust.
8939 (location_to_sals): Return a std::vector instead of
8940 symtabs_and_lines. Update.
8941 (breakpoint_re_set_default): Use std::vector instead of struct
8942 symtabs_and_lines.
8943 (decode_location_default): Return a std::vector instead of
8944 symtabs_and_lines. Update.
8945 * breakpoint.h: Include "common/array-view.h".
8946 (struct breakpoint_ops) <decode_location>: Now returns a
8947 std::vector instead of returning a symtabs_and_lines via output
8948 parameter.
8949 (update_breakpoint_locations): Change sals parameters to use
8950 gdb::array_view.
8951 * cli/cli-cmds.c (edit_command, list_command): Update to use
8952 std::vector and gdb::array_view.
8953 (ambiguous_line_spec): Adjust to use gdb::array_view and
8954 range-for.
8955 (compare_symtabs): Rename to ...
8956 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8957 const reference and adjust.
8958 (filter_sals): Rewrite using std::vector and standard algorithms.
8959 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8960 (jump_command): Update to use std::vector.
8961 * linespec.c (struct linespec_state) <canonical_names>: Update
8962 comment.
8963 (add_sal_to_sals_basic): Delete.
8964 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8965 (decode_line_2, create_sals_line_offset)
8966 (convert_address_location_to_sals, convert_linespec_to_sals)
8967 (convert_explicit_location_to_sals, parse_linespec)
8968 (event_location_to_sals, decode_line_full, decode_line_1)
8969 (decode_line_with_current_source)
8970 (decode_line_with_last_displayed, decode_objc)
8971 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8972 (linespec_result::~linespec_result): Adjust to use std::vector
8973 instead of symtabs_and_lines.
8974 * linespec.h (linespec_sals::sals): Now a std::vector.
8975 (struct linespec_result): Use std::vector, bool, and in-class
8976 initialization.
8977 (decode_line_1, decode_line_with_current_source)
8978 (decode_line_with_last_displayed): Return std::vector.
8979 * macrocmd.c (info_macros_command): Use std::vector.
8980 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8981 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8982 std::vector.
8983 * probe.h (parse_probes): Return a std::vector.
8984 * python/python.c (gdbpy_decode_line): Use std::vector and
8985 gdb::array_view.
8986 * source.c (select_source_symtab, line_info): Use std::vector.
8987 * stack.c (func_command): Use std::vector.
8988 * symtab.h (struct symtabs_and_lines): Delete.
8989 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8990
7c44b49c
PA
89912017-09-04 Pedro Alves <palves@redhat.com>
8992
8993 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8994 unittests/array-view-selftests.c.
8995 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8996 * common/array-view.h: New file.
8997 * unittests/array-view-selftests.c: New file.
8998
e439fa14
PA
89992017-09-04 Pedro Alves <palves@redhat.com>
9000
9001 * cli/cli-cmds.c (edit_command): Pass message to
9002 ambiguous_line_spec.
9003 (list_command): Pass message to ambiguous_line_spec. Say
9004 "first"/"last" instead of "start" and "end" to be consistent with
9005 the manual.
9006 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
9007 them to print formatted message.
9008
7525b645
PA
90092017-09-04 Pedro Alves <palves@redhat.com>
9010
9011 * btrace.c (ftrace_add_pt): Pass btrace_insn to
9012 ftrace_update_insns by reference instead of pointer.
9013
badc0020
YQ
90142017-09-04 Yao Qi <yao.qi@linaro.org>
9015
9016 * i386-go32-tdep.c: Include x86-xstate.h.
9017 (i386_go32_init_abi): Call i386_target_description.
9018 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
9019 if xcr0 is X86_XSTATE_X87_MASK.
9020 * i386-tdep.h (tdesc_i386): Remove the declaration.
9021 (tdesc_i386_mmx): Likewise.
9022
d78bdb54
YQ
90232017-09-04 Yao Qi <yao.qi@linaro.org>
9024
9025 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
9026 X86_XSTATE_SSE_MASK instead of 0.
9027
ca1fa5ee
YQ
90282017-09-04 Yao Qi <yao.qi@linaro.org>
9029
9030 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
9031 i386_target_description.
9032 * i386-fbsd-nat.c (i386fbsd_read_description): Call
9033 i386_target_description.
9034 * i386-tdep.c (i386_gdbarch_init): Likewise.
9035
2434b019
YQ
90362017-09-04 Yao Qi <yao.qi@linaro.org>
9037
9038 * amd64-darwin-tdep.c: Include "x86-xstate.h".
9039 (x86_darwin_init_abi_64): Call amd64_target_description.
9040 * amd64-dicos-tdep.c: Likewise.
9041 * amd64-fbsd-nat.c: Likewise.
9042 * amd64-fbsd-tdep.c: Likewise.
9043 * amd64-nbsd-tdep.c: Likewise.
9044 * amd64-obsd-tdep.c: Likewise.
9045 * amd64-sol2-tdep.c: Likewise.
9046 * amd64-windows-tdep.c: Likewise.
9047 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
9048
0860c437
SM
90492017-09-04 Simon Marchi <simon.marchi@ericsson.com>
9050
9051 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
9052 (btrace_function) <insn>: Change type to use std::vector.
9053 * btrace.c (ftrace_debug, ftrace_call_num_insn,
9054 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
9055 ftrace_update_insns, ftrace_compute_global_level_offset,
9056 btrace_stitch_bts, btrace_clear, btrace_insn_get,
9057 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
9058 change to std::vector.
9059 (ftrace_update_insns): Adjust to change to std::vector, change
9060 type of INSN parameter.
9061 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
9062 * record-btrace.c (btrace_call_history_insn_range,
9063 btrace_compute_src_line_range,
9064 record_btrace_frame_prev_register): Adjust to change to
9065 std::vector.
9066 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
9067 to change to std::vector.
9068
0638b7f9
TT
90692017-09-03 Tom Tromey <tom@tromey.com>
9070
9071 * corefile.c (reopen_exec_file): Use std::string.
9072
8f84fb0e
TT
90732017-09-03 Tom Tromey <tom@tromey.com>
9074
9075 * compile/compile.c (compile_register_name_mangled): Return
9076 std::string.
9077 * compile/compile-loc2c.c (pushf_register_address): Update.
9078 (pushf_register): Update.
9079 * compile/compile-c-types.c (convert_array): Update.
9080 * compile/compile-c-symbols.c (generate_vla_size): Update.
9081 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
9082 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
9083 (convert_one_symbol): Update.
9084 (generate_c_for_for_one_variable): Update.
9085 * compile/compile-c-support.c (c_get_range_decl_name): Return a
9086 std::string.
9087 (generate_register_struct): Update.
9088 * compile/compile-internal.h (c_get_range_decl_name): Return a
9089 std::string.
9090 (compile_register_name_mangled): Return std::string.
9091
18e9961f
TT
90922017-09-03 Tom Tromey <tom@tromey.com>
9093
9094 * utils.c (perror_string): Return a std::string.
9095 (throw_perror_with_name, perror_warning_with_name): Update.
9096
45343786
TT
90972017-09-03 Tom Tromey <tom@tromey.com>
9098
9099 * demangle.c (demangle_command): Use std::string,
9100 unique_xmalloc_ptr.
9101
b57af503
TT
91022017-09-03 Tom Tromey <tom@tromey.com>
9103
9104 * cli/cli-setshow.c (do_set_command): Use std::string.
9105
6eecf35f
TT
91062017-09-03 Tom Tromey <tom@tromey.com>
9107
9108 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
9109
56496dd4
TT
91102017-09-03 Tom Tromey <tom@tromey.com>
9111
9112 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
9113
e91a1fa7
TT
91142017-09-03 Tom Tromey <tom@tromey.com>
9115
9116 * mi/mi-cmd-env.c (env_execute_cli_command): Use
9117 gdb::unique_xmalloc_ptr.
9118
7ffd83d7
TT
91192017-09-03 Tom Tromey <tom@tromey.com>
9120
9121 * thread.c (print_thread_info_1): Use string_printf.
9122 (thread_apply_command, thread_apply_all_command): Use
9123 std::string.
9124
1ccbe998
TT
91252017-09-03 Tom Tromey <tom@tromey.com>
9126
9127 * valprint.c (val_print_string): Update.
9128 * gdbcore.h (memory_error_message): Return std::string.
9129 * corefile.c (memory_error_message): Return std::string.
9130 (memory_error): Update.
9131 * breakpoint.c (insert_bp_location): Update.
9132
23fdd69e
SM
91332017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9134
9135 * target/waitstatus.h (target_waitstatus_to_string): Change
9136 return type to std::string.
9137 * target/waitstatus.c (target_waitstatus_to_string): Return
9138 std::string.
9139 * target.h (target_waitstatus_to_string): Remove declaration.
9140 * infrun.c (resume, clear_proceed_status_thread,
9141 print_target_wait_results, do_target_wait, save_waitstatus,
9142 stop_all_threads): Adjust.
9143 * record-btrace.c (record_btrace_wait): Adjust.
9144 * target-debug.h
9145 (target_debug_print_struct_target_waitstatus_p): Adjust.
9146
5c811d30
JK
91472017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9148
9149 PR gdb/22046
9150 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9151 detection.
9152
0a2dde4a
SDJ
91532017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9154
9155 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9156 for setting/unsetting environment variables on the remote target.
9157 (New remote packets): Add entries for QEnvironmentHexEncoded,
9158 QEnvironmentUnset and QEnvironmentReset.
9159 * common/environ.c (gdb_environ::operator=): Extend method to
9160 handle m_user_set_env_list and m_user_unset_env_list.
9161 (gdb_environ::clear): Likewise.
9162 (match_var_in_string): Change type of first parameter from 'char
9163 *' to 'const char *'.
9164 (gdb_environ::set): Extend method to handle
9165 m_user_set_env_list and m_user_unset_env_list.
9166 (gdb_environ::unset): Likewise.
9167 (gdb_environ::clear_user_set_env): New method.
9168 (gdb_environ::user_set_envp): Likewise.
9169 (gdb_environ::user_unset_envp): Likewise.
9170 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9171 m_user_unset_env_list on move constructor/assignment.
9172 (unset): Add new default parameter 'update_unset_list = true'.
9173 (clear_user_set_env): New method.
9174 (user_set_envp): Likewise.
9175 (user_unset_envp): Likewise.
9176 (m_user_set_env_list): New std::set.
9177 (m_user_unset_env_list): Likewise.
9178 * common/rsp-low.c (hex2str): New function.
9179 (bin2hex): New overload for bin2hex function.
9180 * common/rsp-low.c (hex2str): New prototype.
9181 (str2hex): New overload prototype.
9182 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9183 QEnvironmentUnset and QEnvironmentReset.
9184 (remote_protocol_features): Add QEnvironmentHexEncoded,
9185 QEnvironmentUnset and QEnvironmentReset packets.
9186 (send_environment_packet): New function.
9187 (extended_remote_environment_support): Likewise.
9188 (extended_remote_create_inferior): Call
9189 extended_remote_environment_support.
9190 (_initialize_remote): Add QEnvironmentHexEncoded,
9191 QEnvironmentUnset and QEnvironmentReset packet configs.
9192 * unittests/environ-selftests.c (gdb_selftest_env_var):
9193 New variable.
9194 (test_vector_initialization): New function.
9195 (test_init_from_host_environ): Likewise.
9196 (test_reinit_from_host_environ): Likewise.
9197 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9198 Likewise.
9199 (test_unset_set_empty_vector): Likewise.
9200 (test_vector_clear): Likewise.
9201 (test_std_move): Likewise.
9202 (test_move_constructor):
9203 (test_self_move): Likewise.
9204 (test_set_unset_reset): Likewise.
9205 (run_tests): Rewrite in terms of the functions above.
9206
654670a4
WP
92072017-08-31 Weimin Pan <weimin.pan@oracle.com>
9208
9209 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9210 (adi_available): Use a temp variable of type CORE_ADDR as argument
9211 3 when calling target_auxv_search.
9212 (adi_normalize_address): Use masks and xor operators to calculate
9213 normalized address.
9214 (adi_read_versions, adi_write_versions, adi_print_versions)
9215 (do_examine, do_assign): Use paddress.
9216
7755ddb7
JB
92172017-08-29 John Baldwin <jhb@FreeBSD.org>
9218
9219 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9220 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9221 out of loop and add supply of FIR.
9222 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9223 add collect of FIR.
9224
fd437cbc
SM
92252017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9226
3804a343 9227 PR gdb/21827
fd437cbc
SM
9228 * cli/cli-script.c (define_command): Don't convert command name
9229 to lower case.
9230
988f6b3d
JB
92312017-08-25 Joel Brobecker <brobecker@adacore.com>
9232
9233 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9234 Update all callers accordingly. Remove all code blocks handling
9235 the case where DISPP is not NULL.
9236
663c44ac
JK
92372017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 PR symtab/22003
9240 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9241 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9242 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9243
f1902523
JK
92442017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9245
9246 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9247 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9248 (read_comp_units_from_section): New parameter abbrev_section, use
9249 read_and_check_comp_unit_head, allocate signatured_type if needed.
9250 (create_all_comp_units): Update read_comp_units_from_section caller.
9251
87215ad1
SDJ
92522017-08-23 Pedro Alves <palves@redhat.com>
9253
9254 PR remote/21852
9255 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9256 to null_ptid and switch to thread without reading the registers
9257 after adding the inferior.
9258
6e41ddec
JK
92592017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9260
9261 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9262 compile-gcc.
9263 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9264 (compile_to_object): Implement compile_gcc.
9265 (_initialize_compile): Install "set compile-gcc". Initialize
9266 compile_gcc.
9267
e68c32d5
JK
92682017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9269
9270 * compile/compile.c (compile_to_object): Conditionally call
9271 set_verbose. Conditionally call compile or compile_v0.
9272
58afddc6
WP
92732017-08-07 Weimin Pan <weimin.pan@oracle.com>
9274
9275 * sparc64-tdep.h: (adi_normalize_address): New export.
9276 * sparc-nat.h: (open_adi_tag_fd): New export.
9277 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9278 * sparc64-linux-tdep.c:
9279 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9280 (sparc64_linux_handle_segmentation_fault): New function.
9281 (sparc64_linux_init_abi): Register
9282 sparc64_linux_handle_segmentation_fault
9283 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9284 (sparc64_addr_bits_remove): New function.
9285 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9286 (MAX_PROC_NAME_SIZE): New macro.
9287 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9288 (sparc64adilist): New variable.
9289 (adi_proc_list): New variable.
9290 (find_adi_info): New function.
9291 (add_adi_info): New function.
9292 (get_adi_info_proc): New function.
9293 (get_adi_info): New function.
9294 (info_adi_command): New function.
9295 (read_maps_entry): New function.
9296 (adi_available): New function.
9297 (adi_normalize_address): New function.
9298 (adi_align_address): New function.
9299 (adi_convert_byte_count): New function.
9300 (adi_tag_fd): New function.
9301 (adi_is_addr_mapped): New function.
9302 (adi_read_versions): New function.
9303 (adi_write_versions): New function.
9304 (adi_print_versions): New function.
9305 (do_examine): New function.
9306 (do_assign): New function.
9307 (adi_examine_command): New function.
9308 (adi_assign_command): New function.
9309 (_initialize_sparc64_adi_tdep): New function.
9310
11db9430
SM
93112017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9312
9313 * breakpoint.c (breakpoints_info): Rename to ...
9314 (info_breakpoints_command): ... this.
9315 (watchpoints_info): Rename to ...
9316 (info_watchpoints_command): ... this.
9317 (tracepoints_info): Rename to ...
9318 (info_tracepoints_command): ... this.
9319 (_initialize_breakpoint): Adjust.
9320 * dcache.c (dcache_info): Rename to ...
9321 (info_display_command): ... this.
9322 (_initialize_dcache): Adjust.
9323 * frame.h (args_info): Rename to ...
9324 (info_args_command): ... this.
9325 (locals_info): Rename to ...
9326 (info_locals_command): ... this.
9327 * infcmd.c (nofp_registers_info): Rename to ...
9328 (info_registers_command): ... this.
9329 (float_info): Rename to ...
9330 (info_float_command): ... this.
9331 (program_info): Rename to ...
9332 (info_program_command): ... this.
9333 (all_registers_info): Rename to ...
9334 (info_all_registers_command): ... this.
9335 (vector_info): Rename to ...
9336 (info_vector_command): ... this.
9337 (float_info): Rename to ...
9338 (info_float_command): ... this.
9339 (_initialize_infcmd): Adjust.
9340 * inferior.h (term_info): Rename to ...
9341 (info_terminal_command): ... this.
9342 * inflow.c (term_info): Rename to ...
9343 (info_terminal_command): ... this.
9344 (_initialize_inflow): Adjust.
9345 * infrun.c (signals_info): Rename to ...
9346 (info_signals_command): ... this.
9347 (_initialize_infrun): Adjust.
9348 * objc-lang.c (classes_info): Rename to ...
9349 (info_classes_command): ... this.
9350 (selectors_info): Rename to ...
9351 (info_selectors_command): ... this.
9352 (_initialize_objc_language): Adjust.
9353 * printcmd.c (sym_info): Rename to ...
9354 (info_symbol_command): ... this.
9355 (address_info): Rename to ...
9356 (info_address_command): ... this.
9357 (display_info): Rename to ...
9358 (info_display_command): ... this.
9359 (_initialize_printcmd): Adjust.
9360 * reverse.c (bookmarks_info): Rename to ...
9361 (info_breakpoints_command): ... this.
9362 (_initialize_reverse): Adjust.
9363 * ser-go32.c (dos_info): Rename to ...
9364 (info_serial_command): ... this.
9365 (_initialize_ser_dos): Adjust.
9366 * skip.c (skip_info): Rename to ...
9367 (info_skip_command): ... this.
9368 (_initialize_step_skip): Adjust.
9369 * source.c (line_info): Rename to ...
9370 (info_line_command): ... this.
9371 (source_info): Rename to ...
9372 (info_source_command)
9373 * stack.c (frame_info): Rename to ...
9374 (info_frame_command): ... this.
9375 (locals_info): Rename to ...
9376 (info_locals_command): ... this.
9377 (args_info): Rename to ...
9378 (info_args_command): ... this.
9379 (_initialize_stack): Adjust.
9380 * symtab.c (sources_info): Rename to ...
9381 (info_sources_command): ... this.
9382 (variables_info): Rename to ...
9383 (info_variables_command): ... this.
9384 (functions_info): Rename to ...
9385 (info_functions_command): ... this.
9386 (types_info): Rename to ...
9387 (info_types_command): ... this.
9388 (_initialize_symtab): Adjust.
9389 * target.c (target_info): Rename to ...
9390 (info_target_command): ... this.
9391 (initialize_targets): Adjust.
9392 * tracepoint.c (tvariables_info): Rename to ...
9393 (info_tvariables_command): ... this.
9394 (scope_info): Rename to ...
9395 (info_scope_command): ... this.
9396 (trace_dump_actions): Adjust.
9397 (_initialize_tracepoint): Adjust.
9398
b270e6f9
TT
93992017-08-22 Tom Tromey <tom@tromey.com>
9400
9401 * breakpoint.h (install_breakpoint): Update.
9402 * breakpoint.c (add_solib_catchpoint): Update.
9403 (install_breakpoint): Change argument to a std::unique_ptr.
9404 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9405 (create_breakpoint_sal, create_breakpoint): Update.
9406 (watch_command_1, catch_exec_command_1)
9407 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9408 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9409 Return the breakpoint.
9410 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9411 (new_single_step_breakpoint): Update.
9412 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9413 std::unique_ptr.
9414 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9415 std::unique_ptr.
9416 * break-catch-sig.c (create_signal_catchpoint): Use
9417 std::unique_ptr.
9418 * ada-lang.c (create_ada_exception_catchpoint): Use
9419 std::unique_ptr.
9420
36bd8eaa
TT
94212017-08-22 Tom Tromey <tom@tromey.com>
9422
9423 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9424
56f37645
TT
94252017-08-22 Tom Tromey <tom@tromey.com>
9426
9427 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9428 (lookup_partial_symbol): Update.
9429
0b581c69
TT
94302017-08-22 Tom Tromey <tom@tromey.com>
9431
9432 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9433 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9434 (find_and_open_source, symtab_to_fullname): Update.
9435 * psymtab.c (psymtab_to_fullname): Update.
9436
14278e1f
TT
94372017-08-22 Tom Tromey <tom@tromey.com>
9438
9439 * exec.c (exec_file_attach): Update.
9440 * linux-thread-db.c (try_thread_db_load): Update.
9441 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9442 * utils.c (gdb_realpath): Change return type.
9443 (gdb_realpath_keepfile): Update.
9444 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9445 (_initialize_utils): Register the new self test.
9446 * source.c (openp): Update.
9447 (find_and_open_source): Update.
9448 * nto-tdep.c (nto_find_and_open_solib): Update.
9449 * main.c (set_gdb_data_directory): Update.
9450 (captured_main_1): Update.
9451 * dwarf2read.c (dwarf2_get_dwz_file): Update
9452 (dw2_map_symbol_filenames): Update.
9453 * auto-load.c (auto_load_safe_path_vec_update): Update.
9454 (filename_is_in_auto_load_safe_path_vec): Change type of
9455 "filename_realp".
9456 (auto_load_objfile_script): Update.
9457 (file_is_auto_load_safe): Update. Use std::string.
9458 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9459
4971c9a7
TT
94602017-08-22 Tom Tromey <tom@tromey.com>
9461
9462 * utils.c (gdb_realpath_keepfile): Return a
9463 gdb::unique_xmalloc_ptr.
9464 * exec.c (exec_file_attach): Update.
9465 * utils.h (gdb_realpath_keepfile): Return a
9466 gdb::unique_xmalloc_ptr.
9467
e3e41d58
TT
94682017-08-22 Tom Tromey <tom@tromey.com>
9469
9470 * compile/compile.c (compile_file_command): Use
9471 gdb::unique_xmalloc_ptr, std::string.
9472 * utils.c (gdb_abspath): Change return type.
9473 * source.c (openp): Update.
9474 * objfiles.c (allocate_objfile): Update.
9475 * main.c (set_gdb_data_directory): Update.
9476 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9477
0d999a6e
ZZ
94782017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9479
9480 * cli-cmds.c (list_commands): List actual code around more than
9481 one location.
9482
329d5e7e
JB
94832017-08-21 John Baldwin <jhb@FreeBSD.org>
9484
9485 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9486
bf223d3e
PA
94872017-08-21 Pedro Alves <palves@redhat.com>
9488
9489 PR gdb/19487
9490 * c-exp.y (variable production): Handle function aliases.
9491 * minsyms.c (msymbol_is_text): New function.
9492 * minsyms.h (msymbol_is_text): Declare.
9493 * symtab.c (find_function_alias_target): New function.
9494 * symtab.h (find_function_alias_target): Declare.
9495
c973d0aa
PA
94962017-08-21 Pedro Alves <palves@redhat.com>
9497
9498 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9499 typedefs.
9500 * typeprint.c (whatis_exp): If handling "whatis", and expression
9501 is OP_TYPE, strip one typedef level. Otherwise don't strip
9502 typedefs here.
9503 * valops.c (value_cast): Save "to" type before resolving
9504 stubs/typedefs. Use that type as resulting value's type.
9505
2989a365
TT
95062017-08-18 Tom Tromey <tom@tromey.com>
9507 Pedro Alves <palves@redhat.com>
9508
9509 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9510 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9511 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9512 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9513 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9514 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9515 (linux_get_siginfo_data): Add "thread" argument. Use
9516 scoped_restore.
9517 * linux-nat.c (linux_child_follow_fork)
9518 (check_stopped_by_watchpoint): Use scoped_restore.
9519 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9520 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9521 (restore_inferior_ptid, save_inferior_ptid): Remove.
9522 * btrace.c (btrace_fetch): Use scoped_restore.
9523 * bsd-uthread.c (bsd_uthread_fetch_registers)
9524 (bsd_uthread_store_registers): Use scoped_restore.
9525 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9526 scoped_restore.
9527 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9528 (aix_thread_xfer_partial): Use scoped_restore.
9529 * inferior.h (save_inferior_ptid): Remove.
9530
e60eb288
YQ
95312017-08-18 Yao Qi <yao.qi@linaro.org>
9532
9533 PR tdep/21818
9534 * arm-tdep.c (gdb_print_insn_arm): Mark
9535 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9536
6d580b63
YQ
95372017-08-18 Yao Qi <yao.qi@linaro.org>
9538
9539 * NEWS: Mention GDBserver's new option "--selftest".
9540 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9541 * selftest.c: Move it to common/selftest.c.
9542 * selftest.h: Move it to common/selftest.h.
9543 * selftest-arch.c (reset): New function.
9544 (tests_with_arch): Call reset.
9545
86dcbf50
YQ
95462017-08-18 Yao Qi <yao.qi@linaro.org>
9547
9548 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9549 instead of exception_fprintf and printf_filtered.
9550
7649770c
YQ
95512017-08-18 Yao Qi <yao.qi@linaro.org>
9552
9553 * selftest.c (register_self_test): Rename it to
9554 selftests::register_test.
9555 (run_self_tests): selftest::run_tests.
9556 * selftest.h: Update declarations.
9557 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9558 selftests::register_test_foreach_arch.
9559 * selftest-arch.h: Update declaration.
9560 * aarch64-tdep.c: Update.
9561 * arm-tdep.c: Likewise.
9562 * disasm-selftests.c: Likewise.
9563 * dwarf2loc.c: Likewise.
9564 * dwarf2-frame.c: Likewise.
9565 * findvar.c: Likewise.
9566 * gdbarch-selftests.c: Likewise.
9567 * maint.c (maintenance_selftest): Likewise.
9568 * regcache.c: Likewise.
9569 * rust-exp.y: Likewise.
9570 * selftest-arch.c: Likewise.
9571 * unittests/environ-selftests.c: Likewise.
9572 * unittests/function-view-selftests.c: Likewise.
9573 * unittests/offset-type-selftests.c: Likewise.
9574 * unittests/optional-selftests.c: Likewise.
9575 * unittests/scoped_restore-selftests.c: Likewise.
9576 * utils-selftests.c: Likewise.
9577
b0cba12e
PA
95782017-08-17 Pedro Alves <palves@redhat.com>
9579
9580 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9581 local.
9582
4c8aa72d
PA
95832017-08-17 Pedro Alves <palves@redhat.com>
9584
9585 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9586 field.
9587 (reset_die_in_process): Delete, replaced by ...
9588 (process_die_scope): ... this new class. Make it responsible for
9589 freeing cu->line_header too.
9590 (process_die): Use process_die_scope.
9591 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9592 cu->line_header_die_owner. Don't release the line header if it's
9593 owned by the CU.
9594 (setup_type_unit_groups): Make the CU/DIE own the line header.
9595 Don't release the line header here.
9596
ba713918
AL
95972017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9598
9599 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9600
44d0fb3a
RK
96012017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9602
9603 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9604 Single-Key mode
9605
a5afdb16
RK
96062017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9607
9608 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9609 mode command list.
9610
47613aeb
SH
96112017-08-15 Stafford Horne <shorne@gmail.com>
9612
9613 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9614
9c3cc999
SH
96152017-08-15 Stafford Horne <shorne@gmail.com>
9616
9617 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9618
206726fb
SDJ
96192017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9620
9621 PR gdb/21954
9622 * infcmd.c (unset_environment_command): Use the 'clear' method on
9623 the environment instead of resetting it.
9624
0335ac6d
JB
96252017-08-15 John Baldwin <jhb@FreeBSD.org>
9626
9627 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9628 platforms.
9629
d3abe1c8
TT
96302017-08-14 Tom Tromey <tom@tromey.com>
9631
9632 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9633 (print_binary_chars): Likewise.
9634 (BITS_IN_BYTES): Remove.
9635
d6382fff
TT
96362017-08-14 Tom Tromey <tom@tromey.com>
9637
9638 PR gdb/21675
9639 * valprint.c (LOW_ZERO): Change value to 034.
9640 (print_octal_chars): Add static_asserts for octal constants.
9641 * printcmd.c (print_scalar_formatted): Add 'd' case.
9642
f978cb06
TT
96432017-08-11 Tom Tromey <tom@tromey.com>
9644
9645 * symfile.c (add_symbol_file_command): Use std::vector.
9646
2f5404b3
TT
96472017-08-14 Tom Tromey <tom@tromey.com>
9648
9649 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9650 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9651 std::move.
9652 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9653
de7985c3
PA
96542017-08-11 Pedro Alves <palves@redhat.com>
9655
9656 * infrun.c (process_event_stop_test): Adjust
9657 function_name_is_marked_for_skip call.
9658 * skip.c: Include <list>.
9659 (skiplist_entry): Make it a class with private fields, and
9660 getters/setters.
9661 (skiplist_entry_chain): Delete.
9662 (skiplist_entries): New.
9663 (skiplist_entry_count): Delete.
9664 (highest_skiplist_entry_num): New.
9665 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9666 (add_skiplist_entry): Delete.
9667 (skiplist_entry::skiplist_entry): New.
9668 (skiplist_entry::add_entry): New.
9669 (skip_file_command, skip_function): Adjust.
9670 (compile_skip_regexp): Delete.
9671 (skip_command): Don't compile regexp here. Adjust to use
9672 skiplist_entry::add_entry.
9673 (skip_info): Adjust to use range-for and getters.
9674 (skip_enable_command, skip_disable_command): Adjust to use
9675 range-for and setters.
9676 (skip_delete_command): Adjust to use std::list.
9677 (add_skiplist_entry): Delete.
9678 (skip_file_p): Delete, refactored as ...
9679 (skiplist_entry::do_skip_file_p): ... this new method.
9680 (skip_gfile_p): Delete, refactored as ...
9681 (skiplist_entry::do_gskip_file_p): ... this new method.
9682 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9683 (skiplist_entry::skip_function_p): ... this new method.
9684 (function_name_is_marked_for_skip): Now returns bool, and takes
9685 the function sal by const reference. Adjust to use range-for and
9686 skiplist_entry methods.
9687 (_initialize_step_skip): Remove references to
9688 skiplist_entry_chain, skiplist_entry_count.
9689 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9690 takes the function sal by const reference.
9691
be7d3cd5
YQ
96922017-08-11 Yao Qi <yao.qi@linaro.org>
9693
9694 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9695 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9696 (dwarf2_frame_cache):
9697 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9698 RETURN_MASK_ALL and set *this_case to NULL.
9699 * frame-unwind.h: Update comments.
9700
1c90d9f0
YQ
97012017-08-11 Yao Qi <yao.qi@linaro.org>
9702
9703 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9704 (dwarf2_frame_state_copy_regs): Remove.
9705 (dwarf2_frame_state_free_regs): Remove.
9706 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9707 (dwarf2_restore_rule): Call method .alloc_regs instead of
9708 dwarf2_frame_state_alloc_regs.
9709 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9710 constructor. Call std::move.
9711 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9712 (dwarf2_frame_cache): Likewise.
9713
9714 [GDB_SELF_TEST]: Include selftest.h and
9715 selftest-arch.h.
9716 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9717 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9718 execute_cfa_program_test.
9719
9720 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9721 copy ctor, assignment operator, move assignment.
9722 <alloc_regs>: New method.
9723 <swap>: New method.
9724 (struct dwarf2_frame_state): Delete dtor.
9725 (dwarf2_frame_state_alloc_regs): Remove declaration.
9726 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9727 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9728
afe37d6b
YQ
97292017-08-11 Yao Qi <yao.qi@linaro.org>
9730
9731 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9732 (dwarf2_frame_state::dwarf2_frame_state): New.
9733 (dwarf2_frame_state::~dwarf2_frame_state): New.
9734 (dwarf2_fetch_cfa_info): Update.
9735 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9736 rather than a pointer. Update code.
9737 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9738 dtor.
9739 <data_align, code_align, retaddr_column>: Change them to const.
9740 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9741 to bool.
9742
b348037f
YQ
97432017-08-11 Yao Qi <yao.qi@linaro.org>
9744
9745 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9746 <loc.exp>: New field.
9747 * dwarf2-frame.c (execute_cfa_program): Update.
9748 (dwarf2_frame_prev_register): Update.
9749
e7c9de26
PA
97502017-08-10 Pedro Alves <palves@redhat.com>
9751
9752 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9753
e8c6b620
JB
97542017-08-09 John Baldwin <jhb@FreeBSD.org>
9755
9756 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9757 (fbsd_pending_children): Use std::list.
9758 (fbsd_remember_child): Likewise.
9759 (fbsd_is_child_pending): Likewise.
9760 (fbsd_pending_vfork_done): Use std::forward_list.
9761 (fbsd_add_vfork_done): Likewise.
9762 (fbsd_is_vfork_done_pending): Likewise.
9763 (fbsd_next_vfork_done): Likewise.
9764
e4a26669
JB
97652017-08-09 John Baldwin <jhb@FreeBSD.org>
9766
9767 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9768 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9769 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9770 for `mapfilename'.
9771 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 9772 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 9773
142311d3
JB
97742017-08-09 John Baldwin <jhb@FreeBSD.org>
9775
9776 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9777 "filestuff.h".
9778 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9779
42fa2e0e
TT
97802017-08-09 Tom Tromey <tom@tromey.com>
9781
9782 * skip.c (skiplist_entry): New constructor.
9783 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9784 (skiplist_entry::file_is_glob): Now bool.
9785 (skiplist_entry::file, skiplist_entry::function): Now
9786 std::string.
9787 (make_skip_entry): Return a unique_ptr. Use new.
9788 (free_skiplist_entry, free_skiplist_entry_cleanup)
9789 (make_free_skiplist_entry_cleanup): Remove.
9790 (skip_command, skip_disable_command, add_skiplist_entry)
9791 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9792 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9793 (function_name_is_marked_for_skip): Update.
9794 (skip_delete_command): Update. Use delete.
9795
cd3af38d
JW
97962017-08-09 Jiong Wang <jiong.wang@arm.com>
9797
9798 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9799 (aarch64_linux_core_read_description): New function.
9800 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9801
29592bde
PA
98022017-08-09 Pedro Alves <palves@redhat.com>
9803
9804 * cp-name-parser.y (cp_comp_to_string): Return a
9805 gdb::unique_xmalloc_ptr<char>.
9806 * cp-support.c (replace_typedefs_qualified_name)
9807 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9808 (cp_canonicalize_string_full): Use op= instead of explicit
9809 convertion.
9810 (cp_class_name_from_physname, method_name_from_physname)
9811 (cp_func_name, cp_remove_params): Adjust to use
9812 gdb::unique_xmalloc_ptr<char>.
9813 * cp-support.h (cp_comp_to_string): Return a
9814 gdb::unique_xmalloc_ptr<char>.
9815 * python/py-type.c (typy_lookup_type): Adjust to use
9816 gdb::unique_xmalloc_ptr<char>.
9817
b3340438
L
98182017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9819
9820 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9821
e88e8651
YQ
98222017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9823 Yao Qi <yao.qi@linaro.org>
9824
9825 * cp-support.c (cp_canonicalize_string_full): Use
9826 gdb::unique_xmalloc_ptr<char>.
9827 (cp_canonicalize_string): Likewise.
9828
f5a29eb0
YQ
98292017-08-09 Yao Qi <yao.qi@linaro.org>
9830
9831 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9832 * regformats/i386/amd64-avx-avx512.dat: Remove.
9833 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9834 * regformats/i386/amd64-avx-mpx.dat:Remove.
9835 * regformats/i386/amd64-avx.dat: Remove.
9836 * regformats/i386/amd64-mpx.dat: Remove.
9837 * regformats/i386/i386-avx-avx512.dat: Remove.
9838 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9839 * regformats/i386/i386-avx-mpx.dat: Remove.
9840 * regformats/i386/i386-mmx.dat: Remove.
9841 * regformats/i386/i386-mpx.dat: Remove.
9842
57757c2f
YQ
98432017-08-09 Yao Qi <yao.qi@linaro.org>
9844
9845 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9846 * amd64-tdep.c: Don't include features/i386/x32*.c.
9847 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9848 functions.
9849 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9850 and i386/x32-avx-avx512.
9851 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9852 and i386/x32.xml.
9853 * features/i386/x32-avx-avx512.c: Removed.
9854 * features/i386/x32-avx-avx512.xml: Removed.
9855 * features/i386/x32-avx.c: Removed.
9856 * features/i386/x32-avx.xml: Removed.
9857 * features/i386/x32.c: Removed.
9858 * features/i386/x32.xml: Removed.
9859 * regformats/i386/x32-avx-avx512.dat: Removed.
9860 * regformats/i386/x32-avx.dat: Removed.
9861 * regformats/i386/x32.dat: Removed.
9862
ba7b109b
MR
98632017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9864
9865 PR breakpoints/21886
9866 * mem-break.c (default_memory_insert_breakpoint): Use
9867 `->placed_address' rather than `->reqstd_address' for the
9868 breakpoint location.
9869
e347efc3
MR
98702017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9871
9872 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9873 assertions.
9874
0dba2a6c
MR
98752017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9876
9877 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9878 a union of `tdep_info', `tdesc_data' and `id'.
9879 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9880 rather than `info.tdep_info'.
9881 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9882 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9883 * i386-tdep.c (i386_gdbarch_init): Likewise.
9884 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9885 * mips-tdep.c (mips_gdbarch_init): Likewise.
9886 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9887 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9888 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9889 `info.tdep_info'.
9890 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9891 `info.tdep_info'.
9892 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9893 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9894 `info.tdep_info'.
9895 * spu-tdep.c (spu_gdbarch_init): Likewise.
9896 * gdbarch.h: Regenerate.
9897
16eb6b2d
LS
98982017-08-07 Leszek Swirski <leszeks@google.com>
9899
7b005726 9900 PR symtab/20899
16eb6b2d
LS
9901 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9902
74cbb09e
SM
99032017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9904
9905 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9906 (gdbsim_open): Rename gdb_argv args object to argv.
9907
ee0c3293
TT
99082017-08-05 Tom Tromey <tom@tromey.com>
9909
9910 * compile/compile-object-load.c (compile_object_load): Use
9911 gdb::unique_xmalloc_ptr.
9912 * cli/cli-dump.c (scan_filename): Rename from
9913 scan_filename_with_cleanup. Change return type.
9914 (scan_expression): Rename from scan_expression_with_cleanup.
9915 Change return type.
9916 (dump_memory_to_file, dump_value_to_file, restore_command):
9917 Use gdb::unique_xmalloc_ptr. Update.
9918 * cli/cli-cmds.c (find_and_open_script): Use
9919 gdb::unique_xmalloc_ptr.
9920 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9921 * symmisc.c (maintenance_print_symbols)
9922 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9923 * symfile.c (symfile_bfd_open, generic_load)
9924 (add_symbol_file_command, remove_symbol_file_command): Use
9925 gdb::unique_xmalloc_ptr.
9926 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9927 * psymtab.c (maintenance_print_psymbols): Use
9928 gdb::unique_xmalloc_ptr.
9929 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9930 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9931 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9932 (reload_shared_libraries_1): Likewise.
9933
3232fabd
TT
99342017-08-05 Tom Tromey <tom@tromey.com>
9935
9936 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9937 (rust_op_vector, rust_set_vector): New typedefs.
9938 (current_parser): New global.
9939 (work_obstack): Change to pointer type. Update all users.
9940 (rust_ast, pstate): Remove globals.
9941 (struct rust_parser): New.
9942 (%union) <params, field_inits>: Change type.
9943 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9944 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9945 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9946 (convert_params_to_types, convert_params_to_expression): Change
9947 type of "params".
9948 (ast_string): Change type of "fields".
9949 (rust_parse): Make a rust_parser. Remove cleanups.
9950 (rust_lex_tests): Make and install an auto_obstack.
9951
f02fd774
YQ
99522017-08-04 Yao Qi <yao.qi@linaro.org>
9953
9954 * configure.srv (ipa_x32_linux_regobj): New.
9955 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9956 instead of X86_TDESC_AVX512.
9957 (initialize_low_tracepoint): Call
9958 init_registers_x32_avx_avx512_linux.
9959
91975afd
YQ
99602017-08-04 Yao Qi <yao.qi@linaro.org>
9961
9962 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9963
2331fa3a
RK
99642017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9965
9966 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9967
744e4fe1
TT
99682017-08-03 Tom Tromey <tom@tromey.com>
9969
9970 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9971 Remove.
9972 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9973
1c034b67
TT
99742017-08-03 Tom Tromey <tom@tromey.com>
9975
9976 * python/py-param.c (compute_enum_values): Use gdb_argv.
9977
773a1edc
TT
99782017-08-03 Tom Tromey <tom@tromey.com>
9979
9980 * utils.h (struct gdb_argv_deleter): New.
9981 (gdb_argv): New class.
9982 * utils.c (gdb_argv::reset): New method.
9983 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9984 * tracefile.c (tsave_command): Use gdb_argv.
9985 * top.c (new_ui_command): Use gdb_argv.
9986 * symmisc.c (maintenance_print_symbols)
9987 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9988 * symfile.c (symbol_file_command, generic_load)
9989 (remove_symbol_file_command): Use gdb_argv.
9990 * stack.c (backtrace_command): Use gdb_argv.
9991 * source.c (add_path, show_substitute_path_command)
9992 (unset_substitute_path_command, set_substitute_path_command):
9993 Use gdb_argv.
9994 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9995 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9996 * remote.c (extended_remote_run, remote_put_command)
9997 (remote_get_command, remote_delete_command): Use gdb_argv.
9998 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9999 (gdbsim_open): Use gdb_argv.
10000 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
10001 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
10002 * procfs.c (procfs_info_proc): Use gdb_argv.
10003 * interps.c (interpreter_exec_cmd): Use gdb_argv.
10004 * infrun.c (handle_command): Use gdb_argv.
10005 * inferior.c (add_inferior_command, clone_inferior_command):
10006 Use gdb_argv.
10007 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
10008 * exec.c (exec_file_command): Use gdb_argv.
10009 * cli/cli-cmds.c (alias_command): Use gdb_argv.
10010 * compile/compile.c (build_argc_argv): Use gdb_argv.
10011
0d50bde3
TT
100122017-08-03 Tom Tromey <tom@tromey.com>
10013
10014 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
10015
7f968c89
TT
100162017-08-03 Tom Tromey <tom@tromey.com>
10017
10018 * python/python.c (compute_python_string): Return std::string.
10019 (gdbpy_eval_from_control_command): Update.
10020 (do_start_initialization): Use std::string.
10021 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
10022 xstrprintf.
10023 * python/py-breakpoint.c (local_setattro): Use string_printf, not
10024 xstrprintf.
10025
3c9ebddd
TT
100262017-08-03 Tom Tromey <tom@tromey.com>
10027
10028 * top.h (do_restore_instream_cleanup): Remove.
10029 * top.c (do_restore_instream_cleanup): Remove.
10030 (read_command_file): Use scoped_restore.
10031 * cli/cli-script.c (execute_user_command): Use scoped_restore.
10032
b51b225e
TT
100332017-08-03 Tom Tromey <tom@tromey.com>
10034
10035 * cli/cli-script.c (execute_user_command)
10036 (execute_control_command): Use scoped_restore.
10037
ac991630
TT
100382017-08-03 Tom Tromey <tom@tromey.com>
10039
10040 * cli/cli-script.c (do_restore_user_call_depth): Remove.
10041 (execute_user_command): Remove user_call_depth; use
10042 user_args_stack's size instead.
10043
898e0c8e
TT
100442017-08-03 Tom Tromey <tom@tromey.com>
10045
10046 * top.h (in_user_command): Remove.
10047 * top.c (in_user_command): Remove.
10048 * cli/cli-script.c (do_restore_user_call_depth)
10049 (execute_user_command): Update.
10050
26fcd5d7
TT
100512017-08-03 Tom Tromey <tom@tromey.com>
10052
10053 * valops.c (search_struct_method): Use gdb::byte_vector.
10054 * valarith.c (value_concat): Use std::vector.
10055 * target.c (memory_xfer_partial): Use gdb::byte_vector.
10056 (simple_search_memory): Likewise.
10057 * printcmd.c (find_string_backward): Use gdb::byte_vector.
10058 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
10059 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
10060 * elfread.c (elf_rel_plt_read): Use std::string.
10061 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
10062 * cli/cli-dump.c (restore_section_callback): Use
10063 gdb::byte_vector.
10064
7c218e6c
TT
100652017-08-03 Tom Tromey <tom@tromey.com>
10066
10067 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
10068
31b68d4a
TT
100692017-08-03 Tom Tromey <tom@tromey.com>
10070
10071 * tui/tui-regs.c (tui_restore_gdbout): Remove.
10072 (tui_register_format): Use scoped_restore.
10073
2ec845e7
TT
100742017-08-03 Tom Tromey <tom@tromey.com>
10075
10076 * reverse.c (exec_direction_default): Remove.
10077 (exec_reverse_once): Use scoped_restore.
10078 * remote.c (restore_remote_timeout): Remove.
10079 (remote_flash_erase, remote_flash_write, remote_flash_done)
10080 (readchar, remote_serial_write): Use scoped_restore.
10081 * cli/cli-script.c (struct source_cleanup_lines_args)
10082 (source_cleanup_lines): Remove.
10083 (script_from_file): Use scoped_restore.
10084 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
10085 (source_command): Use scoped_restore.
10086
b3bc8453
TT
100872017-08-03 Tom Tromey <tom@tromey.com>
10088
10089 * utils.h (make_cleanup_free_so): Remove.
10090 * utils.c (do_free_so, make_cleanup_free_so): Remove.
10091 * solist.h (struct so_deleter): New.
10092 (so_list_up): New typedef.
10093 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
10094
e3ad2841
TT
100952017-08-03 Tom Tromey <tom@tromey.com>
10096
10097 * utils.h (make_cleanup_restore_current_language): Remove.
10098 * utils.c (do_restore_current_language)
10099 (make_cleanup_restore_current_language): Remove.
10100 * parse.c (parse_exp_in_context_1)
10101 (parse_expression_with_language): Use
10102 scoped_restore_current_language.
10103 * mi/mi-main.c (mi_cmd_execute): Use
10104 scoped_restore_current_language.
10105 * language.h (scoped_restore_current_language): New class.
10106
b80cf838
TT
101072017-08-03 Tom Tromey <tom@tromey.com>
10108
10109 * compile/compile.c (cleanup_unlink_file): Remove.
10110 (compile_to_object): Use gdb::unlinker.
10111 (eval_compile_command): Likewise.
10112
fad0444a
TT
101132017-08-03 Tom Tromey <tom@tromey.com>
10114
10115 * utils.h (make_cleanup_fclose): Remove.
10116 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
10117
6e7bc05c
TT
101182017-08-03 Tom Tromey <tom@tromey.com>
10119
10120 * top.c (open_terminal_stream): Return gdb_file_up.
10121 (new_ui_command): Update.
10122
4a45905b
TT
101232017-08-03 Tom Tromey <tom@tromey.com>
10124
10125 * source.c (print_source_lines_base, forward_search_command)
10126 (reverse_search_command): Use gdb_file_up.
10127
7cd06d6e
TT
101282017-08-03 Tom Tromey <tom@tromey.com>
10129
10130 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10131
ed166945
TT
101322017-08-03 Tom Tromey <tom@tromey.com>
10133
10134 * cli/cli-cmds.c (find_and_open_script): Change return type.
10135 Remove "streamp" and "full_path" parameters.
10136 (source_script_with_search): Update.
10137 * auto-load.c (source_script_file): Update.
10138 * cli/cli-cmds.h (find_and_open_script): Change type.
10139 (open_script): New struct.
10140
d419f42d
TT
101412017-08-03 Tom Tromey <tom@tromey.com>
10142
10143 * xml-support.c (xml_fetch_content_from_file): Update.
10144 * ui-file.c (stdio_file::open): Update.
10145 * tracefile-tfile.c (tfile_start): Update.
10146 * remote.c (remote_file_put, remote_file_get): Update.
10147 * nat/linux-procfs.c (linux_proc_get_int)
10148 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10149 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10150 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10151 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10152 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10153 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10154 * linux-nat.c (linux_proc_pending_signals): Update.
10155 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10156 (file_closer): Remove.
10157 * compile/compile.c (compile_to_object): Update.
10158 * common/filestuff.h (struct gdb_file_deleter): New.
10159 (gdb_file_up): New typedef.
10160 (gdb_fopen_cloexec): Change return type.
10161 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10162 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10163 (dump_binary_file, restore_binary_file): Update.
10164 * auto-load.c (auto_load_objfile_script_1): Update.
10165
4a2b031d
TT
101662017-08-03 Tom Tromey <tom@tromey.com>
10167
10168 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10169 (info_static_tracepoint_markers_command): Likewise.
10170 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10171 * skip.c (skip_info): Use ui_out_emit_table.
10172 * progspace.c (print_program_space): Use ui_out_emit_table.
10173 * osdata.c (info_osdata): Use ui_out_emit_table.
10174 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10175 ui_out_emit_table.
10176 * linux-thread-db.c (info_auto_load_libthread_db): Use
10177 ui_out_emit_table.
10178 * inferior.c (print_inferior): Use ui_out_emit_table.
10179 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10180 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10181 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10182 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10183 * ui-out.h (class ui_out_emit_table): New.
10184
a4f320fd
MR
101852017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10186
10187 * mips-tdep.c (mips_fpu_type_str): New function.
10188 (mips_dump_tdep): Call it.
10189
a2f1f308
MR
101902017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10191
10192 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10193 `->mips_fpu_type'.
10194
7e5ed83b
XR
101952017-07-31 Xavier Roirand <roirand@adacore.com>
10196
10197 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10198
4c9dc811
XR
101992017-07-27 Xavier Roirand <roirand@adacore.com>
10200
10201 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10202
27d41eac
YQ
102032017-07-26 Yao Qi <yao.qi@linaro.org>
10204
10205 * cli/cli-cmds.c (maintenancechecklist): New variable.
10206 * gdbcmd.h (maintenancechecklist): Declare it.
10207 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10208 Call i386_linux_read_description with different masks.
10209 * maint.c (maintenance_check_command): New function.
10210 (_initialize_maint_cmds): Call add_prefix_cmd.
10211 * target-descriptions.c (tdesc_reg): override operator != and ==.
10212 (tdesc_type): Likewise.
10213 (tdesc_feature): Likewise.
10214 (target_desc): Likewise.
10215 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10216 (maintenance_check_xml_descriptions): New function.
10217 (_initialize_target_descriptions) Add command "xml-descriptions".
10218 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10219
ea03d0d3
YQ
102202017-07-26 Yao Qi <yao.qi@linaro.org>
10221
10222 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10223 Include features/i386/32bit-*.c.
10224 (i386_linux_read_description): Generate target description if it
10225 doesn't exist.
10226 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10227 functions.
10228 * features/i386/32bit-linux.c: Re-generated.
10229 * features/i386/32bit-sse.c: Likewise.
10230 * target-descriptions.c (print_c_feature::visit): Print code to
10231 set register number if needed.
10232 (print_c_feature) <m_next_regnum>: New field.
10233
25aa13e5
YQ
102342017-07-26 Yao Qi <yao.qi@linaro.org>
10235
10236 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10237 (FEATURE_XMLFILES): New.
10238 (FEATURE_CFILES): New.
10239 New rules.
10240 (clean-cfiles): Remove generated c files.
10241 * features/i386/32bit-avx.c: Generated.
10242 * features/i386/32bit-avx512.c: Generated.
10243 * features/i386/32bit-core.c: Generated.
10244 * features/i386/32bit-linux.c: Generated.
10245 * features/i386/32bit-mpx.c: Generated.
10246 * features/i386/32bit-pkeys.c: Generated.
10247 * features/i386/32bit-sse.c: Generated.
10248 * target-descriptions.c: Include algorithm.
10249 (tdesc_element_visitor): Add method visit_end.
10250 (print_c_tdesc): Implement visit_end.
10251 (print_c_tdesc:: m_filename_after_features): Move it to
10252 protected.
10253 (print_c_feature): New class.
10254 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10255 name starts with "i386/32bit-".
10256
6eb1e6a8
YQ
102572017-07-26 Yao Qi <yao.qi@linaro.org>
10258
10259 * target-descriptions.c (tdesc_element_visitor): New class.
10260 (tdesc_element): New class.
10261 (tdesc_reg): Inherit from tdesc_element.
10262 (tdesc_reg::accept): New function.
10263 (tdesc_type): Inherit from tdesc_element.
10264 (tdesc_type::accept): New function.
10265 (tdesc_feature): Inherit from tdesc_element.
10266 (tdesc_feature::accept): New function.
10267 (target_desc): Inherit from tdesc_element.
10268 (target_desc::target_desc): New.
10269 (target_desc::~target_desc): New.
10270 (target_desc::accept): New.
10271 (allocate_target_description): Use new.
10272 (free_target_description): Use delete.
10273 (print_c_tdesc): New class.
10274 (maint_print_c_tdesc_cmd): Adjust.
10275
10276 * features/aarch64.c: Re-generated.
10277 * features/arc-arcompact.c: Re-generated.
10278 * features/arc-v2.c: Re-generated.
10279 * features/arm/arm-with-iwmmxt.c: Re-generated.
10280 * features/arm/arm-with-m.c: Re-generated.
10281 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10282 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10283 * features/arm/arm-with-neon.c: Re-generated.
10284 * features/arm/arm-with-vfpv2.c: Re-generated.
10285 * features/arm/arm-with-vfpv3.c: Re-generated.
10286 * features/i386/amd64-avx-avx512.c: Re-generated.
10287 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10288 * features/i386/amd64-avx.c: Re-generated.
10289 * features/i386/amd64-avx-linux.c: Re-generated.
10290 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10291 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10292 * features/i386/amd64-avx-mpx.c: Re-generated.
10293 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10294 * features/i386/amd64.c: Re-generated.
10295 * features/i386/amd64-linux.c: Re-generated.
10296 * features/i386/amd64-mpx.c: Re-generated.
10297 * features/i386/amd64-mpx-linux.c: Re-generated.
10298 * features/i386/i386-avx-avx512.c: Re-generated.
10299 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10300 * features/i386/i386-avx.c: Re-generated.
10301 * features/i386/i386-avx-linux.c: Re-generated.
10302 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10303 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10304 * features/i386/i386-avx-mpx.c: Re-generated.
10305 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10306 * features/i386/i386.c: Re-generated.
10307 * features/i386/i386-linux.c: Re-generated.
10308 * features/i386/i386-mmx.c: Re-generated.
10309 * features/i386/i386-mmx-linux.c: Re-generated.
10310 * features/i386/i386-mpx.c: Re-generated.
10311 * features/i386/i386-mpx-linux.c: Re-generated.
10312 * features/i386/x32-avx-avx512.c: Re-generated.
10313 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10314 * features/i386/x32-avx.c: Re-generated.
10315 * features/i386/x32-avx-linux.c: Re-generated.
10316 * features/i386/x32.c: Re-generated.
10317 * features/i386/x32-linux.c: Re-generated.
10318 * features/microblaze.c: Re-generated.
10319 * features/microblaze-with-stack-protect.c: Re-generated.
10320 * features/mips64-dsp-linux.c: Re-generated.
10321 * features/mips64-linux.c: Re-generated.
10322 * features/mips-dsp-linux.c: Re-generated.
10323 * features/mips-linux.c: Re-generated.
10324 * features/nds32.c: Re-generated.
10325 * features/nios2.c: Re-generated.
10326 * features/nios2-linux.c: Re-generated.
10327 * features/rs6000/powerpc-32.c: Re-generated.
10328 * features/rs6000/powerpc-32l.c: Re-generated.
10329 * features/rs6000/powerpc-403.c: Re-generated.
10330 * features/rs6000/powerpc-403gc.c : Re-generated.
10331 * features/rs6000/powerpc-405.c: Re-generated.
10332 * features/rs6000/powerpc-505.c: Re-generated.
10333 * features/rs6000/powerpc-601.c: Re-generated.
10334 * features/rs6000/powerpc-602.c: Re-generated.
10335 * features/rs6000/powerpc-603.c: Re-generated.
10336 * features/rs6000/powerpc-604.c: Re-generated.
10337 * features/rs6000/powerpc-64.c: Re-generated.
10338 * features/rs6000/powerpc-64l.c: Re-generated.
10339 * features/rs6000/powerpc-7400.c: Re-generated.
10340 * features/rs6000/powerpc-750.c: Re-generated.
10341 * features/rs6000/powerpc-860.c: Re-generated.
10342 * features/rs6000/powerpc-altivec32.c: Re-generated.
10343 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10344 * features/rs6000/powerpc-altivec64.c: Re-generated.
10345 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10346 * features/rs6000/powerpc-cell32l.c: Re-generated.
10347 * features/rs6000/powerpc-cell64l.c: Re-generated.
10348 * features/rs6000/powerpc-e500.c: Re-generated.
10349 * features/rs6000/powerpc-e500l.c: Re-generated.
10350 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10351 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10352 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10353 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10354 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10355 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10356 * features/rs6000/powerpc-vsx32.c: Re-generated.
10357 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10358 * features/rs6000/powerpc-vsx64.c: Re-generated.
10359 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10360 * features/rs6000/rs6000.c: Re-generated.
10361 * features/s390-linux32.c: Re-generated.
10362 * features/s390-linux32v1.c: Re-generated.
10363 * features/s390-linux32v2.c: Re-generated.
10364 * features/s390-linux64.c: Re-generated.
10365 * features/s390-linux64v1.c: Re-generated.
10366 * features/s390-linux64v2.c: Re-generated.
10367 * features/s390-te-linux64.c: Re-generated.
10368 * features/s390-tevx-linux64.c: Re-generated.
10369 * features/s390-vx-linux64.c: Re-generated.
10370 * features/s390x-linux64.c: Re-generated.
10371 * features/s390x-linux64v1.c: Re-generated.
10372 * features/s390x-linux64v2.c: Re-generated.
10373 * features/s390x-te-linux64.c: Re-generated.
10374 * features/s390x-tevx-linux64.c: Re-generated.
10375 * features/s390x-vx-linux64.c: Re-generated.
10376 * features/sparc/sparc32-solaris.c: Re-generated.
10377 * features/sparc/sparc64-solaris.c: Re-generated.
10378 * features/tic6x-c62x.c: Re-generated.
10379 * features/tic6x-c62x-linux.c: Re-generated.
10380 * features/tic6x-c64x.c: Re-generated.
10381 * features/tic6x-c64x-linux.c: Re-generated.
10382 * features/tic6x-c64xp.c: Re-generated.
10383 * features/tic6x-c64xp-linux.c: Re-generated.
10384
35b4818d
YQ
103852017-07-26 Yao Qi <yao.qi@linaro.org>
10386
10387 * i386-linux-tdep.c (i386_linux_read_description): New function.
10388 (i386_linux_core_read_description): Call
10389 i386_linux_read_description.
10390 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10391 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10392 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10393 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10394 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10395 * x86-linux-nat.c (x86_linux_read_description): Call
10396 i386_linux_read_description.
10397
8e2141c6
YQ
103982017-07-26 Yao Qi <yao.qi@linaro.org>
10399
10400 * NEWS: Mention it.
10401 * features/Makefile (%.c: %.xml): Pass the xml file name to
10402 command "maint print c-tdesc".
10403 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10404 name from 'arg'.
10405
b468ff4c
YQ
104062017-07-26 Yao Qi <yao.qi@linaro.org>
10407
10408 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10409 in-class initialization.
10410 (tdesc_create_feature): Call new instead of XCNEW.
10411 (free_target_description): Ue delete.
10412
b9c0e1b4
JB
104132017-07-25 John Baldwin <jhb@FreeBSD.org>
10414
10415 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10416
a04b5337
YQ
104172017-07-25 Yao Qi <yao.qi@linaro.org>
10418
10419 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10420 constant.
10421 (amd64_x32_init_abi): Likewise.
10422 * amd64-tdep.h (amd64_init_abi): Update declaration.
10423 (amd64_x32_init_abi): Likewise.
10424
02ad7fc2
YQ
104252017-07-25 Yao Qi <yao.qi@linaro.org>
10426
10427 PR tdep/21717
10428 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10429 condition for FPSCR.
10430 (arm_linux_store_inferior_registers): Likewise.
10431
b6f48cb0
TT
104322017-07-22 Tom Tromey <tom@tromey.com>
10433
10434 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10435 <syscalls_counts>: Now a std::vector.
10436 (get_catch_syscall_inferior_data): Use "new".
10437 (catch_syscall_inferior_data_cleanup): Use "delete".
10438 (insert_catch_syscall, remove_catch_syscall)
10439 (clear_syscall_counts): Update.
10440
e12c9b7a
TT
104412017-07-22 Tom Tromey <tom@tromey.com>
10442
10443 * break-catch-syscall.c (syscall_catchpoint)
10444 <syscalls_to_be_caught>: Now a std::vector<int>
10445 (~syscall_catchpoint): Remove.
10446 (insert_catch_syscall, remove_catch_syscall)
10447 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10448 (print_mention_catch_syscall, print_recreate_catch_syscall):
10449 Update.
10450 (create_syscall_event_catchpoint): Change type of "filter"
10451 parameter.
10452 (catch_syscall_split_args): Return a std::vector.
10453 (catch_syscall_command_1, catching_syscall_number_1): Update.
10454
4fa8aeac
TT
104552017-07-22 Tom Tromey <tom@tromey.com>
10456
10457 * break-catch-throw.c (struct exception_catchpoint)
10458 <exception_rx>: Now a std::string.
10459 (~exception_catchpoint): Remove.
10460 (print_one_detail_exception_catchpoint): Update.
10461 (handle_gnu_v3_exceptions): Change type of except_rx.
10462 (extract_exception_regexp): Return a std::string.
10463 (catch_exception_command_1): Update.
10464
f746a154
TT
104652017-07-22 Tom Tromey <tom@tromey.com>
10466
10467 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10468 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10469 std::vector.
10470 <catch_all>: Now a bool.
10471 (~signal_catchpoint): Remove.
10472 (signal_catchpoint_insert_location)
10473 (signal_catchpoint_remove_location)
10474 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10475 (signal_catchpoint_print_mention)
10476 (signal_catchpoint_print_recreate)
10477 (signal_catchpoint_explains_signal): Update.
10478 (create_signal_catchpoint): Change type of "filter" and
10479 "catch_all".
10480 (catch_signal_split_args): Return a std::vector. Change type of
10481 "catch_all".
10482 (catch_signal_command): Update.
10483
47e77640
PA
104842017-07-20 Pedro Alves <palves@redhat.com>
10485
10486 * ada-lang.c (ada_language_defn): Make extern.
10487 (_initialize_ada_language): Remove add_language call.
10488 * c-lang.c (c_language_defn, cplus_language_defn)
10489 (asm_language_defn, minimal_language_defn): Make extern.
10490 (_initialize_c_language): Delete.
10491 * completer.c (compare_cstrings): Delete, moved to utils.h.
10492 * d-lang.c (d_language_defn): Make extern.
10493 (_initialize_d_language): Remove add_language calls.
10494 * defs.h (enum language): Add comment.
10495 * f-lang.c (f_language_defn): Make extern.
10496 (_initialize_f_language): Remove add_language call.
10497 * go-lang.c (go_language_defn): Make extern.
10498 (_initialize_go_language): Remove add_language call.
10499 * language.c: Include <algorithm>.
10500 (languages): Redefine as const array.
10501 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10502 (set_language_command): Handle "local". Use for-range loop.
10503 (set_language): Remove loop.
10504 (language_enum): Rewrite.
10505 (language_def, language_str): Remove loops.
10506 (add_language): Delete.
10507 (add_set_language_command): New, based on add_languages.
10508 (skip_language_trampoline): Adjust.
10509 (local_language_defn): Delete.
10510 (language_gdbarch_post_init): Adjust.
10511 (_initialize_language): Remove add_language calls. Call
10512 add_set_language_command.
10513 * language.h (add_language): Delete.
10514 (auto_language_defn)
10515 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10516 (asm_language_defn, c_language_defn, cplus_language_defn)
10517 (d_language_defn, f_language_defn, go_language_defn)
10518 (m2_language_defn, objc_language_defn, opencl_language_defn)
10519 (pascal_language_defn, rust_language_defn): Declare.
10520 * m2-lang.c (m2_language_defn): Make extern.
10521 (_initialize_m2_language): Remove add_language call.
10522 * objc-lang.c (objc_language_defn): Make extern.
10523 (_initialize_objc_language): Remove add_language call.
10524 * opencl-lang.c (opencl_language_defn): Make extern.
10525 (_initialize_opencl_language): Remove add_language call.
10526 * p-lang.c (pascal_language_defn): Make extern.
10527 (_initialize_pascal_language): Delete.
10528 * rust-lang.c (rust_language_defn): Make extern.
10529 (_initialize_rust_language): Delete.
10530 * utils.h (compare_cstrings): New static inline function.
10531
edb0c9cb
PA
105322017-07-20 Pedro Alves <palves@redhat.com>
10533
10534 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10535 (get_var_value): Constify parameters.
10536 (get_int_var_value): Change prototype.
10537 (to_fixed_range_type): Adjust.
10538 * ada-lang.h (get_int_var_value): Change prototype.
10539
a778f165
PA
105402017-07-20 Pedro Alves <palves@redhat.com>
10541
10542 * dwarf2read.c (dw2_lookup_symbol): Use
10543 SYMBOL_MATCHES_SEARCH_NAME.
10544 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10545
42edd901
PA
105462017-07-20 Pedro Alves <palves@redhat.com>
10547
10548 * block.c (block_iter_name_step, block_iter_name_first)
10549 (block_iter_name_next): Delete.
10550 (block_lookup_symbol_primary): Adjust to use
10551 dict_iter_match_first/dict_iter_match_next.
10552 * block.h (block_iter_name_first, block_iter_name_next): Delete
10553 declarations.
10554 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10555 dict_iter_match_first/dict_iter_match_next.
10556
cf325299
PA
105572017-07-20 Pedro Alves <palves@redhat.com>
10558
10559 * cp-support.c (cp_find_first_component_aux): Add missing case for
10560 end of string.
10561
c5ed0576
DB
105622017-07-18 David Blaikie <dblaikie@gmail.com>
10563
10564 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10565 of dwo_cu's dwo_file.
10566
27841e76
YQ
105672017-07-18 Yao Qi <yao.qi@linaro.org>
10568
10569 * remote.c (store_registers_using_G): Remove one line comment.
10570
cfb7e58b
YQ
105712017-07-18 Yao Qi <yao.qi@linaro.org>
10572
10573 * regcache.c (regcache_cpy): Simplify it.
10574 (regcache::cpy_no_passthrough): Remove it.
10575 * regcache.h (cpy_no_passthrough): Remove it.
10576 (regcache_dup, regcache_cpy): Update comments.
10577
386535dd
PA
105782017-07-18 Pedro Alves <palves@redhat.com>
10579
10580 * remote-sim.c (sim_command_completer): Adjust to work with a
10581 completion_tracker instead of a VEC.
10582
c45ec17c
PA
105832017-07-17 Pedro Alves <palves@redhat.com>
10584
10585 * completer.c (complete_source_filenames): New function.
10586 (complete_address_and_linespec_locations): New function.
10587 (location_completer): Use complete_address_and_linespec_locations.
10588 (completion_tracker::build_completion_result): Honor the tracker's
10589 request to suppress append.
10590 * completer.h (completion_tracker::suppress_append_ws)
10591 (completion_tracker::set_suppress_append_ws): New methods.
10592 (completion_tracker::m_suppress_append_ws): New field.
10593 (complete_source_filenames): New declaration.
10594 * linespec.c (linespec_complete_what): New.
10595 (struct ls_parser) <complete_what, completion_word,
10596 completion_quote_char, completion_quote_end, completion_tracker>:
10597 New fields.
10598 (string_find_incomplete_keyword_at_end): New.
10599 (linespec_lexer_lex_string): Record quote char. If in completion
10600 mode, don't throw.
10601 (linespec_lexer_consume_token): Advance the completion word point.
10602 (linespec_lexer_peek_token): Save/restore completion info.
10603 (save_stream_and_consume_token): New.
10604 (set_completion_after_number): New.
10605 (linespec_parse_basic): Set what to complete next depending on
10606 token. Handle function and label completions specially.
10607 (parse_linespec): Disable objc shortcut in completion mode. Set
10608 what to complete next depending on token type. Skip keyword if in
10609 completion mode.
10610 (complete_linespec_component, linespec_complete): New.
10611 * linespec.h (linespec_complete): Declare.
10612
be966d42
PA
106132017-07-17 Pedro Alves <palves@redhat.com>
10614
10615 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10616 Handle 'operator<' / 'operator<<'.
10617
a2459270
PA
106182017-07-17 Pedro Alves <palves@redhat.com>
10619
10620 * completer.c (collect_explicit_location_matches): Handle
10621 MATCH_LABEL.
10622 (convert_explicit_location_to_linespec): New, factored out from
10623 ...
10624 (convert_explicit_location_to_sals): ... this.
10625 (complete_label): New.
10626 (linespec_complete_label, find_label_symbols_in_block): New.
10627 (find_label_symbols): Add completion_mode parameter and adjust to
10628 call find_label_symbols_in_block.
10629 * linespec.h (linespec_complete_label): Declare.
10630
c6756f62
PA
106312017-07-17 Pedro Alves <palves@redhat.com>
10632
10633 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10634 complete_symbol_mode parameter.
10635 * cli/cli-cmds.c (complete_command): Get the completion result out
10636 of the handle_brkchars tracker if used a custom word point.
10637 * completer.c: Include "linespec.h".
10638 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10639 (advance_to_expression_complete_word_point): New.
10640 (completion_tracker::completes_to_completion_word): New.
10641 (complete_files_symbols): Pass down
10642 complete_symbol_mode::EXPRESSION.
10643 (explicit_options, probe_options): New.
10644 (collect_explicit_location_matches): Complete on the
10645 explictit_loc->foo instead of word. Use
10646 linespec_complete_function. Handle MATCH_LINE. Handle offering
10647 keyword and options completions.
10648 (backup_text_ptr): Delete.
10649 (skip_keyword): New.
10650 (complete_explicit_location): Remove 'word' parameter. Add
10651 language, quoted_arg_start and quoted_arg_end parameters.
10652 Rewrite, parsing left to right.
10653 (location_completer): Rewrite.
10654 (location_completer_handle_brkchars): New function.
10655 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10656 (enum complete_line_internal_reason): Adjust comments.
10657 (completion_tracker::discard_completions): New.
10658 (completer_handle_brkchars_func_for_completer): Handle
10659 location_completer.
10660 (gdb_custom_word_point_brkchars)
10661 (gdb_org_rl_basic_quote_characters): New.
10662 (gdb_completion_word_break_characters_throw)
10663 (completion_find_completion_word): Handle trackers that use a
10664 custom word point.
10665 (completion_tracker::advance_custom_word_point_by): New.
10666 (completion_tracker::build_completion_result): Don't rely on
10667 readline appending the quote char.
10668 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10669 use a custom word point.
10670 (gdb_rl_attempted_completion_function): Restore
10671 rl_basic_quote_characters.
10672 * completer.h (class completion_tracker): Extend intro comment.
10673 (completion_tracker::set_quote_char)
10674 (completion_tracker::quote_char)
10675 (completion_tracker::set_use_custom_word_point)
10676 (completion_tracker::use_custom_word_point)
10677 (completion_tracker::custom_word_point)
10678 (completion_tracker::set_custom_word_point)
10679 (completion_tracker::advance_custom_word_point_by)
10680 (completion_tracker::completes_to_completion_word)
10681 (completion_tracker::discard_completions): New methods.
10682 (completion_tracker::m_quote_char)
10683 (completion_tracker::m_use_custom_word_point)
10684 (completion_tracker::m_custom_word_point): New fields.
10685 (advance_to_expression_complete_word_point): Declare.
10686 * f-lang.c (f_collect_symbol_completion_matches): Add
10687 complete_symbol_mode parameter.
10688 * language.h (struct language_defn)
10689 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10690 parameter.
10691 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10692 (linespec_complete_function): New function.
10693 (linespec_lexer_lex_keyword): Adjust.
10694 * linespec.h (linespec_keywords, linespec_complete_function): New
10695 declarations.
10696 * location.c (find_end_quote): New function.
10697 (explicit_location_lex_one): Add explicit_completion_info
10698 parameter. Save quoting info. Don't throw if being called for
10699 completion. Don't handle Ada operators here.
10700 (is_cp_operator, skip_op_false_positives, first_of)
10701 (explicit_location_lex_one_function): New function.
10702 (string_to_explicit_location): Replace 'dont_throw' parameter with
10703 an explicit_completion_info pointer parameter. Handle it. Don't
10704 use explicit_location_lex_one to lex function names. Use
10705 explicit_location_lex_one_function instead.
10706 * location.h (struct explicit_completion_info): New.
10707 (string_to_explicit_location): Replace 'dont_throw' parameter with
10708 an explicit_completion_info pointer parameter.
10709 * symtab.c (default_collect_symbol_completion_matches_break_on):
10710 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10711 (default_collect_symbol_completion_matches)
10712 (collect_symbol_completion_matches): Add complete_symbol_mode
10713 parameter.
10714 (collect_symbol_completion_matches_type): Pass down
10715 complete_symbol_mode::EXPRESSION.
10716 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10717 parameter. Handle LINESPEC mode.
10718 * symtab.h (complete_symbol_mode): New.
10719 (default_collect_symbol_completion_matches_break_on)
10720 (default_collect_symbol_completion_matches)
10721 (collect_symbol_completion_matches)
10722 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10723 parameter.
10724
1d550c82
PA
107252017-07-17 Pedro Alves <palves@redhat.com>
10726
10727 * utils.c (enum class strncmp_iw_mode): New.
10728 (strcmp_iw): Rename to ...
10729 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10730 parameters. Handle them.
10731 (strncmp_iw): New.
10732 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10733 * utils.h (strncmp_iw): Declare.
10734 (strcmp_iw): Move describing comments here.
10735
8090b426
PA
107362017-07-17 Pedro Alves <palves@redhat.com>
10737
10738 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10739 CP_OPERATOR_STR.
10740 * c-typeprint.c (is_type_conversion_operator): Use
10741 CP_OPERATOR_STR.
10742 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10743 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10744 CP_OPERATOR_LEN.
10745 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10746 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10747 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10748 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10749 CP_OPERATOR_STR.
10750 * location.c: Include "cp-support.h".
10751 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10752 CP_OPERATOR_STR.
10753 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10754 CP_OPERATOR_LEN.
10755
6a2c1b87
PA
107562017-07-17 Pedro Alves <palves@redhat.com>
10757
10758 * cli/cli-cmds.c (complete_command): Use a completion tracker
10759 along with completion_find_completion_word for handle_brkchars
10760 phase.
10761 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10762 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10763 (struct gdb_rl_completion_word_info): New.
10764 (gdb_rl_find_completion_word): New.
10765 (completion_find_completion_word): New.
10766 * completer.h (completion_find_completion_word): Declare.
10767
eb3ff9a5
PA
107682017-07-17 Pedro Alves <palves@redhat.com>
10769
10770 * ada-lang.c (symbol_completion_match): Adjust comments.
10771 (symbol_completion_add): Replace vector parameter with
10772 completion_tracker parameter. Use it.
10773 (ada_make_symbol_completion_list): Rename to...
10774 (ada_collect_symbol_completion_matches): ... this. Add
10775 completion_tracker parameter and use it.
10776 (ada_language_defn): Adjust.
10777 * break-catch-syscall.c (catch_syscall_completer): Adjust
10778 prototype and work with completion_tracker instead of VEC.
10779 * breakpoint.c (condition_completer): Adjust prototype and work
10780 with completion_tracker instead of VEC.
10781 * c-lang.c (c_language_defn, cplus_language_defn)
10782 (asm_language_defn, minimal_language_defn): Adjust to renames.
10783 * cli/cli-cmds.c (complete_command): Rework using
10784 completion_tracker. Catch exceptions when completing.
10785 * cli/cli-decode.c (integer_unlimited_completer)
10786 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10787 with completion_tracker instead of VEC.
10788 * command.h (struct completion_tracker): Forward declare.
10789 (completer_ftype, completer_handle_brkchars_ftype): Change
10790 types.
10791 (complete_on_cmdlist, complete_on_enum): Adjust.
10792 * completer.c: Include <algorithm>.
10793 (struct gdb_completer_state): New.
10794 (current_completion): New global.
10795 (readline_line_completion_function): Delete.
10796 (noop_completer, filename_completer)
10797 (filename_completer_handle_brkchars, complete_files_symbols)
10798 (linespec_location_completer): Adjust to work with a
10799 completion_tracker instead of a VEC.
10800 (string_or_empty): New.
10801 (collect_explicit_location_matches): Adjust to work with a
10802 completion_tracker instead of a VEC.
10803 (explicit_location_completer): Rename to ...
10804 (complete_explicit_location): ... this and adjust to work with a
10805 completion_tracker instead of a VEC.
10806 (location_completer): Adjust to work with a completion_tracker
10807 instead of a VEC.
10808 (add_struct_fields): Adjust to work with a completion_list instead
10809 of VEC.
10810 (expression_completer): Rename to ...
10811 (complete_expression): ... this and adjust to work with a
10812 completion_tracker instead of a VEC. Use complete_files_symbols.
10813 (expression_completer): Reimplement on top of complete_expression.
10814 (symbol_completer): Adjust to work with a completion_tracker
10815 instead of a VEC.
10816 (enum complete_line_internal_reason): Add describing comments.
10817 (complete_line_internal_normal_command): Adjust to work with a
10818 completion_tracker instead of a VEC.
10819 (complete_line_internal): Rename to ...
10820 (complete_line_internal_1): ... this and adjust to work with a
10821 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10822 handle_brkchars phase.
10823 (new_completion_tracker): Delete.
10824 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10825 complete_line_internal_1.
10826 (free_completion_tracker): Delete.
10827 (INITIAL_COMPLETION_HTAB_SIZE): New.
10828 (completion_tracker::completion_tracker)
10829 (completion_tracker::~completion_tracker): New.
10830 (maybe_add_completion): Delete.
10831 (completion_tracker::maybe_add_completion)
10832 (completion_tracker::add_completion)
10833 (completion_tracker::add_completions): New.
10834 (throw_max_completions_reached_error): Delete.
10835 (complete_line): Adjust to work with a completion_tracker instead
10836 of a VEC. Don't create a completion_tracker_t or check for max
10837 completions here.
10838 (command_completer, command_completer_handle_brkchars)
10839 (signal_completer, reg_or_group_completer_1)
10840 (reg_or_group_completer, default_completer_handle_brkchars):
10841 Adjust to work with a completion_tracker.
10842 (gdb_completion_word_break_characters_throw): New.
10843 (gdb_completion_word_break_characters): Reimplement.
10844 (line_completion_function): Delete.
10845 (completion_tracker::recompute_lowest_common_denominator)
10846 (expand_preserving_ws)
10847 (completion_tracker::build_completion_result)
10848 (completion_result::completion_result)
10849 (completion_result::completion_result)
10850 (completion_result::~completion_result)
10851 (completion_result::completion_result)
10852 (completion_result::release_match_list, compare_cstrings)
10853 (completion_result::sort_match_list)
10854 (completion_result::reset_match_list)
10855 (gdb_rl_attempted_completion_function_throw)
10856 (gdb_rl_attempted_completion_function): New.
10857 * completer.h (completion_list, struct completion_result)
10858 (class completion_tracker): New.
10859 (complete_line): Add completion_tracker parameter.
10860 (readline_line_completion_function): Delete.
10861 (gdb_rl_attempted_completion_function): New.
10862 (noop_completer, filename_completer, expression_completer)
10863 (location_completer, symbol_completer, command_completer)
10864 (signal_completer, reg_or_group_completer): Update prototypes.
10865 (completion_tracker_t, new_completion_tracker)
10866 (make_cleanup_free_completion_tracker): Delete.
10867 (enum maybe_add_completion_enum): Delete.
10868 (maybe_add_completion): Delete.
10869 (throw_max_completions_reached_error): Delete.
10870 * corefile.c (complete_set_gnutarget): Adjust to work with a
10871 completion_tracker instead of a VEC.
10872 * cp-abi.c (cp_abi_completer): Adjust to work with a
10873 completion_tracker instead of a VEC.
10874 * d-lang.c (d_language_defn): Adjust.
10875 * disasm.c (disassembler_options_completer): Adjust to work with a
10876 completion_tracker instead of a VEC.
10877 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10878 (f_collect_symbol_completion_matches): ... this. Adjust to work
10879 with a completion_tracker instead of a VEC.
10880 (f_language_defn): Adjust.
10881 * go-lang.c (go_language_defn): Adjust.
10882 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10883 Adjust to work with a completion_tracker instead of a VEC.
10884 * infrun.c (handle_completer): Likewise.
10885 * interps.c (interpreter_completer): Likewise.
10886 * interps.h (interpreter_completer): Likewise.
10887 * language.c (unknown_language_defn, auto_language_defn)
10888 (local_language_defn): Adjust.
10889 * language.h (language_defn::la_make_symbol_completion_list):
10890 Rename to ...
10891 (language_defn::la_collect_symbol_completion_matches): ... this
10892 and adjust to work with a completion_tracker instead of a VEC.
10893 * m2-lang.c (m2_language_defn): Adjust.
10894 * objc-lang.c (objc_language_defn): Adjust.
10895 * opencl-lang.c (opencl_language_defn): Adjust.
10896 * p-lang.c (pascal_language_defn): Adjust.
10897 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10898 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10899 with a completion_tracker.
10900 * rust-lang.c (rust_language_defn): Adjust.
10901 * symtab.c (free_completion_list, do_free_completion_list)
10902 (return_val, completion_tracker): Delete.
10903 (completion_list_add_name, completion_list_add_symbol)
10904 (completion_list_add_msymbol, completion_list_objc_symbol)
10905 (completion_list_add_fields, add_symtab_completions): Add
10906 completion_tracker parameter and use it.
10907 (default_make_symbol_completion_list_break_on_1): Rename to...
10908 (default_collect_symbol_completion_matches_break_on): ... this.
10909 Add completion_tracker parameter and use it instead of allocating
10910 a completion tracker here.
10911 (default_make_symbol_completion_list_break_on): Delete old
10912 implementation.
10913 (default_make_symbol_completion_list): Delete.
10914 (default_collect_symbol_completion_matches): New.
10915 (make_symbol_completion_list): Delete.
10916 (collect_symbol_completion_matches): New.
10917 (make_symbol_completion_type): Rename to ...
10918 (collect_symbol_completion_matches_type): ... this. Add
10919 completion_tracker parameter and use it instead of VEC.
10920 (make_file_symbol_completion_list_1): Rename to...
10921 (collect_file_symbol_completion_matches): ... this. Add
10922 completion_tracker parameter and use it instead of VEC.
10923 (make_file_symbol_completion_list): Delete.
10924 (add_filename_to_list): Use completion_list instead of a VEC.
10925 (add_partial_filename_data::list): Now a completion_list.
10926 (make_source_files_completion_list): Work with a completion_list
10927 instead of a VEC.
10928 * symtab.h: Include "completer.h".
10929 (default_make_symbol_completion_list_break_on)
10930 (default_make_symbol_completion_list, make_symbol_completion_list)
10931 (make_symbol_completion_type, make_file_symbol_completion_list)
10932 (make_source_files_completion_list): Delete.
10933 (default_collect_symbol_completion_matches_break_on)
10934 (default_collect_symbol_completion_matches)
10935 (collect_symbol_completion_matches)
10936 (collect_symbol_completion_matches_type)
10937 (collect_file_symbol_completion_matches)
10938 (make_source_files_completion_list): New.
10939 * top.c (init_main): Don't install a rl_completion_entry_function
10940 hook. Install a rl_attempted_completion_function hook instead.
10941 * tui/tui-layout.c (layout_completer): Adjust to work with a
10942 completion_tracker.
10943 * tui/tui-regs.c (tui_reggroup_completer):
10944 * tui/tui-win.c (window_name_completer, focus_completer)
10945 (winheight_completer): Adjust to work with a completion_tracker.
10946 * value.c: Include "completer.h".
10947 (complete_internalvar): Adjust to work with a completion_tracker.
10948 * value.h (complete_internalvar): Likewise.
10949
6e1dbf8c
PA
109502017-07-17 Pedro Alves <palves@redhat.com>
10951
10952 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10953 renames.
10954 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10955 comments to completer_ftype's declaration.
10956 <completer_handle_brkchars>: Change type to
10957 completer_handle_brkchars_ftype.
10958 * command.h (completer_ftype): Add describing comment and give
10959 names to parameters.
10960 (completer_ftype_void): Rename to ...
10961 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10962 (set_cmd_completer_handle_brkchars): Adjust.
10963 * completer.c (filename_completer_handle_brkchars): New function.
10964 (complete_line_internal_normal_command): New function, factored
10965 out from ...
10966 (complete_line_internal): ... here.
10967 (command_completer_handle_brkchars)
10968 (default_completer_handle_brkchars)
10969 (completer_handle_brkchars_func_for_completer): New functions.
10970 * completer.h (set_gdb_completion_word_break_characters): Delete
10971 declaration.
10972 (completer_handle_brkchars_func_for_completer): New declaration.
10973 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10974 completer_handle_brkchars_func_for_completer.
10975
78b13106
PA
109762017-07-17 Pedro Alves <palves@redhat.com>
10977
10978 * completer.c (symbol_completer): New function, based on
10979 make_symbol_completion_list_fn.
10980 * completer.h (symbol_completer): New declaration.
10981 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10982 * python/py-cmd.c (completers): Adjust.
10983 * symtab.c (make_symbol_completion_list_fn): Delete.
10984 * symtab.h (make_symbol_completion_list_fn): Delete.
10985 * cli/cli-decode.c (add_cmd): Adjust.
10986
bbf2f4df
PA
109872017-07-17 Pedro Alves <palves@redhat.com>
10988
10989 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10990 * dwarf2read.c: Include "filename-seen-cache.h".
10991 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10992 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10993 * filename-seen-cache.c: New file.
10994 * filename-seen-cache.h: New file.
10995 * symtab.c: Include "filename-seen-cache.h".
10996 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10997 (create_filename_seen_cache, clear_filename_seen_cache)
10998 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10999 to filename-seen-cache.h/filename-seen-cache.c.
11000 (output_source_filename, sources_info)
11001 (maybe_add_partial_symtab_filename)
11002 (make_source_files_completion_list): Adjust to use
11003 filename_seen_cache.
11004
330cdd98
PA
110052017-07-17 Pedro Alves <palves@redhat.com>
11006
11007 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
11008 fields.
11009 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
11010 dwarf2_debug_sections*)): New.
11011 (dwarf2_per_objfile::dwarf2_per_objfile(const
11012 dwarf2_per_objfile&)): Declare as deleted.
11013 (dwarf2_per_objfile::operator=): Declare as deleted.
11014 (dwarf2_per_objfile::dwarf2_per_objfile)
11015 (dwarf2_per_objfile::~dwarf2_per_objfile)
11016 (dwarf2_per_objfile::free_cached_comp_units): New.
11017 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
11018 ctor. Call dwarf2_per_objfile's ctor manually.
11019 (dwarf2_locate_sections): Deleted/refactored as ...
11020 (dwarf2_per_objfile::locate_sections): ... this new method.
11021 (free_cached_comp_units): Defer to
11022 dwarf2_per_objfile::free_cached_comp_units.
11023 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
11024
8880f2a9
TT
110252017-07-14 Tom Tromey <tom@tromey.com>
11026
11027 PR rust/21764:
11028 * rust-exp.y (convert_ast_to_expression): Add "want_type"
11029 parameter.
11030 <UNOP_SIZEOF>: Split into separate case.
11031 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
11032
65547233
TT
110332017-07-14 Tom Tromey <tom@tromey.com>
11034
11035 PR rust/21763:
11036 * symtab.c (symbol_matches_domain): Add language_rust to special
11037 case.
11038 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
11039 treat LOC_TYPEDEF symbols as variables.
11040
8f14146e
PA
110412017-07-14 Pedro Alves <palves@redhat.com>
11042
11043 * symtab.c (make_file_symbol_completion_list_1): Iterate over
11044 symtabs matching all symtabs with SRCFILE as file name instead of
11045 only considering the first hit, with lookup_symtab.
11046
2347965c
SM
110472017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11048
11049 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
11050 operator_name parameters.
11051 (gen_expr): Update function call.
11052
40f4af28
SM
110532017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11054
11055 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
11056 parameter.
11057 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
11058 Likewise.
11059 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
11060 parameter, use agent_expr::gdbarch instead, update function
11061 calls.
11062 (locexpr_tracepoint_var_ref): Likewise.
11063 (loclist_tracepoint_var_ref): Likewise.
11064 * ax-gdb.c (gen_trace_static_fields): Likewise.
11065 (gen_traced_pop): Likewise.
11066 (gen_frame_args_address): Likewise.
11067 (gen_frame_locals_address): Likewise.
11068 (gen_var_ref): Likewise.
11069 (gen_struct_ref_recursive): Likewise.
11070 (gen_static_field): Likewise.
11071 (gen_maybe_namespace_elt): Likewise.
11072 (gen_expr): Likewise.
11073 (gen_trace_for_var): Likewise.
11074 (gen_trace_for_expr): Likewise.
11075 (gen_trace_for_return_address): Likewise.
11076
053f8057
SM
110772017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11078
11079 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
11080 parameter.
11081 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
11082
6661ad48
SM
110832017-07-14 Simon Marchi <simon.marchi@ericsson.com>
11084
11085 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
11086 from ax, update calls.
11087 (gen_usual_arithmetic): Likewise.
11088 (gen_integral_promotions): Likewise.
11089 (gen_bitfield_ref): Likewise.
11090 (gen_primitive_field): Likewise.
11091 (gen_struct_ref_recursive): Likewise.
11092 (gen_struct_ref): Likewise.
11093 (gen_maybe_namespace_elt): Likewise.
11094 (gen_struct_elt_for_reference): Likewise.
11095 (gen_namespace_elt): Likewise.
11096 (gen_aggregate_elt_ref): Likewise.
11097 (gen_expr): Get gdbarch from ax, update calls.
11098 (gen_expr_binop_rest): Likewise.
11099
c55a47e7
PA
111002017-07-13 Pedro Alves <palves@redhat.com>
11101
11102 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
11103 as default tdesc.
11104 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
11105 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
11106 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
11107 tdesc_amd64_linux as default tdesc. Get final tdesc from the
11108 tdep.
11109 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
11110 Get final tdesc from the tdep.
11111 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
11112 default tdesc.
11113 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
11114 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
11115 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
11116 Use it as default tdesc.
11117 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
11118 down to amd_init_abi. No longer handle fallback tdesc here.
11119 * amd64-tdep.h (tdesc_x32): Declare.
11120 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11121 parameter.
11122 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11123 as default tdesc.
11124
55efceab
AA
111252017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11126
11127 * s390-linux-tdep.c (s390_process_record): Add support for
11128 instructions new in arch12.
11129
0aa37b65
JB
111302017-07-11 John Baldwin <jhb@FreeBSD.org>
11131
11132 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11133 PT_GETFSBASE and PT_GETGSBASE.
11134 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11135 PT_SETGSBASE.
11136
48aeef91
JB
111372017-07-11 John Baldwin <jhb@FreeBSD.org>
11138
11139 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11140 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11141 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11142 those rules.
11143 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11144 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11145 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11146 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11147 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11148 * features/i386/amd64.xml: Add 64bit-segments.xml.
11149 * features/i386/amd64-avx-avx512.c: Regenerated.
11150 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11151 * features/i386/amd64-avx-mpx.c: Regenerated.
11152 * features/i386/amd64-avx.c: Regenerated.
11153 * features/i386/amd64-mpx.c: Regenerated.
11154 * features/i386/amd64.c: Regenerated.
11155 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11156 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11157 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11158 * regformats/i386/amd64-avx.dat: Regenerated.
11159 * regformats/i386/amd64-mpx.dat: Regenerated.
11160 * regformats/i386/amd64.dat: Regenerated.
11161
77c501bc
YQ
111622017-07-10 Yao Qi <yao.qi@linaro.org>
11163
11164 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11165 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11166
6dc8d757
AK
111672017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11168
11169 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11170 unsetenv.
11171 * gnulib/aclocal.m4: Regenerate.
11172 * gnulib/config.in: Regenerate.
11173 * gnulib/configure: Regenerate.
11174 * gnulib/import/Makefile.am: Regenerate.
11175 * gnulib/import/Makefile.in: Regenerate.
11176 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11177 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11178 * gnulib/import/m4/environ.m4: New file.
11179 * gnulib/import/m4/setenv.m4: New file.
11180 * gnulib/import/setenv.c: New file.
11181 * gnulib/import/unsetenv.c: New file.
11182
266934d1
SM
111832017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11184
11185 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11186 address when op is DW_OP_addr.
11187
03278692
TT
111882017-07-09 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11191 check and apply to outer type.
11192
4b654465
JB
111932017-07-07 John Baldwin <jhb@FreeBSD.org>
11194
11195 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11196 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11197 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11198 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11199
2af9fc44
JB
112002017-07-07 John Baldwin <jhb@FreeBSD.org>
11201
11202 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11203
382b69bb
JB
112042017-07-07 John Baldwin <jhb@FreeBSD.org>
11205
11206 * corelow.c (get_core_siginfo): Remove.
11207 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11208 instead of get_core_siginfo.
11209 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11210 * gdbarch.h: Re-generate.
11211 * gdbarch.c: Re-generate.
11212 * linux-tdep.c (linux_core_xfer_siginfo): New.
11213 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11214
6e5eab33
JB
112152017-07-07 John Baldwin <jhb@FreeBSD.org>
11216
11217 * corelow.c (thread_section_name): Move to ...
11218 * gdbcore.h (thread_section_name): ... here.
11219
929edea9
JB
112202017-07-07 John Baldwin <jhb@FreeBSD.org>
11221
11222 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11223 (struct siginfo32): New.
11224 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11225 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11226 via ptrace(PT_LWPINFO).
11227
762c974a
JB
112282017-07-07 John Baldwin <jhb@FreeBSD.org>
11229
11230 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11231 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11232 (fbsd_get_siginfo_type): New.
11233 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11234 (_initialize_fbsd_tdep): New.
11235
33c5cd75
DB
112362017-07-06 David Blaikie <dblaikie@gmail.com>
11237
11238 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11239 a singular dwo_unit*) to support multiple CUs in the same way that
11240 multiple TUs are supported.
11241 (create_cus_hash_table): Replace create_dwo_cu with a function for
11242 parsing multiple CUs from a DWO file.
11243 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11244 create_dwo_cu.
11245 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11246 htab_find, rather than comparing the signature to a singleton CU in
11247 the dwo_file.
11248
8455d262
PA
112492017-07-06 Pedro Alves <palves@redhat.com>
11250
11251 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11252
4da3eb35
PA
112532017-07-04 Pedro Alves <palves@redhat.com>
11254
11255 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11256 * gdbtypes.h (TYPE_STATIC): Delete.
11257 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11258 is_synchronized, is_native>: Delete.
11259 <dummy>: Bump.
11260 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11261 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11262 (TYPE_FN_FIELD_ABSTRACT): Delete.
11263
5bfd255c
SM
112642017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11265
11266 * buffer.h (buffer_finish): Fix spelling mistakes.
11267
25c54127
EZ
112682017-07-01 Eli Zaretskii <eliz@gnu.org>
11269
11270 * .dir-locals.el: Automatically switch to C-style comments in
11271 versions of Emacs that support the feature.
11272
dc4bde35
SDJ
112732017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11274 Pedro Alves <palves@redhat.com>
11275
11276 PR cli/21688
11277 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11278 (process_next_line): New variable 'inline_cmd'.
11279 Adjust 'if' clauses for "python", "compile" and "guile" to use
11280 'command_name_equals' and check for '!inline_cmd'.
11281
51ed89aa
SDJ
112822017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11283
11284 PR cli/21688
11285 * cli/cli-script.c (command_name_equals_not_inline): New function.
11286 (process_next_line): Adjust 'if' clauses for "python", "compile"
11287 and "guile" to use command_name_equals_not_inline.
11288
eb17d413
PA
112892017-06-29 Pedro Alves <palves@redhat.com>
11290
11291 * completer.c (expression_completer): Call
11292 linespec_location_completer instead of location_completer.
11293
195bcdd5
PA
112942017-06-29 Pedro Alves <palves@redhat.com>
11295
11296 * completer.c (expression_completer): Remove code that recomputes
11297 'text' from 'word'.
11298
adc764e7
YQ
112992017-06-29 Yao Qi <yao.qi@linaro.org>
11300
11301 * regformats/regdat.sh: Generate code with
11302 "ifndef IN_PROCESS_AGENT".
11303
6e75794e
PA
113042017-06-28 Pedro Alves <palves@redhat.com>
11305
11306 * command.h: Include "common/scoped_restore.h".
11307
bc491f2e
YQ
113082017-06-28 Yao Qi <yao.qi@linaro.org>
11309
11310 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11311 instead of obstack_grow.
11312
41664b45
DG
113132017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11314
11315 PR gdb/21337
11316 * symfile.c (reread_symbols): Call objfiles_changed just before
11317 read_symbols.
11318
6da67eb1
PA
113192017-06-27 Pedro Alves <palves@redhat.com>
11320
11321 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11322 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11323 (completion_list_add_symbol, completion_list_add_msymbol):
11324 ... these new functions.
11325 (add_symtab_completions)
11326 (default_make_symbol_completion_list_break_on_1): Adjust.
11327
23732b1e
PA
113282017-06-27 Pedro Alves <palves@redhat.com>
11329
11330 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11331 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11332 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11333 dtor.
11334 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11335 'storage_obstack' field an auto_obstack. In-class initialize all
11336 non-bitfield fields. Make minsyms_read bool.
11337 * symfile.c (read_symbols): Adjust.
11338
a4d1e79a
AH
113392017-06-27 Alan Hayward <alan.hayward@arm.com>
11340
11341 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11342 (gdbsim_store_register): Likewise.
11343
8268c778
PA
113442017-06-27 Pedro Alves <palves@redhat.com>
11345
11346 * c-exp.y (name_obstack): Now an auto_obstack.
11347 (yylex): Use auto_obstack::clear.
11348 (c_parse): Use auto_obstack::clear instead of reinitializing and
11349 freeing the obstack.
11350 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11351 * d-exp.y (name_obstack): Now an auto_obstack.
11352 (yylex): Use auto_obstack::clear.
11353 (d_parse): Use auto_obstack::clear instead of reinitializing and
11354 freeing the obstack.
11355 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11356 auto_obstack.
11357 * dwarf2read.c (create_addrmap_from_index)
11358 (dwarf2_build_psymtabs_hard)
11359 (update_enumeration_type_from_children): Likewise.
11360 * gdb_obstack.h (auto_obstack): New type.
11361 * go-exp.y (name_obstack): Now an auto_obstack.
11362 (build_packaged_name): Use auto_obstack::clear.
11363 (go_parse): Use auto_obstack::clear instead of reinitializing and
11364 freeing the obstack.
11365 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11366 auto_obstack.
11367 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11368 * rust-exp.y (work_obstack): Now an auto_obstack.
11369 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11370 reinitializing and freeing the obstack.
11371 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11372 (host_char_to_target): Use auto_obstack.
11373 * utils.h (make_cleanup_obstack_free): Delete declaration.
11374 * valprint.c (generic_emit_char, generic_printstr): Use
11375 auto_obstack.
11376
db665f42
SM
113772017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11378
11379 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11380 thread.
11381 (darwin_init_thread_list): Don't update dummy thread.
11382 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11383
873c0814
SM
113842017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11385
11386 * record-full.c (netorder16): Remove.
11387
8b5a7a6e
SM
113882017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11389
11390 * common/diagnostics.h: Define macros for GCC.
11391 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11392 * common/vec.h: Include diagnostics.h.
11393 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11394 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11395 warning.
11396
d1435379
SM
113972017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11398
11399 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11400 New macro.
11401 * ada-lex.l: Ignore deprecated register warnings.
11402
cc75e0fd
SM
114032017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11404
11405 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11406 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11407
07809eaf
SM
114082017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11409
11410 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11411 its own line.
11412
f076f034
SM
114132017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11414
11415 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11416
0dd5cbc5
AH
114172017-06-23 Alan Hayward <alan.hayward@arm.com>
11418
11419 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11420 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11421 (xtensa_register_read_masked): Likewise.
11422
d4c6ce5b
SDJ
114232017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11424
11425 * common/environ.c (gdb_environ::unset): Update comment.
11426
16892a03
AH
114272017-06-22 Alan Hayward <alan.hayward@arm.com>
11428
11429 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11430 registers.
11431
d7dcbefc
AH
114322017-06-22 Alan Hayward <alan.hayward@arm.com>
11433
11434 * record-full.c (record_full_exec_insn): Use byte_vector.
11435
b30ff123
YQ
114362017-06-22 Yao Qi <yao.qi@linaro.org>
11437
11438 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11439 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11440
4fa847d7
AH
114412017-06-22 Alan Hayward <alan.hayward@arm.com>
11442
11443 * remote.c (cached_reg): Move from here...
11444 * regcache.h (cached_reg): ...to here.
11445 * python/py-unwind.c (struct reg_info): Remove.
11446 (cached_frame_info): Use cached_reg_t.
11447 (pyuw_prev_register): Likewise.
11448 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11449 (pyuw_dealloc_cache): Free all registers.
11450
f4906a9a
PA
114512017-06-22 Pedro Alves <palves@redhat.com>
11452 Simon Marchi <simon.marchi@ericsson.com>
11453
11454 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11455 warning.
11456 * common/diagnostics.h: New file.
11457
b45a1208
PA
114582017-06-22 Pedro Alves <palves@redhat.com>
11459
11460 * common/agent.h: Add include guards.
11461
e4da2c61
SM
114622017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11463
11464 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11465 talk about addressable units instead of bytes.
11466
96160d60
SDJ
114672017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11468
11469 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11470 of '::const_iterator'.
11471
9a6c7d9c
SDJ
114722017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11473
11474 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11475 'unittests/environ-selftests.c'.
11476 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11477 * charset.c (find_charset_names): Declare object 'iconv_env'.
11478 Update code to use 'iconv_env' object. Remove call to
11479 'free_environ'.
11480 * common/environ.c: Include <utility>.
11481 (make_environ): Delete function.
11482 (free_environ): Delete function.
11483 (gdb_environ::clear): New function.
11484 (gdb_environ::operator=): New function.
11485 (gdb_environ::get): Likewise.
11486 (environ_vector): Delete function.
11487 (set_in_environ): Delete function.
11488 (gdb_environ::set): New function.
11489 (unset_in_environ): Delete function.
11490 (gdb_environ::unset): New function.
11491 (gdb_environ::envp): Likewise.
11492 * common/environ.h: Include <vector>.
11493 (struct gdb_environ): Delete; transform into...
11494 (class gdb_environ): ... this class.
11495 (free_environ): Delete prototype.
11496 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11497 environ_vector): Likewise.
11498 * infcmd.c (run_command_1): Update code to call
11499 'envp' from 'gdb_environ' class.
11500 (environment_info): Update code to call methods from 'gdb_environ'
11501 class.
11502 (unset_environment_command): Likewise.
11503 (path_info): Likewise.
11504 (path_command): Likewise.
11505 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11506 (inferior::inferior): Initialize 'environment' using the host's
11507 information.
11508 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11509 Include "environ.h".
11510 (class inferior) <environment>: Change type from 'struct
11511 gdb_environ' to 'gdb_environ'.
11512 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11513 methods from 'gdb_environ' class.
11514 * solib.c (solib_find_1): Likewise
11515 * unittests/environ-selftests.c: New file.
11516
75c554cf
YQ
115172017-06-20 Yao Qi <yao.qi@linaro.org>
11518
11519 * features/i386/i386-linux.xml: Exchange the order of including
11520 32bit-linux.xml and 32bit-sse.xml.
11521 * features/i386/i386-linux.c: Regenerated.
11522
72ddacb7
YQ
115232017-06-20 Yao Qi <yao.qi@linaro.org>
11524
11525 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11526 Delete copy ctor and assignment operator.
11527 (tdesc_type): Likewise.
11528 (tdesc_feature): Likewise.
11529 (tdesc_free_reg): Remove.
11530 (tdesc_create_reg): Use new.
11531 (tdesc_free_type): Remove.
11532 (tdesc_create_vector): Use new.
11533 (tdesc_create_union): Likewise.
11534 (tdesc_create_flags): Likewise.
11535 (tdesc_create_enum): Likewise.
11536 (tdesc_free_feature): Delete.
11537 (free_target_description): Use delete.
11538
325c9fd4
JB
115392017-06-19 John Baldwin <jhb@FreeBSD.org>
11540
11541 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11542 registers.
11543
16b7a719
PA
115442017-06-19 Pedro Alves <palves@redhat.com>
11545
11546 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11547 after gdb::unlinker.
11548
1c8e01c9
SDJ
115492017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11550
11551 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11552 gdb_environ to access an environment variable.
11553
ffce45d2
TP
115542017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11555
11556 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11557 gdb_byte*.
11558
1d4fbac9
SM
115592017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11560
11561 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11562
8465943a
SM
115632017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11564
11565 * configure: Re-generate.
11566 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11567
3e019bdc
SM
115682017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11569
11570 * configure: Re-generate.
11571 * warning.m4: Pass -Werror to compiler when checking for
11572 supported warning flags.
11573
cf0dd6f0
SM
115742017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11575
11576 * Makefile.in (COMPILE.pre): Add "-x c++".
11577
6f98355c
YQ
115782017-06-16 Alan Hayward <alan.hayward@arm.com>
11579 Pedro Alves <palves@redhat.com>
11580 Yao Qi <yao.qi@linaro.org>
11581
11582 * defs.h (RequireLongest): New.
11583 (extract_integer): Declare function template.
11584 (extract_signed_integer): Remove the declaration, but define it
11585 static inline.
11586 (extract_unsigned_integer): Likewise.
11587 (store_integer): Declare function template.
11588 (store_signed_integer): Remove the declaration, but define it
11589 static inline.
11590 (store_unsigned_integer): Likewise.
11591 * findvar.c (extract_integer): New function template.
11592 (extract_signed_integer): Remove.
11593 (extract_unsigned_integer): Remove.
11594 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11595 instantiations.
11596 (store_integer): New function template.
11597 (store_signed_integer): Remove.
11598 (store_unsigned_integer): Remove.
11599 (store_integer): Explicit instantiations.
11600 * regcache.c (regcache_raw_read_signed): Update.
11601 (regcache::raw_read): New function.
11602 (regcache::raw_read_signed): Remove.
11603 (regcache::raw_read_unsigned): Remove.
11604 (regcache_raw_read_unsigned): Update.
11605 (regcache_raw_write_unsigned): Update.
11606 (regcache::raw_write_signed): Remove.
11607 (regcache::raw_write): New function.
11608 (regcache_cooked_read_signed): Update.
11609 (regcache::raw_write_unsigned): Remove.
11610 (regcache::cooked_read_signed): Remove.
11611 (regcache_cooked_read_unsigned): Update.
11612 (regcache::cooked_read_unsigned): Remove.
11613 (regcache_cooked_write_signed): Update.
11614 (regcache_cooked_write_unsigned): Update.
11615 * regcache.h (regcache) <raw_read_signed>: Remove.
11616 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11617 <raw_read, raw_write>: New.
11618 <cooked_read_signed, cooked_write_signed>: Remove.
11619 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11620 <cooked_read, cooked_write>: New.
11621 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11622 (sh64_pseudo_register_write): Update.
11623
a87dc45a
AK
116242017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11625
11626 * arc-tdep.c (arc_disassembler_options): New variable.
11627 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11628 of default_print_insn.
11629 (arc_delayed_print_insn): Set info->section when needed,
11630 use default_print_insn to retrieve a disassembler.
11631
45159d6a
SDJ
116322017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11633
11634 PR gdb/21574
11635 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11636 to mention $SHELL and startup-with-shell.
11637
b46c4cf0
MF
116382017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11639
11640 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11641
6394c606
YQ
116422017-06-14 Yao Qi <yao.qi@linaro.org>
11643
11644 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11645 default_print_insn instead of print_insn_aarch64.
11646 * arm-tdep.c (gdb_print_insn_arm): Call
11647 default_print_insn instead of print_insn_big_arm
11648 and print_insn_little_arm.
11649 * i386-tdep.c (i386_print_insn): Call default_print_insn
11650 instead of print_insn_i386.
11651 * ia64-tdep.c (ia64_print_insn): Call
11652 default_print_insn instead of print_insn_ia64.
11653 * mips-tdep.c (gdb_print_insn_mips): Call
11654 default_print_insn instead of print_insn_big_mips
11655 and print_insn_little_mips.
11656 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11657 instead of print_insn_spu.
11658
d5722aa2
PA
116592017-06-14 Pedro Alves <palves@redhat.com>
11660
11661 * ada-lang.c: Include "common/byte-vector.h".
11662 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11663 * charset.c (wchar_iterator::iterate): Resize the vector instead
11664 of reserving it.
11665 * common/byte-vector.h: Include "common/def-vector.h".
11666 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11667 * cli/cli-dump.c: Include "common/byte-vector.h".
11668 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11669 * common/byte-vector.h: New file.
11670 * common/def-vector.h: New file.
11671 * common/default-init-alloc.h: New file.
11672 * dwarf2loc.c: Include "common/byte-vector.h".
11673 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11674 instead of reserving it.
11675 * dwarf2read.c: Include "common/byte-vector.h".
11676 (data_buf::m_vec): Now a gdb::byte_vector.
11677 * gdb_regex.c: Include "common/def-vector.h".
11678 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11679 * mi/mi-main.c: Include "common/byte-vector.h".
11680 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11681 * printcmd.c: Include "common/byte-vector.h".
11682 (print_scalar_formatted): Use gdb::byte_vector.
11683 * valprint.c: Include "common/byte-vector.h".
11684 (maybe_negate_by_bytes, print_decimal_chars): Use
11685 gdb::byte_vector.
11686
01ec7a27
SM
116872017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11688
11689 * darwin-nat.c: Include "nat/fork-inferior.h".
11690
848d9074
SM
116912017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11692
11693 * configure.nat: Factor out Darwin bits that are not
11694 architecture-specific. Add fork-inferior.o.
11695
3b912944
SM
116962017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11697
11698 * configure.nat: Factor out AIX bits that are not
11699 architecture-specific. Add fork-inferior.o.
11700
55acdf22
AA
117012017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11702
11703 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11704 (read_pieced_value, write_pieced_value): ...here. Reduce to
11705 wrappers that just call rw_pieced_value.
11706
f65e2044
AA
117072017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11708
11709 * dwarf2loc.c (write_pieced_value): When writing the data for a
11710 memory piece, use write_memory_with_notification instead of
11711 write_memory.
11712
23f945bf
AA
117132017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11714
11715 * valops.c (read_value_memory): Change embedded_offset to
11716 represent a bit offset instead of a byte offset.
11717 * value.h (read_value_memory): Adjust comment.
11718
f236533e
AA
117192017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11720
11721 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11722 dest_offset_bits and source_offset_bits.
11723 (write_pieced_value): Likewise.
11724
65d84b76
AA
117252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11726
11727 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11728 given by DW_OP_bit_piece.
11729 (write_pieced_value): Likewise.
11730
242d31ab
AA
117312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11732
11733 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11734 some other preparations to the places where sufficient information
11735 is available.
11736 (write_pieced_value): Likewise.
11737
03c8af18
AA
117382017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11739
11740 * dwarf2loc.c (bits_to_bytes): New function.
11741 (read_pieced_value): Fix offset calculations for register pieces
11742 on big-endian targets.
11743 (write_pieced_value): Likewise.
11744
840989c1
AA
117452017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11746
11747 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11748 (write_pieced_value): Likewise.
11749
359b19bb
AA
117502017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11751
11752 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11753 transfer the source value's least significant bits, instead of its
11754 lowest-addressed ones. Rename type_len to max_offset.
11755 (read_pieced_value): Mirror above changes to write_pieced_value as
11756 applicable.
11757
07c9ca3b
AA
117582017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11759
11760 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11761 truncate full bytes from dest_offset_bits before using it as an
11762 offset into the buffer.
11763
f1cc9874
AA
117642017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11765
11766 * dwarf2loc.c (write_pieced_value): Include transfer size in
11767 byte-wise check.
11768
cdaac320
AA
117692017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11770
11771 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11772 calculation of this_size.
11773
af547a96
AA
117742017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11775
11776 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11777 when targeting a bit-field.
11778 (write_pieced_value): Likewise.
11779
ddd7882a
AA
117802017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11781
11782 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11783 (allocate_piece_closure): Drop addr_size parameter.
11784 (dwarf2_evaluate_loc_desc_full): Adjust call to
11785 allocate_piece_closure.
11786
e9352324
AA
117872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11788
11789 PR gdb/21226
11790 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11791 the LSB end, independent of endianness.
11792
d5d1163e
AA
117932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11794
11795 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11796 size capping.
11797
032bb6ea
YQ
117982017-06-13 Yao Qi <yao.qi@linaro.org>
11799
11800 * mips-linux-nat.c: Move include features/mips*-linux.c to
11801 mips-linux-tdep.c.
11802 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11803 to mips-linux-tdep.c.
11804 * mips-linux-tdep.c: Include features/mips*-linux.c
11805 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11806 functions.
11807 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11808 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11809 (tdesc_mips64_dsp_linux): Declare.
11810
f12f6bad
TT
118112017-06-12 Tom Tromey <tom@tromey.com>
11812
11813 * valprint.h (val_print_type_code_int): Remove.
11814 * valprint.c (generic_val_print_int): Always call
11815 val_print_scalar_formatted.
11816 (val_print_type_code_int): Remove.
11817 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11818 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11819 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11820 * ada-valprint.c (ada_val_print_num): Use
11821 val_print_scalar_formatted.
11822
d9109c80
TT
118232017-06-12 Tom Tromey <tom@tromey.com>
11824
11825 * printcmd.c (print_scalar_formatted): Unify the two switches.
11826 Don't convert scalars to LONGEST.
11827
4ac0cb1c
TT
118282017-06-12 Tom Tromey <tom@tromey.com>
11829
11830 PR exp/16225:
11831 * valprint.h (print_decimal_chars): Update.
11832 * valprint.c (maybe_negate_by_bytes): New function.
11833 (print_decimal_chars): Add "is_signed" argument.
11834 * printcmd.c (print_scalar_formatted): Update.
11835
30a25466
TT
118362017-06-12 Tom Tromey <tom@tromey.com>
11837
11838 PR exp/16225:
11839 * valprint.h (print_binary_chars, print_hex_chars): Update.
11840 * valprint.c (val_print_type_code_int): Update.
11841 (print_binary_chars): Add "zero_pad" argument.
11842 (emit_octal_digit): New function.
11843 (print_octal_chars): Don't zero-pad.
11844 (print_decimal_chars): Likewise.
11845 (print_hex_chars): Add "zero_pad" argument.
11846 * sh64-tdep.c (sh64_do_fp_register): Update.
11847 * regcache.c (regcache::dump): Update.
11848 * printcmd.c (print_scalar_formatted): Update.
11849 * infcmd.c (default_print_one_register_info): Update.
11850
b3464d03
PA
118512017-06-12 Pedro Alves <palves@redhat.com>
11852 Alan Hayward <alan.hayward@arm.com>
11853
11854 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11855 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11856 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11857 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11858 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11859
4b76cda9
PA
118602017-06-12 Pedro Alves <palves@redhat.com>
11861
11862 * dwarf2read.c (mapped_symtab::data): Now a vector of
11863 symtab_index_entry instead of vector of
11864 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11865 whether an element's name is NULL instead of checking whether the
11866 element itself is NULL.
11867 (find_slot): Change return type. Adjust.
11868 (hash_expand, , add_index_entry, uniquify_cu_indices)
11869 (write_hash_table): Adjust.
11870
e8f8bcb3
PA
118712017-06-12 Pedro Alves <palves@redhat.com>
11872
11873 * dwarf2read.c (recursively_count_psymbols): New function.
11874 (write_psymtabs_to_index): Call it to compute number of psyms and
11875 pass estimate size of psyms_seen to unordered_set's ctor.
11876
70a1152b
PA
118772017-06-12 Pedro Alves <palves@redhat.com>
11878
11879 * dwarf2read.c (write_hash_table): Check if key already exists
11880 before emplacing.
11881
c2f134ac
PA
118822017-06-12 Pedro Alves <palves@redhat.com>
11883
11884 * dwarf2read.c (data_buf::append_space): Rename to...
11885 (data_buf::grow): ... this, and make private. Adjust all callers.
11886 (data_buf::append_uint): New method.
11887 (add_address_entry, write_one_signatured_type)
11888 (write_psymtabs_to_index): Use it.
11889
a81e6d4d
PA
118902017-06-12 Pedro Alves <palves@redhat.com>
11891
11892 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11893 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11894 (data_buf::file_write): Call ::fwrite directly.
11895
6fd931f2
PA
118962017-06-12 Pedro Alves <palves@redhat.com>
11897
11898 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11899 std::vector::erase.
11900
bc8f2430
JK
119012017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11902
11903 Code cleanup: C++ify .gdb_index producer.
11904 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11905 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11906 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11907 (create_strtab, add_string): Remove.
11908 (file_write, data_buf): New.
11909 (struct symtab_index_entry): Use std::vector for cu_indices.
11910 (struct mapped_symtab): Use std::vector for data.
11911 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11912 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11913 Remove.
11914 (find_slot): Change return type. Update it to the new data structures.
11915 (hash_expand, add_index_entry): Update it to the new data structures.
11916 (offset_type_compare): Remove.
11917 (uniquify_cu_indices): Update it to the new data structures.
11918 (c_str_view, c_str_view_hasher, vector_hasher): New.
11919 (add_indices_to_cpool): Remove.
11920 (write_hash_table): Update it to the new data structures.
11921 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11922 (eq_psymtab_cu_index): Remove.
11923 (psym_index_map): New typedef.
11924 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11925 reference and std::unordered_map for cu_index_htab.
11926 (add_address_entry, add_address_entry_worker, write_address_map)
11927 (write_psymbols): Update it to the new data structures.
11928 (write_obstack): Remove.
11929 (struct signatured_type_index_data): Change types_list to a data_buf
11930 reference and psyms_seen to a std::unordered_set reference.
11931 (write_one_signatured_type, recursively_write_psymbols)
11932 (write_psymtabs_to_index): Update it to the new data structures.
11933
c4dcb155
SM
119342017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11935
11936 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11937 separate-debug-file commands.
11938 * symfile.h (separate_debug_file_debug): New global.
11939 * symfile.c (separate_debug_file_debug): New global.
11940 (separate_debug_file_exists, find_separate_debug_file): Add
11941 debug output.
11942 (_initialize_symfile): Add "set debug separate-debug-file"
11943 command.
11944 * build-id.c (build_id_to_debug_bfd,
11945 find_separate_debug_file_by_buildid): Add debug output.
11946
6d45d4b4
SM
119472017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11948
11949 * gdbarch.sh (displaced_step_free_closure): Remove.
11950 * gdbarch.h, gdbarch.c: Re-generate.
11951 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11952 displaced_step_free_closure.
11953 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11954 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11955 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11956 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11957 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11958 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11959 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11960 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11961 * infrun.c (displaced_step_clear): Call xfree instead of
11962 gdbarch_displaced_step_free_closure.
11963
2f91880f
SDJ
119642017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11965
11966 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11967 NULL".
11968
b8b6e72f
AH
119692017-06-08 Alan Hayward <alan.hayward@arm.com>
11970
11971 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11972 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11973 (mn10300_push_dummy_call): Likewise.
11974
5369082e
AH
119752017-06-08 Alan Hayward <alan.hayward@arm.com>
11976
11977 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11978
ff4ca5ac
AH
119792017-06-08 Alan Hayward <alan.hayward@arm.com>
11980
11981 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11982
aefd8b33
SDJ
119832017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11984
11985 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11986 able to start inferiors using a shell.
11987 (New remote packets): Announce new packet "QStartupWithShell".
11988 * remote.c: Add PACKET_QStartupWithShell.
11989 (extended_remote_create_inferior): Handle new
11990 PACKET_QStartupWithShell.
11991 (remote_protocol_features) <QStartupWithShell>: New entry for
11992 PACKET_QStartupWithShell.
11993 (_initialize_remote): Call "add_packet_config_cmd" for
11994 QStartupShell.
11995
2090129c
SDJ
119962017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11997 Pedro Alves <palves@redhat.com>
11998
11999 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
12000 and "nat/fork-inferior.h".
12001 * common/common-inferior.h: New file, with contents from
12002 "gdb/inferior.h".
12003 * commom/common-utils.c: Include "common-utils.h".
12004 (stringify_argv): New function.
12005 * common/common-utils.h (stringify_argv): New prototype.
12006 * configure.nat: Add "fork-inferior.o" as a dependency for
12007 "*linux*", "fbsd*" and "nbsd*" hosts.
12008 * corefile.c (get_exec_file): Update comment.
12009 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
12010 instead of "startup_inferior".
12011 (darwin_create_inferior): Call "add_thread_silent" after
12012 "fork_inferior".
12013 * fork-child.c: Cleanup unnecessary includes.
12014 (SHELL_FILE): Move to "common/common-fork-child.c".
12015 (environ): Likewise.
12016 (exec_wrapper): Initialize.
12017 (get_exec_wrapper): New function.
12018 (breakup_args): Move to "common/common-fork-child.c"; rename to
12019 "breakup_args_for_exec".
12020 (escape_bang_in_quoted_argument): Move to
12021 "common/common-fork-child.c".
12022 (saved_ui): New variable.
12023 (prefork_hook): New function.
12024 (postfork_hook): Likewise.
12025 (postfork_child_hook): Likewise.
12026 (gdb_startup_inferior): Likewise.
12027 (fork_inferior): Move to "common/common-fork-child.c". Update
12028 function to support gdbserver.
12029 (startup_inferior): Likewise.
12030 * gdbcore.h (get_exec_file): Remove declaration.
12031 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
12032 instead of "startup_inferior". Call "add_thread_silent" after
12033 "fork_inferior".
12034 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
12035 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
12036 instead of "startup_inferior". Call "add_thread_silent" after
12037 "fork_inferior".
12038 * inferior.h: Include "common-inferior.h".
12039 (trace_start_error): Move to "common/common-utils.h".
12040 (trace_start_error_with_name): Likewise.
12041 (fork_inferior): Move prototype to "nat/fork-inferior.h".
12042 (startup_inferior): Likewise.
12043 (gdb_startup_inferior): New prototype.
12044 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
12045 * nat/fork-inferior.h: New file.
12046 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
12047 instead of "startup_inferior". Call "add_thread_silent" after
12048 "fork_inferior".
12049 * target.h (target_terminal_init): Move prototype to
12050 "target/target.h".
12051 (target_terminal_inferior): Likewise.
12052 (target_terminal_ours): Likewise.
12053 * target/target.h (target_terminal_init): New prototype, moved
12054 from "target.h".
12055 (target_terminal_inferior): Likewise.
12056 (target_terminal_ours): Likewise.
12057 * utils.c (gdb_flush_out_err): New function.
12058
043a4934
SDJ
120592017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12060
12061 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
12062 * common/common-gdbthread.h: New file, with parts from
12063 "gdb/gdbthread.h".
12064 * gdbthread.h: Include "common-gdbthread.h".
12065 (switch_to_thread): Moved to "common/common-gdbthread.h".
12066
15652511
SDJ
120672017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
12068
12069 * Makefile.in (SFILES): Add "common/job-control.c".
12070 (HFILES_NO_SRCDIR): Add "common/job-control.h".
12071 (COMMON_OBS): Add "job-control.o".
12072 * common/job-control.c: New file, with contents from
12073 "gdb/inflow.c".
12074 * common/job-control.h: New file, with contents from "terminal.h".
12075 * fork-child.c: Include "job-control.h".
12076 * inflow.c: Include "job-control.h".
12077 (gdb_setpgid): Move to "common/common-inflow.c".
12078 (_initialize_inflow): Move setting of "job_control" to
12079 "handle_job_control".
12080 * terminal.h (job_control): Moved to "common/common-terminal.h".
12081 (gdb_setpgid): Likewise.
12082 * top.c: Include "job_control.h".
12083 * utils.c: Likewise.
12084 (job_control): Moved to "job-control.c".
12085
2d7cc5c7
PA
120862017-06-07 Pedro Alves <palves@redhat.com>
12087
12088 * Makefile.in (SFILES): Add gdb_regex.c.
12089 (COMMON_OBS): Add gdb_regex.o.
12090 * ada-lang.c (ada_add_standard_exceptions)
12091 (ada_add_exceptions_from_frame, name_matches_regex)
12092 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
12093 parameter type to compiled_regex. Adjust.
12094 (ada_exceptions_list): Use compiled_regex.
12095 * break-catch-throw.c (exception_catchpoint::pattern): Now a
12096 std::unique_ptr<compiled_regex>.
12097 (exception_catchpoint::~exception_catchpoint): Remove regfree
12098 call.
12099 (check_status_exception_catchpoint): Adjust to use compiled_regex.
12100 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
12101 * breakpoint.c (solib_catchpoint::compiled): Now a
12102 std::unique_ptr<compiled_regex>.
12103 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
12104 (check_status_catch_solib): Adjust to use compiled_regex.
12105 (add_solib_catchpoint): Adjust to use compiled_regex.
12106 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
12107 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
12108 compiled_regex reference. Adjust to use it.
12109 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
12110 declaration. Include "gdb_regex.h".
12111 (apropos_cmd): Change regex parameter to compiled_regex reference.
12112 * gdb_regex.c: New file.
12113 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
12114 declarations.
12115 (class compiled_regex): New.
12116 * linux-tdep.c: Include "common/gdb_optional.h".
12117 (struct mapping_regexes): New, factored out from
12118 mapping_is_anonymous_p, and adjusted to use compiled_regex.
12119 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12120 gdb::optional and remove cleanups. Adjust to compiled_regex.
12121 * probe.c: Include "common/gdb_optional.h".
12122 (collect_probes): Use compiled_regex and gdb::optional and remove
12123 cleanups.
12124 * skip.c: Include "common/gdb_optional.h".
12125 (skiplist_entry::compiled_function_regexp): Now a
12126 gdb::optional<compiled_regex>.
12127 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12128 (free_skiplist_entry): Remove regfree call.
12129 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12130 compiled_regex and gdb::optional.
12131 * symtab.c: Include "common/gdb_optional.h".
12132 (search_symbols): Use compiled_regex and gdb::optional.
12133 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12134 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12135 to gdb_regex.c.
12136
50d6adef
AH
121372017-06-07 Alan Hayward <alan.hayward@arm.com>
12138
12139 * regcache.c (regcache::save): Avoid buffer use.
12140 (regcache::dump): Likewise.
12141
4a8a33c8
AH
121422017-06-07 Alan Hayward <alan.hayward@arm.com>
12143
12144 * sh-tdep.c (sh_pseudo_register_read): Remove
12145 MAX_REGISTER_SIZE.
12146 (sh_pseudo_register_write): Likewise.
12147 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12148 (sh64_pseudo_register_write): Likewise
12149
d1be909e
AH
121502017-06-07 Alan Hayward <alan.hayward@arm.com>
12151
12152 * aarch64-tdep.c (aarch64_store_return_value): Use
12153 V_REGISTER_SIZE.
12154 (aarch64_pseudo_read_value): Likewise.
12155 (aarch64_pseudo_write): Likewise.
12156
f4a65042
YQ
121572017-06-06 Yao Qi <yao.qi@linaro.org>
12158
12159 * regformats/regdef.h (set_register_cache): Remove the
12160 declaration.
12161
9f7fb0aa
AH
121622017-06-06 Alan Hayward <alan.hayward@arm.com>
12163
12164 * frame.c (frame_unwind_register_signed): Use
12165 frame_unwind_register_value.
12166
e1e01040
PA
121672017-06-06 Pedro Alves <palves@redhat.com>
12168
12169 PR breakpoints/21553
12170 * breakpoint.c (create_breakpoints_sal_default)
12171 (init_breakpoint_sal, create_breakpoint_sal): Use
12172 gdb::unique_xmalloc_ptr for string parameters.
12173 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12174 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12175 (base_breakpoint_create_breakpoints_sal)
12176 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12177 (strace_marker_create_breakpoints_sal)
12178 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12179 string parameters.
12180 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12181 gdb::unique_xmalloc_ptr for string parameters.
12182 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12183 parameters.
12184
fbe654c8
AH
121852017-06-06 Alan Hayward <alan.hayward@arm.com>
12186
12187 * alpha-tdep.c (alpha_register_to_value): Use
12188 get_frame_register_value.
12189 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12190
ae0d01d6
AH
121912017-06-06 Alan Hayward <alan.hayward@arm.com>
12192
12193 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12194 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12195 (ia64_value_to_register): Likewise.
12196 (ia64_extract_return_value): Likewise.
12197 (ia64_store_return_value): Likewise.
12198 (ia64_push_dummy_call): Likewise.
12199
49cf576c
JB
122002017-06-04 Joel Brobecker <brobecker@adacore.com>
12201
12202 GDB 8.0 released.
12203
26b6a6ab
SM
122042017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12205
12206 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12207
22827c51
SM
122082017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12209
12210 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12211 parameter.
12212 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12213
0e05cf3a
SM
122142017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12215
12216 * event-loop.c (poll_timers): Unallocate timer using delete
12217 instead of xfree.
12218
c1fc2657
SM
122192017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12220
12221 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12222 (struct breakpoint) <~breakpoint>: New.
12223 (struct watchpoint): Inherit from breakpoint.
12224 <~watchpoint>: New.
12225 <base>: Remove.
12226 (struct tracepoint): Inherit from breakpoint.
12227 <base>: Remove.
12228 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12229 (struct longjmp_breakpoint): Inherit from breakpoint.
12230 <~longjmp_breakpoint>: New.
12231 <base>: Remove.
12232 (new_breakpoint_from_type): Remove casts.
12233 (watchpoint_in_thread_scope): Remove reference to base field.
12234 (watchpoint_del_at_next_stop): Likewise.
12235 (update_watchpoint): Likewise.
12236 (watchpoint_check): Likewise.
12237 (bpstat_check_watchpoint): Likewise.
12238 (set_longjmp_breakpoint): Likewise.
12239 (struct fork_catchpoint): Inherit from breakpoint.
12240 <base>: Remove.
12241 (struct solib_catchpoint): Inherit from breakpoint.
12242 <~solib_catchpoint>: New.
12243 <base>: Remove.
12244 (dtor_catch_solib): Change to ...
12245 (solib_catchpoint::~solib_catchpoint): ... this.
12246 (breakpoint_hit_catch_solib): Remove reference to base field.
12247 (add_solib_catchpoint): Likewise.
12248 (create_fork_vfork_event_catchpoint): Likewise.
12249 (struct exec_catchpoint): Inherit from breakpoint.
12250 <~exec_catchpoint>: New.
12251 <base>: Remove.
12252 (dtor_catch_exec): Change to ...
12253 (exec_catchpoint::~exec_catchpoint): ... this.
12254 (dtor_watchpoint): Change to ...
12255 (watchpoint::~watchpoint): ... this.
12256 (watch_command_1): Remove reference to base field.
12257 (catch_exec_command_1): Likewise.
12258 (base_breakpoint_dtor): Change to ...
12259 (breakpoint::~breakpoint): ... this.
12260 (base_breakpoint_ops): Remove dtor field value.
12261 (longjmp_bkpt_dtor): Change to ...
12262 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12263 (strace_marker_create_breakpoints_sal): Remove reference to base
12264 field.
12265 (delete_breakpoint): Don't manually call breakpoint destructor.
12266 (create_tracepoint_from_upload): Remove reference to base field.
12267 (trace_pass_set_count): Likewise.
12268 (initialize_breakpoint_ops): Don't initialize
12269 momentary_breakpoint_ops, don't set dtors.
12270 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12271 <~ada_catchpoint>: New.
12272 <base>: Remove.
12273 (create_excep_cond_exprs): Remove reference to base field.
12274 (dtor_exception): Change to ...
12275 (ada_catchpoint::~ada_catchpoint): ... this.
12276 (dtor_catch_exception): Remove.
12277 (dtor_catch_exception_unhandled): Remove.
12278 (dtor_catch_assert): Remove.
12279 (create_ada_exception_catchpoint): Remove reference to base
12280 field.
12281 (initialize_ada_catchpoint_ops): Don't set dtors.
12282 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12283 breakpoint.
12284 <~signal_catchpoint>: New.
12285 <base>: Remove.
12286 (signal_catchpoint_dtor): Change to ...
12287 (signal_catchpoint::~signal_catchpoint): ... this.
12288 (create_signal_catchpoint): Remove reference to base field.
12289 (initialize_signal_catchpoint_ops): Don't set dtor.
12290 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12291 from breakpoint.
12292 <~syscall_catchpoint>: New.
12293 <base>: Remove.
12294 (dtor_catch_syscall): Change to ...
12295 (syscall_catchpoint::~syscall_catchpoint): ... this.
12296 (create_syscall_event_catchpoint): Remove reference to base
12297 field.
12298 (initialize_syscall_catchpoint_ops): Don't set dtor.
12299 * break-catch-throw.c (struct exception_catchpoint): Inherit
12300 from breakpoint.
12301 <~exception_catchpoint>: New.
12302 <base>: Remove.
12303 (dtor_exception_catchpoint): Change to ...
12304 (exception_catchpoint::~exception_catchpoint): ... this.
12305 (handle_gnu_v3_exceptions): Remove reference to base field.
12306 (initialize_throw_catchpoint_ops): Don't set dtor.
12307 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12308 field.
12309 * remote.c (remote_get_tracepoint_status): Likewise.
12310 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12311 * tracefile.c (tracefile_fetch_registers): Likewise.
12312 * tracepoint.c (actions_command): Likewise.
12313 (validate_actionline): Likewise.
12314 (tfind_1): Likewise.
12315 (get_traceframe_location): Likewise.
12316 (find_matching_tracepoint_location): Likewise.
12317 (parse_tracepoint_status): Likewise.
12318 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12319
3b0871f4
SM
123202017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12321
12322 * breakpoint.c (struct longjmp_breakpoint): New struct.
12323 (is_tracepoint_type): Change return type to bool.
12324 (is_longjmp_type): New function.
12325 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12326 (set_raw_breakpoint_without_location): Use
12327 new_breakpoint_from_type.
12328 (set_raw_breakpoint): Likewise.
12329
a5e364af
SM
123302017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12331
12332 * breakpoint.c (new_breakpoint_from_type): New function.
12333 (create_breakpoint_sal): Use new_breakpoint_from_type and
12334 unique_ptr.
12335 (create_breakpoint): Likewise.
12336
ae3b3f34
SM
123372017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12338
12339 * memattr.c (mem_info_command): Rename to ...
12340 (info_mem_command): ... this.
12341 (mem_enable_command): Rename to ...
12342 (enable_mem_command): ... this.
12343 (mem_disable_command): Rename to ...
12344 (disable_mem_command): ... this.
12345 (mem_delete_command): Rename to ...
12346 (delete_mem_command): ... this.
12347 (_initialize_mem): Adjust function names.
12348
13ace077
MM
123492017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12350
12351 * btrace.c (handle_pt_insn_events): New.
12352 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12353 STATUS. Split into this and ...
12354 (handle_pt_insn_event_flags): ... this.
12355
c56ccc05
MM
123562017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12357
12358 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12359 and struct pt_insn.resynced.
12360 * configure: Regenerated.
12361 * config.in: Regenerated.
12362
08c3f6d2
TW
123632017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12364
12365 * btrace.c (ftrace_find_call_by_number): New function.
12366 (ftrace_new_function): Store objects, not pointers.
12367 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12368 ftrace_new_gap, ftrace_update_function,
12369 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12370 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12371 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12372 btrace_ends_with_single_insn, btrace_call_get): Account for
12373 btrace_thread_info::functions now storing objects.
12374 * btrace.h (struct btrace_thread_info): Add constructor.
12375 (struct btrace_thread_info) <functions>: Make std::vector.
12376 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12377 Initialize with default values.
12378 * record-btrace.c (record_btrace_frame_sniffer): Account for
12379 btrace_thread_info::functions now storing objects.
12380
8ffd39f2
TW
123812017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12382
12383 * btrace.c: Remove typedef bfun_s.
12384 (ftrace_new_gap): Directly add gaps to the list of gaps.
12385 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12386 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12387 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12388 instead of gdb VEC.
12389
4aeb0dfc
TW
123902017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12391
12392 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12393 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12394 with btrace_thread_info::next_segment and
12395 btrace_thread_info::prev_segment.
12396 * btrace.h: Remove struct btrace_func_link.
12397 (struct btrace_function): Replace pair of function segment pointers
12398 with pair of indices.
12399 * python/py-record-btrace.c (btpy_call_prev_sibling,
12400 btpy_call_next_sibling): Replace references to
12401 btrace_thread_info::segment with btrace_thread_info::next_segment and
12402 btrace_thread_info::prev_segment.
12403 * record-btrace.c (record_btrace_frame_this_id): Use
12404 btrace_find_call_by_number.
12405
eb8f2b9c
TW
124062017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12407
12408 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12409 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12410 btrace_insn_next, btrace_insn_prev): Remove references to
12411 btrace_thread_info::flow.
12412 * btrace.h (struct btrace_function): Remove FLOW.
12413
42bfe59e
TW
124142017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12415
12416 * btrace.c (ftrace_find_call_by_number): New function.
12417 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12418 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12419 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12420 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12421 index.
12422 * btrace.h (struct btrace_function): Turn UP into an index.
12423 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12424 as an index.
12425 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12426 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12427 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12428
b54b03bd
TW
124292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12430
12431 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12432 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12433 ftrace_update_function, ftrace_compute_global_level_offset,
12434 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12435 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12436 btrace_insn_end, btrace_is_empty): Remove references to
12437 btrace_thread_info::begin and btrace_thread_info::end.
12438 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12439 (struct btrace_thread_info) <functions>: Adjust comment.
12440 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12441 btrace_thread_info::begin.
12442
8286623c
TW
124432017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12444
12445 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12446 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12447 ftrace_update_function): Remove arguments that implicitly were always
12448 BTINFO->END.
12449 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12450 Don't pass BTINFO->END.
12451
a0f1b963
TW
124522017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12453
12454 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12455 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12456 btrace_find_insn_by_number): Replace function segment pointer with
12457 index.
12458 (btrace_insn_cmp): Simplify.
12459 * btrace.h: (struct btrace_insn_iterator) Rename index to
12460 insn_index. Replace function segment pointer with index into function
12461 segment vector.
12462 * record-btrace.c (record_btrace_call_history): Replace function
12463 segment pointer use with index.
12464 (record_btrace_frame_sniffer): Retrieve function call segment through
12465 vector.
12466 (record_btrace_set_replay): Remove defunc't safety check.
12467
f158f208
TW
124682017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12469
12470 * btrace.c (btrace_ends_with_single_insn): New function.
12471 (btrace_call_get, btrace_call_number, btrace_call_begin,
12472 btrace_call_end, btrace_call_next, btrace_call_prev,
12473 btrace_find_call_by_number): Use index into call segment vector
12474 instead of pointer.
12475 (btrace_call_cmp): Simplify.
12476 * btrace.h (struct btrace_call_iterator): Replace function call segment
12477 pointer with index into vector.
12478 * record-btrace.c (record_btrace_call_history): Use index instead of
12479 pointer.
12480
521103fd
TW
124812017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12482
12483 * btrace.c (btrace_insn_begin, btrace_insn_end,
12484 btrace_find_insn_by_number): Add btinfo to iterator.
12485 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12486
17b89b34
TW
124872017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12488
12489 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12490 and save pointers directly.
12491 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12492 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12493 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12494 changed signature of functions.
12495 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12496 (btrace_fetch): Remove code that adds btrace_function pointers to
12497 vector of btrace_functions.
12498 (btrace_clear): Simplify freeing vector of btrace_functions.
12499
2b51eddc
TW
125002017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12501
12502 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12503 Replace VEC_* with std::vector functions.
12504 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12505 (struct btrace_thread_info)<functions>: Change type to std::vector.
12506
db6be0d5
SM
125072017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12508
12509 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12510 "Removed targets and native configurations" up. Merge duplicate
12511 "New commands" sub-sections. Add "New options" sub-sections.
12512
b057297a
AH
125132017-05-26 Alan Hayward <alan.hayward@arm.com>
12514
12515 * defs.h (copy_integer_to_size): New declaration.
12516 * findvar.c (copy_integer_to_size): New function.
12517 (do_cint_test): New selftest function.
12518 (copy_integer_to_size_test): Likewise.
12519 (_initialize_findvar): Likewise.
12520 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12521 (mips_fbsd_collect_reg): Use raw_collect_integer.
12522 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12523 (mips64_fill_gregset): Use raw_collect_integer
12524 (mips64_fill_fpregset): Use raw_supply_integer.
12525 * regcache.c (regcache::raw_supply_integer): New function.
12526 (regcache::raw_collect_integer): Likewise.
12527 * regcache.h: (regcache::raw_supply_integer): New declaration.
12528 (regcache::raw_collect_integer): Likewise.
12529
b77b02a5
YQ
125302017-05-24 Yao Qi <yao.qi@linaro.org>
12531
12532 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12533 (COMMON_OBS): Add gdbarch-selftests.o.
12534 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12535 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12536 * gdbarch-selftests.c: New file.
12537 * regcache.h (regcache) <~regcache>: Mark it virtual if
12538 GDB_SELF_TEST.
12539 <raw_write>: Likewise.
12540
e521e87e
YQ
125412017-05-24 Yao Qi <yao.qi@linaro.org>
12542
12543 * regcache.c (current_regcache): Change it to
12544 regcache::current_regcache.
12545 (regcache_observer_target_changed): Update.
12546 (regcache_thread_ptid_changed): Make it a regcache static
12547 method.
12548 (regcache_thread_ptid_changed): Update.
12549 (class regcache_access): New.
12550 (current_regcache_test): Update.
12551 (_initialize_regcache): Update.
12552 * regcache.h: Include forward_list.
12553 (regcache): Declare regcache_thread_ptid_changed and declare
12554 registers_changed_ptid as friend.
12555
d8e07dda
YQ
125562017-05-24 Yao Qi <yao.qi@linaro.org>
12557
12558 * i387-tdep.c (i387_register_to_value): Use register_size
12559 instead of TYPE_LENGTH.
12560 * m68k-tdep.c (m68k_register_to_value): Likewise.
12561
8c8f9122
YQ
125622017-05-24 Yao Qi <yao.qi@linaro.org>
12563
12564 * i387-tdep.c (i387_convert_register_p): Return false if type
12565 code isn't TYPE_CODE_FLT.
12566
68fce50f
YQ
125672017-05-24 Yao Qi <yao.qi@linaro.org>
12568
12569 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12570 length is 4.
12571 (alpha_register_to_value): Remove type length check.
12572 (alpha_value_to_register): Likewise.
12573
88954b49
YQ
125742017-05-24 Yao Qi <yao.qi@linaro.org>
12575
12576 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12577 TYPE_CODE_FLT.
12578
e3ec9b69
YQ
125792017-05-24 Yao Qi <yao.qi@linaro.org>
12580
12581 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12582 TYPE_CODE_FLT or not.
12583
cdd238da
YQ
125842017-05-24 Yao Qi <yao.qi@linaro.org>
12585
12586 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12587 * avr-tdep.c (avr_gdbarch_init): Likewise.
12588 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12589 * cris-tdep.c (cris_gdbarch_init): Likewise.
12590 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12591 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12592 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12594 * mep-tdep.c (mep_gdbarch_init): Likewise.
12595 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12596 * mips-tdep.c (mips_gdbarch_init): Likewise.
12597 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12598 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12599 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12600 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12601 * v850-tdep.c (v850_gdbarch_init): Likewise.
12602
7a3929c4
YQ
126032017-05-24 Yao Qi <yao.qi@linaro.org>
12604
12605 * selftest-arch.c (tests_with_arch): Call registers_changed
12606 and reinit_frame_cache.
12607 * selftest.c (run_self_tests): Likewise.
12608
f4985dba
YQ
126092017-05-24 Yao Qi <yao.qi@linaro.org>
12610
12611 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12612 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12613
ab20fa4a
YQ
126142017-05-24 Yao Qi <yao.qi@linaro.org>
12615
12616 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12617 set_gdbarch_print_insn.
12618
f532ab94
YQ
126192017-05-24 Yao Qi <yao.qi@linaro.org>
12620
12621 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12622 set_gdbarch_print_insn.
12623
39503f82
YQ
126242017-05-24 Yao Qi <yao.qi@linaro.org>
12625
12626 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12627 set_gdbarch_print_insn.
12628 * arc-tdep.c (arc_gdbarch_init): Likewise.
12629 * arch-utils.c: include dis-asm.h.
12630 (default_print_insn): New function.
12631 * arch-utils.h (default_print_insn): Declare.
12632 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12633 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12634 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12635 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12636 * frv-tdep.c (frv_gdbarch_init): Likewise.
12637 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12638 * gdbarch.sh (print_insn): Use default_print_insn.
12639 * gdbarch.c: Regenerated.
12640 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12641 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12642 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12643 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12644 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12645 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12646 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12647 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12648 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12649 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12650 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12651 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12652 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12653 * mt-tdep.c (mt_gdbarch_init): Likewise.
12654 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12655 * nios2-tdep.c (nios2_print_insn): Remove.
12656 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12657 * rx-tdep.c (rx_gdbarch_init): Likewise.
12658 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12659 * score-tdep.c (score_print_insn): Remove.
12660 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12661 * sh-tdep.c (sh_gdbarch_init): Likewise.
12662 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12663 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12664 * tic6x-tdep.c (tic6x_print_insn): Remove.
12665 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12666 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12667 * v850-tdep.c (v850_gdbarch_init): Likewise.
12668 * vax-tdep.c (vax_gdbarch_init): Likewise.
12669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12670 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12671
f7241d4f
JB
126722017-05-23 John Baldwin <jhb@FreeBSD.org>
12673
12674 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12675 (MIPS_FP0_REGNUM): Remove.
12676 (MIPS_FSR_REGNUM): Remove.
12677 (mips_fbsd_supply_fpregs): Use mips_regnum.
12678 (mips_fbsd_supply_gregs): Likewise.
12679 (mips_fbsd_collect_fpregs): Likewise.
12680 (mips_fbsd_collect_gregs): Likewise.
12681
d489d81d
JB
126822017-05-23 John Baldwin <jhb@FreeBSD.org>
12683
12684 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12685 (getpfpregs_supplies): New function.
12686 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12687 getfpregs_supplies.
12688 (mips_fbsd_store_inferior_registers): Likewise.
12689
e11b3cdc
PA
126902017-05-22 Pedro Alves <palves@redhat.com>
12691
12692 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12693 maintainer.
12694
0f068fb5
AH
126952017-05-22 Alan Hayward <alan.hayward@arm.com>
12696
12697 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12698 (store_register): Likewise.
12699 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12700 (get_decimal_float_return_value): Likewise.
12701 (do_ppc_sysv_return_value): Likewise.
12702 (ppc64_sysv_abi_push_integer): Likewise.
12703 (ppc64_sysv_abi_push_freg): Likewise.
12704 (ppc64_sysv_abi_return_value_base): Likewise.
12705 (ppc64_sysv_abi_return_value): Likewise.
12706 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12707 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12708 * rs6000-nat.c: Likewise.
12709 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12710 (rs6000_value_to_register): Likewise.
12711 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12712
e6cf65f2
TT
127132017-05-21 Tom Tromey <tom@tromey.com>
12714
12715 PR rust/21466:
12716 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12717 arrays as "[T]", not "[T; ]".
12718
43cc5389
TT
127192017-05-19 Tom Tromey <tom@tromey.com>
12720
12721 PR rust/21484:
12722 * rust-lang.c (exp_descriptor_rust): New function.
12723 (rust_language_defn): Use it.
12724 * p-lang.c (pascal_language_defn): Update.
12725 * opencl-lang.c (opencl_language_defn): Update.
12726 * objc-lang.c (objc_language_defn): Update.
12727 * m2-lang.c (m2_language_defn): Update.
12728 * language.h (struct language_defn)
12729 <la_watch_location_expression>: New member.
12730 * language.c (unknown_language_defn, auto_language_defn)
12731 (local_language_defn): Update.
12732 * go-lang.c (go_language_defn): Update.
12733 * f-lang.c (f_language_defn): Update.
12734 * d-lang.c (d_language_defn): Update.
12735 * c-lang.h (c_watch_location_expression): Declare.
12736 * c-lang.c (c_watch_location_expression): New function.
12737 (c_language_defn, cplus_language_defn, asm_language_defn)
12738 (minimal_language_defn): Use it.
12739 * breakpoint.c (watch_command_1): Call
12740 la_watch_location_expression.
12741 * ada-lang.c (ada_language_defn): Update.
12742
7a6e7fcc
RO
127432017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12744
6e7e1744
RO
12745 PR tui/21482
12746 * gdb_curses.h (NOMACROS): Define.
12747 (NCURSES_NOMACROS): Define.
12748
127492017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12750
12751 PR tui/21482
7a6e7fcc
RO
12752 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12753 arg to char *.
12754 * tui/tui-wingeneral.c (box_win): Likewise.
12755 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12756 (tui_show_source_line): Likewise.
12757 (tui_show_exec_info_content): Likewise.
12758
1933fd8e
VM
127592017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12760
12761 * sparc-tdep.c (sparc_structure_return_p)
12762 (sparc_arg_on_registers_p): New functions.
12763 (sparc32_store_arguments): Use them.
12764 * sparc64-tdep.c (sparc64_16_byte_align_p)
12765 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12766 Handle TYPE_CODE_ARRAY.
12767
21873064
YQ
127682017-05-17 Yao Qi <yao.qi@linaro.org>
12769
12770 * cli/cli-decode.c (add_alias_cmd): New function.
12771 * command.h (add_alias_cmd): Declare.
12772 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12773 instead call add_alias_cmd.
12774
2b351b19
PA
127752017-05-17 Pedro Alves <palves@redhat.com>
12776
12777 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12778 (nat_makefile_frag): ... this. All references updated.
12779 * configure.ac: Likewise.
12780 * configure.nat: Likewise. Enhance comments.
12781 * configure: Regenerate.
12782
5f2ad7a3
RO
127832017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12784
12785 * procfs.c (procfs_create_inferior): Change prototype to match
12786 definition.
12787
adf3dde5
EZ
127882017-05-13 Eli Zaretskii <eliz@gnu.org>
12789
12790 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12791 C++ compiler warning.
12792
6830f270
TT
127932017-05-12 Tom Tromey <tom@tromey.com>
12794
12795 PR rust/21483:
12796 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12797 recurse, just call value_struct_elt directly.
12798
68f2f2e3
TT
127992017-05-12 Tom Tromey <tom@tromey.com>
12800
12801 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12802 OP_RUST_ARRAY>: Fix.
12803
256afbc2
TT
128042017-05-12 Tom Tromey <tom@tromey.com>
12805
12806 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12807
94bb8dfe
YQ
128082017-05-09 Yao Qi <yao.qi@linaro.org>
12809
12810 * regcache.c: Include <forward_list>.
12811 (struct regcache_list): Remove.
12812 (current_regcache): Update.
12813 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12814 (regcache_thread_ptid_changed): Likewise.
12815 (registers_changed_ptid): Likewise.
12816 (current_regcache_size): Likewise.
12817
8248946c
YQ
128182017-05-09 Yao Qi <yao.qi@linaro.org>
12819
12820 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12821 (current_regcache_size): New function.
12822 (current_regcache_test): New function.
12823 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12824
313c5961
AH
128252017-05-08 Alan Hayward <alan.hayward@arm.com>
12826
12827 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12828 (print_gp_register_row): Use get_frame_register_value.
12829
27bfc1d1
AH
128302017-05-08 Alan Hayward <alan.hayward@arm.com>
12831
12832 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12833 (mips_supply_fpregset): Likewise.
12834 (mips64_supply_gregset): Likewise.
12835
146e6c5c
AH
128362017-05-08 Alan Hayward <alan.hayward@arm.com>
12837
12838 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12839 regcache->raw_supply_zeroed.
12840
e50f25ec
SDJ
128412017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12842
12843 * configure.nat: Rearrange 'case' statements to match
12844 host before cpu.
12845
21ea5acd
SDJ
128462017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12847
12848 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12849 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12850 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12851 "@nat_extra_makefile_frag@".
12852 (Makefile): Remove dependency on "@frags@".
12853 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12854 (data-directory/Makefile): Likewise.
12855 * config/aarch64/linux.mh: Deleted; moved contents to
12856 "gdb/configure.nat".
12857 * config/alpha/alpha-linux.mh: Likewise.
12858 * config/alpha/nbsd.mh: Likewise.
12859 * config/arm/linux.mh: Likewise.
12860 * config/arm/nbsdelf.mh: Likewise.
12861 * config/i386/cygwin.mh: Likewise.
12862 * config/i386/cygwin64.mh: Likewise.
12863 * config/i386/darwin.mh: Likewise.
12864 * config/i386/fbsd.mh: Likewise.
12865 * config/i386/fbsd64.mh: Likewise.
12866 * config/i386/go32.mh: Likewise.
12867 * config/i386/i386gnu.mh: Likewise.
12868 * config/i386/i386sol2.mh: Likewise.
12869 * config/i386/linux.mh: Likewise.
12870 * config/i386/linux64.mh: Likewise.
12871 * config/i386/mingw.mh: Likewise.
12872 * config/i386/mingw64.mh: Likewise.
12873 * config/i386/nbsd64.mh: Likewise.
12874 * config/i386/nbsdelf.mh: Likewise.
12875 * config/i386/nto.mh: Likewise.
12876 * config/i386/obsd.mh: Likewise.
12877 * config/i386/obsd64.mh: Likewise.
12878 * config/i386/sol2-64.mh: Likewise.
12879 * config/ia64/linux.mh: Likewise.
12880 * config/m32r/linux.mh: Likewise.
12881 * config/m68k/linux.mh: Likewise.
12882 * config/m68k/nbsdelf.mh: Likewise.
12883 * config/m68k/obsd.mh: Likewise.
12884 * config/m88k/obsd.mh: Likewise.
12885 * config/mips/fbsd.mh: Likewise.
12886 * config/mips/linux.mh: Likewise.
12887 * config/mips/nbsd.mh: Likewise.
12888 * config/mips/obsd64.mh: Likewise.
12889 * config/pa/linux.mh: Likewise.
12890 * config/pa/nbsd.mh: Likewise.
12891 * config/pa/obsd.mh: Likewise.
12892 * config/powerpc/aix.mh: Likewise.
12893 * config/powerpc/fbsd.mh: Likewise.
12894 * config/powerpc/linux.mh: Likewise.
12895 * config/powerpc/nbsd.mh: Likewise.
12896 * config/powerpc/obsd.mh: Likewise.
12897 * config/powerpc/ppc64-linux.mh: Likewise.
12898 * config/powerpc/spu-linux.mh: Likewise.
12899 * config/s390/linux.mh: Likewise.
12900 * config/sh/nbsd.mh: Likewise.
12901 * config/sparc/fbsd.mh: Likewise.
12902 * config/sparc/linux.mh: Likewise.
12903 * config/sparc/linux64.mh: Likewise.
12904 * config/sparc/nbsd64.mh: Likewise.
12905 * config/sparc/nbsdelf.mh: Likewise.
12906 * config/sparc/obsd64.mh: Likewise.
12907 * config/sparc/sol2.mh: Likewise.
12908 * config/tilegx/linux.mh: Likewise.
12909 * config/vax/nbsdelf.mh: Likewise.
12910 * config/vax/obsd.mh: Likewise.
12911 * config/xtensa/linux.mh: Likewise.
12912 * config/i386/i386gnu.mn: New file, with excerpts from
12913 "config/i386/i386gnu.mh".
12914 * configure: Regenerate.
12915 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12916 *.mh files under "gdb/config".
12917 * configure.nat: New file, with contents from the
12918 "gdb/config/*/*.mh" files.
12919
7ed1acaf
TW
129202017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12921
12922 * btrace.c (btrace_clear): Free insn vector.
12923
e13cb306
PA
129242017-05-05 Pedro Alves <palves@redhat.com>
12925
12926 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12927 * configure: Regenerate.
12928
5ed8105e
PA
129292017-05-04 Pedro Alves <palves@redhat.com>
12930
12931 * Makefile.in (SFILES): Add progspace-and-thread.c.
12932 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12933 (COMMON_OBS): Add progspace-and-thread.o.
12934 * breakpoint.c: Include "progspace-and-thread.h".
12935 (update_inserted_breakpoint_locations)
12936 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12937 Use scoped_restore_current_pspace_and_thread.
12938 (create_std_terminate_master_breakpoint): Use
12939 scoped_restore_current_program_space.
12940 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12941 (print_breakpoint_location): Use
12942 scoped_restore_current_program_space.
12943 (bp_loc_is_permanent): Use
12944 scoped_restore_current_pspace_and_thread.
12945 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12946 (download_tracepoint_locations): Use
12947 scoped_restore_current_pspace_and_thread.
12948 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12949 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12950 (enum step_over_calls_kind): Moved from inferior.h.
12951 (class scoped_restore_current_thread): New class.
12952 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12953 declaration.
12954 (scoped_restore_current_thread): New class.
12955 * infcmd.c: Include "common/gdb_optional.h".
12956 (continue_1, proceed_after_attach): Use
12957 scoped_restore_current_thread.
12958 (notice_new_inferior): Use scoped_restore_current_thread.
12959 * inferior.c: Include "progspace-and-thread.h".
12960 (restore_inferior, save_current_inferior): Delete.
12961 (add_inferior_command, clone_inferior_command): Use
12962 scoped_restore_current_pspace_and_thread.
12963 * inferior.h (scoped_restore_current_inferior): New class.
12964 * infrun.c: Include "progspace-and-thread.h" and
12965 "common/gdb_optional.h".
12966 (follow_fork_inferior): Use
12967 scoped_restore_current_pspace_and_thread.
12968 (scoped_restore_exited_inferior): New class.
12969 (handle_vfork_child_exec_or_exit): Use
12970 scoped_restore_exited_inferior,
12971 scoped_restore_current_pspace_and_thread,
12972 scoped_restore_current_thread and scoped_restore.
12973 (fetch_inferior_event): Use scoped_restore_current_thread.
12974 * linespec.c (decode_line_full, decode_line_1): Use
12975 scoped_restore_current_program_space.
12976 * mi/mi-main.c: Include "progspace-and-thread.h".
12977 (exec_continue): Use scoped_restore_current_thread.
12978 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12979 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12980 * proc-service.c (ps_pglobal_lookup): Use
12981 scoped_restore_current_program_space.
12982 * progspace-and-thread.c: New file.
12983 * progspace-and-thread.h: New file.
12984 * progspace.c (release_program_space, clone_program_space): Use
12985 scoped_restore_current_program_space.
12986 (restore_program_space, save_current_program_space)
12987 (save_current_space_and_thread): Delete.
12988 (switch_to_program_space_and_thread): Moved to
12989 progspace-and-thread.c.
12990 * progspace.h (save_current_program_space)
12991 (save_current_space_and_thread): Delete declarations.
12992 (scoped_restore_current_program_space): New class.
12993 * remote.c (remote_btrace_maybe_reopen): Use
12994 scoped_restore_current_thread.
12995 * symtab.c: Include "progspace-and-thread.h".
12996 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12997 * thread.c (print_thread_info_1): Use
12998 scoped_restore_current_thread.
12999 (struct current_thread_cleanup): Delete.
13000 (do_restore_current_thread_cleanup)
13001 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
13002 (scoped_restore_current_thread::~scoped_restore_current_thread):
13003 ... this new dtor.
13004 (make_cleanup_restore_current_thread): Rename/convert to ...
13005 (scoped_restore_current_thread::scoped_restore_current_thread):
13006 ... this new ctor.
13007 (thread_apply_all_command): Use scoped_restore_current_thread.
13008 (thread_apply_command): Use scoped_restore_current_thread.
13009 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
13010 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
13011
f6223dbb
PA
130122017-05-04 Pedro Alves <palves@redhat.com>
13013
13014 * thread.c (make_cleanup_restore_current_thread): Move
13015 find_thread_ptid call before the is_stopped call. Assert that the
13016 thread is found. Replace is_stopped call by checking the thread's
13017 state directly. Remove unnecessary NULL-thread check.
13018
3c3ae77e
PA
130192017-05-04 Pedro Alves <palves@redhat.com>
13020
13021 * corelow.c (thread_section_name): New class.
13022 (get_core_register_section, get_core_siginfo): Use it.
13023
45eba0ab
AA
130242017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13025
13026 * corelow.c (sniff_core_bfd): Remove extra semicolon.
13027 (get_core_register_section): Remove xfree of NULL pointer.
13028
f81fdd35
AH
130292017-05-03 Alan Hayward <alan.hayward@arm.com>
13030
13031 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
13032 * regcache.c (regcache::raw_supply_zeroed): New function.
13033 * regcache.h (regcache::raw_supply_zeroed): New declaration.
13034
35837774
SM
130352017-05-03 Simon Marchi <simon.marchi@ericsson.com>
13036
13037 * gdbarch.sh: Remove commented out definition of
13038 TARGET_CHAR_BIT.
13039 * gdbarch.h: Re-generate.
13040
c94fee56
SDJ
130412017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
13042
13043 * configure: Regenerate.
13044
d17f7b36
SM
130452017-05-02 Simon Marchi <simon.marchi@ericsson.com>
13046
13047 * solib-target.c (solib_target_relocate_section_addresses):
13048 Remove num_section_bases, num_bases, segment_bases variables.
13049
b560ebd6
SM
130502017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13051
13052 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
13053
f2f46dfc
SM
130542017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13055
13056 * solib-target.c: Include <vector>
13057 (struct lm_info_target) <~lm_info_target>: Remove.
13058 <segment_bases, section_bases>: Change type to
13059 std::vector<CORE_ADDR>.
13060 (library_list_start_segment, library_list_start_section,
13061 library_list_end_library,
13062 solib_target_relocate_section_addresses): Adjust.
13063
a0ff9e1a
SM
130642017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13065
13066 * gdbarch.sh (software_single_step): Change return type to
13067 std::vector<CORE_ADDR>.
13068 * gdbarch.c, gdbarch.h: Re-generate.
13069 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
13070 Adjust.
13071 (arm_deal_with_atomic_sequence_raw): Adjust.
13072 (thumb_get_next_pcs_raw): Adjust.
13073 (arm_get_next_pcs_raw): Adjust.
13074 (arm_get_next_pcs): Adjust.
13075 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
13076 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
13077 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
13078 (alpha_software_single_step): Adjust.
13079 * alpha-tdep.h (alpha_software_single_step): Adjust.
13080 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
13081 * arm-tdep.c (arm_software_single_step): Adjust.
13082 (arm_breakpoint_kind_from_current_state): Adjust.
13083 * arm-tdep.h (arm_software_single_step): Adjust.
13084 * breakpoint.c (insert_single_step_breakpoint): Adjust.
13085 * cris-tdep.c (cris_software_single_step): Adjust.
13086 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
13087 (micromips_deal_with_atomic_sequence): Adjust.
13088 (deal_with_atomic_sequence): Adjust.
13089 (mips_software_single_step): Adjust.
13090 * mips-tdep.h (mips_software_single_step): Adjust.
13091 * moxie-tdep.c (moxie_software_single_step): Adjust.
13092 * nios2-tdep.c (nios2_software_single_step): Adjust.
13093 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
13094 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
13095 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
13096 * s390-linux-tdep.c (s390_software_single_step): Adjust.
13097 * sparc-tdep.c (sparc_software_single_step): Adjust.
13098 * spu-tdep.c (spu_software_single_step): Adjust.
13099 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
13100
ea480a30
SM
131012017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
13102
13103 * gdbarch.sh: Use semi-colon as field separator instead of colon.
13104 * gdbarch.h: Re-generate.
13105
d050f7d7
TW
131062017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13107
13108 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
13109 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
13110 * python/py-instruction.c, python/py-instruction.h: New file.
13111 * python/py-record.c: Add py-instruction.h include.
13112 (gdbpy_initialize_record): Make gdb.Instruction a super class of
13113 gdb.RecordInstruction.
13114 * python/python-internal.h: Add gdbpy_initialize_instruction
13115 declaration.
13116 * python/python.c (do_start_initialization): Add
13117 gdbpy_initialize_instruction.
13118
14f819c8
TW
131192017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13120
13121 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13122 Remove.
13123 (btrace_func_from_recpy_func): New function.
13124 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13125 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13126 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13127 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13128 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13129 Also, use new helper functions.
13130 (btpy_list_item): Use new helper functions.
13131 (recpy_bt_function_call_history): Use new type name.
13132 (btpy_call_getset): Remove.
13133 (gdbpy_initialize_btrace): Remove code to initialize
13134 gdb.BtraceFunctionCall.
13135 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13136 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13137 recpy_bt_func_prev, recpy_bt_func_next): New export.
13138 * python/py-record.c (recpy_func_type): New static object.
13139 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13140 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13141 recpy_func_next): New function.
13142 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13143 (recpy_func_getset): New static object.
13144 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13145 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13146
0ed5da75
TW
131472017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13148
13149 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13150 (btpy_object, btpy_insn_type, btpy_new): Remove.
13151 (btpy_list_object): Use gdb.RecordInstruction type instead of
13152 gdb.BtraceInstruction type.
13153 (btrace_insn_from_recpy_insn): New function.
13154 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13155 btpy_new.
13156 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13157 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13158 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13159 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13160 instead of btpy_object.
13161 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13162 btpy_insn_data, btpy_insn_decode): Rename to ...
13163 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13164 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13165 recpy_bt_insn_decode): This. Also, use new helper functions.
13166 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13167 recpy_insn_type.
13168 (btpy_insn_getset): Remove.
13169 (gdbpy_initialize_btrace): Remove code to initialize
13170 gdb.BtraceInstruction. Use recpy_element_object.
13171 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13172 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13173 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13174 * python/py-record.c (recpy_insn_type): New static object.
13175 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13176 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13177 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13178 New function.
13179 (recpy_insn_getset): New static object.
13180 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13181 * python/py-record.h (recpy_element_object): New typedef.
13182 (recpy_insn_type, recpy_insn_new): New export.
13183
913aeadd
TW
131842017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13185
13186 * py-record-btrace.c (btpy_insn_new): Removed.
13187 (btpy_insn_or_gap_new): New function.
13188 (btpy_insn_error): Removed.
13189 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13190 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13191 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13192 btpy_insn_or_gap_new instead of btpy_insn_new.
13193 (btpy_insn_getset): Remove btpy_insn_error.
13194 * py-record.c (recpy_gap_type): New static object.
13195 (recpy_gap_object): New typedef.
13196 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13197 recpy_gap_reason_string): New function.
13198 (recpy_gap_getset): New static object.
13199 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13200 * py-record.h (recpy_gap_new): New export.
13201
a3be24ad
TW
132022017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13203
13204 * python/py-record.c (recpy_ptid): Remove.
13205 (recpy_record_getset): Remove recpy_ptid.
13206
ae20e79a
TW
132072017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13208
13209 * btrace.c (btrace_fetch): Set inferior_ptid.
13210 * python/py-record-btrace.c: Add "py-record.h" include.
13211 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13212 recpy_bt_end, recpy_bt_instruction_history,
13213 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13214 in gdb.Record object instead of current ptid.
13215 * python/py-record.c: Include new "py-record.h" file.
13216 (recpy_record_object): Moved to py-record.h.
13217 * python/py-record.h: New file.
13218
8d0050ea
TW
132192017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13220
13221 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13222 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13223 indentation.
13224
3f380b50
JB
132252017-05-01 Joel Brobecker <brobecker@adacore.com>
13226
13227 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13228 the past maintainers section.
13229
07495424
YQ
132302017-04-28 Yao Qi <yao.qi@linaro.org>
13231
13232 * infcmd.c (get_return_value): Use regcache ctor, and remove
13233 cleanup.
13234
deb1fa3e
YQ
132352017-04-28 Yao Qi <yao.qi@linaro.org>
13236 Pedro Alves <palves@redhat.com>
13237
13238 * regcache.c (regcache::regcache): New tag dispatch ctor.
13239 (do_cooked_read): Moved above.
13240 (regcache_dup): Use the tag dispatch ctor..
13241 * regcache.h (regcache): Declare ctor, delete copy ctor and
13242 assignment operator, remove friend regcache_dup.
13243
b421c83c
YQ
132442017-04-28 Yao Qi <yao.qi@linaro.org>
13245
13246 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13247 call method save instead of regcache_cpy.
13248 * regcache.h (struct regcache): Make regcache_dup a friend.
13249
ef79d9a3
YQ
132502017-04-28 Yao Qi <yao.qi@linaro.org>
13251
13252 * regcache.c (struct regcache): Move to regcache.h
13253 (regcache::arch): New method.
13254 (regcache_get_ptid): Update.
13255 (get_regcache_arch): Call arch method.
13256 (get_regcache_aspace): Call method aspace.
13257 (register_buffer): Change it to method.
13258 (regcache_save): Change it to regcache::save.
13259 (regcache_restore): Likewise.
13260 (regcache_cpy_no_passthrough): Remove the declaration.
13261 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13262 (regcache_cpy_no_passthrough): Change it to method
13263 cpy_no_passthrough.
13264 (regcache_register_status): Change it to method
13265 get_register_status.
13266 (regcache_invalidate): Change it to method invalidate.
13267 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13268 (regcache_raw_update): Change it to method raw_update.
13269 (regcache_raw_read): Likewise.
13270 (regcache_raw_read_signed): Likewise.
13271 (regcache_raw_read_unsigned): Likewise.
13272 (regcache_raw_write_signed): Likewise.
13273 (regcache_raw_write_unsigned): Likewise.
13274 (regcache_cooked_read): Likewise.
13275 (regcache_cooked_read_value): Likewise.
13276 (regcache_cooked_read_signed): Likewise.
13277 (regcache_cooked_read_unsigned): Likewise.
13278 (regcache_cooked_write_signed): Likewise.
13279 (regcache_cooked_write_unsigned): Likewise.
13280 (regcache_raw_set_cached_value): Likewise.
13281 (regcache_raw_write): Likewise.
13282 (regcache_cooked_write): Likewise.
13283 (regcache_xfer_part): Likewise.
13284 (regcache_raw_read_part): Likewise.
13285 (regcache_raw_write_part): Likewise.
13286 (regcache_cooked_read_part): Likewise.
13287 (regcache_cooked_write_part): Likewise.
13288 (regcache_raw_supply): Likewise.
13289 (regcache_raw_collect): Likewise.
13290 (regcache_transfer_regset): Likewise.
13291 (regcache_supply_regset): Likewise.
13292 (regcache_collect_regset): Likewise.
13293 (regcache_debug_print_register): Likewise.
13294 (enum regcache_dump_what): Move it to regcache.h.
13295 (regcache_dump): Change it to method dump.
13296 * regcache.h (enum regcache_dump_what): New.
13297 (class regcache): New.
13298 * target.c (target_fetch_registers): Call method
13299 debug_print_register.
13300 (target_store_registers): Likewise.
13301
f8fdb78e
SM
133022017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13303
13304 * windows-nat.c (struct lm_info_windows): Initialize field.
13305 (windows_make_so): Allocate lm_info_windows with new.
13306 (windows_free_so): Free lm_info_windows with delete.
13307
9ccbfd7b
SM
133082017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13309
13310 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13311 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13312 cleanup.
13313 (darwin_free_so): Free lm_info_darwin with delete.
13314
76e75227
SM
133152017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13316
13317 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13318 <l_addr_p>: Change type to bool.
13319 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13320 (svr4_free_so): Free lm_info_svr4 with delete.
13321 (svr4_copy_library_list): Replace memcpy with call to copy
13322 constructor.
13323 (library_list_start_library, svr4_default_sos): Allocate
13324 lm_info_svr4 with new.
13325
51046d9e
SM
133262017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13327
13328 * solib-target.c (struct lm_info_target): Add destructor,
13329 initialize fields.
13330 <name>: Change type to std::string.
13331 (library_list_start_library): Allocate lm_info_target with new.
13332 (solib_target_free_library_list): Free lm_info_target with
13333 delete.
13334 (solib_target_current_sos): Adapt to std::string.
13335 (solib_target_free_so): Free lm_info_target with delete.
13336
4023ae76
SM
133372017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13338
13339 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13340 fields.
13341 (frv_current_sos): Allocate lm_info_frv with new.
13342 (frv_relocate_main_executable): Free lm_info_frv with delete,
13343 allocate with new.
13344 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13345
af43057b
SM
133462017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13347
13348 * solib-frv.c (struct lm_info_frv): Fix indentation.
13349
b0911207
SM
133502017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13351
13352 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13353 map field.
13354 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13355 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13356 and allocate with new.
13357 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13358
6c401f72
SM
133592017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13360
13361 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13362 <filename, member_name>: Change type to std::string.
13363 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13364 (library_list_start_library): Allocate lm_info_aix with new.
13365 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13366 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13367 with copy constructor.
13368
d0e449a1
SM
133692017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13370
13371 * solist.h (struct lm_info): Remove.
13372 (struct lm_info_base): New class.
13373 (struct so_list) <lm_info>: Change type to lm_info_base *.
13374 * nto-tdep.c (struct lm_info): Remove.
13375 (lm_addr): Adjust.
13376 * solib-aix.c (struct lm_info): Rename to ...
13377 (struct lm_info_aix): ... this. Extend lm_info_base.
13378 (lm_info_p): Rename to ...
13379 (lm_info_aix_p): ... this, and adjust.
13380 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13381 solib_aix_parse_libraries, library_list_start_library,
13382 solib_aix_free_library_list, solib_aix_parse_libraries,
13383 solib_aix_get_library_list,
13384 solib_aix_relocate_section_addresses, solib_aix_free_so,
13385 solib_aix_get_section_offsets,
13386 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13387 Adjust.
13388 (struct solib_aix_inferior_data) <library_list>: Adjust.
13389 * solib-darwin.c (struct lm_info): Rename to ...
13390 (struct lm_info_darwin): ... this. Extend lm_info_base.
13391 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13392 * solib-dsbt.c (struct lm_info): Rename to ...
13393 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13394 (struct dsbt_info) <main_executable_lm_info): Adjust.
13395 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13396 dsbt_relocate_section_addresses): Adjust.
13397 * solib-frv.c (struct lm_info): Rename to ...
13398 (struct lm_info_frv): ... this. Extend lm_info_base.
13399 (main_executable_lm_info): Adjust.
13400 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13401 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13402 find_canonical_descriptor_in_load_object,
13403 frv_fdpic_find_canonical_descriptor): Adjust.
13404 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13405 to lm_info_svr4.
13406 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13407 svr4_clear_so, svr4_copy_library_list,
13408 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13409 svr4_current_sos, svr4_fetch_objfile_link_map,
13410 solist_update_incremental): Adjust.
13411 * solib-svr4.h (struct lm_info_svr4): Move here from
13412 solib-svr4.c.
13413 * solib-target.c (struct lm_info): Rename to ...
13414 (struct lm_info_target): ... this. Extend lm_info_base.
13415 (lm_info_p): Rename to ...
13416 (lm_info_target_p): ... this.
13417 (solib_target_parse_libraries, library_list_start_segment,
13418 library_list_start_section, library_list_start_library,
13419 library_list_end_library, solib_target_free_library_list,
13420 solib_target_current_sos, solib_target_free_so,
13421 solib_target_relocate_section_addresses): Adjust.
13422 * windows-nat.c (struct lm_info): Rename to ...
13423 (struct lm_info_windows): ... this. Extend lm_info_base.
13424 (windows_make_so, handle_load_dll, handle_unload_dll,
13425 windows_xfer_shared_libraries): Adjust.
13426
434a4023
SM
134272017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13428
13429 * solib-darwin.c (struct darwin_so_list): Remove.
13430 (darwin_current_sos): Allocate an so_list object instead of a
13431 darwin_so_list, separately allocate an lm_info object.
13432 (darwin_free_so): Free lm_info.
13433
428544e8
JB
134342017-04-28 John Baldwin <jhb@FreeBSD.org>
13435
13436 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13437 with fprintf_filtered.
13438
4621115f
YQ
134392017-04-28 Yao Qi <yao.qi@linaro.org>
13440
13441 * regcache.c (regcache::regcache): New function.
13442 (regcache::~regcache): New function.
13443 (regcache_xmalloc_1): Remove.
13444 (regcache_xmalloc): Call new regcache.
13445 (regcache_xfree): Call delete regcache.
13446 (get_thread_arch_aspace_regcache): Call new regcache.
13447
339053c2
YQ
134482017-04-28 Yao Qi <yao.qi@linaro.org>
13449
13450 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13451 lwp instead of ptid_get_lwp.
13452
7974a605
YQ
134532017-04-28 Yao Qi <yao.qi@linaro.org>
13454
13455 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13456 lwp_info instead of getting from inferior_ptid.
13457
e15c3eb4
KS
134582017-04-27 Keith Seitz <keiths@redhat.com>
13459
13460 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13461 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13462 (CV_CONVERSION_BADNESS): Define.
13463 (rank_one_type): Remove overly restrictive rvalue reference
13464 rank checks.
13465 Add cv-qualifier checks and subranks for type equality.
13466 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13467 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13468 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13469
72bc1d24
SM
134702017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13471
13472 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13473 count when creating the object.
13474
55bcecda
UW
134752017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13476 Ulrich Weigand <uweigand@de.ibm.com>
13477
13478 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13479 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13480 is used in AIX.
13481 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13482 (process_xcoff_symbol): Likewise.
13483 (scan_xcoff_symtab): Likewise.
13484
5c99fcf8
AH
134852017-04-26 Alan Hayward <alan.hayward@arm.com>
13486
13487 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13488 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13489 (ia64_access_reg): Use get_frame_register_unsigned.
13490 (ia64_access_rse_reg): Likewise.
13491 (ia64_libunwind_frame_prev_register): Likewise.
13492
b41c5a85
JW
134932017-04-26 Jiong Wang <jiong.wang@arm.com>
13494
13495 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13496 * gdbarch.c: Regenerated.
13497 * gdbarch.h: Regenerated.
13498 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13499 visibility external.
13500 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13501 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13502 (enum cfa_how_kind): Move to ...
13503 (struct dwarf2_frame_state_reg_info): Likewise.
13504 (struct dwarf2_frame_state): Likewise.
13505 * dwarf2-frame.h: ... here.
13506 (dwarf2_frame_state_alloc_regs): New declaration.
13507 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13508 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13509
c185f580
AH
135102017-04-26 Alan Hayward <alan.hayward@arm.com>
13511
13512 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13513 regcache_raw_read_unsigned.
13514 (xtensa_pseudo_register_write): Likewise.
13515
19c45594
AH
135162017-04-26 Alan Hayward <alan.hayward@arm.com>
13517
13518 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13519 (nds32_pseudo_register_write): Likewise.
13520
4658f12e
YQ
135212017-04-25 Yao Qi <yao.qi@linaro.org>
13522
13523 * regcache.c (struct regcache) <readonly_p>: Change its type
13524 to bool.
13525 (regcache_xmalloc_1): Update parameter type and callers update.
13526
d581dda8
YQ
135272017-04-25 Yao Qi <yao.qi@linaro.org>
13528
13529 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13530 set_gdbarch_wchar_bit.
13531 * arm-tdep.c (arm_gdbarch_init): Likewise.
13532
debed3db
PA
135332017-04-25 Pedro Alves <palves@redhat.com>
13534
13535 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13536 (BothAreRelocatable, memcopy, memmove): Don't define.
13537 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13538 macros.
13539
b0b92aeb
PA
135402017-04-25 Pedro Alves <palves@redhat.com>
13541
13542 * common/common-defs.h: Include "common/poison.h".
13543 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13544 and adjust.
13545 * common/poison.h: New file.
13546 * common/traits.h: Include <type_traits>.
13547 (Not, Or, Requires): New, moved from common/function-view.h.
13548
16c4d54a
PA
135492017-04-25 Pedro Alves <palves@redhat.com>
13550
13551 * breakpoint.h (struct breakpoint): In-class initialize all
13552 fields. Make boolean fields "bool".
13553 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13554 memset call and initializations no longer necessary.
13555
b5c36682
PA
135562017-04-25 Pedro Alves <palves@redhat.com>
13557
13558 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13559 reference.
13560 (pt_btrace_insn): New function.
13561 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13562
5625a286
PA
135632017-04-25 Pedro Alves <palves@redhat.com>
13564
13565 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13566 "base" field and inherit from "bp_location" instead. Add
13567 non-default ctor.
13568 (allocate_location_exception): Use new non-default ctor.
13569 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13570 (init_bp_location): Convert to ...
13571 (bp_location::bp_location): ... this new ctor, and remove memset
13572 call.
13573 (base_breakpoint_allocate_location): Use the new non-default ctor.
13574 * breakpoint.h (bp_location): Now a class. Declare default and
13575 non-default ctors. In-class initialize all members.
13576 (init_bp_location): Remove declaration.
13577
23bcc18f
PA
135782017-04-25 Pedro Alves <palves@redhat.com>
13579
13580 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13581 assignment operator.
13582
e1ba3053
YQ
135832017-04-24 Yao Qi <yao.qi@linaro.org>
13584
13585 * doublest.c (convert_doublest_to_floatformat): Call
13586 floatformat_totalsize_bytes.
13587
10f489e5
TT
135882017-04-22 Tom Tromey <tom@tromey.com>
13589
13590 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13591 ui_out_emit_list.
13592 * stack.c (print_frame): Use ui_out_emit_list.
13593 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13594 ui_out_emit_list.
13595 * mi/mi-main.c (print_one_inferior)
13596 (mi_cmd_data_list_register_names)
13597 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13598 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13599 ui_out_emit_list.
13600 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13601 (mi_output_solib_attribs): Use ui_out_emit_list,
13602 ui_out_emit_tuple.
13603 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13604 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13605 (mi_cmd_stack_list_args, list_args_or_locals): Use
13606 ui_out_emit_list.
13607 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13608 * breakpoint.c (print_solib_event, output_thread_groups): Use
13609 ui_out_emit_list.
13610
0092b74d
TT
136112017-04-22 Tom Tromey <tom@tromey.com>
13612
13613 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13614 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13615 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13616
a14a62dd
TT
136172017-04-22 Tom Tromey <tom@tromey.com>
13618
13619 * tracepoint.c (tvariables_info_1)
13620 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13621
46b9c129
TT
136222017-04-22 Tom Tromey <tom@tromey.com>
13623
13624 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13625 annotate_arg_emitter.
13626 * breakpoint.c (print_mention_watchpoint)
13627 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13628 * annotate.h (struct annotate_arg_emitter): New.
13629
2e783024
TT
136302017-04-22 Tom Tromey <tom@tromey.com>
13631
13632 * record-btrace.c (record_btrace_insn_history)
13633 (record_btrace_insn_history_range, record_btrace_call_history)
13634 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13635 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13636 ui_out_emit_tuple.
13637 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13638 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13639 * skip.c (skip_info): Use ui_out_emit_tuple.
13640 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13641 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13642 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13643 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13644 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13645 ui_out_emit_tuple.
13646 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13647 (output_register, mi_cmd_data_read_memory)
13648 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13649 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13650 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13651 Use ui_out_emit_tuple.
13652 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13653 ui_out_emit_tuple.
13654 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13655 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13656 * linux-thread-db.c (info_auto_load_libthread_db): Use
13657 ui_out_emit_tuple.
13658 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13659 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13660 * disasm.c (do_mixed_source_and_assembly_deprecated)
13661 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13662 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13663 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13664 * breakpoint.c (print_one_breakpoint_location)
13665 (print_one_breakpoint): Use ui_out_emit_tuple.
13666 * auto-load.c (print_script, info_auto_load_cmd): Use
13667 ui_out_emit_tuple.
13668 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13669
9be21bb4
SM
136702017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13671
13672 * thread.c (print_thread_info_1): Remove dead code.
13673
0d4c07af
JK
136742017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13675
13676 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13677 GDB_SELF_TEST.
13678 * arm-tdep.c (selftests::arm_record_test): Likewise.
13679
4daf993d
YQ
136802017-04-21 Yao Qi <yao.qi@linaro.org>
13681
13682 * regcache.c (regcache_restore): Remove argument 2. Replace
13683 argument 3 with regcache. Get register status from
13684 src->register_status and get register contents from
13685 register_buffer (src, regnum).
13686 (regcache_cpy): Update.
13687
a6c21d4a
PA
136882017-04-19 Pedro Alves <palves@redhat.com>
13689
13690 * gdbthread.h (thread): Add missing closing parenthesis in
13691 comment.
13692
3a3fd0fd
PA
136932017-04-19 Pedro Alves <palves@redhat.com>
13694
13695 * common/refcounted-object.h: New file.
13696 * gdbthread.h: Include "common/refcounted-object.h".
13697 (thread_info): Inherit from refcounted_object and add comments.
13698 (thread_info::incref, thread_info::decref)
13699 (thread_info::m_refcount): Delete.
13700 (thread_info::deletable): Use the refcounted_object::refcount()
13701 method.
13702 * inferior.c (current_inferior_): Add comment.
13703 (set_current_inferior): Increment/decrement refcounts.
13704 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13705 not-deletable instead of comparing with the current inferior.
13706 (initialize_inferiors): Increment the initial inferior's refcount.
13707 * inferior.h (struct inferior): Forward declare.
13708 Include "common/refcounted-object.h".
13709 (current_inferior, set_current_inferior): Move declaration to
13710 before struct inferior's definition, and fix comment.
13711 (inferior): Inherit from refcounted_object. Add comments.
13712 * thread.c (switch_to_thread_no_regs): Reference the thread's
13713 inferior pointer directly instead of doing a ptid lookup.
13714 (switch_to_no_thread): New function.
13715 (switch_to_thread(thread_info *)): New function, factored out
13716 from ...
13717 (switch_to_thread(ptid_t)): ... this.
13718 (restore_current_thread): Delete.
13719 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13720 fields, and add 'inf' field.
13721 (do_restore_current_thread_cleanup): Check whether old->inf is
13722 alive instead of looking up an inferior by ptid. Use
13723 switch_to_thread and switch_to_no_thread.
13724 (restore_current_thread_cleanup_dtor): Use old->inf directly
13725 instead of lookup up an inferior by id. Decref the inferior.
13726 Don't restore 'removable'.
13727 (make_cleanup_restore_current_thread): Same the inferior pointer
13728 in old, instead of the inferior number. Incref the inferior.
13729 Don't save/clear 'removable'.
13730
9bcb1f16
PA
137312017-04-19 Pedro Alves <palves@redhat.com>
13732
13733 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13734 unittests/scoped_restore-selftests.c.
13735 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13736 * common/scoped_restore.h (scoped_restore_base): Make "class".
13737 (scoped_restore_base::release): New public method.
13738 (scoped_restore_base::scoped_restore_base): New protected ctor.
13739 (scoped_restore_base::m_saved_var): New protected field.
13740 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13741 scoped_restore_base base class instead of m_saved_var directly.
13742 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13743 (scoped_restore_tmpl::scoped_restore_tmpl(const
13744 scoped_restore_tmpl<T>&)): Likewise.
13745 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13746 method.
13747 (scoped_restore_tmpl::saved_var): New method.
13748 (scoped_restore_tmpl::m_saved_var): Delete.
13749 * inferior.h (inferior::detaching): Now a bool.
13750 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13751 cleanup.
13752 * unittests/scoped_restore-selftests.c: New file.
13753
26fcd539
PA
137542017-04-19 Pedro Alves <palves@redhat.com>
13755
13756 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13757 Re-sort in alphabetic order.
13758
fdd243b0
PA
137592017-04-18 Pedro Alves <palves@redhat.com>
13760
13761 * xml-support.c (obstack_xml_printf): Delete.
13762 * xml-support.h (obstack_xml_printf): Delete.
13763
4895cde2
PA
137642017-04-18 Pedro Alves <palves@redhat.com>
13765
13766 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13767 vdebug, verror, body_text, start_element, end_element, name,
13768 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13769 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13770 is_xinclude>: Make private and add m_ prefix.
13771 (gdb_xml_parser::body_text): New method, based on ...
13772 (gdb_xml_body_text): ... this. Adjust.
13773 (gdb_xml_parser::vdebug): New method, based on ...
13774 (gdb_xml_debug): ... this. Adjust.
13775 (gdb_xml_parser::verror): New method, based on ...
13776 (gdb_xml_error): ... this. Adjust.
13777 (gdb_xml_parser::start_element): New method, based on ...
13778 (gdb_xml_start_element): ... this. Adjust.
13779 (gdb_xml_start_element_wrapper): Defer to
13780 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13781 (gdb_xml_parser::end_element): New method, based on ...
13782 (gdb_xml_end_element_wrapper): ... this. Adjust.
13783 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13784 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13785 (gdb_xml_parser::use_dtd): New method, based on ...
13786 (gdb_xml_use_dtd): ... this. Adjust.
13787 (gdb_xml_parser::parse): New method, based on ...
13788 (gdb_xml_parse): ... this. Adjust.
13789 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13790 (xinclude_start_include): Adjust to call the parser's name method.
13791 (xml_xinclude_default, xml_xinclude_start_doctype)
13792 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13793 method.
13794 (xml_process_xincludes): Adjust to call parser methods.
13795 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13796 declarations.
13797
bd8a901f
PA
137982017-04-18 Pedro Alves <palves@redhat.com>
13799
13800 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13801 gdb::optional<std::string>.
13802 * xml-support.c: Include <string>.
13803 (scope_level::scope_level(scope_level &&))
13804 (scope_level::~scope_level): Delete.
13805 (scope_level::body): Now a std::string.
13806 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13807 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13808 parameter.
13809 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13810 (xinclude_parsing_data::output): Now a std::string reference.
13811 (xinclude_start_include): Adjust.
13812 (xml_xinclude_default): Adjust.
13813 (xml_process_xincludes): Add 'output' parameter, and return bool.
13814 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13815 and return bool.
13816 * xml-tdesc.c: Include <unordered_map> and <string>.
13817 (tdesc_xml_cache): Delete.
13818 (tdesc_xml_cache_s): Delete.
13819 (xml_cache): Now an std::unordered_map.
13820 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13821 (target_fetch_description_xml): Change return type to
13822 gdb::optional<std::string>, and adjust.
13823 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13824 (target_fetch_description_xml): Change return type to
13825 gdb::optional<std::string>.
13826
d35d1958
PA
138272017-04-18 Pedro Alves <palves@redhat.com>
13828
13829 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13830 unittests/optional-selftests.c.
13831 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13832 * unittests/optional-selftests.c: New file.
13833 * unittests/optional/assignment/1.cc: New file.
13834 * unittests/optional/assignment/2.cc: New file.
13835 * unittests/optional/assignment/3.cc: New file.
13836 * unittests/optional/assignment/4.cc: New file.
13837 * unittests/optional/assignment/5.cc: New file.
13838 * unittests/optional/assignment/6.cc: New file.
13839 * unittests/optional/assignment/7.cc: New file.
13840 * unittests/optional/cons/copy.cc: New file.
13841 * unittests/optional/cons/default.cc: New file.
13842 * unittests/optional/cons/move.cc: New file.
13843 * unittests/optional/cons/value.cc: New file.
13844 * unittests/optional/in_place.cc: New file.
13845 * unittests/optional/observers/1.cc: New file.
13846 * unittests/optional/observers/2.cc: New file.
13847
22796e97
PA
138482017-04-18 Pedro Alves <palves@redhat.com>
13849
13850 * common/gdb_optional.h: Include common/traits.h.
13851 (in_place_t): New type.
13852 (in_place): New constexpr variable.
13853 (optional::optional): Remove member initialization of
13854 m_instantiated.
13855 (optional::optional(in_place_t...)): New constructor.
13856 (optional::~optional): Use reset.
13857 (optional::optional(const optional&)): New.
13858 (optional::optional(const optional&&)): New.
13859 (optional::optional(T &)): New.
13860 (optional::optional(T &&)): New.
13861 (operator::operator=(const optional &)): New.
13862 (operator::operator=(optional &&)): New.
13863 (operator::operator= (const T &))
13864 (operator::operator= (T &&))
13865 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13866 (operator::reset): New.
13867 (operator::m_instantiated):: Add in-class initializer.
13868 * common/traits.h: Include <type_traits>.
13869 (struct And): New types.
13870
a7fc9b61
PA
138712017-04-18 Pedro Alves <palves@redhat.com>
13872
13873 * xml-support.c: Include <vector>.
13874 (scope_level::scope_level(const gdb_xml_element *))
13875 (scope_level::scope_level(scope_level&&)): New.
13876 (scope_level::~scope_level): New.
13877 (scope_level_s): Delete.
13878 (gdb_xml_parser::scopes): Now a std::vector.
13879 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13880 Use std::vector.
13881 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13882 scope cleanup code.
13883 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13884 of the scopes member. Use std::vector::emplace_back.
13885
010151c9
PA
138862017-04-18 Pedro Alves <palves@redhat.com>
13887
13888 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13889 a bool.
13890 (gdb_xml_end_element): Change type of first parameter.
13891 (gdb_xml_cleanup): Rename to ...
13892 (gdb_xml_parser::~gdb_xml_parser): ... this.
13893 (gdb_xml_create_parser_and_cleanup): Delete with ...
13894 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13895 to this new ctor.
13896 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13897 using gdb_xml_create_parser_and_cleanup.
13898 (xinclude_parsing_data): Add ctor/dtor.
13899 (xml_xinclude_cleanup): Delete.
13900 (xml_process_xincludes): Create a local xinclude_parsing_data
13901 instead of heap-allocating one. Create a local gdb_xml_parser
13902 instead of heap-allocating one with
13903 gdb_xml_create_parser_and_cleanup.
13904
d56060f0
JB
139052017-04-18 John Baldwin <jhb@FreeBSD.org>
13906
13907 PR threads/20743
13908 * fbsd-nat.c (resume_one_thread_cb): Remove.
13909 (resume_all_threads_cb): Remove.
13910 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13911 iterate_over_threads.
13912
305d16a9
JB
139132017-04-17 Joel Brobecker <brobecker@adacore.com>
13914
13915 * NEWS: Create a new section for the next release branch.
13916 Rename the section of the current branch, now that it has
13917 been cut.
13918
8bb57231
JB
139192017-04-17 Joel Brobecker <brobecker@adacore.com>
13920
13921 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13922 * version.in: Bump version to 8.0.50.DATE-git.
13923
096c92dd
SDJ
139242017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13925
13926 PR gdb/21385
13927 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13928 independently of the host, and fix build breakage on Cygwin.
13929
0550c955
PA
139302017-04-13 Pedro Alves <palves@redhat.com>
13931
13932 * inferior.c (free_inferior): Convert to ...
13933 (inferior::~inferior): ... this dtor.
13934 (inferior::inferior): New ctor, factored out from ...
13935 (add_inferior_silent): ... here. Allocate the inferior with a new
13936 expression.
13937 (delete_inferior): Call delete instead of free_inferior.
13938 * inferior.h (gdb_environ, continuation): Forward declare.
13939 (inferior): Now a class. Add in-class initialization to all
13940 members. Make boolean fields bool, except 'detaching'.
13941 (inferior::inferior): New explicit ctor.
13942 (inferior::~inferior): New.
13943
e3d60dfc
PA
139442017-04-13 Pedro Alves <palves@redhat.com>
13945
13946 * inferior.c (init_inferior_list): Delete.
13947 * inferior.h (init_inferior_list): Delete.
13948
5fd69d0a
PA
139492017-04-13 Pedro Alves <palves@redhat.com>
13950
13951 PR threads/13217
13952 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13953 (top level): Call it twice, with different thread sets.
13954
c6609450
PA
139552017-04-13 Pedro Alves <palves@redhat.com>
13956
13957 * thread.c: Include <algorithm>.
13958 (thread_array_cleanup): Delete.
13959 (scoped_inc_dec_ref): New class.
13960 (live_threads_count): New function.
13961 (set_thread_refcount): Delete.
13962 (tp_array_compar_ascending): Now a bool.
13963 (tp_array_compar): Convert to a std::sort comparison function.
13964 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13965 and live_threads_count.
13966
2a00d7ce
PA
139672017-04-13 Pedro Alves <palves@redhat.com>
13968
13969 * infrun.c (follow_fork_inferior): Also switch the current
13970 inferior.
13971
441d7c93
PA
139722017-04-13 Pedro Alves <palves@redhat.com>
13973
13974 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13975 before calling create_internal_breakpoint.
13976
808480f6
PA
139772017-04-13 Pedro Alves <palves@redhat.com>
13978
13979 * fork-child.c (execv_argv): New class.
13980 (breakup_args): Refactored as ...
13981 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13982 Copy arguments to storage and replace separators with NULL
13983 terminators in place.
13984 (escape_bang_in_quoted_argument): Adjust to return bool.
13985 (execv_argv::execv_argv): New ctor.
13986 (execv_argv::init_for_shell): New method, factored out from
13987 fork_inferior. Don't strdup strings into the vector.
13988 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13989 Remove free_vector_argv call.
13990
ad3d022a
YQ
139912017-04-13 Yao Qi <yao.qi@linaro.org>
13992
13993 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13994 tdep->rx_psw_type.
13995
e6ddc3bf
YQ
139962017-04-13 Yao Qi <yao.qi@linaro.org>
13997
13998 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13999 * rx-tdep.c (rx_gdbarch_init): Likewise.
14000
bfb8cf90
PA
140012017-04-13 Pedro Alves <palves@redhat.com>
14002
14003 * breakpoint.h (struct breakpoint): Reindent.
14004
f5336ca5
PA
140052017-04-13 Pedro Alves <palves@redhat.com>
14006
14007 * breakpoint.c (bp_location): Rename to ...
14008 (bp_locations): ... this. All references updated.
14009 (bp_location_count): Rename to ...
14010 (bp_locations_count): ... this. All references updated.
14011 (bp_location_placed_address_before_address_max): Rename to ...
14012 (bp_locations_placed_address_before_address_max): ... this. All
14013 references updated.
14014 (bp_location_shadow_len_after_address_max): Rename to ...
14015 (bp_locations_shadow_len_after_address_max): ... this. All
14016 references updated.
14017 (bp_location_compare_addrs): Rename to ...
14018 (bp_locations_compare_addrs): ... this. All references updated.
14019 (bp_location_compare):Rename to ...
14020 (bp_locations_compare): ... this. All references updated.
14021 (bp_location_target_extensions_update): Rename to ...
14022 (bp_locations_target_extensions_update): ... this. All references
14023 updated.
14024
be628ab8
SDJ
140252017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14026
14027 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
14028 * common/common.m4: Check headers 'termios.h', 'termio.h' and
14029 'sgtty.h'.
14030 * common/gdb_termios.h: New file, with parts of "terminal.h".
14031 * inflow.c: Include "gdb_termios.h".
14032 * ser-unix.c: Include "gdb_termios.h".
14033 * terminal.h: Move terminal-related defines to
14034 "common/gdb_termios.h".
14035
8e9e35b1
TT
140362017-04-12 Tom Tromey <tom@tromey.com>
14037
14038 * probe.c (parse_probes): Update.
14039 * location.h (delete_event_location): Don't declare.
14040 (event_location_deleter::operator()): Update.
14041 * location.c (event_location_deleter::operator()): Rename from
14042 delete_event_location.
14043 * linespec.h (linespec_result) <location>: Change type to
14044 event_location_up.
14045 * linespec.c (canonicalize_linespec, event_location_to_sals)
14046 (decode_objc): Update.
14047 (linespec_result): Don't call delete_event_location.
14048 * breakpoint.c (create_breakpoints_sal)
14049 (bkpt_probe_create_sals_from_location)
14050 (strace_marker_create_sals_from_location): Update.
14051
16e802b9
TT
140522017-04-12 Tom Tromey <tom@tromey.com>
14053
14054 * linespec.h (struct linespec_result): Add constructor and
14055 destructor.
14056 (init_linespec_result, destroy_linespec_result)
14057 (make_cleanup_destroy_linespec_result): Don't declare.
14058 * linespec.c (init_linespec_result): Remove.
14059 (linespec_result::~linespec_result): Rename from
14060 destroy_linespec_result. Update.
14061 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
14062 Remove.
14063 * breakpoint.c (create_breakpoint, break_range_command)
14064 (decode_location_default): Update.
14065 * ax-gdb.c (agent_command_1): Update.
14066
d28cd78a
TT
140672017-04-12 Tom Tromey <tom@tromey.com>
14068
14069 * remote.c (remote_download_tracepoint): Update.
14070 * python/py-breakpoint.c (bppy_get_location): Update.
14071 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
14072 (gdbscm_breakpoint_location): Update.
14073 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
14074 * breakpoint.h (struct breakpoint) <location, location_range_end>:
14075 Change type to event_location_up.
14076 * breakpoint.c (create_overlay_event_breakpoint)
14077 (create_longjmp_master_breakpoint)
14078 (create_std_terminate_master_breakpoint)
14079 (create_exception_master_breakpoint)
14080 (breakpoint_event_location_empty_p, print_breakpoint_location)
14081 (print_one_breakpoint_location, create_thread_event_breakpoint)
14082 (init_breakpoint_sal, create_breakpoint)
14083 (print_recreate_ranged_breakpoint, break_range_command)
14084 (init_ada_exception_breakpoint, say_where): Update.
14085 (base_breakpoint_dtor): Don't call delete_event_location.
14086 (bkpt_print_recreate, tracepoint_print_recreate)
14087 (dprintf_print_recreate, update_static_tracepoint)
14088 (breakpoint_re_set_default): Update.
14089
711799d5
TT
140902017-04-12 Tom Tromey <tom@tromey.com>
14091
14092 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
14093 type of "to_do". Update.
14094 (compute_stack_depth): Use std::vector.
14095
52d214d3
TT
140962017-04-12 Tom Tromey <tom@tromey.com>
14097
14098 * printcmd.c (find_instruction_backward): Use std::vector.
14099
4c404b8b
TT
141002017-04-12 Tom Tromey <tom@tromey.com>
14101
14102 * symfile.c (objfilep): Remove typedef.
14103 (reread_symbols): Use a std::vector.
14104
156d9eab
TT
141052017-04-12 Tom Tromey <tom@tromey.com>
14106
14107 * mi/mi-main.c (exec_direction_forward): Remove.
14108 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
14109 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
14110 scoped_restore.
14111 * guile/guile.c (guile_repl_command, guile_command)
14112 (gdbscm_execute_gdb_command): Use scoped_restore.
14113 * go-exp.y (go_parse): Use scoped_restore.
14114 * d-exp.y (d_parse): Use scoped_restore.
14115 * cli/cli-decode.c (cmd_func): Use scoped_restore.
14116 * c-exp.y (c_parse): Use scoped_restore.
14117
4d89769a
TT
141182017-04-12 Tom Tromey <tom@tromey.com>
14119
14120 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14121 (mi_parse): Update return type.
14122 (mi_parse_free): Remove.
14123 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14124 (mi_parse::~mi_parse): Rename from mi_parse_free.
14125 (mi_parse_cleanup): Remove.
14126 (mi_parse): Return a unique_ptr. Use new.
14127 * mi/mi-main.c (mi_execute_command): Update.
14128
4b217cc7
TT
141292017-04-12 Tom Tromey <tom@tromey.com>
14130
14131 * location.c (explicit_location_lex_one): Return a
14132 unique_xmalloc_ptr.
14133 (string_to_explicit_location): Update. Remove cleanups.
14134
59d3651b
TT
141352017-04-12 Tom Tromey <tom@tromey.com>
14136
14137 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14138 (compare_value_and_voffset): Change type. Update.
14139 (compute_vtable_size): Change type of "offset_vec".
14140 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14141 (gnuv3_get_typeid): Remove extraneous declaration.
14142
b24b0d6c
TT
141432017-04-12 Tom Tromey <tom@tromey.com>
14144
14145 * charset.h (wchar_iterator): Fix comment.
14146
80a3b8c5
TT
141472017-04-12 Tom Tromey <tom@tromey.com>
14148
14149 * charset.c (iconv_wrapper): New class.
14150 (cleanup_iconv): Remove.
14151 (convert_between_encodings): Use it.
14152
c83dd867
TT
141532017-04-12 Tom Tromey <tom@tromey.com>
14154
14155 * symfile.h (increment_reading_symtab): Update type.
14156 * symfile.c (decrement_reading_symtab): Remove.
14157 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14158 * psymtab.c (psymtab_to_symtab): Update.
14159 * dwarf2read.c (dw2_instantiate_symtab): Update.
14160
0e8621a0
TT
141612017-04-12 Tom Tromey <tom@tromey.com>
14162
14163 * jit.c (struct jit_reader): Declare separately. Add constructor
14164 and destructor. Change type of "handle".
14165 (loaded_jit_reader): Define separately.
14166 (jit_reader_load): Update. New "new".
14167 (jit_reader_unload_command): Use "delete".
14168 * gdb-dlfcn.h (struct dlclose_deleter): New.
14169 (gdb_dlhandle_up): New typedef.
14170 (gdb_dlopen, gdb_dlsym): Update types.
14171 (gdb_dlclose): Remove.
14172 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14173 (gdb_dlsym): Change type of "handle".
14174 (make_cleanup_dlclose): Remove.
14175 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14176 * compile/compile-c-support.c (load_libcc): Update.
14177
67d89901
TT
141782017-04-12 Tom Tromey <tom@tromey.com>
14179
14180 * symtab.h (find_pcs_for_symtab_line): Change return type.
14181 * symtab.c (find_pcs_for_symtab_line): Change return type.
14182 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14183 type of "vec". Update.
14184 (ltpy_get_pcs_for_line): Update.
14185 * linespec.c (decode_digits_ordinary): Update.
14186
93921405
TT
141872017-04-12 Tom Tromey <tom@tromey.com>
14188
14189 * tracepoint.c (actions_command): Update.
14190 * python/python.c (python_command, python_interactive_command):
14191 Update.
14192 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14193 * guile/guile.c (guile_command): Update.
14194 * defs.h (read_command_lines, read_command_lines_1): Return
14195 command_line_up.
14196 (command_lines_deleter): New struct.
14197 (command_line_up): New typedef.
14198 * compile/compile.c (compile_code_command)
14199 (compile_print_command): Update.
14200 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14201 command_line_up.
14202 (make_cleanup_free_command_lines): Remove.
14203 * cli/cli-script.c (get_command_line, read_command_lines_1)
14204 (copy_command_lines): Return command_line_up.
14205 (while_command, if_command, read_command_lines, define_command)
14206 (document_command): Update.
14207 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14208 Remove.
14209 * breakpoint.h (breakpoint_set_commands): Change type of
14210 "commands".
14211 * breakpoint.c (breakpoint_set_commands): Change type of
14212 "commands". Update.
14213 (do_map_commands_command, update_dprintf_command_list)
14214 (create_tracepoint_from_upload): Update.
14215
ffc2605c
TT
142162017-04-12 Tom Tromey <tom@tromey.com>
14217
14218 * tracepoint.c (scope_info): Update.
14219 * spu-tdep.c (spu_catch_start): Update.
14220 * python/python.c (gdbpy_decode_line): Update.
14221 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14222 * python/py-breakpoint.c (bppy_init): Update.
14223 * probe.c (parse_probes): Update.
14224 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14225 * location.h (event_location_deleter): New struct.
14226 (event_location_up): New typedef.
14227 (new_linespec_location, new_address_location, new_probe_location)
14228 (new_explicit_location, copy_event_location)
14229 (string_to_event_location, string_to_event_location_basic)
14230 (string_to_explicit_location): Update return type.
14231 (make_cleanup_delete_event_location): Remove.
14232 * location.c (new_linespec_location, new_address_location)
14233 (new_probe_location, new_explicit_location, copy_event_location):
14234 Return event_location_up.
14235 (delete_event_location_cleanup)
14236 (make_cleanup_delete_event_location): Remove.
14237 (string_to_explicit_location, string_to_event_location_basic)
14238 (string_to_event_location): Return event_location_up.
14239 * linespec.c (canonicalize_linespec, event_location_to_sals)
14240 (decode_line_with_current_source)
14241 (decode_line_with_last_displayed, decode_objc): Update.
14242 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14243 * completer.c (location_completer): Update.
14244 * cli/cli-cmds.c (edit_command, list_command): Update.
14245 * breakpoint.c (create_overlay_event_breakpoint)
14246 (create_longjmp_master_breakpoint)
14247 (create_std_terminate_master_breakpoint)
14248 (create_exception_master_breakpoint)
14249 (create_thread_event_breakpoint): Update.
14250 (init_breakpoint_sal): Update. Remove some dead code.
14251 (create_breakpoint_sal): Change type of "location". Update.
14252 (create_breakpoints_sal, create_breakpoint, break_command_1)
14253 (dprintf_command, break_range_command, until_break_command)
14254 (init_ada_exception_breakpoint)
14255 (strace_marker_create_sals_from_location)
14256 (update_static_tracepoint, trace_command, ftrace_command)
14257 (strace_command, create_tracepoint_from_upload): Update.
14258 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14259 * ax-gdb.c (agent_command_1): Update.
14260
8f10c932
PA
142612017-04-12 Pedro Alves <palves@redhat.com>
14262
14263 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14264 * configure.tgt: Handle i[34567]86-*-go32* and
14265 i[34567]86-*-msdosdjgpp*.
14266 * i386-tdep.c (i386_svr4_reg_to_regnum):
14267 Make extern.
14268 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14269 i386-go32-tdep.c.
14270 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14271 * i386-go32-tdep.c: New file.
14272 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14273 declarations.
14274
0a31ccfb
SM
142752017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14276
14277 * aix-thread.c (pd_status2str): Change return type to const char *.
14278
e9bb3fbb
PA
142792017-04-12 Pedro Alves <palves@redhat.com>
14280
14281 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14282 calls to set_gdbarch_gnu_triplet_regexp.
14283
53375380
PA
142842017-04-12 Pedro Alves <palves@redhat.com>
14285
14286 PR gdb/21323
14287 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14288 New enum value.
14289 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14290 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14291 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14292 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14293 * gdbarch.h, gdbarch.c: Regenerate.
14294 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14295 gdbarch_wchar_bit and gdbarch_wchar_signed.
14296 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14297 * arm-tdep.c (arm_gdbarch_init): Likewise.
14298 * avr-tdep.c (avr_gdbarch_init): Likewise.
14299 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14300 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14301 * i386-tdep.c (i386_go32_init_abi): Likewise.
14302 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14303 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14304 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14305 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14306 * sh-tdep.c (sh_gdbarch_init): Likewise.
14307 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14308 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14309 * windows-tdep.c (windows_init_abi): Likewise.
14310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14311
53e710ac
PA
143122017-04-12 Pedro Alves <palves@redhat.com>
14313
14314 PR c++/21323
14315 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14316 cplus_primitive_type_char32_t>: New enum values.
14317 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14318 and cplus_primitive_type_char32_t.
14319 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14320 32, use the archtecture's built-in type for char16_t and char32_t,
14321 respectively. Otherwise, fallback to init_integer_type as before,
14322 but make the type unsigned, and issue a complaint.
14323 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14324
ab0538b8
AH
143252017-04-12 Alan Hayward <alan.hayward@arm.com>
14326
5e0e0422 14327 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
14328 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14329
5430098f
SDJ
143302017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14331
14332 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14333 'const char *'.
14334
7c5ded6a
SDJ
143352017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14336
14337 * common/common-utils.c (free_vector_argv): New function.
14338 * common/common-utils.h: Include <vector>.
14339 (free_vector_argv): New prototype.
14340 * darwin-nat.c (darwin_create_inferior): Rewrite function
14341 prototype in order to constify "exec_file" and accept a
14342 "std::string" for "allargs".
14343 * fork-child.c: Include <vector>.
14344 (breakup_args): Rewrite function, using C++.
14345 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14346 and accept "std::string" for "allargs". Update the code to
14347 calculate "argv" based on "allargs". Update calls to "exec_fun"
14348 and "execvp".
14349 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14350 order to constify "exec_file" and accept a "std::string" for
14351 "allargs".
14352 * go32-nat.c (go32_create_inferior): Likewise.
14353 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14354 * infcmd.c (run_command_1): Constify "exec_file". Use
14355 "std::string" for inferior arguments.
14356 * inferior.h (fork_inferior): Update prototype.
14357 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14358 prototype in order to constify "exec_file" and accept a
14359 "std::string" for "allargs".
14360 * nto-procfs.c (procfs_create_inferior): Likewise.
14361 * procfs.c (procfs_create_inferior): Likewise.
14362 * remote-sim.c (gdbsim_create_inferior): Likewise.
14363 * remote.c (extended_remote_run): Update code to accept
14364 "std::string" as argument.
14365 (extended_remote_create_inferior): Rewrite function prototype in
14366 order to constify "exec_file" and accept a "std::string" for
14367 "allargs".
14368 * rs6000-nat.c (super_create_inferior): Likewise.
14369 (rs6000_create_inferior): Likewise.
14370 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14371 * windows-nat.c (windows_create_inferior): Likewise.
14372
ae0eee42
PA
143732017-04-11 Pedro Alves <palves@redhat.com>
14374
14375 * thread.c: Fix whitespace throughout.
14376
a6acac06
PR
143772017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14378
14379 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14380
64403bd1
AH
143812017-04-11 Alan Hayward <alan.hayward@arm.com>
14382
14383 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14384
a5bef50f
SDJ
143852017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14386
14387 PR gdb/21364
14388 * osdata.c (info_osdata): Check if 'type' is an empty string
14389 instead of NULL.
14390
9295a5a9
PA
143912017-04-10 Pedro Alves <palves@redhat.com>
14392
14393 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14394 (ptid_to_global_thread_id, in_thread_list)
14395 (do_captured_list_thread_ids, set_resumed, set_running)
14396 (set_executing, set_stop_requested, finish_thread_state)
14397 (validate_registers_access, can_access_registers_ptid)
14398 (print_thread_info_1, switch_to_thread)
14399 (do_restore_current_thread_cleanup)
14400 (make_cleanup_restore_current_thread, thread_command)
14401 (thread_name_command): Use operator== instead of ptid_equal.
14402
996812e3
PA
144032017-04-10 Pedro Alves <palves@redhat.com>
14404
14405 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14406 (current_thread_cleanup_chain): Delete.
14407 (restore_current_thread_cleanup_dtor)
14408 (make_cleanup_restore_current_thread): Remove references to
14409 current_thread_cleanup_chain.
14410
845b344f
AH
144112017-04-10 Alan Hayward <alan.hayward@arm.com>
14412
14413 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14414 REG_UNKNOWN.
14415
803bdfe4
YQ
144162017-04-10 Yao Qi <yao.qi@linaro.org>
14417
14418 PR gdb/19942
14419 * gdbthread.h (thread_info::deletable): New method.
14420 (thread_info::incref): New method.
14421 (thread_info::decref): New method.
14422 (thread_info::refcount): Move it to private.
14423 * infrun.c (save_stop_context): Call inc_refcount.
14424 (release_stop_context_cleanup): Likewise.
14425 * thread.c (set_thread_exited): New function.
14426 (init_thread_list): Delete "tp" only it is deletable, otherwise
14427 call set_thread_exited.
14428 (delete_thread_1): Call set_thread_exited.
14429 (current_thread_cleanup) <inferior_pid>: Remove.
14430 <thread>: New field.
14431 (restore_current_thread_ptid_changed): Removed.
14432 (do_restore_current_thread_cleanup): Adjust.
14433 (restore_current_thread_cleanup_dtor): Don't call
14434 find_thread_ptid.
14435 (set_thread_refcount): Use dec_refcount.
14436 (make_cleanup_restore_current_thread): Adjust.
14437 (thread_apply_all_command): Call inc_refcount.
14438 (_initialize_thread): Don't call
14439 observer_attach_thread_ptid_changed.
14440
8c25b497
YQ
144412017-04-10 Yao Qi <yao.qi@linaro.org>
14442
14443 * thread.c (delete_thread_1): Hoist code on marking thread as
14444 exited.
14445
8473b447
SM
144462017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14447
14448 * windows-nat.c (windows_detach): Initialize ptid with
14449 minus_one_ptid.
14450
6670ec13
SM
144512017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14452
14453 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14454
ba2f91bb
AH
144552017-04-07 Alan Hayward <alan.hayward@arm.com>
14456
14457 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14458 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14459 (bfin_pseudo_register_write): Likewise
14460
436252de
SM
144612017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14462
14463 * common/ptid.h (struct ptid): Change to...
14464 (class ptid_t): ... this.
14465 <ptid_t>: New constructors.
14466 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14467 matches>: New methods.
14468 <make_null, make_minus_one>: New static methods.
14469 <pid>: Rename to...
14470 <m_pid>: ...this.
14471 <lwp>: Rename to...
14472 <m_lwp>: ...this.
14473 <tid>: Rename to...
14474 <m_tid>: ...this.
14475 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14476 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14477 as references, move comment to class ptid_t.
14478 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14479 ptid_t static methods.
14480 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14481 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14482 Take ptid arguments as references, implement using ptid_t methods.
14483 * unittests/ptid-selftests.c: New file.
14484 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14485 unittests/ptid-selftests.c.
14486 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14487
0dedf377
TP
144882017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14489
14490 * python/python.c (python_run_simple_file): Cast mode literal to
14491 non-const char pointer as expected by PyFile_FromString.
14492
4e9868d4
SM
144932017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14494
14495 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14496 minus_one_ptid and null_ptid.
14497
9bf2a700
PA
144982017-04-05 Pedro Alves <palves@redhat.com>
14499
14500 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14501 * configure: Regenerate.
14502
a121b7c1
PA
145032017-04-05 Pedro Alves <palves@redhat.com>
14504
14505 * ada-exp.y (yyerror): Constify.
14506 * ada-lang.c (bound_name, get_selections)
14507 (ada_variant_discrim_type)
14508 (ada_variant_discrim_name, ada_value_struct_elt)
14509 (ada_lookup_struct_elt_type, is_unchecked_variant)
14510 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14511 (catch_ada_exception_command_split)
14512 (catch_ada_assert_command_split, catch_assert_command)
14513 (ada_op_name): Constify.
14514 * ada-lang.h (ada_yyerror, get_selections)
14515 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14516 * arc-tdep.c (arc_print_frame_cache): Constify.
14517 * arm-tdep.c (arm_skip_stub): Constify.
14518 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14519 (gen_aggregate_elt_ref): Constify.
14520 * bcache.c (print_bcache_statistics): Constify.
14521 * bcache.h (print_bcache_statistics): Constify.
14522 * break-catch-throw.c (catch_exception_command_1):
14523 * breakpoint.c (struct ep_type_description::description):
14524 Constify.
14525 (add_solib_catchpoint): Constify.
14526 (catch_fork_command_1): Add cast.
14527 (add_catch_command): Constify.
14528 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14529 Constify.
14530 * bsd-uthread.c (bsd_uthread_state): Constify.
14531 * buildsym.c (patch_subfile_names): Constify.
14532 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14533 Constify.
14534 * c-exp.y (yyerror): Constify.
14535 (token::oper): Constify.
14536 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14537 * c-varobj.c (cplus_describe_child): Constify.
14538 * charset.c (find_charset_names): Add cast.
14539 (find_charset_names): Constify array and add const_cast.
14540 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14541 (edit_command): Constify.
14542 * cli/cli-decode.c (lookup_cmd): Constify.
14543 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14544 Constify.
14545 (struct dump_context): Constify.
14546 (add_dump_command, restore_command): Constify.
14547 * cli/cli-script.c (get_command_line): Constify.
14548 * cli/cli-script.h (get_command_line): Constify.
14549 * cli/cli-utils.c (check_for_argument): Constify.
14550 * cli/cli-utils.h (check_for_argument): Constify.
14551 * coff-pe-read.c (struct read_pe_section_data): Constify.
14552 * command.h (lookup_cmd): Constify.
14553 * common/print-utils.c (decimal2str): Constify.
14554 * completer.c (gdb_print_filename): Constify.
14555 * corefile.c (set_gnutarget): Constify.
14556 * cp-name-parser.y (yyerror): Constify.
14557 * cp-valprint.c (cp_print_class_member): Constify.
14558 * cris-tdep.c (cris_register_name, crisv32_register_name):
14559 Constify.
14560 * d-exp.y (yyerror): Constify.
14561 (struct token::oper): Constify.
14562 * d-lang.h (d_yyerror): Constify.
14563 * dbxread.c (struct header_file_location::name): Constify.
14564 (add_old_header_file, add_new_header_file, last_function_name)
14565 (dbx_next_symbol_text, add_bincl_to_list)
14566 (find_corresponding_bincl_psymtab, set_namestring)
14567 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14568 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14569 * defs.h (command_line_input, print_address_symbolic)
14570 (deprecated_readline_begin_hook): Constify.
14571 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14572 Constify.
14573 * event-top.c (handle_line_of_input): Constify and add cast.
14574 * exceptions.c (catch_errors): Constify.
14575 * exceptions.h (catch_errors): Constify.
14576 * expprint.c (print_subexp_standard, op_string, op_name)
14577 (op_name_standard, dump_raw_expression, dump_raw_expression):
14578 * expression.h (op_name, op_string, dump_raw_expression):
14579 Constify.
14580 * f-exp.y (yyerror): Constify.
14581 (struct token::oper): Constify.
14582 (struct f77_boolean_val::name): Constify.
14583 * f-lang.c (f_word_break_characters): Constify.
14584 * f-lang.h (f_yyerror): Constify.
14585 * fork-child.c (fork_inferior): Add cast.
14586 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14587 (new_variant): Constify.
14588 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14589 * gdbarch.c: Regenerate.
14590 * gdbcore.h (set_gnutarget): Constify.
14591 * go-exp.y (yyerror): Constify.
14592 (token::oper): Constify.
14593 * go-lang.h (go_yyerror): Constify.
14594 * go32-nat.c (go32_sysinfo): Constify.
14595 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14596 * guile/scm-cmd.c (cmdscm_function): Constify.
14597 * guile/scm-param.c (pascm_param_value): Constify.
14598 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14599 (h8300sx_register_name): Constify.
14600 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14601 Constify.
14602 * ia64-tdep.c (ia64_register_names): Constify.
14603 * infcmd.c (construct_inferior_arguments): Constify.
14604 (path_command, attach_post_wait): Constify.
14605 * language.c (show_range_command, show_case_command)
14606 (unk_lang_error): Constify.
14607 * language.h (language_defn::la_error)
14608 (language_defn::la_name_of_this): Constify.
14609 * linespec.c (decode_line_2): Constify.
14610 * linux-thread-db.c (thread_db_err_str): Constify.
14611 * lm32-tdep.c (lm32_register_name): Constify.
14612 * m2-exp.y (yyerror): Constify.
14613 * m2-lang.h (m2_yyerror): Constify.
14614 * m32r-tdep.c (m32r_register_names): Constify and make static.
14615 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14616 * m88k-tdep.c (m88k_register_name): Constify.
14617 * macroexp.c (appendmem): Constify.
14618 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14619 (upgrade_type, parse_external, parse_partial_symbols)
14620 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14621 (new_symbol): Constify.
14622 * memattr.c (mem_info_command): Constify.
14623 * mep-tdep.c (register_name_from_keyword): Constify.
14624 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14625 Constify.
14626 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14627 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14628 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14629 cast.
14630 (mi_execute_async_cli_command): Constify.
14631 * mips-tdep.c (mips_register_name): Constify.
14632 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14633 (am33_register_name, am33_2_register_name)
14634 * moxie-tdep.c (moxie_register_names): Constify.
14635 * nat/linux-osdata.c (osdata_type): Constify fields.
14636 * nto-tdep.c (nto_parse_redirection): Constify.
14637 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14638 (lookup_child_selector): Constify.
14639 (objc_methcall::name): Constify.
14640 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14641 (lookup_struct_typedef): Constify.
14642 * objfiles.c (pc_in_section): Constify.
14643 * objfiles.h (pc_in_section): Constify.
14644 * p-exp.y (struct token::oper): Constify.
14645 (yyerror): Constify.
14646 * p-lang.h (pascal_yyerror): Constify.
14647 * parser-defs.h (op_name_standard): Constify.
14648 (op_print::string): Constify.
14649 (exp_descriptor::op_name): Constify.
14650 * printcmd.c (print_address_symbolic): Constify.
14651 * psymtab.c (print_partial_symbols): Constify.
14652 * python/py-breakpoint.c (stop_func): Constify.
14653 (bppy_get_expression): Constify.
14654 * python/py-cmd.c (cmdpy_completer::name): Constify.
14655 (cmdpy_function): Constify.
14656 * python/py-event.c (evpy_add_attribute)
14657 (gdbpy_initialize_event_generic): Constify.
14658 * python/py-event.h (evpy_add_attribute)
14659 (gdbpy_initialize_event_generic): Constify.
14660 * python/py-evts.c (add_new_registry): Constify.
14661 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14662 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14663 * python/py-inferior.c (get_buffer): Add cast.
14664 * python/py-param.c (parm_constant::name): Constify.
14665 * python/py-unwind.c (fprint_frame_id): Constify.
14666 * python/python.c (gdbpy_parameter_value): Constify.
14667 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14668 * remote.c (memory_packet_config::name): Constify.
14669 (show_packet_config_cmd, remote_write_bytes)
14670 (remote_buffer_add_string):
14671 * reverse.c (exec_reverse_once): Constify.
14672 * rs6000-tdep.c (variant::name, variant::description): Constify.
14673 * rust-exp.y (rustyyerror): Constify.
14674 * rust-lang.c (rust_op_name): Constify.
14675 * rust-lang.h (rustyyerror): Constify.
14676 * serial.h (serial_ops::name): Constify.
14677 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14678 (sh_sh3e_register_name, sh_sh2e_register_name)
14679 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14680 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14681 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14682 (sh_sh4al_dsp_register_name): Constify.
14683 * sh64-tdep.c (sh64_register_name): Constify.
14684 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14685 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14686 * stabsread.c (patch_block_stabs, read_type_number)
14687 (ref_map::stabs, ref_add, process_reference)
14688 (symbol_reference_defined, define_symbol, define_symbol)
14689 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14690 (read_one_struct_field, read_struct_fields, read_baseclasses)
14691 (read_tilde_fields, read_struct_type, read_array_type)
14692 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14693 (read_huge_number, read_range_type, read_args, common_block_start)
14694 (find_name_end): Constify.
14695 * stabsread.h (common_block_start, define_symbol)
14696 (process_one_symbol, symbol_reference_defined, ref_add):
14697 * symfile.c (get_section_index, add_symbol_file_command):
14698 * symfile.h (get_section_index): Constify.
14699 * target-descriptions.c (tdesc_type::name): Constify.
14700 (tdesc_free_type): Add cast.
14701 * target.c (find_default_run_target):
14702 (add_deprecated_target_alias, find_default_run_target)
14703 (target_announce_detach): Constify.
14704 (do_option): Constify.
14705 * target.h (add_deprecated_target_alias): Constify.
14706 * thread.c (print_thread_info_1): Constify.
14707 * top.c (deprecated_readline_begin_hook, command_line_input):
14708 Constify.
14709 (init_main): Add casts.
14710 * top.h (handle_line_of_input): Constify.
14711 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14712 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14713 (tfind_command): Rename to ...
14714 (tfind_command_1): ... this and constify.
14715 (tfind_command): New function.
14716 (tfind_end_command, tfind_start_command): Adjust.
14717 (encode_source_string): Constify.
14718 * tracepoint.h (encode_source_string): Constify.
14719 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14720 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14721 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14722 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14723 * tui/tui-win.c (parse_scrolling_args): Constify.
14724 * tui/tui-windata.c (tui_erase_data_content): Constify.
14725 * tui/tui-windata.h (tui_erase_data_content): Constify.
14726 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14727 * tui/tui.c (tui_enable): Add cast.
14728 * utils.c (defaulted_query): Constify.
14729 (init_page_info): Add cast.
14730 (puts_debug, subset_compare): Constify.
14731 * utils.h (subset_compare): Constify.
14732 * varobj.c (varobj_format_string): Constify.
14733 * varobj.h (varobj_format_string): Constify.
14734 * vax-tdep.c (vax_register_name): Constify.
14735 * windows-nat.c (windows_detach): Constify.
14736 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14737 * xml-support.c (gdb_xml_end_element): Constify.
14738 * xml-tdesc.c (tdesc_start_reg): Constify.
14739 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14740 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14741 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14742
995816ba
PA
147432017-04-05 Pedro Alves <palves@redhat.com>
14744
14745 * proc-api.c (struct trans): Constify.
14746 (procfs_note): Constify.
14747 * proc-events.c (struct trans, syscall_table):
14748 * proc-flags.c (struct trans): Constify.
14749 * proc-utils.h (procfs_note): Constify.
14750 * proc-why.c (struct trans): Constify.
14751 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14752 (procfs_detach): Constify.
14753 * sol-thread.c (struct string_map): Constify.
14754 (td_err_string, td_state_string): Constify.
14755
3e83a920
PA
147562017-04-05 Pedro Alves <palves@redhat.com>
14757
14758 * proc-api.c (procfs_filename): Don't initialize
14759 procfs_filename.
14760 (prepare_to_trace): Assume procfs_filename is non-NULL.
14761 (_initialize_proc_api): Give procfs_filename a default value here.
14762
63160a43
PA
147632017-04-05 Pedro Alves <palves@redhat.com>
14764
14765 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14766 'cond_string' parameter.
14767 (extract_exception_regexp): Constify 'string' parameter.
14768 (catch_exception_command_1): Constify.
14769 * breakpoint.c (init_catchpoint)
14770 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14771 parameter.
14772 (ep_parse_optional_if_clause, catch_fork_command_1)
14773 (catch_exec_command_1): Constify.
14774 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14775 parameter.
14776 (ep_parse_optional_if_clause): Constify.
14777 * cli/cli-utils.c (remove_trailing_whitespace)
14778 (check_for_argument): Constify.
14779 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14780 non-const overload.
14781 (check_for_argument): Likewise.
14782
9b2eba3d
PA
147832017-04-05 Pedro Alves <palves@redhat.com>
14784
14785 * event-top.c (command_line_handler): Add cast to execute_command
14786 call.
14787 * record-btrace.c (cmd_record_btrace_bts_start)
14788 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14789 (cmd_record_btrace_start): Add cast to execute_command call.
14790 * record-full.c (record_full_goto_insn):
14791 * record.c (record_start, record_stop): Add cast to
14792 execute_command_to_string calls.
14793 (cmd_record_start): Add cast to execute_command calls.
14794
2adadf51
PA
147952017-04-05 Pedro Alves <palves@redhat.com>
14796
14797 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14798 static inline function.
14799 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14800 array and use gdb_PyArg_ParseTupleAndKeywords.
14801 * python/py-cmd.c (cmdpy_init): Likewise.
14802 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14803 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14804 (infpy_search_memory): Likewise.
14805 * python/py-objfile.c (objfpy_add_separate_debug_file)
14806 (gdbpy_lookup_objfile): Likewise.
14807 * python/py-symbol.c (gdbpy_lookup_symbol)
14808 (gdbpy_lookup_global_symbol): Likewise.
14809 * python/py-type.c (gdbpy_lookup_type): Likewise.
14810 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14811 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14812 Likewise.
14813
0d1f4ceb
PA
148142017-04-05 Pedro Alves <palves@redhat.com>
14815
14816 * python/python-internal.h (gdb_PyGetSetDef): New type.
14817 * python/py-block.c (block_object_getset)
14818 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14819 * python/py-event.c (event_object_getset)
14820 (finish_breakpoint_object_getset): Likewise.
14821 * python/py-inferior.c (inferior_object_getset): Likewise.
14822 * python/py-infthread.c (thread_object_getset): Likewise.
14823 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14824 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14825 * python/py-objfile.c (objfile_getset): Likewise.
14826 * python/py-progspace.c (pspace_getset): Likewise.
14827 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14828 Likewise.
14829 * python/py-record.c (recpy_record_getset): Likewise.
14830 * python/py-symbol.c (symbol_object_getset): Likewise.
14831 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14832 Likewise.
14833 * python/py-type.c (type_object_getset, field_object_getset):
14834 Likewise.
14835 * python/py-value.c (value_object_getset): Likewise.
14836
4d759979
PA
148372017-04-05 Pedro Alves <palves@redhat.com>
14838
14839 * python/python-internal.h (gdb_PyObject_CallMethod)
14840 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14841 New functions.
14842 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14843 (PySys_GetObject, PySys_SetPath): New macros.
14844
fdf9e36f
PA
148452017-04-05 Pedro Alves <palves@redhat.com>
14846
14847 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14848 info_osdata_command.
14849 * osdata.c (info_osdata_command): Rename to ...
14850 (info_osdata): ... this. Constify 'type' parameter, and remove
14851 the 'from_tty' parameter. Accept NULL TYPE.
14852 (info_osdata_command): New function.
14853 * osdata.h (info_osdata_command): Remove declaration.
14854 (info_osdata): New declaration.
14855
9f33b8b7
PA
148562017-04-05 Pedro Alves <palves@redhat.com>
14857
14858 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14859 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14860 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14861 parameter.
14862 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14863 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14864 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14865 parameter.
14866 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14867 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14868 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14869 (mi_cmd_file_list_exec_source_files)
14870 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14871 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14872 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14873 parameter.
14874 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14875 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14876 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14877 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14878 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14879 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14880 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14881 'command' parameter.
14882 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14883 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14884 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14885 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14886 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14887 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14888 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14889 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14890 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14891 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14892 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14893 parameter.
14894 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14895 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14896 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14897 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14898 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14899 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14900 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14901 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14902 (mi_cmd_data_list_changed_registers)
14903 (mi_cmd_data_write_register_values)
14904 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14905 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14906 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14907 (mi_cmd_list_features, mi_cmd_list_target_features)
14908 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14909 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14910 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14911 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14912 (mi_cmd_trace_frame_collected): Constify 'command'
14913 parameter.
14914 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14915 'command' parameter.
14916
67cb5b2d
PA
149172017-04-05 Pedro Alves <palves@redhat.com>
14918
14919 * ada-lang.c (ada_completer_word_break_characters): Now a const
14920 array.
14921 (ada_get_gdb_completer_word_break_characters): Constify.
14922 * completer.c (gdb_completer_command_word_break_characters)
14923 (gdb_completer_file_name_break_characters)
14924 (gdb_completer_quote_characters): Now const arrays.
14925 (get_gdb_completer_quote_characters): Constify.
14926 (set_rl_completer_word_break_characters): New function.
14927 (set_gdb_completion_word_break_characters)
14928 (complete_line_internal): Use it.
14929 * completer.h (get_gdb_completer_quote_characters): Constify.
14930 (set_rl_completer_word_break_characters): Declare.
14931 * f-lang.c (f_word_break_characters): Constify.
14932 * language.c (default_word_break_characters): Constify.
14933 * language.h (language_defn::la_word_break_characters): Constify.
14934 (default_word_break_characters): Constify.
14935 * top.c (init_main): Use set_rl_completer_word_break_characters.
14936
7a114964
PA
149372017-04-05 Pedro Alves <palves@redhat.com>
14938
14939 * aix-thread.c (aix_thread_pid_to_str)
14940 (aix_thread_extra_thread_info): Constify.
14941 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14942 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14943 (bsd_uthread_pid_to_str): Constify.
14944 * corelow.c (core_pid_to_str): Constify.
14945 * darwin-nat.c (darwin_pid_to_str): Constify.
14946 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14947 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14948 Constify.
14949 * gnu-nat.c (gnu_pid_to_str): Constify.
14950 * go32-nat.c (go32_pid_to_str): Constify.
14951 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14952 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14953 * inferior.c (inferior_pid_to_str): Constify.
14954 * linux-nat.c (linux_nat_pid_to_str): Constify.
14955 * linux-tdep.c (linux_core_pid_to_str): Constify.
14956 * linux-thread-db.c (thread_db_pid_to_str)
14957 (thread_db_extra_thread_info): Constify.
14958 * nto-tdep.c (nto_extra_thread_info): Constify.
14959 * nto-tdep.h (nto_extra_thread_info): Constify.
14960 * obsd-nat.c (obsd_pid_to_str): Constify.
14961 * procfs.c (procfs_pid_to_str): Constify.
14962 * ravenscar-thread.c (ravenscar_extra_thread_info)
14963 (ravenscar_pid_to_str): Constify.
14964 * remote-sim.c (gdbsim_pid_to_str): Constify.
14965 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14966 Constify.
14967 * sol-thread.c (solaris_pid_to_str): Constify.
14968 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14969 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14970 * target.c (default_pid_to_str, target_pid_to_str)
14971 (normal_pid_to_str, default_pid_to_str): Constify.
14972 * target.h (target_ops::to_pid_to_str)
14973 (target_ops::to_extra_thread_info): Constify.
14974 (target_pid_to_str, normal_pid_to_str): Constify.
14975 * windows-nat.c (windows_pid_to_str): Constify.
14976 * gdbarch.sh (core_pid_to_str): Constify.
14977 * target-delegates.c: Regenerate.
14978 * gdbarch.h, gdbarch.c: Regenerate.
14979
69bbf465
PA
149802017-04-05 Pedro Alves <palves@redhat.com>
14981
14982 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14983 the memory of the temporary warning_pre_print override.
14984 * utils.c (warning_pre_print): Constify.
14985 * utils.h (warning_pre_print): Constify.
14986
be47f9e8
PA
149872017-04-05 Pedro Alves <palves@redhat.com>
14988
14989 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14990 (shell_command): New function.
14991 (make_command): Use std::string.
14992 (init_cli_cmds): Register shell_command instead of shell_escape.
14993
bde6261a
PA
149942017-04-05 Pedro Alves <palves@redhat.com>
14995
14996 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14997 * tracepoint.c (default_collect): Don't initialize.
14998
b38ef47f
PA
149992017-04-05 Pedro Alves <palves@redhat.com>
15000
15001 * macroexp.c (macro_buffer::shared): Now a bool.
15002 (init_buffer): Update.
15003 (init_shared_buffer): Constify 'addr' parameter.
15004 (substitute_args, expand, macro_expand, macro_expand_next): Remove
15005 casts.
15006
f995bbe8
PA
150072017-04-05 Pedro Alves <palves@redhat.com>
15008
15009 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
15010 * disasm.c (set_disassembler_options): Constify local.
15011 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
15012
4a596fe2
SDJ
150132017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
15014
15015 PR gdb/21352
15016 * tracefile.c (tsave_command): Fix argument parsing for '-r'
15017 option.
15018
2cad08ea
YQ
150192017-04-05 Yao Qi <yao.qi@linaro.org>
15020
15021 * frame.c (frame_unwind_register_unsigned): Call
15022 frame_unwind_register_value.
15023
55a98976
YQ
150242017-04-05 Yao Qi <yao.qi@linaro.org>
15025
15026 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
15027 Use gdb_test_multiple, and don't match anchor.
15028
4ac40124
PA
150292017-04-05 Pedro Alves <palves@redhat.com>
15030
15031 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
15032 (Write After Approval): Remove Simon Marchi.
15033
c053b654
PA
150342017-04-05 Pedro Alves <palves@redhat.com>
15035
15036 * common/gdb_optional.h (optional::optional): Make constexpr and
15037 initialize m_dummy.
15038
4c7bf4f9
JB
150392017-04-04 John Baldwin <jhb@FreeBSD.org>
15040
15041 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15042 (amd64fbsd_jmp_buf_reg_offset): Remove.
15043 (amd64fbsd_supply_uthread): Remove function.
15044 (amd64fbsd_collect_uthread): Remove function.
15045 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
15046 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
15047 (x86_64-*-freebsd*): Remove bsd-uthread.o.
15048 (fbsd-nat.c): Update comment.
15049 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
15050 (i386fbsd_jmp_buf_reg_offset): Remove.
15051 (i386fbsd_supply_uthread): Remove function.
15052 (i386fbsd_collect_uthread): Remove function.
15053 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
15054
1e1a8bef
JB
150552017-04-04 John Baldwin <jhb@FreeBSD.org>
15056
15057 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
15058 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
15059 * NEWS: Mention that support for FreeBSD/alpha was removed.
15060 * alpha-fbsd-tdep.c: Delete file.
15061 * config/alpha/fbsd.mh: Delete file.
15062 * configure.host: Delete alpha*-*-freebsd* and
15063 alpha*-*-kfreebsd*-gnu.
15064 * configure.tgt: Delete alpha*-*-freebsd* and
15065 alpha*-*-kfreebsd*-gnu.
15066
49907934
JB
150672017-04-04 John Baldwin <jhb@FreeBSD.org>
15068
15069 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
15070 amd64bsd_store_inferior_registers): Use ptid from regcache.
15071
6f77053d
PA
150722017-04-04 Pedro Alves <palves@redhat.com>
15073
15074 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
15075 data fields, make them private and add "m_" prefixes.
15076 (lnp_state_machine::lnp_state_machine): New ctor.
15077 (record_line, check_line_address, handle_set_discriminator)
15078 (handle_set_address, handle_advance_pc, handle_special_opcode)
15079 (handle_advance_line, handle_set_file, handle_negate_stmt)
15080 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
15081 (end_sequence, advance_line): New methods.
15082 (m_gdbarch, m_record_lines_p): New fields.
15083 (lnp_reader_state): Delete.
15084 (dwarf_record_line): Rename to ...
15085 (lnp_state_machine::record_line): ... adjust.
15086 (init_lnp_state_machine): Delete.
15087 (lnp_state_machine::lnp_state_machine): New.
15088 (check_line_address): Rename to ...
15089 (lnp_state_machine::check_line_address): This.
15090 (dwarf_decode_lines_1): Remove reference to "reader_state".
15091 Adjust lnp_state_machine having a non-default ctor. Use bool.
15092 State machine internal state manipulation moved to
15093 lnp_state_machine methods.
15094
9c541725
PA
150952017-04-04 Pedro Alves <palves@redhat.com>
15096
15097 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15098 unittests/offset-type-selftests.c.
15099 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
15100 * common/offset-type.h: New file.
15101 * common/preprocessor.h: New file.
15102 * common/traits.h: New file.
15103 * common/valid-expr.h: New file.
15104 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
15105 sect_offset and cu_offset strong typedefs throughout.
15106 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
15107 typedefs throughout.
15108 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
15109 sect_offset and cu_offset strong typedefs throughout.
15110 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
15111 typedefs throughout.
15112 * gdbtypes.h: Include "common/offset-type.h".
15113 (cu_offset): Now an offset type (strong typedef) instead of a
15114 struct.
15115 (sect_offset): Likewise.
15116 (union call_site_parameter_u): Rename "param_offset" field to
15117 "param_cu_off".
15118 * unittests/offset-type-selftests.c: New file.
15119
ecfb656c
PA
151202017-04-04 Pedro Alves <palves@redhat.com>
15121
15122 * common/underlying.h: New file.
15123 * dwarf2read.c: Include "common/gdb_optional.h" and
15124 "common/underlying.h".
15125 (dir_index, file_name_index): New types.
15126 (file_entry): Use them.
15127 (file_entry::include): Use to_underlying.
15128 (line_header::add_file_name): Use dir_index.
15129 (read_formatted_entries): Use gdb::optional. Read form before
15130 writting to file_entry.
15131 (dwarf_decode_line_header): Use dir_index.
15132 (lnp_state_machine::current_file): Use to_underlying.
15133 (lnp_state_machine::file): Change type to file_name_index.
15134 (dwarf_record_line): Use to_underlying.
15135 (init_lnp_state_machine): Use file_name_index.
15136 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15137
d194f1fe
PA
151382017-04-04 Pedro Alves <palves@redhat.com>
15139
15140 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15141 operator bool, has_value and get methods.
15142
fff8551c
PA
151432017-04-04 Pedro Alves <palves@redhat.com>
15144
15145 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15146 fields.
15147 (line_header): Initialize all data fields. Change type of
15148 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15149 Change type of include_dirs to std::vector<const char *>. Remove
15150 num_include_dirs, include_dirs_size. Change type of file_names to
15151 std::vector<file_entry>. Remove num_file_names, file_names_size.
15152 (line_header::line_header): New.
15153 (line_header::add_include_dir, line_header::add_file_name): New
15154 methods.
15155 (line_header::include_dir_at): Remove NULL check.
15156 (line_header::file_name_at): Add const overload.
15157 (line_header_up): New unique_ptr typedef.
15158 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15159 std::vector. Remove free_line_header call.
15160 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15161 free_line_header call.
15162 (free_cu_line_header): Delete.
15163 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15164 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15165 Adjust to use std::vector.
15166 (free_line_header): Delete.
15167 (free_line_header_voidp): Use delete.
15168 (add_include_dir): Replace with ...
15169 (line_header::add_include_dir): ... this method. Use std::vector.
15170 (add_file_name): Replace with ...
15171 (line_header::add_file_name): ... this method. Use std::vector.
15172 (add_include_dir_stub): Delete.
15173 (read_formatted_entries): Remove memset.
15174 (dwarf_decode_line_header): Return a line_header_up instead of a
15175 raw pointer. Remove cleanup handling. Pass lambdas to
15176 read_formatted_entries. Adjust to use line_header methods.
15177 (dwarf_decode_lines_1): Adjust to use line_header methods.
15178 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15179 use std::vector.
15180
d62a8ae2
SM
151812017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15182
15183 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15184 instead of struct ptid.
15185
db3a1dc7
AH
151862017-05-04 Alan Hayward <alan.hayward@arm.com>
15187
15188 * frame.c (get_frame_register_bytes): Unwind using value.
15189 (put_frame_register_bytes): Likewise.
15190
b1b45502
IB
151912017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15192
15193 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15194 aggregate-like.
15195
ec13808e
JK
151962017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15197
15198 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15199
12316564
YQ
152002017-03-29 Yao Qi <yao.qi@linaro.org>
15201
15202 * gdbthread.h (struct thread_info): Declare constructor and
15203 destructor. Add some in-class member initializers.
15204 * thread.c (free_thread): Remove.
15205 (init_thread_list): Call delete instead of free_thread.
15206 (new_thread): Call thread_info constructor.
15207 (thread_info::thread_info): New function.
15208 (thread_info::~thread_info): New function.
15209 (delete_thread_1): Call delete instead of free_thread.
15210 (make_cleanup_restore_current_thread): Move tp and frame to
15211 inner block.
15212
fe5f7374
AK
152132017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15214
15215 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15216 (arc_skip_prologue): Likewise.
15217 (arc_make_frame_cache): Likewise.
15218 (arc_pv_get_operand): New function.
15219 (arc_is_in_prologue): Likewise.
15220 (arc_analyze_prologue): Likewise.
15221 (arc_print_frame_cache): Likewise.
15222 (MAX_PROLOGUE_LENGTH): New constant.
15223
eea78757
AK
152242017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15225
15226 * configure.tgt: Add arc-insn.o.
15227 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15228 (dump_arc_instruction_command): New function.
15229 (arc_fprintf_disasm): Likewise.
15230 (arc_disassemble_info): Likewise.
15231 (arc_insn_get_operand_value): Likewise.
15232 (arc_insn_get_operand_value_signed): Likewise.
15233 (arc_insn_get_memory_base_reg): Likewise.
15234 (arc_insn_get_memory_offset): Likewise.
15235 (arc_insn_get_branch_target): Likewise.
15236 (arc_insn_dump): Likewise.
15237 (arc_insn_get_linear_next_pc): Likewise.
15238 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15239 (arc_disassemble_info): Likewise.
15240 (arc_insn_get_branch_target): Likewise.
15241 (arc_insn_get_linear_next_pc): Likewise.
15242 * NEWS: Mention new "maint print arc arc-instruction".
15243
3be78afd
AK
152442017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15245
15246 * arc-tdep (maintenance_print_arc_list): New variable.
15247 (maintenance_print_arc_command): New function.
15248
296ec4fa
AK
152492017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15250
15251 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15252 Add "limm" and "reserved".
15253 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15254 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15255 * arc-tdep.h (arc_regnum): Likewise.
15256
f74f865e
MF
152572017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15258
15259 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15260 for THREADPTR register.
15261 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15262 register.
15263 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15264 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15265 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15266
0d0bf81a
MF
152672017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15268
15269 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15270 registers above gdbarch_num_regs (gdbarch) as privileged in
15271 call0 ABI.
15272
0ce4291e
MF
152732017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15274
15275 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15276 for a single specified register or for all registers in
15277 a0_base..a0_base + C0_NREGS range.
15278 (supply_gregset_reg): Call regcache_raw_supply for a single
15279 specified register or for all registers in a0_base..a0_base +
15280 C0_NREGS range.
15281
c56054f9
MF
152822017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15283
15284 * arch/xtensa.h (C0_NREGS): Add definition.
15285 * xtensa-tdep.c (C0_NREGS): Remove definition.
15286
a4398628
MF
152872017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15288
15289 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15290 Drop xtensa_default_isa initialization.
15291 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15292
8c43009f
PA
152932017-03-27 Pedro Alves <palves@redhat.com>
15294
15295 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15296 (file_entry::include_dir): New method.
15297 (line_header::include_dir_at, line_header::file_name_at): New
15298 methods.
15299 (setup_type_unit_groups, setup_type_unit_groups)
15300 (psymtab_include_file_name): Simplify using the new methods.
15301 (lnp_state_machine) <the_line_header>: New field.
15302 <file>: Add comment.
15303 (lnp_state_machine::current_file): New method.
15304 (dwarf_record_line): Simplify using the new methods.
15305 (init_lnp_state_machine): Initialize the "the_line_header" field.
15306 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15307 Simplify using the new methods.
15308
a7e80b9e
PA
153092017-03-27 Pedro Alves <palves@redhat.com>
15310
15311 * cp-name-parser.y (make_empty): Delete.
15312 (demangler_special, nested_name, ptr_operator, array_indicator)
15313 (direct_declarator, declarator_1): Use fill_comp instead of
15314 make_empty.
15315
21047726
PA
153162017-03-27 Pedro Alves <palves@redhat.com>
15317
15318 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15319 to ATTRIBUTE_PRINTF.
15320 * solib-target.c (library_list_start_list): Print "string" not
15321 "version".
15322 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15323 gdb_xml_error call.
15324
d721ba37
PA
153252017-03-27 Pedro Alves <palves@redhat.com>
15326
15327 * dwarf2read.c (struct file_and_directory): New.
15328 (dwarf2_get_dwz_file): Adjust to use std::string.
15329 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15330 (find_file_and_directory): Adjust to return a file_and_directory
15331 object.
15332 (read_file_scope): Adjust to use file_and_directory. Remove
15333 make_cleanup/do_cleanups calls.
15334 (open_and_init_dwp_file): Adjust to use std::string. Remove
15335 make_cleanup/do_cleanups calls.
15336 * python/python.c (do_start_initialization): Adjust to ldirname
15337 returning a std::string.
15338 * utils.c (ldirname): Now returns a std::string.
15339 * utils.h (ldirname): Change return type to std::string.
15340 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15341 returning a std::string.
15342 * xml-tdesc.c (file_read_description_xml): Likewise.
15343
ed771251
AH
153442017-03-24 Alan Hayward <alan.hayward@arm.com>
15345
15346 * regcache.c (regcache_debug_print_register): New function.
15347 * regcache.h (regcache_debug_print_register): New declaration.
15348 * target.c (debug_print_register): Remove.
15349 (target_fetch_registers): Call regcache_debug_print_register.
15350 (target_store_registers): Likewise.
15351
568c1b9f
PB
153522017-03-24 Pádraig Brady <pbrady@fb.com>
15353
15354 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15355 reference beyond the 'lh->include_dirs' array before accessing to
15356 it.
15357 (psymtab_include_file_name): Likewise.
15358 (dwarf_decode_lines_1): Likewise.
15359 (dwarf_decode_lines): Likewise.
15360 (file_file_name): Likewise.
15361
3e00d44f
SM
153622017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15363
15364 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15365 inferior_ptid.
15366 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15367 ps_lsetfpregs): Likewise.
15368 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15369 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15370 ps_lsetfpregs): Likewise.
15371 * target.c (target_fetch_registers, target_store_registers):
15372 Remove asserts.
15373
077ae656
AH
153742017-03-23 Alan Hayward <alan.hayward@arm.com>
15375
15376 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15377
1e2b521d
YQ
153782017-03-23 Yao Qi <yao.qi@linaro.org>
15379
15380 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15381 (_initialize_aarch64_tdep): Register it.
15382 (aarch64_record_load_store): Handle PRFM instruction.
15383 (aarch64_process_record_test): New function.
15384
33877125
YQ
153852017-03-23 Yao Qi <yao.qi@linaro.org>
15386
15387 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15388 indentation.
15389
a0eef940
YQ
153902017-03-23 Yao Qi <yao.qi@linaro.org>
15391
15392 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15393
3f2a3564
PR
153942017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15395
15396 python/python.c (do_start_initialization): Fix memory leak.
15397
b67aeab0
SM
153982017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15399
15400 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15401 using get_ptrace_pid.
15402 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15403 inferior_ptid.
15404 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15405 inferior_ptid instead of pid.
15406
ffdbe864
YQ
154072017-03-22 Yao Qi <yao.qi@linaro.org>
15408
15409 * aarch64-tdep.c: Wrap locally used classes in anonymous
15410 namespace.
15411 * arm-tdep.c: Likewise.
15412 * linespec.c: Likewise.
15413 * ui-out.c: Likewise.
15414
9d736fbf
JG
154152017-03-22 Jonah Graham <jonah@kichwacoders.com>
15416
15417 PR gdb/19637
15418 * python/lib/gdb/printer/bound_registers.py: Import sys.
15419
3de88e9a
SM
154202017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15421
15422 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15423 windows_thread_info parameter and use it instead of
15424 current_thread.
15425 (windows_fetch_inferior_registers): Don't set current_thread,
15426 pass the thread to do_windows_fetch_inferior_registers. Use
15427 ptid from regcache instead of inferior_ptid.
15428 (do_windows_store_inferior_registers): Add windows_thread_info
15429 parameter and use it instead of current_thread.
15430 (windows_store_inferior_registers): Don't set current_thread,
15431 pass the thread to do_windows_store_inferior_registers. Use
15432 ptid from regcache instead of inferior_ptid.
15433
0e7b8f61
SM
154342017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15435
15436 * ser-mingw.c (ser_windows_raw): Remove reference to
15437 struct serial::current_timeout.
15438
5badf10a
IR
154392017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15440
15441 PR tdep/20928
15442 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15443 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15444 (sparc64_fsr_type): Fix %fsr decoding.
15445
cee59b3f
TW
154462017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15447
15448 * python/py-record-btrace.c (btpy_insn_data): Change return type
15449 for Python 2.
15450
639a9038
SM
154512017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15452
15453 * spu-linux-nat.c (spu_fetch_inferior_registers,
15454 spu_store_inferior_registers): Use ptid from regcache, set and
15455 restore inferior_ptid.
15456 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15457 Likewise.
15458
bcc0c096
SM
154592017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15460
15461 * i386-linux-nat.c (fetch_register, store_register,
15462 i386_linux_fetch_inferior_registers,
15463 i386_linux_store_inferior_registers): Use ptid from regcache.
15464 * ia64-linux-nat.c (ia64_linux_fetch_register,
15465 ia64_linux_store_register): Likewise.
15466 * inf-ptrace.c (inf_ptrace_fetch_register,
15467 inf_ptrace_store_register): Likewise.
15468 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15469 m32r_linux_store_inferior_registers): Likewise.
15470 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15471 m68kbsd_store_inferior_registers): Likewise.
15472 * m68k-linux-nat.c (fetch_register, store_register,
15473 m68k_linux_fetch_inferior_registers,
15474 m68k_linux_store_inferior_registers): Likewise.
15475 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15476 m88kbsd_store_inferior_registers): Likewise.
15477 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15478 mips_fbsd_store_inferior_registers): Likewise.
15479 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15480 mips64_linux_regsets_store_registers): Likewise.
15481 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15482 mipsnbsd_store_inferior_registers): Likewise.
15483 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15484 mips64obsd_store_inferior_registers): Likewise.
15485 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15486 Likewise.
15487 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15488 ppcfbsd_store_inferior_registers): Likewise.
15489 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15490 ppc_linux_store_inferior_registers): Likewise.
15491 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15492 ppcnbsd_store_inferior_registers): Likewise.
15493 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15494 ppcobsd_store_registers): Likewise.
15495 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15496 Likewise.
15497 * ravenscar-thread.c (ravenscar_fetch_registers,
15498 ravenscar_store_registers, ravenscar_prepare_to_store):
15499 Likewise.
15500 * record-btrace.c (record_btrace_fetch_registers,
15501 record_btrace_store_registers, record_btrace_prepare_to_store):
15502 Likewise.
15503 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15504 Lookup inferior using ptid from regcache, instead of
15505 current_inferior.
15506 * remote.c (remote_fetch_registers, remote_store_registers): Use
15507 ptid from regcache.
15508 * rs6000-nat.c (fetch_register, store_register): Likewise.
15509 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15510 s390_linux_store_inferior_registers): Likewise.
15511 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15512 shnbsd_store_inferior_registers): Likewise.
15513 * sol-thread.c (sol_thread_fetch_registers,
15514 sol_thread_store_registers): Likewise.
15515 * sparc-nat.c (sparc_fetch_inferior_registers,
15516 sparc_store_inferior_registers): Likewise.
15517 * tilegx-linux-nat.c (fetch_inferior_registers,
15518 store_inferior_registers): Likewise.
15519 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15520 vaxbsd_store_inferior_registers): Likewise.
15521 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15522 store_xtregs): Likewise.
15523
c0f55cc6
AV
155242017-03-20 Artemiy Volkov <artemiyv@acm.org>
15525
15526 PR gdb/14441
15527 * NEWS: Mention support for rvalue references in GDB and python.
15528 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15529 supports both lvalue and rvalue references.
15530
15c0a2a9
AV
155312017-03-20 Artemiy Volkov <artemiyv@acm.org>
15532
15533 PR gdb/14441
15534 * gdbtypes.c (rank_one_type): Implement overloading
15535 resolution rules regarding rvalue references.
15536
aa006118
AV
155372017-03-20 Artemiy Volkov <artemiyv@acm.org>
15538
15539 PR gdb/14441
15540 * aarch64-tdep.c (aarch64_type_align)
15541 (aarch64_extract_return_value, aarch64_store_return_value): Change
15542 lvalue reference type checks to general reference type checks.
15543 * amd64-tdep.c (amd64_classify): Likewise.
15544 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15545 Likewise.
15546 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15547 (arm_store_return_value): Likewise.
15548 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15549 * c-typeprint.c (c_print_type): Likewise.
15550 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15551 (cplus_number_of_children, cplus_describe_child): Likewise.
15552 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15553 * completer.c (expression_completer): Likewise.
15554 * cp-support.c (make_symbol_overload_list_adl_namespace):
15555 Likewise.
15556 * darwin-nat-info.c (info_mach_region_command): Likewise.
15557 * dwarf2loc.c (entry_data_value_coerce_ref)
15558 (value_of_dwarf_reg_entry): Likewise.
15559 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15560 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15561 Likewise.
15562 * findvar.c (extract_typed_address, store_typed_address):
15563 Likewise.
15564 * gdbtypes.c (rank_one_type): Likewise.
15565 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15566 * infcall.c (value_arg_coerce): Likewise.
15567 * language.c (pointer_type): Likewise.
15568 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15569 Likewise.
15570 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15571 * mn10300-tdep.c (mn10300_type_align): Likewise.
15572 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15573 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15574 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15575 Likewise.
15576 * printcmd.c (print_formatted, x_command): Likewise.
15577 * python/py-type.c (typy_get_composite, typy_template_argument):
15578 Likewise.
15579 * python/py-value.c (valpy_referenced_value)
15580 (valpy_get_dynamic_type, value_has_field): Likewise.
15581 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15582 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15583 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15584 * spu-tdep.c (spu_scalar_value_p): Likewise.
15585 * symtab.c (lookup_symbol_aux): Likewise.
15586 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15587 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15588 Likewise.
15589 * valops.c (value_cast_pointers, value_cast)
15590 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15591 (value_struct_elt, value_struct_elt_bitpos)
15592 (value_find_oload_method_list, find_overload_match)
15593 (value_rtti_indirect_type): Likewise.
15594 * valprint.c (val_print_scalar_type_p, generic_val_print):
15595 Likewise.
15596 * value.c (value_actual_type, value_as_address, unpack_long)
15597 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15598 (coerce_ref): Likewise.
15599 * varobj.c (varobj_get_value_type): Likewise.
15600
3fcf899d
AV
156012017-03-20 Artemiy Volkov <artemiyv@acm.org>
15602
15603 PR gdb/14441
15604 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15605 table of constants.
15606 * python/lib/gdb/command/explore.py: Support exploring values
15607 of rvalue reference types.
15608 * python/lib/gdb/types.py: Implement get_basic_type() for
15609 rvalue reference types.
15610 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15611 constant.
15612 * python/py-value.c (valpy_getitem): Add an rvalue reference
15613 check.
15614 (valpy_reference_value): Add new parameter "refcode".
15615 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15616 New wrappers for valpy_reference_value().
15617 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15618 (gdbpy_invoke_xmethod): Likewise.
15619
4297a3f0
AV
156202017-03-20 Artemiy Volkov <artemiyv@acm.org>
15621
15622 PR gdb/14441
15623 * dwarf2read.c (process_die, read_type_die_1): Handle the
15624 DW_TAG_rvalue_reference_type DIE.
15625 (read_tag_reference_type): Add new parameter "refcode".
15626
e1cb3213
AV
156272017-03-20 Artemiy Volkov <artemiyv@acm.org>
15628
15629 PR gdb/14441
15630 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15631 (c_type_print_modifier, c_type_print_varspec_suffix)
15632 (c_type_print_base): Support printing rvalue reference types.
15633 * c-valprint.c (c_val_print, c_value_print): Support printing
15634 rvalue reference values.
15635
e4347c89
AV
156362017-03-20 Artemiy Volkov <artemiyv@acm.org>
15637
15638 PR gdb/14441
15639 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15640 typename.
15641 * cp-support.c (replace_typedefs): Handle
15642 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15643 * python/py-type.c (typy_lookup_type): Likewise.
15644
53cc15f5
AV
156452017-03-20 Artemiy Volkov <artemiyv@acm.org>
15646
15647 PR gdb/14441
15648 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15649 * parse.c (insert_type): Change assert statement.
15650 (follow_types): Handle rvalue reference types.
15651 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15652 constant.
15653
a65cfae5
AV
156542017-03-20 Artemiy Volkov <artemiyv@acm.org>
15655
15656 PR gdb/14441
15657 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15658 value_ref() interface.
15659 * c-valprint.c (c_value_print): Likewise.
15660 * infcall.c (value_arg_coerce): Likewise.
15661 * python/py-value.c (valpy_reference_value): Likewise.
15662 * valops.c (value_cast, value_reinterpret_cast)
15663 (value_dynamic_cast, typecmp): Likewise.
15664 (value_ref): Parameterize by kind of return value reference type.
15665 * value.h (value_ref): Add new parameter "refcode".
15666
3b224330
AV
156672017-03-20 Artemiy Volkov <artemiyv@acm.org>
15668
15669 PR gdb/14441
15670 * dwarf2read.c (read_tag_reference_type): Use
15671 lookup_lvalue_reference_type() instead of lookup_reference_type().
15672 * eval.c (evaluate_subexp_standard): Likewise.
15673 * f-exp.y: Likewise.
15674 * gdbtypes.c (make_reference_type, lookup_reference_type):
15675 Generalize with rvalue reference types.
15676 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15677 convenience wrappers for lookup_reference_type().
15678 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15679 reference kind parameter.
15680 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15681 wrappers for lookup_reference_type().
15682 * guile/scm-type.c (gdbscm_type_reference): Use
15683 lookup_lvalue_reference_type() instead of lookup_reference_type().
15684 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15685 * parse.c (follow_types): Likewise.
15686 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15687 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15688 Likewise.
15689 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15690 (gdbpy_invoke_xmethod): Likewise.
15691 * stabsread.c: Provide extra argument to make_reference_type()
15692 call.
15693 * valops.c (value_ref, value_rtti_indirect_type): Use
15694 lookup_lvalue_reference_type() instead of lookup_reference_type().
15695
f9aeb8d4
AV
156962017-03-20 Artemiy Volkov <artemiyv@acm.org>
15697
15698 PR gdb/14441
15699 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15700 (TYPE_IS_REFERENCE): New macro.
15701 (struct type): Add rvalue_reference_type field.
15702 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15703
51457a05
MAL
157042017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15705
15706 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15707 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15708 New function definition.
15709 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15710 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15711 New function declaration.
15712 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15713 * mi/mi-interp.h: New file.
15714 * solib.c (info_sharedlibrary_command): Replace for loop with
15715 ALL_SO_LIBS macro
15716 * solib.h (update_solib_list): New function declaration.
15717 (so_list_head): Move macro.
15718 * solist.h (ALL_SO_LIBS): New macro.
15719
e696b3ad
MAL
157202017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15721
15722 * infcmd.c (post_create_inferior): Remove unused argument in
15723 call to solib_add.
15724 * remote.c (remote_start_remote): Likewise.
15725 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15726 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15727 (enable_break): Likewise.
15728 * solib.c (update_solib_list): Remove unused target argument
15729 and its documentation.
15730 (solib_add): Remove unused target argument. Remove unused
15731 argument in call to update_solib_list.
15732 (info_sharedlibrary_command): Remove unused argument in call
15733 to update_solib_list.
15734 (sharedlibrary_command): Remove unused argument in call to
15735 solib_add.
15736 (handle_solib_event): Likewise.
15737 (reload_shared_libraries): Likewise.
15738 * solib.h (solib_add): Remove unused target argument.
15739
dcb84eda
AA
157402017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15741
15742 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15743 (s390_displaced_step_fixup): Cover relative branches with the
15744 default fixup handling. This fixes lack of support for some
15745 relative branch instructions.
15746
d9cb6cdc
SM
157472017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15748
15749 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15750 ptid from regcache.
15751
1afaf9f4
SM
157522017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15753
15754 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15755 i386_darwin_store_inferior_registers): Use ptid from regcache.
15756
aac12e24
SM
157572017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15758
15759 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15760 i386bsd_store_inferior_registers): Use ptid from regcache.
15761
bbe1eef1
SM
157622017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15763
15764 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15765 hppaobsd_store_registers): Use ptid from regcache.
15766
10799020
SM
157672017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15768
15769 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15770 hppanbsd_store_registers): Use ptid from regcache.
15771
00204cf7
SM
157722017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15773
15774 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15775 from regcache. Use get_ptrace_pid.
15776
11a33714
SM
157772017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15778
15779 * corelow.c (get_core_register_section): Use ptid from regcache,
15780 update doc.
15781
317cd492
SM
157822017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15783
15784 * bsd-uthread.c (bsd_uthread_fetch_registers,
15785 bsd_uthread_store_registers): Use ptid from regcache, set and
15786 restore inferior_ptid.
15787
9ac8a7c2
SM
157882017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15789
15790 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15791 fetch_fp_regs, store_register, store_regs, store_fp_register,
15792 store_fp_regs): Use ptid from regcache.
15793
4ac4bb6a
SM
157942017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15795
15796 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15797 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15798 store_vfp_regs): Use ptid from regcache.
15799
9bcbdca8
PA
158002017-03-17 Pedro Alves <palves@redhat.com>
15801
15802 PR remote/21188
15803 * ser-base.c (ser_base_wait_for): Add comment.
15804 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15805 version.
15806 * ser-unix.c (hardwire_raw): Remove reference to
15807 scb->current_timeout.
15808 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15809 (hardwire_ops): Install ser_base_readchar instead of
15810 hardwire_readchar.
15811 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15812 Remove fields.
15813
7503099f
JG
158142017-03-17 Jonah Graham <jonah@kichwacoders.com>
15815
15816 PR gdb/19637
15817 * python/lib/gdb/printer/bound_registers.py: Add support for
15818 Python 3.
15819
7942e96e
AA
158202017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15821
15822 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15823 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15824 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15825 byte_offset to subobj_byte_offset. Fix the handling of
15826 DWARF_VALUE_STACK on big-endian targets when coming via an
15827 implicit pointer.
15828 (dwarf2_evaluate_loc_desc): Adjust call to
15829 dwarf2_evaluate_loc_desc_full.
15830 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15831 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15832
ba14f379
YQ
158332017-03-16 Yao Qi <yao.qi@linaro.org>
15834
15835 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15836 and REVSH instructions.
15837
b121eeb9
YQ
158382017-03-16 Yao Qi <yao.qi@linaro.org>
15839
15840 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15841 (arm_record_test): Declare.
15842 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15843 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15844 align with the manual.
15845 (thumb_record_misc): Adjust the code order to align with the
15846 manual.
15847 (thumb2_record_decode_insn_handler): Fix instruction matching.
15848 (instruction_reader_thumb): New class.
15849 (arm_record_test): New function.
15850
728a7913
YQ
158512017-03-16 Yao Qi <yao.qi@linaro.org>
15852
15853 * arm-tdep.c (abstract_memory_reader): New class.
15854 (instruction_reader): New class.
15855 (extract_arm_insn): Add argument 'reader'. Callers updated.
15856 (decode_insn): Likewise.
15857
34b43320
DE
158582017-03-16 Doug Evans <dje@google.com>
15859
a7c0469f
DE
15860 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15861 member. Change type of TYPE member to SCM. All uses updated.
15862 (lsscm_make_lazy_string_smob): Add assert.
15863 (lsscm_make_lazy_string): Flag bad length values.
15864 (lsscm_elt_type): New function.
15865 (gdbscm_lazy_string_to_value): Rewrite to use
15866 lsscm_safe_lazy_string_to_value.
15867 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15868 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15869 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15870 in incoming type.
15871 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15872 * guile/scm-type.c (tyscm_scm_to_type): New function.
15873
158742017-03-15 Doug Evans <dje@google.com>
15875
34b43320
DE
15876 PR python/17728, python/18439, python/18779
15877 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15878 member. Change type of TYPE member to PyObject *. All uses updated.
15879 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15880 (gdbpy_create_lazy_string_object): Flag bad length values.
15881 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15882 Handle typedefs in incoming type.
15883 (stpy_lazy_string_elt_type): New function.
15884 (gdbpy_extract_lazy_string): Call it.
15885 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15886 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15887 typedefs in incoming type.
15888
a3a5fecc
DE
158892017-03-16 Doug Evans <dje@google.com>
15890
15891 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15892 * guile/scm-type.c (tyscm_scm_to_type): New function.
15893
28f1c605
JW
158942017-03-16 Jiong Wang <jiong.wang@arm.com>
15895
15896 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15897 "ULONGEST" for "skip".
15898
87c336f6
AA
158992017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15900
15901 PR gdb/21220
15902 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15903 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15904 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15905 over ptrace peek/poke until end of buffer or error.
15906
cf81cf60
SM
159072017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15908
15909 * parse.c (length_of_subexp): Make static.
15910 * parser-defs.h (length_of_subexp): Remove.
15911
a379284a
AA
159122017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15913
15914 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15915 as well.
15916
8a6200ba
PA
159172017-03-14 Pedro Alves <palves@redhat.com>
15918
15919 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15920 (main): Use std::unique_ptr. Remove calls to
15921 cp_demangled_name_parse_free.
15922
f79ec206
SM
159232017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15924
15925 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15926 alphabsd_store_inferior_registers): Use regcache->ptid instead
15927 of inferior_ptid.
15928
edb5fb00
SM
159292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15930
15931 * aix-thread.c (aix_thread_fetch_registers,
15932 aix_thread_store_registers): Use regcache->ptid instead of
15933 inferior_ptid.
15934
55119686
SM
159352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15936
15937 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15938 store_gregs_to_thread, fetch_fpregs_from_thread,
15939 store_fpregs_to_thread): Use regcache->ptid instead of
15940 inferior_ptid.
15941
6a06fbb7
SM
159422017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15943
15944 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15945 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15946 instead of inferior_ptid.
15947
c6386875
SM
159482017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15949
15950 * target.c (target_fetch_registers, target_store_registers): Add
15951 assert.
15952
ddaaf0fb
SM
159532017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15954
15955 * regcache.h (regcache_get_ptid): New function.
15956 * regcache.c (regcache_get_ptid): New function.
15957
b9da89d1 159582017-03-13 Mark Wielaard <mark@klomp.org>
15959
15960 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15961
5f4d1085
KS
159622017-03-10 Keith Seitz <keiths@redhat.com>
15963
15964 PR c++/8218
15965 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15966
c65d6b55
PA
159672017-03-08 Pedro Alves <palves@redhat.com>
15968
15969 PR gdb/18360
15970 * infrun.c (start_step_over, do_target_resume, resume)
15971 (restart_threads): Assert we're not resuming a thread that is
15972 meant to be stopped.
15973 (infrun_thread_stop_requested_callback): Delete.
15974 (infrun_thread_stop_requested): If the thread is internally
15975 stopped, queue a pending stop event and clear the thread's
15976 inline-frame state.
15977 (handle_stop_requested): New function.
15978 (handle_syscall_event, handle_inferior_event_1): Use
15979 handle_stop_requested.
15980 (handle_stop_requested): New function.
15981 (handle_signal_stop): Set the thread's stop_signal here instead of
15982 at caller.
15983 (finish_step_over): Clear step over info unconditionally.
15984 (handle_signal_stop): If the user had interrupted the event
15985 thread, consider the stop a random signal.
15986 (handle_signal_stop) <signal arrived while stepping over
15987 breakpoint>: Don't restart threads here.
15988 (stop_waiting): Don't clear step-over info here.
15989
15c22686
PA
159902017-03-08 Pedro Alves <palves@redhat.com>
15991
15992 PR 21206
15993 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15994 goes to argument 2, not 1.
15995
6e5d74e7
PA
159962017-03-08 Pedro Alves <palves@redhat.com>
15997
15998 PR cli/21218
15999 * top.c (gdb_readline_wrapper): Avoid passing NULL to
16000 display_gdb_prompt.
16001 (command_line_input): Add comment.
16002
9753a2f6
PA
160032017-03-08 Pedro Alves <palves@redhat.com>
16004
16005 PR tui/21216
16006 * tui/tui-file.c (tui_file::write): New.
16007 * tui/tui-file.h (tui_file): Override "write".
16008 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
16009 factored out from ...
16010 (tui_puts): ... here.
16011 (tui_putc): Use them.
16012 (tui_write): New function.
16013 * tui/tui-io.h (tui_write): Declare.
16014
1672e0d9
SDJ
160152017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
16016
16017 * Makefile.in (SFILES): Replace "environ.c" with
16018 "common/environ.c".
16019 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
16020 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
16021 to...
16022 * common/environ.c: ... here.
16023 * environ.h: Moved to...
16024 * common/environ.h: ... here.
16025
f7bb4e3a
PB
160262017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16027
16028 * gdbarch.sh (pstring_ptr): New static function.
16029 (gdbarch_disassembler_options): Use it.
16030 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
16031 not valid_disassembler_option->name.
16032 * gdbarch.c: Regenerate.
16033
e45ced6c
PB
160342017-03-07 Peter Bergner <bergner@vnet.ibm.com>
16035
16036 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
16037
5f6fd321
PA
160382017-03-07 Pedro Alves <palves@redhat.com>
16039
16040 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
16041
6dbb839a 160422017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
16043
16044 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
16045 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
16046 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 16047 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 16048
d274ecf4
SM
160492017-03-06 Simon Marchi <simon.marchi@ericsson.com>
16050
16051 * xtensa-linux-nat.c (fetch_gregs): Remove const.
16052
df97be55
SM
160532017-03-03 Simon Marchi <simon.marchi@ericsson.com>
16054
16055 * remote.c (remote_add_target_side_commands): Use range-based
16056 for loop.
16057
7d45f3df
YQ
160582017-03-03 Yao Qi <yao.qi@linaro.org>
16059
16060 PR gdb/21165
16061 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
16062 value is lazy.
16063 * valprint.c (common_val_print): Likewise.
16064
65b48a81
PB
160652017-02-28 Peter Bergner <bergner@vnet.ibm.com>
16066
16067 * NEWS: Mention new set/show disassembler-options commands.
16068 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
16069 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
16070 (prospective_options): New static variable.
16071 (gdb_disassembler::gdb_disassembler): Initialize
16072 m_di.disassembler_options.
16073 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
16074 (get_disassembler_options): New function.
16075 (set_disassembler_options): Likewise.
16076 (set_disassembler_options_sfunc): Likewise.
16077 (show_disassembler_options_sfunc): Likewise.
16078 (disassembler_options_completer): Likewise.
16079 (_initialize_disasm): Likewise.
16080 * disasm.h (get_disassembler_options): New prototype.
16081 (set_disassembler_options): Likewise.
16082 * gdbarch.sh (gdbarch_disassembler_options): New variable.
16083 (gdbarch_verify_disassembler_options): Likewise.
16084 * gdbarch.c: Regenerate.
16085 * gdbarch.h: Likewise.
16086 * arm-tdep.c (num_disassembly_options): Delete.
16087 (set_disassembly_style): Likewise.
16088 (arm_disassembler_options): New static variable.
16089 (set_disassembly_style_sfunc): Convert short style name into long
16090 option name. Call set_disassembler_options.
16091 (show_disassembly_style_sfunc): New function.
16092 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
16093 set_gdbarch_verify_disassembler_options.
16094 (_initialize_arm_tdep): Delete regnames variable and update callers.
16095 (arm_disassembler_options): Initialize.
16096 (disasm_options): New variable.
16097 (num_disassembly_options): Rename from this...
16098 (num_disassembly_styles): ...to this. Compute by scanning through
16099 disasm_options.
16100 (valid_disassembly_styles): Initialize using disasm_options.
16101 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
16102 set_arm_regname_option.
16103 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
16104 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
16105 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
16106 set_gdbarch_verify_disassembler_options.
16107 * s390-tdep.c (s390_disassembler_options): New static variable.
16108 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
16109 set_gdbarch_verify_disassembler_options.
16110
d538e36d
SM
161112017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16112
16113 * remote.c (remote_add_target_side_condition): Remove "struct"
16114 keyword from range-based for loop.
16115
83621223
SM
161162017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16117
16118 * remote.c (remote_add_target_side_condition): Use range-based
16119 for loop. Update comment.
16120
2123df0e
YQ
161212017-02-27 Yao Qi <yao.qi@linaro.org>
16122
16123 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16124
8e368124
AH
161252017-02-26 Alan Hayward <alan.hayward@arm.com>
16126
16127 * regcache.c (regcache_raw_update): New function.
16128 (regcache_raw_read): Move code to regcache_raw_update.
16129 * regcache.h (regcache_raw_update): New declaration.
16130 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16131
a49dd8dd
JK
161322017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16133
16134 * dwarf2read.c (create_debug_type_hash_table): Initialize
16135 header.signature and header.type_offset_in_tu.
16136
34e4bae9
PA
161372017-02-24 Pedro Alves <palves@redhat.com>
16138
16139 * symtab.c (make_file_symbol_completion_list_1): Use
16140 add_symtab_completions.
16141
b0e4b369
AH
161422017-02-24 Alan Hayward <alan.hayward@arm.com>
16143
16144 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16145
975c21ab
AH
161462017-02-24 Alan Hayward <alan.hayward@arm.com>
16147
16148 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16149 I386_MAX_REGISTER_SIZE.
16150 (i386_pseudo_register_write): Likewise.
16151 (i386_process_record): Likewise.
16152 * i387-tdep.c (i387_supply_xsave): Likewise.
16153 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16154 (store_register): Likewise.
16155
14bc53a8
PA
161562017-02-23 Pedro Alves <palves@redhat.com>
16157
16158 * ada-lang.c: Include "common/function-view.h".
16159 (ada_iterate_over_symbols): Adjust to use function_view as
16160 callback type.
16161 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16162 (ada_make_symbol_completion_list): Use a lambda.
16163 (ada_exc_search_name_matches): Delete.
16164 (name_matches_regex): New.
16165 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16166 * compile/compile-c-support.c: Include "common/function-view.h".
16167 (print_one_macro): Change prototype to accept a ui_file pointer.
16168 (write_macro_definitions): Use a lambda.
16169 * dwarf2read.c: Include "common/function-view.h".
16170 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16171 (dw2_expand_symtabs_matching): Adjust to use function_view as
16172 callback type.
16173 * language.h: Include "common/function-view.h".
16174 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16175 function_view as callback type.
16176 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16177 * linespec.c: Include "common/function-view.h".
16178 (collect_info::add_symbol): New method.
16179 (struct symbol_and_data_callback, iterate_inline_only, struct
16180 symbol_matcher_data, iterate_name_matcher): Delete.
16181 (iterate_over_all_matching_symtabs): Adjust to use function_view
16182 as callback type and lambdas.
16183 (iterate_over_file_blocks): Adjust to use function_view as
16184 callback type.
16185 (decode_compound_collector): Now a class with private fields.
16186 (decode_compound_collector::release_symbols): New method.
16187 (collect_one_symbol): Rename to...
16188 (decode_compound_collector::operator()): ... this and adjust.
16189 (lookup_prefix_sym): decode_compound_collector construction bits
16190 move to decode_compound_collector ctor. Pass the
16191 decode_compound_collector object directly as callback. Remove
16192 cleanups and use decode_compound_collector::release_symbols
16193 instead.
16194 (symtab_collector): Now a class with private fields.
16195 (symtab_collector::release_symtabs): New method.
16196 (add_symtabs_to_list): Rename to...
16197 (symtab_collector::operator()): ... this and adjust.
16198 (collect_symtabs_from_filename): symtab_collector construction
16199 bits move to symtab_collector ctor. Pass the symtab_collector
16200 object directly as callback. Remove cleanups and use
16201 symtab_collector::release_symtabs instead.
16202 (collect_symbols): Delete.
16203 (add_matching_symbols_to_info): Use lambdas.
16204 * macrocmd.c (print_macro_callback): Delete.
16205 (info_macro_command): Use a lambda.
16206 (info_macros_command): Pass print_macro_definition as callable
16207 directly.
16208 (print_one_macro): Remove 'ignore' parameter.
16209 (macro_list_command): Adjust.
16210 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16211 (macro_for_each_data::user_data): Delete field.
16212 (foreach_macro): Adjust to call the function_view.
16213 (macro_for_each): Adjust to use function_view as callback type.
16214 (foreach_macro_in_scope): Adjust to call the function_view.
16215 (macro_for_each_in_scope): Adjust to use function_view as callback
16216 type.
16217 * macrotab.h: Include "common/function-view.h".
16218 (macro_callback_fn): Declare a prototype instead of a pointer.
16219 Remove "user_data" parameter.
16220 (macro_for_each, macro_for_each_in_scope): Adjust to use
16221 function_view as callback type.
16222 * psymtab.c (partial_map_expand_apply)
16223 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16224 Adjust to use function_view as callback type and to return bool.
16225 (psym_expand_symtabs_matching): Adjust to use function_view as
16226 callback types.
16227 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16228 to use function_view as callback type and to return bool.
16229 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16230 callback types.
16231 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16232 as callback types.
16233 * symfile.h: Include "common/function-view.h".
16234 (expand_symtabs_file_matcher_ftype)
16235 (expand_symtabs_symbol_matcher_ftype)
16236 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16237 return bool.
16238 (quick_symbol_functions::map_symtabs_matching_filename)
16239 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16240 function_view as callback type and return bool.
16241 (expand_symtabs_matching): Adjust to use function_view as callback
16242 type.
16243 (maintenance_expand_name_matcher)
16244 (maintenance_expand_file_matcher): Delete.
16245 (maintenance_expand_symtabs): Use lambdas.
16246 * symtab.c (iterate_over_some_symtabs): Adjust to use
16247 function_view as callback types and return bool.
16248 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16249 of a cleanup.
16250 (lookup_symtab_callback): Delete.
16251 (lookup_symtab): Use a lambda.
16252 (iterate_over_symbols): Adjust to use function_view as callback
16253 type.
16254 (struct search_symbols_data, search_symbols_file_matches)
16255 (search_symbols_name_matches): Delete.
16256 (search_symbols): Use a pair of lambdas.
16257 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16258 (symtab_expansion_callback): Delete.
16259 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16260 * symtab.h: Include "common/function-view.h".
16261 (iterate_over_some_symtabs): Adjust to use function_view as
16262 callback type and return bool.
16263 (iterate_over_symtabs): Adjust to use function_view as callback
16264 type.
16265 (symbol_found_callback_ftype): Remove 'data' parameter and return
16266 bool.
16267 (iterate_over_symbols): Adjust to use function_view as callback
16268 type.
16269
07e253aa
PA
162702017-02-23 Pedro Alves <palves@redhat.com>
16271
16272 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16273 (%.o) <unittests/%.c>: New pattern.
16274 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16275 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16276 * common/function-view.h: New file.
16277 * unittests/function-view-selftests.c: New file.
16278 * configure: Regenerate.
16279
8eaf5320
SM
162802017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16281
16282 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16283 inferior_ptid.
16284 * go32-nat.c (go32_thread_alive): Likewise.
16285
38768751
YQ
162862017-02-23 Yao Qi <yao.qi@linaro.org>
16287
16288 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16289 delete.
16290
0a8beaba
YQ
162912017-02-23 Yao Qi <yao.qi@linaro.org>
16292
16293 * varobj.c (varobj_clear_saved_item): Use delete instead of
16294 xfree.
16295 (update_dynamic_varobj_children): Likewise.
16296
58fdfd2c
JK
162972017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16298
16299 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16300
1b90b139
SM
163012017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16302
16303 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16304 m_enum_value to 0 in default constructor.
16305
2039d74e
EBM
163062017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16307
16308 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16309 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16310 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16311 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16312 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16313 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16314 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16315 IS_STORE_CONDITIONAL_INSN.
16316
7814882a
JK
163172017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16318
16319 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16320
0ae60b63
JK
163212017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16322
16323 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16324
0224619f
JK
163252017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16326
16327 * dwarf2read.c (skip_one_die, read_attribute_value)
16328 (dwarf2_const_value_attr, dump_die_shallow)
16329 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16330 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16331
0af92d60
JK
163322017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16333
16334 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16335 (dwarf_parse_macro_header): Accept DWARF version 5.
16336 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16337
216f72a1
JK
163382017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16339
16340 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16341 DW_AT_GNU_*.
16342 * common/common-exceptions.h (enum errors): Likewise.
16343 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16344 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16345 (dwarf_expr_context::execute_stack_op): Likewise.
16346 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16347 Likewise.
16348 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16349 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16350 (show_entry_values_debug, call_site_to_target_addr)
16351 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16352 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16353 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16354 (value_of_dwarf_block_entry, indirect_pieced_value)
16355 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16356 (disassemble_dwarf_expression): Likewise.
16357 * dwarf2read.c (process_die, inherit_abstract_dies)
16358 (read_call_site_scope): Likewise.
16359 * gdbtypes.h (struct func_type, struct call_site_parameter)
16360 (struct call_site): Likewise.
16361 * stack.c (read_frame_arg): Likewise.
16362 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16363
43988095
JK
163642017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16365
16366 * defs.h (read_unsigned_leb128): New declaration.
16367 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16368 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16369 (dwarf2_find_location_expression): Call also
16370 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16371 * dwarf2loc.h (dwarf2_version): New declaration.
16372 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16373 rnglists.
16374 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16375 .debug_rnglists.
16376 (struct dwop_section_names): Add loclists_dwo.
16377 (dwop_section_names): Add .debug_loclists.dwo.
16378 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16379 (struct dwarf2_per_cu_data): Add dwarf_version.
16380 (struct dwo_sections): Add loclists.
16381 (struct attr_abbrev): Add implicit_const.
16382 (read_indirect_line_string): New declaration.
16383 (read_unsigned_leb128): Delete declaration.
16384 (rcuh_kind): New definition.
16385 (read_and_check_comp_unit_head): Change parameter
16386 is_debug_types_section to section_kind.
16387 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16388 (read_comp_unit_head): Change parameter abfd to section, add parameter
16389 section_kind. Handle DWARF-5.
16390 (error_check_comp_unit_head): Accept also DWARF version 5.
16391 (read_and_check_comp_unit_head): Change parameter
16392 is_debug_types_section to section_kind.
16393 (read_and_check_type_unit_head): Delete function.
16394 (read_abbrev_offset): Handle DWARF-5.
16395 (create_debug_type_hash_table): Add parameter section_kind. Process
16396 only DW_UT_type. Use signature and type_offset_in_tu from struct
16397 comp_unit_head.
16398 (create_debug_types_hash_table): Update create_debug_type_hash_table
16399 caller.
16400 (create_all_type_units): Call create_debug_type_hash_table.
16401 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16402 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16403 caller.
16404 (skip_one_die): Handle DW_FORM_implicit_const.
16405 (dwarf2_rnglists_process): New function.
16406 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16407 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16408 (read_attribute_value): Handle DW_FORM_implicit_const,
16409 DW_FORM_line_strp.
16410 (read_attribute): Handle DW_FORM_implicit_const.
16411 (read_indirect_string_at_offset_from): New function from
16412 read_indirect_string_at_offset.
16413 (read_indirect_string_at_offset): Call
16414 read_indirect_string_at_offset_from.
16415 (read_indirect_line_string_at_offset): New function.
16416 (read_indirect_string): New function comment.
16417 (read_indirect_line_string): New function.
16418 (read_unsigned_leb128): Make it global.
16419 (dwarf2_string_attr): Handle DWARF-5.
16420 (add_include_dir_stub, read_formatted_entries): New functions.
16421 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16422 Handle DWARF-5.
16423 (per_cu_header_read_in): Update read_comp_unit_head caller.
16424 (dwarf2_version): New function.
16425 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16426 rnglists.
16427 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16428 fields.
16429
22d2f3ab
JK
164302017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16431
16432 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16433
5f46c5a5
JK
164342017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16435
16436 * dwarf2read.c (dwarf2_ranges_process): New function from
16437 dwarf2_ranges_read.
16438 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16439 dwarf2_ranges_process.
16440
78d4d2c5
JK
164412017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16442
16443 * dwarf2read.c (create_debug_type_hash_table): New function from
16444 create_debug_types_hash_table.
16445 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16446 (create_all_type_units, open_and_init_dwo_file): Update
16447 create_debug_types_hash_table callers.
16448
1b076f25
SDJ
164492017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16450
16451 PR gdb/16188
16452 * fork-child.c (trace_start_error): Fix thinko. va_end should
16453 refer to 'ap', not 'args'.
16454
0db8980c
SDJ
164552017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16456 Pedro Alves <palves@redhat.com>
16457
16458 PR gdb/16188
16459 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16460 calls succeeded.
16461 * fork-child.c (trace_start_error): New function.
16462 (trace_start_error_with_name): Likewise.
16463 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16464 * inf-ptrace.c (inf_ptrace_me): Likewise.
16465 * inferior.h (trace_start_error): New prototype.
16466 (trace_start_error_with_name): Likewise.
16467
99e8a4f9
SDJ
164682017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16469
16470 PR gdb/21164
16471 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16472 NULL before using it.
16473 * symmisc.c (maintenance_print_symbols): Likewise.
16474 (maintenance_print_msymbols): Likewise.
16475
4e746bb6
TW
164762017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16477
16478 * NEWS: Add record Python bindings entry.
16479
164802017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16481
16482 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16483 py-record-full.o.
16484 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16485 * python/py-record-btrace.c, python/py-record-btrace.h,
16486 python/py-record-full.c, python/py-record-full.h: New file.
16487 * python/py-record.c: Add include for py-record-btrace.h and
16488 py-record-full.h.
16489 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16490 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16491 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16492 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16493 New definition.
16494 (gdbpy_initialize_btrace): New export.
16495 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16496
164972017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16498
16499 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16500 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16501 * python/py-record.c: New file.
16502 * python/python-internal.h (gdbpy_start_recording,
16503 gdbpy_current_recording, gdpy_stop_recording,
16504 gdbpy_initialize_record): New export.
16505 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16506 (python_GdbMethods): Add gdbpy_start_recording,
16507 gdbpy_current_recording and gdbpy_stop_recording.
16508
165092017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16510
16511 * record-btrace.c (record_btrace_record_method): New function.
16512 (init_record_btrace_ops): Initialize to_record_method.
16513 * record-full.c (record_full_record_method): New function.
16514 (init_record_full_ops, init_record_full_core_ops): Add
16515 record_full_record_method.
16516 * record.h (enum record_method): New enum.
16517 * target-debug.h (target_debug_print_enum_record_method: New define.
16518 * target-delegates.c: Regenerate.
16519 * target.c (target_record_method): New function.
16520 * target.h: Include record.h.
16521 (struct target_ops) <to_record_method>: New field.
16522 (target_record_method): New export.
16523
165242017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16525
16526 * record.h (record_start, record_stop): New export.
16527 * record.c (record_start, record_stop): New function.
16528
165292017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16530
16531 * btrace.c (btrace_fetch): Copy function call segments pointer
16532 into a vector.
16533 (btrace_clear): Clear the vector.
16534 (btrace_find_insn_by_number): Use binary search to find the correct
16535 function call segment.
16536 * btrace.h (brace_fun_p): New typedef.
16537 (struct btrace_thread_info) <functions>: New field.
16538
165392017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16540
16541 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16542 * btrace.c (btrace_decode_error): ... here. New function.
16543 * btrace.h (btrace_decode_error): New export.
16544
165452017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16546
16547 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16548 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16549 btrace_find_insn_by_number): Remove special case for gaps.
16550 * btrace.h (btrace_insn_get_error): New export.
16551 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16552 * record-btrace.c (btrace_insn_history): Print number for gaps.
16553 (record_btrace_info, record_btrace_goto): Handle gaps.
16554
3f77c769
TT
165552017-02-14 Tom Tromey <tom@tromey.com>
16556
16557 PR python/13598:
16558 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16559 event.
16560 * python/py-evts.c (gdbpy_initialize_py_events): Add
16561 before_prompt registry.
16562 * python/py-events.h (events_object) <before_prompt>: New field.
16563
4c2c7ac6
MM
165642017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16565
16566 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16567
5cf30ebf
LM
165682017-02-13 Luis Machado <lgustavo@codesourcery.com>
16569
16570 * symfile (_initialize_symfile): Add usage text to the load command's
16571 help text.
16572
26a06916
SM
165732017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16574
16575 * utils.c (defaulted_query): Don't query on secondary UIs.
16576
0b145e37
TT
165772017-02-10 Tom Tromey <tom@tromey.com>
16578
16579 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16580
2d8365c4
TT
165812017-02-10 Tom Tromey <tom@tromey.com>
16582
16583 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16584 "cleanup" local.
16585 * python/py-type.c (typy_legacy_template_argument): Remove
16586 unnecessary "cleanup" local.
16587
2bb8f231
TT
165882017-02-10 Tom Tromey <tom@tromey.com>
16589
16590 * python/python.c (do_start_initialization): New function, from
16591 _initialize_python.
16592 (_initialize_python): Call do_start_initialization.
16593 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16594 goto.
16595
1bdfaf42
TT
165962017-02-10 Tom Tromey <tom@tromey.com>
16597
16598 * python/py-prettyprint.c (pretty_print_one_value): Use
16599 gdbpy_ref.
16600
88b6faea
TT
166012017-02-10 Tom Tromey <tom@tromey.com>
16602
16603 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16604 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16605 gdbpy_ref.
16606 * python/py-type.c (field_new): Use gdbpy_ref.
16607 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16608 gdbpy_ref.
16609 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16610 (py_free_pspace): Likewise.
16611 (pspace_to_pspace_object): Likewise.
16612 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16613 (py_free_objfile): Likewise.
16614 (objfile_to_objfile_object): Likewise.
16615 * python/py-inferior.c (delete_thread_object): Use
16616 gdbpy_ref.
16617 (infpy_read_memory): Likewise.
16618 (py_free_inferior): Likewise.
16619 * python/py-evtregistry.c (create_eventregistry_object): Use
16620 gdbpy_ref.
16621 * python/py-event.c (create_event_object): Use gdbpy_ref.
16622
7780f186
TT
166232017-02-10 Tom Tromey <tom@tromey.com>
16624
16625 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16626 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16627 used.
16628 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16629 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16630 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16631 python/py-framefilter.c, python/py-function.c,
16632 python/py-inferior.c, python/py-infevents.c,
16633 python/py-linetable.c, python/py-newobjfileevent.c,
16634 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16635 python/py-signalevent.c, python/py-stopevent.c,
16636 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16637 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16638 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16639 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16640
d4b0bb18
TT
166412017-02-10 Tom Tromey <tom@tromey.com>
16642
16643 * ui-out.h (ui_out_emit_type): New class.
16644 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16645 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16646 and ui_out_emit_tuple.
16647 (enumerate_locals): Likewise.
16648 (py_mi_print_variables, py_print_locals, py_print_args): Use
16649 ui_out_emit_list.
16650 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16651 ui_out_emit_list.
16652 * common/gdb_optional.h: New file.
16653
f67f945c
MG
166542017-02-10 Martin Galvan <martingalvan@sourceware.org>
16655
16656 * MAINTAINERS (Write After Approval): Update my e-mail address.
16657
18da0c51
MG
166582017-02-10 Martin Galvan <martingalvan@sourceware.org>
16659
16660 PR gdb/21122
16661 * breakpoint.c (_initialize_breakpoint): Update the help description
16662 of the 'commands' command to indicate that it takes a list argument.
16663
62c14536
SM
166642017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16665
16666 * interps.c (current_interp_set_logging): Remove "return".
16667
ff6fa247
GB
166682017-02-09 Gary Benson <gbenson@redhat.com>
16669
16670 * symtab.c (add_symtab_completions): Prevent NULL pointer
16671 dereference.
16672
a474bd8e
PA
166732017-02-08 Pedro Alves <palves@redhat.com>
16674
16675 * interps.c (interp::interp): Remove reference to quiet_p.
16676 (interp_set): Make static. Remove dead "Switching to" output
16677 code.
16678 (interp_quiet_p, interp_set_quiet): Delete.
16679 (interpreter_exec_cmd): Don't set the interpreter quiet.
16680 * interps.h (interp_quiet_p): Make static.
16681 (class interp) <quiet_p>: Remove field
16682
3d7b173c
JG
166832017-02-08 Jerome Guitton <guitton@adacore.com>
16684
604c4576
JG
16685 * cli/cli-decode.c (find_command_name_length): Make it extern.
16686 * cli/cli-decode.h (find_command_name_length): Declare.
16687 * cli/cli-script.c (command_name_equals, line_first_arg):
16688 New functions.
16689 (process_next_line): Use cli-decode to parse command names.
16690 (build_command_line): Make args a constant pointer.
16691
166922017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 16693
3d7b173c
JG
16694 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16695 Remove case-insensitive search.
16696
1291063d
JM
166972017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16698
16699 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16700 at the end of the line. Avoids an ARI warning.
16701
20b477a7
LM
167022017-02-06 Luis Machado <lgustavo@codesourcery.com>
16703
16704 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16705 rdseed instructions.
16706 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16707
3f7b46f2
IR
167082017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16709
16710 PR tdep/20936
16711 Provide and use sparc32 and sparc64 target description XML files.
16712 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16713 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16714 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16715 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16716 * features/sparc/sparc32-solaris.xml: New file.
16717 * features/sparc/sparc64-solaris.xml: New file.
16718 * features/sparc/sparc32-solaris.c: Generated.
16719 * features/sparc/sparc64-solaris.c: Generated.
16720 * sparc-tdep.h: Account for differences in target descriptions.
16721 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16722 (sparc32_register_type): Use target provided registers.
16723 (validate_tdesc_registers): New function.
16724 (sparc32_gdbarch_init): Use tdesc_has_registers.
16725 Set pseudoregister functions.
16726 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16727 (sparc64_register_type): Use target provided registers.
16728 (sparc64_init_abi): Set pseudoregister functions.
16729
f0fd41c1
TT
167302017-02-03 Tom Tromey <tom@tromey.com>
16731
16732 PR rust/21097:
16733 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16734 with a single member.
16735
d6f9b0fb
PA
167362017-02-03 Pedro Alves <palves@redhat.com>
16737
16738 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16739 (cli_interp_base::~cli_interp_base): New.
16740 (cli_interp): New struct.
16741 (as_cli_interp): Cast the interp itself to cli_interp.
16742 (cli_interpreter_pre_command_loop): Rename to ...
16743 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16744 parameter.
16745 (cli_interpreter_init): Rename to ...
16746 (cli_interp::init): ... this. Remove 'self' parameter. Use
16747 boolean. Make extern.
16748 (cli_interpreter_resume): Rename to ...
16749 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16750 extern.
16751 (cli_interpreter_suspend): Rename to ...
16752 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16753 extern.
16754 (cli_interpreter_exec): Rename to ...
16755 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16756 extern.
16757 (cli_interpreter_supports_command_editing): Rename to ...
16758 (cli_interp_base::supports_command_editing): ... this. Remove
16759 'interp' parameter. Make extern.
16760 (cli_ui_out): Rename to ...
16761 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16762 Make extern.
16763 (cli_set_logging): Rename to ...
16764 (cli_interp_base::set_logging): ... this. Remove 'interp'
16765 parameter. Make extern.
16766 (cli_interp_procs): Delete.
16767 (cli_interp_factory): Adjust to use "new".
16768 * cli/cli-interp.h: Include "interps.h".
16769 (struct cli_interp_base): New struct.
16770 * interps.c (struct interp): Delete. Fields moved to interps.h.
16771 (interp_new): Delete.
16772 (interp::interp, interp::~interp): New.
16773 (interp_set): Use bool, and return void. Assume the interpreter
16774 has suspend, init and resume methods, and that the all return
16775 void.
16776 (set_top_level_interpreter): interp_set returns void.
16777 (interp_ui_out): Adapt.
16778 (current_interp_set_logging): Adapt.
16779 (interp_data): Delete.
16780 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16781 (interp_exec): Adapt.
16782 (top_level_interpreter_data): Delete.
16783 * interps.h (interp_init_ftype, interp_resume_ftype)
16784 (interp_suspend_ftype, interp_exec_ftype)
16785 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16786 (class interp): New.
16787 (interp_new): Delete.
16788 (interp_set): Now returns void. Use bool.
16789 (interp_data, top_level_interpreter_data): Delete.
16790 * mi/mi-common.h: Include interps.h.
16791 (class mi_interp): Inherit from interp. Define a ctor. Declare
16792 init, resume, suspect, exec, interp_ui_out, set_logging and
16793 pre_command_loop methods.
16794 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16795 (mi_interpreter_init): Rename to ...
16796 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16797 bool, return void and make extern. Adjust.
16798 (mi_interpreter_resume): ... Rename to ...
16799 (mi_interp::resume): ... this. Remove the 'data' parameter,
16800 return void and make extern. Adjust.
16801 (mi_interpreter_suspend): ... Rename to ...
16802 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16803 return void and make extern. Adjust.
16804 (mi_interpreter_exec): ... Rename to ...
16805 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16806 extern. Adjust.
16807 (mi_interpreter_pre_command_loop): ... Rename to ...
16808 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16809 parameter and make extern.
16810 (mi_on_normal_stop_1): Adjust.
16811 (mi_ui_out): Rename to ...
16812 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16813 parameter and make extern. Adjust.
16814 (mi_set_logging): Rename to ...
16815 (mi_interp::set_logging): ... this. Remove the 'interp'
16816 parameter and make extern. Adjust.
16817 (mi_interp_procs): Delete.
16818 (mi_interp_factory): Adjust to use 'new'.
16819 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16820 (mi_print_exception, mi_execute_command, mi_load_progress):
16821 Adjust.
16822 * tui/tui-interp.c (tui_interp): New class.
16823 (as_tui_interp): Return a tui_interp pointer.
16824 (tui_on_normal_stop, tui_on_signal_received)
16825 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16826 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16827 to use interp::interp_ui_out.
16828 (tui_init): Rename to ...
16829 (tui_interp::init): ... this. Remove the 'self' parameter, use
16830 bool, return void and make extern. Adjust.
16831 (tui_resume): Rename to ...
16832 (tui_interp::resume): ... this. Remove the 'data' parameter,
16833 return void and make extern. Adjust.
16834 (tui_suspend): Rename to ...
16835 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16836 return void and make extern. Adjust.
16837 (tui_ui_out): Rename to ...
16838 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16839 parameter, and make extern. Adjust.
16840 (tui_exec): Rename to ...
16841 (tui_interp::exec): ... this. Remove the 'data' parameter and
16842 make extern.
16843 (tui_interp_procs): Delete.
16844 (tui_interp_factory): Use "new".
16845
65c40c95
TT
168462017-02-02 Tom Tromey <tom@tromey.com>
16847
16848 * rust-exp.y (ends_raw_string, space_then_number)
16849 (rust_identifier_start_p): Return bool.
16850 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16851 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16852 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16853 (rust_chartype_p): Return bool.
16854 (val_print_struct, rust_print_struct_def, rust_print_type):
16855 Update.
16856 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16857 Return bool.
16858
b50f188d
TT
168592017-02-02 Tom Tromey <tom@tromey.com>
16860
16861 * rust-lang.c: Reindent.
16862
03c85b11
TT
168632017-02-02 Tom Tromey <tom@tromey.com>
16864
16865 * rust-lang.h (rust_crate_for_block): Update.
16866 * rust-lang.c (rust_crate_for_block): Return std::string.
16867 (rust_get_disr_info): Use std:;string, not
16868 gdb::unique_xmalloc_ptr.
16869 * rust-exp.y (crate_name): Update.
16870
9b6da501
PA
168712017-02-02 Pedro Alves <palves@redhat.com>
16872
16873 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16874 field out of gdb_disassembler_test and make it static.
16875
ec4cb20b
PA
168762017-02-02 Pedro Alves <palves@redhat.com>
16877
16878 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16879 mi1_interp and mi_interp fields.
16880
5be5dbf0
PA
168812017-02-02 Pedro Alves <palves@redhat.com>
16882
616268b6
PA
16883 * cli/cli-interp.c (struct saved_output_files, saved_output):
16884 Moved from cli/cli-logging.c.
16885 (cli_set_logging): New function.
16886 (cli_interp_procs): Install cli_set_logging.
16887 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16888 Declare.
16889 * cli/cli-logging.c (struct saved_output_files, saved_output):
16890 Moved to cli/cli-interp.c.
16891 (pop_output_files): Don't save outputs here.
16892 (make_logging_output): New function.
16893 (handle_redirections): Don't build tee nor save previous outputs
16894 here.
16895 * interps.c (current_interp_set_logging): Change prototype.
16896 Assume there's always a set_logging_proc method installed.
16897 * interps.h (interp_set_logging_ftype): Change prototype.
16898 (current_interp_set_logging): Change prototype and adjust comment.
16899 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16900 use make_logging_output.
16901 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
169022017-02-02 Pedro Alves <palves@redhat.com>
16903
5be5dbf0
PA
16904 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16905 from ...
16906 (set_logging_overwrite): ... here.
16907 (logging_no_redirect_file): Delete.
16908 (set_logging_redirect): Don't handle redirection on the fly.
16909 Instead warn that "logging off" / "logging on" is necessary.
16910 (pop_output_files): Delete references to logging_no_redirect_file.
16911 (show_logging_command): Always speak in terms of what will happen
16912 once logging is reenabled.
16913
c99cc448
PA
169142017-02-02 Pedro Alves <palves@redhat.com>
16915
16916 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16917
8b172ce7
PA
169182017-02-02 Pedro Alves <palves@redhat.com>
16919
16920 * disasm.c (gdb_pretty_print_insn): Rename to ...
16921 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16922 Remove gdbarch parameter. Adapt to clear the object's buffers
16923 instead of allocating new buffers, and to print using the object's
16924 gdb_disassembler instead of calling gdb_print_insn.
16925 (dump_insns): Use gdb_pretty_print_disassembler.
16926 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16927 (gdb_pretty_print_disassembler): New class.
16928 * record-btrace.c (btrace_insn_history): Use
16929 gdb_pretty_print_disassembler.
16930
d7e74731
PA
169312017-02-02 Pedro Alves <palves@redhat.com>
16932
16933 * ada-lang.c (type_as_string): Use string_file.
16934 * ada-valprint.c (ada_print_floating): Use string_file.
16935 * ada-varobj.c (ada_varobj_scalar_image)
16936 (ada_varobj_get_value_image): Use string_file.
16937 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16938 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16939 * breakpoint.c (update_inserted_breakpoint_locations)
16940 (insert_breakpoint_locations, reattach_breakpoints)
16941 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16942 (print_it_watchpoint): Use string_file.
16943 (save_breakpoints): Use stdio_file.
16944 * c-exp.y (oper): Use string_file.
16945 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16946 tee_file.
16947 (pop_output_files): Use delete.
16948 (handle_redirections): Use stdio_file and tee_file.
16949 * cli/cli-setshow.c (do_show_command): Use string_file.
16950 * compile/compile-c-support.c (c_compute_program): Use
16951 string_file.
16952 * compile/compile-c-symbols.c (generate_vla_size): Take a
16953 'string_file &' instead of a 'ui_file *'.
16954 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16955 of a 'ui_file *'. Use string_file.
16956 (generate_c_for_variable_locations): Take a 'string_file &'
16957 instead of a 'ui_file *'.
16958 * compile/compile-internal.h (generate_c_for_for_one_variable):
16959 Take a 'string_file &' instead of a 'ui_file *'.
16960 * compile/compile-loc2c.c (push, pushf, unary, binary)
16961 (print_label, pushf_register_address, pushf_register)
16962 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16963 'ui_file *'. Adjust.
16964 * compile/compile.c (compile_to_object): Use string_file.
16965 * compile/compile.h (compile_dwarf_expr_to_c)
16966 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16967 'ui_file *'.
16968 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16969 (replace_typedefs_qualified_name): Use string_file and
16970 obstack_copy0.
16971 * disasm.c (gdb_pretty_print_insn): Use string_file.
16972 (gdb_disassembly): Adjust reference the null_stream global.
16973 (do_ui_file_delete): Delete.
16974 (gdb_insn_length): Use null_stream.
16975 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16976 * dwarf2loc.c (dwarf2_compile_property_to_c)
16977 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16978 'string_file &' instead of a 'ui_file *'.
16979 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16980 * dwarf2read.c (do_ui_file_peek_last): Delete.
16981 (dwarf2_compute_name): Use string_file.
16982 * event-top.c (gdb_setup_readline): Use stdio_file.
16983 * gdbarch.sh (verify_gdbarch): Use string_file.
16984 * gdbtypes.c (safe_parse_type): Use null_stream.
16985 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16986 string_file.
16987 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16988 'string_file *' instead of a 'ui_file *'.
16989 (gdbscm_arch_disassemble): Use string_file.
16990 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16991 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16992 inherits from ui_file.
16993 (ioscm_file_port_delete, ioscm_file_port_rewind)
16994 (ioscm_file_port_put): Delete.
16995 (ioscm_file_port_write): Rename to ...
16996 (ioscm_file_port::write): ... this. Remove file_port_magic
16997 checks.
16998 (ioscm_file_port_new): Delete.
16999 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
17000 ui_file_up.
17001 * guile/scm-type.c (tyscm_type_name): Use string_file.
17002 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
17003 Use string_file.
17004 * infcmd.c (print_return_value_1): Use string_file.
17005 * infrun.c (print_target_wait_results): Use string_file.
17006 * language.c (add_language): Use string_file.
17007 * location.c (explicit_to_string_internal): Use string_file.
17008 * main.c (captured_main_1): Use null_file.
17009 * maint.c (maintenance_print_architecture): Use stdio_file.
17010 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
17011 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
17012 event_channel>: Change type to mi_console_file pointer.
17013 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
17014 (mi_console_file_delete): Delete.
17015 (struct mi_console_file): Delete.
17016 (mi_console_file_magic): Delete.
17017 (mi_console_file_new): Delete.
17018 (mi_console_file::mi_console_file): New.
17019 (mi_console_file_delete): Delete.
17020 (mi_console_file_fputs): Delete.
17021 (mi_console_file::write): New.
17022 (mi_console_raw_packet): Delete.
17023 (mi_console_file::flush): New.
17024 (mi_console_file_flush): Delete.
17025 (mi_console_set_raw): Rename to ...
17026 (mi_console_file::set_raw): ... this.
17027 * mi/mi-console.h (class mi_console_file): New class.
17028 (mi_console_file_new, mi_console_set_raw): Delete.
17029 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
17030 (mi_set_logging): Use delete and tee_file. Adjust.
17031 * mi/mi-main.c (output_register): Use string_file.
17032 (mi_cmd_data_evaluate_expression): Use string_file.
17033 (mi_cmd_data_read_memory): Use string_file.
17034 (mi_cmd_execute, print_variable_or_computed): Use string_file.
17035 * mi/mi-out.c (mi_ui_out::main_stream): New.
17036 (mi_ui_out::rewind): Use main_stream and
17037 string_file.
17038 (mi_ui_out::put): Use main_stream and string_file.
17039 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17040 Allocate a 'string_file' instead.
17041 (mi_out_new): Don't allocate a mem_fileopen stream here.
17042 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
17043 (mi_ui_out::main_stream): Declare method.
17044 * printcmd.c (eval_command): Use string_file.
17045 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
17046 * python/py-arch.c (archpy_disassemble): Use string_file.
17047 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
17048 * python/py-frame.c (frapy_str): Use string_file.
17049 * python/py-framefilter.c (py_print_type, py_print_single_arg):
17050 Use string_file.
17051 * python/py-type.c (typy_str): Use string_file.
17052 * python/py-unwind.c (unwind_infopy_str): Use string_file.
17053 * python/py-value.c (valpy_str): Use string_file.
17054 * record-btrace.c (btrace_insn_history): Use string_file.
17055 * regcache.c (regcache_print): Use stdio_file.
17056 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
17057 * remote.c (escape_buffer): Use string_file.
17058 * rust-lang.c (rust_get_disr_info): Use string_file.
17059 * serial.c (serial_open_ops_1): Use stdio_file.
17060 (do_serial_close): Use delete.
17061 * stack.c (print_frame_arg): Use string_file.
17062 (print_frame_args): Remove local mem_fileopen stream, not used.
17063 (print_frame): Use string_file.
17064 * symmisc.c (maintenance_print_symbols): Use stdio_file.
17065 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
17066 Take a 'string_file *' instead of a 'ui_file *'.
17067 * top.c (new_ui): Use stdio_file and stderr_file.
17068 (free_ui): Use delete.
17069 (execute_command_to_string): Use string_file.
17070 (quit_confirm): Use string_file.
17071 * tracepoint.c (collection_list::append_exp): Use string_file.
17072 * tui/tui-disasm.c (tui_disassemble): Use string_file.
17073 * tui/tui-file.c: Don't include "ui-file.h".
17074 (enum streamtype, struct tui_stream): Delete.
17075 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
17076 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
17077 (tui_file::tui_file): New method.
17078 (tui_file_fputs): Delete.
17079 (tui_file_get_strbuf): Delete.
17080 (tui_file::puts): New method.
17081 (tui_file_adjust_strbuf): Delete.
17082 (tui_file_flush): Delete.
17083 (tui_file::flush): New method.
17084 * tui/tui-file.h: Tweak intro comment.
17085 Include ui-file.h.
17086 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
17087 (tui_file_adjust_strbuf): Delete declarations.
17088 (class tui_file): New class.
17089 * tui/tui-io.c (tui_initialize_io): Use tui_file.
17090 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
17091 (tui_register_format): Use string_stream.
17092 * tui/tui-stack.c (tui_make_status_line): Use string_file.
17093 (tui_get_function_from_frame): Use string_file.
17094 * typeprint.c (type_to_string): Use string_file.
17095 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
17096 (null_stream): New global.
17097 (ui_file_delete): Delete.
17098 (ui_file::ui_file): New.
17099 (null_file_isatty): Delete.
17100 (ui_file::~ui_file): New.
17101 (null_file_rewind): Delete.
17102 (ui_file::printf): New.
17103 (null_file_put): Delete.
17104 (null_file_flush): Delete.
17105 (ui_file::putstr): New.
17106 (null_file_write): Delete.
17107 (ui_file::putstrn): New.
17108 (null_file_read): Delete.
17109 (ui_file::putc): New.
17110 (null_file_fputs): Delete.
17111 (null_file_write_async_safe): Delete.
17112 (ui_file::vprintf): New.
17113 (null_file_delete): Delete.
17114 (null_file::write): New.
17115 (null_file_fseek): Delete.
17116 (null_file::puts): New.
17117 (ui_file_data): Delete.
17118 (null_file::write_async_safe): New.
17119 (gdb_flush, ui_file_isatty): Adjust.
17120 (ui_file_put, ui_file_rewind): Delete.
17121 (ui_file_write): Adjust.
17122 (ui_file_write_for_put): Delete.
17123 (ui_file_write_async_safe, ui_file_read): Adjust.
17124 (ui_file_fseek): Delete.
17125 (fputs_unfiltered): Adjust.
17126 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17127 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17128 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17129 (set_ui_file_data): Delete.
17130 (string_file::~string_file, string_file::write)
17131 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17132 (do_ui_file_as_string, ui_file_as_string): Delete.
17133 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17134 (struct mem_file): Delete.
17135 (mem_file_new): Delete.
17136 (stdio_file::stdio_file): New.
17137 (mem_file_delete): Delete.
17138 (stdio_file::stdio_file): New.
17139 (mem_fileopen): Delete.
17140 (stdio_file::~stdio_file): New.
17141 (mem_file_rewind): Delete.
17142 (stdio_file::set_stream): New.
17143 (mem_file_put): Delete.
17144 (stdio_file::open): New.
17145 (mem_file_write): Delete.
17146 (stdio_file_magic, struct stdio_file): Delete.
17147 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17148 (stdio_file::flush): New.
17149 (stdio_file_read): Rename to ...
17150 (stdio_file::read): ... this. Adjust.
17151 (stdio_file_write): Rename to ...
17152 (stdio_file::write): ... this. Adjust.
17153 (stdio_file_write_async_safe): Rename to ...
17154 (stdio_file::write_async_safe) ... this. Adjust.
17155 (stdio_file_fputs): Rename to ...
17156 (stdio_file::puts) ... this. Adjust.
17157 (stdio_file_isatty): Delete.
17158 (stdio_file_fseek): Delete.
17159 (stdio_file::isatty): New.
17160 (stderr_file_write): Rename to ...
17161 (stderr_file::write) ... this. Adjust.
17162 (stderr_file_fputs): Rename to ...
17163 (stderr_file::puts) ... this. Adjust.
17164 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17165 (stderr_file::stderr_file): New.
17166 (tee_file_magic): Delete.
17167 (struct tee_file): Delete.
17168 (tee_file::tee_file): New.
17169 (tee_file_new): Delete.
17170 (tee_file::~tee_file): New.
17171 (tee_file_delete): Delete.
17172 (tee_file_flush): Rename to ...
17173 (tee_file::flush): ... this. Adjust.
17174 (tee_file_write): Rename to ...
17175 (tee_file::write): ... this. Adjust.
17176 (tee_file::write_async_safe): New.
17177 (tee_file_fputs): Rename to ...
17178 (tee_file::puts): ... this. Adjust.
17179 (tee_file_isatty): Rename to ...
17180 (tee_file::isatty): ... this. Adjust.
17181 * ui-file.h (struct obstack, struct ui_file): Don't
17182 forward-declare.
17183 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17184 (ui_file_write_ftype)
17185 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17186 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17187 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17188 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17189 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17190 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17191 (set_ui_file_fseek): Delete.
17192 (ui_file_data, ui_file_delete, ui_file_rewind)
17193 (struct ui_file): New.
17194 (ui_file_up): New.
17195 (class null_file): New.
17196 (null_stream): Declare.
17197 (ui_file_write_for_put, ui_file_put): Delete.
17198 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17199 Delete.
17200 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17201 (gdb_fopen, tee_file_new): Delete.
17202 (struct string_file): New.
17203 (struct stdio_file): New.
17204 (stdio_file_up): New.
17205 (struct stderr_file): New.
17206 (class tee_file): New.
17207 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17208 of a 'ui_file *'. Adjust.
17209 * ui-out.h (class ui_out) <field_stream>: Likewise.
17210 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17211 (null_stream): Delete.
17212 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17213 Adjust.
17214 * utils.h (struct ui_file): Delete forward declaration..
17215 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17216 (error_stream): Take a 'string_file &' instead of a
17217 'ui_file *'.
17218 * varobj.c (varobj_value_get_print_value): Use string_file.
17219 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17220 * gdbarch.c: Regenerate.
17221
187808b0
PA
172222017-02-02 Pedro Alves <palves@redhat.com>
17223
17224 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17225 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17226 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17227 Adjust to call gdb_print_insn instead of
17228 gdb_disassembler::print_insn.
17229 (dump_insns, do_mixed_source_and_assembly_deprecated)
17230 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17231 'gdbarch' parameter. Remove gdb_disassembler parameter.
17232 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17233 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17234 declaration.
17235 (gdb_pretty_print_insn): Re-add declaration.
17236 * record-btrace.c (btrace_insn_history): Don't allocate a
17237 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17238
7a8eb317
SM
172392017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17240
17241 * disasm.h (gdb_disassembly): Remove file_string parameter.
17242 * disasm.c (gdb_disassembly): Likewise.
17243 * cli/cli-cmds.c (print_disassembly): Adapt.
17244 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17245 * stack.c (do_gdb_disassembly): Likewise.
17246
7346ef59
AA
172472017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17248
17249 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17250 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17251 targets. And if the implicit value is longer than needed, extract
17252 the first bytes instead of the "least significant" ones.
17253
cd4007e4
MM
172542017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17255
17256 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17257 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17258 (btrace_fetch): Assert can_access_registers_ptid.
17259 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17260 validate_registers_access.
17261
cf77c34e
MM
172622017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17263
17264 * gdbthread.h (can_access_registers_ptid): New.
17265 * thread.c (can_access_registers_ptid): New.
17266
be85ce7d
PA
172672017-02-01 Pedro Alves <palves@redhat.com>
17268
17269 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17270
29b0b251
PA
172712017-01-31 Pedro Alves <palves@redhat.com>
17272
17273 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17274 Fix typos.
17275
289b5b24
PA
172762017-01-31 Pedro Alves <palves@redhat.com>
17277
17278 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17279 not used.
17280
b47413b4
PA
172812017-01-31 Pedro Alves <palves@redhat.com>
17282
17283 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17284
60adb36c
PA
172852017-01-31 Pedro Alves <palves@redhat.com>
17286
17287 * common/scoped_restore.h
17288 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17289 change the value's parameter type to T2.
17290 (make_scoped_restore): Likewise.
17291
2735833d
WT
172922017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17293 Richard Henderson <rth@redhat.com>
17294
17295 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17296 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17297 GS_BASE for older kernels.
17298 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17299 GS_BASE for older kernels.
17300 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17301 and GS_BASE to the offset table.
17302 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17303 system register group.
17304 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17305 for older kernels.
17306 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17307 amd64 ABI.
17308 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17309 AMD64_GSBASE_REGNUM.
17310 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17311 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17312 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17313 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17314 i386/64bit-segments.xml in those rules.
17315 * features/i386/64bit-segments.xml: New file.
17316 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17317 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17318 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17319 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17320 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17321 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17322 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17323 * features/i386/amd64-avx-linux.c: Regenerated.
17324 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17325 * features/i386/amd64-avx-mpx.c: Regenerated.
17326 * features/i386/amd64-avx512-linux.c: Regenerated.
17327 * features/i386/amd64-linux.c: Regenerated.
17328 * features/i386/amd64-mpx-linux.c: Regenerated.
17329 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17330 * features/i386/i386-avx-mpx.c: Regenerated.
17331 * features/i386/x32-avx-linux.c: Regenerated.
17332 * features/i386/x32-avx512-linux.c: Regenerated.
17333 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17334 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17335 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17336 * regformats/i386/amd64-linux.dat: Regenerated.
17337 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17338 * regformats/i386/x32-avx-linux.dat: Regenerated.
17339 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17340 * regformats/i386/x32-linux.dat: Regenerated.
17341
8884e97e
WT
173422017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17343
17344 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17345 Set to AMD64_NUM_REGS.
17346
7005d26a
WT
173472017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17348
17349 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17350 that checks validity of a register number.
17351
4bd2e1b2
KC
173522017-01-27 Kees Cook <keescook@google.com>
17353
17354 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17355 fetch_fpregs if target has fpa registers.
17356 (arm_linux_store_inferior_registers): Call store_fpregs if target
17357 has fpa registers.
17358
7cf1de6c
AA
173592017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17360
17361 * cris-tdep.c (cris_gdbarch_init): Remove check for
17362 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17363
874a1c8c
AT
173642017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17365
17366 * corelow.c (get_core_register_section): Check for regset
17367 existence before checking for REGSET_VARIABLE_SIZE.
17368
d8b49cf0
YQ
173692017-01-26 Yao Qi <yao.qi@linaro.org>
17370 Pedro Alves <palves@redhat.com>
17371
17372 PR gdb/20939
17373 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17374 call memory_error, save memaddr instead.
17375 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17376 negative, cal memory_error.
17377 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17378
658ca58c
YQ
173792017-01-26 Yao Qi <yao.qi@linaro.org>
17380
17381 * disasm-selftests.c (memory_error_test): New function.
17382 (_initialize_disasm_selftests): Register memory_error_test.
17383
79843d45
YQ
173842017-01-26 Yao Qi <yao.qi@linaro.org>
17385
17386 * Makefile.in (SFILES): Add disasm-selftests.c and
17387 selftest-arch.c.
17388 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17389 * disasm-selftests.c: New file.
17390 * selftest-arch.c: New file.
17391 * selftest-arch.h: New file.
17392
8cafda32
YQ
173932017-01-26 Yao Qi <yao.qi@linaro.org>
17394
17395 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17396 to bfd_arch_mep. Don't return 0 if section is not
17397 found. Call print_insn_mep.
17398
e47ad6c0
YQ
173992017-01-26 Pedro Alves <palves@redhat.com>
17400 Yao Qi <yao.qi@linaro.org>
17401
17402 * arm-tdep.c: Include "disasm.h".
17403 (gdb_print_insn_arm): Update code to get gdbarch.
17404 * disasm.c (dis_asm_read_memory): Change it to
17405 gdb_disassembler::dis_asm_read_memory.
17406 (dis_asm_memory_error): Likewise.
17407 (dis_asm_print_address): Likewise.
17408 (gdb_pretty_print_insn): Change it to
17409 gdb_disassembler::pretty_print_insn.
17410 (dump_insns): Add one argument gdb_disassemlber. All
17411 callers updated.
17412 (do_mixed_source_and_assembly_deprecated): Likewise.
17413 (do_mixed_source_and_assembly): Likewise.
17414 (do_assembly_only): Likewise.
17415 (gdb_disassembler::gdb_disassembler): New.
17416 (gdb_disassembler::print_insn): New.
17417 * disasm.h (class gdb_disassembler): New.
17418 (gdb_pretty_print_insn): Remove declaration.
17419 (gdb_disassemble_info): Likewise.
17420 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17421 (gdbscm_disasm_read_memory_worker): Update.
17422 (gdbscm_disasm_read_memory): Update.
17423 (gdbscm_disasm_memory_error): Remove.
17424 (gdbscm_disasm_print_address): Remove.
17425 (gdbscm_disassembler::gdbscm_disassembler): New.
17426 (gdbscm_print_insn_from_port): Update.
17427 * mips-tdep.c: Include disasm.h.
17428 (gdb_print_insn_mips): Update code to get gdbarch.
17429 * record-btrace.c (btrace_insn_history): Update.
17430 * spu-tdep.c: Include disasm.h.
17431 (struct spu_dis_asm_data): Remove.
17432 (struct spu_dis_asm_info): New.
17433 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17434 SPU id.
17435 (gdb_print_insn_spu): Cast disassemble_info to
17436 spu_dis_asm_info.
17437
80d75874
YQ
174382017-01-26 Yao Qi <yao.qi@linaro.org>
17439
17440 * disasm.c (do_ui_file_delete): Delete.
17441 (gdb_insn_length): Move code creating stream to ...
17442 * utils.c (null_stream): ... here. New function.
17443 * utils.h (null_stream): Declare.
17444
60685cd0
SM
174452017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17446
17447 * python/py-inferior.c (find_thread_object): Return directly
17448 from the loop. Remove "found" variable.
17449
eb1cdb62
JB
174502017-01-21 Joel Brobecker <brobecker@adacore.com>
17451
17452 GDB 7.12.1 released.
17453
b1ce6568
SM
174542017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17455
17456 * python/py-function.c (fnpy_call): Reorder declarations to have
17457 the gdbpy_enter object declared first.
17458 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17459
6f8b0407
SM
174602017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17461
fec93fb1 17462 PR python/21068
6f8b0407
SM
17463 * python/python-internal.h (PyMem_RawMalloc): Define for
17464 Python < 3.4.
17465 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17466 PyMem_RawMalloc instead of PyMem_Malloc.
17467
78cbbba8
LM
174682017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17469 Luis Machado <lgustavo@codesourcery.com>
17470
17471 * NEWS (New commands): Mention flash-erase.
17472 (New MI commands): Mention target-flash-erase.
17473 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17474 command.
17475 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17476 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17477 * target.c (flash_erase_command): New function.
17478 (initialize_targets): Add new flash-erase command.
17479 * target.h (flash_erase_command): New declaration.
17480
2132fe85
JB
174812017-01-20 Joel Brobecker <brobecker@adacore.com>
17482
17483 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17484 HAVE_SYS_PROCFS_H is defined.
17485
d1dff226
AH
174862017-01-18 Alan Hayward <alan.hayward@arm.com>
17487
17488 * remote.c (struct cached_reg): Change data into a pointer.
17489 * (stop_reply_dtr): Free data pointers before deleting vector.
17490 (process_stop_reply): Likewise.
17491 (remote_parse_stop_reply): Allocate space for data
17492
9890e433
AH
174932017-01-18 Alan Hayward <alan.hayward@arm.com>
17494
17495 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17496 MAX_REGISTER_SIZE.
17497 (amd64_pseudo_register_read_value): Likewise.
17498 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17499 (store_register_using_P): Likewise.
17500 * regcache.c (regcache_xfer_part): Likewise.
17501
7a36499a
IR
175022017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17503
17504 Split real and pseudo registers.
17505 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17506 (sparc32_pseudo_regnum): New enum.
17507 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17508 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17509 (SPARC32_CP0_REGISTERS): New macro.
17510 (sparc32_pseudo_register_name): New function.
17511 (sparc32_register_name): Use sparc32_pseudo_register_name.
17512 (sparc32_pseudo_register_type): New function.
17513 (sparc32_register_type): Use sparc32_pseudo_register_type.
17514 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17515 pseudo register numbers.
17516 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17517 (SPARC64_CP0_REGISTERS): New macro.
17518 (sparc64_pseudo_register_name): New function.
17519 (sparc64_register_name): Use sparc64_pseudo_register_name.
17520 (sparc64_pseudo_register_type): New function.
17521 (sparc64_register_type): Use sparc64_pseudo_register_type.
17522 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17523 pseudo register numbers.
17524 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17525 sparc64_store_arguments): Handle pseudo register numbers.
17526
6f8976bf
YQ
175272017-01-13 Yao Qi <yao.qi@linaro.org>
17528
17529 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17530 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17531 output.
17532 (getpkt_or_notif_sane_1): Likewise.
17533
e4241ace
YQ
175342017-01-13 Yao Qi <yao.qi@linaro.org>
17535
17536 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17537 of CC. Pass "-x c++-header" instead of "-x c".
17538
3015c064
SM
175392017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17540
17541 * remote.c (remote_can_async_p): Update comment.
17542
fde1b17d
SM
175432017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17544
17545 * linux-nat.c (linux_nat_can_async_p): Update comment.
17546
ca1ca08b
SM
175472017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17548
17549 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17550
4ad2da73
SM
175512017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17552
17553 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17554
c8b23b3f
TT
175552017-01-10 Tom Tromey <tom@tromey.com>
17556
17557 * python/py-type.c (typy_legacy_template_argument): Update.
17558 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17559 ~demangle_parse_info): Declare new members.
17560 (cp_demangled_name_to_comp): Return unique_ptr.
17561 (cp_demangled_name_parse_free)
17562 (make_cleanup_cp_demangled_name_parse_free)
17563 (cp_new_demangle_parse_info): Remove.
17564 * cp-support.c (do_demangled_name_parse_free_cleanup)
17565 (make_cleanup_cp_demangled_name_parse_free): Remove.
17566 (inspect_type, cp_canonicalize_string_full)
17567 (cp_canonicalize_string): Update.
17568 (mangled_name_to_comp): Change return type.
17569 (cp_class_name_from_physname, method_name_from_physname)
17570 (cp_func_name, cp_remove_params): Update.
17571 * cp-name-parser.y (demangle_parse_info): New constructor, from
17572 cp_new_demangle_parse_info.
17573 (~demangle_parse_info): New destructor, from
17574 cp_demangled_name_parse_free.
17575 (cp_merge_demangle_parse_infos): Update.
17576 (cp_demangled_name_to_comp): Change return type.
17577
1ac32117
TT
175782017-01-10 Tom Tromey <tom@tromey.com>
17579
17580 * top.c (prevent_dont_repeat): Change return type.
17581 * python/python.c (execute_gdb_command): Use std::string.
17582 Update.
17583 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17584 * command.h (prevent_dont_repeat): Change return type.
17585 * breakpoint.c (bpstat_do_actions_1): Update.
17586
0cf08227
TT
175872017-01-10 Tom Tromey <tom@tromey.com>
17588
17589 * value.h (scoped_value_mark::~scoped_value_mark): Call
17590 free_to_mark.
17591 (scoped_value_mark::free_to_mark): New method.
17592 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17593 scoped_value_mark.
17594
eb115069
TT
175952017-01-10 Tom Tromey <tom@tromey.com>
17596
17597 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17598 (valpy_reference_value, valpy_const_value, valpy_get_address)
17599 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17600 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17601 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17602 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17603 scoped_value_mark.
17604 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17605 * value.h (scoped_value_mark): New class.
17606
906768f9
TT
176072017-01-10 Tom Tromey <tom@tromey.com>
17608
17609 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17610 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17611 * psymtab.c (discard_psymtabs_upto): Remove.
17612 (make_cleanup_discard_psymtabs): Remove.
17613 (struct psymtab_state): Remove.
17614
bef155c3
TT
176152017-01-10 Tom Tromey <tom@tromey.com>
17616
17617 * record-full.c (record_full_save_cleanups): Remove.
17618 (record_full_save): Use gdb::unlinker.
17619 * gcore.c (do_bfd_delete_cleanup): Remove.
17620 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17621 cleanups.
17622 * dwarf2read.c (unlink_if_set): Remove.
17623 (write_psymtabs_to_index): Use gdb::unlinker.
17624 * common/gdb_unlinker.h: New file.
17625
192b62ce
TT
176262017-01-10 Tom Tromey <tom@tromey.com>
17627
17628 * windows-tdep.c (windows_xfer_shared_library): Update.
17629 * windows-nat.c (windows_make_so): Update.
17630 * utils.h (make_cleanup_bfd_unref): Remove.
17631 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17632 * symfile.h (symfile_bfd_open)
17633 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17634 * symfile.c (read_symbols, symbol_file_add)
17635 (separate_debug_file_exists): Update.
17636 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17637 (generic_load, reread_symbols): Update.
17638 * symfile-mem.c (symbol_file_add_from_memory): Update.
17639 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17640 (spu_symbol_file_add_from_memory): Update.
17641 * solist.h (struct target_so_ops) <bfd_open>: Return
17642 gdb_bfd_ref_ptr.
17643 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17644 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17645 gdb_bfd_ref_ptr.
17646 (solib_map_sections, reload_shared_libraries_1): Update.
17647 * solib-svr4.c (enable_break): Update.
17648 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17649 * solib-frv.c (enable_break2): Update.
17650 * solib-dsbt.c (enable_break): Update.
17651 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17652 gdb_bfd_ref_ptr.
17653 (darwin_solib_get_all_image_info_addr_at_init): Update.
17654 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17655 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17656 * record-full.c (record_full_save): Update.
17657 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17658 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17659 * minidebug.c (find_separate_debug_file_in_section): Return
17660 gdb_bfd_ref_ptr.
17661 * machoread.c (macho_add_oso_symfile): Change abfd to
17662 gdb_bfd_ref_ptr.
17663 (macho_symfile_read_all_oso): Update.
17664 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17665 (macho_symfile_read): Update.
17666 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17667 (jit_bfd_try_read_symtab): Update.
17668 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17669 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17670 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17671 gdb_bfd_ref_ptr.
17672 (gdb_bfd_ref_policy): New struct.
17673 (gdb_bfd_ref_ptr): New typedef.
17674 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17675 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17676 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17677 gdb_bfd_ref_ptr.
17678 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17679 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17680 (gcore_command): Update.
17681 * exec.c (exec_file_attach): Update.
17682 * elfread.c (elf_symfile_read): Update.
17683 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17684 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17685 (open_and_init_dwo_file): Update.
17686 (open_dwp_file): Return gdb_bfd_ref_ptr.
17687 (open_and_init_dwp_file): Update.
17688 * corelow.c (core_open): Update.
17689 * compile/compile-object-load.c (compile_object_load): Update.
17690 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17691 * coffread.c (coff_symfile_read): Update.
17692 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17693 gdb_bfd_ref_ptr. Rename.
17694 (dump_bfd_file, restore_command): Update.
17695 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17696 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17697 (find_separate_debug_file_by_buildid): Update.
17698
50315b21
TT
176992017-01-10 Tom Tromey <tom@tromey.com>
17700
17701 * common/gdb_ref_ptr.h: New file.
17702 * python/py-ref.h (struct gdbpy_ref_policy): New.
17703 (gdbpy_ref): Now a typedef.
17704
fc4007c9
TT
177052017-01-10 Tom Tromey <tom@tromey.com>
17706
17707 * utils.h (make_cleanup_htab_delete): Don't declare.
17708 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17709 Remove.
17710 * linespec.c (decode_compound_collector): Add constructor,
17711 destructor.
17712 (lookup_prefix_sym): Remove cleanup.
17713 (symtab_collector): Add constructor, destructor.
17714 (collect_symtabs_from_filename): Remove cleanup.
17715 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17716 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17717 Use htab_up.
17718 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17719 * dwarf2read.c (dw2_expand_symtabs_matching)
17720 (dw2_map_symbol_filenames, dwarf_decode_macros)
17721 (write_psymtabs_to_index): Use htab_up.
17722 * dwarf2loc.c (func_verify_no_selftailcall)
17723 (call_site_find_chain_1, func_verify_no_selftailcall)
17724 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17725 std::vector, gdb::unique_xmalloc_ptr.
17726 (call_sitep): Remove typedef.
17727 (dwarf2_locexpr_baton_eval): Remove unused variable.
17728
8dbcee67
TT
177292017-01-10 Tom Tromey <tom@tromey.com>
17730
17731 * python/python-internal.h (make_cleanup_py_decref)
17732 (make_cleanup_py_xdecref): Don't declare.
17733 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17734 (py_xdecref, make_cleanup_py_xdecref): Remove.
17735
13df46cc
TT
177362017-01-10 Tom Tromey <tom@tromey.com>
17737
17738 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17739 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17740
06fc9bf7
TT
177412017-01-10 Tom Tromey <tom@tromey.com>
17742
17743 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17744
830a4934
TT
177452017-01-10 Tom Tromey <tom@tromey.com>
17746
17747 * python/py-utils.c (unicode_to_encoded_string)
17748 (python_string_to_target_string)
17749 (python_string_to_target_python_string)
17750 (python_string_to_host_string, gdbpy_obj_to_string)
17751 (get_addr_from_python): Use gdbpy_ref.
17752
4586d543
TT
177532017-01-10 Tom Tromey <tom@tromey.com>
17754
17755 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17756 gdbpy_ref.
17757
59876f8f
TT
177582017-01-10 Tom Tromey <tom@tromey.com>
17759
17760 * python/python.c (eval_python_command, gdbpy_decode_line)
17761 (gdbpy_run_events, gdbpy_start_type_printers)
17762 (gdbpy_apply_type_printers): Use gdbpy_ref.
17763
97d83487
TT
177642017-01-10 Tom Tromey <tom@tromey.com>
17765
17766 * python/py-param.c (get_doc_string, compute_enum_values): Use
17767 gdbpy_ref.
17768
9205649a
TT
177692017-01-10 Tom Tromey <tom@tromey.com>
17770
17771 * python/py-inferior.c (find_thread_object, build_inferior_list):
17772 Use gdbpy_ref.
17773
74c49d45
TT
177742017-01-10 Tom Tromey <tom@tromey.com>
17775
17776 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17777
16361ffb
TT
177782017-01-10 Tom Tromey <tom@tromey.com>
17779
17780 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17781 gdbpy_ref.
17782
905f2cca
TT
177832017-01-10 Tom Tromey <tom@tromey.com>
17784
17785 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17786 extra incref.
17787 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17788 Use gdbpy_ref.
17789
64081434
TT
177902017-01-10 Tom Tromey <tom@tromey.com>
17791
17792 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17793 gdbpy_ref.
17794
59e9e831
TT
177952017-01-10 Tom Tromey <tom@tromey.com>
17796
17797 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17798 decref results of PyArg_ParseTupleAndKeywords.
17799
9de10f6d
TT
178002017-01-10 Tom Tromey <tom@tromey.com>
17801
17802 * python/python.c (python_run_simple_file): Use
17803 unique_xmalloc_ptr, gdbpy_ref.
17804
2bd5759d
TT
178052017-01-10 Tom Tromey <tom@tromey.com>
17806
17807 * python/py-prettyprint.c (print_stack_unless_memory_error)
17808 (print_string_repr, print_children): Use gdbpy_ref.
17809 (dummy_python_frame): New class.
17810 (dummy_python_frame::dummy_python_frame): Rename from
17811 push_dummy_python_frame.
17812 (py_restore_tstate): Remove.
17813
3b4e0e01
TT
178142017-01-10 Tom Tromey <tom@tromey.com>
17815
17816 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17817
17a22718
TT
178182017-01-10 Tom Tromey <tom@tromey.com>
17819
17820 * python/python.c (ensure_python_env, restore_python_env):
17821 Remove.
17822 * python/python-internal.h (ensure_python_env): Don't declare.
17823 * varobj.h (varobj_ensure_python_env): Don't declare.
17824 * varobj.c (varobj_ensure_python_env): Remove.
17825
68cdc557
TT
178262017-01-10 Tom Tromey <tom@tromey.com>
17827
17828 * varobj.c (varobj_value_get_print_value): Use
17829 gdbpy_enter_varobj.
17830
1eba6383
TT
178312017-01-10 Tom Tromey <tom@tromey.com>
17832
17833 * python/py-prettyprint.c (print_string_repr, print_children):
17834 Update.
17835 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17836 of "encoding".
17837 * varobj.c (varobj_value_get_print_value): Update.
17838 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17839
bde7b3e3
TT
178402017-01-10 Tom Tromey <tom@tromey.com>
17841
17842 * varobj.c (varobj_get_display_hint)
17843 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17844 (varobj_set_visualizer, free_variable): Use
17845 gdbpy_enter_varobj.
17846
a7785f8c
TT
178472017-01-10 Tom Tromey <tom@tromey.com>
17848
17849 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17850 (do_finish_initialization): New function. Use gdbpy_ref.
17851 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17852 do_finish_initialization.
17853
2865bfce
TT
178542017-01-10 Tom Tromey <tom@tromey.com>
17855
17856 * python/py-param.c (get_set_value, get_show_value): Use
17857 gdbpy_enter, gdbpy_ref.
17858
0e9dcc75
TT
178592017-01-10 Tom Tromey <tom@tromey.com>
17860
17861 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17862
12a5cedd
TT
178632017-01-10 Tom Tromey <tom@tromey.com>
17864
17865 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17866
788f2586
TT
178672017-01-10 Tom Tromey <tom@tromey.com>
17868
17869 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17870 Use gdbpy_enter_varobj.
17871
6cd67bea
TT
178722017-01-10 Tom Tromey <tom@tromey.com>
17873
17874 * varobj.c (gdbpy_enter_varobj): New constructor.
17875 * python/python-internal.h (gdbpy_enter_varobj): New class.
17876 * python/py-varobj.c (py_varobj_get_iterator): Use
17877 gdbpy_enter_varobj.
17878
14b122bf
TT
178792017-01-10 Tom Tromey <tom@tromey.com>
17880
17881 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17882 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17883 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17884 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17885 unique_xmalloc_ptr.
17886 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17887
bf1ca3b9
TT
178882017-01-10 Tom Tromey <tom@tromey.com>
17889
17890 * python/py-xmethods.c (invoke_match_method): Use
17891 gdbpy_ref.
17892
572a5524
TT
178932017-01-10 Tom Tromey <tom@tromey.com>
17894
17895 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17896 gdbpy_enter, gdbpy_ref.
17897
396a78b6
TT
178982017-01-10 Tom Tromey <tom@tromey.com>
17899
17900 * python/python.c (python_interactive_command): Use gdbpy_enter.
17901
a88b13c7
TT
179022017-01-10 Tom Tromey <tom@tromey.com>
17903
17904 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17905 gdbpy_ref.
17906
e9f0c363
TT
179072017-01-10 Tom Tromey <tom@tromey.com>
17908
17909 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17910 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17911
6349f452
TT
179122017-01-10 Tom Tromey <tom@tromey.com>
17913
17914 * utils.h (htab_deleter): New struct.
17915 (htab_up): New typedef.
17916 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17917 gdbpy_enter, gdbpy_ref, htab_up.
17918
c0171de6
TT
179192017-01-10 Tom Tromey <tom@tromey.com>
17920
17921 * python/py-unwind.c (pending_frame_invalidate): Remove.
17922 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17923
f18e226f
TT
179242017-01-10 Tom Tromey <tom@tromey.com>
17925
17926 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17927 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17928
c57af3f1
TT
179292017-01-10 Tom Tromey <tom@tromey.com>
17930
17931 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17932
60e600ec
TT
179332017-01-10 Tom Tromey <tom@tromey.com>
17934
17935 * python/python.c (gdbpy_eval_from_control_command)
17936 (gdbpy_source_script, gdbpy_run_events)
17937 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17938 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17939 gdbpy_enter.
17940
bf7da5b0
TT
179412017-01-10 Tom Tromey <tom@tromey.com>
17942
17943 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17944
2d38bced
TT
179452017-01-10 Tom Tromey <tom@tromey.com>
17946
17947 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17948
07bc7329
TT
179492017-01-10 Tom Tromey <tom@tromey.com>
17950
17951 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17952 (python_on_inferior_call_pre, python_on_inferior_call_post)
17953 (python_on_memory_change, python_on_register_change)
17954 (python_inferior_exit, python_new_objfile, add_thread_object)
17955 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17956
6e7c365e
TT
179572017-01-10 Tom Tromey <tom@tromey.com>
17958
17959 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17960 (bpfinishpy_handle_exit): Use gdbpy_enter.
17961
6ba0cd40
TT
179622017-01-10 Tom Tromey <tom@tromey.com>
17963
17964 * python/py-cmd.c (cmdpy_destroyer)
17965 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17966 gdbpy_enter.
17967
de2dc875
TT
179682017-01-10 Tom Tromey <tom@tromey.com>
17969
17970 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17971 gdbpy_enter.
17972 (gdbpy_breakpoint_has_cond): Likewise.
17973
4ecee2c4
TT
179742017-01-10 Tom Tromey <tom@tromey.com>
17975
17976 * python/python.c (gdbpy_enter): New constructor.
17977 (~gdbpy_enter): New destructor.
17978 (restore_python_env, ensure_python_env): Rewrite.
17979 * python/python-internal.h (gdbpy_enter): New class.
17980
37fce74f
TT
179812017-01-10 Tom Tromey <tom@tromey.com>
17982
17983 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17984
53a0cca3
TT
179852017-01-10 Tom Tromey <tom@tromey.com>
17986
17987 * python/py-value.c (value_has_field, get_field_flag)
17988 (get_field_type, valpy_getitem, convert_value_from_python): Use
17989 gdbpy_ref.
17990
ff3724f5
TT
179912017-01-10 Tom Tromey <tom@tromey.com>
17992
17993 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17994 gdbpy_ref.
17995
0700aea5
TT
179962017-01-10 Tom Tromey <tom@tromey.com>
17997
17998 * python/py-prettyprint.c (search_pp_list)
17999 (find_pretty_printer_from_objfiles)
18000 (find_pretty_printer_from_progspace)
18001 (find_pretty_printer_from_gdb, find_pretty_printer)
18002 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
18003 gdbpy_ref.
18004
1bb44c9f
TT
180052017-01-10 Tom Tromey <tom@tromey.com>
18006
18007 * python/py-param.c (call_doc_function): Use gdbpy_ref.
18008
87ce03fd
TT
180092017-01-10 Tom Tromey <tom@tromey.com>
18010
18011 * python/py-linetable.c (build_line_table_tuple_from_pcs)
18012 (ltpy_get_all_source_lines): Use gdbpy_ref.
18013
ee0a3fb8
TT
180142017-01-10 Tom Tromey <tom@tromey.com>
18015
18016 * python/py-framefilter.c (extract_sym, extract_value)
18017 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
18018 gdbpy_ref.
18019
bf2a52fa
TT
180202017-01-10 Tom Tromey <tom@tromey.com>
18021
18022 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
18023
f59fe7f8
TT
180242017-01-10 Tom Tromey <tom@tromey.com>
18025
18026 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
18027
80bd970a
TT
180282017-01-10 Tom Tromey <tom@tromey.com>
18029
18030 * python/py-function.c (convert_values_to_python, fnpy_init): Use
18031 gdbpy_ref.
18032
d1b3de2e
TT
180332017-01-10 Tom Tromey <tom@tromey.com>
18034
18035 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
18036
3bb43384
TT
180372017-01-10 Tom Tromey <tom@tromey.com>
18038
18039 * python/py-type.c (convert_field, make_fielditem, typy_fields)
18040 (typy_range): Use gdbpy_ref.
18041
abf5651e
TT
180422017-01-10 Tom Tromey <tom@tromey.com>
18043
18044 * python/py-threadevent.c (create_thread_event_object): Use
18045 gdbpy_ref.
18046 * python/py-stopevent.c (create_stop_event_object): Simplify.
18047 (emit_stop_event): Use gdbpy_ref.
18048 * python/py-signalevent.c (create_signal_event_object): Use
18049 gdbpy_ref.
18050 * python/py-newobjfileevent.c (create_new_objfile_event_object)
18051 (emit_new_objfile_event, create_clear_objfiles_event_object)
18052 (emit_clear_objfiles_event): Use gdbpy_ref.
18053 * python/py-infevents.c (create_inferior_call_event_object)
18054 (create_register_changed_event_object)
18055 (create_memory_changed_event_object, emit_inferior_call_event)
18056 (emit_memory_changed_event, emit_register_changed_event): Use
18057 gdbpy_ref.
18058 * python/py-exitedevent.c (create_exited_event_object)
18059 (emit_exited_event): Use gdbpy_ref.
18060 * python/py-event.h (evpy_emit_event): Remove
18061 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
18062 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
18063 * python/py-continueevent.c (emit_continue_event): Use
18064 gdbpy_ref.
18065 * python/py-breakpoint.c (gdbpy_breakpoint_created)
18066 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
18067 gdbpy_ref.
18068 * python/py-bpevent.c (create_breakpoint_event_object): Use
18069 gdbpy_ref.
18070
a68ff33e
TT
180712017-01-10 Tom Tromey <tom@tromey.com>
18072
18073 * python/py-ref.h: New file.
18074
7becfd03
SM
180752017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18076
18077 * cli-out.c (cli_ui_out::do_redirect): Change return type to
18078 void.
18079 * cli-out.h (cli_ui_out::do_redirect): Likewise.
18080 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
18081 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
18082 * ui-out.c (ui_out::redirect): Likewise.
18083 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
18084 * cli/cli-logging.c (set_logging_redirect): Update call site of
18085 ui_out::redirect.
18086 (handle_redirections): Likewise.
18087 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
18088 * top.c (execute_command_to_string): Likewise.
18089 * utils.c (do_ui_out_redirect_pop): Likewise.
18090
df294654
SM
180912017-01-10 Simon Marchi <simon.marchi@ericsson.com>
18092
18093 * stack.c (_initialize_stack): Update "frame" command help message.
18094
f5e6296e
IB
180952017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
18096
18097 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
18098
0e2d6fa6
YQ
180992017-01-06 Yao Qi <yao.qi@linaro.org>
18100
18101 * x86-linux-nat.h: Include gdb_proc_service.h.
18102
44d6d3f9
YQ
181032017-01-06 Yao Qi <yao.qi@linaro.org>
18104
18105 * ser-base.h: Include serial.h.
18106
656731fe
YQ
181072017-01-06 Yao Qi <yao.qi@linaro.org>
18108
18109 * ppc-linux-tdep.h: Include ppc-tdep.h.
18110
1ca8f924
YQ
181112017-01-06 Yao Qi <yao.qi@linaro.org>
18112
18113 * nat/amd64-linux-siginfo.h: Include signal.h.
18114
bc3008c4
YQ
181152017-01-06 Yao Qi <yao.qi@linaro.org>
18116
18117 * nat/aarch64-linux-hw-point.h: Include break-common.h.
18118
66c80d03
YQ
181192017-01-06 Yao Qi <yao.qi@linaro.org>
18120
18121 * mi/mi-parse.h: Include mi-cmds.h.
18122
051d2dda
YQ
181232017-01-06 Yao Qi <yao.qi@linaro.org>
18124
18125 * inf-loop.c: Don't include "target.h".
18126 * inf-loop.h: Include it here.
18127
8018d34f
YQ
181282017-01-06 Yao Qi <yao.qi@linaro.org>
18129
18130 * dfp.h: Include "dboulest.h" and "expression.h".
18131
c0b8369c
YQ
181322017-01-06 Yao Qi <yao.qi@linaro.org>
18133
18134 * ax-gdb.h: Include "ax.h".
18135
ad5cba2a
YQ
181362017-01-06 Yao Qi <yao.qi@linaro.org>
18137
18138 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18139 with nat/gdb_ptrace.h.
18140
1c33cd7f
YQ
181412017-01-05 Yao Qi <yao.qi@linaro.org>
18142
18143 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18144 new line.
18145 (mips64_fbsd_sigframe_init): Likewise.
18146
c988ac1d
JB
181472017-01-04 John Baldwin <jhb@FreeBSD.org>
18148
18149 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18150 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18151
b268007c
JB
181522017-01-04 John Baldwin <jhb@FreeBSD.org>
18153
18154 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18155 * NEWS: Mention new FreeBSD/mips native configuration.
18156 * config/mips/fbsd.mh: New file.
18157 * configure.host: Add mips*-*-freebsd*.
18158 * mips-fbsd-nat.c: New file.
18159
387360da
JB
181602017-01-04 John Baldwin <jhb@FreeBSD.org>
18161
18162 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18163 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18164 * NEWS: Mention new FreeBSD/mips target.
18165 * configure.tgt: Add mips*-*-freebsd*.
18166 * mips-fbsd-tdep.c: New file.
18167 * mips-fbsd-tdep.h: New file.
18168
2aaaf250
YQ
181692017-01-04 Yao Qi <yao.qi@linaro.org>
18170
18171 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18172 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18173
61baf725
JB
181742017-01-01 Joel Brobecker <brobecker@adacore.com>
18175
6dbb839a 18176 Update copyright year range in all GDB files.
61baf725 18177
c113e7ff 181782017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 18179
c113e7ff 18180 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 18181
c113e7ff 18182For older changes see ChangeLog-2016.
c906108c
SS
18183\f
18184Local Variables:
18185mode: change-log
18186left-margin: 8
18187fill-column: 74
18188version-control: never
57da7796 18189coding: utf-8
c906108c 18190End:
This page took 3.021997 seconds and 4 git commands to generate.