(Ada) change tagged types base_address computation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
08f49010
XR
12017-12-11 Xavier Roirand <roirand@adacore.com>
2 Joel Brobecker <brobecker@adacore.com>
3
4 * ada-lang.c (ada_tag_value_at_base_address): Change the way
5 tagged type base address is computed.
6 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
7 New enumerate.
8 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
9 element of lai->primitive_type_vector.
10
a3c5fafd
PA
112017-12-08 Pedro Alves <palves@redhat.com>
12
13 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
14 mapped_index_base.
15 (check_match): Adjust to use mock_index directly.
16 (check_find_bounds_finds)
17 (test_mapped_index_find_name_component_bounds): Adjust to work
18 with a mapped_index_base.
19
44ed8f3e
PA
202017-12-08 Pedro Alves <palves@redhat.com>
21
22 * dwarf2read.c (struct mapped_index_base): New, partially factored
23 out from ...
24 (struct mapped_index): ... this. Inherit mapped_index_base.
25 (mapped_index::symbol_name_slot_invalid):
26 (mapped_index::symbol_name_at): Add override marker.
27 (mapped_index::symbol_name_count): New.
28 (struct mapped_debug_names): Inherit mapped_index_base.
29 (mapped_debug_names::symbol_name_at): New.
30 (mapped_debug_names::symbol_name_count): New.
31 (mapped_index::find_name_components_bounds): Rename to ...
32 (mapped_index_base::find_name_components_bounds): ... this.
33 (mapped_index::build_name_components): Rename to ...
34 (mapped_index_base::build_name_components): ... this. Adjust to
35 use mapped_index_base::symbol_name_count and
36 mapped_index_base::symbol_name_slot_invalid.
37 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
38 instead of a mapped_index. Use
39 dw2_expand_symtabs_matching_symbol.
40
f00a2de2
PA
412017-12-08 Pedro Alves <palves@redhat.com>
42
43 * dwarf2read.c (mapped_index::symbol_table_slot): New.
44 (mapped_index::address_table): Now a gdb::array_view of const
45 gdb_byte.
46 (mapped_index::symbol_table): Now a gdb::array_view of
47 symbol_table_slot.
48 (mapped_index::address_table_size)
49 (mapped_index::symbol_table_slots): Delete.
50 (create_addrmap_from_index): Adjust.
51 (find_slot_in_mapped_hash): Adjust.
52 (read_index_from_section): Adjust.
53 (dwarf2_read_index): Adjust.
54
927aa2e7
JK
552017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
56 Pedro Alves <palves@redhat.com>
57
58 * defs.h (elf_sym_fns_debug_names): New declaration.
59 * dwarf2read.c: Include "hash_enum.h".
60 (mapped_debug_names): New.
61 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
62 debug_names_table.
63 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
64 (struct dwz_file): Add debug_names.
65 (dwarf2_per_objfile::locate_sections): Handle debug_names and
66 debug_aranges.
67 (locate_dwz_sections): Handle debug_names.
68 (create_signatured_type_table_from_debug_names)
69 (create_addrmap_from_aranges): New.
70 (dwarf2_read_index): Update function comment.
71 (dwarf5_augmentation): Moved up.
72 (read_debug_names_from_section, create_cus_from_debug_names_list)
73 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
74 (dwarf5_djb_hash): Moved up.
75 (dw2_debug_names_iterator): New.
76 (read_indirect_string_at_offset): New declaration.
77 (mapped_debug_names::namei_to_name)
78 (dw2_debug_names_iterator::find_vec_in_debug_names)
79 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
80 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
81 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
82 New.
83 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
84 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
85 (debug_names::build): Update djb_hash caller.
86 (write_debug_names): Move out and rename augmentation to
87 dwarf5_augmentation.
88 * elfread.c (elf_sym_fns_debug_names): New.
89 * psymtab.h (dwarf2_debug_names_functions): New declaration.
90 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
91 debug_aranges.
92 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
93
e5fa6583
PA
942017-12-08 Pedro Alves <palves@redhat.com>
95
96 * common/hash_enum.h: New file.
97
4b514bc8
JK
982017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
99
100 * dwarf2read.c (create_cu_from_index_list): New from ...
101 (create_cus_from_index_list): ... this function, use it.
102 (dw_expand_symtabs_matching_file_matcher)
103 (dw2_expand_symtabs_matching_one): New from ...
104 (dw2_expand_symtabs_matching): ... this function, use them.
105
abccd1e7
JK
1062017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
109 declarations from elfread.c.
110 (dwarf2_initialize_objfile): Change return value.
111 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
112 declarations to defs.h.
113 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
114 * symfile.h (dwarf2_initialize_objfile): Change return type.
115
437afbb8
JK
1162017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
117 Pedro Alves <palves@redhat.com>
118
119 * contrib/gdb-add-index.sh (index): Rename to ...
120 (index4): ... here.
121 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
122 Support also .debug_names and .debug_str.
123 * dwarf2read.c: Include cmath, set, list.
124 (INDEX_SUFFIX): Rename to ...
125 (INDEX4_SUFFIX): ... here.
126 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
127 (file_write(FILE *, const void *, size_t)): New.
128 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
129 (data_buf::append_unsigned_leb128, data_buf::empty): New.
130 (data_buf::file_write): Use ::file_write.
131 (data_buf::c_str, dwarf5_djb_hash, debug_names)
132 (check_dwarf64_offsets): New.
133 (psyms_seen_size, write_gdbindex): New from
134 write_psymtabs_to_index code.
135 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
136 (enum dw_index_kind): New.
137 (write_psymtabs_to_index): New parameter index_kind. Support
138 filename_str and out_file_str. Move code to write_gdbindex,
139 possibly call write_debug_names.
140 (save_gdb_index_command): New parameter -dwarf-5.
141 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
142
6432ec65
JK
1432017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
144 Pedro Alves <palves@redhat.com>
145
146 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
147 comment.
148 (GDB_ADD_INDEX): New variable.
149 <$want_index>: Call $GDB_ADD_INDEX.
150
92469284
SDJ
1512017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
152
153 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
154 "expression_up" inside the TRY block.
155
f17d9474
YQ
1562017-12-08 Yao Qi <yao.qi@linaro.org>
157
158 * breakpoint.c (update_watchpoint): Call
159 address_significant.
160
a0de8c21
YQ
1612017-12-08 Yao Qi <yao.qi@linaro.org>
162
163 * breakpoint.c (adjust_breakpoint_address): Call
164 address_significant.
165
a738ea1d
YQ
1662017-12-08 Yao Qi <yao.qi@linaro.org>
167
168 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
169 significant_addr_bit.
170 * gdbarch.sh (significant_addr_bit): New.
171 * gdbarch.c, gdbarch.h: Re-generated.
172 * target.c (memory_xfer_partial): Call address_significant.
173 * utils.c (address_significant): New function.
174 * utils.h (address_significant): Declare.
175
8e481c3b
TT
1762017-12-08 Tom Tromey <tom@tromey.com>
177
178 * printcmd.c (ui_printf): Update. Use std::vector.
179 * common/format.h (struct format_piece): Add constructor.
180 <string>: Now const.
181 (class format_pieces): New class.
182 (parse_format_string, free_format_pieces)
183 (free_format_pieces_cleanup): Remove.
184 * common/format.c (format_pieces::format_pieces): Rename from
185 parse_format_string. Update.
186 (free_format_pieces, free_format_pieces_cleanup): Remove.
187 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
188 * ax-gdb.h (gen_printf): Remove argument.
189 * ax-gdb.c (gen_printf): Remove "frags" argument.
190 (maint_agent_printf_command): Update. Use std::vector.
191
6b05c8bd
YQ
1922017-12-08 Yao Qi <yao.qi@linaro.org>
193
194 PR breakpionts/22567
195 * linespec.c (minsym_found): Set sal.section.
196
336ef6d2
AA
1972017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
198
199 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
200
fa6eb693
KS
2012017-12-07 Keith Seitz <keiths@redhat.com>
202
203 PR breakpoints/22569
204 * location.c (string_to_explicit_location): When terminating
205 parsing early, break out of enclosing loop instead of returning.
206
883fd55a
KS
2072017-12-07 Keith Seitz <keiths@redhat.com>
208
209 * NEWS (New commands): Mention set/show print type nested-type-limit.
210 * c-typeprint.c (c_type_print_base): Print out nested types.
211 * dwarf2read.c (struct typedef_field_list): Rename to ...
212 (struct decl_field_list): ... this. Change all uses.
213 (struct field_info) <nested_types_list, nested_types_list_count>:
214 New fields.
215 (add_partial_symbol): Look for nested type definitions in C++, too.
216 (dwarf2_add_typedef): Rename to ...
217 (dwarf2_add_type_defn): ... this.
218 (type_can_define_types): New function.
219 Update assertion to use type_can_define_types.
220 Permit NULL for a field's name.
221 (process_structure_scope): Handle child DIEs of types that can
222 define types.
223 Copy the list of nested types into the type struct.
224 * gdbtypes.h (struct typedef_field): Rename to ...
225 (struct decl_field): ... this. Change all uses.
226 [is_protected, is_private]: New fields.
227 (struct cplus_struct_type) <nested_types, nested_types_count>: New
228 fields.
229 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
230 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
231 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
232 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
233 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
234 default value for print_nested_type_limit.
235 (print_nested_type_limit): New static variable.
236 (set_print_type_nested_types, show_print_type_nested_types): New
237 functions.
238 (_initialize_typeprint): Register new commands for set/show
239 `print-nested-type-limit'.
240 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
241 New field.
242
99598d71
TT
2432017-12-07 Tom Tromey <tom@tromey.com>
244
245 PR breakpoints/22511:
246 * breakpoint.c (commands_command_1): Don't throw an exception when
247 no commands have been read.
248
23a8d186
AS
2492017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
250
251 PR c++/21222
252 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
253 range-for variable.
254
30970df7
SM
2552017-12-07 Simon Marchi <simon.marchi@ericsson.com>
256
257 * common/selftest.h (struct selftest): Add virtual destructor.
258
824cc835
PM
2592017-12-07 Phil Muldoon <pmuldoon@redhat.com>
260
261 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
262 over basic location code. Implement explicit location keywords.
263 (bppy_init_validate_args): New function.
264 * NEWS: Document Python explicit breakpoint locations.
265
9c226a86
JB
2662017-12-07 Joel Brobecker <brobecker@adacore.com>
267
268 * MAINTAINERS: Restore target entries for m68hc11-elf,
269 score-elf and xstormy16-elf, incorrectly removed in a previous
270 patch meant to only update the list of active maintainers.
271
649a140c
PA
2722017-12-06 Pedro Alves <palves@redhat.com>
273
274 * break-catch-syscall.c (insert_catch_syscall)
275 (remove_catch_syscall): Adjust to pass reference to
276 inf_data->syscalls_counts directly via gdb::array_view.
277 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
278 and gdb::array_view.
279 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
280 * remote.c (remote_set_syscall_catchpoint): Likewise.
281 * target-debug.h (target_debug_print_bool): New.
282 (define target_debug_print_gdb_array_view_const_int): New.
283 * target-delegates.c: Regenerate.
284 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
285 gdb::array_view and bool.
286 (target_set_syscall_catchpoint): Likewise.
287
9a93831c
SM
2882017-12-06 Simon Marchi <simon.marchi@ericsson.com>
289
290 * break-catch-syscall.c (catch_syscall_completer): Get pointers
291 to syscall group strings after building the string vector.
292
7cc244de
PA
2932017-12-06 Pedro Alves <palves@redhat.com>
294
295 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
296 "qXfer:features:read"" is disabled.
297 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
298 Check packet_config_support instead of packet->support directly.
299
858c9d13
SM
3002017-12-05 Simon Marchi <simon.marchi@ericsson.com>
301
302 * target-descriptions.c (struct tdesc_feature) <registers>: Use
303 tdesc_reg_up typedef.
304 (struct target_desc) <features>: Use tdesc_feature_up typedef.
305
d4a0e8b5
SM
3062017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
307
308 * target-descriptions.c (struct tdesc_type): Use default
309 destructor.
310 <u>: Remove.
311 <accept>: Remove.
312 (struct tdesc_type_builtin): New.
313 (struct tdesc_type_vector): New.
314 (struct tdesc_type_with_fields): New.
315 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
316 (tdesc_gdb_type): Remove.
317 (tdesc_register_type): Adjust.
318 (tdesc_create_vector): Create tdesc_type_vector.
319 (tdesc_create_struct): Create tdesc_type_with_fields.
320 (tdesc_set_struct_size): Change parameter type.
321 (tdesc_create_union): Create tdesc_type_with_fields.
322 (tdesc_create_flags): Likewise.
323 (tdesc_create_enum): Likewise.
324 (tdesc_add_field): Change parameter type.
325 (tdesc_add_typed_bitfield): Likewise.
326 (tdesc_add_bitfield): Likewise.
327 (tdesc_add_flag): Likewise.
328 (tdesc_add_enum_value): Likewise.
329 (print_c_tdesc) <visit>: Remove overload with tdesc_type
330 parameter, add overloads for tdesc_type_builtin,
331 tdesc_type_with_fields and tdesc_type_vector.
332 <m_printed_type>: Remove.
333 <m_printed_element_type, m_printed_type_with_fields>: Add.
334 * target-descriptions.h (tdesc_create_enum): Change return type.
335 (tdesc_add_typed_bitfield): Change parameter type.
336 (tdesc_add_enum_value): Change parameter type.
337 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
338 type to tdesc_type_with_fields.
339 (tdesc_start_struct): Adjust.
340 (tdesc_start_flags): Adjust.
341 (tdesc_start_enum): Adjust.
342 (tdesc_start_field): Adjust.
343 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
344 (struct tdesc_type_vector): Forward-declare.
345 (struct tdesc_type_with_fields): Forward-declare.
346 (tdesc_create_struct): Change return type.
347 (tdesc_create_union): Likewise.
348 (tdesc_create_flags): Likewise.
349 (tdesc_add_field): Change parameter type.
350 (tdesc_set_struct_size): Likewise.
351 (tdesc_add_bitfield): Likewise.
352 (tdesc_add_flag): Likewise.
353 * features: Re-generate C files.
354
f0cddbef
SM
3552017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
358 (struct tdesc_arch_reg): Add constructor.
359 (DEF_VEC_O (tdesc_arch_reg)): Remove.
360 (struct tdesc_arch_data): Initialize fields.
361 <arch_regs>: Change type to std::vector.
362 (target_find_description): Adjust.
363 (tdesc_find_type): Adjust.
364 (tdesc_data_init): Call tdesc_arch_data constructor.
365 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
366 (tdesc_data_cleanup): Free data with delete.
367 (tdesc_numbered_register): Adjust.
368 (tdesc_find_arch_register): Adjust.
369 (tdesc_use_registers): Adjust.
370
d05200d1
SM
3712017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
372
373 * target-descriptions.c (tdesc_type_field): Remove typedef.
374 (DEF_VEC_O (tdesc_type_field)): Remove.
375 (struct tdesc_type_field): Add constructor.
376 <name>: Change type to std::string.
377 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
378 kind uses it.
379 <~tdesc_type>: Destroy vector if the type kind uses it.
380 <u::u::fields>: Change type to std::vector.
381 (tdesc_gdb_type): Adjust.
382 (tdesc_add_field): Adjust.
383 (tdesc_add_typed_bitfield): Adjust.
384 (tdesc_add_field): Adjust.
385 (tdesc_add_enum_value): Adjust.
386 (class print_c_tdesc) <visit>: Adjust.
387
082b9140
SM
3882017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
389
390 * target-descriptions.c (struct tdesc_type) <name>: Change type
391 to std::string.
392 <~tdesc_type>: Don't manually free name.
393 <operator==>: Adjust.
394 (tdesc_named_type): Adjust.
395 (tdesc_find_type): Adjust.
396 (tdesc_gdb_type): Adjust.
397 (class print_c_tdesc) <visit>: Adjust.
398
53c934e9
SM
3992017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
400
401 * target-descriptions.c (tdesc_type_p): Remove typedef.
402 (DEF_VEC_P (tdesc_type_p)): Remove.
403 (struct tdesc_feature) <types>: Change type to std::vector.
404 <~tdesc_feature>: Replace with default implementation.
405 <accept>: Adjust.
406 (tdesc_named_type): Adjust.
407 (tdesc_create_vector): Adjust.
408 (tdesc_create_struct): Adjust.
409 (tdesc_create_union): Adjust.
410 (tdesc_create_flags): Adjust.
411 (tdesc_create_enum): Adjust.
412
a8142ee1
SM
4132017-12-05 Simon Marchi <simon.marchi@ericsson.com>
414
415 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
416 type of name_ parameter, adjust to std::string change.
417 <name, group, type>: Change type to std::string.
418 <~tdesc_reg>: Replace with default implementation.
419 <operator==>: Adjust.
420 (tdesc_find_register_early): Adjust.
421 (tdesc_register_name): Adjust.
422 (tdesc_register_type): Adjust.
423 (tdesc_register_in_reggroup_p): Adjust.
424 (class print_c_tdesc) <visit>: Adjust.
425 (class print_c_feature) <visit>: Adjust.
858c9d13
SM
426 * features/arc-arcompact.c: Re-generate.
427 * features/arc-v2.c: Re-generate.
a8142ee1 428
c9c895b9
SM
4292017-12-05 Simon Marchi <simon.marchi@ericsson.com>
430
431 * target-descriptions.c (tdesc_reg_p): Remove typedef.
432 (DEF_VEC_P (tdesc_reg_p)): Remove.
433 (struct tdesc_feature) <registers>: Change type to std::vector.
434 <~tdesc_feature>: Don't manually free registers.
435 <accept>: Adjust.
436 <operator==>: Adjust.
437 (tdesc_has_registers): Adjust.
438 (tdesc_find_register_early): Adjust.
439 (tdesc_use_registers): Adjust.
440 (tdesc_create_reg): Adjust.
441
f65ff9f9
SM
4422017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
443
444 * target-descriptions.c (tdesc_feature) <name>: Change type to
445 std::string.
446 <~tdesc_feature>: Don't manually free name.
447 <operator==>: Adjust.
448 (tdesc_find_feature): Adjust.
449 (tdesc_feature_name): Adjust.
450 (class print_c_tdesc) <visit_pre>: Adjust.
451 (class print_c_feature) <visit_pre>: Adjust.
452
3eea796c
SM
4532017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
454
455 * target-descriptions.c (tdesc_feature_p): Remove typedef.
456 (DEF_VEC_P (tdesc_feature_p)): Remove.
457 (struct target_desc) <features>: Change type to std::vector.
458 <~target_desc>: Replace with default implementation.
459 <accept>: Adjust.
460 <operator==>: Adjust.
461 (tdesc_has_registers): Adjust.
462 (tdesc_find_feature): Adjust.
463 (tdesc_use_registers): Adjust.
464 (tdesc_create_feature): Adjust.
465
40e2a983
SM
4662017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * target-descriptions.c (arch_p): Remove typedef.
469 (DEF_VEC_P (arch_p)): Remove.
470 (struct target_desc) <compatible>: Change type to std::vector.
471 <~target_desc>: Don't manually free compatible.
472 (tdesc_compatible_p): Adjust.
473 (tdesc_add_compatible): Adjust.
474 (class print_c_tdesc) <visit_pre>: Adjust.
475
129c10bc
SM
4762017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
477
478 * target-descriptions.c (property_s): Remove typedef.
479 (DEF_VEC_O (property_s)): Remove.
480 (struct target_desc) <properties>: Make an std::vector.
481 <~target_desc>: Don't manually free properties.
482 (tdesc_property): Adjust.
483 (set_tdesc_property): Adjust.
484 (class print_c_tdesc) <visit_pre>: Adjust.
485
ed9376bd
SM
4862017-12-05 Simon Marchi <simon.marchi@ericsson.com>
487
488 * common/gdb_assert.h (gdb_static_assert): Redefine using
489 static_assert.
490
798a7429
SM
4912017-12-05 Simon Marchi <simon.marchi@ericsson.com>
492
493 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
494 unused variables.
495 (ada_is_redundant_range_encoding): Likewise.
496 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
497 Likewise.
498 * alpha-tdep.c (alpha_software_single_step): Likewise.
499 * arm-tdep.c (_initialize_arm_tdep): Likewise.
500 * auto-load.c (info_auto_load_cmd): Likewise.
501 * break-catch-syscall.c (insert_catch_syscall): Likewise.
502 (remove_catch_syscall): Likewise.
503 * breakpoint.c (condition_completer): Likewise.
504 (clear_command): Likewise.
505 (update_breakpoint_locations): Likewise.
506 * btrace.c (btrace_disable): Likewise.
507 (btrace_teardown): Likewise.
508 (btrace_maint_update_pt_packets): Likewise.
509 (maint_btrace_clear_cmd): Likewise.
510 * cli/cli-decode.c (lookup_cmd_1): Likewise.
511 (lookup_cmd_composition): Likewise.
512 * cli/cli-dump.c (scan_filename): Likewise.
513 (restore_command): Likewise.
514 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
515 * compile/compile-object-load.c (compile_object_load): Likewise.
516 * compile/compile-object-run.c (compile_object_run): Likewise.
517 * compile/compile.c (compile_to_object): Likewise.
518 * completer.c (filename_completer): Likewise.
519 (complete_files_symbols): Likewise.
520 (complete_expression): Likewise.
521 * corelow.c (core_open): Likewise.
522 * ctf.c (ctf_start): Likewise.
523 (ctf_write_status): Likewise.
524 (ctf_write_uploaded_tsv): Likewise.
525 (ctf_write_definition_end): Likewise.
526 (ctf_open_dir): Likewise.
527 (ctf_xfer_partial): Likewise.
528 (ctf_trace_find): Likewise.
529 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
530 Likewise.
531 * dwarf2loc.c (allocate_piece_closure): Likewise.
532 (indirect_pieced_value): Likewise.
533 (dwarf2_evaluate_loc_desc_full): Likewise.
534 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
535 (dw2_expand_symtabs_matching): Likewise.
536 (dw2_map_symbol_filenames): Likewise.
537 (read_and_check_comp_unit_head): Likewise.
538 (read_cutu_die_from_dwo): Likewise.
539 (lookup_dwo_unit): Likewise.
540 (read_comp_units_from_section): Likewise.
541 (dwarf2_compute_name): Likewise.
542 (handle_DW_AT_stmt_list): Likewise.
543 (create_cus_hash_table): Likewise.
544 (create_dwp_v2_section): Likewise.
545 (dwarf2_rnglists_process): Likewise.
546 (dwarf2_ranges_process): Likewise.
547 (dwarf2_record_block_ranges): Likewise.
548 (is_vtable_name): Likewise.
549 (read_formatted_entries): Likewise.
550 (skip_form_bytes): Likewise.
551 * elfread.c (elf_symtab_read): Likewise.
552 * exec.c (exec_file_command): Likewise.
553 * f-valprint.c (f_val_print): Likewise.
554 (info_common_command_for_block): Likewise.
555 * guile/guile.c (initialize_scheme_side): Likewise.
556 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
557 * guile/scm-cmd.c (cmdscm_completer): Likewise.
558 (gdbscm_register_command_x): Likewise.
559 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
560 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
561 * guile/scm-ports.c (file_port_magic): Likewise.
562 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
563 (ppscm_pretty_print_one_value): Likewise.
564 (ppscm_print_children): Likewise.
565 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
566 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
567 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
568 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
569 * i386-tdep.c (i386_register_reggroup_p): Likewise.
570 * infcmd.c (run_command_1): Likewise.
571 (until_next_fsm_clean_up): Likewise.
572 * linespec.c (linespec_complete): Likewise.
573 (find_label_symbols): Likewise.
574 * m2-valprint.c (m2_val_print): Likewise.
575 * memattr.c (require_user_regions): Likewise.
576 (lookup_mem_region): Likewise.
577 (disable_mem_command): Likewise.
578 (mem_delete): Likewise.
579 * mep-tdep.c (mep_register_name): Likewise.
580 (mep_analyze_prologue): Likewise.
581 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
582 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
583 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
584 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
585 * minidebug.c (lzma_open): Likewise.
586 * minsyms.c (lookup_minimal_symbol): Likewise.
587 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
588 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
589 (mips_o64_return_value): Likewise.
590 (mips_single_step_through_delay): Likewise.
591 (_initialize_mips_tdep): Likewise.
592 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
593 (nios2_software_single_step): Likewise.
594 * parse.c (find_minsym_type_and_address): Likewise.
595 * psymtab.c (psym_relocate): Likewise.
596 * python/py-breakpoint.c (bppy_get_commands): Likewise.
597 (gdbpy_breakpoint_modified): Likewise.
598 * python/py-infevents.c (create_inferior_call_event_object):
599 Likewise.
600 * python/py-record-btrace.c (btpy_list_item): Likewise.
601 * python/py-type.c (typy_str): Likewise.
602 * python/py-value.c (valpy_call): Likewise.
603 * python/python.c (do_start_initialization): Likewise.
604 * record-btrace.c (record_btrace_insn_history_range): Likewise.
605 (record_btrace_call_history_range): Likewise.
606 (record_btrace_record_method): Likewise.
607 (record_btrace_xfer_partial): Likewise.
608 (btrace_get_frame_function): Likewise.
609 * record-full.c (record_full_open): Likewise.
610 * record.c (get_context_size): Likewise.
611 * registry.h (DEFINE_REGISTRY): Likewise.
612 * remote-fileio.c (remote_fileio_request): Likewise.
613 * remote.c (remote_update_thread_list): Likewise.
614 (remote_check_symbols): Likewise.
615 (remote_commit_resume): Likewise.
616 (remote_interrupt): Likewise.
617 (remote_insert_breakpoint): Likewise.
618 (compare_sections_command): Likewise.
619 * rust-exp.y (super_name): Likewise.
620 (lex_string): Likewise.
621 (convert_ast_to_type): Likewise.
622 (convert_ast_to_expression): Likewise.
623 * rust-lang.c (rust_print_struct_def): Likewise.
624 (rust_print_type): Likewise.
625 (rust_evaluate_subexp): Likewise.
626 * rx-tdep.c (rx_register_type): Likewise.
627 * ser-event.c (serial_event_clear): Likewise.
628 * serial.c (serial_open): Likewise.
629 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
630 * symfile.c (section_is_overlay): Likewise.
631 (overlay_unmapped_address): Likewise.
632 (overlay_mapped_address): Likewise.
633 (simple_overlay_update_1): Likewise.
634 (simple_overlay_update): Likewise.
635 * symtab.c (symbol_find_demangled_name): Likewise.
636 (search_symbols): Likewise.
637 * target-descriptions.c (tdesc_predefined_type): Likewise.
638 * target.c (target_commit_resume): Likewise.
639 * thread.c (print_selected_thread_frame): Likewise.
640 * top.c (new_ui_command): Likewise.
641 (gdb_readline_no_editing): Likewise.
642 * tracefile-tfile.c (tfile_open): Likewise.
643 * tracepoint.c (create_tsv_from_upload): Likewise.
644 * utils.c (quit): Likewise.
645 (defaulted_query): Likewise.
646 * valarith.c (value_concat): Likewise.
647 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
648 * xml-tdesc.c (target_fetch_description_xml): Likewise.
649 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
650 (xtensa_pseudo_register_write): Likewise.
651
7403715e
TT
6522017-12-04 Tom Tromey <tom@tromey.com>
653
654 * NEWS: Mention Rust trait object inspection.
655
50a1fdd5
PA
6562017-12-04 Pedro Alves <palves@redhat.com>
657
658 PR gdb/22499
659 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
660 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
661 (vex2_prefix_p, vex3_prefix_p): New functions.
662 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
663 VEX3 prefixes.
664 (fixup_riprel): Set VEX3.!B.
665
1e97a227
SM
6662017-12-03 Simon Marchi <simon.marchi@ericsson.com>
667
668 * target.h (mem_region_vector): Remove.
669 (struct target_ops) <to_memory_map>: Change return type to
670 std::vector<mem_region>.
671 * target-debug.h (target_debug_print_mem_region_vector): Rename
672 to ...
673 (target_debug_print_std_vector_mem_region): ... this.
674 * target-delegates.c: Re-generate.
675
10f64178
PA
6762017-12-03 Pedro Alves <palves@redhat.com>
677
678 * make-target-delegates (munge_type): Also munge '<', '>', and
679 ':'. Avoid double underscores in identifiers, and trailing
680 underscores.
681 * target-debug.h
682 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
683 ...
684 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
685 * target-delegates.c: Regenerate.
686
6d83e819
SM
6872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * common/poison.h (XDELETE): Fix typo.
690
97cbe998
SDJ
6912017-12-01 Andrew Cagney <cagney@redhat.com>
692 Joel Brobecker <brobecker@adacore.com>
693 Sergio Durigan Junior <sergiodj@redhat.com>
694
695 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
696 feature.
697 * coffread.c (coff_symfile_read): Do not map over sections with
698 'coff_locate_sections' if readnever is on.
699 * dwarf2read.c (dwarf2_has_info): Return 0 if
700 readnever is on.
701 * elfread.c (elf_symfile_read): Do not map over sections with
702 'elf_locate_sections' if readnever is on.
703 * main.c (validate_readnow_readnever): New function.
704 (captured_main_1): Add support for --readnever.
705 (print_gdb_help): Document --readnever.
706 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
707 flag.
708 * symfile.c (readnever_symbol_files): New global.
709 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
710 'READNEVER_SYMBOL_FILES' is set.
711 (validate_readnow_readnever): New function.
712 (symbol_file_command): Handle '-readnever' option.
713 Call 'validate_readnow_readnever'.
714 (add_symbol_file_command): Handle '-readnever' option.
715 Call 'validate_readnow_readnever'.
716 (_initialize_symfile): Document new '-readnever' option for
717 both 'symbol-file' and 'add-symbol-file' commands.
718 * top.h (readnever_symbol_files): New extern global.
719 * xcoffread.c (xcoff_initial_scan): Do not read debug
720 information if readnever is on.
721
40fc416f
SDJ
7222017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
723
724 * symfile.c (symbol_file_command): Call
725 'symbol_file_add_main_1' only after processing all command
726 line options.
727 (add_symbol_file_command): Modify logic to make arguments
728 position-independent.
729
ec6a20c2
JB
7302017-12-01 Joel Brobecker <brobecker@adacore.com>
731
732 * ada-lang.c (symbol_list_obstack): Delete.
733 (resolve_subexp): Make sure "candidates" gets xfree'ed.
734 (ada_lookup_symbol_list_worker): Remove the limitation that
735 the result is only good until the next call, now making it
736 the responsibility of the caller to free the result when no
737 longer needed. Adjust the function's intro comment accordingly.
738 (ada_lookup_symbol_list): Adjust the function's intro comment.
739 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
740 (ada_lookup_encoded_symbol, get_var_value): Likewise.
741 (_initialize_ada_language): Remove symbol_list_obstack
742 initialization.
743 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
744 (write_var_or_type, write_name_assoc): Likewise.
745
d0df06af
TT
7462017-12-01 Tom Tromey <tom@tromey.com>
747
748 * Makefile.in (all_deps_files): New variable.
749 Include .Po files using all_deps_files.
750
2ee0c9b3
JB
7512017-12-01 Joel Brobecker <brobecker@adacore.com>
752
753 * MAINTAINERS: Update list of maintainers, moving those who
754 stepped down or became inactive to the "Past Maintainers"
755 section.
756
44122162
RO
7572017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
758
759 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
760 sys/proc.h.
761 (NEW_PROC_API): Remove.
762 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
763 Likewise.
764 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
765 * configure: Regenerate.
766 * config.in: Regenerate.
767 * gdbserver/configure: Regenerate.
768 * gdbserver/config.in: Regenerate.
769
770 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
771 NEW_PROC_API test.
772 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
773
774 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
775
776 * proc-api.c: Remove !NEW_PROC_API support.
777 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
778 Remove tests for macros always defined on Solaris.
779 * proc-events.c: Remove !NEW_PROC_API support.
780 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
781 HAVE_SYS_USER_H tests.
782 (init_syscall_table): Remove non-Solaris syscalls.
783 Remove tests for syscalls present on all Solaris versions.
784 Add missing Solaris 10+ syscalls.
785 (signal_table): Remove non-Solaris signals.
786 Remove tests for signals present on all Solaris versions.
787 (fault_table): Remove non-Solaris faults.
788 Remove tests for faults present on all Solaris versions.
789 * proc-flags.c: Remove !NEW_PROC_API support.
790 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
791 Remove non-Solaris flags.
792 * proc-why.c: Remove !NEW_PROC_API support.
793 (pr_why_table): Remove meaningless comments.
794 Remove tests for reasons present on all Solaris versions.
795 Remove OSF/1 cases.
796 (proc_prettyfprint_why): Likewise.
797
798 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
799 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
800 Remove WA_READ test, IRIX watchpoint support.
801 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
802 types. Change users.
803 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
804 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
805 Change callers.
806 Remove CTL_PROC_NAME_FMT tests.
807 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
808 users.
809 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
810 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
811 (proc_modify_flag): Replace GDBRESET by PCUNSET.
812 Remove PR_ASYNC, PR_KLC tests.
813 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
814 (proc_parent_pid): Remove PCWATCH etc. tests.
815 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
816 Remove PCAGENT test.
817 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
818 Remove SYS_lwpcreate || SYS_lwp_create test.
819 (proc_get_current_thread): Likewise.
820 [PIOCNTHR && PIOCTLIST]: Remove.
821 [PIOCLSTATUS]: Remove.
822 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
823 [PRFS_STOPEXEC]: Remove.
824 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
825 (syscall_is_exit): Likewise.
826 (syscall_is_exec): Likewise.
827 (syscall_is_lwp_create): Likewise.
828 Remove SYS_syssgi support.
829 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
830 [SYS_syssgi]: Remove.
831 Remove non-Solaris cases, conditionals.
832 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
833 Remove.
834 (procfs_init_inferior) [SYS_syssgi]: Remove.
835 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
836 (procfs_inferior_created) [SYS_syssgi]: Remove.
837 (procfs_set_watchpoint): Remove !AIX5 test.
838 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
839 case.
840 (mappingflags) [MA_PHYS]: Remove.
841 (info_mappings_callback): Remove PCAGENT test.
842 Remove PIOCOPENLWP || PCAGENT test.
843
e8020e54
RO
8442017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
845
846 * sol-thread.c (info_solthreads): Constify args.
847 Cast args to void *.
848
75059544
JB
8492017-11-29 John Baldwin <jhb@FreeBSD.org>
850
851 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
852
f5a91472
JB
8532017-11-29 Joel Brobecker <brobecker@adacore.com>
854
855 * ada-lang.c (to_fixed_range_type): Make sure that the size
856 of the range type being returned is the same as the size
857 of the range type being fixed.
858
bd69330d
PA
8592017-11-29 Pedro Alves <palves@redhat.com>
860
861 PR c++/19436
862 * NEWS: Mention setting breakpoints on functions with C++ ABI
863 tags.
864 * completer.h (completion_match_for_lcd) <match,
865 mark_ignored_range>: New methods.
866 <finish>: Consider ignored ranges.
867 <clear>: Clear ignored ranges.
868 <m_ignored_ranges, m_finished_storage>: New fields.
869 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
870 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
871 completion_match_for_lcd pointer to strncmp_iw_with_mode.
872 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
873 * language.c (default_symbol_name_matcher): Pass the
874 completion_match_for_lcd pointer to strncmp_iw_with_mode.
875 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
876 * utils.c (skip_abi_tag): New function.
877 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
878 Handle ABI tags.
879 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
880 parameter.
881
8822017-11-29 Pedro Alves <palves@redhat.com>
883
884 PR c++/19436
885 * NEWS: Mention setting breakpoints on functions with C++ ABI
886 tags.
887 * completer.h (completion_match_for_lcd) <match,
888 mark_ignored_range>: New methods.
889 <finish>: Consider ignored ranges.
890 <clear>: Clear ignored ranges.
891 <m_ignored_ranges, m_finished_storage>: New fields.
892 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
893 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
894 completion_match_for_lcd pointer to strncmp_iw_with_mode.
895 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
896 * language.c (default_symbol_name_matcher): Pass the
897 completion_match_for_lcd pointer to strncmp_iw_with_mode.
898 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
899 * utils.c (skip_abi_tag): New function.
900 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
901 Handle ABI tags.
902 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
903 parameter.
904
a20714ff
PA
9052017-11-29 Pedro Alves <palves@redhat.com>
906
907 * NEWS: Mention that breakpoints on C++ functions are now set on
908 on all namespaces/classes by default, and mention "break
909 -qualified".
910 * ax-gdb.c (agent_command_1): Adjust to pass a
911 symbol_name_match_type to new_linespec_location.
912 * breakpoint.c (parse_breakpoint_sals): Adjust to
913 get_linespec_location's return type change.
914 (strace_marker_create_sals_from_location): Adjust to pass a
915 symbol_name_match_type to new_linespec_location.
916 (strace_marker_decode_location): Adjust to get_linespec_location's
917 return type change.
918 (strace_command): Adjust to pass a symbol_name_match_type to
919 new_linespec_location.
920 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
921 mention "-qualified".
922 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
923 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
924 enumerator.
925 (complete_address_and_linespec_locations): New parameter
926 'match_type'. Pass it down.
927 (explicit_options): Add "-qualified".
928 (collect_explicit_location_matches): Pass the requested match type
929 to the linespec completers. Handle MATCH_QUALIFIED.
930 (location_completer): Handle "-qualified" combined with linespecs.
931 * cp-support.c (cp_search_name_hash): New.
932 (cp_symbol_name_matches_1): Implement wild matching for C++.
933 (cp_fq_symbol_name_matches): Reimplement.
934 (cp_get_symbol_name_matcher): Return different matchers depending
935 on the lookup name's match type.
936 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
937 * cp-support.h (cp_search_name_hash): New declaration.
938 * dwarf2read.c
939 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
940 symbols.
941 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
942 tests.
943 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
944 pass a symbol_name_match_type to new_linespec_location.
945 * linespec.c (linespec_parse_basic): Lookup function symbols using
946 the parser's symbol name match type.
947 (convert_explicit_location_to_linespec): New
948 symbol_name_match_type parameter. Pass it down to
949 find_linespec_symbols.
950 (convert_explicit_location_to_sals): Pass the location's name
951 match type to convert_explicit_location_to_linespec.
952 (parse_linespec): New match_type parameter. Save it in the
953 parser.
954 (linespec_parser_new): Default to symbol_name_match_type::WILD.
955 (linespec_complete_function): New symbol_name_match_type
956 parameter. Use it.
957 (complete_linespec_component): Pass down the parser's recorded
958 name match type.
959 (linespec_complete_label): New symbol_name_match_type parameter.
960 Use it.
961 (linespec_complete): New symbol_name_match_type parameter. Save
962 it in the parser and pass it down. Adjust to
963 get_linespec_location's prototype change.
964 (find_function_symbols, find_linespec_symbols): New
965 symbol_name_match_type parameter. Pass it down instead of
966 assuming symbol_name_match_type::WILD.
967 * linespec.h (linespec_complete, linespec_complete_function)
968 (linespec_complete_label): New symbol_name_match_type parameter.
969 * location.c (event_location::linespec_location): Now a struct
970 linespec_location.
971 (EL_LINESPEC): Adjust.
972 (initialize_explicit_location): Default to
973 symbol_name_match_type::WILD.
974 (new_linespec_location): New symbol_name_match_type parameter.
975 Record it in the location.
976 (get_linespec_location): Now returns a struct linespec_location.
977 (new_explicit_location): Also copy func_name_match_type.
978 (explicit_to_string_internal)
979 (string_to_explicit_location): Handle "-qualified".
980 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
981 Copy symbol_name_match_type fields.
982 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
983 type change.
984 (event_location_to_string): Adjust to LINESPEC_LOCATION type
985 change. Handle "-qualfied".
986 (string_to_explicit_location): Handle "-qualified".
987 (string_to_event_location_basic): New symbol_name_match_type
988 parameter. Pass it down.
989 (string_to_event_location): Handle "-qualified".
990 * location.h (struct linespec_location): New.
991 (explicit_location::func_name_match_type): New field.
992 (new_linespec_location): Now returns a const linespec_location *.
993 (string_to_event_location_basic): New symbol_name_match_type
994 parameter.
995 (explicit_completion_info::saw_explicit_location_option): New
996 field.
997 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
998 symbol_name_match_type to new_linespec_location.
999 * python/py-breakpoint.c (bppy_init): Likewise.
1000 * python/python.c (gdbpy_decode_line): Likewise.
1001
a207cff2
PA
10022017-11-29 Pedro Alves <palves@redhat.com>
1003
1004 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1005 parameter from completion_match to completion_match_result.
1006 Adjust.
1007 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1008 * completer.c (completion_tracker::maybe_add_completion): Add
1009 match_for_lcd parameter and use it.
1010 (completion_tracker::add_completion): Likewise.
1011 * completer.h (class completion_match_for_lcd): New class.
1012 (completion_match_result::match_for_lcd): New field.
1013 (completion_match_result::set_match): New method.
1014 (completion_tracker): Add comments.
1015 (completion_tracker::add_completion): Add match_for_lcd parameter.
1016 (completion_tracker::reset_completion_match_result): Reset
1017 match_for_lcd too.
1018 (completion_tracker::maybe_add_completion): Add match_for_lcd
1019 parameter.
1020 (completion_tracker::m_lowest_common_denominator_unique): Extend
1021 comments.
1022 * cp-support.c (cp_symbol_name_matches_1)
1023 (cp_fq_symbol_name_matches): Change type of parameter from
1024 completion_match to completion_match_result. Adjust.
1025 * language.c (default_symbol_name_matcher): Change type of
1026 parameter from completion_match to completion_match_result.
1027 Adjust.
1028 * language.h (completion_match_for_lcd): Forward declare.
1029 (default_symbol_name_matcher): Change type of parameter from
1030 completion_match to completion_match_result.
1031 * symtab.c (compare_symbol_name): Adjust.
1032 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1033 * symtab.h (ada_lookup_name_info::matches): Change type of
1034 parameter from completion_match to completion_match_result.
1035 (symbol_name_matcher_ftype): Likewise, and update comments.
1036
4024cf2b
PA
10372017-11-29 Pedro Alves <palves@redhat.com>
1038
1039 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1040 * minsyms.c (msymbol_is_text): Delete.
1041 (msymbol_is_function): New function.
1042 * minsyms.h (msymbol_is_text): Delete.
1043 (msymbol_is_function): New declaration.
1044 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1045
5dcf52c1
TT
10462017-11-29 Tom Tromey <tom@tromey.com>
1047
1048 * Makefile.in (distclean): Handle the case where rmdir fails.
1049
8ca2f0b9
TT
10502017-11-29 Tom Tromey <tom@tromey.com>
1051
1052 * symfile.c (_initialize_symfile): Update usage text for
1053 add-symbol-file, symbol-file, load.
1054
02ca603a
TT
10552017-11-29 Tom Tromey <tom@tromey.com>
1056
1057 * symfile.c (add_symbol_file_command): Error if some arguments to
1058 -s are missing. Change unrecognized-argument error message.
1059 (_initialize_symfile): Fix usage text for add-symbol-file.
1060
18ca7347
TT
10612017-11-27 Tom Tromey <tom@tromey.com>
1062
1063 * Makefile.in (REMOTE_OBS): Remove.
1064 (SFILES): Remove remote sources.
1065 (COMMON_SFILES): Add remote sources.
1066 (ALLDEPFILES): Remove dcache.c.
1067
66599a7d
TT
10682017-11-27 Tom Tromey <tom@tromey.com>
1069
1070 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1071 variables.
1072 (SFILES): Use SUBDIR_TARGET_SRCS.
1073 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1074 (CONFIG_SRC_SUBDIR): Add target.
1075 (%.o): Remove target rule.
1076
4f04fba8
TT
10772017-11-27 Tom Tromey <tom@tromey.com>
1078
1079 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1080 registry.o, thread-fsm.o, debug.o.
1081 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1082 thread-fsm.c, debug.c.
1083
b5adff3b
TT
10842017-11-27 Tom Tromey <tom@tromey.com>
1085
1086 * Makefile.in (COMMON_SFILES): New.
1087 (SFILES): Move some entries to COMMON_SFILES.
1088 (COMMON_OBS): Use COMMON_SFILES.
1089
afa0a411
TT
10902017-11-27 Tom Tromey <tom@tromey.com>
1091
1092 * Makefile.in (YYFILES): Update comment.
1093 (YYOBJ): Redefine.
1094
8fd8d003
TT
10952017-11-27 Tom Tromey <tom@tromey.com>
1096
1097 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1098 (CONFIG_SRC_SUBDIR): Add python.
1099 (%.o): Remove python rule.
1100 (python/%.o): New rule.
1101 * configure: Rebuild.
1102 * configure.ac (CONFIG_OBS): Refer to python/python.o
1103
bd810fff
TT
11042017-11-27 Tom Tromey <tom@tromey.com>
1105
1106 * configure: Rebuild.
1107 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1108 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1109 (CONFIG_SRC_SUBDIR): Add guile.
1110 (%.o): Remove guile rule.
1111
75787ac1
TT
11122017-11-27 Tom Tromey <tom@tromey.com>
1113
1114 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1115 (%.o): Remove unittests rule.
1116 (CONFIG_SRC_SUBDIR): Add unittests.
1117
5c8a9431
TT
11182017-11-27 Tom Tromey <tom@tromey.com>
1119
1120 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1121 (CONFIG_SRC_SUBDIR): Add tui.
1122 (%.o): Remove tui rule.
1123
a26aa30c
TT
11242017-11-27 Tom Tromey <tom@tromey.com>
1125
1126 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1127 (%.o): Remove compile rule.
1128 (CONFIG_SRC_SUBDIR): Add compile.
1129
6f3cdf9a
TT
11302017-11-27 Tom Tromey <tom@tromey.com>
1131
1132 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1133 (%.o): Remove mi rule.
1134 (CONFIG_SRC_SUBDIR): Add mi.
1135 (COMMON_OBS): Use mi/mi-common.o
1136
f06afa53
TT
11372017-11-27 Tom Tromey <tom@tromey.com>
1138
1139 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1140 (%.o): Remove cli rule.
1141 (CONFIG_SRC_SUBDIR): Add cli.
1142
b22c88c2
TT
11432017-11-27 Tom Tromey <tom@tromey.com>
1144
1145 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1146 * configure: Rebuild.
1147 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1148 (CONFIG_DEP_SUBDIR): New variable.
1149 (%.o): Add order-only dependency.
1150 ($(CONFIG_DEP_SUBDIR)): New target.
1151
ee9a09e9
DC
11522017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1153
1154 PR gdb/21945
1155 * findcmd.c (_initialize_mem_search): Update find command help
1156 text.
1157
e8e7d10c
SM
11582017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * python/python.c (do_start_initialization): Change progname
1161 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1162 Python 2.
1163
6a997029
TT
11642017-11-26 Tom Tromey <tom@tromey.com>
1165
1166 * common/format.h: Add include guards.
1167
41272101
TT
11682017-11-26 Tom Tromey <tom@tromey.com>
1169
1170 * nat/linux-personality.h (class
1171 maybe_disable_address_space_randomization): New class.
1172 (maybe_disable_address_space_randomization): Don't declare
1173 function.
1174 * nat/linux-personality.c (restore_personality)
1175 (make_disable_asr_cleanup): Remove.
1176 (maybe_disable_address_space_randomization): Now a constructor.
1177 (~maybe_disable_address_space_randomization): New destructor.
1178 * linux-nat.c (linux_nat_create_inferior): Update.
1179
44287fd8
TT
11802017-11-26 Tom Tromey <tom@tromey.com>
1181
1182 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1183
5ffd2cb7
UW
11842017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1185
1186 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1187 "cooked" register. Access only first four bytes of branch target
1188 registers.
1189
0e5457dc
SDJ
11902017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1191
1192 PR gdb/22491
1193 * stap-probe.c (relocate_address): New function.
1194 (stap_probe::get_relocated_address): Use 'relocate_address'.
1195 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1196 'm_sem_addr'.
1197 (stap_probe::clear_semaphore): Likewise.
1198
deeeba55
PA
11992017-11-25 Pedro Alves <palves@redhat.com>
1200
1201 * dictionary.c: Include "safe-ctype.h".
1202 * minsyms.c: Include "safe-ctype.h".
1203 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1204
a81aaca0
PA
12052017-11-25 Pedro Alves <palves@redhat.com>
1206
1207 * completer.c (complete_line_internal_1): Skip spaces until the
1208 start of the command.
1209
0662b6a7
PA
12102017-11-24 Pedro Alves <palves@redhat.com>
1211
1212 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1213 cp_fq_symbol_name_matches. Pass language_cplus to
1214 strncmp_with_mode.
1215 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1216 (selftests::test_cp_symbol_name_cmp): New.
1217 (_initialize_cp_support): Register "cp_symbol_name_matches"
1218 selftests.
1219 * language.c (default_symbol_name_matcher): Pass language_minimal
1220 to strncmp_iw_with_mode.
1221 * utils.c: Include "cp-support.h" and <algorithm>.
1222 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1223 (cp_is_operator): New functions.
1224 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1225 skip whitespace in the symbol name when the lookup name doesn't
1226 have spaces, and vice versa.
1227 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1228 * utils.h (strncmp_iw_with_mode): Add language parameter.
1229
e547c119
JB
12302017-11-24 Joel Brobecker <brobecker@adacore.com>
1231
1232 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1233 New functions.
1234 (print_it_exception): If available, display the exception
1235 message as well.
1236 * NEWS: Document new feature.
1237
d7fcdff9
UW
12382017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1239
1240 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1241
30649c14
PR
12422017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1243
1244 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1245 (dtrace_probe::is_enabled, dtrace_probe::enable)
1246 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1247 variable
1248 * probe.c (gen_ui_out_table_header_info)
1249 (print_ui_out_not_applicables): Remove keyword 'struct' at
1250 for-range variable
1251
7696f5c9
AH
12522017-11-24 Alan Hayward <alan.hayward@arm.com>
1253
1254 * configure.tgt: Add arch/aarch64.o
1255
8172f16b
SM
12562017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 * common/common-utils.h: Include poison.h.
1259 (xfree): Remove declaration, add definition with static_assert.
1260 * common/common-utils.c (xfree): Remove.
1261 * common/poison.h (IsMallocatable): Define.
1262 (IsFreeable): Define.
1263 (free): Delete for non-freeable types.
1264 (xnew): New.
1265 (XNEW): Undef and redefine.
1266 (xcnew): New.
1267 (XCNEW): Undef and redefine.
1268 (xdelete): New.
1269 (XDELETE): Undef and redefine.
1270 (xnewvec): New.
1271 (XNEWVEC): Undef and redefine.
1272 (xcnewvec): New.
1273 (XCNEWVEC): Undef and redefine.
1274 (xresizevec): New.
1275 (XRESIZEVEC): Undef and redefine.
1276 (xdeletevec): New.
1277 (XDELETEVEC): Undef and redefine.
1278 (xnewvar): New.
1279 (XNEWVAR): Undef and redefine.
1280 (xcnewvar): New.
1281 (XCNEWVAR): Undef and redefine.
1282 (xresizevar): New.
1283 (XRESIZEVAR): Undef and redefine.
1284
7aabaf9d
SM
12852017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1286
1287 * gdbthread.h (private_thread_info): Define structure type, add
1288 virtual pure destructor.
1289 (thread_info) <priv>: Change type to unique_ptr.
1290 <private_dtor>: Remove.
1291 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1292 (private_thread_info::~private_thread_info): Provide default
1293 implementation.
1294 (thread_info::~thread_info): Don't call private_dtor nor
1295 manually free priv.
1296 * aix-thread.c (private_thread_info): Rename to ...
1297 (aix_thread_info): ... this.
1298 (get_aix_thread_info): New.
1299 (sync_threadlists): Adjust.
1300 (iter_tid): Adjust.
1301 (aix_thread_resume): Adjust.
1302 (aix_thread_fetch_registers): Adjust.
1303 (aix_thread_store_registers): Adjust.
1304 (aix_thread_extra_thread_info): Adjust.
1305 * darwin-nat.h (private_thread_info): Rename to ...
1306 (darwin_thread_info): ... this.
1307 (get_darwin_thread_info): New.
1308 * darwin-nat.c (darwin_init_thread_list): Adjust.
1309 (darwin_check_new_threads): Adjust.
1310 (thread_info_from_private_thread_info): Adjust.
1311 * linux-thread-db.c (private_thread_info): Rename to ...
1312 (thread_db_thread_info): ... this, initialize fields.
1313 (get_thread_db_thread_info): New.
1314 <dying>: Change type to bool.
1315 (update_thread_state): Adjust to type rename.
1316 (record_thread): Adjust to type rename an use of unique_ptr.
1317 (thread_db_pid_to_str): Likewise.
1318 (thread_db_extra_thread_info): Likewise.
1319 (thread_db_thread_handle_to_thread_info): Likewise.
1320 (thread_db_get_thread_local_address): Likewise.
1321 * nto-tdep.h (private_thread_info): Rename to ...
1322 (nto_thread_info): ... this, initialize fields.
1323 (get_nto_thread_info): New.
1324 <name>: Change type to std::string.
1325 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1326 use of unique_ptr.
1327 * nto-procfs.c (update_thread_private_data_name): Adjust to
1328 std::string change, allocate nto_private_thread_info with new.
1329 (update_thread_private_data): Adjust to unique_ptr.
1330 * remote.c (private_thread_info): Rename to ...
1331 (remote_thread_info): ... this, initialize data members with
1332 default values.
1333 <extra, name>: Change type to std::string.
1334 <thread_handle>: Change type to non-pointer.
1335 (free_private_thread_info): Remove.
1336 (get_private_info_thread): Rename to...
1337 (get_remote_thread_info): ... this, change return type, adjust to
1338 use of unique_ptr, use remote_thread_info constructor.
1339 (remote_add_thread): Adjust.
1340 (get_private_info_ptid): Rename to...
1341 (get_remote_thread_info): ...this, change return type.
1342 (remote_thread_name): Use get_remote_thread_info, adjust to
1343 change to std::string.
1344 (struct thread_item) <~thread_item>: Remove.
1345 <thread_handle>: Make non pointer.
1346 (start_thread): Adjust to thread_item::thread_handle type
1347 change.
1348 (remote_update_thread_list): Adjust to type name change, move
1349 strings from temporary to long-lived object instead of
1350 duplicating.
1351 (remote_threads_extra_info): Use get_remote_thread_info.
1352 (process_initial_stop_replies): Likewise.
1353 (resume_clear_thread_private_info): Likewise.
1354 (remote_resume): Adjust to type name change.
1355 (remote_commit_resume): Use get_remote_thread_info.
1356 (process_stop_reply): Adjust to type name change.
1357 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1358 (remote_stopped_by_hw_breakpoint): Likewise.
1359 (remote_stopped_by_watchpoint): Likewise.
1360 (remote_stopped_data_address): Likewise.
1361 (remote_core_of_thread): Likewise.
1362 (remote_thread_handle_to_thread_info): Use
1363 get_private_info_thread, adjust to thread_handle field type
1364 change.
1365
21fe1c75
SM
13662017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1367
1368 * remote.c (struct thread_item): Add constructor, disable copy
1369 construction and copy assignment, define default move
1370 construction and move assignment.
1371 <extra, name>: Change type to std::string.
1372 <core>: Initialize.
1373 <thread_handle>: Make non-pointer.
1374 (thread_item_t): Remove typedef.
1375 (DEF_VEC_O(thread_item_t)): Remove.
1376 (threads_listing_context) <contains_thread>: New method.
1377 <remove_thread>: New method.
1378 <items>: Change type to std::vector.
1379 (clear_threads_listing_context): Remove.
1380 (threads_listing_context_remove): Remove.
1381 (remote_newthread_step): Use thread_item constructor, adjust to
1382 change to std::vector.
1383 (start_thread): Use thread_item constructor, adjust to change to
1384 std::vector.
1385 (end_thread): Adjust to change to std::vector and std::string.
1386 (remote_get_threads_with_qthreadinfo): Use thread_item
1387 constructor, adjust to std::vector.
1388 (remote_update_thread_list): Adjust to change to std::vector and
1389 std::string, use threads_listing_context methods.
1390 (remove_child_of_pending_fork): Adjust.
1391 (remove_new_fork_children): Adjust.
1392 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1393 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1394 * unittests/rsp-low-selftests.c: New file.
1395 * common/rsp-low.h: Include common/byte-vector.h.
1396 (hex2bin): New overload.
1397 * common/rsp-low.c (hex2bin): New overload.
1398
089354bb
SM
13992017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1400
1401 * inferior.h (private_inferior): Define structure type, add
1402 virtual pure destructor.
1403 (inferior) <priv>: Change type to unique_ptr.
1404 * inferior.c (private_inferior::~private_inferior): Provide
1405 default implementation.
1406 (inferior::~inferior): Don't free priv field.
1407 (exit_inferior_1): Likewise.
1408 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1409 (darwin_exception_info): Remove typedef.
1410 (DEF_VEC_O (darwin_thread_t)); Remove.
1411 (private_inferior): Rename to ...
1412 (darwin_private_inferior): ... this, extend private_inferior.
1413 (get_darwin_inferior): New.
1414 <threads>: Change type to std::vector of darwin_thread_t pointers.
1415 * darwin-nat.c (darwin_check_new_threads): Adjust.
1416 (find_inferior_task_it): Adjust.
1417 (darwin_find_thread); Adjust.
1418 (darwin_suspend_inferior): Adjust.
1419 (darwin_resume_inferior): Adjust.
1420 (darwin_find_new_inferior): Adjust.
1421 (darwin_decode_notify_message): Adjust.
1422 (darwin_send_reply): Adjust.
1423 (darwin_resume_inferior_threads): Adjust.
1424 (darwin_suspend_inferior_threads): Adjust.
1425 (darwin_decode_message): Adjust.
1426 (darwin_wait): Adjust.
1427 (darwin_interrupt): Adjust.
1428 (darwin_deallocate_threads): Adjust.
1429 (darwin_mourn_inferior): Adjust, don't free private data.
1430 (darwin_reply_to_all_pending_messages): Adjust.
1431 (darwin_stop_inferior): Adjust.
1432 (darwin_setup_exceptions): Adjust.
1433 (darwin_kill_inferior): Adjust.
1434 (darwin_setup_request_notification): Adjust.
1435 (darwin_attach_pid): Adjust.
1436 (darwin_init_thread_list): Adjust.
1437 (darwin_setup_fake_stop_event): Adjust.
1438 (darwin_attach): Adjust.
1439 (darwin_detach): Adjust.
1440 (darwin_xfer_partial): Adjust.
1441 (set_enable_mach_exceptions): Adjust.
1442 (darwin_pid_to_exec_file): Adjust.
1443 (darwin_get_ada_task_ptid): Adjust.
1444 * darwin-nat-info.c (get_task_from_args): Adjust.
1445 (info_mach_ports_command): Adjust.
1446 (info_mach_region_command): Adjust.
1447 (info_mach_exceptions_command): Adjust.
1448 * remote.c (private_inferior): Rename to ...
1449 (remote_private_inferior): ... this, initialize fields.
1450 (get_remote_inferior); New.
1451 (remote_commit_resume): Use get_remote_inferior.
1452 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1453
d044bac8
PA
14542017-11-24 Pedro Alves <palves@redhat.com>
1455
1456 * NEWS: Mention linespecs and explicit locations, and completion
1457 improvements.
1458
e8d58cba
YQ
14592017-11-24 Yao Qi <yao.qi@linaro.org>
1460
1461 * regcache.c (regcache::dump): Remove footnote_register_size.
1462
a63f2d2f
YQ
14632017-11-24 Yao Qi <yao.qi@linaro.org>
1464
1465 * regcache.c (cooked_read_test): Add more test for readonly
1466 regcache.
1467
1b30aaa5
YQ
14682017-11-24 Yao Qi <yao.qi@linaro.org>
1469
1470 * gdbarch-selftests.c (test_target_has_registers): Move it to
1471 target.c.
1472 (test_target_has_stack): Likewise.
1473 (test_target_has_memory): Likewise.
1474 (test_target_prepare_to_store): Likewise.
1475 (test_target_store_registers): Likewise.
1476 (test_target_ops): Likewise.
1477 * regcache.c: Include selftest-arch.h and gdbthread.h.
1478 (target_ops_no_register): New class.
1479 (test_target_fetch_registers): New.
1480 (test_target_store_registers): New.
1481 (test_target_xfer_partial): New.
1482 (readwrite_regcache): New.
1483 (cooked_read_test): New.
1484 (_initialize_regcache): Register the test.
1485 * target.c: (test_target_has_registers): Moved from
1486 gdbarch-selftests.c.
1487 (test_target_has_stack): Likewise.
1488 (test_target_has_memory): Likewise.
1489 (test_target_prepare_to_store): Likewise.
1490 (test_target_store_registers): Likewise.
1491 * target.h (test_target_ops): New class.
1492
6654d750
AH
14932017-11-24 Alan Hayward <alan.hayward@arm.com>
1494
1495 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1496 selftest.
1497
49bdb7ee
AH
14982017-11-24 Alan Hayward <alan.hayward@arm.com>
1499
1500 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1501 * arch/aarch64.c (aarch64_create_target_description): Create
1502 new target description.
1503 * features/Makefile: Add new files.
1504 * features/aarch64.c: Remove file.
1505 * features/aarch64-core.c: New autogenerated file.
1506 * features/aarch64-fpu.c: New autogenerated file.
1507 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
da434ccb
AH
1508
15092017-11-24 Alan Hayward <alan.hayward@arm.com>
1510
1511 * Makefile.in: Add new files.
1512 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1513 aarch64_read_description.
1514 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1515 Call aarch64_read_description.
1516 * aarch64-tdep.c (aarch64_read_description): New function.
1517 (aarch64_gdbarch_init): Call aarch64_read_description.
1518 * aarch64-tdep.h (aarch64_read_description): New function.
1519 * arch/aarch64.c: New file.
1520 * configure.tgt: Add new files.
1521
98ead37e
YQ
15222017-11-24 Yao Qi <yao.qi@linaro.org>
1523
1524 * mi/mi-main.c (register_changed_p): Update.
1525 * value.c (value_contents_bits_eq): Change return type.
1526 (value_contents_eq): Likewise.
1527 * value.h: Update comments.
1528
62ad7ce7
YQ
15292017-11-24 Yao Qi <yao.qi@linaro.org>
1530
1531 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1532 local 'changed'. Remove error.
1533 (register_changed_p): Change return type to bool.
1534
506fe5f4
YQ
15352017-11-24 Yao Qi <yao.qi@linaro.org>
1536
1537 * arch/tic6x.c: New file.
1538 * arch/tic6x.h: New file.
1539 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1540 tic6x-core.xml and tic6x-gp.xml.
1541 * features/tic6x-c6xp.c: Generated.
1542 * features/tic6x-core.c: Generated.
1543 * features/tic6x-gp.c: Generated.
1544 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1545 "tic6x-".
1546
00ea2e2a
SM
15472017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1548
1549 * mi/mi-main.c (list_available_thread_groups): Change map value
1550 type to std::vector.
1551
f45e2a77
SM
15522017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1553
1554 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1555
bd046f64
SM
15562017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1557
1558 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1559 back to...
1560 <children_requested>: ... this.
1561 (varobj_get_num_children, varobj_update): Adjust.
1562
4c37490d
SM
15632017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1564
1565 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1566 (ada_value_has_mutated): Likewise.
1567 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1568 (c_is_path_expr_parent): Likewise.
1569 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1570 (mi_cmd_var_set_frozen): Likewise.
1571 (mi_cmd_var_update_iter): Likewise.
1572 (mi_cmd_var_update): Likewise.
1573 * varobj.c (pretty_printing): Likewise.
1574 (varobj_enable_pretty_printing): Likewise.
1575 (struct varobj_root) <floating, is_valid>: Likewise.
1576 (struct varobj_dynamic) <children_requested>: Likewise.
1577 (delete_variable): Likewise.
1578 (delete_variable_1): Likewise.
1579 (install_variable): Likewise.
1580 (update_type_if_necessary): Likewise.
1581 (install_new_value): Likewise.
1582 (value_of_root): Likewise.
1583 (is_root_p): Likewise.
1584 (varobj_create): Likewise.
1585 (varobj_delete): Likewise.
1586 (varobj_has_more): Likewise.
1587 (varobj_set_frozen): Likewise.
1588 (varobj_get_frozen): Likewise.
1589 (install_dynamic_child): Likewise.
1590 (dynamic_varobj_has_child_method): Likewise.
1591 (update_dynamic_varobj_children): Likewise.
1592 (varobj_get_num_children): Likewise.
1593 (varobj_list_children): Likewise.
1594 (is_path_expr_parent): Likewise.
1595 (varobj_default_is_path_expr_parent): Likewise.
1596 (varobj_is_dynamic_p): Likewise.
1597 (varobj_set_value): Likewise.
1598 (varobj_value_has_mutated): Likewise.
1599 (varobj_update): Likewise.
1600 (check_scope): Likewise.
1601 (value_of_root_1): Likewise.
1602 (varobj_value_get_print_value): Likewise.
1603 (varobj_editable_p): Likewise.
1604 (varobj_value_is_changeable_p): Likewise.
1605 (varobj_floating_p): Likewise.
1606 (varobj_default_value_is_changeable_p): Likewise.
1607 (varobj_invalidate_iter): Likewise.
1608 * varobj.h (struct varobj_update_result) <type_changed,
1609 children_changed, changed, value_installed>: Likewise.
1610 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1611 (struct lang_varobj_ops) <value_is_changeable_p,
1612 value_has_mutated, is_path_expr_parent>: Likewise.
1613 (varobj_delete): Likewise.
1614 (varobj_set_frozen): Likewise.
1615 (varobj_get_frozen): Likewise.
1616 (varobj_set_value): Likewise.
1617 (varobj_update): Likewise.
1618 (varobj_editable_p): Likewise.
1619 (varobj_floating_p): Likewise.
1620 (varobj_has_more): Likewise.
1621 (varobj_is_dynamic_p): Likewise.
1622 (varobj_default_value_is_changeable_p): Likewise.
1623 (varobj_value_is_changeable_p): Likewise.
1624 (varobj_is_anonymous_child): Likewise.
1625 (varobj_default_is_path_expr_parent): Likewise.
1626
9c23b42f
SDJ
16272017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1628
1629 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1630 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1631 <type_str>: Convert to 'std::string'.
1632 <expr>: Convert to 'expression_up'.
1633 (dtrace_probe_arg_s): Delete type and VEC.
1634 (dtrace_probe_enabler_s): Likewise.
1635 (struct dtrace_probe): Replace by...
1636 (class dtrace_static_probe_ops): ...this and...
1637 (class dtrace_probe): ...this.
1638 (dtrace_probe_is_linespec): Rename to...
1639 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1640 to reflect change.
1641 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1642 Adjust code. Create new instance of 'dtrace_probe'.
1643 (dtrace_build_arg_exprs): Rename to...
1644 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1645 reflect change.
1646 (dtrace_get_probes): Rename to...
1647 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1648 to reflect change.
1649 (dtrace_get_arg): Rename to...
1650 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1651 reflect change.
1652 (dtrace_probe_is_enabled): Rename to...
1653 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1654 change.
1655 (dtrace_get_probe_address): Rename to...
1656 (dtrace_probe::get_relocated_address): ...this. Adjust code
1657 to reflect change.
1658 (dtrace_get_probe_argument_count): Rename to...
1659 (dtrace_probe::get_argument_count): ...this. Adjust code to
1660 reflect change.
1661 (dtrace_can_evaluate_probe_arguments): Rename to...
1662 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1663 to reflect change.
1664 (dtrace_evaluate_probe_argument): Rename to...
1665 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1666 reflect change.
1667 (dtrace_compile_to_ax): Rename to...
1668 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1669 reflect change.
1670 (dtrace_probe_destroy): Delete.
1671 (dtrace_type_name): Rename to...
1672 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1673 reflect change.
1674 (dtrace_probe::get_static_ops): New method.
1675 (dtrace_gen_info_probes_table_header): Rename to...
1676 (dtrace_static_probe_ops::gen_info_probes_table_header):
1677 ...this. Adjust code to reflect change.
1678 (dtrace_gen_info_probes_table_values): Rename to...
1679 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1680 code to reflect change.
1681 (dtrace_enable_probe): Rename to...
1682 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1683 change.
1684 (dtrace_disable_probe): Rename to...
1685 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1686 change.
1687 (struct probe_ops dtrace_probe_ops): Delete.
1688 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1689 instead of 'info_probes_for_ops'.
1690 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1691 of 'all_probe_ops'.
1692
0e9ae10f
SDJ
16932017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1694 Simon Marchi <simark@simark.ca>
1695
1696 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1697 variable.
1698 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1699 <aexpr>: Change type to 'expression_up'.
1700 (stap_probe_arg_s): Delete type and VEC.
1701 (struct stap_probe): Delete. Replace by...
1702 (class stap_static_probe_ops): ...this and...
1703 (class stap_probe): ...this. Rename variables to add 'm_'
1704 prefix. Do not use 'union' for arguments anymore.
1705 (stap_get_expected_argument_type): Receive probe name instead
1706 of 'struct stap_probe'. Adjust code.
1707 (stap_parse_probe_arguments): Rename to...
1708 (stap_probe::parse_arguments): ...this. Adjust code to
1709 reflect change.
1710 (stap_get_probe_address): Rename to...
1711 (stap_probe::get_relocated_address): ...this. Adjust code
1712 to reflect change.
1713 (stap_get_probe_argument_count): Rename to...
1714 (stap_probe::get_argument_count): ...this. Adjust code
1715 to reflect change.
1716 (stap_get_arg): Rename to...
1717 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1718 reflect change.
1719 (can_evaluate_probe_arguments): Rename to...
1720 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1721 to reflect change.
1722 (stap_evaluate_probe_argument): Rename to...
1723 (stap_probe::evaluate_argument): ...this. Adjust code
1724 to reflect change.
1725 (stap_compile_to_ax): Rename to...
1726 (stap_probe::compile_to_ax): ...this. Adjust code to
1727 reflect change.
1728 (stap_probe_destroy): Delete.
1729 (stap_modify_semaphore): Adjust comment.
1730 (stap_set_semaphore): Rename to...
1731 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1732 change.
1733 (stap_clear_semaphore): Rename to...
1734 (stap_probe::clear_semaphore): ...this. Adjust code to
1735 reflect change.
1736 (stap_probe::get_static_ops): New method.
1737 (handle_stap_probe): Adjust code to create instance of
1738 'stap_probe'.
1739 (stap_get_probes): Rename to...
1740 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1741 reflect change.
1742 (stap_probe_is_linespec): Rename to...
1743 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1744 reflect change.
1745 (stap_type_name): Rename to...
1746 (stap_static_probe_ops::type_name): ...this. Adjust code to
1747 reflect change.
1748 (stap_gen_info_probes_table_header): Rename to...
1749 (stap_static_probe_ops::gen_info_probes_table_header):
1750 ...this. Adjust code to reflect change.
1751 (stap_gen_info_probes_table_values): Rename to...
1752 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1753 code to reflect change.
1754 (struct probe_ops stap_probe_ops): Delete.
1755 (info_probes_stap_command): Use 'info_probes_for_spops'
1756 instead of 'info_probes_for_ops'.
1757 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1758 of 'all_probe_ops'.
1759
935676c9
SDJ
17602017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1761
1762 * break-catch-throw.c (fetch_probe_arguments): Use
1763 'probe.prob' instead of 'probe.probe'.
1764 * breakpoint.c (create_longjmp_master_breakpoint): Call
1765 'can_evaluate_arguments' and 'get_relocated_address' methods
1766 from probe.
1767 (create_exception_master_breakpoint): Likewise.
1768 (add_location_to_breakpoint): Use 'sal->prob' instead of
1769 'sal->probe'.
1770 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1771 probe.
1772 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1773 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1774 of 'probe_ops'.
1775 (probe_key_free): Call 'delete' on probe.
1776 (check_exception_resume): Use 'probe.prob' instead of
1777 'probe.probe'.
1778 * location.c (string_to_event_location_basic): Call
1779 'probe_linespec_to_static_ops'.
1780 * probe.c (class any_static_probe_ops): New class.
1781 (any_static_probe_ops any_static_probe_ops): New variable.
1782 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1783 argument. Adjust code to reflect change.
1784 (parse_probes): Use 'static_probe_ops' instead of
1785 'probe_ops'. Adjust code to reflect change.
1786 (find_probes_in_objfile): Call methods to get name and
1787 provider from probe.
1788 (find_probe_by_pc): Use 'result.prob' instead of
1789 'result.probe'. Call 'get_relocated_address' method from
1790 probe.
1791 (collect_probes): Adjust comment and argument list to receive
1792 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1793 reflect change. Call necessary methods from probe.
1794 (compare_probes): Call methods to get name and provider from
1795 probes.
1796 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1797 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1798 adjust code accordingly.
1799 (print_ui_out_not_applicables): Likewise.
1800 (info_probes_for_ops): Rename to...
1801 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1802 as argument instead of 'probe_ops'. Adjust code. Call
1803 necessary methods from probe.
1804 (info_probes_command): Use 'info_probes_for_spops'.
1805 (enable_probes_command): Pass correct argument to
1806 'collect_probes'. Call methods from probe.
1807 (disable_probes_command): Likewise.
1808 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1809 (get_probe_argument_count): Move to
1810 'any_static_probe_ops::get_argument_count'.
1811 (can_evaluate_probe_arguments): Move to
1812 'any_static_probe_ops::can_evaluate_arguments'.
1813 (evaluate_probe_argument): Move to
1814 'any_static_probe_ops::evaluate_argument'.
1815 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1816 'probe.probe'.
1817 (probe_linespec_to_ops): Rename to...
1818 (probe_linespec_to_static_ops): ...this. Adjust code.
1819 (probe_any_is_linespec): Rename to...
1820 (any_static_probe_ops::is_linespec): ...this.
1821 (probe_any_get_probes): Rename to...
1822 (any_static_probe_ops::get_probes): ...this.
1823 (any_static_probe_ops::type_name): New method.
1824 (any_static_probe_ops::gen_info_probes_table_header): New
1825 method.
1826 (compute_probe_arg): Use 'pc_probe.prob' instead of
1827 'pc_probe.probe'. Call methods from probe.
1828 (compile_probe_arg): Likewise.
1829 (std::vector<const probe_ops *> all_probe_ops): Delete.
1830 (std::vector<const static_probe_ops *> all_static_probe_ops):
1831 New variable.
1832 (_initialize_probe): Use 'all_static_probe_ops' instead of
1833 'all_probe_ops'.
1834 * probe.h (struct info_probe_column) <field_name>: Delete
1835 extraneous newline
1836 (info_probe_column_s): Delete type and VEC.
1837 (struct probe_ops): Delete. Replace with...
1838 (class static_probe_ops): ...this and...
1839 (clas probe): ...this.
1840 (struct bound_probe) <bound_probe>: Delete extraneous
1841 newline. Adjust constructor to receive 'probe' instead of
1842 'struct probe'.
1843 <probe>: Rename to...
1844 <prob>: ...this. Delete extraneous newline.
1845 <objfile>: Delete extraneous newline.
1846 (register_probe_ops): Delete unused prototype.
1847 (info_probes_for_ops): Rename to...
1848 (info_probes_for_spops): ...this. Adjust comment.
1849 (get_probe_address): Move to 'probe::get_address'.
1850 (get_probe_argument_count): Move to
1851 'probe::get_argument_count'.
1852 (can_evaluate_probe_arguments): Move to
1853 'probe::can_evaluate_arguments'.
1854 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1855 * solib-svr4.c (struct svr4_info): Adjust comment.
1856 (struct probe_and_action) <probe>: Rename to...
1857 <prob>: ...this.
1858 (register_solib_event_probe): Receive 'probe' instead of
1859 'struct probe' as argument. Use 'prob' instead of 'probe'
1860 when applicable.
1861 (solib_event_probe_action): Call 'get_argument_count' method
1862 from probe. Adjust comment.
1863 (svr4_handle_solib_event): Adjust comment. Call
1864 'evaluate_argument' method from probe.
1865 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1866 from probe.
1867 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1868 'struct probe'. Call 'can_evaluate_arguments' from probe.
1869 * symfile.h: Forward declare 'class probe' instead of 'struct
1870 probe'.
1871 * symtab.h: Likewise.
1872 (struct symtab_and_line) <probe>: Rename to...
1873 <prob>: ...this.
1874 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1875 Call probe methods.
1876 (stop_tracing): Likewise.
1877
8f6cb6c3
JB
18782017-11-22 Joel Brobecker <brobecker@adacore.com>
1879
1880 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1881 trailing newline at end of string in call to warning.
1882
479f8de1
SM
18832017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1884
1885 * osdata.h: Include vector isntead of vec.h.
1886 (osdata_column_s): Remove typedef.
1887 (struct osdata_column): Add constructor.
1888 <name, value>: Change type to std::string.
1889 (DEF_VEC_O (osdata_column_s)): Remove.
1890 (osdata_item_s): Remove typedef.
1891 (struct osdata_item) <columns>: Change type to std::vector.
1892 (DEF_VEC_O (osdata_item_s)): Remove.
1893 (struct osdata): Add constructor.
1894 <type>: Change type to std::string.
1895 <items>: Change type to std::vector.
1896 (osdata_p): Remove typedef.
1897 (DEF_VEC_P (osdata_p)): Remove.
1898 (osdata_parse): Return a unique_ptr.
1899 (osdata_free): Remove.
1900 (make_cleanup_osdata_free): Remove.
1901 (get_osdata): Return a unique_ptr.
1902 (get_osdata_column): Return pointer to std::string, take a
1903 reference to osdata_item as parameter.
1904 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1905 unique_ptr.
1906 <property_name>: Change type to std::string.
1907 (osdata_start_osdata): Allocate osdata with new and adjust.
1908 (osdata_start_item): Adjust.
1909 (osdata_start_column): Adjust.
1910 (osdata_end_column): Adjust.
1911 (clear_parsing_data): Remove.
1912 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1913 (osdata_item_clear): Remove.
1914 (get_osdata): return a unique_ptr and adjust.
1915 (get_osdata_column): Return a pointer to std::string and adjust.
1916 (info_osdata): Adjust.
1917 * mi/mi-main.c: Include <map>.
1918 (free_vector_of_osdata_items): Remove.
1919 (list_available_thread_groups): Adjust, use std::map instead of
1920 splay tree.
1921
41bd68f5
SM
19222017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1923
1924 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1925 case in switch.
1926
7e2fd2f4
SM
19272017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1928
1929 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1930
0604393c
SM
19312017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1932
1933 * varobj.h (struct varobj_update_result): Add constructor, add
1934 move constructor, disable copy and assign, initialize fields.
1935 <newobj>: Change type to std::vector.
1936 (varobj_update): Return std::vector.
1937 * varobj.c (install_dynamic_child): Change VEC parameters to
1938 std::vector and adjust.
1939 (update_dynamic_varobj_children): Likewise.
1940 (varobj_update): Return std::vector and adjust.
1941 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1942
ddf0ea08
SM
19432017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1944
1945 * varobj.h (struct varobj) <parent>: Remove const.
1946 <children>: Change type to std::vector.
1947 (varobj_list_children): Return std::vector const reference.
1948 (varobj_restrict_range): Change parameter type to std::vector
1949 const reference.
1950 * varobj.c (varobj_has_more): Adjust.
1951 (varobj_restrict_range): Change parameter type to std::vector
1952 const reference and adjust.
1953 (install_dynamic_child): Adjust.
1954 (update_dynamic_varobj_children): Adjust.
1955 (varobj_list_children): Return std::vector const reference and
1956 adjust.
1957 (varobj_add_child): Adjust.
1958 (update_type_if_necessary): Adjust.
1959 (varobj_update): Adjust.
1960 (delete_variable_1): Adjust.
1961 * ada-varobj.c (ada_value_has_mutated): Adjust.
1962 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1963
9e5b9d2b
SM
19642017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * varobj.h (struct varobj): Add constructor and destructor,
1967 initialize fields.
1968 * varobj.c (struct varobj_root): Initialize fields.
1969 (struct varobj_dynamic): Initialize fields.
1970 (varobj_create): Use unique_ptr instead of cleanup. Create
1971 varobj with new instead of new_root_variable.
1972 (delete_variable_1): Free variable with delete instead of
1973 free_variable.
1974 (create_child_with_value): Create variable with new instead of
1975 new_variable.
1976 (varobj::varobj): New.
1977 (varobj::~varobj): New (body mostly coming from free_variable).
1978 (new_variable): Remove.
1979 (free_variable): Remove.
1980 (do_free_variable_cleanup): Remove.
1981 (make_cleanup_free_variable): Remove.
1982
fc35dab1
UW
19832017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1984
1985 * core-regset.c: Remove file.
1986 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1987
2400729e
UW
19882017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1989
1990 * NEWS: Document use of GNU MPFR.
1991 * README: Likewise.
1992
1993 * Makefile.in (LIBMPFR): Add define.
1994 (CLIBS): Add $(LIBMPFR).
1995 * configure.ac: Add --with-mpfr configure option.
1996 * configure: Regenerate.
1997 * config.in: Regenerate.
1998
1999 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2000 (class mpfr_float_ops): New type.
2001 (mpfr_float_ops::from_target): Two new overloaded functions.
2002 (mpfr_float_ops::to_target): Likewise.
2003 (mpfr_float_ops::to_string): New function.
2004 (mpfr_float_ops::from_string): Likewise.
2005 (mpfr_float_ops::to_longest): Likewise.
2006 (mpfr_float_ops::from_longest): Likewise.
2007 (mpfr_float_ops::from_ulongest): Likewise.
2008 (mpfr_float_ops::to_host_double): Likewise.
2009 (mpfr_float_ops::from_host_double): Likewise.
2010 (mpfr_float_ops::convert): Likewise.
2011 (mpfr_float_ops::binop): Likewise.
2012 (mpfr_float_ops::compare): Likewise.
2013 (get_target_float_ops): Use mpfr_float_ops if available.
2014
7a26362d
UW
20152017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2016
2017 * target-float.c: Do not include <math.h>.
2018 Include <cmath> and <limits>.
2019 (DOUBLEST): Do not define.
2020 (class target_float_ops): New type.
2021 (class host_float_ops): New templated type.
2022 (class decimal_float_ops): New type.
2023
2024 (floatformat_to_doublest): Rename to ...
2025 (host_float_ops<T>::from_target): ... this. Use template type T
2026 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2027 (host_float_ops<T>::from_target): New overload using a type argument.
2028 (floatformat_from_doublest): Rename to ...
2029 (host_float_ops<T>::to_target): ... this. Use template type T
2030 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2031 (host_float_ops<T>::to_target): New overload using a type argument.
2032 (floatformat_printf_format): New function.
2033 (struct printf_length_modifier): New templated type.
2034 (floatformat_to_string): Rename to ...
2035 (host_float_ops<T>::to_string): ... this. Use type instead of
2036 floatformat argument. Use floatformat_printf_format and
2037 printf_length_modifier. Remove special handling of invalid numbers,
2038 infinities and NaN (moved to target_float_to_string).
2039 (struct scanf_length_modifier): New templated type.
2040 (floatformat_from_string): Rename to ...
2041 (host_float_ops<T>::from_string): ... this. Use type instead of
2042 floatformat argument. Use scanf_length_modifier.
2043 (floatformat_to_longest): Rename to ...
2044 (host_float_ops<T>::to_longest): ... this. Use type instead of
2045 floatformat argument. Handle out-of-range values deterministically.
2046 (floatformat_from_longest): Rename to ...
2047 (host_float_ops<T>::from_longest): ... this. Use type instead of
2048 floatformat argument.
2049 (floatformat_from_ulongest): Rename to ...
2050 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2051 floatformat argument.
2052 (floatformat_to_host_double): Rename to ...
2053 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2054 floatformat argument.
2055 (floatformat_from_host_double): Rename to ...
2056 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2057 floatformat argument.
2058 (floatformat_convert): Rename to ...
2059 (host_float_ops<T>::convert): ... this. Use type instead of
2060 floatformat arguments. Remove handling of no-op conversions.
2061 (floatformat_binop): Rename to ...
2062 (host_float_ops<T>::binop): ... this. Use type instead of
2063 floatformat arguments.
2064 (floatformat_compare): Rename to ...
2065 (host_float_ops<T>::compare): ... this. Use type instead of
2066 floatformat arguments.
2067
2068 (match_endianness): Use type instead of length/byte_order arguments.
2069 (set_decnumber_context): Likewise.
2070 (decimal_from_number): Likewise. Update calls.
2071 (decimal_to_number): Likewise.
2072 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2073 (decimal_float_ops::to_host_double): New dummy function.
2074 (decimal_float_ops::from_host_double): Likewise.
2075 (decimal_to_string): Rename to ...
2076 (decimal_float_ops::to_string): ... this. Use type instead of
2077 length/byte_order arguments. Update calls.
2078 (decimal_from_string): Rename to ...
2079 (decimal_float_ops::from_string): ... this. Use type instead of
2080 length/byte_order arguments. Update calls.
2081 (decimal_from_longest): Rename to ...
2082 (decimal_float_ops::from_longest): ... this. Use type instead of
2083 length/byte_order arguments. Update calls.
2084 (decimal_from_ulongest): Rename to ...
2085 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2086 length/byte_order arguments. Update calls.
2087 (decimal_to_longest): Rename to ...
2088 (decimal_float_ops::to_longest): ... this. Use type instead of
2089 length/byte_order arguments. Update calls.
2090 (decimal_binop): Rename to ...
2091 (decimal_float_ops::binop): ... this. Use type instead of
2092 length/byte_order arguments. Update calls.
2093 (decimal_compare): Rename to ...
2094 (decimal_float_ops::compare): ... this. Use type instead of
2095 length/byte_order arguments. Update calls.
2096 (decimal_convert): Rename to ...
2097 (decimal_float_ops::convert): ... this. Use type instead of
2098 length/byte_order arguments. Update calls.
2099
2100 (target_float_same_category_p): New function.
2101 (target_float_same_format_p): Likewise.
2102 (target_float_format_length): Likewise.
2103 (enum target_float_ops_kind): New type.
2104 (get_target_float_ops_kind): New function.
2105 (get_target_float_ops): Three new overloaded functions.
2106
2107 (target_float_is_zero): Update call.
2108 (target_float_to_string): Add special handling of invalid numbers,
2109 infinities and NaN (moved from floatformat_to_string). Use
2110 target_float_ops callback.
2111 (target_float_from_string): Use target_float_ops callback.
2112 (target_float_to_longest): Likewise.
2113 (target_float_from_longest): Likewise.
2114 (target_float_from_ulongest): Likewise.
2115 (target_float_to_host_double): Likewise.
2116 (target_float_from_host_double): Likewise.
2117 (target_float_convert): Add special case for no-op conversions.
2118 Use target_float_ops callback.
2119 (target_float_binop): Use target_float_ops callback.
2120 (target_float_compare): Likewise.
2121
a9f26f60
YQ
21222017-11-22 Yao Qi <yao.qi@linaro.org>
2123
2124 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2125
29f9a567
YQ
21262017-11-22 Yao Qi <yao.qi@linaro.org>
2127
2128 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2129 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2130
3b1b69bf
JG
21312017-11-21 Jerome Guitton <guitton@adacore.com>
2132
2133 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2134 with event ptid from the lower layer before doing the
2135 ravenscar-specific update.
2136
54aa6c67
JB
21372017-11-21 Joel Brobecker <brobecker@adacore.com>
2138
2139 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2140 the ptid's TID is nonzero.
2141
cf3fbed4
JB
21422017-11-21 Joel Brobecker <brobecker@adacore.com>
2143
2144 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2145 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2146 Make non-static. Change return type to char *. Adjust code
2147 accordingly. Rewrite the function's documentation.
2148 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2149 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2150 we have enough debugging information in the runtime to support
2151 Ada task debugging before we enable the ravenscar-thread layer.
2152
9edcc12f
JB
21532017-11-21 Joel Brobecker <brobecker@adacore.com>
2154
2155 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2156 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2157 * ravenscar-thread.c: Add into comment.
2158 (base_magic_null_ptid): Delete.
2159 (base_ptid): Change documentation.
2160 (ravenscar_active_task): Renames ravenscar_running_thread.
2161 All callers updated throughout.
2162 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2163 (ravenscar_task_is_currently_active): Likewise.
2164 (get_base_thread_from_ravenscar_task): Ditto.
2165 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2166 (ravenscar_runtime_initialized): Likewise.
2167 (get_running_thread_id): Add new parameter "cpu". Adjust
2168 implementation to handle this new parameter.
2169 (ravenscar_fetch_registers): Small adjustment to use
2170 is_ravenscar_task and ravenscar_task_is_currently_active in
2171 order to decide whether to use the target beneath or this
2172 module's arch_ops.
2173 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2174 (ravenscar_stopped_by_sw_breakpoint): Use
2175 get_base_thread_from_ravenscar_task to get the underlying
2176 thread, rather than using base_ptid.
2177 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2178 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2179 Likewise.
2180 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2181
65d40437
JB
21822017-11-21 Joel Brobecker <brobecker@adacore.com>
2183
2184 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2185 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2186 (get_tcb_types_info): Set fieldnos.base_cpu.
2187 (read_atcb): Set task_info->base_cpu.
2188 (info_task): Print "Base CPU" info if set by runtime.
2189
e02544b2
JB
21902017-11-21 Joel Brobecker <brobecker@adacore.com>
2191
2192 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2193 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2194 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2195 New functions.
2196 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2197 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2198 to_stopped_data_address and to_core_of_thread fields of
2199 ravenscar_ops.
2200
ed0f4273
UW
22012017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2202
2203 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2204 (struct gdbarch_tdep): New member long_double_abi.
2205 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2206 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2207 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2208 format depending on long_double_abi tdep member.
2209 (ppc_floatformat_for_type): Handle __ibm128 type.
2210
0fc76421
SM
22112017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2212
2213 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2214
e6b2f5ef
PA
22152017-11-21 Pedro Alves <palves@redhat.com>
2216
2217 * dwarf2read.c (mapped_index::find_name_components_bounds)
2218 <completion mode, upper bound>: Use std::lower_bound instead of
2219 std::upper_bound.
2220 (test_mapped_index_find_name_component_bounds): Remove incorrect
2221 "t1_fund" from expected symbols.
2222
5c58de74
PA
22232017-11-21 Pedro Alves <palves@redhat.com>
2224
2225 * dwarf2read.c (mapped_index::name_components_casing): New field.
2226 (mapped_index) <build_name_components,
2227 find_name_components_bounds): Declare new methods.
2228 (mapped_index::find_name_components_bounds)
2229 (mapped_index::build_name_components): New methods, factored out
2230 from dw2_expand_symtabs_matching_symbol.
2231 (check_find_bounds_finds)
2232 (test_mapped_index_find_name_component_bounds): New.
2233 (run_test): Rename to ...
2234 (test_dw2_expand_symtabs_matching_symbol): ... this.
2235 (run_test): Reimplement.
2236
e1ef7d7a
PA
22372017-11-21 Pedro Alves <palves@redhat.com>
2238
2239 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2240 (symbol_end): Use cp_ident_is_alnum.
2241 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2242 * dwarf2read.c (make_sort_after_prefix_name): New function.
2243 (dw2_expand_symtabs_matching_symbol): Use it.
2244 (test_symbols): Add more symbols.
2245 (run_test): Add tests.
2246
cf724bc9
TT
22472017-11-17 Tom Tromey <tom@tromey.com>
2248
2249 * symtab.h (enum symbol_subclass_kind): New.
2250 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2251 Remove.
2252 <subclass>: New member.
2253 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2254 * rust-lang.c (rust_get_trait_object_pointer): Update.
2255 * dwarf2read.c (read_func_scope): Update.
2256 (read_variable): Update.
2257
68e745e3
TT
22582017-11-17 Tom Tromey <tom@tromey.com>
2259
2260 * dwarf2read.c (read_func_scope): Update.
2261 * symtab.h (struct template_symbol): Derive from symbol.
2262 <base>: Remove.
2263
71a3c369
TT
22642017-11-17 Tom Tromey <tom@tromey.com>
2265
2266 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2267 (struct rust_vtable_symbol): New.
2268 (find_symbol_at_address): Declare.
2269 * symtab.c (find_symbol_at_address): New function.
2270 * symfile.h (struct quick_symbol_functions)
2271 <find_compunit_symtab_by_address>: New member.
2272 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2273 function.
2274 (debug_sym_quick_functions): Link to
2275 debug_qf_find_compunit_symtab_by_address.
2276 * rust-lang.c (rust_get_trait_object_pointer): New function.
2277 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2278 rust_get_trait_object_pointer.
2279 * psymtab.c (psym_relocate): Clear psymbol_map.
2280 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2281 functions.
2282 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2283 * objfiles.h (struct objfile) <psymbol_map>: New member.
2284 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2285 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2286 (rust_containing_type, read_variable): New functions.
2287
7468702d
SM
22882017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2289
2290 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2291
37269bc9
SM
22922017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2293
2294 * common/filestuff.c: Include <algorithm>.
2295 (open_fds): Change type to std::vector<int>.
2296 (do_mark_open_fd): Adjust.
2297 (unmark_fd_no_cloexec): Adjust.
2298 (do_close): Adjust.
2299
5c632425
SM
23002017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2301
2302 * breakpoint.c (output_thread_groups): Take an std::vector.
2303 (print_one_breakpoint_location): Adjust.
2304
ced9779b
JB
23052017-11-17 Joel Brobecker <brobecker@adacore.com>
2306
2307 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2308 (ada_evaluate_subexp_for_cast): New function.
2309 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2310 ada_evaluate_subexp_for_cast.
2311 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2312 eval_skip_value.
2313 * eval.c (evaluate_var_value): Make non-static.
2314 (evaluate_var_msym_value, eval_skip_value): Likewise.
2315 * value.h (evaluate_var_value, evaluate_var_msym_value)
2316 (eval_skip_value): Declare.
2317
b7e22850
JB
23182017-11-16 Joel Brobecker <brobecker@adacore.com>
2319
2320 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2321 Update all callers.
2322
9ccabccd
PA
23232017-11-16 Pedro Alves <palves@redhat.com>
2324
2325 * python/py-unwind.c (pyuw_sniffer): Translate
2326 PyExc_KeyboardInterrupt to a GDB Quit exception.
2327
d930703d
PA
23282017-11-16 Pedro Alves <palves@redhat.com>
2329
2330 * infrun.c (resume_cleanups): Delete.
2331 (resume): No longer install a resume_cleanups cleanup nor call
2332 QUIT.
2333 (proceed): Pass the terminal to the inferior.
2334 (keep_going_pass_signal): No longer install a resume_cleanups
2335 cleanup.
2336
38dc2859
PA
23372017-11-16 Pedro Alves <palves@redhat.com>
2338
2339 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2340 if the prompt is blocked.
2341
688fca4f
PA
23422017-11-16 Pedro Alves <palves@redhat.com>
2343
2344 * breakpoint.c (insert_bp_location): Replace bp_err and
2345 bp_err_message locals by a gdb_exception local.
2346
e2c33ac7
PA
23472017-11-16 Pedro Alves <palves@redhat.com>
2348
2349 * inflow.c (scoped_ignore_sigttou): New class.
2350 (child_terminal_ours_1, new_tty): Use it.
2351
d7236961
UW
23522017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2353
2354 * target-float.c (decimal_from_number): Add byte_order argument and
2355 call match_endianness. Error if unknown floating-point type.
2356 (decimal_to_number): Add byte_order argument and call match_endianness.
2357 (decimal_from_longest): Update call. Do not call match_endianness.
2358 (decimal_from_ulongest): Likewise.
2359 (decimal_binop): Likewise.
2360 (decimal_is_zero): Likewise.
2361 (decimal_compare): Likewise.
2362 (decimal_convert): Likewise.
2363
d8ae99a7
PM
23642017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2365
2366 * python/python.c (gdbpy_rbreak): New function.
2367 * NEWS: Document Python rbreak feature.
2368
c632b645
YQ
23692017-11-16 Yao Qi <yao.qi@linaro.org>
2370
2371 * features/tic6x-c62x.xml: Remove.
2372 * features/tic6x-c64x.xml: Remove.
2373 * features/tic6x-c64xp.xml: Remove.
2374
a014b87a
JB
23752017-11-15 John Baldwin <jhb@FreeBSD.org>
2376
2377 * symtab.h: Include <array>.
2378
94765011
JB
23792017-11-15 John Baldwin <jhb@FreeBSD.org>
2380
2381 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2382 (bsd_kvm_proc_cmd): Likewise.
2383
625ad440
SM
23842017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2385
2386 * tui/tui-win.c (window_name_completer): Replace VEC with
2387 std::vector.
2388
c0c11fa9
AC
23892017-11-15 Andrew Cagney <cagney@gnu.org>
2390
2391 * MAINTAINERS: Remove no-longer applicable entries.
2392
34a7ebaf
AC
23932017-11-15 Andrew Cagney <cagney@gnu.org>
2394
2395 * MAINTAINERS: Move self to Past Maintainers.
2396
5334ef39
YQ
23972017-11-15 Yao Qi <yao.qi@linaro.org>
2398
2399 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2400 * features/nios2-linux.c: Remove.
2401 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2402 initialize_tdesc_nios2_linux.
2403
a714b0d6
YQ
24042017-11-15 Yao Qi <yao.qi@linaro.org>
2405
2406 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2407 M68HC11_LAST_HARD_REG + 1.
2408
92ffd475
PC
24092017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2410
2411 PR gdb/22388
2412 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2413 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2414 Return TARGET_XFER_EOF if size of returned data is 0.
2415
07431908
SM
24162017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2417
2418 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2419 memory-map-selftests.c.
2420 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2421 * memory-map.c (memory_map_start_memory): Fix computation of hi
2422 address.
2423 * unittests/memory-map-selftests.c: New file.
2424
31432a67
JB
24252017-11-09 Joel Brobecker <brobecker@adacore.com>
2426
2427 * ada-lang.c: Fix some typos in the general command documenting
2428 how Ada expressions are being evaluated and how their result
2429 is printed.
2430
e793c052
TT
24312017-11-09 Tom Tromey <tom@tromey.com>
2432
2433 * psymtab.c (psymbol_hash): Do not hash string contents.
2434 (psymbol_compare): Add comment.
2435
7e8835c5
TT
24362017-11-09 Tom Tromey <tom@tromey.com>
2437
2438 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2439
286acbb5
JB
24402017-11-08 Joel Brobecker <brobecker@adacore.com>
2441
2442 * ada-exp.y (write_var_from_sym): Remove parameter
2443 "orig_left_context". Update all callers.
2444
b44ec619
SM
24452017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2446
2447 * tracepoint.h (class collection_list) <stringify>: Return
2448 std::vector<std::string>.
2449 (encode_actions_rsp): Change parameters to
2450 std::vector<std::string> *.
2451 * tracepoint.c (collection_list::stringify): Return
2452 std::vector<std::string> and adjust accordingly.
2453 (encode_actions_rsp): Changee parameters to
2454 std::vector<std::string> and adjust accordingly.
2455 * remote.c (free_actions_list),
2456 free_actions_list_cleanup_wrapper): Remove.
2457 (remote_download_tracepoint): Adjust to std::vector.
2458
2f4732b0
TT
24592017-11-08 Tom Tromey <tom@tromey.com>
2460
2461 * dwarf2read.c (symbolp): Remove typedef.
2462 (read_func_scope): Use std::vector.
2463 (process_structure_scope): Use std::vector.
2464
f9d67a22
PA
24652017-11-08 Pedro Alves <palves@redhat.com>
2466
2467 * ada-lang.c (ada_make_symbol_completion_list): Use
2468 completion_skip_symbol.
2469 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2470 (symbol_is_function_or_method(symbol*)): New.
2471 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2472 completion_skip_symbol.
2473 (default_collect_symbol_completion_matches_break_on): Use
2474 completion_skip_symbol. Pass down mode.
2475 (collect_file_symbol_completion_matches): Pass down mode.
2476 * symtab.h (symbol_is_function_or_method): New declarations.
2477 (completion_skip_symbol): New template function.
2478
56d87ef7
PA
24792017-11-08 Pedro Alves <palves@redhat.com>
2480
2481 * linespec.c (iterate_over_all_matching_symtabs): Add
2482 search_domain parameter. Pass it down to expand_symtabs_matching.
2483 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2484 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2485 search_domain.
2486 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2487 Pass it down.
2488 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2489 symbols.
2490 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2491 it down.
2492
1b026119
PA
24932017-11-08 Pedro Alves <palves@redhat.com>
2494
2495 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2496 text_len locals and don't pass them down.
2497 * symtab.c (completion_list_add_name): Remove
2498 sym_text/sym_text_len parameters and adjust.
2499 (completion_list_add_symbol, completion_list_add_msymbol)
2500 (completion_list_objc_symbol, completion_list_add_fields)
2501 (add_symtab_completions): Likewise.
2502 (default_collect_symbol_completion_matches_break_on)
2503 (collect_file_symbol_completion_matches): Remove sym_text_len
2504 local and don't pass it down.
2505 * symtab.h (completion_list_add_name): Remove
2506 sym_text/sym_text_len parameters.
2507
c62446b1
PA
25082017-11-08 Pedro Alves <palves@redhat.com>
2509
2510 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2511 unittests/lookup_name_info-selftests.c.
2512 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2513 * cp-support.c: Include "selftest.h".
2514 (cp_remove_params_1): Rename from cp_remove_params. Add
2515 'require_param' parameter, and handle it.
2516 (cp_remove_params): Reimplement.
2517 (cp_remove_params_if_any): New.
2518 (selftests::quote): New.
2519 (selftests::check_remove_params): New.
2520 (selftests::test_cp_remove_params): New.
2521 (_initialize_cp_support): Install
2522 selftests::test_cp_remove_params.
2523 * cp-support.h (cp_remove_params_if_any): Declare.
2524 * dwarf2read.c :Include "selftest.h".
2525 (dw2_expand_symtabs_matching_symbol): Use
2526 lookup_name_info::make_ignore_params.
2527 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2528 (selftests::dw2_expand_symtabs_matching::string_or_null)
2529 (selftests::dw2_expand_symtabs_matching::check_match)
2530 (selftests::dw2_expand_symtabs_matching::test_symbols)
2531 (selftests::dw2_expand_symtabs_matching::run_test): New.
2532 (_initialize_dwarf2_read): Register
2533 selftests::dw2_expand_symtabs_matching::run_test.
2534 * psymtab.c (psym_expand_symtabs_matching): Use
2535 lookup_name_info::make_ignore_params.
2536 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2537 If the lookup name wants to ignore parameters, strip them.
2538 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2539 code handling '('.
2540 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2541 (default_collect_symbol_completion_matches_break_on): Don't try to
2542 strip parameters.
2543 * symtab.h (lookup_name_info::lookup_name_info): Add
2544 'ignore_parameters' parameter.
2545 (lookup_name_info::ignore_parameters)
2546 (lookup_name_info::make_ignore_params): New methods.
2547 (lookup_name_info::m_ignore_parameters): New field.
2548 * unittests/lookup_name_info-selftests.c: New file.
2549
61920122
PA
25502017-11-08 Pedro Alves <palves@redhat.com>
2551
2552 * dwarf2read.c (dw2_expand_marked_cus)
2553 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2554 (dw2_expand_symtabs_matching): Move further below.
2555 (dw2_expand_marked_cus): Reindent.
2556
3f563c84
PA
25572017-11-08 Pedro Alves <palves@redhat.com>
2558
2559 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2560 (struct name_component): New.
2561 (mapped_index::name_components): New field.
2562 (mapped_index::symbol_name_at): New method.
2563 (dwarf2_read_index): Call mapped_index ctor.
2564 (dw2_map_matching_symbols): Add comment about name_components
2565 table.
2566 (dw2_expand_symtabs_matching): Factor part to...
2567 (dw2_expand_symtabs_matching_symbol): ... this new function.
2568 Build name components table, and lookup symbols in it before
2569 calling the name matcher.
2570 (dw2_expand_marked_cus): New, factored out from
2571 dw2_expand_symtabs_matching.
2572 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2573
b5ec771e
PA
25742017-11-08 Pedro Alves <palves@redhat.com>
2575
2576 * ada-lang.c (ada_encode): Rename to ..
2577 (ada_encode_1): ... this. Add throw_errors parameter and handle
2578 it.
2579 (ada_encode): Reimplement.
2580 (match_name): Delete, folded into full_name.
2581 (resolve_subexp): No longer pass the encoded name to
2582 ada_lookup_symbol_list.
2583 (should_use_wild_match): Delete.
2584 (name_match_type_from_name): New.
2585 (ada_lookup_simple_minsym): Use lookup_name_info and the
2586 language's symbol_name_matcher_ftype.
2587 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2588 (ada_add_block_renamings): Adjust to use lookup_name_info.
2589 (ada_lookup_name): New.
2590 (add_nonlocal_symbols, ada_add_all_symbols)
2591 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2592 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2593 (ada_name_for_lookup): Delete.
2594 (ada_lookup_encoded_symbol): Construct a verbatim name.
2595 (wild_match): Reverse sense of return type. Use bool.
2596 (full_match): Reverse sense of return type. Inline bits of old
2597 match_name here.
2598 (ada_add_block_symbols): Adjust to use lookup_name_info.
2599 (symbol_completion_match): Delete, folded into...
2600 (ada_lookup_name_info::matches): ... .this new method.
2601 (symbol_completion_add): Delete.
2602 (ada_collect_symbol_completion_matches): Add name_match_type
2603 parameter. Adjust to use lookup_name_info and
2604 completion_list_add_name.
2605 (get_var_value, ada_add_global_exceptions): Adjust to use
2606 lookup_name_info.
2607 (ada_get_symbol_name_cmp): Delete.
2608 (do_wild_match, do_full_match): New functions.
2609 (ada_lookup_name_info::ada_lookup_name_info): New method.
2610 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2611 functions.
2612 (ada_language_defn): Install ada_get_symbol_name_matcher.
2613 * ada-lex.l (processId): If name starts with '<', copy it
2614 verbatim.
2615 * block.c (block_iter_match_step, block_iter_match_first)
2616 (block_iter_match_next, block_lookup_symbol)
2617 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2618 lookup_name_info.
2619 * block.h (block_iter_match_first, block_iter_match_next)
2620 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2621 * c-lang.c (c_language_defn, cplus_language_defn)
2622 (asm_language_defn, minimal_language_defn): Adjust comments to
2623 refer to la_get_symbol_name_matcher.
2624 * completer.c (complete_files_symbols)
2625 (collect_explicit_location_matches, symbol_completer): Pass a
2626 symbol_name_match_type down.
2627 * completer.h (class completion_match, completion_match_result):
2628 New classes.
2629 (completion_tracker::reset_completion_match_result): New method.
2630 (completion_tracker::m_completion_match_result): New field.
2631 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2632 lookup_name_info.
2633 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2634 functions.
2635 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2636 * d-lang.c: Adjust comments to refer to
2637 la_get_symbol_name_matcher.
2638 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2639 Adjust to use lookup_name_info.
2640 (dict_iter_match_first, dict_iter_match_next)
2641 (iter_match_first_hashed, iter_match_next_hashed)
2642 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2643 with a lookup_name_info.
2644 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2645 Likewise.
2646 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2647 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2648 (gdb_index_symbol_name_matcher): New class.
2649 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2650 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2651 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2652 with a symbol_name_match_type.
2653 (f_language_defn): Adjust comments to refer to
2654 la_get_symbol_name_matcher.
2655 * go-lang.c (go_language_defn): Adjust comments to refer to
2656 la_get_symbol_name_matcher.
2657 * language.c (default_symbol_name_matcher)
2658 (language_get_symbol_name_matcher): New functions.
2659 (unknown_language_defn, auto_language_defn): Adjust comments to
2660 refer to la_get_symbol_name_matcher.
2661 * language.h (symbol_name_cmp_ftype): Delete.
2662 (language_defn) <la_collect_symbol_completion_matches>: Add match
2663 type parameter.
2664 <la_get_symbol_name_cmp>: Delete field.
2665 <la_get_symbol_name_matcher>: New field.
2666 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2667 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2668 Declare.
2669 * linespec.c (iterate_over_all_matching_symtabs)
2670 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2671 (find_methods): Add language parameter, and use lookup_name_info
2672 and the language's symbol_name_matcher_ftype.
2673 (linespec_complete_function): Adjust.
2674 (lookup_prefix_sym): Use lookup_name_info.
2675 (add_all_symbol_names_from_pspace): Adjust.
2676 (find_superclass_methods): Add language parameter and pass it
2677 down.
2678 (find_method): Pass symbol language down.
2679 (find_linespec_symbols): Don't demangle or Ada encode here.
2680 (search_minsyms_for_name): Add lookup_name_info parameter.
2681 (add_matching_symbols_to_info): Add name_match_type parameter.
2682 Use lookup_name_info.
2683 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2684 la_get_symbol_name_matcher.
2685 * minsyms.c: Include <algorithm>.
2686 (add_minsym_to_demangled_hash_table): Remove table parameter and
2687 add objfile parameter. Use search_name_hash, and add language to
2688 demangled languages vector.
2689 (struct found_minimal_symbols): New struct.
2690 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2691 New functions.
2692 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2693 input names here. Use lookup_name_info instead. Lookup up
2694 demangled names once for each language in the demangled names
2695 vector.
2696 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2697 demangled names once for each language in the demangled names
2698 vector.
2699 (build_minimal_symbol_hash_tables): Adjust.
2700 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2701 lookup_name_info.
2702 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2703 la_get_symbol_name_matcher.
2704 * objfiles.h: Include <vector>.
2705 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2706 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2707 la_get_symbol_name_matcher.
2708 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2709 la_get_symbol_name_matcher.
2710 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2711 (match_partial_symbol): Use symbol_name_match_type,
2712 lookup_name_info and psymbol_name_matches.
2713 (lookup_partial_symbol): Use lookup_name_info.
2714 (map_block): Use symbol_name_match_type and lookup_name_info.
2715 (psym_map_matching_symbols): Use symbol_name_match_type.
2716 (psymbol_name_matches): New.
2717 (recursively_search_psymtabs): Use lookup_name_info and
2718 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2719 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2720 'kind' parameter to 'domain'.
2721 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2722 la_get_symbol_name_matcher.
2723 * symfile-debug.c (debug_qf_map_matching_symbols)
2724 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2725 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2726 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2727 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2728 Adjust to use symbol_name_match_type.
2729 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2730 (expand_symtabs_matching): Adjust to use lookup_name_info.
2731 * symmisc.c (maintenance_expand_symtabs): Use
2732 lookup_name_info::match_any ().
2733 * symtab.c (symbol_matches_search_name): New.
2734 (eq_symbol_entry): Adjust to use lookup_name_info and the
2735 language's matcher.
2736 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2737 (lookup_name_info::match_any): New.
2738 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2739 (compare_symbol_name): Add language, lookup_name_info and
2740 completion_match_result parameters, and use them.
2741 (completion_list_add_name): Make extern. Add language and
2742 lookup_name_info parameters. Use them.
2743 (completion_list_add_symbol, completion_list_add_msymbol)
2744 (completion_list_objc_symbol): Add lookup_name_info parameters and
2745 adjust. Pass down language.
2746 (completion_list_add_fields): Add lookup_name_info parameters and
2747 adjust. Pass down language.
2748 (add_symtab_completions): Add lookup_name_info parameters and
2749 adjust.
2750 (default_collect_symbol_completion_matches_break_on): Add
2751 name_match_type parameter, and use it. Use lookup_name_info.
2752 (default_collect_symbol_completion_matches)
2753 (collect_symbol_completion_matches): Add name_match_type
2754 parameter, and pass it down.
2755 (collect_symbol_completion_matches_type): Adjust.
2756 (collect_file_symbol_completion_matches): Add name_match_type
2757 parameter, and use lookup_name_info.
2758 * symtab.h: Include <string> and "common/gdb_optional.h".
2759 (enum class symbol_name_match_type): New.
2760 (class ada_lookup_name_info): New.
2761 (struct demangle_for_lookup_info): New.
2762 (class lookup_name_info): New.
2763 (symbol_name_matcher_ftype): New.
2764 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2765 (symbol_matches_search_name): Declare.
2766 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2767 (default_collect_symbol_completion_matches)
2768 (collect_symbol_completion_matches)
2769 (collect_file_symbol_completion_matches): Add name_match_type
2770 parameter.
2771 (iterate_over_symbols): Use lookup_name_info.
2772 (completion_list_add_name): Declare.
2773 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2774 (strncmp_iw_with_mode): Now extern.
2775 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2776 (strncmp_iw_with_mode): Declare.
2777
5ffa0793
PA
27782017-11-08 Keith Seitz <keiths@redhat.com>
2779 Pedro Alves <palves@redhat.com>
2780
2781 * ada-lang.c (ada_language_defn): Install
2782 default_search_name_hash.
2783 * buildsym.c (struct buildsym_compunit): <language>: New field.
2784 (finish_block_internal): Pass language when creating dictionaries.
2785 (start_buildsym_compunit, start_symtab): New language parameters.
2786 Use them.
2787 (restart_symtab): Pass down compilation unit's language.
2788 * buildsym.h (enum language): Forward declare.
2789 (start_symtab): New 'language' parameter.
2790 * c-lang.c (c_language_defn, cplus_language_defn)
2791 (asm_language_defn, minimal_language_defn): Install
2792 default_search_name_hash.
2793 * coffread.c (coff_start_symtab): Adjust.
2794 * d-lang.c (d_language_defn): Install default_search_name_hash.
2795 * dbxread.c (struct symloc): Add 'pst_language' field.
2796 (PST_LANGUAGE): Define.
2797 (start_psymtab, read_ofile_symtab): Use it.
2798 (process_one_symbol): New 'language' parameter. Pass it down.
2799 * dictionary.c (struct dictionary) <language>: New field.
2800 (DICT_LANGUAGE): Define.
2801 (dict_create_hashed, dict_create_hashed_expandable)
2802 (dict_create_linear, dict_create_linear_expandable): New parameter
2803 'language'. Set the dictionary's language.
2804 (iter_match_first_hashed): Adjust to rename.
2805 (insert_symbol_hashed): Assert we don't see mismatching
2806 languages. Adjust to rename.
2807 (dict_hash): Rename to ...
2808 (default_search_name_hash): ... this and make extern.
2809 * dictionary.h (struct language_defn): Forward declare.
2810 (dict_create_hashed): New parameter 'language'.
2811 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2812 * f-lang.c (f_language_defn): Install default_search_name_hash.
2813 * go-lang.c (go_language_defn): Install default_search_name_hash.
2814 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2815 creation.
2816 * language.c (unknown_language_defn, auto_language_defn):
2817 * language.h (language_defn::la_search_name_hash): New field.
2818 (default_search_name_hash): Declare.
2819 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2820 * mdebugread.c (new_block): New parameter 'language'.
2821 * mdebugread.c (parse_symbol): Pass symbol language to block
2822 allocation.
2823 (psymtab_to_symtab_1): Pass down language.
2824 (new_symtab): Pass compunit's language to block allocation.
2825 * objc-lang.c (objc_language_defn): Install
2826 default_search_name_hash.
2827 * opencl-lang.c (opencl_language_defn):
2828 * p-lang.c (pascal_language_defn): Install
2829 default_search_name_hash.
2830 * rust-lang.c (rust_language_defn): Install
2831 default_search_name_hash.
2832 * stabsread.h (enum language): Forward declare.
2833 (process_one_symbol): Add 'language' parameter.
2834 * symtab.c (search_name_hash): New function.
2835 * symtab.h (search_name_hash): Declare.
2836 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2837
2a1dde5d
PA
28382017-11-08 Pedro Alves <palves@redhat.com>
2839
2840 * cp-name-parser.y (main): Don't initialize extra_chars.
2841
95a6b0a1
TT
28422017-11-07 Tom Tromey <tom@tromey.com>
2843
2844 * event-top.h (command_handler): Constify.
2845 * record-full.c (cmd_record_full_start): Update.
2846 * thread.c (thread_apply_all_command): Update.
2847 * printcmd.c (eval_command): Update.
2848 * mi/mi-main.c (mi_execute_cli_command): Update.
2849 (mi_execute_async_cli_command): Update.
2850 * tui/tui-stack.c (tui_update_command): Update.
2851 * cli/cli-interp.c (safe_execute_command): Constify.
2852 * record.c (record_start): Update.
2853 (record_start, record_stop, cmd_record_start): Update.
2854 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2855 (cmd_record_btrace_pt_start): Update.
2856 (cmd_record_btrace_start): Update.
2857 (cmd_record_btrace_start): Update.
2858 * reverse.c (exec_reverse_once): Update.
2859 * python/python.c (execute_gdb_command): Don't copy the command.
2860 * event-top.c (command_line_handler): Update.
2861 (command_handler): Constify.
2862 * defs.h (deprecated_call_command_hook): Constify.
2863 * cli/cli-script.h (execute_user_command): Constify.
2864 * cli/cli-script.c (execute_user_command): Constify.
2865 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2866 (enum command_control_type): Update.
2867 * main.c (catch_command_errors): Remove non-const overload.
2868 (catch_command_errors_ftype): Remove.
2869 * python/py-cmd.c (cmdpy_function): Constify.
2870 * guile/scm-cmd.c (cmdscm_function): Constify.
2871 * cli/cli-dump.c (call_dump_func): Constify.
2872 * cli/cli-decode.c (do_const_cfunc): Constify.
2873 (do_sfunc): Constify.
2874 (cmd_func): Constify.
2875 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2876 * top.h (execute_command): Constify.
2877 * top.c (execute_command): Constify.
2878 (execute_command_to_string): Constify.
2879 (deprecated_call_command_hook): Constify.
2880 * command.h (cmd_func): Constify.
2881 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2882
eb4c3f4a
TT
28832017-11-07 Tom Tromey <tom@tromey.com>
2884
2885 * ada-lang.c (catch_ada_exception_command): Constify.
2886 (catch_assert_command): Constify.
2887 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2888 (catch_rethrow_command): Constify.
2889 (catch_exception_command_1): Constify.
2890 * breakpoint.h (add_catch_command): Constify.
2891 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2892 (catch_syscall_split_args): Constify.
2893 * break-catch-sig.c (catch_signal_command): Constify.
2894 (catch_signal_split_args): Constify.
2895 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2896 cmd_const_sfunc_ftype.
2897 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2898 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2899 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2900 (add_setshow_string_cmd, struct cmd_list_element)
2901 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2902 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2903 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2904 Constify.
2905 (set_cmd_sfunc): Constify.
2906 (empty_sfunc): Constify.
2907 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2908 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2909 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2910 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2911 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2912 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2913 Constify.
2914 (set_cmd_sfunc): Constify.
2915 (cmd_sfunc_ftype): Remove.
2916 * compile/compile.c (set_compile_args): Constify.
2917 * infrun.c (set_disable_randomization): Constify.
2918 * infcmd.c (set_args_command, set_cwd_command): Constify.
2919 * breakpoint.c (set_condition_evaluation_mode): Constify.
2920 (add_catch_command): Constify.
2921 (catch_fork_command_1, catch_exec_command_1)
2922 (catch_load_command_1, catch_unload_command_1): Constify.
2923 (catch_load_or_unload): Constify.
2924 * guile/scm-param.c (pascm_set_func): Constify.
2925 (add_setshow_generic): Constify.
2926 * python/py-param.c (get_set_value): Constify.
2927 * top.h (set_verbose): Constify.
2928 * tui/tui-win.c (tui_set_var_cmd): Constify.
2929 * mi/mi-main.c (set_mi_async_command): Constify.
2930 * cli/cli-logging.c (set_logging_overwrite)
2931 (set_logging_redirect): Constify.
2932 * value.c (set_max_value_size): Constify.
2933 * valprint.c (set_input_radix, set_output_radix): Constify.
2934 * utils.c (set_width_command, set_height_command): Constify.
2935 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2936 * tracepoint.c (set_disconnected_tracing)
2937 (set_circular_trace_buffer, set_trace_buffer_size)
2938 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2939 * top.c (set_history_size_command, set_verbose, set_editing)
2940 (set_gdb_datadir, set_history_filename): Constify.
2941 * target.c (set_targetdebug, maint_set_target_async_command)
2942 (maint_set_target_non_stop_command, set_target_permissions)
2943 (set_write_memory_permission): Constify.
2944 (open_target): Constify.
2945 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2946 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2947 * symtab.c (set_symbol_cache_size_handler): Constify.
2948 * symfile.c (set_ext_lang_command): Constify.
2949 * symfile-debug.c (set_debug_symfile): Constify.
2950 * source.c (set_directories_command): Constify.
2951 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2952 * serial.c (set_parity): Constify.
2953 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2954 * remote.c (set_remote_exec_file, set_remotebreak)
2955 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2956 * record.c (set_record_insn_history_size)
2957 (set_record_call_history_size): Constify.
2958 * record-full.c (set_record_full_insn_max_num): Constify.
2959 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2960 * osabi.c (set_osabi): Constify.
2961 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2962 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2963 * maint.c (maintenance_set_profile_cmd): Constify.
2964 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2965 * language.c (set_language_command, set_range_command)
2966 (set_case_command): Constify.
2967 * infrun.c (set_non_stop, set_observer_mode)
2968 (set_stop_on_solib_events, set_schedlock_func)
2969 (set_exec_direction_func): Constify.
2970 * infcmd.c (set_inferior_tty_command): Constify.
2971 * disasm.c (set_disassembler_options_sfunc): Constify.
2972 * demangle.c (set_demangling_command): Constify.
2973 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2974 * cris-tdep.c (set_cris_version, set_cris_mode)
2975 (set_cris_dwarf2_cfi): Constify.
2976 * corefile.c (set_gnutarget_command): Constify.
2977 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2978 (set_target_wide_charset_sfunc): Constify.
2979 * breakpoint.c (update_dprintf_commands): Constify.
2980 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2981 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2982 (set_disassembly_style_sfunc): Constify.
2983 * arch-utils.c (set_endian, set_architecture): Constify.
2984 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2985 * agent.c (set_can_use_agent): Constify.
2986
5fed81ff
TT
29872017-11-07 Tom Tromey <tom@tromey.com>
2988
2989 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2990 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2991 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2992 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2993 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2994 (parse_int_arg, show_thread_default_detach_sc_cmd)
2995 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2996 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2997 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2998 (show_task_pause_cmd, set_task_detach_sc_cmd)
2999 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3000 (set_noninvasive_cmd, set_thread_pause_cmd)
3001 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3002 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3003 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3004 * windows-nat.c (display_selectors): Constify.
3005 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3006 non-const "cfunc".
3007 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3008 (cmd_cfunc_eq): Likewise.
3009 (struct cmd_list_element): Likewise.
3010 (do_cfunc): Remove.
3011 (cli_user_command_p): Update.
3012 * command.h (add_cmd): Remove non-const overload.
3013 (cmd_cfunc_ftype): Remove typedef.
3014 (cmd_cfunc_eq): Remove non-const overload.
3015 * value.c (show_values): Constify.
3016 * thread.c (thread_apply_all_command): Constify.
3017 * symfile.c (load_command): Constify.
3018 * source.c (directory_command): Constify.
3019 * maint.c (maintenance_internal_error)
3020 (maintenance_demangler_warning, maintenance_space_display)
3021 (maintenance_print_architecture, maintenance_translate_address)
3022 (maintenance_info_selftests, maintenance_internal_warning):
3023 Constify.
3024 * breakpoint.c (disable_trace_command, enable_trace_command):
3025 Constify.
3026 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3027 Constify.
3028 (add_auto_load_safe_path): Constify.
3029 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3030 * top.h (show_commands): Constify.
3031 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3032 * sparc64-tdep.c (adi_examine_command): Constify.
3033 (adi_assign_command): Constify.
3034
1d12d88f
TT
30352017-11-07 Tom Tromey <tom@tromey.com>
3036
3037 * frame.h (info_locals_command, info_args_command): Constify.
3038 * auto-load.h (auto_load_info_scripts): Constify.
3039 * inferior.h (registers_info): Constify.
3040 * copying.c: Rebuild.
3041 * copying.awk: Constify generated commands.
3042 * auto-load.c (auto_load_info_scripts)
3043 (info_auto_load_gdb_scripts): Constify.
3044 * cli/cli-decode.c (struct cmd_list_element): Take a
3045 cmd_const_cfunc_ftype.
3046 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3047 * tui/tui-win.c (tui_all_windows_info): Constify.
3048 * python/py-auto-load.c (info_auto_load_python_scripts):
3049 Constify.
3050 * cli/cli-cmds.c (show_command): Remove non-const overload.
3051 * tracepoint.c (info_tvariables_command, info_scope_command):
3052 Constify.
3053 (info_static_tracepoint_markers_command): Constify.
3054 * thread.c (info_threads_command): Constify.
3055 (print_thread_info_1): Constify.
3056 * target.c (info_target_command): Constify.
3057 * symtab.c (info_sources_command, info_functions_command)
3058 (info_types_command): Constify.
3059 (info_variables_command): Remove non-const overload.
3060 * symfile.c (info_ext_lang_command): Constify.
3061 * stack.c (info_frame_command, info_locals_command)
3062 (info_args_command): Constify.
3063 (backtrace_command): Remove non-const overload.
3064 * source.c (info_source_command, info_line_command): Constify.
3065 * solib.c (info_sharedlibrary_command): Constify.
3066 * skip.c (info_skip_command): Constify.
3067 * ser-go32.c (info_serial_command): Constify.
3068 * reverse.c (info_bookmarks_command): Constify.
3069 * printcmd.c (info_symbol_command, info_address_command)
3070 (info_display_command): Constify.
3071 * osdata.c (info_osdata_command): Constify.
3072 * objc-lang.c (info_selectors_command, info_classes_command):
3073 Constify.
3074 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3075 * memattr.c (info_mem_command): Constify.
3076 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3077 * linux-fork.c (info_checkpoints_command): Constify.
3078 * infrun.c (info_signals_command): Constify.
3079 * inflow.c (info_terminal_command): Constify.
3080 * inferior.c (info_inferiors_command): Constify.
3081 (print_inferior): Constify.
3082 * infcmd.c (info_program_command, info_all_registers_command)
3083 (info_registers_command, info_vector_command)
3084 (info_float_command): Constify.
3085 (registers_info): Constify.
3086 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3087 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3088 Constify.
3089 * f-valprint.c (info_common_command): Constify.
3090 * dcache.c (info_dcache_command): Constify.
3091 (dcache_info_1): Constify.
3092 * darwin-nat-info.c (info_mach_tasks_command)
3093 (info_mach_task_command, info_mach_ports_command)
3094 (info_mach_port_command, info_mach_threads_command)
3095 (info_mach_thread_command, info_mach_regions_command)
3096 (info_mach_regions_recurse_command, info_mach_region_command)
3097 (info_mach_exceptions_command): Constify.
3098 (get_task_from_args): Constify.
3099 * cp-support.c (info_vtbl_command): Constify.
3100 * breakpoint.c (info_watchpoints_command)
3101 (info_tracepoints_command): Constify.
3102 (info_breakpoints_command): Remove non-const overload.
3103 * avr-tdep.c (avr_io_reg_read_command): Constify.
3104 * auxv.c (info_auxv_command): Constify.
3105 * ada-tasks.c (info_tasks_command): Constify.
3106 (info_task): Constify.
3107 * ada-lang.c (info_exceptions_command): Constify.
3108
0b39b52e
TT
31092017-11-07 Tom Tromey <tom@tromey.com>
3110
3111 * solib.h (no_shared_libraries): Constify.
3112 * frame.h (return_command): Constify.
3113 * cli/cli-cmds.h (quit_command): Constify.
3114 * top.h (quit_command, execute_command): Constify.
3115 * target.h (flash_erase_command): Constify.
3116 * inferior.h (set_inferior_args, attach_command): Constify.
3117 * tracepoint.h (start_tracing, stop_tracing): Constify.
3118 * breakpoint.h (break_command, tbreak_command)
3119 (hbreak_command_wrapper, thbreak_command_wrapper)
3120 (rbreak_command_wrapper, watch_command_wrapper)
3121 (awatch_command_wrapper, rwatch_command_wrapper)
3122 (get_tracepoint_by_number): Constify.
3123 * symtab.c (info_variables_command, rbreak_command)
3124 (symtab_symbol_info): Constify.
3125 (info_variables_command): Add non-const overload.
3126 * top.c (dont_repeat_command): Constify.
3127 * breakpoint.c (ignore_command, commands_command)
3128 (condition_command, tbreak_command, hbreak_command)
3129 (thbreak_command, clear_command, break_command)
3130 (info_breakpoints_command, watch_command, rwatch_command)
3131 (awatch_command, trace_command, ftrace_command, strace_command)
3132 (trace_pass_command, break_range_command, dprintf_command)
3133 (agent_printf_command, get_tracepoint_by_number)
3134 (watch_maybe_just_location, trace_pass_command): Constify.
3135 (info_breakpoints_command): Add non-const overload.
3136 * tracefile.c (tsave_command): Constify.
3137 * infcmd.c (attach_command, disconnect_command, signal_command)
3138 (queue_signal_command, stepi_command, nexti_command)
3139 (finish_command, next_command, step_command, until_command)
3140 (advance_command, jump_command, continue_command, run_command)
3141 (start_command, starti_command, interrupt_command)
3142 (run_command_1, set_inferior_args, step_1): Constify.
3143 * inferior.c (add_inferior_command, remove_inferior_command)
3144 (clone_inferior_command): Constify.
3145 * linux-fork.c (checkpoint_command, restart_command): Constify.
3146 * windows-nat.c (signal_event_command): Constify.
3147 * guile/guile.c (guile_repl_command, guile_command): Constify.
3148 * printcmd.c (x_command, display_command, printf_command)
3149 (output_command, set_command, call_command, print_command)
3150 (eval_command): Constify.
3151 (non_const_set_command): Remove.
3152 (_initialize_printcmd): Update.
3153 * source.c (forward_search_command, reverse_search_command):
3154 Constify.
3155 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3156 Constify.
3157 * infrun.c (handle_command): Constify.
3158 * memattr.c (mem_command): Constify.
3159 * stack.c (return_command, up_command, up_silently_command)
3160 (down_command, down_silently_command, frame_command)
3161 (backtrace_command, func_command, backtrace_command_1): Constify.
3162 (backtrace_command): Add non-const overload.
3163 * remote-sim.c (simulator_command): Constify.
3164 * exec.c (set_section_command): Constify.
3165 * tracepoint.c (tdump_command, trace_variable_command)
3166 (tstatus_command, tstop_command, tstart_command)
3167 (end_actions_pseudocommand, while_stepping_pseudocommand)
3168 (collect_pseudocommand, teval_pseudocommand, actions_command)
3169 (start_tracing, stop_tracing): Constify.
3170 * value.c (init_if_undefined_command): Constify.
3171 * tui/tui-stack.c (tui_update_command): Constify.
3172 * tui/tui-win.c (tui_refresh_all_command)
3173 (tui_set_tab_width_command, tui_set_win_height_command)
3174 (tui_set_focus_command, tui_scroll_forward_command)
3175 (tui_scroll_backward_command, tui_scroll_left_command)
3176 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3177 (tui_set_win_height): Constify.
3178 * tui/tui-layout.c (tui_layout_command): Constify.
3179 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3180 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3181 (proc_untrace_sysexit_cmd): Constify.
3182 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3183 (threadset_test_cmd, threadlist_update_test_cmd)
3184 (threadalive_test): Constify.
3185 * objc-lang.c (print_object_command): Constify.
3186 * command.h (add_com): Constify.
3187 * cli/cli-dump.c (restore_command): Constify.
3188 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3189 (help_command, complete_command, shell_command, edit_command)
3190 (list_command, disassemble_command, make_command)
3191 (apropos_command, alias_command): Constify.
3192 * cli/cli-script.c (document_command, define_command)
3193 (while_command, if_command, validate_comname): Constify.
3194 * cli/cli-decode.c (struct cmd_list_element): Change type of
3195 "fun".
3196 * target.c (do_monitor_command, flash_erase_command): Constify.
3197 * regcache.c (reg_flush_command): Constify.
3198 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3199 (reverse_nexti, reverse_continue, reverse_finish)
3200 (save_bookmark_command, goto_bookmark_command)
3201 (exec_reverse_once): Constify.
3202 * python/python.c (python_interactive_command, python_command):
3203 Constify.
3204 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3205 Constify.
3206 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3207 * gcore.c (gcore_command): Constify.
3208
85c4be7c
TT
32092017-11-07 Tom Tromey <tom@tromey.com>
3210
3211 * printcmd.c (x_command): Call set_repeat_arguments.
3212 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3213 * top.c (repeat_arguments): New global.
3214 (set_repeat_arguments): New function.
3215 (execute_command): Handle repeat_arguments.
3216 (show_commands): Calls set_repeat_arguments.
3217 * command.h (set_repeat_arguments): Declare.
3218
022643b4
TT
32192017-11-07 Tom Tromey <tom@tromey.com>
3220
3221 * stack.c (backtrace_command): Use std::string.
3222 (backtrace_command_1): Make "count_exp" const.
3223
5614fb77
TT
32242017-11-07 Tom Tromey <tom@tromey.com>
3225
3226 * source.c (directory_switch, mod_path, add_path): Constify.
3227 * defs.h (add_path, mod_path, directory_switch): Constify.
3228 * mi/mi-cmd-env.c (env_mod_path): Constify.
3229
6be9a197
TT
32302017-11-07 Tom Tromey <tom@tromey.com>
3231
3232 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3233 (run_command_1, continue_command, step_1, jump_command)
3234 (signal_command, until_command, advance_command, finish_command)
3235 (attach_command): Update.
3236
c2252c0d
TT
32372017-11-07 Tom Tromey <tom@tromey.com>
3238
3239 * command.h (set_cmd_cfunc): Don't declare.
3240 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3241
1ee870c5
TT
32422017-11-07 Tom Tromey <tom@tromey.com>
3243
3244 * stack.c (select_frame_command): Constify.
3245 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3246 * command.h (add_com_suppress_notification): Constify.
3247
ee7ddd71
TT
32482017-11-07 Tom Tromey <tom@tromey.com>
3249
3250 * breakpoint.c (stop_command): Constify.
3251 * cli/cli-decode.c (struct cmd_list_element): Constify.
3252 * command.h (add_abbrev_prefix_cmd): Constify.
3253
95e95a6d
PA
32542017-11-07 Pedro Alves <palves@redhat.com>
3255
3256 * breakpoint.c (extract_bp_kind): New enum.
3257 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3258 factored out from ...
3259 (extract_bp_number_and_location): ... here.
3260 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3261
cc638e86
PA
32622017-11-07 Pedro Alves <palves@redhat.com>
3263
3264 * breakpoint.c (extract_bp_number_and_location): Change return
3265 type to void. Throw error instead of warning.
3266 (enable_disable_command): Adjust.
3267
d0fe4701
XR
32682017-11-07 Xavier Roirand <roirand@adacore.com>
3269 Pedro Alves <palves@redhat.com>
3270
3271 * breakpoint.c (map_breakpoint_number_range): New, factored out
3272 from ...
3273 (map_breakpoint_numbers): ... here.
3274 (find_location_by_number): Change parameters from string to
3275 breakpoint number and location.
3276 (extract_bp_number_and_location): New function.
3277 (enable_disable_bp_num_loc)
3278 (enable_disable_breakpoint_location_range)
3279 (enable_disable_command): New functions, factored out ...
3280 (enable_command, disable_command): ... these functions, and
3281 adjusted to support ranges.
3282 * NEWS: Document enable/disable breakpoint location range feature.
3283
635dc5b2
LM
32842017-11-06 Luis Machado <luis.machado@linaro.org>
3285
3286 * MAINTAINERS (Write After Approval): Update my e-mail address.
3287
556e5da5
PA
32882017-11-06 Pedro Alves <palves@redhat.com>
3289
3290 * gnu-nat.c (gnu_terminal_init): Delete.
3291 (gnu_target): Don't install gnu_terminal_init.
3292 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3293 (child_terminal_init): ... this function.
3294
d1928160
PA
32952017-11-06 Pedro Alves <palves@redhat.com>
3296
3297 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3298 sgtty.h.
3299 * config.in, configure: Regenerate.
3300
6aa899ce
PA
33012017-11-06 Pedro Alves <palves@redhat.com>
3302
3303 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3304 (async_init_signals): Adjust.
3305 (handle_stop_sig): Rename to ...
3306 (handle_sigtstp): ... this.
3307 (async_stop_sig): Rename to ...
3308 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3309 SIGTSTP path.
3310 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3311 instead of STOP_SIGNAL thoughout.
3312 (handle_stop_sig): Rename to ...
3313 (handle_sigtstp): ... this.
3314 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3315
a94799ac
PA
33162017-11-06 Pedro Alves <palves@redhat.com>
3317
3318 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3319 longer set flags twice in row.
3320
726e1356
PA
33212017-11-06 Pedro Alves <palves@redhat.com>
3322
3323 * Makefile.in (SER_HARDWIRE): Update comment.
3324 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3325 * common/gdb_termios.h: Delete file.
3326 * common/job-control.c: Include termios.h and unistd.h instead of
3327 gdb_termios.h.
3328 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3329 check.
3330 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3331 Remove sgtty code.
3332 * configure.ac: No longer check for termio.h and sgtty.h.
3333 * configure: Regenerate.
3334 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3335 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3336 Replace PROCESS_GROUP_TYPE references with pid_t references
3337 throughout.
3338 (gdb_getpgrp): Delete.
3339 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3340 (child_terminal_inferior): Remove comment. Remove sgtty code.
3341 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3342 gdb_getpgrp. Use serial_set_tty_state instead aof
3343 serial_noflush_set_tty_state. Remove sgtty code.
3344 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3345 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3346 (inferior_process_group): Now returns pid_t.
3347 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3348 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3349 * ser-event.c (serial_event_ops): Update.
3350 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3351 (dos_ops): Update.
3352 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3353 * ser-pipe.c (pipe_ops): Update.
3354 * ser-tcp.c (tcp_ops): Update.
3355 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3356 HAVE_TERMIOS checks.
3357 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3358 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3359 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3360 assume termios.
3361 (hardwire_noflush_set_tty_state): Delete.
3362 (hardwire_print_tty_state, hardwire_drain_output)
3363 (hardwire_flush_output, hardwire_flush_input)
3364 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3365 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3366 code, and assume termios.
3367 (hardwire_ops): Update.
3368 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3369 * serial.c (serial_noflush_set_tty_state): Delete.
3370 * serial.h (serial_noflush_set_tty_state): Delete.
3371 (serial_ops::noflush_set_tty_state): Delete.
3372
1cfb73db
UW
33732017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3374
3375 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3376 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3377 (COMMON_OBS): Remove doublest.o and dfp.o.
3378 Do not build target-float.c (instead of doublest.c)
3379 with -Wformat-nonliteral.
3380
3381 * doublest.c: Remove file.
3382 * doublest.h: Remove file.
3383 * dfp.c: Remove file.
3384 * dfp.h: Remove file.
3385
3386 * target-float.c: Do not include "doublest.h" and "dfp.h".
3387 (DOUBLEST): Move here from doublest.h.
3388 (enum float_kind): Likewise.
3389 (FLOATFORMAT_CHAR_BIT): Likewise.
3390 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3391 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3392 (floatformat_precision): Likewise.
3393 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3394 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3395 Likewise.
3396 (host_float_format, host_double_format, host_long_double_format):
3397 Likewise.
3398 (floatformat_to_string, floatformat_from_string): Likewise.
3399 (floatformat_to_doublest): Likewise. Also, inline the original
3400 convert_floatformat_to_doublest.
3401 (floatformat_from_doublest): Likewise. Also, inline the original
3402 convert_floatformat_from_doublest.
3403
3404 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3405 (MAX_DECIMAL_STRING): Move here from dfp.c.
3406 (match_endianness): Likewise.
3407 (set_decnumber_context, decimal_check_errors): Likewise.
3408 (decimal_from_number, decimal_to_number): Likewise.
3409 (decimal_to_string, decimal_from_string): Likewise. Make static.
3410 (decimal_from_longest, decimal_from_ulongest): Likewise.
3411 (decimal_to_longest): Likewise.
3412 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3413 (decimal_convert): Likewise.
3414
b07e9c46
UW
34152017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3416
3417 * doublest.c: Do not include "gdbtypes.h".
3418 (extract_typed_floating): Remove.
3419 (store_typed_floating): Remove.
3420 (convert_typed_floating): Remove.
3421 * doublest.h (struct type): Remove.
3422 (DOUBLEST_PRINT_FORMAT): Remove.
3423 (DOUBLEST_SCAN_FORMAT): Remove.
3424 (extract_typed_floating): Remove.
3425 (store_typed_floating): Remove.
3426 (convert_typed_floating): Remove.
3427
3428 * dfp.c (decimal_from_doublest): Remove.
3429 (decimal_to_doublest): Remove.
3430 * dfp.h: Do not include "doublest.h".
3431 (decimal_from_doublest): Remove.
3432 (decimal_to_doublest): Remove.
3433
3434 * value.c: Do not include "doublest.h" and "dfp.h".
3435 (value_as_double): Remove.
3436 (unpack_double): Remove.
3437 (value_from_double): Remove.
3438 (value_from_decfloat): Remove.
3439 * value.h: Do not include "doublest.h".
3440 (value_as_double): Remove.
3441 (unpack_double): Remove.
3442 (value_from_double): Remove.
3443 (value_from_decfloat): Remove.
3444
3b2ca824
UW
34452017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3446
3447 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3448 (i386_extract_return_value): Use target_float_convert.
3449 (i386_store_return_value): Likewise.
3450 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3451 (i387_value_to_register): Likewise.
3452 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3453 (ia64_register_to_value): Use target_float_convert.
3454 (ia64_value_to_register): Likewise.
3455 (ia64_extract_return_value): Likewise.
3456 (ia64_store_return_value): Likewise.
3457 (ia64_push_dummy_call): Likewise.
3458 * m68k-tdep.c: Include "target-float.h".
3459 (m68k_register_to_value): Use target_float_convert.
3460 (m68k_value_to_register): Likewise.
3461 (m68k_svr4_extract_return_value): Likewise.
3462 (m68k_svr4_store_return_value): Likewise.
3463 * ppc-sysv-tdep.c: Include "target-float.h".
3464 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3465 (do_ppc_sysv_return_value): Likewise.
3466 (ppc64_sysv_abi_push_freg): Likewise.
3467 (ppc64_sysv_abi_return_value_base): Likewise.
3468 * rs6000-aix-tdep.c: Include "target-float.h".
3469 (rs6000_push_dummy_call): Use target_float_convert.
3470 (rs6000_return_value): Likewise.
3471 * rs6000-lynx178-tdep.c: Include "target-float.h".
3472 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3473 (rs6000_lynx178_return_value): Likewise.
3474 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3475 (rs6000_register_to_value): Use target_float_convert.
3476 (rs6000_value_to_register): Likewise.
3477 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3478 (arm_extract_return_value): Use target_float_convert.
3479 (arm_store_return_value): Likewise.
3480 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3481 (sh_register_convert_to_virtual): Use target_float_convert.
3482 (sh_register_convert_to_raw): Likewise.
3483 * sh64-tdep.c: Include "target-float.h".
3484 (sh64_extract_return_value): Use target_float_convert.
3485 (sh64_register_convert_to_virtual): Likewise.
3486 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3487
14ad9311
UW
34882017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3489
3490 * target-float.c (floatformat_to_host_double): New function.
3491 (floatformat_from_host_double): Likewise.
3492 (target_float_to_host_double): Likewise.
3493 (target_float_from_host_double): Likewise.
3494 * target-float.h (target_float_to_host_double): Add prototype.
3495 (target_float_from_host_double): Likewise.
3496
3497 * guile/scm-value.c: Include "target-float.h".
3498 (gdbscm_value_to_real): Use target_float_to_host_double.
3499 Handle integer source values via value_as_long.
3500 * guile/scm-math.c: Include "target-float.h". Do not include
3501 "doublest.h", "dfp.h", and "expression.h".
3502 (vlscm_convert_typed_number): Use target_float_from_host_double.
3503 (vlscm_convert_number): Likewise.
3504
3505 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3506 (convert_value_from_python): Use target_float_from_host_double.
3507
50eff16b
UW
35082017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3509
3510 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3511 (cast_from_fixed): Likewise.
3512 (ada_scaling_type): New function.
3513 (ada_delta): Return value instead of DOUBLEST. Perform target
3514 arithmetic instead of host arithmetic.
3515 (scaling_factor): Rename to ...
3516 (ada_scaling_factor) ... this. Make non-static. Return value instead
3517 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3518 (ada_fixed_to_float): Remove.
3519 (ada_float_to_fixed): Remove.
3520 * ada-lang.h (ada_fixed_to_float): Remove.
3521 (ada_float_to_fixed): Remove.
3522 (ada_delta): Return value instead of DOUBLEST.
3523 (ada_scaling_factor): Add prototype.
3524
3525 * ada-typeprint.c: Include "target-float.h".
3526 (print_fixed_point_type): Perform target arithmetic instead of
3527 host arithmetic.
3528 * ada-valprint.c: Include "target-float.h".
3529 (ada_val_print_num): Perform target arithmetic instead of
3530 host arithmetic for fixed-point types.
3531
66c02b9e
UW
35322017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3533
3534 * target-float.c: Include <math.h>.
3535 (floatformat_binop): New function.
3536 (floatformat_compare): Likewise.
3537 (target_float_binop): Likewise.
3538 (target_float_compare): Likewise.
3539 * target-float.h: Include "expression.h".
3540 (target_float_binop): Add prototype.
3541 (target_float_compare): Likewise.
3542
3543 * valarith.c: Do not include "doublest.h" and "dfp.h".
3544 Include "common/byte-vector.h".
3545 (value_args_as_decimal): Remove, replace by ...
3546 (value_args_as_target_float): ... this function. Handle both
3547 binary and decimal target floating-point formats.
3548 (scalar_binop): Handle both binary and decimal FP using
3549 value_args_as_target_float and target_float_binop.
3550 (value_equal): Handle both binary and decimal FP using
3551 value_args_as_target_float and target_float_compare.
3552 (value_less): Likewise.
3553 (value_pos): Handle all scalar types as simple copy.
3554 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3555 * dfp.c (decimal_binop): Throw error instead of internal_error
3556 when called with an unsupported operation code.
3557
f69fdf9b
UW
35582017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3559
3560 * target-float.c (target_float_to_string): New function.
3561 (target_float_from_string): New function.
3562 * target-float.h (target_float_to_string): Add prototype.
3563 (target_float_from_string): Add prototype.
3564
3565 * valprint.c: Include "target-float.h". Do not include
3566 "doublest.h" and "dfp.h".
3567 (print_floating): Use target_float_to_string.
3568 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3569 (printf_floating): Use target_float_to_string.
3570 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3571 (print_i387_value): Use target_float_to_string.
3572 * mips-tdep.c: Include "target-float.h".
3573 (mips_print_fp_register): Use target_float_to_string.
3574 * sh64-tdep.c: Include "target-float.h".
3575 (sh64_do_fp_register): Use target_float_to_string.
3576
3577 * parse.c: Include "target-float.h". Do not include
3578 "doublest.h" and "dfp.h".
3579 (parse_float): Use target_float_from_string.
3580 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3581 (define_symbol): Use target_float_from_string.
3582 * gdbarch-selftests.c: Include "target-float.h".
3583 (register_to_value_test): Use target_float_from_string.
3584
70100014
UW
35852017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3586
3587 * Makefile.c (SFILES): Add target-float.c.
3588 (HFILES_NO_SRCDIR): Add target-float.h.
3589 (COMMON_OBS): Add target-float.o.
3590 * target-float.h: New file.
3591 * target-float.c: New file.
3592
3593 * doublest.c (floatformat_classify): Fix detection of float_zero.
3594
3595 * gdbtypes.c (is_floating_type): New function.
3596 * gdbtypes.h (is_floating_type): Add prototype.
3597
3598 * value.c: Do not include "floatformat.h".
3599 (unpack_double): Use target_float_is_valid.
3600 (is_floating_value): New function.
3601 * value.h (is_floating_value): Add prototype-
3602
3603 * valarith.c: Include "target-float.h".
3604 (value_logical_not): Use target_float_is_zero.
3605
3606 * python/py-value.c: Include "target-float.h".
3607 (valpy_nonzero): Use target_float_is_zero.
3608
ab4b1c46
TT
36092017-11-04 Tom Tromey <tom@tromey.com>
3610
3611 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3612
454dafbd
TT
36132017-11-04 Tom Tromey <tom@tromey.com>
3614
3615 * breakpoint.c (set_momentary_breakpoint): Return
3616 breakpoint_up.
3617 (until_break_command): Update.
3618 (new_until_break_fsm): Change argument types to
3619 breakpoint_up.
3620 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3621 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3622 Remove.
3623 * infcmd.c (finish_forward): Update.
3624 * breakpoint.h (set_momentary_breakpoint)
3625 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3626 (make_cleanup_delete_breakpoint): Remove.
3627 (struct breakpoint_deleter): New.
3628 (breakpoint_up): New typedef.
3629 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3630 (insert_exception_resume_breakpoint): Update.
3631 (insert_exception_resume_from_probe): Update.
3632 (insert_longjmp_resume_breakpoint): Update.
3633 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3634 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3635 * infcall.c (call_function_by_hand_dummy): Update
3636
331b71e5
TT
36372017-11-04 Tom Tromey <tom@tromey.com>
3638
3639 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3640
9f584b37
TT
36412017-11-04 Tom Tromey <tom@tromey.com>
3642
3643 * linux-tdep.c (linux_core_info_proc_mappings): Use
3644 gdb::def_vector.
3645 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3646 "size" argument.
3647 (linux_corefile_thread): Update.
3648 (linux_make_corefile_notes): Remove unused variable.
3649
779bc38e
TT
36502017-11-04 Tom Tromey <tom@tromey.com>
3651
3652 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3653 gdb::byte_vector.
3654
ed2b3126
TT
36552017-11-04 Tom Tromey <tom@tromey.com>
3656
3657 * objfiles.c (do_free_objfile_cleanup): Remove.
3658 * compile/compile-object-load.c (compile_object_load): Update.
3659 * objfiles.h (make_cleanup_free_objfile): Remove.
3660
7f6743fd
TT
36612017-11-04 Tom Tromey <tom@tromey.com>
3662
3663 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3664 (adi_read_versions): Change "tags" to "gdb_byte *".
3665 (adi_print_versions): Likewise.
3666
c80049d3
TT
36672017-11-04 Tom Tromey <tom@tromey.com>
3668
3669 * breakpoint.c
3670 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3671 from start_rbreak_breakpoints.
3672 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3673 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3674 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3675 * symtab.c (do_end_rbreak_breakpoints): Remove.
3676 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3677
167b0be1
TT
36782017-11-04 Tom Tromey <tom@tromey.com>
3679
3680 * cp-namespace.c (reset_directive_searched): Remove.
3681 (cp_lookup_symbol_via_imports): Use scoped_restore.
3682 * cp-support.c (reset_directive_searched): Remove.
3683 (make_symbol_overload_list_using): Use scoped_restore.
3684 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3685 (reset_directive_searched): Remove.
3686
5eae7aea
TT
36872017-11-04 Tom Tromey <tom@tromey.com>
3688
3689 * symfile.c (find_separate_debug_file_by_debuglink): Use
3690 unique_xmalloc_ptr.
3691
c6bcad5f
TT
36922017-11-04 Tom Tromey <tom@tromey.com>
3693
3694 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3695 type of "info".
3696 (compute_stack_depth): Likewise.
3697 (do_compile_dwarf_expr_to_c): Use std::vector.
3698
20dcd8ca
TT
36992017-11-04 Tom Tromey <tom@tromey.com>
3700
3701 * compile/compile-object-load.c (link_callbacks_einfo): Use
3702 std::string.
3703
33c7c59d
TT
37042017-11-04 Tom Tromey <tom@tromey.com>
3705
3706 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3707 Use scoped_free_pendings.
3708 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3709 scoped_free_pendings.
3710 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3711 (xcoff_initial_scan): Likewise.
3712 * buildsym.c (reset_symtab_globals): Update comment.
3713 (scoped_free_pendings): Rename from really_free_pendings.
3714 (prepare_for_building): Update comment.
3715 (buildsym_init): Likewise.
3716 * buildsym.h (class scoped_free_pendings): New class.
3717 (really_free_pendings): Don't declare.
3718
67fa57cf
UW
37192017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3720
3721 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3722 output when converting a zero value to a special byteorder format.
3723
f26ae15b
YQ
37242017-11-02 Yao Qi <yao.qi@linaro.org>
3725
3726 * frame.c (do_frame_register_read): Remove aspace.
3727 * jit.c (jit_frame_sniffer): Likwise.
3728 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3729 * regcache.c (regcache::regcache): Pass nullptr.
3730 (regcache_print): Caller updated.
3731 * regcache.h (regcache::regcache): Remove one constructor
3732 parameter aspace.
3733
6c6e9412
YQ
37342017-11-02 Yao Qi <yao.qi@linaro.org>
3735
3736 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3737
8b86c959
YQ
37382017-11-02 Yao Qi <yao.qi@linaro.org>
3739
3740 * breakpoint.c (insert_single_step_breakpoints): Update.
3741 * frame.c (struct frame_info) <aspace>: Add const.
3742 (frame_save_as_regcache): Add const.
3743 (get_frame_address_space): Return const address_space *.
3744 * frame.h (get_frame_address_space): Update declaration.
3745 * infrun.c (struct step_over_info) <aspace>: Add const.
3746 (set_step_over_info): Make aspace const.
3747 (displaced_step_prepare_throw): Change variable const.
3748 (resume): Likewise.
3749 (proceed): Likewise.
3750 (adjust_pc_after_break): Likewise.
3751 (save_waitstatus): Likewise.
3752 (handle_signal_stop): Likewise.
3753 (keep_going_pass_signal): Likewise.
3754 * jit.c (jit_frame_sniffer): Add const.
3755 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3756 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3757 * record-full.c (record_full_wait_1): Likewise.
3758 * regcache.c (regcache::regcache): Change parameter to const.
3759 * regcache.h (regcache::regcache): Likewise.
3760 (regcache::aspace): Return const address_space *.
3761 (regcache) <m_aspace>: Add const.
3762
a01bda52
YQ
37632017-11-02 Yao Qi <yao.qi@linaro.org>
3764
3765 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3766 * frame.c (create_sentinel_frame): Likewise.
3767 * infrun.c (displaced_step_prepare_throw): Likewise.
3768 (resume): Likewise.
3769 (thread_still_needs_step_over_bp): Likewise.
3770 (proceed): Likewise.
3771 (do_target_wait): Likewise.
3772 (adjust_pc_after_break): Likewise.
3773 (handle_syscall_event): Likewise.
3774 (save_waitstatus): Likewise.
3775 (handle_inferior_event_1): Likewise.
3776 (handle_signal_stop): Likewise.
3777 (keep_going_pass_signal): Likewise.
3778 * linux-nat.c (status_callback): Likewise.
3779 (save_stop_reason): Likewise.
3780 (resume_stopped_resumed_lwps): Likewise.
3781 * record-full.c (record_full_exec_insn): Likewise.
3782 (record_full_wait_1): Likewise.
3783 * regcache.c (get_regcache_aspace): Remove.
3784 * regcache.h (get_regcache_aspace): Remove.
3785
d999647b
YQ
37862017-11-02 Yao Qi <yao.qi@linaro.org>
3787
3788 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3789 (init_regcache_descr): Use gdbarch_num_regs.
3790 (regcache::regcache): Likewise.
3791 (regcache::get_register_status): Likewise.
3792 (regcache::assert_raw_regnum): Likewise.
3793 (regcache::cooked_read): Likewise.
3794 (regcache::cooked_read_value): Likewise.
3795 (regcache::cooked_write): Likewise.
3796 (regcache::dump): Likewise.
3797 (regcache::num_raw_registers): New method.
3798 * regcache.h (class regcache) <num_raw_registers>: New.
3799
4e888c28
YQ
38002017-11-02 Yao Qi <yao.qi@linaro.org>
3801
3802 * regcache.c (regcache::assert_regnum): New method.
3803 (regcache::invalidate): Call assert_regnum.
3804 (regcache::raw_update): Likewise.
3805 (regcache::raw_write): Likewise.
3806 (regcache::raw_read_part): Likewise.
3807 (regcache::raw_write_part): Likewise.
3808 (regcache::raw_supply): Likewise.
3809 (regcache::raw_supply_integer): Likewise.
3810 (regcache::raw_supply_zeroed): Likewise.
3811 (regcache::raw_collect): Likewise.
3812 (regcache::raw_collect_integer): Likewise.
3813 * regcache.h (regcache::assert_regnum): Declare.
3814
2e1b49b3
YQ
38152017-11-02 Yao Qi <yao.qi@linaro.org>
3816
3817 * regcache.c (regcache::dump): Remove code.
3818
6c5218df
YQ
38192017-11-02 Yao Qi <yao.qi@linaro.org>
3820
3821 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3822 Remove.
3823 <sizeof_cooked_register_status>: Remove.
3824 (init_regcache_descr): Update.
3825 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3826 (regcache::save): Likewise.
3827 (regcache::dump): Likewise.
3828
dcc31d28
JB
38292017-11-01 James Bowman <james.bowman@ftdichip.com>
3830
3831 * ft32-tdep.c (ft32_fetch_instruction): New function.
3832 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3833
3a87ae65
SM
38342017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3835
3836 * cli/cli-script.c (execute_control_command): Rename to ...
3837 (execute_control_command_1): ... this.
3838 (execute_control_command): New function.
3839
09b847f3
SM
38402017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3841
3842 * tracepoint.c (tfind_command): Remove const_cast.
3843
f871c485
MG
38442017-10-30 Mike Gulick <mgulick@mathworks.com>
3845
3846 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3847
b020ff80
SM
38482017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3849
3850 * common/common-utils.h (in_inclusive_range): New function.
3851 * arm-tdep.c (arm_record_extension_space): Use
3852 in_inclusive_range.
3853 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3854 * cris-tdep.c (cris_spec_reg_applicable): Use
3855 in_inclusive_range.
3856
1b81856f
PA
38572017-10-30 Pedro Alves <palves@redhat.com>
3858 Simon Marchi <simon.marchi@ericsson.com>
3859
3860 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3861 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3862
31b833b3
PA
38632017-10-30 Pedro Alves <palves@redhat.com>
3864
3865 * common/common-utils.c (string_appendf, string_vappendf): New
3866 functions.
3867 * common/common-utils.h (string_appendf, string_vappendf): New
3868 declarations.
3869 * unittests/common-utils-selftests.c (string_appendf_func)
3870 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3871 (string_vappendf_tests): New functions.
3872 (_initialize_common_utils_selftests): Register "string_appendf" and
3873 "string_vappendf tests".
3874
4a250334
PA
38752017-10-30 Pedro Alves <palves@redhat.com>
3876
3877 * unittests/common-utils-selftests.c (format_func): New typedef.
3878 (string_printf_tests, string_vprintf_tests): Tests factored out
3879 and merged to ...
3880 (test_format_func): ... this new function.
3881 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3882 test_format_func.
3883
16c5c17e
SM
38842017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3885
3886 * darwin-nat.c: Remove include of gdb.h.
3887
7ca51576
SM
38882017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3889
3890 * xtensa-xtregs.c: Fix formatting issues.
3891
c1342859
SM
38922017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3893
3894 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3895
484d8d36
MD
38962017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3897
3898 PR python/21213
3899 * python/py-infthread.c (thpy_get_inferior): Increment reference
3900 of inferior before returning it.
3901
b5540b5f
SM
39022017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3903
3904 * unittests/common-utils-selftests.c (format): Add
3905 ATTRIBUTE_PRINTF.
3906
5a9dcda1
SM
39072017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3908
3909 * xml-syscall.c (struct syscall_desc): Add constructor.
3910 <name>: Change type to std::string.
3911 (syscall_desc_up): New typedef.
3912 (syscall_desc_p): Remove typeder.
3913 (DEF_VEC_P(syscall_desc_p)): Remove.
3914 (struct syscall_group_desc): Add constructor.
3915 <name>: Change type to std::string.
3916 <syscalls>: Change type to std::vector.
3917 (syscall_group_desc_up): New typedef.
3918 (syscall_group_desc_p): Remove typedef.
3919 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3920 (struct syscalls_info) <syscalls>: Change type to std::vector of
3921 unique_ptr.
3922 <groups>: Likewise.
3923 <my_gdb_datadir>: Change type to std::string.
3924 (syscalls_info_up): New typedef.
3925 (allocate_syscalls_info): Remove.
3926 (syscalls_info_free_syscalls_desc): Remove.
3927 (syscalls_info_free_syscall_group_desc): Remove.
3928 (free_syscalls_info): Remove.
3929 (make_cleanup_free_syscalls_info): Remove.
3930 (syscall_group_create_syscall_group_desc): Adjust.
3931 (syscall_group_add_syscall): Adjust.
3932 (syscall_create_syscall_desc): Adjust.
3933 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3934 (init_syscalls_info): Adjust.
3935 (syscall_group_get_group_by_name): Adjust.
3936 (xml_get_syscall_number): Adjust.
3937 (xml_get_syscall_name): Adjust.
3938 (xml_list_of_syscalls): Adjust.
3939 (xml_list_syscalls_by_group): Adjust.
3940 (xml_list_of_groups): Adjust.
3941
45461e0d
SM
39422017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3943
3944 * probe.h: Don't include gdb_vecs.h.
3945 (DEF_VEC_P (probe_p)): Remove.
3946 (find_probes_in_objfile): Return an std::vector.
3947 * probe.c (find_probes_in_objfile): Likewise.
3948 * breakpoint.c (breakpoint_objfile_data)
3949 <longjmp_probes>: Change type to std::vector.
3950 <exception_probes>: Likewise.
3951 (free_breakpoint_probes): Don't manually free vectors.
3952 (create_longjmp_master_breakpoint): Adjust.
3953 (create_exception_master_breakpoint): Adjust.
3954 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3955 parameter type, adjust.
3956 (svr4_create_solib_event_breakpoints): Adjust.
3957
43dce439
SM
39582017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3959
3960 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3961 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3962 with new.
3963 (free_breakpoint_probes): Rename to ...
3964 (free_breakpoint_objfile_data): ... this, and call delete on
3965 bp_objfile_data..
3966
6a1b9516
SM
39672017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3970 (loaded_script_ptr): Remove typedef.
3971 (DEF_VEC_P (loaded_script_ptr)): Remove.
3972 (struct collect_matching_scripts_data): Add constructor.
3973 <scripts_p>: Change type to (pointer to) std::vector.
3974 (collect_matching_scripts_data): Adjust.
3975 (sort_scripts_by_name): Make suitable for std::sort.
3976 (print_scripts): Don't sort vector, adjust to std::vector.
3977 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3978
593e3209
SM
39792017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3980
3981 * symfile.c (filename_language): Make struct, not typedef. Add
3982 constructor.
3983 <ext>: Change type to std::string.
3984 (DEF_VEC_O (filename_language)): Remove.
3985 (filename_language_table): Change type to std::vector.
3986 (add_filename_language): Adjust.
3987 (set_ext_lang_command): Adjust.
3988 (info_ext_lang_command): Adjust.
3989 (deduce_language_from_filename): Adjust.
3990 (class scoped_restore_filename_language_table): Remove.
3991 (test_filename_language): Use scoped_restore.
3992 (test_set_ext_lang_command): Use scoped_restore, adjust to
3993 std::vector change.
3994
32fa66eb
SM
39952017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3996
3997 * symfile.c: Include selftest.h.
3998 (class scoped_restore_filename_language_table): New.
3999 (test_filename_language): New test.
4000 (test_set_ext_lang_command): New test.
4001 (_initialize_symfile): Register tests.
4002
4a27f119
KS
40032017-10-27 Keith Seitz <keiths@redhat.com>
4004
4005 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4006 in the bp_location, falling back to find_pc_sect_function when
4007 needed.
4008 (add_location_to_breakpoint): Save sal->symbol.
4009 * breakpoint.h (struct bp_location) <symbol>: New field.
4010 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4011 * symtab.h (struct symtab_and_line) <symbol>: New field.
4012
a43f3893
PF
40132017-10-26 Patrick Frants <osscontribute@gmail.com>
4014
7453e6b2 4015 PR gdb/13669
a43f3893
PF
4016 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4017 to rewind obstack.
4018
23cc4e1b
PA
40192017-10-26 Pedro Alves <palves@redhat.com>
4020
4021 * remote.c (remote_async_terminal_ours_p): Delete.
4022 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4023 Remove references to 'remote_async_terminal_ours_p'.
4024
6abc18bb
YQ
40252017-10-26 Yao Qi <yao.qi@linaro.org>
4026
4027 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4028
bd522513
YQ
40292017-10-26 Yao Qi <yao.qi@linaro.org>
4030
4031 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4032 aspace const.
4033 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4034 Likewise.
4035 * breakpoint.c (bpstat_check_location): Remove cast.
4036 (breakpoint_hit_catch_fork): Make aspce const.
4037 (breakpoint_hit_catch_solib): Likewise.
4038 (breakpoint_hit_catch_exec): Likewise.
4039 (breakpoint_hit_ranged_breakpoint): Likewise.
4040 (breakpoint_hit_watchpoint): Likewise.
4041 (base_breakpoint_breakpoint_hit): Likewise.
4042 (bkpt_breakpoint_hit): Likewise.
4043 (dprintf_breakpoint_hit): Likewise.
4044 (tracepoint_breakpoint_hit): Likewise.
4045 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4046
accd0bcd
YQ
40472017-10-26 Yao Qi <yao.qi@linaro.org>
4048
4049 * breakpoint.c (breakpoint_location_address_match): Change
4050 "struct address_space *" to "const address_space".
4051 (breakpoint_location_address_range_overlap): Likewise.
4052 (breakpoint_here_p): Likewise.
4053 (breakpoint_in_range_p): Likewise.
4054 (moribund_breakpoint_here_p): Likewise.
4055 (bp_location_inserted_here_p): Likewise.
4056 (software_breakpoint_inserted_here_p): Likewise.
4057 (hardware_breakpoint_inserted_here_p): Likewise.
4058 (hardware_watchpoint_inserted_in_range): Likewise.
4059 (bpstat_check_location): Likewise.
4060 (bpstat_stop_status): Likewise.
4061 (breakpoint_address_match): Likewise.
4062 (breakpoint_address_match_range): Likewise.
4063 (breakpoint_location_address_match): Likewise.
4064 (breakpoint_location_address_range_overlap): Likewise.
4065 (insert_single_step_breakpoint): Likewise.
4066 (breakpoint_has_location_inserted_here): Likewise.
4067 (single_step_breakpoint_inserted_here_p): Likewise.
4068 (pc_at_non_inline_function): Likewise.
4069 * breakpoint.h (bpstat_stop_status): Update declaration.
4070 (breakpoint_here_p): Likewise.
4071 (breakpoint_in_range_p): Likewise.
4072 (moribund_breakpoint_here_p): Likewise.
4073 (breakpoint_inserted_here_p): Likewise.
4074 (software_breakpoint_inserted_here_p): Likewise.
4075 (hardware_breakpoint_inserted_here_p): Likewise.
4076 (breakpoint_has_location_inserted_here): Likewise.
4077 (single_step_breakpoint_inserted_here_p): Likewise.
4078 (hardware_watchpoint_inserted_in_range): Likewise.
4079 (breakpoint_address_match): Likewise.
4080 (insert_single_step_breakpoint): Likewise.
4081 (pc_at_non_inline_function): Likewise.
4082 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4083 * record.c (record_check_stopped_by_breakpoint): Likewise.
4084 * record.h (record_check_stopped_by_breakpoint): Likewise.
4085 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4086
ac7936df
YQ
40872017-10-25 Yao Qi <yao.qi@linaro.org>
4088
4089 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4090 regcache->arch () instead get_regcache_arch.
4091 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4092 Likewise.
4093 (aarch64_fbsd_store_inferior_registers): Likewise.
4094 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4095 (store_gregs_to_thread): Likewise.
4096 (fetch_fpregs_from_thread): Likewise.
4097 (store_fpregs_to_thread): Likewise.
4098 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4099 (aarch64_store_return_value): Likewise.
4100 (aarch64_software_single_step): Likewise.
4101 * aix-thread.c (aix_thread_wait): Likewise.
4102 (supply_reg32): Likewise.
4103 (supply_sprs64): Likewise.
4104 (supply_sprs32): Likewise.
4105 (fill_gprs64): Likewise.
4106 (fill_gprs32): Likewise.
4107 (fill_sprs64): Likewise.
4108 (fill_sprs32): Likewise.
4109 (store_regs_user_thread): Likewise.
4110 (store_regs_kernel_thread): Likewise.
4111 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4112 (alphabsd_store_inferior_registers): Likewise.
4113 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4114 (alpha_store_return_value): Likewise.
4115 (alpha_deal_with_atomic_sequence): Likewise.
4116 (alpha_next_pc): Likewise.
4117 (alpha_software_single_step): Likewise.
4118 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4119 (amd64bsd_store_inferior_registers): Likewise.
4120 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4121 Likewise.
4122 (amd64_linux_store_inferior_registers): Likewise.
4123 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4124 (amd64_collect_native_gregset): Likewise.
4125 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4126 (amd64obsd_collect_uthread): Likewise.
4127 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4128 (amd64_collect_fpregset): Likewise.
4129 (amd64_supply_fxsave): Likewise.
4130 (amd64_supply_xsave): Likewise.
4131 (amd64_collect_fxsave): Likewise.
4132 (amd64_collect_xsave): Likewise.
4133 * arc-tdep.c (arc_write_pc): Likewise.
4134 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4135 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4136 (arm_fbsd_store_inferior_registers): Likewise.
4137 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4138 (store_vfp_regs): Likewise.
4139 (arm_linux_fetch_inferior_registers): Likewise.
4140 (arm_linux_store_inferior_registers): Likewise.
4141 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4142 (arm_linux_sigreturn_next_pc): Likewise.
4143 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4144 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4145 (fetch_register): Likewise.
4146 (store_register): Likewise.
4147 * arm-tdep.c (arm_is_thumb): Likewise.
4148 (displaced_in_arm_mode): Likewise.
4149 (bx_write_pc): Likewise.
4150 (arm_get_next_pcs_addr_bits_remove): Likewise.
4151 (arm_software_single_step): Likewise.
4152 (arm_extract_return_value): Likewise.
4153 (arm_store_return_value): Likewise.
4154 (arm_write_pc): Likewise.
4155 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4156 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4157 (bsd_uthread_store_registers): Likewise.
4158 * core-regset.c (fetch_core_registers): Likewise.
4159 * corelow.c (get_core_registers): Likewise.
4160 * cris-tdep.c (cris_store_return_value): Likewise.
4161 (cris_extract_return_value): Likewise.
4162 (find_step_target): Likewise.
4163 (find_step_target): Likewise.
4164 (cris_software_single_step): Likewise.
4165 * ctf.c (ctf_fetch_registers): Likewise.
4166 * darwin-nat.c (cancel_breakpoint): Likewise.
4167 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4168 * frv-tdep.c (frv_extract_return_value): Likewise.
4169 * ft32-tdep.c (ft32_store_return_value): Likewise.
4170 (ft32_extract_return_value): Likewise.
4171 * go32-nat.c (fetch_register): Likewise.
4172 (go32_fetch_registers): Likewise.
4173 (go32_store_registers): Likewise.
4174 (store_register): Likewise.
4175 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4176 (h8300_store_return_value): Likewise.
4177 * hppa-linux-nat.c (fetch_register): Likewise.
4178 (store_register): Likewise.
4179 (hppa_linux_fetch_inferior_registers): Likewise.
4180 (hppa_linux_store_inferior_registers): Likewise.
4181 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4182 (i386_darwin_store_inferior_registers): Likewise.
4183 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4184 (gnu_store_registers): Likewise.
4185 * i386-linux-nat.c (fetch_register): Likewise.
4186 (store_register): Likewise.
4187 (supply_gregset): Likewise.
4188 (fill_gregset): Likewise.
4189 (i386_linux_fetch_inferior_registers): Likewise.
4190 (i386_linux_store_inferior_registers): Likewise.
4191 (i386_linux_resume): Likewise.
4192 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4193 Likewise.
4194 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4195 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4196 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4197 (i386obsd_collect_uthread): Likewise.
4198 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4199 (i386_supply_gregset): Likewise.
4200 (i386_collect_gregset): Likewise.
4201 (i386_supply_fpregset): Likewise.
4202 (i386_collect_fpregset): Likewise.
4203 (i386_mpx_bd_base): Likewise.
4204 * i386-v4-nat.c (supply_fpregset): Likewise.
4205 (fill_fpregset): Likewise.
4206 * i387-tdep.c (i387_supply_fsave): Likewise.
4207 (i387_collect_fsave): Likewise.
4208 (i387_supply_fxsave): Likewise.
4209 (i387_collect_fxsave): Likewise.
4210 (i387_supply_xsave): Likewise.
4211 (i387_collect_xsave): Likewise.
4212 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4213 (ia64_linux_store_registers): Likewise.
4214 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4215 (ia64_extract_return_value): Likewise.
4216 (ia64_store_return_value): Likewise.
4217 (find_func_descr): Likewise.
4218 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4219 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4220 (inf_ptrace_store_registers): Likewise.
4221 * infrun.c (use_displaced_stepping): Likewise.
4222 (displaced_step_prepare_throw): Likewise.
4223 (resume): Likewise.
4224 (proceed): Likewise.
4225 (do_target_wait): Likewise.
4226 (adjust_pc_after_break): Likewise.
4227 (handle_inferior_event_1): Likewise.
4228 (handle_signal_stop): Likewise.
4229 (save_infcall_suspend_state): Likewise.
4230 (restore_infcall_suspend_state): Likewise.
4231 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4232 * jit.c (jit_frame_prev_register): Likewise.
4233 * linux-nat.c (save_stop_reason): Likewise.
4234 (linux_nat_wait_1): Likewise.
4235 (resume_stopped_resumed_lwps): Likewise.
4236 * linux-record.c (record_linux_sockaddr): Likewise.
4237 (record_linux_msghdr): Likewise.
4238 (record_linux_system_call): Likewise.
4239 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4240 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4241 (lm32_store_return_value): Likewise.
4242 * m32c-tdep.c (m32c_read_flg): Likewise.
4243 (m32c_pseudo_register_read): Likewise.
4244 (m32c_pseudo_register_write): Likewise.
4245 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4246 (m32r_linux_collect_gregset): Likewise.
4247 * m32r-tdep.c (m32r_store_return_value): Likewise.
4248 (m32r_extract_return_value): Likewise.
4249 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4250 (m68kbsd_collect_fpregset): Likewise.
4251 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4252 * m68k-linux-nat.c (fetch_register): Likewise.
4253 (old_fetch_inferior_registers): Likewise.
4254 (old_store_inferior_registers): Likewise.
4255 (store_regs): Likewise.
4256 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4257 (m68k_svr4_store_return_value): Likewise.
4258 * m88k-tdep.c (m88k_store_arguments): Likewise.
4259 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4260 (mi_cmd_data_write_register_values): Likewise.
4261 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4262 (mips_fbsd_store_inferior_registers): Likewise.
4263 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4264 (mips_fbsd_supply_gregs): Likewise.
4265 (mips_fbsd_collect_fpregs): Likewise.
4266 (mips_fbsd_collect_gregs): Likewise.
4267 (mips_fbsd_supply_fpregset): Likewise.
4268 (mips_fbsd_collect_fpregset): Likewise.
4269 (mips_fbsd_supply_gregset): Likewise.
4270 (mips_fbsd_collect_gregset): Likewise.
4271 * mips-linux-nat.c (supply_gregset): Likewise.
4272 (fill_gregset): Likewise.
4273 (supply_fpregset): Likewise.
4274 (fill_fpregset): Likewise.
4275 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4276 (mips_fill_gregset): Likewise.
4277 (mips_supply_fpregset): Likewise.
4278 (mips_fill_fpregset): Likewise.
4279 (mips64_supply_gregset): Likewise.
4280 (micromips_linux_sigframe_validate): Likewise.
4281 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4282 (mipsnbsd_fetch_inferior_registers): Likewise.
4283 (mipsnbsd_store_inferior_registers): Likewise.
4284 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4285 (mipsnbsd_supply_gregset): Likewise.
4286 (mipsnbsd_iterate_over_regset_sections): Likewise.
4287 (mipsnbsd_supply_reg): Likewise.
4288 (mipsnbsd_supply_fpreg): Likewise.
4289 * mips-tdep.c (mips_in_frame_stub): Likewise.
4290 (mips_dummy_id): Likewise.
4291 (is_octeon_bbit_op): Likewise.
4292 (micromips_bc1_pc): Likewise.
4293 (extended_mips16_next_pc): Likewise.
4294 (mips16_next_pc): Likewise.
4295 (deal_with_atomic_sequence): Likewise.
4296 * moxie-tdep.c (moxie_process_readu): Likewise.
4297 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4298 * nto-procfs.c (procfs_store_registers): Likewise.
4299 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4300 (ppcfbsd_store_inferior_registers): Likewise.
4301 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4302 (fetch_altivec_register): Likewise.
4303 (get_spe_registers): Likewise.
4304 (fetch_spe_register): Likewise.
4305 (fetch_altivec_registers): Likewise.
4306 (fetch_all_gp_regs): Likewise.
4307 (fetch_all_fp_regs): Likewise.
4308 (store_vsx_register): Likewise.
4309 (store_altivec_register): Likewise.
4310 (set_spe_registers): Likewise.
4311 (store_spe_register): Likewise.
4312 (store_altivec_registers): Likewise.
4313 (store_all_gp_regs): Likewise.
4314 (store_all_fp_regs): Likewise.
4315 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4316 (ppc_linux_collect_gregset): Likewise.
4317 (ppc_canonicalize_syscall): Likewise.
4318 (ppc_linux_record_signal): Likewise.
4319 (ppu2spu_prev_register): Likewise.
4320 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4321 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4322 (ppcobsd_store_registers): Likewise.
4323 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4324 Likewise.
4325 (ppc_ravenscar_generic_store_registers): Likewise.
4326 * procfs.c (procfs_fetch_registers): Likewise.
4327 (procfs_store_registers): Likewise.
4328 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4329 (ravenscar_store_registers): Likewise.
4330 (ravenscar_prepare_to_store): Likewise.
4331 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4332 * record-full.c (record_full_wait_1): Likewise.
4333 (record_full_registers_change): Likewise.
4334 (record_full_store_registers): Likewise.
4335 (record_full_core_fetch_registers): Likewise.
4336 (record_full_save): Likewise.
4337 (record_full_goto_insn): Likewise.
4338 * regcache.c (regcache_register_size): Likewise.
4339 (get_regcache_arch): Remove.
4340 (regcache_read_pc): Likewise.
4341 * regcache.h (get_regcache_arch): Remove.
4342 * remote-sim.c (gdbsim_fetch_register): Likewise.
4343 (gdbsim_store_register): Likewise.
4344 * remote.c (fetch_register_using_p): Likewise.
4345 (send_g_packet): Likewise.
4346 (remote_prepare_to_store): Likewise.
4347 (store_registers_using_G): Likewise.
4348 * reverse.c (save_bookmark_command): Likewise.
4349 (goto_bookmark_command): Likewise.
4350 * rs6000-aix-tdep.c (branch_dest): Likewise.
4351 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4352 (fetch_register): Likewise.
4353 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4354 (ppc_collect_reg): Likewise.
4355 (ppc_collect_gregset): Likewise.
4356 (ppc_collect_fpregset): Likewise.
4357 (ppc_collect_vsxregset): Likewise.
4358 (ppc_collect_vrregset): Likewise.
4359 (ppc_displaced_step_hw_singlestep): Likewise.
4360 (rs6000_pseudo_register_read): Likewise.
4361 (rs6000_pseudo_register_write): Likewise.
4362 * s390-linux-nat.c (supply_gregset): Likewise.
4363 (fill_gregset): Likewise.
4364 (s390_linux_fetch_inferior_registers): Likewise.
4365 * s390-linux-tdep.c (s390_write_pc): Likewise.
4366 (s390_software_single_step): Likewise.
4367 (s390_all_but_pc_registers_record): Likewise.
4368 (s390_linux_syscall_record): Likewise.
4369 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4370 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4371 (shnbsd_store_inferior_registers): Likewise.
4372 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4373 (sh_extract_return_value_fpu): Likewise.
4374 (sh_store_return_value_nofpu): Likewise.
4375 (sh_corefile_supply_regset): Likewise.
4376 (sh_corefile_collect_regset): Likewise.
4377 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4378 (sh64_store_return_value): Likewise.
4379 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4380 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4381 (sparc_store_inferior_registers): Likewise.
4382 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4383 (sparc_ravenscar_prepare_to_store): Likewise.
4384 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4385 (sparc_analyze_control_transfer): Likewise.
4386 (sparc_step_trap): Likewise.
4387 (sparc_software_single_step): Likewise.
4388 (sparc32_gdbarch_init): Likewise.
4389 (sparc_supply_rwindow): Likewise.
4390 (sparc_collect_rwindow): Likewise.
4391 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4392 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4393 (sparc64nbsd_collect_gregset): Likewise.
4394 (sparc64nbsd_supply_fpregset): Likewise.
4395 (sparc64nbsd_collect_fpregset): Likewise.
4396 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4397 (sparc64_supply_gregset): Likewise.
4398 (sparc64_collect_gregset): Likewise.
4399 (sparc64_supply_fpregset): Likewise.
4400 (sparc64_collect_fpregset): Likewise.
4401 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4402 * spu-tdep.c (spu_unwind_sp): Likewise.
4403 (spu2ppu_prev_register): Likewise.
4404 (spu_memory_remove_breakpoint): Likewise.
4405 * stack.c (return_command): Likewise.
4406 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4407 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4408 * tracefile.c (trace_save_ctf): Likewise.
4409 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4410 (do_windows_store_inferior_registers): Likewise.
4411 (windows_resume): Likewise.
4412 * xtensa-linux-nat.c (fill_gregset): Likewise.
4413 (supply_gregset_reg): Likewise.
4414 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4415 (xtensa_register_read_masked): Likewise.
4416 (xtensa_supply_gregset): Likewise.
4417 (xtensa_extract_return_value): Likewise.
4418 (xtensa_store_return_value): Likewise.
4419
edd079d9
UW
44202017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4421
4422 * doublest.c (floatformat_from_string): New function.
4423 * doublest.h (floatformat_from_string): Add prototype.
4424
4425 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4426 (OP_FLOAT): ... this.
4427 * expression.h: Do not include "doublest.h".
4428 (union exp_element): Replace doubleconst and decfloatconst by
4429 new element floatconst.
4430 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4431 (ada_evaluate_subexp): Likewise.
4432 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4433 OP_DOUBLE and OP_DECFLOAT.
4434 * expprint.c (print_subexp_standard): Likewise.
4435 (dump_subexp_body_standard): Likewise.
4436 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4437
4438 * parse.c: Include "dfp.h".
4439 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4440 (write_exp_elt_floatcst): New function.
4441 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4442 and OP_DECFLOAT.
4443 (operator_check_standard): Likewise.
4444 (parse_float): Do not accept suffix. Take type as input. Return bool.
4445 Return target format buffer instead of host DOUBLEST.
4446 Use floatformat_from_string and decimal_from_string to parse
4447 either binary or decimal floating-point types.
4448 (parse_c_float): Remove.
4449 * parser-defs.h: Do not include "doublest.h".
4450 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4451 (write_exp_elt_floatcst): Add prototype.
4452 (parse_float): Update prototype.
4453 (parse_c_float): Remove.
4454
4455 * c-exp.y: Do not include "dfp.h".
4456 (typed_val_float): Use byte buffer instead of DOUBLEST.
4457 (typed_val_decfloat): Remove.
4458 (DECFLOAT): Remove.
4459 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4460 (parse_number): Update to new parse_float interface.
4461 Parse suffixes and determine type before calling parse_float.
4462 Handle decimal and binary FP types the same way.
4463
4464 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4465 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4466 (parse_number): Update to new parse_float interface.
4467 Parse suffixes and determine type before calling parse_float.
4468
4469 * f-exp.y: Replace dval by typed_val_float.
4470 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4471 (parse_number): Use parse_float instead of atof.
4472
4473 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4474 (parse_go_float): Remove.
4475 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4476 (parse_number): Call parse_float instead of parse_go_float.
4477 Parse suffixes and determine type before calling parse_float.
4478
4479 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4480 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4481 (parse_number): Update to new parse_float interface.
4482 Parse suffixes and determine type before calling parse_float.
4483
4484 * m2-exp.y: Replace dval by byte buffer val.
4485 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4486 (parse_number): Call parse_float instead of atof.
4487
4488 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4489 (lex_number): Call parse_float instead of strtod.
4490 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4491 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4492 Use write_exp_elt_floatcst.
4493 (unit_testing): Remove static variable.
4494 (rust_type): Do not check unit_testing.
4495 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4496
4497 * ada-exp.y (type_float, type_double): Remove.
4498 (typed_val_float): Use byte buffer instead of DOUBLEST.
4499 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4500 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4501
cc628f3d
AH
45022017-10-25 Alan Hayward <alan.hayward@arm.com>
4503
4504 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4505 * arch/aarch64.h: New file.
4506
09a7c6aa
UW
45072017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4508
4509 * dfp.h (decimal_from_string): Use const reference for argument.
4510 * dfp.c (decimal_from_string): Likewise.
4511
8ba0dd51
UW
45122017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4513
4514 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4515 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4516 * mips-tdep.c (mips_print_fp_register): Likewise.
4517
16e812b2
UW
45182017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4519
4520 * common/format.h (enum argclass): Replace decfloat_arg by
4521 dec32float_arg, dec64float_arg, and dec128float_arg.
4522 * common/format.c (parse_format_string): Update to return
4523 new decimal float argument classes.
4524
4525 * printcmd.c (printf_decfloat): Rename to ...
4526 (printf_floating): ... this. Add argclass argument, and use it
4527 instead of parsing the format string again. Add support for
4528 binary floating-point values, using floatformat_to_string.
4529 Convert value to the target format if it doesn't already match.
4530 (ui_printf): Call printf_floating instead of printf_decfloat,
4531 also for double_arg / long_double_arg. Pass argclass.
4532
4533 * dfp.c (decimal_to_string): Add format string argument.
4534 * dfp.h (decimal_to_string): Likewise.
4535
4536 * doublest.c (floatformat_to_string): Add format string argument.
4537 * doublest.h (floatformat_to_string): Likewise.
4538
fdf0cbc2
UW
45392017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4540
4541 * doublest.c (floatformat_precision): New routine.
4542 (floatformat_to_string): Likewise.
4543 * doublest.c (floatformat_to_string): Add prototype.
4544
4545 * printcmd.c (print_scalar_formatted): Only call print_floating
4546 on floating-point types.
4547 * valprint.c: Do not include "floatformat.h".
4548 (generic_val_print_decfloat): Remove.
4549 (generic_val_print): Call generic_val_print_float for both
4550 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4551 (print_floating): Use floatformat_to_string. Handle decimal float.
4552 (print_decimal_floating): Remove, merge into floatformat_to_string.
4553 * value.h (print_decimal_floating): Remove.
4554
4555 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4556
5033013f
UW
45572017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4558
4559 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4560
a664f67e
SM
45612017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4562
4563 * memattr.h: Don't include vec.h.
4564 (struct mem_attrib): Initialize fields.
4565 <unknown>: New static method.
4566 (struct mem_region): Add constructors, operator<, initialize
4567 fields.
4568 * memattr.c: Include algorithm.
4569 (default_mem_attrib, unknown_mem_attrib): Remove.
4570 (user_mem_region_list): New global.
4571 (target_mem_region_list, mem_region_list): Change type to
4572 std::vector<mem_region>.
4573 (mem_use_target): Now a function.
4574 (target_mem_regions_valid): Change type to bool.
4575 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4576 (require_user_regions): Adjust.
4577 (require_target_regions): Adjust.
4578 (create_mem_region): Adjust.
4579 (lookup_mem_region): Adjust.
4580 (invalidate_target_mem_regions): Adjust.
4581 (mem_clear): Rename to...
4582 (user_mem_clear): ... this, and adjust.
4583 (mem_command): Adjust.
4584 (info_mem_command): Adjust.
4585 (mem_enable, enable_mem_command, mem_disable,
4586 disable_mem_command): Adjust.
4587 (mem_delete): Adjust.
4588 (delete_mem_command): Adjust.
4589 * memory-map.h (parse_memory_map): Return an std::vector.
4590 * memory-map.c (parse_memory_map): Likewise.
4591 (struct memory_map_parsing_data): Add constructor.
4592 <memory_map>: Point to std::vector.
4593 (memory_map_start_memory): Adjust.
4594 (memory_map_end_memory): Adjust.
4595 (memory_map_end_property): Adjust.
4596 (clear_result): Remove.
4597 * remote.c (remote_memory_map): Return an std::vector.
4598 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4599 Remove.
4600 (target_debug_print_mem_region_vector): New.
4601 * target-delegates.c: Regenerate.
4602 * target.h (mem_region_vector): New typedef.
4603 (to_memory_map): Return mem_region_vector.
4604 (target_memory_map): Return an std::vector.
4605 * target.c (target_memory_map): Return an std::vector.
4606 (flash_erase_command): Adjust.
4607
6e17c565
SM
46082017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4609
4610 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4611 Change type to std::string.
4612 (memory_map_start_property): Adjust.
4613 (memory_map_end_property): Adjust.
4614
cfba9872
SM
46152017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4616
4617 * infrun.h: Include common/byte-vector.h.
4618 (struct displaced_step_closure): New struct.
4619 (struct buf_displaced_step_closure): New struct.
4620 * infrun.c (displaced_step_closure::~displaced_step_closure):
4621 Provide default implementation.
4622 (displaced_step_clear): Deallocate step closure with delete.
4623 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4624 (aarch64_displaced_step_closure): ... this, extend
4625 displaced_step_closure.
4626 (aarch64_displaced_step_data) <dsc>: Change type to
4627 aarch64_displaced_step_closure.
4628 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4629 unique_ptr.
4630 (aarch64_displaced_step_fixup): Add cast for displaced step
4631 closure.
4632 * amd64-tdep.c (displaced_step_closure): Rename to ...
4633 (amd64_displaced_step_closure): ... this, extend
4634 displaced_step_closure.
4635 <insn_buf>: Change type to std::vector<gdb_byte>.
4636 <max_len>: Remove.
4637 (fixup_riprel): Change type of DSC parameter, adjust to type
4638 change of insn_buf.
4639 (fixup_displaced_copy): Change type of DSC parameter.
4640 (amd64_displaced_step_copy_insn): Instantiate
4641 amd64_displaced_step_closure.
4642 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4643 to type change of insn_buf.
4644 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4645 parameter DSC.
4646 (arm_linux_copy_svc): Likewise.
4647 (cleanup_kernel_helper_return): Likewise.
4648 (arm_catch_kernel_helper_return): Likewise.
4649 (arm_linux_displaced_step_copy_insn): Instantiate
4650 arm_displaced_step_closure.
4651 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4652 (displaced_read_reg): Change type of parameter DSC.
4653 (branch_write_pc): Likewise.
4654 (load_write_pc): Likewise.
4655 (alu_write_pc): Likewise.
4656 (displaced_write_reg): Likewise.
4657 (arm_copy_unmodified): Likewise.
4658 (thumb_copy_unmodified_32bit): Likewise.
4659 (thumb_copy_unmodified_16bit): Likewise.
4660 (cleanup_preload): Likewise.
4661 (install_preload): Likewise.
4662 (arm_copy_preload): Likewise.
4663 (thumb2_copy_preload): Likewise.
4664 (install_preload_reg): Likewise.
4665 (arm_copy_preload_reg): Likewise.
4666 (cleanup_copro_load_store): Likewise.
4667 (install_copro_load_store): Likewise.
4668 (arm_copy_copro_load_store) Likewise.
4669 (thumb2_copy_copro_load_store): Likewise.
4670 (cleanup_branch): Likewise.
4671 (install_b_bl_blx): Likewise.
4672 (arm_copy_b_bl_blx): Likewise.
4673 (thumb2_copy_b_bl_blx): Likewise.
4674 (thumb_copy_b): Likewise.
4675 (install_bx_blx_reg): Likewise.
4676 (arm_copy_bx_blx_reg): Likewise.
4677 (thumb_copy_bx_blx_reg): Likewise.
4678 (cleanup_alu_imm): Likewise.
4679 (arm_copy_alu_imm): Likewise.
4680 (thumb2_copy_alu_imm): Likewise.
4681 (cleanup_alu_reg): Likewise.
4682 (install_alu_reg): Likewise.
4683 (arm_copy_alu_reg): Likewise.
4684 (thumb_copy_alu_reg): Likewise.
4685 (cleanup_alu_shifted_reg): Likewise.
4686 (install_alu_shifted_reg): Likewise.
4687 (arm_copy_alu_shifted_reg): Likewise.
4688 (cleanup_load): Likewise.
4689 (cleanup_store): Likewise.
4690 (arm_copy_extra_ld_st): Likewise.
4691 (install_load_store): Likewise.
4692 (thumb2_copy_load_literal): Likewise.
4693 (thumb2_copy_load_reg_imm): Likewise.
4694 (arm_copy_ldr_str_ldrb_strb): Likewise.
4695 (cleanup_block_load_all): Likewise.
4696 (cleanup_block_store_pc): Likewise.
4697 (cleanup_block_load_pc): Likewise.
4698 (arm_copy_block_xfer): Likewise.
4699 (thumb2_copy_block_xfer): Likewise.
4700 (cleanup_svc): Likewise.
4701 (install_svc): Likewise.
4702 (arm_copy_svc): Likewise.
4703 (thumb_copy_svc): Likewise.
4704 (arm_copy_undef): Likewise.
4705 (thumb_32bit_copy_undef): Likewise.
4706 (arm_copy_unpred): Likewise.
4707 (arm_decode_misc_memhint_neon): Likewise.
4708 (arm_decode_unconditional): Likewise.
4709 (arm_decode_miscellaneous): Likewise.
4710 (arm_decode_dp_misc): Likewise.
4711 (arm_decode_ld_st_word_ubyte): Likewise.
4712 (arm_decode_media): Likewise.
4713 (arm_decode_b_bl_ldmstm): Likewise.
4714 (arm_decode_ext_reg_ld_st): Likewise.
4715 (thumb2_decode_dp_shift_reg): Likewise.
4716 (thumb2_decode_ext_reg_ld_st): Likewise.
4717 (arm_decode_svc_copro): Likewise.
4718 (thumb2_decode_svc_copro): Likewise.
4719 (install_pc_relative): Likewise.
4720 (thumb_copy_pc_relative_16bit): Likewise.
4721 (thumb_decode_pc_relative_16bit): Likewise.
4722 (thumb_copy_pc_relative_32bit): Likewise.
4723 (thumb_copy_16bit_ldr_literal): Likewise.
4724 (thumb_copy_cbnz_cbz): Likewise.
4725 (thumb2_copy_table_branch): Likewise.
4726 (cleanup_pop_pc_16bit_all): Likewise.
4727 (thumb_copy_pop_pc_16bit): Likewise.
4728 (thumb_process_displaced_16bit_insn): Likewise.
4729 (decode_thumb_32bit_ld_mem_hints): Likewise.
4730 (thumb_process_displaced_32bit_insn): Likewise.
4731 (thumb_process_displaced_insn): Likewise.
4732 (arm_process_displaced_insn): Likewise.
4733 (arm_displaced_init_closure): Likewise.
4734 (arm_displaced_step_fixup): Add cast for closure.
4735 * arm-tdep.h: Include infrun.h.
4736 (displaced_step_closure): Rename to ...
4737 (arm_displaced_step_closure): ... this, extend
4738 displaced_step_closure.
4739 <u::svc::copy_svc_os>: Change type of parameter DSC.
4740 <cleanup>: Likewise.
4741 (arm_process_displaced_insn): Likewise.
4742 (arm_displaced_init_closure): Likewise.
4743 (displaced_read_reg): Likewise.
4744 (displaced_write_reg): Likewise.
4745 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4746 Adjust.
4747 * i386-tdep.h: Include infrun.h.
4748 (i386_displaced_step_closure): New typedef.
4749 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4750 i386_displaced_step_closure.
4751 (i386_displaced_step_fixup): Adjust.
4752 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4753 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4754 and unique_ptr.
4755 (ppc_displaced_step_fixup): Adjust.
4756 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4757 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4758 and unique_ptr.
4759 (s390_displaced_step_fixup): Adjust.
4760
b392b304
SM
47612017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4764 Remove declarations.
4765
d5833c62
TT
47662017-10-20 Tom Tromey <tom@tromey.com>
4767
4768 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4769 std::vector.
4770 (gdb_bfd_record_inclusion): Update.
4771 (bfdp): Remove typedef.
4772
06d5bbc8
TT
47732017-10-20 Tom Tromey <tom@tromey.com>
4774
4775 * gdb_bfd.c (gdb_bfd_ref): Use new.
4776 (struct gdb_bfd_data): Add constructor, destructor, and member
4777 initializers.
4778 (gdb_bfd_unref): Use delete.
4779
2712ce2e
TT
47802017-10-20 Tom Tromey <tom@tromey.com>
4781
4782 * exec.c (exec_file_attach): Use new_bfd_ref.
4783 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4784 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4785 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4786 new_bfd_ref.
4787 * gdb_bfd.h (new_bfd_ref): New function.
4788
fcc8fb2f
PA
47892017-10-20 Pedro Alves <palves@redhat.com>
4790
4791 * main.c (captured_command_loop): Add attribute noinline.
4792
4c2287b0
SM
47932017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4794
4795 * interps.c (struct interp_factory): Add constructor.
4796 (interp_factory_p): Remove typedef.
4797 (DEF_VEC_P(interp_factory_p)): Remove.
4798 (interpreter_factories): Change type to std::vector.
4799 (interp_factory_register): Adjust.
4800 (interp_lookup): Adjust.
4801 (interpreter_completer): Adjust.
4802
3d415c26
TT
48032017-10-19 Tom Tromey <tom@tromey.com>
4804
4805 * break-catch-syscall.c (catch_syscall_completer): Use
4806 std::string, gdb::unique_xmalloc_ptr.
4807
395423c4
TT
48082017-10-19 Tom Tromey <tom@tromey.com>
4809
4810 * infcall.c (call_function_by_hand_dummy): Use std::string.
4811
54f70bc1
TT
48122017-10-19 Tom Tromey <tom@tromey.com>
4813
4814 * mi/mi-main.c (mi_cmd_execute): Update.
4815 * top.h (prepare_execute_command): Return scoped_value_mark.
4816 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4817 Add move constructor.
4818 * top.c (prepare_execute_command): Return scoped_value_mark.
4819 (execute_command): Update.
4820
63929e84
PA
48212017-10-19 Pedro Alves <palves@redhat.com>
4822
4823 * xml-support.c (xml_fetch_content_from_file): Check fread's
4824 return.
4825
a75868f5
PA
48262017-10-19 Pedro Alves <palves@redhat.com>
4827
4828 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4829 async.
4830 (handle_error_fd): New function.
4831 (ser_base_async): Add/delete an event loop file handler for
4832 error_fd.
4833
2edf834e
PA
48342017-10-19 Pedro Alves <palves@redhat.com>
4835
4836 * xml-support.c (xml_fetch_content_from_file): Don't read in
4837 chunks. Instead use fseek to determine the file's size, and read
4838 it in one go.
4839
c8ba13ad
KS
48402017-11-18 Keith Seitz <keiths@redhat.com>
4841
4842 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4843 types.
4844 Add whitespace to front of type name.
4845
37534686
KS
48462017-10-18 Keith Seitz <keiths@redhat.com>
4847
4848 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4849 DW_AT_accessibility.
4850
28c7c158
YQ
48512017-10-18 Yao Qi <yao.qi@linaro.org>
4852
4853 * features/tic6x-c62x-linux.c: Remove.
4854
30f0b101
TT
48552017-10-17 Tom Tromey <tom@tromey.com>
4856
4857 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4858 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4859 (do_mixed_source_and_assembly): Likewise.
4860
57e12da9
TT
48612017-10-17 Tom Tromey <tom@tromey.com>
4862
4863 * regcache.c (regcache::xfer_part): Remove assertion.
4864
7b700999
PA
48652017-10-17 Pedro Alves <palves@redhat.com>
4866
4867 * xml-support.c (xml_fetch_content_from_file): Call
4868 unique_ptr::release() instead unique_ptr::get() when passing
4869 through xrealloc.
4870
d3037ba6
YQ
48712017-10-17 Yao Qi <yao.qi@linaro.org>
4872
4873 * regcache.c (regcache::xfer_part): Remove parameters read and
4874 write, add parameter is_raw. All callers are updated.
4875
83d5a34d
KS
48762017-10-16 Keith Seitz <keiths@redhat.com>
4877
4878 * c-typeprint.c (enum access_specifier): Moved here from
4879 c_type_print_base.
4880 (output_access_specifier): New function.
4881 (c_type_print_base): Consider typedefs when assessing
4882 whether access labels are needed.
4883 Use output_access_specifier as needed.
4884 Output access specifier for typedefs, if needed.
4885 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4886 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4887 fields.
4888 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4889 accessor macros.
4890
87028b87
TT
48912017-10-16 Tom Tromey <tom@tromey.com>
4892
4893 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4894 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4895 * target.c (target_fileio_read_stralloc): Update.
4896 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4897 * target.h (target_fileio_read_stralloc): Return
4898 unique_xmalloc_ptr.
4899
b7b030ad
TT
49002017-10-16 Tom Tromey <tom@tromey.com>
4901
4902 * xml-syscall.c (xml_init_syscalls_info): Update.
4903 * xml-support.c (xinclude_start_include): Update.
4904 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4905 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4906 (xml_fetch_content_from_file): Likewise.
4907 * osdata.c (get_osdata): Update.
4908 * target.h (target_read_stralloc, target_get_osdata): Return
4909 unique_xmalloc_ptr.
4910 * solib-aix.c (solib_aix_get_library_list): Update.
4911 * solib-target.c (solib_target_current_sos): Update.
4912 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4913 * xml-tdesc.c (fetch_available_features_from_target): Update.
4914 (target_fetch_description_xml): Update.
4915 (file_read_description_xml): Update.
4916 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4917 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4918 (remote_pid_to_exec_file): Update.
4919 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4920 (target_get_osdata): Likewise.
4921
b80406ac
TT
49222017-10-16 Tom Tromey <tom@tromey.com>
4923
4924 * remote.c (remote_register_number_and_offset): Use std::vector.
4925 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4926 (putpkt_binary): Use gdb::def_vector.
4927 (compare_sections_command): Use gdb::byte_vector.
4928
a90ecff8
TT
49292017-10-16 Tom Tromey <tom@tromey.com>
4930
4931 * ppc-linux-nat.c (hwdebug_insert_point): Use
4932 gdb::unique_xmalloc_ptr, XDUP.
4933
2dc0e219
TT
49342017-10-16 Tom Tromey <tom@tromey.com>
4935
4936 * probe.c (parse_probes): Use std::string.
4937 (info_probes_for_ops, enable_probes_command)
4938 (disable_probes_command): Remove cleanups.
4939
b05628f0
TT
49402017-10-16 Tom Tromey <tom@tromey.com>
4941
4942 * buildsym.c (block_compar): Remove.
4943 (end_symtab_get_static_block): Use std::vector.
4944
a79b1bc6
SM
49452017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4946
4947 * memrange.h (struct mem_range): Define operator< and operator==.
4948 (mem_range_s): Remove.
4949 (DEF_VEC_O (mem_range_s)): Remove.
4950 (normalize_mem_ranges): Change parameter type to std::vector.
4951 * memrange.c (compare_mem_ranges): Remove.
4952 (normalize_mem_ranges): Change parameter type to std::vector,
4953 adjust to vector change.
4954 * exec.c (section_table_available_memory): Return vector, remove
4955 parameter.
4956 (section_table_read_available_memory): Adjust to std::vector
4957 change.
4958 * remote.c (remote_read_bytes): Adjust to std::vector
4959 change.
4960 * tracepoint.h (traceframe_available_memory): Change parameter
4961 type to std::vector.
4962 * tracepoint.c (traceframe_available_memory): Change parameter
4963 type to std::vector, adjust.
4964 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4965 std::vector change.
4966 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4967 unittests/memrange-selftests.c.
4968 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4969 * gdb/unittests/memrange-selftests.c: New file.
4970
63f0e930
PA
49712017-10-16 Pedro Alves <palves@redhat.com>
4972
4973 * elfread.c (probe_key_free): Rename range-for variable.
4974 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4975 (find_probe_by_pc, collect_probes): Rename range-for variable.
4976
c40c7bfc
YQ
49772017-10-16 Yao Qi <yao.qi@linaro.org>
4978
4979 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4980 * features/tic6x-c62x.c: Remove.
4981 * features/tic6x-c64x-linux.c: Remove.
4982 * features/tic6x-c64x.c: Remove.
4983 * features/tic6x-c64xp-linux.c: Remove.
4984 * features/tic6x-c64xp.c: Remove.
4985 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4986 initialize_tdesc_tic6x_*_linux functions.
4987 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4988 initialize_tdesc_tic6x_* functions.
4989
df27ae6a
YQ
49902017-10-16 Yao Qi <yao.qi@linaro.org>
4991
4992 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4993 tic6x-c62x.
4994 * regformats/tic6x-c62x.dat: Remove.
4995 * regformats/tic6x-c64x.dat: Remove.
4996 * regformats/tic6x-c64xp.dat: Remove.
4997
86766165
SM
49982017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4999
5000 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5001 (the !HAVE_LIBEXPAT version).
5002
824dfcc3
SM
50032017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5004
5005 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5006 const.
5007
2098b393
SM
50082017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5009
5010 * target.h: Include tracepoint.h.
5011 (enum trace_find_type): Move to tracepoint.h.
5012 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5013 * tracepoint.h: Don't include target.h
5014 (enum trace_find_type): Move from target.h.
5015 (parse_traceframe_info): Return a unique ptr.
5016 * tracepoint.c (current_traceframe_info): Change type to unique
5017 ptr.
5018 (free_traceframe_info): Remove.
5019 (clear_traceframe_info): Don't manually free
5020 current_traceframe_info.
5021 (free_result): Remove.
5022 (parse_traceframe_info): Return a unique ptr.
5023 (get_traceframe_info): Adjust to unique ptr.
5024 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5025 * remote.c (remote_traceframe_info): Return a unique ptr.
5026 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5027 ptr.
5028 * target-debug.h (target_debug_print_traceframe_info_up): New
5029 macro.
5030 * target-delegates.c: Regenerate.
5031
4cdd21a8
SM
50322017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5033
5034 * memrange.h (struct mem_range): Add constructors.
5035 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5036 std::vector<mem_range>.
5037 * tracepoint.c (free_traceframe_info): Don't manually free
5038 vector.
5039 (traceframe_info_start_memory): Adjust to vector change.
5040 (traceframe_available_memory): Likewise.
5041 * tracefile-tfile.c (build_traceframe_info): Likewise.
5042 * ctf.c (ctf_traceframe_info): Likewise.
5043
d0d292a2
SM
50442017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5045
5046 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5047 std::vector<int>.
5048 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5049 (traceframe_info_start_tvar): Adjust to vector change.
5050 (parse_traceframe_info): Allocate with new.
5051 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5052 vector change.
5053 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5054 change.
5055 tfile_traceframe_info): Allocate with new.
5056 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5057 change.
5058
8d3c73ef
SM
50592017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5060
5061 * tracepoint.c (traceframe_info): Rename to...
5062 (current_traceframe_info): ...this.
5063 (clear_traceframe_info): Adjust.
5064 (get_traceframe_info): Adjust.
5065
b129dcac
SM
50662017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5067
5068 * nat/linux-osdata.c: Include algorithm.
5069 (compare_processes): Remove.
5070 (struct pid_pgid_entry): New struct.
5071 (linux_xfer_osdata_processgroups): Use std::vector instead of
5072 XNEWVEC.
5073
af5bf4ad
SM
50742017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5075
5076 * objfiles.h: Don't include symfile.h.
5077 (struct partial_symbol): Remove forward-declaration.
5078 (struct objfile) <global_psymbols, static_psymbols>: Change type
5079 to std::vector<partial_symbol *>.
5080 * objfiles.c (objfile::objfile): Don't memset those fields.
5081 (objfile::~objfile): Don't free those fields.
5082 * psympriv.h (struct psymbol_allocation_list): Remove
5083 forward-declaration.
5084 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5085 to std::vector.
5086 (start_psymtab_common): Change parameters to std::vector.
5087 * psymtab.c: Include algorithm.
5088 (require_partial_symbols): Call shrink_to_fit.
5089 (find_pc_sect_psymbol): Adjust to vector change.
5090 (match_partial_symbol): Likewise.
5091 (lookup_partial_symbol): Likewise.
5092 (psym_relocate): Likewise.
5093 (dump_psymtab): Likewise.
5094 (recursively_search_psymtabs): Likewise.
5095 (compare_psymbols): Remove.
5096 (sort_pst_symbols): Adjust to vector change.
5097 (start_psymtab_common): Likewise.
5098 (end_psymtab_common): Likewise.
5099 (psymbol_bcache_full): De-constify return value.
5100 (add_psymbol_to_bcache): Likewise.
5101 (extend_psymbol_list): Remove.
5102 (append_psymbol_to_list): Adjust to vector change.
5103 (add_psymbol_to_list): Likewise.
5104 (init_psymbol_list): Likewise.
5105 (maintenance_info_psymtabs): Likewise.
5106 (maintenance_check_psymtabs): Likewise.
5107 * symfile.h (struct psymbol_allocation_list): Remove.
5108 * symfile.c (reread_symbols): Adjust to vector change.
5109 * dbxread.c (start_psymtab): Change type of parameters.
5110 (dbx_symfile_read): Adjust to vector change.
5111 (read_dbx_symtab): Likewise.
5112 (start_psymtab): Change type of parameters.
5113 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5114 (create_partial_symtab): Likewise.
5115 (add_partial_symbol): Likewise.
5116 (write_one_signatured_type): Likewise.
5117 (recursively_write_psymbols): Likewise.
5118 * mdebugread.c (parse_partial_symbols): Likewise.
5119 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5120 (scan_xcoff_symtab): Adjust to vector change.
5121 (xcoff_initial_scan): Likewise.
5122
3ec5942f
SM
51232017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5124
5125 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5126
2399fe6a
YQ
51272017-10-13 Yao Qi <yao.qi@linaro.org>
5128
5129 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5130 Remove s390x-*-expedite, add s390x-expedite.
5131
4bf3f4a8
YQ
51322017-10-13 Yao Qi <yao.qi@linaro.org>
5133
5134 * features/s390-gs-linux64.c: Regenerated.
5135 * features/s390x-gs-linux64.c: Regenerated.
5136
9e86da07
TT
51372017-10-13 Tom Tromey <tom@tromey.com>
5138
5139 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5140 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5141 delete.
5142 * symfile.c (symbol_file_add_with_addrs): Use new.
5143 (symbol_file_add_separate): Update comment.
5144 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5145 * jit.c (jit_object_close_impl): Use new.
5146 (jit_unregister_code): Use delete.
5147 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5148 (~objfile): Rename from free_objfile.
5149 (free_objfile_separate_debug, do_free_objfile_cleanup)
5150 (free_all_objfiles, objfile_purge_solibs): Use delete.
5151 * objfiles.h (struct objfile): Add constructor and destructor.
5152 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5153 (allocate_objfile, free_objfile): Don't declare.
5154 (struct objstats): Add initializers.
5155
c2508e90
SM
51562017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5157
5158 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5159 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5160 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5161 * gdbarch.h: Regenerate.
5162 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5163 Adjust comment.
5164 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5165 (i386_displaced_step_fixup): Adjust comment.
5166 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5167
a900ff72
TT
51682017-10-12 Tom Tromey <tom@tromey.com>
5169
5170 * prologue-value.h (pv_area::store_would_trash): Return bool.
5171 (pv_area::find_reg): Likewise.
5172 * prologue-value.c (pv_area::store_would_trash): Return bool.
5173 (pv_area::find_reg): Likewise.
5174
f7b7ed97
TT
51752017-10-12 Tom Tromey <tom@tromey.com>
5176
5177 * s390-linux-tdep.c (s390_store, s390_load)
5178 (s390_check_for_saved, s390_analyze_prologue): Update.
5179 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5180 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5181 * prologue-value.h (class pv_area): Move from prologue-value.c.
5182 Change names of members. Add constructor, destructor, member
5183 functions.
5184 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5185 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5186 (pv_area_fetch, pv_area_scan): Don't declare.
5187 * prologue-value.c (struct pv_area::area_entry): Now member of
5188 pv_area.
5189 (struct pv_area): Move to prologue-value.h.
5190 (pv_area::pv_area): Rename from make_pv_area.
5191 (pv_area::~pv_area): Rename from free_pv_area.
5192 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5193 (clear_entries, find_entry, overlaps, store_would_trash, store)
5194 (fetch, find_reg, scan): Now member of pv_area.
5195 Remove "area" argument. Update.
5196 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5197 Update.
5198 * mn10300-tdep.c (push_reg, check_for_saved)
5199 (mn10300_analyze_prologue): Update.
5200 * mep-tdep.c (is_arg_spill, check_for_saved)
5201 (mep_analyze_prologue): Update.
5202 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5203 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5204 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5205 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5206 Update.
5207 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5208 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5209
466eecee
SM
52102017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5211
5212 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5213 * linux-nat.c (linux_nat_delete_thread): New variable.
5214 (lwp_free): Invoke linux_nat_delete_thread if set.
5215 (linux_nat_set_delete_thread): New function.
5216 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5217 thread delete callback.
5218 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5219 (_initialize_arm_linux_nat): Assign thread delete callback.
5220 * s390-linux-nat.c (s390_delete_thread): New function.
5221 (_initialize_s390_nat): Assign thread delete callback.
5222 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5223 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5224 function.
5225 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5226 declaration.
5227 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5228 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5229
f71c8822
TT
52302017-10-09 Tom Tromey <tom@tromey.com>
5231
5232 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5233 std::string.
5234 * tui/tui-layout.c (enum tui_status): Use std::string.
5235
981a3fb3
TT
52362017-10-11 Tom Tromey <tom@tromey.com>
5237
5238 * gdbthread.h (thread_command): Constify.
5239 * inferior.h (detach_command): Constify.
5240 * top.h (set_history, show_history): Constify.
5241 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5242 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5243 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5244 * printcmd.c (set_command): Constify.
5245 (non_const_set_command): New function.
5246 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5247 * breakpoint.c (enable_command, disable_command, delete_command)
5248 (catch_command, tcatch_command, set_breakpoint_cmd)
5249 (show_breakpoint_cmd): Constify.
5250 * macrocmd.c (macro_command): Constify.
5251 * infcmd.c (unset_command, kill_command, detach_command)
5252 (info_proc_cmd): Constify.
5253 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5254 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5255 (info_auto_load_cmd): Constify.
5256 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5257 (unset_tdesc_cmd): Constify.
5258 * ada-lang.c (set_ada_command, show_ada_command)
5259 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5260 * guile/guile.c (set_guile_command, show_guile_command)
5261 (info_guile_command): Constify.
5262 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5263 Constify.
5264 * skip.c (skip_command): Constify.
5265 * compile/compile.c (_initialize_compile): Constify.
5266 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5267 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5268 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5269 (maint_btrace_pt_show_cmd): Constify.
5270 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5271 Constify.
5272 * python/python.c (user_show_python, user_set_python): Constify.
5273 * mips-tdep.c (set_mips_command, show_mips_command)
5274 (set_mipsfpu_command): Constify.
5275 * record-btrace.c (cmd_record_btrace_start)
5276 (cmd_set_record_btrace, cmd_show_record_btrace)
5277 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5278 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5279 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5280 Constify.
5281 * symfile.c (overlay_command): Constify.
5282 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5283 * cli/cli-logging.c (set_logging_command, show_logging_command):
5284 Constify.
5285 * cli/cli-dump.c (dump_command, append_command)
5286 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5287 (tekhex_dump_command, binary_dump_command)
5288 (binary_append_command): Constify.
5289 * cli/cli-decode.c (struct cmd_list_element): Change type of
5290 "fun".
5291 * cli/cli-cmds.c (info_command, show_command, set_debug)
5292 (show_debug): Constify.
5293 (show_command): Add non-const overload.
5294 * top.c (set_history, show_history): Constify.
5295 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5296 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5297 * target.c (target_command): Constify.
5298 * sparc64-tdep.c (info_adi_command): Constify.
5299 * record-full.c (cmd_record_full_start): Constify.
5300 (set_record_full_command): Constify. Fix typo.
5301 (show_record_full_command): Constify.
5302 * thread.c (thread_command, thread_apply_command): Constify.
5303 * memattr.c (dummy_cmd): Constify.
5304 * value.c (function_command): Constify.
5305 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5306 * probe.c (info_probes_command): Constify.
5307 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5308 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5309 (show_thread_cmd, set_thread_default_cmd)
5310 (show_thread_default_cmd): Constify.
5311 (check_empty): Constify.
5312 * tracepoint.c (tfind_command): Constify.
5313 * cp-support.c (maint_cplus_command): Constify.
5314 * windows-tdep.c (info_w32_command): Constify.
5315 * record.c (cmd_record_start, set_record_command)
5316 (show_record_command, info_record_command, cmd_record_goto):
5317 Constify.
5318 * ravenscar-thread.c (set_ravenscar_command)
5319 (show_ravenscar_command): Constify.
5320 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5321 Constify.
5322 (add_internal_problem_command): Remove casts.
5323 * arc-tdep.c (maintenance_print_arc_command): Constify.
5324 * valprint.c (set_print, show_print, set_print_raw)
5325 (show_print_raw): Constify.
5326 * maint.c (maintenance_command, maintenance_info_command)
5327 (maintenance_print_command, maintenance_set_cmd)
5328 (maintenance_show_cmd, set_per_command_cmd)
5329 (show_per_command_cmd, maintenance_check_command): Constify.
5330 * language.c (set_check, show_check): Constify.
5331 * typeprint.c (show_print_type, set_print_type): Constify.
5332 * go32-nat.c (go32_info_dos_command): Constify.
5333
fdf44873
TT
53342017-10-11 Tom Tromey <tom@tromey.com>
5335
5336 * breakpoint.c (prepare_re_set_context): Remove.
5337 (breakpoint_re_set_one): Update. Don't use cleanups.
5338 (breakpoint_re_set): Use scoped_restore, std::string, and
5339 scoped_restore_current_language.
5340
81b1e71c
TT
53412017-10-11 Tom Tromey <tom@tromey.com>
5342
5343 * breakpoint.c (commands_command_1): Use std::string.
5344 (cleanup_executing_breakpoints): Remove.
5345 (bpstat_do_actions_1): Use scoped_restore.
5346 (bpstat_check_watchpoint): Use std::string.
5347 (decode_static_tracepoint_spec): Likewise.
5348 (break_range_command): Likewise.
5349 (watch_command_1): Likewise.
5350 (compare_breakpoints): Change argument types.
5351 (clear_command): Use std::vector.
5352 (cleanup_executing_breakpoints): Remove.
5353 (update_global_location_list): Use unique_xmalloc_ptr.
5354 (strace_command): Remove unused declaration.
5355
4f9d9906
JB
53562017-10-11 John Baldwin <jhb@FreeBSD.org>
5357
5358 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5359 * NEWS: Mention new FreeBSD/arm native configuration.
5360 * configure.host: Add arm*-*-freebsd*.
5361 * configure.nat: Likewise.
5362 * arm-fbsd-nat.c: New file.
5363
7176dfd2
JB
53642017-10-11 John Baldwin <jhb@FreeBSD.org>
5365
5366 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5367 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5368 * NEWS: Mention new FreeBSD/arm target.
5369 * configure.tgt: Add arm*-*-freebsd*.
5370 * arm-fbsd-tdep.c: New file.
5371 * arm-fbsd-tdep.h: New file.
5372
fe220226
MR
53732017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5374
5375 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5376 `gdbarch_elfcore_write_linux_prpsinfo'.
5377 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5378 method.
5379 (elf_internal_linux_prpsinfo): Remove declaration.
5380 * gdbarch.h: Regenerate.
5381 * gdbarch.c: Regenerate.
5382
a2f63b2e
MR
53832017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5384
5385 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5386 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5387
458ca1d0
PA
53882017-10-11 Pedro Alves <palves@redhat.com>
5389
5390 * breakpoint.c (reattach_breakpoints): Delete.
5391 * breakpoint.h (reattach_breakpoints): Delete.
5392
905014d7
SM
53932017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5394
5395 * symfile.c (registered_sym_fns): Make struct, not typedef.
5396 (DEF_VEC_O (registered_sym_fns)): Remove.
5397 (symtab_fns): Change type to std::vector.
5398 (add_symtab_fns): Adjust.
5399 (find_sym_fns): Adjust.
5400
56d704da
AK
54012017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5402
5403 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5404 * arc-tdep.h (arc_arch_is_em): New function.
5405 (arc_arch_is_hs): Likewise.
5406
7fa29be9
EB
54072017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5408
5409 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5410 parentheses in the declaration.
5411 (macro_lookup_inclusion): Likewise.
5412 (macro_lookup_definition): Likewise.
5413 * p-lang.h (pascal_builtin_types): Likewise.
5414 * tui/tui-data.c (tui_win_list): Likewise.
5415 * tui/tui-data.h (tui_win_list): Likewise.
5416 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5417
d9b477e3
KB
54182017-10-11 Mark Rages <markrages@gmail.com>
5419
5420 * target-memory.c (block_boundaries): Fix for block address not
5421 aligned on block size.
5422
65630365
PA
54232017-10-10 Pedro Alves <palves@redhat.com>
5424 Tom Tromey <tom@tromey.com>
5425
5426 * breakpoint.c (struct captured_breakpoint_query_args)
5427 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5428 (print_breakpoint): New.
5429 * breakpoint.h (print_breakpoint): Declare.
5430 * common/common-exceptions.h (enum return_reason): Remove
5431 references to catch_exceptions.
5432 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5433 Delete.
5434 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5435 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5436 * gdb.h: Delete.
5437 * gdbthread.h (thread_select): Declare.
5438 * mi/mi-cmd-break.c: Don't include gdb.h.
5439 (breakpoint_notify): Use print_breakpoint.
5440 * mi/mi-cmd-catch.c: Don't include gdb.h.
5441 * mi/mi-interp.c: Don't include gdb.h.
5442 (mi_print_breakpoint_for_event): New.
5443 (mi_breakpoint_created, mi_breakpoint_modified): Use
5444 mi_print_breakpoint_for_event.
5445 * mi/mi-main.c: Don't include gdb.h.
5446 (mi_cmd_thread_select): Parse the global thread ID here. Use
5447 thread_select instead of gdb_thread_select.
5448 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5449 of using gdb_list_thread_ids.
5450 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5451 FILEIO_ENOSYS here.
5452 (remote_fileio_request): Use TRY/CATCH instead of
5453 catch_exceptions.
5454 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5455 (symbol_file_add_from_memory_wrapper): Delete.
5456 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5457 * thread.c: Don't include gdb.h.
5458 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5459 (thread_alive): Use thread_select.
5460 (do_captured_thread_select): Delete, parts salvaged as ...
5461 (thread_select): ... this new function.
5462 (gdb_thread_select): Delete.
5463
bf469271
PA
54642017-10-10 Pedro Alves <palves@redhat.com>
5465 Tom Tromey <tom@tromey.com>
5466
5467 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5468 and reverse logic.
5469 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5470 No longer macros. Instead ...
5471 (enum wp_check_result): They're now values of this new
5472 enumeration.
5473 (watchpoint_check): Change return type to wp_check_result and
5474 parameter type to bpstat.
5475 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5476 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5477 catch_errors. Reverse logic of watchpoint_check call.
5478 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5479 pointer as parameter.
5480 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5481 * common/common-exceptions.c (throw_exception_sjlj): Update
5482 comments to avoid mentioning catch_errors.
5483 * exceptions.c (catch_errors): Delete.
5484 * exceptions.h: Update comments to avoid mentioning catch_errors.
5485 (catch_errors_ftype, catch_errors): Delete.
5486 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5487 (hook_stop_stub): Delete.
5488 (restore_selected_frame): Change return type to void, and
5489 parameter type to const frame_id &.
5490 (restore_infcall_control_state): Use TRY/CATCH instead of
5491 catch_errors.
5492 * main.c (captured_command_loop): Return void and remove
5493 parameter. Remove references to catch_errors.
5494 (captured_main): Use TRY/CATCH instead of catch_errors.
5495 * objc-lang.c (objc_submethod_helper_data)
5496 (find_objc_msgcall_submethod_helper): Delete.
5497 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5498 catch_errors.
5499 * record-full.c (record_full_message): Return void.
5500 (record_full_message_args, record_full_message_wrapper): Delete.
5501 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5502 instead of catch_errors.
5503 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5504 parameter type to int.
5505 * solib-darwin.c (open_symbol_file_object): Ditto.
5506 * solib-dsbt.c (open_symbol_file_object): Ditto.
5507 * solib-frv.c (open_symbol_file_object): Ditto.
5508 * solib-svr4.c (open_symbol_file_object): Ditto.
5509 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5510 * solib.c (update_solib_list): Use TRY/CATCH instead of
5511 catch_errors.
5512 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5513 Change type.
5514 * symmisc.c (struct print_symbol_args): Remove.
5515 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5516 (print_symbol): Change type.
5517 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5518 and remove parameters.
5519 (catch_errors): New.
5520 (get_windows_debug_event): Adjust.
5521
1a56bfa5
TT
55222017-10-09 Tom Tromey <tom@tromey.com>
5523
5524 * mi/mi-main.c (free_splay_tree): Remove.
5525 (list_available_thread_groups): Use splay_tree_up.
5526 * common/gdb_splay_tree.h: New file.
5527
0c478e2d
TT
55282017-10-09 Tom Tromey <tom@tromey.com>
5529
5530 * mi/mi-main.c (do_nothing): Remove.
5531 (list_available_thread_groups): Update.
5532
cbd2b4e3
PA
55332017-10-09 Pedro Alves <palves@redhat.com>
5534
5535 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5536 reading registers when switching context.
5537
a181c0bf
JB
55382017-10-09 John Baldwin <jhb@FreeBSD.org>
5539
5540 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5541 (fbsd_convert_siginfo): Likewise.
5542 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5543
6e66f753
SM
55442017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5545
5546 * configure.ac (try_guile_versions): Remove guile-2.2.
5547 * configure: Regenerate.
5548
890e9790
TT
55492017-10-09 Tom Tromey <tom@tromey.com>
5550
5551 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5552 (COMPILE.pre): Use $(CXX).
5553
109483d9
PA
55542017-10-09 Pedro Alves <palves@redhat.com>
5555
5556 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5557 Use bool.
5558 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5559 * cp-support.h (cp_remove_params): Now returns a
5560 gdb::unique_xmalloc_ptr.
5561 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5562 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5563 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5564 returning a gdb::unique_xmalloc_ptr.
5565 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5566 * stack.c (find_frame_funname): Adjust to cp_remove_params
5567 returning a gdb::unique_xmalloc_ptr.
5568
791afaa2
TT
55692017-10-08 Tom Tromey <tom@tromey.com>
5570
5571 * dwarf2read.c (dwarf2_get_dwz_file): Use
5572 gdb::unique_xmalloc_ptr.
5573 (find_slot_in_mapped_hash): Likewise.
5574 (dwarf2_physname): Likewise.
5575 (create_dwo_unit_in_dwp_v1): Use std::string.
5576 (create_dwo_unit_in_dwp_v2): Likewise.
5577 (lookup_dwo_cutu): Likewise.
5578 (inherit_abstract_dies): Use std::vector.
5579 (read_array_type): Likewise.
5580 (dwarf_decode_macros): Remove unused declaration.
5581 (unsigned_int_compar): Remove.
5582 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5583 (psymtabs_addrmap_cleanup): Remove.
5584
30a9c02f
TT
55852017-10-08 Tom Tromey <tom@tromey.com>
5586
5587 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5588 * frame.h (frame_cleanup_after_sniffer): Declare.
5589 (frame_prepare_for_sniffer): Return void.
5590 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5591 type of argument.
5592 (frame_prepare_for_sniffer): Return void.
5593
757325a3
TT
55942017-10-08 Tom Tromey <tom@tromey.com>
5595
5596 * utils.h (make_cleanup_value_free): Remove.
5597 * utils.c (do_value_free, struct cleanup): Remove.
5598 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5599 Use gdb_value_up.
5600 * value.h (struct value_deleter): New.
5601 (gdb_value_up): New typedef.
5602
b9c04fb2
TT
56032017-10-08 Tom Tromey <tom@tromey.com>
5604
5605 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5606 (make_cleanup_free_search_symbols): Remove.
5607 (search_symbols): Return std::vector.
5608 (symbol_search::compare_search_syms): Now member of
5609 symbol_search. Change arguments.
5610 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5611 (symtab_symbol_info, rbreak_command): Update.
5612 * symtab.h (struct symbol_search) <next>: Remove.
5613 Add constructors.
5614 (symbol_search::operator<): New function.
5615 (symbol_search::operator==): New function.
5616 (search_symbols): Remove std::vector.
5617 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5618 (symbol_search::compare_search_syms): Declare.
5619
0d28b0a5
YQ
56202017-10-06 Yao Qi <yao.qi@linaro.org>
5621
5622 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5623 arch/aarch64-insn.o.
5624 Remove one rule.
5625 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5626
71917808
YQ
56272017-10-06 Yao Qi <yao.qi@linaro.org>
5628
5629 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5630 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5631 arch/arm-linux.o respectively.
5632 * configure.tgt: Likewise.
5633
2081b2b2
YQ
56342017-10-06 Yao Qi <yao.qi@linaro.org>
5635
5636 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5637 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5638
a1b85d28
PA
56392017-10-06 Pedro Alves <palves@redhat.com>
5640
5641 * windows-nat.c: Include <algorithm>.
5642
d97987e2
YQ
56432017-10-06 Yao Qi <yao.qi@linaro.org>
5644
5645 * configure.tgt (i386_tobjs): New variable.
5646 (amd64_tobjs): New variable.
5647 Set $cpu_obs and $os_obs.
5648
f38307f5
YQ
56492017-10-06 Yao Qi <yao.qi@linaro.org>
5650
5651 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5652 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5653 (clean): Remove object files and dependency files.
5654 (distclean): Remove the directory.
5655 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5656 * configure: Re-generated.
5657 * configure.tgt: Replace amd64.o with arch/amd64.o.
5658
2f924de6
JM
56592017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5660
5661 PR build/22188
5662 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5663 and SETEND.
5664
2fd9d7ca
PA
56652017-10-05 Pedro Alves <palves@redhat.com>
5666
5667 * linux-nat.c (linux_child_follow_fork): When following the parent
5668 and detaching the child, consult the parent thread's architecture
5669 instead of the child's.
5670
d13b8493
UW
56712017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5672
5673 * ax.h: Do not include "doublest.h".
5674 (union agent_val): Remove.
5675
3b4b2f16
UW
56762017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5677
5678 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5679 (decimal_to_string): Return std::string object.
5680 (decimal_from_string): Accept std::string object. Return bool.
5681 (decimal_from_integral, decimal_from_doublest): Remove.
5682 (decimal_from_longest): Add prototype.
5683 (decimal_from_ulongest): Likewise.
5684 (decimal_to_longest): Likewise.
5685 (decimal_from_doublest): Likewise.
5686 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5687 (MAX_DECIMAL_STRING): Move here.
5688 (decimal_to_string): Return std::string object.
5689 (decimal_from_string): Accept std::string object. Return bool.
5690 (decimal_from_integral): Remove, replace by ...
5691 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5692 (decimal_to_longest): New function.
5693 (decimal_from_floating): Remove, replace by ...
5694 (decimal_from_doublest): ... this new function.
5695 (decimal_to_doublest): Update to new decimal_to_string interface.
5696
5697 * value.c (unpack_long): Use decimal_to_longest.
5698 * valops.c (value_cast): Use decimal_from_doublest instead of
5699 decimal_from_floating. Use decimal_from_[u]longest isntead of
5700 decimal_from_integral.
5701 * valarith.c (value_args_as_decimal): Likewise.
5702 * valprint.c (print_decimal_floating): Update to new
5703 decimal_to_string interface.
5704 * printcmd.c (printf_decfloat): Likewise.
5705 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5706
1841ee5d
UW
57072017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5708
5709 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5710 * gdbtypes.c: Include "floatformat.h".
5711 * value.c: Likewise.
5712 * m68k-tdep.c: Likewise.
5713
5714 * findvar.c: Do not include "floatformat.h".
5715 * amd64-darwin-tdep.c: Likewise.
5716 * arm-linux-tdep.c: Likewise.
5717 * i386-darwin-tdep.c: Likewise.
5718 * i387-tdep.c: Likewise.
5719 * m68k-linux-tdep.c: Likewise.
5720 * mep-tdep.c: Likewise.
5721 * mips-tdep.c: Likewise.
5722 * nios2-tdep.c: Likewise.
5723 * s390-linux-tdep.c: Likewise.
5724 * sparc-obsd-tdep.c: Likewise.
5725 * sparc-tdep.c: Likewise.
5726 * sparc64-tdep.c: Likewise.
5727 * spu-tdep.c: Likewise.
5728 * tic6x-tdep.c: Likewise.
5729 * tilegx-tdep.c: Likewise.
5730 * vax-tdep.c: Likewise.
5731 * xstormy16-tdep.c: Likewise.
5732 * xtensa-tdep.c: Likewise.
5733
5734 * top.c: Do not include "doublest.h".
5735 * aarch64-tdep.c: Likewise.
5736 * alpha-tdep.c: Likewise.
5737 * arm-linux-tdep.c: Likewise.
5738 * m68k-linux-tdep.c: Likewise.
5739 * tilegx-tdep.c: Likewise.
5740 * xstormy16-tdep.c: Likewise.
5741
a80a6471
JB
57422017-10-05 John Baldwin <jhb@FreeBSD.org>
5743
5744 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5745 (mipsn32_fbsd_sigframe): Define.
5746 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5747 for FreeBSD/mipsn32.
5748
12c4bd7f
JB
57492017-10-05 John Baldwin <jhb@FreeBSD.org>
5750
5751 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5752 AT_HWCAP.
5753
c91933e9
TG
57542017-10-05 Tristan Gingold <tgingold@free.fr>
5755
5756 * MAINTAINERS (Misc): Update my email address.
5757
5cd63fda
PA
57582017-10-04 Pedro Alves <palves@redhat.com>
5759
5760 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5761 it instead of target_gdbarch.
5762 (get_remote_state, get_remote_packet_size): Adjust
5763 get_remote_arch_state calls, passing down target_gdbarch
5764 explicitly.
5765 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5766 'gdbarch' and use it instead of target_gdbarch.
5767 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5768 passing down target_gdbarch explicitly.
5769 (struct stop_reply) <arch>: New field.
5770 (remote_parse_stop_reply): Use the stopped thread's architecture,
5771 not the current inferior's. Save the architecture in the
5772 stop_reply.
5773 (process_stop_reply): Use the stop reply's architecture.
5774 (process_g_packet, remote_fetch_registers)
5775 (remote_prepare_to_store, store_registers_using_G)
5776 (remote_store_registers): Adjust get_remote_arch_state calls,
5777 using the regcache's architecture.
5778 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5779 passing down target_gdbarch explicitly.
5780 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5781 beneath instead of calling target_gdbarch.
5782 * target.c (default_thread_architecture): Use the specified
5783 inferior's architecture, instead of the current inferior's
5784 architecture (via target_gdbarch).
5785
ed4227b7
PA
57862017-10-04 Pedro Alves <palves@redhat.com>
5787
5788 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5789 case.
5790 (regcache_print): Handle !target_has_registers here instead.
5791
55b11ddf
PA
57922017-10-04 Pedro Alves <palves@redhat.com>
5793
5794 * frame.c (create_test_frame): Delete.
5795 * frame.h (create_test_frame): Delete.
5796 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5797 (class regcache_test): Delete.
5798 (test_target_has_registers, test_target_has_stack)
5799 (test_target_has_memory, test_target_prepare_to_store)
5800 (test_target_store_registers): New functions.
5801 (test_target_ops): New class.
5802 (register_to_value_test): Error out if there's already a
5803 process_stratum (or higher) target pushed. Create a fuller mock
5804 environment, with mock target_ops, inferior, address space, thread
5805 and inferior_ptid.
5806 * progspace.c (struct address_space): Move to ...
5807 * progspace.h (struct address_space): ... here.
5808 * regcache.h (regcache::~regcache, regcache::raw_write)
5809 [GDB_SELF_TEST]: No longer virtual.
5810
4c71c105
SM
58112017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5812
5813 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5814
73dcd72d
PA
58152017-10-04 Pedro Alves <palves@redhat.com>
5816
5817 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5818 out of 'between TRY and CATCH'.
5819
44704526
PA
58202017-10-04 Pedro Alves <palves@redhat.com>
5821
5822 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5823 * common/common-exceptions.h (TRY): Open an outermost scope.
5824 Expand intro comment.
5825 (CATCH): Reindent.
5826 (END_CATCH): Close the outermost scope.
5827 * completer.c (complete_line_internal): Add missing END_CATCH.
5828
bc3b087d
SDJ
58292017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5830
5831 * NEWS (Changes since GDB 8.0): Add entry about new
5832 'set-cwd-on-gdbserver' feature.
5833 (New remote packets): Add entry for QSetWorkingDir.
5834 * common/common-inferior.h (set_inferior_cwd): New prototype.
5835 * infcmd.c (set_inferior_cwd): Remove "static".
5836 (show_cwd_command): Expand text to include remote debugging.
5837 * remote.c: Add PACKET_QSetWorkingDir.
5838 (remote_protocol_features) <QSetWorkingDir>: New entry for
5839 PACKET_QSetWorkingDir.
5840 (extended_remote_set_inferior_cwd): New function.
5841 (extended_remote_create_inferior): Call
5842 "extended_remote_set_inferior_cwd".
5843 (_initialize_remote): Call "add_packet_config_cmd" for
5844 QSetWorkingDir.
5845
d092c5a2
SDJ
58462017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5847
5848 * NEWS (New commands): Mention "set/show cwd".
5849 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5850 "cd" command's help text.
5851 * common/common-inferior.h (get_inferior_cwd): New prototype.
5852 * infcmd.c (inferior_cwd_scratch): New global variable.
5853 (set_inferior_cwd): New function.
5854 (get_inferior_cwd): Likewise.
5855 (set_cwd_command): Likewise.
5856 (show_cwd_command): Likewise.
5857 (_initialize_infcmd): Add "set/show cwd" commands.
5858 * inferior.h (class inferior) <cwd>: New field.
5859 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5860 (fork_inferior): Change inferior's cwd before its execution.
5861 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5862 to CreateProcess.
5863
7da0a886
SDJ
58642017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5865
5866 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5867 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5868 (COMMON_OBS): Add gdb_tilde_expand.o.
5869 * common/gdb_tilde_expand.c: New file.
5870 * common/gdb_tilde_expand.h: Likewise.
5871
db8dd160
MR
58722017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5873
5874 * gdbarch.sh (objfile): Remove duplicate declaration.
5875 * gdbarch.h: Regenerate.
5876
f8bfbf22
TT
58772017-10-03 Tom Tromey <tom@tromey.com>
5878
5879 * utils.c (internal_vproblem): Use string_vprintf.
5880
5178ed48
TT
58812017-10-03 Tom Tromey <tom@tromey.com>
5882
5883 * printcmd.c (info_symbol_command): Use std::string.
5884
8cff8730
TT
58852017-10-03 Tom Tromey <tom@tromey.com>
5886
5887 * top.c (gdb_safe_append_history): Use std::string.
5888
895b8f30
TT
58892017-10-03 Tom Tromey <tom@tromey.com>
5890
5891 * event-top.c (stdin_event_handler): Update.
5892 * main.c (captured_main_1): Update.
5893 * top.h (make_delete_ui_cleanup): Remove.
5894 (struct ui): Add constructor and destructor.
5895 (new_ui, delete_ui): Remove.
5896 * top.c (make_delete_ui_cleanup): Remove.
5897 (new_ui_command): Use std::unique_ptr.
5898 (delete_ui_cleanup): Remove.
5899 (ui::ui): Rename from new_ui. Update.
5900 (free_ui): Remove.
5901 (ui::~ui): Rename from delete_ui. Update.
5902
0efef640
TT
59032017-10-03 Tom Tromey <tom@tromey.com>
5904
5905 * symfile.c (load_progress): Use gdb::byte_vector.
5906
245ad7d3
TT
59072017-10-03 Tom Tromey <tom@tromey.com>
5908
5909 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5910 declaration.
5911 * printcmd.c (x_command): Remove unused declaration.
5912 * symfile.c (symbol_file_command): Remove unused declaration.
5913
e05550d7
TT
59142017-10-03 Tom Tromey <tom@tromey.com>
5915
5916 * utils.c (internal_vproblem): Use std::string.
5917 (defaulted_query): Likewise.
5918
b95de2b7
TT
59192017-10-03 Tom Tromey <tom@tromey.com>
5920
5921 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5922 * top.c (execute_command_to_string): Update.
5923 * utils.c (make_cleanup_restore_page_info): Remove.
5924 (do_restore_page_info_cleanup): Remove.
5925 (set_batch_flag_and_restore_page_info):
5926 New.
5927 (make_cleanup_restore_page_info): Remove.
5928 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5929 (~set_batch_flag_and_restore_page_info): New
5930 (make_cleanup_restore_uinteger): Remove.
5931 (make_cleanup_restore_integer): Remove.
5932 (struct restore_integer_closure): Remove.
5933 (restore_integer): Remove.
5934 * utils.h (struct set_batch_flag_and_restore_page_info): New
5935 class.
5936 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5937 (make_cleanup_restore_page_info): Remove.
5938 (make_cleanup_restore_uinteger) Remove.
5939 (make_cleanup_restore_integer) Remove.
5940
07036511
TT
59412017-10-03 Tom Tromey <tom@tromey.com>
5942
5943 * record-full.h (record_full_gdb_operation_disable_set): Return
5944 scoped_restore_tmpl<int>.
5945 * infrun.c (adjust_pc_after_break): Update.
5946 (handle_signal_stop): Update.
5947 * record-full.c (record_full_gdb_operation_disable_set): Return
5948 scoped_restore_tmpl<int>.
5949 (record_full_wait_1, record_full_insert_breakpoint)
5950 (record_full_remove_breakpoint, record_full_save)
5951 (record_full_goto_insn): Update.
5952
45320ffa
TT
59532017-10-02 Tom Tromey <tom@tromey.com>
5954
5955 PR rust/22236:
5956 * rust-lang.c (rust_val_print_str): New function.
5957 (val_print_struct): Call it.
5958 (rust_subscript): Preserve name of slice type.
5959
b3e3859b
TT
59602017-10-02 Tom Tromey <tom@tromey.com>
5961
5962 * rust-lang.c (rust_subscript): Handle slices in
5963 EVAL_AVOID_SIDE_EFFECTS case.
5964
01af5e0d
TT
59652017-10-02 Tom Tromey <tom@tromey.com>
5966
5967 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5968
888e3ddb
TT
59692017-10-02 Tom Tromey <tom@tromey.com>
5970
5971 * rust-lang.h (rust_slice_type): Add "extern".
5972
cc536b21
PA
59732017-10-02 Tom Tromey <tom@tromey.com>
5974 Pedro Alves <palves@redhat.com>
5975
5976 * ada-lang.h (ada_exc_info::operator<): Make const.
5977 (ada_exc_info::operator==): Make const.
5978 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5979 Make const.
5980
386c8614
TT
59812017-09-29 Tom Tromey <tom@tromey.com>
5982
5983 * target.c (read_whatever_is_readable): Change type of "result".
5984 Update.
5985 (free_memory_read_result_vector): Remove.
5986 (read_memory_robust): Change return type. Update.
5987 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5988 bin2hex, std::string.
5989 * target.h (memory_read_result_s): Remove typedef.
5990 (free_memory_read_result_vector): Remove.
5991 (read_memory_robust): Return std::vector.
5992
789c4b5e
TT
59932017-09-29 Tom Tromey <tom@tromey.com>
5994
5995 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5996
ab816a27
TT
59972017-09-29 Tom Tromey <tom@tromey.com>
5998
5999 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6000 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6001 operator< and operator==.
6002 (ada_exceptions_list): Return a std::vector.
6003 * ada-lang.c (ada_exc_info::operator<): Rename from
6004 compare_ada_exception_info.
6005 (ada_exc_info::operator==): New.
6006 (sort_remove_dups_ada_exceptions_list): Change type of
6007 "exceptions".
6008 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6009 (ada_add_global_exceptions): Likewise.
6010 (ada_exceptions_list_1): Return a std::vector.
6011 (ada_exceptions_list): Likewise.
6012
52f9abe4
TT
60132017-09-29 Tom Tromey <tom@tromey.com>
6014
6015 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6016 'std::set *'.
6017 (print_one_inferior): Update.
6018 (free_vector_of_ints): Remove.
6019 (list_available_thread_groups): Change "ids" to std::set.
6020 (mi_cmd_list_thread_groups): Update.
6021 (struct collect_cores_data) <core>: Now a std::set.
6022 (collect_cores): Update.
6023 (unique): Remove.
6024 (print_one_inferior): Update.
6025
dcd5ddcc
TT
60262017-09-29 Tom Tromey <tom@tromey.com>
6027
6028 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6029 (mi_execute_async_cli_command): Likewise.
6030 (mi_cmd_trace_frame_collected): Use field_fmt.
6031
45d288cc
TT
60322017-09-29 Tom Tromey <tom@tromey.com>
6033
6034 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6035 gdb::byte_vector.
6036
6afe2f4a
TT
60372017-09-29 Tom Tromey <tom@tromey.com>
6038
6039 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6040
9813429a
TT
60412017-09-29 Tom Tromey <tom@tromey.com>
6042
6043 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6044
2d6960b4
TT
60452017-09-29 Tom Tromey <tom@tromey.com>
6046
6047 * varobj.h (varobj_gen_name): Return std::string.
6048 * varobj.c (varobj_gen_name): Return std::string.
6049 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6050 (mi_cmd_var_delete): Don't copy "name".
6051
784c453a
TT
60522017-09-29 Tom Tromey <tom@tromey.com>
6053
6054 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6055 (mi_cmd_break_insert_1): Update.
6056
a9bc57b9
TT
60572017-09-29 Tom Tromey <tom@tromey.com>
6058
6059 * target.h (make_scoped_defer_target_commit_resume): Update.
6060 * target.c (make_scoped_defer_target_commit_resume): Rename from
6061 make_cleanup_defer_target_commit_resume. Return a
6062 scoped_restore.
6063 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6064
9754d8c4
TT
60652017-09-29 Tom Tromey <tom@tromey.com>
6066
6067 * main.c (captured_main_1): Remove unused declaration.
6068 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6069
99ef965c
TT
60702017-09-29 Tom Tromey <tom@tromey.com>
6071
6072 * symtab.c (search_symbols): Remove unused outer cleanup.
6073 (make_source_files_completion_list): Remove unused declaration.
6074
42518ba7
TT
60752017-09-29 Tom Tromey <tom@tromey.com>
6076
6077 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6078
726b2169
TT
60792017-09-29 Tom Tromey <tom@tromey.com>
6080
6081 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6082 gdb::byte_vector.
6083
55b06432
TT
60842017-09-29 Tom Tromey <tom@tromey.com>
6085
6086 * complaints.c (vcomplaint): Use std::string.
6087
8abcee91
TT
60882017-09-29 Tom Tromey <tom@tromey.com>
6089
6090 * tracepoint.c (trace_variable_command): Use std::string.
6091 (encode_actions_1): Remove unused declarations.
6092 (create_tsv_from_upload): Use std::string.
6093
6ad94bc7
TT
60942017-09-29 Tom Tromey <tom@tromey.com>
6095
6096 * cp-support.c (gdb_demangle): Use std::string.
6097
2003f3d8
TT
60982017-09-29 Tom Tromey <tom@tromey.com>
6099
6100 * stack.c (parse_frame_specification): Use std::string
6101 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6102
8f8accb5
TT
61032017-09-29 Tom Tromey <tom@tromey.com>
6104
6105 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6106
200aa7b1
TT
61072017-09-29 Tom Tromey <tom@tromey.com>
6108
6109 * utils.c (vfprintf_maybe_filtered): Use std::string.
6110 (vfprintf_unfiltered): Likewise.
6111
606aae8a
TT
61122017-09-29 Tom Tromey <tom@tromey.com>
6113
6114 * event-top.c (top_level_prompt): Return std::string.
6115 (display_gdb_prompt): Update.
6116
bd413795
TT
61172017-09-29 Tom Tromey <tom@tromey.com>
6118
6119 * unittests/common-utils-selftests.c (format): New function.
6120 (string_vprintf_tests): New function.
6121 (_initialize_common_utils_selftests): Register new tests.
6122 * common/common-utils.c (string_vprintf): New function.
6123 * common/common-utils.h (string_vprintf): Declare.
6124
256642e8
PA
61252017-09-29 Pedro Alves <palves@redhat.com>
6126
6127 * common/rsp-low.c (unpack_varlen_hex): Constify.
6128 * common/rsp-low.h (unpack_varlen_hex): Constify.
6129 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6130 Constify.
6131 * remote.c (remote_set_permissions, read_ptid)
6132 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6133 (remote_static_tracepoint_marker_at)
6134 (remote_static_tracepoint_markers_by_strid)
6135 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6136 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6137 (parse_tracepoint_definition, parse_tsv_definition)
6138 (parse_static_tracepoint_marker_definition): Constify.
6139 * tracepoint.h (parse_static_tracepoint_marker_definition)
6140 (parse_trace_status, parse_tracepoint_status)
6141 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6142
b6bb3468
PA
61432017-09-29 Pedro Alves <palves@redhat.com>
6144
6145 * remote.c (target_buf, target_buf_size): Delete.
6146 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6147 Use the connection's packet buffer instead.
6148 All callers adjusted.
6149 (_initialize_remote): Remove references to target_buf and
6150 target_buf_size.
6151
b2f8eb7a
PA
61522017-09-28 Pedro Alves <palves@redhat.com>
6153
6154 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6155 unittests/common-utils-selftests.c.
6156 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6157 (COMMON_OBS): Remove utils-selftests.o.
6158 * utils-selftests.c: Move to ...
6159 * unittests/common-utils-selftests.c: ... here and rename self
6160 test to "string_printf".
6161
08302ed2
DE
61622017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6163
6164 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6165 having NULL cus or tus.
6166
96a5a1d3
UW
61672017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6168
6169 * arm-tdep.c: (convert_from_extended): Remove.
6170 (convert_to_extended): Likewise.
6171 (arm_extract_return_value): Use convert_typed_floating.
6172 (arm_store_return_value): Likewise.
6173
6174 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6175 * sh-tdep.c: Do not include "floatformat.h".
6176 (sh_littlebyte_bigword_type): New function.
6177 (sh_register_convert_to_virtual): Use convert_typed_floating.
6178 (sh_register_convert_to_raw): Likewise.
6179 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6180 (sh64_littlebyte_bigword_type): New function.
6181 (sh64_extract_return_value): Use convert_typed_floating.
6182 (sh64_register_convert_to_virtual): Likewise.
6183 (sh64_register_convert_to_raw): Likewise.
6184
0db7851f
UW
61852017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6186
6187 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6188 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6189
6190 * gdbtypes.h (union type_specific): Make field floatformat hold
6191 just a single struct floatformat, not an array.
6192 (floatformat_from_type): Move here.
6193 * gdbtypes.c (floatformat_from_type): Move here. Update to
6194 changed TYPE_FLOATFORMAT definition.
6195 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6196 (recursive_dump_type): Likewise.
6197 (init_float_type): Install correct floatformat for byte order.
6198 (arch_float_type): Likewise.
6199
77b7c781
UW
62002017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6201
6202 * gdbtypes.c (init_type): Change incoming argument from
6203 length-in-bytes to length-in-bits. Assert length is a
6204 multiple of TARGET_CHAR_BITS.
6205 (arch_type, arch_flags_type): Likewise.
6206 (init_integer_type): Update call to init_type.
6207 (init_character_type): Likewise.
6208 (init_boolean_type): Likewise.
6209 (init_float_type): Likewise.
6210 (init_decfloat_type): Likewise.
6211 (init_complex_type): Likewise.
6212 (init_pointer_type): Likewise.
6213 (objfile_type): Likewise.
6214 (arch_integer_type): Update call to arch_type.
6215 (arch_character_type): Likewise.
6216 (arch_boolean_type): Likewise.
6217 (arch_float_type): Likewise.
6218 (arch_decfloat_type): Likewise.
6219 (arch_complex_type): Likewise.
6220 (arch_pointer_type): Likewise.
6221 (gdbtypes_post_init): Likewise.
6222
6223 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6224 (read_base_type): Likewise.
6225 * mdebugread.c (basic_type): Likewise.
6226 * stabsread.c (dbx_init_float_type): Likewise.
6227 (rs6000_builtin_type): Likewise.
6228 (read_range_type): Likewise. Also, fix call to init_integer_type
6229 with erroneous length argument.
6230
6231 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6232 * d-lang.c (build_d_types): Likewise.
6233 * f-lang.c (build_fortran_types): Likewise.
6234 * go-lang.c (build_go_types): Likewise.
6235 * opencl-lang.c (build_opencl_types): Likewise.
6236 * jit.c (finalize_symtab): Likewise.
6237 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6238 (build_std_type_info_type): Likewise.
6239 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6240 update call to arch_flags_type.
6241
6242 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6243 arch_type.
6244 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6245 * windows-tdep.c (windows_get_tlb_type): Likewise.
6246
6247 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6248 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6249 * m32c-tdep.c (make_types): Likewise.
6250 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6251 (rl78_psw_type): Update call to arch_flags_type.
6252 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6253 * rx-tdep.c (rx_psw_type): Likewise.
6254 (rx_fpsw_type): Likewise.
6255 * sparc-tdep.c (sparc_psr_type): Likewise.
6256 (sparc_fsr_type): Likewise.
6257 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6258 (sparc64_ccr_type): Likewise.
6259 (sparc64_fsr_type): Likewise.
6260 (sparc64_fprs_type): Likewise.
6261
f21b4d5c
TT
62622017-09-27 Tom Tromey <tom@tromey.com>
6263
6264 * findcmd.c (find_command): Constify.
6265
643c2ffa
TT
62662017-09-27 Tom Tromey <tom@tromey.com>
6267
6268 * ada-tasks.c (task_command_1, task_command): Constify.
6269
510e5e56
TT
62702017-09-27 Tom Tromey <tom@tromey.com>
6271
6272 * symtab.c (maintenance_print_symbol_cache)
6273 (maintenance_flush_symbol_cache)
6274 (maintenance_print_symbol_cache_statistics): Constify.
6275
e503b191
TT
62762017-09-27 Tom Tromey <tom@tromey.com>
6277
6278 * inferior.c (detach_inferior_command, kill_inferior_command)
6279 (inferior_command): Constify.
6280
4e001312
TT
62812017-09-27 Tom Tromey <tom@tromey.com>
6282
6283 * regcache.c (regcache_print, maintenance_print_registers)
6284 (maintenance_print_raw_registers)
6285 (maintenance_print_cooked_registers)
6286 (maintenance_print_register_groups)
6287 (maintenance_print_remote_registers): Constify.
6288
77763700
TT
62892017-09-27 Tom Tromey <tom@tromey.com>
6290
6291 * printcmd.c (map_display_numbers, undisplay_command)
6292 (enable_disable_display_command, enable_display_command)
6293 (disable_display_command): Constify.
6294
4495129a
TT
62952017-09-27 Tom Tromey <tom@tromey.com>
6296
6297 * breakpoint.h (delete_command): Don't declare.
6298 * breakpoint.c (delete_command, enable_once_command)
6299 (enable_count_command, enable_delete_command, breakpoint_1)
6300 (maintenance_info_breakpoints, stopin_command, stopat_command)
6301 (delete_command, delete_trace_command, save_breakpoints)
6302 (save_breakpoints_command, save_tracepoints_command): Constify.
6303
3088cf40
TT
63042017-09-27 Tom Tromey <tom@tromey.com>
6305
6306 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6307 (skip_ws, extract_identifier, macro_define_command)
6308 (macro_undef_command, macro_list_command): Constify.
6309
69f476a3
TT
63102017-09-27 Tom Tromey <tom@tromey.com>
6311
6312 * infcmd.c (environment_info, set_environment_command)
6313 (unset_environment_command, path_info, info_proc_cmd_1)
6314 (info_proc_cmd_mappings, info_proc_cmd_stat)
6315 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6316 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6317
c4a3e68e
TT
63182017-09-27 Tom Tromey <tom@tromey.com>
6319
6320 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6321 Constify.
6322
c9d31bd6
TT
63232017-09-27 Tom Tromey <tom@tromey.com>
6324
6325 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6326
1f3f85eb
TT
63272017-09-27 Tom Tromey <tom@tromey.com>
6328
6329 * demangle.c (demangle_command): Constify.
6330
9c504b5d
TT
63312017-09-27 Tom Tromey <tom@tromey.com>
6332
6333 * progspace.c (maintenance_info_program_spaces_command):
6334 Constify.
6335
6663cf91
TT
63362017-09-27 Tom Tromey <tom@tromey.com>
6337
6338 * compile/compile.c (check_raw_argument, compile_file_command)
6339 (compile_code_command, compile_print_command): Constify.
6340
34e5fa26
TT
63412017-09-27 Tom Tromey <tom@tromey.com>
6342
6343 * reggroups.c (maintenance_print_reggroups): Constify.
6344
8384c356
TT
63452017-09-27 Tom Tromey <tom@tromey.com>
6346
6347 * dwarf2read.c (save_gdb_index_command): Constify.
6348
884beb0c
TT
63492017-09-27 Tom Tromey <tom@tromey.com>
6350
6351 * stap-probe.c (info_probes_stap_command): Constify.
6352
e0b2930c
TT
63532017-09-27 Tom Tromey <tom@tromey.com>
6354
6355 * fork-child.c (unset_exec_wrapper_command): Constify.
6356
f938677d
TT
63572017-09-27 Tom Tromey <tom@tromey.com>
6358
6359 * btrace.c (get_uint, get_context_size, no_chunk)
6360 (maint_btrace_packet_history_cmd)
6361 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6362 (maint_info_btrace_cmd): Constify.
6363
8949cb87
TT
63642017-09-27 Tom Tromey <tom@tromey.com>
6365
6366 * reverse.c (delete_bookmark_command): Constify.
6367
ac88e2de
TT
63682017-09-27 Tom Tromey <tom@tromey.com>
6369
6370 * remote.c (set_memory_packet_size)
6371 (set_memory_write_packet_size, show_memory_write_packet_size)
6372 (set_memory_read_packet_size, show_memory_read_packet_size)
6373 (compare_sections_command, packet_command, remote_put_command)
6374 (remote_get_command, remote_delete_command): Constify.
6375
bd4c9dfe
TT
63762017-09-27 Tom Tromey <tom@tromey.com>
6377
6378 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6379 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6380 (set_mipsfpu_auto_command): Constify.
6381
5e93d4c6
TT
63822017-09-27 Tom Tromey <tom@tromey.com>
6383
6384 * cli/cli-cmds.h (cd_command): Constify.
6385 * cli/cli-cmds.c (cd_command): Constify.
6386
fc41a75b
TT
63872017-09-27 Tom Tromey <tom@tromey.com>
6388
6389 * thread.c (thread_name_command, thread_find_command): Constify.
6390
67810076
TT
63912017-09-27 Tom Tromey <tom@tromey.com>
6392
6393 * probe.c (enable_probes_command, disable_probes_command):
6394 Constify.
6395
1d8b34a7
TT
63962017-09-27 Tom Tromey <tom@tromey.com>
6397
6398 * symfile.c (symbol_file_command): Constify.
6399 * gdbcore.h (deprecated_file_changed_hook): Constify.
6400 * exec.c (deprecated_file_changed_hook, exec_file_command)
6401 (file_command): Constify.
6402 * defs.h (symbol_file_command): Constify.
6403
442019e1
TT
64042017-09-27 Tom Tromey <tom@tromey.com>
6405
6406 * remote-fileio.c (set_system_call_allowed)
6407 (show_system_call_allowed): Constify.
6408
2983f7cb
TT
64092017-09-27 Tom Tromey <tom@tromey.com>
6410
6411 * tracepoint.c (delete_trace_variable_command)
6412 (tfind_end_command, tfind_start_command, tfind_pc_command)
6413 (tfind_tracepoint_command, tfind_line_command)
6414 (tfind_range_command, tfind_outside_command): Constify.
6415
4fd41b24
TT
64162017-09-27 Tom Tromey <tom@tromey.com>
6417
6418 * ax-gdb.c (maint_agent_printf_command, agent_command)
6419 (agent_eval_command): Constify.
6420
f2fc3015
TT
64212017-09-27 Tom Tromey <tom@tromey.com>
6422
6423 * tracepoint.c (info_scope_command): Constify.
6424 * python/python.c (gdbpy_decode_line): Constify.
6425 * python/py-breakpoint.c (bppy_init): Constify.
6426 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6427 * location.h: (new_linespec_location)
6428 (string_to_event_location_basic, string_to_event_location):
6429 Constify.
6430 * location.c (new_linespec_location)
6431 (string_to_event_location_basic, string_to_event_location):
6432 Constify.
6433 * linespec.h (decode_line_with_current_source)
6434 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6435 * linespec.c (linespec_lex_to_end)
6436 (decode_line_with_current_source)
6437 (decode_line_with_last_displayed): Constify.
6438 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6439 Constify.
6440 * cli/cli-cmds.c (edit_command, list_command): Constify.
6441 * breakpoint.h (until_break_command, watch_command_wrapper)
6442 (awatch_command_wrapper, rwatch_command_wrapper)
6443 (init_ada_exception_breakpoint): Constify.
6444 * breakpoint.c (break_command_1, dprintf_command)
6445 (break_range_command, watch_command_wrapper)
6446 (rwatch_command_wrapper, awatch_command_wrapper)
6447 (until_break_command, init_ada_exception_breakpoint)
6448 (strace_marker_create_sals_from_location, trace_command)
6449 (ftrace_command, strace_command, struct tracepoint): Constify.
6450 * ax-gdb.c (agent_command_1): Constify.
6451 * ada-lang.c (ada_exception_sal): Constify.
6452
8c2f95f4
TT
64532017-09-27 Tom Tromey <tom@tromey.com>
6454
6455 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6456 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6457 (get_context_size, no_chunk, get_insn_history_modifiers)
6458 (cmd_record_insn_history, get_call_history_modifiers)
6459 (cmd_record_call_history): Constify.
6460
a0d65762
TT
64612017-09-27 Tom Tromey <tom@tromey.com>
6462
6463 * source.c (show_substitute_path_command)
6464 (unset_substitute_path_command, set_substitute_path_command):
6465 Constify.
6466
58971144
TT
64672017-09-27 Tom Tromey <tom@tromey.com>
6468
6469 * typeprint.c (maintenance_print_type): Constify.
6470 * maint.c (maintenance_dump_me, maintenance_demangle)
6471 (maintenance_time_display, maintenance_info_sections)
6472 (maintenance_print_statistics, maintenance_deprecate)
6473 (maintenance_undeprecate): Constify.
6474 (maintenance_do_deprecate): Constify. Use std::string.
6475 (maintenance_selftest): Constify.
6476 * gdbtypes.h (maintenance_print_type): Constify.
6477
c482f52c
TT
64782017-09-27 Tom Tromey <tom@tromey.com>
6479
6480 * hppa-tdep.c (unwind_command): Constify.
6481
e100df1a
TT
64822017-09-27 Tom Tromey <tom@tromey.com>
6483
6484 * target-descriptions.c (unset_tdesc_filename_cmd)
6485 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6486 Constify.
6487
31d56ade
TT
64882017-09-27 Tom Tromey <tom@tromey.com>
6489
6490 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6491
b961da0b
TT
64922017-09-27 Tom Tromey <tom@tromey.com>
6493
6494 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6495
e2d8ae16
TT
64962017-09-27 Tom Tromey <tom@tromey.com>
6497
6498 * tui/tui-regs.c (tui_reg_command): Constify.
6499
863779b0
TT
65002017-09-27 Tom Tromey <tom@tromey.com>
6501
6502 * skip.c (skip_file_command, skip_function_command)
6503 (skip_enable_command, skip_disable_command, skip_delete_command):
6504 Constify.
6505
cdb34d4a
TT
65062017-09-27 Tom Tromey <tom@tromey.com>
6507
6508 * record-btrace.c (cmd_record_btrace_bts_start)
6509 (cmd_record_btrace_pt_start): Constify.
6510
e99c83e7
TT
65112017-09-27 Tom Tromey <tom@tromey.com>
6512
6513 * symmisc.c (maintenance_print_symbols)
6514 (maintenance_print_msymbols, maintenance_print_objfiles)
6515 (maintenance_info_symtabs, maintenance_check_symtabs)
6516 (maintenance_expand_symtabs, maintenance_info_line_tables):
6517 Constify.
6518
32faf971
TT
65192017-09-27 Tom Tromey <tom@tromey.com>
6520
6521 * top.c (new_ui_command): Constify.
6522
2cf311eb
TT
65232017-09-27 Tom Tromey <tom@tromey.com>
6524
6525 * symfile.c (add_symbol_file_command)
6526 (remove_symbol_file_command, list_overlays_command)
6527 (map_overlay_command, unmap_overlay_command)
6528 (overlay_auto_command, overlay_manual_command)
6529 (overlay_off_command, overlay_load_command): Constify.
6530
e6738699
TT
65312017-09-27 Tom Tromey <tom@tromey.com>
6532
6533 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6534 (info_spu_mailbox_command, info_spu_dma_command)
6535 (info_spu_proxydma_command): Constify.
6536
aa360cd5
TT
65372017-09-27 Tom Tromey <tom@tromey.com>
6538
6539 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6540
898241a5
TT
65412017-09-27 Tom Tromey <tom@tromey.com>
6542
6543 * cli/cli-script.c (user_defined_command): Constify.
6544
2d0ac106
TT
65452017-09-27 Tom Tromey <tom@tromey.com>
6546
6547 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6548 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6549 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6550 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6551 (dump_binary_value, append_binary_memory, append_binary_value):
6552 Constify.
6553 (struct dump_context) <func>: Constify.
6554 (add_dump_command): Update.
6555
dede02ce
TT
65562017-09-27 Tom Tromey <tom@tromey.com>
6557
6558 * cli/cli-cmds.c (show_version, show_configuration)
6559 (source_command, show_user): Constify.
6560
d3cb6b99
TT
65612017-09-27 Tom Tromey <tom@tromey.com>
6562
6563 * target.c (maintenance_print_target_stack): Constify.
6564
1970a12f
TT
65652017-09-27 Tom Tromey <tom@tromey.com>
6566
6567 * interps.c (interpreter_exec_cmd): Constify.
6568
41243651
TT
65692017-09-27 Tom Tromey <tom@tromey.com>
6570
6571 * record-full.c (cmd_record_full_restore): Constify.
6572
4465d9db
TT
65732017-09-27 Tom Tromey <tom@tromey.com>
6574
6575 * memattr.c (enable_mem_command, disable_mem_command)
6576 (delete_mem_command): Constify.
6577
ad25e423
TT
65782017-09-27 Tom Tromey <tom@tromey.com>
6579
6580 * value.c (show_convenience): Constify.
6581
d64097b1
TT
65822017-09-27 Tom Tromey <tom@tromey.com>
6583
6584 * gdbcore.h (core_file_command): Update.
6585 * corefile.c (core_file_command): Constify.
6586
4d4589ef
TT
65872017-09-27 Tom Tromey <tom@tromey.com>
6588
6589 * user-regs.c (maintenance_print_user_registers): Constify.
6590
32a7bf17
TT
65912017-09-27 Tom Tromey <tom@tromey.com>
6592
6593 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6594
4a475551
TT
65952017-09-27 Tom Tromey <tom@tromey.com>
6596
6597 * cp-support.c (first_component_command): Constify.
6598
990b9f9f
TT
65992017-09-27 Tom Tromey <tom@tromey.com>
6600
6601 * psymtab.c (maintenance_print_psymbols)
6602 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6603 Constify.
6604
c281872e
TT
66052017-09-27 Tom Tromey <tom@tromey.com>
6606
6607 * windows-tdep.c (display_tib): Constify.
6608
5b64bf74
TT
66092017-09-27 Tom Tromey <tom@tromey.com>
6610
6611 * linux-fork.c (delete_checkpoint_command)
6612 (detach_checkpoint_command): Constify.
6613
4ada038f
TT
66142017-09-27 Tom Tromey <tom@tromey.com>
6615
6616 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6617
57f5a81b
TT
66182017-09-27 Tom Tromey <tom@tromey.com>
6619
6620 * arc-tdep.c (dump_arc_instruction_command): Constify.
6621
b0a8e6c4
TT
66222017-09-27 Tom Tromey <tom@tromey.com>
6623
6624 * valprint.c (set_radix, show_radix): Constify.
6625
8d97dc1c
TT
66262017-09-27 Tom Tromey <tom@tromey.com>
6627
6628 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6629
eb7c454d
TT
66302017-09-27 Tom Tromey <tom@tromey.com>
6631
6632 * command.h (not_just_help_class_command): Update.
6633 * cli/cli-decode.h (not_just_help_class_command): Update.
6634 * cli/cli-decode.c (not_just_help_class_command): Constify.
6635
e4e33335
TT
66362017-09-27 Tom Tromey <tom@tromey.com>
6637
6638 * gdb_bfd.c (maintenance_info_bfds): Constify.
6639
0450cc4c
TT
66402017-09-27 Tom Tromey <tom@tromey.com>
6641
6642 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6643 overloads.
6644 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6645 (do_const_cfunc): New function.
6646 (cmd_cfunc_eq): New overload.
6647 (cli_user_command_p): Check do_const_cfunc.
6648 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6649 const_cfunc.
6650 * command.h (add_cmd): Add const overload and no-function
6651 overload.
6652 (set_cmd_cfunc): Add const overload.
6653 (cmd_const_cfunc_ftype): Declare.
6654 (cmd_cfunc_eq): Add const overload.
6655 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6656 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6657 overload.
6658
a9bbfbd8
TT
66592017-09-27 Tom Tromey <tom@tromey.com>
6660
6661 * macroexp.c (get_next_token_for_substitution): New function.
6662 (substitute_args): Call it. Check for __VA_OPT__.
6663
5230b05a
WT
66642017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6665 Pedro Alves <palves@redhat.com>
6666
6667 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6668 producer_is_icc_lt_14.
6669 (producer_is_icc_lt_14): New function.
6670 (check_producer): Add code for checking version of ICC.
6671 (producer_is_icc): Move to producer.c.
6672 (read_structure_type): Restrict ICC workaround to ICC<14.
6673 * producer.c: Include selftest.h.
6674 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6675 New functions.
6676 * producer.h (producer_is_icc): New declaration.
6677
b32b108a
WT
66782017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6679
6680 * Makefile.in (SFILES): Add producer.c.
6681 (COMMON_OBS): Add producer.o
6682 * amd64-tdep.c (producer.h): Add new include.
6683 * dwarf2read.c (producer.h): Add new include.
6684 * producer.c: New file.
6685 * producer.h: New file.
6686 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6687 producer.c.
6688 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6689 producer.h.
6690
5007d765
MK
66912017-09-26 Matthias Klose <doko@ubuntu.com>
6692
6693 * configure.ac: Search ncursesw before ncurses.
6694 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6695 * gdb_curses.h: Include <ncursesw/ncurses.h>
6696 * config.in, configure: Regenerate.
6697
281c4447
RO
66982017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6699
6700 PR gdb/22185
6701 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6702 obsolete.
6703 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6704 Remove i386sol2 support.
6705 * configure.nat <i386sol2>: Remove.
6706 <sol2-64>: Fold into ...
6707 <sol2>: ... this.
6708 Move common settings to default section.
6709 Add sol-thread.o.
6710 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6711 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6712 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6713 <i[34567]86-*-solaris*>: Remove.
6714 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6715
6716 * configure.ac: Remove wctype in libw check.
6717 (_MSE_INT_H): Don't define on Solaris 7-9.
6718 <solaris*>: Remove libthread_db.so.1 check.
6719 * configure: Regenerate.
6720 * config.in: Regenerate.
6721
6722 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6723 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6724 (gdb_ps_size_t): Remove.
6725 Use base types in users.
6726 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6727
6728 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6729
39b06c20
RO
67302017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6731
6732 PR build/22206
6733 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6734 (adi_is_addr_mapped): Likewise.
6735 (PSR_ICC): Don't redefine.
6736 (PSR_IMPL): Likewise.
6737
6c3e20f1
TT
67382017-09-25 Tom Tromey <tom@tromey.com>
6739
6740 * regcache.c (regcache::dump): Use string_printf.
6741
b292235f
TT
67422017-09-25 Tom Tromey <tom@tromey.com>
6743
6744 * regcache.c (class regcache_invalidator): New.
6745 (struct register_to_invalidate): Remove.
6746 (make_cleanup_regcache_invalidate): Remove.
6747 (regcache::raw_write): Use regcache_invalidator.
6748
9ac86b52
TT
67492017-09-25 Tom Tromey <tom@tromey.com>
6750
6751 * spu-tdep.c (spu2ppu_sniffer): Update.
6752 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6753 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6754 Remove.
6755 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6756 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6757 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6758 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6759 (frame_pop): Update.
6760
c0e383c6
TT
67612017-09-25 Tom Tromey <tom@tromey.com>
6762
6763 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6764 * regcache.h (regcache_xfree): Don't declare.
6765 * regcache.c (regcache_xfree): Remove.
6766 (do_regcache_xfree): Use delete.
6767 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6768 * linux-fork.c (free_fork): Use delete.
6769 (fork_save_infrun_state): Likewise.
6770 * jit.c (jit_dealloc_cache): Use delete.
6771 * infrun.c (discard_infcall_suspend_state): Use delete.
6772
791199cc
TT
67732017-09-25 Tom Tromey <tom@tromey.com>
6774
6775 * regcache.h (regcache_xmalloc): Don't declare.
6776 (regcache_raw_set_cached_value): Update comment.
6777 * regcache.c (regcache_xmalloc): Remove.
6778 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6779 * jit.c (jit_frame_sniffer): Use new.
6780 * frame.c (frame_save_as_regcache): Use new.
6781
289e23aa
AA
67822017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6783
6784 * NEWS: Advertise support for guarded-storage registers on IBM z.
6785
1b63490c
AA
67862017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6787
6788 * s390-linux-nat.c (have_regset_gs): New static variable.
6789 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6790 control block and guarded-storage broadcast control regsets.
6791 (s390_read_description): Detect whether the target has
6792 guarded-storage support, return appropriate tdesc.
6793 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6794 (features/s390x-gs-linux64.c): Likewise.
6795 (struct gdbarch_tdep) <have_gs>: New field.
6796 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6797 (s390_gsbc_regset): New variables.
6798 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6799 and s390_gsbc_regset, if applicable.
6800 (s390_core_read_description): Check whether core file was from a
6801 target with guarded-storage support; include appropriate regsets.
6802 (s390_gdbarch_init): Add registers for guarded-storage support.
6803 (_initialize_s390_tdep): Initialize new target descriptions that
6804 include registers for guarded-storage support.
6805 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6806 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6807 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6808 (S390_NUM_REGS): Adjust macro definition.
6809 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6810 (tdesc_s390x_gs_linux64): New declarations.
6811
96235dc1
AA
68122017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6813
6814 * features/s390-gs-linux64.xml: New file.
6815 * features/s390-gs.xml: New file.
6816 * features/s390-gsbc.xml: New file.
6817 * features/s390x-gs-linux64.xml: New file.
6818 * features/Makefile (WHICH): Add s390-gs-linux64 and
6819 s390x-gs-linux64.
6820 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6821 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6822 * features/s390-gs-linux64.c: New generated file.
6823 * features/s390x-gs-linux64.c: New file.
6824 * regformats/s390-gs-linux64.dat: New file.
6825 * regformats/s390x-gs-linux64.dat: New file.
6826
b4a7c699
TT
68272017-09-23 Tom Tromey <tom@tromey.com>
6828
6829 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6830
c2f97536
TT
68312017-09-22 Tom Tromey <tom@tromey.com>
6832
6833 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6834 type to scoped_restore_tmpl.
6835 <scoped_input_handler>: Initialize m_quit_handler directly.
6836
43573013
SDJ
68372017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6838
6839 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6840 (cd_command): Likewise. Free "current_directory" before
6841 assigning to it.
6842 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6843 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6844 * top.c (gdb_dirbuf): Remove global declaration.
6845 * top.h (gdb_dirbuf): Likewise.
6846
6ec2e0f5
SDJ
68472017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6848
6849 * gnulib/aclocal.m4: Regenerate.
6850 * gnulib/config.in: Regenerate.
6851 * gnulib/configure: Regenerate.
6852 * gnulib/import/Makefile.am: Regenerate.
6853 * gnulib/import/Makefile.in: Regenerate.
6854 * gnulib/import/assure.h: New file.
6855 * gnulib/import/at-func.c: Likewise
6856 * gnulib/import/chdir-long.c: New file.
6857 * gnulib/import/chdir-long.h: New file.
6858 * gnulib/import/cloexec.c: New file.
6859 * gnulib/import/cloexec.h: New file.
6860 * gnulib/import/close.c: New file.
6861 * gnulib/import/closedir.c: New file.
6862 * gnulib/import/dirent-private.h: New file.
6863 * gnulib/import/dup-safer.c: New file.
6864 * gnulib/import/dup.c: New file.
6865 * gnulib/import/dup2.c: New file.
6866 * gnulib/import/error.c: New file.
6867 * gnulib/import/error.h: New file.
6868 * gnulib/import/exitfail.c: New file.
6869 * gnulib/import/exitfail.h: New file.
6870 * gnulib/import/fchdir.c: New file.
6871 * gnulib/import/fcntl.c: New file.
6872 * gnulib/import/fcntl.in.h: New file.
6873 * gnulib/import/fd-hook.c: New file.
6874 * gnulib/import/fd-hook.h: New file.
6875 * gnulib/import/fd-safer.c: New file.
6876 * gnulib/import/fdopendir.c: New file.
6877 * gnulib/import/filename.h: New file.
6878 * gnulib/import/filenamecat-lgpl.c: New file.
6879 * gnulib/import/filenamecat.h: New file.
6880 * gnulib/import/fstat.c: New file.
6881 * gnulib/import/fstatat.c: New file.
6882 * gnulib/import/getcwd-lgpl.c: New file.
6883 * gnulib/import/getcwd.c: New file.
6884 * gnulib/import/getdtablesize.c: New file.
6885 * gnulib/import/getlogin_r.c: New file.
6886 * gnulib/import/getprogname.c: New file.
6887 * gnulib/import/getprogname.h: New file.
6888 * gnulib/import/gettext.h: New file.
6889 * gnulib/import/glob-libc.h: New file.
6890 * gnulib/import/glob.c: New file.
6891 * gnulib/import/glob.in.h: New file.
6892 * gnulib/import/intprops.h: New file.
6893 * gnulib/import/m4/chdir-long.m4: New file.
6894 * gnulib/import/m4/close.m4: New file.
6895 * gnulib/import/m4/closedir.m4: New file.
6896 * gnulib/import/m4/d-ino.m4: New file.
6897 * gnulib/import/m4/d-type.m4: New file.
6898 * gnulib/import/m4/dup.m4: New file.
6899 * gnulib/import/m4/dup2.m4: New file.
6900 * gnulib/import/m4/error.m4: New file.
6901 * gnulib/import/m4/fchdir.m4: New file.
6902 * gnulib/import/m4/fcntl.m4: New file.
6903 * gnulib/import/m4/fcntl_h.m4: New file.
6904 * gnulib/import/m4/fdopendir.m4: New file.
6905 * gnulib/import/m4/filenamecat.m4: New file.
6906 * gnulib/import/m4/fstat.m4: New file.
6907 * gnulib/import/m4/fstatat.m4: New file.
6908 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6909 * gnulib/import/m4/getcwd-path-max.m4: New file.
6910 * gnulib/import/m4/getcwd.m4: New file.
6911 * gnulib/import/m4/getdtablesize.m4: New file.
6912 * gnulib/import/m4/getlogin_r.m4: New file.
6913 * gnulib/import/m4/getprogname.m4: New file.
6914 * gnulib/import/m4/glob.m4: New file.
6915 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6916 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6917 * gnulib/import/m4/mempcpy.m4: New file.
6918 * gnulib/import/m4/memrchr.m4: New file.
6919 * gnulib/import/m4/mode_t.m4: New file.
6920 * gnulib/import/m4/msvc-inval.m4: New file.
6921 * gnulib/import/m4/msvc-nothrow.m4: New file.
6922 * gnulib/import/m4/open.m4: New file.
6923 * gnulib/import/m4/openat.m4: New file.
6924 * gnulib/import/m4/opendir.m4: New file.
6925 * gnulib/import/m4/readdir.m4: New file.
6926 * gnulib/import/m4/realloc.m4: New file.
6927 * gnulib/import/m4/rewinddir.m4: New file.
6928 * gnulib/import/m4/save-cwd.m4: New file.
6929 * gnulib/import/m4/strdup.m4: New file.
6930 * gnulib/import/m4/strerror.m4: New file.
6931 * gnulib/import/m4/unistd-safer.m4: New file.
6932 * gnulib/import/mempcpy.c: New file.
6933 * gnulib/import/memrchr.c: New file.
6934 * gnulib/import/msvc-inval.c: New file.
6935 * gnulib/import/msvc-inval.h: New file.
6936 * gnulib/import/msvc-nothrow.c: New file.
6937 * gnulib/import/msvc-nothrow.h: New file.
6938 * gnulib/import/open.c: New file.
6939 * gnulib/import/openat-die.c: New file.
6940 * gnulib/import/openat-priv.h: New file.
6941 * gnulib/import/openat-proc.c: New file.
6942 * gnulib/import/openat.c: New file.
6943 * gnulib/import/openat.h: New file.
6944 * gnulib/import/opendir.c: New file.
6945 * gnulib/import/pipe-safer.c: New file.
6946 * gnulib/import/readdir.c: New file.
6947 * gnulib/import/realloc.c: New file.
6948 * gnulib/import/rewinddir.c: New file.
6949 * gnulib/import/save-cwd.c: New file.
6950 * gnulib/import/save-cwd.h: New file.
6951 * gnulib/import/strdup.c: New file.
6952 * gnulib/import/strerror-override.c: New file.
6953 * gnulib/import/strerror-override.h: New file.
6954 * gnulib/import/strerror.c: New file.
6955 * gnulib/import/unistd--.h: New file.
6956 * gnulib/import/unistd-safer.h: New file.
6957 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6958 "getcwd" and "glob".
6959 * ser-tcp.c: Undefine "close" before redefining it.
6960
432ae719
SM
69612017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6962
6963 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6964 get rid of res_val.
6965
4fa7574e
RO
69662017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6967
6968 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6969 <sol2,sparc>: Likewise.
6970 <sol2-64,i386>: Likewise.
6971
6972 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6973 -Wdeprecated-declarations on *-*-solaris*.
6974 * configure: Regenerate.
6975
6976 * procfs.c: Include "nat/inferior.h".
6977 (procfs_info_proc): Fix typo.
6978
f6327dcb
KB
69792017-09-21 Kevin Buettner <kevinb@redhat.com>
6980
6981 * remote.c (vector): Include.
6982 (struct private_thread_info): Add field, thread_handle.
6983 (free_private_thread_info): Deallocate storage associated with
6984 thread handle.
6985 (get_private_info_thread): Initialize `thread_handle' field.
6986 (struct thread_item): Add field, thread_handle.
6987 (clear_threads_listing_context): Deallocate storage associated
6988 with thread handle.
6989 (start_thread): Add support for "handle" attribute.
6990 (thread_attributes): Add "handle".
6991 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6992 field.
6993 (remote_update_thread_list): Update thread_handle.
6994 (remote_thread_handle_to_thread_info): New function.
6995 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6996
fbbe5337
KB
69972017-09-21 Kevin Buettner <kevinb@redhat.com>
6998
6999 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7000 function.
7001 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7002 * python/python-internal.h (thread_object_type): Declare.
7003
e04ee09e
KB
70042017-09-21 Kevin Buettner <kevinb@redhat.com>
7005
7006 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7007 (target_thread_handle_to_thread_info): Declare.
7008 * target.c (target_thread_handle_to_thread_info): New function.
7009 * target-delegates.c: Regenerate.
7010 * gdbthread.h (find_thread_by_handle): Declare.
7011 * thread.c (find_thread_by_handle): New function.
7012 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7013 function.
7014 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7015
1e5b66ed
SM
70162017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7017
7018 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7019
ebe48ba0
SM
70202017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7021
7022 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7023
0a0bf5dc
YQ
70242017-09-21 Yao Qi <yao.qi@linaro.org>
7025
7026 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7027 to gdb_target_obs.
7028
d1b0a7bf
TT
70292017-09-20 Tom Tromey <tom@tromey.com>
7030
7031 * breakpoint.c (struct counted_command_line): Remove.
7032 (breakpoint_commands): Update.
7033 (alloc_counted_command_line, incref_counted_command_line)
7034 (decref_counted_command_line, do_cleanup_counted_command_line)
7035 (make_cleanup_decref_counted_command_line): Remove.
7036 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7037 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7038 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7039 (save_breakpoints): Update.
7040 * breakpoint.h (counted_command_line): Now a typedef to
7041 shared_ptr.
7042 (struct breakpoint) <commands>: Now a counted_command_line.
7043 (struct bpstats) <command>: Likewise.
7044
48649e1b
TT
70452017-09-20 Tom Tromey <tom@tromey.com>
7046
7047 * breakpoint.c (struct commands_info, do_map_commands_command):
7048 Remove.
7049 (commands_command_1): Update.
7050 (iterate_over_related_breakpoints): Take a function_view.
7051 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7052 (delete_command): Update.
7053 (map_breakpoint_numbers): Take a function_view.
7054 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7055 (disable_command): Update.
7056 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7057 (enable_command): Update.
7058 (struct disp_data, do_enable_breakpoint_disp)
7059 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7060 (do_map_enable_delete_breakpoint): Remove.
7061 (enable_once_command, enable_count_command, enable_delete_command)
7062 (delete_trace_variable_command): Update.
7063
04afa70c
TT
70642017-09-20 Tom Tromey <tom@tromey.com>
7065
7066 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7067 (bpstat_clear): Use delete.
7068 (bpstats): New constructors.
7069 (bpstat_copy, bpstat_stop_status): Use new.
7070 (dprintf_after_condition_true): Update.
7071 * breakpoint.h (bpstats::bpstats): Add constructors.
7072 (bpstats::~bpstats): Add destructor.
7073
c83833f4
PA
70742017-09-20 Pedro Alves <palves@redhat.com>
7075
7076 * eval.c (make_params): Delete, refactored as ...
7077 (class fake_method): ... this new type's ctor.
7078 (fake_method::~fake_method): New.
7079 (evaluate_subexp_standard): Use 'fake_method'.
7080
223ffa71
TT
70812017-09-20 Tom Tromey <tom@tromey.com>
7082
7083 * windows-nat.c (get_windows_debug_event, windows_wait)
7084 (do_initial_windows_stuff, windows_attach): Update.
7085 * utils.c (vwarning, internal_vproblem): Update.
7086 (ui_unregister_input_event_handler_cleanup)
7087 (prepare_to_handle_input): Remove.
7088 (class scoped_input_handler): New.
7089 (defaulted_query, prompt_for_continue): Update.
7090 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7091 Update.
7092 * top.c (undo_terminal_modifications_before_exit): Update.
7093 * target/target.h (target_terminal_init, target_terminal_inferior)
7094 (target_terminal_ours): Don't declare.
7095 (class target_terminal): New.
7096 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7097 (target_terminal_ours_for_output)
7098 (make_cleanup_restore_target_terminal): Don't declare.
7099 (target_terminal_info): Remove.
7100 * target.c (enum terminal_state, terminal_state): Remove.
7101 (target_terminal::terminal_state): Define.
7102 (target_terminal::init): Rename from target_terminal_init.
7103 (target_terminal::inferior): Rename from
7104 target_terminal_inferior.
7105 (target_terminal::ours): Rename from target_terminal_ours.
7106 (target_terminal::ours_for_output): Rename from
7107 target_terminal_ours_for_output.
7108 (target_terminal::info): New method.
7109 (cleanup_restore_target_terminal)
7110 (make_cleanup_restore_target_terminal): Remove.
7111 * solib.c (handle_solib_event): Update.
7112 * remote.c (remote_serial_quit_handler): Update.
7113 (remote_terminal_inferior, remote_wait_as): Update.
7114 * record-full.c (record_full_wait_1): Update.
7115 * nto-procfs.c (procfs_create_inferior): Update.
7116 * nat/fork-inferior.c (startup_inferior): Update.
7117 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7118 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7119 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7120 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7121 (mi_breakpoint_created, mi_breakpoint_deleted)
7122 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7123 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7124 (mi_user_selected_context_changed, report_initial_inferior):
7125 Update.
7126 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7127 (linux_nat_terminal_inferior): Update.
7128 * infrun.c (follow_fork_inferior)
7129 (handle_vfork_child_exec_or_exit, do_target_resume)
7130 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7131 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7132 Update.
7133 * inflow.c (child_terminal_init, info_terminal_command): Update.
7134 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7135 (attach_command): Update.
7136 * infcall.c (call_thread_fsm_should_stop): Update.
7137 * gnu-nat.c (gnu_attach): Update.
7138 * extension.c (struct active_ext_lang_state)
7139 (restore_active_ext_lang): Update.
7140 * exceptions.c (print_flush): Update.
7141 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7142 (struct quit_handler_cleanup_data, restore_quit_handler)
7143 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7144 Remove.
7145 * cp-support.c (gdb_demangle): Update.
7146 * breakpoint.c (update_inserted_breakpoint_locations)
7147 (insert_breakpoint_locations, handle_jit_event)
7148 (disable_breakpoints_in_unloaded_shlib): Update.
7149 * annotate.c (annotate_breakpoints_invalid)
7150 (annotate_frames_invalid): Update.
7151
013af3fc
TT
71522017-09-20 Tom Tromey <tom@tromey.com>
7153
7154 * main.c (catch_command_errors): Rename from
7155 catch_command_errors_const.
7156 (captured_main_1): Update.
7157
06871ae8
PA
71582017-09-20 Pedro Alves <palves@redhat.com>
7159
7160 * cli/cli-cmds.c (list_command): Use print_sal_location.
7161 (print_sal_location): New function.
7162 (ambiguous_line_spec): Use print_sal_location.
7163 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7164 * symtab.c (find_function_start_sal): Likewise.
7165 * symtab.h (symtab_and_line::symbol): New field.
7166
e5f25bc5
PA
71672017-09-20 Pedro Alves <palves@redhat.com>
7168
7169 * linespec.c (minsym_found): Handle non-text minsyms.
7170 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7171
1b7fa39e
WT
71722017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7173
7174 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7175 backslash.
7176
37dd0825
WT
71772017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7178
7179 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7180 vmovups instead vmovaps.
7181 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7182
4e5a4f58
JB
71832017-09-19 John Baldwin <jhb@FreeBSD.org>
7184
7185 * NEWS (Changes since GDB 8.0): Add starti.
7186 * infcmd.c (enum run_break): New.
7187 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7188 case.
7189 (run_command): Use enum run_how.
7190 (start_command): Likewise.
7191 (starti_command): New function.
7192 (RUN_ARGS_HELP): New macro.
7193 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7194 commands. Add starti command.
7195
aa70c9f1
YQ
71962017-09-19 Yao Qi <yao.qi@linaro.org>
7197
7198 * Makefile.in (monitor.o): Remove the rule.
7199
d6541620
YQ
72002017-09-19 Yao Qi <yao.qi@linaro.org>
7201
7202 * annotate.h (struct annotate_arg_emitter): Use
7203 DISABLE_COPY_AND_ASSIGN.
7204 * common/refcounted-object.h (refcounted_object): Likewise.
7205 * completer.h (struct completion_result): Likewise.
7206 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7207 * filename-seen-cache.h (filename_seen_cache): Likewise.
7208 * gdbcore.h (thread_section_name): Likewise.
7209 * gdb_regex.h (compiled_regex): Likewise.
7210 * gdbthread.h (scoped_restore_current_thread): Likewise.
7211 * inferior.h (scoped_restore_current_inferior): Likewise.
7212 * jit.c (jit_reader): Likewise.
7213 * linespec.h (struct linespec_result): Likewise.
7214 * mi/mi-parse.h (struct mi_parse): Likewise.
7215 * nat/fork-inferior.c (execv_argv): Likewise.
7216 * progspace.h (scoped_restore_current_program_space): Likewise.
7217 * python/python-internal.h (class gdbpy_enter): Likewise.
7218 * regcache.h (regcache): Likewise.
7219 * target-descriptions.c (struct tdesc_reg): Likewise.
7220 (struct tdesc_type): Likewise.
7221 (struct tdesc_feature): Likewise.
7222 * ui-out.h (ui_out_emit_type): Likewise.
7223
0615127c
SM
72242017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7225
7226 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7227 label abort_expression.
7228
5e187554
SM
72292017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7230
7231 * common/buffer.c (buffer_xml_printf): Adjust.
7232 * common/xml-utils.c (xml_escape_text): Change return type to
7233 std::string, update code accordingly.
7234 * common/xml-utils.h (xml_escape_text): Change return type to
7235 std::string.
7236 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7237 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7238 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7239 Adjust.
7240
c3d7b541
SM
72412017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7242
7243 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7244 (SUBDIR_UNITTESTS_OBS): Add new object file.
7245 * unittests/xml-utils-selftests.c: New file.
7246
1526853e
SM
72472017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7248
7249 * common/selftest.h (selftest): New struct/interface.
7250 (register_test): Add name parameter, add new overload.
7251 (run_tests): Add filter parameter.
7252 (for_each_selftest_ftype): New typedef.
7253 (for_each_selftest): New declaration.
7254 * common/selftest.c (tests): Change type to
7255 map<string, unique_ptr<selftest>>.
7256 (simple_selftest): New struct.
7257 (register_test): New function.
7258 (register_test): Add name parameter and use it.
7259 (run_tests): Add filter parameter and use it. Add prints.
7260 Adjust to vector -> map change.
7261 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7262 registering selftests.
7263 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7264 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7265 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7266 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7267 * findvar.c (_initialize_findvar): Likewise.
7268 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7269 * maint.c (maintenance_selftest): Update call to run_tests.
7270 (maintenance_info_selftests): New function.
7271 (_initialize_maint_cmds): Register "maintenance info selftests"
7272 command. Update "maintenance selftest" doc.
7273 * regcache.c (_initialize_regcache): Add names when registering
7274 selftests.
7275 * rust-exp.y (_initialize_rust_exp): Likewise.
7276 * selftest-arch.c (gdbarch_selftest): New struct.
7277 (gdbarch_tests): Remove.
7278 (register_test_foreach_arch): Add name parameter. Call
7279 register_test.
7280 (tests_with_arch): Remove, move most content to
7281 gdbarch_selftest::operator().
7282 (_initialize_selftests_foreach_arch): Remove.
7283 * selftest-arch.h (register_test_foreach_arch): Add name
7284 parameter.
7285 (run_tests_with_arch): New declaration.
7286 * utils-selftests.c (_initialize_utils_selftests): Add names
7287 when registering selftests.
7288 * utils.c (_initialize_utils): Likewise.
7289 * unittests/array-view-selftests.c
7290 (_initialize_array_view_selftests): Likewise.
7291 * unittests/environ-selftests.c (_initialize_environ_selftests):
7292 Likewise.
7293 * unittests/function-view-selftests.c
7294 (_initialize_function_view_selftests): Likewise.
7295 * unittests/offset-type-selftests.c
7296 (_initialize_offset_type_selftests): Likewise.
7297 * unittests/optional-selftests.c
7298 (_initialize_optional_selftests): Likewise.
7299 * unittests/scoped_restore-selftests.c
7300 (_initialize_scoped_restore_selftests): Likewise.
7301 * NEWS: Document "maintenance selftest" and "maint info
7302 selftests".
7303
5846367a
SM
73042017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7305
7306 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7307 scoped_restore.
7308
bd77e8ff
SM
73092017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7310
7311 * mi/mi-main.c (mi_load_progress): Make uiout variable
7312 a unique_ptr.
7313
26a67918
PA
73142017-09-15 Pedro Alves <palves@redhat.com>
7315
7316 * compile/compile-c-types.c (convert_enum, convert_int)
7317 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7318
3f8a7804
SM
73192017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7320
7321 * dwarf2read.c (copy_string): Remove.
7322 (parse_macro_definition): Replace copy_string with savestring.
7323
8d200706
YQ
73242017-09-15 Yao Qi <yao.qi@linaro.org>
7325
7326 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7327 gdb_target_obs.
7328 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7329 Likewise.
7330 (i[34567]86-*-linux*): Likewise.
7331
d185219d
SM
73322017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7333
7334 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7335 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7336 <stack>: Change type to std::vector.
7337 <stack_len, stack_allocated>: Remove.
7338 <grow_stack>: Remove.
7339 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7340 (dwarf_expr_context::~dwarf_expr_context): Remove.
7341 (dwarf_expr_context::grow_stack): Remove.
7342 (dwarf_expr_context::push): Adjust.
7343 (dwarf_expr_context::pop): Adjust.
7344 (dwarf_expr_context::fetch): Adjust.
7345 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7346 (dwarf_expr_context::stack_empty_p): Adjust.
7347 (dwarf_expr_context::execute_stack_op): Adjust.
7348
eccd80d6
SM
73492017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7350
7351 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7352 return type to bool.
7353 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7354
69009882
SM
73552017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7356
7357 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7358 Change type to bool.
7359 (dwarf_stack_value) <in_stack_memory>: Likewise.
7360 (dwarf_expr_context) <push_address>: Change parameter type to
7361 bool.
7362 <fetch_in_stack_memory>: Change return type to bool.
7363 <push>: Change parameter type to bool.
7364 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7365 to bool.
7366 (dwarf_expr_context::push_address): Likewise.
7367 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7368 to bool.
7369 (dwarf_expr_context::execute_stack_op): Adjust.
7370 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7371
1e467161
SM
73722017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7373
7374 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7375 (struct dwarf_expr_context) <n_pieces>: Remove.
7376 <pieces>: Change type to std::vector.
7377 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7378 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7379 pieces.
7380 (dwarf_expr_context::add_piece): Adjust.
7381 * dwarf2loc.c (struct piece_closure): Initialize fields.
7382 <n_pieces>: Remove.
7383 <pieces>: Change type to std::vector.
7384 (allocate_piece_closure): Adjust, change parameter to
7385 std::vector rvalue and std::move it to piece_closure.
7386 (rw_pieced_value): Adjust.
7387 (check_pieced_synthetic_pointer): Adjust.
7388 (indirect_synthetic_pointer): Adjust.
7389 (coerce_pieced_ref): Adjust.
7390 (free_pieced_value_closure): Adjust. Use delete to free
7391 piece_closure.
7392 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7393 to allocate_piece_closure.
7394 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7395
0782db84
SM
73962017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7397
7398 * probe.h (probe_ops_cp): Remove typedef.
7399 (DEF_VEC_P (probe_ops_cp)): Remove.
7400 (all_probe_ops): Change type to std::vector.
7401 * probe.c (info_probes_for_ops): Adjust to vector change.
7402 (probe_linespec_to_ops): Likewise.
7403 (all_probe_ops): Change type to std::vector.
7404 (_initialize_probe): Adjust to vector change.
7405 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7406 * elfread.c (elf_get_probes): Likewise.
7407 * stap-probe.c (_initialize_stap_probe): Likewise.
7408
1eac6bea
SM
74092017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7410
7411 * probe.h (struct bound_probe): Define constructors.
7412 * probe.c (bound_probe_s): Remove typedef.
7413 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7414 (collect_probes): Change return type to std::vector, remove
7415 cleanup.
7416 (compare_probes): Return bool, change parameter type. Change
7417 semantic to "less than".
7418 (gen_ui_out_table_header_info): Change parameter to std::vector
7419 and update.
7420 (exists_probe_with_pops): Likewise.
7421 (info_probes_for_ops): Update to std::vector change.
7422 (enable_probes_command): Likewise.
7423 (disable_probes_command): Likewise.
7424
aaa63a31
SM
74252017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7426
7427 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7428 vec to std::vector.
7429 * probe.c (parse_probes_in_pspace): Update.
7430 (find_probes_in_objfile): Update.
7431 (find_probe_by_pc): Update.
7432 (collect_probes): Update.
7433 (probe_any_get_probes): Update.
7434 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7435 return type to reference to std::vector.
7436 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7437 std::vector and update.
7438 (dtrace_process_dof): Likewise.
7439 (dtrace_get_probes): Likewise.
7440 * elfread.c (elf_get_probes): Change return type to std::vector,
7441 store an std::vector in bfd_data.
7442 (probe_key_free): Update to std::vector.
7443 * stap-probe.c (handle_stap_probe): Change parameter to
7444 std::vector and update.
7445 (stap_get_probes): Likewise.
7446 * symfile-debug.c (debug_sym_get_probes): Change return type to
7447 std::vector and update.
7448
cb85b21b
TT
74492017-09-11 Tom Tromey <tom@tromey.com>
7450
7451 * breakpoint.c (program_breakpoint_here_p): Update.
7452 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7453 from make_show_memory_breakpoints_cleanup. Return a
7454 scoped_restore_tmpl<int>.
7455 (restore_show_memory_breakpoints): Remove.
7456 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7457 * mem-break.c (memory_validate_breakpoint): Update.
7458 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7459 (ia64_memory_remove_breakpoint): Update.
7460 (ia64_breakpoint_from_pc): Update.
7461 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7462 from make_show_memory_breakpoints_cleanup.
7463
8fbc99ef
TT
74642017-09-11 Tom Tromey <tom@tromey.com>
7465
7466 * d-namespace.c (d_lookup_symbol): Use std::string.
7467 (find_symbol_in_baseclass): Likewise.
7468
50feb4bd
TT
74692017-09-11 Tom Tromey <tom@tromey.com>
7470
7471 * ctf.c (ctf_start): Use std::string.
7472
c6dc63a1
TT
74732017-09-11 Tom Tromey <tom@tromey.com>
7474
7475 * ada-lang.c (is_known_support_routine): Update.
7476 (ada_unhandled_exception_name_addr_from_raise): Update.
7477 * guile/scm-frame.c (gdbscm_frame_name): Update.
7478 * python/py-frame.c (frapy_name): Update.
7479 (frapy_function): Update.
7480 * stack.h (find_frame_funname): Update.
7481 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7482 (print_frame): Update.
7483
d6b9b80f
TT
74842017-09-11 Tom Tromey <tom@tromey.com>
7485
7486 * findcmd.c (put_bits): Take a gdb::byte_vector.
7487 (parse_find_args): Return gdb::byte_vector. "args" now const.
7488 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7489 cleanups.
7490 (find_command): Update.
7491
a9921622
TT
74922017-09-11 Tom Tromey <tom@tromey.com>
7493
7494 * cli/cli-script.c (class scoped_restore_hook_in): New.
7495 (clear_hook_in_cleanup): Remove.
7496 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7497 scoped_restore_hook_in.
7498
be0d7abb
TT
74992017-09-11 Tom Tromey <tom@tromey.com>
7500
7501 * cli/cli-script.c (restore_interp): Remove.
7502 (read_command_lines): Use scoped_restore_interp.
7503 * interps.c (scoped_restore_interp::set_temp): Rename from
7504 interp_set_temp.
7505 * interps.h (class scoped_restore_interp): New.
7506 (interp_set_temp): Remove.
7507
00f675ff
TT
75082017-09-11 Tom Tromey <tom@tromey.com>
7509
7510 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7511 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7512 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7513 scoped_restore.
7514 (mi_cmd_break_insert_1): Update.
7515 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7516 scoped_restore.
7517
cb791d59
TT
75182017-09-11 Tom Tromey <tom@tromey.com>
7519
7520 * demangle.c (demangle_command): Update.
7521 * breakpoint.c (disable_command): Update.
7522 (enable_command): Update.
7523 (find_location_by_number): Make "number" const. Use
7524 get_number_trailer.
7525 * cli/cli-utils.c (extract_arg): Return std::string.
7526 * probe.c (parse_probe_linespec): Update. Change types.
7527 (collect_probes): Take string arguments.
7528 (parse_probe_linespec): Likewise.
7529 (info_probes_for_ops): Update.
7530 (enable_probes_command): Update.
7531 (disable_probes_command): Update.
7532 * break-catch-sig.c (catch_signal_split_args): Update.
7533 * mi/mi-parse.c (mi_parse): Update.
7534
2039bd9f
TT
75352017-09-11 Tom Tromey <tom@tromey.com>
7536
7537 * language.h (language_enum): Make argument const.
7538 * language.c (language_enum): Make argument const.
7539
f1735a53
TT
75402017-09-11 Tom Tromey <tom@tromey.com>
7541
7542 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7543 as function.
7544 (skip_to_space): Rename from skip_to_space_const.
7545 * common/common-utils.c (skip_to_space): New function.
7546 (skip_to_space): Rename from skip_to_space_const.
7547 * cli/cli-utils.h (get_number): Rename from get_number_const.
7548 (extract_arg): Rename from extract_arg_const.
7549 * cli/cli-utils.c (get_number): Rename from get_number_const.
7550 (extract_arg): Rename from extract_arg_const.
7551 (number_or_range_parser::get_number): Use ::get_number.
7552 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7553 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7554 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7555 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7556 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7557 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7558 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7559 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7560
7d221d74
TT
75612017-09-11 Tom Tromey <tom@tromey.com>
7562
7563 * python/python.c (do_start_initialization): Use
7564 py-event-types.def to initialize types.
7565 Define all object type structures.
7566 * python/python-internal.h: Don't declare event initialization
7567 functions.
7568 * python/py-threadevent.c (thread_event_object_type): Don't
7569 define.
7570 * python/py-stopevent.c (stop_event_object_type): Don't define.
7571 * python/py-signalevent.c (signal_event_object_type): Don't
7572 declare or define.
7573 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7574 (clear_objfiles_event_object_type): Don't declare or define.
7575 * python/py-infevents.c (inferior_call_pre_event_object_type)
7576 (inferior_call_post_event_object_type)
7577 (register_changed_event_object_type)
7578 (memory_changed_event_object_type): Don't declare or define.
7579 * python/py-inferior.c (new_thread_event_object_type)
7580 (new_inferior_event_object_type)
7581 (inferior_deleted_event_object_type): Don't declare or define.
7582 * python/py-exitedevent.c (exited_event_object_type): Don't
7583 declare or define.
7584 * python/py-evts.c (gdbpy_initialize_py_events): Use
7585 py-all-events.def.
7586 * python/py-events.h (thread_event_object_type): Don't declare.
7587 (events_object): Use py-all-events.def.
7588 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7589 py-event-types.def.
7590 * python/py-event-types.def: New file.
7591 * python/py-continueevent.c (create_continue_event_object): Don't
7592 declare or define.
7593 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7594 declare or define.
7595 * python/py-all-events.def: New file.
7596
35c61a1d
TT
75972017-09-11 Tom Tromey <tom@tromey.com>
7598
7599 * python/py-threadevent.c (create_thread_event_object): Return
7600 gdbpy_ref.
7601 * python/py-stopevent.h (create_stop_event_object)
7602 (create_breakpoint_event_object, create_signal_event_object):
7603 Update.
7604 * python/py-stopevent.c (create_stop_event_object): Return
7605 gdbpy_ref.
7606 (emit_stop_event): Update.
7607 * python/py-signalevent.c (create_signal_event_object): Return
7608 gdbpy_ref.
7609 * python/py-infevents.c (create_inferior_call_event_object):
7610 Update.
7611 * python/py-event.h (create_event_object)
7612 (create_thread_event_object): Update.
7613 * python/py-event.c (create_event_object): Return gdbpy_ref.
7614 * python/py-continueevent.c: Return gdbpy_ref.
7615 * python/py-bpevent.c (create_breakpoint_event_object): Return
7616 gdbpy_ref.
7617
7c96f8c1
TT
76182017-09-11 Tom Tromey <tom@tromey.com>
7619
7620 PR python/15622:
7621 * NEWS: Add entry.
7622 * python/python.c (do_start_initialization): Initialize new event
7623 types.
7624 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7625 (gdbpy_initialize_inferior_deleted_event)
7626 (gdbpy_initialize_new_thread_event): Declare.
7627 * python/py-threadevent.c (create_thread_event_object): Add option
7628 "thread" parameter.
7629 * python/py-inferior.c (new_thread_event_object_type)
7630 (new_inferior_event_object_type)
7631 (inferior_deleted_event_object_type): Declare.
7632 (python_new_inferior, python_inferior_deleted): New functions.
7633 (add_thread_object): Emit new_thread event.
7634 (gdbpy_initialize_inferior): Attach new functions to corresponding
7635 observers.
7636 (new_thread, new_inferior, inferior_deleted): Define new event
7637 types.
7638 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7639 registries.
7640 * python/py-events.h (events_object) <new_inferior,
7641 inferior_deleted, new_thread>: New fields.
7642 * python/py-event.h (create_thread_event_breakpoint): Add optional
7643 "thread" parameter.
7644
72542b8e
AB
76452017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7646
7647 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7648 check current_ui instead.
7649 (internal_vproblem): Likewise.
7650
0d64823e
SM
76512017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7652
7653 * thread.c (print_thread_info_1): Remove unnecessary calls to
7654 uiout->is_mi_like_p.
7655
eb1e02fd
TT
76562017-09-09 Tom Tromey <tom@tromey.com>
7657
7658 * namespace.h (add_using_directive): Update.
7659 * namespace.c (add_using_directive): Change type of excludes to
7660 std::vector.
7661 * dwarf2read.c (read_import_statement): Use std::vector.
7662 (read_namespace): Update.
7663 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7664
0fc21fd8
TT
76652017-09-09 Tom Tromey <tom@tromey.com>
7666
7667 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7668
49663d05
TT
76692017-09-09 Tom Tromey <tom@tromey.com>
7670
7671 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7672
0b868b60
TT
76732017-09-09 Tom Tromey <tom@tromey.com>
7674
7675 * stack.c (func_command): Use gdb::def_vector.
7676
c0470d48
TT
76772017-09-09 Tom Tromey <tom@tromey.com>
7678
7679 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7680 ui_out_emit_list, ui_out_emit_tuple.
7681 (mi_cmd_var_update): Likewise.
7682
ca5909c7
TT
76832017-09-09 Tom Tromey <tom@tromey.com>
7684
7685 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7686 ui_out_redirect_pop.
7687 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7688 ui_out_redirect_pop.
7689 * utils.c (do_ui_out_redirect_pop)
7690 (make_cleanup_ui_out_redirect_pop): Remove.
7691 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7692 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7693 * ui-out.h (ui_out_redirect_pop): New class.
7694
e6a2252a
TT
76952017-09-09 Tom Tromey <tom@tromey.com>
7696
7697 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7698 (list_available_thread_groups, mi_cmd_list_thread_groups)
7699 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7700 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7701 Likewise.
7702
393702cd
TT
77032017-09-09 Tom Tromey <tom@tromey.com>
7704
7705 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7706 ui_out_emit_tuple.
7707
76f9c9cf
TT
77082017-09-09 Tom Tromey <tom@tromey.com>
7709
7710 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7711 * stack.c (print_frame): Use ui_out_emit_tuple.
7712 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7713 (info_spu_mailbox_command, info_spu_dma_command)
7714 (info_spu_proxydma_command): Likewise.
7715 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7716 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7717 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7718 ui_out_emit_tuple.
7719 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7720
dc9fe180
TT
77212017-09-09 Tom Tromey <tom@tromey.com>
7722
7723 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7724 (class ui_out_emit_table): Update comment.
7725 * ui-out.c (do_cleanup_table_end)
7726 (make_cleanup_ui_out_table_begin_end): Remove.
7727 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7728 (info_spu_dma_cmdlist): Likewise.
7729 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7730 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7731 ui_out_emit_table.
7732
f8cc3da6
TT
77332017-09-09 Tom Tromey <tom@tromey.com>
7734
7735 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7736 ui_out_emit_list, gdb::optional.
7737
481695ed
JB
77382017-09-09 John Baldwin <jhb@FreeBSD.org>
7739
7740 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7741 prototype.
7742 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7743 prototype.
7744 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7745 prototype.
7746 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7747 * ada-exp.y: Remove _initialize_ada_exp prototype.
7748 * ada-lang.c: Remove _initialize_ada_language prototype.
7749 * ada-tasks.c: Remove _initialize_tasks prototype.
7750 * addrmap.c: Remove _initialize_addrmap prototype.
7751 * agent.c: Remove _initialize_agent prototype.
7752 * aix-thread.c: Remove _initialize_aix_thread prototype.
7753 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7754 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7755 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7756 prototype.
7757 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7758 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7759 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7760 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7761 prototype.
7762 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7763 prototype.
7764 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7765 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7766 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7767 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7768 prototype.
7769 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7770 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7771 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7772 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7773 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7774 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7775 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7776 prototype.
7777 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7778 prototype.
7779 * annotate.c: Remove _initialize_annotate prototype.
7780 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7781 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7782 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7783 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7784 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7785 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7786 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7787 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7788 prototype.
7789 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7790 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7791 * auto-load.c: Remove _initialize_auto_load prototype.
7792 * auxv.c: Remove _initialize_auxv prototype.
7793 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7794 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7795 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7796 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7797 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7798 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7799 prototype.
7800 * break-catch-throw.c: Remove _initialize_break_catch_throw
7801 prototype.
7802 * breakpoint.c: Remove _initialize_breakpoint prototype.
7803 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7804 * btrace.c: Remove _initialize_btrace prototype.
7805 * charset.c: Remove _initialize_charset prototype.
7806 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7807 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7808 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7809 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7810 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7811 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7812 * coffread.c: Remove _initialize_coffread prototype.
7813 * compile/compile.c: Remove _initialize_compile prototype.
7814 * complaints.c: Remove _initialize_complaints prototype.
7815 * completer.c: Remove _initialize_completer prototype.
7816 * copying.awk: Remove _initialize_copying prototype.
7817 * copying.c: Regenerate.
7818 * core-regset.c: Remove _initialize_core_regset prototype.
7819 * corefile.c: Remove _initialize_core prototype.
7820 * corelow.c: Remove _initialize_corelow prototype.
7821 * cp-abi.c: Remove _initialize_cp_abi prototype.
7822 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7823 * cp-support.c: Remove _initialize_cp_support prototype.
7824 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7825 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7826 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7827 * ctf.c: Remove _initialize_ctf prototype.
7828 * d-lang.c: Remove _initialize_d_language prototype.
7829 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7830 prototype.
7831 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7832 * dbxread.c: Remove _initialize_dbxread prototype.
7833 * dcache.c: Remove _initialize_dcache prototype.
7834 * demangle.c: Remove _initialize_demangler prototype.
7835 * disasm-selftests.c: Remove _initialize_disasm_selftests
7836 prototype.
7837 * disasm.c: Remove _initialize_disasm prototype.
7838 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7839 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7840 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7841 prototype.
7842 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7843 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7844 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7845 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7846 * elfread.c: Remove _initialize_elfread prototype.
7847 * exec.c: Remove _initialize_exec prototype.
7848 * extension.c: Remove _initialize_extension prototype.
7849 * f-lang.c: Remove _initialize_f_language prototype.
7850 * f-valprint.c: Remove _initialize_f_valprint prototype.
7851 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7852 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7853 * filesystem.c: Remove _initialize_filesystem prototype.
7854 * findcmd.c: Remove _initialize_mem_search prototype.
7855 * fork-child.c: Remove _initialize_fork_child prototype.
7856 * frame-base.c: Remove _initialize_frame_base prototype.
7857 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7858 * frame.c: Remove _initialize_frame prototype.
7859 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7860 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7861 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7862 * gcore.c: Remove _initialize_gcore prototype.
7863 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7864 * gdbarch.c: Regenerate.
7865 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7866 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7867 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7868 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7869 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7870 * go-lang.c: Remove _initialize_go_language prototype.
7871 * go32-nat.c: Remove _initialize_go32_nat prototype.
7872 * guile/guile.c: Remove _initialize_guile prototype.
7873 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7874 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7875 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7876 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7877 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7878 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7879 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7880 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7881 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7882 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7883 prototype.
7884 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7885 prototype.
7886 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7887 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7888 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7889 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7890 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7891 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7892 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7893 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7894 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7895 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7896 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7897 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7898 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7899 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7900 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7901 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7902 prototype.
7903 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7904 prototype.
7905 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7906 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7907 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7908 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7909 * infcall.c: Remove _initialize_infcall prototype.
7910 * infcmd.c: Remove _initialize_infcmd prototype.
7911 * inferior.c: Remove _initialize_inferiors prototype.
7912 * inflow.c: Remove _initialize_inflow prototype.
7913 * infrun.c: Remove _initialize_infrun prototype.
7914 * interps.c: Remove _initialize_interpreter prototype.
7915 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7916 * jit.c: Remove _initialize_jit prototype.
7917 * language.c: Remove _initialize_language prototype.
7918 * linux-fork.c: Remove _initialize_linux_fork prototype.
7919 * linux-nat.c: Remove _initialize_linux_nat prototype.
7920 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7921 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7922 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7923 * m2-lang.c: Remove _initialize_m2_language prototype.
7924 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7925 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7926 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7927 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7928 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7929 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7930 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7931 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7932 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7933 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7934 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7935 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7936 * machoread.c: Remove _initialize_machoread prototype.
7937 * macrocmd.c: Remove _initialize_macrocmd prototype.
7938 * macroscope.c: Remove _initialize_macroscope prototype.
7939 * maint.c: Remove _initialize_maint_cmds prototype.
7940 * mdebugread.c: Remove _initialize_mdebugread prototype.
7941 * memattr.c: Remove _initialize_mem prototype.
7942 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7943 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7944 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7945 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7946 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7947 * microblaze-linux-tdep.c: Remove
7948 _initialize_microblaze_linux_tdep prototype.
7949 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7950 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7951 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7952 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7953 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7954 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7955 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7956 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7957 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7958 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7959 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7960 prototype.
7961 * mipsread.c: Remove _initialize_mipsread prototype.
7962 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7963 prototype.
7964 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7965 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7966 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7967 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7968 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7969 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7970 prototype.
7971 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7972 * nto-procfs.c: Remove _initialize_procfs prototype.
7973 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7974 * objc-lang.c: Remove _initialize_objc_language prototype.
7975 * objfiles.c: Remove _initialize_objfiles prototype.
7976 * observer.c: Remove observer_test_first_notification_function,
7977 observer_test_second_notification_function,
7978 observer_test_third_notification_function, and
7979 _initialize_observer prototypes.
7980 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7981 * osabi.c: Remove _initialize_gdb_osabi prototype.
7982 * osdata.c: Remove _initialize_osdata prototype.
7983 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7984 * parse.c: Remove _initialize_parse prototype.
7985 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7986 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7987 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7988 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7989 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7990 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7991 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7992 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7993 * printcmd.c: Remove _initialize_printcmd prototype.
7994 * probe.c: Remove _initialize_probe prototype.
7995 * proc-api.c: Remove _initialize_proc_api prototype.
7996 * proc-events.c: Remove _initialize_proc_events prototype.
7997 * proc-service.c: Remove _initialize_proc_service prototype.
7998 * procfs.c: Remove _initialize_procfs prototype.
7999 * psymtab.c: Remove _initialize_psymtab prototype.
8000 * python/python.c: Remove _initialize_python prototype.
8001 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8002 * record-btrace.c: Remove _initialize_record_btrace prototype.
8003 * record-full.c: Remove _initialize_record_full prototype.
8004 * record.c: Remove _initialize_record prototype.
8005 * regcache.c: Remove _initialize_regcache prototype.
8006 * reggroups.c: Remove _initialize_reggroup prototype.
8007 * remote-notif.c: Remove _initialize_notif prototype.
8008 * remote-sim.c: Remove _initialize_remote_sim prototype.
8009 * remote.c: Remove _initialize_remote prototype.
8010 * reverse.c: Remove _initialize_reverse prototype.
8011 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8012 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8013 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8014 prototype.
8015 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8016 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8017 * rust-exp.y: Remove _initialize_rust_exp prototype.
8018 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8019 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8020 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8021 * score-tdep.c: Remove _initialize_score_tdep prototype.
8022 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8023 prototype.
8024 * ser-go32.c: Remove _initialize_ser_dos prototype.
8025 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8026 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8027 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8028 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8029 * serial.c: Remove _initialize_serial prototype.
8030 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8031 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8032 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8033 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8034 * skip.c: Remove _initialize_step_skip prototype.
8035 * sol-thread.c: Remove _initialize_sol_thread prototype.
8036 * solib-aix.c: Remove _initialize_solib_aix prototype.
8037 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8038 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8039 * solib-frv.c: Remove _initialize_frv_solib prototype.
8040 * solib-spu.c: Remove _initialize_spu_solib prototype.
8041 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8042 * solib-target.c: Remove _initialize_solib_target prototype.
8043 * solib.c: Remove _initialize_solib prototype.
8044 * source.c: Remove _initialize_source prototype.
8045 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8046 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8047 prototype.
8048 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8049 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8050 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8051 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8052 prototype.
8053 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8054 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8055 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8056 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8057 prototype.
8058 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8059 prototype.
8060 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8061 prototype.
8062 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8063 prototype.
8064 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8065 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8066 prototype.
8067 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8068 prototype.
8069 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8070 prototype.
8071 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8072 prototype.
8073 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8074 prototype.
8075 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8076 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8077 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8078 * stabsread.c: Remove _initialize_stabsread prototype.
8079 * stack.c: Remove _initialize_stack prototype.
8080 * stap-probe.c: Remove _initialize_stap_probe prototype.
8081 * std-regs.c: Remove _initialize_frame_reg prototype.
8082 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8083 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8084 * symfile.c: Remove _initialize_symfile prototype.
8085 * symmisc.c: Remove _initialize_symmisc prototype.
8086 * symtab.c: Remove _initialize_symtab prototype.
8087 * target-dcache.c: Remove _initialize_target_dcache prototype.
8088 * target-descriptions.c: Remove _initialize_target_descriptions
8089 prototype.
8090 * thread.c: Remove _initialize_thread prototype.
8091 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8092 prototype.
8093 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8094 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8095 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8096 prototype.
8097 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8098 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8099 * tracefile.c: Remove _initialize_tracefile prototype.
8100 * tracepoint.c: Remove _initialize_tracepoint prototype.
8101 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8102 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8103 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8104 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8105 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8106 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8107 * tui/tui.c: Remove _initialize_tui prototype.
8108 * typeprint.c: Remove _initialize_typeprint prototype.
8109 * user-regs.c: Remove _initialize_user_regs prototype.
8110 * utils.c: Remove _initialize_utils prototype.
8111 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8112 * valarith.c: Remove _initialize_valarith prototype.
8113 * valops.c: Remove _initialize_valops prototype.
8114 * valprint.c: Remove _initialize_valprint prototype.
8115 * value.c: Remove _initialize_values prototype.
8116 * varobj.c: Remove _initialize_varobj prototype.
8117 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8118 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8119 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8120 * windows-nat.c: Remove _initialize_windows_nat,
8121 _initialize_check_for_gdb_ini, and _initialize_loadable
8122 prototypes.
8123 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8124 * xcoffread.c: Remove _initialize_xcoffread prototype.
8125 * xml-support.c: Remove _initialize_xml_support prototype.
8126 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8127 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8128 prototype.
8129 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8130 prototype.
8131 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8132
a611b5cb
KS
81332017-09-08 Keith Seitz <keiths@redhat.com>
8134
8135 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8136 field.
8137
469412dd
CW
81382017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8139
8140 * f-valprint.c (f_val_print): Remove check for one byte
8141 sized integers. Remove printing of character type.
8142
a5ad232b
FP
81432017-09-08 Frank Penczek <frank.penczek@intel.com>
8144 Christoph Weinmann <christoph.t.weinmann@intel.com>
8145 Bernhard Heckel <bernhard.heckel@intel.com>
8146
8147 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8148 to maintain proper indentation when printing pointers/refs.
8149
e5014227
JB
81502017-09-07 Joel Brobecker <brobecker@adacore.com>
8151
8152 GDB 8.0.1 released.
8153
63c99141
JB
81542017-09-07 Joel Brobecker <brobecker@adacore.com>
8155
8156 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8157
69c1e056
TT
81582017-09-05 Tom Tromey <tom@tromey.com>
8159
8160 * parse.c (funcall_chain): Now a std::vector.
8161 (start_arglist, end_arglist): Simplify.
8162 (free_funcalls): Remove.
8163 (parse_exp_in_context_1): Remove cleanup.
8164
fef704bf
TT
81652017-09-05 Tom Tromey <tom@tromey.com>
8166
8167 * go-exp.y (go_parse): Don't create a cleanup.
8168
5613c585
TT
81692017-09-05 Tom Tromey <tom@tromey.com>
8170
8171 * d-exp.y (PrimaryExpression): Use std::string.
8172 (d_parse): Don't create a cleanup.
8173
eae49211
TT
81742017-09-05 Tom Tromey <tom@tromey.com>
8175
8176 * utils.c (do_clear_parser_state): Remove.
8177 (make_cleanup_clear_parser_state): Remove.
8178 * p-exp.y (pascal_parse): Use scoped_restore.
8179 * m2-exp.y (m2_parse): Use scoped_restore.
8180 * f-exp.y (f_parse): Use scoped_restore.
8181 * d-exp.y (d_parse): Use scoped_restore.
8182 * c-exp.y (c_parse): Use scoped_restore.
8183 * ada-exp.y (ada_parse): Use scoped_restore.
8184 * utils.h (make_cleanup_clear_parser_state): Remove.
8185
73b9be8b
KS
81862017-09-06 Keith Seitz <keiths@redhat.com>
8187
8188 * dwarf2read.c (dw2_linkage_name_attr): New function.
8189 (dw2_linkage_name): New function.
8190 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8191 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8192 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8193
a102602b
KR
81942017-09-06 Kamil Rytarowski <n54@gmx.com>
8195
8196 * config/djgpp/djconfig.sh: Correct shell portability issue.
8197
28ad437d
KR
81982017-09-06 Kamil Rytarowski <n54@gmx.com>
8199
8200 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8201
351787dd
JB
82022017-09-06 John Baldwin <jhb@FreeBSD.org>
8203
8204 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8205 * NEWS: Mention new FreeBSD/mips native configuration.
8206 * configure.host: Add aarch64*-*-freebsd*.
8207 * configure.nat: Likewise.
8208 * aarch64-fbsd-nat.c: New file.
8209
c0f84956
JB
82102017-09-06 John Baldwin <jhb@FreeBSD.org>
8211
8212 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8213 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8214 * NEWS: Mention new FreeBSD/aarch64 target.
8215 * configure.tgt: Add aarch64*-*-freebsd*.
8216 * aarch64-fbsd-tdep.c: New file.
8217 * aarch64-fbsd-tdep.h: New file.
8218
7610297a
KR
82192017-09-06 Kamil Rytarowski <n54@gmx.com>
8220
8221 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8222
fbd1b771
JK
82232017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8224
8225 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8226 of TLS symbols.
8227
5ca79eae
PW
82282017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8229
8230 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8231 call.
8232
bf93d7ba
SM
82332017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8234
8235 * infrun.c (follow_exec): Call add_thread after
8236 target_find_description.
8237
1bb7c059
SM
82382017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8239
8240 * infrun.c (handle_inferior_event_1): When exec'ing, read
8241 stop_pc after follow_exec.
8242
fc809827
SM
82432017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8244
8245 * remote.c (process_g_packet): Update error message.
8246
d2fcdd85
YQ
82472017-09-05 Yao Qi <yao.qi@linaro.org>
8248
8249 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8250 targets.
8251
e69570ee
PA
82522017-09-05 Pedro Alves <palves@redhat.com>
8253
8254 * eval.c (eval_call, evaluate_funcall): New functions, factored
8255 out from ...
8256 (evaluate_subexp_standard): ... this.
8257
22916b07
YQ
82582017-09-05 Yao Qi <yao.qi@linaro.org>
8259
8260 * amd64-tdep.c (amd64_target_description): Create target
8261 descriptions.
8262 (_initialize_amd64_tdep): Don't call functions
8263 initialize_tdesc_amd64_*. Add self tests.
8264 * arch/amd64.c (amd64_create_target_description): Add parameter
8265 is_linux. Call set_tdesc_osabi if is_linux is true.
8266 * arch/amd64.h (amd64_create_target_description): Update the
8267 declaration.
8268 * arch/i386.c (i386_create_target_description): Add parameter
8269 is_linux. Call set_tdesc_osabi if is_linux is true.
8270 * arch/i386.h (i386_create_target_description): Update
8271 declaration.
8272 * configure.tgt: Add i386.o to gdb_target_obs.
8273 * features/Makefile (XMLTOC): Remove i386/*.xml.
8274 * features/i386/amd64-avx-avx512.c: Remove.
8275 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8276 * features/i386/amd64-avx-mpx.c: Remove.
8277 * features/i386/amd64-avx.c: Remove.
8278 * features/i386/amd64-mpx.c: Remove.
8279 * features/i386/amd64.c: Remove.
8280 * features/i386/i386-avx-avx512.c: Remove.
8281 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8282 * features/i386/i386-avx-mpx.c: Remove.
8283 * features/i386/i386-avx.c: Remove.
8284 * features/i386/i386-mmx.c: Remove.
8285 * features/i386/i386-mpx.c: Remove.
8286 * features/i386/i386.c: Remove.
8287 * i386-tdep.c: Don't include features/i386/i386*.c., include
8288 target-descriptions.h and arch/i386.h.
8289 (i386_target_description): Create target descriptions.
8290 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8291 functions. Do self tests.
8292
0854b7b1
YQ
82932017-09-05 Yao Qi <yao.qi@linaro.org>
8294
8295 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8296 * features/i386/amd64-avx-avx512-linux.c: Removed.
8297 * features/i386/amd64-avx-linux.c: Removed.
8298 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8299 * features/i386/amd64-avx-mpx-linux.c: Removed.
8300 * features/i386/amd64-linux.c: Removed.
8301 * features/i386/amd64-mpx-linux.c: Removed.
8302 * features/i386/x32-avx-avx512-linux.c: Removed.
8303 * features/i386/x32-avx-linux.c: Removed.
8304 * features/i386/x32-linux.c: Removed.
8305
b4570e4b
YQ
83062017-09-05 Yao Qi <yao.qi@linaro.org>
8307
8308 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8309 features/i386/*.c.
8310 (amd64_linux_read_description): Call
8311 amd64_create_target_description.
8312 * arch/amd64.c: New file.
8313 * arch/amd64.h: New file.
8314 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8315 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8316
6c73f67f
YQ
83172017-09-05 Yao Qi <yao.qi@linaro.org>
8318
8319 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8320 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8321 (amd64_linux_read_description): Create target descriptions.
8322 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8323 functions. Add unit tests.
8324 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8325 x32-core.xml.
8326 * features/i386/64bit-avx.c: Generated.
8327 * features/i386/64bit-avx512.c: Generated.
8328 * features/i386/64bit-core.c: Generated.
8329 * features/i386/64bit-linux.c: Generated.
8330 * features/i386/64bit-mpx.c: Generated.
8331 * features/i386/64bit-pkeys.c: Generated.
8332 * features/i386/64bit-segments.c: Generated.
8333 * features/i386/64bit-sse.c: Generated.
8334 * features/i386/x32-core.c: Generated.
8335 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8336 c files for amd64-linux and x32-linux.
8337
9d3d478b
YQ
83382017-09-05 Yao Qi <yao.qi@linaro.org>
8339
8340 * amd64-linux-tdep.c (amd64_linux_read_description): New
8341 function.
8342 (amd64_linux_core_read_description): Call
8343 amd64_linux_read_description.
8344 (amd64_linux_init_abi): Likewise.
8345 (amd64_x32_linux_init_abi): Likewise.
8346 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8347 * x86-linux-nat.c (x86_linux_read_description): Call
8348 amd64_linux_read_description.
8349
b9f1d50f
YQ
83502017-09-05 Yao Qi <yao.qi@linaro.org>
8351
8352 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8353 comments.
8354
188c9e6d
YQ
83552017-09-05 Yao Qi <yao.qi@linaro.org>
8356
8357 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8358 * features/i386/i386-avx-avx512-linux.c: Remove.
8359 * features/i386/i386-avx-linux.c: Remove.
8360 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8361 * features/i386/i386-avx-mpx-linux.c: Remove.
8362 * features/i386/i386-linux.c: Remove.
8363 * features/i386/i386-mmx-linux.c: Remove.
8364 * features/i386/i386-mpx-linux.c: Remove.
8365
5f035c07
YQ
83662017-09-05 Yao Qi <yao.qi@linaro.org>
8367
8368 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8369 (SFILES): Add arch/i386.c.
8370 (HFILES_NO_SRCDIR): Add arch/i386.h.
8371 * arch/i386.c: New file.
8372 * arch/i386.h: New file.
8373 * arch/tdesc.h (allocate_target_description): Declare.
8374 (set_tdesc_architecture): Declare.
8375 (set_tdesc_osabi): Declare.
8376 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8377 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8378 include arch/i386.h.
8379 (i386_linux_read_description): Remove code and call
8380 i386_create_target_description.
8381 (set_tdesc_architecture): New function.
8382 (set_tdesc_osabi): New function.
8383 * target-descriptions.h (allocate_target_description): Remove.
8384
0abe8a89
YQ
83852017-09-05 Yao Qi <yao.qi@linaro.org>
8386
8387 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8388 * target-descriptions.c (tdesc_create_feature): Likewise, and
8389 adjust code.
8390 * features/i386/32bit-avx.c: Re-generated.
8391 * features/i386/32bit-avx512.c: Re-generated.
8392 * features/i386/32bit-core.c: Re-generated.
8393 * features/i386/32bit-linux.c: Re-generated.
8394 * features/i386/32bit-mpx.c: Re-generated.
8395 * features/i386/32bit-pkeys.c: Re-generated.
8396 * features/i386/32bit-sse.c: Re-generated.
8397
0a188386
YQ
83982017-09-05 Yao Qi <yao.qi@linaro.org>
8399
8400 * regformats/regdef.h (struct reg): Override operator == and !=.
8401
f49ff000
YQ
84022017-09-05 Yao Qi <yao.qi@linaro.org>
8403
8404 * arch/tdesc.h: New file.
8405 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8406 * target-descriptions.c: Update comments.
8407 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8408 declarations.
8409 * features/i386/32bit-avx.c: Re-generated.
8410 * features/i386/32bit-avx512.c: Re-generated.
8411 * features/i386/32bit-core.c: Re-generated.
8412 * features/i386/32bit-linux.c: Re-generated.
8413 * features/i386/32bit-mpx.c: Re-generated.
8414 * features/i386/32bit-pkeys.c: Re-generated.
8415 * features/i386/32bit-sse.c: Re-generated.
8416
f7000548
YQ
84172017-09-05 Yao Qi <yao.qi@linaro.org>
8418
8419 * regformats/regdat.sh: Update generated code.
8420
c9a5e2a5
YQ
84212017-09-05 Yao Qi <yao.qi@linaro.org>
8422
8423 * regformats/regdat.sh: Adjust code order.
8424
d6b687ac
SM
84252017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8426
8427 * expprint.c (dump_subexp_body_standard): Use constant format
8428 string in fprintf_filtered call.
8429
a379bfd0
JB
84302017-09-04 John Baldwin <jhb@FreeBSD.org>
8431
8432 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8433 NetBSD/i386.
8434 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8435
f7efc967
JB
84362017-09-04 John Baldwin <jhb@FreeBSD.org>
8437
8438 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8439
c49fbc6c
JB
84402017-09-04 John Baldwin <jhb@FreeBSD.org>
8441
8442 * bsd-kvm.o: Define _KMEMUSER.
8443 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8444 * configure: Regenerate.
8445
26562e73
JB
84462017-09-04 John Baldwin <jhb@FreeBSD.org>
8447
8448 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8449 * i386-fbsd-nat.c: Likewise.
8450
31cf1487
JB
84512017-09-04 John Baldwin <jhb@FreeBSD.org>
8452
8453 * unittests/array-view-selftests.c: Add include of <array>.
8454
5b9f8a7c
JB
84552017-09-04 John Baldwin <jhb@FreeBSD.org>
8456
8457 * spu-tdep.c (flush_ea_cache): Add missing argument to
8458 call_function_by_hand.
8459
d69cf9b2
PA
84602017-09-04 Pedro Alves <palves@redhat.com>
8461
8462 * NEWS (Safer support for debugging with no debug info): New.
8463
3693fdb3
PA
84642017-09-04 Pedro Alves <palves@redhat.com>
8465
8466 * c-exp.y (function_method, function_method_void): Add current
8467 instance flags to TYPE_INSTANCE.
8468 * dwarf2read.c (check_modifier): New.
8469 (compute_delayed_physnames): Assert that only C++ adds delayed
8470 physnames. Mark fn_fields as const/volatile depending on
8471 physname.
8472 * eval.c (make_params): New type_instance_flags parameter. Use
8473 it as the new type's instance flags.
8474 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8475 flags element and pass it to make_params.
8476 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8477 instance flags element.
8478 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8479 * gdbtypes.h: Include "enum-flags.h".
8480 (type_instance_flags): New enum-flags type.
8481 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8482 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8483 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8484 (follow_type_instance_flags): New function.
8485 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8486 * parser-defs.h (follow_type_instance_flags): Declare.
8487 * valops.c (value_struct_elt_for_reference): const/volatile must
8488 match too.
8489
e68cb8e0
PA
84902017-09-04 Pedro Alves <palves@redhat.com>
8491
8492 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8493 function/method scopes; lookup the nested name as a function local
8494 static variable.
8495
858be34c
PA
84962017-09-04 Pedro Alves <palves@redhat.com>
8497
8498 (%type <voidval>): Add function_method.
8499 * c-exp.y (exp): New production for calls with no arguments.
8500 (function_method, function_method_void_or_typelist): New
8501 productions.
8502 (exp): New production for "method()::static_var".
8503 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8504 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8505 Handle OP_FUNC_STATIC_VAR.
8506 * parse.c (operator_length_standard):
8507 Handle OP_FUNC_STATIC_VAR.
8508
dd5901a6
PA
85092017-09-04 Pedro Alves <palves@redhat.com>
8510
8511 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8512 handling.
8513 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8514 Ditto.
8515 * parse.c (operator_length_standard, operator_check_standard):
8516 Ditto.
8517 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8518
46a4882b
PA
85192017-09-04 Pedro Alves <palves@redhat.com>
8520
8521 * ax-gdb.c: Include "typeprint.h".
8522 (gen_expr_for_cast): New function.
8523 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8524 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8525 type is unknown.
8526 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8527 nodebug_data_symbol.
8528 * eval.c: Include "typeprint.h".
8529 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8530 Error out if symbol has unknown type.
8531 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8532 evaluate_subexp_for_cast.
8533 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8534 OP_VAR_MSYM_VALUE.
8535 (evaluate_subexp_for_cast): New function.
8536 * gdbtypes.c (init_nodebug_var_type): New function.
8537 (objfile_type): Use it to initialize types of variables with no
8538 debug info.
8539 * typeprint.c (error_unknown_type): New.
8540 * typeprint.h (error_unknown_type): New declaration.
8541 * compile/compile-c-types.c (convert_type_basic): Handle
8542 TYPE_CODE_ERROR; warn and fallback to int for variables with
8543 unknown type.
8544
fe13dfec
PA
85452017-09-04 Pedro Alves <palves@redhat.com>
8546
8547 * eval.c (evaluate_var_value): New function, factored out from ...
8548 (evaluate_subexp_standard): ... here.
8549
d008ee21
PA
85502017-09-04 Pedro Alves <palves@redhat.com>
8551
8552 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8553 Remove useless assignments to 'op'.
8554
827d0c51
PA
85552017-09-04 Pedro Alves <palves@redhat.com>
8556
8557 * eval.c (eval_skip_value): New function.
8558 (evaluate_subexp_standard): Use it.
8559
2c5a2be1
PA
85602017-09-04 Pedro Alves <palves@redhat.com>
8561
8562 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8563 function name from symbol/minsym and pass it to
8564 error_call_unknown_return_type.
8565
74ea4be4
PA
85662017-09-04 Pedro Alves <palves@redhat.com>
8567
8568 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8569 * ax-gdb.c (gen_msym_var_ref): New function.
8570 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8571 * eval.c (evaluate_var_msym_value): New function.
8572 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8573 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8574 to call_function_by_hand.
8575 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8576 Handle OP_VAR_MSYM_VALUE.
8577 (union exp_element) <msymbol>: New field.
8578 * minsyms.h (struct type): Forward declare.
8579 (find_minsym_type_and_address): Declare.
8580 * parse.c (write_exp_elt_msym): New function.
8581 (write_exp_msymbol): Delete, refactored as ...
8582 (find_minsym_type_and_address): ... this new function.
8583 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8584 (operator_length_standard, operator_check_standard): Handle
8585 OP_VAR_MSYM_VALUE.
8586 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8587
7022349d
PA
85882017-09-04 Pedro Alves <palves@redhat.com>
8589
8590 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8591 TYPE_GNU_IFUNC specially here. Throw error if return type is
8592 unknown.
8593 * ada-typeprint.c (print_func_type): Handle functions with unknown
8594 return type.
8595 * c-typeprint.c (c_type_print_base): Handle functions and methods
8596 with unknown return type.
8597 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8598 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8599 * compile/compile-c-types.c: Include "objfiles.h".
8600 (convert_func): For functions with unknown return type, warn and
8601 default to int.
8602 * compile/compile-object-run.c (compile_object_run): Adjust call
8603 to call_function_by_hand_dummy.
8604 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8605 call_function_by_hand.
8606 * eval.c (evaluate_subexp_standard): Adjust calls to
8607 call_function_by_hand. Handle functions and methods with unknown
8608 return type. Pass expect_type to call_function_by_hand.
8609 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8610 return type.
8611 * gcore.c (call_target_sbrk): Adjust call to
8612 call_function_by_hand.
8613 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8614 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8615 an integer address type instead of nodebug.
8616 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8617 call_function_by_hand.
8618 * infcall.c (error_call_unknown_return_type): New function.
8619 (call_function_by_hand): New "default_return_type" parameter.
8620 Pass it down.
8621 (call_function_by_hand_dummy): New "default_return_type"
8622 parameter. Use it instead of defaulting to int. If there's no
8623 default and the return type is unknown, throw an error. If
8624 there's a default return type, and the called function has no
8625 debug info, then assume the function is prototyped.
8626 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8627 New "default_return_type" parameter.
8628 (error_call_unknown_return_type): New declaration.
8629 * linux-fork.c (call_lseek): Cast return type of lseek.
8630 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8631 call_function_by_hand.
8632 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8633 calls to call_function_by_hand.
8634 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8635 return type.
8636 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8637 (value_nsstring, print_object_command): Adjust calls to
8638 call_function_by_hand.
8639 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8640 functions with unknown return type.
8641 (pascal_type_print_func_varspec_suffix): New function.
8642 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8643 TYPE_CODE_METHOD>: Use it.
8644 * python/py-value.c (valpy_call): Adjust call to
8645 call_function_by_hand.
8646 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8647 call_function_by_hand.
8648 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8649 call_function_by_hand.
8650 * valops.c (value_allocate_space_in_inferior): Adjust call to
8651 call_function_by_hand.
8652 * typeprint.c (type_print_unknown_return_type): New function.
8653 * typeprint.h (type_print_unknown_return_type): New declaration.
8654
54990598
PA
86552017-09-04 Pedro Alves <palves@redhat.com>
8656
8657 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8658 types with more than one parameter as prototyped.
8659
9a24775b
PA
86602017-09-04 Pedro Alves <palves@redhat.com>
8661
8662 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8663 (disassemble_command): Use gdb_disassembly_flags instead of bare
8664 int.
8665 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8666 (dump_insns, do_mixed_source_and_assembly_deprecated)
8667 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8668 Use gdb_disassembly_flags instead of bare int.
8669 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8670 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8671 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8672 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8673 (enum gdb_disassembly_flag): ... values of this new enumeration.
8674 (gdb_disassembly_flags): Define.
8675 (gdb_disassembly)
8676 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8677 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8678 gdb_disassembly_flags instead of bare int.
8679 * record-btrace.c (btrace_insn_history)
8680 (record_btrace_insn_history, record_btrace_insn_history_range)
8681 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8682 instead of bare int.
8683 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8684 Use gdb_disassembly_flags instead of bare int.
8685 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8686 Define.
8687 * target-delegates.c: Regenerate.
8688 * target.c (target_insn_history, target_insn_history_from)
8689 (target_insn_history_range): Use gdb_disassembly_flags instead of
8690 bare int.
8691 * target.h: Include "disasm.h".
8692 (struct target_ops) <to_insn_history, to_insn_history_from,
8693 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8694 int.
8695 (target_insn_history, target_insn_history_from)
8696 (target_insn_history_range): Use gdb_disassembly_flags instead of
8697 bare int.
8698
80a65e9b
SM
86992017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8700
8701 * cli/cli-script.c (build_command_line): For if/while commands,
8702 check whether args is empty.
8703
6b66338c
SM
87042017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8705
8706 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8707 (enum command_control_type): Likewise.
8708 (struct command_line): Likewise.
8709 (free_command_lines): Likewise.
8710 (struct command_lines_deleter): Likewise.
8711 (command_line_up): Likewise.
8712 (read_command_lines): Likewise.
8713 (read_command_lines_1): Likewise.
8714 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8715 (enum command_control_type): Likewise.
8716 (struct command_line): Likewise.
8717 (free_command_lines): Likewise.
8718 (struct command_lines_deleter): Likewise.
8719 (command_line_up): Likewise.
8720 (read_command_lines): Likewise.
8721 (read_command_lines_1): Likewise.
8722 * breakpoint.h: Include cli/cli-script.h.
8723 * extension-priv.h: Likewise.
8724 * gdbcmd.h: Likewise.
8725
51abb421
PA
87262017-09-04 Pedro Alves <palves@redhat.com>
8727
8728 * ada-lang.c (is_known_support_routine): Move sal declaration to
8729 where it is initialized.
8730 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8731 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8732 (clear_command, update_static_tracepoint): Remove init_sal
8733 references. Move declarations closer to initializations.
8734 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8735 initializations.
8736 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8737 references. Move sal declarations closer to initializations.
8738 * frame.c (find_frame_sal): Return a symtab_and_line via function
8739 return instead of output parameter. Remove init_sal references.
8740 * frame.h (find_frame_sal): Return a symtab_and_line via function
8741 return instead of output parameter.
8742 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8743 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8744 instead of memset.
8745 (gdbscm_find_pc_line): Remove init_sal reference.
8746 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8747 references. Move declarations closer to initializations.
8748 * infcmd.c (set_step_frame): Update. Move declarations closer to
8749 initializations.
8750 (finish_backward): Remove init_sal references. Move declarations
8751 closer to initializations.
8752 * infrun.c (process_event_stop_test, handle_step_into_function)
8753 (insert_hp_step_resume_breakpoint_at_frame)
8754 (insert_step_resume_breakpoint_at_caller): Likewise.
8755 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8756 (symbol_to_sal): Likewise.
8757 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8758 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8759 to its initialization.
8760 * reverse.c (save_bookmark_command): Use new/delete. Remove
8761 init_sal references. Move declarations closer to initializations.
8762 * source.c (get_current_source_symtab_and_line): Remove brace
8763 initialization.
8764 (set_current_source_symtab_and_line): Now takes the sal by const
8765 reference. Remove brace initialization.
8766 (line_info): Remove init_sal reference.
8767 * source.h (set_current_source_symtab_and_line): Now takes a
8768 symtab_and_line via const reference.
8769 * stack.c (set_current_sal_from_frame): Adjust.
8770 (print_frame_info): Adjust.
8771 (get_last_displayed_sal): Return the sal via function return
8772 instead of via output parameter. Simplify.
8773 (frame_info): Adjust.
8774 * stack.h (get_last_displayed_sal): Return the sal via function
8775 return instead of via output parameter.
8776 * symtab.c (init_sal): Delete.
8777 (find_pc_sect_line): Remove init_sal references. Move
8778 declarations closer to initializations.
8779 (find_function_start_sal): Remove init_sal references. Move
8780 declarations closer to initializations.
8781 * symtab.h (struct symtab_and_line): In-class initialize all
8782 fields.
8783 * tracepoint.c (set_traceframe_context)
8784 (print_one_static_tracepoint_marker): Remove init_sal references.
8785 Move declarations closer to initializations.
8786 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8787 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8788 declarations closer to initializations.
8789 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8790 init_sal references. Adjust.
8791
6c5b2ebe
PA
87922017-09-04 Pedro Alves <palves@redhat.com>
8793
8794 * ax-gdb.c (agent_command_1): Use range-for.
8795 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8796 * breakpoint.c: Include "common/array-view.h".
8797 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8798 parameter from struct symtabs_and_lines to
8799 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8800 (breakpoint_sals_to_pc): Change sals parameter from struct
8801 symtabs_and_lines to std::vector reference.
8802 (check_fast_tracepoint_sals): Change sals parameter from struct
8803 symtabs_and_lines to std::array_view. Use range-for.
8804 (decode_static_tracepoint_spec): Return a std::vector instead of
8805 symtabs_and_lines. Update.
8806 (create_breakpoint): Update.
8807 (break_range_command, until_break_command, clear_command): Update.
8808 (base_breakpoint_decode_location, bkpt_decode_location)
8809 (bkpt_probe_create_sals_from_location)
8810 (bkpt_probe_decode_location, tracepoint_decode_location)
8811 (tracepoint_probe_decode_location)
8812 (strace_marker_create_sals_from_location): Return a std::vector
8813 instead of symtabs_and_lines.
8814 (strace_marker_create_breakpoints_sal): Update.
8815 (strace_marker_decode_location): Return a std::vector instead of
8816 symtabs_and_lines. Update.
8817 (update_breakpoint_locations): Change struct symtabs_and_lines
8818 parameters to gdb::array_view. Adjust.
8819 (location_to_sals): Return a std::vector instead of
8820 symtabs_and_lines. Update.
8821 (breakpoint_re_set_default): Use std::vector instead of struct
8822 symtabs_and_lines.
8823 (decode_location_default): Return a std::vector instead of
8824 symtabs_and_lines. Update.
8825 * breakpoint.h: Include "common/array-view.h".
8826 (struct breakpoint_ops) <decode_location>: Now returns a
8827 std::vector instead of returning a symtabs_and_lines via output
8828 parameter.
8829 (update_breakpoint_locations): Change sals parameters to use
8830 gdb::array_view.
8831 * cli/cli-cmds.c (edit_command, list_command): Update to use
8832 std::vector and gdb::array_view.
8833 (ambiguous_line_spec): Adjust to use gdb::array_view and
8834 range-for.
8835 (compare_symtabs): Rename to ...
8836 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8837 const reference and adjust.
8838 (filter_sals): Rewrite using std::vector and standard algorithms.
8839 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8840 (jump_command): Update to use std::vector.
8841 * linespec.c (struct linespec_state) <canonical_names>: Update
8842 comment.
8843 (add_sal_to_sals_basic): Delete.
8844 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8845 (decode_line_2, create_sals_line_offset)
8846 (convert_address_location_to_sals, convert_linespec_to_sals)
8847 (convert_explicit_location_to_sals, parse_linespec)
8848 (event_location_to_sals, decode_line_full, decode_line_1)
8849 (decode_line_with_current_source)
8850 (decode_line_with_last_displayed, decode_objc)
8851 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8852 (linespec_result::~linespec_result): Adjust to use std::vector
8853 instead of symtabs_and_lines.
8854 * linespec.h (linespec_sals::sals): Now a std::vector.
8855 (struct linespec_result): Use std::vector, bool, and in-class
8856 initialization.
8857 (decode_line_1, decode_line_with_current_source)
8858 (decode_line_with_last_displayed): Return std::vector.
8859 * macrocmd.c (info_macros_command): Use std::vector.
8860 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8861 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8862 std::vector.
8863 * probe.h (parse_probes): Return a std::vector.
8864 * python/python.c (gdbpy_decode_line): Use std::vector and
8865 gdb::array_view.
8866 * source.c (select_source_symtab, line_info): Use std::vector.
8867 * stack.c (func_command): Use std::vector.
8868 * symtab.h (struct symtabs_and_lines): Delete.
8869 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8870
7c44b49c
PA
88712017-09-04 Pedro Alves <palves@redhat.com>
8872
8873 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8874 unittests/array-view-selftests.c.
8875 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8876 * common/array-view.h: New file.
8877 * unittests/array-view-selftests.c: New file.
8878
e439fa14
PA
88792017-09-04 Pedro Alves <palves@redhat.com>
8880
8881 * cli/cli-cmds.c (edit_command): Pass message to
8882 ambiguous_line_spec.
8883 (list_command): Pass message to ambiguous_line_spec. Say
8884 "first"/"last" instead of "start" and "end" to be consistent with
8885 the manual.
8886 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8887 them to print formatted message.
8888
7525b645
PA
88892017-09-04 Pedro Alves <palves@redhat.com>
8890
8891 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8892 ftrace_update_insns by reference instead of pointer.
8893
badc0020
YQ
88942017-09-04 Yao Qi <yao.qi@linaro.org>
8895
8896 * i386-go32-tdep.c: Include x86-xstate.h.
8897 (i386_go32_init_abi): Call i386_target_description.
8898 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8899 if xcr0 is X86_XSTATE_X87_MASK.
8900 * i386-tdep.h (tdesc_i386): Remove the declaration.
8901 (tdesc_i386_mmx): Likewise.
8902
d78bdb54
YQ
89032017-09-04 Yao Qi <yao.qi@linaro.org>
8904
8905 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8906 X86_XSTATE_SSE_MASK instead of 0.
8907
ca1fa5ee
YQ
89082017-09-04 Yao Qi <yao.qi@linaro.org>
8909
8910 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8911 i386_target_description.
8912 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8913 i386_target_description.
8914 * i386-tdep.c (i386_gdbarch_init): Likewise.
8915
2434b019
YQ
89162017-09-04 Yao Qi <yao.qi@linaro.org>
8917
8918 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8919 (x86_darwin_init_abi_64): Call amd64_target_description.
8920 * amd64-dicos-tdep.c: Likewise.
8921 * amd64-fbsd-nat.c: Likewise.
8922 * amd64-fbsd-tdep.c: Likewise.
8923 * amd64-nbsd-tdep.c: Likewise.
8924 * amd64-obsd-tdep.c: Likewise.
8925 * amd64-sol2-tdep.c: Likewise.
8926 * amd64-windows-tdep.c: Likewise.
8927 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8928
0860c437
SM
89292017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8930
8931 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8932 (btrace_function) <insn>: Change type to use std::vector.
8933 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8934 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8935 ftrace_update_insns, ftrace_compute_global_level_offset,
8936 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8937 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8938 change to std::vector.
8939 (ftrace_update_insns): Adjust to change to std::vector, change
8940 type of INSN parameter.
8941 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8942 * record-btrace.c (btrace_call_history_insn_range,
8943 btrace_compute_src_line_range,
8944 record_btrace_frame_prev_register): Adjust to change to
8945 std::vector.
8946 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8947 to change to std::vector.
8948
0638b7f9
TT
89492017-09-03 Tom Tromey <tom@tromey.com>
8950
8951 * corefile.c (reopen_exec_file): Use std::string.
8952
8f84fb0e
TT
89532017-09-03 Tom Tromey <tom@tromey.com>
8954
8955 * compile/compile.c (compile_register_name_mangled): Return
8956 std::string.
8957 * compile/compile-loc2c.c (pushf_register_address): Update.
8958 (pushf_register): Update.
8959 * compile/compile-c-types.c (convert_array): Update.
8960 * compile/compile-c-symbols.c (generate_vla_size): Update.
8961 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8962 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8963 (convert_one_symbol): Update.
8964 (generate_c_for_for_one_variable): Update.
8965 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8966 std::string.
8967 (generate_register_struct): Update.
8968 * compile/compile-internal.h (c_get_range_decl_name): Return a
8969 std::string.
8970 (compile_register_name_mangled): Return std::string.
8971
18e9961f
TT
89722017-09-03 Tom Tromey <tom@tromey.com>
8973
8974 * utils.c (perror_string): Return a std::string.
8975 (throw_perror_with_name, perror_warning_with_name): Update.
8976
45343786
TT
89772017-09-03 Tom Tromey <tom@tromey.com>
8978
8979 * demangle.c (demangle_command): Use std::string,
8980 unique_xmalloc_ptr.
8981
b57af503
TT
89822017-09-03 Tom Tromey <tom@tromey.com>
8983
8984 * cli/cli-setshow.c (do_set_command): Use std::string.
8985
6eecf35f
TT
89862017-09-03 Tom Tromey <tom@tromey.com>
8987
8988 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8989
56496dd4
TT
89902017-09-03 Tom Tromey <tom@tromey.com>
8991
8992 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8993
e91a1fa7
TT
89942017-09-03 Tom Tromey <tom@tromey.com>
8995
8996 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8997 gdb::unique_xmalloc_ptr.
8998
7ffd83d7
TT
89992017-09-03 Tom Tromey <tom@tromey.com>
9000
9001 * thread.c (print_thread_info_1): Use string_printf.
9002 (thread_apply_command, thread_apply_all_command): Use
9003 std::string.
9004
1ccbe998
TT
90052017-09-03 Tom Tromey <tom@tromey.com>
9006
9007 * valprint.c (val_print_string): Update.
9008 * gdbcore.h (memory_error_message): Return std::string.
9009 * corefile.c (memory_error_message): Return std::string.
9010 (memory_error): Update.
9011 * breakpoint.c (insert_bp_location): Update.
9012
23fdd69e
SM
90132017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9014
9015 * target/waitstatus.h (target_waitstatus_to_string): Change
9016 return type to std::string.
9017 * target/waitstatus.c (target_waitstatus_to_string): Return
9018 std::string.
9019 * target.h (target_waitstatus_to_string): Remove declaration.
9020 * infrun.c (resume, clear_proceed_status_thread,
9021 print_target_wait_results, do_target_wait, save_waitstatus,
9022 stop_all_threads): Adjust.
9023 * record-btrace.c (record_btrace_wait): Adjust.
9024 * target-debug.h
9025 (target_debug_print_struct_target_waitstatus_p): Adjust.
9026
5c811d30
JK
90272017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9028
9029 PR gdb/22046
9030 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9031 detection.
9032
0a2dde4a
SDJ
90332017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9034
9035 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9036 for setting/unsetting environment variables on the remote target.
9037 (New remote packets): Add entries for QEnvironmentHexEncoded,
9038 QEnvironmentUnset and QEnvironmentReset.
9039 * common/environ.c (gdb_environ::operator=): Extend method to
9040 handle m_user_set_env_list and m_user_unset_env_list.
9041 (gdb_environ::clear): Likewise.
9042 (match_var_in_string): Change type of first parameter from 'char
9043 *' to 'const char *'.
9044 (gdb_environ::set): Extend method to handle
9045 m_user_set_env_list and m_user_unset_env_list.
9046 (gdb_environ::unset): Likewise.
9047 (gdb_environ::clear_user_set_env): New method.
9048 (gdb_environ::user_set_envp): Likewise.
9049 (gdb_environ::user_unset_envp): Likewise.
9050 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9051 m_user_unset_env_list on move constructor/assignment.
9052 (unset): Add new default parameter 'update_unset_list = true'.
9053 (clear_user_set_env): New method.
9054 (user_set_envp): Likewise.
9055 (user_unset_envp): Likewise.
9056 (m_user_set_env_list): New std::set.
9057 (m_user_unset_env_list): Likewise.
9058 * common/rsp-low.c (hex2str): New function.
9059 (bin2hex): New overload for bin2hex function.
9060 * common/rsp-low.c (hex2str): New prototype.
9061 (str2hex): New overload prototype.
9062 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9063 QEnvironmentUnset and QEnvironmentReset.
9064 (remote_protocol_features): Add QEnvironmentHexEncoded,
9065 QEnvironmentUnset and QEnvironmentReset packets.
9066 (send_environment_packet): New function.
9067 (extended_remote_environment_support): Likewise.
9068 (extended_remote_create_inferior): Call
9069 extended_remote_environment_support.
9070 (_initialize_remote): Add QEnvironmentHexEncoded,
9071 QEnvironmentUnset and QEnvironmentReset packet configs.
9072 * unittests/environ-selftests.c (gdb_selftest_env_var):
9073 New variable.
9074 (test_vector_initialization): New function.
9075 (test_init_from_host_environ): Likewise.
9076 (test_reinit_from_host_environ): Likewise.
9077 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9078 Likewise.
9079 (test_unset_set_empty_vector): Likewise.
9080 (test_vector_clear): Likewise.
9081 (test_std_move): Likewise.
9082 (test_move_constructor):
9083 (test_self_move): Likewise.
9084 (test_set_unset_reset): Likewise.
9085 (run_tests): Rewrite in terms of the functions above.
9086
654670a4
WP
90872017-08-31 Weimin Pan <weimin.pan@oracle.com>
9088
9089 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9090 (adi_available): Use a temp variable of type CORE_ADDR as argument
9091 3 when calling target_auxv_search.
9092 (adi_normalize_address): Use masks and xor operators to calculate
9093 normalized address.
9094 (adi_read_versions, adi_write_versions, adi_print_versions)
9095 (do_examine, do_assign): Use paddress.
9096
7755ddb7
JB
90972017-08-29 John Baldwin <jhb@FreeBSD.org>
9098
9099 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9100 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9101 out of loop and add supply of FIR.
9102 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9103 add collect of FIR.
9104
fd437cbc
SM
91052017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9106
3804a343 9107 PR gdb/21827
fd437cbc
SM
9108 * cli/cli-script.c (define_command): Don't convert command name
9109 to lower case.
9110
988f6b3d
JB
91112017-08-25 Joel Brobecker <brobecker@adacore.com>
9112
9113 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9114 Update all callers accordingly. Remove all code blocks handling
9115 the case where DISPP is not NULL.
9116
663c44ac
JK
91172017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9118
9119 PR symtab/22003
9120 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9121 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9122 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9123
f1902523
JK
91242017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9125
9126 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9127 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9128 (read_comp_units_from_section): New parameter abbrev_section, use
9129 read_and_check_comp_unit_head, allocate signatured_type if needed.
9130 (create_all_comp_units): Update read_comp_units_from_section caller.
9131
87215ad1
SDJ
91322017-08-23 Pedro Alves <palves@redhat.com>
9133
9134 PR remote/21852
9135 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9136 to null_ptid and switch to thread without reading the registers
9137 after adding the inferior.
9138
6e41ddec
JK
91392017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9140
9141 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9142 compile-gcc.
9143 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9144 (compile_to_object): Implement compile_gcc.
9145 (_initialize_compile): Install "set compile-gcc". Initialize
9146 compile_gcc.
9147
e68c32d5
JK
91482017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9149
9150 * compile/compile.c (compile_to_object): Conditionally call
9151 set_verbose. Conditionally call compile or compile_v0.
9152
58afddc6
WP
91532017-08-07 Weimin Pan <weimin.pan@oracle.com>
9154
9155 * sparc64-tdep.h: (adi_normalize_address): New export.
9156 * sparc-nat.h: (open_adi_tag_fd): New export.
9157 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9158 * sparc64-linux-tdep.c:
9159 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9160 (sparc64_linux_handle_segmentation_fault): New function.
9161 (sparc64_linux_init_abi): Register
9162 sparc64_linux_handle_segmentation_fault
9163 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9164 (sparc64_addr_bits_remove): New function.
9165 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9166 (MAX_PROC_NAME_SIZE): New macro.
9167 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9168 (sparc64adilist): New variable.
9169 (adi_proc_list): New variable.
9170 (find_adi_info): New function.
9171 (add_adi_info): New function.
9172 (get_adi_info_proc): New function.
9173 (get_adi_info): New function.
9174 (info_adi_command): New function.
9175 (read_maps_entry): New function.
9176 (adi_available): New function.
9177 (adi_normalize_address): New function.
9178 (adi_align_address): New function.
9179 (adi_convert_byte_count): New function.
9180 (adi_tag_fd): New function.
9181 (adi_is_addr_mapped): New function.
9182 (adi_read_versions): New function.
9183 (adi_write_versions): New function.
9184 (adi_print_versions): New function.
9185 (do_examine): New function.
9186 (do_assign): New function.
9187 (adi_examine_command): New function.
9188 (adi_assign_command): New function.
9189 (_initialize_sparc64_adi_tdep): New function.
9190
11db9430
SM
91912017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9192
9193 * breakpoint.c (breakpoints_info): Rename to ...
9194 (info_breakpoints_command): ... this.
9195 (watchpoints_info): Rename to ...
9196 (info_watchpoints_command): ... this.
9197 (tracepoints_info): Rename to ...
9198 (info_tracepoints_command): ... this.
9199 (_initialize_breakpoint): Adjust.
9200 * dcache.c (dcache_info): Rename to ...
9201 (info_display_command): ... this.
9202 (_initialize_dcache): Adjust.
9203 * frame.h (args_info): Rename to ...
9204 (info_args_command): ... this.
9205 (locals_info): Rename to ...
9206 (info_locals_command): ... this.
9207 * infcmd.c (nofp_registers_info): Rename to ...
9208 (info_registers_command): ... this.
9209 (float_info): Rename to ...
9210 (info_float_command): ... this.
9211 (program_info): Rename to ...
9212 (info_program_command): ... this.
9213 (all_registers_info): Rename to ...
9214 (info_all_registers_command): ... this.
9215 (vector_info): Rename to ...
9216 (info_vector_command): ... this.
9217 (float_info): Rename to ...
9218 (info_float_command): ... this.
9219 (_initialize_infcmd): Adjust.
9220 * inferior.h (term_info): Rename to ...
9221 (info_terminal_command): ... this.
9222 * inflow.c (term_info): Rename to ...
9223 (info_terminal_command): ... this.
9224 (_initialize_inflow): Adjust.
9225 * infrun.c (signals_info): Rename to ...
9226 (info_signals_command): ... this.
9227 (_initialize_infrun): Adjust.
9228 * objc-lang.c (classes_info): Rename to ...
9229 (info_classes_command): ... this.
9230 (selectors_info): Rename to ...
9231 (info_selectors_command): ... this.
9232 (_initialize_objc_language): Adjust.
9233 * printcmd.c (sym_info): Rename to ...
9234 (info_symbol_command): ... this.
9235 (address_info): Rename to ...
9236 (info_address_command): ... this.
9237 (display_info): Rename to ...
9238 (info_display_command): ... this.
9239 (_initialize_printcmd): Adjust.
9240 * reverse.c (bookmarks_info): Rename to ...
9241 (info_breakpoints_command): ... this.
9242 (_initialize_reverse): Adjust.
9243 * ser-go32.c (dos_info): Rename to ...
9244 (info_serial_command): ... this.
9245 (_initialize_ser_dos): Adjust.
9246 * skip.c (skip_info): Rename to ...
9247 (info_skip_command): ... this.
9248 (_initialize_step_skip): Adjust.
9249 * source.c (line_info): Rename to ...
9250 (info_line_command): ... this.
9251 (source_info): Rename to ...
9252 (info_source_command)
9253 * stack.c (frame_info): Rename to ...
9254 (info_frame_command): ... this.
9255 (locals_info): Rename to ...
9256 (info_locals_command): ... this.
9257 (args_info): Rename to ...
9258 (info_args_command): ... this.
9259 (_initialize_stack): Adjust.
9260 * symtab.c (sources_info): Rename to ...
9261 (info_sources_command): ... this.
9262 (variables_info): Rename to ...
9263 (info_variables_command): ... this.
9264 (functions_info): Rename to ...
9265 (info_functions_command): ... this.
9266 (types_info): Rename to ...
9267 (info_types_command): ... this.
9268 (_initialize_symtab): Adjust.
9269 * target.c (target_info): Rename to ...
9270 (info_target_command): ... this.
9271 (initialize_targets): Adjust.
9272 * tracepoint.c (tvariables_info): Rename to ...
9273 (info_tvariables_command): ... this.
9274 (scope_info): Rename to ...
9275 (info_scope_command): ... this.
9276 (trace_dump_actions): Adjust.
9277 (_initialize_tracepoint): Adjust.
9278
b270e6f9
TT
92792017-08-22 Tom Tromey <tom@tromey.com>
9280
9281 * breakpoint.h (install_breakpoint): Update.
9282 * breakpoint.c (add_solib_catchpoint): Update.
9283 (install_breakpoint): Change argument to a std::unique_ptr.
9284 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9285 (create_breakpoint_sal, create_breakpoint): Update.
9286 (watch_command_1, catch_exec_command_1)
9287 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9288 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9289 Return the breakpoint.
9290 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9291 (new_single_step_breakpoint): Update.
9292 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9293 std::unique_ptr.
9294 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9295 std::unique_ptr.
9296 * break-catch-sig.c (create_signal_catchpoint): Use
9297 std::unique_ptr.
9298 * ada-lang.c (create_ada_exception_catchpoint): Use
9299 std::unique_ptr.
9300
36bd8eaa
TT
93012017-08-22 Tom Tromey <tom@tromey.com>
9302
9303 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9304
56f37645
TT
93052017-08-22 Tom Tromey <tom@tromey.com>
9306
9307 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9308 (lookup_partial_symbol): Update.
9309
0b581c69
TT
93102017-08-22 Tom Tromey <tom@tromey.com>
9311
9312 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9313 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9314 (find_and_open_source, symtab_to_fullname): Update.
9315 * psymtab.c (psymtab_to_fullname): Update.
9316
14278e1f
TT
93172017-08-22 Tom Tromey <tom@tromey.com>
9318
9319 * exec.c (exec_file_attach): Update.
9320 * linux-thread-db.c (try_thread_db_load): Update.
9321 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9322 * utils.c (gdb_realpath): Change return type.
9323 (gdb_realpath_keepfile): Update.
9324 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9325 (_initialize_utils): Register the new self test.
9326 * source.c (openp): Update.
9327 (find_and_open_source): Update.
9328 * nto-tdep.c (nto_find_and_open_solib): Update.
9329 * main.c (set_gdb_data_directory): Update.
9330 (captured_main_1): Update.
9331 * dwarf2read.c (dwarf2_get_dwz_file): Update
9332 (dw2_map_symbol_filenames): Update.
9333 * auto-load.c (auto_load_safe_path_vec_update): Update.
9334 (filename_is_in_auto_load_safe_path_vec): Change type of
9335 "filename_realp".
9336 (auto_load_objfile_script): Update.
9337 (file_is_auto_load_safe): Update. Use std::string.
9338 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9339
4971c9a7
TT
93402017-08-22 Tom Tromey <tom@tromey.com>
9341
9342 * utils.c (gdb_realpath_keepfile): Return a
9343 gdb::unique_xmalloc_ptr.
9344 * exec.c (exec_file_attach): Update.
9345 * utils.h (gdb_realpath_keepfile): Return a
9346 gdb::unique_xmalloc_ptr.
9347
e3e41d58
TT
93482017-08-22 Tom Tromey <tom@tromey.com>
9349
9350 * compile/compile.c (compile_file_command): Use
9351 gdb::unique_xmalloc_ptr, std::string.
9352 * utils.c (gdb_abspath): Change return type.
9353 * source.c (openp): Update.
9354 * objfiles.c (allocate_objfile): Update.
9355 * main.c (set_gdb_data_directory): Update.
9356 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9357
0d999a6e
ZZ
93582017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9359
9360 * cli-cmds.c (list_commands): List actual code around more than
9361 one location.
9362
329d5e7e
JB
93632017-08-21 John Baldwin <jhb@FreeBSD.org>
9364
9365 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9366
bf223d3e
PA
93672017-08-21 Pedro Alves <palves@redhat.com>
9368
9369 PR gdb/19487
9370 * c-exp.y (variable production): Handle function aliases.
9371 * minsyms.c (msymbol_is_text): New function.
9372 * minsyms.h (msymbol_is_text): Declare.
9373 * symtab.c (find_function_alias_target): New function.
9374 * symtab.h (find_function_alias_target): Declare.
9375
c973d0aa
PA
93762017-08-21 Pedro Alves <palves@redhat.com>
9377
9378 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9379 typedefs.
9380 * typeprint.c (whatis_exp): If handling "whatis", and expression
9381 is OP_TYPE, strip one typedef level. Otherwise don't strip
9382 typedefs here.
9383 * valops.c (value_cast): Save "to" type before resolving
9384 stubs/typedefs. Use that type as resulting value's type.
9385
2989a365
TT
93862017-08-18 Tom Tromey <tom@tromey.com>
9387 Pedro Alves <palves@redhat.com>
9388
9389 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9390 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9391 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9392 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9393 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9394 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9395 (linux_get_siginfo_data): Add "thread" argument. Use
9396 scoped_restore.
9397 * linux-nat.c (linux_child_follow_fork)
9398 (check_stopped_by_watchpoint): Use scoped_restore.
9399 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9400 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9401 (restore_inferior_ptid, save_inferior_ptid): Remove.
9402 * btrace.c (btrace_fetch): Use scoped_restore.
9403 * bsd-uthread.c (bsd_uthread_fetch_registers)
9404 (bsd_uthread_store_registers): Use scoped_restore.
9405 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9406 scoped_restore.
9407 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9408 (aix_thread_xfer_partial): Use scoped_restore.
9409 * inferior.h (save_inferior_ptid): Remove.
9410
e60eb288
YQ
94112017-08-18 Yao Qi <yao.qi@linaro.org>
9412
9413 PR tdep/21818
9414 * arm-tdep.c (gdb_print_insn_arm): Mark
9415 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9416
6d580b63
YQ
94172017-08-18 Yao Qi <yao.qi@linaro.org>
9418
9419 * NEWS: Mention GDBserver's new option "--selftest".
9420 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9421 * selftest.c: Move it to common/selftest.c.
9422 * selftest.h: Move it to common/selftest.h.
9423 * selftest-arch.c (reset): New function.
9424 (tests_with_arch): Call reset.
9425
86dcbf50
YQ
94262017-08-18 Yao Qi <yao.qi@linaro.org>
9427
9428 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9429 instead of exception_fprintf and printf_filtered.
9430
7649770c
YQ
94312017-08-18 Yao Qi <yao.qi@linaro.org>
9432
9433 * selftest.c (register_self_test): Rename it to
9434 selftests::register_test.
9435 (run_self_tests): selftest::run_tests.
9436 * selftest.h: Update declarations.
9437 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9438 selftests::register_test_foreach_arch.
9439 * selftest-arch.h: Update declaration.
9440 * aarch64-tdep.c: Update.
9441 * arm-tdep.c: Likewise.
9442 * disasm-selftests.c: Likewise.
9443 * dwarf2loc.c: Likewise.
9444 * dwarf2-frame.c: Likewise.
9445 * findvar.c: Likewise.
9446 * gdbarch-selftests.c: Likewise.
9447 * maint.c (maintenance_selftest): Likewise.
9448 * regcache.c: Likewise.
9449 * rust-exp.y: Likewise.
9450 * selftest-arch.c: Likewise.
9451 * unittests/environ-selftests.c: Likewise.
9452 * unittests/function-view-selftests.c: Likewise.
9453 * unittests/offset-type-selftests.c: Likewise.
9454 * unittests/optional-selftests.c: Likewise.
9455 * unittests/scoped_restore-selftests.c: Likewise.
9456 * utils-selftests.c: Likewise.
9457
b0cba12e
PA
94582017-08-17 Pedro Alves <palves@redhat.com>
9459
9460 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9461 local.
9462
4c8aa72d
PA
94632017-08-17 Pedro Alves <palves@redhat.com>
9464
9465 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9466 field.
9467 (reset_die_in_process): Delete, replaced by ...
9468 (process_die_scope): ... this new class. Make it responsible for
9469 freeing cu->line_header too.
9470 (process_die): Use process_die_scope.
9471 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9472 cu->line_header_die_owner. Don't release the line header if it's
9473 owned by the CU.
9474 (setup_type_unit_groups): Make the CU/DIE own the line header.
9475 Don't release the line header here.
9476
ba713918
AL
94772017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9478
9479 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9480
44d0fb3a
RK
94812017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9482
9483 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9484 Single-Key mode
9485
a5afdb16
RK
94862017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9487
9488 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9489 mode command list.
9490
47613aeb
SH
94912017-08-15 Stafford Horne <shorne@gmail.com>
9492
9493 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9494
9c3cc999
SH
94952017-08-15 Stafford Horne <shorne@gmail.com>
9496
9497 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9498
206726fb
SDJ
94992017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9500
9501 PR gdb/21954
9502 * infcmd.c (unset_environment_command): Use the 'clear' method on
9503 the environment instead of resetting it.
9504
0335ac6d
JB
95052017-08-15 John Baldwin <jhb@FreeBSD.org>
9506
9507 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9508 platforms.
9509
d3abe1c8
TT
95102017-08-14 Tom Tromey <tom@tromey.com>
9511
9512 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9513 (print_binary_chars): Likewise.
9514 (BITS_IN_BYTES): Remove.
9515
d6382fff
TT
95162017-08-14 Tom Tromey <tom@tromey.com>
9517
9518 PR gdb/21675
9519 * valprint.c (LOW_ZERO): Change value to 034.
9520 (print_octal_chars): Add static_asserts for octal constants.
9521 * printcmd.c (print_scalar_formatted): Add 'd' case.
9522
f978cb06
TT
95232017-08-11 Tom Tromey <tom@tromey.com>
9524
9525 * symfile.c (add_symbol_file_command): Use std::vector.
9526
2f5404b3
TT
95272017-08-14 Tom Tromey <tom@tromey.com>
9528
9529 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9530 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9531 std::move.
9532 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9533
de7985c3
PA
95342017-08-11 Pedro Alves <palves@redhat.com>
9535
9536 * infrun.c (process_event_stop_test): Adjust
9537 function_name_is_marked_for_skip call.
9538 * skip.c: Include <list>.
9539 (skiplist_entry): Make it a class with private fields, and
9540 getters/setters.
9541 (skiplist_entry_chain): Delete.
9542 (skiplist_entries): New.
9543 (skiplist_entry_count): Delete.
9544 (highest_skiplist_entry_num): New.
9545 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9546 (add_skiplist_entry): Delete.
9547 (skiplist_entry::skiplist_entry): New.
9548 (skiplist_entry::add_entry): New.
9549 (skip_file_command, skip_function): Adjust.
9550 (compile_skip_regexp): Delete.
9551 (skip_command): Don't compile regexp here. Adjust to use
9552 skiplist_entry::add_entry.
9553 (skip_info): Adjust to use range-for and getters.
9554 (skip_enable_command, skip_disable_command): Adjust to use
9555 range-for and setters.
9556 (skip_delete_command): Adjust to use std::list.
9557 (add_skiplist_entry): Delete.
9558 (skip_file_p): Delete, refactored as ...
9559 (skiplist_entry::do_skip_file_p): ... this new method.
9560 (skip_gfile_p): Delete, refactored as ...
9561 (skiplist_entry::do_gskip_file_p): ... this new method.
9562 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9563 (skiplist_entry::skip_function_p): ... this new method.
9564 (function_name_is_marked_for_skip): Now returns bool, and takes
9565 the function sal by const reference. Adjust to use range-for and
9566 skiplist_entry methods.
9567 (_initialize_step_skip): Remove references to
9568 skiplist_entry_chain, skiplist_entry_count.
9569 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9570 takes the function sal by const reference.
9571
be7d3cd5
YQ
95722017-08-11 Yao Qi <yao.qi@linaro.org>
9573
9574 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9575 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9576 (dwarf2_frame_cache):
9577 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9578 RETURN_MASK_ALL and set *this_case to NULL.
9579 * frame-unwind.h: Update comments.
9580
1c90d9f0
YQ
95812017-08-11 Yao Qi <yao.qi@linaro.org>
9582
9583 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9584 (dwarf2_frame_state_copy_regs): Remove.
9585 (dwarf2_frame_state_free_regs): Remove.
9586 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9587 (dwarf2_restore_rule): Call method .alloc_regs instead of
9588 dwarf2_frame_state_alloc_regs.
9589 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9590 constructor. Call std::move.
9591 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9592 (dwarf2_frame_cache): Likewise.
9593
9594 [GDB_SELF_TEST]: Include selftest.h and
9595 selftest-arch.h.
9596 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9597 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9598 execute_cfa_program_test.
9599
9600 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9601 copy ctor, assignment operator, move assignment.
9602 <alloc_regs>: New method.
9603 <swap>: New method.
9604 (struct dwarf2_frame_state): Delete dtor.
9605 (dwarf2_frame_state_alloc_regs): Remove declaration.
9606 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9607 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9608
afe37d6b
YQ
96092017-08-11 Yao Qi <yao.qi@linaro.org>
9610
9611 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9612 (dwarf2_frame_state::dwarf2_frame_state): New.
9613 (dwarf2_frame_state::~dwarf2_frame_state): New.
9614 (dwarf2_fetch_cfa_info): Update.
9615 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9616 rather than a pointer. Update code.
9617 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9618 dtor.
9619 <data_align, code_align, retaddr_column>: Change them to const.
9620 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9621 to bool.
9622
b348037f
YQ
96232017-08-11 Yao Qi <yao.qi@linaro.org>
9624
9625 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9626 <loc.exp>: New field.
9627 * dwarf2-frame.c (execute_cfa_program): Update.
9628 (dwarf2_frame_prev_register): Update.
9629
e7c9de26
PA
96302017-08-10 Pedro Alves <palves@redhat.com>
9631
9632 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9633
e8c6b620
JB
96342017-08-09 John Baldwin <jhb@FreeBSD.org>
9635
9636 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9637 (fbsd_pending_children): Use std::list.
9638 (fbsd_remember_child): Likewise.
9639 (fbsd_is_child_pending): Likewise.
9640 (fbsd_pending_vfork_done): Use std::forward_list.
9641 (fbsd_add_vfork_done): Likewise.
9642 (fbsd_is_vfork_done_pending): Likewise.
9643 (fbsd_next_vfork_done): Likewise.
9644
e4a26669
JB
96452017-08-09 John Baldwin <jhb@FreeBSD.org>
9646
9647 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9648 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9649 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9650 for `mapfilename'.
9651 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 9652 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 9653
142311d3
JB
96542017-08-09 John Baldwin <jhb@FreeBSD.org>
9655
9656 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9657 "filestuff.h".
9658 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9659
42fa2e0e
TT
96602017-08-09 Tom Tromey <tom@tromey.com>
9661
9662 * skip.c (skiplist_entry): New constructor.
9663 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9664 (skiplist_entry::file_is_glob): Now bool.
9665 (skiplist_entry::file, skiplist_entry::function): Now
9666 std::string.
9667 (make_skip_entry): Return a unique_ptr. Use new.
9668 (free_skiplist_entry, free_skiplist_entry_cleanup)
9669 (make_free_skiplist_entry_cleanup): Remove.
9670 (skip_command, skip_disable_command, add_skiplist_entry)
9671 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9672 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9673 (function_name_is_marked_for_skip): Update.
9674 (skip_delete_command): Update. Use delete.
9675
cd3af38d
JW
96762017-08-09 Jiong Wang <jiong.wang@arm.com>
9677
9678 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9679 (aarch64_linux_core_read_description): New function.
9680 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9681
29592bde
PA
96822017-08-09 Pedro Alves <palves@redhat.com>
9683
9684 * cp-name-parser.y (cp_comp_to_string): Return a
9685 gdb::unique_xmalloc_ptr<char>.
9686 * cp-support.c (replace_typedefs_qualified_name)
9687 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9688 (cp_canonicalize_string_full): Use op= instead of explicit
9689 convertion.
9690 (cp_class_name_from_physname, method_name_from_physname)
9691 (cp_func_name, cp_remove_params): Adjust to use
9692 gdb::unique_xmalloc_ptr<char>.
9693 * cp-support.h (cp_comp_to_string): Return a
9694 gdb::unique_xmalloc_ptr<char>.
9695 * python/py-type.c (typy_lookup_type): Adjust to use
9696 gdb::unique_xmalloc_ptr<char>.
9697
b3340438
L
96982017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9699
9700 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9701
e88e8651
YQ
97022017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9703 Yao Qi <yao.qi@linaro.org>
9704
9705 * cp-support.c (cp_canonicalize_string_full): Use
9706 gdb::unique_xmalloc_ptr<char>.
9707 (cp_canonicalize_string): Likewise.
9708
f5a29eb0
YQ
97092017-08-09 Yao Qi <yao.qi@linaro.org>
9710
9711 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9712 * regformats/i386/amd64-avx-avx512.dat: Remove.
9713 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9714 * regformats/i386/amd64-avx-mpx.dat:Remove.
9715 * regformats/i386/amd64-avx.dat: Remove.
9716 * regformats/i386/amd64-mpx.dat: Remove.
9717 * regformats/i386/i386-avx-avx512.dat: Remove.
9718 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9719 * regformats/i386/i386-avx-mpx.dat: Remove.
9720 * regformats/i386/i386-mmx.dat: Remove.
9721 * regformats/i386/i386-mpx.dat: Remove.
9722
57757c2f
YQ
97232017-08-09 Yao Qi <yao.qi@linaro.org>
9724
9725 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9726 * amd64-tdep.c: Don't include features/i386/x32*.c.
9727 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9728 functions.
9729 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9730 and i386/x32-avx-avx512.
9731 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9732 and i386/x32.xml.
9733 * features/i386/x32-avx-avx512.c: Removed.
9734 * features/i386/x32-avx-avx512.xml: Removed.
9735 * features/i386/x32-avx.c: Removed.
9736 * features/i386/x32-avx.xml: Removed.
9737 * features/i386/x32.c: Removed.
9738 * features/i386/x32.xml: Removed.
9739 * regformats/i386/x32-avx-avx512.dat: Removed.
9740 * regformats/i386/x32-avx.dat: Removed.
9741 * regformats/i386/x32.dat: Removed.
9742
ba7b109b
MR
97432017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9744
9745 PR breakpoints/21886
9746 * mem-break.c (default_memory_insert_breakpoint): Use
9747 `->placed_address' rather than `->reqstd_address' for the
9748 breakpoint location.
9749
e347efc3
MR
97502017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9751
9752 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9753 assertions.
9754
0dba2a6c
MR
97552017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9756
9757 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9758 a union of `tdep_info', `tdesc_data' and `id'.
9759 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9760 rather than `info.tdep_info'.
9761 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9762 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9763 * i386-tdep.c (i386_gdbarch_init): Likewise.
9764 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9765 * mips-tdep.c (mips_gdbarch_init): Likewise.
9766 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9767 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9768 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9769 `info.tdep_info'.
9770 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9771 `info.tdep_info'.
9772 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9773 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9774 `info.tdep_info'.
9775 * spu-tdep.c (spu_gdbarch_init): Likewise.
9776 * gdbarch.h: Regenerate.
9777
16eb6b2d
LS
97782017-08-07 Leszek Swirski <leszeks@google.com>
9779
7b005726 9780 PR symtab/20899
16eb6b2d
LS
9781 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9782
74cbb09e
SM
97832017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9784
9785 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9786 (gdbsim_open): Rename gdb_argv args object to argv.
9787
ee0c3293
TT
97882017-08-05 Tom Tromey <tom@tromey.com>
9789
9790 * compile/compile-object-load.c (compile_object_load): Use
9791 gdb::unique_xmalloc_ptr.
9792 * cli/cli-dump.c (scan_filename): Rename from
9793 scan_filename_with_cleanup. Change return type.
9794 (scan_expression): Rename from scan_expression_with_cleanup.
9795 Change return type.
9796 (dump_memory_to_file, dump_value_to_file, restore_command):
9797 Use gdb::unique_xmalloc_ptr. Update.
9798 * cli/cli-cmds.c (find_and_open_script): Use
9799 gdb::unique_xmalloc_ptr.
9800 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9801 * symmisc.c (maintenance_print_symbols)
9802 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9803 * symfile.c (symfile_bfd_open, generic_load)
9804 (add_symbol_file_command, remove_symbol_file_command): Use
9805 gdb::unique_xmalloc_ptr.
9806 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9807 * psymtab.c (maintenance_print_psymbols): Use
9808 gdb::unique_xmalloc_ptr.
9809 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9810 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9811 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9812 (reload_shared_libraries_1): Likewise.
9813
3232fabd
TT
98142017-08-05 Tom Tromey <tom@tromey.com>
9815
9816 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9817 (rust_op_vector, rust_set_vector): New typedefs.
9818 (current_parser): New global.
9819 (work_obstack): Change to pointer type. Update all users.
9820 (rust_ast, pstate): Remove globals.
9821 (struct rust_parser): New.
9822 (%union) <params, field_inits>: Change type.
9823 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9824 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9825 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9826 (convert_params_to_types, convert_params_to_expression): Change
9827 type of "params".
9828 (ast_string): Change type of "fields".
9829 (rust_parse): Make a rust_parser. Remove cleanups.
9830 (rust_lex_tests): Make and install an auto_obstack.
9831
f02fd774
YQ
98322017-08-04 Yao Qi <yao.qi@linaro.org>
9833
9834 * configure.srv (ipa_x32_linux_regobj): New.
9835 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9836 instead of X86_TDESC_AVX512.
9837 (initialize_low_tracepoint): Call
9838 init_registers_x32_avx_avx512_linux.
9839
91975afd
YQ
98402017-08-04 Yao Qi <yao.qi@linaro.org>
9841
9842 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9843
2331fa3a
RK
98442017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9845
9846 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9847
744e4fe1
TT
98482017-08-03 Tom Tromey <tom@tromey.com>
9849
9850 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9851 Remove.
9852 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9853
1c034b67
TT
98542017-08-03 Tom Tromey <tom@tromey.com>
9855
9856 * python/py-param.c (compute_enum_values): Use gdb_argv.
9857
773a1edc
TT
98582017-08-03 Tom Tromey <tom@tromey.com>
9859
9860 * utils.h (struct gdb_argv_deleter): New.
9861 (gdb_argv): New class.
9862 * utils.c (gdb_argv::reset): New method.
9863 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9864 * tracefile.c (tsave_command): Use gdb_argv.
9865 * top.c (new_ui_command): Use gdb_argv.
9866 * symmisc.c (maintenance_print_symbols)
9867 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9868 * symfile.c (symbol_file_command, generic_load)
9869 (remove_symbol_file_command): Use gdb_argv.
9870 * stack.c (backtrace_command): Use gdb_argv.
9871 * source.c (add_path, show_substitute_path_command)
9872 (unset_substitute_path_command, set_substitute_path_command):
9873 Use gdb_argv.
9874 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9875 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9876 * remote.c (extended_remote_run, remote_put_command)
9877 (remote_get_command, remote_delete_command): Use gdb_argv.
9878 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9879 (gdbsim_open): Use gdb_argv.
9880 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9881 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9882 * procfs.c (procfs_info_proc): Use gdb_argv.
9883 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9884 * infrun.c (handle_command): Use gdb_argv.
9885 * inferior.c (add_inferior_command, clone_inferior_command):
9886 Use gdb_argv.
9887 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9888 * exec.c (exec_file_command): Use gdb_argv.
9889 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9890 * compile/compile.c (build_argc_argv): Use gdb_argv.
9891
0d50bde3
TT
98922017-08-03 Tom Tromey <tom@tromey.com>
9893
9894 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9895
7f968c89
TT
98962017-08-03 Tom Tromey <tom@tromey.com>
9897
9898 * python/python.c (compute_python_string): Return std::string.
9899 (gdbpy_eval_from_control_command): Update.
9900 (do_start_initialization): Use std::string.
9901 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9902 xstrprintf.
9903 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9904 xstrprintf.
9905
3c9ebddd
TT
99062017-08-03 Tom Tromey <tom@tromey.com>
9907
9908 * top.h (do_restore_instream_cleanup): Remove.
9909 * top.c (do_restore_instream_cleanup): Remove.
9910 (read_command_file): Use scoped_restore.
9911 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9912
b51b225e
TT
99132017-08-03 Tom Tromey <tom@tromey.com>
9914
9915 * cli/cli-script.c (execute_user_command)
9916 (execute_control_command): Use scoped_restore.
9917
ac991630
TT
99182017-08-03 Tom Tromey <tom@tromey.com>
9919
9920 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9921 (execute_user_command): Remove user_call_depth; use
9922 user_args_stack's size instead.
9923
898e0c8e
TT
99242017-08-03 Tom Tromey <tom@tromey.com>
9925
9926 * top.h (in_user_command): Remove.
9927 * top.c (in_user_command): Remove.
9928 * cli/cli-script.c (do_restore_user_call_depth)
9929 (execute_user_command): Update.
9930
26fcd5d7
TT
99312017-08-03 Tom Tromey <tom@tromey.com>
9932
9933 * valops.c (search_struct_method): Use gdb::byte_vector.
9934 * valarith.c (value_concat): Use std::vector.
9935 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9936 (simple_search_memory): Likewise.
9937 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9938 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9939 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9940 * elfread.c (elf_rel_plt_read): Use std::string.
9941 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9942 * cli/cli-dump.c (restore_section_callback): Use
9943 gdb::byte_vector.
9944
7c218e6c
TT
99452017-08-03 Tom Tromey <tom@tromey.com>
9946
9947 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9948
31b68d4a
TT
99492017-08-03 Tom Tromey <tom@tromey.com>
9950
9951 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9952 (tui_register_format): Use scoped_restore.
9953
2ec845e7
TT
99542017-08-03 Tom Tromey <tom@tromey.com>
9955
9956 * reverse.c (exec_direction_default): Remove.
9957 (exec_reverse_once): Use scoped_restore.
9958 * remote.c (restore_remote_timeout): Remove.
9959 (remote_flash_erase, remote_flash_write, remote_flash_done)
9960 (readchar, remote_serial_write): Use scoped_restore.
9961 * cli/cli-script.c (struct source_cleanup_lines_args)
9962 (source_cleanup_lines): Remove.
9963 (script_from_file): Use scoped_restore.
9964 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9965 (source_command): Use scoped_restore.
9966
b3bc8453
TT
99672017-08-03 Tom Tromey <tom@tromey.com>
9968
9969 * utils.h (make_cleanup_free_so): Remove.
9970 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9971 * solist.h (struct so_deleter): New.
9972 (so_list_up): New typedef.
9973 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9974
e3ad2841
TT
99752017-08-03 Tom Tromey <tom@tromey.com>
9976
9977 * utils.h (make_cleanup_restore_current_language): Remove.
9978 * utils.c (do_restore_current_language)
9979 (make_cleanup_restore_current_language): Remove.
9980 * parse.c (parse_exp_in_context_1)
9981 (parse_expression_with_language): Use
9982 scoped_restore_current_language.
9983 * mi/mi-main.c (mi_cmd_execute): Use
9984 scoped_restore_current_language.
9985 * language.h (scoped_restore_current_language): New class.
9986
b80cf838
TT
99872017-08-03 Tom Tromey <tom@tromey.com>
9988
9989 * compile/compile.c (cleanup_unlink_file): Remove.
9990 (compile_to_object): Use gdb::unlinker.
9991 (eval_compile_command): Likewise.
9992
fad0444a
TT
99932017-08-03 Tom Tromey <tom@tromey.com>
9994
9995 * utils.h (make_cleanup_fclose): Remove.
9996 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9997
6e7bc05c
TT
99982017-08-03 Tom Tromey <tom@tromey.com>
9999
10000 * top.c (open_terminal_stream): Return gdb_file_up.
10001 (new_ui_command): Update.
10002
4a45905b
TT
100032017-08-03 Tom Tromey <tom@tromey.com>
10004
10005 * source.c (print_source_lines_base, forward_search_command)
10006 (reverse_search_command): Use gdb_file_up.
10007
7cd06d6e
TT
100082017-08-03 Tom Tromey <tom@tromey.com>
10009
10010 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10011
ed166945
TT
100122017-08-03 Tom Tromey <tom@tromey.com>
10013
10014 * cli/cli-cmds.c (find_and_open_script): Change return type.
10015 Remove "streamp" and "full_path" parameters.
10016 (source_script_with_search): Update.
10017 * auto-load.c (source_script_file): Update.
10018 * cli/cli-cmds.h (find_and_open_script): Change type.
10019 (open_script): New struct.
10020
d419f42d
TT
100212017-08-03 Tom Tromey <tom@tromey.com>
10022
10023 * xml-support.c (xml_fetch_content_from_file): Update.
10024 * ui-file.c (stdio_file::open): Update.
10025 * tracefile-tfile.c (tfile_start): Update.
10026 * remote.c (remote_file_put, remote_file_get): Update.
10027 * nat/linux-procfs.c (linux_proc_get_int)
10028 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10029 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10030 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10031 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10032 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10033 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10034 * linux-nat.c (linux_proc_pending_signals): Update.
10035 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10036 (file_closer): Remove.
10037 * compile/compile.c (compile_to_object): Update.
10038 * common/filestuff.h (struct gdb_file_deleter): New.
10039 (gdb_file_up): New typedef.
10040 (gdb_fopen_cloexec): Change return type.
10041 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10042 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10043 (dump_binary_file, restore_binary_file): Update.
10044 * auto-load.c (auto_load_objfile_script_1): Update.
10045
4a2b031d
TT
100462017-08-03 Tom Tromey <tom@tromey.com>
10047
10048 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10049 (info_static_tracepoint_markers_command): Likewise.
10050 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10051 * skip.c (skip_info): Use ui_out_emit_table.
10052 * progspace.c (print_program_space): Use ui_out_emit_table.
10053 * osdata.c (info_osdata): Use ui_out_emit_table.
10054 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10055 ui_out_emit_table.
10056 * linux-thread-db.c (info_auto_load_libthread_db): Use
10057 ui_out_emit_table.
10058 * inferior.c (print_inferior): Use ui_out_emit_table.
10059 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10060 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10061 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10062 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10063 * ui-out.h (class ui_out_emit_table): New.
10064
a4f320fd
MR
100652017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10066
10067 * mips-tdep.c (mips_fpu_type_str): New function.
10068 (mips_dump_tdep): Call it.
10069
a2f1f308
MR
100702017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10071
10072 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10073 `->mips_fpu_type'.
10074
7e5ed83b
XR
100752017-07-31 Xavier Roirand <roirand@adacore.com>
10076
10077 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10078
4c9dc811
XR
100792017-07-27 Xavier Roirand <roirand@adacore.com>
10080
10081 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10082
27d41eac
YQ
100832017-07-26 Yao Qi <yao.qi@linaro.org>
10084
10085 * cli/cli-cmds.c (maintenancechecklist): New variable.
10086 * gdbcmd.h (maintenancechecklist): Declare it.
10087 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10088 Call i386_linux_read_description with different masks.
10089 * maint.c (maintenance_check_command): New function.
10090 (_initialize_maint_cmds): Call add_prefix_cmd.
10091 * target-descriptions.c (tdesc_reg): override operator != and ==.
10092 (tdesc_type): Likewise.
10093 (tdesc_feature): Likewise.
10094 (target_desc): Likewise.
10095 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10096 (maintenance_check_xml_descriptions): New function.
10097 (_initialize_target_descriptions) Add command "xml-descriptions".
10098 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10099
ea03d0d3
YQ
101002017-07-26 Yao Qi <yao.qi@linaro.org>
10101
10102 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10103 Include features/i386/32bit-*.c.
10104 (i386_linux_read_description): Generate target description if it
10105 doesn't exist.
10106 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10107 functions.
10108 * features/i386/32bit-linux.c: Re-generated.
10109 * features/i386/32bit-sse.c: Likewise.
10110 * target-descriptions.c (print_c_feature::visit): Print code to
10111 set register number if needed.
10112 (print_c_feature) <m_next_regnum>: New field.
10113
25aa13e5
YQ
101142017-07-26 Yao Qi <yao.qi@linaro.org>
10115
10116 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10117 (FEATURE_XMLFILES): New.
10118 (FEATURE_CFILES): New.
10119 New rules.
10120 (clean-cfiles): Remove generated c files.
10121 * features/i386/32bit-avx.c: Generated.
10122 * features/i386/32bit-avx512.c: Generated.
10123 * features/i386/32bit-core.c: Generated.
10124 * features/i386/32bit-linux.c: Generated.
10125 * features/i386/32bit-mpx.c: Generated.
10126 * features/i386/32bit-pkeys.c: Generated.
10127 * features/i386/32bit-sse.c: Generated.
10128 * target-descriptions.c: Include algorithm.
10129 (tdesc_element_visitor): Add method visit_end.
10130 (print_c_tdesc): Implement visit_end.
10131 (print_c_tdesc:: m_filename_after_features): Move it to
10132 protected.
10133 (print_c_feature): New class.
10134 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10135 name starts with "i386/32bit-".
10136
6eb1e6a8
YQ
101372017-07-26 Yao Qi <yao.qi@linaro.org>
10138
10139 * target-descriptions.c (tdesc_element_visitor): New class.
10140 (tdesc_element): New class.
10141 (tdesc_reg): Inherit from tdesc_element.
10142 (tdesc_reg::accept): New function.
10143 (tdesc_type): Inherit from tdesc_element.
10144 (tdesc_type::accept): New function.
10145 (tdesc_feature): Inherit from tdesc_element.
10146 (tdesc_feature::accept): New function.
10147 (target_desc): Inherit from tdesc_element.
10148 (target_desc::target_desc): New.
10149 (target_desc::~target_desc): New.
10150 (target_desc::accept): New.
10151 (allocate_target_description): Use new.
10152 (free_target_description): Use delete.
10153 (print_c_tdesc): New class.
10154 (maint_print_c_tdesc_cmd): Adjust.
10155
10156 * features/aarch64.c: Re-generated.
10157 * features/arc-arcompact.c: Re-generated.
10158 * features/arc-v2.c: Re-generated.
10159 * features/arm/arm-with-iwmmxt.c: Re-generated.
10160 * features/arm/arm-with-m.c: Re-generated.
10161 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10162 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10163 * features/arm/arm-with-neon.c: Re-generated.
10164 * features/arm/arm-with-vfpv2.c: Re-generated.
10165 * features/arm/arm-with-vfpv3.c: Re-generated.
10166 * features/i386/amd64-avx-avx512.c: Re-generated.
10167 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10168 * features/i386/amd64-avx.c: Re-generated.
10169 * features/i386/amd64-avx-linux.c: Re-generated.
10170 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10171 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10172 * features/i386/amd64-avx-mpx.c: Re-generated.
10173 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10174 * features/i386/amd64.c: Re-generated.
10175 * features/i386/amd64-linux.c: Re-generated.
10176 * features/i386/amd64-mpx.c: Re-generated.
10177 * features/i386/amd64-mpx-linux.c: Re-generated.
10178 * features/i386/i386-avx-avx512.c: Re-generated.
10179 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10180 * features/i386/i386-avx.c: Re-generated.
10181 * features/i386/i386-avx-linux.c: Re-generated.
10182 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10183 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10184 * features/i386/i386-avx-mpx.c: Re-generated.
10185 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10186 * features/i386/i386.c: Re-generated.
10187 * features/i386/i386-linux.c: Re-generated.
10188 * features/i386/i386-mmx.c: Re-generated.
10189 * features/i386/i386-mmx-linux.c: Re-generated.
10190 * features/i386/i386-mpx.c: Re-generated.
10191 * features/i386/i386-mpx-linux.c: Re-generated.
10192 * features/i386/x32-avx-avx512.c: Re-generated.
10193 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10194 * features/i386/x32-avx.c: Re-generated.
10195 * features/i386/x32-avx-linux.c: Re-generated.
10196 * features/i386/x32.c: Re-generated.
10197 * features/i386/x32-linux.c: Re-generated.
10198 * features/microblaze.c: Re-generated.
10199 * features/microblaze-with-stack-protect.c: Re-generated.
10200 * features/mips64-dsp-linux.c: Re-generated.
10201 * features/mips64-linux.c: Re-generated.
10202 * features/mips-dsp-linux.c: Re-generated.
10203 * features/mips-linux.c: Re-generated.
10204 * features/nds32.c: Re-generated.
10205 * features/nios2.c: Re-generated.
10206 * features/nios2-linux.c: Re-generated.
10207 * features/rs6000/powerpc-32.c: Re-generated.
10208 * features/rs6000/powerpc-32l.c: Re-generated.
10209 * features/rs6000/powerpc-403.c: Re-generated.
10210 * features/rs6000/powerpc-403gc.c : Re-generated.
10211 * features/rs6000/powerpc-405.c: Re-generated.
10212 * features/rs6000/powerpc-505.c: Re-generated.
10213 * features/rs6000/powerpc-601.c: Re-generated.
10214 * features/rs6000/powerpc-602.c: Re-generated.
10215 * features/rs6000/powerpc-603.c: Re-generated.
10216 * features/rs6000/powerpc-604.c: Re-generated.
10217 * features/rs6000/powerpc-64.c: Re-generated.
10218 * features/rs6000/powerpc-64l.c: Re-generated.
10219 * features/rs6000/powerpc-7400.c: Re-generated.
10220 * features/rs6000/powerpc-750.c: Re-generated.
10221 * features/rs6000/powerpc-860.c: Re-generated.
10222 * features/rs6000/powerpc-altivec32.c: Re-generated.
10223 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10224 * features/rs6000/powerpc-altivec64.c: Re-generated.
10225 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10226 * features/rs6000/powerpc-cell32l.c: Re-generated.
10227 * features/rs6000/powerpc-cell64l.c: Re-generated.
10228 * features/rs6000/powerpc-e500.c: Re-generated.
10229 * features/rs6000/powerpc-e500l.c: Re-generated.
10230 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10231 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10232 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10233 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10234 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10235 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10236 * features/rs6000/powerpc-vsx32.c: Re-generated.
10237 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10238 * features/rs6000/powerpc-vsx64.c: Re-generated.
10239 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10240 * features/rs6000/rs6000.c: Re-generated.
10241 * features/s390-linux32.c: Re-generated.
10242 * features/s390-linux32v1.c: Re-generated.
10243 * features/s390-linux32v2.c: Re-generated.
10244 * features/s390-linux64.c: Re-generated.
10245 * features/s390-linux64v1.c: Re-generated.
10246 * features/s390-linux64v2.c: Re-generated.
10247 * features/s390-te-linux64.c: Re-generated.
10248 * features/s390-tevx-linux64.c: Re-generated.
10249 * features/s390-vx-linux64.c: Re-generated.
10250 * features/s390x-linux64.c: Re-generated.
10251 * features/s390x-linux64v1.c: Re-generated.
10252 * features/s390x-linux64v2.c: Re-generated.
10253 * features/s390x-te-linux64.c: Re-generated.
10254 * features/s390x-tevx-linux64.c: Re-generated.
10255 * features/s390x-vx-linux64.c: Re-generated.
10256 * features/sparc/sparc32-solaris.c: Re-generated.
10257 * features/sparc/sparc64-solaris.c: Re-generated.
10258 * features/tic6x-c62x.c: Re-generated.
10259 * features/tic6x-c62x-linux.c: Re-generated.
10260 * features/tic6x-c64x.c: Re-generated.
10261 * features/tic6x-c64x-linux.c: Re-generated.
10262 * features/tic6x-c64xp.c: Re-generated.
10263 * features/tic6x-c64xp-linux.c: Re-generated.
10264
35b4818d
YQ
102652017-07-26 Yao Qi <yao.qi@linaro.org>
10266
10267 * i386-linux-tdep.c (i386_linux_read_description): New function.
10268 (i386_linux_core_read_description): Call
10269 i386_linux_read_description.
10270 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10271 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10272 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10273 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10274 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10275 * x86-linux-nat.c (x86_linux_read_description): Call
10276 i386_linux_read_description.
10277
8e2141c6
YQ
102782017-07-26 Yao Qi <yao.qi@linaro.org>
10279
10280 * NEWS: Mention it.
10281 * features/Makefile (%.c: %.xml): Pass the xml file name to
10282 command "maint print c-tdesc".
10283 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10284 name from 'arg'.
10285
b468ff4c
YQ
102862017-07-26 Yao Qi <yao.qi@linaro.org>
10287
10288 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10289 in-class initialization.
10290 (tdesc_create_feature): Call new instead of XCNEW.
10291 (free_target_description): Ue delete.
10292
b9c0e1b4
JB
102932017-07-25 John Baldwin <jhb@FreeBSD.org>
10294
10295 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10296
a04b5337
YQ
102972017-07-25 Yao Qi <yao.qi@linaro.org>
10298
10299 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10300 constant.
10301 (amd64_x32_init_abi): Likewise.
10302 * amd64-tdep.h (amd64_init_abi): Update declaration.
10303 (amd64_x32_init_abi): Likewise.
10304
02ad7fc2
YQ
103052017-07-25 Yao Qi <yao.qi@linaro.org>
10306
10307 PR tdep/21717
10308 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10309 condition for FPSCR.
10310 (arm_linux_store_inferior_registers): Likewise.
10311
b6f48cb0
TT
103122017-07-22 Tom Tromey <tom@tromey.com>
10313
10314 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10315 <syscalls_counts>: Now a std::vector.
10316 (get_catch_syscall_inferior_data): Use "new".
10317 (catch_syscall_inferior_data_cleanup): Use "delete".
10318 (insert_catch_syscall, remove_catch_syscall)
10319 (clear_syscall_counts): Update.
10320
e12c9b7a
TT
103212017-07-22 Tom Tromey <tom@tromey.com>
10322
10323 * break-catch-syscall.c (syscall_catchpoint)
10324 <syscalls_to_be_caught>: Now a std::vector<int>
10325 (~syscall_catchpoint): Remove.
10326 (insert_catch_syscall, remove_catch_syscall)
10327 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10328 (print_mention_catch_syscall, print_recreate_catch_syscall):
10329 Update.
10330 (create_syscall_event_catchpoint): Change type of "filter"
10331 parameter.
10332 (catch_syscall_split_args): Return a std::vector.
10333 (catch_syscall_command_1, catching_syscall_number_1): Update.
10334
4fa8aeac
TT
103352017-07-22 Tom Tromey <tom@tromey.com>
10336
10337 * break-catch-throw.c (struct exception_catchpoint)
10338 <exception_rx>: Now a std::string.
10339 (~exception_catchpoint): Remove.
10340 (print_one_detail_exception_catchpoint): Update.
10341 (handle_gnu_v3_exceptions): Change type of except_rx.
10342 (extract_exception_regexp): Return a std::string.
10343 (catch_exception_command_1): Update.
10344
f746a154
TT
103452017-07-22 Tom Tromey <tom@tromey.com>
10346
10347 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10348 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10349 std::vector.
10350 <catch_all>: Now a bool.
10351 (~signal_catchpoint): Remove.
10352 (signal_catchpoint_insert_location)
10353 (signal_catchpoint_remove_location)
10354 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10355 (signal_catchpoint_print_mention)
10356 (signal_catchpoint_print_recreate)
10357 (signal_catchpoint_explains_signal): Update.
10358 (create_signal_catchpoint): Change type of "filter" and
10359 "catch_all".
10360 (catch_signal_split_args): Return a std::vector. Change type of
10361 "catch_all".
10362 (catch_signal_command): Update.
10363
47e77640
PA
103642017-07-20 Pedro Alves <palves@redhat.com>
10365
10366 * ada-lang.c (ada_language_defn): Make extern.
10367 (_initialize_ada_language): Remove add_language call.
10368 * c-lang.c (c_language_defn, cplus_language_defn)
10369 (asm_language_defn, minimal_language_defn): Make extern.
10370 (_initialize_c_language): Delete.
10371 * completer.c (compare_cstrings): Delete, moved to utils.h.
10372 * d-lang.c (d_language_defn): Make extern.
10373 (_initialize_d_language): Remove add_language calls.
10374 * defs.h (enum language): Add comment.
10375 * f-lang.c (f_language_defn): Make extern.
10376 (_initialize_f_language): Remove add_language call.
10377 * go-lang.c (go_language_defn): Make extern.
10378 (_initialize_go_language): Remove add_language call.
10379 * language.c: Include <algorithm>.
10380 (languages): Redefine as const array.
10381 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10382 (set_language_command): Handle "local". Use for-range loop.
10383 (set_language): Remove loop.
10384 (language_enum): Rewrite.
10385 (language_def, language_str): Remove loops.
10386 (add_language): Delete.
10387 (add_set_language_command): New, based on add_languages.
10388 (skip_language_trampoline): Adjust.
10389 (local_language_defn): Delete.
10390 (language_gdbarch_post_init): Adjust.
10391 (_initialize_language): Remove add_language calls. Call
10392 add_set_language_command.
10393 * language.h (add_language): Delete.
10394 (auto_language_defn)
10395 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10396 (asm_language_defn, c_language_defn, cplus_language_defn)
10397 (d_language_defn, f_language_defn, go_language_defn)
10398 (m2_language_defn, objc_language_defn, opencl_language_defn)
10399 (pascal_language_defn, rust_language_defn): Declare.
10400 * m2-lang.c (m2_language_defn): Make extern.
10401 (_initialize_m2_language): Remove add_language call.
10402 * objc-lang.c (objc_language_defn): Make extern.
10403 (_initialize_objc_language): Remove add_language call.
10404 * opencl-lang.c (opencl_language_defn): Make extern.
10405 (_initialize_opencl_language): Remove add_language call.
10406 * p-lang.c (pascal_language_defn): Make extern.
10407 (_initialize_pascal_language): Delete.
10408 * rust-lang.c (rust_language_defn): Make extern.
10409 (_initialize_rust_language): Delete.
10410 * utils.h (compare_cstrings): New static inline function.
10411
edb0c9cb
PA
104122017-07-20 Pedro Alves <palves@redhat.com>
10413
10414 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10415 (get_var_value): Constify parameters.
10416 (get_int_var_value): Change prototype.
10417 (to_fixed_range_type): Adjust.
10418 * ada-lang.h (get_int_var_value): Change prototype.
10419
a778f165
PA
104202017-07-20 Pedro Alves <palves@redhat.com>
10421
10422 * dwarf2read.c (dw2_lookup_symbol): Use
10423 SYMBOL_MATCHES_SEARCH_NAME.
10424 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10425
42edd901
PA
104262017-07-20 Pedro Alves <palves@redhat.com>
10427
10428 * block.c (block_iter_name_step, block_iter_name_first)
10429 (block_iter_name_next): Delete.
10430 (block_lookup_symbol_primary): Adjust to use
10431 dict_iter_match_first/dict_iter_match_next.
10432 * block.h (block_iter_name_first, block_iter_name_next): Delete
10433 declarations.
10434 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10435 dict_iter_match_first/dict_iter_match_next.
10436
cf325299
PA
104372017-07-20 Pedro Alves <palves@redhat.com>
10438
10439 * cp-support.c (cp_find_first_component_aux): Add missing case for
10440 end of string.
10441
c5ed0576
DB
104422017-07-18 David Blaikie <dblaikie@gmail.com>
10443
10444 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10445 of dwo_cu's dwo_file.
10446
27841e76
YQ
104472017-07-18 Yao Qi <yao.qi@linaro.org>
10448
10449 * remote.c (store_registers_using_G): Remove one line comment.
10450
cfb7e58b
YQ
104512017-07-18 Yao Qi <yao.qi@linaro.org>
10452
10453 * regcache.c (regcache_cpy): Simplify it.
10454 (regcache::cpy_no_passthrough): Remove it.
10455 * regcache.h (cpy_no_passthrough): Remove it.
10456 (regcache_dup, regcache_cpy): Update comments.
10457
386535dd
PA
104582017-07-18 Pedro Alves <palves@redhat.com>
10459
10460 * remote-sim.c (sim_command_completer): Adjust to work with a
10461 completion_tracker instead of a VEC.
10462
c45ec17c
PA
104632017-07-17 Pedro Alves <palves@redhat.com>
10464
10465 * completer.c (complete_source_filenames): New function.
10466 (complete_address_and_linespec_locations): New function.
10467 (location_completer): Use complete_address_and_linespec_locations.
10468 (completion_tracker::build_completion_result): Honor the tracker's
10469 request to suppress append.
10470 * completer.h (completion_tracker::suppress_append_ws)
10471 (completion_tracker::set_suppress_append_ws): New methods.
10472 (completion_tracker::m_suppress_append_ws): New field.
10473 (complete_source_filenames): New declaration.
10474 * linespec.c (linespec_complete_what): New.
10475 (struct ls_parser) <complete_what, completion_word,
10476 completion_quote_char, completion_quote_end, completion_tracker>:
10477 New fields.
10478 (string_find_incomplete_keyword_at_end): New.
10479 (linespec_lexer_lex_string): Record quote char. If in completion
10480 mode, don't throw.
10481 (linespec_lexer_consume_token): Advance the completion word point.
10482 (linespec_lexer_peek_token): Save/restore completion info.
10483 (save_stream_and_consume_token): New.
10484 (set_completion_after_number): New.
10485 (linespec_parse_basic): Set what to complete next depending on
10486 token. Handle function and label completions specially.
10487 (parse_linespec): Disable objc shortcut in completion mode. Set
10488 what to complete next depending on token type. Skip keyword if in
10489 completion mode.
10490 (complete_linespec_component, linespec_complete): New.
10491 * linespec.h (linespec_complete): Declare.
10492
be966d42
PA
104932017-07-17 Pedro Alves <palves@redhat.com>
10494
10495 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10496 Handle 'operator<' / 'operator<<'.
10497
a2459270
PA
104982017-07-17 Pedro Alves <palves@redhat.com>
10499
10500 * completer.c (collect_explicit_location_matches): Handle
10501 MATCH_LABEL.
10502 (convert_explicit_location_to_linespec): New, factored out from
10503 ...
10504 (convert_explicit_location_to_sals): ... this.
10505 (complete_label): New.
10506 (linespec_complete_label, find_label_symbols_in_block): New.
10507 (find_label_symbols): Add completion_mode parameter and adjust to
10508 call find_label_symbols_in_block.
10509 * linespec.h (linespec_complete_label): Declare.
10510
c6756f62
PA
105112017-07-17 Pedro Alves <palves@redhat.com>
10512
10513 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10514 complete_symbol_mode parameter.
10515 * cli/cli-cmds.c (complete_command): Get the completion result out
10516 of the handle_brkchars tracker if used a custom word point.
10517 * completer.c: Include "linespec.h".
10518 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10519 (advance_to_expression_complete_word_point): New.
10520 (completion_tracker::completes_to_completion_word): New.
10521 (complete_files_symbols): Pass down
10522 complete_symbol_mode::EXPRESSION.
10523 (explicit_options, probe_options): New.
10524 (collect_explicit_location_matches): Complete on the
10525 explictit_loc->foo instead of word. Use
10526 linespec_complete_function. Handle MATCH_LINE. Handle offering
10527 keyword and options completions.
10528 (backup_text_ptr): Delete.
10529 (skip_keyword): New.
10530 (complete_explicit_location): Remove 'word' parameter. Add
10531 language, quoted_arg_start and quoted_arg_end parameters.
10532 Rewrite, parsing left to right.
10533 (location_completer): Rewrite.
10534 (location_completer_handle_brkchars): New function.
10535 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10536 (enum complete_line_internal_reason): Adjust comments.
10537 (completion_tracker::discard_completions): New.
10538 (completer_handle_brkchars_func_for_completer): Handle
10539 location_completer.
10540 (gdb_custom_word_point_brkchars)
10541 (gdb_org_rl_basic_quote_characters): New.
10542 (gdb_completion_word_break_characters_throw)
10543 (completion_find_completion_word): Handle trackers that use a
10544 custom word point.
10545 (completion_tracker::advance_custom_word_point_by): New.
10546 (completion_tracker::build_completion_result): Don't rely on
10547 readline appending the quote char.
10548 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10549 use a custom word point.
10550 (gdb_rl_attempted_completion_function): Restore
10551 rl_basic_quote_characters.
10552 * completer.h (class completion_tracker): Extend intro comment.
10553 (completion_tracker::set_quote_char)
10554 (completion_tracker::quote_char)
10555 (completion_tracker::set_use_custom_word_point)
10556 (completion_tracker::use_custom_word_point)
10557 (completion_tracker::custom_word_point)
10558 (completion_tracker::set_custom_word_point)
10559 (completion_tracker::advance_custom_word_point_by)
10560 (completion_tracker::completes_to_completion_word)
10561 (completion_tracker::discard_completions): New methods.
10562 (completion_tracker::m_quote_char)
10563 (completion_tracker::m_use_custom_word_point)
10564 (completion_tracker::m_custom_word_point): New fields.
10565 (advance_to_expression_complete_word_point): Declare.
10566 * f-lang.c (f_collect_symbol_completion_matches): Add
10567 complete_symbol_mode parameter.
10568 * language.h (struct language_defn)
10569 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10570 parameter.
10571 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10572 (linespec_complete_function): New function.
10573 (linespec_lexer_lex_keyword): Adjust.
10574 * linespec.h (linespec_keywords, linespec_complete_function): New
10575 declarations.
10576 * location.c (find_end_quote): New function.
10577 (explicit_location_lex_one): Add explicit_completion_info
10578 parameter. Save quoting info. Don't throw if being called for
10579 completion. Don't handle Ada operators here.
10580 (is_cp_operator, skip_op_false_positives, first_of)
10581 (explicit_location_lex_one_function): New function.
10582 (string_to_explicit_location): Replace 'dont_throw' parameter with
10583 an explicit_completion_info pointer parameter. Handle it. Don't
10584 use explicit_location_lex_one to lex function names. Use
10585 explicit_location_lex_one_function instead.
10586 * location.h (struct explicit_completion_info): New.
10587 (string_to_explicit_location): Replace 'dont_throw' parameter with
10588 an explicit_completion_info pointer parameter.
10589 * symtab.c (default_collect_symbol_completion_matches_break_on):
10590 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10591 (default_collect_symbol_completion_matches)
10592 (collect_symbol_completion_matches): Add complete_symbol_mode
10593 parameter.
10594 (collect_symbol_completion_matches_type): Pass down
10595 complete_symbol_mode::EXPRESSION.
10596 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10597 parameter. Handle LINESPEC mode.
10598 * symtab.h (complete_symbol_mode): New.
10599 (default_collect_symbol_completion_matches_break_on)
10600 (default_collect_symbol_completion_matches)
10601 (collect_symbol_completion_matches)
10602 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10603 parameter.
10604
1d550c82
PA
106052017-07-17 Pedro Alves <palves@redhat.com>
10606
10607 * utils.c (enum class strncmp_iw_mode): New.
10608 (strcmp_iw): Rename to ...
10609 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10610 parameters. Handle them.
10611 (strncmp_iw): New.
10612 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10613 * utils.h (strncmp_iw): Declare.
10614 (strcmp_iw): Move describing comments here.
10615
8090b426
PA
106162017-07-17 Pedro Alves <palves@redhat.com>
10617
10618 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10619 CP_OPERATOR_STR.
10620 * c-typeprint.c (is_type_conversion_operator): Use
10621 CP_OPERATOR_STR.
10622 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10623 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10624 CP_OPERATOR_LEN.
10625 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10626 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10627 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10628 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10629 CP_OPERATOR_STR.
10630 * location.c: Include "cp-support.h".
10631 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10632 CP_OPERATOR_STR.
10633 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10634 CP_OPERATOR_LEN.
10635
6a2c1b87
PA
106362017-07-17 Pedro Alves <palves@redhat.com>
10637
10638 * cli/cli-cmds.c (complete_command): Use a completion tracker
10639 along with completion_find_completion_word for handle_brkchars
10640 phase.
10641 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10642 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10643 (struct gdb_rl_completion_word_info): New.
10644 (gdb_rl_find_completion_word): New.
10645 (completion_find_completion_word): New.
10646 * completer.h (completion_find_completion_word): Declare.
10647
eb3ff9a5
PA
106482017-07-17 Pedro Alves <palves@redhat.com>
10649
10650 * ada-lang.c (symbol_completion_match): Adjust comments.
10651 (symbol_completion_add): Replace vector parameter with
10652 completion_tracker parameter. Use it.
10653 (ada_make_symbol_completion_list): Rename to...
10654 (ada_collect_symbol_completion_matches): ... this. Add
10655 completion_tracker parameter and use it.
10656 (ada_language_defn): Adjust.
10657 * break-catch-syscall.c (catch_syscall_completer): Adjust
10658 prototype and work with completion_tracker instead of VEC.
10659 * breakpoint.c (condition_completer): Adjust prototype and work
10660 with completion_tracker instead of VEC.
10661 * c-lang.c (c_language_defn, cplus_language_defn)
10662 (asm_language_defn, minimal_language_defn): Adjust to renames.
10663 * cli/cli-cmds.c (complete_command): Rework using
10664 completion_tracker. Catch exceptions when completing.
10665 * cli/cli-decode.c (integer_unlimited_completer)
10666 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10667 with completion_tracker instead of VEC.
10668 * command.h (struct completion_tracker): Forward declare.
10669 (completer_ftype, completer_handle_brkchars_ftype): Change
10670 types.
10671 (complete_on_cmdlist, complete_on_enum): Adjust.
10672 * completer.c: Include <algorithm>.
10673 (struct gdb_completer_state): New.
10674 (current_completion): New global.
10675 (readline_line_completion_function): Delete.
10676 (noop_completer, filename_completer)
10677 (filename_completer_handle_brkchars, complete_files_symbols)
10678 (linespec_location_completer): Adjust to work with a
10679 completion_tracker instead of a VEC.
10680 (string_or_empty): New.
10681 (collect_explicit_location_matches): Adjust to work with a
10682 completion_tracker instead of a VEC.
10683 (explicit_location_completer): Rename to ...
10684 (complete_explicit_location): ... this and adjust to work with a
10685 completion_tracker instead of a VEC.
10686 (location_completer): Adjust to work with a completion_tracker
10687 instead of a VEC.
10688 (add_struct_fields): Adjust to work with a completion_list instead
10689 of VEC.
10690 (expression_completer): Rename to ...
10691 (complete_expression): ... this and adjust to work with a
10692 completion_tracker instead of a VEC. Use complete_files_symbols.
10693 (expression_completer): Reimplement on top of complete_expression.
10694 (symbol_completer): Adjust to work with a completion_tracker
10695 instead of a VEC.
10696 (enum complete_line_internal_reason): Add describing comments.
10697 (complete_line_internal_normal_command): Adjust to work with a
10698 completion_tracker instead of a VEC.
10699 (complete_line_internal): Rename to ...
10700 (complete_line_internal_1): ... this and adjust to work with a
10701 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10702 handle_brkchars phase.
10703 (new_completion_tracker): Delete.
10704 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10705 complete_line_internal_1.
10706 (free_completion_tracker): Delete.
10707 (INITIAL_COMPLETION_HTAB_SIZE): New.
10708 (completion_tracker::completion_tracker)
10709 (completion_tracker::~completion_tracker): New.
10710 (maybe_add_completion): Delete.
10711 (completion_tracker::maybe_add_completion)
10712 (completion_tracker::add_completion)
10713 (completion_tracker::add_completions): New.
10714 (throw_max_completions_reached_error): Delete.
10715 (complete_line): Adjust to work with a completion_tracker instead
10716 of a VEC. Don't create a completion_tracker_t or check for max
10717 completions here.
10718 (command_completer, command_completer_handle_brkchars)
10719 (signal_completer, reg_or_group_completer_1)
10720 (reg_or_group_completer, default_completer_handle_brkchars):
10721 Adjust to work with a completion_tracker.
10722 (gdb_completion_word_break_characters_throw): New.
10723 (gdb_completion_word_break_characters): Reimplement.
10724 (line_completion_function): Delete.
10725 (completion_tracker::recompute_lowest_common_denominator)
10726 (expand_preserving_ws)
10727 (completion_tracker::build_completion_result)
10728 (completion_result::completion_result)
10729 (completion_result::completion_result)
10730 (completion_result::~completion_result)
10731 (completion_result::completion_result)
10732 (completion_result::release_match_list, compare_cstrings)
10733 (completion_result::sort_match_list)
10734 (completion_result::reset_match_list)
10735 (gdb_rl_attempted_completion_function_throw)
10736 (gdb_rl_attempted_completion_function): New.
10737 * completer.h (completion_list, struct completion_result)
10738 (class completion_tracker): New.
10739 (complete_line): Add completion_tracker parameter.
10740 (readline_line_completion_function): Delete.
10741 (gdb_rl_attempted_completion_function): New.
10742 (noop_completer, filename_completer, expression_completer)
10743 (location_completer, symbol_completer, command_completer)
10744 (signal_completer, reg_or_group_completer): Update prototypes.
10745 (completion_tracker_t, new_completion_tracker)
10746 (make_cleanup_free_completion_tracker): Delete.
10747 (enum maybe_add_completion_enum): Delete.
10748 (maybe_add_completion): Delete.
10749 (throw_max_completions_reached_error): Delete.
10750 * corefile.c (complete_set_gnutarget): Adjust to work with a
10751 completion_tracker instead of a VEC.
10752 * cp-abi.c (cp_abi_completer): Adjust to work with a
10753 completion_tracker instead of a VEC.
10754 * d-lang.c (d_language_defn): Adjust.
10755 * disasm.c (disassembler_options_completer): Adjust to work with a
10756 completion_tracker instead of a VEC.
10757 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10758 (f_collect_symbol_completion_matches): ... this. Adjust to work
10759 with a completion_tracker instead of a VEC.
10760 (f_language_defn): Adjust.
10761 * go-lang.c (go_language_defn): Adjust.
10762 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10763 Adjust to work with a completion_tracker instead of a VEC.
10764 * infrun.c (handle_completer): Likewise.
10765 * interps.c (interpreter_completer): Likewise.
10766 * interps.h (interpreter_completer): Likewise.
10767 * language.c (unknown_language_defn, auto_language_defn)
10768 (local_language_defn): Adjust.
10769 * language.h (language_defn::la_make_symbol_completion_list):
10770 Rename to ...
10771 (language_defn::la_collect_symbol_completion_matches): ... this
10772 and adjust to work with a completion_tracker instead of a VEC.
10773 * m2-lang.c (m2_language_defn): Adjust.
10774 * objc-lang.c (objc_language_defn): Adjust.
10775 * opencl-lang.c (opencl_language_defn): Adjust.
10776 * p-lang.c (pascal_language_defn): Adjust.
10777 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10778 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10779 with a completion_tracker.
10780 * rust-lang.c (rust_language_defn): Adjust.
10781 * symtab.c (free_completion_list, do_free_completion_list)
10782 (return_val, completion_tracker): Delete.
10783 (completion_list_add_name, completion_list_add_symbol)
10784 (completion_list_add_msymbol, completion_list_objc_symbol)
10785 (completion_list_add_fields, add_symtab_completions): Add
10786 completion_tracker parameter and use it.
10787 (default_make_symbol_completion_list_break_on_1): Rename to...
10788 (default_collect_symbol_completion_matches_break_on): ... this.
10789 Add completion_tracker parameter and use it instead of allocating
10790 a completion tracker here.
10791 (default_make_symbol_completion_list_break_on): Delete old
10792 implementation.
10793 (default_make_symbol_completion_list): Delete.
10794 (default_collect_symbol_completion_matches): New.
10795 (make_symbol_completion_list): Delete.
10796 (collect_symbol_completion_matches): New.
10797 (make_symbol_completion_type): Rename to ...
10798 (collect_symbol_completion_matches_type): ... this. Add
10799 completion_tracker parameter and use it instead of VEC.
10800 (make_file_symbol_completion_list_1): Rename to...
10801 (collect_file_symbol_completion_matches): ... this. Add
10802 completion_tracker parameter and use it instead of VEC.
10803 (make_file_symbol_completion_list): Delete.
10804 (add_filename_to_list): Use completion_list instead of a VEC.
10805 (add_partial_filename_data::list): Now a completion_list.
10806 (make_source_files_completion_list): Work with a completion_list
10807 instead of a VEC.
10808 * symtab.h: Include "completer.h".
10809 (default_make_symbol_completion_list_break_on)
10810 (default_make_symbol_completion_list, make_symbol_completion_list)
10811 (make_symbol_completion_type, make_file_symbol_completion_list)
10812 (make_source_files_completion_list): Delete.
10813 (default_collect_symbol_completion_matches_break_on)
10814 (default_collect_symbol_completion_matches)
10815 (collect_symbol_completion_matches)
10816 (collect_symbol_completion_matches_type)
10817 (collect_file_symbol_completion_matches)
10818 (make_source_files_completion_list): New.
10819 * top.c (init_main): Don't install a rl_completion_entry_function
10820 hook. Install a rl_attempted_completion_function hook instead.
10821 * tui/tui-layout.c (layout_completer): Adjust to work with a
10822 completion_tracker.
10823 * tui/tui-regs.c (tui_reggroup_completer):
10824 * tui/tui-win.c (window_name_completer, focus_completer)
10825 (winheight_completer): Adjust to work with a completion_tracker.
10826 * value.c: Include "completer.h".
10827 (complete_internalvar): Adjust to work with a completion_tracker.
10828 * value.h (complete_internalvar): Likewise.
10829
6e1dbf8c
PA
108302017-07-17 Pedro Alves <palves@redhat.com>
10831
10832 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10833 renames.
10834 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10835 comments to completer_ftype's declaration.
10836 <completer_handle_brkchars>: Change type to
10837 completer_handle_brkchars_ftype.
10838 * command.h (completer_ftype): Add describing comment and give
10839 names to parameters.
10840 (completer_ftype_void): Rename to ...
10841 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10842 (set_cmd_completer_handle_brkchars): Adjust.
10843 * completer.c (filename_completer_handle_brkchars): New function.
10844 (complete_line_internal_normal_command): New function, factored
10845 out from ...
10846 (complete_line_internal): ... here.
10847 (command_completer_handle_brkchars)
10848 (default_completer_handle_brkchars)
10849 (completer_handle_brkchars_func_for_completer): New functions.
10850 * completer.h (set_gdb_completion_word_break_characters): Delete
10851 declaration.
10852 (completer_handle_brkchars_func_for_completer): New declaration.
10853 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10854 completer_handle_brkchars_func_for_completer.
10855
78b13106
PA
108562017-07-17 Pedro Alves <palves@redhat.com>
10857
10858 * completer.c (symbol_completer): New function, based on
10859 make_symbol_completion_list_fn.
10860 * completer.h (symbol_completer): New declaration.
10861 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10862 * python/py-cmd.c (completers): Adjust.
10863 * symtab.c (make_symbol_completion_list_fn): Delete.
10864 * symtab.h (make_symbol_completion_list_fn): Delete.
10865 * cli/cli-decode.c (add_cmd): Adjust.
10866
bbf2f4df
PA
108672017-07-17 Pedro Alves <palves@redhat.com>
10868
10869 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10870 * dwarf2read.c: Include "filename-seen-cache.h".
10871 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10872 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10873 * filename-seen-cache.c: New file.
10874 * filename-seen-cache.h: New file.
10875 * symtab.c: Include "filename-seen-cache.h".
10876 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10877 (create_filename_seen_cache, clear_filename_seen_cache)
10878 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10879 to filename-seen-cache.h/filename-seen-cache.c.
10880 (output_source_filename, sources_info)
10881 (maybe_add_partial_symtab_filename)
10882 (make_source_files_completion_list): Adjust to use
10883 filename_seen_cache.
10884
330cdd98
PA
108852017-07-17 Pedro Alves <palves@redhat.com>
10886
10887 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10888 fields.
10889 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10890 dwarf2_debug_sections*)): New.
10891 (dwarf2_per_objfile::dwarf2_per_objfile(const
10892 dwarf2_per_objfile&)): Declare as deleted.
10893 (dwarf2_per_objfile::operator=): Declare as deleted.
10894 (dwarf2_per_objfile::dwarf2_per_objfile)
10895 (dwarf2_per_objfile::~dwarf2_per_objfile)
10896 (dwarf2_per_objfile::free_cached_comp_units): New.
10897 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10898 ctor. Call dwarf2_per_objfile's ctor manually.
10899 (dwarf2_locate_sections): Deleted/refactored as ...
10900 (dwarf2_per_objfile::locate_sections): ... this new method.
10901 (free_cached_comp_units): Defer to
10902 dwarf2_per_objfile::free_cached_comp_units.
10903 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10904
8880f2a9
TT
109052017-07-14 Tom Tromey <tom@tromey.com>
10906
10907 PR rust/21764:
10908 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10909 parameter.
10910 <UNOP_SIZEOF>: Split into separate case.
10911 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10912
65547233
TT
109132017-07-14 Tom Tromey <tom@tromey.com>
10914
10915 PR rust/21763:
10916 * symtab.c (symbol_matches_domain): Add language_rust to special
10917 case.
10918 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10919 treat LOC_TYPEDEF symbols as variables.
10920
8f14146e
PA
109212017-07-14 Pedro Alves <palves@redhat.com>
10922
10923 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10924 symtabs matching all symtabs with SRCFILE as file name instead of
10925 only considering the first hit, with lookup_symtab.
10926
2347965c
SM
109272017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10928
10929 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10930 operator_name parameters.
10931 (gen_expr): Update function call.
10932
40f4af28
SM
109332017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10934
10935 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10936 parameter.
10937 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10938 Likewise.
10939 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10940 parameter, use agent_expr::gdbarch instead, update function
10941 calls.
10942 (locexpr_tracepoint_var_ref): Likewise.
10943 (loclist_tracepoint_var_ref): Likewise.
10944 * ax-gdb.c (gen_trace_static_fields): Likewise.
10945 (gen_traced_pop): Likewise.
10946 (gen_frame_args_address): Likewise.
10947 (gen_frame_locals_address): Likewise.
10948 (gen_var_ref): Likewise.
10949 (gen_struct_ref_recursive): Likewise.
10950 (gen_static_field): Likewise.
10951 (gen_maybe_namespace_elt): Likewise.
10952 (gen_expr): Likewise.
10953 (gen_trace_for_var): Likewise.
10954 (gen_trace_for_expr): Likewise.
10955 (gen_trace_for_return_address): Likewise.
10956
053f8057
SM
109572017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10958
10959 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10960 parameter.
10961 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10962
6661ad48
SM
109632017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10964
10965 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10966 from ax, update calls.
10967 (gen_usual_arithmetic): Likewise.
10968 (gen_integral_promotions): Likewise.
10969 (gen_bitfield_ref): Likewise.
10970 (gen_primitive_field): Likewise.
10971 (gen_struct_ref_recursive): Likewise.
10972 (gen_struct_ref): Likewise.
10973 (gen_maybe_namespace_elt): Likewise.
10974 (gen_struct_elt_for_reference): Likewise.
10975 (gen_namespace_elt): Likewise.
10976 (gen_aggregate_elt_ref): Likewise.
10977 (gen_expr): Get gdbarch from ax, update calls.
10978 (gen_expr_binop_rest): Likewise.
10979
c55a47e7
PA
109802017-07-13 Pedro Alves <palves@redhat.com>
10981
10982 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10983 as default tdesc.
10984 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10985 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10986 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10987 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10988 tdep.
10989 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10990 Get final tdesc from the tdep.
10991 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10992 default tdesc.
10993 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10994 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10995 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10996 Use it as default tdesc.
10997 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10998 down to amd_init_abi. No longer handle fallback tdesc here.
10999 * amd64-tdep.h (tdesc_x32): Declare.
11000 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11001 parameter.
11002 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11003 as default tdesc.
11004
55efceab
AA
110052017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11006
11007 * s390-linux-tdep.c (s390_process_record): Add support for
11008 instructions new in arch12.
11009
0aa37b65
JB
110102017-07-11 John Baldwin <jhb@FreeBSD.org>
11011
11012 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11013 PT_GETFSBASE and PT_GETGSBASE.
11014 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11015 PT_SETGSBASE.
11016
48aeef91
JB
110172017-07-11 John Baldwin <jhb@FreeBSD.org>
11018
11019 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11020 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11021 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11022 those rules.
11023 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11024 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11025 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11026 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11027 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11028 * features/i386/amd64.xml: Add 64bit-segments.xml.
11029 * features/i386/amd64-avx-avx512.c: Regenerated.
11030 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11031 * features/i386/amd64-avx-mpx.c: Regenerated.
11032 * features/i386/amd64-avx.c: Regenerated.
11033 * features/i386/amd64-mpx.c: Regenerated.
11034 * features/i386/amd64.c: Regenerated.
11035 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11036 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11037 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11038 * regformats/i386/amd64-avx.dat: Regenerated.
11039 * regformats/i386/amd64-mpx.dat: Regenerated.
11040 * regformats/i386/amd64.dat: Regenerated.
11041
77c501bc
YQ
110422017-07-10 Yao Qi <yao.qi@linaro.org>
11043
11044 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11045 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11046
6dc8d757
AK
110472017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11048
11049 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11050 unsetenv.
11051 * gnulib/aclocal.m4: Regenerate.
11052 * gnulib/config.in: Regenerate.
11053 * gnulib/configure: Regenerate.
11054 * gnulib/import/Makefile.am: Regenerate.
11055 * gnulib/import/Makefile.in: Regenerate.
11056 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11057 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11058 * gnulib/import/m4/environ.m4: New file.
11059 * gnulib/import/m4/setenv.m4: New file.
11060 * gnulib/import/setenv.c: New file.
11061 * gnulib/import/unsetenv.c: New file.
11062
266934d1
SM
110632017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11064
11065 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11066 address when op is DW_OP_addr.
11067
03278692
TT
110682017-07-09 Tom Tromey <tom@tromey.com>
11069
11070 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11071 check and apply to outer type.
11072
4b654465
JB
110732017-07-07 John Baldwin <jhb@FreeBSD.org>
11074
11075 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11076 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11077 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11078 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11079
2af9fc44
JB
110802017-07-07 John Baldwin <jhb@FreeBSD.org>
11081
11082 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11083
382b69bb
JB
110842017-07-07 John Baldwin <jhb@FreeBSD.org>
11085
11086 * corelow.c (get_core_siginfo): Remove.
11087 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11088 instead of get_core_siginfo.
11089 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11090 * gdbarch.h: Re-generate.
11091 * gdbarch.c: Re-generate.
11092 * linux-tdep.c (linux_core_xfer_siginfo): New.
11093 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11094
6e5eab33
JB
110952017-07-07 John Baldwin <jhb@FreeBSD.org>
11096
11097 * corelow.c (thread_section_name): Move to ...
11098 * gdbcore.h (thread_section_name): ... here.
11099
929edea9
JB
111002017-07-07 John Baldwin <jhb@FreeBSD.org>
11101
11102 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11103 (struct siginfo32): New.
11104 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11105 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11106 via ptrace(PT_LWPINFO).
11107
762c974a
JB
111082017-07-07 John Baldwin <jhb@FreeBSD.org>
11109
11110 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11111 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11112 (fbsd_get_siginfo_type): New.
11113 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11114 (_initialize_fbsd_tdep): New.
11115
33c5cd75
DB
111162017-07-06 David Blaikie <dblaikie@gmail.com>
11117
11118 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11119 a singular dwo_unit*) to support multiple CUs in the same way that
11120 multiple TUs are supported.
11121 (create_cus_hash_table): Replace create_dwo_cu with a function for
11122 parsing multiple CUs from a DWO file.
11123 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11124 create_dwo_cu.
11125 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11126 htab_find, rather than comparing the signature to a singleton CU in
11127 the dwo_file.
11128
8455d262
PA
111292017-07-06 Pedro Alves <palves@redhat.com>
11130
11131 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11132
4da3eb35
PA
111332017-07-04 Pedro Alves <palves@redhat.com>
11134
11135 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11136 * gdbtypes.h (TYPE_STATIC): Delete.
11137 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11138 is_synchronized, is_native>: Delete.
11139 <dummy>: Bump.
11140 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11141 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11142 (TYPE_FN_FIELD_ABSTRACT): Delete.
11143
5bfd255c
SM
111442017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11145
11146 * buffer.h (buffer_finish): Fix spelling mistakes.
11147
25c54127
EZ
111482017-07-01 Eli Zaretskii <eliz@gnu.org>
11149
11150 * .dir-locals.el: Automatically switch to C-style comments in
11151 versions of Emacs that support the feature.
11152
dc4bde35
SDJ
111532017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11154 Pedro Alves <palves@redhat.com>
11155
11156 PR cli/21688
11157 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11158 (process_next_line): New variable 'inline_cmd'.
11159 Adjust 'if' clauses for "python", "compile" and "guile" to use
11160 'command_name_equals' and check for '!inline_cmd'.
11161
51ed89aa
SDJ
111622017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11163
11164 PR cli/21688
11165 * cli/cli-script.c (command_name_equals_not_inline): New function.
11166 (process_next_line): Adjust 'if' clauses for "python", "compile"
11167 and "guile" to use command_name_equals_not_inline.
11168
eb17d413
PA
111692017-06-29 Pedro Alves <palves@redhat.com>
11170
11171 * completer.c (expression_completer): Call
11172 linespec_location_completer instead of location_completer.
11173
195bcdd5
PA
111742017-06-29 Pedro Alves <palves@redhat.com>
11175
11176 * completer.c (expression_completer): Remove code that recomputes
11177 'text' from 'word'.
11178
adc764e7
YQ
111792017-06-29 Yao Qi <yao.qi@linaro.org>
11180
11181 * regformats/regdat.sh: Generate code with
11182 "ifndef IN_PROCESS_AGENT".
11183
6e75794e
PA
111842017-06-28 Pedro Alves <palves@redhat.com>
11185
11186 * command.h: Include "common/scoped_restore.h".
11187
bc491f2e
YQ
111882017-06-28 Yao Qi <yao.qi@linaro.org>
11189
11190 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11191 instead of obstack_grow.
11192
41664b45
DG
111932017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11194
11195 PR gdb/21337
11196 * symfile.c (reread_symbols): Call objfiles_changed just before
11197 read_symbols.
11198
6da67eb1
PA
111992017-06-27 Pedro Alves <palves@redhat.com>
11200
11201 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11202 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11203 (completion_list_add_symbol, completion_list_add_msymbol):
11204 ... these new functions.
11205 (add_symtab_completions)
11206 (default_make_symbol_completion_list_break_on_1): Adjust.
11207
23732b1e
PA
112082017-06-27 Pedro Alves <palves@redhat.com>
11209
11210 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11211 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11212 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11213 dtor.
11214 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11215 'storage_obstack' field an auto_obstack. In-class initialize all
11216 non-bitfield fields. Make minsyms_read bool.
11217 * symfile.c (read_symbols): Adjust.
11218
a4d1e79a
AH
112192017-06-27 Alan Hayward <alan.hayward@arm.com>
11220
11221 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11222 (gdbsim_store_register): Likewise.
11223
8268c778
PA
112242017-06-27 Pedro Alves <palves@redhat.com>
11225
11226 * c-exp.y (name_obstack): Now an auto_obstack.
11227 (yylex): Use auto_obstack::clear.
11228 (c_parse): Use auto_obstack::clear instead of reinitializing and
11229 freeing the obstack.
11230 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11231 * d-exp.y (name_obstack): Now an auto_obstack.
11232 (yylex): Use auto_obstack::clear.
11233 (d_parse): Use auto_obstack::clear instead of reinitializing and
11234 freeing the obstack.
11235 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11236 auto_obstack.
11237 * dwarf2read.c (create_addrmap_from_index)
11238 (dwarf2_build_psymtabs_hard)
11239 (update_enumeration_type_from_children): Likewise.
11240 * gdb_obstack.h (auto_obstack): New type.
11241 * go-exp.y (name_obstack): Now an auto_obstack.
11242 (build_packaged_name): Use auto_obstack::clear.
11243 (go_parse): Use auto_obstack::clear instead of reinitializing and
11244 freeing the obstack.
11245 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11246 auto_obstack.
11247 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11248 * rust-exp.y (work_obstack): Now an auto_obstack.
11249 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11250 reinitializing and freeing the obstack.
11251 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11252 (host_char_to_target): Use auto_obstack.
11253 * utils.h (make_cleanup_obstack_free): Delete declaration.
11254 * valprint.c (generic_emit_char, generic_printstr): Use
11255 auto_obstack.
11256
db665f42
SM
112572017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11258
11259 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11260 thread.
11261 (darwin_init_thread_list): Don't update dummy thread.
11262 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11263
873c0814
SM
112642017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11265
11266 * record-full.c (netorder16): Remove.
11267
8b5a7a6e
SM
112682017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11269
11270 * common/diagnostics.h: Define macros for GCC.
11271 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11272 * common/vec.h: Include diagnostics.h.
11273 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11274 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11275 warning.
11276
d1435379
SM
112772017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11278
11279 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11280 New macro.
11281 * ada-lex.l: Ignore deprecated register warnings.
11282
cc75e0fd
SM
112832017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11284
11285 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11286 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11287
07809eaf
SM
112882017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11289
11290 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11291 its own line.
11292
f076f034
SM
112932017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11294
11295 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11296
0dd5cbc5
AH
112972017-06-23 Alan Hayward <alan.hayward@arm.com>
11298
11299 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11300 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11301 (xtensa_register_read_masked): Likewise.
11302
d4c6ce5b
SDJ
113032017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11304
11305 * common/environ.c (gdb_environ::unset): Update comment.
11306
16892a03
AH
113072017-06-22 Alan Hayward <alan.hayward@arm.com>
11308
11309 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11310 registers.
11311
d7dcbefc
AH
113122017-06-22 Alan Hayward <alan.hayward@arm.com>
11313
11314 * record-full.c (record_full_exec_insn): Use byte_vector.
11315
b30ff123
YQ
113162017-06-22 Yao Qi <yao.qi@linaro.org>
11317
11318 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11319 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11320
4fa847d7
AH
113212017-06-22 Alan Hayward <alan.hayward@arm.com>
11322
11323 * remote.c (cached_reg): Move from here...
11324 * regcache.h (cached_reg): ...to here.
11325 * python/py-unwind.c (struct reg_info): Remove.
11326 (cached_frame_info): Use cached_reg_t.
11327 (pyuw_prev_register): Likewise.
11328 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11329 (pyuw_dealloc_cache): Free all registers.
11330
f4906a9a
PA
113312017-06-22 Pedro Alves <palves@redhat.com>
11332 Simon Marchi <simon.marchi@ericsson.com>
11333
11334 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11335 warning.
11336 * common/diagnostics.h: New file.
11337
b45a1208
PA
113382017-06-22 Pedro Alves <palves@redhat.com>
11339
11340 * common/agent.h: Add include guards.
11341
e4da2c61
SM
113422017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11343
11344 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11345 talk about addressable units instead of bytes.
11346
96160d60
SDJ
113472017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11348
11349 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11350 of '::const_iterator'.
11351
9a6c7d9c
SDJ
113522017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11353
11354 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11355 'unittests/environ-selftests.c'.
11356 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11357 * charset.c (find_charset_names): Declare object 'iconv_env'.
11358 Update code to use 'iconv_env' object. Remove call to
11359 'free_environ'.
11360 * common/environ.c: Include <utility>.
11361 (make_environ): Delete function.
11362 (free_environ): Delete function.
11363 (gdb_environ::clear): New function.
11364 (gdb_environ::operator=): New function.
11365 (gdb_environ::get): Likewise.
11366 (environ_vector): Delete function.
11367 (set_in_environ): Delete function.
11368 (gdb_environ::set): New function.
11369 (unset_in_environ): Delete function.
11370 (gdb_environ::unset): New function.
11371 (gdb_environ::envp): Likewise.
11372 * common/environ.h: Include <vector>.
11373 (struct gdb_environ): Delete; transform into...
11374 (class gdb_environ): ... this class.
11375 (free_environ): Delete prototype.
11376 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11377 environ_vector): Likewise.
11378 * infcmd.c (run_command_1): Update code to call
11379 'envp' from 'gdb_environ' class.
11380 (environment_info): Update code to call methods from 'gdb_environ'
11381 class.
11382 (unset_environment_command): Likewise.
11383 (path_info): Likewise.
11384 (path_command): Likewise.
11385 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11386 (inferior::inferior): Initialize 'environment' using the host's
11387 information.
11388 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11389 Include "environ.h".
11390 (class inferior) <environment>: Change type from 'struct
11391 gdb_environ' to 'gdb_environ'.
11392 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11393 methods from 'gdb_environ' class.
11394 * solib.c (solib_find_1): Likewise
11395 * unittests/environ-selftests.c: New file.
11396
75c554cf
YQ
113972017-06-20 Yao Qi <yao.qi@linaro.org>
11398
11399 * features/i386/i386-linux.xml: Exchange the order of including
11400 32bit-linux.xml and 32bit-sse.xml.
11401 * features/i386/i386-linux.c: Regenerated.
11402
72ddacb7
YQ
114032017-06-20 Yao Qi <yao.qi@linaro.org>
11404
11405 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11406 Delete copy ctor and assignment operator.
11407 (tdesc_type): Likewise.
11408 (tdesc_feature): Likewise.
11409 (tdesc_free_reg): Remove.
11410 (tdesc_create_reg): Use new.
11411 (tdesc_free_type): Remove.
11412 (tdesc_create_vector): Use new.
11413 (tdesc_create_union): Likewise.
11414 (tdesc_create_flags): Likewise.
11415 (tdesc_create_enum): Likewise.
11416 (tdesc_free_feature): Delete.
11417 (free_target_description): Use delete.
11418
325c9fd4
JB
114192017-06-19 John Baldwin <jhb@FreeBSD.org>
11420
11421 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11422 registers.
11423
16b7a719
PA
114242017-06-19 Pedro Alves <palves@redhat.com>
11425
11426 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11427 after gdb::unlinker.
11428
1c8e01c9
SDJ
114292017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11430
11431 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11432 gdb_environ to access an environment variable.
11433
ffce45d2
TP
114342017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11435
11436 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11437 gdb_byte*.
11438
1d4fbac9
SM
114392017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11440
11441 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11442
8465943a
SM
114432017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11444
11445 * configure: Re-generate.
11446 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11447
3e019bdc
SM
114482017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11449
11450 * configure: Re-generate.
11451 * warning.m4: Pass -Werror to compiler when checking for
11452 supported warning flags.
11453
cf0dd6f0
SM
114542017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11455
11456 * Makefile.in (COMPILE.pre): Add "-x c++".
11457
6f98355c
YQ
114582017-06-16 Alan Hayward <alan.hayward@arm.com>
11459 Pedro Alves <palves@redhat.com>
11460 Yao Qi <yao.qi@linaro.org>
11461
11462 * defs.h (RequireLongest): New.
11463 (extract_integer): Declare function template.
11464 (extract_signed_integer): Remove the declaration, but define it
11465 static inline.
11466 (extract_unsigned_integer): Likewise.
11467 (store_integer): Declare function template.
11468 (store_signed_integer): Remove the declaration, but define it
11469 static inline.
11470 (store_unsigned_integer): Likewise.
11471 * findvar.c (extract_integer): New function template.
11472 (extract_signed_integer): Remove.
11473 (extract_unsigned_integer): Remove.
11474 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11475 instantiations.
11476 (store_integer): New function template.
11477 (store_signed_integer): Remove.
11478 (store_unsigned_integer): Remove.
11479 (store_integer): Explicit instantiations.
11480 * regcache.c (regcache_raw_read_signed): Update.
11481 (regcache::raw_read): New function.
11482 (regcache::raw_read_signed): Remove.
11483 (regcache::raw_read_unsigned): Remove.
11484 (regcache_raw_read_unsigned): Update.
11485 (regcache_raw_write_unsigned): Update.
11486 (regcache::raw_write_signed): Remove.
11487 (regcache::raw_write): New function.
11488 (regcache_cooked_read_signed): Update.
11489 (regcache::raw_write_unsigned): Remove.
11490 (regcache::cooked_read_signed): Remove.
11491 (regcache_cooked_read_unsigned): Update.
11492 (regcache::cooked_read_unsigned): Remove.
11493 (regcache_cooked_write_signed): Update.
11494 (regcache_cooked_write_unsigned): Update.
11495 * regcache.h (regcache) <raw_read_signed>: Remove.
11496 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11497 <raw_read, raw_write>: New.
11498 <cooked_read_signed, cooked_write_signed>: Remove.
11499 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11500 <cooked_read, cooked_write>: New.
11501 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11502 (sh64_pseudo_register_write): Update.
11503
a87dc45a
AK
115042017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11505
11506 * arc-tdep.c (arc_disassembler_options): New variable.
11507 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11508 of default_print_insn.
11509 (arc_delayed_print_insn): Set info->section when needed,
11510 use default_print_insn to retrieve a disassembler.
11511
45159d6a
SDJ
115122017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11513
11514 PR gdb/21574
11515 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11516 to mention $SHELL and startup-with-shell.
11517
b46c4cf0
MF
115182017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11519
11520 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11521
6394c606
YQ
115222017-06-14 Yao Qi <yao.qi@linaro.org>
11523
11524 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11525 default_print_insn instead of print_insn_aarch64.
11526 * arm-tdep.c (gdb_print_insn_arm): Call
11527 default_print_insn instead of print_insn_big_arm
11528 and print_insn_little_arm.
11529 * i386-tdep.c (i386_print_insn): Call default_print_insn
11530 instead of print_insn_i386.
11531 * ia64-tdep.c (ia64_print_insn): Call
11532 default_print_insn instead of print_insn_ia64.
11533 * mips-tdep.c (gdb_print_insn_mips): Call
11534 default_print_insn instead of print_insn_big_mips
11535 and print_insn_little_mips.
11536 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11537 instead of print_insn_spu.
11538
d5722aa2
PA
115392017-06-14 Pedro Alves <palves@redhat.com>
11540
11541 * ada-lang.c: Include "common/byte-vector.h".
11542 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11543 * charset.c (wchar_iterator::iterate): Resize the vector instead
11544 of reserving it.
11545 * common/byte-vector.h: Include "common/def-vector.h".
11546 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11547 * cli/cli-dump.c: Include "common/byte-vector.h".
11548 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11549 * common/byte-vector.h: New file.
11550 * common/def-vector.h: New file.
11551 * common/default-init-alloc.h: New file.
11552 * dwarf2loc.c: Include "common/byte-vector.h".
11553 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11554 instead of reserving it.
11555 * dwarf2read.c: Include "common/byte-vector.h".
11556 (data_buf::m_vec): Now a gdb::byte_vector.
11557 * gdb_regex.c: Include "common/def-vector.h".
11558 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11559 * mi/mi-main.c: Include "common/byte-vector.h".
11560 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11561 * printcmd.c: Include "common/byte-vector.h".
11562 (print_scalar_formatted): Use gdb::byte_vector.
11563 * valprint.c: Include "common/byte-vector.h".
11564 (maybe_negate_by_bytes, print_decimal_chars): Use
11565 gdb::byte_vector.
11566
01ec7a27
SM
115672017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11568
11569 * darwin-nat.c: Include "nat/fork-inferior.h".
11570
848d9074
SM
115712017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11572
11573 * configure.nat: Factor out Darwin bits that are not
11574 architecture-specific. Add fork-inferior.o.
11575
3b912944
SM
115762017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11577
11578 * configure.nat: Factor out AIX bits that are not
11579 architecture-specific. Add fork-inferior.o.
11580
55acdf22
AA
115812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11582
11583 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11584 (read_pieced_value, write_pieced_value): ...here. Reduce to
11585 wrappers that just call rw_pieced_value.
11586
f65e2044
AA
115872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11588
11589 * dwarf2loc.c (write_pieced_value): When writing the data for a
11590 memory piece, use write_memory_with_notification instead of
11591 write_memory.
11592
23f945bf
AA
115932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11594
11595 * valops.c (read_value_memory): Change embedded_offset to
11596 represent a bit offset instead of a byte offset.
11597 * value.h (read_value_memory): Adjust comment.
11598
f236533e
AA
115992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11600
11601 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11602 dest_offset_bits and source_offset_bits.
11603 (write_pieced_value): Likewise.
11604
65d84b76
AA
116052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11606
11607 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11608 given by DW_OP_bit_piece.
11609 (write_pieced_value): Likewise.
11610
242d31ab
AA
116112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11612
11613 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11614 some other preparations to the places where sufficient information
11615 is available.
11616 (write_pieced_value): Likewise.
11617
03c8af18
AA
116182017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11619
11620 * dwarf2loc.c (bits_to_bytes): New function.
11621 (read_pieced_value): Fix offset calculations for register pieces
11622 on big-endian targets.
11623 (write_pieced_value): Likewise.
11624
840989c1
AA
116252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11626
11627 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11628 (write_pieced_value): Likewise.
11629
359b19bb
AA
116302017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11631
11632 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11633 transfer the source value's least significant bits, instead of its
11634 lowest-addressed ones. Rename type_len to max_offset.
11635 (read_pieced_value): Mirror above changes to write_pieced_value as
11636 applicable.
11637
07c9ca3b
AA
116382017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11639
11640 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11641 truncate full bytes from dest_offset_bits before using it as an
11642 offset into the buffer.
11643
f1cc9874
AA
116442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11645
11646 * dwarf2loc.c (write_pieced_value): Include transfer size in
11647 byte-wise check.
11648
cdaac320
AA
116492017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11650
11651 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11652 calculation of this_size.
11653
af547a96
AA
116542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11655
11656 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11657 when targeting a bit-field.
11658 (write_pieced_value): Likewise.
11659
ddd7882a
AA
116602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11661
11662 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11663 (allocate_piece_closure): Drop addr_size parameter.
11664 (dwarf2_evaluate_loc_desc_full): Adjust call to
11665 allocate_piece_closure.
11666
e9352324
AA
116672017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11668
11669 PR gdb/21226
11670 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11671 the LSB end, independent of endianness.
11672
d5d1163e
AA
116732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11674
11675 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11676 size capping.
11677
032bb6ea
YQ
116782017-06-13 Yao Qi <yao.qi@linaro.org>
11679
11680 * mips-linux-nat.c: Move include features/mips*-linux.c to
11681 mips-linux-tdep.c.
11682 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11683 to mips-linux-tdep.c.
11684 * mips-linux-tdep.c: Include features/mips*-linux.c
11685 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11686 functions.
11687 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11688 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11689 (tdesc_mips64_dsp_linux): Declare.
11690
f12f6bad
TT
116912017-06-12 Tom Tromey <tom@tromey.com>
11692
11693 * valprint.h (val_print_type_code_int): Remove.
11694 * valprint.c (generic_val_print_int): Always call
11695 val_print_scalar_formatted.
11696 (val_print_type_code_int): Remove.
11697 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11698 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11699 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11700 * ada-valprint.c (ada_val_print_num): Use
11701 val_print_scalar_formatted.
11702
d9109c80
TT
117032017-06-12 Tom Tromey <tom@tromey.com>
11704
11705 * printcmd.c (print_scalar_formatted): Unify the two switches.
11706 Don't convert scalars to LONGEST.
11707
4ac0cb1c
TT
117082017-06-12 Tom Tromey <tom@tromey.com>
11709
11710 PR exp/16225:
11711 * valprint.h (print_decimal_chars): Update.
11712 * valprint.c (maybe_negate_by_bytes): New function.
11713 (print_decimal_chars): Add "is_signed" argument.
11714 * printcmd.c (print_scalar_formatted): Update.
11715
30a25466
TT
117162017-06-12 Tom Tromey <tom@tromey.com>
11717
11718 PR exp/16225:
11719 * valprint.h (print_binary_chars, print_hex_chars): Update.
11720 * valprint.c (val_print_type_code_int): Update.
11721 (print_binary_chars): Add "zero_pad" argument.
11722 (emit_octal_digit): New function.
11723 (print_octal_chars): Don't zero-pad.
11724 (print_decimal_chars): Likewise.
11725 (print_hex_chars): Add "zero_pad" argument.
11726 * sh64-tdep.c (sh64_do_fp_register): Update.
11727 * regcache.c (regcache::dump): Update.
11728 * printcmd.c (print_scalar_formatted): Update.
11729 * infcmd.c (default_print_one_register_info): Update.
11730
b3464d03
PA
117312017-06-12 Pedro Alves <palves@redhat.com>
11732 Alan Hayward <alan.hayward@arm.com>
11733
11734 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11735 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11736 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11737 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11738 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11739
4b76cda9
PA
117402017-06-12 Pedro Alves <palves@redhat.com>
11741
11742 * dwarf2read.c (mapped_symtab::data): Now a vector of
11743 symtab_index_entry instead of vector of
11744 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11745 whether an element's name is NULL instead of checking whether the
11746 element itself is NULL.
11747 (find_slot): Change return type. Adjust.
11748 (hash_expand, , add_index_entry, uniquify_cu_indices)
11749 (write_hash_table): Adjust.
11750
e8f8bcb3
PA
117512017-06-12 Pedro Alves <palves@redhat.com>
11752
11753 * dwarf2read.c (recursively_count_psymbols): New function.
11754 (write_psymtabs_to_index): Call it to compute number of psyms and
11755 pass estimate size of psyms_seen to unordered_set's ctor.
11756
70a1152b
PA
117572017-06-12 Pedro Alves <palves@redhat.com>
11758
11759 * dwarf2read.c (write_hash_table): Check if key already exists
11760 before emplacing.
11761
c2f134ac
PA
117622017-06-12 Pedro Alves <palves@redhat.com>
11763
11764 * dwarf2read.c (data_buf::append_space): Rename to...
11765 (data_buf::grow): ... this, and make private. Adjust all callers.
11766 (data_buf::append_uint): New method.
11767 (add_address_entry, write_one_signatured_type)
11768 (write_psymtabs_to_index): Use it.
11769
a81e6d4d
PA
117702017-06-12 Pedro Alves <palves@redhat.com>
11771
11772 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11773 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11774 (data_buf::file_write): Call ::fwrite directly.
11775
6fd931f2
PA
117762017-06-12 Pedro Alves <palves@redhat.com>
11777
11778 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11779 std::vector::erase.
11780
bc8f2430
JK
117812017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11782
11783 Code cleanup: C++ify .gdb_index producer.
11784 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11785 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11786 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11787 (create_strtab, add_string): Remove.
11788 (file_write, data_buf): New.
11789 (struct symtab_index_entry): Use std::vector for cu_indices.
11790 (struct mapped_symtab): Use std::vector for data.
11791 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11792 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11793 Remove.
11794 (find_slot): Change return type. Update it to the new data structures.
11795 (hash_expand, add_index_entry): Update it to the new data structures.
11796 (offset_type_compare): Remove.
11797 (uniquify_cu_indices): Update it to the new data structures.
11798 (c_str_view, c_str_view_hasher, vector_hasher): New.
11799 (add_indices_to_cpool): Remove.
11800 (write_hash_table): Update it to the new data structures.
11801 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11802 (eq_psymtab_cu_index): Remove.
11803 (psym_index_map): New typedef.
11804 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11805 reference and std::unordered_map for cu_index_htab.
11806 (add_address_entry, add_address_entry_worker, write_address_map)
11807 (write_psymbols): Update it to the new data structures.
11808 (write_obstack): Remove.
11809 (struct signatured_type_index_data): Change types_list to a data_buf
11810 reference and psyms_seen to a std::unordered_set reference.
11811 (write_one_signatured_type, recursively_write_psymbols)
11812 (write_psymtabs_to_index): Update it to the new data structures.
11813
c4dcb155
SM
118142017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11815
11816 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11817 separate-debug-file commands.
11818 * symfile.h (separate_debug_file_debug): New global.
11819 * symfile.c (separate_debug_file_debug): New global.
11820 (separate_debug_file_exists, find_separate_debug_file): Add
11821 debug output.
11822 (_initialize_symfile): Add "set debug separate-debug-file"
11823 command.
11824 * build-id.c (build_id_to_debug_bfd,
11825 find_separate_debug_file_by_buildid): Add debug output.
11826
6d45d4b4
SM
118272017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11828
11829 * gdbarch.sh (displaced_step_free_closure): Remove.
11830 * gdbarch.h, gdbarch.c: Re-generate.
11831 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11832 displaced_step_free_closure.
11833 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11834 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11835 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11836 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11837 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11838 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11839 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11840 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11841 * infrun.c (displaced_step_clear): Call xfree instead of
11842 gdbarch_displaced_step_free_closure.
11843
2f91880f
SDJ
118442017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11845
11846 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11847 NULL".
11848
b8b6e72f
AH
118492017-06-08 Alan Hayward <alan.hayward@arm.com>
11850
11851 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11852 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11853 (mn10300_push_dummy_call): Likewise.
11854
5369082e
AH
118552017-06-08 Alan Hayward <alan.hayward@arm.com>
11856
11857 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11858
ff4ca5ac
AH
118592017-06-08 Alan Hayward <alan.hayward@arm.com>
11860
11861 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11862
aefd8b33
SDJ
118632017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11864
11865 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11866 able to start inferiors using a shell.
11867 (New remote packets): Announce new packet "QStartupWithShell".
11868 * remote.c: Add PACKET_QStartupWithShell.
11869 (extended_remote_create_inferior): Handle new
11870 PACKET_QStartupWithShell.
11871 (remote_protocol_features) <QStartupWithShell>: New entry for
11872 PACKET_QStartupWithShell.
11873 (_initialize_remote): Call "add_packet_config_cmd" for
11874 QStartupShell.
11875
2090129c
SDJ
118762017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11877 Pedro Alves <palves@redhat.com>
11878
11879 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11880 and "nat/fork-inferior.h".
11881 * common/common-inferior.h: New file, with contents from
11882 "gdb/inferior.h".
11883 * commom/common-utils.c: Include "common-utils.h".
11884 (stringify_argv): New function.
11885 * common/common-utils.h (stringify_argv): New prototype.
11886 * configure.nat: Add "fork-inferior.o" as a dependency for
11887 "*linux*", "fbsd*" and "nbsd*" hosts.
11888 * corefile.c (get_exec_file): Update comment.
11889 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11890 instead of "startup_inferior".
11891 (darwin_create_inferior): Call "add_thread_silent" after
11892 "fork_inferior".
11893 * fork-child.c: Cleanup unnecessary includes.
11894 (SHELL_FILE): Move to "common/common-fork-child.c".
11895 (environ): Likewise.
11896 (exec_wrapper): Initialize.
11897 (get_exec_wrapper): New function.
11898 (breakup_args): Move to "common/common-fork-child.c"; rename to
11899 "breakup_args_for_exec".
11900 (escape_bang_in_quoted_argument): Move to
11901 "common/common-fork-child.c".
11902 (saved_ui): New variable.
11903 (prefork_hook): New function.
11904 (postfork_hook): Likewise.
11905 (postfork_child_hook): Likewise.
11906 (gdb_startup_inferior): Likewise.
11907 (fork_inferior): Move to "common/common-fork-child.c". Update
11908 function to support gdbserver.
11909 (startup_inferior): Likewise.
11910 * gdbcore.h (get_exec_file): Remove declaration.
11911 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11912 instead of "startup_inferior". Call "add_thread_silent" after
11913 "fork_inferior".
11914 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11915 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11916 instead of "startup_inferior". Call "add_thread_silent" after
11917 "fork_inferior".
11918 * inferior.h: Include "common-inferior.h".
11919 (trace_start_error): Move to "common/common-utils.h".
11920 (trace_start_error_with_name): Likewise.
11921 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11922 (startup_inferior): Likewise.
11923 (gdb_startup_inferior): New prototype.
11924 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11925 * nat/fork-inferior.h: New file.
11926 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11927 instead of "startup_inferior". Call "add_thread_silent" after
11928 "fork_inferior".
11929 * target.h (target_terminal_init): Move prototype to
11930 "target/target.h".
11931 (target_terminal_inferior): Likewise.
11932 (target_terminal_ours): Likewise.
11933 * target/target.h (target_terminal_init): New prototype, moved
11934 from "target.h".
11935 (target_terminal_inferior): Likewise.
11936 (target_terminal_ours): Likewise.
11937 * utils.c (gdb_flush_out_err): New function.
11938
043a4934
SDJ
119392017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11940
11941 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11942 * common/common-gdbthread.h: New file, with parts from
11943 "gdb/gdbthread.h".
11944 * gdbthread.h: Include "common-gdbthread.h".
11945 (switch_to_thread): Moved to "common/common-gdbthread.h".
11946
15652511
SDJ
119472017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11948
11949 * Makefile.in (SFILES): Add "common/job-control.c".
11950 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11951 (COMMON_OBS): Add "job-control.o".
11952 * common/job-control.c: New file, with contents from
11953 "gdb/inflow.c".
11954 * common/job-control.h: New file, with contents from "terminal.h".
11955 * fork-child.c: Include "job-control.h".
11956 * inflow.c: Include "job-control.h".
11957 (gdb_setpgid): Move to "common/common-inflow.c".
11958 (_initialize_inflow): Move setting of "job_control" to
11959 "handle_job_control".
11960 * terminal.h (job_control): Moved to "common/common-terminal.h".
11961 (gdb_setpgid): Likewise.
11962 * top.c: Include "job_control.h".
11963 * utils.c: Likewise.
11964 (job_control): Moved to "job-control.c".
11965
2d7cc5c7
PA
119662017-06-07 Pedro Alves <palves@redhat.com>
11967
11968 * Makefile.in (SFILES): Add gdb_regex.c.
11969 (COMMON_OBS): Add gdb_regex.o.
11970 * ada-lang.c (ada_add_standard_exceptions)
11971 (ada_add_exceptions_from_frame, name_matches_regex)
11972 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11973 parameter type to compiled_regex. Adjust.
11974 (ada_exceptions_list): Use compiled_regex.
11975 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11976 std::unique_ptr<compiled_regex>.
11977 (exception_catchpoint::~exception_catchpoint): Remove regfree
11978 call.
11979 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11980 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11981 * breakpoint.c (solib_catchpoint::compiled): Now a
11982 std::unique_ptr<compiled_regex>.
11983 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11984 (check_status_catch_solib): Adjust to use compiled_regex.
11985 (add_solib_catchpoint): Adjust to use compiled_regex.
11986 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11987 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11988 compiled_regex reference. Adjust to use it.
11989 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11990 declaration. Include "gdb_regex.h".
11991 (apropos_cmd): Change regex parameter to compiled_regex reference.
11992 * gdb_regex.c: New file.
11993 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11994 declarations.
11995 (class compiled_regex): New.
11996 * linux-tdep.c: Include "common/gdb_optional.h".
11997 (struct mapping_regexes): New, factored out from
11998 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11999 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12000 gdb::optional and remove cleanups. Adjust to compiled_regex.
12001 * probe.c: Include "common/gdb_optional.h".
12002 (collect_probes): Use compiled_regex and gdb::optional and remove
12003 cleanups.
12004 * skip.c: Include "common/gdb_optional.h".
12005 (skiplist_entry::compiled_function_regexp): Now a
12006 gdb::optional<compiled_regex>.
12007 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12008 (free_skiplist_entry): Remove regfree call.
12009 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12010 compiled_regex and gdb::optional.
12011 * symtab.c: Include "common/gdb_optional.h".
12012 (search_symbols): Use compiled_regex and gdb::optional.
12013 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12014 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12015 to gdb_regex.c.
12016
50d6adef
AH
120172017-06-07 Alan Hayward <alan.hayward@arm.com>
12018
12019 * regcache.c (regcache::save): Avoid buffer use.
12020 (regcache::dump): Likewise.
12021
4a8a33c8
AH
120222017-06-07 Alan Hayward <alan.hayward@arm.com>
12023
12024 * sh-tdep.c (sh_pseudo_register_read): Remove
12025 MAX_REGISTER_SIZE.
12026 (sh_pseudo_register_write): Likewise.
12027 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12028 (sh64_pseudo_register_write): Likewise
12029
d1be909e
AH
120302017-06-07 Alan Hayward <alan.hayward@arm.com>
12031
12032 * aarch64-tdep.c (aarch64_store_return_value): Use
12033 V_REGISTER_SIZE.
12034 (aarch64_pseudo_read_value): Likewise.
12035 (aarch64_pseudo_write): Likewise.
12036
f4a65042
YQ
120372017-06-06 Yao Qi <yao.qi@linaro.org>
12038
12039 * regformats/regdef.h (set_register_cache): Remove the
12040 declaration.
12041
9f7fb0aa
AH
120422017-06-06 Alan Hayward <alan.hayward@arm.com>
12043
12044 * frame.c (frame_unwind_register_signed): Use
12045 frame_unwind_register_value.
12046
e1e01040
PA
120472017-06-06 Pedro Alves <palves@redhat.com>
12048
12049 PR breakpoints/21553
12050 * breakpoint.c (create_breakpoints_sal_default)
12051 (init_breakpoint_sal, create_breakpoint_sal): Use
12052 gdb::unique_xmalloc_ptr for string parameters.
12053 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12054 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12055 (base_breakpoint_create_breakpoints_sal)
12056 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12057 (strace_marker_create_breakpoints_sal)
12058 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12059 string parameters.
12060 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12061 gdb::unique_xmalloc_ptr for string parameters.
12062 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12063 parameters.
12064
fbe654c8
AH
120652017-06-06 Alan Hayward <alan.hayward@arm.com>
12066
12067 * alpha-tdep.c (alpha_register_to_value): Use
12068 get_frame_register_value.
12069 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12070
ae0d01d6
AH
120712017-06-06 Alan Hayward <alan.hayward@arm.com>
12072
12073 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12074 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12075 (ia64_value_to_register): Likewise.
12076 (ia64_extract_return_value): Likewise.
12077 (ia64_store_return_value): Likewise.
12078 (ia64_push_dummy_call): Likewise.
12079
49cf576c
JB
120802017-06-04 Joel Brobecker <brobecker@adacore.com>
12081
12082 GDB 8.0 released.
12083
26b6a6ab
SM
120842017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12085
12086 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12087
22827c51
SM
120882017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12089
12090 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12091 parameter.
12092 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12093
0e05cf3a
SM
120942017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12095
12096 * event-loop.c (poll_timers): Unallocate timer using delete
12097 instead of xfree.
12098
c1fc2657
SM
120992017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12100
12101 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12102 (struct breakpoint) <~breakpoint>: New.
12103 (struct watchpoint): Inherit from breakpoint.
12104 <~watchpoint>: New.
12105 <base>: Remove.
12106 (struct tracepoint): Inherit from breakpoint.
12107 <base>: Remove.
12108 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12109 (struct longjmp_breakpoint): Inherit from breakpoint.
12110 <~longjmp_breakpoint>: New.
12111 <base>: Remove.
12112 (new_breakpoint_from_type): Remove casts.
12113 (watchpoint_in_thread_scope): Remove reference to base field.
12114 (watchpoint_del_at_next_stop): Likewise.
12115 (update_watchpoint): Likewise.
12116 (watchpoint_check): Likewise.
12117 (bpstat_check_watchpoint): Likewise.
12118 (set_longjmp_breakpoint): Likewise.
12119 (struct fork_catchpoint): Inherit from breakpoint.
12120 <base>: Remove.
12121 (struct solib_catchpoint): Inherit from breakpoint.
12122 <~solib_catchpoint>: New.
12123 <base>: Remove.
12124 (dtor_catch_solib): Change to ...
12125 (solib_catchpoint::~solib_catchpoint): ... this.
12126 (breakpoint_hit_catch_solib): Remove reference to base field.
12127 (add_solib_catchpoint): Likewise.
12128 (create_fork_vfork_event_catchpoint): Likewise.
12129 (struct exec_catchpoint): Inherit from breakpoint.
12130 <~exec_catchpoint>: New.
12131 <base>: Remove.
12132 (dtor_catch_exec): Change to ...
12133 (exec_catchpoint::~exec_catchpoint): ... this.
12134 (dtor_watchpoint): Change to ...
12135 (watchpoint::~watchpoint): ... this.
12136 (watch_command_1): Remove reference to base field.
12137 (catch_exec_command_1): Likewise.
12138 (base_breakpoint_dtor): Change to ...
12139 (breakpoint::~breakpoint): ... this.
12140 (base_breakpoint_ops): Remove dtor field value.
12141 (longjmp_bkpt_dtor): Change to ...
12142 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12143 (strace_marker_create_breakpoints_sal): Remove reference to base
12144 field.
12145 (delete_breakpoint): Don't manually call breakpoint destructor.
12146 (create_tracepoint_from_upload): Remove reference to base field.
12147 (trace_pass_set_count): Likewise.
12148 (initialize_breakpoint_ops): Don't initialize
12149 momentary_breakpoint_ops, don't set dtors.
12150 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12151 <~ada_catchpoint>: New.
12152 <base>: Remove.
12153 (create_excep_cond_exprs): Remove reference to base field.
12154 (dtor_exception): Change to ...
12155 (ada_catchpoint::~ada_catchpoint): ... this.
12156 (dtor_catch_exception): Remove.
12157 (dtor_catch_exception_unhandled): Remove.
12158 (dtor_catch_assert): Remove.
12159 (create_ada_exception_catchpoint): Remove reference to base
12160 field.
12161 (initialize_ada_catchpoint_ops): Don't set dtors.
12162 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12163 breakpoint.
12164 <~signal_catchpoint>: New.
12165 <base>: Remove.
12166 (signal_catchpoint_dtor): Change to ...
12167 (signal_catchpoint::~signal_catchpoint): ... this.
12168 (create_signal_catchpoint): Remove reference to base field.
12169 (initialize_signal_catchpoint_ops): Don't set dtor.
12170 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12171 from breakpoint.
12172 <~syscall_catchpoint>: New.
12173 <base>: Remove.
12174 (dtor_catch_syscall): Change to ...
12175 (syscall_catchpoint::~syscall_catchpoint): ... this.
12176 (create_syscall_event_catchpoint): Remove reference to base
12177 field.
12178 (initialize_syscall_catchpoint_ops): Don't set dtor.
12179 * break-catch-throw.c (struct exception_catchpoint): Inherit
12180 from breakpoint.
12181 <~exception_catchpoint>: New.
12182 <base>: Remove.
12183 (dtor_exception_catchpoint): Change to ...
12184 (exception_catchpoint::~exception_catchpoint): ... this.
12185 (handle_gnu_v3_exceptions): Remove reference to base field.
12186 (initialize_throw_catchpoint_ops): Don't set dtor.
12187 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12188 field.
12189 * remote.c (remote_get_tracepoint_status): Likewise.
12190 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12191 * tracefile.c (tracefile_fetch_registers): Likewise.
12192 * tracepoint.c (actions_command): Likewise.
12193 (validate_actionline): Likewise.
12194 (tfind_1): Likewise.
12195 (get_traceframe_location): Likewise.
12196 (find_matching_tracepoint_location): Likewise.
12197 (parse_tracepoint_status): Likewise.
12198 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12199
3b0871f4
SM
122002017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12201
12202 * breakpoint.c (struct longjmp_breakpoint): New struct.
12203 (is_tracepoint_type): Change return type to bool.
12204 (is_longjmp_type): New function.
12205 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12206 (set_raw_breakpoint_without_location): Use
12207 new_breakpoint_from_type.
12208 (set_raw_breakpoint): Likewise.
12209
a5e364af
SM
122102017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12211
12212 * breakpoint.c (new_breakpoint_from_type): New function.
12213 (create_breakpoint_sal): Use new_breakpoint_from_type and
12214 unique_ptr.
12215 (create_breakpoint): Likewise.
12216
ae3b3f34
SM
122172017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12218
12219 * memattr.c (mem_info_command): Rename to ...
12220 (info_mem_command): ... this.
12221 (mem_enable_command): Rename to ...
12222 (enable_mem_command): ... this.
12223 (mem_disable_command): Rename to ...
12224 (disable_mem_command): ... this.
12225 (mem_delete_command): Rename to ...
12226 (delete_mem_command): ... this.
12227 (_initialize_mem): Adjust function names.
12228
13ace077
MM
122292017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12230
12231 * btrace.c (handle_pt_insn_events): New.
12232 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12233 STATUS. Split into this and ...
12234 (handle_pt_insn_event_flags): ... this.
12235
c56ccc05
MM
122362017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12237
12238 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12239 and struct pt_insn.resynced.
12240 * configure: Regenerated.
12241 * config.in: Regenerated.
12242
08c3f6d2
TW
122432017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12244
12245 * btrace.c (ftrace_find_call_by_number): New function.
12246 (ftrace_new_function): Store objects, not pointers.
12247 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12248 ftrace_new_gap, ftrace_update_function,
12249 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12250 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12251 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12252 btrace_ends_with_single_insn, btrace_call_get): Account for
12253 btrace_thread_info::functions now storing objects.
12254 * btrace.h (struct btrace_thread_info): Add constructor.
12255 (struct btrace_thread_info) <functions>: Make std::vector.
12256 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12257 Initialize with default values.
12258 * record-btrace.c (record_btrace_frame_sniffer): Account for
12259 btrace_thread_info::functions now storing objects.
12260
8ffd39f2
TW
122612017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12262
12263 * btrace.c: Remove typedef bfun_s.
12264 (ftrace_new_gap): Directly add gaps to the list of gaps.
12265 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12266 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12267 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12268 instead of gdb VEC.
12269
4aeb0dfc
TW
122702017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12271
12272 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12273 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12274 with btrace_thread_info::next_segment and
12275 btrace_thread_info::prev_segment.
12276 * btrace.h: Remove struct btrace_func_link.
12277 (struct btrace_function): Replace pair of function segment pointers
12278 with pair of indices.
12279 * python/py-record-btrace.c (btpy_call_prev_sibling,
12280 btpy_call_next_sibling): Replace references to
12281 btrace_thread_info::segment with btrace_thread_info::next_segment and
12282 btrace_thread_info::prev_segment.
12283 * record-btrace.c (record_btrace_frame_this_id): Use
12284 btrace_find_call_by_number.
12285
eb8f2b9c
TW
122862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12287
12288 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12289 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12290 btrace_insn_next, btrace_insn_prev): Remove references to
12291 btrace_thread_info::flow.
12292 * btrace.h (struct btrace_function): Remove FLOW.
12293
42bfe59e
TW
122942017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12295
12296 * btrace.c (ftrace_find_call_by_number): New function.
12297 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12298 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12299 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12300 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12301 index.
12302 * btrace.h (struct btrace_function): Turn UP into an index.
12303 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12304 as an index.
12305 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12306 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12307 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12308
b54b03bd
TW
123092017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12310
12311 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12312 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12313 ftrace_update_function, ftrace_compute_global_level_offset,
12314 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12315 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12316 btrace_insn_end, btrace_is_empty): Remove references to
12317 btrace_thread_info::begin and btrace_thread_info::end.
12318 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12319 (struct btrace_thread_info) <functions>: Adjust comment.
12320 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12321 btrace_thread_info::begin.
12322
8286623c
TW
123232017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12324
12325 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12326 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12327 ftrace_update_function): Remove arguments that implicitly were always
12328 BTINFO->END.
12329 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12330 Don't pass BTINFO->END.
12331
a0f1b963
TW
123322017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12333
12334 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12335 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12336 btrace_find_insn_by_number): Replace function segment pointer with
12337 index.
12338 (btrace_insn_cmp): Simplify.
12339 * btrace.h: (struct btrace_insn_iterator) Rename index to
12340 insn_index. Replace function segment pointer with index into function
12341 segment vector.
12342 * record-btrace.c (record_btrace_call_history): Replace function
12343 segment pointer use with index.
12344 (record_btrace_frame_sniffer): Retrieve function call segment through
12345 vector.
12346 (record_btrace_set_replay): Remove defunc't safety check.
12347
f158f208
TW
123482017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12349
12350 * btrace.c (btrace_ends_with_single_insn): New function.
12351 (btrace_call_get, btrace_call_number, btrace_call_begin,
12352 btrace_call_end, btrace_call_next, btrace_call_prev,
12353 btrace_find_call_by_number): Use index into call segment vector
12354 instead of pointer.
12355 (btrace_call_cmp): Simplify.
12356 * btrace.h (struct btrace_call_iterator): Replace function call segment
12357 pointer with index into vector.
12358 * record-btrace.c (record_btrace_call_history): Use index instead of
12359 pointer.
12360
521103fd
TW
123612017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12362
12363 * btrace.c (btrace_insn_begin, btrace_insn_end,
12364 btrace_find_insn_by_number): Add btinfo to iterator.
12365 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12366
17b89b34
TW
123672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12368
12369 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12370 and save pointers directly.
12371 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12372 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12373 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12374 changed signature of functions.
12375 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12376 (btrace_fetch): Remove code that adds btrace_function pointers to
12377 vector of btrace_functions.
12378 (btrace_clear): Simplify freeing vector of btrace_functions.
12379
2b51eddc
TW
123802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12381
12382 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12383 Replace VEC_* with std::vector functions.
12384 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12385 (struct btrace_thread_info)<functions>: Change type to std::vector.
12386
db6be0d5
SM
123872017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12388
12389 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12390 "Removed targets and native configurations" up. Merge duplicate
12391 "New commands" sub-sections. Add "New options" sub-sections.
12392
b057297a
AH
123932017-05-26 Alan Hayward <alan.hayward@arm.com>
12394
12395 * defs.h (copy_integer_to_size): New declaration.
12396 * findvar.c (copy_integer_to_size): New function.
12397 (do_cint_test): New selftest function.
12398 (copy_integer_to_size_test): Likewise.
12399 (_initialize_findvar): Likewise.
12400 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12401 (mips_fbsd_collect_reg): Use raw_collect_integer.
12402 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12403 (mips64_fill_gregset): Use raw_collect_integer
12404 (mips64_fill_fpregset): Use raw_supply_integer.
12405 * regcache.c (regcache::raw_supply_integer): New function.
12406 (regcache::raw_collect_integer): Likewise.
12407 * regcache.h: (regcache::raw_supply_integer): New declaration.
12408 (regcache::raw_collect_integer): Likewise.
12409
b77b02a5
YQ
124102017-05-24 Yao Qi <yao.qi@linaro.org>
12411
12412 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12413 (COMMON_OBS): Add gdbarch-selftests.o.
12414 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12415 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12416 * gdbarch-selftests.c: New file.
12417 * regcache.h (regcache) <~regcache>: Mark it virtual if
12418 GDB_SELF_TEST.
12419 <raw_write>: Likewise.
12420
e521e87e
YQ
124212017-05-24 Yao Qi <yao.qi@linaro.org>
12422
12423 * regcache.c (current_regcache): Change it to
12424 regcache::current_regcache.
12425 (regcache_observer_target_changed): Update.
12426 (regcache_thread_ptid_changed): Make it a regcache static
12427 method.
12428 (regcache_thread_ptid_changed): Update.
12429 (class regcache_access): New.
12430 (current_regcache_test): Update.
12431 (_initialize_regcache): Update.
12432 * regcache.h: Include forward_list.
12433 (regcache): Declare regcache_thread_ptid_changed and declare
12434 registers_changed_ptid as friend.
12435
d8e07dda
YQ
124362017-05-24 Yao Qi <yao.qi@linaro.org>
12437
12438 * i387-tdep.c (i387_register_to_value): Use register_size
12439 instead of TYPE_LENGTH.
12440 * m68k-tdep.c (m68k_register_to_value): Likewise.
12441
8c8f9122
YQ
124422017-05-24 Yao Qi <yao.qi@linaro.org>
12443
12444 * i387-tdep.c (i387_convert_register_p): Return false if type
12445 code isn't TYPE_CODE_FLT.
12446
68fce50f
YQ
124472017-05-24 Yao Qi <yao.qi@linaro.org>
12448
12449 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12450 length is 4.
12451 (alpha_register_to_value): Remove type length check.
12452 (alpha_value_to_register): Likewise.
12453
88954b49
YQ
124542017-05-24 Yao Qi <yao.qi@linaro.org>
12455
12456 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12457 TYPE_CODE_FLT.
12458
e3ec9b69
YQ
124592017-05-24 Yao Qi <yao.qi@linaro.org>
12460
12461 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12462 TYPE_CODE_FLT or not.
12463
cdd238da
YQ
124642017-05-24 Yao Qi <yao.qi@linaro.org>
12465
12466 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12467 * avr-tdep.c (avr_gdbarch_init): Likewise.
12468 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12469 * cris-tdep.c (cris_gdbarch_init): Likewise.
12470 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12471 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12472 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12474 * mep-tdep.c (mep_gdbarch_init): Likewise.
12475 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12476 * mips-tdep.c (mips_gdbarch_init): Likewise.
12477 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12478 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12479 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12480 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12481 * v850-tdep.c (v850_gdbarch_init): Likewise.
12482
7a3929c4
YQ
124832017-05-24 Yao Qi <yao.qi@linaro.org>
12484
12485 * selftest-arch.c (tests_with_arch): Call registers_changed
12486 and reinit_frame_cache.
12487 * selftest.c (run_self_tests): Likewise.
12488
f4985dba
YQ
124892017-05-24 Yao Qi <yao.qi@linaro.org>
12490
12491 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12492 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12493
ab20fa4a
YQ
124942017-05-24 Yao Qi <yao.qi@linaro.org>
12495
12496 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12497 set_gdbarch_print_insn.
12498
f532ab94
YQ
124992017-05-24 Yao Qi <yao.qi@linaro.org>
12500
12501 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12502 set_gdbarch_print_insn.
12503
39503f82
YQ
125042017-05-24 Yao Qi <yao.qi@linaro.org>
12505
12506 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12507 set_gdbarch_print_insn.
12508 * arc-tdep.c (arc_gdbarch_init): Likewise.
12509 * arch-utils.c: include dis-asm.h.
12510 (default_print_insn): New function.
12511 * arch-utils.h (default_print_insn): Declare.
12512 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12513 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12514 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12515 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12516 * frv-tdep.c (frv_gdbarch_init): Likewise.
12517 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12518 * gdbarch.sh (print_insn): Use default_print_insn.
12519 * gdbarch.c: Regenerated.
12520 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12521 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12522 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12523 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12524 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12525 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12526 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12527 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12528 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12529 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12530 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12531 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12532 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12533 * mt-tdep.c (mt_gdbarch_init): Likewise.
12534 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12535 * nios2-tdep.c (nios2_print_insn): Remove.
12536 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12537 * rx-tdep.c (rx_gdbarch_init): Likewise.
12538 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12539 * score-tdep.c (score_print_insn): Remove.
12540 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12541 * sh-tdep.c (sh_gdbarch_init): Likewise.
12542 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12543 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12544 * tic6x-tdep.c (tic6x_print_insn): Remove.
12545 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12546 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12547 * v850-tdep.c (v850_gdbarch_init): Likewise.
12548 * vax-tdep.c (vax_gdbarch_init): Likewise.
12549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12550 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12551
f7241d4f
JB
125522017-05-23 John Baldwin <jhb@FreeBSD.org>
12553
12554 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12555 (MIPS_FP0_REGNUM): Remove.
12556 (MIPS_FSR_REGNUM): Remove.
12557 (mips_fbsd_supply_fpregs): Use mips_regnum.
12558 (mips_fbsd_supply_gregs): Likewise.
12559 (mips_fbsd_collect_fpregs): Likewise.
12560 (mips_fbsd_collect_gregs): Likewise.
12561
d489d81d
JB
125622017-05-23 John Baldwin <jhb@FreeBSD.org>
12563
12564 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12565 (getpfpregs_supplies): New function.
12566 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12567 getfpregs_supplies.
12568 (mips_fbsd_store_inferior_registers): Likewise.
12569
e11b3cdc
PA
125702017-05-22 Pedro Alves <palves@redhat.com>
12571
12572 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12573 maintainer.
12574
0f068fb5
AH
125752017-05-22 Alan Hayward <alan.hayward@arm.com>
12576
12577 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12578 (store_register): Likewise.
12579 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12580 (get_decimal_float_return_value): Likewise.
12581 (do_ppc_sysv_return_value): Likewise.
12582 (ppc64_sysv_abi_push_integer): Likewise.
12583 (ppc64_sysv_abi_push_freg): Likewise.
12584 (ppc64_sysv_abi_return_value_base): Likewise.
12585 (ppc64_sysv_abi_return_value): Likewise.
12586 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12587 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12588 * rs6000-nat.c: Likewise.
12589 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12590 (rs6000_value_to_register): Likewise.
12591 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12592
e6cf65f2
TT
125932017-05-21 Tom Tromey <tom@tromey.com>
12594
12595 PR rust/21466:
12596 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12597 arrays as "[T]", not "[T; ]".
12598
43cc5389
TT
125992017-05-19 Tom Tromey <tom@tromey.com>
12600
12601 PR rust/21484:
12602 * rust-lang.c (exp_descriptor_rust): New function.
12603 (rust_language_defn): Use it.
12604 * p-lang.c (pascal_language_defn): Update.
12605 * opencl-lang.c (opencl_language_defn): Update.
12606 * objc-lang.c (objc_language_defn): Update.
12607 * m2-lang.c (m2_language_defn): Update.
12608 * language.h (struct language_defn)
12609 <la_watch_location_expression>: New member.
12610 * language.c (unknown_language_defn, auto_language_defn)
12611 (local_language_defn): Update.
12612 * go-lang.c (go_language_defn): Update.
12613 * f-lang.c (f_language_defn): Update.
12614 * d-lang.c (d_language_defn): Update.
12615 * c-lang.h (c_watch_location_expression): Declare.
12616 * c-lang.c (c_watch_location_expression): New function.
12617 (c_language_defn, cplus_language_defn, asm_language_defn)
12618 (minimal_language_defn): Use it.
12619 * breakpoint.c (watch_command_1): Call
12620 la_watch_location_expression.
12621 * ada-lang.c (ada_language_defn): Update.
12622
7a6e7fcc
RO
126232017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12624
6e7e1744
RO
12625 PR tui/21482
12626 * gdb_curses.h (NOMACROS): Define.
12627 (NCURSES_NOMACROS): Define.
12628
126292017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12630
12631 PR tui/21482
7a6e7fcc
RO
12632 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12633 arg to char *.
12634 * tui/tui-wingeneral.c (box_win): Likewise.
12635 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12636 (tui_show_source_line): Likewise.
12637 (tui_show_exec_info_content): Likewise.
12638
1933fd8e
VM
126392017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12640
12641 * sparc-tdep.c (sparc_structure_return_p)
12642 (sparc_arg_on_registers_p): New functions.
12643 (sparc32_store_arguments): Use them.
12644 * sparc64-tdep.c (sparc64_16_byte_align_p)
12645 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12646 Handle TYPE_CODE_ARRAY.
12647
21873064
YQ
126482017-05-17 Yao Qi <yao.qi@linaro.org>
12649
12650 * cli/cli-decode.c (add_alias_cmd): New function.
12651 * command.h (add_alias_cmd): Declare.
12652 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12653 instead call add_alias_cmd.
12654
2b351b19
PA
126552017-05-17 Pedro Alves <palves@redhat.com>
12656
12657 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12658 (nat_makefile_frag): ... this. All references updated.
12659 * configure.ac: Likewise.
12660 * configure.nat: Likewise. Enhance comments.
12661 * configure: Regenerate.
12662
5f2ad7a3
RO
126632017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12664
12665 * procfs.c (procfs_create_inferior): Change prototype to match
12666 definition.
12667
adf3dde5
EZ
126682017-05-13 Eli Zaretskii <eliz@gnu.org>
12669
12670 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12671 C++ compiler warning.
12672
6830f270
TT
126732017-05-12 Tom Tromey <tom@tromey.com>
12674
12675 PR rust/21483:
12676 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12677 recurse, just call value_struct_elt directly.
12678
68f2f2e3
TT
126792017-05-12 Tom Tromey <tom@tromey.com>
12680
12681 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12682 OP_RUST_ARRAY>: Fix.
12683
256afbc2
TT
126842017-05-12 Tom Tromey <tom@tromey.com>
12685
12686 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12687
94bb8dfe
YQ
126882017-05-09 Yao Qi <yao.qi@linaro.org>
12689
12690 * regcache.c: Include <forward_list>.
12691 (struct regcache_list): Remove.
12692 (current_regcache): Update.
12693 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12694 (regcache_thread_ptid_changed): Likewise.
12695 (registers_changed_ptid): Likewise.
12696 (current_regcache_size): Likewise.
12697
8248946c
YQ
126982017-05-09 Yao Qi <yao.qi@linaro.org>
12699
12700 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12701 (current_regcache_size): New function.
12702 (current_regcache_test): New function.
12703 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12704
313c5961
AH
127052017-05-08 Alan Hayward <alan.hayward@arm.com>
12706
12707 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12708 (print_gp_register_row): Use get_frame_register_value.
12709
27bfc1d1
AH
127102017-05-08 Alan Hayward <alan.hayward@arm.com>
12711
12712 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12713 (mips_supply_fpregset): Likewise.
12714 (mips64_supply_gregset): Likewise.
12715
146e6c5c
AH
127162017-05-08 Alan Hayward <alan.hayward@arm.com>
12717
12718 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12719 regcache->raw_supply_zeroed.
12720
e50f25ec
SDJ
127212017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12722
12723 * configure.nat: Rearrange 'case' statements to match
12724 host before cpu.
12725
21ea5acd
SDJ
127262017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12727
12728 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12729 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12730 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12731 "@nat_extra_makefile_frag@".
12732 (Makefile): Remove dependency on "@frags@".
12733 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12734 (data-directory/Makefile): Likewise.
12735 * config/aarch64/linux.mh: Deleted; moved contents to
12736 "gdb/configure.nat".
12737 * config/alpha/alpha-linux.mh: Likewise.
12738 * config/alpha/nbsd.mh: Likewise.
12739 * config/arm/linux.mh: Likewise.
12740 * config/arm/nbsdelf.mh: Likewise.
12741 * config/i386/cygwin.mh: Likewise.
12742 * config/i386/cygwin64.mh: Likewise.
12743 * config/i386/darwin.mh: Likewise.
12744 * config/i386/fbsd.mh: Likewise.
12745 * config/i386/fbsd64.mh: Likewise.
12746 * config/i386/go32.mh: Likewise.
12747 * config/i386/i386gnu.mh: Likewise.
12748 * config/i386/i386sol2.mh: Likewise.
12749 * config/i386/linux.mh: Likewise.
12750 * config/i386/linux64.mh: Likewise.
12751 * config/i386/mingw.mh: Likewise.
12752 * config/i386/mingw64.mh: Likewise.
12753 * config/i386/nbsd64.mh: Likewise.
12754 * config/i386/nbsdelf.mh: Likewise.
12755 * config/i386/nto.mh: Likewise.
12756 * config/i386/obsd.mh: Likewise.
12757 * config/i386/obsd64.mh: Likewise.
12758 * config/i386/sol2-64.mh: Likewise.
12759 * config/ia64/linux.mh: Likewise.
12760 * config/m32r/linux.mh: Likewise.
12761 * config/m68k/linux.mh: Likewise.
12762 * config/m68k/nbsdelf.mh: Likewise.
12763 * config/m68k/obsd.mh: Likewise.
12764 * config/m88k/obsd.mh: Likewise.
12765 * config/mips/fbsd.mh: Likewise.
12766 * config/mips/linux.mh: Likewise.
12767 * config/mips/nbsd.mh: Likewise.
12768 * config/mips/obsd64.mh: Likewise.
12769 * config/pa/linux.mh: Likewise.
12770 * config/pa/nbsd.mh: Likewise.
12771 * config/pa/obsd.mh: Likewise.
12772 * config/powerpc/aix.mh: Likewise.
12773 * config/powerpc/fbsd.mh: Likewise.
12774 * config/powerpc/linux.mh: Likewise.
12775 * config/powerpc/nbsd.mh: Likewise.
12776 * config/powerpc/obsd.mh: Likewise.
12777 * config/powerpc/ppc64-linux.mh: Likewise.
12778 * config/powerpc/spu-linux.mh: Likewise.
12779 * config/s390/linux.mh: Likewise.
12780 * config/sh/nbsd.mh: Likewise.
12781 * config/sparc/fbsd.mh: Likewise.
12782 * config/sparc/linux.mh: Likewise.
12783 * config/sparc/linux64.mh: Likewise.
12784 * config/sparc/nbsd64.mh: Likewise.
12785 * config/sparc/nbsdelf.mh: Likewise.
12786 * config/sparc/obsd64.mh: Likewise.
12787 * config/sparc/sol2.mh: Likewise.
12788 * config/tilegx/linux.mh: Likewise.
12789 * config/vax/nbsdelf.mh: Likewise.
12790 * config/vax/obsd.mh: Likewise.
12791 * config/xtensa/linux.mh: Likewise.
12792 * config/i386/i386gnu.mn: New file, with excerpts from
12793 "config/i386/i386gnu.mh".
12794 * configure: Regenerate.
12795 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12796 *.mh files under "gdb/config".
12797 * configure.nat: New file, with contents from the
12798 "gdb/config/*/*.mh" files.
12799
7ed1acaf
TW
128002017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12801
12802 * btrace.c (btrace_clear): Free insn vector.
12803
e13cb306
PA
128042017-05-05 Pedro Alves <palves@redhat.com>
12805
12806 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12807 * configure: Regenerate.
12808
5ed8105e
PA
128092017-05-04 Pedro Alves <palves@redhat.com>
12810
12811 * Makefile.in (SFILES): Add progspace-and-thread.c.
12812 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12813 (COMMON_OBS): Add progspace-and-thread.o.
12814 * breakpoint.c: Include "progspace-and-thread.h".
12815 (update_inserted_breakpoint_locations)
12816 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12817 Use scoped_restore_current_pspace_and_thread.
12818 (create_std_terminate_master_breakpoint): Use
12819 scoped_restore_current_program_space.
12820 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12821 (print_breakpoint_location): Use
12822 scoped_restore_current_program_space.
12823 (bp_loc_is_permanent): Use
12824 scoped_restore_current_pspace_and_thread.
12825 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12826 (download_tracepoint_locations): Use
12827 scoped_restore_current_pspace_and_thread.
12828 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12829 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12830 (enum step_over_calls_kind): Moved from inferior.h.
12831 (class scoped_restore_current_thread): New class.
12832 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12833 declaration.
12834 (scoped_restore_current_thread): New class.
12835 * infcmd.c: Include "common/gdb_optional.h".
12836 (continue_1, proceed_after_attach): Use
12837 scoped_restore_current_thread.
12838 (notice_new_inferior): Use scoped_restore_current_thread.
12839 * inferior.c: Include "progspace-and-thread.h".
12840 (restore_inferior, save_current_inferior): Delete.
12841 (add_inferior_command, clone_inferior_command): Use
12842 scoped_restore_current_pspace_and_thread.
12843 * inferior.h (scoped_restore_current_inferior): New class.
12844 * infrun.c: Include "progspace-and-thread.h" and
12845 "common/gdb_optional.h".
12846 (follow_fork_inferior): Use
12847 scoped_restore_current_pspace_and_thread.
12848 (scoped_restore_exited_inferior): New class.
12849 (handle_vfork_child_exec_or_exit): Use
12850 scoped_restore_exited_inferior,
12851 scoped_restore_current_pspace_and_thread,
12852 scoped_restore_current_thread and scoped_restore.
12853 (fetch_inferior_event): Use scoped_restore_current_thread.
12854 * linespec.c (decode_line_full, decode_line_1): Use
12855 scoped_restore_current_program_space.
12856 * mi/mi-main.c: Include "progspace-and-thread.h".
12857 (exec_continue): Use scoped_restore_current_thread.
12858 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12859 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12860 * proc-service.c (ps_pglobal_lookup): Use
12861 scoped_restore_current_program_space.
12862 * progspace-and-thread.c: New file.
12863 * progspace-and-thread.h: New file.
12864 * progspace.c (release_program_space, clone_program_space): Use
12865 scoped_restore_current_program_space.
12866 (restore_program_space, save_current_program_space)
12867 (save_current_space_and_thread): Delete.
12868 (switch_to_program_space_and_thread): Moved to
12869 progspace-and-thread.c.
12870 * progspace.h (save_current_program_space)
12871 (save_current_space_and_thread): Delete declarations.
12872 (scoped_restore_current_program_space): New class.
12873 * remote.c (remote_btrace_maybe_reopen): Use
12874 scoped_restore_current_thread.
12875 * symtab.c: Include "progspace-and-thread.h".
12876 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12877 * thread.c (print_thread_info_1): Use
12878 scoped_restore_current_thread.
12879 (struct current_thread_cleanup): Delete.
12880 (do_restore_current_thread_cleanup)
12881 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12882 (scoped_restore_current_thread::~scoped_restore_current_thread):
12883 ... this new dtor.
12884 (make_cleanup_restore_current_thread): Rename/convert to ...
12885 (scoped_restore_current_thread::scoped_restore_current_thread):
12886 ... this new ctor.
12887 (thread_apply_all_command): Use scoped_restore_current_thread.
12888 (thread_apply_command): Use scoped_restore_current_thread.
12889 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12890 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12891
f6223dbb
PA
128922017-05-04 Pedro Alves <palves@redhat.com>
12893
12894 * thread.c (make_cleanup_restore_current_thread): Move
12895 find_thread_ptid call before the is_stopped call. Assert that the
12896 thread is found. Replace is_stopped call by checking the thread's
12897 state directly. Remove unnecessary NULL-thread check.
12898
3c3ae77e
PA
128992017-05-04 Pedro Alves <palves@redhat.com>
12900
12901 * corelow.c (thread_section_name): New class.
12902 (get_core_register_section, get_core_siginfo): Use it.
12903
45eba0ab
AA
129042017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12905
12906 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12907 (get_core_register_section): Remove xfree of NULL pointer.
12908
f81fdd35
AH
129092017-05-03 Alan Hayward <alan.hayward@arm.com>
12910
12911 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12912 * regcache.c (regcache::raw_supply_zeroed): New function.
12913 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12914
35837774
SM
129152017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12916
12917 * gdbarch.sh: Remove commented out definition of
12918 TARGET_CHAR_BIT.
12919 * gdbarch.h: Re-generate.
12920
c94fee56
SDJ
129212017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12922
12923 * configure: Regenerate.
12924
d17f7b36
SM
129252017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12926
12927 * solib-target.c (solib_target_relocate_section_addresses):
12928 Remove num_section_bases, num_bases, segment_bases variables.
12929
b560ebd6
SM
129302017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12931
12932 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12933
f2f46dfc
SM
129342017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12935
12936 * solib-target.c: Include <vector>
12937 (struct lm_info_target) <~lm_info_target>: Remove.
12938 <segment_bases, section_bases>: Change type to
12939 std::vector<CORE_ADDR>.
12940 (library_list_start_segment, library_list_start_section,
12941 library_list_end_library,
12942 solib_target_relocate_section_addresses): Adjust.
12943
a0ff9e1a
SM
129442017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12945
12946 * gdbarch.sh (software_single_step): Change return type to
12947 std::vector<CORE_ADDR>.
12948 * gdbarch.c, gdbarch.h: Re-generate.
12949 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12950 Adjust.
12951 (arm_deal_with_atomic_sequence_raw): Adjust.
12952 (thumb_get_next_pcs_raw): Adjust.
12953 (arm_get_next_pcs_raw): Adjust.
12954 (arm_get_next_pcs): Adjust.
12955 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12956 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12957 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12958 (alpha_software_single_step): Adjust.
12959 * alpha-tdep.h (alpha_software_single_step): Adjust.
12960 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12961 * arm-tdep.c (arm_software_single_step): Adjust.
12962 (arm_breakpoint_kind_from_current_state): Adjust.
12963 * arm-tdep.h (arm_software_single_step): Adjust.
12964 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12965 * cris-tdep.c (cris_software_single_step): Adjust.
12966 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12967 (micromips_deal_with_atomic_sequence): Adjust.
12968 (deal_with_atomic_sequence): Adjust.
12969 (mips_software_single_step): Adjust.
12970 * mips-tdep.h (mips_software_single_step): Adjust.
12971 * moxie-tdep.c (moxie_software_single_step): Adjust.
12972 * nios2-tdep.c (nios2_software_single_step): Adjust.
12973 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12974 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12975 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12976 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12977 * sparc-tdep.c (sparc_software_single_step): Adjust.
12978 * spu-tdep.c (spu_software_single_step): Adjust.
12979 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12980
ea480a30
SM
129812017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12982
12983 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12984 * gdbarch.h: Re-generate.
12985
d050f7d7
TW
129862017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12987
12988 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12989 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12990 * python/py-instruction.c, python/py-instruction.h: New file.
12991 * python/py-record.c: Add py-instruction.h include.
12992 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12993 gdb.RecordInstruction.
12994 * python/python-internal.h: Add gdbpy_initialize_instruction
12995 declaration.
12996 * python/python.c (do_start_initialization): Add
12997 gdbpy_initialize_instruction.
12998
14f819c8
TW
129992017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13000
13001 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13002 Remove.
13003 (btrace_func_from_recpy_func): New function.
13004 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13005 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13006 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13007 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13008 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13009 Also, use new helper functions.
13010 (btpy_list_item): Use new helper functions.
13011 (recpy_bt_function_call_history): Use new type name.
13012 (btpy_call_getset): Remove.
13013 (gdbpy_initialize_btrace): Remove code to initialize
13014 gdb.BtraceFunctionCall.
13015 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13016 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13017 recpy_bt_func_prev, recpy_bt_func_next): New export.
13018 * python/py-record.c (recpy_func_type): New static object.
13019 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13020 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13021 recpy_func_next): New function.
13022 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13023 (recpy_func_getset): New static object.
13024 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13025 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13026
0ed5da75
TW
130272017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13028
13029 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13030 (btpy_object, btpy_insn_type, btpy_new): Remove.
13031 (btpy_list_object): Use gdb.RecordInstruction type instead of
13032 gdb.BtraceInstruction type.
13033 (btrace_insn_from_recpy_insn): New function.
13034 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13035 btpy_new.
13036 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13037 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13038 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13039 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13040 instead of btpy_object.
13041 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13042 btpy_insn_data, btpy_insn_decode): Rename to ...
13043 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13044 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13045 recpy_bt_insn_decode): This. Also, use new helper functions.
13046 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13047 recpy_insn_type.
13048 (btpy_insn_getset): Remove.
13049 (gdbpy_initialize_btrace): Remove code to initialize
13050 gdb.BtraceInstruction. Use recpy_element_object.
13051 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13052 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13053 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13054 * python/py-record.c (recpy_insn_type): New static object.
13055 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13056 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13057 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13058 New function.
13059 (recpy_insn_getset): New static object.
13060 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13061 * python/py-record.h (recpy_element_object): New typedef.
13062 (recpy_insn_type, recpy_insn_new): New export.
13063
913aeadd
TW
130642017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13065
13066 * py-record-btrace.c (btpy_insn_new): Removed.
13067 (btpy_insn_or_gap_new): New function.
13068 (btpy_insn_error): Removed.
13069 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13070 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13071 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13072 btpy_insn_or_gap_new instead of btpy_insn_new.
13073 (btpy_insn_getset): Remove btpy_insn_error.
13074 * py-record.c (recpy_gap_type): New static object.
13075 (recpy_gap_object): New typedef.
13076 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13077 recpy_gap_reason_string): New function.
13078 (recpy_gap_getset): New static object.
13079 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13080 * py-record.h (recpy_gap_new): New export.
13081
a3be24ad
TW
130822017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13083
13084 * python/py-record.c (recpy_ptid): Remove.
13085 (recpy_record_getset): Remove recpy_ptid.
13086
ae20e79a
TW
130872017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13088
13089 * btrace.c (btrace_fetch): Set inferior_ptid.
13090 * python/py-record-btrace.c: Add "py-record.h" include.
13091 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13092 recpy_bt_end, recpy_bt_instruction_history,
13093 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13094 in gdb.Record object instead of current ptid.
13095 * python/py-record.c: Include new "py-record.h" file.
13096 (recpy_record_object): Moved to py-record.h.
13097 * python/py-record.h: New file.
13098
8d0050ea
TW
130992017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13100
13101 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13102 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13103 indentation.
13104
3f380b50
JB
131052017-05-01 Joel Brobecker <brobecker@adacore.com>
13106
13107 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13108 the past maintainers section.
13109
07495424
YQ
131102017-04-28 Yao Qi <yao.qi@linaro.org>
13111
13112 * infcmd.c (get_return_value): Use regcache ctor, and remove
13113 cleanup.
13114
deb1fa3e
YQ
131152017-04-28 Yao Qi <yao.qi@linaro.org>
13116 Pedro Alves <palves@redhat.com>
13117
13118 * regcache.c (regcache::regcache): New tag dispatch ctor.
13119 (do_cooked_read): Moved above.
13120 (regcache_dup): Use the tag dispatch ctor..
13121 * regcache.h (regcache): Declare ctor, delete copy ctor and
13122 assignment operator, remove friend regcache_dup.
13123
b421c83c
YQ
131242017-04-28 Yao Qi <yao.qi@linaro.org>
13125
13126 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13127 call method save instead of regcache_cpy.
13128 * regcache.h (struct regcache): Make regcache_dup a friend.
13129
ef79d9a3
YQ
131302017-04-28 Yao Qi <yao.qi@linaro.org>
13131
13132 * regcache.c (struct regcache): Move to regcache.h
13133 (regcache::arch): New method.
13134 (regcache_get_ptid): Update.
13135 (get_regcache_arch): Call arch method.
13136 (get_regcache_aspace): Call method aspace.
13137 (register_buffer): Change it to method.
13138 (regcache_save): Change it to regcache::save.
13139 (regcache_restore): Likewise.
13140 (regcache_cpy_no_passthrough): Remove the declaration.
13141 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13142 (regcache_cpy_no_passthrough): Change it to method
13143 cpy_no_passthrough.
13144 (regcache_register_status): Change it to method
13145 get_register_status.
13146 (regcache_invalidate): Change it to method invalidate.
13147 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13148 (regcache_raw_update): Change it to method raw_update.
13149 (regcache_raw_read): Likewise.
13150 (regcache_raw_read_signed): Likewise.
13151 (regcache_raw_read_unsigned): Likewise.
13152 (regcache_raw_write_signed): Likewise.
13153 (regcache_raw_write_unsigned): Likewise.
13154 (regcache_cooked_read): Likewise.
13155 (regcache_cooked_read_value): Likewise.
13156 (regcache_cooked_read_signed): Likewise.
13157 (regcache_cooked_read_unsigned): Likewise.
13158 (regcache_cooked_write_signed): Likewise.
13159 (regcache_cooked_write_unsigned): Likewise.
13160 (regcache_raw_set_cached_value): Likewise.
13161 (regcache_raw_write): Likewise.
13162 (regcache_cooked_write): Likewise.
13163 (regcache_xfer_part): Likewise.
13164 (regcache_raw_read_part): Likewise.
13165 (regcache_raw_write_part): Likewise.
13166 (regcache_cooked_read_part): Likewise.
13167 (regcache_cooked_write_part): Likewise.
13168 (regcache_raw_supply): Likewise.
13169 (regcache_raw_collect): Likewise.
13170 (regcache_transfer_regset): Likewise.
13171 (regcache_supply_regset): Likewise.
13172 (regcache_collect_regset): Likewise.
13173 (regcache_debug_print_register): Likewise.
13174 (enum regcache_dump_what): Move it to regcache.h.
13175 (regcache_dump): Change it to method dump.
13176 * regcache.h (enum regcache_dump_what): New.
13177 (class regcache): New.
13178 * target.c (target_fetch_registers): Call method
13179 debug_print_register.
13180 (target_store_registers): Likewise.
13181
f8fdb78e
SM
131822017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13183
13184 * windows-nat.c (struct lm_info_windows): Initialize field.
13185 (windows_make_so): Allocate lm_info_windows with new.
13186 (windows_free_so): Free lm_info_windows with delete.
13187
9ccbfd7b
SM
131882017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13189
13190 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13191 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13192 cleanup.
13193 (darwin_free_so): Free lm_info_darwin with delete.
13194
76e75227
SM
131952017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13196
13197 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13198 <l_addr_p>: Change type to bool.
13199 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13200 (svr4_free_so): Free lm_info_svr4 with delete.
13201 (svr4_copy_library_list): Replace memcpy with call to copy
13202 constructor.
13203 (library_list_start_library, svr4_default_sos): Allocate
13204 lm_info_svr4 with new.
13205
51046d9e
SM
132062017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13207
13208 * solib-target.c (struct lm_info_target): Add destructor,
13209 initialize fields.
13210 <name>: Change type to std::string.
13211 (library_list_start_library): Allocate lm_info_target with new.
13212 (solib_target_free_library_list): Free lm_info_target with
13213 delete.
13214 (solib_target_current_sos): Adapt to std::string.
13215 (solib_target_free_so): Free lm_info_target with delete.
13216
4023ae76
SM
132172017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13218
13219 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13220 fields.
13221 (frv_current_sos): Allocate lm_info_frv with new.
13222 (frv_relocate_main_executable): Free lm_info_frv with delete,
13223 allocate with new.
13224 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13225
af43057b
SM
132262017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13227
13228 * solib-frv.c (struct lm_info_frv): Fix indentation.
13229
b0911207
SM
132302017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13231
13232 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13233 map field.
13234 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13235 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13236 and allocate with new.
13237 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13238
6c401f72
SM
132392017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13240
13241 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13242 <filename, member_name>: Change type to std::string.
13243 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13244 (library_list_start_library): Allocate lm_info_aix with new.
13245 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13246 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13247 with copy constructor.
13248
d0e449a1
SM
132492017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13250
13251 * solist.h (struct lm_info): Remove.
13252 (struct lm_info_base): New class.
13253 (struct so_list) <lm_info>: Change type to lm_info_base *.
13254 * nto-tdep.c (struct lm_info): Remove.
13255 (lm_addr): Adjust.
13256 * solib-aix.c (struct lm_info): Rename to ...
13257 (struct lm_info_aix): ... this. Extend lm_info_base.
13258 (lm_info_p): Rename to ...
13259 (lm_info_aix_p): ... this, and adjust.
13260 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13261 solib_aix_parse_libraries, library_list_start_library,
13262 solib_aix_free_library_list, solib_aix_parse_libraries,
13263 solib_aix_get_library_list,
13264 solib_aix_relocate_section_addresses, solib_aix_free_so,
13265 solib_aix_get_section_offsets,
13266 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13267 Adjust.
13268 (struct solib_aix_inferior_data) <library_list>: Adjust.
13269 * solib-darwin.c (struct lm_info): Rename to ...
13270 (struct lm_info_darwin): ... this. Extend lm_info_base.
13271 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13272 * solib-dsbt.c (struct lm_info): Rename to ...
13273 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13274 (struct dsbt_info) <main_executable_lm_info): Adjust.
13275 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13276 dsbt_relocate_section_addresses): Adjust.
13277 * solib-frv.c (struct lm_info): Rename to ...
13278 (struct lm_info_frv): ... this. Extend lm_info_base.
13279 (main_executable_lm_info): Adjust.
13280 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13281 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13282 find_canonical_descriptor_in_load_object,
13283 frv_fdpic_find_canonical_descriptor): Adjust.
13284 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13285 to lm_info_svr4.
13286 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13287 svr4_clear_so, svr4_copy_library_list,
13288 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13289 svr4_current_sos, svr4_fetch_objfile_link_map,
13290 solist_update_incremental): Adjust.
13291 * solib-svr4.h (struct lm_info_svr4): Move here from
13292 solib-svr4.c.
13293 * solib-target.c (struct lm_info): Rename to ...
13294 (struct lm_info_target): ... this. Extend lm_info_base.
13295 (lm_info_p): Rename to ...
13296 (lm_info_target_p): ... this.
13297 (solib_target_parse_libraries, library_list_start_segment,
13298 library_list_start_section, library_list_start_library,
13299 library_list_end_library, solib_target_free_library_list,
13300 solib_target_current_sos, solib_target_free_so,
13301 solib_target_relocate_section_addresses): Adjust.
13302 * windows-nat.c (struct lm_info): Rename to ...
13303 (struct lm_info_windows): ... this. Extend lm_info_base.
13304 (windows_make_so, handle_load_dll, handle_unload_dll,
13305 windows_xfer_shared_libraries): Adjust.
13306
434a4023
SM
133072017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13308
13309 * solib-darwin.c (struct darwin_so_list): Remove.
13310 (darwin_current_sos): Allocate an so_list object instead of a
13311 darwin_so_list, separately allocate an lm_info object.
13312 (darwin_free_so): Free lm_info.
13313
428544e8
JB
133142017-04-28 John Baldwin <jhb@FreeBSD.org>
13315
13316 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13317 with fprintf_filtered.
13318
4621115f
YQ
133192017-04-28 Yao Qi <yao.qi@linaro.org>
13320
13321 * regcache.c (regcache::regcache): New function.
13322 (regcache::~regcache): New function.
13323 (regcache_xmalloc_1): Remove.
13324 (regcache_xmalloc): Call new regcache.
13325 (regcache_xfree): Call delete regcache.
13326 (get_thread_arch_aspace_regcache): Call new regcache.
13327
339053c2
YQ
133282017-04-28 Yao Qi <yao.qi@linaro.org>
13329
13330 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13331 lwp instead of ptid_get_lwp.
13332
7974a605
YQ
133332017-04-28 Yao Qi <yao.qi@linaro.org>
13334
13335 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13336 lwp_info instead of getting from inferior_ptid.
13337
e15c3eb4
KS
133382017-04-27 Keith Seitz <keiths@redhat.com>
13339
13340 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13341 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13342 (CV_CONVERSION_BADNESS): Define.
13343 (rank_one_type): Remove overly restrictive rvalue reference
13344 rank checks.
13345 Add cv-qualifier checks and subranks for type equality.
13346 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13347 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13348 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13349
72bc1d24
SM
133502017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13351
13352 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13353 count when creating the object.
13354
55bcecda
UW
133552017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13356 Ulrich Weigand <uweigand@de.ibm.com>
13357
13358 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13359 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13360 is used in AIX.
13361 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13362 (process_xcoff_symbol): Likewise.
13363 (scan_xcoff_symtab): Likewise.
13364
5c99fcf8
AH
133652017-04-26 Alan Hayward <alan.hayward@arm.com>
13366
13367 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13368 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13369 (ia64_access_reg): Use get_frame_register_unsigned.
13370 (ia64_access_rse_reg): Likewise.
13371 (ia64_libunwind_frame_prev_register): Likewise.
13372
b41c5a85
JW
133732017-04-26 Jiong Wang <jiong.wang@arm.com>
13374
13375 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13376 * gdbarch.c: Regenerated.
13377 * gdbarch.h: Regenerated.
13378 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13379 visibility external.
13380 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13381 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13382 (enum cfa_how_kind): Move to ...
13383 (struct dwarf2_frame_state_reg_info): Likewise.
13384 (struct dwarf2_frame_state): Likewise.
13385 * dwarf2-frame.h: ... here.
13386 (dwarf2_frame_state_alloc_regs): New declaration.
13387 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13388 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13389
c185f580
AH
133902017-04-26 Alan Hayward <alan.hayward@arm.com>
13391
13392 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13393 regcache_raw_read_unsigned.
13394 (xtensa_pseudo_register_write): Likewise.
13395
19c45594
AH
133962017-04-26 Alan Hayward <alan.hayward@arm.com>
13397
13398 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13399 (nds32_pseudo_register_write): Likewise.
13400
4658f12e
YQ
134012017-04-25 Yao Qi <yao.qi@linaro.org>
13402
13403 * regcache.c (struct regcache) <readonly_p>: Change its type
13404 to bool.
13405 (regcache_xmalloc_1): Update parameter type and callers update.
13406
d581dda8
YQ
134072017-04-25 Yao Qi <yao.qi@linaro.org>
13408
13409 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13410 set_gdbarch_wchar_bit.
13411 * arm-tdep.c (arm_gdbarch_init): Likewise.
13412
debed3db
PA
134132017-04-25 Pedro Alves <palves@redhat.com>
13414
13415 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13416 (BothAreRelocatable, memcopy, memmove): Don't define.
13417 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13418 macros.
13419
b0b92aeb
PA
134202017-04-25 Pedro Alves <palves@redhat.com>
13421
13422 * common/common-defs.h: Include "common/poison.h".
13423 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13424 and adjust.
13425 * common/poison.h: New file.
13426 * common/traits.h: Include <type_traits>.
13427 (Not, Or, Requires): New, moved from common/function-view.h.
13428
16c4d54a
PA
134292017-04-25 Pedro Alves <palves@redhat.com>
13430
13431 * breakpoint.h (struct breakpoint): In-class initialize all
13432 fields. Make boolean fields "bool".
13433 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13434 memset call and initializations no longer necessary.
13435
b5c36682
PA
134362017-04-25 Pedro Alves <palves@redhat.com>
13437
13438 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13439 reference.
13440 (pt_btrace_insn): New function.
13441 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13442
5625a286
PA
134432017-04-25 Pedro Alves <palves@redhat.com>
13444
13445 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13446 "base" field and inherit from "bp_location" instead. Add
13447 non-default ctor.
13448 (allocate_location_exception): Use new non-default ctor.
13449 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13450 (init_bp_location): Convert to ...
13451 (bp_location::bp_location): ... this new ctor, and remove memset
13452 call.
13453 (base_breakpoint_allocate_location): Use the new non-default ctor.
13454 * breakpoint.h (bp_location): Now a class. Declare default and
13455 non-default ctors. In-class initialize all members.
13456 (init_bp_location): Remove declaration.
13457
23bcc18f
PA
134582017-04-25 Pedro Alves <palves@redhat.com>
13459
13460 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13461 assignment operator.
13462
e1ba3053
YQ
134632017-04-24 Yao Qi <yao.qi@linaro.org>
13464
13465 * doublest.c (convert_doublest_to_floatformat): Call
13466 floatformat_totalsize_bytes.
13467
10f489e5
TT
134682017-04-22 Tom Tromey <tom@tromey.com>
13469
13470 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13471 ui_out_emit_list.
13472 * stack.c (print_frame): Use ui_out_emit_list.
13473 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13474 ui_out_emit_list.
13475 * mi/mi-main.c (print_one_inferior)
13476 (mi_cmd_data_list_register_names)
13477 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13478 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13479 ui_out_emit_list.
13480 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13481 (mi_output_solib_attribs): Use ui_out_emit_list,
13482 ui_out_emit_tuple.
13483 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13484 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13485 (mi_cmd_stack_list_args, list_args_or_locals): Use
13486 ui_out_emit_list.
13487 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13488 * breakpoint.c (print_solib_event, output_thread_groups): Use
13489 ui_out_emit_list.
13490
0092b74d
TT
134912017-04-22 Tom Tromey <tom@tromey.com>
13492
13493 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13494 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13495 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13496
a14a62dd
TT
134972017-04-22 Tom Tromey <tom@tromey.com>
13498
13499 * tracepoint.c (tvariables_info_1)
13500 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13501
46b9c129
TT
135022017-04-22 Tom Tromey <tom@tromey.com>
13503
13504 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13505 annotate_arg_emitter.
13506 * breakpoint.c (print_mention_watchpoint)
13507 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13508 * annotate.h (struct annotate_arg_emitter): New.
13509
2e783024
TT
135102017-04-22 Tom Tromey <tom@tromey.com>
13511
13512 * record-btrace.c (record_btrace_insn_history)
13513 (record_btrace_insn_history_range, record_btrace_call_history)
13514 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13515 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13516 ui_out_emit_tuple.
13517 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13518 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13519 * skip.c (skip_info): Use ui_out_emit_tuple.
13520 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13521 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13522 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13523 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13524 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13525 ui_out_emit_tuple.
13526 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13527 (output_register, mi_cmd_data_read_memory)
13528 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13529 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13530 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13531 Use ui_out_emit_tuple.
13532 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13533 ui_out_emit_tuple.
13534 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13535 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13536 * linux-thread-db.c (info_auto_load_libthread_db): Use
13537 ui_out_emit_tuple.
13538 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13539 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13540 * disasm.c (do_mixed_source_and_assembly_deprecated)
13541 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13542 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13543 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13544 * breakpoint.c (print_one_breakpoint_location)
13545 (print_one_breakpoint): Use ui_out_emit_tuple.
13546 * auto-load.c (print_script, info_auto_load_cmd): Use
13547 ui_out_emit_tuple.
13548 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13549
9be21bb4
SM
135502017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13551
13552 * thread.c (print_thread_info_1): Remove dead code.
13553
0d4c07af
JK
135542017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13555
13556 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13557 GDB_SELF_TEST.
13558 * arm-tdep.c (selftests::arm_record_test): Likewise.
13559
4daf993d
YQ
135602017-04-21 Yao Qi <yao.qi@linaro.org>
13561
13562 * regcache.c (regcache_restore): Remove argument 2. Replace
13563 argument 3 with regcache. Get register status from
13564 src->register_status and get register contents from
13565 register_buffer (src, regnum).
13566 (regcache_cpy): Update.
13567
a6c21d4a
PA
135682017-04-19 Pedro Alves <palves@redhat.com>
13569
13570 * gdbthread.h (thread): Add missing closing parenthesis in
13571 comment.
13572
3a3fd0fd
PA
135732017-04-19 Pedro Alves <palves@redhat.com>
13574
13575 * common/refcounted-object.h: New file.
13576 * gdbthread.h: Include "common/refcounted-object.h".
13577 (thread_info): Inherit from refcounted_object and add comments.
13578 (thread_info::incref, thread_info::decref)
13579 (thread_info::m_refcount): Delete.
13580 (thread_info::deletable): Use the refcounted_object::refcount()
13581 method.
13582 * inferior.c (current_inferior_): Add comment.
13583 (set_current_inferior): Increment/decrement refcounts.
13584 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13585 not-deletable instead of comparing with the current inferior.
13586 (initialize_inferiors): Increment the initial inferior's refcount.
13587 * inferior.h (struct inferior): Forward declare.
13588 Include "common/refcounted-object.h".
13589 (current_inferior, set_current_inferior): Move declaration to
13590 before struct inferior's definition, and fix comment.
13591 (inferior): Inherit from refcounted_object. Add comments.
13592 * thread.c (switch_to_thread_no_regs): Reference the thread's
13593 inferior pointer directly instead of doing a ptid lookup.
13594 (switch_to_no_thread): New function.
13595 (switch_to_thread(thread_info *)): New function, factored out
13596 from ...
13597 (switch_to_thread(ptid_t)): ... this.
13598 (restore_current_thread): Delete.
13599 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13600 fields, and add 'inf' field.
13601 (do_restore_current_thread_cleanup): Check whether old->inf is
13602 alive instead of looking up an inferior by ptid. Use
13603 switch_to_thread and switch_to_no_thread.
13604 (restore_current_thread_cleanup_dtor): Use old->inf directly
13605 instead of lookup up an inferior by id. Decref the inferior.
13606 Don't restore 'removable'.
13607 (make_cleanup_restore_current_thread): Same the inferior pointer
13608 in old, instead of the inferior number. Incref the inferior.
13609 Don't save/clear 'removable'.
13610
9bcb1f16
PA
136112017-04-19 Pedro Alves <palves@redhat.com>
13612
13613 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13614 unittests/scoped_restore-selftests.c.
13615 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13616 * common/scoped_restore.h (scoped_restore_base): Make "class".
13617 (scoped_restore_base::release): New public method.
13618 (scoped_restore_base::scoped_restore_base): New protected ctor.
13619 (scoped_restore_base::m_saved_var): New protected field.
13620 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13621 scoped_restore_base base class instead of m_saved_var directly.
13622 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13623 (scoped_restore_tmpl::scoped_restore_tmpl(const
13624 scoped_restore_tmpl<T>&)): Likewise.
13625 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13626 method.
13627 (scoped_restore_tmpl::saved_var): New method.
13628 (scoped_restore_tmpl::m_saved_var): Delete.
13629 * inferior.h (inferior::detaching): Now a bool.
13630 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13631 cleanup.
13632 * unittests/scoped_restore-selftests.c: New file.
13633
26fcd539
PA
136342017-04-19 Pedro Alves <palves@redhat.com>
13635
13636 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13637 Re-sort in alphabetic order.
13638
fdd243b0
PA
136392017-04-18 Pedro Alves <palves@redhat.com>
13640
13641 * xml-support.c (obstack_xml_printf): Delete.
13642 * xml-support.h (obstack_xml_printf): Delete.
13643
4895cde2
PA
136442017-04-18 Pedro Alves <palves@redhat.com>
13645
13646 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13647 vdebug, verror, body_text, start_element, end_element, name,
13648 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13649 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13650 is_xinclude>: Make private and add m_ prefix.
13651 (gdb_xml_parser::body_text): New method, based on ...
13652 (gdb_xml_body_text): ... this. Adjust.
13653 (gdb_xml_parser::vdebug): New method, based on ...
13654 (gdb_xml_debug): ... this. Adjust.
13655 (gdb_xml_parser::verror): New method, based on ...
13656 (gdb_xml_error): ... this. Adjust.
13657 (gdb_xml_parser::start_element): New method, based on ...
13658 (gdb_xml_start_element): ... this. Adjust.
13659 (gdb_xml_start_element_wrapper): Defer to
13660 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13661 (gdb_xml_parser::end_element): New method, based on ...
13662 (gdb_xml_end_element_wrapper): ... this. Adjust.
13663 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13664 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13665 (gdb_xml_parser::use_dtd): New method, based on ...
13666 (gdb_xml_use_dtd): ... this. Adjust.
13667 (gdb_xml_parser::parse): New method, based on ...
13668 (gdb_xml_parse): ... this. Adjust.
13669 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13670 (xinclude_start_include): Adjust to call the parser's name method.
13671 (xml_xinclude_default, xml_xinclude_start_doctype)
13672 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13673 method.
13674 (xml_process_xincludes): Adjust to call parser methods.
13675 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13676 declarations.
13677
bd8a901f
PA
136782017-04-18 Pedro Alves <palves@redhat.com>
13679
13680 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13681 gdb::optional<std::string>.
13682 * xml-support.c: Include <string>.
13683 (scope_level::scope_level(scope_level &&))
13684 (scope_level::~scope_level): Delete.
13685 (scope_level::body): Now a std::string.
13686 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13687 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13688 parameter.
13689 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13690 (xinclude_parsing_data::output): Now a std::string reference.
13691 (xinclude_start_include): Adjust.
13692 (xml_xinclude_default): Adjust.
13693 (xml_process_xincludes): Add 'output' parameter, and return bool.
13694 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13695 and return bool.
13696 * xml-tdesc.c: Include <unordered_map> and <string>.
13697 (tdesc_xml_cache): Delete.
13698 (tdesc_xml_cache_s): Delete.
13699 (xml_cache): Now an std::unordered_map.
13700 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13701 (target_fetch_description_xml): Change return type to
13702 gdb::optional<std::string>, and adjust.
13703 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13704 (target_fetch_description_xml): Change return type to
13705 gdb::optional<std::string>.
13706
d35d1958
PA
137072017-04-18 Pedro Alves <palves@redhat.com>
13708
13709 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13710 unittests/optional-selftests.c.
13711 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13712 * unittests/optional-selftests.c: New file.
13713 * unittests/optional/assignment/1.cc: New file.
13714 * unittests/optional/assignment/2.cc: New file.
13715 * unittests/optional/assignment/3.cc: New file.
13716 * unittests/optional/assignment/4.cc: New file.
13717 * unittests/optional/assignment/5.cc: New file.
13718 * unittests/optional/assignment/6.cc: New file.
13719 * unittests/optional/assignment/7.cc: New file.
13720 * unittests/optional/cons/copy.cc: New file.
13721 * unittests/optional/cons/default.cc: New file.
13722 * unittests/optional/cons/move.cc: New file.
13723 * unittests/optional/cons/value.cc: New file.
13724 * unittests/optional/in_place.cc: New file.
13725 * unittests/optional/observers/1.cc: New file.
13726 * unittests/optional/observers/2.cc: New file.
13727
22796e97
PA
137282017-04-18 Pedro Alves <palves@redhat.com>
13729
13730 * common/gdb_optional.h: Include common/traits.h.
13731 (in_place_t): New type.
13732 (in_place): New constexpr variable.
13733 (optional::optional): Remove member initialization of
13734 m_instantiated.
13735 (optional::optional(in_place_t...)): New constructor.
13736 (optional::~optional): Use reset.
13737 (optional::optional(const optional&)): New.
13738 (optional::optional(const optional&&)): New.
13739 (optional::optional(T &)): New.
13740 (optional::optional(T &&)): New.
13741 (operator::operator=(const optional &)): New.
13742 (operator::operator=(optional &&)): New.
13743 (operator::operator= (const T &))
13744 (operator::operator= (T &&))
13745 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13746 (operator::reset): New.
13747 (operator::m_instantiated):: Add in-class initializer.
13748 * common/traits.h: Include <type_traits>.
13749 (struct And): New types.
13750
a7fc9b61
PA
137512017-04-18 Pedro Alves <palves@redhat.com>
13752
13753 * xml-support.c: Include <vector>.
13754 (scope_level::scope_level(const gdb_xml_element *))
13755 (scope_level::scope_level(scope_level&&)): New.
13756 (scope_level::~scope_level): New.
13757 (scope_level_s): Delete.
13758 (gdb_xml_parser::scopes): Now a std::vector.
13759 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13760 Use std::vector.
13761 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13762 scope cleanup code.
13763 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13764 of the scopes member. Use std::vector::emplace_back.
13765
010151c9
PA
137662017-04-18 Pedro Alves <palves@redhat.com>
13767
13768 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13769 a bool.
13770 (gdb_xml_end_element): Change type of first parameter.
13771 (gdb_xml_cleanup): Rename to ...
13772 (gdb_xml_parser::~gdb_xml_parser): ... this.
13773 (gdb_xml_create_parser_and_cleanup): Delete with ...
13774 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13775 to this new ctor.
13776 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13777 using gdb_xml_create_parser_and_cleanup.
13778 (xinclude_parsing_data): Add ctor/dtor.
13779 (xml_xinclude_cleanup): Delete.
13780 (xml_process_xincludes): Create a local xinclude_parsing_data
13781 instead of heap-allocating one. Create a local gdb_xml_parser
13782 instead of heap-allocating one with
13783 gdb_xml_create_parser_and_cleanup.
13784
d56060f0
JB
137852017-04-18 John Baldwin <jhb@FreeBSD.org>
13786
13787 PR threads/20743
13788 * fbsd-nat.c (resume_one_thread_cb): Remove.
13789 (resume_all_threads_cb): Remove.
13790 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13791 iterate_over_threads.
13792
305d16a9
JB
137932017-04-17 Joel Brobecker <brobecker@adacore.com>
13794
13795 * NEWS: Create a new section for the next release branch.
13796 Rename the section of the current branch, now that it has
13797 been cut.
13798
8bb57231
JB
137992017-04-17 Joel Brobecker <brobecker@adacore.com>
13800
13801 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13802 * version.in: Bump version to 8.0.50.DATE-git.
13803
096c92dd
SDJ
138042017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13805
13806 PR gdb/21385
13807 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13808 independently of the host, and fix build breakage on Cygwin.
13809
0550c955
PA
138102017-04-13 Pedro Alves <palves@redhat.com>
13811
13812 * inferior.c (free_inferior): Convert to ...
13813 (inferior::~inferior): ... this dtor.
13814 (inferior::inferior): New ctor, factored out from ...
13815 (add_inferior_silent): ... here. Allocate the inferior with a new
13816 expression.
13817 (delete_inferior): Call delete instead of free_inferior.
13818 * inferior.h (gdb_environ, continuation): Forward declare.
13819 (inferior): Now a class. Add in-class initialization to all
13820 members. Make boolean fields bool, except 'detaching'.
13821 (inferior::inferior): New explicit ctor.
13822 (inferior::~inferior): New.
13823
e3d60dfc
PA
138242017-04-13 Pedro Alves <palves@redhat.com>
13825
13826 * inferior.c (init_inferior_list): Delete.
13827 * inferior.h (init_inferior_list): Delete.
13828
5fd69d0a
PA
138292017-04-13 Pedro Alves <palves@redhat.com>
13830
13831 PR threads/13217
13832 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13833 (top level): Call it twice, with different thread sets.
13834
c6609450
PA
138352017-04-13 Pedro Alves <palves@redhat.com>
13836
13837 * thread.c: Include <algorithm>.
13838 (thread_array_cleanup): Delete.
13839 (scoped_inc_dec_ref): New class.
13840 (live_threads_count): New function.
13841 (set_thread_refcount): Delete.
13842 (tp_array_compar_ascending): Now a bool.
13843 (tp_array_compar): Convert to a std::sort comparison function.
13844 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13845 and live_threads_count.
13846
2a00d7ce
PA
138472017-04-13 Pedro Alves <palves@redhat.com>
13848
13849 * infrun.c (follow_fork_inferior): Also switch the current
13850 inferior.
13851
441d7c93
PA
138522017-04-13 Pedro Alves <palves@redhat.com>
13853
13854 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13855 before calling create_internal_breakpoint.
13856
808480f6
PA
138572017-04-13 Pedro Alves <palves@redhat.com>
13858
13859 * fork-child.c (execv_argv): New class.
13860 (breakup_args): Refactored as ...
13861 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13862 Copy arguments to storage and replace separators with NULL
13863 terminators in place.
13864 (escape_bang_in_quoted_argument): Adjust to return bool.
13865 (execv_argv::execv_argv): New ctor.
13866 (execv_argv::init_for_shell): New method, factored out from
13867 fork_inferior. Don't strdup strings into the vector.
13868 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13869 Remove free_vector_argv call.
13870
ad3d022a
YQ
138712017-04-13 Yao Qi <yao.qi@linaro.org>
13872
13873 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13874 tdep->rx_psw_type.
13875
e6ddc3bf
YQ
138762017-04-13 Yao Qi <yao.qi@linaro.org>
13877
13878 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13879 * rx-tdep.c (rx_gdbarch_init): Likewise.
13880
bfb8cf90
PA
138812017-04-13 Pedro Alves <palves@redhat.com>
13882
13883 * breakpoint.h (struct breakpoint): Reindent.
13884
f5336ca5
PA
138852017-04-13 Pedro Alves <palves@redhat.com>
13886
13887 * breakpoint.c (bp_location): Rename to ...
13888 (bp_locations): ... this. All references updated.
13889 (bp_location_count): Rename to ...
13890 (bp_locations_count): ... this. All references updated.
13891 (bp_location_placed_address_before_address_max): Rename to ...
13892 (bp_locations_placed_address_before_address_max): ... this. All
13893 references updated.
13894 (bp_location_shadow_len_after_address_max): Rename to ...
13895 (bp_locations_shadow_len_after_address_max): ... this. All
13896 references updated.
13897 (bp_location_compare_addrs): Rename to ...
13898 (bp_locations_compare_addrs): ... this. All references updated.
13899 (bp_location_compare):Rename to ...
13900 (bp_locations_compare): ... this. All references updated.
13901 (bp_location_target_extensions_update): Rename to ...
13902 (bp_locations_target_extensions_update): ... this. All references
13903 updated.
13904
be628ab8
SDJ
139052017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13906
13907 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13908 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13909 'sgtty.h'.
13910 * common/gdb_termios.h: New file, with parts of "terminal.h".
13911 * inflow.c: Include "gdb_termios.h".
13912 * ser-unix.c: Include "gdb_termios.h".
13913 * terminal.h: Move terminal-related defines to
13914 "common/gdb_termios.h".
13915
8e9e35b1
TT
139162017-04-12 Tom Tromey <tom@tromey.com>
13917
13918 * probe.c (parse_probes): Update.
13919 * location.h (delete_event_location): Don't declare.
13920 (event_location_deleter::operator()): Update.
13921 * location.c (event_location_deleter::operator()): Rename from
13922 delete_event_location.
13923 * linespec.h (linespec_result) <location>: Change type to
13924 event_location_up.
13925 * linespec.c (canonicalize_linespec, event_location_to_sals)
13926 (decode_objc): Update.
13927 (linespec_result): Don't call delete_event_location.
13928 * breakpoint.c (create_breakpoints_sal)
13929 (bkpt_probe_create_sals_from_location)
13930 (strace_marker_create_sals_from_location): Update.
13931
16e802b9
TT
139322017-04-12 Tom Tromey <tom@tromey.com>
13933
13934 * linespec.h (struct linespec_result): Add constructor and
13935 destructor.
13936 (init_linespec_result, destroy_linespec_result)
13937 (make_cleanup_destroy_linespec_result): Don't declare.
13938 * linespec.c (init_linespec_result): Remove.
13939 (linespec_result::~linespec_result): Rename from
13940 destroy_linespec_result. Update.
13941 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13942 Remove.
13943 * breakpoint.c (create_breakpoint, break_range_command)
13944 (decode_location_default): Update.
13945 * ax-gdb.c (agent_command_1): Update.
13946
d28cd78a
TT
139472017-04-12 Tom Tromey <tom@tromey.com>
13948
13949 * remote.c (remote_download_tracepoint): Update.
13950 * python/py-breakpoint.c (bppy_get_location): Update.
13951 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13952 (gdbscm_breakpoint_location): Update.
13953 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13954 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13955 Change type to event_location_up.
13956 * breakpoint.c (create_overlay_event_breakpoint)
13957 (create_longjmp_master_breakpoint)
13958 (create_std_terminate_master_breakpoint)
13959 (create_exception_master_breakpoint)
13960 (breakpoint_event_location_empty_p, print_breakpoint_location)
13961 (print_one_breakpoint_location, create_thread_event_breakpoint)
13962 (init_breakpoint_sal, create_breakpoint)
13963 (print_recreate_ranged_breakpoint, break_range_command)
13964 (init_ada_exception_breakpoint, say_where): Update.
13965 (base_breakpoint_dtor): Don't call delete_event_location.
13966 (bkpt_print_recreate, tracepoint_print_recreate)
13967 (dprintf_print_recreate, update_static_tracepoint)
13968 (breakpoint_re_set_default): Update.
13969
711799d5
TT
139702017-04-12 Tom Tromey <tom@tromey.com>
13971
13972 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13973 type of "to_do". Update.
13974 (compute_stack_depth): Use std::vector.
13975
52d214d3
TT
139762017-04-12 Tom Tromey <tom@tromey.com>
13977
13978 * printcmd.c (find_instruction_backward): Use std::vector.
13979
4c404b8b
TT
139802017-04-12 Tom Tromey <tom@tromey.com>
13981
13982 * symfile.c (objfilep): Remove typedef.
13983 (reread_symbols): Use a std::vector.
13984
156d9eab
TT
139852017-04-12 Tom Tromey <tom@tromey.com>
13986
13987 * mi/mi-main.c (exec_direction_forward): Remove.
13988 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13989 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13990 scoped_restore.
13991 * guile/guile.c (guile_repl_command, guile_command)
13992 (gdbscm_execute_gdb_command): Use scoped_restore.
13993 * go-exp.y (go_parse): Use scoped_restore.
13994 * d-exp.y (d_parse): Use scoped_restore.
13995 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13996 * c-exp.y (c_parse): Use scoped_restore.
13997
4d89769a
TT
139982017-04-12 Tom Tromey <tom@tromey.com>
13999
14000 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14001 (mi_parse): Update return type.
14002 (mi_parse_free): Remove.
14003 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14004 (mi_parse::~mi_parse): Rename from mi_parse_free.
14005 (mi_parse_cleanup): Remove.
14006 (mi_parse): Return a unique_ptr. Use new.
14007 * mi/mi-main.c (mi_execute_command): Update.
14008
4b217cc7
TT
140092017-04-12 Tom Tromey <tom@tromey.com>
14010
14011 * location.c (explicit_location_lex_one): Return a
14012 unique_xmalloc_ptr.
14013 (string_to_explicit_location): Update. Remove cleanups.
14014
59d3651b
TT
140152017-04-12 Tom Tromey <tom@tromey.com>
14016
14017 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14018 (compare_value_and_voffset): Change type. Update.
14019 (compute_vtable_size): Change type of "offset_vec".
14020 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14021 (gnuv3_get_typeid): Remove extraneous declaration.
14022
b24b0d6c
TT
140232017-04-12 Tom Tromey <tom@tromey.com>
14024
14025 * charset.h (wchar_iterator): Fix comment.
14026
80a3b8c5
TT
140272017-04-12 Tom Tromey <tom@tromey.com>
14028
14029 * charset.c (iconv_wrapper): New class.
14030 (cleanup_iconv): Remove.
14031 (convert_between_encodings): Use it.
14032
c83dd867
TT
140332017-04-12 Tom Tromey <tom@tromey.com>
14034
14035 * symfile.h (increment_reading_symtab): Update type.
14036 * symfile.c (decrement_reading_symtab): Remove.
14037 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14038 * psymtab.c (psymtab_to_symtab): Update.
14039 * dwarf2read.c (dw2_instantiate_symtab): Update.
14040
0e8621a0
TT
140412017-04-12 Tom Tromey <tom@tromey.com>
14042
14043 * jit.c (struct jit_reader): Declare separately. Add constructor
14044 and destructor. Change type of "handle".
14045 (loaded_jit_reader): Define separately.
14046 (jit_reader_load): Update. New "new".
14047 (jit_reader_unload_command): Use "delete".
14048 * gdb-dlfcn.h (struct dlclose_deleter): New.
14049 (gdb_dlhandle_up): New typedef.
14050 (gdb_dlopen, gdb_dlsym): Update types.
14051 (gdb_dlclose): Remove.
14052 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14053 (gdb_dlsym): Change type of "handle".
14054 (make_cleanup_dlclose): Remove.
14055 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14056 * compile/compile-c-support.c (load_libcc): Update.
14057
67d89901
TT
140582017-04-12 Tom Tromey <tom@tromey.com>
14059
14060 * symtab.h (find_pcs_for_symtab_line): Change return type.
14061 * symtab.c (find_pcs_for_symtab_line): Change return type.
14062 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14063 type of "vec". Update.
14064 (ltpy_get_pcs_for_line): Update.
14065 * linespec.c (decode_digits_ordinary): Update.
14066
93921405
TT
140672017-04-12 Tom Tromey <tom@tromey.com>
14068
14069 * tracepoint.c (actions_command): Update.
14070 * python/python.c (python_command, python_interactive_command):
14071 Update.
14072 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14073 * guile/guile.c (guile_command): Update.
14074 * defs.h (read_command_lines, read_command_lines_1): Return
14075 command_line_up.
14076 (command_lines_deleter): New struct.
14077 (command_line_up): New typedef.
14078 * compile/compile.c (compile_code_command)
14079 (compile_print_command): Update.
14080 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14081 command_line_up.
14082 (make_cleanup_free_command_lines): Remove.
14083 * cli/cli-script.c (get_command_line, read_command_lines_1)
14084 (copy_command_lines): Return command_line_up.
14085 (while_command, if_command, read_command_lines, define_command)
14086 (document_command): Update.
14087 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14088 Remove.
14089 * breakpoint.h (breakpoint_set_commands): Change type of
14090 "commands".
14091 * breakpoint.c (breakpoint_set_commands): Change type of
14092 "commands". Update.
14093 (do_map_commands_command, update_dprintf_command_list)
14094 (create_tracepoint_from_upload): Update.
14095
ffc2605c
TT
140962017-04-12 Tom Tromey <tom@tromey.com>
14097
14098 * tracepoint.c (scope_info): Update.
14099 * spu-tdep.c (spu_catch_start): Update.
14100 * python/python.c (gdbpy_decode_line): Update.
14101 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14102 * python/py-breakpoint.c (bppy_init): Update.
14103 * probe.c (parse_probes): Update.
14104 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14105 * location.h (event_location_deleter): New struct.
14106 (event_location_up): New typedef.
14107 (new_linespec_location, new_address_location, new_probe_location)
14108 (new_explicit_location, copy_event_location)
14109 (string_to_event_location, string_to_event_location_basic)
14110 (string_to_explicit_location): Update return type.
14111 (make_cleanup_delete_event_location): Remove.
14112 * location.c (new_linespec_location, new_address_location)
14113 (new_probe_location, new_explicit_location, copy_event_location):
14114 Return event_location_up.
14115 (delete_event_location_cleanup)
14116 (make_cleanup_delete_event_location): Remove.
14117 (string_to_explicit_location, string_to_event_location_basic)
14118 (string_to_event_location): Return event_location_up.
14119 * linespec.c (canonicalize_linespec, event_location_to_sals)
14120 (decode_line_with_current_source)
14121 (decode_line_with_last_displayed, decode_objc): Update.
14122 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14123 * completer.c (location_completer): Update.
14124 * cli/cli-cmds.c (edit_command, list_command): Update.
14125 * breakpoint.c (create_overlay_event_breakpoint)
14126 (create_longjmp_master_breakpoint)
14127 (create_std_terminate_master_breakpoint)
14128 (create_exception_master_breakpoint)
14129 (create_thread_event_breakpoint): Update.
14130 (init_breakpoint_sal): Update. Remove some dead code.
14131 (create_breakpoint_sal): Change type of "location". Update.
14132 (create_breakpoints_sal, create_breakpoint, break_command_1)
14133 (dprintf_command, break_range_command, until_break_command)
14134 (init_ada_exception_breakpoint)
14135 (strace_marker_create_sals_from_location)
14136 (update_static_tracepoint, trace_command, ftrace_command)
14137 (strace_command, create_tracepoint_from_upload): Update.
14138 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14139 * ax-gdb.c (agent_command_1): Update.
14140
8f10c932
PA
141412017-04-12 Pedro Alves <palves@redhat.com>
14142
14143 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14144 * configure.tgt: Handle i[34567]86-*-go32* and
14145 i[34567]86-*-msdosdjgpp*.
14146 * i386-tdep.c (i386_svr4_reg_to_regnum):
14147 Make extern.
14148 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14149 i386-go32-tdep.c.
14150 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14151 * i386-go32-tdep.c: New file.
14152 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14153 declarations.
14154
0a31ccfb
SM
141552017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14156
14157 * aix-thread.c (pd_status2str): Change return type to const char *.
14158
e9bb3fbb
PA
141592017-04-12 Pedro Alves <palves@redhat.com>
14160
14161 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14162 calls to set_gdbarch_gnu_triplet_regexp.
14163
53375380
PA
141642017-04-12 Pedro Alves <palves@redhat.com>
14165
14166 PR gdb/21323
14167 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14168 New enum value.
14169 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14170 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14171 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14172 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14173 * gdbarch.h, gdbarch.c: Regenerate.
14174 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14175 gdbarch_wchar_bit and gdbarch_wchar_signed.
14176 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14177 * arm-tdep.c (arm_gdbarch_init): Likewise.
14178 * avr-tdep.c (avr_gdbarch_init): Likewise.
14179 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14180 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14181 * i386-tdep.c (i386_go32_init_abi): Likewise.
14182 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14183 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14184 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14185 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14186 * sh-tdep.c (sh_gdbarch_init): Likewise.
14187 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14188 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14189 * windows-tdep.c (windows_init_abi): Likewise.
14190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14191
53e710ac
PA
141922017-04-12 Pedro Alves <palves@redhat.com>
14193
14194 PR c++/21323
14195 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14196 cplus_primitive_type_char32_t>: New enum values.
14197 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14198 and cplus_primitive_type_char32_t.
14199 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14200 32, use the archtecture's built-in type for char16_t and char32_t,
14201 respectively. Otherwise, fallback to init_integer_type as before,
14202 but make the type unsigned, and issue a complaint.
14203 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14204
ab0538b8
AH
142052017-04-12 Alan Hayward <alan.hayward@arm.com>
14206
5e0e0422 14207 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
14208 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14209
5430098f
SDJ
142102017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14211
14212 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14213 'const char *'.
14214
7c5ded6a
SDJ
142152017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14216
14217 * common/common-utils.c (free_vector_argv): New function.
14218 * common/common-utils.h: Include <vector>.
14219 (free_vector_argv): New prototype.
14220 * darwin-nat.c (darwin_create_inferior): Rewrite function
14221 prototype in order to constify "exec_file" and accept a
14222 "std::string" for "allargs".
14223 * fork-child.c: Include <vector>.
14224 (breakup_args): Rewrite function, using C++.
14225 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14226 and accept "std::string" for "allargs". Update the code to
14227 calculate "argv" based on "allargs". Update calls to "exec_fun"
14228 and "execvp".
14229 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14230 order to constify "exec_file" and accept a "std::string" for
14231 "allargs".
14232 * go32-nat.c (go32_create_inferior): Likewise.
14233 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14234 * infcmd.c (run_command_1): Constify "exec_file". Use
14235 "std::string" for inferior arguments.
14236 * inferior.h (fork_inferior): Update prototype.
14237 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14238 prototype in order to constify "exec_file" and accept a
14239 "std::string" for "allargs".
14240 * nto-procfs.c (procfs_create_inferior): Likewise.
14241 * procfs.c (procfs_create_inferior): Likewise.
14242 * remote-sim.c (gdbsim_create_inferior): Likewise.
14243 * remote.c (extended_remote_run): Update code to accept
14244 "std::string" as argument.
14245 (extended_remote_create_inferior): Rewrite function prototype in
14246 order to constify "exec_file" and accept a "std::string" for
14247 "allargs".
14248 * rs6000-nat.c (super_create_inferior): Likewise.
14249 (rs6000_create_inferior): Likewise.
14250 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14251 * windows-nat.c (windows_create_inferior): Likewise.
14252
ae0eee42
PA
142532017-04-11 Pedro Alves <palves@redhat.com>
14254
14255 * thread.c: Fix whitespace throughout.
14256
a6acac06
PR
142572017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14258
14259 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14260
64403bd1
AH
142612017-04-11 Alan Hayward <alan.hayward@arm.com>
14262
14263 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14264
a5bef50f
SDJ
142652017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14266
14267 PR gdb/21364
14268 * osdata.c (info_osdata): Check if 'type' is an empty string
14269 instead of NULL.
14270
9295a5a9
PA
142712017-04-10 Pedro Alves <palves@redhat.com>
14272
14273 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14274 (ptid_to_global_thread_id, in_thread_list)
14275 (do_captured_list_thread_ids, set_resumed, set_running)
14276 (set_executing, set_stop_requested, finish_thread_state)
14277 (validate_registers_access, can_access_registers_ptid)
14278 (print_thread_info_1, switch_to_thread)
14279 (do_restore_current_thread_cleanup)
14280 (make_cleanup_restore_current_thread, thread_command)
14281 (thread_name_command): Use operator== instead of ptid_equal.
14282
996812e3
PA
142832017-04-10 Pedro Alves <palves@redhat.com>
14284
14285 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14286 (current_thread_cleanup_chain): Delete.
14287 (restore_current_thread_cleanup_dtor)
14288 (make_cleanup_restore_current_thread): Remove references to
14289 current_thread_cleanup_chain.
14290
845b344f
AH
142912017-04-10 Alan Hayward <alan.hayward@arm.com>
14292
14293 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14294 REG_UNKNOWN.
14295
803bdfe4
YQ
142962017-04-10 Yao Qi <yao.qi@linaro.org>
14297
14298 PR gdb/19942
14299 * gdbthread.h (thread_info::deletable): New method.
14300 (thread_info::incref): New method.
14301 (thread_info::decref): New method.
14302 (thread_info::refcount): Move it to private.
14303 * infrun.c (save_stop_context): Call inc_refcount.
14304 (release_stop_context_cleanup): Likewise.
14305 * thread.c (set_thread_exited): New function.
14306 (init_thread_list): Delete "tp" only it is deletable, otherwise
14307 call set_thread_exited.
14308 (delete_thread_1): Call set_thread_exited.
14309 (current_thread_cleanup) <inferior_pid>: Remove.
14310 <thread>: New field.
14311 (restore_current_thread_ptid_changed): Removed.
14312 (do_restore_current_thread_cleanup): Adjust.
14313 (restore_current_thread_cleanup_dtor): Don't call
14314 find_thread_ptid.
14315 (set_thread_refcount): Use dec_refcount.
14316 (make_cleanup_restore_current_thread): Adjust.
14317 (thread_apply_all_command): Call inc_refcount.
14318 (_initialize_thread): Don't call
14319 observer_attach_thread_ptid_changed.
14320
8c25b497
YQ
143212017-04-10 Yao Qi <yao.qi@linaro.org>
14322
14323 * thread.c (delete_thread_1): Hoist code on marking thread as
14324 exited.
14325
8473b447
SM
143262017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14327
14328 * windows-nat.c (windows_detach): Initialize ptid with
14329 minus_one_ptid.
14330
6670ec13
SM
143312017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14332
14333 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14334
ba2f91bb
AH
143352017-04-07 Alan Hayward <alan.hayward@arm.com>
14336
14337 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14338 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14339 (bfin_pseudo_register_write): Likewise
14340
436252de
SM
143412017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14342
14343 * common/ptid.h (struct ptid): Change to...
14344 (class ptid_t): ... this.
14345 <ptid_t>: New constructors.
14346 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14347 matches>: New methods.
14348 <make_null, make_minus_one>: New static methods.
14349 <pid>: Rename to...
14350 <m_pid>: ...this.
14351 <lwp>: Rename to...
14352 <m_lwp>: ...this.
14353 <tid>: Rename to...
14354 <m_tid>: ...this.
14355 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14356 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14357 as references, move comment to class ptid_t.
14358 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14359 ptid_t static methods.
14360 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14361 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14362 Take ptid arguments as references, implement using ptid_t methods.
14363 * unittests/ptid-selftests.c: New file.
14364 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14365 unittests/ptid-selftests.c.
14366 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14367
0dedf377
TP
143682017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14369
14370 * python/python.c (python_run_simple_file): Cast mode literal to
14371 non-const char pointer as expected by PyFile_FromString.
14372
4e9868d4
SM
143732017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14374
14375 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14376 minus_one_ptid and null_ptid.
14377
9bf2a700
PA
143782017-04-05 Pedro Alves <palves@redhat.com>
14379
14380 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14381 * configure: Regenerate.
14382
a121b7c1
PA
143832017-04-05 Pedro Alves <palves@redhat.com>
14384
14385 * ada-exp.y (yyerror): Constify.
14386 * ada-lang.c (bound_name, get_selections)
14387 (ada_variant_discrim_type)
14388 (ada_variant_discrim_name, ada_value_struct_elt)
14389 (ada_lookup_struct_elt_type, is_unchecked_variant)
14390 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14391 (catch_ada_exception_command_split)
14392 (catch_ada_assert_command_split, catch_assert_command)
14393 (ada_op_name): Constify.
14394 * ada-lang.h (ada_yyerror, get_selections)
14395 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14396 * arc-tdep.c (arc_print_frame_cache): Constify.
14397 * arm-tdep.c (arm_skip_stub): Constify.
14398 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14399 (gen_aggregate_elt_ref): Constify.
14400 * bcache.c (print_bcache_statistics): Constify.
14401 * bcache.h (print_bcache_statistics): Constify.
14402 * break-catch-throw.c (catch_exception_command_1):
14403 * breakpoint.c (struct ep_type_description::description):
14404 Constify.
14405 (add_solib_catchpoint): Constify.
14406 (catch_fork_command_1): Add cast.
14407 (add_catch_command): Constify.
14408 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14409 Constify.
14410 * bsd-uthread.c (bsd_uthread_state): Constify.
14411 * buildsym.c (patch_subfile_names): Constify.
14412 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14413 Constify.
14414 * c-exp.y (yyerror): Constify.
14415 (token::oper): Constify.
14416 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14417 * c-varobj.c (cplus_describe_child): Constify.
14418 * charset.c (find_charset_names): Add cast.
14419 (find_charset_names): Constify array and add const_cast.
14420 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14421 (edit_command): Constify.
14422 * cli/cli-decode.c (lookup_cmd): Constify.
14423 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14424 Constify.
14425 (struct dump_context): Constify.
14426 (add_dump_command, restore_command): Constify.
14427 * cli/cli-script.c (get_command_line): Constify.
14428 * cli/cli-script.h (get_command_line): Constify.
14429 * cli/cli-utils.c (check_for_argument): Constify.
14430 * cli/cli-utils.h (check_for_argument): Constify.
14431 * coff-pe-read.c (struct read_pe_section_data): Constify.
14432 * command.h (lookup_cmd): Constify.
14433 * common/print-utils.c (decimal2str): Constify.
14434 * completer.c (gdb_print_filename): Constify.
14435 * corefile.c (set_gnutarget): Constify.
14436 * cp-name-parser.y (yyerror): Constify.
14437 * cp-valprint.c (cp_print_class_member): Constify.
14438 * cris-tdep.c (cris_register_name, crisv32_register_name):
14439 Constify.
14440 * d-exp.y (yyerror): Constify.
14441 (struct token::oper): Constify.
14442 * d-lang.h (d_yyerror): Constify.
14443 * dbxread.c (struct header_file_location::name): Constify.
14444 (add_old_header_file, add_new_header_file, last_function_name)
14445 (dbx_next_symbol_text, add_bincl_to_list)
14446 (find_corresponding_bincl_psymtab, set_namestring)
14447 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14448 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14449 * defs.h (command_line_input, print_address_symbolic)
14450 (deprecated_readline_begin_hook): Constify.
14451 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14452 Constify.
14453 * event-top.c (handle_line_of_input): Constify and add cast.
14454 * exceptions.c (catch_errors): Constify.
14455 * exceptions.h (catch_errors): Constify.
14456 * expprint.c (print_subexp_standard, op_string, op_name)
14457 (op_name_standard, dump_raw_expression, dump_raw_expression):
14458 * expression.h (op_name, op_string, dump_raw_expression):
14459 Constify.
14460 * f-exp.y (yyerror): Constify.
14461 (struct token::oper): Constify.
14462 (struct f77_boolean_val::name): Constify.
14463 * f-lang.c (f_word_break_characters): Constify.
14464 * f-lang.h (f_yyerror): Constify.
14465 * fork-child.c (fork_inferior): Add cast.
14466 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14467 (new_variant): Constify.
14468 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14469 * gdbarch.c: Regenerate.
14470 * gdbcore.h (set_gnutarget): Constify.
14471 * go-exp.y (yyerror): Constify.
14472 (token::oper): Constify.
14473 * go-lang.h (go_yyerror): Constify.
14474 * go32-nat.c (go32_sysinfo): Constify.
14475 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14476 * guile/scm-cmd.c (cmdscm_function): Constify.
14477 * guile/scm-param.c (pascm_param_value): Constify.
14478 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14479 (h8300sx_register_name): Constify.
14480 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14481 Constify.
14482 * ia64-tdep.c (ia64_register_names): Constify.
14483 * infcmd.c (construct_inferior_arguments): Constify.
14484 (path_command, attach_post_wait): Constify.
14485 * language.c (show_range_command, show_case_command)
14486 (unk_lang_error): Constify.
14487 * language.h (language_defn::la_error)
14488 (language_defn::la_name_of_this): Constify.
14489 * linespec.c (decode_line_2): Constify.
14490 * linux-thread-db.c (thread_db_err_str): Constify.
14491 * lm32-tdep.c (lm32_register_name): Constify.
14492 * m2-exp.y (yyerror): Constify.
14493 * m2-lang.h (m2_yyerror): Constify.
14494 * m32r-tdep.c (m32r_register_names): Constify and make static.
14495 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14496 * m88k-tdep.c (m88k_register_name): Constify.
14497 * macroexp.c (appendmem): Constify.
14498 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14499 (upgrade_type, parse_external, parse_partial_symbols)
14500 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14501 (new_symbol): Constify.
14502 * memattr.c (mem_info_command): Constify.
14503 * mep-tdep.c (register_name_from_keyword): Constify.
14504 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14505 Constify.
14506 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14507 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14508 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14509 cast.
14510 (mi_execute_async_cli_command): Constify.
14511 * mips-tdep.c (mips_register_name): Constify.
14512 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14513 (am33_register_name, am33_2_register_name)
14514 * moxie-tdep.c (moxie_register_names): Constify.
14515 * nat/linux-osdata.c (osdata_type): Constify fields.
14516 * nto-tdep.c (nto_parse_redirection): Constify.
14517 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14518 (lookup_child_selector): Constify.
14519 (objc_methcall::name): Constify.
14520 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14521 (lookup_struct_typedef): Constify.
14522 * objfiles.c (pc_in_section): Constify.
14523 * objfiles.h (pc_in_section): Constify.
14524 * p-exp.y (struct token::oper): Constify.
14525 (yyerror): Constify.
14526 * p-lang.h (pascal_yyerror): Constify.
14527 * parser-defs.h (op_name_standard): Constify.
14528 (op_print::string): Constify.
14529 (exp_descriptor::op_name): Constify.
14530 * printcmd.c (print_address_symbolic): Constify.
14531 * psymtab.c (print_partial_symbols): Constify.
14532 * python/py-breakpoint.c (stop_func): Constify.
14533 (bppy_get_expression): Constify.
14534 * python/py-cmd.c (cmdpy_completer::name): Constify.
14535 (cmdpy_function): Constify.
14536 * python/py-event.c (evpy_add_attribute)
14537 (gdbpy_initialize_event_generic): Constify.
14538 * python/py-event.h (evpy_add_attribute)
14539 (gdbpy_initialize_event_generic): Constify.
14540 * python/py-evts.c (add_new_registry): Constify.
14541 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14542 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14543 * python/py-inferior.c (get_buffer): Add cast.
14544 * python/py-param.c (parm_constant::name): Constify.
14545 * python/py-unwind.c (fprint_frame_id): Constify.
14546 * python/python.c (gdbpy_parameter_value): Constify.
14547 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14548 * remote.c (memory_packet_config::name): Constify.
14549 (show_packet_config_cmd, remote_write_bytes)
14550 (remote_buffer_add_string):
14551 * reverse.c (exec_reverse_once): Constify.
14552 * rs6000-tdep.c (variant::name, variant::description): Constify.
14553 * rust-exp.y (rustyyerror): Constify.
14554 * rust-lang.c (rust_op_name): Constify.
14555 * rust-lang.h (rustyyerror): Constify.
14556 * serial.h (serial_ops::name): Constify.
14557 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14558 (sh_sh3e_register_name, sh_sh2e_register_name)
14559 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14560 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14561 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14562 (sh_sh4al_dsp_register_name): Constify.
14563 * sh64-tdep.c (sh64_register_name): Constify.
14564 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14565 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14566 * stabsread.c (patch_block_stabs, read_type_number)
14567 (ref_map::stabs, ref_add, process_reference)
14568 (symbol_reference_defined, define_symbol, define_symbol)
14569 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14570 (read_one_struct_field, read_struct_fields, read_baseclasses)
14571 (read_tilde_fields, read_struct_type, read_array_type)
14572 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14573 (read_huge_number, read_range_type, read_args, common_block_start)
14574 (find_name_end): Constify.
14575 * stabsread.h (common_block_start, define_symbol)
14576 (process_one_symbol, symbol_reference_defined, ref_add):
14577 * symfile.c (get_section_index, add_symbol_file_command):
14578 * symfile.h (get_section_index): Constify.
14579 * target-descriptions.c (tdesc_type::name): Constify.
14580 (tdesc_free_type): Add cast.
14581 * target.c (find_default_run_target):
14582 (add_deprecated_target_alias, find_default_run_target)
14583 (target_announce_detach): Constify.
14584 (do_option): Constify.
14585 * target.h (add_deprecated_target_alias): Constify.
14586 * thread.c (print_thread_info_1): Constify.
14587 * top.c (deprecated_readline_begin_hook, command_line_input):
14588 Constify.
14589 (init_main): Add casts.
14590 * top.h (handle_line_of_input): Constify.
14591 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14592 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14593 (tfind_command): Rename to ...
14594 (tfind_command_1): ... this and constify.
14595 (tfind_command): New function.
14596 (tfind_end_command, tfind_start_command): Adjust.
14597 (encode_source_string): Constify.
14598 * tracepoint.h (encode_source_string): Constify.
14599 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14600 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14601 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14602 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14603 * tui/tui-win.c (parse_scrolling_args): Constify.
14604 * tui/tui-windata.c (tui_erase_data_content): Constify.
14605 * tui/tui-windata.h (tui_erase_data_content): Constify.
14606 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14607 * tui/tui.c (tui_enable): Add cast.
14608 * utils.c (defaulted_query): Constify.
14609 (init_page_info): Add cast.
14610 (puts_debug, subset_compare): Constify.
14611 * utils.h (subset_compare): Constify.
14612 * varobj.c (varobj_format_string): Constify.
14613 * varobj.h (varobj_format_string): Constify.
14614 * vax-tdep.c (vax_register_name): Constify.
14615 * windows-nat.c (windows_detach): Constify.
14616 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14617 * xml-support.c (gdb_xml_end_element): Constify.
14618 * xml-tdesc.c (tdesc_start_reg): Constify.
14619 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14620 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14621 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14622
995816ba
PA
146232017-04-05 Pedro Alves <palves@redhat.com>
14624
14625 * proc-api.c (struct trans): Constify.
14626 (procfs_note): Constify.
14627 * proc-events.c (struct trans, syscall_table):
14628 * proc-flags.c (struct trans): Constify.
14629 * proc-utils.h (procfs_note): Constify.
14630 * proc-why.c (struct trans): Constify.
14631 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14632 (procfs_detach): Constify.
14633 * sol-thread.c (struct string_map): Constify.
14634 (td_err_string, td_state_string): Constify.
14635
3e83a920
PA
146362017-04-05 Pedro Alves <palves@redhat.com>
14637
14638 * proc-api.c (procfs_filename): Don't initialize
14639 procfs_filename.
14640 (prepare_to_trace): Assume procfs_filename is non-NULL.
14641 (_initialize_proc_api): Give procfs_filename a default value here.
14642
63160a43
PA
146432017-04-05 Pedro Alves <palves@redhat.com>
14644
14645 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14646 'cond_string' parameter.
14647 (extract_exception_regexp): Constify 'string' parameter.
14648 (catch_exception_command_1): Constify.
14649 * breakpoint.c (init_catchpoint)
14650 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14651 parameter.
14652 (ep_parse_optional_if_clause, catch_fork_command_1)
14653 (catch_exec_command_1): Constify.
14654 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14655 parameter.
14656 (ep_parse_optional_if_clause): Constify.
14657 * cli/cli-utils.c (remove_trailing_whitespace)
14658 (check_for_argument): Constify.
14659 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14660 non-const overload.
14661 (check_for_argument): Likewise.
14662
9b2eba3d
PA
146632017-04-05 Pedro Alves <palves@redhat.com>
14664
14665 * event-top.c (command_line_handler): Add cast to execute_command
14666 call.
14667 * record-btrace.c (cmd_record_btrace_bts_start)
14668 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14669 (cmd_record_btrace_start): Add cast to execute_command call.
14670 * record-full.c (record_full_goto_insn):
14671 * record.c (record_start, record_stop): Add cast to
14672 execute_command_to_string calls.
14673 (cmd_record_start): Add cast to execute_command calls.
14674
2adadf51
PA
146752017-04-05 Pedro Alves <palves@redhat.com>
14676
14677 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14678 static inline function.
14679 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14680 array and use gdb_PyArg_ParseTupleAndKeywords.
14681 * python/py-cmd.c (cmdpy_init): Likewise.
14682 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14683 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14684 (infpy_search_memory): Likewise.
14685 * python/py-objfile.c (objfpy_add_separate_debug_file)
14686 (gdbpy_lookup_objfile): Likewise.
14687 * python/py-symbol.c (gdbpy_lookup_symbol)
14688 (gdbpy_lookup_global_symbol): Likewise.
14689 * python/py-type.c (gdbpy_lookup_type): Likewise.
14690 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14691 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14692 Likewise.
14693
0d1f4ceb
PA
146942017-04-05 Pedro Alves <palves@redhat.com>
14695
14696 * python/python-internal.h (gdb_PyGetSetDef): New type.
14697 * python/py-block.c (block_object_getset)
14698 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14699 * python/py-event.c (event_object_getset)
14700 (finish_breakpoint_object_getset): Likewise.
14701 * python/py-inferior.c (inferior_object_getset): Likewise.
14702 * python/py-infthread.c (thread_object_getset): Likewise.
14703 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14704 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14705 * python/py-objfile.c (objfile_getset): Likewise.
14706 * python/py-progspace.c (pspace_getset): Likewise.
14707 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14708 Likewise.
14709 * python/py-record.c (recpy_record_getset): Likewise.
14710 * python/py-symbol.c (symbol_object_getset): Likewise.
14711 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14712 Likewise.
14713 * python/py-type.c (type_object_getset, field_object_getset):
14714 Likewise.
14715 * python/py-value.c (value_object_getset): Likewise.
14716
4d759979
PA
147172017-04-05 Pedro Alves <palves@redhat.com>
14718
14719 * python/python-internal.h (gdb_PyObject_CallMethod)
14720 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14721 New functions.
14722 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14723 (PySys_GetObject, PySys_SetPath): New macros.
14724
fdf9e36f
PA
147252017-04-05 Pedro Alves <palves@redhat.com>
14726
14727 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14728 info_osdata_command.
14729 * osdata.c (info_osdata_command): Rename to ...
14730 (info_osdata): ... this. Constify 'type' parameter, and remove
14731 the 'from_tty' parameter. Accept NULL TYPE.
14732 (info_osdata_command): New function.
14733 * osdata.h (info_osdata_command): Remove declaration.
14734 (info_osdata): New declaration.
14735
9f33b8b7
PA
147362017-04-05 Pedro Alves <palves@redhat.com>
14737
14738 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14739 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14740 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14741 parameter.
14742 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14743 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14744 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14745 parameter.
14746 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14747 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14748 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14749 (mi_cmd_file_list_exec_source_files)
14750 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14751 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14752 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14753 parameter.
14754 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14755 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14756 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14757 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14758 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14759 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14760 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14761 'command' parameter.
14762 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14763 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14764 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14765 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14766 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14767 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14768 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14769 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14770 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14771 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14772 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14773 parameter.
14774 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14775 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14776 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14777 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14778 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14779 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14780 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14781 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14782 (mi_cmd_data_list_changed_registers)
14783 (mi_cmd_data_write_register_values)
14784 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14785 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14786 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14787 (mi_cmd_list_features, mi_cmd_list_target_features)
14788 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14789 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14790 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14791 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14792 (mi_cmd_trace_frame_collected): Constify 'command'
14793 parameter.
14794 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14795 'command' parameter.
14796
67cb5b2d
PA
147972017-04-05 Pedro Alves <palves@redhat.com>
14798
14799 * ada-lang.c (ada_completer_word_break_characters): Now a const
14800 array.
14801 (ada_get_gdb_completer_word_break_characters): Constify.
14802 * completer.c (gdb_completer_command_word_break_characters)
14803 (gdb_completer_file_name_break_characters)
14804 (gdb_completer_quote_characters): Now const arrays.
14805 (get_gdb_completer_quote_characters): Constify.
14806 (set_rl_completer_word_break_characters): New function.
14807 (set_gdb_completion_word_break_characters)
14808 (complete_line_internal): Use it.
14809 * completer.h (get_gdb_completer_quote_characters): Constify.
14810 (set_rl_completer_word_break_characters): Declare.
14811 * f-lang.c (f_word_break_characters): Constify.
14812 * language.c (default_word_break_characters): Constify.
14813 * language.h (language_defn::la_word_break_characters): Constify.
14814 (default_word_break_characters): Constify.
14815 * top.c (init_main): Use set_rl_completer_word_break_characters.
14816
7a114964
PA
148172017-04-05 Pedro Alves <palves@redhat.com>
14818
14819 * aix-thread.c (aix_thread_pid_to_str)
14820 (aix_thread_extra_thread_info): Constify.
14821 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14822 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14823 (bsd_uthread_pid_to_str): Constify.
14824 * corelow.c (core_pid_to_str): Constify.
14825 * darwin-nat.c (darwin_pid_to_str): Constify.
14826 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14827 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14828 Constify.
14829 * gnu-nat.c (gnu_pid_to_str): Constify.
14830 * go32-nat.c (go32_pid_to_str): Constify.
14831 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14832 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14833 * inferior.c (inferior_pid_to_str): Constify.
14834 * linux-nat.c (linux_nat_pid_to_str): Constify.
14835 * linux-tdep.c (linux_core_pid_to_str): Constify.
14836 * linux-thread-db.c (thread_db_pid_to_str)
14837 (thread_db_extra_thread_info): Constify.
14838 * nto-tdep.c (nto_extra_thread_info): Constify.
14839 * nto-tdep.h (nto_extra_thread_info): Constify.
14840 * obsd-nat.c (obsd_pid_to_str): Constify.
14841 * procfs.c (procfs_pid_to_str): Constify.
14842 * ravenscar-thread.c (ravenscar_extra_thread_info)
14843 (ravenscar_pid_to_str): Constify.
14844 * remote-sim.c (gdbsim_pid_to_str): Constify.
14845 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14846 Constify.
14847 * sol-thread.c (solaris_pid_to_str): Constify.
14848 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14849 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14850 * target.c (default_pid_to_str, target_pid_to_str)
14851 (normal_pid_to_str, default_pid_to_str): Constify.
14852 * target.h (target_ops::to_pid_to_str)
14853 (target_ops::to_extra_thread_info): Constify.
14854 (target_pid_to_str, normal_pid_to_str): Constify.
14855 * windows-nat.c (windows_pid_to_str): Constify.
14856 * gdbarch.sh (core_pid_to_str): Constify.
14857 * target-delegates.c: Regenerate.
14858 * gdbarch.h, gdbarch.c: Regenerate.
14859
69bbf465
PA
148602017-04-05 Pedro Alves <palves@redhat.com>
14861
14862 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14863 the memory of the temporary warning_pre_print override.
14864 * utils.c (warning_pre_print): Constify.
14865 * utils.h (warning_pre_print): Constify.
14866
be47f9e8
PA
148672017-04-05 Pedro Alves <palves@redhat.com>
14868
14869 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14870 (shell_command): New function.
14871 (make_command): Use std::string.
14872 (init_cli_cmds): Register shell_command instead of shell_escape.
14873
bde6261a
PA
148742017-04-05 Pedro Alves <palves@redhat.com>
14875
14876 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14877 * tracepoint.c (default_collect): Don't initialize.
14878
b38ef47f
PA
148792017-04-05 Pedro Alves <palves@redhat.com>
14880
14881 * macroexp.c (macro_buffer::shared): Now a bool.
14882 (init_buffer): Update.
14883 (init_shared_buffer): Constify 'addr' parameter.
14884 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14885 casts.
14886
f995bbe8
PA
148872017-04-05 Pedro Alves <palves@redhat.com>
14888
14889 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14890 * disasm.c (set_disassembler_options): Constify local.
14891 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14892
4a596fe2
SDJ
148932017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14894
14895 PR gdb/21352
14896 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14897 option.
14898
2cad08ea
YQ
148992017-04-05 Yao Qi <yao.qi@linaro.org>
14900
14901 * frame.c (frame_unwind_register_unsigned): Call
14902 frame_unwind_register_value.
14903
55a98976
YQ
149042017-04-05 Yao Qi <yao.qi@linaro.org>
14905
14906 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14907 Use gdb_test_multiple, and don't match anchor.
14908
4ac40124
PA
149092017-04-05 Pedro Alves <palves@redhat.com>
14910
14911 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14912 (Write After Approval): Remove Simon Marchi.
14913
c053b654
PA
149142017-04-05 Pedro Alves <palves@redhat.com>
14915
14916 * common/gdb_optional.h (optional::optional): Make constexpr and
14917 initialize m_dummy.
14918
4c7bf4f9
JB
149192017-04-04 John Baldwin <jhb@FreeBSD.org>
14920
14921 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14922 (amd64fbsd_jmp_buf_reg_offset): Remove.
14923 (amd64fbsd_supply_uthread): Remove function.
14924 (amd64fbsd_collect_uthread): Remove function.
14925 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14926 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14927 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14928 (fbsd-nat.c): Update comment.
14929 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14930 (i386fbsd_jmp_buf_reg_offset): Remove.
14931 (i386fbsd_supply_uthread): Remove function.
14932 (i386fbsd_collect_uthread): Remove function.
14933 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14934
1e1a8bef
JB
149352017-04-04 John Baldwin <jhb@FreeBSD.org>
14936
14937 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14938 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14939 * NEWS: Mention that support for FreeBSD/alpha was removed.
14940 * alpha-fbsd-tdep.c: Delete file.
14941 * config/alpha/fbsd.mh: Delete file.
14942 * configure.host: Delete alpha*-*-freebsd* and
14943 alpha*-*-kfreebsd*-gnu.
14944 * configure.tgt: Delete alpha*-*-freebsd* and
14945 alpha*-*-kfreebsd*-gnu.
14946
49907934
JB
149472017-04-04 John Baldwin <jhb@FreeBSD.org>
14948
14949 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14950 amd64bsd_store_inferior_registers): Use ptid from regcache.
14951
6f77053d
PA
149522017-04-04 Pedro Alves <palves@redhat.com>
14953
14954 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14955 data fields, make them private and add "m_" prefixes.
14956 (lnp_state_machine::lnp_state_machine): New ctor.
14957 (record_line, check_line_address, handle_set_discriminator)
14958 (handle_set_address, handle_advance_pc, handle_special_opcode)
14959 (handle_advance_line, handle_set_file, handle_negate_stmt)
14960 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14961 (end_sequence, advance_line): New methods.
14962 (m_gdbarch, m_record_lines_p): New fields.
14963 (lnp_reader_state): Delete.
14964 (dwarf_record_line): Rename to ...
14965 (lnp_state_machine::record_line): ... adjust.
14966 (init_lnp_state_machine): Delete.
14967 (lnp_state_machine::lnp_state_machine): New.
14968 (check_line_address): Rename to ...
14969 (lnp_state_machine::check_line_address): This.
14970 (dwarf_decode_lines_1): Remove reference to "reader_state".
14971 Adjust lnp_state_machine having a non-default ctor. Use bool.
14972 State machine internal state manipulation moved to
14973 lnp_state_machine methods.
14974
9c541725
PA
149752017-04-04 Pedro Alves <palves@redhat.com>
14976
14977 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14978 unittests/offset-type-selftests.c.
14979 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14980 * common/offset-type.h: New file.
14981 * common/preprocessor.h: New file.
14982 * common/traits.h: New file.
14983 * common/valid-expr.h: New file.
14984 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14985 sect_offset and cu_offset strong typedefs throughout.
14986 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14987 typedefs throughout.
14988 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14989 sect_offset and cu_offset strong typedefs throughout.
14990 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14991 typedefs throughout.
14992 * gdbtypes.h: Include "common/offset-type.h".
14993 (cu_offset): Now an offset type (strong typedef) instead of a
14994 struct.
14995 (sect_offset): Likewise.
14996 (union call_site_parameter_u): Rename "param_offset" field to
14997 "param_cu_off".
14998 * unittests/offset-type-selftests.c: New file.
14999
ecfb656c
PA
150002017-04-04 Pedro Alves <palves@redhat.com>
15001
15002 * common/underlying.h: New file.
15003 * dwarf2read.c: Include "common/gdb_optional.h" and
15004 "common/underlying.h".
15005 (dir_index, file_name_index): New types.
15006 (file_entry): Use them.
15007 (file_entry::include): Use to_underlying.
15008 (line_header::add_file_name): Use dir_index.
15009 (read_formatted_entries): Use gdb::optional. Read form before
15010 writting to file_entry.
15011 (dwarf_decode_line_header): Use dir_index.
15012 (lnp_state_machine::current_file): Use to_underlying.
15013 (lnp_state_machine::file): Change type to file_name_index.
15014 (dwarf_record_line): Use to_underlying.
15015 (init_lnp_state_machine): Use file_name_index.
15016 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15017
d194f1fe
PA
150182017-04-04 Pedro Alves <palves@redhat.com>
15019
15020 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15021 operator bool, has_value and get methods.
15022
fff8551c
PA
150232017-04-04 Pedro Alves <palves@redhat.com>
15024
15025 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15026 fields.
15027 (line_header): Initialize all data fields. Change type of
15028 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15029 Change type of include_dirs to std::vector<const char *>. Remove
15030 num_include_dirs, include_dirs_size. Change type of file_names to
15031 std::vector<file_entry>. Remove num_file_names, file_names_size.
15032 (line_header::line_header): New.
15033 (line_header::add_include_dir, line_header::add_file_name): New
15034 methods.
15035 (line_header::include_dir_at): Remove NULL check.
15036 (line_header::file_name_at): Add const overload.
15037 (line_header_up): New unique_ptr typedef.
15038 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15039 std::vector. Remove free_line_header call.
15040 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15041 free_line_header call.
15042 (free_cu_line_header): Delete.
15043 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15044 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15045 Adjust to use std::vector.
15046 (free_line_header): Delete.
15047 (free_line_header_voidp): Use delete.
15048 (add_include_dir): Replace with ...
15049 (line_header::add_include_dir): ... this method. Use std::vector.
15050 (add_file_name): Replace with ...
15051 (line_header::add_file_name): ... this method. Use std::vector.
15052 (add_include_dir_stub): Delete.
15053 (read_formatted_entries): Remove memset.
15054 (dwarf_decode_line_header): Return a line_header_up instead of a
15055 raw pointer. Remove cleanup handling. Pass lambdas to
15056 read_formatted_entries. Adjust to use line_header methods.
15057 (dwarf_decode_lines_1): Adjust to use line_header methods.
15058 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15059 use std::vector.
15060
d62a8ae2
SM
150612017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15062
15063 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15064 instead of struct ptid.
15065
db3a1dc7
AH
150662017-05-04 Alan Hayward <alan.hayward@arm.com>
15067
15068 * frame.c (get_frame_register_bytes): Unwind using value.
15069 (put_frame_register_bytes): Likewise.
15070
b1b45502
IB
150712017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15072
15073 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15074 aggregate-like.
15075
ec13808e
JK
150762017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15077
15078 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15079
12316564
YQ
150802017-03-29 Yao Qi <yao.qi@linaro.org>
15081
15082 * gdbthread.h (struct thread_info): Declare constructor and
15083 destructor. Add some in-class member initializers.
15084 * thread.c (free_thread): Remove.
15085 (init_thread_list): Call delete instead of free_thread.
15086 (new_thread): Call thread_info constructor.
15087 (thread_info::thread_info): New function.
15088 (thread_info::~thread_info): New function.
15089 (delete_thread_1): Call delete instead of free_thread.
15090 (make_cleanup_restore_current_thread): Move tp and frame to
15091 inner block.
15092
fe5f7374
AK
150932017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15094
15095 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15096 (arc_skip_prologue): Likewise.
15097 (arc_make_frame_cache): Likewise.
15098 (arc_pv_get_operand): New function.
15099 (arc_is_in_prologue): Likewise.
15100 (arc_analyze_prologue): Likewise.
15101 (arc_print_frame_cache): Likewise.
15102 (MAX_PROLOGUE_LENGTH): New constant.
15103
eea78757
AK
151042017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15105
15106 * configure.tgt: Add arc-insn.o.
15107 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15108 (dump_arc_instruction_command): New function.
15109 (arc_fprintf_disasm): Likewise.
15110 (arc_disassemble_info): Likewise.
15111 (arc_insn_get_operand_value): Likewise.
15112 (arc_insn_get_operand_value_signed): Likewise.
15113 (arc_insn_get_memory_base_reg): Likewise.
15114 (arc_insn_get_memory_offset): Likewise.
15115 (arc_insn_get_branch_target): Likewise.
15116 (arc_insn_dump): Likewise.
15117 (arc_insn_get_linear_next_pc): Likewise.
15118 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15119 (arc_disassemble_info): Likewise.
15120 (arc_insn_get_branch_target): Likewise.
15121 (arc_insn_get_linear_next_pc): Likewise.
15122 * NEWS: Mention new "maint print arc arc-instruction".
15123
3be78afd
AK
151242017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15125
15126 * arc-tdep (maintenance_print_arc_list): New variable.
15127 (maintenance_print_arc_command): New function.
15128
296ec4fa
AK
151292017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15130
15131 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15132 Add "limm" and "reserved".
15133 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15134 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15135 * arc-tdep.h (arc_regnum): Likewise.
15136
f74f865e
MF
151372017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15138
15139 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15140 for THREADPTR register.
15141 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15142 register.
15143 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15144 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15145 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15146
0d0bf81a
MF
151472017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15148
15149 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15150 registers above gdbarch_num_regs (gdbarch) as privileged in
15151 call0 ABI.
15152
0ce4291e
MF
151532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15154
15155 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15156 for a single specified register or for all registers in
15157 a0_base..a0_base + C0_NREGS range.
15158 (supply_gregset_reg): Call regcache_raw_supply for a single
15159 specified register or for all registers in a0_base..a0_base +
15160 C0_NREGS range.
15161
c56054f9
MF
151622017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15163
15164 * arch/xtensa.h (C0_NREGS): Add definition.
15165 * xtensa-tdep.c (C0_NREGS): Remove definition.
15166
a4398628
MF
151672017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15168
15169 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15170 Drop xtensa_default_isa initialization.
15171 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15172
8c43009f
PA
151732017-03-27 Pedro Alves <palves@redhat.com>
15174
15175 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15176 (file_entry::include_dir): New method.
15177 (line_header::include_dir_at, line_header::file_name_at): New
15178 methods.
15179 (setup_type_unit_groups, setup_type_unit_groups)
15180 (psymtab_include_file_name): Simplify using the new methods.
15181 (lnp_state_machine) <the_line_header>: New field.
15182 <file>: Add comment.
15183 (lnp_state_machine::current_file): New method.
15184 (dwarf_record_line): Simplify using the new methods.
15185 (init_lnp_state_machine): Initialize the "the_line_header" field.
15186 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15187 Simplify using the new methods.
15188
a7e80b9e
PA
151892017-03-27 Pedro Alves <palves@redhat.com>
15190
15191 * cp-name-parser.y (make_empty): Delete.
15192 (demangler_special, nested_name, ptr_operator, array_indicator)
15193 (direct_declarator, declarator_1): Use fill_comp instead of
15194 make_empty.
15195
21047726
PA
151962017-03-27 Pedro Alves <palves@redhat.com>
15197
15198 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15199 to ATTRIBUTE_PRINTF.
15200 * solib-target.c (library_list_start_list): Print "string" not
15201 "version".
15202 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15203 gdb_xml_error call.
15204
d721ba37
PA
152052017-03-27 Pedro Alves <palves@redhat.com>
15206
15207 * dwarf2read.c (struct file_and_directory): New.
15208 (dwarf2_get_dwz_file): Adjust to use std::string.
15209 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15210 (find_file_and_directory): Adjust to return a file_and_directory
15211 object.
15212 (read_file_scope): Adjust to use file_and_directory. Remove
15213 make_cleanup/do_cleanups calls.
15214 (open_and_init_dwp_file): Adjust to use std::string. Remove
15215 make_cleanup/do_cleanups calls.
15216 * python/python.c (do_start_initialization): Adjust to ldirname
15217 returning a std::string.
15218 * utils.c (ldirname): Now returns a std::string.
15219 * utils.h (ldirname): Change return type to std::string.
15220 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15221 returning a std::string.
15222 * xml-tdesc.c (file_read_description_xml): Likewise.
15223
ed771251
AH
152242017-03-24 Alan Hayward <alan.hayward@arm.com>
15225
15226 * regcache.c (regcache_debug_print_register): New function.
15227 * regcache.h (regcache_debug_print_register): New declaration.
15228 * target.c (debug_print_register): Remove.
15229 (target_fetch_registers): Call regcache_debug_print_register.
15230 (target_store_registers): Likewise.
15231
568c1b9f
PB
152322017-03-24 Pádraig Brady <pbrady@fb.com>
15233
15234 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15235 reference beyond the 'lh->include_dirs' array before accessing to
15236 it.
15237 (psymtab_include_file_name): Likewise.
15238 (dwarf_decode_lines_1): Likewise.
15239 (dwarf_decode_lines): Likewise.
15240 (file_file_name): Likewise.
15241
3e00d44f
SM
152422017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15243
15244 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15245 inferior_ptid.
15246 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15247 ps_lsetfpregs): Likewise.
15248 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15249 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15250 ps_lsetfpregs): Likewise.
15251 * target.c (target_fetch_registers, target_store_registers):
15252 Remove asserts.
15253
077ae656
AH
152542017-03-23 Alan Hayward <alan.hayward@arm.com>
15255
15256 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15257
1e2b521d
YQ
152582017-03-23 Yao Qi <yao.qi@linaro.org>
15259
15260 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15261 (_initialize_aarch64_tdep): Register it.
15262 (aarch64_record_load_store): Handle PRFM instruction.
15263 (aarch64_process_record_test): New function.
15264
33877125
YQ
152652017-03-23 Yao Qi <yao.qi@linaro.org>
15266
15267 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15268 indentation.
15269
a0eef940
YQ
152702017-03-23 Yao Qi <yao.qi@linaro.org>
15271
15272 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15273
3f2a3564
PR
152742017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15275
15276 python/python.c (do_start_initialization): Fix memory leak.
15277
b67aeab0
SM
152782017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15279
15280 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15281 using get_ptrace_pid.
15282 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15283 inferior_ptid.
15284 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15285 inferior_ptid instead of pid.
15286
ffdbe864
YQ
152872017-03-22 Yao Qi <yao.qi@linaro.org>
15288
15289 * aarch64-tdep.c: Wrap locally used classes in anonymous
15290 namespace.
15291 * arm-tdep.c: Likewise.
15292 * linespec.c: Likewise.
15293 * ui-out.c: Likewise.
15294
9d736fbf
JG
152952017-03-22 Jonah Graham <jonah@kichwacoders.com>
15296
15297 PR gdb/19637
15298 * python/lib/gdb/printer/bound_registers.py: Import sys.
15299
3de88e9a
SM
153002017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15301
15302 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15303 windows_thread_info parameter and use it instead of
15304 current_thread.
15305 (windows_fetch_inferior_registers): Don't set current_thread,
15306 pass the thread to do_windows_fetch_inferior_registers. Use
15307 ptid from regcache instead of inferior_ptid.
15308 (do_windows_store_inferior_registers): Add windows_thread_info
15309 parameter and use it instead of current_thread.
15310 (windows_store_inferior_registers): Don't set current_thread,
15311 pass the thread to do_windows_store_inferior_registers. Use
15312 ptid from regcache instead of inferior_ptid.
15313
0e7b8f61
SM
153142017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15315
15316 * ser-mingw.c (ser_windows_raw): Remove reference to
15317 struct serial::current_timeout.
15318
5badf10a
IR
153192017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15320
15321 PR tdep/20928
15322 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15323 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15324 (sparc64_fsr_type): Fix %fsr decoding.
15325
cee59b3f
TW
153262017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15327
15328 * python/py-record-btrace.c (btpy_insn_data): Change return type
15329 for Python 2.
15330
639a9038
SM
153312017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15332
15333 * spu-linux-nat.c (spu_fetch_inferior_registers,
15334 spu_store_inferior_registers): Use ptid from regcache, set and
15335 restore inferior_ptid.
15336 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15337 Likewise.
15338
bcc0c096
SM
153392017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15340
15341 * i386-linux-nat.c (fetch_register, store_register,
15342 i386_linux_fetch_inferior_registers,
15343 i386_linux_store_inferior_registers): Use ptid from regcache.
15344 * ia64-linux-nat.c (ia64_linux_fetch_register,
15345 ia64_linux_store_register): Likewise.
15346 * inf-ptrace.c (inf_ptrace_fetch_register,
15347 inf_ptrace_store_register): Likewise.
15348 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15349 m32r_linux_store_inferior_registers): Likewise.
15350 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15351 m68kbsd_store_inferior_registers): Likewise.
15352 * m68k-linux-nat.c (fetch_register, store_register,
15353 m68k_linux_fetch_inferior_registers,
15354 m68k_linux_store_inferior_registers): Likewise.
15355 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15356 m88kbsd_store_inferior_registers): Likewise.
15357 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15358 mips_fbsd_store_inferior_registers): Likewise.
15359 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15360 mips64_linux_regsets_store_registers): Likewise.
15361 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15362 mipsnbsd_store_inferior_registers): Likewise.
15363 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15364 mips64obsd_store_inferior_registers): Likewise.
15365 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15366 Likewise.
15367 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15368 ppcfbsd_store_inferior_registers): Likewise.
15369 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15370 ppc_linux_store_inferior_registers): Likewise.
15371 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15372 ppcnbsd_store_inferior_registers): Likewise.
15373 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15374 ppcobsd_store_registers): Likewise.
15375 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15376 Likewise.
15377 * ravenscar-thread.c (ravenscar_fetch_registers,
15378 ravenscar_store_registers, ravenscar_prepare_to_store):
15379 Likewise.
15380 * record-btrace.c (record_btrace_fetch_registers,
15381 record_btrace_store_registers, record_btrace_prepare_to_store):
15382 Likewise.
15383 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15384 Lookup inferior using ptid from regcache, instead of
15385 current_inferior.
15386 * remote.c (remote_fetch_registers, remote_store_registers): Use
15387 ptid from regcache.
15388 * rs6000-nat.c (fetch_register, store_register): Likewise.
15389 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15390 s390_linux_store_inferior_registers): Likewise.
15391 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15392 shnbsd_store_inferior_registers): Likewise.
15393 * sol-thread.c (sol_thread_fetch_registers,
15394 sol_thread_store_registers): Likewise.
15395 * sparc-nat.c (sparc_fetch_inferior_registers,
15396 sparc_store_inferior_registers): Likewise.
15397 * tilegx-linux-nat.c (fetch_inferior_registers,
15398 store_inferior_registers): Likewise.
15399 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15400 vaxbsd_store_inferior_registers): Likewise.
15401 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15402 store_xtregs): Likewise.
15403
c0f55cc6
AV
154042017-03-20 Artemiy Volkov <artemiyv@acm.org>
15405
15406 PR gdb/14441
15407 * NEWS: Mention support for rvalue references in GDB and python.
15408 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15409 supports both lvalue and rvalue references.
15410
15c0a2a9
AV
154112017-03-20 Artemiy Volkov <artemiyv@acm.org>
15412
15413 PR gdb/14441
15414 * gdbtypes.c (rank_one_type): Implement overloading
15415 resolution rules regarding rvalue references.
15416
aa006118
AV
154172017-03-20 Artemiy Volkov <artemiyv@acm.org>
15418
15419 PR gdb/14441
15420 * aarch64-tdep.c (aarch64_type_align)
15421 (aarch64_extract_return_value, aarch64_store_return_value): Change
15422 lvalue reference type checks to general reference type checks.
15423 * amd64-tdep.c (amd64_classify): Likewise.
15424 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15425 Likewise.
15426 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15427 (arm_store_return_value): Likewise.
15428 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15429 * c-typeprint.c (c_print_type): Likewise.
15430 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15431 (cplus_number_of_children, cplus_describe_child): Likewise.
15432 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15433 * completer.c (expression_completer): Likewise.
15434 * cp-support.c (make_symbol_overload_list_adl_namespace):
15435 Likewise.
15436 * darwin-nat-info.c (info_mach_region_command): Likewise.
15437 * dwarf2loc.c (entry_data_value_coerce_ref)
15438 (value_of_dwarf_reg_entry): Likewise.
15439 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15440 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15441 Likewise.
15442 * findvar.c (extract_typed_address, store_typed_address):
15443 Likewise.
15444 * gdbtypes.c (rank_one_type): Likewise.
15445 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15446 * infcall.c (value_arg_coerce): Likewise.
15447 * language.c (pointer_type): Likewise.
15448 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15449 Likewise.
15450 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15451 * mn10300-tdep.c (mn10300_type_align): Likewise.
15452 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15453 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15454 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15455 Likewise.
15456 * printcmd.c (print_formatted, x_command): Likewise.
15457 * python/py-type.c (typy_get_composite, typy_template_argument):
15458 Likewise.
15459 * python/py-value.c (valpy_referenced_value)
15460 (valpy_get_dynamic_type, value_has_field): Likewise.
15461 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15462 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15463 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15464 * spu-tdep.c (spu_scalar_value_p): Likewise.
15465 * symtab.c (lookup_symbol_aux): Likewise.
15466 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15467 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15468 Likewise.
15469 * valops.c (value_cast_pointers, value_cast)
15470 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15471 (value_struct_elt, value_struct_elt_bitpos)
15472 (value_find_oload_method_list, find_overload_match)
15473 (value_rtti_indirect_type): Likewise.
15474 * valprint.c (val_print_scalar_type_p, generic_val_print):
15475 Likewise.
15476 * value.c (value_actual_type, value_as_address, unpack_long)
15477 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15478 (coerce_ref): Likewise.
15479 * varobj.c (varobj_get_value_type): Likewise.
15480
3fcf899d
AV
154812017-03-20 Artemiy Volkov <artemiyv@acm.org>
15482
15483 PR gdb/14441
15484 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15485 table of constants.
15486 * python/lib/gdb/command/explore.py: Support exploring values
15487 of rvalue reference types.
15488 * python/lib/gdb/types.py: Implement get_basic_type() for
15489 rvalue reference types.
15490 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15491 constant.
15492 * python/py-value.c (valpy_getitem): Add an rvalue reference
15493 check.
15494 (valpy_reference_value): Add new parameter "refcode".
15495 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15496 New wrappers for valpy_reference_value().
15497 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15498 (gdbpy_invoke_xmethod): Likewise.
15499
4297a3f0
AV
155002017-03-20 Artemiy Volkov <artemiyv@acm.org>
15501
15502 PR gdb/14441
15503 * dwarf2read.c (process_die, read_type_die_1): Handle the
15504 DW_TAG_rvalue_reference_type DIE.
15505 (read_tag_reference_type): Add new parameter "refcode".
15506
e1cb3213
AV
155072017-03-20 Artemiy Volkov <artemiyv@acm.org>
15508
15509 PR gdb/14441
15510 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15511 (c_type_print_modifier, c_type_print_varspec_suffix)
15512 (c_type_print_base): Support printing rvalue reference types.
15513 * c-valprint.c (c_val_print, c_value_print): Support printing
15514 rvalue reference values.
15515
e4347c89
AV
155162017-03-20 Artemiy Volkov <artemiyv@acm.org>
15517
15518 PR gdb/14441
15519 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15520 typename.
15521 * cp-support.c (replace_typedefs): Handle
15522 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15523 * python/py-type.c (typy_lookup_type): Likewise.
15524
53cc15f5
AV
155252017-03-20 Artemiy Volkov <artemiyv@acm.org>
15526
15527 PR gdb/14441
15528 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15529 * parse.c (insert_type): Change assert statement.
15530 (follow_types): Handle rvalue reference types.
15531 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15532 constant.
15533
a65cfae5
AV
155342017-03-20 Artemiy Volkov <artemiyv@acm.org>
15535
15536 PR gdb/14441
15537 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15538 value_ref() interface.
15539 * c-valprint.c (c_value_print): Likewise.
15540 * infcall.c (value_arg_coerce): Likewise.
15541 * python/py-value.c (valpy_reference_value): Likewise.
15542 * valops.c (value_cast, value_reinterpret_cast)
15543 (value_dynamic_cast, typecmp): Likewise.
15544 (value_ref): Parameterize by kind of return value reference type.
15545 * value.h (value_ref): Add new parameter "refcode".
15546
3b224330
AV
155472017-03-20 Artemiy Volkov <artemiyv@acm.org>
15548
15549 PR gdb/14441
15550 * dwarf2read.c (read_tag_reference_type): Use
15551 lookup_lvalue_reference_type() instead of lookup_reference_type().
15552 * eval.c (evaluate_subexp_standard): Likewise.
15553 * f-exp.y: Likewise.
15554 * gdbtypes.c (make_reference_type, lookup_reference_type):
15555 Generalize with rvalue reference types.
15556 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15557 convenience wrappers for lookup_reference_type().
15558 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15559 reference kind parameter.
15560 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15561 wrappers for lookup_reference_type().
15562 * guile/scm-type.c (gdbscm_type_reference): Use
15563 lookup_lvalue_reference_type() instead of lookup_reference_type().
15564 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15565 * parse.c (follow_types): Likewise.
15566 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15567 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15568 Likewise.
15569 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15570 (gdbpy_invoke_xmethod): Likewise.
15571 * stabsread.c: Provide extra argument to make_reference_type()
15572 call.
15573 * valops.c (value_ref, value_rtti_indirect_type): Use
15574 lookup_lvalue_reference_type() instead of lookup_reference_type().
15575
f9aeb8d4
AV
155762017-03-20 Artemiy Volkov <artemiyv@acm.org>
15577
15578 PR gdb/14441
15579 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15580 (TYPE_IS_REFERENCE): New macro.
15581 (struct type): Add rvalue_reference_type field.
15582 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15583
51457a05
MAL
155842017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15585
15586 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15587 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15588 New function definition.
15589 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15590 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15591 New function declaration.
15592 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15593 * mi/mi-interp.h: New file.
15594 * solib.c (info_sharedlibrary_command): Replace for loop with
15595 ALL_SO_LIBS macro
15596 * solib.h (update_solib_list): New function declaration.
15597 (so_list_head): Move macro.
15598 * solist.h (ALL_SO_LIBS): New macro.
15599
e696b3ad
MAL
156002017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15601
15602 * infcmd.c (post_create_inferior): Remove unused argument in
15603 call to solib_add.
15604 * remote.c (remote_start_remote): Likewise.
15605 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15606 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15607 (enable_break): Likewise.
15608 * solib.c (update_solib_list): Remove unused target argument
15609 and its documentation.
15610 (solib_add): Remove unused target argument. Remove unused
15611 argument in call to update_solib_list.
15612 (info_sharedlibrary_command): Remove unused argument in call
15613 to update_solib_list.
15614 (sharedlibrary_command): Remove unused argument in call to
15615 solib_add.
15616 (handle_solib_event): Likewise.
15617 (reload_shared_libraries): Likewise.
15618 * solib.h (solib_add): Remove unused target argument.
15619
dcb84eda
AA
156202017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15621
15622 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15623 (s390_displaced_step_fixup): Cover relative branches with the
15624 default fixup handling. This fixes lack of support for some
15625 relative branch instructions.
15626
d9cb6cdc
SM
156272017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15628
15629 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15630 ptid from regcache.
15631
1afaf9f4
SM
156322017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15633
15634 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15635 i386_darwin_store_inferior_registers): Use ptid from regcache.
15636
aac12e24
SM
156372017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15638
15639 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15640 i386bsd_store_inferior_registers): Use ptid from regcache.
15641
bbe1eef1
SM
156422017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15643
15644 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15645 hppaobsd_store_registers): Use ptid from regcache.
15646
10799020
SM
156472017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15648
15649 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15650 hppanbsd_store_registers): Use ptid from regcache.
15651
00204cf7
SM
156522017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15653
15654 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15655 from regcache. Use get_ptrace_pid.
15656
11a33714
SM
156572017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15658
15659 * corelow.c (get_core_register_section): Use ptid from regcache,
15660 update doc.
15661
317cd492
SM
156622017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15663
15664 * bsd-uthread.c (bsd_uthread_fetch_registers,
15665 bsd_uthread_store_registers): Use ptid from regcache, set and
15666 restore inferior_ptid.
15667
9ac8a7c2
SM
156682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15669
15670 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15671 fetch_fp_regs, store_register, store_regs, store_fp_register,
15672 store_fp_regs): Use ptid from regcache.
15673
4ac4bb6a
SM
156742017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15675
15676 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15677 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15678 store_vfp_regs): Use ptid from regcache.
15679
9bcbdca8
PA
156802017-03-17 Pedro Alves <palves@redhat.com>
15681
15682 PR remote/21188
15683 * ser-base.c (ser_base_wait_for): Add comment.
15684 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15685 version.
15686 * ser-unix.c (hardwire_raw): Remove reference to
15687 scb->current_timeout.
15688 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15689 (hardwire_ops): Install ser_base_readchar instead of
15690 hardwire_readchar.
15691 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15692 Remove fields.
15693
7503099f
JG
156942017-03-17 Jonah Graham <jonah@kichwacoders.com>
15695
15696 PR gdb/19637
15697 * python/lib/gdb/printer/bound_registers.py: Add support for
15698 Python 3.
15699
7942e96e
AA
157002017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15701
15702 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15703 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15704 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15705 byte_offset to subobj_byte_offset. Fix the handling of
15706 DWARF_VALUE_STACK on big-endian targets when coming via an
15707 implicit pointer.
15708 (dwarf2_evaluate_loc_desc): Adjust call to
15709 dwarf2_evaluate_loc_desc_full.
15710 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15711 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15712
ba14f379
YQ
157132017-03-16 Yao Qi <yao.qi@linaro.org>
15714
15715 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15716 and REVSH instructions.
15717
b121eeb9
YQ
157182017-03-16 Yao Qi <yao.qi@linaro.org>
15719
15720 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15721 (arm_record_test): Declare.
15722 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15723 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15724 align with the manual.
15725 (thumb_record_misc): Adjust the code order to align with the
15726 manual.
15727 (thumb2_record_decode_insn_handler): Fix instruction matching.
15728 (instruction_reader_thumb): New class.
15729 (arm_record_test): New function.
15730
728a7913
YQ
157312017-03-16 Yao Qi <yao.qi@linaro.org>
15732
15733 * arm-tdep.c (abstract_memory_reader): New class.
15734 (instruction_reader): New class.
15735 (extract_arm_insn): Add argument 'reader'. Callers updated.
15736 (decode_insn): Likewise.
15737
34b43320
DE
157382017-03-16 Doug Evans <dje@google.com>
15739
a7c0469f
DE
15740 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15741 member. Change type of TYPE member to SCM. All uses updated.
15742 (lsscm_make_lazy_string_smob): Add assert.
15743 (lsscm_make_lazy_string): Flag bad length values.
15744 (lsscm_elt_type): New function.
15745 (gdbscm_lazy_string_to_value): Rewrite to use
15746 lsscm_safe_lazy_string_to_value.
15747 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15748 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15749 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15750 in incoming type.
15751 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15752 * guile/scm-type.c (tyscm_scm_to_type): New function.
15753
157542017-03-15 Doug Evans <dje@google.com>
15755
34b43320
DE
15756 PR python/17728, python/18439, python/18779
15757 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15758 member. Change type of TYPE member to PyObject *. All uses updated.
15759 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15760 (gdbpy_create_lazy_string_object): Flag bad length values.
15761 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15762 Handle typedefs in incoming type.
15763 (stpy_lazy_string_elt_type): New function.
15764 (gdbpy_extract_lazy_string): Call it.
15765 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15766 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15767 typedefs in incoming type.
15768
a3a5fecc
DE
157692017-03-16 Doug Evans <dje@google.com>
15770
15771 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15772 * guile/scm-type.c (tyscm_scm_to_type): New function.
15773
28f1c605
JW
157742017-03-16 Jiong Wang <jiong.wang@arm.com>
15775
15776 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15777 "ULONGEST" for "skip".
15778
87c336f6
AA
157792017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15780
15781 PR gdb/21220
15782 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15783 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15784 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15785 over ptrace peek/poke until end of buffer or error.
15786
cf81cf60
SM
157872017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15788
15789 * parse.c (length_of_subexp): Make static.
15790 * parser-defs.h (length_of_subexp): Remove.
15791
a379284a
AA
157922017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15793
15794 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15795 as well.
15796
8a6200ba
PA
157972017-03-14 Pedro Alves <palves@redhat.com>
15798
15799 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15800 (main): Use std::unique_ptr. Remove calls to
15801 cp_demangled_name_parse_free.
15802
f79ec206
SM
158032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15804
15805 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15806 alphabsd_store_inferior_registers): Use regcache->ptid instead
15807 of inferior_ptid.
15808
edb5fb00
SM
158092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15810
15811 * aix-thread.c (aix_thread_fetch_registers,
15812 aix_thread_store_registers): Use regcache->ptid instead of
15813 inferior_ptid.
15814
55119686
SM
158152017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15816
15817 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15818 store_gregs_to_thread, fetch_fpregs_from_thread,
15819 store_fpregs_to_thread): Use regcache->ptid instead of
15820 inferior_ptid.
15821
6a06fbb7
SM
158222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15823
15824 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15825 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15826 instead of inferior_ptid.
15827
c6386875
SM
158282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15829
15830 * target.c (target_fetch_registers, target_store_registers): Add
15831 assert.
15832
ddaaf0fb
SM
158332017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15834
15835 * regcache.h (regcache_get_ptid): New function.
15836 * regcache.c (regcache_get_ptid): New function.
15837
b9da89d1 158382017-03-13 Mark Wielaard <mark@klomp.org>
15839
15840 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15841
5f4d1085
KS
158422017-03-10 Keith Seitz <keiths@redhat.com>
15843
15844 PR c++/8218
15845 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15846
c65d6b55
PA
158472017-03-08 Pedro Alves <palves@redhat.com>
15848
15849 PR gdb/18360
15850 * infrun.c (start_step_over, do_target_resume, resume)
15851 (restart_threads): Assert we're not resuming a thread that is
15852 meant to be stopped.
15853 (infrun_thread_stop_requested_callback): Delete.
15854 (infrun_thread_stop_requested): If the thread is internally
15855 stopped, queue a pending stop event and clear the thread's
15856 inline-frame state.
15857 (handle_stop_requested): New function.
15858 (handle_syscall_event, handle_inferior_event_1): Use
15859 handle_stop_requested.
15860 (handle_stop_requested): New function.
15861 (handle_signal_stop): Set the thread's stop_signal here instead of
15862 at caller.
15863 (finish_step_over): Clear step over info unconditionally.
15864 (handle_signal_stop): If the user had interrupted the event
15865 thread, consider the stop a random signal.
15866 (handle_signal_stop) <signal arrived while stepping over
15867 breakpoint>: Don't restart threads here.
15868 (stop_waiting): Don't clear step-over info here.
15869
15c22686
PA
158702017-03-08 Pedro Alves <palves@redhat.com>
15871
15872 PR 21206
15873 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15874 goes to argument 2, not 1.
15875
6e5d74e7
PA
158762017-03-08 Pedro Alves <palves@redhat.com>
15877
15878 PR cli/21218
15879 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15880 display_gdb_prompt.
15881 (command_line_input): Add comment.
15882
9753a2f6
PA
158832017-03-08 Pedro Alves <palves@redhat.com>
15884
15885 PR tui/21216
15886 * tui/tui-file.c (tui_file::write): New.
15887 * tui/tui-file.h (tui_file): Override "write".
15888 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15889 factored out from ...
15890 (tui_puts): ... here.
15891 (tui_putc): Use them.
15892 (tui_write): New function.
15893 * tui/tui-io.h (tui_write): Declare.
15894
1672e0d9
SDJ
158952017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15896
15897 * Makefile.in (SFILES): Replace "environ.c" with
15898 "common/environ.c".
15899 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15900 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15901 to...
15902 * common/environ.c: ... here.
15903 * environ.h: Moved to...
15904 * common/environ.h: ... here.
15905
f7bb4e3a
PB
159062017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15907
15908 * gdbarch.sh (pstring_ptr): New static function.
15909 (gdbarch_disassembler_options): Use it.
15910 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15911 not valid_disassembler_option->name.
15912 * gdbarch.c: Regenerate.
15913
e45ced6c
PB
159142017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15915
15916 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15917
5f6fd321
PA
159182017-03-07 Pedro Alves <palves@redhat.com>
15919
15920 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15921
6dbb839a 159222017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
15923
15924 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15925 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15926 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 15927 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 15928
d274ecf4
SM
159292017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15930
15931 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15932
df97be55
SM
159332017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15934
15935 * remote.c (remote_add_target_side_commands): Use range-based
15936 for loop.
15937
7d45f3df
YQ
159382017-03-03 Yao Qi <yao.qi@linaro.org>
15939
15940 PR gdb/21165
15941 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15942 value is lazy.
15943 * valprint.c (common_val_print): Likewise.
15944
65b48a81
PB
159452017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15946
15947 * NEWS: Mention new set/show disassembler-options commands.
15948 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15949 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15950 (prospective_options): New static variable.
15951 (gdb_disassembler::gdb_disassembler): Initialize
15952 m_di.disassembler_options.
15953 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15954 (get_disassembler_options): New function.
15955 (set_disassembler_options): Likewise.
15956 (set_disassembler_options_sfunc): Likewise.
15957 (show_disassembler_options_sfunc): Likewise.
15958 (disassembler_options_completer): Likewise.
15959 (_initialize_disasm): Likewise.
15960 * disasm.h (get_disassembler_options): New prototype.
15961 (set_disassembler_options): Likewise.
15962 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15963 (gdbarch_verify_disassembler_options): Likewise.
15964 * gdbarch.c: Regenerate.
15965 * gdbarch.h: Likewise.
15966 * arm-tdep.c (num_disassembly_options): Delete.
15967 (set_disassembly_style): Likewise.
15968 (arm_disassembler_options): New static variable.
15969 (set_disassembly_style_sfunc): Convert short style name into long
15970 option name. Call set_disassembler_options.
15971 (show_disassembly_style_sfunc): New function.
15972 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15973 set_gdbarch_verify_disassembler_options.
15974 (_initialize_arm_tdep): Delete regnames variable and update callers.
15975 (arm_disassembler_options): Initialize.
15976 (disasm_options): New variable.
15977 (num_disassembly_options): Rename from this...
15978 (num_disassembly_styles): ...to this. Compute by scanning through
15979 disasm_options.
15980 (valid_disassembly_styles): Initialize using disasm_options.
15981 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15982 set_arm_regname_option.
15983 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15984 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15985 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15986 set_gdbarch_verify_disassembler_options.
15987 * s390-tdep.c (s390_disassembler_options): New static variable.
15988 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15989 set_gdbarch_verify_disassembler_options.
15990
d538e36d
SM
159912017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15992
15993 * remote.c (remote_add_target_side_condition): Remove "struct"
15994 keyword from range-based for loop.
15995
83621223
SM
159962017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15997
15998 * remote.c (remote_add_target_side_condition): Use range-based
15999 for loop. Update comment.
16000
2123df0e
YQ
160012017-02-27 Yao Qi <yao.qi@linaro.org>
16002
16003 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16004
8e368124
AH
160052017-02-26 Alan Hayward <alan.hayward@arm.com>
16006
16007 * regcache.c (regcache_raw_update): New function.
16008 (regcache_raw_read): Move code to regcache_raw_update.
16009 * regcache.h (regcache_raw_update): New declaration.
16010 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16011
a49dd8dd
JK
160122017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16013
16014 * dwarf2read.c (create_debug_type_hash_table): Initialize
16015 header.signature and header.type_offset_in_tu.
16016
34e4bae9
PA
160172017-02-24 Pedro Alves <palves@redhat.com>
16018
16019 * symtab.c (make_file_symbol_completion_list_1): Use
16020 add_symtab_completions.
16021
b0e4b369
AH
160222017-02-24 Alan Hayward <alan.hayward@arm.com>
16023
16024 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16025
975c21ab
AH
160262017-02-24 Alan Hayward <alan.hayward@arm.com>
16027
16028 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16029 I386_MAX_REGISTER_SIZE.
16030 (i386_pseudo_register_write): Likewise.
16031 (i386_process_record): Likewise.
16032 * i387-tdep.c (i387_supply_xsave): Likewise.
16033 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16034 (store_register): Likewise.
16035
14bc53a8
PA
160362017-02-23 Pedro Alves <palves@redhat.com>
16037
16038 * ada-lang.c: Include "common/function-view.h".
16039 (ada_iterate_over_symbols): Adjust to use function_view as
16040 callback type.
16041 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16042 (ada_make_symbol_completion_list): Use a lambda.
16043 (ada_exc_search_name_matches): Delete.
16044 (name_matches_regex): New.
16045 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16046 * compile/compile-c-support.c: Include "common/function-view.h".
16047 (print_one_macro): Change prototype to accept a ui_file pointer.
16048 (write_macro_definitions): Use a lambda.
16049 * dwarf2read.c: Include "common/function-view.h".
16050 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16051 (dw2_expand_symtabs_matching): Adjust to use function_view as
16052 callback type.
16053 * language.h: Include "common/function-view.h".
16054 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16055 function_view as callback type.
16056 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16057 * linespec.c: Include "common/function-view.h".
16058 (collect_info::add_symbol): New method.
16059 (struct symbol_and_data_callback, iterate_inline_only, struct
16060 symbol_matcher_data, iterate_name_matcher): Delete.
16061 (iterate_over_all_matching_symtabs): Adjust to use function_view
16062 as callback type and lambdas.
16063 (iterate_over_file_blocks): Adjust to use function_view as
16064 callback type.
16065 (decode_compound_collector): Now a class with private fields.
16066 (decode_compound_collector::release_symbols): New method.
16067 (collect_one_symbol): Rename to...
16068 (decode_compound_collector::operator()): ... this and adjust.
16069 (lookup_prefix_sym): decode_compound_collector construction bits
16070 move to decode_compound_collector ctor. Pass the
16071 decode_compound_collector object directly as callback. Remove
16072 cleanups and use decode_compound_collector::release_symbols
16073 instead.
16074 (symtab_collector): Now a class with private fields.
16075 (symtab_collector::release_symtabs): New method.
16076 (add_symtabs_to_list): Rename to...
16077 (symtab_collector::operator()): ... this and adjust.
16078 (collect_symtabs_from_filename): symtab_collector construction
16079 bits move to symtab_collector ctor. Pass the symtab_collector
16080 object directly as callback. Remove cleanups and use
16081 symtab_collector::release_symtabs instead.
16082 (collect_symbols): Delete.
16083 (add_matching_symbols_to_info): Use lambdas.
16084 * macrocmd.c (print_macro_callback): Delete.
16085 (info_macro_command): Use a lambda.
16086 (info_macros_command): Pass print_macro_definition as callable
16087 directly.
16088 (print_one_macro): Remove 'ignore' parameter.
16089 (macro_list_command): Adjust.
16090 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16091 (macro_for_each_data::user_data): Delete field.
16092 (foreach_macro): Adjust to call the function_view.
16093 (macro_for_each): Adjust to use function_view as callback type.
16094 (foreach_macro_in_scope): Adjust to call the function_view.
16095 (macro_for_each_in_scope): Adjust to use function_view as callback
16096 type.
16097 * macrotab.h: Include "common/function-view.h".
16098 (macro_callback_fn): Declare a prototype instead of a pointer.
16099 Remove "user_data" parameter.
16100 (macro_for_each, macro_for_each_in_scope): Adjust to use
16101 function_view as callback type.
16102 * psymtab.c (partial_map_expand_apply)
16103 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16104 Adjust to use function_view as callback type and to return bool.
16105 (psym_expand_symtabs_matching): Adjust to use function_view as
16106 callback types.
16107 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16108 to use function_view as callback type and to return bool.
16109 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16110 callback types.
16111 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16112 as callback types.
16113 * symfile.h: Include "common/function-view.h".
16114 (expand_symtabs_file_matcher_ftype)
16115 (expand_symtabs_symbol_matcher_ftype)
16116 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16117 return bool.
16118 (quick_symbol_functions::map_symtabs_matching_filename)
16119 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16120 function_view as callback type and return bool.
16121 (expand_symtabs_matching): Adjust to use function_view as callback
16122 type.
16123 (maintenance_expand_name_matcher)
16124 (maintenance_expand_file_matcher): Delete.
16125 (maintenance_expand_symtabs): Use lambdas.
16126 * symtab.c (iterate_over_some_symtabs): Adjust to use
16127 function_view as callback types and return bool.
16128 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16129 of a cleanup.
16130 (lookup_symtab_callback): Delete.
16131 (lookup_symtab): Use a lambda.
16132 (iterate_over_symbols): Adjust to use function_view as callback
16133 type.
16134 (struct search_symbols_data, search_symbols_file_matches)
16135 (search_symbols_name_matches): Delete.
16136 (search_symbols): Use a pair of lambdas.
16137 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16138 (symtab_expansion_callback): Delete.
16139 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16140 * symtab.h: Include "common/function-view.h".
16141 (iterate_over_some_symtabs): Adjust to use function_view as
16142 callback type and return bool.
16143 (iterate_over_symtabs): Adjust to use function_view as callback
16144 type.
16145 (symbol_found_callback_ftype): Remove 'data' parameter and return
16146 bool.
16147 (iterate_over_symbols): Adjust to use function_view as callback
16148 type.
16149
07e253aa
PA
161502017-02-23 Pedro Alves <palves@redhat.com>
16151
16152 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16153 (%.o) <unittests/%.c>: New pattern.
16154 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16155 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16156 * common/function-view.h: New file.
16157 * unittests/function-view-selftests.c: New file.
16158 * configure: Regenerate.
16159
8eaf5320
SM
161602017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16161
16162 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16163 inferior_ptid.
16164 * go32-nat.c (go32_thread_alive): Likewise.
16165
38768751
YQ
161662017-02-23 Yao Qi <yao.qi@linaro.org>
16167
16168 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16169 delete.
16170
0a8beaba
YQ
161712017-02-23 Yao Qi <yao.qi@linaro.org>
16172
16173 * varobj.c (varobj_clear_saved_item): Use delete instead of
16174 xfree.
16175 (update_dynamic_varobj_children): Likewise.
16176
58fdfd2c
JK
161772017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16178
16179 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16180
1b90b139
SM
161812017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16182
16183 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16184 m_enum_value to 0 in default constructor.
16185
2039d74e
EBM
161862017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16187
16188 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16189 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16190 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16191 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16192 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16193 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16194 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16195 IS_STORE_CONDITIONAL_INSN.
16196
7814882a
JK
161972017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16198
16199 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16200
0ae60b63
JK
162012017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16202
16203 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16204
0224619f
JK
162052017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16206
16207 * dwarf2read.c (skip_one_die, read_attribute_value)
16208 (dwarf2_const_value_attr, dump_die_shallow)
16209 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16210 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16211
0af92d60
JK
162122017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16213
16214 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16215 (dwarf_parse_macro_header): Accept DWARF version 5.
16216 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16217
216f72a1
JK
162182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16219
16220 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16221 DW_AT_GNU_*.
16222 * common/common-exceptions.h (enum errors): Likewise.
16223 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16224 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16225 (dwarf_expr_context::execute_stack_op): Likewise.
16226 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16227 Likewise.
16228 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16229 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16230 (show_entry_values_debug, call_site_to_target_addr)
16231 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16232 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16233 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16234 (value_of_dwarf_block_entry, indirect_pieced_value)
16235 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16236 (disassemble_dwarf_expression): Likewise.
16237 * dwarf2read.c (process_die, inherit_abstract_dies)
16238 (read_call_site_scope): Likewise.
16239 * gdbtypes.h (struct func_type, struct call_site_parameter)
16240 (struct call_site): Likewise.
16241 * stack.c (read_frame_arg): Likewise.
16242 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16243
43988095
JK
162442017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16245
16246 * defs.h (read_unsigned_leb128): New declaration.
16247 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16248 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16249 (dwarf2_find_location_expression): Call also
16250 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16251 * dwarf2loc.h (dwarf2_version): New declaration.
16252 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16253 rnglists.
16254 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16255 .debug_rnglists.
16256 (struct dwop_section_names): Add loclists_dwo.
16257 (dwop_section_names): Add .debug_loclists.dwo.
16258 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16259 (struct dwarf2_per_cu_data): Add dwarf_version.
16260 (struct dwo_sections): Add loclists.
16261 (struct attr_abbrev): Add implicit_const.
16262 (read_indirect_line_string): New declaration.
16263 (read_unsigned_leb128): Delete declaration.
16264 (rcuh_kind): New definition.
16265 (read_and_check_comp_unit_head): Change parameter
16266 is_debug_types_section to section_kind.
16267 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16268 (read_comp_unit_head): Change parameter abfd to section, add parameter
16269 section_kind. Handle DWARF-5.
16270 (error_check_comp_unit_head): Accept also DWARF version 5.
16271 (read_and_check_comp_unit_head): Change parameter
16272 is_debug_types_section to section_kind.
16273 (read_and_check_type_unit_head): Delete function.
16274 (read_abbrev_offset): Handle DWARF-5.
16275 (create_debug_type_hash_table): Add parameter section_kind. Process
16276 only DW_UT_type. Use signature and type_offset_in_tu from struct
16277 comp_unit_head.
16278 (create_debug_types_hash_table): Update create_debug_type_hash_table
16279 caller.
16280 (create_all_type_units): Call create_debug_type_hash_table.
16281 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16282 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16283 caller.
16284 (skip_one_die): Handle DW_FORM_implicit_const.
16285 (dwarf2_rnglists_process): New function.
16286 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16287 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16288 (read_attribute_value): Handle DW_FORM_implicit_const,
16289 DW_FORM_line_strp.
16290 (read_attribute): Handle DW_FORM_implicit_const.
16291 (read_indirect_string_at_offset_from): New function from
16292 read_indirect_string_at_offset.
16293 (read_indirect_string_at_offset): Call
16294 read_indirect_string_at_offset_from.
16295 (read_indirect_line_string_at_offset): New function.
16296 (read_indirect_string): New function comment.
16297 (read_indirect_line_string): New function.
16298 (read_unsigned_leb128): Make it global.
16299 (dwarf2_string_attr): Handle DWARF-5.
16300 (add_include_dir_stub, read_formatted_entries): New functions.
16301 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16302 Handle DWARF-5.
16303 (per_cu_header_read_in): Update read_comp_unit_head caller.
16304 (dwarf2_version): New function.
16305 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16306 rnglists.
16307 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16308 fields.
16309
22d2f3ab
JK
163102017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16311
16312 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16313
5f46c5a5
JK
163142017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16315
16316 * dwarf2read.c (dwarf2_ranges_process): New function from
16317 dwarf2_ranges_read.
16318 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16319 dwarf2_ranges_process.
16320
78d4d2c5
JK
163212017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16322
16323 * dwarf2read.c (create_debug_type_hash_table): New function from
16324 create_debug_types_hash_table.
16325 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16326 (create_all_type_units, open_and_init_dwo_file): Update
16327 create_debug_types_hash_table callers.
16328
1b076f25
SDJ
163292017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16330
16331 PR gdb/16188
16332 * fork-child.c (trace_start_error): Fix thinko. va_end should
16333 refer to 'ap', not 'args'.
16334
0db8980c
SDJ
163352017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16336 Pedro Alves <palves@redhat.com>
16337
16338 PR gdb/16188
16339 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16340 calls succeeded.
16341 * fork-child.c (trace_start_error): New function.
16342 (trace_start_error_with_name): Likewise.
16343 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16344 * inf-ptrace.c (inf_ptrace_me): Likewise.
16345 * inferior.h (trace_start_error): New prototype.
16346 (trace_start_error_with_name): Likewise.
16347
99e8a4f9
SDJ
163482017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16349
16350 PR gdb/21164
16351 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16352 NULL before using it.
16353 * symmisc.c (maintenance_print_symbols): Likewise.
16354 (maintenance_print_msymbols): Likewise.
16355
4e746bb6
TW
163562017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16357
16358 * NEWS: Add record Python bindings entry.
16359
163602017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16361
16362 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16363 py-record-full.o.
16364 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16365 * python/py-record-btrace.c, python/py-record-btrace.h,
16366 python/py-record-full.c, python/py-record-full.h: New file.
16367 * python/py-record.c: Add include for py-record-btrace.h and
16368 py-record-full.h.
16369 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16370 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16371 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16372 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16373 New definition.
16374 (gdbpy_initialize_btrace): New export.
16375 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16376
163772017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16378
16379 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16380 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16381 * python/py-record.c: New file.
16382 * python/python-internal.h (gdbpy_start_recording,
16383 gdbpy_current_recording, gdpy_stop_recording,
16384 gdbpy_initialize_record): New export.
16385 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16386 (python_GdbMethods): Add gdbpy_start_recording,
16387 gdbpy_current_recording and gdbpy_stop_recording.
16388
163892017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16390
16391 * record-btrace.c (record_btrace_record_method): New function.
16392 (init_record_btrace_ops): Initialize to_record_method.
16393 * record-full.c (record_full_record_method): New function.
16394 (init_record_full_ops, init_record_full_core_ops): Add
16395 record_full_record_method.
16396 * record.h (enum record_method): New enum.
16397 * target-debug.h (target_debug_print_enum_record_method: New define.
16398 * target-delegates.c: Regenerate.
16399 * target.c (target_record_method): New function.
16400 * target.h: Include record.h.
16401 (struct target_ops) <to_record_method>: New field.
16402 (target_record_method): New export.
16403
164042017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16405
16406 * record.h (record_start, record_stop): New export.
16407 * record.c (record_start, record_stop): New function.
16408
164092017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16410
16411 * btrace.c (btrace_fetch): Copy function call segments pointer
16412 into a vector.
16413 (btrace_clear): Clear the vector.
16414 (btrace_find_insn_by_number): Use binary search to find the correct
16415 function call segment.
16416 * btrace.h (brace_fun_p): New typedef.
16417 (struct btrace_thread_info) <functions>: New field.
16418
164192017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16420
16421 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16422 * btrace.c (btrace_decode_error): ... here. New function.
16423 * btrace.h (btrace_decode_error): New export.
16424
164252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16426
16427 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16428 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16429 btrace_find_insn_by_number): Remove special case for gaps.
16430 * btrace.h (btrace_insn_get_error): New export.
16431 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16432 * record-btrace.c (btrace_insn_history): Print number for gaps.
16433 (record_btrace_info, record_btrace_goto): Handle gaps.
16434
3f77c769
TT
164352017-02-14 Tom Tromey <tom@tromey.com>
16436
16437 PR python/13598:
16438 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16439 event.
16440 * python/py-evts.c (gdbpy_initialize_py_events): Add
16441 before_prompt registry.
16442 * python/py-events.h (events_object) <before_prompt>: New field.
16443
4c2c7ac6
MM
164442017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16445
16446 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16447
5cf30ebf
LM
164482017-02-13 Luis Machado <lgustavo@codesourcery.com>
16449
16450 * symfile (_initialize_symfile): Add usage text to the load command's
16451 help text.
16452
26a06916
SM
164532017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16454
16455 * utils.c (defaulted_query): Don't query on secondary UIs.
16456
0b145e37
TT
164572017-02-10 Tom Tromey <tom@tromey.com>
16458
16459 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16460
2d8365c4
TT
164612017-02-10 Tom Tromey <tom@tromey.com>
16462
16463 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16464 "cleanup" local.
16465 * python/py-type.c (typy_legacy_template_argument): Remove
16466 unnecessary "cleanup" local.
16467
2bb8f231
TT
164682017-02-10 Tom Tromey <tom@tromey.com>
16469
16470 * python/python.c (do_start_initialization): New function, from
16471 _initialize_python.
16472 (_initialize_python): Call do_start_initialization.
16473 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16474 goto.
16475
1bdfaf42
TT
164762017-02-10 Tom Tromey <tom@tromey.com>
16477
16478 * python/py-prettyprint.c (pretty_print_one_value): Use
16479 gdbpy_ref.
16480
88b6faea
TT
164812017-02-10 Tom Tromey <tom@tromey.com>
16482
16483 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16484 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16485 gdbpy_ref.
16486 * python/py-type.c (field_new): Use gdbpy_ref.
16487 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16488 gdbpy_ref.
16489 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16490 (py_free_pspace): Likewise.
16491 (pspace_to_pspace_object): Likewise.
16492 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16493 (py_free_objfile): Likewise.
16494 (objfile_to_objfile_object): Likewise.
16495 * python/py-inferior.c (delete_thread_object): Use
16496 gdbpy_ref.
16497 (infpy_read_memory): Likewise.
16498 (py_free_inferior): Likewise.
16499 * python/py-evtregistry.c (create_eventregistry_object): Use
16500 gdbpy_ref.
16501 * python/py-event.c (create_event_object): Use gdbpy_ref.
16502
7780f186
TT
165032017-02-10 Tom Tromey <tom@tromey.com>
16504
16505 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16506 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16507 used.
16508 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16509 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16510 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16511 python/py-framefilter.c, python/py-function.c,
16512 python/py-inferior.c, python/py-infevents.c,
16513 python/py-linetable.c, python/py-newobjfileevent.c,
16514 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16515 python/py-signalevent.c, python/py-stopevent.c,
16516 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16517 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16518 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16519 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16520
d4b0bb18
TT
165212017-02-10 Tom Tromey <tom@tromey.com>
16522
16523 * ui-out.h (ui_out_emit_type): New class.
16524 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16525 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16526 and ui_out_emit_tuple.
16527 (enumerate_locals): Likewise.
16528 (py_mi_print_variables, py_print_locals, py_print_args): Use
16529 ui_out_emit_list.
16530 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16531 ui_out_emit_list.
16532 * common/gdb_optional.h: New file.
16533
f67f945c
MG
165342017-02-10 Martin Galvan <martingalvan@sourceware.org>
16535
16536 * MAINTAINERS (Write After Approval): Update my e-mail address.
16537
18da0c51
MG
165382017-02-10 Martin Galvan <martingalvan@sourceware.org>
16539
16540 PR gdb/21122
16541 * breakpoint.c (_initialize_breakpoint): Update the help description
16542 of the 'commands' command to indicate that it takes a list argument.
16543
62c14536
SM
165442017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16545
16546 * interps.c (current_interp_set_logging): Remove "return".
16547
ff6fa247
GB
165482017-02-09 Gary Benson <gbenson@redhat.com>
16549
16550 * symtab.c (add_symtab_completions): Prevent NULL pointer
16551 dereference.
16552
a474bd8e
PA
165532017-02-08 Pedro Alves <palves@redhat.com>
16554
16555 * interps.c (interp::interp): Remove reference to quiet_p.
16556 (interp_set): Make static. Remove dead "Switching to" output
16557 code.
16558 (interp_quiet_p, interp_set_quiet): Delete.
16559 (interpreter_exec_cmd): Don't set the interpreter quiet.
16560 * interps.h (interp_quiet_p): Make static.
16561 (class interp) <quiet_p>: Remove field
16562
3d7b173c
JG
165632017-02-08 Jerome Guitton <guitton@adacore.com>
16564
604c4576
JG
16565 * cli/cli-decode.c (find_command_name_length): Make it extern.
16566 * cli/cli-decode.h (find_command_name_length): Declare.
16567 * cli/cli-script.c (command_name_equals, line_first_arg):
16568 New functions.
16569 (process_next_line): Use cli-decode to parse command names.
16570 (build_command_line): Make args a constant pointer.
16571
165722017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 16573
3d7b173c
JG
16574 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16575 Remove case-insensitive search.
16576
1291063d
JM
165772017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16578
16579 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16580 at the end of the line. Avoids an ARI warning.
16581
20b477a7
LM
165822017-02-06 Luis Machado <lgustavo@codesourcery.com>
16583
16584 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16585 rdseed instructions.
16586 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16587
3f7b46f2
IR
165882017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16589
16590 PR tdep/20936
16591 Provide and use sparc32 and sparc64 target description XML files.
16592 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16593 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16594 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16595 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16596 * features/sparc/sparc32-solaris.xml: New file.
16597 * features/sparc/sparc64-solaris.xml: New file.
16598 * features/sparc/sparc32-solaris.c: Generated.
16599 * features/sparc/sparc64-solaris.c: Generated.
16600 * sparc-tdep.h: Account for differences in target descriptions.
16601 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16602 (sparc32_register_type): Use target provided registers.
16603 (validate_tdesc_registers): New function.
16604 (sparc32_gdbarch_init): Use tdesc_has_registers.
16605 Set pseudoregister functions.
16606 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16607 (sparc64_register_type): Use target provided registers.
16608 (sparc64_init_abi): Set pseudoregister functions.
16609
f0fd41c1
TT
166102017-02-03 Tom Tromey <tom@tromey.com>
16611
16612 PR rust/21097:
16613 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16614 with a single member.
16615
d6f9b0fb
PA
166162017-02-03 Pedro Alves <palves@redhat.com>
16617
16618 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16619 (cli_interp_base::~cli_interp_base): New.
16620 (cli_interp): New struct.
16621 (as_cli_interp): Cast the interp itself to cli_interp.
16622 (cli_interpreter_pre_command_loop): Rename to ...
16623 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16624 parameter.
16625 (cli_interpreter_init): Rename to ...
16626 (cli_interp::init): ... this. Remove 'self' parameter. Use
16627 boolean. Make extern.
16628 (cli_interpreter_resume): Rename to ...
16629 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16630 extern.
16631 (cli_interpreter_suspend): Rename to ...
16632 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16633 extern.
16634 (cli_interpreter_exec): Rename to ...
16635 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16636 extern.
16637 (cli_interpreter_supports_command_editing): Rename to ...
16638 (cli_interp_base::supports_command_editing): ... this. Remove
16639 'interp' parameter. Make extern.
16640 (cli_ui_out): Rename to ...
16641 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16642 Make extern.
16643 (cli_set_logging): Rename to ...
16644 (cli_interp_base::set_logging): ... this. Remove 'interp'
16645 parameter. Make extern.
16646 (cli_interp_procs): Delete.
16647 (cli_interp_factory): Adjust to use "new".
16648 * cli/cli-interp.h: Include "interps.h".
16649 (struct cli_interp_base): New struct.
16650 * interps.c (struct interp): Delete. Fields moved to interps.h.
16651 (interp_new): Delete.
16652 (interp::interp, interp::~interp): New.
16653 (interp_set): Use bool, and return void. Assume the interpreter
16654 has suspend, init and resume methods, and that the all return
16655 void.
16656 (set_top_level_interpreter): interp_set returns void.
16657 (interp_ui_out): Adapt.
16658 (current_interp_set_logging): Adapt.
16659 (interp_data): Delete.
16660 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16661 (interp_exec): Adapt.
16662 (top_level_interpreter_data): Delete.
16663 * interps.h (interp_init_ftype, interp_resume_ftype)
16664 (interp_suspend_ftype, interp_exec_ftype)
16665 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16666 (class interp): New.
16667 (interp_new): Delete.
16668 (interp_set): Now returns void. Use bool.
16669 (interp_data, top_level_interpreter_data): Delete.
16670 * mi/mi-common.h: Include interps.h.
16671 (class mi_interp): Inherit from interp. Define a ctor. Declare
16672 init, resume, suspect, exec, interp_ui_out, set_logging and
16673 pre_command_loop methods.
16674 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16675 (mi_interpreter_init): Rename to ...
16676 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16677 bool, return void and make extern. Adjust.
16678 (mi_interpreter_resume): ... Rename to ...
16679 (mi_interp::resume): ... this. Remove the 'data' parameter,
16680 return void and make extern. Adjust.
16681 (mi_interpreter_suspend): ... Rename to ...
16682 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16683 return void and make extern. Adjust.
16684 (mi_interpreter_exec): ... Rename to ...
16685 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16686 extern. Adjust.
16687 (mi_interpreter_pre_command_loop): ... Rename to ...
16688 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16689 parameter and make extern.
16690 (mi_on_normal_stop_1): Adjust.
16691 (mi_ui_out): Rename to ...
16692 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16693 parameter and make extern. Adjust.
16694 (mi_set_logging): Rename to ...
16695 (mi_interp::set_logging): ... this. Remove the 'interp'
16696 parameter and make extern. Adjust.
16697 (mi_interp_procs): Delete.
16698 (mi_interp_factory): Adjust to use 'new'.
16699 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16700 (mi_print_exception, mi_execute_command, mi_load_progress):
16701 Adjust.
16702 * tui/tui-interp.c (tui_interp): New class.
16703 (as_tui_interp): Return a tui_interp pointer.
16704 (tui_on_normal_stop, tui_on_signal_received)
16705 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16706 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16707 to use interp::interp_ui_out.
16708 (tui_init): Rename to ...
16709 (tui_interp::init): ... this. Remove the 'self' parameter, use
16710 bool, return void and make extern. Adjust.
16711 (tui_resume): Rename to ...
16712 (tui_interp::resume): ... this. Remove the 'data' parameter,
16713 return void and make extern. Adjust.
16714 (tui_suspend): Rename to ...
16715 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16716 return void and make extern. Adjust.
16717 (tui_ui_out): Rename to ...
16718 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16719 parameter, and make extern. Adjust.
16720 (tui_exec): Rename to ...
16721 (tui_interp::exec): ... this. Remove the 'data' parameter and
16722 make extern.
16723 (tui_interp_procs): Delete.
16724 (tui_interp_factory): Use "new".
16725
65c40c95
TT
167262017-02-02 Tom Tromey <tom@tromey.com>
16727
16728 * rust-exp.y (ends_raw_string, space_then_number)
16729 (rust_identifier_start_p): Return bool.
16730 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16731 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16732 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16733 (rust_chartype_p): Return bool.
16734 (val_print_struct, rust_print_struct_def, rust_print_type):
16735 Update.
16736 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16737 Return bool.
16738
b50f188d
TT
167392017-02-02 Tom Tromey <tom@tromey.com>
16740
16741 * rust-lang.c: Reindent.
16742
03c85b11
TT
167432017-02-02 Tom Tromey <tom@tromey.com>
16744
16745 * rust-lang.h (rust_crate_for_block): Update.
16746 * rust-lang.c (rust_crate_for_block): Return std::string.
16747 (rust_get_disr_info): Use std:;string, not
16748 gdb::unique_xmalloc_ptr.
16749 * rust-exp.y (crate_name): Update.
16750
9b6da501
PA
167512017-02-02 Pedro Alves <palves@redhat.com>
16752
16753 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16754 field out of gdb_disassembler_test and make it static.
16755
ec4cb20b
PA
167562017-02-02 Pedro Alves <palves@redhat.com>
16757
16758 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16759 mi1_interp and mi_interp fields.
16760
5be5dbf0
PA
167612017-02-02 Pedro Alves <palves@redhat.com>
16762
616268b6
PA
16763 * cli/cli-interp.c (struct saved_output_files, saved_output):
16764 Moved from cli/cli-logging.c.
16765 (cli_set_logging): New function.
16766 (cli_interp_procs): Install cli_set_logging.
16767 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16768 Declare.
16769 * cli/cli-logging.c (struct saved_output_files, saved_output):
16770 Moved to cli/cli-interp.c.
16771 (pop_output_files): Don't save outputs here.
16772 (make_logging_output): New function.
16773 (handle_redirections): Don't build tee nor save previous outputs
16774 here.
16775 * interps.c (current_interp_set_logging): Change prototype.
16776 Assume there's always a set_logging_proc method installed.
16777 * interps.h (interp_set_logging_ftype): Change prototype.
16778 (current_interp_set_logging): Change prototype and adjust comment.
16779 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16780 use make_logging_output.
16781 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
167822017-02-02 Pedro Alves <palves@redhat.com>
16783
5be5dbf0
PA
16784 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16785 from ...
16786 (set_logging_overwrite): ... here.
16787 (logging_no_redirect_file): Delete.
16788 (set_logging_redirect): Don't handle redirection on the fly.
16789 Instead warn that "logging off" / "logging on" is necessary.
16790 (pop_output_files): Delete references to logging_no_redirect_file.
16791 (show_logging_command): Always speak in terms of what will happen
16792 once logging is reenabled.
16793
c99cc448
PA
167942017-02-02 Pedro Alves <palves@redhat.com>
16795
16796 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16797
8b172ce7
PA
167982017-02-02 Pedro Alves <palves@redhat.com>
16799
16800 * disasm.c (gdb_pretty_print_insn): Rename to ...
16801 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16802 Remove gdbarch parameter. Adapt to clear the object's buffers
16803 instead of allocating new buffers, and to print using the object's
16804 gdb_disassembler instead of calling gdb_print_insn.
16805 (dump_insns): Use gdb_pretty_print_disassembler.
16806 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16807 (gdb_pretty_print_disassembler): New class.
16808 * record-btrace.c (btrace_insn_history): Use
16809 gdb_pretty_print_disassembler.
16810
d7e74731
PA
168112017-02-02 Pedro Alves <palves@redhat.com>
16812
16813 * ada-lang.c (type_as_string): Use string_file.
16814 * ada-valprint.c (ada_print_floating): Use string_file.
16815 * ada-varobj.c (ada_varobj_scalar_image)
16816 (ada_varobj_get_value_image): Use string_file.
16817 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16818 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16819 * breakpoint.c (update_inserted_breakpoint_locations)
16820 (insert_breakpoint_locations, reattach_breakpoints)
16821 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16822 (print_it_watchpoint): Use string_file.
16823 (save_breakpoints): Use stdio_file.
16824 * c-exp.y (oper): Use string_file.
16825 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16826 tee_file.
16827 (pop_output_files): Use delete.
16828 (handle_redirections): Use stdio_file and tee_file.
16829 * cli/cli-setshow.c (do_show_command): Use string_file.
16830 * compile/compile-c-support.c (c_compute_program): Use
16831 string_file.
16832 * compile/compile-c-symbols.c (generate_vla_size): Take a
16833 'string_file &' instead of a 'ui_file *'.
16834 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16835 of a 'ui_file *'. Use string_file.
16836 (generate_c_for_variable_locations): Take a 'string_file &'
16837 instead of a 'ui_file *'.
16838 * compile/compile-internal.h (generate_c_for_for_one_variable):
16839 Take a 'string_file &' instead of a 'ui_file *'.
16840 * compile/compile-loc2c.c (push, pushf, unary, binary)
16841 (print_label, pushf_register_address, pushf_register)
16842 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16843 'ui_file *'. Adjust.
16844 * compile/compile.c (compile_to_object): Use string_file.
16845 * compile/compile.h (compile_dwarf_expr_to_c)
16846 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16847 'ui_file *'.
16848 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16849 (replace_typedefs_qualified_name): Use string_file and
16850 obstack_copy0.
16851 * disasm.c (gdb_pretty_print_insn): Use string_file.
16852 (gdb_disassembly): Adjust reference the null_stream global.
16853 (do_ui_file_delete): Delete.
16854 (gdb_insn_length): Use null_stream.
16855 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16856 * dwarf2loc.c (dwarf2_compile_property_to_c)
16857 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16858 'string_file &' instead of a 'ui_file *'.
16859 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16860 * dwarf2read.c (do_ui_file_peek_last): Delete.
16861 (dwarf2_compute_name): Use string_file.
16862 * event-top.c (gdb_setup_readline): Use stdio_file.
16863 * gdbarch.sh (verify_gdbarch): Use string_file.
16864 * gdbtypes.c (safe_parse_type): Use null_stream.
16865 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16866 string_file.
16867 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16868 'string_file *' instead of a 'ui_file *'.
16869 (gdbscm_arch_disassemble): Use string_file.
16870 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16871 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16872 inherits from ui_file.
16873 (ioscm_file_port_delete, ioscm_file_port_rewind)
16874 (ioscm_file_port_put): Delete.
16875 (ioscm_file_port_write): Rename to ...
16876 (ioscm_file_port::write): ... this. Remove file_port_magic
16877 checks.
16878 (ioscm_file_port_new): Delete.
16879 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16880 ui_file_up.
16881 * guile/scm-type.c (tyscm_type_name): Use string_file.
16882 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16883 Use string_file.
16884 * infcmd.c (print_return_value_1): Use string_file.
16885 * infrun.c (print_target_wait_results): Use string_file.
16886 * language.c (add_language): Use string_file.
16887 * location.c (explicit_to_string_internal): Use string_file.
16888 * main.c (captured_main_1): Use null_file.
16889 * maint.c (maintenance_print_architecture): Use stdio_file.
16890 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16891 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16892 event_channel>: Change type to mi_console_file pointer.
16893 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16894 (mi_console_file_delete): Delete.
16895 (struct mi_console_file): Delete.
16896 (mi_console_file_magic): Delete.
16897 (mi_console_file_new): Delete.
16898 (mi_console_file::mi_console_file): New.
16899 (mi_console_file_delete): Delete.
16900 (mi_console_file_fputs): Delete.
16901 (mi_console_file::write): New.
16902 (mi_console_raw_packet): Delete.
16903 (mi_console_file::flush): New.
16904 (mi_console_file_flush): Delete.
16905 (mi_console_set_raw): Rename to ...
16906 (mi_console_file::set_raw): ... this.
16907 * mi/mi-console.h (class mi_console_file): New class.
16908 (mi_console_file_new, mi_console_set_raw): Delete.
16909 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16910 (mi_set_logging): Use delete and tee_file. Adjust.
16911 * mi/mi-main.c (output_register): Use string_file.
16912 (mi_cmd_data_evaluate_expression): Use string_file.
16913 (mi_cmd_data_read_memory): Use string_file.
16914 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16915 * mi/mi-out.c (mi_ui_out::main_stream): New.
16916 (mi_ui_out::rewind): Use main_stream and
16917 string_file.
16918 (mi_ui_out::put): Use main_stream and string_file.
16919 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16920 Allocate a 'string_file' instead.
16921 (mi_out_new): Don't allocate a mem_fileopen stream here.
16922 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16923 (mi_ui_out::main_stream): Declare method.
16924 * printcmd.c (eval_command): Use string_file.
16925 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16926 * python/py-arch.c (archpy_disassemble): Use string_file.
16927 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16928 * python/py-frame.c (frapy_str): Use string_file.
16929 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16930 Use string_file.
16931 * python/py-type.c (typy_str): Use string_file.
16932 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16933 * python/py-value.c (valpy_str): Use string_file.
16934 * record-btrace.c (btrace_insn_history): Use string_file.
16935 * regcache.c (regcache_print): Use stdio_file.
16936 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16937 * remote.c (escape_buffer): Use string_file.
16938 * rust-lang.c (rust_get_disr_info): Use string_file.
16939 * serial.c (serial_open_ops_1): Use stdio_file.
16940 (do_serial_close): Use delete.
16941 * stack.c (print_frame_arg): Use string_file.
16942 (print_frame_args): Remove local mem_fileopen stream, not used.
16943 (print_frame): Use string_file.
16944 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16945 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16946 Take a 'string_file *' instead of a 'ui_file *'.
16947 * top.c (new_ui): Use stdio_file and stderr_file.
16948 (free_ui): Use delete.
16949 (execute_command_to_string): Use string_file.
16950 (quit_confirm): Use string_file.
16951 * tracepoint.c (collection_list::append_exp): Use string_file.
16952 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16953 * tui/tui-file.c: Don't include "ui-file.h".
16954 (enum streamtype, struct tui_stream): Delete.
16955 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16956 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16957 (tui_file::tui_file): New method.
16958 (tui_file_fputs): Delete.
16959 (tui_file_get_strbuf): Delete.
16960 (tui_file::puts): New method.
16961 (tui_file_adjust_strbuf): Delete.
16962 (tui_file_flush): Delete.
16963 (tui_file::flush): New method.
16964 * tui/tui-file.h: Tweak intro comment.
16965 Include ui-file.h.
16966 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16967 (tui_file_adjust_strbuf): Delete declarations.
16968 (class tui_file): New class.
16969 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16970 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16971 (tui_register_format): Use string_stream.
16972 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16973 (tui_get_function_from_frame): Use string_file.
16974 * typeprint.c (type_to_string): Use string_file.
16975 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16976 (null_stream): New global.
16977 (ui_file_delete): Delete.
16978 (ui_file::ui_file): New.
16979 (null_file_isatty): Delete.
16980 (ui_file::~ui_file): New.
16981 (null_file_rewind): Delete.
16982 (ui_file::printf): New.
16983 (null_file_put): Delete.
16984 (null_file_flush): Delete.
16985 (ui_file::putstr): New.
16986 (null_file_write): Delete.
16987 (ui_file::putstrn): New.
16988 (null_file_read): Delete.
16989 (ui_file::putc): New.
16990 (null_file_fputs): Delete.
16991 (null_file_write_async_safe): Delete.
16992 (ui_file::vprintf): New.
16993 (null_file_delete): Delete.
16994 (null_file::write): New.
16995 (null_file_fseek): Delete.
16996 (null_file::puts): New.
16997 (ui_file_data): Delete.
16998 (null_file::write_async_safe): New.
16999 (gdb_flush, ui_file_isatty): Adjust.
17000 (ui_file_put, ui_file_rewind): Delete.
17001 (ui_file_write): Adjust.
17002 (ui_file_write_for_put): Delete.
17003 (ui_file_write_async_safe, ui_file_read): Adjust.
17004 (ui_file_fseek): Delete.
17005 (fputs_unfiltered): Adjust.
17006 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17007 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17008 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17009 (set_ui_file_data): Delete.
17010 (string_file::~string_file, string_file::write)
17011 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17012 (do_ui_file_as_string, ui_file_as_string): Delete.
17013 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17014 (struct mem_file): Delete.
17015 (mem_file_new): Delete.
17016 (stdio_file::stdio_file): New.
17017 (mem_file_delete): Delete.
17018 (stdio_file::stdio_file): New.
17019 (mem_fileopen): Delete.
17020 (stdio_file::~stdio_file): New.
17021 (mem_file_rewind): Delete.
17022 (stdio_file::set_stream): New.
17023 (mem_file_put): Delete.
17024 (stdio_file::open): New.
17025 (mem_file_write): Delete.
17026 (stdio_file_magic, struct stdio_file): Delete.
17027 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17028 (stdio_file::flush): New.
17029 (stdio_file_read): Rename to ...
17030 (stdio_file::read): ... this. Adjust.
17031 (stdio_file_write): Rename to ...
17032 (stdio_file::write): ... this. Adjust.
17033 (stdio_file_write_async_safe): Rename to ...
17034 (stdio_file::write_async_safe) ... this. Adjust.
17035 (stdio_file_fputs): Rename to ...
17036 (stdio_file::puts) ... this. Adjust.
17037 (stdio_file_isatty): Delete.
17038 (stdio_file_fseek): Delete.
17039 (stdio_file::isatty): New.
17040 (stderr_file_write): Rename to ...
17041 (stderr_file::write) ... this. Adjust.
17042 (stderr_file_fputs): Rename to ...
17043 (stderr_file::puts) ... this. Adjust.
17044 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17045 (stderr_file::stderr_file): New.
17046 (tee_file_magic): Delete.
17047 (struct tee_file): Delete.
17048 (tee_file::tee_file): New.
17049 (tee_file_new): Delete.
17050 (tee_file::~tee_file): New.
17051 (tee_file_delete): Delete.
17052 (tee_file_flush): Rename to ...
17053 (tee_file::flush): ... this. Adjust.
17054 (tee_file_write): Rename to ...
17055 (tee_file::write): ... this. Adjust.
17056 (tee_file::write_async_safe): New.
17057 (tee_file_fputs): Rename to ...
17058 (tee_file::puts): ... this. Adjust.
17059 (tee_file_isatty): Rename to ...
17060 (tee_file::isatty): ... this. Adjust.
17061 * ui-file.h (struct obstack, struct ui_file): Don't
17062 forward-declare.
17063 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17064 (ui_file_write_ftype)
17065 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17066 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17067 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17068 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17069 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17070 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17071 (set_ui_file_fseek): Delete.
17072 (ui_file_data, ui_file_delete, ui_file_rewind)
17073 (struct ui_file): New.
17074 (ui_file_up): New.
17075 (class null_file): New.
17076 (null_stream): Declare.
17077 (ui_file_write_for_put, ui_file_put): Delete.
17078 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17079 Delete.
17080 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17081 (gdb_fopen, tee_file_new): Delete.
17082 (struct string_file): New.
17083 (struct stdio_file): New.
17084 (stdio_file_up): New.
17085 (struct stderr_file): New.
17086 (class tee_file): New.
17087 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17088 of a 'ui_file *'. Adjust.
17089 * ui-out.h (class ui_out) <field_stream>: Likewise.
17090 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17091 (null_stream): Delete.
17092 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17093 Adjust.
17094 * utils.h (struct ui_file): Delete forward declaration..
17095 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17096 (error_stream): Take a 'string_file &' instead of a
17097 'ui_file *'.
17098 * varobj.c (varobj_value_get_print_value): Use string_file.
17099 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17100 * gdbarch.c: Regenerate.
17101
187808b0
PA
171022017-02-02 Pedro Alves <palves@redhat.com>
17103
17104 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17105 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17106 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17107 Adjust to call gdb_print_insn instead of
17108 gdb_disassembler::print_insn.
17109 (dump_insns, do_mixed_source_and_assembly_deprecated)
17110 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17111 'gdbarch' parameter. Remove gdb_disassembler parameter.
17112 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17113 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17114 declaration.
17115 (gdb_pretty_print_insn): Re-add declaration.
17116 * record-btrace.c (btrace_insn_history): Don't allocate a
17117 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17118
7a8eb317
SM
171192017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17120
17121 * disasm.h (gdb_disassembly): Remove file_string parameter.
17122 * disasm.c (gdb_disassembly): Likewise.
17123 * cli/cli-cmds.c (print_disassembly): Adapt.
17124 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17125 * stack.c (do_gdb_disassembly): Likewise.
17126
7346ef59
AA
171272017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17128
17129 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17130 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17131 targets. And if the implicit value is longer than needed, extract
17132 the first bytes instead of the "least significant" ones.
17133
cd4007e4
MM
171342017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17135
17136 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17137 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17138 (btrace_fetch): Assert can_access_registers_ptid.
17139 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17140 validate_registers_access.
17141
cf77c34e
MM
171422017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17143
17144 * gdbthread.h (can_access_registers_ptid): New.
17145 * thread.c (can_access_registers_ptid): New.
17146
be85ce7d
PA
171472017-02-01 Pedro Alves <palves@redhat.com>
17148
17149 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17150
29b0b251
PA
171512017-01-31 Pedro Alves <palves@redhat.com>
17152
17153 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17154 Fix typos.
17155
289b5b24
PA
171562017-01-31 Pedro Alves <palves@redhat.com>
17157
17158 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17159 not used.
17160
b47413b4
PA
171612017-01-31 Pedro Alves <palves@redhat.com>
17162
17163 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17164
60adb36c
PA
171652017-01-31 Pedro Alves <palves@redhat.com>
17166
17167 * common/scoped_restore.h
17168 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17169 change the value's parameter type to T2.
17170 (make_scoped_restore): Likewise.
17171
2735833d
WT
171722017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17173 Richard Henderson <rth@redhat.com>
17174
17175 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17176 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17177 GS_BASE for older kernels.
17178 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17179 GS_BASE for older kernels.
17180 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17181 and GS_BASE to the offset table.
17182 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17183 system register group.
17184 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17185 for older kernels.
17186 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17187 amd64 ABI.
17188 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17189 AMD64_GSBASE_REGNUM.
17190 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17191 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17192 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17193 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17194 i386/64bit-segments.xml in those rules.
17195 * features/i386/64bit-segments.xml: New file.
17196 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17197 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17198 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17199 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17200 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17201 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17202 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17203 * features/i386/amd64-avx-linux.c: Regenerated.
17204 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17205 * features/i386/amd64-avx-mpx.c: Regenerated.
17206 * features/i386/amd64-avx512-linux.c: Regenerated.
17207 * features/i386/amd64-linux.c: Regenerated.
17208 * features/i386/amd64-mpx-linux.c: Regenerated.
17209 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17210 * features/i386/i386-avx-mpx.c: Regenerated.
17211 * features/i386/x32-avx-linux.c: Regenerated.
17212 * features/i386/x32-avx512-linux.c: Regenerated.
17213 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17214 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17215 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17216 * regformats/i386/amd64-linux.dat: Regenerated.
17217 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17218 * regformats/i386/x32-avx-linux.dat: Regenerated.
17219 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17220 * regformats/i386/x32-linux.dat: Regenerated.
17221
8884e97e
WT
172222017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17223
17224 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17225 Set to AMD64_NUM_REGS.
17226
7005d26a
WT
172272017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17228
17229 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17230 that checks validity of a register number.
17231
4bd2e1b2
KC
172322017-01-27 Kees Cook <keescook@google.com>
17233
17234 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17235 fetch_fpregs if target has fpa registers.
17236 (arm_linux_store_inferior_registers): Call store_fpregs if target
17237 has fpa registers.
17238
7cf1de6c
AA
172392017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17240
17241 * cris-tdep.c (cris_gdbarch_init): Remove check for
17242 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17243
874a1c8c
AT
172442017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17245
17246 * corelow.c (get_core_register_section): Check for regset
17247 existence before checking for REGSET_VARIABLE_SIZE.
17248
d8b49cf0
YQ
172492017-01-26 Yao Qi <yao.qi@linaro.org>
17250 Pedro Alves <palves@redhat.com>
17251
17252 PR gdb/20939
17253 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17254 call memory_error, save memaddr instead.
17255 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17256 negative, cal memory_error.
17257 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17258
658ca58c
YQ
172592017-01-26 Yao Qi <yao.qi@linaro.org>
17260
17261 * disasm-selftests.c (memory_error_test): New function.
17262 (_initialize_disasm_selftests): Register memory_error_test.
17263
79843d45
YQ
172642017-01-26 Yao Qi <yao.qi@linaro.org>
17265
17266 * Makefile.in (SFILES): Add disasm-selftests.c and
17267 selftest-arch.c.
17268 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17269 * disasm-selftests.c: New file.
17270 * selftest-arch.c: New file.
17271 * selftest-arch.h: New file.
17272
8cafda32
YQ
172732017-01-26 Yao Qi <yao.qi@linaro.org>
17274
17275 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17276 to bfd_arch_mep. Don't return 0 if section is not
17277 found. Call print_insn_mep.
17278
e47ad6c0
YQ
172792017-01-26 Pedro Alves <palves@redhat.com>
17280 Yao Qi <yao.qi@linaro.org>
17281
17282 * arm-tdep.c: Include "disasm.h".
17283 (gdb_print_insn_arm): Update code to get gdbarch.
17284 * disasm.c (dis_asm_read_memory): Change it to
17285 gdb_disassembler::dis_asm_read_memory.
17286 (dis_asm_memory_error): Likewise.
17287 (dis_asm_print_address): Likewise.
17288 (gdb_pretty_print_insn): Change it to
17289 gdb_disassembler::pretty_print_insn.
17290 (dump_insns): Add one argument gdb_disassemlber. All
17291 callers updated.
17292 (do_mixed_source_and_assembly_deprecated): Likewise.
17293 (do_mixed_source_and_assembly): Likewise.
17294 (do_assembly_only): Likewise.
17295 (gdb_disassembler::gdb_disassembler): New.
17296 (gdb_disassembler::print_insn): New.
17297 * disasm.h (class gdb_disassembler): New.
17298 (gdb_pretty_print_insn): Remove declaration.
17299 (gdb_disassemble_info): Likewise.
17300 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17301 (gdbscm_disasm_read_memory_worker): Update.
17302 (gdbscm_disasm_read_memory): Update.
17303 (gdbscm_disasm_memory_error): Remove.
17304 (gdbscm_disasm_print_address): Remove.
17305 (gdbscm_disassembler::gdbscm_disassembler): New.
17306 (gdbscm_print_insn_from_port): Update.
17307 * mips-tdep.c: Include disasm.h.
17308 (gdb_print_insn_mips): Update code to get gdbarch.
17309 * record-btrace.c (btrace_insn_history): Update.
17310 * spu-tdep.c: Include disasm.h.
17311 (struct spu_dis_asm_data): Remove.
17312 (struct spu_dis_asm_info): New.
17313 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17314 SPU id.
17315 (gdb_print_insn_spu): Cast disassemble_info to
17316 spu_dis_asm_info.
17317
80d75874
YQ
173182017-01-26 Yao Qi <yao.qi@linaro.org>
17319
17320 * disasm.c (do_ui_file_delete): Delete.
17321 (gdb_insn_length): Move code creating stream to ...
17322 * utils.c (null_stream): ... here. New function.
17323 * utils.h (null_stream): Declare.
17324
60685cd0
SM
173252017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17326
17327 * python/py-inferior.c (find_thread_object): Return directly
17328 from the loop. Remove "found" variable.
17329
eb1cdb62
JB
173302017-01-21 Joel Brobecker <brobecker@adacore.com>
17331
17332 GDB 7.12.1 released.
17333
b1ce6568
SM
173342017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17335
17336 * python/py-function.c (fnpy_call): Reorder declarations to have
17337 the gdbpy_enter object declared first.
17338 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17339
6f8b0407
SM
173402017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17341
fec93fb1 17342 PR python/21068
6f8b0407
SM
17343 * python/python-internal.h (PyMem_RawMalloc): Define for
17344 Python < 3.4.
17345 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17346 PyMem_RawMalloc instead of PyMem_Malloc.
17347
78cbbba8
LM
173482017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17349 Luis Machado <lgustavo@codesourcery.com>
17350
17351 * NEWS (New commands): Mention flash-erase.
17352 (New MI commands): Mention target-flash-erase.
17353 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17354 command.
17355 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17356 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17357 * target.c (flash_erase_command): New function.
17358 (initialize_targets): Add new flash-erase command.
17359 * target.h (flash_erase_command): New declaration.
17360
2132fe85
JB
173612017-01-20 Joel Brobecker <brobecker@adacore.com>
17362
17363 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17364 HAVE_SYS_PROCFS_H is defined.
17365
d1dff226
AH
173662017-01-18 Alan Hayward <alan.hayward@arm.com>
17367
17368 * remote.c (struct cached_reg): Change data into a pointer.
17369 * (stop_reply_dtr): Free data pointers before deleting vector.
17370 (process_stop_reply): Likewise.
17371 (remote_parse_stop_reply): Allocate space for data
17372
9890e433
AH
173732017-01-18 Alan Hayward <alan.hayward@arm.com>
17374
17375 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17376 MAX_REGISTER_SIZE.
17377 (amd64_pseudo_register_read_value): Likewise.
17378 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17379 (store_register_using_P): Likewise.
17380 * regcache.c (regcache_xfer_part): Likewise.
17381
7a36499a
IR
173822017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17383
17384 Split real and pseudo registers.
17385 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17386 (sparc32_pseudo_regnum): New enum.
17387 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17388 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17389 (SPARC32_CP0_REGISTERS): New macro.
17390 (sparc32_pseudo_register_name): New function.
17391 (sparc32_register_name): Use sparc32_pseudo_register_name.
17392 (sparc32_pseudo_register_type): New function.
17393 (sparc32_register_type): Use sparc32_pseudo_register_type.
17394 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17395 pseudo register numbers.
17396 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17397 (SPARC64_CP0_REGISTERS): New macro.
17398 (sparc64_pseudo_register_name): New function.
17399 (sparc64_register_name): Use sparc64_pseudo_register_name.
17400 (sparc64_pseudo_register_type): New function.
17401 (sparc64_register_type): Use sparc64_pseudo_register_type.
17402 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17403 pseudo register numbers.
17404 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17405 sparc64_store_arguments): Handle pseudo register numbers.
17406
6f8976bf
YQ
174072017-01-13 Yao Qi <yao.qi@linaro.org>
17408
17409 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17410 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17411 output.
17412 (getpkt_or_notif_sane_1): Likewise.
17413
e4241ace
YQ
174142017-01-13 Yao Qi <yao.qi@linaro.org>
17415
17416 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17417 of CC. Pass "-x c++-header" instead of "-x c".
17418
3015c064
SM
174192017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17420
17421 * remote.c (remote_can_async_p): Update comment.
17422
fde1b17d
SM
174232017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17424
17425 * linux-nat.c (linux_nat_can_async_p): Update comment.
17426
ca1ca08b
SM
174272017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17428
17429 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17430
4ad2da73
SM
174312017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17432
17433 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17434
c8b23b3f
TT
174352017-01-10 Tom Tromey <tom@tromey.com>
17436
17437 * python/py-type.c (typy_legacy_template_argument): Update.
17438 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17439 ~demangle_parse_info): Declare new members.
17440 (cp_demangled_name_to_comp): Return unique_ptr.
17441 (cp_demangled_name_parse_free)
17442 (make_cleanup_cp_demangled_name_parse_free)
17443 (cp_new_demangle_parse_info): Remove.
17444 * cp-support.c (do_demangled_name_parse_free_cleanup)
17445 (make_cleanup_cp_demangled_name_parse_free): Remove.
17446 (inspect_type, cp_canonicalize_string_full)
17447 (cp_canonicalize_string): Update.
17448 (mangled_name_to_comp): Change return type.
17449 (cp_class_name_from_physname, method_name_from_physname)
17450 (cp_func_name, cp_remove_params): Update.
17451 * cp-name-parser.y (demangle_parse_info): New constructor, from
17452 cp_new_demangle_parse_info.
17453 (~demangle_parse_info): New destructor, from
17454 cp_demangled_name_parse_free.
17455 (cp_merge_demangle_parse_infos): Update.
17456 (cp_demangled_name_to_comp): Change return type.
17457
1ac32117
TT
174582017-01-10 Tom Tromey <tom@tromey.com>
17459
17460 * top.c (prevent_dont_repeat): Change return type.
17461 * python/python.c (execute_gdb_command): Use std::string.
17462 Update.
17463 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17464 * command.h (prevent_dont_repeat): Change return type.
17465 * breakpoint.c (bpstat_do_actions_1): Update.
17466
0cf08227
TT
174672017-01-10 Tom Tromey <tom@tromey.com>
17468
17469 * value.h (scoped_value_mark::~scoped_value_mark): Call
17470 free_to_mark.
17471 (scoped_value_mark::free_to_mark): New method.
17472 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17473 scoped_value_mark.
17474
eb115069
TT
174752017-01-10 Tom Tromey <tom@tromey.com>
17476
17477 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17478 (valpy_reference_value, valpy_const_value, valpy_get_address)
17479 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17480 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17481 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17482 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17483 scoped_value_mark.
17484 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17485 * value.h (scoped_value_mark): New class.
17486
906768f9
TT
174872017-01-10 Tom Tromey <tom@tromey.com>
17488
17489 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17490 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17491 * psymtab.c (discard_psymtabs_upto): Remove.
17492 (make_cleanup_discard_psymtabs): Remove.
17493 (struct psymtab_state): Remove.
17494
bef155c3
TT
174952017-01-10 Tom Tromey <tom@tromey.com>
17496
17497 * record-full.c (record_full_save_cleanups): Remove.
17498 (record_full_save): Use gdb::unlinker.
17499 * gcore.c (do_bfd_delete_cleanup): Remove.
17500 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17501 cleanups.
17502 * dwarf2read.c (unlink_if_set): Remove.
17503 (write_psymtabs_to_index): Use gdb::unlinker.
17504 * common/gdb_unlinker.h: New file.
17505
192b62ce
TT
175062017-01-10 Tom Tromey <tom@tromey.com>
17507
17508 * windows-tdep.c (windows_xfer_shared_library): Update.
17509 * windows-nat.c (windows_make_so): Update.
17510 * utils.h (make_cleanup_bfd_unref): Remove.
17511 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17512 * symfile.h (symfile_bfd_open)
17513 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17514 * symfile.c (read_symbols, symbol_file_add)
17515 (separate_debug_file_exists): Update.
17516 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17517 (generic_load, reread_symbols): Update.
17518 * symfile-mem.c (symbol_file_add_from_memory): Update.
17519 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17520 (spu_symbol_file_add_from_memory): Update.
17521 * solist.h (struct target_so_ops) <bfd_open>: Return
17522 gdb_bfd_ref_ptr.
17523 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17524 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17525 gdb_bfd_ref_ptr.
17526 (solib_map_sections, reload_shared_libraries_1): Update.
17527 * solib-svr4.c (enable_break): Update.
17528 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17529 * solib-frv.c (enable_break2): Update.
17530 * solib-dsbt.c (enable_break): Update.
17531 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17532 gdb_bfd_ref_ptr.
17533 (darwin_solib_get_all_image_info_addr_at_init): Update.
17534 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17535 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17536 * record-full.c (record_full_save): Update.
17537 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17538 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17539 * minidebug.c (find_separate_debug_file_in_section): Return
17540 gdb_bfd_ref_ptr.
17541 * machoread.c (macho_add_oso_symfile): Change abfd to
17542 gdb_bfd_ref_ptr.
17543 (macho_symfile_read_all_oso): Update.
17544 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17545 (macho_symfile_read): Update.
17546 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17547 (jit_bfd_try_read_symtab): Update.
17548 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17549 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17550 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17551 gdb_bfd_ref_ptr.
17552 (gdb_bfd_ref_policy): New struct.
17553 (gdb_bfd_ref_ptr): New typedef.
17554 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17555 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17556 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17557 gdb_bfd_ref_ptr.
17558 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17559 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17560 (gcore_command): Update.
17561 * exec.c (exec_file_attach): Update.
17562 * elfread.c (elf_symfile_read): Update.
17563 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17564 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17565 (open_and_init_dwo_file): Update.
17566 (open_dwp_file): Return gdb_bfd_ref_ptr.
17567 (open_and_init_dwp_file): Update.
17568 * corelow.c (core_open): Update.
17569 * compile/compile-object-load.c (compile_object_load): Update.
17570 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17571 * coffread.c (coff_symfile_read): Update.
17572 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17573 gdb_bfd_ref_ptr. Rename.
17574 (dump_bfd_file, restore_command): Update.
17575 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17576 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17577 (find_separate_debug_file_by_buildid): Update.
17578
50315b21
TT
175792017-01-10 Tom Tromey <tom@tromey.com>
17580
17581 * common/gdb_ref_ptr.h: New file.
17582 * python/py-ref.h (struct gdbpy_ref_policy): New.
17583 (gdbpy_ref): Now a typedef.
17584
fc4007c9
TT
175852017-01-10 Tom Tromey <tom@tromey.com>
17586
17587 * utils.h (make_cleanup_htab_delete): Don't declare.
17588 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17589 Remove.
17590 * linespec.c (decode_compound_collector): Add constructor,
17591 destructor.
17592 (lookup_prefix_sym): Remove cleanup.
17593 (symtab_collector): Add constructor, destructor.
17594 (collect_symtabs_from_filename): Remove cleanup.
17595 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17596 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17597 Use htab_up.
17598 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17599 * dwarf2read.c (dw2_expand_symtabs_matching)
17600 (dw2_map_symbol_filenames, dwarf_decode_macros)
17601 (write_psymtabs_to_index): Use htab_up.
17602 * dwarf2loc.c (func_verify_no_selftailcall)
17603 (call_site_find_chain_1, func_verify_no_selftailcall)
17604 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17605 std::vector, gdb::unique_xmalloc_ptr.
17606 (call_sitep): Remove typedef.
17607 (dwarf2_locexpr_baton_eval): Remove unused variable.
17608
8dbcee67
TT
176092017-01-10 Tom Tromey <tom@tromey.com>
17610
17611 * python/python-internal.h (make_cleanup_py_decref)
17612 (make_cleanup_py_xdecref): Don't declare.
17613 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17614 (py_xdecref, make_cleanup_py_xdecref): Remove.
17615
13df46cc
TT
176162017-01-10 Tom Tromey <tom@tromey.com>
17617
17618 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17619 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17620
06fc9bf7
TT
176212017-01-10 Tom Tromey <tom@tromey.com>
17622
17623 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17624
830a4934
TT
176252017-01-10 Tom Tromey <tom@tromey.com>
17626
17627 * python/py-utils.c (unicode_to_encoded_string)
17628 (python_string_to_target_string)
17629 (python_string_to_target_python_string)
17630 (python_string_to_host_string, gdbpy_obj_to_string)
17631 (get_addr_from_python): Use gdbpy_ref.
17632
4586d543
TT
176332017-01-10 Tom Tromey <tom@tromey.com>
17634
17635 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17636 gdbpy_ref.
17637
59876f8f
TT
176382017-01-10 Tom Tromey <tom@tromey.com>
17639
17640 * python/python.c (eval_python_command, gdbpy_decode_line)
17641 (gdbpy_run_events, gdbpy_start_type_printers)
17642 (gdbpy_apply_type_printers): Use gdbpy_ref.
17643
97d83487
TT
176442017-01-10 Tom Tromey <tom@tromey.com>
17645
17646 * python/py-param.c (get_doc_string, compute_enum_values): Use
17647 gdbpy_ref.
17648
9205649a
TT
176492017-01-10 Tom Tromey <tom@tromey.com>
17650
17651 * python/py-inferior.c (find_thread_object, build_inferior_list):
17652 Use gdbpy_ref.
17653
74c49d45
TT
176542017-01-10 Tom Tromey <tom@tromey.com>
17655
17656 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17657
16361ffb
TT
176582017-01-10 Tom Tromey <tom@tromey.com>
17659
17660 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17661 gdbpy_ref.
17662
905f2cca
TT
176632017-01-10 Tom Tromey <tom@tromey.com>
17664
17665 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17666 extra incref.
17667 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17668 Use gdbpy_ref.
17669
64081434
TT
176702017-01-10 Tom Tromey <tom@tromey.com>
17671
17672 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17673 gdbpy_ref.
17674
59e9e831
TT
176752017-01-10 Tom Tromey <tom@tromey.com>
17676
17677 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17678 decref results of PyArg_ParseTupleAndKeywords.
17679
9de10f6d
TT
176802017-01-10 Tom Tromey <tom@tromey.com>
17681
17682 * python/python.c (python_run_simple_file): Use
17683 unique_xmalloc_ptr, gdbpy_ref.
17684
2bd5759d
TT
176852017-01-10 Tom Tromey <tom@tromey.com>
17686
17687 * python/py-prettyprint.c (print_stack_unless_memory_error)
17688 (print_string_repr, print_children): Use gdbpy_ref.
17689 (dummy_python_frame): New class.
17690 (dummy_python_frame::dummy_python_frame): Rename from
17691 push_dummy_python_frame.
17692 (py_restore_tstate): Remove.
17693
3b4e0e01
TT
176942017-01-10 Tom Tromey <tom@tromey.com>
17695
17696 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17697
17a22718
TT
176982017-01-10 Tom Tromey <tom@tromey.com>
17699
17700 * python/python.c (ensure_python_env, restore_python_env):
17701 Remove.
17702 * python/python-internal.h (ensure_python_env): Don't declare.
17703 * varobj.h (varobj_ensure_python_env): Don't declare.
17704 * varobj.c (varobj_ensure_python_env): Remove.
17705
68cdc557
TT
177062017-01-10 Tom Tromey <tom@tromey.com>
17707
17708 * varobj.c (varobj_value_get_print_value): Use
17709 gdbpy_enter_varobj.
17710
1eba6383
TT
177112017-01-10 Tom Tromey <tom@tromey.com>
17712
17713 * python/py-prettyprint.c (print_string_repr, print_children):
17714 Update.
17715 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17716 of "encoding".
17717 * varobj.c (varobj_value_get_print_value): Update.
17718 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17719
bde7b3e3
TT
177202017-01-10 Tom Tromey <tom@tromey.com>
17721
17722 * varobj.c (varobj_get_display_hint)
17723 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17724 (varobj_set_visualizer, free_variable): Use
17725 gdbpy_enter_varobj.
17726
a7785f8c
TT
177272017-01-10 Tom Tromey <tom@tromey.com>
17728
17729 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17730 (do_finish_initialization): New function. Use gdbpy_ref.
17731 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17732 do_finish_initialization.
17733
2865bfce
TT
177342017-01-10 Tom Tromey <tom@tromey.com>
17735
17736 * python/py-param.c (get_set_value, get_show_value): Use
17737 gdbpy_enter, gdbpy_ref.
17738
0e9dcc75
TT
177392017-01-10 Tom Tromey <tom@tromey.com>
17740
17741 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17742
12a5cedd
TT
177432017-01-10 Tom Tromey <tom@tromey.com>
17744
17745 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17746
788f2586
TT
177472017-01-10 Tom Tromey <tom@tromey.com>
17748
17749 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17750 Use gdbpy_enter_varobj.
17751
6cd67bea
TT
177522017-01-10 Tom Tromey <tom@tromey.com>
17753
17754 * varobj.c (gdbpy_enter_varobj): New constructor.
17755 * python/python-internal.h (gdbpy_enter_varobj): New class.
17756 * python/py-varobj.c (py_varobj_get_iterator): Use
17757 gdbpy_enter_varobj.
17758
14b122bf
TT
177592017-01-10 Tom Tromey <tom@tromey.com>
17760
17761 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17762 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17763 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17764 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17765 unique_xmalloc_ptr.
17766 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17767
bf1ca3b9
TT
177682017-01-10 Tom Tromey <tom@tromey.com>
17769
17770 * python/py-xmethods.c (invoke_match_method): Use
17771 gdbpy_ref.
17772
572a5524
TT
177732017-01-10 Tom Tromey <tom@tromey.com>
17774
17775 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17776 gdbpy_enter, gdbpy_ref.
17777
396a78b6
TT
177782017-01-10 Tom Tromey <tom@tromey.com>
17779
17780 * python/python.c (python_interactive_command): Use gdbpy_enter.
17781
a88b13c7
TT
177822017-01-10 Tom Tromey <tom@tromey.com>
17783
17784 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17785 gdbpy_ref.
17786
e9f0c363
TT
177872017-01-10 Tom Tromey <tom@tromey.com>
17788
17789 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17790 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17791
6349f452
TT
177922017-01-10 Tom Tromey <tom@tromey.com>
17793
17794 * utils.h (htab_deleter): New struct.
17795 (htab_up): New typedef.
17796 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17797 gdbpy_enter, gdbpy_ref, htab_up.
17798
c0171de6
TT
177992017-01-10 Tom Tromey <tom@tromey.com>
17800
17801 * python/py-unwind.c (pending_frame_invalidate): Remove.
17802 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17803
f18e226f
TT
178042017-01-10 Tom Tromey <tom@tromey.com>
17805
17806 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17807 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17808
c57af3f1
TT
178092017-01-10 Tom Tromey <tom@tromey.com>
17810
17811 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17812
60e600ec
TT
178132017-01-10 Tom Tromey <tom@tromey.com>
17814
17815 * python/python.c (gdbpy_eval_from_control_command)
17816 (gdbpy_source_script, gdbpy_run_events)
17817 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17818 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17819 gdbpy_enter.
17820
bf7da5b0
TT
178212017-01-10 Tom Tromey <tom@tromey.com>
17822
17823 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17824
2d38bced
TT
178252017-01-10 Tom Tromey <tom@tromey.com>
17826
17827 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17828
07bc7329
TT
178292017-01-10 Tom Tromey <tom@tromey.com>
17830
17831 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17832 (python_on_inferior_call_pre, python_on_inferior_call_post)
17833 (python_on_memory_change, python_on_register_change)
17834 (python_inferior_exit, python_new_objfile, add_thread_object)
17835 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17836
6e7c365e
TT
178372017-01-10 Tom Tromey <tom@tromey.com>
17838
17839 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17840 (bpfinishpy_handle_exit): Use gdbpy_enter.
17841
6ba0cd40
TT
178422017-01-10 Tom Tromey <tom@tromey.com>
17843
17844 * python/py-cmd.c (cmdpy_destroyer)
17845 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17846 gdbpy_enter.
17847
de2dc875
TT
178482017-01-10 Tom Tromey <tom@tromey.com>
17849
17850 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17851 gdbpy_enter.
17852 (gdbpy_breakpoint_has_cond): Likewise.
17853
4ecee2c4
TT
178542017-01-10 Tom Tromey <tom@tromey.com>
17855
17856 * python/python.c (gdbpy_enter): New constructor.
17857 (~gdbpy_enter): New destructor.
17858 (restore_python_env, ensure_python_env): Rewrite.
17859 * python/python-internal.h (gdbpy_enter): New class.
17860
37fce74f
TT
178612017-01-10 Tom Tromey <tom@tromey.com>
17862
17863 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17864
53a0cca3
TT
178652017-01-10 Tom Tromey <tom@tromey.com>
17866
17867 * python/py-value.c (value_has_field, get_field_flag)
17868 (get_field_type, valpy_getitem, convert_value_from_python): Use
17869 gdbpy_ref.
17870
ff3724f5
TT
178712017-01-10 Tom Tromey <tom@tromey.com>
17872
17873 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17874 gdbpy_ref.
17875
0700aea5
TT
178762017-01-10 Tom Tromey <tom@tromey.com>
17877
17878 * python/py-prettyprint.c (search_pp_list)
17879 (find_pretty_printer_from_objfiles)
17880 (find_pretty_printer_from_progspace)
17881 (find_pretty_printer_from_gdb, find_pretty_printer)
17882 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17883 gdbpy_ref.
17884
1bb44c9f
TT
178852017-01-10 Tom Tromey <tom@tromey.com>
17886
17887 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17888
87ce03fd
TT
178892017-01-10 Tom Tromey <tom@tromey.com>
17890
17891 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17892 (ltpy_get_all_source_lines): Use gdbpy_ref.
17893
ee0a3fb8
TT
178942017-01-10 Tom Tromey <tom@tromey.com>
17895
17896 * python/py-framefilter.c (extract_sym, extract_value)
17897 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17898 gdbpy_ref.
17899
bf2a52fa
TT
179002017-01-10 Tom Tromey <tom@tromey.com>
17901
17902 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17903
f59fe7f8
TT
179042017-01-10 Tom Tromey <tom@tromey.com>
17905
17906 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17907
80bd970a
TT
179082017-01-10 Tom Tromey <tom@tromey.com>
17909
17910 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17911 gdbpy_ref.
17912
d1b3de2e
TT
179132017-01-10 Tom Tromey <tom@tromey.com>
17914
17915 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17916
3bb43384
TT
179172017-01-10 Tom Tromey <tom@tromey.com>
17918
17919 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17920 (typy_range): Use gdbpy_ref.
17921
abf5651e
TT
179222017-01-10 Tom Tromey <tom@tromey.com>
17923
17924 * python/py-threadevent.c (create_thread_event_object): Use
17925 gdbpy_ref.
17926 * python/py-stopevent.c (create_stop_event_object): Simplify.
17927 (emit_stop_event): Use gdbpy_ref.
17928 * python/py-signalevent.c (create_signal_event_object): Use
17929 gdbpy_ref.
17930 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17931 (emit_new_objfile_event, create_clear_objfiles_event_object)
17932 (emit_clear_objfiles_event): Use gdbpy_ref.
17933 * python/py-infevents.c (create_inferior_call_event_object)
17934 (create_register_changed_event_object)
17935 (create_memory_changed_event_object, emit_inferior_call_event)
17936 (emit_memory_changed_event, emit_register_changed_event): Use
17937 gdbpy_ref.
17938 * python/py-exitedevent.c (create_exited_event_object)
17939 (emit_exited_event): Use gdbpy_ref.
17940 * python/py-event.h (evpy_emit_event): Remove
17941 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17942 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17943 * python/py-continueevent.c (emit_continue_event): Use
17944 gdbpy_ref.
17945 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17946 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17947 gdbpy_ref.
17948 * python/py-bpevent.c (create_breakpoint_event_object): Use
17949 gdbpy_ref.
17950
a68ff33e
TT
179512017-01-10 Tom Tromey <tom@tromey.com>
17952
17953 * python/py-ref.h: New file.
17954
7becfd03
SM
179552017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17956
17957 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17958 void.
17959 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17960 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17961 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17962 * ui-out.c (ui_out::redirect): Likewise.
17963 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17964 * cli/cli-logging.c (set_logging_redirect): Update call site of
17965 ui_out::redirect.
17966 (handle_redirections): Likewise.
17967 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17968 * top.c (execute_command_to_string): Likewise.
17969 * utils.c (do_ui_out_redirect_pop): Likewise.
17970
df294654
SM
179712017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17972
17973 * stack.c (_initialize_stack): Update "frame" command help message.
17974
f5e6296e
IB
179752017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17976
17977 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17978
0e2d6fa6
YQ
179792017-01-06 Yao Qi <yao.qi@linaro.org>
17980
17981 * x86-linux-nat.h: Include gdb_proc_service.h.
17982
44d6d3f9
YQ
179832017-01-06 Yao Qi <yao.qi@linaro.org>
17984
17985 * ser-base.h: Include serial.h.
17986
656731fe
YQ
179872017-01-06 Yao Qi <yao.qi@linaro.org>
17988
17989 * ppc-linux-tdep.h: Include ppc-tdep.h.
17990
1ca8f924
YQ
179912017-01-06 Yao Qi <yao.qi@linaro.org>
17992
17993 * nat/amd64-linux-siginfo.h: Include signal.h.
17994
bc3008c4
YQ
179952017-01-06 Yao Qi <yao.qi@linaro.org>
17996
17997 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17998
66c80d03
YQ
179992017-01-06 Yao Qi <yao.qi@linaro.org>
18000
18001 * mi/mi-parse.h: Include mi-cmds.h.
18002
051d2dda
YQ
180032017-01-06 Yao Qi <yao.qi@linaro.org>
18004
18005 * inf-loop.c: Don't include "target.h".
18006 * inf-loop.h: Include it here.
18007
8018d34f
YQ
180082017-01-06 Yao Qi <yao.qi@linaro.org>
18009
18010 * dfp.h: Include "dboulest.h" and "expression.h".
18011
c0b8369c
YQ
180122017-01-06 Yao Qi <yao.qi@linaro.org>
18013
18014 * ax-gdb.h: Include "ax.h".
18015
ad5cba2a
YQ
180162017-01-06 Yao Qi <yao.qi@linaro.org>
18017
18018 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18019 with nat/gdb_ptrace.h.
18020
1c33cd7f
YQ
180212017-01-05 Yao Qi <yao.qi@linaro.org>
18022
18023 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18024 new line.
18025 (mips64_fbsd_sigframe_init): Likewise.
18026
c988ac1d
JB
180272017-01-04 John Baldwin <jhb@FreeBSD.org>
18028
18029 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18030 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18031
b268007c
JB
180322017-01-04 John Baldwin <jhb@FreeBSD.org>
18033
18034 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18035 * NEWS: Mention new FreeBSD/mips native configuration.
18036 * config/mips/fbsd.mh: New file.
18037 * configure.host: Add mips*-*-freebsd*.
18038 * mips-fbsd-nat.c: New file.
18039
387360da
JB
180402017-01-04 John Baldwin <jhb@FreeBSD.org>
18041
18042 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18043 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18044 * NEWS: Mention new FreeBSD/mips target.
18045 * configure.tgt: Add mips*-*-freebsd*.
18046 * mips-fbsd-tdep.c: New file.
18047 * mips-fbsd-tdep.h: New file.
18048
2aaaf250
YQ
180492017-01-04 Yao Qi <yao.qi@linaro.org>
18050
18051 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18052 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18053
61baf725
JB
180542017-01-01 Joel Brobecker <brobecker@adacore.com>
18055
6dbb839a 18056 Update copyright year range in all GDB files.
61baf725 18057
c113e7ff 180582017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 18059
c113e7ff 18060 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 18061
c113e7ff 18062For older changes see ChangeLog-2016.
c906108c
SS
18063\f
18064Local Variables:
18065mode: change-log
18066left-margin: 8
18067fill-column: 74
18068version-control: never
57da7796 18069coding: utf-8
c906108c 18070End:
This page took 2.855287 seconds and 4 git commands to generate.