Add target method for converting thread handle to thread_info struct pointer
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e04ee09e
KB
12017-09-21 Kevin Buettner <kevinb@redhat.com>
2
3 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
4 (target_thread_handle_to_thread_info): Declare.
5 * target.c (target_thread_handle_to_thread_info): New function.
6 * target-delegates.c: Regenerate.
7 * gdbthread.h (find_thread_by_handle): Declare.
8 * thread.c (find_thread_by_handle): New function.
9 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
10 function.
11 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
12
1e5b66ed
SM
132017-09-21 Simon Marchi <simon.marchi@ericsson.com>
14
15 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
16
ebe48ba0
SM
172017-09-21 Simon Marchi <simon.marchi@ericsson.com>
18
19 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
20
0a0bf5dc
YQ
212017-09-21 Yao Qi <yao.qi@linaro.org>
22
23 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
24 to gdb_target_obs.
25
d1b0a7bf
TT
262017-09-20 Tom Tromey <tom@tromey.com>
27
28 * breakpoint.c (struct counted_command_line): Remove.
29 (breakpoint_commands): Update.
30 (alloc_counted_command_line, incref_counted_command_line)
31 (decref_counted_command_line, do_cleanup_counted_command_line)
32 (make_cleanup_decref_counted_command_line): Remove.
33 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
34 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
35 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
36 (save_breakpoints): Update.
37 * breakpoint.h (counted_command_line): Now a typedef to
38 shared_ptr.
39 (struct breakpoint) <commands>: Now a counted_command_line.
40 (struct bpstats) <command>: Likewise.
41
48649e1b
TT
422017-09-20 Tom Tromey <tom@tromey.com>
43
44 * breakpoint.c (struct commands_info, do_map_commands_command):
45 Remove.
46 (commands_command_1): Update.
47 (iterate_over_related_breakpoints): Take a function_view.
48 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
49 (delete_command): Update.
50 (map_breakpoint_numbers): Take a function_view.
51 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
52 (disable_command): Update.
53 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
54 (enable_command): Update.
55 (struct disp_data, do_enable_breakpoint_disp)
56 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
57 (do_map_enable_delete_breakpoint): Remove.
58 (enable_once_command, enable_count_command, enable_delete_command)
59 (delete_trace_variable_command): Update.
60
04afa70c
TT
612017-09-20 Tom Tromey <tom@tromey.com>
62
63 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
64 (bpstat_clear): Use delete.
65 (bpstats): New constructors.
66 (bpstat_copy, bpstat_stop_status): Use new.
67 (dprintf_after_condition_true): Update.
68 * breakpoint.h (bpstats::bpstats): Add constructors.
69 (bpstats::~bpstats): Add destructor.
70
c83833f4
PA
712017-09-20 Pedro Alves <palves@redhat.com>
72
73 * eval.c (make_params): Delete, refactored as ...
74 (class fake_method): ... this new type's ctor.
75 (fake_method::~fake_method): New.
76 (evaluate_subexp_standard): Use 'fake_method'.
77
223ffa71
TT
782017-09-20 Tom Tromey <tom@tromey.com>
79
80 * windows-nat.c (get_windows_debug_event, windows_wait)
81 (do_initial_windows_stuff, windows_attach): Update.
82 * utils.c (vwarning, internal_vproblem): Update.
83 (ui_unregister_input_event_handler_cleanup)
84 (prepare_to_handle_input): Remove.
85 (class scoped_input_handler): New.
86 (defaulted_query, prompt_for_continue): Update.
87 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
88 Update.
89 * top.c (undo_terminal_modifications_before_exit): Update.
90 * target/target.h (target_terminal_init, target_terminal_inferior)
91 (target_terminal_ours): Don't declare.
92 (class target_terminal): New.
93 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
94 (target_terminal_ours_for_output)
95 (make_cleanup_restore_target_terminal): Don't declare.
96 (target_terminal_info): Remove.
97 * target.c (enum terminal_state, terminal_state): Remove.
98 (target_terminal::terminal_state): Define.
99 (target_terminal::init): Rename from target_terminal_init.
100 (target_terminal::inferior): Rename from
101 target_terminal_inferior.
102 (target_terminal::ours): Rename from target_terminal_ours.
103 (target_terminal::ours_for_output): Rename from
104 target_terminal_ours_for_output.
105 (target_terminal::info): New method.
106 (cleanup_restore_target_terminal)
107 (make_cleanup_restore_target_terminal): Remove.
108 * solib.c (handle_solib_event): Update.
109 * remote.c (remote_serial_quit_handler): Update.
110 (remote_terminal_inferior, remote_wait_as): Update.
111 * record-full.c (record_full_wait_1): Update.
112 * nto-procfs.c (procfs_create_inferior): Update.
113 * nat/fork-inferior.c (startup_inferior): Update.
114 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
115 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
116 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
117 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
118 (mi_breakpoint_created, mi_breakpoint_deleted)
119 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
120 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
121 (mi_user_selected_context_changed, report_initial_inferior):
122 Update.
123 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
124 (linux_nat_terminal_inferior): Update.
125 * infrun.c (follow_fork_inferior)
126 (handle_vfork_child_exec_or_exit, do_target_resume)
127 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
128 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
129 Update.
130 * inflow.c (child_terminal_init, info_terminal_command): Update.
131 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
132 (attach_command): Update.
133 * infcall.c (call_thread_fsm_should_stop): Update.
134 * gnu-nat.c (gnu_attach): Update.
135 * extension.c (struct active_ext_lang_state)
136 (restore_active_ext_lang): Update.
137 * exceptions.c (print_flush): Update.
138 * event-top.c (async_enable_stdin, default_quit_handler): Update.
139 (struct quit_handler_cleanup_data, restore_quit_handler)
140 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
141 Remove.
142 * cp-support.c (gdb_demangle): Update.
143 * breakpoint.c (update_inserted_breakpoint_locations)
144 (insert_breakpoint_locations, handle_jit_event)
145 (disable_breakpoints_in_unloaded_shlib): Update.
146 * annotate.c (annotate_breakpoints_invalid)
147 (annotate_frames_invalid): Update.
148
013af3fc
TT
1492017-09-20 Tom Tromey <tom@tromey.com>
150
151 * main.c (catch_command_errors): Rename from
152 catch_command_errors_const.
153 (captured_main_1): Update.
154
06871ae8
PA
1552017-09-20 Pedro Alves <palves@redhat.com>
156
157 * cli/cli-cmds.c (list_command): Use print_sal_location.
158 (print_sal_location): New function.
159 (ambiguous_line_spec): Use print_sal_location.
160 * linespec.c (symbol_to_sal): Record the symbol in the sal.
161 * symtab.c (find_function_start_sal): Likewise.
162 * symtab.h (symtab_and_line::symbol): New field.
163
e5f25bc5
PA
1642017-09-20 Pedro Alves <palves@redhat.com>
165
166 * linespec.c (minsym_found): Handle non-text minsyms.
167 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
168
1b7fa39e
WT
1692017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
170
171 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
172 backslash.
173
37dd0825
WT
1742017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
175
176 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
177 vmovups instead vmovaps.
178 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
179
4e5a4f58
JB
1802017-09-19 John Baldwin <jhb@FreeBSD.org>
181
182 * NEWS (Changes since GDB 8.0): Add starti.
183 * infcmd.c (enum run_break): New.
184 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
185 case.
186 (run_command): Use enum run_how.
187 (start_command): Likewise.
188 (starti_command): New function.
189 (RUN_ARGS_HELP): New macro.
190 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
191 commands. Add starti command.
192
aa70c9f1
YQ
1932017-09-19 Yao Qi <yao.qi@linaro.org>
194
195 * Makefile.in (monitor.o): Remove the rule.
196
d6541620
YQ
1972017-09-19 Yao Qi <yao.qi@linaro.org>
198
199 * annotate.h (struct annotate_arg_emitter): Use
200 DISABLE_COPY_AND_ASSIGN.
201 * common/refcounted-object.h (refcounted_object): Likewise.
202 * completer.h (struct completion_result): Likewise.
203 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
204 * filename-seen-cache.h (filename_seen_cache): Likewise.
205 * gdbcore.h (thread_section_name): Likewise.
206 * gdb_regex.h (compiled_regex): Likewise.
207 * gdbthread.h (scoped_restore_current_thread): Likewise.
208 * inferior.h (scoped_restore_current_inferior): Likewise.
209 * jit.c (jit_reader): Likewise.
210 * linespec.h (struct linespec_result): Likewise.
211 * mi/mi-parse.h (struct mi_parse): Likewise.
212 * nat/fork-inferior.c (execv_argv): Likewise.
213 * progspace.h (scoped_restore_current_program_space): Likewise.
214 * python/python-internal.h (class gdbpy_enter): Likewise.
215 * regcache.h (regcache): Likewise.
216 * target-descriptions.c (struct tdesc_reg): Likewise.
217 (struct tdesc_type): Likewise.
218 (struct tdesc_feature): Likewise.
219 * ui-out.h (ui_out_emit_type): Likewise.
220
0615127c
SM
2212017-09-18 Simon Marchi <simon.marchi@ericsson.com>
222
223 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
224 label abort_expression.
225
5e187554
SM
2262017-09-16 Simon Marchi <simon.marchi@ericsson.com>
227
228 * common/buffer.c (buffer_xml_printf): Adjust.
229 * common/xml-utils.c (xml_escape_text): Change return type to
230 std::string, update code accordingly.
231 * common/xml-utils.h (xml_escape_text): Change return type to
232 std::string.
233 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
234 * windows-tdep.c (windows_xfer_shared_library): Adjust.
235 * unittests/xml-utils-selftests.c (test_xml_escape_text):
236 Adjust.
237
c3d7b541
SM
2382017-09-16 Simon Marchi <simon.marchi@ericsson.com>
239
240 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
241 (SUBDIR_UNITTESTS_OBS): Add new object file.
242 * unittests/xml-utils-selftests.c: New file.
243
1526853e
SM
2442017-09-16 Simon Marchi <simon.marchi@ericsson.com>
245
246 * common/selftest.h (selftest): New struct/interface.
247 (register_test): Add name parameter, add new overload.
248 (run_tests): Add filter parameter.
249 (for_each_selftest_ftype): New typedef.
250 (for_each_selftest): New declaration.
251 * common/selftest.c (tests): Change type to
252 map<string, unique_ptr<selftest>>.
253 (simple_selftest): New struct.
254 (register_test): New function.
255 (register_test): Add name parameter and use it.
256 (run_tests): Add filter parameter and use it. Add prints.
257 Adjust to vector -> map change.
258 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
259 registering selftests.
260 * arm-tdep.c (_initialize_arm_tdep): Likewise.
261 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
262 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
263 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
264 * findvar.c (_initialize_findvar): Likewise.
265 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
266 * maint.c (maintenance_selftest): Update call to run_tests.
267 (maintenance_info_selftests): New function.
268 (_initialize_maint_cmds): Register "maintenance info selftests"
269 command. Update "maintenance selftest" doc.
270 * regcache.c (_initialize_regcache): Add names when registering
271 selftests.
272 * rust-exp.y (_initialize_rust_exp): Likewise.
273 * selftest-arch.c (gdbarch_selftest): New struct.
274 (gdbarch_tests): Remove.
275 (register_test_foreach_arch): Add name parameter. Call
276 register_test.
277 (tests_with_arch): Remove, move most content to
278 gdbarch_selftest::operator().
279 (_initialize_selftests_foreach_arch): Remove.
280 * selftest-arch.h (register_test_foreach_arch): Add name
281 parameter.
282 (run_tests_with_arch): New declaration.
283 * utils-selftests.c (_initialize_utils_selftests): Add names
284 when registering selftests.
285 * utils.c (_initialize_utils): Likewise.
286 * unittests/array-view-selftests.c
287 (_initialize_array_view_selftests): Likewise.
288 * unittests/environ-selftests.c (_initialize_environ_selftests):
289 Likewise.
290 * unittests/function-view-selftests.c
291 (_initialize_function_view_selftests): Likewise.
292 * unittests/offset-type-selftests.c
293 (_initialize_offset_type_selftests): Likewise.
294 * unittests/optional-selftests.c
295 (_initialize_optional_selftests): Likewise.
296 * unittests/scoped_restore-selftests.c
297 (_initialize_scoped_restore_selftests): Likewise.
298 * NEWS: Document "maintenance selftest" and "maint info
299 selftests".
300
5846367a
SM
3012017-09-16 Simon Marchi <simon.marchi@ericsson.com>
302
303 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
304 scoped_restore.
305
bd77e8ff
SM
3062017-09-16 Simon Marchi <simon.marchi@ericsson.com>
307
308 * mi/mi-main.c (mi_load_progress): Make uiout variable
309 a unique_ptr.
310
26a67918
PA
3112017-09-15 Pedro Alves <palves@redhat.com>
312
313 * compile/compile-c-types.c (convert_enum, convert_int)
314 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
315
3f8a7804
SM
3162017-09-15 Simon Marchi <simon.marchi@ericsson.com>
317
318 * dwarf2read.c (copy_string): Remove.
319 (parse_macro_definition): Replace copy_string with savestring.
320
8d200706
YQ
3212017-09-15 Yao Qi <yao.qi@linaro.org>
322
323 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
324 gdb_target_obs.
325 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
326 Likewise.
327 (i[34567]86-*-linux*): Likewise.
328
d185219d
SM
3292017-09-14 Simon Marchi <simon.marchi@ericsson.com>
330
331 * dwarf2expr.h (dwarf_stack_value): Add constructor.
332 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
333 <stack>: Change type to std::vector.
334 <stack_len, stack_allocated>: Remove.
335 <grow_stack>: Remove.
336 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
337 (dwarf_expr_context::~dwarf_expr_context): Remove.
338 (dwarf_expr_context::grow_stack): Remove.
339 (dwarf_expr_context::push): Adjust.
340 (dwarf_expr_context::pop): Adjust.
341 (dwarf_expr_context::fetch): Adjust.
342 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
343 (dwarf_expr_context::stack_empty_p): Adjust.
344 (dwarf_expr_context::execute_stack_op): Adjust.
345
eccd80d6
SM
3462017-09-14 Simon Marchi <simon.marchi@ericsson.com>
347
348 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
349 return type to bool.
350 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
351
69009882
SM
3522017-09-14 Simon Marchi <simon.marchi@ericsson.com>
353
354 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
355 Change type to bool.
356 (dwarf_stack_value) <in_stack_memory>: Likewise.
357 (dwarf_expr_context) <push_address>: Change parameter type to
358 bool.
359 <fetch_in_stack_memory>: Change return type to bool.
360 <push>: Change parameter type to bool.
361 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
362 to bool.
363 (dwarf_expr_context::push_address): Likewise.
364 (dwarf_expr_context::fetch_in_stack_memory): Change return type
365 to bool.
366 (dwarf_expr_context::execute_stack_op): Adjust.
367 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
368
1e467161
SM
3692017-09-14 Simon Marchi <simon.marchi@ericsson.com>
370
371 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
372 (struct dwarf_expr_context) <n_pieces>: Remove.
373 <pieces>: Change type to std::vector.
374 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
375 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
376 pieces.
377 (dwarf_expr_context::add_piece): Adjust.
378 * dwarf2loc.c (struct piece_closure): Initialize fields.
379 <n_pieces>: Remove.
380 <pieces>: Change type to std::vector.
381 (allocate_piece_closure): Adjust, change parameter to
382 std::vector rvalue and std::move it to piece_closure.
383 (rw_pieced_value): Adjust.
384 (check_pieced_synthetic_pointer): Adjust.
385 (indirect_synthetic_pointer): Adjust.
386 (coerce_pieced_ref): Adjust.
387 (free_pieced_value_closure): Adjust. Use delete to free
388 piece_closure.
389 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
390 to allocate_piece_closure.
391 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
392
0782db84
SM
3932017-09-12 Simon Marchi <simon.marchi@ericsson.com>
394
395 * probe.h (probe_ops_cp): Remove typedef.
396 (DEF_VEC_P (probe_ops_cp)): Remove.
397 (all_probe_ops): Change type to std::vector.
398 * probe.c (info_probes_for_ops): Adjust to vector change.
399 (probe_linespec_to_ops): Likewise.
400 (all_probe_ops): Change type to std::vector.
401 (_initialize_probe): Adjust to vector change.
402 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
403 * elfread.c (elf_get_probes): Likewise.
404 * stap-probe.c (_initialize_stap_probe): Likewise.
405
1eac6bea
SM
4062017-09-12 Simon Marchi <simon.marchi@ericsson.com>
407
408 * probe.h (struct bound_probe): Define constructors.
409 * probe.c (bound_probe_s): Remove typedef.
410 (DEF_VEC_O (bound_probe_s)): Remove VEC.
411 (collect_probes): Change return type to std::vector, remove
412 cleanup.
413 (compare_probes): Return bool, change parameter type. Change
414 semantic to "less than".
415 (gen_ui_out_table_header_info): Change parameter to std::vector
416 and update.
417 (exists_probe_with_pops): Likewise.
418 (info_probes_for_ops): Update to std::vector change.
419 (enable_probes_command): Likewise.
420 (disable_probes_command): Likewise.
421
aaa63a31
SM
4222017-09-12 Simon Marchi <simon.marchi@ericsson.com>
423
424 * probe.h (struct probe_ops) <get_probes>: Change parameter from
425 vec to std::vector.
426 * probe.c (parse_probes_in_pspace): Update.
427 (find_probes_in_objfile): Update.
428 (find_probe_by_pc): Update.
429 (collect_probes): Update.
430 (probe_any_get_probes): Update.
431 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
432 return type to reference to std::vector.
433 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
434 std::vector and update.
435 (dtrace_process_dof): Likewise.
436 (dtrace_get_probes): Likewise.
437 * elfread.c (elf_get_probes): Change return type to std::vector,
438 store an std::vector in bfd_data.
439 (probe_key_free): Update to std::vector.
440 * stap-probe.c (handle_stap_probe): Change parameter to
441 std::vector and update.
442 (stap_get_probes): Likewise.
443 * symfile-debug.c (debug_sym_get_probes): Change return type to
444 std::vector and update.
445
cb85b21b
TT
4462017-09-11 Tom Tromey <tom@tromey.com>
447
448 * breakpoint.c (program_breakpoint_here_p): Update.
449 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
450 from make_show_memory_breakpoints_cleanup. Return a
451 scoped_restore_tmpl<int>.
452 (restore_show_memory_breakpoints): Remove.
453 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
454 * mem-break.c (memory_validate_breakpoint): Update.
455 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
456 (ia64_memory_remove_breakpoint): Update.
457 (ia64_breakpoint_from_pc): Update.
458 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
459 from make_show_memory_breakpoints_cleanup.
460
8fbc99ef
TT
4612017-09-11 Tom Tromey <tom@tromey.com>
462
463 * d-namespace.c (d_lookup_symbol): Use std::string.
464 (find_symbol_in_baseclass): Likewise.
465
50feb4bd
TT
4662017-09-11 Tom Tromey <tom@tromey.com>
467
468 * ctf.c (ctf_start): Use std::string.
469
c6dc63a1
TT
4702017-09-11 Tom Tromey <tom@tromey.com>
471
472 * ada-lang.c (is_known_support_routine): Update.
473 (ada_unhandled_exception_name_addr_from_raise): Update.
474 * guile/scm-frame.c (gdbscm_frame_name): Update.
475 * python/py-frame.c (frapy_name): Update.
476 (frapy_function): Update.
477 * stack.h (find_frame_funname): Update.
478 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
479 (print_frame): Update.
480
d6b9b80f
TT
4812017-09-11 Tom Tromey <tom@tromey.com>
482
483 * findcmd.c (put_bits): Take a gdb::byte_vector.
484 (parse_find_args): Return gdb::byte_vector. "args" now const.
485 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
486 cleanups.
487 (find_command): Update.
488
a9921622
TT
4892017-09-11 Tom Tromey <tom@tromey.com>
490
491 * cli/cli-script.c (class scoped_restore_hook_in): New.
492 (clear_hook_in_cleanup): Remove.
493 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
494 scoped_restore_hook_in.
495
be0d7abb
TT
4962017-09-11 Tom Tromey <tom@tromey.com>
497
498 * cli/cli-script.c (restore_interp): Remove.
499 (read_command_lines): Use scoped_restore_interp.
500 * interps.c (scoped_restore_interp::set_temp): Rename from
501 interp_set_temp.
502 * interps.h (class scoped_restore_interp): New.
503 (interp_set_temp): Remove.
504
00f675ff
TT
5052017-09-11 Tom Tromey <tom@tromey.com>
506
507 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
508 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
509 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
510 scoped_restore.
511 (mi_cmd_break_insert_1): Update.
512 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
513 scoped_restore.
514
cb791d59
TT
5152017-09-11 Tom Tromey <tom@tromey.com>
516
517 * demangle.c (demangle_command): Update.
518 * breakpoint.c (disable_command): Update.
519 (enable_command): Update.
520 (find_location_by_number): Make "number" const. Use
521 get_number_trailer.
522 * cli/cli-utils.c (extract_arg): Return std::string.
523 * probe.c (parse_probe_linespec): Update. Change types.
524 (collect_probes): Take string arguments.
525 (parse_probe_linespec): Likewise.
526 (info_probes_for_ops): Update.
527 (enable_probes_command): Update.
528 (disable_probes_command): Update.
529 * break-catch-sig.c (catch_signal_split_args): Update.
530 * mi/mi-parse.c (mi_parse): Update.
531
2039bd9f
TT
5322017-09-11 Tom Tromey <tom@tromey.com>
533
534 * language.h (language_enum): Make argument const.
535 * language.c (language_enum): Make argument const.
536
f1735a53
TT
5372017-09-11 Tom Tromey <tom@tromey.com>
538
539 * common/common-utils.h (skip_to_space): Remove macro, redeclare
540 as function.
541 (skip_to_space): Rename from skip_to_space_const.
542 * common/common-utils.c (skip_to_space): New function.
543 (skip_to_space): Rename from skip_to_space_const.
544 * cli/cli-utils.h (get_number): Rename from get_number_const.
545 (extract_arg): Rename from extract_arg_const.
546 * cli/cli-utils.c (get_number): Rename from get_number_const.
547 (extract_arg): Rename from extract_arg_const.
548 (number_or_range_parser::get_number): Use ::get_number.
549 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
550 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
551 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
552 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
553 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
554 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
555 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
556 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
557
7d221d74
TT
5582017-09-11 Tom Tromey <tom@tromey.com>
559
560 * python/python.c (do_start_initialization): Use
561 py-event-types.def to initialize types.
562 Define all object type structures.
563 * python/python-internal.h: Don't declare event initialization
564 functions.
565 * python/py-threadevent.c (thread_event_object_type): Don't
566 define.
567 * python/py-stopevent.c (stop_event_object_type): Don't define.
568 * python/py-signalevent.c (signal_event_object_type): Don't
569 declare or define.
570 * python/py-newobjfileevent.c (new_objfile_event_object_type)
571 (clear_objfiles_event_object_type): Don't declare or define.
572 * python/py-infevents.c (inferior_call_pre_event_object_type)
573 (inferior_call_post_event_object_type)
574 (register_changed_event_object_type)
575 (memory_changed_event_object_type): Don't declare or define.
576 * python/py-inferior.c (new_thread_event_object_type)
577 (new_inferior_event_object_type)
578 (inferior_deleted_event_object_type): Don't declare or define.
579 * python/py-exitedevent.c (exited_event_object_type): Don't
580 declare or define.
581 * python/py-evts.c (gdbpy_initialize_py_events): Use
582 py-all-events.def.
583 * python/py-events.h (thread_event_object_type): Don't declare.
584 (events_object): Use py-all-events.def.
585 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
586 py-event-types.def.
587 * python/py-event-types.def: New file.
588 * python/py-continueevent.c (create_continue_event_object): Don't
589 declare or define.
590 * python/py-bpevent.c (breakpoint_event_object_type): Don't
591 declare or define.
592 * python/py-all-events.def: New file.
593
35c61a1d
TT
5942017-09-11 Tom Tromey <tom@tromey.com>
595
596 * python/py-threadevent.c (create_thread_event_object): Return
597 gdbpy_ref.
598 * python/py-stopevent.h (create_stop_event_object)
599 (create_breakpoint_event_object, create_signal_event_object):
600 Update.
601 * python/py-stopevent.c (create_stop_event_object): Return
602 gdbpy_ref.
603 (emit_stop_event): Update.
604 * python/py-signalevent.c (create_signal_event_object): Return
605 gdbpy_ref.
606 * python/py-infevents.c (create_inferior_call_event_object):
607 Update.
608 * python/py-event.h (create_event_object)
609 (create_thread_event_object): Update.
610 * python/py-event.c (create_event_object): Return gdbpy_ref.
611 * python/py-continueevent.c: Return gdbpy_ref.
612 * python/py-bpevent.c (create_breakpoint_event_object): Return
613 gdbpy_ref.
614
7c96f8c1
TT
6152017-09-11 Tom Tromey <tom@tromey.com>
616
617 PR python/15622:
618 * NEWS: Add entry.
619 * python/python.c (do_start_initialization): Initialize new event
620 types.
621 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
622 (gdbpy_initialize_inferior_deleted_event)
623 (gdbpy_initialize_new_thread_event): Declare.
624 * python/py-threadevent.c (create_thread_event_object): Add option
625 "thread" parameter.
626 * python/py-inferior.c (new_thread_event_object_type)
627 (new_inferior_event_object_type)
628 (inferior_deleted_event_object_type): Declare.
629 (python_new_inferior, python_inferior_deleted): New functions.
630 (add_thread_object): Emit new_thread event.
631 (gdbpy_initialize_inferior): Attach new functions to corresponding
632 observers.
633 (new_thread, new_inferior, inferior_deleted): Define new event
634 types.
635 * python/py-evts.c (gdbpy_initialize_py_events): Add new
636 registries.
637 * python/py-events.h (events_object) <new_inferior,
638 inferior_deleted, new_thread>: New fields.
639 * python/py-event.h (create_thread_event_breakpoint): Add optional
640 "thread" parameter.
641
72542b8e
AB
6422017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
645 check current_ui instead.
646 (internal_vproblem): Likewise.
647
0d64823e
SM
6482017-09-09 Simon Marchi <simon.marchi@ericsson.com>
649
650 * thread.c (print_thread_info_1): Remove unnecessary calls to
651 uiout->is_mi_like_p.
652
eb1e02fd
TT
6532017-09-09 Tom Tromey <tom@tromey.com>
654
655 * namespace.h (add_using_directive): Update.
656 * namespace.c (add_using_directive): Change type of excludes to
657 std::vector.
658 * dwarf2read.c (read_import_statement): Use std::vector.
659 (read_namespace): Update.
660 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
661
0fc21fd8
TT
6622017-09-09 Tom Tromey <tom@tromey.com>
663
664 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
665
49663d05
TT
6662017-09-09 Tom Tromey <tom@tromey.com>
667
668 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
669
0b868b60
TT
6702017-09-09 Tom Tromey <tom@tromey.com>
671
672 * stack.c (func_command): Use gdb::def_vector.
673
c0470d48
TT
6742017-09-09 Tom Tromey <tom@tromey.com>
675
676 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
677 ui_out_emit_list, ui_out_emit_tuple.
678 (mi_cmd_var_update): Likewise.
679
ca5909c7
TT
6802017-09-09 Tom Tromey <tom@tromey.com>
681
682 * mi/mi-interp.c (mi_user_selected_context_changed): Use
683 ui_out_redirect_pop.
684 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
685 ui_out_redirect_pop.
686 * utils.c (do_ui_out_redirect_pop)
687 (make_cleanup_ui_out_redirect_pop): Remove.
688 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
689 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
690 * ui-out.h (ui_out_redirect_pop): New class.
691
e6a2252a
TT
6922017-09-09 Tom Tromey <tom@tromey.com>
693
694 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
695 (list_available_thread_groups, mi_cmd_list_thread_groups)
696 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
697 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
698 Likewise.
699
393702cd
TT
7002017-09-09 Tom Tromey <tom@tromey.com>
701
702 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
703 ui_out_emit_tuple.
704
76f9c9cf
TT
7052017-09-09 Tom Tromey <tom@tromey.com>
706
707 * target.c (flash_erase_command): Use ui_out_emit_tuple.
708 * stack.c (print_frame): Use ui_out_emit_tuple.
709 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
710 (info_spu_mailbox_command, info_spu_dma_command)
711 (info_spu_proxydma_command): Likewise.
712 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
713 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
714 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
715 ui_out_emit_tuple.
716 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
717
dc9fe180
TT
7182017-09-09 Tom Tromey <tom@tromey.com>
719
720 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
721 (class ui_out_emit_table): Update comment.
722 * ui-out.c (do_cleanup_table_end)
723 (make_cleanup_ui_out_table_begin_end): Remove.
724 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
725 (info_spu_dma_cmdlist): Likewise.
726 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
727 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
728 ui_out_emit_table.
729
f8cc3da6
TT
7302017-09-09 Tom Tromey <tom@tromey.com>
731
732 * thread.c (print_thread_info_1): Use ui_out_emit_table,
733 ui_out_emit_list, gdb::optional.
734
481695ed
JB
7352017-09-09 John Baldwin <jhb@FreeBSD.org>
736
737 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
738 prototype.
739 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
740 prototype.
741 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
742 prototype.
743 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
744 * ada-exp.y: Remove _initialize_ada_exp prototype.
745 * ada-lang.c: Remove _initialize_ada_language prototype.
746 * ada-tasks.c: Remove _initialize_tasks prototype.
747 * addrmap.c: Remove _initialize_addrmap prototype.
748 * agent.c: Remove _initialize_agent prototype.
749 * aix-thread.c: Remove _initialize_aix_thread prototype.
750 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
751 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
752 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
753 prototype.
754 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
755 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
756 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
757 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
758 prototype.
759 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
760 prototype.
761 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
762 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
763 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
764 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
765 prototype.
766 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
767 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
768 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
769 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
770 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
771 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
772 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
773 prototype.
774 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
775 prototype.
776 * annotate.c: Remove _initialize_annotate prototype.
777 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
778 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
779 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
780 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
781 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
782 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
783 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
784 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
785 prototype.
786 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
787 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
788 * auto-load.c: Remove _initialize_auto_load prototype.
789 * auxv.c: Remove _initialize_auxv prototype.
790 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
791 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
792 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
793 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
794 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
795 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
796 prototype.
797 * break-catch-throw.c: Remove _initialize_break_catch_throw
798 prototype.
799 * breakpoint.c: Remove _initialize_breakpoint prototype.
800 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
801 * btrace.c: Remove _initialize_btrace prototype.
802 * charset.c: Remove _initialize_charset prototype.
803 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
804 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
805 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
806 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
807 * cli/cli-script.c: Remove _initialize_cli_script prototype.
808 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
809 * coffread.c: Remove _initialize_coffread prototype.
810 * compile/compile.c: Remove _initialize_compile prototype.
811 * complaints.c: Remove _initialize_complaints prototype.
812 * completer.c: Remove _initialize_completer prototype.
813 * copying.awk: Remove _initialize_copying prototype.
814 * copying.c: Regenerate.
815 * core-regset.c: Remove _initialize_core_regset prototype.
816 * corefile.c: Remove _initialize_core prototype.
817 * corelow.c: Remove _initialize_corelow prototype.
818 * cp-abi.c: Remove _initialize_cp_abi prototype.
819 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
820 * cp-support.c: Remove _initialize_cp_support prototype.
821 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
822 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
823 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
824 * ctf.c: Remove _initialize_ctf prototype.
825 * d-lang.c: Remove _initialize_d_language prototype.
826 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
827 prototype.
828 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
829 * dbxread.c: Remove _initialize_dbxread prototype.
830 * dcache.c: Remove _initialize_dcache prototype.
831 * demangle.c: Remove _initialize_demangler prototype.
832 * disasm-selftests.c: Remove _initialize_disasm_selftests
833 prototype.
834 * disasm.c: Remove _initialize_disasm prototype.
835 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
836 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
837 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
838 prototype.
839 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
840 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
841 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
842 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
843 * elfread.c: Remove _initialize_elfread prototype.
844 * exec.c: Remove _initialize_exec prototype.
845 * extension.c: Remove _initialize_extension prototype.
846 * f-lang.c: Remove _initialize_f_language prototype.
847 * f-valprint.c: Remove _initialize_f_valprint prototype.
848 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
849 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
850 * filesystem.c: Remove _initialize_filesystem prototype.
851 * findcmd.c: Remove _initialize_mem_search prototype.
852 * fork-child.c: Remove _initialize_fork_child prototype.
853 * frame-base.c: Remove _initialize_frame_base prototype.
854 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
855 * frame.c: Remove _initialize_frame prototype.
856 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
857 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
858 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
859 * gcore.c: Remove _initialize_gcore prototype.
860 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
861 * gdbarch.c: Regenerate.
862 * gdbarch.sh: Remove _initialize_gdbarch prototype.
863 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
864 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
865 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
866 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
867 * go-lang.c: Remove _initialize_go_language prototype.
868 * go32-nat.c: Remove _initialize_go32_nat prototype.
869 * guile/guile.c: Remove _initialize_guile prototype.
870 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
871 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
872 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
873 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
874 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
875 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
876 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
877 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
878 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
879 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
880 prototype.
881 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
882 prototype.
883 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
884 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
885 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
886 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
887 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
888 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
889 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
890 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
891 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
892 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
893 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
894 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
895 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
896 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
897 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
898 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
899 prototype.
900 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
901 prototype.
902 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
903 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
904 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
905 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
906 * infcall.c: Remove _initialize_infcall prototype.
907 * infcmd.c: Remove _initialize_infcmd prototype.
908 * inferior.c: Remove _initialize_inferiors prototype.
909 * inflow.c: Remove _initialize_inflow prototype.
910 * infrun.c: Remove _initialize_infrun prototype.
911 * interps.c: Remove _initialize_interpreter prototype.
912 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
913 * jit.c: Remove _initialize_jit prototype.
914 * language.c: Remove _initialize_language prototype.
915 * linux-fork.c: Remove _initialize_linux_fork prototype.
916 * linux-nat.c: Remove _initialize_linux_nat prototype.
917 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
918 * linux-thread-db.c: Remove _initialize_thread_db prototype.
919 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
920 * m2-lang.c: Remove _initialize_m2_language prototype.
921 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
922 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
923 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
924 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
925 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
926 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
927 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
928 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
929 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
930 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
931 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
932 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
933 * machoread.c: Remove _initialize_machoread prototype.
934 * macrocmd.c: Remove _initialize_macrocmd prototype.
935 * macroscope.c: Remove _initialize_macroscope prototype.
936 * maint.c: Remove _initialize_maint_cmds prototype.
937 * mdebugread.c: Remove _initialize_mdebugread prototype.
938 * memattr.c: Remove _initialize_mem prototype.
939 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
940 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
941 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
942 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
943 * mi/mi-main.c: Remove _initialize_mi_main prototype.
944 * microblaze-linux-tdep.c: Remove
945 _initialize_microblaze_linux_tdep prototype.
946 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
947 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
948 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
949 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
950 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
951 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
952 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
953 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
954 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
955 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
956 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
957 prototype.
958 * mipsread.c: Remove _initialize_mipsread prototype.
959 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
960 prototype.
961 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
962 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
963 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
964 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
965 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
966 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
967 prototype.
968 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
969 * nto-procfs.c: Remove _initialize_procfs prototype.
970 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
971 * objc-lang.c: Remove _initialize_objc_language prototype.
972 * objfiles.c: Remove _initialize_objfiles prototype.
973 * observer.c: Remove observer_test_first_notification_function,
974 observer_test_second_notification_function,
975 observer_test_third_notification_function, and
976 _initialize_observer prototypes.
977 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
978 * osabi.c: Remove _initialize_gdb_osabi prototype.
979 * osdata.c: Remove _initialize_osdata prototype.
980 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
981 * parse.c: Remove _initialize_parse prototype.
982 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
983 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
984 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
985 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
986 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
987 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
988 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
989 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
990 * printcmd.c: Remove _initialize_printcmd prototype.
991 * probe.c: Remove _initialize_probe prototype.
992 * proc-api.c: Remove _initialize_proc_api prototype.
993 * proc-events.c: Remove _initialize_proc_events prototype.
994 * proc-service.c: Remove _initialize_proc_service prototype.
995 * procfs.c: Remove _initialize_procfs prototype.
996 * psymtab.c: Remove _initialize_psymtab prototype.
997 * python/python.c: Remove _initialize_python prototype.
998 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
999 * record-btrace.c: Remove _initialize_record_btrace prototype.
1000 * record-full.c: Remove _initialize_record_full prototype.
1001 * record.c: Remove _initialize_record prototype.
1002 * regcache.c: Remove _initialize_regcache prototype.
1003 * reggroups.c: Remove _initialize_reggroup prototype.
1004 * remote-notif.c: Remove _initialize_notif prototype.
1005 * remote-sim.c: Remove _initialize_remote_sim prototype.
1006 * remote.c: Remove _initialize_remote prototype.
1007 * reverse.c: Remove _initialize_reverse prototype.
1008 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1009 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1010 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1011 prototype.
1012 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1013 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1014 * rust-exp.y: Remove _initialize_rust_exp prototype.
1015 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1016 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1017 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1018 * score-tdep.c: Remove _initialize_score_tdep prototype.
1019 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1020 prototype.
1021 * ser-go32.c: Remove _initialize_ser_dos prototype.
1022 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1023 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1024 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1025 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1026 * serial.c: Remove _initialize_serial prototype.
1027 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1028 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1029 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1030 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1031 * skip.c: Remove _initialize_step_skip prototype.
1032 * sol-thread.c: Remove _initialize_sol_thread prototype.
1033 * solib-aix.c: Remove _initialize_solib_aix prototype.
1034 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1035 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1036 * solib-frv.c: Remove _initialize_frv_solib prototype.
1037 * solib-spu.c: Remove _initialize_spu_solib prototype.
1038 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1039 * solib-target.c: Remove _initialize_solib_target prototype.
1040 * solib.c: Remove _initialize_solib prototype.
1041 * source.c: Remove _initialize_source prototype.
1042 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1043 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1044 prototype.
1045 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1046 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1047 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1048 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1049 prototype.
1050 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1051 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1052 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1053 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1054 prototype.
1055 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1056 prototype.
1057 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1058 prototype.
1059 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1060 prototype.
1061 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1062 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1063 prototype.
1064 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1065 prototype.
1066 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1067 prototype.
1068 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1069 prototype.
1070 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1071 prototype.
1072 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1073 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1074 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1075 * stabsread.c: Remove _initialize_stabsread prototype.
1076 * stack.c: Remove _initialize_stack prototype.
1077 * stap-probe.c: Remove _initialize_stap_probe prototype.
1078 * std-regs.c: Remove _initialize_frame_reg prototype.
1079 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1080 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1081 * symfile.c: Remove _initialize_symfile prototype.
1082 * symmisc.c: Remove _initialize_symmisc prototype.
1083 * symtab.c: Remove _initialize_symtab prototype.
1084 * target-dcache.c: Remove _initialize_target_dcache prototype.
1085 * target-descriptions.c: Remove _initialize_target_descriptions
1086 prototype.
1087 * thread.c: Remove _initialize_thread prototype.
1088 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1089 prototype.
1090 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1091 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1092 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1093 prototype.
1094 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1095 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1096 * tracefile.c: Remove _initialize_tracefile prototype.
1097 * tracepoint.c: Remove _initialize_tracepoint prototype.
1098 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1099 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1100 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1101 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1102 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1103 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1104 * tui/tui.c: Remove _initialize_tui prototype.
1105 * typeprint.c: Remove _initialize_typeprint prototype.
1106 * user-regs.c: Remove _initialize_user_regs prototype.
1107 * utils.c: Remove _initialize_utils prototype.
1108 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1109 * valarith.c: Remove _initialize_valarith prototype.
1110 * valops.c: Remove _initialize_valops prototype.
1111 * valprint.c: Remove _initialize_valprint prototype.
1112 * value.c: Remove _initialize_values prototype.
1113 * varobj.c: Remove _initialize_varobj prototype.
1114 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1115 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1116 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1117 * windows-nat.c: Remove _initialize_windows_nat,
1118 _initialize_check_for_gdb_ini, and _initialize_loadable
1119 prototypes.
1120 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1121 * xcoffread.c: Remove _initialize_xcoffread prototype.
1122 * xml-support.c: Remove _initialize_xml_support prototype.
1123 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1124 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1125 prototype.
1126 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1127 prototype.
1128 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1129
a611b5cb
KS
11302017-09-08 Keith Seitz <keiths@redhat.com>
1131
1132 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1133 field.
1134
469412dd
CW
11352017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1136
1137 * f-valprint.c (f_val_print): Remove check for one byte
1138 sized integers. Remove printing of character type.
1139
a5ad232b
FP
11402017-09-08 Frank Penczek <frank.penczek@intel.com>
1141 Christoph Weinmann <christoph.t.weinmann@intel.com>
1142 Bernhard Heckel <bernhard.heckel@intel.com>
1143
1144 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1145 to maintain proper indentation when printing pointers/refs.
1146
e5014227
JB
11472017-09-07 Joel Brobecker <brobecker@adacore.com>
1148
1149 GDB 8.0.1 released.
1150
63c99141
JB
11512017-09-07 Joel Brobecker <brobecker@adacore.com>
1152
1153 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1154
69c1e056
TT
11552017-09-05 Tom Tromey <tom@tromey.com>
1156
1157 * parse.c (funcall_chain): Now a std::vector.
1158 (start_arglist, end_arglist): Simplify.
1159 (free_funcalls): Remove.
1160 (parse_exp_in_context_1): Remove cleanup.
1161
fef704bf
TT
11622017-09-05 Tom Tromey <tom@tromey.com>
1163
1164 * go-exp.y (go_parse): Don't create a cleanup.
1165
5613c585
TT
11662017-09-05 Tom Tromey <tom@tromey.com>
1167
1168 * d-exp.y (PrimaryExpression): Use std::string.
1169 (d_parse): Don't create a cleanup.
1170
eae49211
TT
11712017-09-05 Tom Tromey <tom@tromey.com>
1172
1173 * utils.c (do_clear_parser_state): Remove.
1174 (make_cleanup_clear_parser_state): Remove.
1175 * p-exp.y (pascal_parse): Use scoped_restore.
1176 * m2-exp.y (m2_parse): Use scoped_restore.
1177 * f-exp.y (f_parse): Use scoped_restore.
1178 * d-exp.y (d_parse): Use scoped_restore.
1179 * c-exp.y (c_parse): Use scoped_restore.
1180 * ada-exp.y (ada_parse): Use scoped_restore.
1181 * utils.h (make_cleanup_clear_parser_state): Remove.
1182
73b9be8b
KS
11832017-09-06 Keith Seitz <keiths@redhat.com>
1184
1185 * dwarf2read.c (dw2_linkage_name_attr): New function.
1186 (dw2_linkage_name): New function.
1187 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1188 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1189 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1190
a102602b
KR
11912017-09-06 Kamil Rytarowski <n54@gmx.com>
1192
1193 * config/djgpp/djconfig.sh: Correct shell portability issue.
1194
28ad437d
KR
11952017-09-06 Kamil Rytarowski <n54@gmx.com>
1196
1197 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1198
351787dd
JB
11992017-09-06 John Baldwin <jhb@FreeBSD.org>
1200
1201 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1202 * NEWS: Mention new FreeBSD/mips native configuration.
1203 * configure.host: Add aarch64*-*-freebsd*.
1204 * configure.nat: Likewise.
1205 * aarch64-fbsd-nat.c: New file.
1206
c0f84956
JB
12072017-09-06 John Baldwin <jhb@FreeBSD.org>
1208
1209 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1210 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1211 * NEWS: Mention new FreeBSD/aarch64 target.
1212 * configure.tgt: Add aarch64*-*-freebsd*.
1213 * aarch64-fbsd-tdep.c: New file.
1214 * aarch64-fbsd-tdep.h: New file.
1215
7610297a
KR
12162017-09-06 Kamil Rytarowski <n54@gmx.com>
1217
1218 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1219
fbd1b771
JK
12202017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1221
1222 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1223 of TLS symbols.
1224
5ca79eae
PW
12252017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1226
1227 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1228 call.
1229
bf93d7ba
SM
12302017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1231
1232 * infrun.c (follow_exec): Call add_thread after
1233 target_find_description.
1234
1bb7c059
SM
12352017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1236
1237 * infrun.c (handle_inferior_event_1): When exec'ing, read
1238 stop_pc after follow_exec.
1239
fc809827
SM
12402017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1241
1242 * remote.c (process_g_packet): Update error message.
1243
d2fcdd85
YQ
12442017-09-05 Yao Qi <yao.qi@linaro.org>
1245
1246 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1247 targets.
1248
e69570ee
PA
12492017-09-05 Pedro Alves <palves@redhat.com>
1250
1251 * eval.c (eval_call, evaluate_funcall): New functions, factored
1252 out from ...
1253 (evaluate_subexp_standard): ... this.
1254
22916b07
YQ
12552017-09-05 Yao Qi <yao.qi@linaro.org>
1256
1257 * amd64-tdep.c (amd64_target_description): Create target
1258 descriptions.
1259 (_initialize_amd64_tdep): Don't call functions
1260 initialize_tdesc_amd64_*. Add self tests.
1261 * arch/amd64.c (amd64_create_target_description): Add parameter
1262 is_linux. Call set_tdesc_osabi if is_linux is true.
1263 * arch/amd64.h (amd64_create_target_description): Update the
1264 declaration.
1265 * arch/i386.c (i386_create_target_description): Add parameter
1266 is_linux. Call set_tdesc_osabi if is_linux is true.
1267 * arch/i386.h (i386_create_target_description): Update
1268 declaration.
1269 * configure.tgt: Add i386.o to gdb_target_obs.
1270 * features/Makefile (XMLTOC): Remove i386/*.xml.
1271 * features/i386/amd64-avx-avx512.c: Remove.
1272 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1273 * features/i386/amd64-avx-mpx.c: Remove.
1274 * features/i386/amd64-avx.c: Remove.
1275 * features/i386/amd64-mpx.c: Remove.
1276 * features/i386/amd64.c: Remove.
1277 * features/i386/i386-avx-avx512.c: Remove.
1278 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1279 * features/i386/i386-avx-mpx.c: Remove.
1280 * features/i386/i386-avx.c: Remove.
1281 * features/i386/i386-mmx.c: Remove.
1282 * features/i386/i386-mpx.c: Remove.
1283 * features/i386/i386.c: Remove.
1284 * i386-tdep.c: Don't include features/i386/i386*.c., include
1285 target-descriptions.h and arch/i386.h.
1286 (i386_target_description): Create target descriptions.
1287 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1288 functions. Do self tests.
1289
0854b7b1
YQ
12902017-09-05 Yao Qi <yao.qi@linaro.org>
1291
1292 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1293 * features/i386/amd64-avx-avx512-linux.c: Removed.
1294 * features/i386/amd64-avx-linux.c: Removed.
1295 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1296 * features/i386/amd64-avx-mpx-linux.c: Removed.
1297 * features/i386/amd64-linux.c: Removed.
1298 * features/i386/amd64-mpx-linux.c: Removed.
1299 * features/i386/x32-avx-avx512-linux.c: Removed.
1300 * features/i386/x32-avx-linux.c: Removed.
1301 * features/i386/x32-linux.c: Removed.
1302
b4570e4b
YQ
13032017-09-05 Yao Qi <yao.qi@linaro.org>
1304
1305 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1306 features/i386/*.c.
1307 (amd64_linux_read_description): Call
1308 amd64_create_target_description.
1309 * arch/amd64.c: New file.
1310 * arch/amd64.h: New file.
1311 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1312 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1313
6c73f67f
YQ
13142017-09-05 Yao Qi <yao.qi@linaro.org>
1315
1316 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1317 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1318 (amd64_linux_read_description): Create target descriptions.
1319 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1320 functions. Add unit tests.
1321 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1322 x32-core.xml.
1323 * features/i386/64bit-avx.c: Generated.
1324 * features/i386/64bit-avx512.c: Generated.
1325 * features/i386/64bit-core.c: Generated.
1326 * features/i386/64bit-linux.c: Generated.
1327 * features/i386/64bit-mpx.c: Generated.
1328 * features/i386/64bit-pkeys.c: Generated.
1329 * features/i386/64bit-segments.c: Generated.
1330 * features/i386/64bit-sse.c: Generated.
1331 * features/i386/x32-core.c: Generated.
1332 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1333 c files for amd64-linux and x32-linux.
1334
9d3d478b
YQ
13352017-09-05 Yao Qi <yao.qi@linaro.org>
1336
1337 * amd64-linux-tdep.c (amd64_linux_read_description): New
1338 function.
1339 (amd64_linux_core_read_description): Call
1340 amd64_linux_read_description.
1341 (amd64_linux_init_abi): Likewise.
1342 (amd64_x32_linux_init_abi): Likewise.
1343 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1344 * x86-linux-nat.c (x86_linux_read_description): Call
1345 amd64_linux_read_description.
1346
b9f1d50f
YQ
13472017-09-05 Yao Qi <yao.qi@linaro.org>
1348
1349 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1350 comments.
1351
188c9e6d
YQ
13522017-09-05 Yao Qi <yao.qi@linaro.org>
1353
1354 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1355 * features/i386/i386-avx-avx512-linux.c: Remove.
1356 * features/i386/i386-avx-linux.c: Remove.
1357 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1358 * features/i386/i386-avx-mpx-linux.c: Remove.
1359 * features/i386/i386-linux.c: Remove.
1360 * features/i386/i386-mmx-linux.c: Remove.
1361 * features/i386/i386-mpx-linux.c: Remove.
1362
5f035c07
YQ
13632017-09-05 Yao Qi <yao.qi@linaro.org>
1364
1365 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1366 (SFILES): Add arch/i386.c.
1367 (HFILES_NO_SRCDIR): Add arch/i386.h.
1368 * arch/i386.c: New file.
1369 * arch/i386.h: New file.
1370 * arch/tdesc.h (allocate_target_description): Declare.
1371 (set_tdesc_architecture): Declare.
1372 (set_tdesc_osabi): Declare.
1373 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1374 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1375 include arch/i386.h.
1376 (i386_linux_read_description): Remove code and call
1377 i386_create_target_description.
1378 (set_tdesc_architecture): New function.
1379 (set_tdesc_osabi): New function.
1380 * target-descriptions.h (allocate_target_description): Remove.
1381
0abe8a89
YQ
13822017-09-05 Yao Qi <yao.qi@linaro.org>
1383
1384 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1385 * target-descriptions.c (tdesc_create_feature): Likewise, and
1386 adjust code.
1387 * features/i386/32bit-avx.c: Re-generated.
1388 * features/i386/32bit-avx512.c: Re-generated.
1389 * features/i386/32bit-core.c: Re-generated.
1390 * features/i386/32bit-linux.c: Re-generated.
1391 * features/i386/32bit-mpx.c: Re-generated.
1392 * features/i386/32bit-pkeys.c: Re-generated.
1393 * features/i386/32bit-sse.c: Re-generated.
1394
0a188386
YQ
13952017-09-05 Yao Qi <yao.qi@linaro.org>
1396
1397 * regformats/regdef.h (struct reg): Override operator == and !=.
1398
f49ff000
YQ
13992017-09-05 Yao Qi <yao.qi@linaro.org>
1400
1401 * arch/tdesc.h: New file.
1402 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1403 * target-descriptions.c: Update comments.
1404 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1405 declarations.
1406 * features/i386/32bit-avx.c: Re-generated.
1407 * features/i386/32bit-avx512.c: Re-generated.
1408 * features/i386/32bit-core.c: Re-generated.
1409 * features/i386/32bit-linux.c: Re-generated.
1410 * features/i386/32bit-mpx.c: Re-generated.
1411 * features/i386/32bit-pkeys.c: Re-generated.
1412 * features/i386/32bit-sse.c: Re-generated.
1413
f7000548
YQ
14142017-09-05 Yao Qi <yao.qi@linaro.org>
1415
1416 * regformats/regdat.sh: Update generated code.
1417
c9a5e2a5
YQ
14182017-09-05 Yao Qi <yao.qi@linaro.org>
1419
1420 * regformats/regdat.sh: Adjust code order.
1421
d6b687ac
SM
14222017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1423
1424 * expprint.c (dump_subexp_body_standard): Use constant format
1425 string in fprintf_filtered call.
1426
a379bfd0
JB
14272017-09-04 John Baldwin <jhb@FreeBSD.org>
1428
1429 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1430 NetBSD/i386.
1431 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1432
f7efc967
JB
14332017-09-04 John Baldwin <jhb@FreeBSD.org>
1434
1435 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1436
c49fbc6c
JB
14372017-09-04 John Baldwin <jhb@FreeBSD.org>
1438
1439 * bsd-kvm.o: Define _KMEMUSER.
1440 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1441 * configure: Regenerate.
1442
26562e73
JB
14432017-09-04 John Baldwin <jhb@FreeBSD.org>
1444
1445 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1446 * i386-fbsd-nat.c: Likewise.
1447
31cf1487
JB
14482017-09-04 John Baldwin <jhb@FreeBSD.org>
1449
1450 * unittests/array-view-selftests.c: Add include of <array>.
1451
5b9f8a7c
JB
14522017-09-04 John Baldwin <jhb@FreeBSD.org>
1453
1454 * spu-tdep.c (flush_ea_cache): Add missing argument to
1455 call_function_by_hand.
1456
d69cf9b2
PA
14572017-09-04 Pedro Alves <palves@redhat.com>
1458
1459 * NEWS (Safer support for debugging with no debug info): New.
1460
3693fdb3
PA
14612017-09-04 Pedro Alves <palves@redhat.com>
1462
1463 * c-exp.y (function_method, function_method_void): Add current
1464 instance flags to TYPE_INSTANCE.
1465 * dwarf2read.c (check_modifier): New.
1466 (compute_delayed_physnames): Assert that only C++ adds delayed
1467 physnames. Mark fn_fields as const/volatile depending on
1468 physname.
1469 * eval.c (make_params): New type_instance_flags parameter. Use
1470 it as the new type's instance flags.
1471 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1472 flags element and pass it to make_params.
1473 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1474 instance flags element.
1475 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1476 * gdbtypes.h: Include "enum-flags.h".
1477 (type_instance_flags): New enum-flags type.
1478 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
1479 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
1480 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
1481 (follow_type_instance_flags): New function.
1482 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
1483 * parser-defs.h (follow_type_instance_flags): Declare.
1484 * valops.c (value_struct_elt_for_reference): const/volatile must
1485 match too.
1486
e68cb8e0
PA
14872017-09-04 Pedro Alves <palves@redhat.com>
1488
1489 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
1490 function/method scopes; lookup the nested name as a function local
1491 static variable.
1492
858be34c
PA
14932017-09-04 Pedro Alves <palves@redhat.com>
1494
1495 (%type <voidval>): Add function_method.
1496 * c-exp.y (exp): New production for calls with no arguments.
1497 (function_method, function_method_void_or_typelist): New
1498 productions.
1499 (exp): New production for "method()::static_var".
1500 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
1501 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1502 Handle OP_FUNC_STATIC_VAR.
1503 * parse.c (operator_length_standard):
1504 Handle OP_FUNC_STATIC_VAR.
1505
dd5901a6
PA
15062017-09-04 Pedro Alves <palves@redhat.com>
1507
1508 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
1509 handling.
1510 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1511 Ditto.
1512 * parse.c (operator_length_standard, operator_check_standard):
1513 Ditto.
1514 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
1515
46a4882b
PA
15162017-09-04 Pedro Alves <palves@redhat.com>
1517
1518 * ax-gdb.c: Include "typeprint.h".
1519 (gen_expr_for_cast): New function.
1520 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
1521 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
1522 type is unknown.
1523 * dwarf2read.c (new_symbol_full): Fallback to int instead of
1524 nodebug_data_symbol.
1525 * eval.c: Include "typeprint.h".
1526 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
1527 Error out if symbol has unknown type.
1528 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
1529 evaluate_subexp_for_cast.
1530 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
1531 OP_VAR_MSYM_VALUE.
1532 (evaluate_subexp_for_cast): New function.
1533 * gdbtypes.c (init_nodebug_var_type): New function.
1534 (objfile_type): Use it to initialize types of variables with no
1535 debug info.
1536 * typeprint.c (error_unknown_type): New.
1537 * typeprint.h (error_unknown_type): New declaration.
1538 * compile/compile-c-types.c (convert_type_basic): Handle
1539 TYPE_CODE_ERROR; warn and fallback to int for variables with
1540 unknown type.
1541
fe13dfec
PA
15422017-09-04 Pedro Alves <palves@redhat.com>
1543
1544 * eval.c (evaluate_var_value): New function, factored out from ...
1545 (evaluate_subexp_standard): ... here.
1546
d008ee21
PA
15472017-09-04 Pedro Alves <palves@redhat.com>
1548
1549 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
1550 Remove useless assignments to 'op'.
1551
827d0c51
PA
15522017-09-04 Pedro Alves <palves@redhat.com>
1553
1554 * eval.c (eval_skip_value): New function.
1555 (evaluate_subexp_standard): Use it.
1556
2c5a2be1
PA
15572017-09-04 Pedro Alves <palves@redhat.com>
1558
1559 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
1560 function name from symbol/minsym and pass it to
1561 error_call_unknown_return_type.
1562
74ea4be4
PA
15632017-09-04 Pedro Alves <palves@redhat.com>
1564
1565 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
1566 * ax-gdb.c (gen_msym_var_ref): New function.
1567 (gen_expr): Handle OP_VAR_MSYM_VALUE.
1568 * eval.c (evaluate_var_msym_value): New function.
1569 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
1570 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
1571 to call_function_by_hand.
1572 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1573 Handle OP_VAR_MSYM_VALUE.
1574 (union exp_element) <msymbol>: New field.
1575 * minsyms.h (struct type): Forward declare.
1576 (find_minsym_type_and_address): Declare.
1577 * parse.c (write_exp_elt_msym): New function.
1578 (write_exp_msymbol): Delete, refactored as ...
1579 (find_minsym_type_and_address): ... this new function.
1580 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
1581 (operator_length_standard, operator_check_standard): Handle
1582 OP_VAR_MSYM_VALUE.
1583 * std-operator.def (OP_VAR_MSYM_VALUE): New.
1584
7022349d
PA
15852017-09-04 Pedro Alves <palves@redhat.com>
1586
1587 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
1588 TYPE_GNU_IFUNC specially here. Throw error if return type is
1589 unknown.
1590 * ada-typeprint.c (print_func_type): Handle functions with unknown
1591 return type.
1592 * c-typeprint.c (c_type_print_base): Handle functions and methods
1593 with unknown return type.
1594 * compile/compile-c-symbols.c (convert_symbol_bmsym)
1595 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
1596 * compile/compile-c-types.c: Include "objfiles.h".
1597 (convert_func): For functions with unknown return type, warn and
1598 default to int.
1599 * compile/compile-object-run.c (compile_object_run): Adjust call
1600 to call_function_by_hand_dummy.
1601 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
1602 call_function_by_hand.
1603 * eval.c (evaluate_subexp_standard): Adjust calls to
1604 call_function_by_hand. Handle functions and methods with unknown
1605 return type. Pass expect_type to call_function_by_hand.
1606 * f-typeprint.c (f_type_print_base): Handle functions with unknown
1607 return type.
1608 * gcore.c (call_target_sbrk): Adjust call to
1609 call_function_by_hand.
1610 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
1611 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
1612 an integer address type instead of nodebug.
1613 * guile/scm-value.c (gdbscm_value_call): Adjust call to
1614 call_function_by_hand.
1615 * infcall.c (error_call_unknown_return_type): New function.
1616 (call_function_by_hand): New "default_return_type" parameter.
1617 Pass it down.
1618 (call_function_by_hand_dummy): New "default_return_type"
1619 parameter. Use it instead of defaulting to int. If there's no
1620 default and the return type is unknown, throw an error. If
1621 there's a default return type, and the called function has no
1622 debug info, then assume the function is prototyped.
1623 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
1624 New "default_return_type" parameter.
1625 (error_call_unknown_return_type): New declaration.
1626 * linux-fork.c (call_lseek): Cast return type of lseek.
1627 (inferior_call_waitpid, checkpoint_command): Adjust calls to
1628 call_function_by_hand.
1629 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
1630 calls to call_function_by_hand.
1631 * m2-typeprint.c (m2_procedure): Handle functions with unknown
1632 return type.
1633 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1634 (value_nsstring, print_object_command): Adjust calls to
1635 call_function_by_hand.
1636 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
1637 functions with unknown return type.
1638 (pascal_type_print_func_varspec_suffix): New function.
1639 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
1640 TYPE_CODE_METHOD>: Use it.
1641 * python/py-value.c (valpy_call): Adjust call to
1642 call_function_by_hand.
1643 * rust-lang.c (rust_evaluate_funcall): Adjust call to
1644 call_function_by_hand.
1645 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
1646 call_function_by_hand.
1647 * valops.c (value_allocate_space_in_inferior): Adjust call to
1648 call_function_by_hand.
1649 * typeprint.c (type_print_unknown_return_type): New function.
1650 * typeprint.h (type_print_unknown_return_type): New declaration.
1651
54990598
PA
16522017-09-04 Pedro Alves <palves@redhat.com>
1653
1654 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
1655 types with more than one parameter as prototyped.
1656
9a24775b
PA
16572017-09-04 Pedro Alves <palves@redhat.com>
1658
1659 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
1660 (disassemble_command): Use gdb_disassembly_flags instead of bare
1661 int.
1662 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
1663 (dump_insns, do_mixed_source_and_assembly_deprecated)
1664 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
1665 Use gdb_disassembly_flags instead of bare int.
1666 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
1667 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
1668 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
1669 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
1670 (enum gdb_disassembly_flag): ... values of this new enumeration.
1671 (gdb_disassembly_flags): Define.
1672 (gdb_disassembly)
1673 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
1674 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
1675 gdb_disassembly_flags instead of bare int.
1676 * record-btrace.c (btrace_insn_history)
1677 (record_btrace_insn_history, record_btrace_insn_history_range)
1678 (record_btrace_insn_history_from): Use gdb_disassembly_flags
1679 instead of bare int.
1680 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
1681 Use gdb_disassembly_flags instead of bare int.
1682 * target-debug.h (target_debug_print_gdb_disassembly_flags):
1683 Define.
1684 * target-delegates.c: Regenerate.
1685 * target.c (target_insn_history, target_insn_history_from)
1686 (target_insn_history_range): Use gdb_disassembly_flags instead of
1687 bare int.
1688 * target.h: Include "disasm.h".
1689 (struct target_ops) <to_insn_history, to_insn_history_from,
1690 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
1691 int.
1692 (target_insn_history, target_insn_history_from)
1693 (target_insn_history_range): Use gdb_disassembly_flags instead of
1694 bare int.
1695
80a65e9b
SM
16962017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1697
1698 * cli/cli-script.c (build_command_line): For if/while commands,
1699 check whether args is empty.
1700
6b66338c
SM
17012017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1702
1703 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
1704 (enum command_control_type): Likewise.
1705 (struct command_line): Likewise.
1706 (free_command_lines): Likewise.
1707 (struct command_lines_deleter): Likewise.
1708 (command_line_up): Likewise.
1709 (read_command_lines): Likewise.
1710 (read_command_lines_1): Likewise.
1711 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
1712 (enum command_control_type): Likewise.
1713 (struct command_line): Likewise.
1714 (free_command_lines): Likewise.
1715 (struct command_lines_deleter): Likewise.
1716 (command_line_up): Likewise.
1717 (read_command_lines): Likewise.
1718 (read_command_lines_1): Likewise.
1719 * breakpoint.h: Include cli/cli-script.h.
1720 * extension-priv.h: Likewise.
1721 * gdbcmd.h: Likewise.
1722
51abb421
PA
17232017-09-04 Pedro Alves <palves@redhat.com>
1724
1725 * ada-lang.c (is_known_support_routine): Move sal declaration to
1726 where it is initialized.
1727 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
1728 (parse_breakpoint_sals, decode_static_tracepoint_spec)
1729 (clear_command, update_static_tracepoint): Remove init_sal
1730 references. Move declarations closer to initializations.
1731 * cli/cli-cmds.c (list_command): Move sal declarations closer to
1732 initializations.
1733 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
1734 references. Move sal declarations closer to initializations.
1735 * frame.c (find_frame_sal): Return a symtab_and_line via function
1736 return instead of output parameter. Remove init_sal references.
1737 * frame.h (find_frame_sal): Return a symtab_and_line via function
1738 return instead of output parameter.
1739 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
1740 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
1741 instead of memset.
1742 (gdbscm_find_pc_line): Remove init_sal reference.
1743 * infcall.c (call_function_by_hand_dummy): Remove init_sal
1744 references. Move declarations closer to initializations.
1745 * infcmd.c (set_step_frame): Update. Move declarations closer to
1746 initializations.
1747 (finish_backward): Remove init_sal references. Move declarations
1748 closer to initializations.
1749 * infrun.c (process_event_stop_test, handle_step_into_function)
1750 (insert_hp_step_resume_breakpoint_at_frame)
1751 (insert_step_resume_breakpoint_at_caller): Likewise.
1752 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
1753 (symbol_to_sal): Likewise.
1754 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
1755 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
1756 to its initialization.
1757 * reverse.c (save_bookmark_command): Use new/delete. Remove
1758 init_sal references. Move declarations closer to initializations.
1759 * source.c (get_current_source_symtab_and_line): Remove brace
1760 initialization.
1761 (set_current_source_symtab_and_line): Now takes the sal by const
1762 reference. Remove brace initialization.
1763 (line_info): Remove init_sal reference.
1764 * source.h (set_current_source_symtab_and_line): Now takes a
1765 symtab_and_line via const reference.
1766 * stack.c (set_current_sal_from_frame): Adjust.
1767 (print_frame_info): Adjust.
1768 (get_last_displayed_sal): Return the sal via function return
1769 instead of via output parameter. Simplify.
1770 (frame_info): Adjust.
1771 * stack.h (get_last_displayed_sal): Return the sal via function
1772 return instead of via output parameter.
1773 * symtab.c (init_sal): Delete.
1774 (find_pc_sect_line): Remove init_sal references. Move
1775 declarations closer to initializations.
1776 (find_function_start_sal): Remove init_sal references. Move
1777 declarations closer to initializations.
1778 * symtab.h (struct symtab_and_line): In-class initialize all
1779 fields.
1780 * tracepoint.c (set_traceframe_context)
1781 (print_one_static_tracepoint_marker): Remove init_sal references.
1782 Move declarations closer to initializations.
1783 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
1784 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
1785 declarations closer to initializations.
1786 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
1787 init_sal references. Adjust.
1788
6c5b2ebe
PA
17892017-09-04 Pedro Alves <palves@redhat.com>
1790
1791 * ax-gdb.c (agent_command_1): Use range-for.
1792 * break-catch-throw.c (re_set_exception_catchpoint): Update.
1793 * breakpoint.c: Include "common/array-view.h".
1794 (init_breakpoint_sal, create_breakpoint_sal): Change sals
1795 parameter from struct symtabs_and_lines to
1796 array_view<symtab_and_line>. Adjust. Use range-for. Update.
1797 (breakpoint_sals_to_pc): Change sals parameter from struct
1798 symtabs_and_lines to std::vector reference.
1799 (check_fast_tracepoint_sals): Change sals parameter from struct
1800 symtabs_and_lines to std::array_view. Use range-for.
1801 (decode_static_tracepoint_spec): Return a std::vector instead of
1802 symtabs_and_lines. Update.
1803 (create_breakpoint): Update.
1804 (break_range_command, until_break_command, clear_command): Update.
1805 (base_breakpoint_decode_location, bkpt_decode_location)
1806 (bkpt_probe_create_sals_from_location)
1807 (bkpt_probe_decode_location, tracepoint_decode_location)
1808 (tracepoint_probe_decode_location)
1809 (strace_marker_create_sals_from_location): Return a std::vector
1810 instead of symtabs_and_lines.
1811 (strace_marker_create_breakpoints_sal): Update.
1812 (strace_marker_decode_location): Return a std::vector instead of
1813 symtabs_and_lines. Update.
1814 (update_breakpoint_locations): Change struct symtabs_and_lines
1815 parameters to gdb::array_view. Adjust.
1816 (location_to_sals): Return a std::vector instead of
1817 symtabs_and_lines. Update.
1818 (breakpoint_re_set_default): Use std::vector instead of struct
1819 symtabs_and_lines.
1820 (decode_location_default): Return a std::vector instead of
1821 symtabs_and_lines. Update.
1822 * breakpoint.h: Include "common/array-view.h".
1823 (struct breakpoint_ops) <decode_location>: Now returns a
1824 std::vector instead of returning a symtabs_and_lines via output
1825 parameter.
1826 (update_breakpoint_locations): Change sals parameters to use
1827 gdb::array_view.
1828 * cli/cli-cmds.c (edit_command, list_command): Update to use
1829 std::vector and gdb::array_view.
1830 (ambiguous_line_spec): Adjust to use gdb::array_view and
1831 range-for.
1832 (compare_symtabs): Rename to ...
1833 (cmp_symtabs): ... this. Change parameters to symtab_and_line
1834 const reference and adjust.
1835 (filter_sals): Rewrite using std::vector and standard algorithms.
1836 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
1837 (jump_command): Update to use std::vector.
1838 * linespec.c (struct linespec_state) <canonical_names>: Update
1839 comment.
1840 (add_sal_to_sals_basic): Delete.
1841 (add_sal_to_sals, filter_results, convert_results_to_lsals)
1842 (decode_line_2, create_sals_line_offset)
1843 (convert_address_location_to_sals, convert_linespec_to_sals)
1844 (convert_explicit_location_to_sals, parse_linespec)
1845 (event_location_to_sals, decode_line_full, decode_line_1)
1846 (decode_line_with_current_source)
1847 (decode_line_with_last_displayed, decode_objc)
1848 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
1849 (linespec_result::~linespec_result): Adjust to use std::vector
1850 instead of symtabs_and_lines.
1851 * linespec.h (linespec_sals::sals): Now a std::vector.
1852 (struct linespec_result): Use std::vector, bool, and in-class
1853 initialization.
1854 (decode_line_1, decode_line_with_current_source)
1855 (decode_line_with_last_displayed): Return std::vector.
1856 * macrocmd.c (info_macros_command): Use std::vector.
1857 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
1858 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
1859 std::vector.
1860 * probe.h (parse_probes): Return a std::vector.
1861 * python/python.c (gdbpy_decode_line): Use std::vector and
1862 gdb::array_view.
1863 * source.c (select_source_symtab, line_info): Use std::vector.
1864 * stack.c (func_command): Use std::vector.
1865 * symtab.h (struct symtabs_and_lines): Delete.
1866 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
1867
7c44b49c
PA
18682017-09-04 Pedro Alves <palves@redhat.com>
1869
1870 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1871 unittests/array-view-selftests.c.
1872 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
1873 * common/array-view.h: New file.
1874 * unittests/array-view-selftests.c: New file.
1875
e439fa14
PA
18762017-09-04 Pedro Alves <palves@redhat.com>
1877
1878 * cli/cli-cmds.c (edit_command): Pass message to
1879 ambiguous_line_spec.
1880 (list_command): Pass message to ambiguous_line_spec. Say
1881 "first"/"last" instead of "start" and "end" to be consistent with
1882 the manual.
1883 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
1884 them to print formatted message.
1885
7525b645
PA
18862017-09-04 Pedro Alves <palves@redhat.com>
1887
1888 * btrace.c (ftrace_add_pt): Pass btrace_insn to
1889 ftrace_update_insns by reference instead of pointer.
1890
badc0020
YQ
18912017-09-04 Yao Qi <yao.qi@linaro.org>
1892
1893 * i386-go32-tdep.c: Include x86-xstate.h.
1894 (i386_go32_init_abi): Call i386_target_description.
1895 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
1896 if xcr0 is X86_XSTATE_X87_MASK.
1897 * i386-tdep.h (tdesc_i386): Remove the declaration.
1898 (tdesc_i386_mmx): Likewise.
1899
d78bdb54
YQ
19002017-09-04 Yao Qi <yao.qi@linaro.org>
1901
1902 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
1903 X86_XSTATE_SSE_MASK instead of 0.
1904
ca1fa5ee
YQ
19052017-09-04 Yao Qi <yao.qi@linaro.org>
1906
1907 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
1908 i386_target_description.
1909 * i386-fbsd-nat.c (i386fbsd_read_description): Call
1910 i386_target_description.
1911 * i386-tdep.c (i386_gdbarch_init): Likewise.
1912
2434b019
YQ
19132017-09-04 Yao Qi <yao.qi@linaro.org>
1914
1915 * amd64-darwin-tdep.c: Include "x86-xstate.h".
1916 (x86_darwin_init_abi_64): Call amd64_target_description.
1917 * amd64-dicos-tdep.c: Likewise.
1918 * amd64-fbsd-nat.c: Likewise.
1919 * amd64-fbsd-tdep.c: Likewise.
1920 * amd64-nbsd-tdep.c: Likewise.
1921 * amd64-obsd-tdep.c: Likewise.
1922 * amd64-sol2-tdep.c: Likewise.
1923 * amd64-windows-tdep.c: Likewise.
1924 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
1925
0860c437
SM
19262017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1927
1928 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
1929 (btrace_function) <insn>: Change type to use std::vector.
1930 * btrace.c (ftrace_debug, ftrace_call_num_insn,
1931 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
1932 ftrace_update_insns, ftrace_compute_global_level_offset,
1933 btrace_stitch_bts, btrace_clear, btrace_insn_get,
1934 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
1935 change to std::vector.
1936 (ftrace_update_insns): Adjust to change to std::vector, change
1937 type of INSN parameter.
1938 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
1939 * record-btrace.c (btrace_call_history_insn_range,
1940 btrace_compute_src_line_range,
1941 record_btrace_frame_prev_register): Adjust to change to
1942 std::vector.
1943 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
1944 to change to std::vector.
1945
0638b7f9
TT
19462017-09-03 Tom Tromey <tom@tromey.com>
1947
1948 * corefile.c (reopen_exec_file): Use std::string.
1949
8f84fb0e
TT
19502017-09-03 Tom Tromey <tom@tromey.com>
1951
1952 * compile/compile.c (compile_register_name_mangled): Return
1953 std::string.
1954 * compile/compile-loc2c.c (pushf_register_address): Update.
1955 (pushf_register): Update.
1956 * compile/compile-c-types.c (convert_array): Update.
1957 * compile/compile-c-symbols.c (generate_vla_size): Update.
1958 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
1959 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
1960 (convert_one_symbol): Update.
1961 (generate_c_for_for_one_variable): Update.
1962 * compile/compile-c-support.c (c_get_range_decl_name): Return a
1963 std::string.
1964 (generate_register_struct): Update.
1965 * compile/compile-internal.h (c_get_range_decl_name): Return a
1966 std::string.
1967 (compile_register_name_mangled): Return std::string.
1968
18e9961f
TT
19692017-09-03 Tom Tromey <tom@tromey.com>
1970
1971 * utils.c (perror_string): Return a std::string.
1972 (throw_perror_with_name, perror_warning_with_name): Update.
1973
45343786
TT
19742017-09-03 Tom Tromey <tom@tromey.com>
1975
1976 * demangle.c (demangle_command): Use std::string,
1977 unique_xmalloc_ptr.
1978
b57af503
TT
19792017-09-03 Tom Tromey <tom@tromey.com>
1980
1981 * cli/cli-setshow.c (do_set_command): Use std::string.
1982
6eecf35f
TT
19832017-09-03 Tom Tromey <tom@tromey.com>
1984
1985 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
1986
56496dd4
TT
19872017-09-03 Tom Tromey <tom@tromey.com>
1988
1989 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
1990
e91a1fa7
TT
19912017-09-03 Tom Tromey <tom@tromey.com>
1992
1993 * mi/mi-cmd-env.c (env_execute_cli_command): Use
1994 gdb::unique_xmalloc_ptr.
1995
7ffd83d7
TT
19962017-09-03 Tom Tromey <tom@tromey.com>
1997
1998 * thread.c (print_thread_info_1): Use string_printf.
1999 (thread_apply_command, thread_apply_all_command): Use
2000 std::string.
2001
1ccbe998
TT
20022017-09-03 Tom Tromey <tom@tromey.com>
2003
2004 * valprint.c (val_print_string): Update.
2005 * gdbcore.h (memory_error_message): Return std::string.
2006 * corefile.c (memory_error_message): Return std::string.
2007 (memory_error): Update.
2008 * breakpoint.c (insert_bp_location): Update.
2009
23fdd69e
SM
20102017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2011
2012 * target/waitstatus.h (target_waitstatus_to_string): Change
2013 return type to std::string.
2014 * target/waitstatus.c (target_waitstatus_to_string): Return
2015 std::string.
2016 * target.h (target_waitstatus_to_string): Remove declaration.
2017 * infrun.c (resume, clear_proceed_status_thread,
2018 print_target_wait_results, do_target_wait, save_waitstatus,
2019 stop_all_threads): Adjust.
2020 * record-btrace.c (record_btrace_wait): Adjust.
2021 * target-debug.h
2022 (target_debug_print_struct_target_waitstatus_p): Adjust.
2023
5c811d30
JK
20242017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2025
2026 PR gdb/22046
2027 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2028 detection.
2029
0a2dde4a
SDJ
20302017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2031
2032 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2033 for setting/unsetting environment variables on the remote target.
2034 (New remote packets): Add entries for QEnvironmentHexEncoded,
2035 QEnvironmentUnset and QEnvironmentReset.
2036 * common/environ.c (gdb_environ::operator=): Extend method to
2037 handle m_user_set_env_list and m_user_unset_env_list.
2038 (gdb_environ::clear): Likewise.
2039 (match_var_in_string): Change type of first parameter from 'char
2040 *' to 'const char *'.
2041 (gdb_environ::set): Extend method to handle
2042 m_user_set_env_list and m_user_unset_env_list.
2043 (gdb_environ::unset): Likewise.
2044 (gdb_environ::clear_user_set_env): New method.
2045 (gdb_environ::user_set_envp): Likewise.
2046 (gdb_environ::user_unset_envp): Likewise.
2047 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2048 m_user_unset_env_list on move constructor/assignment.
2049 (unset): Add new default parameter 'update_unset_list = true'.
2050 (clear_user_set_env): New method.
2051 (user_set_envp): Likewise.
2052 (user_unset_envp): Likewise.
2053 (m_user_set_env_list): New std::set.
2054 (m_user_unset_env_list): Likewise.
2055 * common/rsp-low.c (hex2str): New function.
2056 (bin2hex): New overload for bin2hex function.
2057 * common/rsp-low.c (hex2str): New prototype.
2058 (str2hex): New overload prototype.
2059 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2060 QEnvironmentUnset and QEnvironmentReset.
2061 (remote_protocol_features): Add QEnvironmentHexEncoded,
2062 QEnvironmentUnset and QEnvironmentReset packets.
2063 (send_environment_packet): New function.
2064 (extended_remote_environment_support): Likewise.
2065 (extended_remote_create_inferior): Call
2066 extended_remote_environment_support.
2067 (_initialize_remote): Add QEnvironmentHexEncoded,
2068 QEnvironmentUnset and QEnvironmentReset packet configs.
2069 * unittests/environ-selftests.c (gdb_selftest_env_var):
2070 New variable.
2071 (test_vector_initialization): New function.
2072 (test_init_from_host_environ): Likewise.
2073 (test_reinit_from_host_environ): Likewise.
2074 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2075 Likewise.
2076 (test_unset_set_empty_vector): Likewise.
2077 (test_vector_clear): Likewise.
2078 (test_std_move): Likewise.
2079 (test_move_constructor):
2080 (test_self_move): Likewise.
2081 (test_set_unset_reset): Likewise.
2082 (run_tests): Rewrite in terms of the functions above.
2083
654670a4
WP
20842017-08-31 Weimin Pan <weimin.pan@oracle.com>
2085
2086 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2087 (adi_available): Use a temp variable of type CORE_ADDR as argument
2088 3 when calling target_auxv_search.
2089 (adi_normalize_address): Use masks and xor operators to calculate
2090 normalized address.
2091 (adi_read_versions, adi_write_versions, adi_print_versions)
2092 (do_examine, do_assign): Use paddress.
2093
7755ddb7
JB
20942017-08-29 John Baldwin <jhb@FreeBSD.org>
2095
2096 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2097 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2098 out of loop and add supply of FIR.
2099 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2100 add collect of FIR.
2101
fd437cbc
SM
21022017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2103
3804a343 2104 PR gdb/21827
fd437cbc
SM
2105 * cli/cli-script.c (define_command): Don't convert command name
2106 to lower case.
2107
988f6b3d
JB
21082017-08-25 Joel Brobecker <brobecker@adacore.com>
2109
2110 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2111 Update all callers accordingly. Remove all code blocks handling
2112 the case where DISPP is not NULL.
2113
663c44ac
JK
21142017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2115
2116 PR symtab/22003
2117 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2118 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2119 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2120
f1902523
JK
21212017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2122
2123 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2124 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2125 (read_comp_units_from_section): New parameter abbrev_section, use
2126 read_and_check_comp_unit_head, allocate signatured_type if needed.
2127 (create_all_comp_units): Update read_comp_units_from_section caller.
2128
87215ad1
SDJ
21292017-08-23 Pedro Alves <palves@redhat.com>
2130
2131 PR remote/21852
2132 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2133 to null_ptid and switch to thread without reading the registers
2134 after adding the inferior.
2135
6e41ddec
JK
21362017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2139 compile-gcc.
2140 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2141 (compile_to_object): Implement compile_gcc.
2142 (_initialize_compile): Install "set compile-gcc". Initialize
2143 compile_gcc.
2144
e68c32d5
JK
21452017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 * compile/compile.c (compile_to_object): Conditionally call
2148 set_verbose. Conditionally call compile or compile_v0.
2149
58afddc6
WP
21502017-08-07 Weimin Pan <weimin.pan@oracle.com>
2151
2152 * sparc64-tdep.h: (adi_normalize_address): New export.
2153 * sparc-nat.h: (open_adi_tag_fd): New export.
2154 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2155 * sparc64-linux-tdep.c:
2156 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2157 (sparc64_linux_handle_segmentation_fault): New function.
2158 (sparc64_linux_init_abi): Register
2159 sparc64_linux_handle_segmentation_fault
2160 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2161 (sparc64_addr_bits_remove): New function.
2162 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2163 (MAX_PROC_NAME_SIZE): New macro.
2164 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2165 (sparc64adilist): New variable.
2166 (adi_proc_list): New variable.
2167 (find_adi_info): New function.
2168 (add_adi_info): New function.
2169 (get_adi_info_proc): New function.
2170 (get_adi_info): New function.
2171 (info_adi_command): New function.
2172 (read_maps_entry): New function.
2173 (adi_available): New function.
2174 (adi_normalize_address): New function.
2175 (adi_align_address): New function.
2176 (adi_convert_byte_count): New function.
2177 (adi_tag_fd): New function.
2178 (adi_is_addr_mapped): New function.
2179 (adi_read_versions): New function.
2180 (adi_write_versions): New function.
2181 (adi_print_versions): New function.
2182 (do_examine): New function.
2183 (do_assign): New function.
2184 (adi_examine_command): New function.
2185 (adi_assign_command): New function.
2186 (_initialize_sparc64_adi_tdep): New function.
2187
11db9430
SM
21882017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2189
2190 * breakpoint.c (breakpoints_info): Rename to ...
2191 (info_breakpoints_command): ... this.
2192 (watchpoints_info): Rename to ...
2193 (info_watchpoints_command): ... this.
2194 (tracepoints_info): Rename to ...
2195 (info_tracepoints_command): ... this.
2196 (_initialize_breakpoint): Adjust.
2197 * dcache.c (dcache_info): Rename to ...
2198 (info_display_command): ... this.
2199 (_initialize_dcache): Adjust.
2200 * frame.h (args_info): Rename to ...
2201 (info_args_command): ... this.
2202 (locals_info): Rename to ...
2203 (info_locals_command): ... this.
2204 * infcmd.c (nofp_registers_info): Rename to ...
2205 (info_registers_command): ... this.
2206 (float_info): Rename to ...
2207 (info_float_command): ... this.
2208 (program_info): Rename to ...
2209 (info_program_command): ... this.
2210 (all_registers_info): Rename to ...
2211 (info_all_registers_command): ... this.
2212 (vector_info): Rename to ...
2213 (info_vector_command): ... this.
2214 (float_info): Rename to ...
2215 (info_float_command): ... this.
2216 (_initialize_infcmd): Adjust.
2217 * inferior.h (term_info): Rename to ...
2218 (info_terminal_command): ... this.
2219 * inflow.c (term_info): Rename to ...
2220 (info_terminal_command): ... this.
2221 (_initialize_inflow): Adjust.
2222 * infrun.c (signals_info): Rename to ...
2223 (info_signals_command): ... this.
2224 (_initialize_infrun): Adjust.
2225 * objc-lang.c (classes_info): Rename to ...
2226 (info_classes_command): ... this.
2227 (selectors_info): Rename to ...
2228 (info_selectors_command): ... this.
2229 (_initialize_objc_language): Adjust.
2230 * printcmd.c (sym_info): Rename to ...
2231 (info_symbol_command): ... this.
2232 (address_info): Rename to ...
2233 (info_address_command): ... this.
2234 (display_info): Rename to ...
2235 (info_display_command): ... this.
2236 (_initialize_printcmd): Adjust.
2237 * reverse.c (bookmarks_info): Rename to ...
2238 (info_breakpoints_command): ... this.
2239 (_initialize_reverse): Adjust.
2240 * ser-go32.c (dos_info): Rename to ...
2241 (info_serial_command): ... this.
2242 (_initialize_ser_dos): Adjust.
2243 * skip.c (skip_info): Rename to ...
2244 (info_skip_command): ... this.
2245 (_initialize_step_skip): Adjust.
2246 * source.c (line_info): Rename to ...
2247 (info_line_command): ... this.
2248 (source_info): Rename to ...
2249 (info_source_command)
2250 * stack.c (frame_info): Rename to ...
2251 (info_frame_command): ... this.
2252 (locals_info): Rename to ...
2253 (info_locals_command): ... this.
2254 (args_info): Rename to ...
2255 (info_args_command): ... this.
2256 (_initialize_stack): Adjust.
2257 * symtab.c (sources_info): Rename to ...
2258 (info_sources_command): ... this.
2259 (variables_info): Rename to ...
2260 (info_variables_command): ... this.
2261 (functions_info): Rename to ...
2262 (info_functions_command): ... this.
2263 (types_info): Rename to ...
2264 (info_types_command): ... this.
2265 (_initialize_symtab): Adjust.
2266 * target.c (target_info): Rename to ...
2267 (info_target_command): ... this.
2268 (initialize_targets): Adjust.
2269 * tracepoint.c (tvariables_info): Rename to ...
2270 (info_tvariables_command): ... this.
2271 (scope_info): Rename to ...
2272 (info_scope_command): ... this.
2273 (trace_dump_actions): Adjust.
2274 (_initialize_tracepoint): Adjust.
2275
b270e6f9
TT
22762017-08-22 Tom Tromey <tom@tromey.com>
2277
2278 * breakpoint.h (install_breakpoint): Update.
2279 * breakpoint.c (add_solib_catchpoint): Update.
2280 (install_breakpoint): Change argument to a std::unique_ptr.
2281 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2282 (create_breakpoint_sal, create_breakpoint): Update.
2283 (watch_command_1, catch_exec_command_1)
2284 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2285 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2286 Return the breakpoint.
2287 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2288 (new_single_step_breakpoint): Update.
2289 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2290 std::unique_ptr.
2291 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2292 std::unique_ptr.
2293 * break-catch-sig.c (create_signal_catchpoint): Use
2294 std::unique_ptr.
2295 * ada-lang.c (create_ada_exception_catchpoint): Use
2296 std::unique_ptr.
2297
36bd8eaa
TT
22982017-08-22 Tom Tromey <tom@tromey.com>
2299
2300 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2301
56f37645
TT
23022017-08-22 Tom Tromey <tom@tromey.com>
2303
2304 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2305 (lookup_partial_symbol): Update.
2306
0b581c69
TT
23072017-08-22 Tom Tromey <tom@tromey.com>
2308
2309 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2310 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2311 (find_and_open_source, symtab_to_fullname): Update.
2312 * psymtab.c (psymtab_to_fullname): Update.
2313
14278e1f
TT
23142017-08-22 Tom Tromey <tom@tromey.com>
2315
2316 * exec.c (exec_file_attach): Update.
2317 * linux-thread-db.c (try_thread_db_load): Update.
2318 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2319 * utils.c (gdb_realpath): Change return type.
2320 (gdb_realpath_keepfile): Update.
2321 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2322 (_initialize_utils): Register the new self test.
2323 * source.c (openp): Update.
2324 (find_and_open_source): Update.
2325 * nto-tdep.c (nto_find_and_open_solib): Update.
2326 * main.c (set_gdb_data_directory): Update.
2327 (captured_main_1): Update.
2328 * dwarf2read.c (dwarf2_get_dwz_file): Update
2329 (dw2_map_symbol_filenames): Update.
2330 * auto-load.c (auto_load_safe_path_vec_update): Update.
2331 (filename_is_in_auto_load_safe_path_vec): Change type of
2332 "filename_realp".
2333 (auto_load_objfile_script): Update.
2334 (file_is_auto_load_safe): Update. Use std::string.
2335 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2336
4971c9a7
TT
23372017-08-22 Tom Tromey <tom@tromey.com>
2338
2339 * utils.c (gdb_realpath_keepfile): Return a
2340 gdb::unique_xmalloc_ptr.
2341 * exec.c (exec_file_attach): Update.
2342 * utils.h (gdb_realpath_keepfile): Return a
2343 gdb::unique_xmalloc_ptr.
2344
e3e41d58
TT
23452017-08-22 Tom Tromey <tom@tromey.com>
2346
2347 * compile/compile.c (compile_file_command): Use
2348 gdb::unique_xmalloc_ptr, std::string.
2349 * utils.c (gdb_abspath): Change return type.
2350 * source.c (openp): Update.
2351 * objfiles.c (allocate_objfile): Update.
2352 * main.c (set_gdb_data_directory): Update.
2353 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2354
0d999a6e
ZZ
23552017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2356
2357 * cli-cmds.c (list_commands): List actual code around more than
2358 one location.
2359
329d5e7e
JB
23602017-08-21 John Baldwin <jhb@FreeBSD.org>
2361
2362 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2363
bf223d3e
PA
23642017-08-21 Pedro Alves <palves@redhat.com>
2365
2366 PR gdb/19487
2367 * c-exp.y (variable production): Handle function aliases.
2368 * minsyms.c (msymbol_is_text): New function.
2369 * minsyms.h (msymbol_is_text): Declare.
2370 * symtab.c (find_function_alias_target): New function.
2371 * symtab.h (find_function_alias_target): Declare.
2372
c973d0aa
PA
23732017-08-21 Pedro Alves <palves@redhat.com>
2374
2375 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2376 typedefs.
2377 * typeprint.c (whatis_exp): If handling "whatis", and expression
2378 is OP_TYPE, strip one typedef level. Otherwise don't strip
2379 typedefs here.
2380 * valops.c (value_cast): Save "to" type before resolving
2381 stubs/typedefs. Use that type as resulting value's type.
2382
2989a365
TT
23832017-08-18 Tom Tromey <tom@tromey.com>
2384 Pedro Alves <palves@redhat.com>
2385
2386 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2387 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2388 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2389 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2390 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2391 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2392 (linux_get_siginfo_data): Add "thread" argument. Use
2393 scoped_restore.
2394 * linux-nat.c (linux_child_follow_fork)
2395 (check_stopped_by_watchpoint): Use scoped_restore.
2396 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2397 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2398 (restore_inferior_ptid, save_inferior_ptid): Remove.
2399 * btrace.c (btrace_fetch): Use scoped_restore.
2400 * bsd-uthread.c (bsd_uthread_fetch_registers)
2401 (bsd_uthread_store_registers): Use scoped_restore.
2402 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2403 scoped_restore.
2404 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2405 (aix_thread_xfer_partial): Use scoped_restore.
2406 * inferior.h (save_inferior_ptid): Remove.
2407
e60eb288
YQ
24082017-08-18 Yao Qi <yao.qi@linaro.org>
2409
2410 PR tdep/21818
2411 * arm-tdep.c (gdb_print_insn_arm): Mark
2412 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2413
6d580b63
YQ
24142017-08-18 Yao Qi <yao.qi@linaro.org>
2415
2416 * NEWS: Mention GDBserver's new option "--selftest".
2417 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2418 * selftest.c: Move it to common/selftest.c.
2419 * selftest.h: Move it to common/selftest.h.
2420 * selftest-arch.c (reset): New function.
2421 (tests_with_arch): Call reset.
2422
86dcbf50
YQ
24232017-08-18 Yao Qi <yao.qi@linaro.org>
2424
2425 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2426 instead of exception_fprintf and printf_filtered.
2427
7649770c
YQ
24282017-08-18 Yao Qi <yao.qi@linaro.org>
2429
2430 * selftest.c (register_self_test): Rename it to
2431 selftests::register_test.
2432 (run_self_tests): selftest::run_tests.
2433 * selftest.h: Update declarations.
2434 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2435 selftests::register_test_foreach_arch.
2436 * selftest-arch.h: Update declaration.
2437 * aarch64-tdep.c: Update.
2438 * arm-tdep.c: Likewise.
2439 * disasm-selftests.c: Likewise.
2440 * dwarf2loc.c: Likewise.
2441 * dwarf2-frame.c: Likewise.
2442 * findvar.c: Likewise.
2443 * gdbarch-selftests.c: Likewise.
2444 * maint.c (maintenance_selftest): Likewise.
2445 * regcache.c: Likewise.
2446 * rust-exp.y: Likewise.
2447 * selftest-arch.c: Likewise.
2448 * unittests/environ-selftests.c: Likewise.
2449 * unittests/function-view-selftests.c: Likewise.
2450 * unittests/offset-type-selftests.c: Likewise.
2451 * unittests/optional-selftests.c: Likewise.
2452 * unittests/scoped_restore-selftests.c: Likewise.
2453 * utils-selftests.c: Likewise.
2454
b0cba12e
PA
24552017-08-17 Pedro Alves <palves@redhat.com>
2456
2457 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2458 local.
2459
4c8aa72d
PA
24602017-08-17 Pedro Alves <palves@redhat.com>
2461
2462 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2463 field.
2464 (reset_die_in_process): Delete, replaced by ...
2465 (process_die_scope): ... this new class. Make it responsible for
2466 freeing cu->line_header too.
2467 (process_die): Use process_die_scope.
2468 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2469 cu->line_header_die_owner. Don't release the line header if it's
2470 owned by the CU.
2471 (setup_type_unit_groups): Make the CU/DIE own the line header.
2472 Don't release the line header here.
2473
ba713918
AL
24742017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2475
2476 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2477
44d0fb3a
RK
24782017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
2479
2480 * NEWS: Mention new shortcuts for nexti and stepi in TUI
2481 Single-Key mode
2482
a5afdb16
RK
24832017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
2484
2485 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
2486 mode command list.
2487
47613aeb
SH
24882017-08-15 Stafford Horne <shorne@gmail.com>
2489
2490 * MAINTAINERS (Write After Approval): Add Stafford Horne.
2491
9c3cc999
SH
24922017-08-15 Stafford Horne <shorne@gmail.com>
2493
2494 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
2495
206726fb
SDJ
24962017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
2497
2498 PR gdb/21954
2499 * infcmd.c (unset_environment_command): Use the 'clear' method on
2500 the environment instead of resetting it.
2501
0335ac6d
JB
25022017-08-15 John Baldwin <jhb@FreeBSD.org>
2503
2504 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
2505 platforms.
2506
d3abe1c8
TT
25072017-08-14 Tom Tromey <tom@tromey.com>
2508
2509 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
2510 (print_binary_chars): Likewise.
2511 (BITS_IN_BYTES): Remove.
2512
d6382fff
TT
25132017-08-14 Tom Tromey <tom@tromey.com>
2514
2515 PR gdb/21675
2516 * valprint.c (LOW_ZERO): Change value to 034.
2517 (print_octal_chars): Add static_asserts for octal constants.
2518 * printcmd.c (print_scalar_formatted): Add 'd' case.
2519
f978cb06
TT
25202017-08-11 Tom Tromey <tom@tromey.com>
2521
2522 * symfile.c (add_symbol_file_command): Use std::vector.
2523
2f5404b3
TT
25242017-08-14 Tom Tromey <tom@tromey.com>
2525
2526 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
2527 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2528 std::move.
2529 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
2530
de7985c3
PA
25312017-08-11 Pedro Alves <palves@redhat.com>
2532
2533 * infrun.c (process_event_stop_test): Adjust
2534 function_name_is_marked_for_skip call.
2535 * skip.c: Include <list>.
2536 (skiplist_entry): Make it a class with private fields, and
2537 getters/setters.
2538 (skiplist_entry_chain): Delete.
2539 (skiplist_entries): New.
2540 (skiplist_entry_count): Delete.
2541 (highest_skiplist_entry_num): New.
2542 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
2543 (add_skiplist_entry): Delete.
2544 (skiplist_entry::skiplist_entry): New.
2545 (skiplist_entry::add_entry): New.
2546 (skip_file_command, skip_function): Adjust.
2547 (compile_skip_regexp): Delete.
2548 (skip_command): Don't compile regexp here. Adjust to use
2549 skiplist_entry::add_entry.
2550 (skip_info): Adjust to use range-for and getters.
2551 (skip_enable_command, skip_disable_command): Adjust to use
2552 range-for and setters.
2553 (skip_delete_command): Adjust to use std::list.
2554 (add_skiplist_entry): Delete.
2555 (skip_file_p): Delete, refactored as ...
2556 (skiplist_entry::do_skip_file_p): ... this new method.
2557 (skip_gfile_p): Delete, refactored as ...
2558 (skiplist_entry::do_gskip_file_p): ... this new method.
2559 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
2560 (skiplist_entry::skip_function_p): ... this new method.
2561 (function_name_is_marked_for_skip): Now returns bool, and takes
2562 the function sal by const reference. Adjust to use range-for and
2563 skiplist_entry methods.
2564 (_initialize_step_skip): Remove references to
2565 skiplist_entry_chain, skiplist_entry_count.
2566 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
2567 takes the function sal by const reference.
2568
be7d3cd5
YQ
25692017-08-11 Yao Qi <yao.qi@linaro.org>
2570
2571 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
2572 (dwarf2_frame_cache): Remove reset_cache_cleanup.
2573 (dwarf2_frame_cache):
2574 * frame-unwind.c (frame_unwind_try_unwinder): Catch
2575 RETURN_MASK_ALL and set *this_case to NULL.
2576 * frame-unwind.h: Update comments.
2577
1c90d9f0
YQ
25782017-08-11 Yao Qi <yao.qi@linaro.org>
2579
2580 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
2581 (dwarf2_frame_state_copy_regs): Remove.
2582 (dwarf2_frame_state_free_regs): Remove.
2583 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
2584 (dwarf2_restore_rule): Call method .alloc_regs instead of
2585 dwarf2_frame_state_alloc_regs.
2586 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
2587 constructor. Call std::move.
2588 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
2589 (dwarf2_frame_cache): Likewise.
2590
2591 [GDB_SELF_TEST]: Include selftest.h and
2592 selftest-arch.h.
2593 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
2594 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
2595 execute_cfa_program_test.
2596
2597 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
2598 copy ctor, assignment operator, move assignment.
2599 <alloc_regs>: New method.
2600 <swap>: New method.
2601 (struct dwarf2_frame_state): Delete dtor.
2602 (dwarf2_frame_state_alloc_regs): Remove declaration.
2603 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
2604 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
2605
afe37d6b
YQ
26062017-08-11 Yao Qi <yao.qi@linaro.org>
2607
2608 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
2609 (dwarf2_frame_state::dwarf2_frame_state): New.
2610 (dwarf2_frame_state::~dwarf2_frame_state): New.
2611 (dwarf2_fetch_cfa_info): Update.
2612 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
2613 rather than a pointer. Update code.
2614 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
2615 dtor.
2616 <data_align, code_align, retaddr_column>: Change them to const.
2617 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
2618 to bool.
2619
b348037f
YQ
26202017-08-11 Yao Qi <yao.qi@linaro.org>
2621
2622 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
2623 <loc.exp>: New field.
2624 * dwarf2-frame.c (execute_cfa_program): Update.
2625 (dwarf2_frame_prev_register): Update.
2626
e7c9de26
PA
26272017-08-10 Pedro Alves <palves@redhat.com>
2628
2629 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
2630
e8c6b620
JB
26312017-08-09 John Baldwin <jhb@FreeBSD.org>
2632
2633 * fbsd-nat.c (struct fbsd_fork_info): Remove.
2634 (fbsd_pending_children): Use std::list.
2635 (fbsd_remember_child): Likewise.
2636 (fbsd_is_child_pending): Likewise.
2637 (fbsd_pending_vfork_done): Use std::forward_list.
2638 (fbsd_add_vfork_done): Likewise.
2639 (fbsd_is_vfork_done_pending): Likewise.
2640 (fbsd_next_vfork_done): Likewise.
2641
e4a26669
JB
26422017-08-09 John Baldwin <jhb@FreeBSD.org>
2643
2644 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
2645 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
2646 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
2647 for `mapfilename'.
2648 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 2649 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 2650
142311d3
JB
26512017-08-09 John Baldwin <jhb@FreeBSD.org>
2652
2653 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
2654 "filestuff.h".
2655 (fbsd_find_memory_regions): Fix `mapfile' initialization.
2656
42fa2e0e
TT
26572017-08-09 Tom Tromey <tom@tromey.com>
2658
2659 * skip.c (skiplist_entry): New constructor.
2660 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
2661 (skiplist_entry::file_is_glob): Now bool.
2662 (skiplist_entry::file, skiplist_entry::function): Now
2663 std::string.
2664 (make_skip_entry): Return a unique_ptr. Use new.
2665 (free_skiplist_entry, free_skiplist_entry_cleanup)
2666 (make_free_skiplist_entry_cleanup): Remove.
2667 (skip_command, skip_disable_command, add_skiplist_entry)
2668 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
2669 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
2670 (function_name_is_marked_for_skip): Update.
2671 (skip_delete_command): Update. Use delete.
2672
cd3af38d
JW
26732017-08-09 Jiong Wang <jiong.wang@arm.com>
2674
2675 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
2676 (aarch64_linux_core_read_description): New function.
2677 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
2678
29592bde
PA
26792017-08-09 Pedro Alves <palves@redhat.com>
2680
2681 * cp-name-parser.y (cp_comp_to_string): Return a
2682 gdb::unique_xmalloc_ptr<char>.
2683 * cp-support.c (replace_typedefs_qualified_name)
2684 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
2685 (cp_canonicalize_string_full): Use op= instead of explicit
2686 convertion.
2687 (cp_class_name_from_physname, method_name_from_physname)
2688 (cp_func_name, cp_remove_params): Adjust to use
2689 gdb::unique_xmalloc_ptr<char>.
2690 * cp-support.h (cp_comp_to_string): Return a
2691 gdb::unique_xmalloc_ptr<char>.
2692 * python/py-type.c (typy_lookup_type): Adjust to use
2693 gdb::unique_xmalloc_ptr<char>.
2694
b3340438
L
26952017-08-09 H.J. Lu <hongjiu.lu@intel.com>
2696
2697 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
2698
e88e8651
YQ
26992017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
2700 Yao Qi <yao.qi@linaro.org>
2701
2702 * cp-support.c (cp_canonicalize_string_full): Use
2703 gdb::unique_xmalloc_ptr<char>.
2704 (cp_canonicalize_string): Likewise.
2705
f5a29eb0
YQ
27062017-08-09 Yao Qi <yao.qi@linaro.org>
2707
2708 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
2709 * regformats/i386/amd64-avx-avx512.dat: Remove.
2710 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
2711 * regformats/i386/amd64-avx-mpx.dat:Remove.
2712 * regformats/i386/amd64-avx.dat: Remove.
2713 * regformats/i386/amd64-mpx.dat: Remove.
2714 * regformats/i386/i386-avx-avx512.dat: Remove.
2715 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
2716 * regformats/i386/i386-avx-mpx.dat: Remove.
2717 * regformats/i386/i386-mmx.dat: Remove.
2718 * regformats/i386/i386-mpx.dat: Remove.
2719
57757c2f
YQ
27202017-08-09 Yao Qi <yao.qi@linaro.org>
2721
2722 * amd64-tdep.h (tdesc_x32): Remove the declaration.
2723 * amd64-tdep.c: Don't include features/i386/x32*.c.
2724 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
2725 functions.
2726 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
2727 and i386/x32-avx-avx512.
2728 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
2729 and i386/x32.xml.
2730 * features/i386/x32-avx-avx512.c: Removed.
2731 * features/i386/x32-avx-avx512.xml: Removed.
2732 * features/i386/x32-avx.c: Removed.
2733 * features/i386/x32-avx.xml: Removed.
2734 * features/i386/x32.c: Removed.
2735 * features/i386/x32.xml: Removed.
2736 * regformats/i386/x32-avx-avx512.dat: Removed.
2737 * regformats/i386/x32-avx.dat: Removed.
2738 * regformats/i386/x32.dat: Removed.
2739
ba7b109b
MR
27402017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2741
2742 PR breakpoints/21886
2743 * mem-break.c (default_memory_insert_breakpoint): Use
2744 `->placed_address' rather than `->reqstd_address' for the
2745 breakpoint location.
2746
e347efc3
MR
27472017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2748
2749 * arch-utils.c (default_print_insn): Remove arch/mach/endian
2750 assertions.
2751
0dba2a6c
MR
27522017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2753
2754 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
2755 a union of `tdep_info', `tdesc_data' and `id'.
2756 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
2757 rather than `info.tdep_info'.
2758 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2759 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2760 * i386-tdep.c (i386_gdbarch_init): Likewise.
2761 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2762 * mips-tdep.c (mips_gdbarch_init): Likewise.
2763 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2764 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2765 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
2766 `info.tdep_info'.
2767 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
2768 `info.tdep_info'.
2769 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2770 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
2771 `info.tdep_info'.
2772 * spu-tdep.c (spu_gdbarch_init): Likewise.
2773 * gdbarch.h: Regenerate.
2774
16eb6b2d
LS
27752017-08-07 Leszek Swirski <leszeks@google.com>
2776
7b005726 2777 PR symtab/20899
16eb6b2d
LS
2778 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
2779
74cbb09e
SM
27802017-08-07 Simon Marchi <simon.marchi@ericsson.com>
2781
2782 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
2783 (gdbsim_open): Rename gdb_argv args object to argv.
2784
ee0c3293
TT
27852017-08-05 Tom Tromey <tom@tromey.com>
2786
2787 * compile/compile-object-load.c (compile_object_load): Use
2788 gdb::unique_xmalloc_ptr.
2789 * cli/cli-dump.c (scan_filename): Rename from
2790 scan_filename_with_cleanup. Change return type.
2791 (scan_expression): Rename from scan_expression_with_cleanup.
2792 Change return type.
2793 (dump_memory_to_file, dump_value_to_file, restore_command):
2794 Use gdb::unique_xmalloc_ptr. Update.
2795 * cli/cli-cmds.c (find_and_open_script): Use
2796 gdb::unique_xmalloc_ptr.
2797 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
2798 * symmisc.c (maintenance_print_symbols)
2799 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
2800 * symfile.c (symfile_bfd_open, generic_load)
2801 (add_symbol_file_command, remove_symbol_file_command): Use
2802 gdb::unique_xmalloc_ptr.
2803 * source.c (openp): Use gdb::unique_xmalloc_ptr.
2804 * psymtab.c (maintenance_print_psymbols): Use
2805 gdb::unique_xmalloc_ptr.
2806 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
2807 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
2808 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
2809 (reload_shared_libraries_1): Likewise.
2810
3232fabd
TT
28112017-08-05 Tom Tromey <tom@tromey.com>
2812
2813 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
2814 (rust_op_vector, rust_set_vector): New typedefs.
2815 (current_parser): New global.
2816 (work_obstack): Change to pointer type. Update all users.
2817 (rust_ast, pstate): Remove globals.
2818 (struct rust_parser): New.
2819 (%union) <params, field_inits>: Change type.
2820 (start, tuple_expr, unit_expr, struct_expr_list, literal)
2821 (field_expr, expr_list, maybe_expr_list, type_list): Update.
2822 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
2823 (convert_params_to_types, convert_params_to_expression): Change
2824 type of "params".
2825 (ast_string): Change type of "fields".
2826 (rust_parse): Make a rust_parser. Remove cleanups.
2827 (rust_lex_tests): Make and install an auto_obstack.
2828
f02fd774
YQ
28292017-08-04 Yao Qi <yao.qi@linaro.org>
2830
2831 * configure.srv (ipa_x32_linux_regobj): New.
2832 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
2833 instead of X86_TDESC_AVX512.
2834 (initialize_low_tracepoint): Call
2835 init_registers_x32_avx_avx512_linux.
2836
91975afd
YQ
28372017-08-04 Yao Qi <yao.qi@linaro.org>
2838
2839 * utils.h (gdb_argv): Add namespace std for nullptr_t.
2840
2331fa3a
RK
28412017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
2842
2843 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
2844
744e4fe1
TT
28452017-08-03 Tom Tromey <tom@tromey.com>
2846
2847 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
2848 Remove.
2849 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
2850
1c034b67
TT
28512017-08-03 Tom Tromey <tom@tromey.com>
2852
2853 * python/py-param.c (compute_enum_values): Use gdb_argv.
2854
773a1edc
TT
28552017-08-03 Tom Tromey <tom@tromey.com>
2856
2857 * utils.h (struct gdb_argv_deleter): New.
2858 (gdb_argv): New class.
2859 * utils.c (gdb_argv::reset): New method.
2860 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
2861 * tracefile.c (tsave_command): Use gdb_argv.
2862 * top.c (new_ui_command): Use gdb_argv.
2863 * symmisc.c (maintenance_print_symbols)
2864 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
2865 * symfile.c (symbol_file_command, generic_load)
2866 (remove_symbol_file_command): Use gdb_argv.
2867 * stack.c (backtrace_command): Use gdb_argv.
2868 * source.c (add_path, show_substitute_path_command)
2869 (unset_substitute_path_command, set_substitute_path_command):
2870 Use gdb_argv.
2871 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
2872 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
2873 * remote.c (extended_remote_run, remote_put_command)
2874 (remote_get_command, remote_delete_command): Use gdb_argv.
2875 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
2876 (gdbsim_open): Use gdb_argv.
2877 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
2878 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
2879 * procfs.c (procfs_info_proc): Use gdb_argv.
2880 * interps.c (interpreter_exec_cmd): Use gdb_argv.
2881 * infrun.c (handle_command): Use gdb_argv.
2882 * inferior.c (add_inferior_command, clone_inferior_command):
2883 Use gdb_argv.
2884 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
2885 * exec.c (exec_file_command): Use gdb_argv.
2886 * cli/cli-cmds.c (alias_command): Use gdb_argv.
2887 * compile/compile.c (build_argc_argv): Use gdb_argv.
2888
0d50bde3
TT
28892017-08-03 Tom Tromey <tom@tromey.com>
2890
2891 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
2892
7f968c89
TT
28932017-08-03 Tom Tromey <tom@tromey.com>
2894
2895 * python/python.c (compute_python_string): Return std::string.
2896 (gdbpy_eval_from_control_command): Update.
2897 (do_start_initialization): Use std::string.
2898 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
2899 xstrprintf.
2900 * python/py-breakpoint.c (local_setattro): Use string_printf, not
2901 xstrprintf.
2902
3c9ebddd
TT
29032017-08-03 Tom Tromey <tom@tromey.com>
2904
2905 * top.h (do_restore_instream_cleanup): Remove.
2906 * top.c (do_restore_instream_cleanup): Remove.
2907 (read_command_file): Use scoped_restore.
2908 * cli/cli-script.c (execute_user_command): Use scoped_restore.
2909
b51b225e
TT
29102017-08-03 Tom Tromey <tom@tromey.com>
2911
2912 * cli/cli-script.c (execute_user_command)
2913 (execute_control_command): Use scoped_restore.
2914
ac991630
TT
29152017-08-03 Tom Tromey <tom@tromey.com>
2916
2917 * cli/cli-script.c (do_restore_user_call_depth): Remove.
2918 (execute_user_command): Remove user_call_depth; use
2919 user_args_stack's size instead.
2920
898e0c8e
TT
29212017-08-03 Tom Tromey <tom@tromey.com>
2922
2923 * top.h (in_user_command): Remove.
2924 * top.c (in_user_command): Remove.
2925 * cli/cli-script.c (do_restore_user_call_depth)
2926 (execute_user_command): Update.
2927
26fcd5d7
TT
29282017-08-03 Tom Tromey <tom@tromey.com>
2929
2930 * valops.c (search_struct_method): Use gdb::byte_vector.
2931 * valarith.c (value_concat): Use std::vector.
2932 * target.c (memory_xfer_partial): Use gdb::byte_vector.
2933 (simple_search_memory): Likewise.
2934 * printcmd.c (find_string_backward): Use gdb::byte_vector.
2935 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
2936 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
2937 * elfread.c (elf_rel_plt_read): Use std::string.
2938 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
2939 * cli/cli-dump.c (restore_section_callback): Use
2940 gdb::byte_vector.
2941
7c218e6c
TT
29422017-08-03 Tom Tromey <tom@tromey.com>
2943
2944 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
2945
31b68d4a
TT
29462017-08-03 Tom Tromey <tom@tromey.com>
2947
2948 * tui/tui-regs.c (tui_restore_gdbout): Remove.
2949 (tui_register_format): Use scoped_restore.
2950
2ec845e7
TT
29512017-08-03 Tom Tromey <tom@tromey.com>
2952
2953 * reverse.c (exec_direction_default): Remove.
2954 (exec_reverse_once): Use scoped_restore.
2955 * remote.c (restore_remote_timeout): Remove.
2956 (remote_flash_erase, remote_flash_write, remote_flash_done)
2957 (readchar, remote_serial_write): Use scoped_restore.
2958 * cli/cli-script.c (struct source_cleanup_lines_args)
2959 (source_cleanup_lines): Remove.
2960 (script_from_file): Use scoped_restore.
2961 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
2962 (source_command): Use scoped_restore.
2963
b3bc8453
TT
29642017-08-03 Tom Tromey <tom@tromey.com>
2965
2966 * utils.h (make_cleanup_free_so): Remove.
2967 * utils.c (do_free_so, make_cleanup_free_so): Remove.
2968 * solist.h (struct so_deleter): New.
2969 (so_list_up): New typedef.
2970 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
2971
e3ad2841
TT
29722017-08-03 Tom Tromey <tom@tromey.com>
2973
2974 * utils.h (make_cleanup_restore_current_language): Remove.
2975 * utils.c (do_restore_current_language)
2976 (make_cleanup_restore_current_language): Remove.
2977 * parse.c (parse_exp_in_context_1)
2978 (parse_expression_with_language): Use
2979 scoped_restore_current_language.
2980 * mi/mi-main.c (mi_cmd_execute): Use
2981 scoped_restore_current_language.
2982 * language.h (scoped_restore_current_language): New class.
2983
b80cf838
TT
29842017-08-03 Tom Tromey <tom@tromey.com>
2985
2986 * compile/compile.c (cleanup_unlink_file): Remove.
2987 (compile_to_object): Use gdb::unlinker.
2988 (eval_compile_command): Likewise.
2989
fad0444a
TT
29902017-08-03 Tom Tromey <tom@tromey.com>
2991
2992 * utils.h (make_cleanup_fclose): Remove.
2993 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
2994
6e7bc05c
TT
29952017-08-03 Tom Tromey <tom@tromey.com>
2996
2997 * top.c (open_terminal_stream): Return gdb_file_up.
2998 (new_ui_command): Update.
2999
4a45905b
TT
30002017-08-03 Tom Tromey <tom@tromey.com>
3001
3002 * source.c (print_source_lines_base, forward_search_command)
3003 (reverse_search_command): Use gdb_file_up.
3004
7cd06d6e
TT
30052017-08-03 Tom Tromey <tom@tromey.com>
3006
3007 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3008
ed166945
TT
30092017-08-03 Tom Tromey <tom@tromey.com>
3010
3011 * cli/cli-cmds.c (find_and_open_script): Change return type.
3012 Remove "streamp" and "full_path" parameters.
3013 (source_script_with_search): Update.
3014 * auto-load.c (source_script_file): Update.
3015 * cli/cli-cmds.h (find_and_open_script): Change type.
3016 (open_script): New struct.
3017
d419f42d
TT
30182017-08-03 Tom Tromey <tom@tromey.com>
3019
3020 * xml-support.c (xml_fetch_content_from_file): Update.
3021 * ui-file.c (stdio_file::open): Update.
3022 * tracefile-tfile.c (tfile_start): Update.
3023 * remote.c (remote_file_put, remote_file_get): Update.
3024 * nat/linux-procfs.c (linux_proc_get_int)
3025 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3026 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3027 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3028 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3029 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3030 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3031 * linux-nat.c (linux_proc_pending_signals): Update.
3032 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3033 (file_closer): Remove.
3034 * compile/compile.c (compile_to_object): Update.
3035 * common/filestuff.h (struct gdb_file_deleter): New.
3036 (gdb_file_up): New typedef.
3037 (gdb_fopen_cloexec): Change return type.
3038 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3039 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3040 (dump_binary_file, restore_binary_file): Update.
3041 * auto-load.c (auto_load_objfile_script_1): Update.
3042
4a2b031d
TT
30432017-08-03 Tom Tromey <tom@tromey.com>
3044
3045 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3046 (info_static_tracepoint_markers_command): Likewise.
3047 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3048 * skip.c (skip_info): Use ui_out_emit_table.
3049 * progspace.c (print_program_space): Use ui_out_emit_table.
3050 * osdata.c (info_osdata): Use ui_out_emit_table.
3051 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3052 ui_out_emit_table.
3053 * linux-thread-db.c (info_auto_load_libthread_db): Use
3054 ui_out_emit_table.
3055 * inferior.c (print_inferior): Use ui_out_emit_table.
3056 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3057 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3058 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3059 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3060 * ui-out.h (class ui_out_emit_table): New.
3061
a4f320fd
MR
30622017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3063
3064 * mips-tdep.c (mips_fpu_type_str): New function.
3065 (mips_dump_tdep): Call it.
3066
a2f1f308
MR
30672017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3068
3069 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3070 `->mips_fpu_type'.
3071
7e5ed83b
XR
30722017-07-31 Xavier Roirand <roirand@adacore.com>
3073
3074 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3075
4c9dc811
XR
30762017-07-27 Xavier Roirand <roirand@adacore.com>
3077
3078 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3079
27d41eac
YQ
30802017-07-26 Yao Qi <yao.qi@linaro.org>
3081
3082 * cli/cli-cmds.c (maintenancechecklist): New variable.
3083 * gdbcmd.h (maintenancechecklist): Declare it.
3084 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3085 Call i386_linux_read_description with different masks.
3086 * maint.c (maintenance_check_command): New function.
3087 (_initialize_maint_cmds): Call add_prefix_cmd.
3088 * target-descriptions.c (tdesc_reg): override operator != and ==.
3089 (tdesc_type): Likewise.
3090 (tdesc_feature): Likewise.
3091 (target_desc): Likewise.
3092 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3093 (maintenance_check_xml_descriptions): New function.
3094 (_initialize_target_descriptions) Add command "xml-descriptions".
3095 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3096
ea03d0d3
YQ
30972017-07-26 Yao Qi <yao.qi@linaro.org>
3098
3099 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3100 Include features/i386/32bit-*.c.
3101 (i386_linux_read_description): Generate target description if it
3102 doesn't exist.
3103 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3104 functions.
3105 * features/i386/32bit-linux.c: Re-generated.
3106 * features/i386/32bit-sse.c: Likewise.
3107 * target-descriptions.c (print_c_feature::visit): Print code to
3108 set register number if needed.
3109 (print_c_feature) <m_next_regnum>: New field.
3110
25aa13e5
YQ
31112017-07-26 Yao Qi <yao.qi@linaro.org>
3112
3113 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3114 (FEATURE_XMLFILES): New.
3115 (FEATURE_CFILES): New.
3116 New rules.
3117 (clean-cfiles): Remove generated c files.
3118 * features/i386/32bit-avx.c: Generated.
3119 * features/i386/32bit-avx512.c: Generated.
3120 * features/i386/32bit-core.c: Generated.
3121 * features/i386/32bit-linux.c: Generated.
3122 * features/i386/32bit-mpx.c: Generated.
3123 * features/i386/32bit-pkeys.c: Generated.
3124 * features/i386/32bit-sse.c: Generated.
3125 * target-descriptions.c: Include algorithm.
3126 (tdesc_element_visitor): Add method visit_end.
3127 (print_c_tdesc): Implement visit_end.
3128 (print_c_tdesc:: m_filename_after_features): Move it to
3129 protected.
3130 (print_c_feature): New class.
3131 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3132 name starts with "i386/32bit-".
3133
6eb1e6a8
YQ
31342017-07-26 Yao Qi <yao.qi@linaro.org>
3135
3136 * target-descriptions.c (tdesc_element_visitor): New class.
3137 (tdesc_element): New class.
3138 (tdesc_reg): Inherit from tdesc_element.
3139 (tdesc_reg::accept): New function.
3140 (tdesc_type): Inherit from tdesc_element.
3141 (tdesc_type::accept): New function.
3142 (tdesc_feature): Inherit from tdesc_element.
3143 (tdesc_feature::accept): New function.
3144 (target_desc): Inherit from tdesc_element.
3145 (target_desc::target_desc): New.
3146 (target_desc::~target_desc): New.
3147 (target_desc::accept): New.
3148 (allocate_target_description): Use new.
3149 (free_target_description): Use delete.
3150 (print_c_tdesc): New class.
3151 (maint_print_c_tdesc_cmd): Adjust.
3152
3153 * features/aarch64.c: Re-generated.
3154 * features/arc-arcompact.c: Re-generated.
3155 * features/arc-v2.c: Re-generated.
3156 * features/arm/arm-with-iwmmxt.c: Re-generated.
3157 * features/arm/arm-with-m.c: Re-generated.
3158 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3159 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3160 * features/arm/arm-with-neon.c: Re-generated.
3161 * features/arm/arm-with-vfpv2.c: Re-generated.
3162 * features/arm/arm-with-vfpv3.c: Re-generated.
3163 * features/i386/amd64-avx-avx512.c: Re-generated.
3164 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3165 * features/i386/amd64-avx.c: Re-generated.
3166 * features/i386/amd64-avx-linux.c: Re-generated.
3167 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3168 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3169 * features/i386/amd64-avx-mpx.c: Re-generated.
3170 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3171 * features/i386/amd64.c: Re-generated.
3172 * features/i386/amd64-linux.c: Re-generated.
3173 * features/i386/amd64-mpx.c: Re-generated.
3174 * features/i386/amd64-mpx-linux.c: Re-generated.
3175 * features/i386/i386-avx-avx512.c: Re-generated.
3176 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3177 * features/i386/i386-avx.c: Re-generated.
3178 * features/i386/i386-avx-linux.c: Re-generated.
3179 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3180 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3181 * features/i386/i386-avx-mpx.c: Re-generated.
3182 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3183 * features/i386/i386.c: Re-generated.
3184 * features/i386/i386-linux.c: Re-generated.
3185 * features/i386/i386-mmx.c: Re-generated.
3186 * features/i386/i386-mmx-linux.c: Re-generated.
3187 * features/i386/i386-mpx.c: Re-generated.
3188 * features/i386/i386-mpx-linux.c: Re-generated.
3189 * features/i386/x32-avx-avx512.c: Re-generated.
3190 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3191 * features/i386/x32-avx.c: Re-generated.
3192 * features/i386/x32-avx-linux.c: Re-generated.
3193 * features/i386/x32.c: Re-generated.
3194 * features/i386/x32-linux.c: Re-generated.
3195 * features/microblaze.c: Re-generated.
3196 * features/microblaze-with-stack-protect.c: Re-generated.
3197 * features/mips64-dsp-linux.c: Re-generated.
3198 * features/mips64-linux.c: Re-generated.
3199 * features/mips-dsp-linux.c: Re-generated.
3200 * features/mips-linux.c: Re-generated.
3201 * features/nds32.c: Re-generated.
3202 * features/nios2.c: Re-generated.
3203 * features/nios2-linux.c: Re-generated.
3204 * features/rs6000/powerpc-32.c: Re-generated.
3205 * features/rs6000/powerpc-32l.c: Re-generated.
3206 * features/rs6000/powerpc-403.c: Re-generated.
3207 * features/rs6000/powerpc-403gc.c : Re-generated.
3208 * features/rs6000/powerpc-405.c: Re-generated.
3209 * features/rs6000/powerpc-505.c: Re-generated.
3210 * features/rs6000/powerpc-601.c: Re-generated.
3211 * features/rs6000/powerpc-602.c: Re-generated.
3212 * features/rs6000/powerpc-603.c: Re-generated.
3213 * features/rs6000/powerpc-604.c: Re-generated.
3214 * features/rs6000/powerpc-64.c: Re-generated.
3215 * features/rs6000/powerpc-64l.c: Re-generated.
3216 * features/rs6000/powerpc-7400.c: Re-generated.
3217 * features/rs6000/powerpc-750.c: Re-generated.
3218 * features/rs6000/powerpc-860.c: Re-generated.
3219 * features/rs6000/powerpc-altivec32.c: Re-generated.
3220 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3221 * features/rs6000/powerpc-altivec64.c: Re-generated.
3222 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3223 * features/rs6000/powerpc-cell32l.c: Re-generated.
3224 * features/rs6000/powerpc-cell64l.c: Re-generated.
3225 * features/rs6000/powerpc-e500.c: Re-generated.
3226 * features/rs6000/powerpc-e500l.c: Re-generated.
3227 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3228 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3229 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3230 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3231 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3232 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3233 * features/rs6000/powerpc-vsx32.c: Re-generated.
3234 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3235 * features/rs6000/powerpc-vsx64.c: Re-generated.
3236 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3237 * features/rs6000/rs6000.c: Re-generated.
3238 * features/s390-linux32.c: Re-generated.
3239 * features/s390-linux32v1.c: Re-generated.
3240 * features/s390-linux32v2.c: Re-generated.
3241 * features/s390-linux64.c: Re-generated.
3242 * features/s390-linux64v1.c: Re-generated.
3243 * features/s390-linux64v2.c: Re-generated.
3244 * features/s390-te-linux64.c: Re-generated.
3245 * features/s390-tevx-linux64.c: Re-generated.
3246 * features/s390-vx-linux64.c: Re-generated.
3247 * features/s390x-linux64.c: Re-generated.
3248 * features/s390x-linux64v1.c: Re-generated.
3249 * features/s390x-linux64v2.c: Re-generated.
3250 * features/s390x-te-linux64.c: Re-generated.
3251 * features/s390x-tevx-linux64.c: Re-generated.
3252 * features/s390x-vx-linux64.c: Re-generated.
3253 * features/sparc/sparc32-solaris.c: Re-generated.
3254 * features/sparc/sparc64-solaris.c: Re-generated.
3255 * features/tic6x-c62x.c: Re-generated.
3256 * features/tic6x-c62x-linux.c: Re-generated.
3257 * features/tic6x-c64x.c: Re-generated.
3258 * features/tic6x-c64x-linux.c: Re-generated.
3259 * features/tic6x-c64xp.c: Re-generated.
3260 * features/tic6x-c64xp-linux.c: Re-generated.
3261
35b4818d
YQ
32622017-07-26 Yao Qi <yao.qi@linaro.org>
3263
3264 * i386-linux-tdep.c (i386_linux_read_description): New function.
3265 (i386_linux_core_read_description): Call
3266 i386_linux_read_description.
3267 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3268 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3269 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3270 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3271 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3272 * x86-linux-nat.c (x86_linux_read_description): Call
3273 i386_linux_read_description.
3274
8e2141c6
YQ
32752017-07-26 Yao Qi <yao.qi@linaro.org>
3276
3277 * NEWS: Mention it.
3278 * features/Makefile (%.c: %.xml): Pass the xml file name to
3279 command "maint print c-tdesc".
3280 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3281 name from 'arg'.
3282
b468ff4c
YQ
32832017-07-26 Yao Qi <yao.qi@linaro.org>
3284
3285 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3286 in-class initialization.
3287 (tdesc_create_feature): Call new instead of XCNEW.
3288 (free_target_description): Ue delete.
3289
b9c0e1b4
JB
32902017-07-25 John Baldwin <jhb@FreeBSD.org>
3291
3292 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3293
a04b5337
YQ
32942017-07-25 Yao Qi <yao.qi@linaro.org>
3295
3296 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3297 constant.
3298 (amd64_x32_init_abi): Likewise.
3299 * amd64-tdep.h (amd64_init_abi): Update declaration.
3300 (amd64_x32_init_abi): Likewise.
3301
02ad7fc2
YQ
33022017-07-25 Yao Qi <yao.qi@linaro.org>
3303
3304 PR tdep/21717
3305 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3306 condition for FPSCR.
3307 (arm_linux_store_inferior_registers): Likewise.
3308
b6f48cb0
TT
33092017-07-22 Tom Tromey <tom@tromey.com>
3310
3311 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3312 <syscalls_counts>: Now a std::vector.
3313 (get_catch_syscall_inferior_data): Use "new".
3314 (catch_syscall_inferior_data_cleanup): Use "delete".
3315 (insert_catch_syscall, remove_catch_syscall)
3316 (clear_syscall_counts): Update.
3317
e12c9b7a
TT
33182017-07-22 Tom Tromey <tom@tromey.com>
3319
3320 * break-catch-syscall.c (syscall_catchpoint)
3321 <syscalls_to_be_caught>: Now a std::vector<int>
3322 (~syscall_catchpoint): Remove.
3323 (insert_catch_syscall, remove_catch_syscall)
3324 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3325 (print_mention_catch_syscall, print_recreate_catch_syscall):
3326 Update.
3327 (create_syscall_event_catchpoint): Change type of "filter"
3328 parameter.
3329 (catch_syscall_split_args): Return a std::vector.
3330 (catch_syscall_command_1, catching_syscall_number_1): Update.
3331
4fa8aeac
TT
33322017-07-22 Tom Tromey <tom@tromey.com>
3333
3334 * break-catch-throw.c (struct exception_catchpoint)
3335 <exception_rx>: Now a std::string.
3336 (~exception_catchpoint): Remove.
3337 (print_one_detail_exception_catchpoint): Update.
3338 (handle_gnu_v3_exceptions): Change type of except_rx.
3339 (extract_exception_regexp): Return a std::string.
3340 (catch_exception_command_1): Update.
3341
f746a154
TT
33422017-07-22 Tom Tromey <tom@tromey.com>
3343
3344 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3345 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3346 std::vector.
3347 <catch_all>: Now a bool.
3348 (~signal_catchpoint): Remove.
3349 (signal_catchpoint_insert_location)
3350 (signal_catchpoint_remove_location)
3351 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3352 (signal_catchpoint_print_mention)
3353 (signal_catchpoint_print_recreate)
3354 (signal_catchpoint_explains_signal): Update.
3355 (create_signal_catchpoint): Change type of "filter" and
3356 "catch_all".
3357 (catch_signal_split_args): Return a std::vector. Change type of
3358 "catch_all".
3359 (catch_signal_command): Update.
3360
47e77640
PA
33612017-07-20 Pedro Alves <palves@redhat.com>
3362
3363 * ada-lang.c (ada_language_defn): Make extern.
3364 (_initialize_ada_language): Remove add_language call.
3365 * c-lang.c (c_language_defn, cplus_language_defn)
3366 (asm_language_defn, minimal_language_defn): Make extern.
3367 (_initialize_c_language): Delete.
3368 * completer.c (compare_cstrings): Delete, moved to utils.h.
3369 * d-lang.c (d_language_defn): Make extern.
3370 (_initialize_d_language): Remove add_language calls.
3371 * defs.h (enum language): Add comment.
3372 * f-lang.c (f_language_defn): Make extern.
3373 (_initialize_f_language): Remove add_language call.
3374 * go-lang.c (go_language_defn): Make extern.
3375 (_initialize_go_language): Remove add_language call.
3376 * language.c: Include <algorithm>.
3377 (languages): Redefine as const array.
3378 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3379 (set_language_command): Handle "local". Use for-range loop.
3380 (set_language): Remove loop.
3381 (language_enum): Rewrite.
3382 (language_def, language_str): Remove loops.
3383 (add_language): Delete.
3384 (add_set_language_command): New, based on add_languages.
3385 (skip_language_trampoline): Adjust.
3386 (local_language_defn): Delete.
3387 (language_gdbarch_post_init): Adjust.
3388 (_initialize_language): Remove add_language calls. Call
3389 add_set_language_command.
3390 * language.h (add_language): Delete.
3391 (auto_language_defn)
3392 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3393 (asm_language_defn, c_language_defn, cplus_language_defn)
3394 (d_language_defn, f_language_defn, go_language_defn)
3395 (m2_language_defn, objc_language_defn, opencl_language_defn)
3396 (pascal_language_defn, rust_language_defn): Declare.
3397 * m2-lang.c (m2_language_defn): Make extern.
3398 (_initialize_m2_language): Remove add_language call.
3399 * objc-lang.c (objc_language_defn): Make extern.
3400 (_initialize_objc_language): Remove add_language call.
3401 * opencl-lang.c (opencl_language_defn): Make extern.
3402 (_initialize_opencl_language): Remove add_language call.
3403 * p-lang.c (pascal_language_defn): Make extern.
3404 (_initialize_pascal_language): Delete.
3405 * rust-lang.c (rust_language_defn): Make extern.
3406 (_initialize_rust_language): Delete.
3407 * utils.h (compare_cstrings): New static inline function.
3408
edb0c9cb
PA
34092017-07-20 Pedro Alves <palves@redhat.com>
3410
3411 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3412 (get_var_value): Constify parameters.
3413 (get_int_var_value): Change prototype.
3414 (to_fixed_range_type): Adjust.
3415 * ada-lang.h (get_int_var_value): Change prototype.
3416
a778f165
PA
34172017-07-20 Pedro Alves <palves@redhat.com>
3418
3419 * dwarf2read.c (dw2_lookup_symbol): Use
3420 SYMBOL_MATCHES_SEARCH_NAME.
3421 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3422
42edd901
PA
34232017-07-20 Pedro Alves <palves@redhat.com>
3424
3425 * block.c (block_iter_name_step, block_iter_name_first)
3426 (block_iter_name_next): Delete.
3427 (block_lookup_symbol_primary): Adjust to use
3428 dict_iter_match_first/dict_iter_match_next.
3429 * block.h (block_iter_name_first, block_iter_name_next): Delete
3430 declarations.
3431 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3432 dict_iter_match_first/dict_iter_match_next.
3433
cf325299
PA
34342017-07-20 Pedro Alves <palves@redhat.com>
3435
3436 * cp-support.c (cp_find_first_component_aux): Add missing case for
3437 end of string.
3438
c5ed0576
DB
34392017-07-18 David Blaikie <dblaikie@gmail.com>
3440
3441 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3442 of dwo_cu's dwo_file.
3443
27841e76
YQ
34442017-07-18 Yao Qi <yao.qi@linaro.org>
3445
3446 * remote.c (store_registers_using_G): Remove one line comment.
3447
cfb7e58b
YQ
34482017-07-18 Yao Qi <yao.qi@linaro.org>
3449
3450 * regcache.c (regcache_cpy): Simplify it.
3451 (regcache::cpy_no_passthrough): Remove it.
3452 * regcache.h (cpy_no_passthrough): Remove it.
3453 (regcache_dup, regcache_cpy): Update comments.
3454
386535dd
PA
34552017-07-18 Pedro Alves <palves@redhat.com>
3456
3457 * remote-sim.c (sim_command_completer): Adjust to work with a
3458 completion_tracker instead of a VEC.
3459
c45ec17c
PA
34602017-07-17 Pedro Alves <palves@redhat.com>
3461
3462 * completer.c (complete_source_filenames): New function.
3463 (complete_address_and_linespec_locations): New function.
3464 (location_completer): Use complete_address_and_linespec_locations.
3465 (completion_tracker::build_completion_result): Honor the tracker's
3466 request to suppress append.
3467 * completer.h (completion_tracker::suppress_append_ws)
3468 (completion_tracker::set_suppress_append_ws): New methods.
3469 (completion_tracker::m_suppress_append_ws): New field.
3470 (complete_source_filenames): New declaration.
3471 * linespec.c (linespec_complete_what): New.
3472 (struct ls_parser) <complete_what, completion_word,
3473 completion_quote_char, completion_quote_end, completion_tracker>:
3474 New fields.
3475 (string_find_incomplete_keyword_at_end): New.
3476 (linespec_lexer_lex_string): Record quote char. If in completion
3477 mode, don't throw.
3478 (linespec_lexer_consume_token): Advance the completion word point.
3479 (linespec_lexer_peek_token): Save/restore completion info.
3480 (save_stream_and_consume_token): New.
3481 (set_completion_after_number): New.
3482 (linespec_parse_basic): Set what to complete next depending on
3483 token. Handle function and label completions specially.
3484 (parse_linespec): Disable objc shortcut in completion mode. Set
3485 what to complete next depending on token type. Skip keyword if in
3486 completion mode.
3487 (complete_linespec_component, linespec_complete): New.
3488 * linespec.h (linespec_complete): Declare.
3489
be966d42
PA
34902017-07-17 Pedro Alves <palves@redhat.com>
3491
3492 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
3493 Handle 'operator<' / 'operator<<'.
3494
a2459270
PA
34952017-07-17 Pedro Alves <palves@redhat.com>
3496
3497 * completer.c (collect_explicit_location_matches): Handle
3498 MATCH_LABEL.
3499 (convert_explicit_location_to_linespec): New, factored out from
3500 ...
3501 (convert_explicit_location_to_sals): ... this.
3502 (complete_label): New.
3503 (linespec_complete_label, find_label_symbols_in_block): New.
3504 (find_label_symbols): Add completion_mode parameter and adjust to
3505 call find_label_symbols_in_block.
3506 * linespec.h (linespec_complete_label): Declare.
3507
c6756f62
PA
35082017-07-17 Pedro Alves <palves@redhat.com>
3509
3510 * ada-lang.c (ada_collect_symbol_completion_matches): Add
3511 complete_symbol_mode parameter.
3512 * cli/cli-cmds.c (complete_command): Get the completion result out
3513 of the handle_brkchars tracker if used a custom word point.
3514 * completer.c: Include "linespec.h".
3515 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
3516 (advance_to_expression_complete_word_point): New.
3517 (completion_tracker::completes_to_completion_word): New.
3518 (complete_files_symbols): Pass down
3519 complete_symbol_mode::EXPRESSION.
3520 (explicit_options, probe_options): New.
3521 (collect_explicit_location_matches): Complete on the
3522 explictit_loc->foo instead of word. Use
3523 linespec_complete_function. Handle MATCH_LINE. Handle offering
3524 keyword and options completions.
3525 (backup_text_ptr): Delete.
3526 (skip_keyword): New.
3527 (complete_explicit_location): Remove 'word' parameter. Add
3528 language, quoted_arg_start and quoted_arg_end parameters.
3529 Rewrite, parsing left to right.
3530 (location_completer): Rewrite.
3531 (location_completer_handle_brkchars): New function.
3532 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
3533 (enum complete_line_internal_reason): Adjust comments.
3534 (completion_tracker::discard_completions): New.
3535 (completer_handle_brkchars_func_for_completer): Handle
3536 location_completer.
3537 (gdb_custom_word_point_brkchars)
3538 (gdb_org_rl_basic_quote_characters): New.
3539 (gdb_completion_word_break_characters_throw)
3540 (completion_find_completion_word): Handle trackers that use a
3541 custom word point.
3542 (completion_tracker::advance_custom_word_point_by): New.
3543 (completion_tracker::build_completion_result): Don't rely on
3544 readline appending the quote char.
3545 (gdb_rl_attempted_completion_function_throw): Handle trackers that
3546 use a custom word point.
3547 (gdb_rl_attempted_completion_function): Restore
3548 rl_basic_quote_characters.
3549 * completer.h (class completion_tracker): Extend intro comment.
3550 (completion_tracker::set_quote_char)
3551 (completion_tracker::quote_char)
3552 (completion_tracker::set_use_custom_word_point)
3553 (completion_tracker::use_custom_word_point)
3554 (completion_tracker::custom_word_point)
3555 (completion_tracker::set_custom_word_point)
3556 (completion_tracker::advance_custom_word_point_by)
3557 (completion_tracker::completes_to_completion_word)
3558 (completion_tracker::discard_completions): New methods.
3559 (completion_tracker::m_quote_char)
3560 (completion_tracker::m_use_custom_word_point)
3561 (completion_tracker::m_custom_word_point): New fields.
3562 (advance_to_expression_complete_word_point): Declare.
3563 * f-lang.c (f_collect_symbol_completion_matches): Add
3564 complete_symbol_mode parameter.
3565 * language.h (struct language_defn)
3566 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
3567 parameter.
3568 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
3569 (linespec_complete_function): New function.
3570 (linespec_lexer_lex_keyword): Adjust.
3571 * linespec.h (linespec_keywords, linespec_complete_function): New
3572 declarations.
3573 * location.c (find_end_quote): New function.
3574 (explicit_location_lex_one): Add explicit_completion_info
3575 parameter. Save quoting info. Don't throw if being called for
3576 completion. Don't handle Ada operators here.
3577 (is_cp_operator, skip_op_false_positives, first_of)
3578 (explicit_location_lex_one_function): New function.
3579 (string_to_explicit_location): Replace 'dont_throw' parameter with
3580 an explicit_completion_info pointer parameter. Handle it. Don't
3581 use explicit_location_lex_one to lex function names. Use
3582 explicit_location_lex_one_function instead.
3583 * location.h (struct explicit_completion_info): New.
3584 (string_to_explicit_location): Replace 'dont_throw' parameter with
3585 an explicit_completion_info pointer parameter.
3586 * symtab.c (default_collect_symbol_completion_matches_break_on):
3587 Add complete_symbol_mode parameter. Handle LINESPEC mode.
3588 (default_collect_symbol_completion_matches)
3589 (collect_symbol_completion_matches): Add complete_symbol_mode
3590 parameter.
3591 (collect_symbol_completion_matches_type): Pass down
3592 complete_symbol_mode::EXPRESSION.
3593 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3594 parameter. Handle LINESPEC mode.
3595 * symtab.h (complete_symbol_mode): New.
3596 (default_collect_symbol_completion_matches_break_on)
3597 (default_collect_symbol_completion_matches)
3598 (collect_symbol_completion_matches)
3599 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3600 parameter.
3601
1d550c82
PA
36022017-07-17 Pedro Alves <palves@redhat.com>
3603
3604 * utils.c (enum class strncmp_iw_mode): New.
3605 (strcmp_iw): Rename to ...
3606 (strncmp_iw_with_mode): ... this. Add string2_len and mode
3607 parameters. Handle them.
3608 (strncmp_iw): New.
3609 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
3610 * utils.h (strncmp_iw): Declare.
3611 (strcmp_iw): Move describing comments here.
3612
8090b426
PA
36132017-07-17 Pedro Alves <palves@redhat.com>
3614
3615 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
3616 CP_OPERATOR_STR.
3617 * c-typeprint.c (is_type_conversion_operator): Use
3618 CP_OPERATOR_STR.
3619 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
3620 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
3621 CP_OPERATOR_LEN.
3622 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
3623 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
3624 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
3625 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
3626 CP_OPERATOR_STR.
3627 * location.c: Include "cp-support.h".
3628 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
3629 CP_OPERATOR_STR.
3630 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
3631 CP_OPERATOR_LEN.
3632
6a2c1b87
PA
36332017-07-17 Pedro Alves <palves@redhat.com>
3634
3635 * cli/cli-cmds.c (complete_command): Use a completion tracker
3636 along with completion_find_completion_word for handle_brkchars
3637 phase.
3638 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
3639 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
3640 (struct gdb_rl_completion_word_info): New.
3641 (gdb_rl_find_completion_word): New.
3642 (completion_find_completion_word): New.
3643 * completer.h (completion_find_completion_word): Declare.
3644
eb3ff9a5
PA
36452017-07-17 Pedro Alves <palves@redhat.com>
3646
3647 * ada-lang.c (symbol_completion_match): Adjust comments.
3648 (symbol_completion_add): Replace vector parameter with
3649 completion_tracker parameter. Use it.
3650 (ada_make_symbol_completion_list): Rename to...
3651 (ada_collect_symbol_completion_matches): ... this. Add
3652 completion_tracker parameter and use it.
3653 (ada_language_defn): Adjust.
3654 * break-catch-syscall.c (catch_syscall_completer): Adjust
3655 prototype and work with completion_tracker instead of VEC.
3656 * breakpoint.c (condition_completer): Adjust prototype and work
3657 with completion_tracker instead of VEC.
3658 * c-lang.c (c_language_defn, cplus_language_defn)
3659 (asm_language_defn, minimal_language_defn): Adjust to renames.
3660 * cli/cli-cmds.c (complete_command): Rework using
3661 completion_tracker. Catch exceptions when completing.
3662 * cli/cli-decode.c (integer_unlimited_completer)
3663 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
3664 with completion_tracker instead of VEC.
3665 * command.h (struct completion_tracker): Forward declare.
3666 (completer_ftype, completer_handle_brkchars_ftype): Change
3667 types.
3668 (complete_on_cmdlist, complete_on_enum): Adjust.
3669 * completer.c: Include <algorithm>.
3670 (struct gdb_completer_state): New.
3671 (current_completion): New global.
3672 (readline_line_completion_function): Delete.
3673 (noop_completer, filename_completer)
3674 (filename_completer_handle_brkchars, complete_files_symbols)
3675 (linespec_location_completer): Adjust to work with a
3676 completion_tracker instead of a VEC.
3677 (string_or_empty): New.
3678 (collect_explicit_location_matches): Adjust to work with a
3679 completion_tracker instead of a VEC.
3680 (explicit_location_completer): Rename to ...
3681 (complete_explicit_location): ... this and adjust to work with a
3682 completion_tracker instead of a VEC.
3683 (location_completer): Adjust to work with a completion_tracker
3684 instead of a VEC.
3685 (add_struct_fields): Adjust to work with a completion_list instead
3686 of VEC.
3687 (expression_completer): Rename to ...
3688 (complete_expression): ... this and adjust to work with a
3689 completion_tracker instead of a VEC. Use complete_files_symbols.
3690 (expression_completer): Reimplement on top of complete_expression.
3691 (symbol_completer): Adjust to work with a completion_tracker
3692 instead of a VEC.
3693 (enum complete_line_internal_reason): Add describing comments.
3694 (complete_line_internal_normal_command): Adjust to work with a
3695 completion_tracker instead of a VEC.
3696 (complete_line_internal): Rename to ...
3697 (complete_line_internal_1): ... this and adjust to work with a
3698 completion_tracker instead of a VEC. Assert TEXT is NULL in the
3699 handle_brkchars phase.
3700 (new_completion_tracker): Delete.
3701 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
3702 complete_line_internal_1.
3703 (free_completion_tracker): Delete.
3704 (INITIAL_COMPLETION_HTAB_SIZE): New.
3705 (completion_tracker::completion_tracker)
3706 (completion_tracker::~completion_tracker): New.
3707 (maybe_add_completion): Delete.
3708 (completion_tracker::maybe_add_completion)
3709 (completion_tracker::add_completion)
3710 (completion_tracker::add_completions): New.
3711 (throw_max_completions_reached_error): Delete.
3712 (complete_line): Adjust to work with a completion_tracker instead
3713 of a VEC. Don't create a completion_tracker_t or check for max
3714 completions here.
3715 (command_completer, command_completer_handle_brkchars)
3716 (signal_completer, reg_or_group_completer_1)
3717 (reg_or_group_completer, default_completer_handle_brkchars):
3718 Adjust to work with a completion_tracker.
3719 (gdb_completion_word_break_characters_throw): New.
3720 (gdb_completion_word_break_characters): Reimplement.
3721 (line_completion_function): Delete.
3722 (completion_tracker::recompute_lowest_common_denominator)
3723 (expand_preserving_ws)
3724 (completion_tracker::build_completion_result)
3725 (completion_result::completion_result)
3726 (completion_result::completion_result)
3727 (completion_result::~completion_result)
3728 (completion_result::completion_result)
3729 (completion_result::release_match_list, compare_cstrings)
3730 (completion_result::sort_match_list)
3731 (completion_result::reset_match_list)
3732 (gdb_rl_attempted_completion_function_throw)
3733 (gdb_rl_attempted_completion_function): New.
3734 * completer.h (completion_list, struct completion_result)
3735 (class completion_tracker): New.
3736 (complete_line): Add completion_tracker parameter.
3737 (readline_line_completion_function): Delete.
3738 (gdb_rl_attempted_completion_function): New.
3739 (noop_completer, filename_completer, expression_completer)
3740 (location_completer, symbol_completer, command_completer)
3741 (signal_completer, reg_or_group_completer): Update prototypes.
3742 (completion_tracker_t, new_completion_tracker)
3743 (make_cleanup_free_completion_tracker): Delete.
3744 (enum maybe_add_completion_enum): Delete.
3745 (maybe_add_completion): Delete.
3746 (throw_max_completions_reached_error): Delete.
3747 * corefile.c (complete_set_gnutarget): Adjust to work with a
3748 completion_tracker instead of a VEC.
3749 * cp-abi.c (cp_abi_completer): Adjust to work with a
3750 completion_tracker instead of a VEC.
3751 * d-lang.c (d_language_defn): Adjust.
3752 * disasm.c (disassembler_options_completer): Adjust to work with a
3753 completion_tracker instead of a VEC.
3754 * f-lang.c (f_make_symbol_completion_list): Rename to ...
3755 (f_collect_symbol_completion_matches): ... this. Adjust to work
3756 with a completion_tracker instead of a VEC.
3757 (f_language_defn): Adjust.
3758 * go-lang.c (go_language_defn): Adjust.
3759 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
3760 Adjust to work with a completion_tracker instead of a VEC.
3761 * infrun.c (handle_completer): Likewise.
3762 * interps.c (interpreter_completer): Likewise.
3763 * interps.h (interpreter_completer): Likewise.
3764 * language.c (unknown_language_defn, auto_language_defn)
3765 (local_language_defn): Adjust.
3766 * language.h (language_defn::la_make_symbol_completion_list):
3767 Rename to ...
3768 (language_defn::la_collect_symbol_completion_matches): ... this
3769 and adjust to work with a completion_tracker instead of a VEC.
3770 * m2-lang.c (m2_language_defn): Adjust.
3771 * objc-lang.c (objc_language_defn): Adjust.
3772 * opencl-lang.c (opencl_language_defn): Adjust.
3773 * p-lang.c (pascal_language_defn): Adjust.
3774 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
3775 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
3776 with a completion_tracker.
3777 * rust-lang.c (rust_language_defn): Adjust.
3778 * symtab.c (free_completion_list, do_free_completion_list)
3779 (return_val, completion_tracker): Delete.
3780 (completion_list_add_name, completion_list_add_symbol)
3781 (completion_list_add_msymbol, completion_list_objc_symbol)
3782 (completion_list_add_fields, add_symtab_completions): Add
3783 completion_tracker parameter and use it.
3784 (default_make_symbol_completion_list_break_on_1): Rename to...
3785 (default_collect_symbol_completion_matches_break_on): ... this.
3786 Add completion_tracker parameter and use it instead of allocating
3787 a completion tracker here.
3788 (default_make_symbol_completion_list_break_on): Delete old
3789 implementation.
3790 (default_make_symbol_completion_list): Delete.
3791 (default_collect_symbol_completion_matches): New.
3792 (make_symbol_completion_list): Delete.
3793 (collect_symbol_completion_matches): New.
3794 (make_symbol_completion_type): Rename to ...
3795 (collect_symbol_completion_matches_type): ... this. Add
3796 completion_tracker parameter and use it instead of VEC.
3797 (make_file_symbol_completion_list_1): Rename to...
3798 (collect_file_symbol_completion_matches): ... this. Add
3799 completion_tracker parameter and use it instead of VEC.
3800 (make_file_symbol_completion_list): Delete.
3801 (add_filename_to_list): Use completion_list instead of a VEC.
3802 (add_partial_filename_data::list): Now a completion_list.
3803 (make_source_files_completion_list): Work with a completion_list
3804 instead of a VEC.
3805 * symtab.h: Include "completer.h".
3806 (default_make_symbol_completion_list_break_on)
3807 (default_make_symbol_completion_list, make_symbol_completion_list)
3808 (make_symbol_completion_type, make_file_symbol_completion_list)
3809 (make_source_files_completion_list): Delete.
3810 (default_collect_symbol_completion_matches_break_on)
3811 (default_collect_symbol_completion_matches)
3812 (collect_symbol_completion_matches)
3813 (collect_symbol_completion_matches_type)
3814 (collect_file_symbol_completion_matches)
3815 (make_source_files_completion_list): New.
3816 * top.c (init_main): Don't install a rl_completion_entry_function
3817 hook. Install a rl_attempted_completion_function hook instead.
3818 * tui/tui-layout.c (layout_completer): Adjust to work with a
3819 completion_tracker.
3820 * tui/tui-regs.c (tui_reggroup_completer):
3821 * tui/tui-win.c (window_name_completer, focus_completer)
3822 (winheight_completer): Adjust to work with a completion_tracker.
3823 * value.c: Include "completer.h".
3824 (complete_internalvar): Adjust to work with a completion_tracker.
3825 * value.h (complete_internalvar): Likewise.
3826
6e1dbf8c
PA
38272017-07-17 Pedro Alves <palves@redhat.com>
3828
3829 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
3830 renames.
3831 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
3832 comments to completer_ftype's declaration.
3833 <completer_handle_brkchars>: Change type to
3834 completer_handle_brkchars_ftype.
3835 * command.h (completer_ftype): Add describing comment and give
3836 names to parameters.
3837 (completer_ftype_void): Rename to ...
3838 (completer_handle_brkchars_ftype) ... this. Add describing comment.
3839 (set_cmd_completer_handle_brkchars): Adjust.
3840 * completer.c (filename_completer_handle_brkchars): New function.
3841 (complete_line_internal_normal_command): New function, factored
3842 out from ...
3843 (complete_line_internal): ... here.
3844 (command_completer_handle_brkchars)
3845 (default_completer_handle_brkchars)
3846 (completer_handle_brkchars_func_for_completer): New functions.
3847 * completer.h (set_gdb_completion_word_break_characters): Delete
3848 declaration.
3849 (completer_handle_brkchars_func_for_completer): New declaration.
3850 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
3851 completer_handle_brkchars_func_for_completer.
3852
78b13106
PA
38532017-07-17 Pedro Alves <palves@redhat.com>
3854
3855 * completer.c (symbol_completer): New function, based on
3856 make_symbol_completion_list_fn.
3857 * completer.h (symbol_completer): New declaration.
3858 * guile/scm-cmd.c (cmdscm_completers): Adjust.
3859 * python/py-cmd.c (completers): Adjust.
3860 * symtab.c (make_symbol_completion_list_fn): Delete.
3861 * symtab.h (make_symbol_completion_list_fn): Delete.
3862 * cli/cli-decode.c (add_cmd): Adjust.
3863
bbf2f4df
PA
38642017-07-17 Pedro Alves <palves@redhat.com>
3865
3866 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
3867 * dwarf2read.c: Include "filename-seen-cache.h".
3868 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
3869 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
3870 * filename-seen-cache.c: New file.
3871 * filename-seen-cache.h: New file.
3872 * symtab.c: Include "filename-seen-cache.h".
3873 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
3874 (create_filename_seen_cache, clear_filename_seen_cache)
3875 (delete_filename_seen_cache, filename_seen): Delete, parts moved
3876 to filename-seen-cache.h/filename-seen-cache.c.
3877 (output_source_filename, sources_info)
3878 (maybe_add_partial_symtab_filename)
3879 (make_source_files_completion_list): Adjust to use
3880 filename_seen_cache.
3881
330cdd98
PA
38822017-07-17 Pedro Alves <palves@redhat.com>
3883
3884 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
3885 fields.
3886 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
3887 dwarf2_debug_sections*)): New.
3888 (dwarf2_per_objfile::dwarf2_per_objfile(const
3889 dwarf2_per_objfile&)): Declare as deleted.
3890 (dwarf2_per_objfile::operator=): Declare as deleted.
3891 (dwarf2_per_objfile::dwarf2_per_objfile)
3892 (dwarf2_per_objfile::~dwarf2_per_objfile)
3893 (dwarf2_per_objfile::free_cached_comp_units): New.
3894 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
3895 ctor. Call dwarf2_per_objfile's ctor manually.
3896 (dwarf2_locate_sections): Deleted/refactored as ...
3897 (dwarf2_per_objfile::locate_sections): ... this new method.
3898 (free_cached_comp_units): Defer to
3899 dwarf2_per_objfile::free_cached_comp_units.
3900 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
3901
8880f2a9
TT
39022017-07-14 Tom Tromey <tom@tromey.com>
3903
3904 PR rust/21764:
3905 * rust-exp.y (convert_ast_to_expression): Add "want_type"
3906 parameter.
3907 <UNOP_SIZEOF>: Split into separate case.
3908 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
3909
65547233
TT
39102017-07-14 Tom Tromey <tom@tromey.com>
3911
3912 PR rust/21763:
3913 * symtab.c (symbol_matches_domain): Add language_rust to special
3914 case.
3915 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
3916 treat LOC_TYPEDEF symbols as variables.
3917
8f14146e
PA
39182017-07-14 Pedro Alves <palves@redhat.com>
3919
3920 * symtab.c (make_file_symbol_completion_list_1): Iterate over
3921 symtabs matching all symtabs with SRCFILE as file name instead of
3922 only considering the first hit, with lookup_symtab.
3923
2347965c
SM
39242017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3925
3926 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
3927 operator_name parameters.
3928 (gen_expr): Update function call.
3929
40f4af28
SM
39302017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3931
3932 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
3933 parameter.
3934 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
3935 Likewise.
3936 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
3937 parameter, use agent_expr::gdbarch instead, update function
3938 calls.
3939 (locexpr_tracepoint_var_ref): Likewise.
3940 (loclist_tracepoint_var_ref): Likewise.
3941 * ax-gdb.c (gen_trace_static_fields): Likewise.
3942 (gen_traced_pop): Likewise.
3943 (gen_frame_args_address): Likewise.
3944 (gen_frame_locals_address): Likewise.
3945 (gen_var_ref): Likewise.
3946 (gen_struct_ref_recursive): Likewise.
3947 (gen_static_field): Likewise.
3948 (gen_maybe_namespace_elt): Likewise.
3949 (gen_expr): Likewise.
3950 (gen_trace_for_var): Likewise.
3951 (gen_trace_for_expr): Likewise.
3952 (gen_trace_for_return_address): Likewise.
3953
053f8057
SM
39542017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3955
3956 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
3957 parameter.
3958 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
3959
6661ad48
SM
39602017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3961
3962 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
3963 from ax, update calls.
3964 (gen_usual_arithmetic): Likewise.
3965 (gen_integral_promotions): Likewise.
3966 (gen_bitfield_ref): Likewise.
3967 (gen_primitive_field): Likewise.
3968 (gen_struct_ref_recursive): Likewise.
3969 (gen_struct_ref): Likewise.
3970 (gen_maybe_namespace_elt): Likewise.
3971 (gen_struct_elt_for_reference): Likewise.
3972 (gen_namespace_elt): Likewise.
3973 (gen_aggregate_elt_ref): Likewise.
3974 (gen_expr): Get gdbarch from ax, update calls.
3975 (gen_expr_binop_rest): Likewise.
3976
c55a47e7
PA
39772017-07-13 Pedro Alves <palves@redhat.com>
3978
3979 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
3980 as default tdesc.
3981 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
3982 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
3983 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
3984 tdesc_amd64_linux as default tdesc. Get final tdesc from the
3985 tdep.
3986 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
3987 Get final tdesc from the tdep.
3988 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
3989 default tdesc.
3990 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3991 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3992 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
3993 Use it as default tdesc.
3994 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
3995 down to amd_init_abi. No longer handle fallback tdesc here.
3996 * amd64-tdep.h (tdesc_x32): Declare.
3997 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
3998 parameter.
3999 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4000 as default tdesc.
4001
55efceab
AA
40022017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4003
4004 * s390-linux-tdep.c (s390_process_record): Add support for
4005 instructions new in arch12.
4006
0aa37b65
JB
40072017-07-11 John Baldwin <jhb@FreeBSD.org>
4008
4009 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4010 PT_GETFSBASE and PT_GETGSBASE.
4011 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4012 PT_SETGSBASE.
4013
48aeef91
JB
40142017-07-11 John Baldwin <jhb@FreeBSD.org>
4015
4016 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4017 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4018 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4019 those rules.
4020 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4021 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4022 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4023 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4024 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4025 * features/i386/amd64.xml: Add 64bit-segments.xml.
4026 * features/i386/amd64-avx-avx512.c: Regenerated.
4027 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4028 * features/i386/amd64-avx-mpx.c: Regenerated.
4029 * features/i386/amd64-avx.c: Regenerated.
4030 * features/i386/amd64-mpx.c: Regenerated.
4031 * features/i386/amd64.c: Regenerated.
4032 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4033 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4034 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4035 * regformats/i386/amd64-avx.dat: Regenerated.
4036 * regformats/i386/amd64-mpx.dat: Regenerated.
4037 * regformats/i386/amd64.dat: Regenerated.
4038
77c501bc
YQ
40392017-07-10 Yao Qi <yao.qi@linaro.org>
4040
4041 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4042 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4043
6dc8d757
AK
40442017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4045
4046 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4047 unsetenv.
4048 * gnulib/aclocal.m4: Regenerate.
4049 * gnulib/config.in: Regenerate.
4050 * gnulib/configure: Regenerate.
4051 * gnulib/import/Makefile.am: Regenerate.
4052 * gnulib/import/Makefile.in: Regenerate.
4053 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4054 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4055 * gnulib/import/m4/environ.m4: New file.
4056 * gnulib/import/m4/setenv.m4: New file.
4057 * gnulib/import/setenv.c: New file.
4058 * gnulib/import/unsetenv.c: New file.
4059
266934d1
SM
40602017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4061
4062 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4063 address when op is DW_OP_addr.
4064
03278692
TT
40652017-07-09 Tom Tromey <tom@tromey.com>
4066
4067 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4068 check and apply to outer type.
4069
4b654465
JB
40702017-07-07 John Baldwin <jhb@FreeBSD.org>
4071
4072 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4073 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4074 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4075 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4076
2af9fc44
JB
40772017-07-07 John Baldwin <jhb@FreeBSD.org>
4078
4079 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4080
382b69bb
JB
40812017-07-07 John Baldwin <jhb@FreeBSD.org>
4082
4083 * corelow.c (get_core_siginfo): Remove.
4084 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4085 instead of get_core_siginfo.
4086 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4087 * gdbarch.h: Re-generate.
4088 * gdbarch.c: Re-generate.
4089 * linux-tdep.c (linux_core_xfer_siginfo): New.
4090 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4091
6e5eab33
JB
40922017-07-07 John Baldwin <jhb@FreeBSD.org>
4093
4094 * corelow.c (thread_section_name): Move to ...
4095 * gdbcore.h (thread_section_name): ... here.
4096
929edea9
JB
40972017-07-07 John Baldwin <jhb@FreeBSD.org>
4098
4099 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4100 (struct siginfo32): New.
4101 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4102 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4103 via ptrace(PT_LWPINFO).
4104
762c974a
JB
41052017-07-07 John Baldwin <jhb@FreeBSD.org>
4106
4107 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4108 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4109 (fbsd_get_siginfo_type): New.
4110 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4111 (_initialize_fbsd_tdep): New.
4112
33c5cd75
DB
41132017-07-06 David Blaikie <dblaikie@gmail.com>
4114
4115 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4116 a singular dwo_unit*) to support multiple CUs in the same way that
4117 multiple TUs are supported.
4118 (create_cus_hash_table): Replace create_dwo_cu with a function for
4119 parsing multiple CUs from a DWO file.
4120 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4121 create_dwo_cu.
4122 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4123 htab_find, rather than comparing the signature to a singleton CU in
4124 the dwo_file.
4125
8455d262
PA
41262017-07-06 Pedro Alves <palves@redhat.com>
4127
4128 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4129
4da3eb35
PA
41302017-07-04 Pedro Alves <palves@redhat.com>
4131
4132 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4133 * gdbtypes.h (TYPE_STATIC): Delete.
4134 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4135 is_synchronized, is_native>: Delete.
4136 <dummy>: Bump.
4137 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4138 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4139 (TYPE_FN_FIELD_ABSTRACT): Delete.
4140
5bfd255c
SM
41412017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4142
4143 * buffer.h (buffer_finish): Fix spelling mistakes.
4144
25c54127
EZ
41452017-07-01 Eli Zaretskii <eliz@gnu.org>
4146
4147 * .dir-locals.el: Automatically switch to C-style comments in
4148 versions of Emacs that support the feature.
4149
dc4bde35
SDJ
41502017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4151 Pedro Alves <palves@redhat.com>
4152
4153 PR cli/21688
4154 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4155 (process_next_line): New variable 'inline_cmd'.
4156 Adjust 'if' clauses for "python", "compile" and "guile" to use
4157 'command_name_equals' and check for '!inline_cmd'.
4158
51ed89aa
SDJ
41592017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4160
4161 PR cli/21688
4162 * cli/cli-script.c (command_name_equals_not_inline): New function.
4163 (process_next_line): Adjust 'if' clauses for "python", "compile"
4164 and "guile" to use command_name_equals_not_inline.
4165
eb17d413
PA
41662017-06-29 Pedro Alves <palves@redhat.com>
4167
4168 * completer.c (expression_completer): Call
4169 linespec_location_completer instead of location_completer.
4170
195bcdd5
PA
41712017-06-29 Pedro Alves <palves@redhat.com>
4172
4173 * completer.c (expression_completer): Remove code that recomputes
4174 'text' from 'word'.
4175
adc764e7
YQ
41762017-06-29 Yao Qi <yao.qi@linaro.org>
4177
4178 * regformats/regdat.sh: Generate code with
4179 "ifndef IN_PROCESS_AGENT".
4180
6e75794e
PA
41812017-06-28 Pedro Alves <palves@redhat.com>
4182
4183 * command.h: Include "common/scoped_restore.h".
4184
bc491f2e
YQ
41852017-06-28 Yao Qi <yao.qi@linaro.org>
4186
4187 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4188 instead of obstack_grow.
4189
41664b45
DG
41902017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4191
4192 PR gdb/21337
4193 * symfile.c (reread_symbols): Call objfiles_changed just before
4194 read_symbols.
4195
6da67eb1
PA
41962017-06-27 Pedro Alves <palves@redhat.com>
4197
4198 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4199 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4200 (completion_list_add_symbol, completion_list_add_msymbol):
4201 ... these new functions.
4202 (add_symtab_completions)
4203 (default_make_symbol_completion_list_break_on_1): Adjust.
4204
23732b1e
PA
42052017-06-27 Pedro Alves <palves@redhat.com>
4206
4207 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4208 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4209 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4210 dtor.
4211 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4212 'storage_obstack' field an auto_obstack. In-class initialize all
4213 non-bitfield fields. Make minsyms_read bool.
4214 * symfile.c (read_symbols): Adjust.
4215
a4d1e79a
AH
42162017-06-27 Alan Hayward <alan.hayward@arm.com>
4217
4218 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4219 (gdbsim_store_register): Likewise.
4220
8268c778
PA
42212017-06-27 Pedro Alves <palves@redhat.com>
4222
4223 * c-exp.y (name_obstack): Now an auto_obstack.
4224 (yylex): Use auto_obstack::clear.
4225 (c_parse): Use auto_obstack::clear instead of reinitializing and
4226 freeing the obstack.
4227 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4228 * d-exp.y (name_obstack): Now an auto_obstack.
4229 (yylex): Use auto_obstack::clear.
4230 (d_parse): Use auto_obstack::clear instead of reinitializing and
4231 freeing the obstack.
4232 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4233 auto_obstack.
4234 * dwarf2read.c (create_addrmap_from_index)
4235 (dwarf2_build_psymtabs_hard)
4236 (update_enumeration_type_from_children): Likewise.
4237 * gdb_obstack.h (auto_obstack): New type.
4238 * go-exp.y (name_obstack): Now an auto_obstack.
4239 (build_packaged_name): Use auto_obstack::clear.
4240 (go_parse): Use auto_obstack::clear instead of reinitializing and
4241 freeing the obstack.
4242 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4243 auto_obstack.
4244 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4245 * rust-exp.y (work_obstack): Now an auto_obstack.
4246 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4247 reinitializing and freeing the obstack.
4248 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4249 (host_char_to_target): Use auto_obstack.
4250 * utils.h (make_cleanup_obstack_free): Delete declaration.
4251 * valprint.c (generic_emit_char, generic_printstr): Use
4252 auto_obstack.
4253
db665f42
SM
42542017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4255
4256 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4257 thread.
4258 (darwin_init_thread_list): Don't update dummy thread.
4259 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4260
873c0814
SM
42612017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4262
4263 * record-full.c (netorder16): Remove.
4264
8b5a7a6e
SM
42652017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4266
4267 * common/diagnostics.h: Define macros for GCC.
4268 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4269 * common/vec.h: Include diagnostics.h.
4270 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4271 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4272 warning.
4273
d1435379
SM
42742017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4275
4276 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4277 New macro.
4278 * ada-lex.l: Ignore deprecated register warnings.
4279
cc75e0fd
SM
42802017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4281
4282 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4283 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4284
07809eaf
SM
42852017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4286
4287 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4288 its own line.
4289
f076f034
SM
42902017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4291
4292 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4293
0dd5cbc5
AH
42942017-06-23 Alan Hayward <alan.hayward@arm.com>
4295
4296 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4297 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4298 (xtensa_register_read_masked): Likewise.
4299
d4c6ce5b
SDJ
43002017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4301
4302 * common/environ.c (gdb_environ::unset): Update comment.
4303
16892a03
AH
43042017-06-22 Alan Hayward <alan.hayward@arm.com>
4305
4306 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4307 registers.
4308
d7dcbefc
AH
43092017-06-22 Alan Hayward <alan.hayward@arm.com>
4310
4311 * record-full.c (record_full_exec_insn): Use byte_vector.
4312
b30ff123
YQ
43132017-06-22 Yao Qi <yao.qi@linaro.org>
4314
4315 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4316 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4317
4fa847d7
AH
43182017-06-22 Alan Hayward <alan.hayward@arm.com>
4319
4320 * remote.c (cached_reg): Move from here...
4321 * regcache.h (cached_reg): ...to here.
4322 * python/py-unwind.c (struct reg_info): Remove.
4323 (cached_frame_info): Use cached_reg_t.
4324 (pyuw_prev_register): Likewise.
4325 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4326 (pyuw_dealloc_cache): Free all registers.
4327
f4906a9a
PA
43282017-06-22 Pedro Alves <palves@redhat.com>
4329 Simon Marchi <simon.marchi@ericsson.com>
4330
4331 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4332 warning.
4333 * common/diagnostics.h: New file.
4334
b45a1208
PA
43352017-06-22 Pedro Alves <palves@redhat.com>
4336
4337 * common/agent.h: Add include guards.
4338
e4da2c61
SM
43392017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4340
4341 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4342 talk about addressable units instead of bytes.
4343
96160d60
SDJ
43442017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4345
4346 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4347 of '::const_iterator'.
4348
9a6c7d9c
SDJ
43492017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4350
4351 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4352 'unittests/environ-selftests.c'.
4353 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4354 * charset.c (find_charset_names): Declare object 'iconv_env'.
4355 Update code to use 'iconv_env' object. Remove call to
4356 'free_environ'.
4357 * common/environ.c: Include <utility>.
4358 (make_environ): Delete function.
4359 (free_environ): Delete function.
4360 (gdb_environ::clear): New function.
4361 (gdb_environ::operator=): New function.
4362 (gdb_environ::get): Likewise.
4363 (environ_vector): Delete function.
4364 (set_in_environ): Delete function.
4365 (gdb_environ::set): New function.
4366 (unset_in_environ): Delete function.
4367 (gdb_environ::unset): New function.
4368 (gdb_environ::envp): Likewise.
4369 * common/environ.h: Include <vector>.
4370 (struct gdb_environ): Delete; transform into...
4371 (class gdb_environ): ... this class.
4372 (free_environ): Delete prototype.
4373 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4374 environ_vector): Likewise.
4375 * infcmd.c (run_command_1): Update code to call
4376 'envp' from 'gdb_environ' class.
4377 (environment_info): Update code to call methods from 'gdb_environ'
4378 class.
4379 (unset_environment_command): Likewise.
4380 (path_info): Likewise.
4381 (path_command): Likewise.
4382 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4383 (inferior::inferior): Initialize 'environment' using the host's
4384 information.
4385 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4386 Include "environ.h".
4387 (class inferior) <environment>: Change type from 'struct
4388 gdb_environ' to 'gdb_environ'.
4389 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4390 methods from 'gdb_environ' class.
4391 * solib.c (solib_find_1): Likewise
4392 * unittests/environ-selftests.c: New file.
4393
75c554cf
YQ
43942017-06-20 Yao Qi <yao.qi@linaro.org>
4395
4396 * features/i386/i386-linux.xml: Exchange the order of including
4397 32bit-linux.xml and 32bit-sse.xml.
4398 * features/i386/i386-linux.c: Regenerated.
4399
72ddacb7
YQ
44002017-06-20 Yao Qi <yao.qi@linaro.org>
4401
4402 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4403 Delete copy ctor and assignment operator.
4404 (tdesc_type): Likewise.
4405 (tdesc_feature): Likewise.
4406 (tdesc_free_reg): Remove.
4407 (tdesc_create_reg): Use new.
4408 (tdesc_free_type): Remove.
4409 (tdesc_create_vector): Use new.
4410 (tdesc_create_union): Likewise.
4411 (tdesc_create_flags): Likewise.
4412 (tdesc_create_enum): Likewise.
4413 (tdesc_free_feature): Delete.
4414 (free_target_description): Use delete.
4415
325c9fd4
JB
44162017-06-19 John Baldwin <jhb@FreeBSD.org>
4417
4418 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4419 registers.
4420
16b7a719
PA
44212017-06-19 Pedro Alves <palves@redhat.com>
4422
4423 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4424 after gdb::unlinker.
4425
1c8e01c9
SDJ
44262017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4427
4428 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4429 gdb_environ to access an environment variable.
4430
ffce45d2
TP
44312017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4432
4433 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4434 gdb_byte*.
4435
1d4fbac9
SM
44362017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4437
4438 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4439
8465943a
SM
44402017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4441
4442 * configure: Re-generate.
4443 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4444
3e019bdc
SM
44452017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4446
4447 * configure: Re-generate.
4448 * warning.m4: Pass -Werror to compiler when checking for
4449 supported warning flags.
4450
cf0dd6f0
SM
44512017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4452
4453 * Makefile.in (COMPILE.pre): Add "-x c++".
4454
6f98355c
YQ
44552017-06-16 Alan Hayward <alan.hayward@arm.com>
4456 Pedro Alves <palves@redhat.com>
4457 Yao Qi <yao.qi@linaro.org>
4458
4459 * defs.h (RequireLongest): New.
4460 (extract_integer): Declare function template.
4461 (extract_signed_integer): Remove the declaration, but define it
4462 static inline.
4463 (extract_unsigned_integer): Likewise.
4464 (store_integer): Declare function template.
4465 (store_signed_integer): Remove the declaration, but define it
4466 static inline.
4467 (store_unsigned_integer): Likewise.
4468 * findvar.c (extract_integer): New function template.
4469 (extract_signed_integer): Remove.
4470 (extract_unsigned_integer): Remove.
4471 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4472 instantiations.
4473 (store_integer): New function template.
4474 (store_signed_integer): Remove.
4475 (store_unsigned_integer): Remove.
4476 (store_integer): Explicit instantiations.
4477 * regcache.c (regcache_raw_read_signed): Update.
4478 (regcache::raw_read): New function.
4479 (regcache::raw_read_signed): Remove.
4480 (regcache::raw_read_unsigned): Remove.
4481 (regcache_raw_read_unsigned): Update.
4482 (regcache_raw_write_unsigned): Update.
4483 (regcache::raw_write_signed): Remove.
4484 (regcache::raw_write): New function.
4485 (regcache_cooked_read_signed): Update.
4486 (regcache::raw_write_unsigned): Remove.
4487 (regcache::cooked_read_signed): Remove.
4488 (regcache_cooked_read_unsigned): Update.
4489 (regcache::cooked_read_unsigned): Remove.
4490 (regcache_cooked_write_signed): Update.
4491 (regcache_cooked_write_unsigned): Update.
4492 * regcache.h (regcache) <raw_read_signed>: Remove.
4493 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
4494 <raw_read, raw_write>: New.
4495 <cooked_read_signed, cooked_write_signed>: Remove.
4496 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
4497 <cooked_read, cooked_write>: New.
4498 * sh64-tdep.c (sh64_pseudo_register_read): Update.
4499 (sh64_pseudo_register_write): Update.
4500
a87dc45a
AK
45012017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
4502
4503 * arc-tdep.c (arc_disassembler_options): New variable.
4504 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
4505 of default_print_insn.
4506 (arc_delayed_print_insn): Set info->section when needed,
4507 use default_print_insn to retrieve a disassembler.
4508
45159d6a
SDJ
45092017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
4510
4511 PR gdb/21574
4512 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
4513 to mention $SHELL and startup-with-shell.
4514
b46c4cf0
MF
45152017-06-14 Max Filippov <jcmvbkbc@gmail.com>
4516
4517 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
4518
6394c606
YQ
45192017-06-14 Yao Qi <yao.qi@linaro.org>
4520
4521 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
4522 default_print_insn instead of print_insn_aarch64.
4523 * arm-tdep.c (gdb_print_insn_arm): Call
4524 default_print_insn instead of print_insn_big_arm
4525 and print_insn_little_arm.
4526 * i386-tdep.c (i386_print_insn): Call default_print_insn
4527 instead of print_insn_i386.
4528 * ia64-tdep.c (ia64_print_insn): Call
4529 default_print_insn instead of print_insn_ia64.
4530 * mips-tdep.c (gdb_print_insn_mips): Call
4531 default_print_insn instead of print_insn_big_mips
4532 and print_insn_little_mips.
4533 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
4534 instead of print_insn_spu.
4535
d5722aa2
PA
45362017-06-14 Pedro Alves <palves@redhat.com>
4537
4538 * ada-lang.c: Include "common/byte-vector.h".
4539 (ada_value_primitive_packed_val): Use gdb::byte_vector.
4540 * charset.c (wchar_iterator::iterate): Resize the vector instead
4541 of reserving it.
4542 * common/byte-vector.h: Include "common/def-vector.h".
4543 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
4544 * cli/cli-dump.c: Include "common/byte-vector.h".
4545 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
4546 * common/byte-vector.h: New file.
4547 * common/def-vector.h: New file.
4548 * common/default-init-alloc.h: New file.
4549 * dwarf2loc.c: Include "common/byte-vector.h".
4550 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
4551 instead of reserving it.
4552 * dwarf2read.c: Include "common/byte-vector.h".
4553 (data_buf::m_vec): Now a gdb::byte_vector.
4554 * gdb_regex.c: Include "common/def-vector.h".
4555 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
4556 * mi/mi-main.c: Include "common/byte-vector.h".
4557 (mi_cmd_data_read_memory): Use gdb::byte_vector.
4558 * printcmd.c: Include "common/byte-vector.h".
4559 (print_scalar_formatted): Use gdb::byte_vector.
4560 * valprint.c: Include "common/byte-vector.h".
4561 (maybe_negate_by_bytes, print_decimal_chars): Use
4562 gdb::byte_vector.
4563
01ec7a27
SM
45642017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4565
4566 * darwin-nat.c: Include "nat/fork-inferior.h".
4567
848d9074
SM
45682017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4569
4570 * configure.nat: Factor out Darwin bits that are not
4571 architecture-specific. Add fork-inferior.o.
4572
3b912944
SM
45732017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4574
4575 * configure.nat: Factor out AIX bits that are not
4576 architecture-specific. Add fork-inferior.o.
4577
55acdf22
AA
45782017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4579
4580 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
4581 (read_pieced_value, write_pieced_value): ...here. Reduce to
4582 wrappers that just call rw_pieced_value.
4583
f65e2044
AA
45842017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4585
4586 * dwarf2loc.c (write_pieced_value): When writing the data for a
4587 memory piece, use write_memory_with_notification instead of
4588 write_memory.
4589
23f945bf
AA
45902017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4591
4592 * valops.c (read_value_memory): Change embedded_offset to
4593 represent a bit offset instead of a byte offset.
4594 * value.h (read_value_memory): Adjust comment.
4595
f236533e
AA
45962017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4597
4598 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
4599 dest_offset_bits and source_offset_bits.
4600 (write_pieced_value): Likewise.
4601
65d84b76
AA
46022017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4603
4604 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
4605 given by DW_OP_bit_piece.
4606 (write_pieced_value): Likewise.
4607
242d31ab
AA
46082017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4609
4610 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
4611 some other preparations to the places where sufficient information
4612 is available.
4613 (write_pieced_value): Likewise.
4614
03c8af18
AA
46152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4616
4617 * dwarf2loc.c (bits_to_bytes): New function.
4618 (read_pieced_value): Fix offset calculations for register pieces
4619 on big-endian targets.
4620 (write_pieced_value): Likewise.
4621
840989c1
AA
46222017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4623
4624 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
4625 (write_pieced_value): Likewise.
4626
359b19bb
AA
46272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4628
4629 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
4630 transfer the source value's least significant bits, instead of its
4631 lowest-addressed ones. Rename type_len to max_offset.
4632 (read_pieced_value): Mirror above changes to write_pieced_value as
4633 applicable.
4634
07c9ca3b
AA
46352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4636
4637 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
4638 truncate full bytes from dest_offset_bits before using it as an
4639 offset into the buffer.
4640
f1cc9874
AA
46412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4642
4643 * dwarf2loc.c (write_pieced_value): Include transfer size in
4644 byte-wise check.
4645
cdaac320
AA
46462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4647
4648 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
4649 calculation of this_size.
4650
af547a96
AA
46512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4652
4653 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
4654 when targeting a bit-field.
4655 (write_pieced_value): Likewise.
4656
ddd7882a
AA
46572017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4658
4659 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
4660 (allocate_piece_closure): Drop addr_size parameter.
4661 (dwarf2_evaluate_loc_desc_full): Adjust call to
4662 allocate_piece_closure.
4663
e9352324
AA
46642017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4665
4666 PR gdb/21226
4667 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
4668 the LSB end, independent of endianness.
4669
d5d1163e
AA
46702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4671
4672 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
4673 size capping.
4674
032bb6ea
YQ
46752017-06-13 Yao Qi <yao.qi@linaro.org>
4676
4677 * mips-linux-nat.c: Move include features/mips*-linux.c to
4678 mips-linux-tdep.c.
4679 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
4680 to mips-linux-tdep.c.
4681 * mips-linux-tdep.c: Include features/mips*-linux.c
4682 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
4683 functions.
4684 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
4685 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
4686 (tdesc_mips64_dsp_linux): Declare.
4687
f12f6bad
TT
46882017-06-12 Tom Tromey <tom@tromey.com>
4689
4690 * valprint.h (val_print_type_code_int): Remove.
4691 * valprint.c (generic_val_print_int): Always call
4692 val_print_scalar_formatted.
4693 (val_print_type_code_int): Remove.
4694 * printcmd.c (print_scalar_formatted): Handle options->format==0.
4695 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
4696 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
4697 * ada-valprint.c (ada_val_print_num): Use
4698 val_print_scalar_formatted.
4699
d9109c80
TT
47002017-06-12 Tom Tromey <tom@tromey.com>
4701
4702 * printcmd.c (print_scalar_formatted): Unify the two switches.
4703 Don't convert scalars to LONGEST.
4704
4ac0cb1c
TT
47052017-06-12 Tom Tromey <tom@tromey.com>
4706
4707 PR exp/16225:
4708 * valprint.h (print_decimal_chars): Update.
4709 * valprint.c (maybe_negate_by_bytes): New function.
4710 (print_decimal_chars): Add "is_signed" argument.
4711 * printcmd.c (print_scalar_formatted): Update.
4712
30a25466
TT
47132017-06-12 Tom Tromey <tom@tromey.com>
4714
4715 PR exp/16225:
4716 * valprint.h (print_binary_chars, print_hex_chars): Update.
4717 * valprint.c (val_print_type_code_int): Update.
4718 (print_binary_chars): Add "zero_pad" argument.
4719 (emit_octal_digit): New function.
4720 (print_octal_chars): Don't zero-pad.
4721 (print_decimal_chars): Likewise.
4722 (print_hex_chars): Add "zero_pad" argument.
4723 * sh64-tdep.c (sh64_do_fp_register): Update.
4724 * regcache.c (regcache::dump): Update.
4725 * printcmd.c (print_scalar_formatted): Update.
4726 * infcmd.c (default_print_one_register_info): Update.
4727
b3464d03
PA
47282017-06-12 Pedro Alves <palves@redhat.com>
4729 Alan Hayward <alan.hayward@arm.com>
4730
4731 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
4732 (mips_eabi_push_dummy_call): Rename local 'regsize' to
4733 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
4734 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
4735 Assert that abi_regsize bytes fit in 'ref_valbuf'.
4736
4b76cda9
PA
47372017-06-12 Pedro Alves <palves@redhat.com>
4738
4739 * dwarf2read.c (mapped_symtab::data): Now a vector of
4740 symtab_index_entry instead of vector of
4741 std::unique_ptr<symtab_index_entry>. All users adjusted to check
4742 whether an element's name is NULL instead of checking whether the
4743 element itself is NULL.
4744 (find_slot): Change return type. Adjust.
4745 (hash_expand, , add_index_entry, uniquify_cu_indices)
4746 (write_hash_table): Adjust.
4747
e8f8bcb3
PA
47482017-06-12 Pedro Alves <palves@redhat.com>
4749
4750 * dwarf2read.c (recursively_count_psymbols): New function.
4751 (write_psymtabs_to_index): Call it to compute number of psyms and
4752 pass estimate size of psyms_seen to unordered_set's ctor.
4753
70a1152b
PA
47542017-06-12 Pedro Alves <palves@redhat.com>
4755
4756 * dwarf2read.c (write_hash_table): Check if key already exists
4757 before emplacing.
4758
c2f134ac
PA
47592017-06-12 Pedro Alves <palves@redhat.com>
4760
4761 * dwarf2read.c (data_buf::append_space): Rename to...
4762 (data_buf::grow): ... this, and make private. Adjust all callers.
4763 (data_buf::append_uint): New method.
4764 (add_address_entry, write_one_signatured_type)
4765 (write_psymtabs_to_index): Use it.
4766
a81e6d4d
PA
47672017-06-12 Pedro Alves <palves@redhat.com>
4768
4769 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
4770 (file_write (FILE *, const std::vector<Elem>&)): Delete.
4771 (data_buf::file_write): Call ::fwrite directly.
4772
6fd931f2
PA
47732017-06-12 Pedro Alves <palves@redhat.com>
4774
4775 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
4776 std::vector::erase.
4777
bc8f2430
JK
47782017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4779
4780 Code cleanup: C++ify .gdb_index producer.
4781 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
4782 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
4783 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
4784 (create_strtab, add_string): Remove.
4785 (file_write, data_buf): New.
4786 (struct symtab_index_entry): Use std::vector for cu_indices.
4787 (struct mapped_symtab): Use std::vector for data.
4788 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
4789 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
4790 Remove.
4791 (find_slot): Change return type. Update it to the new data structures.
4792 (hash_expand, add_index_entry): Update it to the new data structures.
4793 (offset_type_compare): Remove.
4794 (uniquify_cu_indices): Update it to the new data structures.
4795 (c_str_view, c_str_view_hasher, vector_hasher): New.
4796 (add_indices_to_cpool): Remove.
4797 (write_hash_table): Update it to the new data structures.
4798 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
4799 (eq_psymtab_cu_index): Remove.
4800 (psym_index_map): New typedef.
4801 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
4802 reference and std::unordered_map for cu_index_htab.
4803 (add_address_entry, add_address_entry_worker, write_address_map)
4804 (write_psymbols): Update it to the new data structures.
4805 (write_obstack): Remove.
4806 (struct signatured_type_index_data): Change types_list to a data_buf
4807 reference and psyms_seen to a std::unordered_set reference.
4808 (write_one_signatured_type, recursively_write_psymbols)
4809 (write_psymtabs_to_index): Update it to the new data structures.
4810
c4dcb155
SM
48112017-06-11 Simon Marchi <simon.marchi@ericsson.com>
4812
4813 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
4814 separate-debug-file commands.
4815 * symfile.h (separate_debug_file_debug): New global.
4816 * symfile.c (separate_debug_file_debug): New global.
4817 (separate_debug_file_exists, find_separate_debug_file): Add
4818 debug output.
4819 (_initialize_symfile): Add "set debug separate-debug-file"
4820 command.
4821 * build-id.c (build_id_to_debug_bfd,
4822 find_separate_debug_file_by_buildid): Add debug output.
4823
6d45d4b4
SM
48242017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4825
4826 * gdbarch.sh (displaced_step_free_closure): Remove.
4827 * gdbarch.h, gdbarch.c: Re-generate.
4828 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
4829 displaced_step_free_closure.
4830 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4831 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4832 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4833 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
4834 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4835 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4836 * arch-utils.h (simple_displaced_step_free_closure): Remove.
4837 * arch-utils.c (simple_displaced_step_free_closure): Remove.
4838 * infrun.c (displaced_step_clear): Call xfree instead of
4839 gdbarch_displaced_step_free_closure.
4840
2f91880f
SDJ
48412017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
4842
4843 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
4844 NULL".
4845
b8b6e72f
AH
48462017-06-08 Alan Hayward <alan.hayward@arm.com>
4847
4848 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
4849 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
4850 (mn10300_push_dummy_call): Likewise.
4851
5369082e
AH
48522017-06-08 Alan Hayward <alan.hayward@arm.com>
4853
4854 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
4855
ff4ca5ac
AH
48562017-06-08 Alan Hayward <alan.hayward@arm.com>
4857
4858 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
4859
aefd8b33
SDJ
48602017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4861
4862 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
4863 able to start inferiors using a shell.
4864 (New remote packets): Announce new packet "QStartupWithShell".
4865 * remote.c: Add PACKET_QStartupWithShell.
4866 (extended_remote_create_inferior): Handle new
4867 PACKET_QStartupWithShell.
4868 (remote_protocol_features) <QStartupWithShell>: New entry for
4869 PACKET_QStartupWithShell.
4870 (_initialize_remote): Call "add_packet_config_cmd" for
4871 QStartupShell.
4872
2090129c
SDJ
48732017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4874 Pedro Alves <palves@redhat.com>
4875
4876 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
4877 and "nat/fork-inferior.h".
4878 * common/common-inferior.h: New file, with contents from
4879 "gdb/inferior.h".
4880 * commom/common-utils.c: Include "common-utils.h".
4881 (stringify_argv): New function.
4882 * common/common-utils.h (stringify_argv): New prototype.
4883 * configure.nat: Add "fork-inferior.o" as a dependency for
4884 "*linux*", "fbsd*" and "nbsd*" hosts.
4885 * corefile.c (get_exec_file): Update comment.
4886 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
4887 instead of "startup_inferior".
4888 (darwin_create_inferior): Call "add_thread_silent" after
4889 "fork_inferior".
4890 * fork-child.c: Cleanup unnecessary includes.
4891 (SHELL_FILE): Move to "common/common-fork-child.c".
4892 (environ): Likewise.
4893 (exec_wrapper): Initialize.
4894 (get_exec_wrapper): New function.
4895 (breakup_args): Move to "common/common-fork-child.c"; rename to
4896 "breakup_args_for_exec".
4897 (escape_bang_in_quoted_argument): Move to
4898 "common/common-fork-child.c".
4899 (saved_ui): New variable.
4900 (prefork_hook): New function.
4901 (postfork_hook): Likewise.
4902 (postfork_child_hook): Likewise.
4903 (gdb_startup_inferior): Likewise.
4904 (fork_inferior): Move to "common/common-fork-child.c". Update
4905 function to support gdbserver.
4906 (startup_inferior): Likewise.
4907 * gdbcore.h (get_exec_file): Remove declaration.
4908 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
4909 instead of "startup_inferior". Call "add_thread_silent" after
4910 "fork_inferior".
4911 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
4912 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
4913 instead of "startup_inferior". Call "add_thread_silent" after
4914 "fork_inferior".
4915 * inferior.h: Include "common-inferior.h".
4916 (trace_start_error): Move to "common/common-utils.h".
4917 (trace_start_error_with_name): Likewise.
4918 (fork_inferior): Move prototype to "nat/fork-inferior.h".
4919 (startup_inferior): Likewise.
4920 (gdb_startup_inferior): New prototype.
4921 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
4922 * nat/fork-inferior.h: New file.
4923 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
4924 instead of "startup_inferior". Call "add_thread_silent" after
4925 "fork_inferior".
4926 * target.h (target_terminal_init): Move prototype to
4927 "target/target.h".
4928 (target_terminal_inferior): Likewise.
4929 (target_terminal_ours): Likewise.
4930 * target/target.h (target_terminal_init): New prototype, moved
4931 from "target.h".
4932 (target_terminal_inferior): Likewise.
4933 (target_terminal_ours): Likewise.
4934 * utils.c (gdb_flush_out_err): New function.
4935
043a4934
SDJ
49362017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4937
4938 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
4939 * common/common-gdbthread.h: New file, with parts from
4940 "gdb/gdbthread.h".
4941 * gdbthread.h: Include "common-gdbthread.h".
4942 (switch_to_thread): Moved to "common/common-gdbthread.h".
4943
15652511
SDJ
49442017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4945
4946 * Makefile.in (SFILES): Add "common/job-control.c".
4947 (HFILES_NO_SRCDIR): Add "common/job-control.h".
4948 (COMMON_OBS): Add "job-control.o".
4949 * common/job-control.c: New file, with contents from
4950 "gdb/inflow.c".
4951 * common/job-control.h: New file, with contents from "terminal.h".
4952 * fork-child.c: Include "job-control.h".
4953 * inflow.c: Include "job-control.h".
4954 (gdb_setpgid): Move to "common/common-inflow.c".
4955 (_initialize_inflow): Move setting of "job_control" to
4956 "handle_job_control".
4957 * terminal.h (job_control): Moved to "common/common-terminal.h".
4958 (gdb_setpgid): Likewise.
4959 * top.c: Include "job_control.h".
4960 * utils.c: Likewise.
4961 (job_control): Moved to "job-control.c".
4962
2d7cc5c7
PA
49632017-06-07 Pedro Alves <palves@redhat.com>
4964
4965 * Makefile.in (SFILES): Add gdb_regex.c.
4966 (COMMON_OBS): Add gdb_regex.o.
4967 * ada-lang.c (ada_add_standard_exceptions)
4968 (ada_add_exceptions_from_frame, name_matches_regex)
4969 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
4970 parameter type to compiled_regex. Adjust.
4971 (ada_exceptions_list): Use compiled_regex.
4972 * break-catch-throw.c (exception_catchpoint::pattern): Now a
4973 std::unique_ptr<compiled_regex>.
4974 (exception_catchpoint::~exception_catchpoint): Remove regfree
4975 call.
4976 (check_status_exception_catchpoint): Adjust to use compiled_regex.
4977 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
4978 * breakpoint.c (solib_catchpoint::compiled): Now a
4979 std::unique_ptr<compiled_regex>.
4980 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
4981 (check_status_catch_solib): Adjust to use compiled_regex.
4982 (add_solib_catchpoint): Adjust to use compiled_regex.
4983 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
4984 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
4985 compiled_regex reference. Adjust to use it.
4986 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
4987 declaration. Include "gdb_regex.h".
4988 (apropos_cmd): Change regex parameter to compiled_regex reference.
4989 * gdb_regex.c: New file.
4990 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
4991 declarations.
4992 (class compiled_regex): New.
4993 * linux-tdep.c: Include "common/gdb_optional.h".
4994 (struct mapping_regexes): New, factored out from
4995 mapping_is_anonymous_p, and adjusted to use compiled_regex.
4996 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
4997 gdb::optional and remove cleanups. Adjust to compiled_regex.
4998 * probe.c: Include "common/gdb_optional.h".
4999 (collect_probes): Use compiled_regex and gdb::optional and remove
5000 cleanups.
5001 * skip.c: Include "common/gdb_optional.h".
5002 (skiplist_entry::compiled_function_regexp): Now a
5003 gdb::optional<compiled_regex>.
5004 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5005 (free_skiplist_entry): Remove regfree call.
5006 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5007 compiled_regex and gdb::optional.
5008 * symtab.c: Include "common/gdb_optional.h".
5009 (search_symbols): Use compiled_regex and gdb::optional.
5010 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5011 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5012 to gdb_regex.c.
5013
50d6adef
AH
50142017-06-07 Alan Hayward <alan.hayward@arm.com>
5015
5016 * regcache.c (regcache::save): Avoid buffer use.
5017 (regcache::dump): Likewise.
5018
4a8a33c8
AH
50192017-06-07 Alan Hayward <alan.hayward@arm.com>
5020
5021 * sh-tdep.c (sh_pseudo_register_read): Remove
5022 MAX_REGISTER_SIZE.
5023 (sh_pseudo_register_write): Likewise.
5024 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5025 (sh64_pseudo_register_write): Likewise
5026
d1be909e
AH
50272017-06-07 Alan Hayward <alan.hayward@arm.com>
5028
5029 * aarch64-tdep.c (aarch64_store_return_value): Use
5030 V_REGISTER_SIZE.
5031 (aarch64_pseudo_read_value): Likewise.
5032 (aarch64_pseudo_write): Likewise.
5033
f4a65042
YQ
50342017-06-06 Yao Qi <yao.qi@linaro.org>
5035
5036 * regformats/regdef.h (set_register_cache): Remove the
5037 declaration.
5038
9f7fb0aa
AH
50392017-06-06 Alan Hayward <alan.hayward@arm.com>
5040
5041 * frame.c (frame_unwind_register_signed): Use
5042 frame_unwind_register_value.
5043
e1e01040
PA
50442017-06-06 Pedro Alves <palves@redhat.com>
5045
5046 PR breakpoints/21553
5047 * breakpoint.c (create_breakpoints_sal_default)
5048 (init_breakpoint_sal, create_breakpoint_sal): Use
5049 gdb::unique_xmalloc_ptr for string parameters.
5050 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5051 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5052 (base_breakpoint_create_breakpoints_sal)
5053 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5054 (strace_marker_create_breakpoints_sal)
5055 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5056 string parameters.
5057 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5058 gdb::unique_xmalloc_ptr for string parameters.
5059 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5060 parameters.
5061
fbe654c8
AH
50622017-06-06 Alan Hayward <alan.hayward@arm.com>
5063
5064 * alpha-tdep.c (alpha_register_to_value): Use
5065 get_frame_register_value.
5066 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5067
ae0d01d6
AH
50682017-06-06 Alan Hayward <alan.hayward@arm.com>
5069
5070 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5071 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5072 (ia64_value_to_register): Likewise.
5073 (ia64_extract_return_value): Likewise.
5074 (ia64_store_return_value): Likewise.
5075 (ia64_push_dummy_call): Likewise.
5076
49cf576c
JB
50772017-06-04 Joel Brobecker <brobecker@adacore.com>
5078
5079 GDB 8.0 released.
5080
26b6a6ab
SM
50812017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5082
5083 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5084
22827c51
SM
50852017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5086
5087 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5088 parameter.
5089 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5090
0e05cf3a
SM
50912017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5092
5093 * event-loop.c (poll_timers): Unallocate timer using delete
5094 instead of xfree.
5095
c1fc2657
SM
50962017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5097
5098 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5099 (struct breakpoint) <~breakpoint>: New.
5100 (struct watchpoint): Inherit from breakpoint.
5101 <~watchpoint>: New.
5102 <base>: Remove.
5103 (struct tracepoint): Inherit from breakpoint.
5104 <base>: Remove.
5105 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5106 (struct longjmp_breakpoint): Inherit from breakpoint.
5107 <~longjmp_breakpoint>: New.
5108 <base>: Remove.
5109 (new_breakpoint_from_type): Remove casts.
5110 (watchpoint_in_thread_scope): Remove reference to base field.
5111 (watchpoint_del_at_next_stop): Likewise.
5112 (update_watchpoint): Likewise.
5113 (watchpoint_check): Likewise.
5114 (bpstat_check_watchpoint): Likewise.
5115 (set_longjmp_breakpoint): Likewise.
5116 (struct fork_catchpoint): Inherit from breakpoint.
5117 <base>: Remove.
5118 (struct solib_catchpoint): Inherit from breakpoint.
5119 <~solib_catchpoint>: New.
5120 <base>: Remove.
5121 (dtor_catch_solib): Change to ...
5122 (solib_catchpoint::~solib_catchpoint): ... this.
5123 (breakpoint_hit_catch_solib): Remove reference to base field.
5124 (add_solib_catchpoint): Likewise.
5125 (create_fork_vfork_event_catchpoint): Likewise.
5126 (struct exec_catchpoint): Inherit from breakpoint.
5127 <~exec_catchpoint>: New.
5128 <base>: Remove.
5129 (dtor_catch_exec): Change to ...
5130 (exec_catchpoint::~exec_catchpoint): ... this.
5131 (dtor_watchpoint): Change to ...
5132 (watchpoint::~watchpoint): ... this.
5133 (watch_command_1): Remove reference to base field.
5134 (catch_exec_command_1): Likewise.
5135 (base_breakpoint_dtor): Change to ...
5136 (breakpoint::~breakpoint): ... this.
5137 (base_breakpoint_ops): Remove dtor field value.
5138 (longjmp_bkpt_dtor): Change to ...
5139 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5140 (strace_marker_create_breakpoints_sal): Remove reference to base
5141 field.
5142 (delete_breakpoint): Don't manually call breakpoint destructor.
5143 (create_tracepoint_from_upload): Remove reference to base field.
5144 (trace_pass_set_count): Likewise.
5145 (initialize_breakpoint_ops): Don't initialize
5146 momentary_breakpoint_ops, don't set dtors.
5147 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5148 <~ada_catchpoint>: New.
5149 <base>: Remove.
5150 (create_excep_cond_exprs): Remove reference to base field.
5151 (dtor_exception): Change to ...
5152 (ada_catchpoint::~ada_catchpoint): ... this.
5153 (dtor_catch_exception): Remove.
5154 (dtor_catch_exception_unhandled): Remove.
5155 (dtor_catch_assert): Remove.
5156 (create_ada_exception_catchpoint): Remove reference to base
5157 field.
5158 (initialize_ada_catchpoint_ops): Don't set dtors.
5159 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5160 breakpoint.
5161 <~signal_catchpoint>: New.
5162 <base>: Remove.
5163 (signal_catchpoint_dtor): Change to ...
5164 (signal_catchpoint::~signal_catchpoint): ... this.
5165 (create_signal_catchpoint): Remove reference to base field.
5166 (initialize_signal_catchpoint_ops): Don't set dtor.
5167 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5168 from breakpoint.
5169 <~syscall_catchpoint>: New.
5170 <base>: Remove.
5171 (dtor_catch_syscall): Change to ...
5172 (syscall_catchpoint::~syscall_catchpoint): ... this.
5173 (create_syscall_event_catchpoint): Remove reference to base
5174 field.
5175 (initialize_syscall_catchpoint_ops): Don't set dtor.
5176 * break-catch-throw.c (struct exception_catchpoint): Inherit
5177 from breakpoint.
5178 <~exception_catchpoint>: New.
5179 <base>: Remove.
5180 (dtor_exception_catchpoint): Change to ...
5181 (exception_catchpoint::~exception_catchpoint): ... this.
5182 (handle_gnu_v3_exceptions): Remove reference to base field.
5183 (initialize_throw_catchpoint_ops): Don't set dtor.
5184 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5185 field.
5186 * remote.c (remote_get_tracepoint_status): Likewise.
5187 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5188 * tracefile.c (tracefile_fetch_registers): Likewise.
5189 * tracepoint.c (actions_command): Likewise.
5190 (validate_actionline): Likewise.
5191 (tfind_1): Likewise.
5192 (get_traceframe_location): Likewise.
5193 (find_matching_tracepoint_location): Likewise.
5194 (parse_tracepoint_status): Likewise.
5195 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5196
3b0871f4
SM
51972017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5198
5199 * breakpoint.c (struct longjmp_breakpoint): New struct.
5200 (is_tracepoint_type): Change return type to bool.
5201 (is_longjmp_type): New function.
5202 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5203 (set_raw_breakpoint_without_location): Use
5204 new_breakpoint_from_type.
5205 (set_raw_breakpoint): Likewise.
5206
a5e364af
SM
52072017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5208
5209 * breakpoint.c (new_breakpoint_from_type): New function.
5210 (create_breakpoint_sal): Use new_breakpoint_from_type and
5211 unique_ptr.
5212 (create_breakpoint): Likewise.
5213
ae3b3f34
SM
52142017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5215
5216 * memattr.c (mem_info_command): Rename to ...
5217 (info_mem_command): ... this.
5218 (mem_enable_command): Rename to ...
5219 (enable_mem_command): ... this.
5220 (mem_disable_command): Rename to ...
5221 (disable_mem_command): ... this.
5222 (mem_delete_command): Rename to ...
5223 (delete_mem_command): ... this.
5224 (_initialize_mem): Adjust function names.
5225
13ace077
MM
52262017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5227
5228 * btrace.c (handle_pt_insn_events): New.
5229 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5230 STATUS. Split into this and ...
5231 (handle_pt_insn_event_flags): ... this.
5232
c56ccc05
MM
52332017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5234
5235 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5236 and struct pt_insn.resynced.
5237 * configure: Regenerated.
5238 * config.in: Regenerated.
5239
08c3f6d2
TW
52402017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5241
5242 * btrace.c (ftrace_find_call_by_number): New function.
5243 (ftrace_new_function): Store objects, not pointers.
5244 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5245 ftrace_new_gap, ftrace_update_function,
5246 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5247 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5248 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5249 btrace_ends_with_single_insn, btrace_call_get): Account for
5250 btrace_thread_info::functions now storing objects.
5251 * btrace.h (struct btrace_thread_info): Add constructor.
5252 (struct btrace_thread_info) <functions>: Make std::vector.
5253 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5254 Initialize with default values.
5255 * record-btrace.c (record_btrace_frame_sniffer): Account for
5256 btrace_thread_info::functions now storing objects.
5257
8ffd39f2
TW
52582017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5259
5260 * btrace.c: Remove typedef bfun_s.
5261 (ftrace_new_gap): Directly add gaps to the list of gaps.
5262 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5263 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5264 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5265 instead of gdb VEC.
5266
4aeb0dfc
TW
52672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5268
5269 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5270 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5271 with btrace_thread_info::next_segment and
5272 btrace_thread_info::prev_segment.
5273 * btrace.h: Remove struct btrace_func_link.
5274 (struct btrace_function): Replace pair of function segment pointers
5275 with pair of indices.
5276 * python/py-record-btrace.c (btpy_call_prev_sibling,
5277 btpy_call_next_sibling): Replace references to
5278 btrace_thread_info::segment with btrace_thread_info::next_segment and
5279 btrace_thread_info::prev_segment.
5280 * record-btrace.c (record_btrace_frame_this_id): Use
5281 btrace_find_call_by_number.
5282
eb8f2b9c
TW
52832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5284
5285 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5286 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5287 btrace_insn_next, btrace_insn_prev): Remove references to
5288 btrace_thread_info::flow.
5289 * btrace.h (struct btrace_function): Remove FLOW.
5290
42bfe59e
TW
52912017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5292
5293 * btrace.c (ftrace_find_call_by_number): New function.
5294 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5295 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5296 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5297 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5298 index.
5299 * btrace.h (struct btrace_function): Turn UP into an index.
5300 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5301 as an index.
5302 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5303 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5304 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5305
b54b03bd
TW
53062017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5307
5308 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5309 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5310 ftrace_update_function, ftrace_compute_global_level_offset,
5311 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5312 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5313 btrace_insn_end, btrace_is_empty): Remove references to
5314 btrace_thread_info::begin and btrace_thread_info::end.
5315 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5316 (struct btrace_thread_info) <functions>: Adjust comment.
5317 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5318 btrace_thread_info::begin.
5319
8286623c
TW
53202017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5321
5322 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5323 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5324 ftrace_update_function): Remove arguments that implicitly were always
5325 BTINFO->END.
5326 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5327 Don't pass BTINFO->END.
5328
a0f1b963
TW
53292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5330
5331 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5332 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5333 btrace_find_insn_by_number): Replace function segment pointer with
5334 index.
5335 (btrace_insn_cmp): Simplify.
5336 * btrace.h: (struct btrace_insn_iterator) Rename index to
5337 insn_index. Replace function segment pointer with index into function
5338 segment vector.
5339 * record-btrace.c (record_btrace_call_history): Replace function
5340 segment pointer use with index.
5341 (record_btrace_frame_sniffer): Retrieve function call segment through
5342 vector.
5343 (record_btrace_set_replay): Remove defunc't safety check.
5344
f158f208
TW
53452017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5346
5347 * btrace.c (btrace_ends_with_single_insn): New function.
5348 (btrace_call_get, btrace_call_number, btrace_call_begin,
5349 btrace_call_end, btrace_call_next, btrace_call_prev,
5350 btrace_find_call_by_number): Use index into call segment vector
5351 instead of pointer.
5352 (btrace_call_cmp): Simplify.
5353 * btrace.h (struct btrace_call_iterator): Replace function call segment
5354 pointer with index into vector.
5355 * record-btrace.c (record_btrace_call_history): Use index instead of
5356 pointer.
5357
521103fd
TW
53582017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5359
5360 * btrace.c (btrace_insn_begin, btrace_insn_end,
5361 btrace_find_insn_by_number): Add btinfo to iterator.
5362 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5363
17b89b34
TW
53642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5365
5366 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5367 and save pointers directly.
5368 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5369 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5370 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5371 changed signature of functions.
5372 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5373 (btrace_fetch): Remove code that adds btrace_function pointers to
5374 vector of btrace_functions.
5375 (btrace_clear): Simplify freeing vector of btrace_functions.
5376
2b51eddc
TW
53772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5378
5379 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5380 Replace VEC_* with std::vector functions.
5381 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5382 (struct btrace_thread_info)<functions>: Change type to std::vector.
5383
db6be0d5
SM
53842017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5385
5386 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5387 "Removed targets and native configurations" up. Merge duplicate
5388 "New commands" sub-sections. Add "New options" sub-sections.
5389
b057297a
AH
53902017-05-26 Alan Hayward <alan.hayward@arm.com>
5391
5392 * defs.h (copy_integer_to_size): New declaration.
5393 * findvar.c (copy_integer_to_size): New function.
5394 (do_cint_test): New selftest function.
5395 (copy_integer_to_size_test): Likewise.
5396 (_initialize_findvar): Likewise.
5397 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5398 (mips_fbsd_collect_reg): Use raw_collect_integer.
5399 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5400 (mips64_fill_gregset): Use raw_collect_integer
5401 (mips64_fill_fpregset): Use raw_supply_integer.
5402 * regcache.c (regcache::raw_supply_integer): New function.
5403 (regcache::raw_collect_integer): Likewise.
5404 * regcache.h: (regcache::raw_supply_integer): New declaration.
5405 (regcache::raw_collect_integer): Likewise.
5406
b77b02a5
YQ
54072017-05-24 Yao Qi <yao.qi@linaro.org>
5408
5409 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5410 (COMMON_OBS): Add gdbarch-selftests.o.
5411 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5412 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5413 * gdbarch-selftests.c: New file.
5414 * regcache.h (regcache) <~regcache>: Mark it virtual if
5415 GDB_SELF_TEST.
5416 <raw_write>: Likewise.
5417
e521e87e
YQ
54182017-05-24 Yao Qi <yao.qi@linaro.org>
5419
5420 * regcache.c (current_regcache): Change it to
5421 regcache::current_regcache.
5422 (regcache_observer_target_changed): Update.
5423 (regcache_thread_ptid_changed): Make it a regcache static
5424 method.
5425 (regcache_thread_ptid_changed): Update.
5426 (class regcache_access): New.
5427 (current_regcache_test): Update.
5428 (_initialize_regcache): Update.
5429 * regcache.h: Include forward_list.
5430 (regcache): Declare regcache_thread_ptid_changed and declare
5431 registers_changed_ptid as friend.
5432
d8e07dda
YQ
54332017-05-24 Yao Qi <yao.qi@linaro.org>
5434
5435 * i387-tdep.c (i387_register_to_value): Use register_size
5436 instead of TYPE_LENGTH.
5437 * m68k-tdep.c (m68k_register_to_value): Likewise.
5438
8c8f9122
YQ
54392017-05-24 Yao Qi <yao.qi@linaro.org>
5440
5441 * i387-tdep.c (i387_convert_register_p): Return false if type
5442 code isn't TYPE_CODE_FLT.
5443
68fce50f
YQ
54442017-05-24 Yao Qi <yao.qi@linaro.org>
5445
5446 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5447 length is 4.
5448 (alpha_register_to_value): Remove type length check.
5449 (alpha_value_to_register): Likewise.
5450
88954b49
YQ
54512017-05-24 Yao Qi <yao.qi@linaro.org>
5452
5453 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5454 TYPE_CODE_FLT.
5455
e3ec9b69
YQ
54562017-05-24 Yao Qi <yao.qi@linaro.org>
5457
5458 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5459 TYPE_CODE_FLT or not.
5460
cdd238da
YQ
54612017-05-24 Yao Qi <yao.qi@linaro.org>
5462
5463 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5464 * avr-tdep.c (avr_gdbarch_init): Likewise.
5465 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5466 * cris-tdep.c (cris_gdbarch_init): Likewise.
5467 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5468 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5469 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5471 * mep-tdep.c (mep_gdbarch_init): Likewise.
5472 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5473 * mips-tdep.c (mips_gdbarch_init): Likewise.
5474 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5475 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5476 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5477 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5478 * v850-tdep.c (v850_gdbarch_init): Likewise.
5479
7a3929c4
YQ
54802017-05-24 Yao Qi <yao.qi@linaro.org>
5481
5482 * selftest-arch.c (tests_with_arch): Call registers_changed
5483 and reinit_frame_cache.
5484 * selftest.c (run_self_tests): Likewise.
5485
f4985dba
YQ
54862017-05-24 Yao Qi <yao.qi@linaro.org>
5487
5488 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
5489 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
5490
ab20fa4a
YQ
54912017-05-24 Yao Qi <yao.qi@linaro.org>
5492
5493 * rl78-tdep.c (rl78_gdbarch_init): Don't call
5494 set_gdbarch_print_insn.
5495
f532ab94
YQ
54962017-05-24 Yao Qi <yao.qi@linaro.org>
5497
5498 * h8300-tdep.c (h8300_gdbarch_init): Don't call
5499 set_gdbarch_print_insn.
5500
39503f82
YQ
55012017-05-24 Yao Qi <yao.qi@linaro.org>
5502
5503 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5504 set_gdbarch_print_insn.
5505 * arc-tdep.c (arc_gdbarch_init): Likewise.
5506 * arch-utils.c: include dis-asm.h.
5507 (default_print_insn): New function.
5508 * arch-utils.h (default_print_insn): Declare.
5509 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
5510 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5511 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
5512 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
5513 * frv-tdep.c (frv_gdbarch_init): Likewise.
5514 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5515 * gdbarch.sh (print_insn): Use default_print_insn.
5516 * gdbarch.c: Regenerated.
5517 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5518 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
5519 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5520 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
5521 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5522 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
5523 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
5524 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5525 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
5526 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5527 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5528 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5529 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5530 * mt-tdep.c (mt_gdbarch_init): Likewise.
5531 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5532 * nios2-tdep.c (nios2_print_insn): Remove.
5533 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
5534 * rx-tdep.c (rx_gdbarch_init): Likewise.
5535 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5536 * score-tdep.c (score_print_insn): Remove.
5537 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
5538 * sh-tdep.c (sh_gdbarch_init): Likewise.
5539 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5540 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5541 * tic6x-tdep.c (tic6x_print_insn): Remove.
5542 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
5543 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
5544 * v850-tdep.c (v850_gdbarch_init): Likewise.
5545 * vax-tdep.c (vax_gdbarch_init): Likewise.
5546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5547 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
5548
f7241d4f
JB
55492017-05-23 John Baldwin <jhb@FreeBSD.org>
5550
5551 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
5552 (MIPS_FP0_REGNUM): Remove.
5553 (MIPS_FSR_REGNUM): Remove.
5554 (mips_fbsd_supply_fpregs): Use mips_regnum.
5555 (mips_fbsd_supply_gregs): Likewise.
5556 (mips_fbsd_collect_fpregs): Likewise.
5557 (mips_fbsd_collect_gregs): Likewise.
5558
d489d81d
JB
55592017-05-23 John Baldwin <jhb@FreeBSD.org>
5560
5561 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
5562 (getpfpregs_supplies): New function.
5563 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
5564 getfpregs_supplies.
5565 (mips_fbsd_store_inferior_registers): Likewise.
5566
e11b3cdc
PA
55672017-05-22 Pedro Alves <palves@redhat.com>
5568
5569 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
5570 maintainer.
5571
0f068fb5
AH
55722017-05-22 Alan Hayward <alan.hayward@arm.com>
5573
5574 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
5575 (store_register): Likewise.
5576 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
5577 (get_decimal_float_return_value): Likewise.
5578 (do_ppc_sysv_return_value): Likewise.
5579 (ppc64_sysv_abi_push_integer): Likewise.
5580 (ppc64_sysv_abi_push_freg): Likewise.
5581 (ppc64_sysv_abi_return_value_base): Likewise.
5582 (ppc64_sysv_abi_return_value): Likewise.
5583 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
5584 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
5585 * rs6000-nat.c: Likewise.
5586 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
5587 (rs6000_value_to_register): Likewise.
5588 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
5589
e6cf65f2
TT
55902017-05-21 Tom Tromey <tom@tromey.com>
5591
5592 PR rust/21466:
5593 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
5594 arrays as "[T]", not "[T; ]".
5595
43cc5389
TT
55962017-05-19 Tom Tromey <tom@tromey.com>
5597
5598 PR rust/21484:
5599 * rust-lang.c (exp_descriptor_rust): New function.
5600 (rust_language_defn): Use it.
5601 * p-lang.c (pascal_language_defn): Update.
5602 * opencl-lang.c (opencl_language_defn): Update.
5603 * objc-lang.c (objc_language_defn): Update.
5604 * m2-lang.c (m2_language_defn): Update.
5605 * language.h (struct language_defn)
5606 <la_watch_location_expression>: New member.
5607 * language.c (unknown_language_defn, auto_language_defn)
5608 (local_language_defn): Update.
5609 * go-lang.c (go_language_defn): Update.
5610 * f-lang.c (f_language_defn): Update.
5611 * d-lang.c (d_language_defn): Update.
5612 * c-lang.h (c_watch_location_expression): Declare.
5613 * c-lang.c (c_watch_location_expression): New function.
5614 (c_language_defn, cplus_language_defn, asm_language_defn)
5615 (minimal_language_defn): Use it.
5616 * breakpoint.c (watch_command_1): Call
5617 la_watch_location_expression.
5618 * ada-lang.c (ada_language_defn): Update.
5619
7a6e7fcc
RO
56202017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5621
6e7e1744
RO
5622 PR tui/21482
5623 * gdb_curses.h (NOMACROS): Define.
5624 (NCURSES_NOMACROS): Define.
5625
56262017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5627
5628 PR tui/21482
7a6e7fcc
RO
5629 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
5630 arg to char *.
5631 * tui/tui-wingeneral.c (box_win): Likewise.
5632 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
5633 (tui_show_source_line): Likewise.
5634 (tui_show_exec_info_content): Likewise.
5635
1933fd8e
VM
56362017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
5637
5638 * sparc-tdep.c (sparc_structure_return_p)
5639 (sparc_arg_on_registers_p): New functions.
5640 (sparc32_store_arguments): Use them.
5641 * sparc64-tdep.c (sparc64_16_byte_align_p)
5642 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
5643 Handle TYPE_CODE_ARRAY.
5644
21873064
YQ
56452017-05-17 Yao Qi <yao.qi@linaro.org>
5646
5647 * cli/cli-decode.c (add_alias_cmd): New function.
5648 * command.h (add_alias_cmd): Declare.
5649 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
5650 instead call add_alias_cmd.
5651
2b351b19
PA
56522017-05-17 Pedro Alves <palves@redhat.com>
5653
5654 * Makefile.in (nat_extra_makefile_frag): Rename to ...
5655 (nat_makefile_frag): ... this. All references updated.
5656 * configure.ac: Likewise.
5657 * configure.nat: Likewise. Enhance comments.
5658 * configure: Regenerate.
5659
5f2ad7a3
RO
56602017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5661
5662 * procfs.c (procfs_create_inferior): Change prototype to match
5663 definition.
5664
adf3dde5
EZ
56652017-05-13 Eli Zaretskii <eliz@gnu.org>
5666
5667 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
5668 C++ compiler warning.
5669
6830f270
TT
56702017-05-12 Tom Tromey <tom@tromey.com>
5671
5672 PR rust/21483:
5673 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
5674 recurse, just call value_struct_elt directly.
5675
68f2f2e3
TT
56762017-05-12 Tom Tromey <tom@tromey.com>
5677
5678 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
5679 OP_RUST_ARRAY>: Fix.
5680
256afbc2
TT
56812017-05-12 Tom Tromey <tom@tromey.com>
5682
5683 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
5684
94bb8dfe
YQ
56852017-05-09 Yao Qi <yao.qi@linaro.org>
5686
5687 * regcache.c: Include <forward_list>.
5688 (struct regcache_list): Remove.
5689 (current_regcache): Update.
5690 (get_thread_arch_aspace_regcache): Update for std::forward_list.
5691 (regcache_thread_ptid_changed): Likewise.
5692 (registers_changed_ptid): Likewise.
5693 (current_regcache_size): Likewise.
5694
8248946c
YQ
56952017-05-09 Yao Qi <yao.qi@linaro.org>
5696
5697 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
5698 (current_regcache_size): New function.
5699 (current_regcache_test): New function.
5700 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
5701
313c5961
AH
57022017-05-08 Alan Hayward <alan.hayward@arm.com>
5703
5704 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
5705 (print_gp_register_row): Use get_frame_register_value.
5706
27bfc1d1
AH
57072017-05-08 Alan Hayward <alan.hayward@arm.com>
5708
5709 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
5710 (mips_supply_fpregset): Likewise.
5711 (mips64_supply_gregset): Likewise.
5712
146e6c5c
AH
57132017-05-08 Alan Hayward <alan.hayward@arm.com>
5714
5715 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
5716 regcache->raw_supply_zeroed.
5717
e50f25ec
SDJ
57182017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5719
5720 * configure.nat: Rearrange 'case' statements to match
5721 host before cpu.
5722
21ea5acd
SDJ
57232017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5724
5725 * Makefile.in: Remove "@host_makefile_frag@". Add variables
5726 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
5727 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
5728 "@nat_extra_makefile_frag@".
5729 (Makefile): Remove dependency on "@frags@".
5730 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
5731 (data-directory/Makefile): Likewise.
5732 * config/aarch64/linux.mh: Deleted; moved contents to
5733 "gdb/configure.nat".
5734 * config/alpha/alpha-linux.mh: Likewise.
5735 * config/alpha/nbsd.mh: Likewise.
5736 * config/arm/linux.mh: Likewise.
5737 * config/arm/nbsdelf.mh: Likewise.
5738 * config/i386/cygwin.mh: Likewise.
5739 * config/i386/cygwin64.mh: Likewise.
5740 * config/i386/darwin.mh: Likewise.
5741 * config/i386/fbsd.mh: Likewise.
5742 * config/i386/fbsd64.mh: Likewise.
5743 * config/i386/go32.mh: Likewise.
5744 * config/i386/i386gnu.mh: Likewise.
5745 * config/i386/i386sol2.mh: Likewise.
5746 * config/i386/linux.mh: Likewise.
5747 * config/i386/linux64.mh: Likewise.
5748 * config/i386/mingw.mh: Likewise.
5749 * config/i386/mingw64.mh: Likewise.
5750 * config/i386/nbsd64.mh: Likewise.
5751 * config/i386/nbsdelf.mh: Likewise.
5752 * config/i386/nto.mh: Likewise.
5753 * config/i386/obsd.mh: Likewise.
5754 * config/i386/obsd64.mh: Likewise.
5755 * config/i386/sol2-64.mh: Likewise.
5756 * config/ia64/linux.mh: Likewise.
5757 * config/m32r/linux.mh: Likewise.
5758 * config/m68k/linux.mh: Likewise.
5759 * config/m68k/nbsdelf.mh: Likewise.
5760 * config/m68k/obsd.mh: Likewise.
5761 * config/m88k/obsd.mh: Likewise.
5762 * config/mips/fbsd.mh: Likewise.
5763 * config/mips/linux.mh: Likewise.
5764 * config/mips/nbsd.mh: Likewise.
5765 * config/mips/obsd64.mh: Likewise.
5766 * config/pa/linux.mh: Likewise.
5767 * config/pa/nbsd.mh: Likewise.
5768 * config/pa/obsd.mh: Likewise.
5769 * config/powerpc/aix.mh: Likewise.
5770 * config/powerpc/fbsd.mh: Likewise.
5771 * config/powerpc/linux.mh: Likewise.
5772 * config/powerpc/nbsd.mh: Likewise.
5773 * config/powerpc/obsd.mh: Likewise.
5774 * config/powerpc/ppc64-linux.mh: Likewise.
5775 * config/powerpc/spu-linux.mh: Likewise.
5776 * config/s390/linux.mh: Likewise.
5777 * config/sh/nbsd.mh: Likewise.
5778 * config/sparc/fbsd.mh: Likewise.
5779 * config/sparc/linux.mh: Likewise.
5780 * config/sparc/linux64.mh: Likewise.
5781 * config/sparc/nbsd64.mh: Likewise.
5782 * config/sparc/nbsdelf.mh: Likewise.
5783 * config/sparc/obsd64.mh: Likewise.
5784 * config/sparc/sol2.mh: Likewise.
5785 * config/tilegx/linux.mh: Likewise.
5786 * config/vax/nbsdelf.mh: Likewise.
5787 * config/vax/obsd.mh: Likewise.
5788 * config/xtensa/linux.mh: Likewise.
5789 * config/i386/i386gnu.mn: New file, with excerpts from
5790 "config/i386/i386gnu.mh".
5791 * configure: Regenerate.
5792 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
5793 *.mh files under "gdb/config".
5794 * configure.nat: New file, with contents from the
5795 "gdb/config/*/*.mh" files.
5796
7ed1acaf
TW
57972017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
5798
5799 * btrace.c (btrace_clear): Free insn vector.
5800
e13cb306
PA
58012017-05-05 Pedro Alves <palves@redhat.com>
5802
5803 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
5804 * configure: Regenerate.
5805
5ed8105e
PA
58062017-05-04 Pedro Alves <palves@redhat.com>
5807
5808 * Makefile.in (SFILES): Add progspace-and-thread.c.
5809 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
5810 (COMMON_OBS): Add progspace-and-thread.o.
5811 * breakpoint.c: Include "progspace-and-thread.h".
5812 (update_inserted_breakpoint_locations)
5813 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
5814 Use scoped_restore_current_pspace_and_thread.
5815 (create_std_terminate_master_breakpoint): Use
5816 scoped_restore_current_program_space.
5817 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
5818 (print_breakpoint_location): Use
5819 scoped_restore_current_program_space.
5820 (bp_loc_is_permanent): Use
5821 scoped_restore_current_pspace_and_thread.
5822 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
5823 (download_tracepoint_locations): Use
5824 scoped_restore_current_pspace_and_thread.
5825 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
5826 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
5827 (enum step_over_calls_kind): Moved from inferior.h.
5828 (class scoped_restore_current_thread): New class.
5829 * gdbthread.h (make_cleanup_restore_current_thread): Delete
5830 declaration.
5831 (scoped_restore_current_thread): New class.
5832 * infcmd.c: Include "common/gdb_optional.h".
5833 (continue_1, proceed_after_attach): Use
5834 scoped_restore_current_thread.
5835 (notice_new_inferior): Use scoped_restore_current_thread.
5836 * inferior.c: Include "progspace-and-thread.h".
5837 (restore_inferior, save_current_inferior): Delete.
5838 (add_inferior_command, clone_inferior_command): Use
5839 scoped_restore_current_pspace_and_thread.
5840 * inferior.h (scoped_restore_current_inferior): New class.
5841 * infrun.c: Include "progspace-and-thread.h" and
5842 "common/gdb_optional.h".
5843 (follow_fork_inferior): Use
5844 scoped_restore_current_pspace_and_thread.
5845 (scoped_restore_exited_inferior): New class.
5846 (handle_vfork_child_exec_or_exit): Use
5847 scoped_restore_exited_inferior,
5848 scoped_restore_current_pspace_and_thread,
5849 scoped_restore_current_thread and scoped_restore.
5850 (fetch_inferior_event): Use scoped_restore_current_thread.
5851 * linespec.c (decode_line_full, decode_line_1): Use
5852 scoped_restore_current_program_space.
5853 * mi/mi-main.c: Include "progspace-and-thread.h".
5854 (exec_continue): Use scoped_restore_current_thread.
5855 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
5856 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
5857 * proc-service.c (ps_pglobal_lookup): Use
5858 scoped_restore_current_program_space.
5859 * progspace-and-thread.c: New file.
5860 * progspace-and-thread.h: New file.
5861 * progspace.c (release_program_space, clone_program_space): Use
5862 scoped_restore_current_program_space.
5863 (restore_program_space, save_current_program_space)
5864 (save_current_space_and_thread): Delete.
5865 (switch_to_program_space_and_thread): Moved to
5866 progspace-and-thread.c.
5867 * progspace.h (save_current_program_space)
5868 (save_current_space_and_thread): Delete declarations.
5869 (scoped_restore_current_program_space): New class.
5870 * remote.c (remote_btrace_maybe_reopen): Use
5871 scoped_restore_current_thread.
5872 * symtab.c: Include "progspace-and-thread.h".
5873 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
5874 * thread.c (print_thread_info_1): Use
5875 scoped_restore_current_thread.
5876 (struct current_thread_cleanup): Delete.
5877 (do_restore_current_thread_cleanup)
5878 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
5879 (scoped_restore_current_thread::~scoped_restore_current_thread):
5880 ... this new dtor.
5881 (make_cleanup_restore_current_thread): Rename/convert to ...
5882 (scoped_restore_current_thread::scoped_restore_current_thread):
5883 ... this new ctor.
5884 (thread_apply_all_command): Use scoped_restore_current_thread.
5885 (thread_apply_command): Use scoped_restore_current_thread.
5886 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
5887 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
5888
f6223dbb
PA
58892017-05-04 Pedro Alves <palves@redhat.com>
5890
5891 * thread.c (make_cleanup_restore_current_thread): Move
5892 find_thread_ptid call before the is_stopped call. Assert that the
5893 thread is found. Replace is_stopped call by checking the thread's
5894 state directly. Remove unnecessary NULL-thread check.
5895
3c3ae77e
PA
58962017-05-04 Pedro Alves <palves@redhat.com>
5897
5898 * corelow.c (thread_section_name): New class.
5899 (get_core_register_section, get_core_siginfo): Use it.
5900
45eba0ab
AA
59012017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5902
5903 * corelow.c (sniff_core_bfd): Remove extra semicolon.
5904 (get_core_register_section): Remove xfree of NULL pointer.
5905
f81fdd35
AH
59062017-05-03 Alan Hayward <alan.hayward@arm.com>
5907
5908 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
5909 * regcache.c (regcache::raw_supply_zeroed): New function.
5910 * regcache.h (regcache::raw_supply_zeroed): New declaration.
5911
35837774
SM
59122017-05-03 Simon Marchi <simon.marchi@ericsson.com>
5913
5914 * gdbarch.sh: Remove commented out definition of
5915 TARGET_CHAR_BIT.
5916 * gdbarch.h: Re-generate.
5917
c94fee56
SDJ
59182017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5919
5920 * configure: Regenerate.
5921
d17f7b36
SM
59222017-05-02 Simon Marchi <simon.marchi@ericsson.com>
5923
5924 * solib-target.c (solib_target_relocate_section_addresses):
5925 Remove num_section_bases, num_bases, segment_bases variables.
5926
b560ebd6
SM
59272017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5928
5929 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
5930
f2f46dfc
SM
59312017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 * solib-target.c: Include <vector>
5934 (struct lm_info_target) <~lm_info_target>: Remove.
5935 <segment_bases, section_bases>: Change type to
5936 std::vector<CORE_ADDR>.
5937 (library_list_start_segment, library_list_start_section,
5938 library_list_end_library,
5939 solib_target_relocate_section_addresses): Adjust.
5940
a0ff9e1a
SM
59412017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5942
5943 * gdbarch.sh (software_single_step): Change return type to
5944 std::vector<CORE_ADDR>.
5945 * gdbarch.c, gdbarch.h: Re-generate.
5946 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
5947 Adjust.
5948 (arm_deal_with_atomic_sequence_raw): Adjust.
5949 (thumb_get_next_pcs_raw): Adjust.
5950 (arm_get_next_pcs_raw): Adjust.
5951 (arm_get_next_pcs): Adjust.
5952 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
5953 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
5954 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
5955 (alpha_software_single_step): Adjust.
5956 * alpha-tdep.h (alpha_software_single_step): Adjust.
5957 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
5958 * arm-tdep.c (arm_software_single_step): Adjust.
5959 (arm_breakpoint_kind_from_current_state): Adjust.
5960 * arm-tdep.h (arm_software_single_step): Adjust.
5961 * breakpoint.c (insert_single_step_breakpoint): Adjust.
5962 * cris-tdep.c (cris_software_single_step): Adjust.
5963 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
5964 (micromips_deal_with_atomic_sequence): Adjust.
5965 (deal_with_atomic_sequence): Adjust.
5966 (mips_software_single_step): Adjust.
5967 * mips-tdep.h (mips_software_single_step): Adjust.
5968 * moxie-tdep.c (moxie_software_single_step): Adjust.
5969 * nios2-tdep.c (nios2_software_single_step): Adjust.
5970 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
5971 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
5972 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
5973 * s390-linux-tdep.c (s390_software_single_step): Adjust.
5974 * sparc-tdep.c (sparc_software_single_step): Adjust.
5975 * spu-tdep.c (spu_software_single_step): Adjust.
5976 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
5977
ea480a30
SM
59782017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * gdbarch.sh: Use semi-colon as field separator instead of colon.
5981 * gdbarch.h: Re-generate.
5982
d050f7d7
TW
59832017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5984
5985 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
5986 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
5987 * python/py-instruction.c, python/py-instruction.h: New file.
5988 * python/py-record.c: Add py-instruction.h include.
5989 (gdbpy_initialize_record): Make gdb.Instruction a super class of
5990 gdb.RecordInstruction.
5991 * python/python-internal.h: Add gdbpy_initialize_instruction
5992 declaration.
5993 * python/python.c (do_start_initialization): Add
5994 gdbpy_initialize_instruction.
5995
14f819c8
TW
59962017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5997
5998 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
5999 Remove.
6000 (btrace_func_from_recpy_func): New function.
6001 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6002 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6003 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6004 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6005 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6006 Also, use new helper functions.
6007 (btpy_list_item): Use new helper functions.
6008 (recpy_bt_function_call_history): Use new type name.
6009 (btpy_call_getset): Remove.
6010 (gdbpy_initialize_btrace): Remove code to initialize
6011 gdb.BtraceFunctionCall.
6012 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6013 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6014 recpy_bt_func_prev, recpy_bt_func_next): New export.
6015 * python/py-record.c (recpy_func_type): New static object.
6016 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6017 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6018 recpy_func_next): New function.
6019 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6020 (recpy_func_getset): New static object.
6021 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6022 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6023
0ed5da75
TW
60242017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6025
6026 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6027 (btpy_object, btpy_insn_type, btpy_new): Remove.
6028 (btpy_list_object): Use gdb.RecordInstruction type instead of
6029 gdb.BtraceInstruction type.
6030 (btrace_insn_from_recpy_insn): New function.
6031 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6032 btpy_new.
6033 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6034 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6035 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6036 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6037 instead of btpy_object.
6038 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6039 btpy_insn_data, btpy_insn_decode): Rename to ...
6040 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6041 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6042 recpy_bt_insn_decode): This. Also, use new helper functions.
6043 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6044 recpy_insn_type.
6045 (btpy_insn_getset): Remove.
6046 (gdbpy_initialize_btrace): Remove code to initialize
6047 gdb.BtraceInstruction. Use recpy_element_object.
6048 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6049 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6050 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6051 * python/py-record.c (recpy_insn_type): New static object.
6052 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6053 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6054 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6055 New function.
6056 (recpy_insn_getset): New static object.
6057 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6058 * python/py-record.h (recpy_element_object): New typedef.
6059 (recpy_insn_type, recpy_insn_new): New export.
6060
913aeadd
TW
60612017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6062
6063 * py-record-btrace.c (btpy_insn_new): Removed.
6064 (btpy_insn_or_gap_new): New function.
6065 (btpy_insn_error): Removed.
6066 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6067 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6068 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6069 btpy_insn_or_gap_new instead of btpy_insn_new.
6070 (btpy_insn_getset): Remove btpy_insn_error.
6071 * py-record.c (recpy_gap_type): New static object.
6072 (recpy_gap_object): New typedef.
6073 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6074 recpy_gap_reason_string): New function.
6075 (recpy_gap_getset): New static object.
6076 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6077 * py-record.h (recpy_gap_new): New export.
6078
a3be24ad
TW
60792017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6080
6081 * python/py-record.c (recpy_ptid): Remove.
6082 (recpy_record_getset): Remove recpy_ptid.
6083
ae20e79a
TW
60842017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6085
6086 * btrace.c (btrace_fetch): Set inferior_ptid.
6087 * python/py-record-btrace.c: Add "py-record.h" include.
6088 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6089 recpy_bt_end, recpy_bt_instruction_history,
6090 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6091 in gdb.Record object instead of current ptid.
6092 * python/py-record.c: Include new "py-record.h" file.
6093 (recpy_record_object): Moved to py-record.h.
6094 * python/py-record.h: New file.
6095
8d0050ea
TW
60962017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6097
6098 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6099 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6100 indentation.
6101
3f380b50
JB
61022017-05-01 Joel Brobecker <brobecker@adacore.com>
6103
6104 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6105 the past maintainers section.
6106
07495424
YQ
61072017-04-28 Yao Qi <yao.qi@linaro.org>
6108
6109 * infcmd.c (get_return_value): Use regcache ctor, and remove
6110 cleanup.
6111
deb1fa3e
YQ
61122017-04-28 Yao Qi <yao.qi@linaro.org>
6113 Pedro Alves <palves@redhat.com>
6114
6115 * regcache.c (regcache::regcache): New tag dispatch ctor.
6116 (do_cooked_read): Moved above.
6117 (regcache_dup): Use the tag dispatch ctor..
6118 * regcache.h (regcache): Declare ctor, delete copy ctor and
6119 assignment operator, remove friend regcache_dup.
6120
b421c83c
YQ
61212017-04-28 Yao Qi <yao.qi@linaro.org>
6122
6123 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6124 call method save instead of regcache_cpy.
6125 * regcache.h (struct regcache): Make regcache_dup a friend.
6126
ef79d9a3
YQ
61272017-04-28 Yao Qi <yao.qi@linaro.org>
6128
6129 * regcache.c (struct regcache): Move to regcache.h
6130 (regcache::arch): New method.
6131 (regcache_get_ptid): Update.
6132 (get_regcache_arch): Call arch method.
6133 (get_regcache_aspace): Call method aspace.
6134 (register_buffer): Change it to method.
6135 (regcache_save): Change it to regcache::save.
6136 (regcache_restore): Likewise.
6137 (regcache_cpy_no_passthrough): Remove the declaration.
6138 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6139 (regcache_cpy_no_passthrough): Change it to method
6140 cpy_no_passthrough.
6141 (regcache_register_status): Change it to method
6142 get_register_status.
6143 (regcache_invalidate): Change it to method invalidate.
6144 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6145 (regcache_raw_update): Change it to method raw_update.
6146 (regcache_raw_read): Likewise.
6147 (regcache_raw_read_signed): Likewise.
6148 (regcache_raw_read_unsigned): Likewise.
6149 (regcache_raw_write_signed): Likewise.
6150 (regcache_raw_write_unsigned): Likewise.
6151 (regcache_cooked_read): Likewise.
6152 (regcache_cooked_read_value): Likewise.
6153 (regcache_cooked_read_signed): Likewise.
6154 (regcache_cooked_read_unsigned): Likewise.
6155 (regcache_cooked_write_signed): Likewise.
6156 (regcache_cooked_write_unsigned): Likewise.
6157 (regcache_raw_set_cached_value): Likewise.
6158 (regcache_raw_write): Likewise.
6159 (regcache_cooked_write): Likewise.
6160 (regcache_xfer_part): Likewise.
6161 (regcache_raw_read_part): Likewise.
6162 (regcache_raw_write_part): Likewise.
6163 (regcache_cooked_read_part): Likewise.
6164 (regcache_cooked_write_part): Likewise.
6165 (regcache_raw_supply): Likewise.
6166 (regcache_raw_collect): Likewise.
6167 (regcache_transfer_regset): Likewise.
6168 (regcache_supply_regset): Likewise.
6169 (regcache_collect_regset): Likewise.
6170 (regcache_debug_print_register): Likewise.
6171 (enum regcache_dump_what): Move it to regcache.h.
6172 (regcache_dump): Change it to method dump.
6173 * regcache.h (enum regcache_dump_what): New.
6174 (class regcache): New.
6175 * target.c (target_fetch_registers): Call method
6176 debug_print_register.
6177 (target_store_registers): Likewise.
6178
f8fdb78e
SM
61792017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6180
6181 * windows-nat.c (struct lm_info_windows): Initialize field.
6182 (windows_make_so): Allocate lm_info_windows with new.
6183 (windows_free_so): Free lm_info_windows with delete.
6184
9ccbfd7b
SM
61852017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6186
6187 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6188 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6189 cleanup.
6190 (darwin_free_so): Free lm_info_darwin with delete.
6191
76e75227
SM
61922017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6193
6194 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6195 <l_addr_p>: Change type to bool.
6196 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6197 (svr4_free_so): Free lm_info_svr4 with delete.
6198 (svr4_copy_library_list): Replace memcpy with call to copy
6199 constructor.
6200 (library_list_start_library, svr4_default_sos): Allocate
6201 lm_info_svr4 with new.
6202
51046d9e
SM
62032017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6204
6205 * solib-target.c (struct lm_info_target): Add destructor,
6206 initialize fields.
6207 <name>: Change type to std::string.
6208 (library_list_start_library): Allocate lm_info_target with new.
6209 (solib_target_free_library_list): Free lm_info_target with
6210 delete.
6211 (solib_target_current_sos): Adapt to std::string.
6212 (solib_target_free_so): Free lm_info_target with delete.
6213
4023ae76
SM
62142017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6215
6216 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6217 fields.
6218 (frv_current_sos): Allocate lm_info_frv with new.
6219 (frv_relocate_main_executable): Free lm_info_frv with delete,
6220 allocate with new.
6221 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6222
af43057b
SM
62232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6224
6225 * solib-frv.c (struct lm_info_frv): Fix indentation.
6226
b0911207
SM
62272017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6228
6229 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6230 map field.
6231 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6232 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6233 and allocate with new.
6234 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6235
6c401f72
SM
62362017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6237
6238 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6239 <filename, member_name>: Change type to std::string.
6240 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6241 (library_list_start_library): Allocate lm_info_aix with new.
6242 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6243 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6244 with copy constructor.
6245
d0e449a1
SM
62462017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6247
6248 * solist.h (struct lm_info): Remove.
6249 (struct lm_info_base): New class.
6250 (struct so_list) <lm_info>: Change type to lm_info_base *.
6251 * nto-tdep.c (struct lm_info): Remove.
6252 (lm_addr): Adjust.
6253 * solib-aix.c (struct lm_info): Rename to ...
6254 (struct lm_info_aix): ... this. Extend lm_info_base.
6255 (lm_info_p): Rename to ...
6256 (lm_info_aix_p): ... this, and adjust.
6257 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6258 solib_aix_parse_libraries, library_list_start_library,
6259 solib_aix_free_library_list, solib_aix_parse_libraries,
6260 solib_aix_get_library_list,
6261 solib_aix_relocate_section_addresses, solib_aix_free_so,
6262 solib_aix_get_section_offsets,
6263 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6264 Adjust.
6265 (struct solib_aix_inferior_data) <library_list>: Adjust.
6266 * solib-darwin.c (struct lm_info): Rename to ...
6267 (struct lm_info_darwin): ... this. Extend lm_info_base.
6268 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6269 * solib-dsbt.c (struct lm_info): Rename to ...
6270 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6271 (struct dsbt_info) <main_executable_lm_info): Adjust.
6272 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6273 dsbt_relocate_section_addresses): Adjust.
6274 * solib-frv.c (struct lm_info): Rename to ...
6275 (struct lm_info_frv): ... this. Extend lm_info_base.
6276 (main_executable_lm_info): Adjust.
6277 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6278 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6279 find_canonical_descriptor_in_load_object,
6280 frv_fdpic_find_canonical_descriptor): Adjust.
6281 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6282 to lm_info_svr4.
6283 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6284 svr4_clear_so, svr4_copy_library_list,
6285 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6286 svr4_current_sos, svr4_fetch_objfile_link_map,
6287 solist_update_incremental): Adjust.
6288 * solib-svr4.h (struct lm_info_svr4): Move here from
6289 solib-svr4.c.
6290 * solib-target.c (struct lm_info): Rename to ...
6291 (struct lm_info_target): ... this. Extend lm_info_base.
6292 (lm_info_p): Rename to ...
6293 (lm_info_target_p): ... this.
6294 (solib_target_parse_libraries, library_list_start_segment,
6295 library_list_start_section, library_list_start_library,
6296 library_list_end_library, solib_target_free_library_list,
6297 solib_target_current_sos, solib_target_free_so,
6298 solib_target_relocate_section_addresses): Adjust.
6299 * windows-nat.c (struct lm_info): Rename to ...
6300 (struct lm_info_windows): ... this. Extend lm_info_base.
6301 (windows_make_so, handle_load_dll, handle_unload_dll,
6302 windows_xfer_shared_libraries): Adjust.
6303
434a4023
SM
63042017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6305
6306 * solib-darwin.c (struct darwin_so_list): Remove.
6307 (darwin_current_sos): Allocate an so_list object instead of a
6308 darwin_so_list, separately allocate an lm_info object.
6309 (darwin_free_so): Free lm_info.
6310
428544e8
JB
63112017-04-28 John Baldwin <jhb@FreeBSD.org>
6312
6313 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6314 with fprintf_filtered.
6315
4621115f
YQ
63162017-04-28 Yao Qi <yao.qi@linaro.org>
6317
6318 * regcache.c (regcache::regcache): New function.
6319 (regcache::~regcache): New function.
6320 (regcache_xmalloc_1): Remove.
6321 (regcache_xmalloc): Call new regcache.
6322 (regcache_xfree): Call delete regcache.
6323 (get_thread_arch_aspace_regcache): Call new regcache.
6324
339053c2
YQ
63252017-04-28 Yao Qi <yao.qi@linaro.org>
6326
6327 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6328 lwp instead of ptid_get_lwp.
6329
7974a605
YQ
63302017-04-28 Yao Qi <yao.qi@linaro.org>
6331
6332 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6333 lwp_info instead of getting from inferior_ptid.
6334
e15c3eb4
KS
63352017-04-27 Keith Seitz <keiths@redhat.com>
6336
6337 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6338 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6339 (CV_CONVERSION_BADNESS): Define.
6340 (rank_one_type): Remove overly restrictive rvalue reference
6341 rank checks.
6342 Add cv-qualifier checks and subranks for type equality.
6343 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6344 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6345 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6346
72bc1d24
SM
63472017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6348
6349 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6350 count when creating the object.
6351
55bcecda
UW
63522017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6353 Ulrich Weigand <uweigand@de.ibm.com>
6354
6355 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6356 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6357 is used in AIX.
6358 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6359 (process_xcoff_symbol): Likewise.
6360 (scan_xcoff_symtab): Likewise.
6361
5c99fcf8
AH
63622017-04-26 Alan Hayward <alan.hayward@arm.com>
6363
6364 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6365 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6366 (ia64_access_reg): Use get_frame_register_unsigned.
6367 (ia64_access_rse_reg): Likewise.
6368 (ia64_libunwind_frame_prev_register): Likewise.
6369
b41c5a85
JW
63702017-04-26 Jiong Wang <jiong.wang@arm.com>
6371
6372 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6373 * gdbarch.c: Regenerated.
6374 * gdbarch.h: Regenerated.
6375 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6376 visibility external.
6377 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6378 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6379 (enum cfa_how_kind): Move to ...
6380 (struct dwarf2_frame_state_reg_info): Likewise.
6381 (struct dwarf2_frame_state): Likewise.
6382 * dwarf2-frame.h: ... here.
6383 (dwarf2_frame_state_alloc_regs): New declaration.
6384 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6385 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6386
c185f580
AH
63872017-04-26 Alan Hayward <alan.hayward@arm.com>
6388
6389 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6390 regcache_raw_read_unsigned.
6391 (xtensa_pseudo_register_write): Likewise.
6392
19c45594
AH
63932017-04-26 Alan Hayward <alan.hayward@arm.com>
6394
6395 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6396 (nds32_pseudo_register_write): Likewise.
6397
4658f12e
YQ
63982017-04-25 Yao Qi <yao.qi@linaro.org>
6399
6400 * regcache.c (struct regcache) <readonly_p>: Change its type
6401 to bool.
6402 (regcache_xmalloc_1): Update parameter type and callers update.
6403
d581dda8
YQ
64042017-04-25 Yao Qi <yao.qi@linaro.org>
6405
6406 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6407 set_gdbarch_wchar_bit.
6408 * arm-tdep.c (arm_gdbarch_init): Likewise.
6409
debed3db
PA
64102017-04-25 Pedro Alves <palves@redhat.com>
6411
6412 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6413 (BothAreRelocatable, memcopy, memmove): Don't define.
6414 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6415 macros.
6416
b0b92aeb
PA
64172017-04-25 Pedro Alves <palves@redhat.com>
6418
6419 * common/common-defs.h: Include "common/poison.h".
6420 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6421 and adjust.
6422 * common/poison.h: New file.
6423 * common/traits.h: Include <type_traits>.
6424 (Not, Or, Requires): New, moved from common/function-view.h.
6425
16c4d54a
PA
64262017-04-25 Pedro Alves <palves@redhat.com>
6427
6428 * breakpoint.h (struct breakpoint): In-class initialize all
6429 fields. Make boolean fields "bool".
6430 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6431 memset call and initializations no longer necessary.
6432
b5c36682
PA
64332017-04-25 Pedro Alves <palves@redhat.com>
6434
6435 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6436 reference.
6437 (pt_btrace_insn): New function.
6438 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6439
5625a286
PA
64402017-04-25 Pedro Alves <palves@redhat.com>
6441
6442 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6443 "base" field and inherit from "bp_location" instead. Add
6444 non-default ctor.
6445 (allocate_location_exception): Use new non-default ctor.
6446 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6447 (init_bp_location): Convert to ...
6448 (bp_location::bp_location): ... this new ctor, and remove memset
6449 call.
6450 (base_breakpoint_allocate_location): Use the new non-default ctor.
6451 * breakpoint.h (bp_location): Now a class. Declare default and
6452 non-default ctors. In-class initialize all members.
6453 (init_bp_location): Remove declaration.
6454
23bcc18f
PA
64552017-04-25 Pedro Alves <palves@redhat.com>
6456
6457 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6458 assignment operator.
6459
e1ba3053
YQ
64602017-04-24 Yao Qi <yao.qi@linaro.org>
6461
6462 * doublest.c (convert_doublest_to_floatformat): Call
6463 floatformat_totalsize_bytes.
6464
10f489e5
TT
64652017-04-22 Tom Tromey <tom@tromey.com>
6466
6467 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6468 ui_out_emit_list.
6469 * stack.c (print_frame): Use ui_out_emit_list.
6470 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6471 ui_out_emit_list.
6472 * mi/mi-main.c (print_one_inferior)
6473 (mi_cmd_data_list_register_names)
6474 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6475 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6476 ui_out_emit_list.
6477 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
6478 (mi_output_solib_attribs): Use ui_out_emit_list,
6479 ui_out_emit_tuple.
6480 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
6481 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6482 (mi_cmd_stack_list_args, list_args_or_locals): Use
6483 ui_out_emit_list.
6484 * disasm.c (do_assembly_only): Use ui_out_emit_list.
6485 * breakpoint.c (print_solib_event, output_thread_groups): Use
6486 ui_out_emit_list.
6487
0092b74d
TT
64882017-04-22 Tom Tromey <tom@tromey.com>
6489
6490 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
6491 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
6492 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
6493
a14a62dd
TT
64942017-04-22 Tom Tromey <tom@tromey.com>
6495
6496 * tracepoint.c (tvariables_info_1)
6497 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
6498
46b9c129
TT
64992017-04-22 Tom Tromey <tom@tromey.com>
6500
6501 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
6502 annotate_arg_emitter.
6503 * breakpoint.c (print_mention_watchpoint)
6504 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
6505 * annotate.h (struct annotate_arg_emitter): New.
6506
2e783024
TT
65072017-04-22 Tom Tromey <tom@tromey.com>
6508
6509 * record-btrace.c (record_btrace_insn_history)
6510 (record_btrace_insn_history_range, record_btrace_call_history)
6511 (record_btrace_call_history_range): Use ui_out_emit_tuple.
6512 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
6513 ui_out_emit_tuple.
6514 * stack.c (print_frame_info): Use ui_out_emit_tuple.
6515 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
6516 * skip.c (skip_info): Use ui_out_emit_tuple.
6517 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
6518 * progspace.c (print_program_space): Use ui_out_emit_tuple.
6519 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
6520 * osdata.c (info_osdata): Use ui_out_emit_tuple.
6521 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6522 ui_out_emit_tuple.
6523 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
6524 (output_register, mi_cmd_data_read_memory)
6525 (mi_cmd_data_read_memory_bytes, mi_load_progress)
6526 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
6527 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
6528 Use ui_out_emit_tuple.
6529 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
6530 ui_out_emit_tuple.
6531 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
6532 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
6533 * linux-thread-db.c (info_auto_load_libthread_db): Use
6534 ui_out_emit_tuple.
6535 * inferior.c (print_inferior): Use ui_out_emit_tuple.
6536 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
6537 * disasm.c (do_mixed_source_and_assembly_deprecated)
6538 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
6539 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
6540 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
6541 * breakpoint.c (print_one_breakpoint_location)
6542 (print_one_breakpoint): Use ui_out_emit_tuple.
6543 * auto-load.c (print_script, info_auto_load_cmd): Use
6544 ui_out_emit_tuple.
6545 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
6546
9be21bb4
SM
65472017-04-21 Simon Marchi <simon.marchi@ericsson.com>
6548
6549 * thread.c (print_thread_info_1): Remove dead code.
6550
0d4c07af
JK
65512017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6552
6553 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
6554 GDB_SELF_TEST.
6555 * arm-tdep.c (selftests::arm_record_test): Likewise.
6556
4daf993d
YQ
65572017-04-21 Yao Qi <yao.qi@linaro.org>
6558
6559 * regcache.c (regcache_restore): Remove argument 2. Replace
6560 argument 3 with regcache. Get register status from
6561 src->register_status and get register contents from
6562 register_buffer (src, regnum).
6563 (regcache_cpy): Update.
6564
a6c21d4a
PA
65652017-04-19 Pedro Alves <palves@redhat.com>
6566
6567 * gdbthread.h (thread): Add missing closing parenthesis in
6568 comment.
6569
3a3fd0fd
PA
65702017-04-19 Pedro Alves <palves@redhat.com>
6571
6572 * common/refcounted-object.h: New file.
6573 * gdbthread.h: Include "common/refcounted-object.h".
6574 (thread_info): Inherit from refcounted_object and add comments.
6575 (thread_info::incref, thread_info::decref)
6576 (thread_info::m_refcount): Delete.
6577 (thread_info::deletable): Use the refcounted_object::refcount()
6578 method.
6579 * inferior.c (current_inferior_): Add comment.
6580 (set_current_inferior): Increment/decrement refcounts.
6581 (prune_inferiors, remove_inferior_command): Skip inferiors marked
6582 not-deletable instead of comparing with the current inferior.
6583 (initialize_inferiors): Increment the initial inferior's refcount.
6584 * inferior.h (struct inferior): Forward declare.
6585 Include "common/refcounted-object.h".
6586 (current_inferior, set_current_inferior): Move declaration to
6587 before struct inferior's definition, and fix comment.
6588 (inferior): Inherit from refcounted_object. Add comments.
6589 * thread.c (switch_to_thread_no_regs): Reference the thread's
6590 inferior pointer directly instead of doing a ptid lookup.
6591 (switch_to_no_thread): New function.
6592 (switch_to_thread(thread_info *)): New function, factored out
6593 from ...
6594 (switch_to_thread(ptid_t)): ... this.
6595 (restore_current_thread): Delete.
6596 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
6597 fields, and add 'inf' field.
6598 (do_restore_current_thread_cleanup): Check whether old->inf is
6599 alive instead of looking up an inferior by ptid. Use
6600 switch_to_thread and switch_to_no_thread.
6601 (restore_current_thread_cleanup_dtor): Use old->inf directly
6602 instead of lookup up an inferior by id. Decref the inferior.
6603 Don't restore 'removable'.
6604 (make_cleanup_restore_current_thread): Same the inferior pointer
6605 in old, instead of the inferior number. Incref the inferior.
6606 Don't save/clear 'removable'.
6607
9bcb1f16
PA
66082017-04-19 Pedro Alves <palves@redhat.com>
6609
6610 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6611 unittests/scoped_restore-selftests.c.
6612 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
6613 * common/scoped_restore.h (scoped_restore_base): Make "class".
6614 (scoped_restore_base::release): New public method.
6615 (scoped_restore_base::scoped_restore_base): New protected ctor.
6616 (scoped_restore_base::m_saved_var): New protected field.
6617 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
6618 scoped_restore_base base class instead of m_saved_var directly.
6619 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
6620 (scoped_restore_tmpl::scoped_restore_tmpl(const
6621 scoped_restore_tmpl<T>&)): Likewise.
6622 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
6623 method.
6624 (scoped_restore_tmpl::saved_var): New method.
6625 (scoped_restore_tmpl::m_saved_var): Delete.
6626 * inferior.h (inferior::detaching): Now a bool.
6627 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
6628 cleanup.
6629 * unittests/scoped_restore-selftests.c: New file.
6630
26fcd539
PA
66312017-04-19 Pedro Alves <palves@redhat.com>
6632
6633 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
6634 Re-sort in alphabetic order.
6635
fdd243b0
PA
66362017-04-18 Pedro Alves <palves@redhat.com>
6637
6638 * xml-support.c (obstack_xml_printf): Delete.
6639 * xml-support.h (obstack_xml_printf): Delete.
6640
4895cde2
PA
66412017-04-18 Pedro Alves <palves@redhat.com>
6642
6643 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
6644 vdebug, verror, body_text, start_element, end_element, name,
6645 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
6646 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
6647 is_xinclude>: Make private and add m_ prefix.
6648 (gdb_xml_parser::body_text): New method, based on ...
6649 (gdb_xml_body_text): ... this. Adjust.
6650 (gdb_xml_parser::vdebug): New method, based on ...
6651 (gdb_xml_debug): ... this. Adjust.
6652 (gdb_xml_parser::verror): New method, based on ...
6653 (gdb_xml_error): ... this. Adjust.
6654 (gdb_xml_parser::start_element): New method, based on ...
6655 (gdb_xml_start_element): ... this. Adjust.
6656 (gdb_xml_start_element_wrapper): Defer to
6657 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
6658 (gdb_xml_parser::end_element): New method, based on ...
6659 (gdb_xml_end_element_wrapper): ... this. Adjust.
6660 (gdb_xml_parser::~gdb_xml_parser): Adjust.
6661 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
6662 (gdb_xml_parser::use_dtd): New method, based on ...
6663 (gdb_xml_use_dtd): ... this. Adjust.
6664 (gdb_xml_parser::parse): New method, based on ...
6665 (gdb_xml_parse): ... this. Adjust.
6666 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
6667 (xinclude_start_include): Adjust to call the parser's name method.
6668 (xml_xinclude_default, xml_xinclude_start_doctype)
6669 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
6670 method.
6671 (xml_process_xincludes): Adjust to call parser methods.
6672 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
6673 declarations.
6674
bd8a901f
PA
66752017-04-18 Pedro Alves <palves@redhat.com>
6676
6677 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
6678 gdb::optional<std::string>.
6679 * xml-support.c: Include <string>.
6680 (scope_level::scope_level(scope_level &&))
6681 (scope_level::~scope_level): Delete.
6682 (scope_level::body): Now a std::string.
6683 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
6684 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
6685 parameter.
6686 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
6687 (xinclude_parsing_data::output): Now a std::string reference.
6688 (xinclude_start_include): Adjust.
6689 (xml_xinclude_default): Adjust.
6690 (xml_process_xincludes): Add 'output' parameter, and return bool.
6691 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
6692 and return bool.
6693 * xml-tdesc.c: Include <unordered_map> and <string>.
6694 (tdesc_xml_cache): Delete.
6695 (tdesc_xml_cache_s): Delete.
6696 (xml_cache): Now an std::unordered_map.
6697 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
6698 (target_fetch_description_xml): Change return type to
6699 gdb::optional<std::string>, and adjust.
6700 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
6701 (target_fetch_description_xml): Change return type to
6702 gdb::optional<std::string>.
6703
d35d1958
PA
67042017-04-18 Pedro Alves <palves@redhat.com>
6705
6706 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6707 unittests/optional-selftests.c.
6708 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
6709 * unittests/optional-selftests.c: New file.
6710 * unittests/optional/assignment/1.cc: New file.
6711 * unittests/optional/assignment/2.cc: New file.
6712 * unittests/optional/assignment/3.cc: New file.
6713 * unittests/optional/assignment/4.cc: New file.
6714 * unittests/optional/assignment/5.cc: New file.
6715 * unittests/optional/assignment/6.cc: New file.
6716 * unittests/optional/assignment/7.cc: New file.
6717 * unittests/optional/cons/copy.cc: New file.
6718 * unittests/optional/cons/default.cc: New file.
6719 * unittests/optional/cons/move.cc: New file.
6720 * unittests/optional/cons/value.cc: New file.
6721 * unittests/optional/in_place.cc: New file.
6722 * unittests/optional/observers/1.cc: New file.
6723 * unittests/optional/observers/2.cc: New file.
6724
22796e97
PA
67252017-04-18 Pedro Alves <palves@redhat.com>
6726
6727 * common/gdb_optional.h: Include common/traits.h.
6728 (in_place_t): New type.
6729 (in_place): New constexpr variable.
6730 (optional::optional): Remove member initialization of
6731 m_instantiated.
6732 (optional::optional(in_place_t...)): New constructor.
6733 (optional::~optional): Use reset.
6734 (optional::optional(const optional&)): New.
6735 (optional::optional(const optional&&)): New.
6736 (optional::optional(T &)): New.
6737 (optional::optional(T &&)): New.
6738 (operator::operator=(const optional &)): New.
6739 (operator::operator=(optional &&)): New.
6740 (operator::operator= (const T &))
6741 (operator::operator= (T &&))
6742 (operator::emplace (Args &&... args)): Return a T&. Use reset.
6743 (operator::reset): New.
6744 (operator::m_instantiated):: Add in-class initializer.
6745 * common/traits.h: Include <type_traits>.
6746 (struct And): New types.
6747
a7fc9b61
PA
67482017-04-18 Pedro Alves <palves@redhat.com>
6749
6750 * xml-support.c: Include <vector>.
6751 (scope_level::scope_level(const gdb_xml_element *))
6752 (scope_level::scope_level(scope_level&&)): New.
6753 (scope_level::~scope_level): New.
6754 (scope_level_s): Delete.
6755 (gdb_xml_parser::scopes): Now a std::vector.
6756 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
6757 Use std::vector.
6758 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
6759 scope cleanup code.
6760 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
6761 of the scopes member. Use std::vector::emplace_back.
6762
010151c9
PA
67632017-04-18 Pedro Alves <palves@redhat.com>
6764
6765 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
6766 a bool.
6767 (gdb_xml_end_element): Change type of first parameter.
6768 (gdb_xml_cleanup): Rename to ...
6769 (gdb_xml_parser::~gdb_xml_parser): ... this.
6770 (gdb_xml_create_parser_and_cleanup): Delete with ...
6771 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
6772 to this new ctor.
6773 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
6774 using gdb_xml_create_parser_and_cleanup.
6775 (xinclude_parsing_data): Add ctor/dtor.
6776 (xml_xinclude_cleanup): Delete.
6777 (xml_process_xincludes): Create a local xinclude_parsing_data
6778 instead of heap-allocating one. Create a local gdb_xml_parser
6779 instead of heap-allocating one with
6780 gdb_xml_create_parser_and_cleanup.
6781
d56060f0
JB
67822017-04-18 John Baldwin <jhb@FreeBSD.org>
6783
6784 PR threads/20743
6785 * fbsd-nat.c (resume_one_thread_cb): Remove.
6786 (resume_all_threads_cb): Remove.
6787 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
6788 iterate_over_threads.
6789
305d16a9
JB
67902017-04-17 Joel Brobecker <brobecker@adacore.com>
6791
6792 * NEWS: Create a new section for the next release branch.
6793 Rename the section of the current branch, now that it has
6794 been cut.
6795
8bb57231
JB
67962017-04-17 Joel Brobecker <brobecker@adacore.com>
6797
6798 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
6799 * version.in: Bump version to 8.0.50.DATE-git.
6800
096c92dd
SDJ
68012017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
6802
6803 PR gdb/21385
6804 * windows-nat.c (windows_create_inferior): Declare 'allargs'
6805 independently of the host, and fix build breakage on Cygwin.
6806
0550c955
PA
68072017-04-13 Pedro Alves <palves@redhat.com>
6808
6809 * inferior.c (free_inferior): Convert to ...
6810 (inferior::~inferior): ... this dtor.
6811 (inferior::inferior): New ctor, factored out from ...
6812 (add_inferior_silent): ... here. Allocate the inferior with a new
6813 expression.
6814 (delete_inferior): Call delete instead of free_inferior.
6815 * inferior.h (gdb_environ, continuation): Forward declare.
6816 (inferior): Now a class. Add in-class initialization to all
6817 members. Make boolean fields bool, except 'detaching'.
6818 (inferior::inferior): New explicit ctor.
6819 (inferior::~inferior): New.
6820
e3d60dfc
PA
68212017-04-13 Pedro Alves <palves@redhat.com>
6822
6823 * inferior.c (init_inferior_list): Delete.
6824 * inferior.h (init_inferior_list): Delete.
6825
5fd69d0a
PA
68262017-04-13 Pedro Alves <palves@redhat.com>
6827
6828 PR threads/13217
6829 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
6830 (top level): Call it twice, with different thread sets.
6831
c6609450
PA
68322017-04-13 Pedro Alves <palves@redhat.com>
6833
6834 * thread.c: Include <algorithm>.
6835 (thread_array_cleanup): Delete.
6836 (scoped_inc_dec_ref): New class.
6837 (live_threads_count): New function.
6838 (set_thread_refcount): Delete.
6839 (tp_array_compar_ascending): Now a bool.
6840 (tp_array_compar): Convert to a std::sort comparison function.
6841 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
6842 and live_threads_count.
6843
2a00d7ce
PA
68442017-04-13 Pedro Alves <palves@redhat.com>
6845
6846 * infrun.c (follow_fork_inferior): Also switch the current
6847 inferior.
6848
441d7c93
PA
68492017-04-13 Pedro Alves <palves@redhat.com>
6850
6851 * breakpoint.c (watch_command_1): Save watchpoint-frame info
6852 before calling create_internal_breakpoint.
6853
808480f6
PA
68542017-04-13 Pedro Alves <palves@redhat.com>
6855
6856 * fork-child.c (execv_argv): New class.
6857 (breakup_args): Refactored as ...
6858 (execv_argv::init_for_no_shell): .. this method of execv_argv.
6859 Copy arguments to storage and replace separators with NULL
6860 terminators in place.
6861 (escape_bang_in_quoted_argument): Adjust to return bool.
6862 (execv_argv::execv_argv): New ctor.
6863 (execv_argv::init_for_shell): New method, factored out from
6864 fork_inferior. Don't strdup strings into the vector.
6865 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
6866 Remove free_vector_argv call.
6867
ad3d022a
YQ
68682017-04-13 Yao Qi <yao.qi@linaro.org>
6869
6870 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
6871 tdep->rx_psw_type.
6872
e6ddc3bf
YQ
68732017-04-13 Yao Qi <yao.qi@linaro.org>
6874
6875 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
6876 * rx-tdep.c (rx_gdbarch_init): Likewise.
6877
bfb8cf90
PA
68782017-04-13 Pedro Alves <palves@redhat.com>
6879
6880 * breakpoint.h (struct breakpoint): Reindent.
6881
f5336ca5
PA
68822017-04-13 Pedro Alves <palves@redhat.com>
6883
6884 * breakpoint.c (bp_location): Rename to ...
6885 (bp_locations): ... this. All references updated.
6886 (bp_location_count): Rename to ...
6887 (bp_locations_count): ... this. All references updated.
6888 (bp_location_placed_address_before_address_max): Rename to ...
6889 (bp_locations_placed_address_before_address_max): ... this. All
6890 references updated.
6891 (bp_location_shadow_len_after_address_max): Rename to ...
6892 (bp_locations_shadow_len_after_address_max): ... this. All
6893 references updated.
6894 (bp_location_compare_addrs): Rename to ...
6895 (bp_locations_compare_addrs): ... this. All references updated.
6896 (bp_location_compare):Rename to ...
6897 (bp_locations_compare): ... this. All references updated.
6898 (bp_location_target_extensions_update): Rename to ...
6899 (bp_locations_target_extensions_update): ... this. All references
6900 updated.
6901
be628ab8
SDJ
69022017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6903
6904 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
6905 * common/common.m4: Check headers 'termios.h', 'termio.h' and
6906 'sgtty.h'.
6907 * common/gdb_termios.h: New file, with parts of "terminal.h".
6908 * inflow.c: Include "gdb_termios.h".
6909 * ser-unix.c: Include "gdb_termios.h".
6910 * terminal.h: Move terminal-related defines to
6911 "common/gdb_termios.h".
6912
8e9e35b1
TT
69132017-04-12 Tom Tromey <tom@tromey.com>
6914
6915 * probe.c (parse_probes): Update.
6916 * location.h (delete_event_location): Don't declare.
6917 (event_location_deleter::operator()): Update.
6918 * location.c (event_location_deleter::operator()): Rename from
6919 delete_event_location.
6920 * linespec.h (linespec_result) <location>: Change type to
6921 event_location_up.
6922 * linespec.c (canonicalize_linespec, event_location_to_sals)
6923 (decode_objc): Update.
6924 (linespec_result): Don't call delete_event_location.
6925 * breakpoint.c (create_breakpoints_sal)
6926 (bkpt_probe_create_sals_from_location)
6927 (strace_marker_create_sals_from_location): Update.
6928
16e802b9
TT
69292017-04-12 Tom Tromey <tom@tromey.com>
6930
6931 * linespec.h (struct linespec_result): Add constructor and
6932 destructor.
6933 (init_linespec_result, destroy_linespec_result)
6934 (make_cleanup_destroy_linespec_result): Don't declare.
6935 * linespec.c (init_linespec_result): Remove.
6936 (linespec_result::~linespec_result): Rename from
6937 destroy_linespec_result. Update.
6938 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
6939 Remove.
6940 * breakpoint.c (create_breakpoint, break_range_command)
6941 (decode_location_default): Update.
6942 * ax-gdb.c (agent_command_1): Update.
6943
d28cd78a
TT
69442017-04-12 Tom Tromey <tom@tromey.com>
6945
6946 * remote.c (remote_download_tracepoint): Update.
6947 * python/py-breakpoint.c (bppy_get_location): Update.
6948 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
6949 (gdbscm_breakpoint_location): Update.
6950 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
6951 * breakpoint.h (struct breakpoint) <location, location_range_end>:
6952 Change type to event_location_up.
6953 * breakpoint.c (create_overlay_event_breakpoint)
6954 (create_longjmp_master_breakpoint)
6955 (create_std_terminate_master_breakpoint)
6956 (create_exception_master_breakpoint)
6957 (breakpoint_event_location_empty_p, print_breakpoint_location)
6958 (print_one_breakpoint_location, create_thread_event_breakpoint)
6959 (init_breakpoint_sal, create_breakpoint)
6960 (print_recreate_ranged_breakpoint, break_range_command)
6961 (init_ada_exception_breakpoint, say_where): Update.
6962 (base_breakpoint_dtor): Don't call delete_event_location.
6963 (bkpt_print_recreate, tracepoint_print_recreate)
6964 (dprintf_print_recreate, update_static_tracepoint)
6965 (breakpoint_re_set_default): Update.
6966
711799d5
TT
69672017-04-12 Tom Tromey <tom@tromey.com>
6968
6969 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
6970 type of "to_do". Update.
6971 (compute_stack_depth): Use std::vector.
6972
52d214d3
TT
69732017-04-12 Tom Tromey <tom@tromey.com>
6974
6975 * printcmd.c (find_instruction_backward): Use std::vector.
6976
4c404b8b
TT
69772017-04-12 Tom Tromey <tom@tromey.com>
6978
6979 * symfile.c (objfilep): Remove typedef.
6980 (reread_symbols): Use a std::vector.
6981
156d9eab
TT
69822017-04-12 Tom Tromey <tom@tromey.com>
6983
6984 * mi/mi-main.c (exec_direction_forward): Remove.
6985 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
6986 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6987 scoped_restore.
6988 * guile/guile.c (guile_repl_command, guile_command)
6989 (gdbscm_execute_gdb_command): Use scoped_restore.
6990 * go-exp.y (go_parse): Use scoped_restore.
6991 * d-exp.y (d_parse): Use scoped_restore.
6992 * cli/cli-decode.c (cmd_func): Use scoped_restore.
6993 * c-exp.y (c_parse): Use scoped_restore.
6994
4d89769a
TT
69952017-04-12 Tom Tromey <tom@tromey.com>
6996
6997 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
6998 (mi_parse): Update return type.
6999 (mi_parse_free): Remove.
7000 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7001 (mi_parse::~mi_parse): Rename from mi_parse_free.
7002 (mi_parse_cleanup): Remove.
7003 (mi_parse): Return a unique_ptr. Use new.
7004 * mi/mi-main.c (mi_execute_command): Update.
7005
4b217cc7
TT
70062017-04-12 Tom Tromey <tom@tromey.com>
7007
7008 * location.c (explicit_location_lex_one): Return a
7009 unique_xmalloc_ptr.
7010 (string_to_explicit_location): Update. Remove cleanups.
7011
59d3651b
TT
70122017-04-12 Tom Tromey <tom@tromey.com>
7013
7014 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7015 (compare_value_and_voffset): Change type. Update.
7016 (compute_vtable_size): Change type of "offset_vec".
7017 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7018 (gnuv3_get_typeid): Remove extraneous declaration.
7019
b24b0d6c
TT
70202017-04-12 Tom Tromey <tom@tromey.com>
7021
7022 * charset.h (wchar_iterator): Fix comment.
7023
80a3b8c5
TT
70242017-04-12 Tom Tromey <tom@tromey.com>
7025
7026 * charset.c (iconv_wrapper): New class.
7027 (cleanup_iconv): Remove.
7028 (convert_between_encodings): Use it.
7029
c83dd867
TT
70302017-04-12 Tom Tromey <tom@tromey.com>
7031
7032 * symfile.h (increment_reading_symtab): Update type.
7033 * symfile.c (decrement_reading_symtab): Remove.
7034 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7035 * psymtab.c (psymtab_to_symtab): Update.
7036 * dwarf2read.c (dw2_instantiate_symtab): Update.
7037
0e8621a0
TT
70382017-04-12 Tom Tromey <tom@tromey.com>
7039
7040 * jit.c (struct jit_reader): Declare separately. Add constructor
7041 and destructor. Change type of "handle".
7042 (loaded_jit_reader): Define separately.
7043 (jit_reader_load): Update. New "new".
7044 (jit_reader_unload_command): Use "delete".
7045 * gdb-dlfcn.h (struct dlclose_deleter): New.
7046 (gdb_dlhandle_up): New typedef.
7047 (gdb_dlopen, gdb_dlsym): Update types.
7048 (gdb_dlclose): Remove.
7049 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7050 (gdb_dlsym): Change type of "handle".
7051 (make_cleanup_dlclose): Remove.
7052 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7053 * compile/compile-c-support.c (load_libcc): Update.
7054
67d89901
TT
70552017-04-12 Tom Tromey <tom@tromey.com>
7056
7057 * symtab.h (find_pcs_for_symtab_line): Change return type.
7058 * symtab.c (find_pcs_for_symtab_line): Change return type.
7059 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7060 type of "vec". Update.
7061 (ltpy_get_pcs_for_line): Update.
7062 * linespec.c (decode_digits_ordinary): Update.
7063
93921405
TT
70642017-04-12 Tom Tromey <tom@tromey.com>
7065
7066 * tracepoint.c (actions_command): Update.
7067 * python/python.c (python_command, python_interactive_command):
7068 Update.
7069 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7070 * guile/guile.c (guile_command): Update.
7071 * defs.h (read_command_lines, read_command_lines_1): Return
7072 command_line_up.
7073 (command_lines_deleter): New struct.
7074 (command_line_up): New typedef.
7075 * compile/compile.c (compile_code_command)
7076 (compile_print_command): Update.
7077 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7078 command_line_up.
7079 (make_cleanup_free_command_lines): Remove.
7080 * cli/cli-script.c (get_command_line, read_command_lines_1)
7081 (copy_command_lines): Return command_line_up.
7082 (while_command, if_command, read_command_lines, define_command)
7083 (document_command): Update.
7084 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7085 Remove.
7086 * breakpoint.h (breakpoint_set_commands): Change type of
7087 "commands".
7088 * breakpoint.c (breakpoint_set_commands): Change type of
7089 "commands". Update.
7090 (do_map_commands_command, update_dprintf_command_list)
7091 (create_tracepoint_from_upload): Update.
7092
ffc2605c
TT
70932017-04-12 Tom Tromey <tom@tromey.com>
7094
7095 * tracepoint.c (scope_info): Update.
7096 * spu-tdep.c (spu_catch_start): Update.
7097 * python/python.c (gdbpy_decode_line): Update.
7098 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7099 * python/py-breakpoint.c (bppy_init): Update.
7100 * probe.c (parse_probes): Update.
7101 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7102 * location.h (event_location_deleter): New struct.
7103 (event_location_up): New typedef.
7104 (new_linespec_location, new_address_location, new_probe_location)
7105 (new_explicit_location, copy_event_location)
7106 (string_to_event_location, string_to_event_location_basic)
7107 (string_to_explicit_location): Update return type.
7108 (make_cleanup_delete_event_location): Remove.
7109 * location.c (new_linespec_location, new_address_location)
7110 (new_probe_location, new_explicit_location, copy_event_location):
7111 Return event_location_up.
7112 (delete_event_location_cleanup)
7113 (make_cleanup_delete_event_location): Remove.
7114 (string_to_explicit_location, string_to_event_location_basic)
7115 (string_to_event_location): Return event_location_up.
7116 * linespec.c (canonicalize_linespec, event_location_to_sals)
7117 (decode_line_with_current_source)
7118 (decode_line_with_last_displayed, decode_objc): Update.
7119 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7120 * completer.c (location_completer): Update.
7121 * cli/cli-cmds.c (edit_command, list_command): Update.
7122 * breakpoint.c (create_overlay_event_breakpoint)
7123 (create_longjmp_master_breakpoint)
7124 (create_std_terminate_master_breakpoint)
7125 (create_exception_master_breakpoint)
7126 (create_thread_event_breakpoint): Update.
7127 (init_breakpoint_sal): Update. Remove some dead code.
7128 (create_breakpoint_sal): Change type of "location". Update.
7129 (create_breakpoints_sal, create_breakpoint, break_command_1)
7130 (dprintf_command, break_range_command, until_break_command)
7131 (init_ada_exception_breakpoint)
7132 (strace_marker_create_sals_from_location)
7133 (update_static_tracepoint, trace_command, ftrace_command)
7134 (strace_command, create_tracepoint_from_upload): Update.
7135 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7136 * ax-gdb.c (agent_command_1): Update.
7137
8f10c932
PA
71382017-04-12 Pedro Alves <palves@redhat.com>
7139
7140 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7141 * configure.tgt: Handle i[34567]86-*-go32* and
7142 i[34567]86-*-msdosdjgpp*.
7143 * i386-tdep.c (i386_svr4_reg_to_regnum):
7144 Make extern.
7145 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7146 i386-go32-tdep.c.
7147 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7148 * i386-go32-tdep.c: New file.
7149 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7150 declarations.
7151
0a31ccfb
SM
71522017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7153
7154 * aix-thread.c (pd_status2str): Change return type to const char *.
7155
e9bb3fbb
PA
71562017-04-12 Pedro Alves <palves@redhat.com>
7157
7158 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7159 calls to set_gdbarch_gnu_triplet_regexp.
7160
53375380
PA
71612017-04-12 Pedro Alves <palves@redhat.com>
7162
7163 PR gdb/21323
7164 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7165 New enum value.
7166 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7167 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7168 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7169 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7170 * gdbarch.h, gdbarch.c: Regenerate.
7171 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7172 gdbarch_wchar_bit and gdbarch_wchar_signed.
7173 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7174 * arm-tdep.c (arm_gdbarch_init): Likewise.
7175 * avr-tdep.c (avr_gdbarch_init): Likewise.
7176 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7177 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7178 * i386-tdep.c (i386_go32_init_abi): Likewise.
7179 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7180 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7181 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7182 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7183 * sh-tdep.c (sh_gdbarch_init): Likewise.
7184 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7185 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7186 * windows-tdep.c (windows_init_abi): Likewise.
7187 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7188
53e710ac
PA
71892017-04-12 Pedro Alves <palves@redhat.com>
7190
7191 PR c++/21323
7192 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7193 cplus_primitive_type_char32_t>: New enum values.
7194 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7195 and cplus_primitive_type_char32_t.
7196 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7197 32, use the archtecture's built-in type for char16_t and char32_t,
7198 respectively. Otherwise, fallback to init_integer_type as before,
7199 but make the type unsigned, and issue a complaint.
7200 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7201
ab0538b8
AH
72022017-04-12 Alan Hayward <alan.hayward@arm.com>
7203
5e0e0422 7204 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
7205 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7206
5430098f
SDJ
72072017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7208
7209 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7210 'const char *'.
7211
7c5ded6a
SDJ
72122017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7213
7214 * common/common-utils.c (free_vector_argv): New function.
7215 * common/common-utils.h: Include <vector>.
7216 (free_vector_argv): New prototype.
7217 * darwin-nat.c (darwin_create_inferior): Rewrite function
7218 prototype in order to constify "exec_file" and accept a
7219 "std::string" for "allargs".
7220 * fork-child.c: Include <vector>.
7221 (breakup_args): Rewrite function, using C++.
7222 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7223 and accept "std::string" for "allargs". Update the code to
7224 calculate "argv" based on "allargs". Update calls to "exec_fun"
7225 and "execvp".
7226 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7227 order to constify "exec_file" and accept a "std::string" for
7228 "allargs".
7229 * go32-nat.c (go32_create_inferior): Likewise.
7230 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7231 * infcmd.c (run_command_1): Constify "exec_file". Use
7232 "std::string" for inferior arguments.
7233 * inferior.h (fork_inferior): Update prototype.
7234 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7235 prototype in order to constify "exec_file" and accept a
7236 "std::string" for "allargs".
7237 * nto-procfs.c (procfs_create_inferior): Likewise.
7238 * procfs.c (procfs_create_inferior): Likewise.
7239 * remote-sim.c (gdbsim_create_inferior): Likewise.
7240 * remote.c (extended_remote_run): Update code to accept
7241 "std::string" as argument.
7242 (extended_remote_create_inferior): Rewrite function prototype in
7243 order to constify "exec_file" and accept a "std::string" for
7244 "allargs".
7245 * rs6000-nat.c (super_create_inferior): Likewise.
7246 (rs6000_create_inferior): Likewise.
7247 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7248 * windows-nat.c (windows_create_inferior): Likewise.
7249
ae0eee42
PA
72502017-04-11 Pedro Alves <palves@redhat.com>
7251
7252 * thread.c: Fix whitespace throughout.
7253
a6acac06
PR
72542017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7255
7256 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7257
64403bd1
AH
72582017-04-11 Alan Hayward <alan.hayward@arm.com>
7259
7260 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7261
a5bef50f
SDJ
72622017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7263
7264 PR gdb/21364
7265 * osdata.c (info_osdata): Check if 'type' is an empty string
7266 instead of NULL.
7267
9295a5a9
PA
72682017-04-10 Pedro Alves <palves@redhat.com>
7269
7270 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7271 (ptid_to_global_thread_id, in_thread_list)
7272 (do_captured_list_thread_ids, set_resumed, set_running)
7273 (set_executing, set_stop_requested, finish_thread_state)
7274 (validate_registers_access, can_access_registers_ptid)
7275 (print_thread_info_1, switch_to_thread)
7276 (do_restore_current_thread_cleanup)
7277 (make_cleanup_restore_current_thread, thread_command)
7278 (thread_name_command): Use operator== instead of ptid_equal.
7279
996812e3
PA
72802017-04-10 Pedro Alves <palves@redhat.com>
7281
7282 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7283 (current_thread_cleanup_chain): Delete.
7284 (restore_current_thread_cleanup_dtor)
7285 (make_cleanup_restore_current_thread): Remove references to
7286 current_thread_cleanup_chain.
7287
845b344f
AH
72882017-04-10 Alan Hayward <alan.hayward@arm.com>
7289
7290 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7291 REG_UNKNOWN.
7292
803bdfe4
YQ
72932017-04-10 Yao Qi <yao.qi@linaro.org>
7294
7295 PR gdb/19942
7296 * gdbthread.h (thread_info::deletable): New method.
7297 (thread_info::incref): New method.
7298 (thread_info::decref): New method.
7299 (thread_info::refcount): Move it to private.
7300 * infrun.c (save_stop_context): Call inc_refcount.
7301 (release_stop_context_cleanup): Likewise.
7302 * thread.c (set_thread_exited): New function.
7303 (init_thread_list): Delete "tp" only it is deletable, otherwise
7304 call set_thread_exited.
7305 (delete_thread_1): Call set_thread_exited.
7306 (current_thread_cleanup) <inferior_pid>: Remove.
7307 <thread>: New field.
7308 (restore_current_thread_ptid_changed): Removed.
7309 (do_restore_current_thread_cleanup): Adjust.
7310 (restore_current_thread_cleanup_dtor): Don't call
7311 find_thread_ptid.
7312 (set_thread_refcount): Use dec_refcount.
7313 (make_cleanup_restore_current_thread): Adjust.
7314 (thread_apply_all_command): Call inc_refcount.
7315 (_initialize_thread): Don't call
7316 observer_attach_thread_ptid_changed.
7317
8c25b497
YQ
73182017-04-10 Yao Qi <yao.qi@linaro.org>
7319
7320 * thread.c (delete_thread_1): Hoist code on marking thread as
7321 exited.
7322
8473b447
SM
73232017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7324
7325 * windows-nat.c (windows_detach): Initialize ptid with
7326 minus_one_ptid.
7327
6670ec13
SM
73282017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7329
7330 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7331
ba2f91bb
AH
73322017-04-07 Alan Hayward <alan.hayward@arm.com>
7333
7334 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7335 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7336 (bfin_pseudo_register_write): Likewise
7337
436252de
SM
73382017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7339
7340 * common/ptid.h (struct ptid): Change to...
7341 (class ptid_t): ... this.
7342 <ptid_t>: New constructors.
7343 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7344 matches>: New methods.
7345 <make_null, make_minus_one>: New static methods.
7346 <pid>: Rename to...
7347 <m_pid>: ...this.
7348 <lwp>: Rename to...
7349 <m_lwp>: ...this.
7350 <tid>: Rename to...
7351 <m_tid>: ...this.
7352 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7353 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7354 as references, move comment to class ptid_t.
7355 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7356 ptid_t static methods.
7357 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7358 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7359 Take ptid arguments as references, implement using ptid_t methods.
7360 * unittests/ptid-selftests.c: New file.
7361 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7362 unittests/ptid-selftests.c.
7363 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7364
0dedf377
TP
73652017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7366
7367 * python/python.c (python_run_simple_file): Cast mode literal to
7368 non-const char pointer as expected by PyFile_FromString.
7369
4e9868d4
SM
73702017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7371
7372 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7373 minus_one_ptid and null_ptid.
7374
9bf2a700
PA
73752017-04-05 Pedro Alves <palves@redhat.com>
7376
7377 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7378 * configure: Regenerate.
7379
a121b7c1
PA
73802017-04-05 Pedro Alves <palves@redhat.com>
7381
7382 * ada-exp.y (yyerror): Constify.
7383 * ada-lang.c (bound_name, get_selections)
7384 (ada_variant_discrim_type)
7385 (ada_variant_discrim_name, ada_value_struct_elt)
7386 (ada_lookup_struct_elt_type, is_unchecked_variant)
7387 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7388 (catch_ada_exception_command_split)
7389 (catch_ada_assert_command_split, catch_assert_command)
7390 (ada_op_name): Constify.
7391 * ada-lang.h (ada_yyerror, get_selections)
7392 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7393 * arc-tdep.c (arc_print_frame_cache): Constify.
7394 * arm-tdep.c (arm_skip_stub): Constify.
7395 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7396 (gen_aggregate_elt_ref): Constify.
7397 * bcache.c (print_bcache_statistics): Constify.
7398 * bcache.h (print_bcache_statistics): Constify.
7399 * break-catch-throw.c (catch_exception_command_1):
7400 * breakpoint.c (struct ep_type_description::description):
7401 Constify.
7402 (add_solib_catchpoint): Constify.
7403 (catch_fork_command_1): Add cast.
7404 (add_catch_command): Constify.
7405 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7406 Constify.
7407 * bsd-uthread.c (bsd_uthread_state): Constify.
7408 * buildsym.c (patch_subfile_names): Constify.
7409 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7410 Constify.
7411 * c-exp.y (yyerror): Constify.
7412 (token::oper): Constify.
7413 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7414 * c-varobj.c (cplus_describe_child): Constify.
7415 * charset.c (find_charset_names): Add cast.
7416 (find_charset_names): Constify array and add const_cast.
7417 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7418 (edit_command): Constify.
7419 * cli/cli-decode.c (lookup_cmd): Constify.
7420 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7421 Constify.
7422 (struct dump_context): Constify.
7423 (add_dump_command, restore_command): Constify.
7424 * cli/cli-script.c (get_command_line): Constify.
7425 * cli/cli-script.h (get_command_line): Constify.
7426 * cli/cli-utils.c (check_for_argument): Constify.
7427 * cli/cli-utils.h (check_for_argument): Constify.
7428 * coff-pe-read.c (struct read_pe_section_data): Constify.
7429 * command.h (lookup_cmd): Constify.
7430 * common/print-utils.c (decimal2str): Constify.
7431 * completer.c (gdb_print_filename): Constify.
7432 * corefile.c (set_gnutarget): Constify.
7433 * cp-name-parser.y (yyerror): Constify.
7434 * cp-valprint.c (cp_print_class_member): Constify.
7435 * cris-tdep.c (cris_register_name, crisv32_register_name):
7436 Constify.
7437 * d-exp.y (yyerror): Constify.
7438 (struct token::oper): Constify.
7439 * d-lang.h (d_yyerror): Constify.
7440 * dbxread.c (struct header_file_location::name): Constify.
7441 (add_old_header_file, add_new_header_file, last_function_name)
7442 (dbx_next_symbol_text, add_bincl_to_list)
7443 (find_corresponding_bincl_psymtab, set_namestring)
7444 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7445 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7446 * defs.h (command_line_input, print_address_symbolic)
7447 (deprecated_readline_begin_hook): Constify.
7448 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7449 Constify.
7450 * event-top.c (handle_line_of_input): Constify and add cast.
7451 * exceptions.c (catch_errors): Constify.
7452 * exceptions.h (catch_errors): Constify.
7453 * expprint.c (print_subexp_standard, op_string, op_name)
7454 (op_name_standard, dump_raw_expression, dump_raw_expression):
7455 * expression.h (op_name, op_string, dump_raw_expression):
7456 Constify.
7457 * f-exp.y (yyerror): Constify.
7458 (struct token::oper): Constify.
7459 (struct f77_boolean_val::name): Constify.
7460 * f-lang.c (f_word_break_characters): Constify.
7461 * f-lang.h (f_yyerror): Constify.
7462 * fork-child.c (fork_inferior): Add cast.
7463 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7464 (new_variant): Constify.
7465 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7466 * gdbarch.c: Regenerate.
7467 * gdbcore.h (set_gnutarget): Constify.
7468 * go-exp.y (yyerror): Constify.
7469 (token::oper): Constify.
7470 * go-lang.h (go_yyerror): Constify.
7471 * go32-nat.c (go32_sysinfo): Constify.
7472 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7473 * guile/scm-cmd.c (cmdscm_function): Constify.
7474 * guile/scm-param.c (pascm_param_value): Constify.
7475 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7476 (h8300sx_register_name): Constify.
7477 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
7478 Constify.
7479 * ia64-tdep.c (ia64_register_names): Constify.
7480 * infcmd.c (construct_inferior_arguments): Constify.
7481 (path_command, attach_post_wait): Constify.
7482 * language.c (show_range_command, show_case_command)
7483 (unk_lang_error): Constify.
7484 * language.h (language_defn::la_error)
7485 (language_defn::la_name_of_this): Constify.
7486 * linespec.c (decode_line_2): Constify.
7487 * linux-thread-db.c (thread_db_err_str): Constify.
7488 * lm32-tdep.c (lm32_register_name): Constify.
7489 * m2-exp.y (yyerror): Constify.
7490 * m2-lang.h (m2_yyerror): Constify.
7491 * m32r-tdep.c (m32r_register_names): Constify and make static.
7492 * m68hc11-tdep.c (m68hc11_register_names): Constify.
7493 * m88k-tdep.c (m88k_register_name): Constify.
7494 * macroexp.c (appendmem): Constify.
7495 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
7496 (upgrade_type, parse_external, parse_partial_symbols)
7497 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
7498 (new_symbol): Constify.
7499 * memattr.c (mem_info_command): Constify.
7500 * mep-tdep.c (register_name_from_keyword): Constify.
7501 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
7502 Constify.
7503 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
7504 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
7505 * mi/mi-main.c (captured_mi_execute_command): Constify and add
7506 cast.
7507 (mi_execute_async_cli_command): Constify.
7508 * mips-tdep.c (mips_register_name): Constify.
7509 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
7510 (am33_register_name, am33_2_register_name)
7511 * moxie-tdep.c (moxie_register_names): Constify.
7512 * nat/linux-osdata.c (osdata_type): Constify fields.
7513 * nto-tdep.c (nto_parse_redirection): Constify.
7514 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
7515 (lookup_child_selector): Constify.
7516 (objc_methcall::name): Constify.
7517 * objc-lang.h (lookup_objc_class, lookup_child_selector)
7518 (lookup_struct_typedef): Constify.
7519 * objfiles.c (pc_in_section): Constify.
7520 * objfiles.h (pc_in_section): Constify.
7521 * p-exp.y (struct token::oper): Constify.
7522 (yyerror): Constify.
7523 * p-lang.h (pascal_yyerror): Constify.
7524 * parser-defs.h (op_name_standard): Constify.
7525 (op_print::string): Constify.
7526 (exp_descriptor::op_name): Constify.
7527 * printcmd.c (print_address_symbolic): Constify.
7528 * psymtab.c (print_partial_symbols): Constify.
7529 * python/py-breakpoint.c (stop_func): Constify.
7530 (bppy_get_expression): Constify.
7531 * python/py-cmd.c (cmdpy_completer::name): Constify.
7532 (cmdpy_function): Constify.
7533 * python/py-event.c (evpy_add_attribute)
7534 (gdbpy_initialize_event_generic): Constify.
7535 * python/py-event.h (evpy_add_attribute)
7536 (gdbpy_initialize_event_generic): Constify.
7537 * python/py-evts.c (add_new_registry): Constify.
7538 * python/py-finishbreakpoint.c (outofscope_func): Constify.
7539 * python/py-framefilter.c (get_py_iter_from_func): Constify.
7540 * python/py-inferior.c (get_buffer): Add cast.
7541 * python/py-param.c (parm_constant::name): Constify.
7542 * python/py-unwind.c (fprint_frame_id): Constify.
7543 * python/python.c (gdbpy_parameter_value): Constify.
7544 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
7545 * remote.c (memory_packet_config::name): Constify.
7546 (show_packet_config_cmd, remote_write_bytes)
7547 (remote_buffer_add_string):
7548 * reverse.c (exec_reverse_once): Constify.
7549 * rs6000-tdep.c (variant::name, variant::description): Constify.
7550 * rust-exp.y (rustyyerror): Constify.
7551 * rust-lang.c (rust_op_name): Constify.
7552 * rust-lang.h (rustyyerror): Constify.
7553 * serial.h (serial_ops::name): Constify.
7554 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
7555 (sh_sh3e_register_name, sh_sh2e_register_name)
7556 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
7557 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
7558 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
7559 (sh_sh4al_dsp_register_name): Constify.
7560 * sh64-tdep.c (sh64_register_name): Constify.
7561 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
7562 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
7563 * stabsread.c (patch_block_stabs, read_type_number)
7564 (ref_map::stabs, ref_add, process_reference)
7565 (symbol_reference_defined, define_symbol, define_symbol)
7566 (error_type, read_type, read_member_functions, read_cpp_abbrev)
7567 (read_one_struct_field, read_struct_fields, read_baseclasses)
7568 (read_tilde_fields, read_struct_type, read_array_type)
7569 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
7570 (read_huge_number, read_range_type, read_args, common_block_start)
7571 (find_name_end): Constify.
7572 * stabsread.h (common_block_start, define_symbol)
7573 (process_one_symbol, symbol_reference_defined, ref_add):
7574 * symfile.c (get_section_index, add_symbol_file_command):
7575 * symfile.h (get_section_index): Constify.
7576 * target-descriptions.c (tdesc_type::name): Constify.
7577 (tdesc_free_type): Add cast.
7578 * target.c (find_default_run_target):
7579 (add_deprecated_target_alias, find_default_run_target)
7580 (target_announce_detach): Constify.
7581 (do_option): Constify.
7582 * target.h (add_deprecated_target_alias): Constify.
7583 * thread.c (print_thread_info_1): Constify.
7584 * top.c (deprecated_readline_begin_hook, command_line_input):
7585 Constify.
7586 (init_main): Add casts.
7587 * top.h (handle_line_of_input): Constify.
7588 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
7589 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
7590 (tfind_command): Rename to ...
7591 (tfind_command_1): ... this and constify.
7592 (tfind_command): New function.
7593 (tfind_end_command, tfind_start_command): Adjust.
7594 (encode_source_string): Constify.
7595 * tracepoint.h (encode_source_string): Constify.
7596 * tui/tui-data.c (tui_partial_win_by_name): Constify.
7597 * tui/tui-data.h (tui_partial_win_by_name): Constify.
7598 * tui/tui-source.c (tui_set_source_content_nil): Constify.
7599 * tui/tui-source.h (tui_set_source_content_nil): Constify.
7600 * tui/tui-win.c (parse_scrolling_args): Constify.
7601 * tui/tui-windata.c (tui_erase_data_content): Constify.
7602 * tui/tui-windata.h (tui_erase_data_content): Constify.
7603 * tui/tui-winsource.c (tui_erase_source_content): Constify.
7604 * tui/tui.c (tui_enable): Add cast.
7605 * utils.c (defaulted_query): Constify.
7606 (init_page_info): Add cast.
7607 (puts_debug, subset_compare): Constify.
7608 * utils.h (subset_compare): Constify.
7609 * varobj.c (varobj_format_string): Constify.
7610 * varobj.h (varobj_format_string): Constify.
7611 * vax-tdep.c (vax_register_name): Constify.
7612 * windows-nat.c (windows_detach): Constify.
7613 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
7614 * xml-support.c (gdb_xml_end_element): Constify.
7615 * xml-tdesc.c (tdesc_start_reg): Constify.
7616 * xstormy16-tdep.c (xstormy16_register_name): Constify.
7617 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
7618 * xtensa-tdep.h (xtensa_register_t::name): Constify.
7619
995816ba
PA
76202017-04-05 Pedro Alves <palves@redhat.com>
7621
7622 * proc-api.c (struct trans): Constify.
7623 (procfs_note): Constify.
7624 * proc-events.c (struct trans, syscall_table):
7625 * proc-flags.c (struct trans): Constify.
7626 * proc-utils.h (procfs_note): Constify.
7627 * proc-why.c (struct trans): Constify.
7628 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
7629 (procfs_detach): Constify.
7630 * sol-thread.c (struct string_map): Constify.
7631 (td_err_string, td_state_string): Constify.
7632
3e83a920
PA
76332017-04-05 Pedro Alves <palves@redhat.com>
7634
7635 * proc-api.c (procfs_filename): Don't initialize
7636 procfs_filename.
7637 (prepare_to_trace): Assume procfs_filename is non-NULL.
7638 (_initialize_proc_api): Give procfs_filename a default value here.
7639
63160a43
PA
76402017-04-05 Pedro Alves <palves@redhat.com>
7641
7642 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
7643 'cond_string' parameter.
7644 (extract_exception_regexp): Constify 'string' parameter.
7645 (catch_exception_command_1): Constify.
7646 * breakpoint.c (init_catchpoint)
7647 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
7648 parameter.
7649 (ep_parse_optional_if_clause, catch_fork_command_1)
7650 (catch_exec_command_1): Constify.
7651 * breakpoint.h (init_catchpoint): Constify 'cond_string'
7652 parameter.
7653 (ep_parse_optional_if_clause): Constify.
7654 * cli/cli-utils.c (remove_trailing_whitespace)
7655 (check_for_argument): Constify.
7656 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
7657 non-const overload.
7658 (check_for_argument): Likewise.
7659
9b2eba3d
PA
76602017-04-05 Pedro Alves <palves@redhat.com>
7661
7662 * event-top.c (command_line_handler): Add cast to execute_command
7663 call.
7664 * record-btrace.c (cmd_record_btrace_bts_start)
7665 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
7666 (cmd_record_btrace_start): Add cast to execute_command call.
7667 * record-full.c (record_full_goto_insn):
7668 * record.c (record_start, record_stop): Add cast to
7669 execute_command_to_string calls.
7670 (cmd_record_start): Add cast to execute_command calls.
7671
2adadf51
PA
76722017-04-05 Pedro Alves <palves@redhat.com>
7673
7674 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
7675 static inline function.
7676 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
7677 array and use gdb_PyArg_ParseTupleAndKeywords.
7678 * python/py-cmd.c (cmdpy_init): Likewise.
7679 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
7680 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
7681 (infpy_search_memory): Likewise.
7682 * python/py-objfile.c (objfpy_add_separate_debug_file)
7683 (gdbpy_lookup_objfile): Likewise.
7684 * python/py-symbol.c (gdbpy_lookup_symbol)
7685 (gdbpy_lookup_global_symbol): Likewise.
7686 * python/py-type.c (gdbpy_lookup_type): Likewise.
7687 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
7688 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
7689 Likewise.
7690
0d1f4ceb
PA
76912017-04-05 Pedro Alves <palves@redhat.com>
7692
7693 * python/python-internal.h (gdb_PyGetSetDef): New type.
7694 * python/py-block.c (block_object_getset)
7695 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
7696 * python/py-event.c (event_object_getset)
7697 (finish_breakpoint_object_getset): Likewise.
7698 * python/py-inferior.c (inferior_object_getset): Likewise.
7699 * python/py-infthread.c (thread_object_getset): Likewise.
7700 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
7701 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
7702 * python/py-objfile.c (objfile_getset): Likewise.
7703 * python/py-progspace.c (pspace_getset): Likewise.
7704 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
7705 Likewise.
7706 * python/py-record.c (recpy_record_getset): Likewise.
7707 * python/py-symbol.c (symbol_object_getset): Likewise.
7708 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
7709 Likewise.
7710 * python/py-type.c (type_object_getset, field_object_getset):
7711 Likewise.
7712 * python/py-value.c (value_object_getset): Likewise.
7713
4d759979
PA
77142017-04-05 Pedro Alves <palves@redhat.com>
7715
7716 * python/python-internal.h (gdb_PyObject_CallMethod)
7717 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
7718 New functions.
7719 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
7720 (PySys_GetObject, PySys_SetPath): New macros.
7721
fdf9e36f
PA
77222017-04-05 Pedro Alves <palves@redhat.com>
7723
7724 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
7725 info_osdata_command.
7726 * osdata.c (info_osdata_command): Rename to ...
7727 (info_osdata): ... this. Constify 'type' parameter, and remove
7728 the 'from_tty' parameter. Accept NULL TYPE.
7729 (info_osdata_command): New function.
7730 * osdata.h (info_osdata_command): Remove declaration.
7731 (info_osdata): New declaration.
7732
9f33b8b7
PA
77332017-04-05 Pedro Alves <palves@redhat.com>
7734
7735 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
7736 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
7737 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
7738 parameter.
7739 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
7740 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
7741 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
7742 parameter.
7743 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
7744 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
7745 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
7746 (mi_cmd_file_list_exec_source_files)
7747 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
7748 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7749 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
7750 parameter.
7751 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
7752 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
7753 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7754 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
7755 (mi_cmd_stack_info_frame): Constify 'command' parameter.
7756 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
7757 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
7758 'command' parameter.
7759 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
7760 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
7761 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
7762 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
7763 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
7764 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
7765 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
7766 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
7767 (mi_cmd_var_set_update_range): Constify 'command' parameter.
7768 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
7769 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
7770 parameter.
7771 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
7772 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
7773 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
7774 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
7775 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
7776 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
7777 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
7778 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
7779 (mi_cmd_data_list_changed_registers)
7780 (mi_cmd_data_write_register_values)
7781 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
7782 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
7783 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
7784 (mi_cmd_list_features, mi_cmd_list_target_features)
7785 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
7786 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
7787 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
7788 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
7789 (mi_cmd_trace_frame_collected): Constify 'command'
7790 parameter.
7791 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
7792 'command' parameter.
7793
67cb5b2d
PA
77942017-04-05 Pedro Alves <palves@redhat.com>
7795
7796 * ada-lang.c (ada_completer_word_break_characters): Now a const
7797 array.
7798 (ada_get_gdb_completer_word_break_characters): Constify.
7799 * completer.c (gdb_completer_command_word_break_characters)
7800 (gdb_completer_file_name_break_characters)
7801 (gdb_completer_quote_characters): Now const arrays.
7802 (get_gdb_completer_quote_characters): Constify.
7803 (set_rl_completer_word_break_characters): New function.
7804 (set_gdb_completion_word_break_characters)
7805 (complete_line_internal): Use it.
7806 * completer.h (get_gdb_completer_quote_characters): Constify.
7807 (set_rl_completer_word_break_characters): Declare.
7808 * f-lang.c (f_word_break_characters): Constify.
7809 * language.c (default_word_break_characters): Constify.
7810 * language.h (language_defn::la_word_break_characters): Constify.
7811 (default_word_break_characters): Constify.
7812 * top.c (init_main): Use set_rl_completer_word_break_characters.
7813
7a114964
PA
78142017-04-05 Pedro Alves <palves@redhat.com>
7815
7816 * aix-thread.c (aix_thread_pid_to_str)
7817 (aix_thread_extra_thread_info): Constify.
7818 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
7819 * bsd-uthread.c (bsd_uthread_extra_thread_info)
7820 (bsd_uthread_pid_to_str): Constify.
7821 * corelow.c (core_pid_to_str): Constify.
7822 * darwin-nat.c (darwin_pid_to_str): Constify.
7823 * fbsd-nat.c (fbsd_pid_to_str): Constify.
7824 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
7825 Constify.
7826 * gnu-nat.c (gnu_pid_to_str): Constify.
7827 * go32-nat.c (go32_pid_to_str): Constify.
7828 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
7829 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
7830 * inferior.c (inferior_pid_to_str): Constify.
7831 * linux-nat.c (linux_nat_pid_to_str): Constify.
7832 * linux-tdep.c (linux_core_pid_to_str): Constify.
7833 * linux-thread-db.c (thread_db_pid_to_str)
7834 (thread_db_extra_thread_info): Constify.
7835 * nto-tdep.c (nto_extra_thread_info): Constify.
7836 * nto-tdep.h (nto_extra_thread_info): Constify.
7837 * obsd-nat.c (obsd_pid_to_str): Constify.
7838 * procfs.c (procfs_pid_to_str): Constify.
7839 * ravenscar-thread.c (ravenscar_extra_thread_info)
7840 (ravenscar_pid_to_str): Constify.
7841 * remote-sim.c (gdbsim_pid_to_str): Constify.
7842 * remote.c (remote_threads_extra_info, remote_pid_to_str):
7843 Constify.
7844 * sol-thread.c (solaris_pid_to_str): Constify.
7845 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
7846 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
7847 * target.c (default_pid_to_str, target_pid_to_str)
7848 (normal_pid_to_str, default_pid_to_str): Constify.
7849 * target.h (target_ops::to_pid_to_str)
7850 (target_ops::to_extra_thread_info): Constify.
7851 (target_pid_to_str, normal_pid_to_str): Constify.
7852 * windows-nat.c (windows_pid_to_str): Constify.
7853 * gdbarch.sh (core_pid_to_str): Constify.
7854 * target-delegates.c: Regenerate.
7855 * gdbarch.h, gdbarch.c: Regenerate.
7856
69bbf465
PA
78572017-04-05 Pedro Alves <palves@redhat.com>
7858
7859 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
7860 the memory of the temporary warning_pre_print override.
7861 * utils.c (warning_pre_print): Constify.
7862 * utils.h (warning_pre_print): Constify.
7863
be47f9e8
PA
78642017-04-05 Pedro Alves <palves@redhat.com>
7865
7866 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
7867 (shell_command): New function.
7868 (make_command): Use std::string.
7869 (init_cli_cmds): Register shell_command instead of shell_escape.
7870
bde6261a
PA
78712017-04-05 Pedro Alves <palves@redhat.com>
7872
7873 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
7874 * tracepoint.c (default_collect): Don't initialize.
7875
b38ef47f
PA
78762017-04-05 Pedro Alves <palves@redhat.com>
7877
7878 * macroexp.c (macro_buffer::shared): Now a bool.
7879 (init_buffer): Update.
7880 (init_shared_buffer): Constify 'addr' parameter.
7881 (substitute_args, expand, macro_expand, macro_expand_next): Remove
7882 casts.
7883
f995bbe8
PA
78842017-04-05 Pedro Alves <palves@redhat.com>
7885
7886 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
7887 * disasm.c (set_disassembler_options): Constify local.
7888 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
7889
4a596fe2
SDJ
78902017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7891
7892 PR gdb/21352
7893 * tracefile.c (tsave_command): Fix argument parsing for '-r'
7894 option.
7895
2cad08ea
YQ
78962017-04-05 Yao Qi <yao.qi@linaro.org>
7897
7898 * frame.c (frame_unwind_register_unsigned): Call
7899 frame_unwind_register_value.
7900
55a98976
YQ
79012017-04-05 Yao Qi <yao.qi@linaro.org>
7902
7903 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
7904 Use gdb_test_multiple, and don't match anchor.
7905
4ac40124
PA
79062017-04-05 Pedro Alves <palves@redhat.com>
7907
7908 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
7909 (Write After Approval): Remove Simon Marchi.
7910
c053b654
PA
79112017-04-05 Pedro Alves <palves@redhat.com>
7912
7913 * common/gdb_optional.h (optional::optional): Make constexpr and
7914 initialize m_dummy.
7915
4c7bf4f9
JB
79162017-04-04 John Baldwin <jhb@FreeBSD.org>
7917
7918 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
7919 (amd64fbsd_jmp_buf_reg_offset): Remove.
7920 (amd64fbsd_supply_uthread): Remove function.
7921 (amd64fbsd_collect_uthread): Remove function.
7922 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
7923 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
7924 (x86_64-*-freebsd*): Remove bsd-uthread.o.
7925 (fbsd-nat.c): Update comment.
7926 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
7927 (i386fbsd_jmp_buf_reg_offset): Remove.
7928 (i386fbsd_supply_uthread): Remove function.
7929 (i386fbsd_collect_uthread): Remove function.
7930 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
7931
1e1a8bef
JB
79322017-04-04 John Baldwin <jhb@FreeBSD.org>
7933
7934 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
7935 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
7936 * NEWS: Mention that support for FreeBSD/alpha was removed.
7937 * alpha-fbsd-tdep.c: Delete file.
7938 * config/alpha/fbsd.mh: Delete file.
7939 * configure.host: Delete alpha*-*-freebsd* and
7940 alpha*-*-kfreebsd*-gnu.
7941 * configure.tgt: Delete alpha*-*-freebsd* and
7942 alpha*-*-kfreebsd*-gnu.
7943
49907934
JB
79442017-04-04 John Baldwin <jhb@FreeBSD.org>
7945
7946 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
7947 amd64bsd_store_inferior_registers): Use ptid from regcache.
7948
6f77053d
PA
79492017-04-04 Pedro Alves <palves@redhat.com>
7950
7951 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
7952 data fields, make them private and add "m_" prefixes.
7953 (lnp_state_machine::lnp_state_machine): New ctor.
7954 (record_line, check_line_address, handle_set_discriminator)
7955 (handle_set_address, handle_advance_pc, handle_special_opcode)
7956 (handle_advance_line, handle_set_file, handle_negate_stmt)
7957 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
7958 (end_sequence, advance_line): New methods.
7959 (m_gdbarch, m_record_lines_p): New fields.
7960 (lnp_reader_state): Delete.
7961 (dwarf_record_line): Rename to ...
7962 (lnp_state_machine::record_line): ... adjust.
7963 (init_lnp_state_machine): Delete.
7964 (lnp_state_machine::lnp_state_machine): New.
7965 (check_line_address): Rename to ...
7966 (lnp_state_machine::check_line_address): This.
7967 (dwarf_decode_lines_1): Remove reference to "reader_state".
7968 Adjust lnp_state_machine having a non-default ctor. Use bool.
7969 State machine internal state manipulation moved to
7970 lnp_state_machine methods.
7971
9c541725
PA
79722017-04-04 Pedro Alves <palves@redhat.com>
7973
7974 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7975 unittests/offset-type-selftests.c.
7976 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
7977 * common/offset-type.h: New file.
7978 * common/preprocessor.h: New file.
7979 * common/traits.h: New file.
7980 * common/valid-expr.h: New file.
7981 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
7982 sect_offset and cu_offset strong typedefs throughout.
7983 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
7984 typedefs throughout.
7985 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
7986 sect_offset and cu_offset strong typedefs throughout.
7987 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
7988 typedefs throughout.
7989 * gdbtypes.h: Include "common/offset-type.h".
7990 (cu_offset): Now an offset type (strong typedef) instead of a
7991 struct.
7992 (sect_offset): Likewise.
7993 (union call_site_parameter_u): Rename "param_offset" field to
7994 "param_cu_off".
7995 * unittests/offset-type-selftests.c: New file.
7996
ecfb656c
PA
79972017-04-04 Pedro Alves <palves@redhat.com>
7998
7999 * common/underlying.h: New file.
8000 * dwarf2read.c: Include "common/gdb_optional.h" and
8001 "common/underlying.h".
8002 (dir_index, file_name_index): New types.
8003 (file_entry): Use them.
8004 (file_entry::include): Use to_underlying.
8005 (line_header::add_file_name): Use dir_index.
8006 (read_formatted_entries): Use gdb::optional. Read form before
8007 writting to file_entry.
8008 (dwarf_decode_line_header): Use dir_index.
8009 (lnp_state_machine::current_file): Use to_underlying.
8010 (lnp_state_machine::file): Change type to file_name_index.
8011 (dwarf_record_line): Use to_underlying.
8012 (init_lnp_state_machine): Use file_name_index.
8013 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8014
d194f1fe
PA
80152017-04-04 Pedro Alves <palves@redhat.com>
8016
8017 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8018 operator bool, has_value and get methods.
8019
fff8551c
PA
80202017-04-04 Pedro Alves <palves@redhat.com>
8021
8022 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8023 fields.
8024 (line_header): Initialize all data fields. Change type of
8025 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8026 Change type of include_dirs to std::vector<const char *>. Remove
8027 num_include_dirs, include_dirs_size. Change type of file_names to
8028 std::vector<file_entry>. Remove num_file_names, file_names_size.
8029 (line_header::line_header): New.
8030 (line_header::add_include_dir, line_header::add_file_name): New
8031 methods.
8032 (line_header::include_dir_at): Remove NULL check.
8033 (line_header::file_name_at): Add const overload.
8034 (line_header_up): New unique_ptr typedef.
8035 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8036 std::vector. Remove free_line_header call.
8037 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8038 free_line_header call.
8039 (free_cu_line_header): Delete.
8040 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8041 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8042 Adjust to use std::vector.
8043 (free_line_header): Delete.
8044 (free_line_header_voidp): Use delete.
8045 (add_include_dir): Replace with ...
8046 (line_header::add_include_dir): ... this method. Use std::vector.
8047 (add_file_name): Replace with ...
8048 (line_header::add_file_name): ... this method. Use std::vector.
8049 (add_include_dir_stub): Delete.
8050 (read_formatted_entries): Remove memset.
8051 (dwarf_decode_line_header): Return a line_header_up instead of a
8052 raw pointer. Remove cleanup handling. Pass lambdas to
8053 read_formatted_entries. Adjust to use line_header methods.
8054 (dwarf_decode_lines_1): Adjust to use line_header methods.
8055 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8056 use std::vector.
8057
d62a8ae2
SM
80582017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8059
8060 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8061 instead of struct ptid.
8062
db3a1dc7
AH
80632017-05-04 Alan Hayward <alan.hayward@arm.com>
8064
8065 * frame.c (get_frame_register_bytes): Unwind using value.
8066 (put_frame_register_bytes): Likewise.
8067
b1b45502
IB
80682017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8069
8070 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8071 aggregate-like.
8072
ec13808e
JK
80732017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8074
8075 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8076
12316564
YQ
80772017-03-29 Yao Qi <yao.qi@linaro.org>
8078
8079 * gdbthread.h (struct thread_info): Declare constructor and
8080 destructor. Add some in-class member initializers.
8081 * thread.c (free_thread): Remove.
8082 (init_thread_list): Call delete instead of free_thread.
8083 (new_thread): Call thread_info constructor.
8084 (thread_info::thread_info): New function.
8085 (thread_info::~thread_info): New function.
8086 (delete_thread_1): Call delete instead of free_thread.
8087 (make_cleanup_restore_current_thread): Move tp and frame to
8088 inner block.
8089
fe5f7374
AK
80902017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8091
8092 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8093 (arc_skip_prologue): Likewise.
8094 (arc_make_frame_cache): Likewise.
8095 (arc_pv_get_operand): New function.
8096 (arc_is_in_prologue): Likewise.
8097 (arc_analyze_prologue): Likewise.
8098 (arc_print_frame_cache): Likewise.
8099 (MAX_PROLOGUE_LENGTH): New constant.
8100
eea78757
AK
81012017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8102
8103 * configure.tgt: Add arc-insn.o.
8104 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8105 (dump_arc_instruction_command): New function.
8106 (arc_fprintf_disasm): Likewise.
8107 (arc_disassemble_info): Likewise.
8108 (arc_insn_get_operand_value): Likewise.
8109 (arc_insn_get_operand_value_signed): Likewise.
8110 (arc_insn_get_memory_base_reg): Likewise.
8111 (arc_insn_get_memory_offset): Likewise.
8112 (arc_insn_get_branch_target): Likewise.
8113 (arc_insn_dump): Likewise.
8114 (arc_insn_get_linear_next_pc): Likewise.
8115 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8116 (arc_disassemble_info): Likewise.
8117 (arc_insn_get_branch_target): Likewise.
8118 (arc_insn_get_linear_next_pc): Likewise.
8119 * NEWS: Mention new "maint print arc arc-instruction".
8120
3be78afd
AK
81212017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8122
8123 * arc-tdep (maintenance_print_arc_list): New variable.
8124 (maintenance_print_arc_command): New function.
8125
296ec4fa
AK
81262017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8127
8128 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8129 Add "limm" and "reserved".
8130 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8131 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8132 * arc-tdep.h (arc_regnum): Likewise.
8133
f74f865e
MF
81342017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8135
8136 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8137 for THREADPTR register.
8138 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8139 register.
8140 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8141 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8142 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8143
0d0bf81a
MF
81442017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8145
8146 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8147 registers above gdbarch_num_regs (gdbarch) as privileged in
8148 call0 ABI.
8149
0ce4291e
MF
81502017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8151
8152 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8153 for a single specified register or for all registers in
8154 a0_base..a0_base + C0_NREGS range.
8155 (supply_gregset_reg): Call regcache_raw_supply for a single
8156 specified register or for all registers in a0_base..a0_base +
8157 C0_NREGS range.
8158
c56054f9
MF
81592017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8160
8161 * arch/xtensa.h (C0_NREGS): Add definition.
8162 * xtensa-tdep.c (C0_NREGS): Remove definition.
8163
a4398628
MF
81642017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8165
8166 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8167 Drop xtensa_default_isa initialization.
8168 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8169
8c43009f
PA
81702017-03-27 Pedro Alves <palves@redhat.com>
8171
8172 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8173 (file_entry::include_dir): New method.
8174 (line_header::include_dir_at, line_header::file_name_at): New
8175 methods.
8176 (setup_type_unit_groups, setup_type_unit_groups)
8177 (psymtab_include_file_name): Simplify using the new methods.
8178 (lnp_state_machine) <the_line_header>: New field.
8179 <file>: Add comment.
8180 (lnp_state_machine::current_file): New method.
8181 (dwarf_record_line): Simplify using the new methods.
8182 (init_lnp_state_machine): Initialize the "the_line_header" field.
8183 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8184 Simplify using the new methods.
8185
a7e80b9e
PA
81862017-03-27 Pedro Alves <palves@redhat.com>
8187
8188 * cp-name-parser.y (make_empty): Delete.
8189 (demangler_special, nested_name, ptr_operator, array_indicator)
8190 (direct_declarator, declarator_1): Use fill_comp instead of
8191 make_empty.
8192
21047726
PA
81932017-03-27 Pedro Alves <palves@redhat.com>
8194
8195 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8196 to ATTRIBUTE_PRINTF.
8197 * solib-target.c (library_list_start_list): Print "string" not
8198 "version".
8199 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8200 gdb_xml_error call.
8201
d721ba37
PA
82022017-03-27 Pedro Alves <palves@redhat.com>
8203
8204 * dwarf2read.c (struct file_and_directory): New.
8205 (dwarf2_get_dwz_file): Adjust to use std::string.
8206 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8207 (find_file_and_directory): Adjust to return a file_and_directory
8208 object.
8209 (read_file_scope): Adjust to use file_and_directory. Remove
8210 make_cleanup/do_cleanups calls.
8211 (open_and_init_dwp_file): Adjust to use std::string. Remove
8212 make_cleanup/do_cleanups calls.
8213 * python/python.c (do_start_initialization): Adjust to ldirname
8214 returning a std::string.
8215 * utils.c (ldirname): Now returns a std::string.
8216 * utils.h (ldirname): Change return type to std::string.
8217 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8218 returning a std::string.
8219 * xml-tdesc.c (file_read_description_xml): Likewise.
8220
ed771251
AH
82212017-03-24 Alan Hayward <alan.hayward@arm.com>
8222
8223 * regcache.c (regcache_debug_print_register): New function.
8224 * regcache.h (regcache_debug_print_register): New declaration.
8225 * target.c (debug_print_register): Remove.
8226 (target_fetch_registers): Call regcache_debug_print_register.
8227 (target_store_registers): Likewise.
8228
568c1b9f
PB
82292017-03-24 Pádraig Brady <pbrady@fb.com>
8230
8231 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8232 reference beyond the 'lh->include_dirs' array before accessing to
8233 it.
8234 (psymtab_include_file_name): Likewise.
8235 (dwarf_decode_lines_1): Likewise.
8236 (dwarf_decode_lines): Likewise.
8237 (file_file_name): Likewise.
8238
3e00d44f
SM
82392017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8240
8241 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8242 inferior_ptid.
8243 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8244 ps_lsetfpregs): Likewise.
8245 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8246 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8247 ps_lsetfpregs): Likewise.
8248 * target.c (target_fetch_registers, target_store_registers):
8249 Remove asserts.
8250
077ae656
AH
82512017-03-23 Alan Hayward <alan.hayward@arm.com>
8252
8253 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8254
1e2b521d
YQ
82552017-03-23 Yao Qi <yao.qi@linaro.org>
8256
8257 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8258 (_initialize_aarch64_tdep): Register it.
8259 (aarch64_record_load_store): Handle PRFM instruction.
8260 (aarch64_process_record_test): New function.
8261
33877125
YQ
82622017-03-23 Yao Qi <yao.qi@linaro.org>
8263
8264 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8265 indentation.
8266
a0eef940
YQ
82672017-03-23 Yao Qi <yao.qi@linaro.org>
8268
8269 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8270
3f2a3564
PR
82712017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8272
8273 python/python.c (do_start_initialization): Fix memory leak.
8274
b67aeab0
SM
82752017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8276
8277 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8278 using get_ptrace_pid.
8279 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8280 inferior_ptid.
8281 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8282 inferior_ptid instead of pid.
8283
ffdbe864
YQ
82842017-03-22 Yao Qi <yao.qi@linaro.org>
8285
8286 * aarch64-tdep.c: Wrap locally used classes in anonymous
8287 namespace.
8288 * arm-tdep.c: Likewise.
8289 * linespec.c: Likewise.
8290 * ui-out.c: Likewise.
8291
9d736fbf
JG
82922017-03-22 Jonah Graham <jonah@kichwacoders.com>
8293
8294 PR gdb/19637
8295 * python/lib/gdb/printer/bound_registers.py: Import sys.
8296
3de88e9a
SM
82972017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8298
8299 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8300 windows_thread_info parameter and use it instead of
8301 current_thread.
8302 (windows_fetch_inferior_registers): Don't set current_thread,
8303 pass the thread to do_windows_fetch_inferior_registers. Use
8304 ptid from regcache instead of inferior_ptid.
8305 (do_windows_store_inferior_registers): Add windows_thread_info
8306 parameter and use it instead of current_thread.
8307 (windows_store_inferior_registers): Don't set current_thread,
8308 pass the thread to do_windows_store_inferior_registers. Use
8309 ptid from regcache instead of inferior_ptid.
8310
0e7b8f61
SM
83112017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8312
8313 * ser-mingw.c (ser_windows_raw): Remove reference to
8314 struct serial::current_timeout.
8315
5badf10a
IR
83162017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8317
8318 PR tdep/20928
8319 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8320 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8321 (sparc64_fsr_type): Fix %fsr decoding.
8322
cee59b3f
TW
83232017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8324
8325 * python/py-record-btrace.c (btpy_insn_data): Change return type
8326 for Python 2.
8327
639a9038
SM
83282017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8329
8330 * spu-linux-nat.c (spu_fetch_inferior_registers,
8331 spu_store_inferior_registers): Use ptid from regcache, set and
8332 restore inferior_ptid.
8333 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8334 Likewise.
8335
bcc0c096
SM
83362017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8337
8338 * i386-linux-nat.c (fetch_register, store_register,
8339 i386_linux_fetch_inferior_registers,
8340 i386_linux_store_inferior_registers): Use ptid from regcache.
8341 * ia64-linux-nat.c (ia64_linux_fetch_register,
8342 ia64_linux_store_register): Likewise.
8343 * inf-ptrace.c (inf_ptrace_fetch_register,
8344 inf_ptrace_store_register): Likewise.
8345 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8346 m32r_linux_store_inferior_registers): Likewise.
8347 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8348 m68kbsd_store_inferior_registers): Likewise.
8349 * m68k-linux-nat.c (fetch_register, store_register,
8350 m68k_linux_fetch_inferior_registers,
8351 m68k_linux_store_inferior_registers): Likewise.
8352 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8353 m88kbsd_store_inferior_registers): Likewise.
8354 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8355 mips_fbsd_store_inferior_registers): Likewise.
8356 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8357 mips64_linux_regsets_store_registers): Likewise.
8358 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8359 mipsnbsd_store_inferior_registers): Likewise.
8360 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8361 mips64obsd_store_inferior_registers): Likewise.
8362 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8363 Likewise.
8364 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8365 ppcfbsd_store_inferior_registers): Likewise.
8366 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8367 ppc_linux_store_inferior_registers): Likewise.
8368 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8369 ppcnbsd_store_inferior_registers): Likewise.
8370 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8371 ppcobsd_store_registers): Likewise.
8372 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8373 Likewise.
8374 * ravenscar-thread.c (ravenscar_fetch_registers,
8375 ravenscar_store_registers, ravenscar_prepare_to_store):
8376 Likewise.
8377 * record-btrace.c (record_btrace_fetch_registers,
8378 record_btrace_store_registers, record_btrace_prepare_to_store):
8379 Likewise.
8380 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8381 Lookup inferior using ptid from regcache, instead of
8382 current_inferior.
8383 * remote.c (remote_fetch_registers, remote_store_registers): Use
8384 ptid from regcache.
8385 * rs6000-nat.c (fetch_register, store_register): Likewise.
8386 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8387 s390_linux_store_inferior_registers): Likewise.
8388 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8389 shnbsd_store_inferior_registers): Likewise.
8390 * sol-thread.c (sol_thread_fetch_registers,
8391 sol_thread_store_registers): Likewise.
8392 * sparc-nat.c (sparc_fetch_inferior_registers,
8393 sparc_store_inferior_registers): Likewise.
8394 * tilegx-linux-nat.c (fetch_inferior_registers,
8395 store_inferior_registers): Likewise.
8396 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8397 vaxbsd_store_inferior_registers): Likewise.
8398 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8399 store_xtregs): Likewise.
8400
c0f55cc6
AV
84012017-03-20 Artemiy Volkov <artemiyv@acm.org>
8402
8403 PR gdb/14441
8404 * NEWS: Mention support for rvalue references in GDB and python.
8405 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8406 supports both lvalue and rvalue references.
8407
15c0a2a9
AV
84082017-03-20 Artemiy Volkov <artemiyv@acm.org>
8409
8410 PR gdb/14441
8411 * gdbtypes.c (rank_one_type): Implement overloading
8412 resolution rules regarding rvalue references.
8413
aa006118
AV
84142017-03-20 Artemiy Volkov <artemiyv@acm.org>
8415
8416 PR gdb/14441
8417 * aarch64-tdep.c (aarch64_type_align)
8418 (aarch64_extract_return_value, aarch64_store_return_value): Change
8419 lvalue reference type checks to general reference type checks.
8420 * amd64-tdep.c (amd64_classify): Likewise.
8421 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8422 Likewise.
8423 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8424 (arm_store_return_value): Likewise.
8425 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8426 * c-typeprint.c (c_print_type): Likewise.
8427 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8428 (cplus_number_of_children, cplus_describe_child): Likewise.
8429 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8430 * completer.c (expression_completer): Likewise.
8431 * cp-support.c (make_symbol_overload_list_adl_namespace):
8432 Likewise.
8433 * darwin-nat-info.c (info_mach_region_command): Likewise.
8434 * dwarf2loc.c (entry_data_value_coerce_ref)
8435 (value_of_dwarf_reg_entry): Likewise.
8436 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8437 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8438 Likewise.
8439 * findvar.c (extract_typed_address, store_typed_address):
8440 Likewise.
8441 * gdbtypes.c (rank_one_type): Likewise.
8442 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8443 * infcall.c (value_arg_coerce): Likewise.
8444 * language.c (pointer_type): Likewise.
8445 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8446 Likewise.
8447 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8448 * mn10300-tdep.c (mn10300_type_align): Likewise.
8449 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8450 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8451 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8452 Likewise.
8453 * printcmd.c (print_formatted, x_command): Likewise.
8454 * python/py-type.c (typy_get_composite, typy_template_argument):
8455 Likewise.
8456 * python/py-value.c (valpy_referenced_value)
8457 (valpy_get_dynamic_type, value_has_field): Likewise.
8458 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8459 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8460 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8461 * spu-tdep.c (spu_scalar_value_p): Likewise.
8462 * symtab.c (lookup_symbol_aux): Likewise.
8463 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8464 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8465 Likewise.
8466 * valops.c (value_cast_pointers, value_cast)
8467 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8468 (value_struct_elt, value_struct_elt_bitpos)
8469 (value_find_oload_method_list, find_overload_match)
8470 (value_rtti_indirect_type): Likewise.
8471 * valprint.c (val_print_scalar_type_p, generic_val_print):
8472 Likewise.
8473 * value.c (value_actual_type, value_as_address, unpack_long)
8474 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8475 (coerce_ref): Likewise.
8476 * varobj.c (varobj_get_value_type): Likewise.
8477
3fcf899d
AV
84782017-03-20 Artemiy Volkov <artemiyv@acm.org>
8479
8480 PR gdb/14441
8481 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
8482 table of constants.
8483 * python/lib/gdb/command/explore.py: Support exploring values
8484 of rvalue reference types.
8485 * python/lib/gdb/types.py: Implement get_basic_type() for
8486 rvalue reference types.
8487 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
8488 constant.
8489 * python/py-value.c (valpy_getitem): Add an rvalue reference
8490 check.
8491 (valpy_reference_value): Add new parameter "refcode".
8492 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
8493 New wrappers for valpy_reference_value().
8494 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8495 (gdbpy_invoke_xmethod): Likewise.
8496
4297a3f0
AV
84972017-03-20 Artemiy Volkov <artemiyv@acm.org>
8498
8499 PR gdb/14441
8500 * dwarf2read.c (process_die, read_type_die_1): Handle the
8501 DW_TAG_rvalue_reference_type DIE.
8502 (read_tag_reference_type): Add new parameter "refcode".
8503
e1cb3213
AV
85042017-03-20 Artemiy Volkov <artemiyv@acm.org>
8505
8506 PR gdb/14441
8507 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
8508 (c_type_print_modifier, c_type_print_varspec_suffix)
8509 (c_type_print_base): Support printing rvalue reference types.
8510 * c-valprint.c (c_val_print, c_value_print): Support printing
8511 rvalue reference values.
8512
e4347c89
AV
85132017-03-20 Artemiy Volkov <artemiyv@acm.org>
8514
8515 PR gdb/14441
8516 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
8517 typename.
8518 * cp-support.c (replace_typedefs): Handle
8519 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
8520 * python/py-type.c (typy_lookup_type): Likewise.
8521
53cc15f5
AV
85222017-03-20 Artemiy Volkov <artemiyv@acm.org>
8523
8524 PR gdb/14441
8525 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
8526 * parse.c (insert_type): Change assert statement.
8527 (follow_types): Handle rvalue reference types.
8528 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
8529 constant.
8530
a65cfae5
AV
85312017-03-20 Artemiy Volkov <artemiyv@acm.org>
8532
8533 PR gdb/14441
8534 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
8535 value_ref() interface.
8536 * c-valprint.c (c_value_print): Likewise.
8537 * infcall.c (value_arg_coerce): Likewise.
8538 * python/py-value.c (valpy_reference_value): Likewise.
8539 * valops.c (value_cast, value_reinterpret_cast)
8540 (value_dynamic_cast, typecmp): Likewise.
8541 (value_ref): Parameterize by kind of return value reference type.
8542 * value.h (value_ref): Add new parameter "refcode".
8543
3b224330
AV
85442017-03-20 Artemiy Volkov <artemiyv@acm.org>
8545
8546 PR gdb/14441
8547 * dwarf2read.c (read_tag_reference_type): Use
8548 lookup_lvalue_reference_type() instead of lookup_reference_type().
8549 * eval.c (evaluate_subexp_standard): Likewise.
8550 * f-exp.y: Likewise.
8551 * gdbtypes.c (make_reference_type, lookup_reference_type):
8552 Generalize with rvalue reference types.
8553 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
8554 convenience wrappers for lookup_reference_type().
8555 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
8556 reference kind parameter.
8557 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
8558 wrappers for lookup_reference_type().
8559 * guile/scm-type.c (gdbscm_type_reference): Use
8560 lookup_lvalue_reference_type() instead of lookup_reference_type().
8561 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
8562 * parse.c (follow_types): Likewise.
8563 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
8564 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
8565 Likewise.
8566 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8567 (gdbpy_invoke_xmethod): Likewise.
8568 * stabsread.c: Provide extra argument to make_reference_type()
8569 call.
8570 * valops.c (value_ref, value_rtti_indirect_type): Use
8571 lookup_lvalue_reference_type() instead of lookup_reference_type().
8572
f9aeb8d4
AV
85732017-03-20 Artemiy Volkov <artemiyv@acm.org>
8574
8575 PR gdb/14441
8576 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
8577 (TYPE_IS_REFERENCE): New macro.
8578 (struct type): Add rvalue_reference_type field.
8579 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
8580
51457a05
MAL
85812017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8582
8583 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
8584 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
8585 New function definition.
8586 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
8587 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
8588 New function declaration.
8589 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
8590 * mi/mi-interp.h: New file.
8591 * solib.c (info_sharedlibrary_command): Replace for loop with
8592 ALL_SO_LIBS macro
8593 * solib.h (update_solib_list): New function declaration.
8594 (so_list_head): Move macro.
8595 * solist.h (ALL_SO_LIBS): New macro.
8596
e696b3ad
MAL
85972017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8598
8599 * infcmd.c (post_create_inferior): Remove unused argument in
8600 call to solib_add.
8601 * remote.c (remote_start_remote): Likewise.
8602 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
8603 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
8604 (enable_break): Likewise.
8605 * solib.c (update_solib_list): Remove unused target argument
8606 and its documentation.
8607 (solib_add): Remove unused target argument. Remove unused
8608 argument in call to update_solib_list.
8609 (info_sharedlibrary_command): Remove unused argument in call
8610 to update_solib_list.
8611 (sharedlibrary_command): Remove unused argument in call to
8612 solib_add.
8613 (handle_solib_event): Likewise.
8614 (reload_shared_libraries): Likewise.
8615 * solib.h (solib_add): Remove unused target argument.
8616
dcb84eda
AA
86172017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
8618
8619 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
8620 (s390_displaced_step_fixup): Cover relative branches with the
8621 default fixup handling. This fixes lack of support for some
8622 relative branch instructions.
8623
d9cb6cdc
SM
86242017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8625
8626 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
8627 ptid from regcache.
8628
1afaf9f4
SM
86292017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8630
8631 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
8632 i386_darwin_store_inferior_registers): Use ptid from regcache.
8633
aac12e24
SM
86342017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8635
8636 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
8637 i386bsd_store_inferior_registers): Use ptid from regcache.
8638
bbe1eef1
SM
86392017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8640
8641 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
8642 hppaobsd_store_registers): Use ptid from regcache.
8643
10799020
SM
86442017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8645
8646 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
8647 hppanbsd_store_registers): Use ptid from regcache.
8648
00204cf7
SM
86492017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8650
8651 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
8652 from regcache. Use get_ptrace_pid.
8653
11a33714
SM
86542017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8655
8656 * corelow.c (get_core_register_section): Use ptid from regcache,
8657 update doc.
8658
317cd492
SM
86592017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8660
8661 * bsd-uthread.c (bsd_uthread_fetch_registers,
8662 bsd_uthread_store_registers): Use ptid from regcache, set and
8663 restore inferior_ptid.
8664
9ac8a7c2
SM
86652017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8666
8667 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
8668 fetch_fp_regs, store_register, store_regs, store_fp_register,
8669 store_fp_regs): Use ptid from regcache.
8670
4ac4bb6a
SM
86712017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8672
8673 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
8674 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
8675 store_vfp_regs): Use ptid from regcache.
8676
9bcbdca8
PA
86772017-03-17 Pedro Alves <palves@redhat.com>
8678
8679 PR remote/21188
8680 * ser-base.c (ser_base_wait_for): Add comment.
8681 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
8682 version.
8683 * ser-unix.c (hardwire_raw): Remove reference to
8684 scb->current_timeout.
8685 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
8686 (hardwire_ops): Install ser_base_readchar instead of
8687 hardwire_readchar.
8688 * serial.h (struct serial) <current_timeout, timeout_remaining>:
8689 Remove fields.
8690
7503099f
JG
86912017-03-17 Jonah Graham <jonah@kichwacoders.com>
8692
8693 PR gdb/19637
8694 * python/lib/gdb/printer/bound_registers.py: Add support for
8695 Python 3.
8696
7942e96e
AA
86972017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8698
8699 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
8700 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
8701 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
8702 byte_offset to subobj_byte_offset. Fix the handling of
8703 DWARF_VALUE_STACK on big-endian targets when coming via an
8704 implicit pointer.
8705 (dwarf2_evaluate_loc_desc): Adjust call to
8706 dwarf2_evaluate_loc_desc_full.
8707 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
8708 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
8709
ba14f379
YQ
87102017-03-16 Yao Qi <yao.qi@linaro.org>
8711
8712 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
8713 and REVSH instructions.
8714
b121eeb9
YQ
87152017-03-16 Yao Qi <yao.qi@linaro.org>
8716
8717 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
8718 (arm_record_test): Declare.
8719 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
8720 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
8721 align with the manual.
8722 (thumb_record_misc): Adjust the code order to align with the
8723 manual.
8724 (thumb2_record_decode_insn_handler): Fix instruction matching.
8725 (instruction_reader_thumb): New class.
8726 (arm_record_test): New function.
8727
728a7913
YQ
87282017-03-16 Yao Qi <yao.qi@linaro.org>
8729
8730 * arm-tdep.c (abstract_memory_reader): New class.
8731 (instruction_reader): New class.
8732 (extract_arm_insn): Add argument 'reader'. Callers updated.
8733 (decode_insn): Likewise.
8734
34b43320
DE
87352017-03-16 Doug Evans <dje@google.com>
8736
a7c0469f
DE
8737 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
8738 member. Change type of TYPE member to SCM. All uses updated.
8739 (lsscm_make_lazy_string_smob): Add assert.
8740 (lsscm_make_lazy_string): Flag bad length values.
8741 (lsscm_elt_type): New function.
8742 (gdbscm_lazy_string_to_value): Rewrite to use
8743 lsscm_safe_lazy_string_to_value.
8744 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
8745 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
8746 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
8747 in incoming type.
8748 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
8749 * guile/scm-type.c (tyscm_scm_to_type): New function.
8750
87512017-03-15 Doug Evans <dje@google.com>
8752
34b43320
DE
8753 PR python/17728, python/18439, python/18779
8754 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
8755 member. Change type of TYPE member to PyObject *. All uses updated.
8756 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
8757 (gdbpy_create_lazy_string_object): Flag bad length values.
8758 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
8759 Handle typedefs in incoming type.
8760 (stpy_lazy_string_elt_type): New function.
8761 (gdbpy_extract_lazy_string): Call it.
8762 * python/py-value.c (valpy_lazy_string): Flag bad length values.
8763 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
8764 typedefs in incoming type.
8765
a3a5fecc
DE
87662017-03-16 Doug Evans <dje@google.com>
8767
8768 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
8769 * guile/scm-type.c (tyscm_scm_to_type): New function.
8770
28f1c605
JW
87712017-03-16 Jiong Wang <jiong.wang@arm.com>
8772
8773 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
8774 "ULONGEST" for "skip".
8775
87c336f6
AA
87762017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
8777
8778 PR gdb/21220
8779 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
8780 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
8781 (inf_ptrace_peek_poke): ...here. New function. Now also loop
8782 over ptrace peek/poke until end of buffer or error.
8783
cf81cf60
SM
87842017-03-14 Simon Marchi <simon.marchi@ericsson.com>
8785
8786 * parse.c (length_of_subexp): Make static.
8787 * parser-defs.h (length_of_subexp): Remove.
8788
a379284a
AA
87892017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
8790
8791 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
8792 as well.
8793
8a6200ba
PA
87942017-03-14 Pedro Alves <palves@redhat.com>
8795
8796 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
8797 (main): Use std::unique_ptr. Remove calls to
8798 cp_demangled_name_parse_free.
8799
f79ec206
SM
88002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8801
8802 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
8803 alphabsd_store_inferior_registers): Use regcache->ptid instead
8804 of inferior_ptid.
8805
edb5fb00
SM
88062017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8807
8808 * aix-thread.c (aix_thread_fetch_registers,
8809 aix_thread_store_registers): Use regcache->ptid instead of
8810 inferior_ptid.
8811
55119686
SM
88122017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8813
8814 * aarch64-linux-nat.c (fetch_gregs_from_thread,
8815 store_gregs_to_thread, fetch_fpregs_from_thread,
8816 store_fpregs_to_thread): Use regcache->ptid instead of
8817 inferior_ptid.
8818
6a06fbb7
SM
88192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8820
8821 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
8822 amd64_linux_fetch_inferior_registers): Use regcache->ptid
8823 instead of inferior_ptid.
8824
c6386875
SM
88252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8826
8827 * target.c (target_fetch_registers, target_store_registers): Add
8828 assert.
8829
ddaaf0fb
SM
88302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8831
8832 * regcache.h (regcache_get_ptid): New function.
8833 * regcache.c (regcache_get_ptid): New function.
8834
b9da89d1 88352017-03-13 Mark Wielaard <mark@klomp.org>
8836
8837 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
8838
5f4d1085
KS
88392017-03-10 Keith Seitz <keiths@redhat.com>
8840
8841 PR c++/8218
8842 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
8843
c65d6b55
PA
88442017-03-08 Pedro Alves <palves@redhat.com>
8845
8846 PR gdb/18360
8847 * infrun.c (start_step_over, do_target_resume, resume)
8848 (restart_threads): Assert we're not resuming a thread that is
8849 meant to be stopped.
8850 (infrun_thread_stop_requested_callback): Delete.
8851 (infrun_thread_stop_requested): If the thread is internally
8852 stopped, queue a pending stop event and clear the thread's
8853 inline-frame state.
8854 (handle_stop_requested): New function.
8855 (handle_syscall_event, handle_inferior_event_1): Use
8856 handle_stop_requested.
8857 (handle_stop_requested): New function.
8858 (handle_signal_stop): Set the thread's stop_signal here instead of
8859 at caller.
8860 (finish_step_over): Clear step over info unconditionally.
8861 (handle_signal_stop): If the user had interrupted the event
8862 thread, consider the stop a random signal.
8863 (handle_signal_stop) <signal arrived while stepping over
8864 breakpoint>: Don't restart threads here.
8865 (stop_waiting): Don't clear step-over info here.
8866
15c22686
PA
88672017-03-08 Pedro Alves <palves@redhat.com>
8868
8869 PR 21206
8870 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
8871 goes to argument 2, not 1.
8872
6e5d74e7
PA
88732017-03-08 Pedro Alves <palves@redhat.com>
8874
8875 PR cli/21218
8876 * top.c (gdb_readline_wrapper): Avoid passing NULL to
8877 display_gdb_prompt.
8878 (command_line_input): Add comment.
8879
9753a2f6
PA
88802017-03-08 Pedro Alves <palves@redhat.com>
8881
8882 PR tui/21216
8883 * tui/tui-file.c (tui_file::write): New.
8884 * tui/tui-file.h (tui_file): Override "write".
8885 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
8886 factored out from ...
8887 (tui_puts): ... here.
8888 (tui_putc): Use them.
8889 (tui_write): New function.
8890 * tui/tui-io.h (tui_write): Declare.
8891
1672e0d9
SDJ
88922017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8893
8894 * Makefile.in (SFILES): Replace "environ.c" with
8895 "common/environ.c".
8896 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
8897 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
8898 to...
8899 * common/environ.c: ... here.
8900 * environ.h: Moved to...
8901 * common/environ.h: ... here.
8902
f7bb4e3a
PB
89032017-03-07 Peter Bergner <bergner@vnet.ibm.com>
8904
8905 * gdbarch.sh (pstring_ptr): New static function.
8906 (gdbarch_disassembler_options): Use it.
8907 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
8908 not valid_disassembler_option->name.
8909 * gdbarch.c: Regenerate.
8910
e45ced6c
PB
89112017-03-07 Peter Bergner <bergner@vnet.ibm.com>
8912
8913 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
8914
5f6fd321
PA
89152017-03-07 Pedro Alves <palves@redhat.com>
8916
8917 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
8918
6dbb839a 89192017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
8920
8921 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
8922 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
8923 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 8924 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 8925
d274ecf4
SM
89262017-03-06 Simon Marchi <simon.marchi@ericsson.com>
8927
8928 * xtensa-linux-nat.c (fetch_gregs): Remove const.
8929
df97be55
SM
89302017-03-03 Simon Marchi <simon.marchi@ericsson.com>
8931
8932 * remote.c (remote_add_target_side_commands): Use range-based
8933 for loop.
8934
7d45f3df
YQ
89352017-03-03 Yao Qi <yao.qi@linaro.org>
8936
8937 PR gdb/21165
8938 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
8939 value is lazy.
8940 * valprint.c (common_val_print): Likewise.
8941
65b48a81
PB
89422017-02-28 Peter Bergner <bergner@vnet.ibm.com>
8943
8944 * NEWS: Mention new set/show disassembler-options commands.
8945 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
8946 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
8947 (prospective_options): New static variable.
8948 (gdb_disassembler::gdb_disassembler): Initialize
8949 m_di.disassembler_options.
8950 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
8951 (get_disassembler_options): New function.
8952 (set_disassembler_options): Likewise.
8953 (set_disassembler_options_sfunc): Likewise.
8954 (show_disassembler_options_sfunc): Likewise.
8955 (disassembler_options_completer): Likewise.
8956 (_initialize_disasm): Likewise.
8957 * disasm.h (get_disassembler_options): New prototype.
8958 (set_disassembler_options): Likewise.
8959 * gdbarch.sh (gdbarch_disassembler_options): New variable.
8960 (gdbarch_verify_disassembler_options): Likewise.
8961 * gdbarch.c: Regenerate.
8962 * gdbarch.h: Likewise.
8963 * arm-tdep.c (num_disassembly_options): Delete.
8964 (set_disassembly_style): Likewise.
8965 (arm_disassembler_options): New static variable.
8966 (set_disassembly_style_sfunc): Convert short style name into long
8967 option name. Call set_disassembler_options.
8968 (show_disassembly_style_sfunc): New function.
8969 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
8970 set_gdbarch_verify_disassembler_options.
8971 (_initialize_arm_tdep): Delete regnames variable and update callers.
8972 (arm_disassembler_options): Initialize.
8973 (disasm_options): New variable.
8974 (num_disassembly_options): Rename from this...
8975 (num_disassembly_styles): ...to this. Compute by scanning through
8976 disasm_options.
8977 (valid_disassembly_styles): Initialize using disasm_options.
8978 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
8979 set_arm_regname_option.
8980 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
8981 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
8982 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
8983 set_gdbarch_verify_disassembler_options.
8984 * s390-tdep.c (s390_disassembler_options): New static variable.
8985 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
8986 set_gdbarch_verify_disassembler_options.
8987
d538e36d
SM
89882017-02-27 Simon Marchi <simon.marchi@ericsson.com>
8989
8990 * remote.c (remote_add_target_side_condition): Remove "struct"
8991 keyword from range-based for loop.
8992
83621223
SM
89932017-02-27 Simon Marchi <simon.marchi@ericsson.com>
8994
8995 * remote.c (remote_add_target_side_condition): Use range-based
8996 for loop. Update comment.
8997
2123df0e
YQ
89982017-02-27 Yao Qi <yao.qi@linaro.org>
8999
9000 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9001
8e368124
AH
90022017-02-26 Alan Hayward <alan.hayward@arm.com>
9003
9004 * regcache.c (regcache_raw_update): New function.
9005 (regcache_raw_read): Move code to regcache_raw_update.
9006 * regcache.h (regcache_raw_update): New declaration.
9007 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9008
a49dd8dd
JK
90092017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9010
9011 * dwarf2read.c (create_debug_type_hash_table): Initialize
9012 header.signature and header.type_offset_in_tu.
9013
34e4bae9
PA
90142017-02-24 Pedro Alves <palves@redhat.com>
9015
9016 * symtab.c (make_file_symbol_completion_list_1): Use
9017 add_symtab_completions.
9018
b0e4b369
AH
90192017-02-24 Alan Hayward <alan.hayward@arm.com>
9020
9021 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9022
975c21ab
AH
90232017-02-24 Alan Hayward <alan.hayward@arm.com>
9024
9025 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9026 I386_MAX_REGISTER_SIZE.
9027 (i386_pseudo_register_write): Likewise.
9028 (i386_process_record): Likewise.
9029 * i387-tdep.c (i387_supply_xsave): Likewise.
9030 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9031 (store_register): Likewise.
9032
14bc53a8
PA
90332017-02-23 Pedro Alves <palves@redhat.com>
9034
9035 * ada-lang.c: Include "common/function-view.h".
9036 (ada_iterate_over_symbols): Adjust to use function_view as
9037 callback type.
9038 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9039 (ada_make_symbol_completion_list): Use a lambda.
9040 (ada_exc_search_name_matches): Delete.
9041 (name_matches_regex): New.
9042 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9043 * compile/compile-c-support.c: Include "common/function-view.h".
9044 (print_one_macro): Change prototype to accept a ui_file pointer.
9045 (write_macro_definitions): Use a lambda.
9046 * dwarf2read.c: Include "common/function-view.h".
9047 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9048 (dw2_expand_symtabs_matching): Adjust to use function_view as
9049 callback type.
9050 * language.h: Include "common/function-view.h".
9051 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9052 function_view as callback type.
9053 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9054 * linespec.c: Include "common/function-view.h".
9055 (collect_info::add_symbol): New method.
9056 (struct symbol_and_data_callback, iterate_inline_only, struct
9057 symbol_matcher_data, iterate_name_matcher): Delete.
9058 (iterate_over_all_matching_symtabs): Adjust to use function_view
9059 as callback type and lambdas.
9060 (iterate_over_file_blocks): Adjust to use function_view as
9061 callback type.
9062 (decode_compound_collector): Now a class with private fields.
9063 (decode_compound_collector::release_symbols): New method.
9064 (collect_one_symbol): Rename to...
9065 (decode_compound_collector::operator()): ... this and adjust.
9066 (lookup_prefix_sym): decode_compound_collector construction bits
9067 move to decode_compound_collector ctor. Pass the
9068 decode_compound_collector object directly as callback. Remove
9069 cleanups and use decode_compound_collector::release_symbols
9070 instead.
9071 (symtab_collector): Now a class with private fields.
9072 (symtab_collector::release_symtabs): New method.
9073 (add_symtabs_to_list): Rename to...
9074 (symtab_collector::operator()): ... this and adjust.
9075 (collect_symtabs_from_filename): symtab_collector construction
9076 bits move to symtab_collector ctor. Pass the symtab_collector
9077 object directly as callback. Remove cleanups and use
9078 symtab_collector::release_symtabs instead.
9079 (collect_symbols): Delete.
9080 (add_matching_symbols_to_info): Use lambdas.
9081 * macrocmd.c (print_macro_callback): Delete.
9082 (info_macro_command): Use a lambda.
9083 (info_macros_command): Pass print_macro_definition as callable
9084 directly.
9085 (print_one_macro): Remove 'ignore' parameter.
9086 (macro_list_command): Adjust.
9087 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9088 (macro_for_each_data::user_data): Delete field.
9089 (foreach_macro): Adjust to call the function_view.
9090 (macro_for_each): Adjust to use function_view as callback type.
9091 (foreach_macro_in_scope): Adjust to call the function_view.
9092 (macro_for_each_in_scope): Adjust to use function_view as callback
9093 type.
9094 * macrotab.h: Include "common/function-view.h".
9095 (macro_callback_fn): Declare a prototype instead of a pointer.
9096 Remove "user_data" parameter.
9097 (macro_for_each, macro_for_each_in_scope): Adjust to use
9098 function_view as callback type.
9099 * psymtab.c (partial_map_expand_apply)
9100 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9101 Adjust to use function_view as callback type and to return bool.
9102 (psym_expand_symtabs_matching): Adjust to use function_view as
9103 callback types.
9104 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9105 to use function_view as callback type and to return bool.
9106 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9107 callback types.
9108 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9109 as callback types.
9110 * symfile.h: Include "common/function-view.h".
9111 (expand_symtabs_file_matcher_ftype)
9112 (expand_symtabs_symbol_matcher_ftype)
9113 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9114 return bool.
9115 (quick_symbol_functions::map_symtabs_matching_filename)
9116 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9117 function_view as callback type and return bool.
9118 (expand_symtabs_matching): Adjust to use function_view as callback
9119 type.
9120 (maintenance_expand_name_matcher)
9121 (maintenance_expand_file_matcher): Delete.
9122 (maintenance_expand_symtabs): Use lambdas.
9123 * symtab.c (iterate_over_some_symtabs): Adjust to use
9124 function_view as callback types and return bool.
9125 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9126 of a cleanup.
9127 (lookup_symtab_callback): Delete.
9128 (lookup_symtab): Use a lambda.
9129 (iterate_over_symbols): Adjust to use function_view as callback
9130 type.
9131 (struct search_symbols_data, search_symbols_file_matches)
9132 (search_symbols_name_matches): Delete.
9133 (search_symbols): Use a pair of lambdas.
9134 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9135 (symtab_expansion_callback): Delete.
9136 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9137 * symtab.h: Include "common/function-view.h".
9138 (iterate_over_some_symtabs): Adjust to use function_view as
9139 callback type and return bool.
9140 (iterate_over_symtabs): Adjust to use function_view as callback
9141 type.
9142 (symbol_found_callback_ftype): Remove 'data' parameter and return
9143 bool.
9144 (iterate_over_symbols): Adjust to use function_view as callback
9145 type.
9146
07e253aa
PA
91472017-02-23 Pedro Alves <palves@redhat.com>
9148
9149 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9150 (%.o) <unittests/%.c>: New pattern.
9151 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9152 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9153 * common/function-view.h: New file.
9154 * unittests/function-view-selftests.c: New file.
9155 * configure: Regenerate.
9156
8eaf5320
SM
91572017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9158
9159 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9160 inferior_ptid.
9161 * go32-nat.c (go32_thread_alive): Likewise.
9162
38768751
YQ
91632017-02-23 Yao Qi <yao.qi@linaro.org>
9164
9165 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9166 delete.
9167
0a8beaba
YQ
91682017-02-23 Yao Qi <yao.qi@linaro.org>
9169
9170 * varobj.c (varobj_clear_saved_item): Use delete instead of
9171 xfree.
9172 (update_dynamic_varobj_children): Likewise.
9173
58fdfd2c
JK
91742017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9175
9176 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9177
1b90b139
SM
91782017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9179
9180 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9181 m_enum_value to 0 in default constructor.
9182
2039d74e
EBM
91832017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9184
9185 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9186 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9187 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9188 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9189 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9190 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9191 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9192 IS_STORE_CONDITIONAL_INSN.
9193
7814882a
JK
91942017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9195
9196 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9197
0ae60b63
JK
91982017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9199
9200 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9201
0224619f
JK
92022017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9203
9204 * dwarf2read.c (skip_one_die, read_attribute_value)
9205 (dwarf2_const_value_attr, dump_die_shallow)
9206 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9207 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9208
0af92d60
JK
92092017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9210
9211 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9212 (dwarf_parse_macro_header): Accept DWARF version 5.
9213 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9214
216f72a1
JK
92152017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9216
9217 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9218 DW_AT_GNU_*.
9219 * common/common-exceptions.h (enum errors): Likewise.
9220 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9221 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9222 (dwarf_expr_context::execute_stack_op): Likewise.
9223 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9224 Likewise.
9225 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9226 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9227 (show_entry_values_debug, call_site_to_target_addr)
9228 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9229 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9230 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9231 (value_of_dwarf_block_entry, indirect_pieced_value)
9232 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9233 (disassemble_dwarf_expression): Likewise.
9234 * dwarf2read.c (process_die, inherit_abstract_dies)
9235 (read_call_site_scope): Likewise.
9236 * gdbtypes.h (struct func_type, struct call_site_parameter)
9237 (struct call_site): Likewise.
9238 * stack.c (read_frame_arg): Likewise.
9239 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9240
43988095
JK
92412017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9242
9243 * defs.h (read_unsigned_leb128): New declaration.
9244 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9245 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9246 (dwarf2_find_location_expression): Call also
9247 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9248 * dwarf2loc.h (dwarf2_version): New declaration.
9249 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9250 rnglists.
9251 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9252 .debug_rnglists.
9253 (struct dwop_section_names): Add loclists_dwo.
9254 (dwop_section_names): Add .debug_loclists.dwo.
9255 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9256 (struct dwarf2_per_cu_data): Add dwarf_version.
9257 (struct dwo_sections): Add loclists.
9258 (struct attr_abbrev): Add implicit_const.
9259 (read_indirect_line_string): New declaration.
9260 (read_unsigned_leb128): Delete declaration.
9261 (rcuh_kind): New definition.
9262 (read_and_check_comp_unit_head): Change parameter
9263 is_debug_types_section to section_kind.
9264 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9265 (read_comp_unit_head): Change parameter abfd to section, add parameter
9266 section_kind. Handle DWARF-5.
9267 (error_check_comp_unit_head): Accept also DWARF version 5.
9268 (read_and_check_comp_unit_head): Change parameter
9269 is_debug_types_section to section_kind.
9270 (read_and_check_type_unit_head): Delete function.
9271 (read_abbrev_offset): Handle DWARF-5.
9272 (create_debug_type_hash_table): Add parameter section_kind. Process
9273 only DW_UT_type. Use signature and type_offset_in_tu from struct
9274 comp_unit_head.
9275 (create_debug_types_hash_table): Update create_debug_type_hash_table
9276 caller.
9277 (create_all_type_units): Call create_debug_type_hash_table.
9278 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9279 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9280 caller.
9281 (skip_one_die): Handle DW_FORM_implicit_const.
9282 (dwarf2_rnglists_process): New function.
9283 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9284 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9285 (read_attribute_value): Handle DW_FORM_implicit_const,
9286 DW_FORM_line_strp.
9287 (read_attribute): Handle DW_FORM_implicit_const.
9288 (read_indirect_string_at_offset_from): New function from
9289 read_indirect_string_at_offset.
9290 (read_indirect_string_at_offset): Call
9291 read_indirect_string_at_offset_from.
9292 (read_indirect_line_string_at_offset): New function.
9293 (read_indirect_string): New function comment.
9294 (read_indirect_line_string): New function.
9295 (read_unsigned_leb128): Make it global.
9296 (dwarf2_string_attr): Handle DWARF-5.
9297 (add_include_dir_stub, read_formatted_entries): New functions.
9298 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9299 Handle DWARF-5.
9300 (per_cu_header_read_in): Update read_comp_unit_head caller.
9301 (dwarf2_version): New function.
9302 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9303 rnglists.
9304 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9305 fields.
9306
22d2f3ab
JK
93072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9308
9309 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9310
5f46c5a5
JK
93112017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9312
9313 * dwarf2read.c (dwarf2_ranges_process): New function from
9314 dwarf2_ranges_read.
9315 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9316 dwarf2_ranges_process.
9317
78d4d2c5
JK
93182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9319
9320 * dwarf2read.c (create_debug_type_hash_table): New function from
9321 create_debug_types_hash_table.
9322 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9323 (create_all_type_units, open_and_init_dwo_file): Update
9324 create_debug_types_hash_table callers.
9325
1b076f25
SDJ
93262017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9327
9328 PR gdb/16188
9329 * fork-child.c (trace_start_error): Fix thinko. va_end should
9330 refer to 'ap', not 'args'.
9331
0db8980c
SDJ
93322017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9333 Pedro Alves <palves@redhat.com>
9334
9335 PR gdb/16188
9336 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9337 calls succeeded.
9338 * fork-child.c (trace_start_error): New function.
9339 (trace_start_error_with_name): Likewise.
9340 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9341 * inf-ptrace.c (inf_ptrace_me): Likewise.
9342 * inferior.h (trace_start_error): New prototype.
9343 (trace_start_error_with_name): Likewise.
9344
99e8a4f9
SDJ
93452017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9346
9347 PR gdb/21164
9348 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9349 NULL before using it.
9350 * symmisc.c (maintenance_print_symbols): Likewise.
9351 (maintenance_print_msymbols): Likewise.
9352
4e746bb6
TW
93532017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9354
9355 * NEWS: Add record Python bindings entry.
9356
93572017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9358
9359 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9360 py-record-full.o.
9361 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9362 * python/py-record-btrace.c, python/py-record-btrace.h,
9363 python/py-record-full.c, python/py-record-full.h: New file.
9364 * python/py-record.c: Add include for py-record-btrace.h and
9365 py-record-full.h.
9366 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9367 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9368 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9369 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9370 New definition.
9371 (gdbpy_initialize_btrace): New export.
9372 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9373
93742017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9375
9376 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9377 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9378 * python/py-record.c: New file.
9379 * python/python-internal.h (gdbpy_start_recording,
9380 gdbpy_current_recording, gdpy_stop_recording,
9381 gdbpy_initialize_record): New export.
9382 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9383 (python_GdbMethods): Add gdbpy_start_recording,
9384 gdbpy_current_recording and gdbpy_stop_recording.
9385
93862017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9387
9388 * record-btrace.c (record_btrace_record_method): New function.
9389 (init_record_btrace_ops): Initialize to_record_method.
9390 * record-full.c (record_full_record_method): New function.
9391 (init_record_full_ops, init_record_full_core_ops): Add
9392 record_full_record_method.
9393 * record.h (enum record_method): New enum.
9394 * target-debug.h (target_debug_print_enum_record_method: New define.
9395 * target-delegates.c: Regenerate.
9396 * target.c (target_record_method): New function.
9397 * target.h: Include record.h.
9398 (struct target_ops) <to_record_method>: New field.
9399 (target_record_method): New export.
9400
94012017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9402
9403 * record.h (record_start, record_stop): New export.
9404 * record.c (record_start, record_stop): New function.
9405
94062017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9407
9408 * btrace.c (btrace_fetch): Copy function call segments pointer
9409 into a vector.
9410 (btrace_clear): Clear the vector.
9411 (btrace_find_insn_by_number): Use binary search to find the correct
9412 function call segment.
9413 * btrace.h (brace_fun_p): New typedef.
9414 (struct btrace_thread_info) <functions>: New field.
9415
94162017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9417
9418 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9419 * btrace.c (btrace_decode_error): ... here. New function.
9420 * btrace.h (btrace_decode_error): New export.
9421
94222017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9423
9424 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9425 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9426 btrace_find_insn_by_number): Remove special case for gaps.
9427 * btrace.h (btrace_insn_get_error): New export.
9428 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9429 * record-btrace.c (btrace_insn_history): Print number for gaps.
9430 (record_btrace_info, record_btrace_goto): Handle gaps.
9431
3f77c769
TT
94322017-02-14 Tom Tromey <tom@tromey.com>
9433
9434 PR python/13598:
9435 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9436 event.
9437 * python/py-evts.c (gdbpy_initialize_py_events): Add
9438 before_prompt registry.
9439 * python/py-events.h (events_object) <before_prompt>: New field.
9440
4c2c7ac6
MM
94412017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9442
9443 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9444
5cf30ebf
LM
94452017-02-13 Luis Machado <lgustavo@codesourcery.com>
9446
9447 * symfile (_initialize_symfile): Add usage text to the load command's
9448 help text.
9449
26a06916
SM
94502017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9451
9452 * utils.c (defaulted_query): Don't query on secondary UIs.
9453
0b145e37
TT
94542017-02-10 Tom Tromey <tom@tromey.com>
9455
9456 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9457
2d8365c4
TT
94582017-02-10 Tom Tromey <tom@tromey.com>
9459
9460 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9461 "cleanup" local.
9462 * python/py-type.c (typy_legacy_template_argument): Remove
9463 unnecessary "cleanup" local.
9464
2bb8f231
TT
94652017-02-10 Tom Tromey <tom@tromey.com>
9466
9467 * python/python.c (do_start_initialization): New function, from
9468 _initialize_python.
9469 (_initialize_python): Call do_start_initialization.
9470 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9471 goto.
9472
1bdfaf42
TT
94732017-02-10 Tom Tromey <tom@tromey.com>
9474
9475 * python/py-prettyprint.c (pretty_print_one_value): Use
9476 gdbpy_ref.
9477
88b6faea
TT
94782017-02-10 Tom Tromey <tom@tromey.com>
9479
9480 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
9481 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
9482 gdbpy_ref.
9483 * python/py-type.c (field_new): Use gdbpy_ref.
9484 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
9485 gdbpy_ref.
9486 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
9487 (py_free_pspace): Likewise.
9488 (pspace_to_pspace_object): Likewise.
9489 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
9490 (py_free_objfile): Likewise.
9491 (objfile_to_objfile_object): Likewise.
9492 * python/py-inferior.c (delete_thread_object): Use
9493 gdbpy_ref.
9494 (infpy_read_memory): Likewise.
9495 (py_free_inferior): Likewise.
9496 * python/py-evtregistry.c (create_eventregistry_object): Use
9497 gdbpy_ref.
9498 * python/py-event.c (create_event_object): Use gdbpy_ref.
9499
7780f186
TT
95002017-02-10 Tom Tromey <tom@tromey.com>
9501
9502 * python/py-ref.h (gdbpy_ref_policy): Now a template.
9503 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
9504 used.
9505 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
9506 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
9507 python/py-exitedevent.c, python/py-finishbreakpoint.c,
9508 python/py-framefilter.c, python/py-function.c,
9509 python/py-inferior.c, python/py-infevents.c,
9510 python/py-linetable.c, python/py-newobjfileevent.c,
9511 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
9512 python/py-signalevent.c, python/py-stopevent.c,
9513 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
9514 python/py-unwind.c, python/py-utils.c, python/py-value.c,
9515 python/py-varobj.c, python/py-xmethods.c, python/python.c,
9516 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
9517
d4b0bb18
TT
95182017-02-10 Tom Tromey <tom@tromey.com>
9519
9520 * ui-out.h (ui_out_emit_type): New class.
9521 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
9522 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
9523 and ui_out_emit_tuple.
9524 (enumerate_locals): Likewise.
9525 (py_mi_print_variables, py_print_locals, py_print_args): Use
9526 ui_out_emit_list.
9527 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
9528 ui_out_emit_list.
9529 * common/gdb_optional.h: New file.
9530
f67f945c
MG
95312017-02-10 Martin Galvan <martingalvan@sourceware.org>
9532
9533 * MAINTAINERS (Write After Approval): Update my e-mail address.
9534
18da0c51
MG
95352017-02-10 Martin Galvan <martingalvan@sourceware.org>
9536
9537 PR gdb/21122
9538 * breakpoint.c (_initialize_breakpoint): Update the help description
9539 of the 'commands' command to indicate that it takes a list argument.
9540
62c14536
SM
95412017-02-09 Simon Marchi <simon.marchi@ericsson.com>
9542
9543 * interps.c (current_interp_set_logging): Remove "return".
9544
ff6fa247
GB
95452017-02-09 Gary Benson <gbenson@redhat.com>
9546
9547 * symtab.c (add_symtab_completions): Prevent NULL pointer
9548 dereference.
9549
a474bd8e
PA
95502017-02-08 Pedro Alves <palves@redhat.com>
9551
9552 * interps.c (interp::interp): Remove reference to quiet_p.
9553 (interp_set): Make static. Remove dead "Switching to" output
9554 code.
9555 (interp_quiet_p, interp_set_quiet): Delete.
9556 (interpreter_exec_cmd): Don't set the interpreter quiet.
9557 * interps.h (interp_quiet_p): Make static.
9558 (class interp) <quiet_p>: Remove field
9559
3d7b173c
JG
95602017-02-08 Jerome Guitton <guitton@adacore.com>
9561
604c4576
JG
9562 * cli/cli-decode.c (find_command_name_length): Make it extern.
9563 * cli/cli-decode.h (find_command_name_length): Declare.
9564 * cli/cli-script.c (command_name_equals, line_first_arg):
9565 New functions.
9566 (process_next_line): Use cli-decode to parse command names.
9567 (build_command_line): Make args a constant pointer.
9568
95692017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 9570
3d7b173c
JG
9571 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
9572 Remove case-insensitive search.
9573
1291063d
JM
95742017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
9575
9576 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
9577 at the end of the line. Avoids an ARI warning.
9578
20b477a7
LM
95792017-02-06 Luis Machado <lgustavo@codesourcery.com>
9580
9581 * NEWS: Mention support for record/replay of Intel 64 rdrand and
9582 rdseed instructions.
9583 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
9584
3f7b46f2
IR
95852017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
9586
9587 PR tdep/20936
9588 Provide and use sparc32 and sparc64 target description XML files.
9589 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
9590 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
9591 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
9592 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
9593 * features/sparc/sparc32-solaris.xml: New file.
9594 * features/sparc/sparc64-solaris.xml: New file.
9595 * features/sparc/sparc32-solaris.c: Generated.
9596 * features/sparc/sparc64-solaris.c: Generated.
9597 * sparc-tdep.h: Account for differences in target descriptions.
9598 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
9599 (sparc32_register_type): Use target provided registers.
9600 (validate_tdesc_registers): New function.
9601 (sparc32_gdbarch_init): Use tdesc_has_registers.
9602 Set pseudoregister functions.
9603 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
9604 (sparc64_register_type): Use target provided registers.
9605 (sparc64_init_abi): Set pseudoregister functions.
9606
f0fd41c1
TT
96072017-02-03 Tom Tromey <tom@tromey.com>
9608
9609 PR rust/21097:
9610 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
9611 with a single member.
9612
d6f9b0fb
PA
96132017-02-03 Pedro Alves <palves@redhat.com>
9614
9615 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
9616 (cli_interp_base::~cli_interp_base): New.
9617 (cli_interp): New struct.
9618 (as_cli_interp): Cast the interp itself to cli_interp.
9619 (cli_interpreter_pre_command_loop): Rename to ...
9620 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
9621 parameter.
9622 (cli_interpreter_init): Rename to ...
9623 (cli_interp::init): ... this. Remove 'self' parameter. Use
9624 boolean. Make extern.
9625 (cli_interpreter_resume): Rename to ...
9626 (cli_interp::resume): ... this. Remove 'data' parameter. Make
9627 extern.
9628 (cli_interpreter_suspend): Rename to ...
9629 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
9630 extern.
9631 (cli_interpreter_exec): Rename to ...
9632 (cli_interp::exec): ... this. Remove 'data' parameter. Make
9633 extern.
9634 (cli_interpreter_supports_command_editing): Rename to ...
9635 (cli_interp_base::supports_command_editing): ... this. Remove
9636 'interp' parameter. Make extern.
9637 (cli_ui_out): Rename to ...
9638 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
9639 Make extern.
9640 (cli_set_logging): Rename to ...
9641 (cli_interp_base::set_logging): ... this. Remove 'interp'
9642 parameter. Make extern.
9643 (cli_interp_procs): Delete.
9644 (cli_interp_factory): Adjust to use "new".
9645 * cli/cli-interp.h: Include "interps.h".
9646 (struct cli_interp_base): New struct.
9647 * interps.c (struct interp): Delete. Fields moved to interps.h.
9648 (interp_new): Delete.
9649 (interp::interp, interp::~interp): New.
9650 (interp_set): Use bool, and return void. Assume the interpreter
9651 has suspend, init and resume methods, and that the all return
9652 void.
9653 (set_top_level_interpreter): interp_set returns void.
9654 (interp_ui_out): Adapt.
9655 (current_interp_set_logging): Adapt.
9656 (interp_data): Delete.
9657 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
9658 (interp_exec): Adapt.
9659 (top_level_interpreter_data): Delete.
9660 * interps.h (interp_init_ftype, interp_resume_ftype)
9661 (interp_suspend_ftype, interp_exec_ftype)
9662 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
9663 (class interp): New.
9664 (interp_new): Delete.
9665 (interp_set): Now returns void. Use bool.
9666 (interp_data, top_level_interpreter_data): Delete.
9667 * mi/mi-common.h: Include interps.h.
9668 (class mi_interp): Inherit from interp. Define a ctor. Declare
9669 init, resume, suspect, exec, interp_ui_out, set_logging and
9670 pre_command_loop methods.
9671 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
9672 (mi_interpreter_init): Rename to ...
9673 (mi_interp::init): ... this. Remove the 'interp' parameter, use
9674 bool, return void and make extern. Adjust.
9675 (mi_interpreter_resume): ... Rename to ...
9676 (mi_interp::resume): ... this. Remove the 'data' parameter,
9677 return void and make extern. Adjust.
9678 (mi_interpreter_suspend): ... Rename to ...
9679 (mi_interp::suspend): ... this. Remove the 'data' parameter,
9680 return void and make extern. Adjust.
9681 (mi_interpreter_exec): ... Rename to ...
9682 (mi_interp::exec): ... this. Remove the 'data' parameter and make
9683 extern. Adjust.
9684 (mi_interpreter_pre_command_loop): ... Rename to ...
9685 (mi_interp::pre_command_loop): ... this. Remove the 'self'
9686 parameter and make extern.
9687 (mi_on_normal_stop_1): Adjust.
9688 (mi_ui_out): Rename to ...
9689 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
9690 parameter and make extern. Adjust.
9691 (mi_set_logging): Rename to ...
9692 (mi_interp::set_logging): ... this. Remove the 'interp'
9693 parameter and make extern. Adjust.
9694 (mi_interp_procs): Delete.
9695 (mi_interp_factory): Adjust to use 'new'.
9696 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
9697 (mi_print_exception, mi_execute_command, mi_load_progress):
9698 Adjust.
9699 * tui/tui-interp.c (tui_interp): New class.
9700 (as_tui_interp): Return a tui_interp pointer.
9701 (tui_on_normal_stop, tui_on_signal_received)
9702 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
9703 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
9704 to use interp::interp_ui_out.
9705 (tui_init): Rename to ...
9706 (tui_interp::init): ... this. Remove the 'self' parameter, use
9707 bool, return void and make extern. Adjust.
9708 (tui_resume): Rename to ...
9709 (tui_interp::resume): ... this. Remove the 'data' parameter,
9710 return void and make extern. Adjust.
9711 (tui_suspend): Rename to ...
9712 (tui_interp::suspend): ... this. Remove the 'data' parameter,
9713 return void and make extern. Adjust.
9714 (tui_ui_out): Rename to ...
9715 (tui_interp::interp_ui_out): ... this. Remove the 'self'
9716 parameter, and make extern. Adjust.
9717 (tui_exec): Rename to ...
9718 (tui_interp::exec): ... this. Remove the 'data' parameter and
9719 make extern.
9720 (tui_interp_procs): Delete.
9721 (tui_interp_factory): Use "new".
9722
65c40c95
TT
97232017-02-02 Tom Tromey <tom@tromey.com>
9724
9725 * rust-exp.y (ends_raw_string, space_then_number)
9726 (rust_identifier_start_p): Return bool.
9727 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
9728 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
9729 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
9730 (rust_chartype_p): Return bool.
9731 (val_print_struct, rust_print_struct_def, rust_print_type):
9732 Update.
9733 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
9734 Return bool.
9735
b50f188d
TT
97362017-02-02 Tom Tromey <tom@tromey.com>
9737
9738 * rust-lang.c: Reindent.
9739
03c85b11
TT
97402017-02-02 Tom Tromey <tom@tromey.com>
9741
9742 * rust-lang.h (rust_crate_for_block): Update.
9743 * rust-lang.c (rust_crate_for_block): Return std::string.
9744 (rust_get_disr_info): Use std:;string, not
9745 gdb::unique_xmalloc_ptr.
9746 * rust-exp.y (crate_name): Update.
9747
9b6da501
PA
97482017-02-02 Pedro Alves <palves@redhat.com>
9749
9750 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
9751 field out of gdb_disassembler_test and make it static.
9752
ec4cb20b
PA
97532017-02-02 Pedro Alves <palves@redhat.com>
9754
9755 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
9756 mi1_interp and mi_interp fields.
9757
5be5dbf0
PA
97582017-02-02 Pedro Alves <palves@redhat.com>
9759
616268b6
PA
9760 * cli/cli-interp.c (struct saved_output_files, saved_output):
9761 Moved from cli/cli-logging.c.
9762 (cli_set_logging): New function.
9763 (cli_interp_procs): Install cli_set_logging.
9764 * cli/cli-interp.h (make_logging_output, cli_set_logging):
9765 Declare.
9766 * cli/cli-logging.c (struct saved_output_files, saved_output):
9767 Moved to cli/cli-interp.c.
9768 (pop_output_files): Don't save outputs here.
9769 (make_logging_output): New function.
9770 (handle_redirections): Don't build tee nor save previous outputs
9771 here.
9772 * interps.c (current_interp_set_logging): Change prototype.
9773 Assume there's always a set_logging_proc method installed.
9774 * interps.h (interp_set_logging_ftype): Change prototype.
9775 (current_interp_set_logging): Change prototype and adjust comment.
9776 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
9777 use make_logging_output.
9778 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
97792017-02-02 Pedro Alves <palves@redhat.com>
9780
5be5dbf0
PA
9781 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
9782 from ...
9783 (set_logging_overwrite): ... here.
9784 (logging_no_redirect_file): Delete.
9785 (set_logging_redirect): Don't handle redirection on the fly.
9786 Instead warn that "logging off" / "logging on" is necessary.
9787 (pop_output_files): Delete references to logging_no_redirect_file.
9788 (show_logging_command): Always speak in terms of what will happen
9789 once logging is reenabled.
9790
c99cc448
PA
97912017-02-02 Pedro Alves <palves@redhat.com>
9792
9793 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
9794
8b172ce7
PA
97952017-02-02 Pedro Alves <palves@redhat.com>
9796
9797 * disasm.c (gdb_pretty_print_insn): Rename to ...
9798 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
9799 Remove gdbarch parameter. Adapt to clear the object's buffers
9800 instead of allocating new buffers, and to print using the object's
9801 gdb_disassembler instead of calling gdb_print_insn.
9802 (dump_insns): Use gdb_pretty_print_disassembler.
9803 * disasm.h (gdb_pretty_print_insn): Delete declaration.
9804 (gdb_pretty_print_disassembler): New class.
9805 * record-btrace.c (btrace_insn_history): Use
9806 gdb_pretty_print_disassembler.
9807
d7e74731
PA
98082017-02-02 Pedro Alves <palves@redhat.com>
9809
9810 * ada-lang.c (type_as_string): Use string_file.
9811 * ada-valprint.c (ada_print_floating): Use string_file.
9812 * ada-varobj.c (ada_varobj_scalar_image)
9813 (ada_varobj_get_value_image): Use string_file.
9814 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
9815 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
9816 * breakpoint.c (update_inserted_breakpoint_locations)
9817 (insert_breakpoint_locations, reattach_breakpoints)
9818 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
9819 (print_it_watchpoint): Use string_file.
9820 (save_breakpoints): Use stdio_file.
9821 * c-exp.y (oper): Use string_file.
9822 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
9823 tee_file.
9824 (pop_output_files): Use delete.
9825 (handle_redirections): Use stdio_file and tee_file.
9826 * cli/cli-setshow.c (do_show_command): Use string_file.
9827 * compile/compile-c-support.c (c_compute_program): Use
9828 string_file.
9829 * compile/compile-c-symbols.c (generate_vla_size): Take a
9830 'string_file &' instead of a 'ui_file *'.
9831 (generate_c_for_for_one_variable): Take a 'string_file &' instead
9832 of a 'ui_file *'. Use string_file.
9833 (generate_c_for_variable_locations): Take a 'string_file &'
9834 instead of a 'ui_file *'.
9835 * compile/compile-internal.h (generate_c_for_for_one_variable):
9836 Take a 'string_file &' instead of a 'ui_file *'.
9837 * compile/compile-loc2c.c (push, pushf, unary, binary)
9838 (print_label, pushf_register_address, pushf_register)
9839 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
9840 'ui_file *'. Adjust.
9841 * compile/compile.c (compile_to_object): Use string_file.
9842 * compile/compile.h (compile_dwarf_expr_to_c)
9843 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
9844 'ui_file *'.
9845 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
9846 (replace_typedefs_qualified_name): Use string_file and
9847 obstack_copy0.
9848 * disasm.c (gdb_pretty_print_insn): Use string_file.
9849 (gdb_disassembly): Adjust reference the null_stream global.
9850 (do_ui_file_delete): Delete.
9851 (gdb_insn_length): Use null_stream.
9852 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
9853 * dwarf2loc.c (dwarf2_compile_property_to_c)
9854 (locexpr_generate_c_location, loclist_generate_c_location): Take a
9855 'string_file &' instead of a 'ui_file *'.
9856 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
9857 * dwarf2read.c (do_ui_file_peek_last): Delete.
9858 (dwarf2_compute_name): Use string_file.
9859 * event-top.c (gdb_setup_readline): Use stdio_file.
9860 * gdbarch.sh (verify_gdbarch): Use string_file.
9861 * gdbtypes.c (safe_parse_type): Use null_stream.
9862 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
9863 string_file.
9864 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
9865 'string_file *' instead of a 'ui_file *'.
9866 (gdbscm_arch_disassemble): Use string_file.
9867 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
9868 * guile/scm-ports.c (class ioscm_file_port): Now a class that
9869 inherits from ui_file.
9870 (ioscm_file_port_delete, ioscm_file_port_rewind)
9871 (ioscm_file_port_put): Delete.
9872 (ioscm_file_port_write): Rename to ...
9873 (ioscm_file_port::write): ... this. Remove file_port_magic
9874 checks.
9875 (ioscm_file_port_new): Delete.
9876 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
9877 ui_file_up.
9878 * guile/scm-type.c (tyscm_type_name): Use string_file.
9879 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
9880 Use string_file.
9881 * infcmd.c (print_return_value_1): Use string_file.
9882 * infrun.c (print_target_wait_results): Use string_file.
9883 * language.c (add_language): Use string_file.
9884 * location.c (explicit_to_string_internal): Use string_file.
9885 * main.c (captured_main_1): Use null_file.
9886 * maint.c (maintenance_print_architecture): Use stdio_file.
9887 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
9888 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
9889 event_channel>: Change type to mi_console_file pointer.
9890 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
9891 (mi_console_file_delete): Delete.
9892 (struct mi_console_file): Delete.
9893 (mi_console_file_magic): Delete.
9894 (mi_console_file_new): Delete.
9895 (mi_console_file::mi_console_file): New.
9896 (mi_console_file_delete): Delete.
9897 (mi_console_file_fputs): Delete.
9898 (mi_console_file::write): New.
9899 (mi_console_raw_packet): Delete.
9900 (mi_console_file::flush): New.
9901 (mi_console_file_flush): Delete.
9902 (mi_console_set_raw): Rename to ...
9903 (mi_console_file::set_raw): ... this.
9904 * mi/mi-console.h (class mi_console_file): New class.
9905 (mi_console_file_new, mi_console_set_raw): Delete.
9906 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
9907 (mi_set_logging): Use delete and tee_file. Adjust.
9908 * mi/mi-main.c (output_register): Use string_file.
9909 (mi_cmd_data_evaluate_expression): Use string_file.
9910 (mi_cmd_data_read_memory): Use string_file.
9911 (mi_cmd_execute, print_variable_or_computed): Use string_file.
9912 * mi/mi-out.c (mi_ui_out::main_stream): New.
9913 (mi_ui_out::rewind): Use main_stream and
9914 string_file.
9915 (mi_ui_out::put): Use main_stream and string_file.
9916 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
9917 Allocate a 'string_file' instead.
9918 (mi_out_new): Don't allocate a mem_fileopen stream here.
9919 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
9920 (mi_ui_out::main_stream): Declare method.
9921 * printcmd.c (eval_command): Use string_file.
9922 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
9923 * python/py-arch.c (archpy_disassemble): Use string_file.
9924 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
9925 * python/py-frame.c (frapy_str): Use string_file.
9926 * python/py-framefilter.c (py_print_type, py_print_single_arg):
9927 Use string_file.
9928 * python/py-type.c (typy_str): Use string_file.
9929 * python/py-unwind.c (unwind_infopy_str): Use string_file.
9930 * python/py-value.c (valpy_str): Use string_file.
9931 * record-btrace.c (btrace_insn_history): Use string_file.
9932 * regcache.c (regcache_print): Use stdio_file.
9933 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
9934 * remote.c (escape_buffer): Use string_file.
9935 * rust-lang.c (rust_get_disr_info): Use string_file.
9936 * serial.c (serial_open_ops_1): Use stdio_file.
9937 (do_serial_close): Use delete.
9938 * stack.c (print_frame_arg): Use string_file.
9939 (print_frame_args): Remove local mem_fileopen stream, not used.
9940 (print_frame): Use string_file.
9941 * symmisc.c (maintenance_print_symbols): Use stdio_file.
9942 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
9943 Take a 'string_file *' instead of a 'ui_file *'.
9944 * top.c (new_ui): Use stdio_file and stderr_file.
9945 (free_ui): Use delete.
9946 (execute_command_to_string): Use string_file.
9947 (quit_confirm): Use string_file.
9948 * tracepoint.c (collection_list::append_exp): Use string_file.
9949 * tui/tui-disasm.c (tui_disassemble): Use string_file.
9950 * tui/tui-file.c: Don't include "ui-file.h".
9951 (enum streamtype, struct tui_stream): Delete.
9952 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
9953 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
9954 (tui_file::tui_file): New method.
9955 (tui_file_fputs): Delete.
9956 (tui_file_get_strbuf): Delete.
9957 (tui_file::puts): New method.
9958 (tui_file_adjust_strbuf): Delete.
9959 (tui_file_flush): Delete.
9960 (tui_file::flush): New method.
9961 * tui/tui-file.h: Tweak intro comment.
9962 Include ui-file.h.
9963 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
9964 (tui_file_adjust_strbuf): Delete declarations.
9965 (class tui_file): New class.
9966 * tui/tui-io.c (tui_initialize_io): Use tui_file.
9967 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
9968 (tui_register_format): Use string_stream.
9969 * tui/tui-stack.c (tui_make_status_line): Use string_file.
9970 (tui_get_function_from_frame): Use string_file.
9971 * typeprint.c (type_to_string): Use string_file.
9972 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
9973 (null_stream): New global.
9974 (ui_file_delete): Delete.
9975 (ui_file::ui_file): New.
9976 (null_file_isatty): Delete.
9977 (ui_file::~ui_file): New.
9978 (null_file_rewind): Delete.
9979 (ui_file::printf): New.
9980 (null_file_put): Delete.
9981 (null_file_flush): Delete.
9982 (ui_file::putstr): New.
9983 (null_file_write): Delete.
9984 (ui_file::putstrn): New.
9985 (null_file_read): Delete.
9986 (ui_file::putc): New.
9987 (null_file_fputs): Delete.
9988 (null_file_write_async_safe): Delete.
9989 (ui_file::vprintf): New.
9990 (null_file_delete): Delete.
9991 (null_file::write): New.
9992 (null_file_fseek): Delete.
9993 (null_file::puts): New.
9994 (ui_file_data): Delete.
9995 (null_file::write_async_safe): New.
9996 (gdb_flush, ui_file_isatty): Adjust.
9997 (ui_file_put, ui_file_rewind): Delete.
9998 (ui_file_write): Adjust.
9999 (ui_file_write_for_put): Delete.
10000 (ui_file_write_async_safe, ui_file_read): Adjust.
10001 (ui_file_fseek): Delete.
10002 (fputs_unfiltered): Adjust.
10003 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10004 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10005 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10006 (set_ui_file_data): Delete.
10007 (string_file::~string_file, string_file::write)
10008 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10009 (do_ui_file_as_string, ui_file_as_string): Delete.
10010 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10011 (struct mem_file): Delete.
10012 (mem_file_new): Delete.
10013 (stdio_file::stdio_file): New.
10014 (mem_file_delete): Delete.
10015 (stdio_file::stdio_file): New.
10016 (mem_fileopen): Delete.
10017 (stdio_file::~stdio_file): New.
10018 (mem_file_rewind): Delete.
10019 (stdio_file::set_stream): New.
10020 (mem_file_put): Delete.
10021 (stdio_file::open): New.
10022 (mem_file_write): Delete.
10023 (stdio_file_magic, struct stdio_file): Delete.
10024 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10025 (stdio_file::flush): New.
10026 (stdio_file_read): Rename to ...
10027 (stdio_file::read): ... this. Adjust.
10028 (stdio_file_write): Rename to ...
10029 (stdio_file::write): ... this. Adjust.
10030 (stdio_file_write_async_safe): Rename to ...
10031 (stdio_file::write_async_safe) ... this. Adjust.
10032 (stdio_file_fputs): Rename to ...
10033 (stdio_file::puts) ... this. Adjust.
10034 (stdio_file_isatty): Delete.
10035 (stdio_file_fseek): Delete.
10036 (stdio_file::isatty): New.
10037 (stderr_file_write): Rename to ...
10038 (stderr_file::write) ... this. Adjust.
10039 (stderr_file_fputs): Rename to ...
10040 (stderr_file::puts) ... this. Adjust.
10041 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10042 (stderr_file::stderr_file): New.
10043 (tee_file_magic): Delete.
10044 (struct tee_file): Delete.
10045 (tee_file::tee_file): New.
10046 (tee_file_new): Delete.
10047 (tee_file::~tee_file): New.
10048 (tee_file_delete): Delete.
10049 (tee_file_flush): Rename to ...
10050 (tee_file::flush): ... this. Adjust.
10051 (tee_file_write): Rename to ...
10052 (tee_file::write): ... this. Adjust.
10053 (tee_file::write_async_safe): New.
10054 (tee_file_fputs): Rename to ...
10055 (tee_file::puts): ... this. Adjust.
10056 (tee_file_isatty): Rename to ...
10057 (tee_file::isatty): ... this. Adjust.
10058 * ui-file.h (struct obstack, struct ui_file): Don't
10059 forward-declare.
10060 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10061 (ui_file_write_ftype)
10062 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10063 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10064 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10065 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10066 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10067 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10068 (set_ui_file_fseek): Delete.
10069 (ui_file_data, ui_file_delete, ui_file_rewind)
10070 (struct ui_file): New.
10071 (ui_file_up): New.
10072 (class null_file): New.
10073 (null_stream): Declare.
10074 (ui_file_write_for_put, ui_file_put): Delete.
10075 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10076 Delete.
10077 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10078 (gdb_fopen, tee_file_new): Delete.
10079 (struct string_file): New.
10080 (struct stdio_file): New.
10081 (stdio_file_up): New.
10082 (struct stderr_file): New.
10083 (class tee_file): New.
10084 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10085 of a 'ui_file *'. Adjust.
10086 * ui-out.h (class ui_out) <field_stream>: Likewise.
10087 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10088 (null_stream): Delete.
10089 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10090 Adjust.
10091 * utils.h (struct ui_file): Delete forward declaration..
10092 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10093 (error_stream): Take a 'string_file &' instead of a
10094 'ui_file *'.
10095 * varobj.c (varobj_value_get_print_value): Use string_file.
10096 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10097 * gdbarch.c: Regenerate.
10098
187808b0
PA
100992017-02-02 Pedro Alves <palves@redhat.com>
10100
10101 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10102 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10103 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10104 Adjust to call gdb_print_insn instead of
10105 gdb_disassembler::print_insn.
10106 (dump_insns, do_mixed_source_and_assembly_deprecated)
10107 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10108 'gdbarch' parameter. Remove gdb_disassembler parameter.
10109 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10110 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10111 declaration.
10112 (gdb_pretty_print_insn): Re-add declaration.
10113 * record-btrace.c (btrace_insn_history): Don't allocate a
10114 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10115
7a8eb317
SM
101162017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10117
10118 * disasm.h (gdb_disassembly): Remove file_string parameter.
10119 * disasm.c (gdb_disassembly): Likewise.
10120 * cli/cli-cmds.c (print_disassembly): Adapt.
10121 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10122 * stack.c (do_gdb_disassembly): Likewise.
10123
7346ef59
AA
101242017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10125
10126 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10127 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10128 targets. And if the implicit value is longer than needed, extract
10129 the first bytes instead of the "least significant" ones.
10130
cd4007e4
MM
101312017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10132
10133 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10134 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10135 (btrace_fetch): Assert can_access_registers_ptid.
10136 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10137 validate_registers_access.
10138
cf77c34e
MM
101392017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10140
10141 * gdbthread.h (can_access_registers_ptid): New.
10142 * thread.c (can_access_registers_ptid): New.
10143
be85ce7d
PA
101442017-02-01 Pedro Alves <palves@redhat.com>
10145
10146 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10147
29b0b251
PA
101482017-01-31 Pedro Alves <palves@redhat.com>
10149
10150 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10151 Fix typos.
10152
289b5b24
PA
101532017-01-31 Pedro Alves <palves@redhat.com>
10154
10155 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10156 not used.
10157
b47413b4
PA
101582017-01-31 Pedro Alves <palves@redhat.com>
10159
10160 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10161
60adb36c
PA
101622017-01-31 Pedro Alves <palves@redhat.com>
10163
10164 * common/scoped_restore.h
10165 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10166 change the value's parameter type to T2.
10167 (make_scoped_restore): Likewise.
10168
2735833d
WT
101692017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10170 Richard Henderson <rth@redhat.com>
10171
10172 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10173 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10174 GS_BASE for older kernels.
10175 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10176 GS_BASE for older kernels.
10177 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10178 and GS_BASE to the offset table.
10179 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10180 system register group.
10181 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10182 for older kernels.
10183 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10184 amd64 ABI.
10185 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10186 AMD64_GSBASE_REGNUM.
10187 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10188 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10189 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10190 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10191 i386/64bit-segments.xml in those rules.
10192 * features/i386/64bit-segments.xml: New file.
10193 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10194 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10195 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10196 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10197 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10198 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10199 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10200 * features/i386/amd64-avx-linux.c: Regenerated.
10201 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10202 * features/i386/amd64-avx-mpx.c: Regenerated.
10203 * features/i386/amd64-avx512-linux.c: Regenerated.
10204 * features/i386/amd64-linux.c: Regenerated.
10205 * features/i386/amd64-mpx-linux.c: Regenerated.
10206 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10207 * features/i386/i386-avx-mpx.c: Regenerated.
10208 * features/i386/x32-avx-linux.c: Regenerated.
10209 * features/i386/x32-avx512-linux.c: Regenerated.
10210 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10211 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10212 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10213 * regformats/i386/amd64-linux.dat: Regenerated.
10214 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10215 * regformats/i386/x32-avx-linux.dat: Regenerated.
10216 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10217 * regformats/i386/x32-linux.dat: Regenerated.
10218
8884e97e
WT
102192017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10220
10221 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10222 Set to AMD64_NUM_REGS.
10223
7005d26a
WT
102242017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10225
10226 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10227 that checks validity of a register number.
10228
4bd2e1b2
KC
102292017-01-27 Kees Cook <keescook@google.com>
10230
10231 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10232 fetch_fpregs if target has fpa registers.
10233 (arm_linux_store_inferior_registers): Call store_fpregs if target
10234 has fpa registers.
10235
7cf1de6c
AA
102362017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10237
10238 * cris-tdep.c (cris_gdbarch_init): Remove check for
10239 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10240
874a1c8c
AT
102412017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10242
10243 * corelow.c (get_core_register_section): Check for regset
10244 existence before checking for REGSET_VARIABLE_SIZE.
10245
d8b49cf0
YQ
102462017-01-26 Yao Qi <yao.qi@linaro.org>
10247 Pedro Alves <palves@redhat.com>
10248
10249 PR gdb/20939
10250 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10251 call memory_error, save memaddr instead.
10252 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10253 negative, cal memory_error.
10254 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10255
658ca58c
YQ
102562017-01-26 Yao Qi <yao.qi@linaro.org>
10257
10258 * disasm-selftests.c (memory_error_test): New function.
10259 (_initialize_disasm_selftests): Register memory_error_test.
10260
79843d45
YQ
102612017-01-26 Yao Qi <yao.qi@linaro.org>
10262
10263 * Makefile.in (SFILES): Add disasm-selftests.c and
10264 selftest-arch.c.
10265 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10266 * disasm-selftests.c: New file.
10267 * selftest-arch.c: New file.
10268 * selftest-arch.h: New file.
10269
8cafda32
YQ
102702017-01-26 Yao Qi <yao.qi@linaro.org>
10271
10272 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10273 to bfd_arch_mep. Don't return 0 if section is not
10274 found. Call print_insn_mep.
10275
e47ad6c0
YQ
102762017-01-26 Pedro Alves <palves@redhat.com>
10277 Yao Qi <yao.qi@linaro.org>
10278
10279 * arm-tdep.c: Include "disasm.h".
10280 (gdb_print_insn_arm): Update code to get gdbarch.
10281 * disasm.c (dis_asm_read_memory): Change it to
10282 gdb_disassembler::dis_asm_read_memory.
10283 (dis_asm_memory_error): Likewise.
10284 (dis_asm_print_address): Likewise.
10285 (gdb_pretty_print_insn): Change it to
10286 gdb_disassembler::pretty_print_insn.
10287 (dump_insns): Add one argument gdb_disassemlber. All
10288 callers updated.
10289 (do_mixed_source_and_assembly_deprecated): Likewise.
10290 (do_mixed_source_and_assembly): Likewise.
10291 (do_assembly_only): Likewise.
10292 (gdb_disassembler::gdb_disassembler): New.
10293 (gdb_disassembler::print_insn): New.
10294 * disasm.h (class gdb_disassembler): New.
10295 (gdb_pretty_print_insn): Remove declaration.
10296 (gdb_disassemble_info): Likewise.
10297 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10298 (gdbscm_disasm_read_memory_worker): Update.
10299 (gdbscm_disasm_read_memory): Update.
10300 (gdbscm_disasm_memory_error): Remove.
10301 (gdbscm_disasm_print_address): Remove.
10302 (gdbscm_disassembler::gdbscm_disassembler): New.
10303 (gdbscm_print_insn_from_port): Update.
10304 * mips-tdep.c: Include disasm.h.
10305 (gdb_print_insn_mips): Update code to get gdbarch.
10306 * record-btrace.c (btrace_insn_history): Update.
10307 * spu-tdep.c: Include disasm.h.
10308 (struct spu_dis_asm_data): Remove.
10309 (struct spu_dis_asm_info): New.
10310 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10311 SPU id.
10312 (gdb_print_insn_spu): Cast disassemble_info to
10313 spu_dis_asm_info.
10314
80d75874
YQ
103152017-01-26 Yao Qi <yao.qi@linaro.org>
10316
10317 * disasm.c (do_ui_file_delete): Delete.
10318 (gdb_insn_length): Move code creating stream to ...
10319 * utils.c (null_stream): ... here. New function.
10320 * utils.h (null_stream): Declare.
10321
60685cd0
SM
103222017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10323
10324 * python/py-inferior.c (find_thread_object): Return directly
10325 from the loop. Remove "found" variable.
10326
eb1cdb62
JB
103272017-01-21 Joel Brobecker <brobecker@adacore.com>
10328
10329 GDB 7.12.1 released.
10330
b1ce6568
SM
103312017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10332
10333 * python/py-function.c (fnpy_call): Reorder declarations to have
10334 the gdbpy_enter object declared first.
10335 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10336
6f8b0407
SM
103372017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10338
fec93fb1 10339 PR python/21068
6f8b0407
SM
10340 * python/python-internal.h (PyMem_RawMalloc): Define for
10341 Python < 3.4.
10342 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10343 PyMem_RawMalloc instead of PyMem_Malloc.
10344
78cbbba8
LM
103452017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10346 Luis Machado <lgustavo@codesourcery.com>
10347
10348 * NEWS (New commands): Mention flash-erase.
10349 (New MI commands): Mention target-flash-erase.
10350 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10351 command.
10352 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10353 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10354 * target.c (flash_erase_command): New function.
10355 (initialize_targets): Add new flash-erase command.
10356 * target.h (flash_erase_command): New declaration.
10357
2132fe85
JB
103582017-01-20 Joel Brobecker <brobecker@adacore.com>
10359
10360 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10361 HAVE_SYS_PROCFS_H is defined.
10362
d1dff226
AH
103632017-01-18 Alan Hayward <alan.hayward@arm.com>
10364
10365 * remote.c (struct cached_reg): Change data into a pointer.
10366 * (stop_reply_dtr): Free data pointers before deleting vector.
10367 (process_stop_reply): Likewise.
10368 (remote_parse_stop_reply): Allocate space for data
10369
9890e433
AH
103702017-01-18 Alan Hayward <alan.hayward@arm.com>
10371
10372 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10373 MAX_REGISTER_SIZE.
10374 (amd64_pseudo_register_read_value): Likewise.
10375 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10376 (store_register_using_P): Likewise.
10377 * regcache.c (regcache_xfer_part): Likewise.
10378
7a36499a
IR
103792017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10380
10381 Split real and pseudo registers.
10382 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10383 (sparc32_pseudo_regnum): New enum.
10384 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10385 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10386 (SPARC32_CP0_REGISTERS): New macro.
10387 (sparc32_pseudo_register_name): New function.
10388 (sparc32_register_name): Use sparc32_pseudo_register_name.
10389 (sparc32_pseudo_register_type): New function.
10390 (sparc32_register_type): Use sparc32_pseudo_register_type.
10391 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10392 pseudo register numbers.
10393 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10394 (SPARC64_CP0_REGISTERS): New macro.
10395 (sparc64_pseudo_register_name): New function.
10396 (sparc64_register_name): Use sparc64_pseudo_register_name.
10397 (sparc64_pseudo_register_type): New function.
10398 (sparc64_register_type): Use sparc64_pseudo_register_type.
10399 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10400 pseudo register numbers.
10401 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10402 sparc64_store_arguments): Handle pseudo register numbers.
10403
6f8976bf
YQ
104042017-01-13 Yao Qi <yao.qi@linaro.org>
10405
10406 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10407 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10408 output.
10409 (getpkt_or_notif_sane_1): Likewise.
10410
e4241ace
YQ
104112017-01-13 Yao Qi <yao.qi@linaro.org>
10412
10413 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10414 of CC. Pass "-x c++-header" instead of "-x c".
10415
3015c064
SM
104162017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10417
10418 * remote.c (remote_can_async_p): Update comment.
10419
fde1b17d
SM
104202017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10421
10422 * linux-nat.c (linux_nat_can_async_p): Update comment.
10423
ca1ca08b
SM
104242017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10425
10426 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10427
4ad2da73
SM
104282017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10429
10430 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10431
c8b23b3f
TT
104322017-01-10 Tom Tromey <tom@tromey.com>
10433
10434 * python/py-type.c (typy_legacy_template_argument): Update.
10435 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10436 ~demangle_parse_info): Declare new members.
10437 (cp_demangled_name_to_comp): Return unique_ptr.
10438 (cp_demangled_name_parse_free)
10439 (make_cleanup_cp_demangled_name_parse_free)
10440 (cp_new_demangle_parse_info): Remove.
10441 * cp-support.c (do_demangled_name_parse_free_cleanup)
10442 (make_cleanup_cp_demangled_name_parse_free): Remove.
10443 (inspect_type, cp_canonicalize_string_full)
10444 (cp_canonicalize_string): Update.
10445 (mangled_name_to_comp): Change return type.
10446 (cp_class_name_from_physname, method_name_from_physname)
10447 (cp_func_name, cp_remove_params): Update.
10448 * cp-name-parser.y (demangle_parse_info): New constructor, from
10449 cp_new_demangle_parse_info.
10450 (~demangle_parse_info): New destructor, from
10451 cp_demangled_name_parse_free.
10452 (cp_merge_demangle_parse_infos): Update.
10453 (cp_demangled_name_to_comp): Change return type.
10454
1ac32117
TT
104552017-01-10 Tom Tromey <tom@tromey.com>
10456
10457 * top.c (prevent_dont_repeat): Change return type.
10458 * python/python.c (execute_gdb_command): Use std::string.
10459 Update.
10460 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10461 * command.h (prevent_dont_repeat): Change return type.
10462 * breakpoint.c (bpstat_do_actions_1): Update.
10463
0cf08227
TT
104642017-01-10 Tom Tromey <tom@tromey.com>
10465
10466 * value.h (scoped_value_mark::~scoped_value_mark): Call
10467 free_to_mark.
10468 (scoped_value_mark::free_to_mark): New method.
10469 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10470 scoped_value_mark.
10471
eb115069
TT
104722017-01-10 Tom Tromey <tom@tromey.com>
10473
10474 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10475 (valpy_reference_value, valpy_const_value, valpy_get_address)
10476 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10477 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
10478 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
10479 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
10480 scoped_value_mark.
10481 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
10482 * value.h (scoped_value_mark): New class.
10483
906768f9
TT
104842017-01-10 Tom Tromey <tom@tromey.com>
10485
10486 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
10487 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
10488 * psymtab.c (discard_psymtabs_upto): Remove.
10489 (make_cleanup_discard_psymtabs): Remove.
10490 (struct psymtab_state): Remove.
10491
bef155c3
TT
104922017-01-10 Tom Tromey <tom@tromey.com>
10493
10494 * record-full.c (record_full_save_cleanups): Remove.
10495 (record_full_save): Use gdb::unlinker.
10496 * gcore.c (do_bfd_delete_cleanup): Remove.
10497 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
10498 cleanups.
10499 * dwarf2read.c (unlink_if_set): Remove.
10500 (write_psymtabs_to_index): Use gdb::unlinker.
10501 * common/gdb_unlinker.h: New file.
10502
192b62ce
TT
105032017-01-10 Tom Tromey <tom@tromey.com>
10504
10505 * windows-tdep.c (windows_xfer_shared_library): Update.
10506 * windows-nat.c (windows_make_so): Update.
10507 * utils.h (make_cleanup_bfd_unref): Remove.
10508 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
10509 * symfile.h (symfile_bfd_open)
10510 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
10511 * symfile.c (read_symbols, symbol_file_add)
10512 (separate_debug_file_exists): Update.
10513 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
10514 (generic_load, reread_symbols): Update.
10515 * symfile-mem.c (symbol_file_add_from_memory): Update.
10516 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
10517 (spu_symbol_file_add_from_memory): Update.
10518 * solist.h (struct target_so_ops) <bfd_open>: Return
10519 gdb_bfd_ref_ptr.
10520 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
10521 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
10522 gdb_bfd_ref_ptr.
10523 (solib_map_sections, reload_shared_libraries_1): Update.
10524 * solib-svr4.c (enable_break): Update.
10525 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
10526 * solib-frv.c (enable_break2): Update.
10527 * solib-dsbt.c (enable_break): Update.
10528 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
10529 gdb_bfd_ref_ptr.
10530 (darwin_solib_get_all_image_info_addr_at_init): Update.
10531 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
10532 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
10533 * record-full.c (record_full_save): Update.
10534 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
10535 * procfs.c (insert_dbx_link_bpt_in_file): Update.
10536 * minidebug.c (find_separate_debug_file_in_section): Return
10537 gdb_bfd_ref_ptr.
10538 * machoread.c (macho_add_oso_symfile): Change abfd to
10539 gdb_bfd_ref_ptr.
10540 (macho_symfile_read_all_oso): Update.
10541 (macho_check_dsym): Return gdb_bfd_ref_ptr.
10542 (macho_symfile_read): Update.
10543 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
10544 (jit_bfd_try_read_symtab): Update.
10545 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10546 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10547 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10548 gdb_bfd_ref_ptr.
10549 (gdb_bfd_ref_policy): New struct.
10550 (gdb_bfd_ref_ptr): New typedef.
10551 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10552 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10553 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10554 gdb_bfd_ref_ptr.
10555 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10556 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10557 (gcore_command): Update.
10558 * exec.c (exec_file_attach): Update.
10559 * elfread.c (elf_symfile_read): Update.
10560 * dwarf2read.c (dwarf2_get_dwz_file): Update.
10561 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
10562 (open_and_init_dwo_file): Update.
10563 (open_dwp_file): Return gdb_bfd_ref_ptr.
10564 (open_and_init_dwp_file): Update.
10565 * corelow.c (core_open): Update.
10566 * compile/compile-object-load.c (compile_object_load): Update.
10567 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
10568 * coffread.c (coff_symfile_read): Update.
10569 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
10570 gdb_bfd_ref_ptr. Rename.
10571 (dump_bfd_file, restore_command): Update.
10572 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10573 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10574 (find_separate_debug_file_by_buildid): Update.
10575
50315b21
TT
105762017-01-10 Tom Tromey <tom@tromey.com>
10577
10578 * common/gdb_ref_ptr.h: New file.
10579 * python/py-ref.h (struct gdbpy_ref_policy): New.
10580 (gdbpy_ref): Now a typedef.
10581
fc4007c9
TT
105822017-01-10 Tom Tromey <tom@tromey.com>
10583
10584 * utils.h (make_cleanup_htab_delete): Don't declare.
10585 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
10586 Remove.
10587 * linespec.c (decode_compound_collector): Add constructor,
10588 destructor.
10589 (lookup_prefix_sym): Remove cleanup.
10590 (symtab_collector): Add constructor, destructor.
10591 (collect_symtabs_from_filename): Remove cleanup.
10592 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
10593 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
10594 Use htab_up.
10595 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
10596 * dwarf2read.c (dw2_expand_symtabs_matching)
10597 (dw2_map_symbol_filenames, dwarf_decode_macros)
10598 (write_psymtabs_to_index): Use htab_up.
10599 * dwarf2loc.c (func_verify_no_selftailcall)
10600 (call_site_find_chain_1, func_verify_no_selftailcall)
10601 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
10602 std::vector, gdb::unique_xmalloc_ptr.
10603 (call_sitep): Remove typedef.
10604 (dwarf2_locexpr_baton_eval): Remove unused variable.
10605
8dbcee67
TT
106062017-01-10 Tom Tromey <tom@tromey.com>
10607
10608 * python/python-internal.h (make_cleanup_py_decref)
10609 (make_cleanup_py_xdecref): Don't declare.
10610 * python/py-utils.c (py_decref, make_cleanup_py_decref)
10611 (py_xdecref, make_cleanup_py_xdecref): Remove.
10612
13df46cc
TT
106132017-01-10 Tom Tromey <tom@tromey.com>
10614
10615 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
10616 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
10617
06fc9bf7
TT
106182017-01-10 Tom Tromey <tom@tromey.com>
10619
10620 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
10621
830a4934
TT
106222017-01-10 Tom Tromey <tom@tromey.com>
10623
10624 * python/py-utils.c (unicode_to_encoded_string)
10625 (python_string_to_target_string)
10626 (python_string_to_target_python_string)
10627 (python_string_to_host_string, gdbpy_obj_to_string)
10628 (get_addr_from_python): Use gdbpy_ref.
10629
4586d543
TT
106302017-01-10 Tom Tromey <tom@tromey.com>
10631
10632 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
10633 gdbpy_ref.
10634
59876f8f
TT
106352017-01-10 Tom Tromey <tom@tromey.com>
10636
10637 * python/python.c (eval_python_command, gdbpy_decode_line)
10638 (gdbpy_run_events, gdbpy_start_type_printers)
10639 (gdbpy_apply_type_printers): Use gdbpy_ref.
10640
97d83487
TT
106412017-01-10 Tom Tromey <tom@tromey.com>
10642
10643 * python/py-param.c (get_doc_string, compute_enum_values): Use
10644 gdbpy_ref.
10645
9205649a
TT
106462017-01-10 Tom Tromey <tom@tromey.com>
10647
10648 * python/py-inferior.c (find_thread_object, build_inferior_list):
10649 Use gdbpy_ref.
10650
74c49d45
TT
106512017-01-10 Tom Tromey <tom@tromey.com>
10652
10653 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10654
16361ffb
TT
106552017-01-10 Tom Tromey <tom@tromey.com>
10656
10657 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
10658 gdbpy_ref.
10659
905f2cca
TT
106602017-01-10 Tom Tromey <tom@tromey.com>
10661
10662 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
10663 extra incref.
10664 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
10665 Use gdbpy_ref.
10666
64081434
TT
106672017-01-10 Tom Tromey <tom@tromey.com>
10668
10669 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
10670 gdbpy_ref.
10671
59e9e831
TT
106722017-01-10 Tom Tromey <tom@tromey.com>
10673
10674 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
10675 decref results of PyArg_ParseTupleAndKeywords.
10676
9de10f6d
TT
106772017-01-10 Tom Tromey <tom@tromey.com>
10678
10679 * python/python.c (python_run_simple_file): Use
10680 unique_xmalloc_ptr, gdbpy_ref.
10681
2bd5759d
TT
106822017-01-10 Tom Tromey <tom@tromey.com>
10683
10684 * python/py-prettyprint.c (print_stack_unless_memory_error)
10685 (print_string_repr, print_children): Use gdbpy_ref.
10686 (dummy_python_frame): New class.
10687 (dummy_python_frame::dummy_python_frame): Rename from
10688 push_dummy_python_frame.
10689 (py_restore_tstate): Remove.
10690
3b4e0e01
TT
106912017-01-10 Tom Tromey <tom@tromey.com>
10692
10693 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10694
17a22718
TT
106952017-01-10 Tom Tromey <tom@tromey.com>
10696
10697 * python/python.c (ensure_python_env, restore_python_env):
10698 Remove.
10699 * python/python-internal.h (ensure_python_env): Don't declare.
10700 * varobj.h (varobj_ensure_python_env): Don't declare.
10701 * varobj.c (varobj_ensure_python_env): Remove.
10702
68cdc557
TT
107032017-01-10 Tom Tromey <tom@tromey.com>
10704
10705 * varobj.c (varobj_value_get_print_value): Use
10706 gdbpy_enter_varobj.
10707
1eba6383
TT
107082017-01-10 Tom Tromey <tom@tromey.com>
10709
10710 * python/py-prettyprint.c (print_string_repr, print_children):
10711 Update.
10712 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
10713 of "encoding".
10714 * varobj.c (varobj_value_get_print_value): Update.
10715 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
10716
bde7b3e3
TT
107172017-01-10 Tom Tromey <tom@tromey.com>
10718
10719 * varobj.c (varobj_get_display_hint)
10720 (dynamic_varobj_has_child_method, install_new_value_visualizer)
10721 (varobj_set_visualizer, free_variable): Use
10722 gdbpy_enter_varobj.
10723
a7785f8c
TT
107242017-01-10 Tom Tromey <tom@tromey.com>
10725
10726 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
10727 (do_finish_initialization): New function. Use gdbpy_ref.
10728 (gdbpy_finish_initialization): Use gdbpy_enter. Call
10729 do_finish_initialization.
10730
2865bfce
TT
107312017-01-10 Tom Tromey <tom@tromey.com>
10732
10733 * python/py-param.c (get_set_value, get_show_value): Use
10734 gdbpy_enter, gdbpy_ref.
10735
0e9dcc75
TT
107362017-01-10 Tom Tromey <tom@tromey.com>
10737
10738 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
10739
12a5cedd
TT
107402017-01-10 Tom Tromey <tom@tromey.com>
10741
10742 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
10743
788f2586
TT
107442017-01-10 Tom Tromey <tom@tromey.com>
10745
10746 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
10747 Use gdbpy_enter_varobj.
10748
6cd67bea
TT
107492017-01-10 Tom Tromey <tom@tromey.com>
10750
10751 * varobj.c (gdbpy_enter_varobj): New constructor.
10752 * python/python-internal.h (gdbpy_enter_varobj): New class.
10753 * python/py-varobj.c (py_varobj_get_iterator): Use
10754 gdbpy_enter_varobj.
10755
14b122bf
TT
107562017-01-10 Tom Tromey <tom@tromey.com>
10757
10758 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
10759 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
10760 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
10761 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
10762 unique_xmalloc_ptr.
10763 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
10764
bf1ca3b9
TT
107652017-01-10 Tom Tromey <tom@tromey.com>
10766
10767 * python/py-xmethods.c (invoke_match_method): Use
10768 gdbpy_ref.
10769
572a5524
TT
107702017-01-10 Tom Tromey <tom@tromey.com>
10771
10772 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
10773 gdbpy_enter, gdbpy_ref.
10774
396a78b6
TT
107752017-01-10 Tom Tromey <tom@tromey.com>
10776
10777 * python/python.c (python_interactive_command): Use gdbpy_enter.
10778
a88b13c7
TT
107792017-01-10 Tom Tromey <tom@tromey.com>
10780
10781 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
10782 gdbpy_ref.
10783
e9f0c363
TT
107842017-01-10 Tom Tromey <tom@tromey.com>
10785
10786 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
10787 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
10788
6349f452
TT
107892017-01-10 Tom Tromey <tom@tromey.com>
10790
10791 * utils.h (htab_deleter): New struct.
10792 (htab_up): New typedef.
10793 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
10794 gdbpy_enter, gdbpy_ref, htab_up.
10795
c0171de6
TT
107962017-01-10 Tom Tromey <tom@tromey.com>
10797
10798 * python/py-unwind.c (pending_frame_invalidate): Remove.
10799 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
10800
f18e226f
TT
108012017-01-10 Tom Tromey <tom@tromey.com>
10802
10803 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
10804 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
10805
c57af3f1
TT
108062017-01-10 Tom Tromey <tom@tromey.com>
10807
10808 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
10809
60e600ec
TT
108102017-01-10 Tom Tromey <tom@tromey.com>
10811
10812 * python/python.c (gdbpy_eval_from_control_command)
10813 (gdbpy_source_script, gdbpy_run_events)
10814 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
10815 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
10816 gdbpy_enter.
10817
bf7da5b0
TT
108182017-01-10 Tom Tromey <tom@tromey.com>
10819
10820 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
10821
2d38bced
TT
108222017-01-10 Tom Tromey <tom@tromey.com>
10823
10824 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
10825
07bc7329
TT
108262017-01-10 Tom Tromey <tom@tromey.com>
10827
10828 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
10829 (python_on_inferior_call_pre, python_on_inferior_call_post)
10830 (python_on_memory_change, python_on_register_change)
10831 (python_inferior_exit, python_new_objfile, add_thread_object)
10832 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
10833
6e7c365e
TT
108342017-01-10 Tom Tromey <tom@tromey.com>
10835
10836 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
10837 (bpfinishpy_handle_exit): Use gdbpy_enter.
10838
6ba0cd40
TT
108392017-01-10 Tom Tromey <tom@tromey.com>
10840
10841 * python/py-cmd.c (cmdpy_destroyer)
10842 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
10843 gdbpy_enter.
10844
de2dc875
TT
108452017-01-10 Tom Tromey <tom@tromey.com>
10846
10847 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
10848 gdbpy_enter.
10849 (gdbpy_breakpoint_has_cond): Likewise.
10850
4ecee2c4
TT
108512017-01-10 Tom Tromey <tom@tromey.com>
10852
10853 * python/python.c (gdbpy_enter): New constructor.
10854 (~gdbpy_enter): New destructor.
10855 (restore_python_env, ensure_python_env): Rewrite.
10856 * python/python-internal.h (gdbpy_enter): New class.
10857
37fce74f
TT
108582017-01-10 Tom Tromey <tom@tromey.com>
10859
10860 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
10861
53a0cca3
TT
108622017-01-10 Tom Tromey <tom@tromey.com>
10863
10864 * python/py-value.c (value_has_field, get_field_flag)
10865 (get_field_type, valpy_getitem, convert_value_from_python): Use
10866 gdbpy_ref.
10867
ff3724f5
TT
108682017-01-10 Tom Tromey <tom@tromey.com>
10869
10870 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
10871 gdbpy_ref.
10872
0700aea5
TT
108732017-01-10 Tom Tromey <tom@tromey.com>
10874
10875 * python/py-prettyprint.c (search_pp_list)
10876 (find_pretty_printer_from_objfiles)
10877 (find_pretty_printer_from_progspace)
10878 (find_pretty_printer_from_gdb, find_pretty_printer)
10879 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
10880 gdbpy_ref.
10881
1bb44c9f
TT
108822017-01-10 Tom Tromey <tom@tromey.com>
10883
10884 * python/py-param.c (call_doc_function): Use gdbpy_ref.
10885
87ce03fd
TT
108862017-01-10 Tom Tromey <tom@tromey.com>
10887
10888 * python/py-linetable.c (build_line_table_tuple_from_pcs)
10889 (ltpy_get_all_source_lines): Use gdbpy_ref.
10890
ee0a3fb8
TT
108912017-01-10 Tom Tromey <tom@tromey.com>
10892
10893 * python/py-framefilter.c (extract_sym, extract_value)
10894 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
10895 gdbpy_ref.
10896
bf2a52fa
TT
108972017-01-10 Tom Tromey <tom@tromey.com>
10898
10899 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
10900
f59fe7f8
TT
109012017-01-10 Tom Tromey <tom@tromey.com>
10902
10903 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
10904
80bd970a
TT
109052017-01-10 Tom Tromey <tom@tromey.com>
10906
10907 * python/py-function.c (convert_values_to_python, fnpy_init): Use
10908 gdbpy_ref.
10909
d1b3de2e
TT
109102017-01-10 Tom Tromey <tom@tromey.com>
10911
10912 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
10913
3bb43384
TT
109142017-01-10 Tom Tromey <tom@tromey.com>
10915
10916 * python/py-type.c (convert_field, make_fielditem, typy_fields)
10917 (typy_range): Use gdbpy_ref.
10918
abf5651e
TT
109192017-01-10 Tom Tromey <tom@tromey.com>
10920
10921 * python/py-threadevent.c (create_thread_event_object): Use
10922 gdbpy_ref.
10923 * python/py-stopevent.c (create_stop_event_object): Simplify.
10924 (emit_stop_event): Use gdbpy_ref.
10925 * python/py-signalevent.c (create_signal_event_object): Use
10926 gdbpy_ref.
10927 * python/py-newobjfileevent.c (create_new_objfile_event_object)
10928 (emit_new_objfile_event, create_clear_objfiles_event_object)
10929 (emit_clear_objfiles_event): Use gdbpy_ref.
10930 * python/py-infevents.c (create_inferior_call_event_object)
10931 (create_register_changed_event_object)
10932 (create_memory_changed_event_object, emit_inferior_call_event)
10933 (emit_memory_changed_event, emit_register_changed_event): Use
10934 gdbpy_ref.
10935 * python/py-exitedevent.c (create_exited_event_object)
10936 (emit_exited_event): Use gdbpy_ref.
10937 * python/py-event.h (evpy_emit_event): Remove
10938 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
10939 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
10940 * python/py-continueevent.c (emit_continue_event): Use
10941 gdbpy_ref.
10942 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10943 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10944 gdbpy_ref.
10945 * python/py-bpevent.c (create_breakpoint_event_object): Use
10946 gdbpy_ref.
10947
a68ff33e
TT
109482017-01-10 Tom Tromey <tom@tromey.com>
10949
10950 * python/py-ref.h: New file.
10951
7becfd03
SM
109522017-01-10 Simon Marchi <simon.marchi@ericsson.com>
10953
10954 * cli-out.c (cli_ui_out::do_redirect): Change return type to
10955 void.
10956 * cli-out.h (cli_ui_out::do_redirect): Likewise.
10957 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
10958 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
10959 * ui-out.c (ui_out::redirect): Likewise.
10960 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
10961 * cli/cli-logging.c (set_logging_redirect): Update call site of
10962 ui_out::redirect.
10963 (handle_redirections): Likewise.
10964 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
10965 * top.c (execute_command_to_string): Likewise.
10966 * utils.c (do_ui_out_redirect_pop): Likewise.
10967
df294654
SM
109682017-01-10 Simon Marchi <simon.marchi@ericsson.com>
10969
10970 * stack.c (_initialize_stack): Update "frame" command help message.
10971
f5e6296e
IB
109722017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
10973
10974 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
10975
0e2d6fa6
YQ
109762017-01-06 Yao Qi <yao.qi@linaro.org>
10977
10978 * x86-linux-nat.h: Include gdb_proc_service.h.
10979
44d6d3f9
YQ
109802017-01-06 Yao Qi <yao.qi@linaro.org>
10981
10982 * ser-base.h: Include serial.h.
10983
656731fe
YQ
109842017-01-06 Yao Qi <yao.qi@linaro.org>
10985
10986 * ppc-linux-tdep.h: Include ppc-tdep.h.
10987
1ca8f924
YQ
109882017-01-06 Yao Qi <yao.qi@linaro.org>
10989
10990 * nat/amd64-linux-siginfo.h: Include signal.h.
10991
bc3008c4
YQ
109922017-01-06 Yao Qi <yao.qi@linaro.org>
10993
10994 * nat/aarch64-linux-hw-point.h: Include break-common.h.
10995
66c80d03
YQ
109962017-01-06 Yao Qi <yao.qi@linaro.org>
10997
10998 * mi/mi-parse.h: Include mi-cmds.h.
10999
051d2dda
YQ
110002017-01-06 Yao Qi <yao.qi@linaro.org>
11001
11002 * inf-loop.c: Don't include "target.h".
11003 * inf-loop.h: Include it here.
11004
8018d34f
YQ
110052017-01-06 Yao Qi <yao.qi@linaro.org>
11006
11007 * dfp.h: Include "dboulest.h" and "expression.h".
11008
c0b8369c
YQ
110092017-01-06 Yao Qi <yao.qi@linaro.org>
11010
11011 * ax-gdb.h: Include "ax.h".
11012
ad5cba2a
YQ
110132017-01-06 Yao Qi <yao.qi@linaro.org>
11014
11015 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11016 with nat/gdb_ptrace.h.
11017
1c33cd7f
YQ
110182017-01-05 Yao Qi <yao.qi@linaro.org>
11019
11020 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11021 new line.
11022 (mips64_fbsd_sigframe_init): Likewise.
11023
c988ac1d
JB
110242017-01-04 John Baldwin <jhb@FreeBSD.org>
11025
11026 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11027 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11028
b268007c
JB
110292017-01-04 John Baldwin <jhb@FreeBSD.org>
11030
11031 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11032 * NEWS: Mention new FreeBSD/mips native configuration.
11033 * config/mips/fbsd.mh: New file.
11034 * configure.host: Add mips*-*-freebsd*.
11035 * mips-fbsd-nat.c: New file.
11036
387360da
JB
110372017-01-04 John Baldwin <jhb@FreeBSD.org>
11038
11039 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11040 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11041 * NEWS: Mention new FreeBSD/mips target.
11042 * configure.tgt: Add mips*-*-freebsd*.
11043 * mips-fbsd-tdep.c: New file.
11044 * mips-fbsd-tdep.h: New file.
11045
2aaaf250
YQ
110462017-01-04 Yao Qi <yao.qi@linaro.org>
11047
11048 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11049 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11050
61baf725
JB
110512017-01-01 Joel Brobecker <brobecker@adacore.com>
11052
6dbb839a 11053 Update copyright year range in all GDB files.
61baf725 11054
c113e7ff 110552017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 11056
c113e7ff 11057 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 11058
c113e7ff 11059For older changes see ChangeLog-2016.
c906108c
SS
11060\f
11061Local Variables:
11062mode: change-log
11063left-margin: 8
11064fill-column: 74
11065version-control: never
57da7796 11066coding: utf-8
c906108c 11067End:
This page took 2.422165 seconds and 4 git commands to generate.