Fix sometimes-uninitialized warning in gdbscm_value_address
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
432ae719
SM
12017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2
3 * guile/scm-value.c (gdbscm_value_address): Initialize address,
4 get rid of res_val.
5
4fa7574e
RO
62017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7
8 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
9 <sol2,sparc>: Likewise.
10 <sol2-64,i386>: Likewise.
11
12 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
13 -Wdeprecated-declarations on *-*-solaris*.
14 * configure: Regenerate.
15
16 * procfs.c: Include "nat/inferior.h".
17 (procfs_info_proc): Fix typo.
18
f6327dcb
KB
192017-09-21 Kevin Buettner <kevinb@redhat.com>
20
21 * remote.c (vector): Include.
22 (struct private_thread_info): Add field, thread_handle.
23 (free_private_thread_info): Deallocate storage associated with
24 thread handle.
25 (get_private_info_thread): Initialize `thread_handle' field.
26 (struct thread_item): Add field, thread_handle.
27 (clear_threads_listing_context): Deallocate storage associated
28 with thread handle.
29 (start_thread): Add support for "handle" attribute.
30 (thread_attributes): Add "handle".
31 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
32 field.
33 (remote_update_thread_list): Update thread_handle.
34 (remote_thread_handle_to_thread_info): New function.
35 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
36
fbbe5337
KB
372017-09-21 Kevin Buettner <kevinb@redhat.com>
38
39 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
40 function.
41 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
42 * python/python-internal.h (thread_object_type): Declare.
43
e04ee09e
KB
442017-09-21 Kevin Buettner <kevinb@redhat.com>
45
46 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
47 (target_thread_handle_to_thread_info): Declare.
48 * target.c (target_thread_handle_to_thread_info): New function.
49 * target-delegates.c: Regenerate.
50 * gdbthread.h (find_thread_by_handle): Declare.
51 * thread.c (find_thread_by_handle): New function.
52 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
53 function.
54 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
55
1e5b66ed
SM
562017-09-21 Simon Marchi <simon.marchi@ericsson.com>
57
58 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
59
ebe48ba0
SM
602017-09-21 Simon Marchi <simon.marchi@ericsson.com>
61
62 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
63
0a0bf5dc
YQ
642017-09-21 Yao Qi <yao.qi@linaro.org>
65
66 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
67 to gdb_target_obs.
68
d1b0a7bf
TT
692017-09-20 Tom Tromey <tom@tromey.com>
70
71 * breakpoint.c (struct counted_command_line): Remove.
72 (breakpoint_commands): Update.
73 (alloc_counted_command_line, incref_counted_command_line)
74 (decref_counted_command_line, do_cleanup_counted_command_line)
75 (make_cleanup_decref_counted_command_line): Remove.
76 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
77 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
78 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
79 (save_breakpoints): Update.
80 * breakpoint.h (counted_command_line): Now a typedef to
81 shared_ptr.
82 (struct breakpoint) <commands>: Now a counted_command_line.
83 (struct bpstats) <command>: Likewise.
84
48649e1b
TT
852017-09-20 Tom Tromey <tom@tromey.com>
86
87 * breakpoint.c (struct commands_info, do_map_commands_command):
88 Remove.
89 (commands_command_1): Update.
90 (iterate_over_related_breakpoints): Take a function_view.
91 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
92 (delete_command): Update.
93 (map_breakpoint_numbers): Take a function_view.
94 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
95 (disable_command): Update.
96 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
97 (enable_command): Update.
98 (struct disp_data, do_enable_breakpoint_disp)
99 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
100 (do_map_enable_delete_breakpoint): Remove.
101 (enable_once_command, enable_count_command, enable_delete_command)
102 (delete_trace_variable_command): Update.
103
04afa70c
TT
1042017-09-20 Tom Tromey <tom@tromey.com>
105
106 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
107 (bpstat_clear): Use delete.
108 (bpstats): New constructors.
109 (bpstat_copy, bpstat_stop_status): Use new.
110 (dprintf_after_condition_true): Update.
111 * breakpoint.h (bpstats::bpstats): Add constructors.
112 (bpstats::~bpstats): Add destructor.
113
c83833f4
PA
1142017-09-20 Pedro Alves <palves@redhat.com>
115
116 * eval.c (make_params): Delete, refactored as ...
117 (class fake_method): ... this new type's ctor.
118 (fake_method::~fake_method): New.
119 (evaluate_subexp_standard): Use 'fake_method'.
120
223ffa71
TT
1212017-09-20 Tom Tromey <tom@tromey.com>
122
123 * windows-nat.c (get_windows_debug_event, windows_wait)
124 (do_initial_windows_stuff, windows_attach): Update.
125 * utils.c (vwarning, internal_vproblem): Update.
126 (ui_unregister_input_event_handler_cleanup)
127 (prepare_to_handle_input): Remove.
128 (class scoped_input_handler): New.
129 (defaulted_query, prompt_for_continue): Update.
130 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
131 Update.
132 * top.c (undo_terminal_modifications_before_exit): Update.
133 * target/target.h (target_terminal_init, target_terminal_inferior)
134 (target_terminal_ours): Don't declare.
135 (class target_terminal): New.
136 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
137 (target_terminal_ours_for_output)
138 (make_cleanup_restore_target_terminal): Don't declare.
139 (target_terminal_info): Remove.
140 * target.c (enum terminal_state, terminal_state): Remove.
141 (target_terminal::terminal_state): Define.
142 (target_terminal::init): Rename from target_terminal_init.
143 (target_terminal::inferior): Rename from
144 target_terminal_inferior.
145 (target_terminal::ours): Rename from target_terminal_ours.
146 (target_terminal::ours_for_output): Rename from
147 target_terminal_ours_for_output.
148 (target_terminal::info): New method.
149 (cleanup_restore_target_terminal)
150 (make_cleanup_restore_target_terminal): Remove.
151 * solib.c (handle_solib_event): Update.
152 * remote.c (remote_serial_quit_handler): Update.
153 (remote_terminal_inferior, remote_wait_as): Update.
154 * record-full.c (record_full_wait_1): Update.
155 * nto-procfs.c (procfs_create_inferior): Update.
156 * nat/fork-inferior.c (startup_inferior): Update.
157 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
158 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
159 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
160 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
161 (mi_breakpoint_created, mi_breakpoint_deleted)
162 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
163 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
164 (mi_user_selected_context_changed, report_initial_inferior):
165 Update.
166 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
167 (linux_nat_terminal_inferior): Update.
168 * infrun.c (follow_fork_inferior)
169 (handle_vfork_child_exec_or_exit, do_target_resume)
170 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
171 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
172 Update.
173 * inflow.c (child_terminal_init, info_terminal_command): Update.
174 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
175 (attach_command): Update.
176 * infcall.c (call_thread_fsm_should_stop): Update.
177 * gnu-nat.c (gnu_attach): Update.
178 * extension.c (struct active_ext_lang_state)
179 (restore_active_ext_lang): Update.
180 * exceptions.c (print_flush): Update.
181 * event-top.c (async_enable_stdin, default_quit_handler): Update.
182 (struct quit_handler_cleanup_data, restore_quit_handler)
183 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
184 Remove.
185 * cp-support.c (gdb_demangle): Update.
186 * breakpoint.c (update_inserted_breakpoint_locations)
187 (insert_breakpoint_locations, handle_jit_event)
188 (disable_breakpoints_in_unloaded_shlib): Update.
189 * annotate.c (annotate_breakpoints_invalid)
190 (annotate_frames_invalid): Update.
191
013af3fc
TT
1922017-09-20 Tom Tromey <tom@tromey.com>
193
194 * main.c (catch_command_errors): Rename from
195 catch_command_errors_const.
196 (captured_main_1): Update.
197
06871ae8
PA
1982017-09-20 Pedro Alves <palves@redhat.com>
199
200 * cli/cli-cmds.c (list_command): Use print_sal_location.
201 (print_sal_location): New function.
202 (ambiguous_line_spec): Use print_sal_location.
203 * linespec.c (symbol_to_sal): Record the symbol in the sal.
204 * symtab.c (find_function_start_sal): Likewise.
205 * symtab.h (symtab_and_line::symbol): New field.
206
e5f25bc5
PA
2072017-09-20 Pedro Alves <palves@redhat.com>
208
209 * linespec.c (minsym_found): Handle non-text minsyms.
210 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
211
1b7fa39e
WT
2122017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
213
214 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
215 backslash.
216
37dd0825
WT
2172017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
218
219 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
220 vmovups instead vmovaps.
221 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
222
4e5a4f58
JB
2232017-09-19 John Baldwin <jhb@FreeBSD.org>
224
225 * NEWS (Changes since GDB 8.0): Add starti.
226 * infcmd.c (enum run_break): New.
227 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
228 case.
229 (run_command): Use enum run_how.
230 (start_command): Likewise.
231 (starti_command): New function.
232 (RUN_ARGS_HELP): New macro.
233 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
234 commands. Add starti command.
235
aa70c9f1
YQ
2362017-09-19 Yao Qi <yao.qi@linaro.org>
237
238 * Makefile.in (monitor.o): Remove the rule.
239
d6541620
YQ
2402017-09-19 Yao Qi <yao.qi@linaro.org>
241
242 * annotate.h (struct annotate_arg_emitter): Use
243 DISABLE_COPY_AND_ASSIGN.
244 * common/refcounted-object.h (refcounted_object): Likewise.
245 * completer.h (struct completion_result): Likewise.
246 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
247 * filename-seen-cache.h (filename_seen_cache): Likewise.
248 * gdbcore.h (thread_section_name): Likewise.
249 * gdb_regex.h (compiled_regex): Likewise.
250 * gdbthread.h (scoped_restore_current_thread): Likewise.
251 * inferior.h (scoped_restore_current_inferior): Likewise.
252 * jit.c (jit_reader): Likewise.
253 * linespec.h (struct linespec_result): Likewise.
254 * mi/mi-parse.h (struct mi_parse): Likewise.
255 * nat/fork-inferior.c (execv_argv): Likewise.
256 * progspace.h (scoped_restore_current_program_space): Likewise.
257 * python/python-internal.h (class gdbpy_enter): Likewise.
258 * regcache.h (regcache): Likewise.
259 * target-descriptions.c (struct tdesc_reg): Likewise.
260 (struct tdesc_type): Likewise.
261 (struct tdesc_feature): Likewise.
262 * ui-out.h (ui_out_emit_type): Likewise.
263
0615127c
SM
2642017-09-18 Simon Marchi <simon.marchi@ericsson.com>
265
266 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
267 label abort_expression.
268
5e187554
SM
2692017-09-16 Simon Marchi <simon.marchi@ericsson.com>
270
271 * common/buffer.c (buffer_xml_printf): Adjust.
272 * common/xml-utils.c (xml_escape_text): Change return type to
273 std::string, update code accordingly.
274 * common/xml-utils.h (xml_escape_text): Change return type to
275 std::string.
276 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
277 * windows-tdep.c (windows_xfer_shared_library): Adjust.
278 * unittests/xml-utils-selftests.c (test_xml_escape_text):
279 Adjust.
280
c3d7b541
SM
2812017-09-16 Simon Marchi <simon.marchi@ericsson.com>
282
283 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
284 (SUBDIR_UNITTESTS_OBS): Add new object file.
285 * unittests/xml-utils-selftests.c: New file.
286
1526853e
SM
2872017-09-16 Simon Marchi <simon.marchi@ericsson.com>
288
289 * common/selftest.h (selftest): New struct/interface.
290 (register_test): Add name parameter, add new overload.
291 (run_tests): Add filter parameter.
292 (for_each_selftest_ftype): New typedef.
293 (for_each_selftest): New declaration.
294 * common/selftest.c (tests): Change type to
295 map<string, unique_ptr<selftest>>.
296 (simple_selftest): New struct.
297 (register_test): New function.
298 (register_test): Add name parameter and use it.
299 (run_tests): Add filter parameter and use it. Add prints.
300 Adjust to vector -> map change.
301 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
302 registering selftests.
303 * arm-tdep.c (_initialize_arm_tdep): Likewise.
304 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
305 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
306 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
307 * findvar.c (_initialize_findvar): Likewise.
308 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
309 * maint.c (maintenance_selftest): Update call to run_tests.
310 (maintenance_info_selftests): New function.
311 (_initialize_maint_cmds): Register "maintenance info selftests"
312 command. Update "maintenance selftest" doc.
313 * regcache.c (_initialize_regcache): Add names when registering
314 selftests.
315 * rust-exp.y (_initialize_rust_exp): Likewise.
316 * selftest-arch.c (gdbarch_selftest): New struct.
317 (gdbarch_tests): Remove.
318 (register_test_foreach_arch): Add name parameter. Call
319 register_test.
320 (tests_with_arch): Remove, move most content to
321 gdbarch_selftest::operator().
322 (_initialize_selftests_foreach_arch): Remove.
323 * selftest-arch.h (register_test_foreach_arch): Add name
324 parameter.
325 (run_tests_with_arch): New declaration.
326 * utils-selftests.c (_initialize_utils_selftests): Add names
327 when registering selftests.
328 * utils.c (_initialize_utils): Likewise.
329 * unittests/array-view-selftests.c
330 (_initialize_array_view_selftests): Likewise.
331 * unittests/environ-selftests.c (_initialize_environ_selftests):
332 Likewise.
333 * unittests/function-view-selftests.c
334 (_initialize_function_view_selftests): Likewise.
335 * unittests/offset-type-selftests.c
336 (_initialize_offset_type_selftests): Likewise.
337 * unittests/optional-selftests.c
338 (_initialize_optional_selftests): Likewise.
339 * unittests/scoped_restore-selftests.c
340 (_initialize_scoped_restore_selftests): Likewise.
341 * NEWS: Document "maintenance selftest" and "maint info
342 selftests".
343
5846367a
SM
3442017-09-16 Simon Marchi <simon.marchi@ericsson.com>
345
346 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
347 scoped_restore.
348
bd77e8ff
SM
3492017-09-16 Simon Marchi <simon.marchi@ericsson.com>
350
351 * mi/mi-main.c (mi_load_progress): Make uiout variable
352 a unique_ptr.
353
26a67918
PA
3542017-09-15 Pedro Alves <palves@redhat.com>
355
356 * compile/compile-c-types.c (convert_enum, convert_int)
357 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
358
3f8a7804
SM
3592017-09-15 Simon Marchi <simon.marchi@ericsson.com>
360
361 * dwarf2read.c (copy_string): Remove.
362 (parse_macro_definition): Replace copy_string with savestring.
363
8d200706
YQ
3642017-09-15 Yao Qi <yao.qi@linaro.org>
365
366 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
367 gdb_target_obs.
368 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
369 Likewise.
370 (i[34567]86-*-linux*): Likewise.
371
d185219d
SM
3722017-09-14 Simon Marchi <simon.marchi@ericsson.com>
373
374 * dwarf2expr.h (dwarf_stack_value): Add constructor.
375 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
376 <stack>: Change type to std::vector.
377 <stack_len, stack_allocated>: Remove.
378 <grow_stack>: Remove.
379 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
380 (dwarf_expr_context::~dwarf_expr_context): Remove.
381 (dwarf_expr_context::grow_stack): Remove.
382 (dwarf_expr_context::push): Adjust.
383 (dwarf_expr_context::pop): Adjust.
384 (dwarf_expr_context::fetch): Adjust.
385 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
386 (dwarf_expr_context::stack_empty_p): Adjust.
387 (dwarf_expr_context::execute_stack_op): Adjust.
388
eccd80d6
SM
3892017-09-14 Simon Marchi <simon.marchi@ericsson.com>
390
391 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
392 return type to bool.
393 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
394
69009882
SM
3952017-09-14 Simon Marchi <simon.marchi@ericsson.com>
396
397 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
398 Change type to bool.
399 (dwarf_stack_value) <in_stack_memory>: Likewise.
400 (dwarf_expr_context) <push_address>: Change parameter type to
401 bool.
402 <fetch_in_stack_memory>: Change return type to bool.
403 <push>: Change parameter type to bool.
404 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
405 to bool.
406 (dwarf_expr_context::push_address): Likewise.
407 (dwarf_expr_context::fetch_in_stack_memory): Change return type
408 to bool.
409 (dwarf_expr_context::execute_stack_op): Adjust.
410 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
411
1e467161
SM
4122017-09-14 Simon Marchi <simon.marchi@ericsson.com>
413
414 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
415 (struct dwarf_expr_context) <n_pieces>: Remove.
416 <pieces>: Change type to std::vector.
417 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
418 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
419 pieces.
420 (dwarf_expr_context::add_piece): Adjust.
421 * dwarf2loc.c (struct piece_closure): Initialize fields.
422 <n_pieces>: Remove.
423 <pieces>: Change type to std::vector.
424 (allocate_piece_closure): Adjust, change parameter to
425 std::vector rvalue and std::move it to piece_closure.
426 (rw_pieced_value): Adjust.
427 (check_pieced_synthetic_pointer): Adjust.
428 (indirect_synthetic_pointer): Adjust.
429 (coerce_pieced_ref): Adjust.
430 (free_pieced_value_closure): Adjust. Use delete to free
431 piece_closure.
432 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
433 to allocate_piece_closure.
434 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
435
0782db84
SM
4362017-09-12 Simon Marchi <simon.marchi@ericsson.com>
437
438 * probe.h (probe_ops_cp): Remove typedef.
439 (DEF_VEC_P (probe_ops_cp)): Remove.
440 (all_probe_ops): Change type to std::vector.
441 * probe.c (info_probes_for_ops): Adjust to vector change.
442 (probe_linespec_to_ops): Likewise.
443 (all_probe_ops): Change type to std::vector.
444 (_initialize_probe): Adjust to vector change.
445 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
446 * elfread.c (elf_get_probes): Likewise.
447 * stap-probe.c (_initialize_stap_probe): Likewise.
448
1eac6bea
SM
4492017-09-12 Simon Marchi <simon.marchi@ericsson.com>
450
451 * probe.h (struct bound_probe): Define constructors.
452 * probe.c (bound_probe_s): Remove typedef.
453 (DEF_VEC_O (bound_probe_s)): Remove VEC.
454 (collect_probes): Change return type to std::vector, remove
455 cleanup.
456 (compare_probes): Return bool, change parameter type. Change
457 semantic to "less than".
458 (gen_ui_out_table_header_info): Change parameter to std::vector
459 and update.
460 (exists_probe_with_pops): Likewise.
461 (info_probes_for_ops): Update to std::vector change.
462 (enable_probes_command): Likewise.
463 (disable_probes_command): Likewise.
464
aaa63a31
SM
4652017-09-12 Simon Marchi <simon.marchi@ericsson.com>
466
467 * probe.h (struct probe_ops) <get_probes>: Change parameter from
468 vec to std::vector.
469 * probe.c (parse_probes_in_pspace): Update.
470 (find_probes_in_objfile): Update.
471 (find_probe_by_pc): Update.
472 (collect_probes): Update.
473 (probe_any_get_probes): Update.
474 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
475 return type to reference to std::vector.
476 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
477 std::vector and update.
478 (dtrace_process_dof): Likewise.
479 (dtrace_get_probes): Likewise.
480 * elfread.c (elf_get_probes): Change return type to std::vector,
481 store an std::vector in bfd_data.
482 (probe_key_free): Update to std::vector.
483 * stap-probe.c (handle_stap_probe): Change parameter to
484 std::vector and update.
485 (stap_get_probes): Likewise.
486 * symfile-debug.c (debug_sym_get_probes): Change return type to
487 std::vector and update.
488
cb85b21b
TT
4892017-09-11 Tom Tromey <tom@tromey.com>
490
491 * breakpoint.c (program_breakpoint_here_p): Update.
492 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
493 from make_show_memory_breakpoints_cleanup. Return a
494 scoped_restore_tmpl<int>.
495 (restore_show_memory_breakpoints): Remove.
496 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
497 * mem-break.c (memory_validate_breakpoint): Update.
498 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
499 (ia64_memory_remove_breakpoint): Update.
500 (ia64_breakpoint_from_pc): Update.
501 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
502 from make_show_memory_breakpoints_cleanup.
503
8fbc99ef
TT
5042017-09-11 Tom Tromey <tom@tromey.com>
505
506 * d-namespace.c (d_lookup_symbol): Use std::string.
507 (find_symbol_in_baseclass): Likewise.
508
50feb4bd
TT
5092017-09-11 Tom Tromey <tom@tromey.com>
510
511 * ctf.c (ctf_start): Use std::string.
512
c6dc63a1
TT
5132017-09-11 Tom Tromey <tom@tromey.com>
514
515 * ada-lang.c (is_known_support_routine): Update.
516 (ada_unhandled_exception_name_addr_from_raise): Update.
517 * guile/scm-frame.c (gdbscm_frame_name): Update.
518 * python/py-frame.c (frapy_name): Update.
519 (frapy_function): Update.
520 * stack.h (find_frame_funname): Update.
521 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
522 (print_frame): Update.
523
d6b9b80f
TT
5242017-09-11 Tom Tromey <tom@tromey.com>
525
526 * findcmd.c (put_bits): Take a gdb::byte_vector.
527 (parse_find_args): Return gdb::byte_vector. "args" now const.
528 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
529 cleanups.
530 (find_command): Update.
531
a9921622
TT
5322017-09-11 Tom Tromey <tom@tromey.com>
533
534 * cli/cli-script.c (class scoped_restore_hook_in): New.
535 (clear_hook_in_cleanup): Remove.
536 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
537 scoped_restore_hook_in.
538
be0d7abb
TT
5392017-09-11 Tom Tromey <tom@tromey.com>
540
541 * cli/cli-script.c (restore_interp): Remove.
542 (read_command_lines): Use scoped_restore_interp.
543 * interps.c (scoped_restore_interp::set_temp): Rename from
544 interp_set_temp.
545 * interps.h (class scoped_restore_interp): New.
546 (interp_set_temp): Remove.
547
00f675ff
TT
5482017-09-11 Tom Tromey <tom@tromey.com>
549
550 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
551 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
552 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
553 scoped_restore.
554 (mi_cmd_break_insert_1): Update.
555 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
556 scoped_restore.
557
cb791d59
TT
5582017-09-11 Tom Tromey <tom@tromey.com>
559
560 * demangle.c (demangle_command): Update.
561 * breakpoint.c (disable_command): Update.
562 (enable_command): Update.
563 (find_location_by_number): Make "number" const. Use
564 get_number_trailer.
565 * cli/cli-utils.c (extract_arg): Return std::string.
566 * probe.c (parse_probe_linespec): Update. Change types.
567 (collect_probes): Take string arguments.
568 (parse_probe_linespec): Likewise.
569 (info_probes_for_ops): Update.
570 (enable_probes_command): Update.
571 (disable_probes_command): Update.
572 * break-catch-sig.c (catch_signal_split_args): Update.
573 * mi/mi-parse.c (mi_parse): Update.
574
2039bd9f
TT
5752017-09-11 Tom Tromey <tom@tromey.com>
576
577 * language.h (language_enum): Make argument const.
578 * language.c (language_enum): Make argument const.
579
f1735a53
TT
5802017-09-11 Tom Tromey <tom@tromey.com>
581
582 * common/common-utils.h (skip_to_space): Remove macro, redeclare
583 as function.
584 (skip_to_space): Rename from skip_to_space_const.
585 * common/common-utils.c (skip_to_space): New function.
586 (skip_to_space): Rename from skip_to_space_const.
587 * cli/cli-utils.h (get_number): Rename from get_number_const.
588 (extract_arg): Rename from extract_arg_const.
589 * cli/cli-utils.c (get_number): Rename from get_number_const.
590 (extract_arg): Rename from extract_arg_const.
591 (number_or_range_parser::get_number): Use ::get_number.
592 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
593 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
594 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
595 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
596 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
597 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
598 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
599 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
600
7d221d74
TT
6012017-09-11 Tom Tromey <tom@tromey.com>
602
603 * python/python.c (do_start_initialization): Use
604 py-event-types.def to initialize types.
605 Define all object type structures.
606 * python/python-internal.h: Don't declare event initialization
607 functions.
608 * python/py-threadevent.c (thread_event_object_type): Don't
609 define.
610 * python/py-stopevent.c (stop_event_object_type): Don't define.
611 * python/py-signalevent.c (signal_event_object_type): Don't
612 declare or define.
613 * python/py-newobjfileevent.c (new_objfile_event_object_type)
614 (clear_objfiles_event_object_type): Don't declare or define.
615 * python/py-infevents.c (inferior_call_pre_event_object_type)
616 (inferior_call_post_event_object_type)
617 (register_changed_event_object_type)
618 (memory_changed_event_object_type): Don't declare or define.
619 * python/py-inferior.c (new_thread_event_object_type)
620 (new_inferior_event_object_type)
621 (inferior_deleted_event_object_type): Don't declare or define.
622 * python/py-exitedevent.c (exited_event_object_type): Don't
623 declare or define.
624 * python/py-evts.c (gdbpy_initialize_py_events): Use
625 py-all-events.def.
626 * python/py-events.h (thread_event_object_type): Don't declare.
627 (events_object): Use py-all-events.def.
628 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
629 py-event-types.def.
630 * python/py-event-types.def: New file.
631 * python/py-continueevent.c (create_continue_event_object): Don't
632 declare or define.
633 * python/py-bpevent.c (breakpoint_event_object_type): Don't
634 declare or define.
635 * python/py-all-events.def: New file.
636
35c61a1d
TT
6372017-09-11 Tom Tromey <tom@tromey.com>
638
639 * python/py-threadevent.c (create_thread_event_object): Return
640 gdbpy_ref.
641 * python/py-stopevent.h (create_stop_event_object)
642 (create_breakpoint_event_object, create_signal_event_object):
643 Update.
644 * python/py-stopevent.c (create_stop_event_object): Return
645 gdbpy_ref.
646 (emit_stop_event): Update.
647 * python/py-signalevent.c (create_signal_event_object): Return
648 gdbpy_ref.
649 * python/py-infevents.c (create_inferior_call_event_object):
650 Update.
651 * python/py-event.h (create_event_object)
652 (create_thread_event_object): Update.
653 * python/py-event.c (create_event_object): Return gdbpy_ref.
654 * python/py-continueevent.c: Return gdbpy_ref.
655 * python/py-bpevent.c (create_breakpoint_event_object): Return
656 gdbpy_ref.
657
7c96f8c1
TT
6582017-09-11 Tom Tromey <tom@tromey.com>
659
660 PR python/15622:
661 * NEWS: Add entry.
662 * python/python.c (do_start_initialization): Initialize new event
663 types.
664 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
665 (gdbpy_initialize_inferior_deleted_event)
666 (gdbpy_initialize_new_thread_event): Declare.
667 * python/py-threadevent.c (create_thread_event_object): Add option
668 "thread" parameter.
669 * python/py-inferior.c (new_thread_event_object_type)
670 (new_inferior_event_object_type)
671 (inferior_deleted_event_object_type): Declare.
672 (python_new_inferior, python_inferior_deleted): New functions.
673 (add_thread_object): Emit new_thread event.
674 (gdbpy_initialize_inferior): Attach new functions to corresponding
675 observers.
676 (new_thread, new_inferior, inferior_deleted): Define new event
677 types.
678 * python/py-evts.c (gdbpy_initialize_py_events): Add new
679 registries.
680 * python/py-events.h (events_object) <new_inferior,
681 inferior_deleted, new_thread>: New fields.
682 * python/py-event.h (create_thread_event_breakpoint): Add optional
683 "thread" parameter.
684
72542b8e
AB
6852017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
688 check current_ui instead.
689 (internal_vproblem): Likewise.
690
0d64823e
SM
6912017-09-09 Simon Marchi <simon.marchi@ericsson.com>
692
693 * thread.c (print_thread_info_1): Remove unnecessary calls to
694 uiout->is_mi_like_p.
695
eb1e02fd
TT
6962017-09-09 Tom Tromey <tom@tromey.com>
697
698 * namespace.h (add_using_directive): Update.
699 * namespace.c (add_using_directive): Change type of excludes to
700 std::vector.
701 * dwarf2read.c (read_import_statement): Use std::vector.
702 (read_namespace): Update.
703 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
704
0fc21fd8
TT
7052017-09-09 Tom Tromey <tom@tromey.com>
706
707 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
708
49663d05
TT
7092017-09-09 Tom Tromey <tom@tromey.com>
710
711 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
712
0b868b60
TT
7132017-09-09 Tom Tromey <tom@tromey.com>
714
715 * stack.c (func_command): Use gdb::def_vector.
716
c0470d48
TT
7172017-09-09 Tom Tromey <tom@tromey.com>
718
719 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
720 ui_out_emit_list, ui_out_emit_tuple.
721 (mi_cmd_var_update): Likewise.
722
ca5909c7
TT
7232017-09-09 Tom Tromey <tom@tromey.com>
724
725 * mi/mi-interp.c (mi_user_selected_context_changed): Use
726 ui_out_redirect_pop.
727 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
728 ui_out_redirect_pop.
729 * utils.c (do_ui_out_redirect_pop)
730 (make_cleanup_ui_out_redirect_pop): Remove.
731 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
732 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
733 * ui-out.h (ui_out_redirect_pop): New class.
734
e6a2252a
TT
7352017-09-09 Tom Tromey <tom@tromey.com>
736
737 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
738 (list_available_thread_groups, mi_cmd_list_thread_groups)
739 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
740 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
741 Likewise.
742
393702cd
TT
7432017-09-09 Tom Tromey <tom@tromey.com>
744
745 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
746 ui_out_emit_tuple.
747
76f9c9cf
TT
7482017-09-09 Tom Tromey <tom@tromey.com>
749
750 * target.c (flash_erase_command): Use ui_out_emit_tuple.
751 * stack.c (print_frame): Use ui_out_emit_tuple.
752 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
753 (info_spu_mailbox_command, info_spu_dma_command)
754 (info_spu_proxydma_command): Likewise.
755 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
756 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
757 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
758 ui_out_emit_tuple.
759 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
760
dc9fe180
TT
7612017-09-09 Tom Tromey <tom@tromey.com>
762
763 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
764 (class ui_out_emit_table): Update comment.
765 * ui-out.c (do_cleanup_table_end)
766 (make_cleanup_ui_out_table_begin_end): Remove.
767 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
768 (info_spu_dma_cmdlist): Likewise.
769 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
770 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
771 ui_out_emit_table.
772
f8cc3da6
TT
7732017-09-09 Tom Tromey <tom@tromey.com>
774
775 * thread.c (print_thread_info_1): Use ui_out_emit_table,
776 ui_out_emit_list, gdb::optional.
777
481695ed
JB
7782017-09-09 John Baldwin <jhb@FreeBSD.org>
779
780 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
781 prototype.
782 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
783 prototype.
784 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
785 prototype.
786 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
787 * ada-exp.y: Remove _initialize_ada_exp prototype.
788 * ada-lang.c: Remove _initialize_ada_language prototype.
789 * ada-tasks.c: Remove _initialize_tasks prototype.
790 * addrmap.c: Remove _initialize_addrmap prototype.
791 * agent.c: Remove _initialize_agent prototype.
792 * aix-thread.c: Remove _initialize_aix_thread prototype.
793 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
794 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
795 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
796 prototype.
797 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
798 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
799 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
800 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
801 prototype.
802 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
803 prototype.
804 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
805 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
806 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
807 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
808 prototype.
809 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
810 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
811 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
812 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
813 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
814 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
815 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
816 prototype.
817 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
818 prototype.
819 * annotate.c: Remove _initialize_annotate prototype.
820 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
821 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
822 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
823 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
824 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
825 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
826 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
827 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
828 prototype.
829 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
830 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
831 * auto-load.c: Remove _initialize_auto_load prototype.
832 * auxv.c: Remove _initialize_auxv prototype.
833 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
834 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
835 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
836 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
837 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
838 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
839 prototype.
840 * break-catch-throw.c: Remove _initialize_break_catch_throw
841 prototype.
842 * breakpoint.c: Remove _initialize_breakpoint prototype.
843 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
844 * btrace.c: Remove _initialize_btrace prototype.
845 * charset.c: Remove _initialize_charset prototype.
846 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
847 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
848 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
849 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
850 * cli/cli-script.c: Remove _initialize_cli_script prototype.
851 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
852 * coffread.c: Remove _initialize_coffread prototype.
853 * compile/compile.c: Remove _initialize_compile prototype.
854 * complaints.c: Remove _initialize_complaints prototype.
855 * completer.c: Remove _initialize_completer prototype.
856 * copying.awk: Remove _initialize_copying prototype.
857 * copying.c: Regenerate.
858 * core-regset.c: Remove _initialize_core_regset prototype.
859 * corefile.c: Remove _initialize_core prototype.
860 * corelow.c: Remove _initialize_corelow prototype.
861 * cp-abi.c: Remove _initialize_cp_abi prototype.
862 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
863 * cp-support.c: Remove _initialize_cp_support prototype.
864 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
865 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
866 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
867 * ctf.c: Remove _initialize_ctf prototype.
868 * d-lang.c: Remove _initialize_d_language prototype.
869 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
870 prototype.
871 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
872 * dbxread.c: Remove _initialize_dbxread prototype.
873 * dcache.c: Remove _initialize_dcache prototype.
874 * demangle.c: Remove _initialize_demangler prototype.
875 * disasm-selftests.c: Remove _initialize_disasm_selftests
876 prototype.
877 * disasm.c: Remove _initialize_disasm prototype.
878 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
879 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
880 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
881 prototype.
882 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
883 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
884 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
885 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
886 * elfread.c: Remove _initialize_elfread prototype.
887 * exec.c: Remove _initialize_exec prototype.
888 * extension.c: Remove _initialize_extension prototype.
889 * f-lang.c: Remove _initialize_f_language prototype.
890 * f-valprint.c: Remove _initialize_f_valprint prototype.
891 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
892 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
893 * filesystem.c: Remove _initialize_filesystem prototype.
894 * findcmd.c: Remove _initialize_mem_search prototype.
895 * fork-child.c: Remove _initialize_fork_child prototype.
896 * frame-base.c: Remove _initialize_frame_base prototype.
897 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
898 * frame.c: Remove _initialize_frame prototype.
899 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
900 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
901 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
902 * gcore.c: Remove _initialize_gcore prototype.
903 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
904 * gdbarch.c: Regenerate.
905 * gdbarch.sh: Remove _initialize_gdbarch prototype.
906 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
907 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
908 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
909 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
910 * go-lang.c: Remove _initialize_go_language prototype.
911 * go32-nat.c: Remove _initialize_go32_nat prototype.
912 * guile/guile.c: Remove _initialize_guile prototype.
913 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
914 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
915 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
916 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
917 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
918 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
919 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
920 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
921 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
922 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
923 prototype.
924 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
925 prototype.
926 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
927 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
928 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
929 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
930 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
931 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
932 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
933 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
934 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
935 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
936 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
937 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
938 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
939 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
940 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
941 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
942 prototype.
943 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
944 prototype.
945 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
946 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
947 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
948 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
949 * infcall.c: Remove _initialize_infcall prototype.
950 * infcmd.c: Remove _initialize_infcmd prototype.
951 * inferior.c: Remove _initialize_inferiors prototype.
952 * inflow.c: Remove _initialize_inflow prototype.
953 * infrun.c: Remove _initialize_infrun prototype.
954 * interps.c: Remove _initialize_interpreter prototype.
955 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
956 * jit.c: Remove _initialize_jit prototype.
957 * language.c: Remove _initialize_language prototype.
958 * linux-fork.c: Remove _initialize_linux_fork prototype.
959 * linux-nat.c: Remove _initialize_linux_nat prototype.
960 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
961 * linux-thread-db.c: Remove _initialize_thread_db prototype.
962 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
963 * m2-lang.c: Remove _initialize_m2_language prototype.
964 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
965 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
966 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
967 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
968 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
969 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
970 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
971 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
972 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
973 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
974 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
975 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
976 * machoread.c: Remove _initialize_machoread prototype.
977 * macrocmd.c: Remove _initialize_macrocmd prototype.
978 * macroscope.c: Remove _initialize_macroscope prototype.
979 * maint.c: Remove _initialize_maint_cmds prototype.
980 * mdebugread.c: Remove _initialize_mdebugread prototype.
981 * memattr.c: Remove _initialize_mem prototype.
982 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
983 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
984 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
985 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
986 * mi/mi-main.c: Remove _initialize_mi_main prototype.
987 * microblaze-linux-tdep.c: Remove
988 _initialize_microblaze_linux_tdep prototype.
989 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
990 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
991 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
992 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
993 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
994 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
995 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
996 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
997 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
998 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
999 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1000 prototype.
1001 * mipsread.c: Remove _initialize_mipsread prototype.
1002 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1003 prototype.
1004 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1005 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1006 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1007 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1008 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1009 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1010 prototype.
1011 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1012 * nto-procfs.c: Remove _initialize_procfs prototype.
1013 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1014 * objc-lang.c: Remove _initialize_objc_language prototype.
1015 * objfiles.c: Remove _initialize_objfiles prototype.
1016 * observer.c: Remove observer_test_first_notification_function,
1017 observer_test_second_notification_function,
1018 observer_test_third_notification_function, and
1019 _initialize_observer prototypes.
1020 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1021 * osabi.c: Remove _initialize_gdb_osabi prototype.
1022 * osdata.c: Remove _initialize_osdata prototype.
1023 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1024 * parse.c: Remove _initialize_parse prototype.
1025 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1026 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1027 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1028 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1029 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1030 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1031 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1032 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1033 * printcmd.c: Remove _initialize_printcmd prototype.
1034 * probe.c: Remove _initialize_probe prototype.
1035 * proc-api.c: Remove _initialize_proc_api prototype.
1036 * proc-events.c: Remove _initialize_proc_events prototype.
1037 * proc-service.c: Remove _initialize_proc_service prototype.
1038 * procfs.c: Remove _initialize_procfs prototype.
1039 * psymtab.c: Remove _initialize_psymtab prototype.
1040 * python/python.c: Remove _initialize_python prototype.
1041 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1042 * record-btrace.c: Remove _initialize_record_btrace prototype.
1043 * record-full.c: Remove _initialize_record_full prototype.
1044 * record.c: Remove _initialize_record prototype.
1045 * regcache.c: Remove _initialize_regcache prototype.
1046 * reggroups.c: Remove _initialize_reggroup prototype.
1047 * remote-notif.c: Remove _initialize_notif prototype.
1048 * remote-sim.c: Remove _initialize_remote_sim prototype.
1049 * remote.c: Remove _initialize_remote prototype.
1050 * reverse.c: Remove _initialize_reverse prototype.
1051 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1052 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1053 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1054 prototype.
1055 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1056 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1057 * rust-exp.y: Remove _initialize_rust_exp prototype.
1058 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1059 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1060 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1061 * score-tdep.c: Remove _initialize_score_tdep prototype.
1062 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1063 prototype.
1064 * ser-go32.c: Remove _initialize_ser_dos prototype.
1065 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1066 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1067 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1068 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1069 * serial.c: Remove _initialize_serial prototype.
1070 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1071 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1072 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1073 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1074 * skip.c: Remove _initialize_step_skip prototype.
1075 * sol-thread.c: Remove _initialize_sol_thread prototype.
1076 * solib-aix.c: Remove _initialize_solib_aix prototype.
1077 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1078 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1079 * solib-frv.c: Remove _initialize_frv_solib prototype.
1080 * solib-spu.c: Remove _initialize_spu_solib prototype.
1081 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1082 * solib-target.c: Remove _initialize_solib_target prototype.
1083 * solib.c: Remove _initialize_solib prototype.
1084 * source.c: Remove _initialize_source prototype.
1085 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1086 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1087 prototype.
1088 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1089 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1090 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1091 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1092 prototype.
1093 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1094 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1095 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1096 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1097 prototype.
1098 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1099 prototype.
1100 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1101 prototype.
1102 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1103 prototype.
1104 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1105 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1106 prototype.
1107 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1108 prototype.
1109 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1110 prototype.
1111 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1112 prototype.
1113 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1114 prototype.
1115 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1116 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1117 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1118 * stabsread.c: Remove _initialize_stabsread prototype.
1119 * stack.c: Remove _initialize_stack prototype.
1120 * stap-probe.c: Remove _initialize_stap_probe prototype.
1121 * std-regs.c: Remove _initialize_frame_reg prototype.
1122 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1123 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1124 * symfile.c: Remove _initialize_symfile prototype.
1125 * symmisc.c: Remove _initialize_symmisc prototype.
1126 * symtab.c: Remove _initialize_symtab prototype.
1127 * target-dcache.c: Remove _initialize_target_dcache prototype.
1128 * target-descriptions.c: Remove _initialize_target_descriptions
1129 prototype.
1130 * thread.c: Remove _initialize_thread prototype.
1131 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1132 prototype.
1133 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1134 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1135 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1136 prototype.
1137 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1138 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1139 * tracefile.c: Remove _initialize_tracefile prototype.
1140 * tracepoint.c: Remove _initialize_tracepoint prototype.
1141 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1142 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1143 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1144 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1145 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1146 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1147 * tui/tui.c: Remove _initialize_tui prototype.
1148 * typeprint.c: Remove _initialize_typeprint prototype.
1149 * user-regs.c: Remove _initialize_user_regs prototype.
1150 * utils.c: Remove _initialize_utils prototype.
1151 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1152 * valarith.c: Remove _initialize_valarith prototype.
1153 * valops.c: Remove _initialize_valops prototype.
1154 * valprint.c: Remove _initialize_valprint prototype.
1155 * value.c: Remove _initialize_values prototype.
1156 * varobj.c: Remove _initialize_varobj prototype.
1157 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1158 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1159 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1160 * windows-nat.c: Remove _initialize_windows_nat,
1161 _initialize_check_for_gdb_ini, and _initialize_loadable
1162 prototypes.
1163 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1164 * xcoffread.c: Remove _initialize_xcoffread prototype.
1165 * xml-support.c: Remove _initialize_xml_support prototype.
1166 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1167 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1168 prototype.
1169 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1170 prototype.
1171 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1172
a611b5cb
KS
11732017-09-08 Keith Seitz <keiths@redhat.com>
1174
1175 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1176 field.
1177
469412dd
CW
11782017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1179
1180 * f-valprint.c (f_val_print): Remove check for one byte
1181 sized integers. Remove printing of character type.
1182
a5ad232b
FP
11832017-09-08 Frank Penczek <frank.penczek@intel.com>
1184 Christoph Weinmann <christoph.t.weinmann@intel.com>
1185 Bernhard Heckel <bernhard.heckel@intel.com>
1186
1187 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1188 to maintain proper indentation when printing pointers/refs.
1189
e5014227
JB
11902017-09-07 Joel Brobecker <brobecker@adacore.com>
1191
1192 GDB 8.0.1 released.
1193
63c99141
JB
11942017-09-07 Joel Brobecker <brobecker@adacore.com>
1195
1196 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1197
69c1e056
TT
11982017-09-05 Tom Tromey <tom@tromey.com>
1199
1200 * parse.c (funcall_chain): Now a std::vector.
1201 (start_arglist, end_arglist): Simplify.
1202 (free_funcalls): Remove.
1203 (parse_exp_in_context_1): Remove cleanup.
1204
fef704bf
TT
12052017-09-05 Tom Tromey <tom@tromey.com>
1206
1207 * go-exp.y (go_parse): Don't create a cleanup.
1208
5613c585
TT
12092017-09-05 Tom Tromey <tom@tromey.com>
1210
1211 * d-exp.y (PrimaryExpression): Use std::string.
1212 (d_parse): Don't create a cleanup.
1213
eae49211
TT
12142017-09-05 Tom Tromey <tom@tromey.com>
1215
1216 * utils.c (do_clear_parser_state): Remove.
1217 (make_cleanup_clear_parser_state): Remove.
1218 * p-exp.y (pascal_parse): Use scoped_restore.
1219 * m2-exp.y (m2_parse): Use scoped_restore.
1220 * f-exp.y (f_parse): Use scoped_restore.
1221 * d-exp.y (d_parse): Use scoped_restore.
1222 * c-exp.y (c_parse): Use scoped_restore.
1223 * ada-exp.y (ada_parse): Use scoped_restore.
1224 * utils.h (make_cleanup_clear_parser_state): Remove.
1225
73b9be8b
KS
12262017-09-06 Keith Seitz <keiths@redhat.com>
1227
1228 * dwarf2read.c (dw2_linkage_name_attr): New function.
1229 (dw2_linkage_name): New function.
1230 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1231 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1232 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1233
a102602b
KR
12342017-09-06 Kamil Rytarowski <n54@gmx.com>
1235
1236 * config/djgpp/djconfig.sh: Correct shell portability issue.
1237
28ad437d
KR
12382017-09-06 Kamil Rytarowski <n54@gmx.com>
1239
1240 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1241
351787dd
JB
12422017-09-06 John Baldwin <jhb@FreeBSD.org>
1243
1244 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1245 * NEWS: Mention new FreeBSD/mips native configuration.
1246 * configure.host: Add aarch64*-*-freebsd*.
1247 * configure.nat: Likewise.
1248 * aarch64-fbsd-nat.c: New file.
1249
c0f84956
JB
12502017-09-06 John Baldwin <jhb@FreeBSD.org>
1251
1252 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1253 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1254 * NEWS: Mention new FreeBSD/aarch64 target.
1255 * configure.tgt: Add aarch64*-*-freebsd*.
1256 * aarch64-fbsd-tdep.c: New file.
1257 * aarch64-fbsd-tdep.h: New file.
1258
7610297a
KR
12592017-09-06 Kamil Rytarowski <n54@gmx.com>
1260
1261 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1262
fbd1b771
JK
12632017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1264
1265 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1266 of TLS symbols.
1267
5ca79eae
PW
12682017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1269
1270 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1271 call.
1272
bf93d7ba
SM
12732017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1274
1275 * infrun.c (follow_exec): Call add_thread after
1276 target_find_description.
1277
1bb7c059
SM
12782017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1279
1280 * infrun.c (handle_inferior_event_1): When exec'ing, read
1281 stop_pc after follow_exec.
1282
fc809827
SM
12832017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1284
1285 * remote.c (process_g_packet): Update error message.
1286
d2fcdd85
YQ
12872017-09-05 Yao Qi <yao.qi@linaro.org>
1288
1289 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1290 targets.
1291
e69570ee
PA
12922017-09-05 Pedro Alves <palves@redhat.com>
1293
1294 * eval.c (eval_call, evaluate_funcall): New functions, factored
1295 out from ...
1296 (evaluate_subexp_standard): ... this.
1297
22916b07
YQ
12982017-09-05 Yao Qi <yao.qi@linaro.org>
1299
1300 * amd64-tdep.c (amd64_target_description): Create target
1301 descriptions.
1302 (_initialize_amd64_tdep): Don't call functions
1303 initialize_tdesc_amd64_*. Add self tests.
1304 * arch/amd64.c (amd64_create_target_description): Add parameter
1305 is_linux. Call set_tdesc_osabi if is_linux is true.
1306 * arch/amd64.h (amd64_create_target_description): Update the
1307 declaration.
1308 * arch/i386.c (i386_create_target_description): Add parameter
1309 is_linux. Call set_tdesc_osabi if is_linux is true.
1310 * arch/i386.h (i386_create_target_description): Update
1311 declaration.
1312 * configure.tgt: Add i386.o to gdb_target_obs.
1313 * features/Makefile (XMLTOC): Remove i386/*.xml.
1314 * features/i386/amd64-avx-avx512.c: Remove.
1315 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1316 * features/i386/amd64-avx-mpx.c: Remove.
1317 * features/i386/amd64-avx.c: Remove.
1318 * features/i386/amd64-mpx.c: Remove.
1319 * features/i386/amd64.c: Remove.
1320 * features/i386/i386-avx-avx512.c: Remove.
1321 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1322 * features/i386/i386-avx-mpx.c: Remove.
1323 * features/i386/i386-avx.c: Remove.
1324 * features/i386/i386-mmx.c: Remove.
1325 * features/i386/i386-mpx.c: Remove.
1326 * features/i386/i386.c: Remove.
1327 * i386-tdep.c: Don't include features/i386/i386*.c., include
1328 target-descriptions.h and arch/i386.h.
1329 (i386_target_description): Create target descriptions.
1330 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1331 functions. Do self tests.
1332
0854b7b1
YQ
13332017-09-05 Yao Qi <yao.qi@linaro.org>
1334
1335 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1336 * features/i386/amd64-avx-avx512-linux.c: Removed.
1337 * features/i386/amd64-avx-linux.c: Removed.
1338 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1339 * features/i386/amd64-avx-mpx-linux.c: Removed.
1340 * features/i386/amd64-linux.c: Removed.
1341 * features/i386/amd64-mpx-linux.c: Removed.
1342 * features/i386/x32-avx-avx512-linux.c: Removed.
1343 * features/i386/x32-avx-linux.c: Removed.
1344 * features/i386/x32-linux.c: Removed.
1345
b4570e4b
YQ
13462017-09-05 Yao Qi <yao.qi@linaro.org>
1347
1348 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1349 features/i386/*.c.
1350 (amd64_linux_read_description): Call
1351 amd64_create_target_description.
1352 * arch/amd64.c: New file.
1353 * arch/amd64.h: New file.
1354 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1355 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1356
6c73f67f
YQ
13572017-09-05 Yao Qi <yao.qi@linaro.org>
1358
1359 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1360 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1361 (amd64_linux_read_description): Create target descriptions.
1362 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1363 functions. Add unit tests.
1364 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1365 x32-core.xml.
1366 * features/i386/64bit-avx.c: Generated.
1367 * features/i386/64bit-avx512.c: Generated.
1368 * features/i386/64bit-core.c: Generated.
1369 * features/i386/64bit-linux.c: Generated.
1370 * features/i386/64bit-mpx.c: Generated.
1371 * features/i386/64bit-pkeys.c: Generated.
1372 * features/i386/64bit-segments.c: Generated.
1373 * features/i386/64bit-sse.c: Generated.
1374 * features/i386/x32-core.c: Generated.
1375 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1376 c files for amd64-linux and x32-linux.
1377
9d3d478b
YQ
13782017-09-05 Yao Qi <yao.qi@linaro.org>
1379
1380 * amd64-linux-tdep.c (amd64_linux_read_description): New
1381 function.
1382 (amd64_linux_core_read_description): Call
1383 amd64_linux_read_description.
1384 (amd64_linux_init_abi): Likewise.
1385 (amd64_x32_linux_init_abi): Likewise.
1386 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1387 * x86-linux-nat.c (x86_linux_read_description): Call
1388 amd64_linux_read_description.
1389
b9f1d50f
YQ
13902017-09-05 Yao Qi <yao.qi@linaro.org>
1391
1392 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1393 comments.
1394
188c9e6d
YQ
13952017-09-05 Yao Qi <yao.qi@linaro.org>
1396
1397 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1398 * features/i386/i386-avx-avx512-linux.c: Remove.
1399 * features/i386/i386-avx-linux.c: Remove.
1400 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1401 * features/i386/i386-avx-mpx-linux.c: Remove.
1402 * features/i386/i386-linux.c: Remove.
1403 * features/i386/i386-mmx-linux.c: Remove.
1404 * features/i386/i386-mpx-linux.c: Remove.
1405
5f035c07
YQ
14062017-09-05 Yao Qi <yao.qi@linaro.org>
1407
1408 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1409 (SFILES): Add arch/i386.c.
1410 (HFILES_NO_SRCDIR): Add arch/i386.h.
1411 * arch/i386.c: New file.
1412 * arch/i386.h: New file.
1413 * arch/tdesc.h (allocate_target_description): Declare.
1414 (set_tdesc_architecture): Declare.
1415 (set_tdesc_osabi): Declare.
1416 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1417 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1418 include arch/i386.h.
1419 (i386_linux_read_description): Remove code and call
1420 i386_create_target_description.
1421 (set_tdesc_architecture): New function.
1422 (set_tdesc_osabi): New function.
1423 * target-descriptions.h (allocate_target_description): Remove.
1424
0abe8a89
YQ
14252017-09-05 Yao Qi <yao.qi@linaro.org>
1426
1427 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1428 * target-descriptions.c (tdesc_create_feature): Likewise, and
1429 adjust code.
1430 * features/i386/32bit-avx.c: Re-generated.
1431 * features/i386/32bit-avx512.c: Re-generated.
1432 * features/i386/32bit-core.c: Re-generated.
1433 * features/i386/32bit-linux.c: Re-generated.
1434 * features/i386/32bit-mpx.c: Re-generated.
1435 * features/i386/32bit-pkeys.c: Re-generated.
1436 * features/i386/32bit-sse.c: Re-generated.
1437
0a188386
YQ
14382017-09-05 Yao Qi <yao.qi@linaro.org>
1439
1440 * regformats/regdef.h (struct reg): Override operator == and !=.
1441
f49ff000
YQ
14422017-09-05 Yao Qi <yao.qi@linaro.org>
1443
1444 * arch/tdesc.h: New file.
1445 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1446 * target-descriptions.c: Update comments.
1447 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1448 declarations.
1449 * features/i386/32bit-avx.c: Re-generated.
1450 * features/i386/32bit-avx512.c: Re-generated.
1451 * features/i386/32bit-core.c: Re-generated.
1452 * features/i386/32bit-linux.c: Re-generated.
1453 * features/i386/32bit-mpx.c: Re-generated.
1454 * features/i386/32bit-pkeys.c: Re-generated.
1455 * features/i386/32bit-sse.c: Re-generated.
1456
f7000548
YQ
14572017-09-05 Yao Qi <yao.qi@linaro.org>
1458
1459 * regformats/regdat.sh: Update generated code.
1460
c9a5e2a5
YQ
14612017-09-05 Yao Qi <yao.qi@linaro.org>
1462
1463 * regformats/regdat.sh: Adjust code order.
1464
d6b687ac
SM
14652017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1466
1467 * expprint.c (dump_subexp_body_standard): Use constant format
1468 string in fprintf_filtered call.
1469
a379bfd0
JB
14702017-09-04 John Baldwin <jhb@FreeBSD.org>
1471
1472 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1473 NetBSD/i386.
1474 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1475
f7efc967
JB
14762017-09-04 John Baldwin <jhb@FreeBSD.org>
1477
1478 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1479
c49fbc6c
JB
14802017-09-04 John Baldwin <jhb@FreeBSD.org>
1481
1482 * bsd-kvm.o: Define _KMEMUSER.
1483 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1484 * configure: Regenerate.
1485
26562e73
JB
14862017-09-04 John Baldwin <jhb@FreeBSD.org>
1487
1488 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1489 * i386-fbsd-nat.c: Likewise.
1490
31cf1487
JB
14912017-09-04 John Baldwin <jhb@FreeBSD.org>
1492
1493 * unittests/array-view-selftests.c: Add include of <array>.
1494
5b9f8a7c
JB
14952017-09-04 John Baldwin <jhb@FreeBSD.org>
1496
1497 * spu-tdep.c (flush_ea_cache): Add missing argument to
1498 call_function_by_hand.
1499
d69cf9b2
PA
15002017-09-04 Pedro Alves <palves@redhat.com>
1501
1502 * NEWS (Safer support for debugging with no debug info): New.
1503
3693fdb3
PA
15042017-09-04 Pedro Alves <palves@redhat.com>
1505
1506 * c-exp.y (function_method, function_method_void): Add current
1507 instance flags to TYPE_INSTANCE.
1508 * dwarf2read.c (check_modifier): New.
1509 (compute_delayed_physnames): Assert that only C++ adds delayed
1510 physnames. Mark fn_fields as const/volatile depending on
1511 physname.
1512 * eval.c (make_params): New type_instance_flags parameter. Use
1513 it as the new type's instance flags.
1514 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1515 flags element and pass it to make_params.
1516 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1517 instance flags element.
1518 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1519 * gdbtypes.h: Include "enum-flags.h".
1520 (type_instance_flags): New enum-flags type.
1521 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
1522 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
1523 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
1524 (follow_type_instance_flags): New function.
1525 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
1526 * parser-defs.h (follow_type_instance_flags): Declare.
1527 * valops.c (value_struct_elt_for_reference): const/volatile must
1528 match too.
1529
e68cb8e0
PA
15302017-09-04 Pedro Alves <palves@redhat.com>
1531
1532 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
1533 function/method scopes; lookup the nested name as a function local
1534 static variable.
1535
858be34c
PA
15362017-09-04 Pedro Alves <palves@redhat.com>
1537
1538 (%type <voidval>): Add function_method.
1539 * c-exp.y (exp): New production for calls with no arguments.
1540 (function_method, function_method_void_or_typelist): New
1541 productions.
1542 (exp): New production for "method()::static_var".
1543 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
1544 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1545 Handle OP_FUNC_STATIC_VAR.
1546 * parse.c (operator_length_standard):
1547 Handle OP_FUNC_STATIC_VAR.
1548
dd5901a6
PA
15492017-09-04 Pedro Alves <palves@redhat.com>
1550
1551 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
1552 handling.
1553 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1554 Ditto.
1555 * parse.c (operator_length_standard, operator_check_standard):
1556 Ditto.
1557 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
1558
46a4882b
PA
15592017-09-04 Pedro Alves <palves@redhat.com>
1560
1561 * ax-gdb.c: Include "typeprint.h".
1562 (gen_expr_for_cast): New function.
1563 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
1564 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
1565 type is unknown.
1566 * dwarf2read.c (new_symbol_full): Fallback to int instead of
1567 nodebug_data_symbol.
1568 * eval.c: Include "typeprint.h".
1569 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
1570 Error out if symbol has unknown type.
1571 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
1572 evaluate_subexp_for_cast.
1573 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
1574 OP_VAR_MSYM_VALUE.
1575 (evaluate_subexp_for_cast): New function.
1576 * gdbtypes.c (init_nodebug_var_type): New function.
1577 (objfile_type): Use it to initialize types of variables with no
1578 debug info.
1579 * typeprint.c (error_unknown_type): New.
1580 * typeprint.h (error_unknown_type): New declaration.
1581 * compile/compile-c-types.c (convert_type_basic): Handle
1582 TYPE_CODE_ERROR; warn and fallback to int for variables with
1583 unknown type.
1584
fe13dfec
PA
15852017-09-04 Pedro Alves <palves@redhat.com>
1586
1587 * eval.c (evaluate_var_value): New function, factored out from ...
1588 (evaluate_subexp_standard): ... here.
1589
d008ee21
PA
15902017-09-04 Pedro Alves <palves@redhat.com>
1591
1592 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
1593 Remove useless assignments to 'op'.
1594
827d0c51
PA
15952017-09-04 Pedro Alves <palves@redhat.com>
1596
1597 * eval.c (eval_skip_value): New function.
1598 (evaluate_subexp_standard): Use it.
1599
2c5a2be1
PA
16002017-09-04 Pedro Alves <palves@redhat.com>
1601
1602 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
1603 function name from symbol/minsym and pass it to
1604 error_call_unknown_return_type.
1605
74ea4be4
PA
16062017-09-04 Pedro Alves <palves@redhat.com>
1607
1608 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
1609 * ax-gdb.c (gen_msym_var_ref): New function.
1610 (gen_expr): Handle OP_VAR_MSYM_VALUE.
1611 * eval.c (evaluate_var_msym_value): New function.
1612 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
1613 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
1614 to call_function_by_hand.
1615 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1616 Handle OP_VAR_MSYM_VALUE.
1617 (union exp_element) <msymbol>: New field.
1618 * minsyms.h (struct type): Forward declare.
1619 (find_minsym_type_and_address): Declare.
1620 * parse.c (write_exp_elt_msym): New function.
1621 (write_exp_msymbol): Delete, refactored as ...
1622 (find_minsym_type_and_address): ... this new function.
1623 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
1624 (operator_length_standard, operator_check_standard): Handle
1625 OP_VAR_MSYM_VALUE.
1626 * std-operator.def (OP_VAR_MSYM_VALUE): New.
1627
7022349d
PA
16282017-09-04 Pedro Alves <palves@redhat.com>
1629
1630 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
1631 TYPE_GNU_IFUNC specially here. Throw error if return type is
1632 unknown.
1633 * ada-typeprint.c (print_func_type): Handle functions with unknown
1634 return type.
1635 * c-typeprint.c (c_type_print_base): Handle functions and methods
1636 with unknown return type.
1637 * compile/compile-c-symbols.c (convert_symbol_bmsym)
1638 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
1639 * compile/compile-c-types.c: Include "objfiles.h".
1640 (convert_func): For functions with unknown return type, warn and
1641 default to int.
1642 * compile/compile-object-run.c (compile_object_run): Adjust call
1643 to call_function_by_hand_dummy.
1644 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
1645 call_function_by_hand.
1646 * eval.c (evaluate_subexp_standard): Adjust calls to
1647 call_function_by_hand. Handle functions and methods with unknown
1648 return type. Pass expect_type to call_function_by_hand.
1649 * f-typeprint.c (f_type_print_base): Handle functions with unknown
1650 return type.
1651 * gcore.c (call_target_sbrk): Adjust call to
1652 call_function_by_hand.
1653 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
1654 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
1655 an integer address type instead of nodebug.
1656 * guile/scm-value.c (gdbscm_value_call): Adjust call to
1657 call_function_by_hand.
1658 * infcall.c (error_call_unknown_return_type): New function.
1659 (call_function_by_hand): New "default_return_type" parameter.
1660 Pass it down.
1661 (call_function_by_hand_dummy): New "default_return_type"
1662 parameter. Use it instead of defaulting to int. If there's no
1663 default and the return type is unknown, throw an error. If
1664 there's a default return type, and the called function has no
1665 debug info, then assume the function is prototyped.
1666 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
1667 New "default_return_type" parameter.
1668 (error_call_unknown_return_type): New declaration.
1669 * linux-fork.c (call_lseek): Cast return type of lseek.
1670 (inferior_call_waitpid, checkpoint_command): Adjust calls to
1671 call_function_by_hand.
1672 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
1673 calls to call_function_by_hand.
1674 * m2-typeprint.c (m2_procedure): Handle functions with unknown
1675 return type.
1676 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1677 (value_nsstring, print_object_command): Adjust calls to
1678 call_function_by_hand.
1679 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
1680 functions with unknown return type.
1681 (pascal_type_print_func_varspec_suffix): New function.
1682 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
1683 TYPE_CODE_METHOD>: Use it.
1684 * python/py-value.c (valpy_call): Adjust call to
1685 call_function_by_hand.
1686 * rust-lang.c (rust_evaluate_funcall): Adjust call to
1687 call_function_by_hand.
1688 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
1689 call_function_by_hand.
1690 * valops.c (value_allocate_space_in_inferior): Adjust call to
1691 call_function_by_hand.
1692 * typeprint.c (type_print_unknown_return_type): New function.
1693 * typeprint.h (type_print_unknown_return_type): New declaration.
1694
54990598
PA
16952017-09-04 Pedro Alves <palves@redhat.com>
1696
1697 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
1698 types with more than one parameter as prototyped.
1699
9a24775b
PA
17002017-09-04 Pedro Alves <palves@redhat.com>
1701
1702 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
1703 (disassemble_command): Use gdb_disassembly_flags instead of bare
1704 int.
1705 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
1706 (dump_insns, do_mixed_source_and_assembly_deprecated)
1707 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
1708 Use gdb_disassembly_flags instead of bare int.
1709 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
1710 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
1711 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
1712 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
1713 (enum gdb_disassembly_flag): ... values of this new enumeration.
1714 (gdb_disassembly_flags): Define.
1715 (gdb_disassembly)
1716 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
1717 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
1718 gdb_disassembly_flags instead of bare int.
1719 * record-btrace.c (btrace_insn_history)
1720 (record_btrace_insn_history, record_btrace_insn_history_range)
1721 (record_btrace_insn_history_from): Use gdb_disassembly_flags
1722 instead of bare int.
1723 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
1724 Use gdb_disassembly_flags instead of bare int.
1725 * target-debug.h (target_debug_print_gdb_disassembly_flags):
1726 Define.
1727 * target-delegates.c: Regenerate.
1728 * target.c (target_insn_history, target_insn_history_from)
1729 (target_insn_history_range): Use gdb_disassembly_flags instead of
1730 bare int.
1731 * target.h: Include "disasm.h".
1732 (struct target_ops) <to_insn_history, to_insn_history_from,
1733 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
1734 int.
1735 (target_insn_history, target_insn_history_from)
1736 (target_insn_history_range): Use gdb_disassembly_flags instead of
1737 bare int.
1738
80a65e9b
SM
17392017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1740
1741 * cli/cli-script.c (build_command_line): For if/while commands,
1742 check whether args is empty.
1743
6b66338c
SM
17442017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1745
1746 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
1747 (enum command_control_type): Likewise.
1748 (struct command_line): Likewise.
1749 (free_command_lines): Likewise.
1750 (struct command_lines_deleter): Likewise.
1751 (command_line_up): Likewise.
1752 (read_command_lines): Likewise.
1753 (read_command_lines_1): Likewise.
1754 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
1755 (enum command_control_type): Likewise.
1756 (struct command_line): Likewise.
1757 (free_command_lines): Likewise.
1758 (struct command_lines_deleter): Likewise.
1759 (command_line_up): Likewise.
1760 (read_command_lines): Likewise.
1761 (read_command_lines_1): Likewise.
1762 * breakpoint.h: Include cli/cli-script.h.
1763 * extension-priv.h: Likewise.
1764 * gdbcmd.h: Likewise.
1765
51abb421
PA
17662017-09-04 Pedro Alves <palves@redhat.com>
1767
1768 * ada-lang.c (is_known_support_routine): Move sal declaration to
1769 where it is initialized.
1770 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
1771 (parse_breakpoint_sals, decode_static_tracepoint_spec)
1772 (clear_command, update_static_tracepoint): Remove init_sal
1773 references. Move declarations closer to initializations.
1774 * cli/cli-cmds.c (list_command): Move sal declarations closer to
1775 initializations.
1776 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
1777 references. Move sal declarations closer to initializations.
1778 * frame.c (find_frame_sal): Return a symtab_and_line via function
1779 return instead of output parameter. Remove init_sal references.
1780 * frame.h (find_frame_sal): Return a symtab_and_line via function
1781 return instead of output parameter.
1782 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
1783 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
1784 instead of memset.
1785 (gdbscm_find_pc_line): Remove init_sal reference.
1786 * infcall.c (call_function_by_hand_dummy): Remove init_sal
1787 references. Move declarations closer to initializations.
1788 * infcmd.c (set_step_frame): Update. Move declarations closer to
1789 initializations.
1790 (finish_backward): Remove init_sal references. Move declarations
1791 closer to initializations.
1792 * infrun.c (process_event_stop_test, handle_step_into_function)
1793 (insert_hp_step_resume_breakpoint_at_frame)
1794 (insert_step_resume_breakpoint_at_caller): Likewise.
1795 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
1796 (symbol_to_sal): Likewise.
1797 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
1798 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
1799 to its initialization.
1800 * reverse.c (save_bookmark_command): Use new/delete. Remove
1801 init_sal references. Move declarations closer to initializations.
1802 * source.c (get_current_source_symtab_and_line): Remove brace
1803 initialization.
1804 (set_current_source_symtab_and_line): Now takes the sal by const
1805 reference. Remove brace initialization.
1806 (line_info): Remove init_sal reference.
1807 * source.h (set_current_source_symtab_and_line): Now takes a
1808 symtab_and_line via const reference.
1809 * stack.c (set_current_sal_from_frame): Adjust.
1810 (print_frame_info): Adjust.
1811 (get_last_displayed_sal): Return the sal via function return
1812 instead of via output parameter. Simplify.
1813 (frame_info): Adjust.
1814 * stack.h (get_last_displayed_sal): Return the sal via function
1815 return instead of via output parameter.
1816 * symtab.c (init_sal): Delete.
1817 (find_pc_sect_line): Remove init_sal references. Move
1818 declarations closer to initializations.
1819 (find_function_start_sal): Remove init_sal references. Move
1820 declarations closer to initializations.
1821 * symtab.h (struct symtab_and_line): In-class initialize all
1822 fields.
1823 * tracepoint.c (set_traceframe_context)
1824 (print_one_static_tracepoint_marker): Remove init_sal references.
1825 Move declarations closer to initializations.
1826 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
1827 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
1828 declarations closer to initializations.
1829 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
1830 init_sal references. Adjust.
1831
6c5b2ebe
PA
18322017-09-04 Pedro Alves <palves@redhat.com>
1833
1834 * ax-gdb.c (agent_command_1): Use range-for.
1835 * break-catch-throw.c (re_set_exception_catchpoint): Update.
1836 * breakpoint.c: Include "common/array-view.h".
1837 (init_breakpoint_sal, create_breakpoint_sal): Change sals
1838 parameter from struct symtabs_and_lines to
1839 array_view<symtab_and_line>. Adjust. Use range-for. Update.
1840 (breakpoint_sals_to_pc): Change sals parameter from struct
1841 symtabs_and_lines to std::vector reference.
1842 (check_fast_tracepoint_sals): Change sals parameter from struct
1843 symtabs_and_lines to std::array_view. Use range-for.
1844 (decode_static_tracepoint_spec): Return a std::vector instead of
1845 symtabs_and_lines. Update.
1846 (create_breakpoint): Update.
1847 (break_range_command, until_break_command, clear_command): Update.
1848 (base_breakpoint_decode_location, bkpt_decode_location)
1849 (bkpt_probe_create_sals_from_location)
1850 (bkpt_probe_decode_location, tracepoint_decode_location)
1851 (tracepoint_probe_decode_location)
1852 (strace_marker_create_sals_from_location): Return a std::vector
1853 instead of symtabs_and_lines.
1854 (strace_marker_create_breakpoints_sal): Update.
1855 (strace_marker_decode_location): Return a std::vector instead of
1856 symtabs_and_lines. Update.
1857 (update_breakpoint_locations): Change struct symtabs_and_lines
1858 parameters to gdb::array_view. Adjust.
1859 (location_to_sals): Return a std::vector instead of
1860 symtabs_and_lines. Update.
1861 (breakpoint_re_set_default): Use std::vector instead of struct
1862 symtabs_and_lines.
1863 (decode_location_default): Return a std::vector instead of
1864 symtabs_and_lines. Update.
1865 * breakpoint.h: Include "common/array-view.h".
1866 (struct breakpoint_ops) <decode_location>: Now returns a
1867 std::vector instead of returning a symtabs_and_lines via output
1868 parameter.
1869 (update_breakpoint_locations): Change sals parameters to use
1870 gdb::array_view.
1871 * cli/cli-cmds.c (edit_command, list_command): Update to use
1872 std::vector and gdb::array_view.
1873 (ambiguous_line_spec): Adjust to use gdb::array_view and
1874 range-for.
1875 (compare_symtabs): Rename to ...
1876 (cmp_symtabs): ... this. Change parameters to symtab_and_line
1877 const reference and adjust.
1878 (filter_sals): Rewrite using std::vector and standard algorithms.
1879 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
1880 (jump_command): Update to use std::vector.
1881 * linespec.c (struct linespec_state) <canonical_names>: Update
1882 comment.
1883 (add_sal_to_sals_basic): Delete.
1884 (add_sal_to_sals, filter_results, convert_results_to_lsals)
1885 (decode_line_2, create_sals_line_offset)
1886 (convert_address_location_to_sals, convert_linespec_to_sals)
1887 (convert_explicit_location_to_sals, parse_linespec)
1888 (event_location_to_sals, decode_line_full, decode_line_1)
1889 (decode_line_with_current_source)
1890 (decode_line_with_last_displayed, decode_objc)
1891 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
1892 (linespec_result::~linespec_result): Adjust to use std::vector
1893 instead of symtabs_and_lines.
1894 * linespec.h (linespec_sals::sals): Now a std::vector.
1895 (struct linespec_result): Use std::vector, bool, and in-class
1896 initialization.
1897 (decode_line_1, decode_line_with_current_source)
1898 (decode_line_with_last_displayed): Return std::vector.
1899 * macrocmd.c (info_macros_command): Use std::vector.
1900 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
1901 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
1902 std::vector.
1903 * probe.h (parse_probes): Return a std::vector.
1904 * python/python.c (gdbpy_decode_line): Use std::vector and
1905 gdb::array_view.
1906 * source.c (select_source_symtab, line_info): Use std::vector.
1907 * stack.c (func_command): Use std::vector.
1908 * symtab.h (struct symtabs_and_lines): Delete.
1909 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
1910
7c44b49c
PA
19112017-09-04 Pedro Alves <palves@redhat.com>
1912
1913 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1914 unittests/array-view-selftests.c.
1915 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
1916 * common/array-view.h: New file.
1917 * unittests/array-view-selftests.c: New file.
1918
e439fa14
PA
19192017-09-04 Pedro Alves <palves@redhat.com>
1920
1921 * cli/cli-cmds.c (edit_command): Pass message to
1922 ambiguous_line_spec.
1923 (list_command): Pass message to ambiguous_line_spec. Say
1924 "first"/"last" instead of "start" and "end" to be consistent with
1925 the manual.
1926 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
1927 them to print formatted message.
1928
7525b645
PA
19292017-09-04 Pedro Alves <palves@redhat.com>
1930
1931 * btrace.c (ftrace_add_pt): Pass btrace_insn to
1932 ftrace_update_insns by reference instead of pointer.
1933
badc0020
YQ
19342017-09-04 Yao Qi <yao.qi@linaro.org>
1935
1936 * i386-go32-tdep.c: Include x86-xstate.h.
1937 (i386_go32_init_abi): Call i386_target_description.
1938 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
1939 if xcr0 is X86_XSTATE_X87_MASK.
1940 * i386-tdep.h (tdesc_i386): Remove the declaration.
1941 (tdesc_i386_mmx): Likewise.
1942
d78bdb54
YQ
19432017-09-04 Yao Qi <yao.qi@linaro.org>
1944
1945 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
1946 X86_XSTATE_SSE_MASK instead of 0.
1947
ca1fa5ee
YQ
19482017-09-04 Yao Qi <yao.qi@linaro.org>
1949
1950 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
1951 i386_target_description.
1952 * i386-fbsd-nat.c (i386fbsd_read_description): Call
1953 i386_target_description.
1954 * i386-tdep.c (i386_gdbarch_init): Likewise.
1955
2434b019
YQ
19562017-09-04 Yao Qi <yao.qi@linaro.org>
1957
1958 * amd64-darwin-tdep.c: Include "x86-xstate.h".
1959 (x86_darwin_init_abi_64): Call amd64_target_description.
1960 * amd64-dicos-tdep.c: Likewise.
1961 * amd64-fbsd-nat.c: Likewise.
1962 * amd64-fbsd-tdep.c: Likewise.
1963 * amd64-nbsd-tdep.c: Likewise.
1964 * amd64-obsd-tdep.c: Likewise.
1965 * amd64-sol2-tdep.c: Likewise.
1966 * amd64-windows-tdep.c: Likewise.
1967 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
1968
0860c437
SM
19692017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1970
1971 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
1972 (btrace_function) <insn>: Change type to use std::vector.
1973 * btrace.c (ftrace_debug, ftrace_call_num_insn,
1974 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
1975 ftrace_update_insns, ftrace_compute_global_level_offset,
1976 btrace_stitch_bts, btrace_clear, btrace_insn_get,
1977 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
1978 change to std::vector.
1979 (ftrace_update_insns): Adjust to change to std::vector, change
1980 type of INSN parameter.
1981 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
1982 * record-btrace.c (btrace_call_history_insn_range,
1983 btrace_compute_src_line_range,
1984 record_btrace_frame_prev_register): Adjust to change to
1985 std::vector.
1986 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
1987 to change to std::vector.
1988
0638b7f9
TT
19892017-09-03 Tom Tromey <tom@tromey.com>
1990
1991 * corefile.c (reopen_exec_file): Use std::string.
1992
8f84fb0e
TT
19932017-09-03 Tom Tromey <tom@tromey.com>
1994
1995 * compile/compile.c (compile_register_name_mangled): Return
1996 std::string.
1997 * compile/compile-loc2c.c (pushf_register_address): Update.
1998 (pushf_register): Update.
1999 * compile/compile-c-types.c (convert_array): Update.
2000 * compile/compile-c-symbols.c (generate_vla_size): Update.
2001 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2002 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2003 (convert_one_symbol): Update.
2004 (generate_c_for_for_one_variable): Update.
2005 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2006 std::string.
2007 (generate_register_struct): Update.
2008 * compile/compile-internal.h (c_get_range_decl_name): Return a
2009 std::string.
2010 (compile_register_name_mangled): Return std::string.
2011
18e9961f
TT
20122017-09-03 Tom Tromey <tom@tromey.com>
2013
2014 * utils.c (perror_string): Return a std::string.
2015 (throw_perror_with_name, perror_warning_with_name): Update.
2016
45343786
TT
20172017-09-03 Tom Tromey <tom@tromey.com>
2018
2019 * demangle.c (demangle_command): Use std::string,
2020 unique_xmalloc_ptr.
2021
b57af503
TT
20222017-09-03 Tom Tromey <tom@tromey.com>
2023
2024 * cli/cli-setshow.c (do_set_command): Use std::string.
2025
6eecf35f
TT
20262017-09-03 Tom Tromey <tom@tromey.com>
2027
2028 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2029
56496dd4
TT
20302017-09-03 Tom Tromey <tom@tromey.com>
2031
2032 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2033
e91a1fa7
TT
20342017-09-03 Tom Tromey <tom@tromey.com>
2035
2036 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2037 gdb::unique_xmalloc_ptr.
2038
7ffd83d7
TT
20392017-09-03 Tom Tromey <tom@tromey.com>
2040
2041 * thread.c (print_thread_info_1): Use string_printf.
2042 (thread_apply_command, thread_apply_all_command): Use
2043 std::string.
2044
1ccbe998
TT
20452017-09-03 Tom Tromey <tom@tromey.com>
2046
2047 * valprint.c (val_print_string): Update.
2048 * gdbcore.h (memory_error_message): Return std::string.
2049 * corefile.c (memory_error_message): Return std::string.
2050 (memory_error): Update.
2051 * breakpoint.c (insert_bp_location): Update.
2052
23fdd69e
SM
20532017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2054
2055 * target/waitstatus.h (target_waitstatus_to_string): Change
2056 return type to std::string.
2057 * target/waitstatus.c (target_waitstatus_to_string): Return
2058 std::string.
2059 * target.h (target_waitstatus_to_string): Remove declaration.
2060 * infrun.c (resume, clear_proceed_status_thread,
2061 print_target_wait_results, do_target_wait, save_waitstatus,
2062 stop_all_threads): Adjust.
2063 * record-btrace.c (record_btrace_wait): Adjust.
2064 * target-debug.h
2065 (target_debug_print_struct_target_waitstatus_p): Adjust.
2066
5c811d30
JK
20672017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2068
2069 PR gdb/22046
2070 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2071 detection.
2072
0a2dde4a
SDJ
20732017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2074
2075 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2076 for setting/unsetting environment variables on the remote target.
2077 (New remote packets): Add entries for QEnvironmentHexEncoded,
2078 QEnvironmentUnset and QEnvironmentReset.
2079 * common/environ.c (gdb_environ::operator=): Extend method to
2080 handle m_user_set_env_list and m_user_unset_env_list.
2081 (gdb_environ::clear): Likewise.
2082 (match_var_in_string): Change type of first parameter from 'char
2083 *' to 'const char *'.
2084 (gdb_environ::set): Extend method to handle
2085 m_user_set_env_list and m_user_unset_env_list.
2086 (gdb_environ::unset): Likewise.
2087 (gdb_environ::clear_user_set_env): New method.
2088 (gdb_environ::user_set_envp): Likewise.
2089 (gdb_environ::user_unset_envp): Likewise.
2090 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2091 m_user_unset_env_list on move constructor/assignment.
2092 (unset): Add new default parameter 'update_unset_list = true'.
2093 (clear_user_set_env): New method.
2094 (user_set_envp): Likewise.
2095 (user_unset_envp): Likewise.
2096 (m_user_set_env_list): New std::set.
2097 (m_user_unset_env_list): Likewise.
2098 * common/rsp-low.c (hex2str): New function.
2099 (bin2hex): New overload for bin2hex function.
2100 * common/rsp-low.c (hex2str): New prototype.
2101 (str2hex): New overload prototype.
2102 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2103 QEnvironmentUnset and QEnvironmentReset.
2104 (remote_protocol_features): Add QEnvironmentHexEncoded,
2105 QEnvironmentUnset and QEnvironmentReset packets.
2106 (send_environment_packet): New function.
2107 (extended_remote_environment_support): Likewise.
2108 (extended_remote_create_inferior): Call
2109 extended_remote_environment_support.
2110 (_initialize_remote): Add QEnvironmentHexEncoded,
2111 QEnvironmentUnset and QEnvironmentReset packet configs.
2112 * unittests/environ-selftests.c (gdb_selftest_env_var):
2113 New variable.
2114 (test_vector_initialization): New function.
2115 (test_init_from_host_environ): Likewise.
2116 (test_reinit_from_host_environ): Likewise.
2117 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2118 Likewise.
2119 (test_unset_set_empty_vector): Likewise.
2120 (test_vector_clear): Likewise.
2121 (test_std_move): Likewise.
2122 (test_move_constructor):
2123 (test_self_move): Likewise.
2124 (test_set_unset_reset): Likewise.
2125 (run_tests): Rewrite in terms of the functions above.
2126
654670a4
WP
21272017-08-31 Weimin Pan <weimin.pan@oracle.com>
2128
2129 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2130 (adi_available): Use a temp variable of type CORE_ADDR as argument
2131 3 when calling target_auxv_search.
2132 (adi_normalize_address): Use masks and xor operators to calculate
2133 normalized address.
2134 (adi_read_versions, adi_write_versions, adi_print_versions)
2135 (do_examine, do_assign): Use paddress.
2136
7755ddb7
JB
21372017-08-29 John Baldwin <jhb@FreeBSD.org>
2138
2139 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2140 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2141 out of loop and add supply of FIR.
2142 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2143 add collect of FIR.
2144
fd437cbc
SM
21452017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2146
3804a343 2147 PR gdb/21827
fd437cbc
SM
2148 * cli/cli-script.c (define_command): Don't convert command name
2149 to lower case.
2150
988f6b3d
JB
21512017-08-25 Joel Brobecker <brobecker@adacore.com>
2152
2153 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2154 Update all callers accordingly. Remove all code blocks handling
2155 the case where DISPP is not NULL.
2156
663c44ac
JK
21572017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2158
2159 PR symtab/22003
2160 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2161 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2162 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2163
f1902523
JK
21642017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2165
2166 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2167 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2168 (read_comp_units_from_section): New parameter abbrev_section, use
2169 read_and_check_comp_unit_head, allocate signatured_type if needed.
2170 (create_all_comp_units): Update read_comp_units_from_section caller.
2171
87215ad1
SDJ
21722017-08-23 Pedro Alves <palves@redhat.com>
2173
2174 PR remote/21852
2175 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2176 to null_ptid and switch to thread without reading the registers
2177 after adding the inferior.
2178
6e41ddec
JK
21792017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2180
2181 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2182 compile-gcc.
2183 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2184 (compile_to_object): Implement compile_gcc.
2185 (_initialize_compile): Install "set compile-gcc". Initialize
2186 compile_gcc.
2187
e68c32d5
JK
21882017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2189
2190 * compile/compile.c (compile_to_object): Conditionally call
2191 set_verbose. Conditionally call compile or compile_v0.
2192
58afddc6
WP
21932017-08-07 Weimin Pan <weimin.pan@oracle.com>
2194
2195 * sparc64-tdep.h: (adi_normalize_address): New export.
2196 * sparc-nat.h: (open_adi_tag_fd): New export.
2197 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2198 * sparc64-linux-tdep.c:
2199 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2200 (sparc64_linux_handle_segmentation_fault): New function.
2201 (sparc64_linux_init_abi): Register
2202 sparc64_linux_handle_segmentation_fault
2203 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2204 (sparc64_addr_bits_remove): New function.
2205 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2206 (MAX_PROC_NAME_SIZE): New macro.
2207 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2208 (sparc64adilist): New variable.
2209 (adi_proc_list): New variable.
2210 (find_adi_info): New function.
2211 (add_adi_info): New function.
2212 (get_adi_info_proc): New function.
2213 (get_adi_info): New function.
2214 (info_adi_command): New function.
2215 (read_maps_entry): New function.
2216 (adi_available): New function.
2217 (adi_normalize_address): New function.
2218 (adi_align_address): New function.
2219 (adi_convert_byte_count): New function.
2220 (adi_tag_fd): New function.
2221 (adi_is_addr_mapped): New function.
2222 (adi_read_versions): New function.
2223 (adi_write_versions): New function.
2224 (adi_print_versions): New function.
2225 (do_examine): New function.
2226 (do_assign): New function.
2227 (adi_examine_command): New function.
2228 (adi_assign_command): New function.
2229 (_initialize_sparc64_adi_tdep): New function.
2230
11db9430
SM
22312017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2232
2233 * breakpoint.c (breakpoints_info): Rename to ...
2234 (info_breakpoints_command): ... this.
2235 (watchpoints_info): Rename to ...
2236 (info_watchpoints_command): ... this.
2237 (tracepoints_info): Rename to ...
2238 (info_tracepoints_command): ... this.
2239 (_initialize_breakpoint): Adjust.
2240 * dcache.c (dcache_info): Rename to ...
2241 (info_display_command): ... this.
2242 (_initialize_dcache): Adjust.
2243 * frame.h (args_info): Rename to ...
2244 (info_args_command): ... this.
2245 (locals_info): Rename to ...
2246 (info_locals_command): ... this.
2247 * infcmd.c (nofp_registers_info): Rename to ...
2248 (info_registers_command): ... this.
2249 (float_info): Rename to ...
2250 (info_float_command): ... this.
2251 (program_info): Rename to ...
2252 (info_program_command): ... this.
2253 (all_registers_info): Rename to ...
2254 (info_all_registers_command): ... this.
2255 (vector_info): Rename to ...
2256 (info_vector_command): ... this.
2257 (float_info): Rename to ...
2258 (info_float_command): ... this.
2259 (_initialize_infcmd): Adjust.
2260 * inferior.h (term_info): Rename to ...
2261 (info_terminal_command): ... this.
2262 * inflow.c (term_info): Rename to ...
2263 (info_terminal_command): ... this.
2264 (_initialize_inflow): Adjust.
2265 * infrun.c (signals_info): Rename to ...
2266 (info_signals_command): ... this.
2267 (_initialize_infrun): Adjust.
2268 * objc-lang.c (classes_info): Rename to ...
2269 (info_classes_command): ... this.
2270 (selectors_info): Rename to ...
2271 (info_selectors_command): ... this.
2272 (_initialize_objc_language): Adjust.
2273 * printcmd.c (sym_info): Rename to ...
2274 (info_symbol_command): ... this.
2275 (address_info): Rename to ...
2276 (info_address_command): ... this.
2277 (display_info): Rename to ...
2278 (info_display_command): ... this.
2279 (_initialize_printcmd): Adjust.
2280 * reverse.c (bookmarks_info): Rename to ...
2281 (info_breakpoints_command): ... this.
2282 (_initialize_reverse): Adjust.
2283 * ser-go32.c (dos_info): Rename to ...
2284 (info_serial_command): ... this.
2285 (_initialize_ser_dos): Adjust.
2286 * skip.c (skip_info): Rename to ...
2287 (info_skip_command): ... this.
2288 (_initialize_step_skip): Adjust.
2289 * source.c (line_info): Rename to ...
2290 (info_line_command): ... this.
2291 (source_info): Rename to ...
2292 (info_source_command)
2293 * stack.c (frame_info): Rename to ...
2294 (info_frame_command): ... this.
2295 (locals_info): Rename to ...
2296 (info_locals_command): ... this.
2297 (args_info): Rename to ...
2298 (info_args_command): ... this.
2299 (_initialize_stack): Adjust.
2300 * symtab.c (sources_info): Rename to ...
2301 (info_sources_command): ... this.
2302 (variables_info): Rename to ...
2303 (info_variables_command): ... this.
2304 (functions_info): Rename to ...
2305 (info_functions_command): ... this.
2306 (types_info): Rename to ...
2307 (info_types_command): ... this.
2308 (_initialize_symtab): Adjust.
2309 * target.c (target_info): Rename to ...
2310 (info_target_command): ... this.
2311 (initialize_targets): Adjust.
2312 * tracepoint.c (tvariables_info): Rename to ...
2313 (info_tvariables_command): ... this.
2314 (scope_info): Rename to ...
2315 (info_scope_command): ... this.
2316 (trace_dump_actions): Adjust.
2317 (_initialize_tracepoint): Adjust.
2318
b270e6f9
TT
23192017-08-22 Tom Tromey <tom@tromey.com>
2320
2321 * breakpoint.h (install_breakpoint): Update.
2322 * breakpoint.c (add_solib_catchpoint): Update.
2323 (install_breakpoint): Change argument to a std::unique_ptr.
2324 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2325 (create_breakpoint_sal, create_breakpoint): Update.
2326 (watch_command_1, catch_exec_command_1)
2327 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2328 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2329 Return the breakpoint.
2330 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2331 (new_single_step_breakpoint): Update.
2332 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2333 std::unique_ptr.
2334 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2335 std::unique_ptr.
2336 * break-catch-sig.c (create_signal_catchpoint): Use
2337 std::unique_ptr.
2338 * ada-lang.c (create_ada_exception_catchpoint): Use
2339 std::unique_ptr.
2340
36bd8eaa
TT
23412017-08-22 Tom Tromey <tom@tromey.com>
2342
2343 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2344
56f37645
TT
23452017-08-22 Tom Tromey <tom@tromey.com>
2346
2347 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2348 (lookup_partial_symbol): Update.
2349
0b581c69
TT
23502017-08-22 Tom Tromey <tom@tromey.com>
2351
2352 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2353 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2354 (find_and_open_source, symtab_to_fullname): Update.
2355 * psymtab.c (psymtab_to_fullname): Update.
2356
14278e1f
TT
23572017-08-22 Tom Tromey <tom@tromey.com>
2358
2359 * exec.c (exec_file_attach): Update.
2360 * linux-thread-db.c (try_thread_db_load): Update.
2361 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2362 * utils.c (gdb_realpath): Change return type.
2363 (gdb_realpath_keepfile): Update.
2364 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2365 (_initialize_utils): Register the new self test.
2366 * source.c (openp): Update.
2367 (find_and_open_source): Update.
2368 * nto-tdep.c (nto_find_and_open_solib): Update.
2369 * main.c (set_gdb_data_directory): Update.
2370 (captured_main_1): Update.
2371 * dwarf2read.c (dwarf2_get_dwz_file): Update
2372 (dw2_map_symbol_filenames): Update.
2373 * auto-load.c (auto_load_safe_path_vec_update): Update.
2374 (filename_is_in_auto_load_safe_path_vec): Change type of
2375 "filename_realp".
2376 (auto_load_objfile_script): Update.
2377 (file_is_auto_load_safe): Update. Use std::string.
2378 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2379
4971c9a7
TT
23802017-08-22 Tom Tromey <tom@tromey.com>
2381
2382 * utils.c (gdb_realpath_keepfile): Return a
2383 gdb::unique_xmalloc_ptr.
2384 * exec.c (exec_file_attach): Update.
2385 * utils.h (gdb_realpath_keepfile): Return a
2386 gdb::unique_xmalloc_ptr.
2387
e3e41d58
TT
23882017-08-22 Tom Tromey <tom@tromey.com>
2389
2390 * compile/compile.c (compile_file_command): Use
2391 gdb::unique_xmalloc_ptr, std::string.
2392 * utils.c (gdb_abspath): Change return type.
2393 * source.c (openp): Update.
2394 * objfiles.c (allocate_objfile): Update.
2395 * main.c (set_gdb_data_directory): Update.
2396 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2397
0d999a6e
ZZ
23982017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2399
2400 * cli-cmds.c (list_commands): List actual code around more than
2401 one location.
2402
329d5e7e
JB
24032017-08-21 John Baldwin <jhb@FreeBSD.org>
2404
2405 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2406
bf223d3e
PA
24072017-08-21 Pedro Alves <palves@redhat.com>
2408
2409 PR gdb/19487
2410 * c-exp.y (variable production): Handle function aliases.
2411 * minsyms.c (msymbol_is_text): New function.
2412 * minsyms.h (msymbol_is_text): Declare.
2413 * symtab.c (find_function_alias_target): New function.
2414 * symtab.h (find_function_alias_target): Declare.
2415
c973d0aa
PA
24162017-08-21 Pedro Alves <palves@redhat.com>
2417
2418 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2419 typedefs.
2420 * typeprint.c (whatis_exp): If handling "whatis", and expression
2421 is OP_TYPE, strip one typedef level. Otherwise don't strip
2422 typedefs here.
2423 * valops.c (value_cast): Save "to" type before resolving
2424 stubs/typedefs. Use that type as resulting value's type.
2425
2989a365
TT
24262017-08-18 Tom Tromey <tom@tromey.com>
2427 Pedro Alves <palves@redhat.com>
2428
2429 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2430 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2431 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2432 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2433 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2434 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2435 (linux_get_siginfo_data): Add "thread" argument. Use
2436 scoped_restore.
2437 * linux-nat.c (linux_child_follow_fork)
2438 (check_stopped_by_watchpoint): Use scoped_restore.
2439 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2440 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2441 (restore_inferior_ptid, save_inferior_ptid): Remove.
2442 * btrace.c (btrace_fetch): Use scoped_restore.
2443 * bsd-uthread.c (bsd_uthread_fetch_registers)
2444 (bsd_uthread_store_registers): Use scoped_restore.
2445 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2446 scoped_restore.
2447 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2448 (aix_thread_xfer_partial): Use scoped_restore.
2449 * inferior.h (save_inferior_ptid): Remove.
2450
e60eb288
YQ
24512017-08-18 Yao Qi <yao.qi@linaro.org>
2452
2453 PR tdep/21818
2454 * arm-tdep.c (gdb_print_insn_arm): Mark
2455 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2456
6d580b63
YQ
24572017-08-18 Yao Qi <yao.qi@linaro.org>
2458
2459 * NEWS: Mention GDBserver's new option "--selftest".
2460 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2461 * selftest.c: Move it to common/selftest.c.
2462 * selftest.h: Move it to common/selftest.h.
2463 * selftest-arch.c (reset): New function.
2464 (tests_with_arch): Call reset.
2465
86dcbf50
YQ
24662017-08-18 Yao Qi <yao.qi@linaro.org>
2467
2468 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2469 instead of exception_fprintf and printf_filtered.
2470
7649770c
YQ
24712017-08-18 Yao Qi <yao.qi@linaro.org>
2472
2473 * selftest.c (register_self_test): Rename it to
2474 selftests::register_test.
2475 (run_self_tests): selftest::run_tests.
2476 * selftest.h: Update declarations.
2477 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2478 selftests::register_test_foreach_arch.
2479 * selftest-arch.h: Update declaration.
2480 * aarch64-tdep.c: Update.
2481 * arm-tdep.c: Likewise.
2482 * disasm-selftests.c: Likewise.
2483 * dwarf2loc.c: Likewise.
2484 * dwarf2-frame.c: Likewise.
2485 * findvar.c: Likewise.
2486 * gdbarch-selftests.c: Likewise.
2487 * maint.c (maintenance_selftest): Likewise.
2488 * regcache.c: Likewise.
2489 * rust-exp.y: Likewise.
2490 * selftest-arch.c: Likewise.
2491 * unittests/environ-selftests.c: Likewise.
2492 * unittests/function-view-selftests.c: Likewise.
2493 * unittests/offset-type-selftests.c: Likewise.
2494 * unittests/optional-selftests.c: Likewise.
2495 * unittests/scoped_restore-selftests.c: Likewise.
2496 * utils-selftests.c: Likewise.
2497
b0cba12e
PA
24982017-08-17 Pedro Alves <palves@redhat.com>
2499
2500 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2501 local.
2502
4c8aa72d
PA
25032017-08-17 Pedro Alves <palves@redhat.com>
2504
2505 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2506 field.
2507 (reset_die_in_process): Delete, replaced by ...
2508 (process_die_scope): ... this new class. Make it responsible for
2509 freeing cu->line_header too.
2510 (process_die): Use process_die_scope.
2511 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2512 cu->line_header_die_owner. Don't release the line header if it's
2513 owned by the CU.
2514 (setup_type_unit_groups): Make the CU/DIE own the line header.
2515 Don't release the line header here.
2516
ba713918
AL
25172017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2518
2519 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2520
44d0fb3a
RK
25212017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
2522
2523 * NEWS: Mention new shortcuts for nexti and stepi in TUI
2524 Single-Key mode
2525
a5afdb16
RK
25262017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
2527
2528 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
2529 mode command list.
2530
47613aeb
SH
25312017-08-15 Stafford Horne <shorne@gmail.com>
2532
2533 * MAINTAINERS (Write After Approval): Add Stafford Horne.
2534
9c3cc999
SH
25352017-08-15 Stafford Horne <shorne@gmail.com>
2536
2537 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
2538
206726fb
SDJ
25392017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
2540
2541 PR gdb/21954
2542 * infcmd.c (unset_environment_command): Use the 'clear' method on
2543 the environment instead of resetting it.
2544
0335ac6d
JB
25452017-08-15 John Baldwin <jhb@FreeBSD.org>
2546
2547 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
2548 platforms.
2549
d3abe1c8
TT
25502017-08-14 Tom Tromey <tom@tromey.com>
2551
2552 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
2553 (print_binary_chars): Likewise.
2554 (BITS_IN_BYTES): Remove.
2555
d6382fff
TT
25562017-08-14 Tom Tromey <tom@tromey.com>
2557
2558 PR gdb/21675
2559 * valprint.c (LOW_ZERO): Change value to 034.
2560 (print_octal_chars): Add static_asserts for octal constants.
2561 * printcmd.c (print_scalar_formatted): Add 'd' case.
2562
f978cb06
TT
25632017-08-11 Tom Tromey <tom@tromey.com>
2564
2565 * symfile.c (add_symbol_file_command): Use std::vector.
2566
2f5404b3
TT
25672017-08-14 Tom Tromey <tom@tromey.com>
2568
2569 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
2570 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2571 std::move.
2572 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
2573
de7985c3
PA
25742017-08-11 Pedro Alves <palves@redhat.com>
2575
2576 * infrun.c (process_event_stop_test): Adjust
2577 function_name_is_marked_for_skip call.
2578 * skip.c: Include <list>.
2579 (skiplist_entry): Make it a class with private fields, and
2580 getters/setters.
2581 (skiplist_entry_chain): Delete.
2582 (skiplist_entries): New.
2583 (skiplist_entry_count): Delete.
2584 (highest_skiplist_entry_num): New.
2585 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
2586 (add_skiplist_entry): Delete.
2587 (skiplist_entry::skiplist_entry): New.
2588 (skiplist_entry::add_entry): New.
2589 (skip_file_command, skip_function): Adjust.
2590 (compile_skip_regexp): Delete.
2591 (skip_command): Don't compile regexp here. Adjust to use
2592 skiplist_entry::add_entry.
2593 (skip_info): Adjust to use range-for and getters.
2594 (skip_enable_command, skip_disable_command): Adjust to use
2595 range-for and setters.
2596 (skip_delete_command): Adjust to use std::list.
2597 (add_skiplist_entry): Delete.
2598 (skip_file_p): Delete, refactored as ...
2599 (skiplist_entry::do_skip_file_p): ... this new method.
2600 (skip_gfile_p): Delete, refactored as ...
2601 (skiplist_entry::do_gskip_file_p): ... this new method.
2602 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
2603 (skiplist_entry::skip_function_p): ... this new method.
2604 (function_name_is_marked_for_skip): Now returns bool, and takes
2605 the function sal by const reference. Adjust to use range-for and
2606 skiplist_entry methods.
2607 (_initialize_step_skip): Remove references to
2608 skiplist_entry_chain, skiplist_entry_count.
2609 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
2610 takes the function sal by const reference.
2611
be7d3cd5
YQ
26122017-08-11 Yao Qi <yao.qi@linaro.org>
2613
2614 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
2615 (dwarf2_frame_cache): Remove reset_cache_cleanup.
2616 (dwarf2_frame_cache):
2617 * frame-unwind.c (frame_unwind_try_unwinder): Catch
2618 RETURN_MASK_ALL and set *this_case to NULL.
2619 * frame-unwind.h: Update comments.
2620
1c90d9f0
YQ
26212017-08-11 Yao Qi <yao.qi@linaro.org>
2622
2623 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
2624 (dwarf2_frame_state_copy_regs): Remove.
2625 (dwarf2_frame_state_free_regs): Remove.
2626 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
2627 (dwarf2_restore_rule): Call method .alloc_regs instead of
2628 dwarf2_frame_state_alloc_regs.
2629 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
2630 constructor. Call std::move.
2631 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
2632 (dwarf2_frame_cache): Likewise.
2633
2634 [GDB_SELF_TEST]: Include selftest.h and
2635 selftest-arch.h.
2636 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
2637 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
2638 execute_cfa_program_test.
2639
2640 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
2641 copy ctor, assignment operator, move assignment.
2642 <alloc_regs>: New method.
2643 <swap>: New method.
2644 (struct dwarf2_frame_state): Delete dtor.
2645 (dwarf2_frame_state_alloc_regs): Remove declaration.
2646 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
2647 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
2648
afe37d6b
YQ
26492017-08-11 Yao Qi <yao.qi@linaro.org>
2650
2651 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
2652 (dwarf2_frame_state::dwarf2_frame_state): New.
2653 (dwarf2_frame_state::~dwarf2_frame_state): New.
2654 (dwarf2_fetch_cfa_info): Update.
2655 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
2656 rather than a pointer. Update code.
2657 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
2658 dtor.
2659 <data_align, code_align, retaddr_column>: Change them to const.
2660 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
2661 to bool.
2662
b348037f
YQ
26632017-08-11 Yao Qi <yao.qi@linaro.org>
2664
2665 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
2666 <loc.exp>: New field.
2667 * dwarf2-frame.c (execute_cfa_program): Update.
2668 (dwarf2_frame_prev_register): Update.
2669
e7c9de26
PA
26702017-08-10 Pedro Alves <palves@redhat.com>
2671
2672 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
2673
e8c6b620
JB
26742017-08-09 John Baldwin <jhb@FreeBSD.org>
2675
2676 * fbsd-nat.c (struct fbsd_fork_info): Remove.
2677 (fbsd_pending_children): Use std::list.
2678 (fbsd_remember_child): Likewise.
2679 (fbsd_is_child_pending): Likewise.
2680 (fbsd_pending_vfork_done): Use std::forward_list.
2681 (fbsd_add_vfork_done): Likewise.
2682 (fbsd_is_vfork_done_pending): Likewise.
2683 (fbsd_next_vfork_done): Likewise.
2684
e4a26669
JB
26852017-08-09 John Baldwin <jhb@FreeBSD.org>
2686
2687 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
2688 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
2689 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
2690 for `mapfilename'.
2691 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 2692 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 2693
142311d3
JB
26942017-08-09 John Baldwin <jhb@FreeBSD.org>
2695
2696 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
2697 "filestuff.h".
2698 (fbsd_find_memory_regions): Fix `mapfile' initialization.
2699
42fa2e0e
TT
27002017-08-09 Tom Tromey <tom@tromey.com>
2701
2702 * skip.c (skiplist_entry): New constructor.
2703 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
2704 (skiplist_entry::file_is_glob): Now bool.
2705 (skiplist_entry::file, skiplist_entry::function): Now
2706 std::string.
2707 (make_skip_entry): Return a unique_ptr. Use new.
2708 (free_skiplist_entry, free_skiplist_entry_cleanup)
2709 (make_free_skiplist_entry_cleanup): Remove.
2710 (skip_command, skip_disable_command, add_skiplist_entry)
2711 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
2712 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
2713 (function_name_is_marked_for_skip): Update.
2714 (skip_delete_command): Update. Use delete.
2715
cd3af38d
JW
27162017-08-09 Jiong Wang <jiong.wang@arm.com>
2717
2718 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
2719 (aarch64_linux_core_read_description): New function.
2720 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
2721
29592bde
PA
27222017-08-09 Pedro Alves <palves@redhat.com>
2723
2724 * cp-name-parser.y (cp_comp_to_string): Return a
2725 gdb::unique_xmalloc_ptr<char>.
2726 * cp-support.c (replace_typedefs_qualified_name)
2727 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
2728 (cp_canonicalize_string_full): Use op= instead of explicit
2729 convertion.
2730 (cp_class_name_from_physname, method_name_from_physname)
2731 (cp_func_name, cp_remove_params): Adjust to use
2732 gdb::unique_xmalloc_ptr<char>.
2733 * cp-support.h (cp_comp_to_string): Return a
2734 gdb::unique_xmalloc_ptr<char>.
2735 * python/py-type.c (typy_lookup_type): Adjust to use
2736 gdb::unique_xmalloc_ptr<char>.
2737
b3340438
L
27382017-08-09 H.J. Lu <hongjiu.lu@intel.com>
2739
2740 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
2741
e88e8651
YQ
27422017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
2743 Yao Qi <yao.qi@linaro.org>
2744
2745 * cp-support.c (cp_canonicalize_string_full): Use
2746 gdb::unique_xmalloc_ptr<char>.
2747 (cp_canonicalize_string): Likewise.
2748
f5a29eb0
YQ
27492017-08-09 Yao Qi <yao.qi@linaro.org>
2750
2751 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
2752 * regformats/i386/amd64-avx-avx512.dat: Remove.
2753 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
2754 * regformats/i386/amd64-avx-mpx.dat:Remove.
2755 * regformats/i386/amd64-avx.dat: Remove.
2756 * regformats/i386/amd64-mpx.dat: Remove.
2757 * regformats/i386/i386-avx-avx512.dat: Remove.
2758 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
2759 * regformats/i386/i386-avx-mpx.dat: Remove.
2760 * regformats/i386/i386-mmx.dat: Remove.
2761 * regformats/i386/i386-mpx.dat: Remove.
2762
57757c2f
YQ
27632017-08-09 Yao Qi <yao.qi@linaro.org>
2764
2765 * amd64-tdep.h (tdesc_x32): Remove the declaration.
2766 * amd64-tdep.c: Don't include features/i386/x32*.c.
2767 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
2768 functions.
2769 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
2770 and i386/x32-avx-avx512.
2771 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
2772 and i386/x32.xml.
2773 * features/i386/x32-avx-avx512.c: Removed.
2774 * features/i386/x32-avx-avx512.xml: Removed.
2775 * features/i386/x32-avx.c: Removed.
2776 * features/i386/x32-avx.xml: Removed.
2777 * features/i386/x32.c: Removed.
2778 * features/i386/x32.xml: Removed.
2779 * regformats/i386/x32-avx-avx512.dat: Removed.
2780 * regformats/i386/x32-avx.dat: Removed.
2781 * regformats/i386/x32.dat: Removed.
2782
ba7b109b
MR
27832017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2784
2785 PR breakpoints/21886
2786 * mem-break.c (default_memory_insert_breakpoint): Use
2787 `->placed_address' rather than `->reqstd_address' for the
2788 breakpoint location.
2789
e347efc3
MR
27902017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2791
2792 * arch-utils.c (default_print_insn): Remove arch/mach/endian
2793 assertions.
2794
0dba2a6c
MR
27952017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2796
2797 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
2798 a union of `tdep_info', `tdesc_data' and `id'.
2799 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
2800 rather than `info.tdep_info'.
2801 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2802 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2803 * i386-tdep.c (i386_gdbarch_init): Likewise.
2804 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2805 * mips-tdep.c (mips_gdbarch_init): Likewise.
2806 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2807 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2808 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
2809 `info.tdep_info'.
2810 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
2811 `info.tdep_info'.
2812 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2813 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
2814 `info.tdep_info'.
2815 * spu-tdep.c (spu_gdbarch_init): Likewise.
2816 * gdbarch.h: Regenerate.
2817
16eb6b2d
LS
28182017-08-07 Leszek Swirski <leszeks@google.com>
2819
7b005726 2820 PR symtab/20899
16eb6b2d
LS
2821 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
2822
74cbb09e
SM
28232017-08-07 Simon Marchi <simon.marchi@ericsson.com>
2824
2825 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
2826 (gdbsim_open): Rename gdb_argv args object to argv.
2827
ee0c3293
TT
28282017-08-05 Tom Tromey <tom@tromey.com>
2829
2830 * compile/compile-object-load.c (compile_object_load): Use
2831 gdb::unique_xmalloc_ptr.
2832 * cli/cli-dump.c (scan_filename): Rename from
2833 scan_filename_with_cleanup. Change return type.
2834 (scan_expression): Rename from scan_expression_with_cleanup.
2835 Change return type.
2836 (dump_memory_to_file, dump_value_to_file, restore_command):
2837 Use gdb::unique_xmalloc_ptr. Update.
2838 * cli/cli-cmds.c (find_and_open_script): Use
2839 gdb::unique_xmalloc_ptr.
2840 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
2841 * symmisc.c (maintenance_print_symbols)
2842 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
2843 * symfile.c (symfile_bfd_open, generic_load)
2844 (add_symbol_file_command, remove_symbol_file_command): Use
2845 gdb::unique_xmalloc_ptr.
2846 * source.c (openp): Use gdb::unique_xmalloc_ptr.
2847 * psymtab.c (maintenance_print_psymbols): Use
2848 gdb::unique_xmalloc_ptr.
2849 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
2850 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
2851 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
2852 (reload_shared_libraries_1): Likewise.
2853
3232fabd
TT
28542017-08-05 Tom Tromey <tom@tromey.com>
2855
2856 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
2857 (rust_op_vector, rust_set_vector): New typedefs.
2858 (current_parser): New global.
2859 (work_obstack): Change to pointer type. Update all users.
2860 (rust_ast, pstate): Remove globals.
2861 (struct rust_parser): New.
2862 (%union) <params, field_inits>: Change type.
2863 (start, tuple_expr, unit_expr, struct_expr_list, literal)
2864 (field_expr, expr_list, maybe_expr_list, type_list): Update.
2865 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
2866 (convert_params_to_types, convert_params_to_expression): Change
2867 type of "params".
2868 (ast_string): Change type of "fields".
2869 (rust_parse): Make a rust_parser. Remove cleanups.
2870 (rust_lex_tests): Make and install an auto_obstack.
2871
f02fd774
YQ
28722017-08-04 Yao Qi <yao.qi@linaro.org>
2873
2874 * configure.srv (ipa_x32_linux_regobj): New.
2875 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
2876 instead of X86_TDESC_AVX512.
2877 (initialize_low_tracepoint): Call
2878 init_registers_x32_avx_avx512_linux.
2879
91975afd
YQ
28802017-08-04 Yao Qi <yao.qi@linaro.org>
2881
2882 * utils.h (gdb_argv): Add namespace std for nullptr_t.
2883
2331fa3a
RK
28842017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
2885
2886 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
2887
744e4fe1
TT
28882017-08-03 Tom Tromey <tom@tromey.com>
2889
2890 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
2891 Remove.
2892 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
2893
1c034b67
TT
28942017-08-03 Tom Tromey <tom@tromey.com>
2895
2896 * python/py-param.c (compute_enum_values): Use gdb_argv.
2897
773a1edc
TT
28982017-08-03 Tom Tromey <tom@tromey.com>
2899
2900 * utils.h (struct gdb_argv_deleter): New.
2901 (gdb_argv): New class.
2902 * utils.c (gdb_argv::reset): New method.
2903 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
2904 * tracefile.c (tsave_command): Use gdb_argv.
2905 * top.c (new_ui_command): Use gdb_argv.
2906 * symmisc.c (maintenance_print_symbols)
2907 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
2908 * symfile.c (symbol_file_command, generic_load)
2909 (remove_symbol_file_command): Use gdb_argv.
2910 * stack.c (backtrace_command): Use gdb_argv.
2911 * source.c (add_path, show_substitute_path_command)
2912 (unset_substitute_path_command, set_substitute_path_command):
2913 Use gdb_argv.
2914 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
2915 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
2916 * remote.c (extended_remote_run, remote_put_command)
2917 (remote_get_command, remote_delete_command): Use gdb_argv.
2918 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
2919 (gdbsim_open): Use gdb_argv.
2920 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
2921 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
2922 * procfs.c (procfs_info_proc): Use gdb_argv.
2923 * interps.c (interpreter_exec_cmd): Use gdb_argv.
2924 * infrun.c (handle_command): Use gdb_argv.
2925 * inferior.c (add_inferior_command, clone_inferior_command):
2926 Use gdb_argv.
2927 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
2928 * exec.c (exec_file_command): Use gdb_argv.
2929 * cli/cli-cmds.c (alias_command): Use gdb_argv.
2930 * compile/compile.c (build_argc_argv): Use gdb_argv.
2931
0d50bde3
TT
29322017-08-03 Tom Tromey <tom@tromey.com>
2933
2934 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
2935
7f968c89
TT
29362017-08-03 Tom Tromey <tom@tromey.com>
2937
2938 * python/python.c (compute_python_string): Return std::string.
2939 (gdbpy_eval_from_control_command): Update.
2940 (do_start_initialization): Use std::string.
2941 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
2942 xstrprintf.
2943 * python/py-breakpoint.c (local_setattro): Use string_printf, not
2944 xstrprintf.
2945
3c9ebddd
TT
29462017-08-03 Tom Tromey <tom@tromey.com>
2947
2948 * top.h (do_restore_instream_cleanup): Remove.
2949 * top.c (do_restore_instream_cleanup): Remove.
2950 (read_command_file): Use scoped_restore.
2951 * cli/cli-script.c (execute_user_command): Use scoped_restore.
2952
b51b225e
TT
29532017-08-03 Tom Tromey <tom@tromey.com>
2954
2955 * cli/cli-script.c (execute_user_command)
2956 (execute_control_command): Use scoped_restore.
2957
ac991630
TT
29582017-08-03 Tom Tromey <tom@tromey.com>
2959
2960 * cli/cli-script.c (do_restore_user_call_depth): Remove.
2961 (execute_user_command): Remove user_call_depth; use
2962 user_args_stack's size instead.
2963
898e0c8e
TT
29642017-08-03 Tom Tromey <tom@tromey.com>
2965
2966 * top.h (in_user_command): Remove.
2967 * top.c (in_user_command): Remove.
2968 * cli/cli-script.c (do_restore_user_call_depth)
2969 (execute_user_command): Update.
2970
26fcd5d7
TT
29712017-08-03 Tom Tromey <tom@tromey.com>
2972
2973 * valops.c (search_struct_method): Use gdb::byte_vector.
2974 * valarith.c (value_concat): Use std::vector.
2975 * target.c (memory_xfer_partial): Use gdb::byte_vector.
2976 (simple_search_memory): Likewise.
2977 * printcmd.c (find_string_backward): Use gdb::byte_vector.
2978 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
2979 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
2980 * elfread.c (elf_rel_plt_read): Use std::string.
2981 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
2982 * cli/cli-dump.c (restore_section_callback): Use
2983 gdb::byte_vector.
2984
7c218e6c
TT
29852017-08-03 Tom Tromey <tom@tromey.com>
2986
2987 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
2988
31b68d4a
TT
29892017-08-03 Tom Tromey <tom@tromey.com>
2990
2991 * tui/tui-regs.c (tui_restore_gdbout): Remove.
2992 (tui_register_format): Use scoped_restore.
2993
2ec845e7
TT
29942017-08-03 Tom Tromey <tom@tromey.com>
2995
2996 * reverse.c (exec_direction_default): Remove.
2997 (exec_reverse_once): Use scoped_restore.
2998 * remote.c (restore_remote_timeout): Remove.
2999 (remote_flash_erase, remote_flash_write, remote_flash_done)
3000 (readchar, remote_serial_write): Use scoped_restore.
3001 * cli/cli-script.c (struct source_cleanup_lines_args)
3002 (source_cleanup_lines): Remove.
3003 (script_from_file): Use scoped_restore.
3004 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3005 (source_command): Use scoped_restore.
3006
b3bc8453
TT
30072017-08-03 Tom Tromey <tom@tromey.com>
3008
3009 * utils.h (make_cleanup_free_so): Remove.
3010 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3011 * solist.h (struct so_deleter): New.
3012 (so_list_up): New typedef.
3013 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3014
e3ad2841
TT
30152017-08-03 Tom Tromey <tom@tromey.com>
3016
3017 * utils.h (make_cleanup_restore_current_language): Remove.
3018 * utils.c (do_restore_current_language)
3019 (make_cleanup_restore_current_language): Remove.
3020 * parse.c (parse_exp_in_context_1)
3021 (parse_expression_with_language): Use
3022 scoped_restore_current_language.
3023 * mi/mi-main.c (mi_cmd_execute): Use
3024 scoped_restore_current_language.
3025 * language.h (scoped_restore_current_language): New class.
3026
b80cf838
TT
30272017-08-03 Tom Tromey <tom@tromey.com>
3028
3029 * compile/compile.c (cleanup_unlink_file): Remove.
3030 (compile_to_object): Use gdb::unlinker.
3031 (eval_compile_command): Likewise.
3032
fad0444a
TT
30332017-08-03 Tom Tromey <tom@tromey.com>
3034
3035 * utils.h (make_cleanup_fclose): Remove.
3036 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3037
6e7bc05c
TT
30382017-08-03 Tom Tromey <tom@tromey.com>
3039
3040 * top.c (open_terminal_stream): Return gdb_file_up.
3041 (new_ui_command): Update.
3042
4a45905b
TT
30432017-08-03 Tom Tromey <tom@tromey.com>
3044
3045 * source.c (print_source_lines_base, forward_search_command)
3046 (reverse_search_command): Use gdb_file_up.
3047
7cd06d6e
TT
30482017-08-03 Tom Tromey <tom@tromey.com>
3049
3050 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3051
ed166945
TT
30522017-08-03 Tom Tromey <tom@tromey.com>
3053
3054 * cli/cli-cmds.c (find_and_open_script): Change return type.
3055 Remove "streamp" and "full_path" parameters.
3056 (source_script_with_search): Update.
3057 * auto-load.c (source_script_file): Update.
3058 * cli/cli-cmds.h (find_and_open_script): Change type.
3059 (open_script): New struct.
3060
d419f42d
TT
30612017-08-03 Tom Tromey <tom@tromey.com>
3062
3063 * xml-support.c (xml_fetch_content_from_file): Update.
3064 * ui-file.c (stdio_file::open): Update.
3065 * tracefile-tfile.c (tfile_start): Update.
3066 * remote.c (remote_file_put, remote_file_get): Update.
3067 * nat/linux-procfs.c (linux_proc_get_int)
3068 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3069 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3070 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3071 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3072 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3073 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3074 * linux-nat.c (linux_proc_pending_signals): Update.
3075 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3076 (file_closer): Remove.
3077 * compile/compile.c (compile_to_object): Update.
3078 * common/filestuff.h (struct gdb_file_deleter): New.
3079 (gdb_file_up): New typedef.
3080 (gdb_fopen_cloexec): Change return type.
3081 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3082 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3083 (dump_binary_file, restore_binary_file): Update.
3084 * auto-load.c (auto_load_objfile_script_1): Update.
3085
4a2b031d
TT
30862017-08-03 Tom Tromey <tom@tromey.com>
3087
3088 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3089 (info_static_tracepoint_markers_command): Likewise.
3090 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3091 * skip.c (skip_info): Use ui_out_emit_table.
3092 * progspace.c (print_program_space): Use ui_out_emit_table.
3093 * osdata.c (info_osdata): Use ui_out_emit_table.
3094 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3095 ui_out_emit_table.
3096 * linux-thread-db.c (info_auto_load_libthread_db): Use
3097 ui_out_emit_table.
3098 * inferior.c (print_inferior): Use ui_out_emit_table.
3099 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3100 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3101 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3102 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3103 * ui-out.h (class ui_out_emit_table): New.
3104
a4f320fd
MR
31052017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3106
3107 * mips-tdep.c (mips_fpu_type_str): New function.
3108 (mips_dump_tdep): Call it.
3109
a2f1f308
MR
31102017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3111
3112 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3113 `->mips_fpu_type'.
3114
7e5ed83b
XR
31152017-07-31 Xavier Roirand <roirand@adacore.com>
3116
3117 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3118
4c9dc811
XR
31192017-07-27 Xavier Roirand <roirand@adacore.com>
3120
3121 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3122
27d41eac
YQ
31232017-07-26 Yao Qi <yao.qi@linaro.org>
3124
3125 * cli/cli-cmds.c (maintenancechecklist): New variable.
3126 * gdbcmd.h (maintenancechecklist): Declare it.
3127 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3128 Call i386_linux_read_description with different masks.
3129 * maint.c (maintenance_check_command): New function.
3130 (_initialize_maint_cmds): Call add_prefix_cmd.
3131 * target-descriptions.c (tdesc_reg): override operator != and ==.
3132 (tdesc_type): Likewise.
3133 (tdesc_feature): Likewise.
3134 (target_desc): Likewise.
3135 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3136 (maintenance_check_xml_descriptions): New function.
3137 (_initialize_target_descriptions) Add command "xml-descriptions".
3138 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3139
ea03d0d3
YQ
31402017-07-26 Yao Qi <yao.qi@linaro.org>
3141
3142 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3143 Include features/i386/32bit-*.c.
3144 (i386_linux_read_description): Generate target description if it
3145 doesn't exist.
3146 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3147 functions.
3148 * features/i386/32bit-linux.c: Re-generated.
3149 * features/i386/32bit-sse.c: Likewise.
3150 * target-descriptions.c (print_c_feature::visit): Print code to
3151 set register number if needed.
3152 (print_c_feature) <m_next_regnum>: New field.
3153
25aa13e5
YQ
31542017-07-26 Yao Qi <yao.qi@linaro.org>
3155
3156 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3157 (FEATURE_XMLFILES): New.
3158 (FEATURE_CFILES): New.
3159 New rules.
3160 (clean-cfiles): Remove generated c files.
3161 * features/i386/32bit-avx.c: Generated.
3162 * features/i386/32bit-avx512.c: Generated.
3163 * features/i386/32bit-core.c: Generated.
3164 * features/i386/32bit-linux.c: Generated.
3165 * features/i386/32bit-mpx.c: Generated.
3166 * features/i386/32bit-pkeys.c: Generated.
3167 * features/i386/32bit-sse.c: Generated.
3168 * target-descriptions.c: Include algorithm.
3169 (tdesc_element_visitor): Add method visit_end.
3170 (print_c_tdesc): Implement visit_end.
3171 (print_c_tdesc:: m_filename_after_features): Move it to
3172 protected.
3173 (print_c_feature): New class.
3174 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3175 name starts with "i386/32bit-".
3176
6eb1e6a8
YQ
31772017-07-26 Yao Qi <yao.qi@linaro.org>
3178
3179 * target-descriptions.c (tdesc_element_visitor): New class.
3180 (tdesc_element): New class.
3181 (tdesc_reg): Inherit from tdesc_element.
3182 (tdesc_reg::accept): New function.
3183 (tdesc_type): Inherit from tdesc_element.
3184 (tdesc_type::accept): New function.
3185 (tdesc_feature): Inherit from tdesc_element.
3186 (tdesc_feature::accept): New function.
3187 (target_desc): Inherit from tdesc_element.
3188 (target_desc::target_desc): New.
3189 (target_desc::~target_desc): New.
3190 (target_desc::accept): New.
3191 (allocate_target_description): Use new.
3192 (free_target_description): Use delete.
3193 (print_c_tdesc): New class.
3194 (maint_print_c_tdesc_cmd): Adjust.
3195
3196 * features/aarch64.c: Re-generated.
3197 * features/arc-arcompact.c: Re-generated.
3198 * features/arc-v2.c: Re-generated.
3199 * features/arm/arm-with-iwmmxt.c: Re-generated.
3200 * features/arm/arm-with-m.c: Re-generated.
3201 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3202 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3203 * features/arm/arm-with-neon.c: Re-generated.
3204 * features/arm/arm-with-vfpv2.c: Re-generated.
3205 * features/arm/arm-with-vfpv3.c: Re-generated.
3206 * features/i386/amd64-avx-avx512.c: Re-generated.
3207 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3208 * features/i386/amd64-avx.c: Re-generated.
3209 * features/i386/amd64-avx-linux.c: Re-generated.
3210 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3211 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3212 * features/i386/amd64-avx-mpx.c: Re-generated.
3213 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3214 * features/i386/amd64.c: Re-generated.
3215 * features/i386/amd64-linux.c: Re-generated.
3216 * features/i386/amd64-mpx.c: Re-generated.
3217 * features/i386/amd64-mpx-linux.c: Re-generated.
3218 * features/i386/i386-avx-avx512.c: Re-generated.
3219 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3220 * features/i386/i386-avx.c: Re-generated.
3221 * features/i386/i386-avx-linux.c: Re-generated.
3222 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3223 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3224 * features/i386/i386-avx-mpx.c: Re-generated.
3225 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3226 * features/i386/i386.c: Re-generated.
3227 * features/i386/i386-linux.c: Re-generated.
3228 * features/i386/i386-mmx.c: Re-generated.
3229 * features/i386/i386-mmx-linux.c: Re-generated.
3230 * features/i386/i386-mpx.c: Re-generated.
3231 * features/i386/i386-mpx-linux.c: Re-generated.
3232 * features/i386/x32-avx-avx512.c: Re-generated.
3233 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3234 * features/i386/x32-avx.c: Re-generated.
3235 * features/i386/x32-avx-linux.c: Re-generated.
3236 * features/i386/x32.c: Re-generated.
3237 * features/i386/x32-linux.c: Re-generated.
3238 * features/microblaze.c: Re-generated.
3239 * features/microblaze-with-stack-protect.c: Re-generated.
3240 * features/mips64-dsp-linux.c: Re-generated.
3241 * features/mips64-linux.c: Re-generated.
3242 * features/mips-dsp-linux.c: Re-generated.
3243 * features/mips-linux.c: Re-generated.
3244 * features/nds32.c: Re-generated.
3245 * features/nios2.c: Re-generated.
3246 * features/nios2-linux.c: Re-generated.
3247 * features/rs6000/powerpc-32.c: Re-generated.
3248 * features/rs6000/powerpc-32l.c: Re-generated.
3249 * features/rs6000/powerpc-403.c: Re-generated.
3250 * features/rs6000/powerpc-403gc.c : Re-generated.
3251 * features/rs6000/powerpc-405.c: Re-generated.
3252 * features/rs6000/powerpc-505.c: Re-generated.
3253 * features/rs6000/powerpc-601.c: Re-generated.
3254 * features/rs6000/powerpc-602.c: Re-generated.
3255 * features/rs6000/powerpc-603.c: Re-generated.
3256 * features/rs6000/powerpc-604.c: Re-generated.
3257 * features/rs6000/powerpc-64.c: Re-generated.
3258 * features/rs6000/powerpc-64l.c: Re-generated.
3259 * features/rs6000/powerpc-7400.c: Re-generated.
3260 * features/rs6000/powerpc-750.c: Re-generated.
3261 * features/rs6000/powerpc-860.c: Re-generated.
3262 * features/rs6000/powerpc-altivec32.c: Re-generated.
3263 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3264 * features/rs6000/powerpc-altivec64.c: Re-generated.
3265 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3266 * features/rs6000/powerpc-cell32l.c: Re-generated.
3267 * features/rs6000/powerpc-cell64l.c: Re-generated.
3268 * features/rs6000/powerpc-e500.c: Re-generated.
3269 * features/rs6000/powerpc-e500l.c: Re-generated.
3270 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3271 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3272 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3273 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3274 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3275 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3276 * features/rs6000/powerpc-vsx32.c: Re-generated.
3277 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3278 * features/rs6000/powerpc-vsx64.c: Re-generated.
3279 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3280 * features/rs6000/rs6000.c: Re-generated.
3281 * features/s390-linux32.c: Re-generated.
3282 * features/s390-linux32v1.c: Re-generated.
3283 * features/s390-linux32v2.c: Re-generated.
3284 * features/s390-linux64.c: Re-generated.
3285 * features/s390-linux64v1.c: Re-generated.
3286 * features/s390-linux64v2.c: Re-generated.
3287 * features/s390-te-linux64.c: Re-generated.
3288 * features/s390-tevx-linux64.c: Re-generated.
3289 * features/s390-vx-linux64.c: Re-generated.
3290 * features/s390x-linux64.c: Re-generated.
3291 * features/s390x-linux64v1.c: Re-generated.
3292 * features/s390x-linux64v2.c: Re-generated.
3293 * features/s390x-te-linux64.c: Re-generated.
3294 * features/s390x-tevx-linux64.c: Re-generated.
3295 * features/s390x-vx-linux64.c: Re-generated.
3296 * features/sparc/sparc32-solaris.c: Re-generated.
3297 * features/sparc/sparc64-solaris.c: Re-generated.
3298 * features/tic6x-c62x.c: Re-generated.
3299 * features/tic6x-c62x-linux.c: Re-generated.
3300 * features/tic6x-c64x.c: Re-generated.
3301 * features/tic6x-c64x-linux.c: Re-generated.
3302 * features/tic6x-c64xp.c: Re-generated.
3303 * features/tic6x-c64xp-linux.c: Re-generated.
3304
35b4818d
YQ
33052017-07-26 Yao Qi <yao.qi@linaro.org>
3306
3307 * i386-linux-tdep.c (i386_linux_read_description): New function.
3308 (i386_linux_core_read_description): Call
3309 i386_linux_read_description.
3310 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3311 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3312 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3313 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3314 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3315 * x86-linux-nat.c (x86_linux_read_description): Call
3316 i386_linux_read_description.
3317
8e2141c6
YQ
33182017-07-26 Yao Qi <yao.qi@linaro.org>
3319
3320 * NEWS: Mention it.
3321 * features/Makefile (%.c: %.xml): Pass the xml file name to
3322 command "maint print c-tdesc".
3323 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3324 name from 'arg'.
3325
b468ff4c
YQ
33262017-07-26 Yao Qi <yao.qi@linaro.org>
3327
3328 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3329 in-class initialization.
3330 (tdesc_create_feature): Call new instead of XCNEW.
3331 (free_target_description): Ue delete.
3332
b9c0e1b4
JB
33332017-07-25 John Baldwin <jhb@FreeBSD.org>
3334
3335 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3336
a04b5337
YQ
33372017-07-25 Yao Qi <yao.qi@linaro.org>
3338
3339 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3340 constant.
3341 (amd64_x32_init_abi): Likewise.
3342 * amd64-tdep.h (amd64_init_abi): Update declaration.
3343 (amd64_x32_init_abi): Likewise.
3344
02ad7fc2
YQ
33452017-07-25 Yao Qi <yao.qi@linaro.org>
3346
3347 PR tdep/21717
3348 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3349 condition for FPSCR.
3350 (arm_linux_store_inferior_registers): Likewise.
3351
b6f48cb0
TT
33522017-07-22 Tom Tromey <tom@tromey.com>
3353
3354 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3355 <syscalls_counts>: Now a std::vector.
3356 (get_catch_syscall_inferior_data): Use "new".
3357 (catch_syscall_inferior_data_cleanup): Use "delete".
3358 (insert_catch_syscall, remove_catch_syscall)
3359 (clear_syscall_counts): Update.
3360
e12c9b7a
TT
33612017-07-22 Tom Tromey <tom@tromey.com>
3362
3363 * break-catch-syscall.c (syscall_catchpoint)
3364 <syscalls_to_be_caught>: Now a std::vector<int>
3365 (~syscall_catchpoint): Remove.
3366 (insert_catch_syscall, remove_catch_syscall)
3367 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3368 (print_mention_catch_syscall, print_recreate_catch_syscall):
3369 Update.
3370 (create_syscall_event_catchpoint): Change type of "filter"
3371 parameter.
3372 (catch_syscall_split_args): Return a std::vector.
3373 (catch_syscall_command_1, catching_syscall_number_1): Update.
3374
4fa8aeac
TT
33752017-07-22 Tom Tromey <tom@tromey.com>
3376
3377 * break-catch-throw.c (struct exception_catchpoint)
3378 <exception_rx>: Now a std::string.
3379 (~exception_catchpoint): Remove.
3380 (print_one_detail_exception_catchpoint): Update.
3381 (handle_gnu_v3_exceptions): Change type of except_rx.
3382 (extract_exception_regexp): Return a std::string.
3383 (catch_exception_command_1): Update.
3384
f746a154
TT
33852017-07-22 Tom Tromey <tom@tromey.com>
3386
3387 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3388 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3389 std::vector.
3390 <catch_all>: Now a bool.
3391 (~signal_catchpoint): Remove.
3392 (signal_catchpoint_insert_location)
3393 (signal_catchpoint_remove_location)
3394 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3395 (signal_catchpoint_print_mention)
3396 (signal_catchpoint_print_recreate)
3397 (signal_catchpoint_explains_signal): Update.
3398 (create_signal_catchpoint): Change type of "filter" and
3399 "catch_all".
3400 (catch_signal_split_args): Return a std::vector. Change type of
3401 "catch_all".
3402 (catch_signal_command): Update.
3403
47e77640
PA
34042017-07-20 Pedro Alves <palves@redhat.com>
3405
3406 * ada-lang.c (ada_language_defn): Make extern.
3407 (_initialize_ada_language): Remove add_language call.
3408 * c-lang.c (c_language_defn, cplus_language_defn)
3409 (asm_language_defn, minimal_language_defn): Make extern.
3410 (_initialize_c_language): Delete.
3411 * completer.c (compare_cstrings): Delete, moved to utils.h.
3412 * d-lang.c (d_language_defn): Make extern.
3413 (_initialize_d_language): Remove add_language calls.
3414 * defs.h (enum language): Add comment.
3415 * f-lang.c (f_language_defn): Make extern.
3416 (_initialize_f_language): Remove add_language call.
3417 * go-lang.c (go_language_defn): Make extern.
3418 (_initialize_go_language): Remove add_language call.
3419 * language.c: Include <algorithm>.
3420 (languages): Redefine as const array.
3421 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3422 (set_language_command): Handle "local". Use for-range loop.
3423 (set_language): Remove loop.
3424 (language_enum): Rewrite.
3425 (language_def, language_str): Remove loops.
3426 (add_language): Delete.
3427 (add_set_language_command): New, based on add_languages.
3428 (skip_language_trampoline): Adjust.
3429 (local_language_defn): Delete.
3430 (language_gdbarch_post_init): Adjust.
3431 (_initialize_language): Remove add_language calls. Call
3432 add_set_language_command.
3433 * language.h (add_language): Delete.
3434 (auto_language_defn)
3435 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3436 (asm_language_defn, c_language_defn, cplus_language_defn)
3437 (d_language_defn, f_language_defn, go_language_defn)
3438 (m2_language_defn, objc_language_defn, opencl_language_defn)
3439 (pascal_language_defn, rust_language_defn): Declare.
3440 * m2-lang.c (m2_language_defn): Make extern.
3441 (_initialize_m2_language): Remove add_language call.
3442 * objc-lang.c (objc_language_defn): Make extern.
3443 (_initialize_objc_language): Remove add_language call.
3444 * opencl-lang.c (opencl_language_defn): Make extern.
3445 (_initialize_opencl_language): Remove add_language call.
3446 * p-lang.c (pascal_language_defn): Make extern.
3447 (_initialize_pascal_language): Delete.
3448 * rust-lang.c (rust_language_defn): Make extern.
3449 (_initialize_rust_language): Delete.
3450 * utils.h (compare_cstrings): New static inline function.
3451
edb0c9cb
PA
34522017-07-20 Pedro Alves <palves@redhat.com>
3453
3454 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3455 (get_var_value): Constify parameters.
3456 (get_int_var_value): Change prototype.
3457 (to_fixed_range_type): Adjust.
3458 * ada-lang.h (get_int_var_value): Change prototype.
3459
a778f165
PA
34602017-07-20 Pedro Alves <palves@redhat.com>
3461
3462 * dwarf2read.c (dw2_lookup_symbol): Use
3463 SYMBOL_MATCHES_SEARCH_NAME.
3464 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3465
42edd901
PA
34662017-07-20 Pedro Alves <palves@redhat.com>
3467
3468 * block.c (block_iter_name_step, block_iter_name_first)
3469 (block_iter_name_next): Delete.
3470 (block_lookup_symbol_primary): Adjust to use
3471 dict_iter_match_first/dict_iter_match_next.
3472 * block.h (block_iter_name_first, block_iter_name_next): Delete
3473 declarations.
3474 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3475 dict_iter_match_first/dict_iter_match_next.
3476
cf325299
PA
34772017-07-20 Pedro Alves <palves@redhat.com>
3478
3479 * cp-support.c (cp_find_first_component_aux): Add missing case for
3480 end of string.
3481
c5ed0576
DB
34822017-07-18 David Blaikie <dblaikie@gmail.com>
3483
3484 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3485 of dwo_cu's dwo_file.
3486
27841e76
YQ
34872017-07-18 Yao Qi <yao.qi@linaro.org>
3488
3489 * remote.c (store_registers_using_G): Remove one line comment.
3490
cfb7e58b
YQ
34912017-07-18 Yao Qi <yao.qi@linaro.org>
3492
3493 * regcache.c (regcache_cpy): Simplify it.
3494 (regcache::cpy_no_passthrough): Remove it.
3495 * regcache.h (cpy_no_passthrough): Remove it.
3496 (regcache_dup, regcache_cpy): Update comments.
3497
386535dd
PA
34982017-07-18 Pedro Alves <palves@redhat.com>
3499
3500 * remote-sim.c (sim_command_completer): Adjust to work with a
3501 completion_tracker instead of a VEC.
3502
c45ec17c
PA
35032017-07-17 Pedro Alves <palves@redhat.com>
3504
3505 * completer.c (complete_source_filenames): New function.
3506 (complete_address_and_linespec_locations): New function.
3507 (location_completer): Use complete_address_and_linespec_locations.
3508 (completion_tracker::build_completion_result): Honor the tracker's
3509 request to suppress append.
3510 * completer.h (completion_tracker::suppress_append_ws)
3511 (completion_tracker::set_suppress_append_ws): New methods.
3512 (completion_tracker::m_suppress_append_ws): New field.
3513 (complete_source_filenames): New declaration.
3514 * linespec.c (linespec_complete_what): New.
3515 (struct ls_parser) <complete_what, completion_word,
3516 completion_quote_char, completion_quote_end, completion_tracker>:
3517 New fields.
3518 (string_find_incomplete_keyword_at_end): New.
3519 (linespec_lexer_lex_string): Record quote char. If in completion
3520 mode, don't throw.
3521 (linespec_lexer_consume_token): Advance the completion word point.
3522 (linespec_lexer_peek_token): Save/restore completion info.
3523 (save_stream_and_consume_token): New.
3524 (set_completion_after_number): New.
3525 (linespec_parse_basic): Set what to complete next depending on
3526 token. Handle function and label completions specially.
3527 (parse_linespec): Disable objc shortcut in completion mode. Set
3528 what to complete next depending on token type. Skip keyword if in
3529 completion mode.
3530 (complete_linespec_component, linespec_complete): New.
3531 * linespec.h (linespec_complete): Declare.
3532
be966d42
PA
35332017-07-17 Pedro Alves <palves@redhat.com>
3534
3535 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
3536 Handle 'operator<' / 'operator<<'.
3537
a2459270
PA
35382017-07-17 Pedro Alves <palves@redhat.com>
3539
3540 * completer.c (collect_explicit_location_matches): Handle
3541 MATCH_LABEL.
3542 (convert_explicit_location_to_linespec): New, factored out from
3543 ...
3544 (convert_explicit_location_to_sals): ... this.
3545 (complete_label): New.
3546 (linespec_complete_label, find_label_symbols_in_block): New.
3547 (find_label_symbols): Add completion_mode parameter and adjust to
3548 call find_label_symbols_in_block.
3549 * linespec.h (linespec_complete_label): Declare.
3550
c6756f62
PA
35512017-07-17 Pedro Alves <palves@redhat.com>
3552
3553 * ada-lang.c (ada_collect_symbol_completion_matches): Add
3554 complete_symbol_mode parameter.
3555 * cli/cli-cmds.c (complete_command): Get the completion result out
3556 of the handle_brkchars tracker if used a custom word point.
3557 * completer.c: Include "linespec.h".
3558 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
3559 (advance_to_expression_complete_word_point): New.
3560 (completion_tracker::completes_to_completion_word): New.
3561 (complete_files_symbols): Pass down
3562 complete_symbol_mode::EXPRESSION.
3563 (explicit_options, probe_options): New.
3564 (collect_explicit_location_matches): Complete on the
3565 explictit_loc->foo instead of word. Use
3566 linespec_complete_function. Handle MATCH_LINE. Handle offering
3567 keyword and options completions.
3568 (backup_text_ptr): Delete.
3569 (skip_keyword): New.
3570 (complete_explicit_location): Remove 'word' parameter. Add
3571 language, quoted_arg_start and quoted_arg_end parameters.
3572 Rewrite, parsing left to right.
3573 (location_completer): Rewrite.
3574 (location_completer_handle_brkchars): New function.
3575 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
3576 (enum complete_line_internal_reason): Adjust comments.
3577 (completion_tracker::discard_completions): New.
3578 (completer_handle_brkchars_func_for_completer): Handle
3579 location_completer.
3580 (gdb_custom_word_point_brkchars)
3581 (gdb_org_rl_basic_quote_characters): New.
3582 (gdb_completion_word_break_characters_throw)
3583 (completion_find_completion_word): Handle trackers that use a
3584 custom word point.
3585 (completion_tracker::advance_custom_word_point_by): New.
3586 (completion_tracker::build_completion_result): Don't rely on
3587 readline appending the quote char.
3588 (gdb_rl_attempted_completion_function_throw): Handle trackers that
3589 use a custom word point.
3590 (gdb_rl_attempted_completion_function): Restore
3591 rl_basic_quote_characters.
3592 * completer.h (class completion_tracker): Extend intro comment.
3593 (completion_tracker::set_quote_char)
3594 (completion_tracker::quote_char)
3595 (completion_tracker::set_use_custom_word_point)
3596 (completion_tracker::use_custom_word_point)
3597 (completion_tracker::custom_word_point)
3598 (completion_tracker::set_custom_word_point)
3599 (completion_tracker::advance_custom_word_point_by)
3600 (completion_tracker::completes_to_completion_word)
3601 (completion_tracker::discard_completions): New methods.
3602 (completion_tracker::m_quote_char)
3603 (completion_tracker::m_use_custom_word_point)
3604 (completion_tracker::m_custom_word_point): New fields.
3605 (advance_to_expression_complete_word_point): Declare.
3606 * f-lang.c (f_collect_symbol_completion_matches): Add
3607 complete_symbol_mode parameter.
3608 * language.h (struct language_defn)
3609 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
3610 parameter.
3611 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
3612 (linespec_complete_function): New function.
3613 (linespec_lexer_lex_keyword): Adjust.
3614 * linespec.h (linespec_keywords, linespec_complete_function): New
3615 declarations.
3616 * location.c (find_end_quote): New function.
3617 (explicit_location_lex_one): Add explicit_completion_info
3618 parameter. Save quoting info. Don't throw if being called for
3619 completion. Don't handle Ada operators here.
3620 (is_cp_operator, skip_op_false_positives, first_of)
3621 (explicit_location_lex_one_function): New function.
3622 (string_to_explicit_location): Replace 'dont_throw' parameter with
3623 an explicit_completion_info pointer parameter. Handle it. Don't
3624 use explicit_location_lex_one to lex function names. Use
3625 explicit_location_lex_one_function instead.
3626 * location.h (struct explicit_completion_info): New.
3627 (string_to_explicit_location): Replace 'dont_throw' parameter with
3628 an explicit_completion_info pointer parameter.
3629 * symtab.c (default_collect_symbol_completion_matches_break_on):
3630 Add complete_symbol_mode parameter. Handle LINESPEC mode.
3631 (default_collect_symbol_completion_matches)
3632 (collect_symbol_completion_matches): Add complete_symbol_mode
3633 parameter.
3634 (collect_symbol_completion_matches_type): Pass down
3635 complete_symbol_mode::EXPRESSION.
3636 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3637 parameter. Handle LINESPEC mode.
3638 * symtab.h (complete_symbol_mode): New.
3639 (default_collect_symbol_completion_matches_break_on)
3640 (default_collect_symbol_completion_matches)
3641 (collect_symbol_completion_matches)
3642 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3643 parameter.
3644
1d550c82
PA
36452017-07-17 Pedro Alves <palves@redhat.com>
3646
3647 * utils.c (enum class strncmp_iw_mode): New.
3648 (strcmp_iw): Rename to ...
3649 (strncmp_iw_with_mode): ... this. Add string2_len and mode
3650 parameters. Handle them.
3651 (strncmp_iw): New.
3652 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
3653 * utils.h (strncmp_iw): Declare.
3654 (strcmp_iw): Move describing comments here.
3655
8090b426
PA
36562017-07-17 Pedro Alves <palves@redhat.com>
3657
3658 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
3659 CP_OPERATOR_STR.
3660 * c-typeprint.c (is_type_conversion_operator): Use
3661 CP_OPERATOR_STR.
3662 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
3663 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
3664 CP_OPERATOR_LEN.
3665 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
3666 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
3667 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
3668 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
3669 CP_OPERATOR_STR.
3670 * location.c: Include "cp-support.h".
3671 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
3672 CP_OPERATOR_STR.
3673 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
3674 CP_OPERATOR_LEN.
3675
6a2c1b87
PA
36762017-07-17 Pedro Alves <palves@redhat.com>
3677
3678 * cli/cli-cmds.c (complete_command): Use a completion tracker
3679 along with completion_find_completion_word for handle_brkchars
3680 phase.
3681 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
3682 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
3683 (struct gdb_rl_completion_word_info): New.
3684 (gdb_rl_find_completion_word): New.
3685 (completion_find_completion_word): New.
3686 * completer.h (completion_find_completion_word): Declare.
3687
eb3ff9a5
PA
36882017-07-17 Pedro Alves <palves@redhat.com>
3689
3690 * ada-lang.c (symbol_completion_match): Adjust comments.
3691 (symbol_completion_add): Replace vector parameter with
3692 completion_tracker parameter. Use it.
3693 (ada_make_symbol_completion_list): Rename to...
3694 (ada_collect_symbol_completion_matches): ... this. Add
3695 completion_tracker parameter and use it.
3696 (ada_language_defn): Adjust.
3697 * break-catch-syscall.c (catch_syscall_completer): Adjust
3698 prototype and work with completion_tracker instead of VEC.
3699 * breakpoint.c (condition_completer): Adjust prototype and work
3700 with completion_tracker instead of VEC.
3701 * c-lang.c (c_language_defn, cplus_language_defn)
3702 (asm_language_defn, minimal_language_defn): Adjust to renames.
3703 * cli/cli-cmds.c (complete_command): Rework using
3704 completion_tracker. Catch exceptions when completing.
3705 * cli/cli-decode.c (integer_unlimited_completer)
3706 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
3707 with completion_tracker instead of VEC.
3708 * command.h (struct completion_tracker): Forward declare.
3709 (completer_ftype, completer_handle_brkchars_ftype): Change
3710 types.
3711 (complete_on_cmdlist, complete_on_enum): Adjust.
3712 * completer.c: Include <algorithm>.
3713 (struct gdb_completer_state): New.
3714 (current_completion): New global.
3715 (readline_line_completion_function): Delete.
3716 (noop_completer, filename_completer)
3717 (filename_completer_handle_brkchars, complete_files_symbols)
3718 (linespec_location_completer): Adjust to work with a
3719 completion_tracker instead of a VEC.
3720 (string_or_empty): New.
3721 (collect_explicit_location_matches): Adjust to work with a
3722 completion_tracker instead of a VEC.
3723 (explicit_location_completer): Rename to ...
3724 (complete_explicit_location): ... this and adjust to work with a
3725 completion_tracker instead of a VEC.
3726 (location_completer): Adjust to work with a completion_tracker
3727 instead of a VEC.
3728 (add_struct_fields): Adjust to work with a completion_list instead
3729 of VEC.
3730 (expression_completer): Rename to ...
3731 (complete_expression): ... this and adjust to work with a
3732 completion_tracker instead of a VEC. Use complete_files_symbols.
3733 (expression_completer): Reimplement on top of complete_expression.
3734 (symbol_completer): Adjust to work with a completion_tracker
3735 instead of a VEC.
3736 (enum complete_line_internal_reason): Add describing comments.
3737 (complete_line_internal_normal_command): Adjust to work with a
3738 completion_tracker instead of a VEC.
3739 (complete_line_internal): Rename to ...
3740 (complete_line_internal_1): ... this and adjust to work with a
3741 completion_tracker instead of a VEC. Assert TEXT is NULL in the
3742 handle_brkchars phase.
3743 (new_completion_tracker): Delete.
3744 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
3745 complete_line_internal_1.
3746 (free_completion_tracker): Delete.
3747 (INITIAL_COMPLETION_HTAB_SIZE): New.
3748 (completion_tracker::completion_tracker)
3749 (completion_tracker::~completion_tracker): New.
3750 (maybe_add_completion): Delete.
3751 (completion_tracker::maybe_add_completion)
3752 (completion_tracker::add_completion)
3753 (completion_tracker::add_completions): New.
3754 (throw_max_completions_reached_error): Delete.
3755 (complete_line): Adjust to work with a completion_tracker instead
3756 of a VEC. Don't create a completion_tracker_t or check for max
3757 completions here.
3758 (command_completer, command_completer_handle_brkchars)
3759 (signal_completer, reg_or_group_completer_1)
3760 (reg_or_group_completer, default_completer_handle_brkchars):
3761 Adjust to work with a completion_tracker.
3762 (gdb_completion_word_break_characters_throw): New.
3763 (gdb_completion_word_break_characters): Reimplement.
3764 (line_completion_function): Delete.
3765 (completion_tracker::recompute_lowest_common_denominator)
3766 (expand_preserving_ws)
3767 (completion_tracker::build_completion_result)
3768 (completion_result::completion_result)
3769 (completion_result::completion_result)
3770 (completion_result::~completion_result)
3771 (completion_result::completion_result)
3772 (completion_result::release_match_list, compare_cstrings)
3773 (completion_result::sort_match_list)
3774 (completion_result::reset_match_list)
3775 (gdb_rl_attempted_completion_function_throw)
3776 (gdb_rl_attempted_completion_function): New.
3777 * completer.h (completion_list, struct completion_result)
3778 (class completion_tracker): New.
3779 (complete_line): Add completion_tracker parameter.
3780 (readline_line_completion_function): Delete.
3781 (gdb_rl_attempted_completion_function): New.
3782 (noop_completer, filename_completer, expression_completer)
3783 (location_completer, symbol_completer, command_completer)
3784 (signal_completer, reg_or_group_completer): Update prototypes.
3785 (completion_tracker_t, new_completion_tracker)
3786 (make_cleanup_free_completion_tracker): Delete.
3787 (enum maybe_add_completion_enum): Delete.
3788 (maybe_add_completion): Delete.
3789 (throw_max_completions_reached_error): Delete.
3790 * corefile.c (complete_set_gnutarget): Adjust to work with a
3791 completion_tracker instead of a VEC.
3792 * cp-abi.c (cp_abi_completer): Adjust to work with a
3793 completion_tracker instead of a VEC.
3794 * d-lang.c (d_language_defn): Adjust.
3795 * disasm.c (disassembler_options_completer): Adjust to work with a
3796 completion_tracker instead of a VEC.
3797 * f-lang.c (f_make_symbol_completion_list): Rename to ...
3798 (f_collect_symbol_completion_matches): ... this. Adjust to work
3799 with a completion_tracker instead of a VEC.
3800 (f_language_defn): Adjust.
3801 * go-lang.c (go_language_defn): Adjust.
3802 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
3803 Adjust to work with a completion_tracker instead of a VEC.
3804 * infrun.c (handle_completer): Likewise.
3805 * interps.c (interpreter_completer): Likewise.
3806 * interps.h (interpreter_completer): Likewise.
3807 * language.c (unknown_language_defn, auto_language_defn)
3808 (local_language_defn): Adjust.
3809 * language.h (language_defn::la_make_symbol_completion_list):
3810 Rename to ...
3811 (language_defn::la_collect_symbol_completion_matches): ... this
3812 and adjust to work with a completion_tracker instead of a VEC.
3813 * m2-lang.c (m2_language_defn): Adjust.
3814 * objc-lang.c (objc_language_defn): Adjust.
3815 * opencl-lang.c (opencl_language_defn): Adjust.
3816 * p-lang.c (pascal_language_defn): Adjust.
3817 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
3818 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
3819 with a completion_tracker.
3820 * rust-lang.c (rust_language_defn): Adjust.
3821 * symtab.c (free_completion_list, do_free_completion_list)
3822 (return_val, completion_tracker): Delete.
3823 (completion_list_add_name, completion_list_add_symbol)
3824 (completion_list_add_msymbol, completion_list_objc_symbol)
3825 (completion_list_add_fields, add_symtab_completions): Add
3826 completion_tracker parameter and use it.
3827 (default_make_symbol_completion_list_break_on_1): Rename to...
3828 (default_collect_symbol_completion_matches_break_on): ... this.
3829 Add completion_tracker parameter and use it instead of allocating
3830 a completion tracker here.
3831 (default_make_symbol_completion_list_break_on): Delete old
3832 implementation.
3833 (default_make_symbol_completion_list): Delete.
3834 (default_collect_symbol_completion_matches): New.
3835 (make_symbol_completion_list): Delete.
3836 (collect_symbol_completion_matches): New.
3837 (make_symbol_completion_type): Rename to ...
3838 (collect_symbol_completion_matches_type): ... this. Add
3839 completion_tracker parameter and use it instead of VEC.
3840 (make_file_symbol_completion_list_1): Rename to...
3841 (collect_file_symbol_completion_matches): ... this. Add
3842 completion_tracker parameter and use it instead of VEC.
3843 (make_file_symbol_completion_list): Delete.
3844 (add_filename_to_list): Use completion_list instead of a VEC.
3845 (add_partial_filename_data::list): Now a completion_list.
3846 (make_source_files_completion_list): Work with a completion_list
3847 instead of a VEC.
3848 * symtab.h: Include "completer.h".
3849 (default_make_symbol_completion_list_break_on)
3850 (default_make_symbol_completion_list, make_symbol_completion_list)
3851 (make_symbol_completion_type, make_file_symbol_completion_list)
3852 (make_source_files_completion_list): Delete.
3853 (default_collect_symbol_completion_matches_break_on)
3854 (default_collect_symbol_completion_matches)
3855 (collect_symbol_completion_matches)
3856 (collect_symbol_completion_matches_type)
3857 (collect_file_symbol_completion_matches)
3858 (make_source_files_completion_list): New.
3859 * top.c (init_main): Don't install a rl_completion_entry_function
3860 hook. Install a rl_attempted_completion_function hook instead.
3861 * tui/tui-layout.c (layout_completer): Adjust to work with a
3862 completion_tracker.
3863 * tui/tui-regs.c (tui_reggroup_completer):
3864 * tui/tui-win.c (window_name_completer, focus_completer)
3865 (winheight_completer): Adjust to work with a completion_tracker.
3866 * value.c: Include "completer.h".
3867 (complete_internalvar): Adjust to work with a completion_tracker.
3868 * value.h (complete_internalvar): Likewise.
3869
6e1dbf8c
PA
38702017-07-17 Pedro Alves <palves@redhat.com>
3871
3872 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
3873 renames.
3874 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
3875 comments to completer_ftype's declaration.
3876 <completer_handle_brkchars>: Change type to
3877 completer_handle_brkchars_ftype.
3878 * command.h (completer_ftype): Add describing comment and give
3879 names to parameters.
3880 (completer_ftype_void): Rename to ...
3881 (completer_handle_brkchars_ftype) ... this. Add describing comment.
3882 (set_cmd_completer_handle_brkchars): Adjust.
3883 * completer.c (filename_completer_handle_brkchars): New function.
3884 (complete_line_internal_normal_command): New function, factored
3885 out from ...
3886 (complete_line_internal): ... here.
3887 (command_completer_handle_brkchars)
3888 (default_completer_handle_brkchars)
3889 (completer_handle_brkchars_func_for_completer): New functions.
3890 * completer.h (set_gdb_completion_word_break_characters): Delete
3891 declaration.
3892 (completer_handle_brkchars_func_for_completer): New declaration.
3893 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
3894 completer_handle_brkchars_func_for_completer.
3895
78b13106
PA
38962017-07-17 Pedro Alves <palves@redhat.com>
3897
3898 * completer.c (symbol_completer): New function, based on
3899 make_symbol_completion_list_fn.
3900 * completer.h (symbol_completer): New declaration.
3901 * guile/scm-cmd.c (cmdscm_completers): Adjust.
3902 * python/py-cmd.c (completers): Adjust.
3903 * symtab.c (make_symbol_completion_list_fn): Delete.
3904 * symtab.h (make_symbol_completion_list_fn): Delete.
3905 * cli/cli-decode.c (add_cmd): Adjust.
3906
bbf2f4df
PA
39072017-07-17 Pedro Alves <palves@redhat.com>
3908
3909 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
3910 * dwarf2read.c: Include "filename-seen-cache.h".
3911 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
3912 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
3913 * filename-seen-cache.c: New file.
3914 * filename-seen-cache.h: New file.
3915 * symtab.c: Include "filename-seen-cache.h".
3916 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
3917 (create_filename_seen_cache, clear_filename_seen_cache)
3918 (delete_filename_seen_cache, filename_seen): Delete, parts moved
3919 to filename-seen-cache.h/filename-seen-cache.c.
3920 (output_source_filename, sources_info)
3921 (maybe_add_partial_symtab_filename)
3922 (make_source_files_completion_list): Adjust to use
3923 filename_seen_cache.
3924
330cdd98
PA
39252017-07-17 Pedro Alves <palves@redhat.com>
3926
3927 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
3928 fields.
3929 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
3930 dwarf2_debug_sections*)): New.
3931 (dwarf2_per_objfile::dwarf2_per_objfile(const
3932 dwarf2_per_objfile&)): Declare as deleted.
3933 (dwarf2_per_objfile::operator=): Declare as deleted.
3934 (dwarf2_per_objfile::dwarf2_per_objfile)
3935 (dwarf2_per_objfile::~dwarf2_per_objfile)
3936 (dwarf2_per_objfile::free_cached_comp_units): New.
3937 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
3938 ctor. Call dwarf2_per_objfile's ctor manually.
3939 (dwarf2_locate_sections): Deleted/refactored as ...
3940 (dwarf2_per_objfile::locate_sections): ... this new method.
3941 (free_cached_comp_units): Defer to
3942 dwarf2_per_objfile::free_cached_comp_units.
3943 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
3944
8880f2a9
TT
39452017-07-14 Tom Tromey <tom@tromey.com>
3946
3947 PR rust/21764:
3948 * rust-exp.y (convert_ast_to_expression): Add "want_type"
3949 parameter.
3950 <UNOP_SIZEOF>: Split into separate case.
3951 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
3952
65547233
TT
39532017-07-14 Tom Tromey <tom@tromey.com>
3954
3955 PR rust/21763:
3956 * symtab.c (symbol_matches_domain): Add language_rust to special
3957 case.
3958 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
3959 treat LOC_TYPEDEF symbols as variables.
3960
8f14146e
PA
39612017-07-14 Pedro Alves <palves@redhat.com>
3962
3963 * symtab.c (make_file_symbol_completion_list_1): Iterate over
3964 symtabs matching all symtabs with SRCFILE as file name instead of
3965 only considering the first hit, with lookup_symtab.
3966
2347965c
SM
39672017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3968
3969 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
3970 operator_name parameters.
3971 (gen_expr): Update function call.
3972
40f4af28
SM
39732017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3974
3975 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
3976 parameter.
3977 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
3978 Likewise.
3979 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
3980 parameter, use agent_expr::gdbarch instead, update function
3981 calls.
3982 (locexpr_tracepoint_var_ref): Likewise.
3983 (loclist_tracepoint_var_ref): Likewise.
3984 * ax-gdb.c (gen_trace_static_fields): Likewise.
3985 (gen_traced_pop): Likewise.
3986 (gen_frame_args_address): Likewise.
3987 (gen_frame_locals_address): Likewise.
3988 (gen_var_ref): Likewise.
3989 (gen_struct_ref_recursive): Likewise.
3990 (gen_static_field): Likewise.
3991 (gen_maybe_namespace_elt): Likewise.
3992 (gen_expr): Likewise.
3993 (gen_trace_for_var): Likewise.
3994 (gen_trace_for_expr): Likewise.
3995 (gen_trace_for_return_address): Likewise.
3996
053f8057
SM
39972017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3998
3999 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4000 parameter.
4001 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4002
6661ad48
SM
40032017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4004
4005 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4006 from ax, update calls.
4007 (gen_usual_arithmetic): Likewise.
4008 (gen_integral_promotions): Likewise.
4009 (gen_bitfield_ref): Likewise.
4010 (gen_primitive_field): Likewise.
4011 (gen_struct_ref_recursive): Likewise.
4012 (gen_struct_ref): Likewise.
4013 (gen_maybe_namespace_elt): Likewise.
4014 (gen_struct_elt_for_reference): Likewise.
4015 (gen_namespace_elt): Likewise.
4016 (gen_aggregate_elt_ref): Likewise.
4017 (gen_expr): Get gdbarch from ax, update calls.
4018 (gen_expr_binop_rest): Likewise.
4019
c55a47e7
PA
40202017-07-13 Pedro Alves <palves@redhat.com>
4021
4022 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4023 as default tdesc.
4024 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4025 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4026 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4027 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4028 tdep.
4029 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4030 Get final tdesc from the tdep.
4031 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4032 default tdesc.
4033 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4034 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4035 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4036 Use it as default tdesc.
4037 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4038 down to amd_init_abi. No longer handle fallback tdesc here.
4039 * amd64-tdep.h (tdesc_x32): Declare.
4040 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4041 parameter.
4042 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4043 as default tdesc.
4044
55efceab
AA
40452017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4046
4047 * s390-linux-tdep.c (s390_process_record): Add support for
4048 instructions new in arch12.
4049
0aa37b65
JB
40502017-07-11 John Baldwin <jhb@FreeBSD.org>
4051
4052 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4053 PT_GETFSBASE and PT_GETGSBASE.
4054 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4055 PT_SETGSBASE.
4056
48aeef91
JB
40572017-07-11 John Baldwin <jhb@FreeBSD.org>
4058
4059 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4060 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4061 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4062 those rules.
4063 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4064 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4065 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4066 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4067 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4068 * features/i386/amd64.xml: Add 64bit-segments.xml.
4069 * features/i386/amd64-avx-avx512.c: Regenerated.
4070 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4071 * features/i386/amd64-avx-mpx.c: Regenerated.
4072 * features/i386/amd64-avx.c: Regenerated.
4073 * features/i386/amd64-mpx.c: Regenerated.
4074 * features/i386/amd64.c: Regenerated.
4075 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4076 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4077 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4078 * regformats/i386/amd64-avx.dat: Regenerated.
4079 * regformats/i386/amd64-mpx.dat: Regenerated.
4080 * regformats/i386/amd64.dat: Regenerated.
4081
77c501bc
YQ
40822017-07-10 Yao Qi <yao.qi@linaro.org>
4083
4084 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4085 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4086
6dc8d757
AK
40872017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4088
4089 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4090 unsetenv.
4091 * gnulib/aclocal.m4: Regenerate.
4092 * gnulib/config.in: Regenerate.
4093 * gnulib/configure: Regenerate.
4094 * gnulib/import/Makefile.am: Regenerate.
4095 * gnulib/import/Makefile.in: Regenerate.
4096 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4097 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4098 * gnulib/import/m4/environ.m4: New file.
4099 * gnulib/import/m4/setenv.m4: New file.
4100 * gnulib/import/setenv.c: New file.
4101 * gnulib/import/unsetenv.c: New file.
4102
266934d1
SM
41032017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4104
4105 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4106 address when op is DW_OP_addr.
4107
03278692
TT
41082017-07-09 Tom Tromey <tom@tromey.com>
4109
4110 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4111 check and apply to outer type.
4112
4b654465
JB
41132017-07-07 John Baldwin <jhb@FreeBSD.org>
4114
4115 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4116 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4117 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4118 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4119
2af9fc44
JB
41202017-07-07 John Baldwin <jhb@FreeBSD.org>
4121
4122 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4123
382b69bb
JB
41242017-07-07 John Baldwin <jhb@FreeBSD.org>
4125
4126 * corelow.c (get_core_siginfo): Remove.
4127 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4128 instead of get_core_siginfo.
4129 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4130 * gdbarch.h: Re-generate.
4131 * gdbarch.c: Re-generate.
4132 * linux-tdep.c (linux_core_xfer_siginfo): New.
4133 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4134
6e5eab33
JB
41352017-07-07 John Baldwin <jhb@FreeBSD.org>
4136
4137 * corelow.c (thread_section_name): Move to ...
4138 * gdbcore.h (thread_section_name): ... here.
4139
929edea9
JB
41402017-07-07 John Baldwin <jhb@FreeBSD.org>
4141
4142 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4143 (struct siginfo32): New.
4144 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4145 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4146 via ptrace(PT_LWPINFO).
4147
762c974a
JB
41482017-07-07 John Baldwin <jhb@FreeBSD.org>
4149
4150 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4151 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4152 (fbsd_get_siginfo_type): New.
4153 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4154 (_initialize_fbsd_tdep): New.
4155
33c5cd75
DB
41562017-07-06 David Blaikie <dblaikie@gmail.com>
4157
4158 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4159 a singular dwo_unit*) to support multiple CUs in the same way that
4160 multiple TUs are supported.
4161 (create_cus_hash_table): Replace create_dwo_cu with a function for
4162 parsing multiple CUs from a DWO file.
4163 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4164 create_dwo_cu.
4165 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4166 htab_find, rather than comparing the signature to a singleton CU in
4167 the dwo_file.
4168
8455d262
PA
41692017-07-06 Pedro Alves <palves@redhat.com>
4170
4171 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4172
4da3eb35
PA
41732017-07-04 Pedro Alves <palves@redhat.com>
4174
4175 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4176 * gdbtypes.h (TYPE_STATIC): Delete.
4177 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4178 is_synchronized, is_native>: Delete.
4179 <dummy>: Bump.
4180 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4181 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4182 (TYPE_FN_FIELD_ABSTRACT): Delete.
4183
5bfd255c
SM
41842017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4185
4186 * buffer.h (buffer_finish): Fix spelling mistakes.
4187
25c54127
EZ
41882017-07-01 Eli Zaretskii <eliz@gnu.org>
4189
4190 * .dir-locals.el: Automatically switch to C-style comments in
4191 versions of Emacs that support the feature.
4192
dc4bde35
SDJ
41932017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4194 Pedro Alves <palves@redhat.com>
4195
4196 PR cli/21688
4197 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4198 (process_next_line): New variable 'inline_cmd'.
4199 Adjust 'if' clauses for "python", "compile" and "guile" to use
4200 'command_name_equals' and check for '!inline_cmd'.
4201
51ed89aa
SDJ
42022017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4203
4204 PR cli/21688
4205 * cli/cli-script.c (command_name_equals_not_inline): New function.
4206 (process_next_line): Adjust 'if' clauses for "python", "compile"
4207 and "guile" to use command_name_equals_not_inline.
4208
eb17d413
PA
42092017-06-29 Pedro Alves <palves@redhat.com>
4210
4211 * completer.c (expression_completer): Call
4212 linespec_location_completer instead of location_completer.
4213
195bcdd5
PA
42142017-06-29 Pedro Alves <palves@redhat.com>
4215
4216 * completer.c (expression_completer): Remove code that recomputes
4217 'text' from 'word'.
4218
adc764e7
YQ
42192017-06-29 Yao Qi <yao.qi@linaro.org>
4220
4221 * regformats/regdat.sh: Generate code with
4222 "ifndef IN_PROCESS_AGENT".
4223
6e75794e
PA
42242017-06-28 Pedro Alves <palves@redhat.com>
4225
4226 * command.h: Include "common/scoped_restore.h".
4227
bc491f2e
YQ
42282017-06-28 Yao Qi <yao.qi@linaro.org>
4229
4230 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4231 instead of obstack_grow.
4232
41664b45
DG
42332017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4234
4235 PR gdb/21337
4236 * symfile.c (reread_symbols): Call objfiles_changed just before
4237 read_symbols.
4238
6da67eb1
PA
42392017-06-27 Pedro Alves <palves@redhat.com>
4240
4241 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4242 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4243 (completion_list_add_symbol, completion_list_add_msymbol):
4244 ... these new functions.
4245 (add_symtab_completions)
4246 (default_make_symbol_completion_list_break_on_1): Adjust.
4247
23732b1e
PA
42482017-06-27 Pedro Alves <palves@redhat.com>
4249
4250 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4251 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4252 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4253 dtor.
4254 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4255 'storage_obstack' field an auto_obstack. In-class initialize all
4256 non-bitfield fields. Make minsyms_read bool.
4257 * symfile.c (read_symbols): Adjust.
4258
a4d1e79a
AH
42592017-06-27 Alan Hayward <alan.hayward@arm.com>
4260
4261 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4262 (gdbsim_store_register): Likewise.
4263
8268c778
PA
42642017-06-27 Pedro Alves <palves@redhat.com>
4265
4266 * c-exp.y (name_obstack): Now an auto_obstack.
4267 (yylex): Use auto_obstack::clear.
4268 (c_parse): Use auto_obstack::clear instead of reinitializing and
4269 freeing the obstack.
4270 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4271 * d-exp.y (name_obstack): Now an auto_obstack.
4272 (yylex): Use auto_obstack::clear.
4273 (d_parse): Use auto_obstack::clear instead of reinitializing and
4274 freeing the obstack.
4275 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4276 auto_obstack.
4277 * dwarf2read.c (create_addrmap_from_index)
4278 (dwarf2_build_psymtabs_hard)
4279 (update_enumeration_type_from_children): Likewise.
4280 * gdb_obstack.h (auto_obstack): New type.
4281 * go-exp.y (name_obstack): Now an auto_obstack.
4282 (build_packaged_name): Use auto_obstack::clear.
4283 (go_parse): Use auto_obstack::clear instead of reinitializing and
4284 freeing the obstack.
4285 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4286 auto_obstack.
4287 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4288 * rust-exp.y (work_obstack): Now an auto_obstack.
4289 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4290 reinitializing and freeing the obstack.
4291 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4292 (host_char_to_target): Use auto_obstack.
4293 * utils.h (make_cleanup_obstack_free): Delete declaration.
4294 * valprint.c (generic_emit_char, generic_printstr): Use
4295 auto_obstack.
4296
db665f42
SM
42972017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4298
4299 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4300 thread.
4301 (darwin_init_thread_list): Don't update dummy thread.
4302 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4303
873c0814
SM
43042017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4305
4306 * record-full.c (netorder16): Remove.
4307
8b5a7a6e
SM
43082017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4309
4310 * common/diagnostics.h: Define macros for GCC.
4311 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4312 * common/vec.h: Include diagnostics.h.
4313 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4314 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4315 warning.
4316
d1435379
SM
43172017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4318
4319 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4320 New macro.
4321 * ada-lex.l: Ignore deprecated register warnings.
4322
cc75e0fd
SM
43232017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4324
4325 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4326 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4327
07809eaf
SM
43282017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4329
4330 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4331 its own line.
4332
f076f034
SM
43332017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4334
4335 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4336
0dd5cbc5
AH
43372017-06-23 Alan Hayward <alan.hayward@arm.com>
4338
4339 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4340 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4341 (xtensa_register_read_masked): Likewise.
4342
d4c6ce5b
SDJ
43432017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4344
4345 * common/environ.c (gdb_environ::unset): Update comment.
4346
16892a03
AH
43472017-06-22 Alan Hayward <alan.hayward@arm.com>
4348
4349 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4350 registers.
4351
d7dcbefc
AH
43522017-06-22 Alan Hayward <alan.hayward@arm.com>
4353
4354 * record-full.c (record_full_exec_insn): Use byte_vector.
4355
b30ff123
YQ
43562017-06-22 Yao Qi <yao.qi@linaro.org>
4357
4358 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4359 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4360
4fa847d7
AH
43612017-06-22 Alan Hayward <alan.hayward@arm.com>
4362
4363 * remote.c (cached_reg): Move from here...
4364 * regcache.h (cached_reg): ...to here.
4365 * python/py-unwind.c (struct reg_info): Remove.
4366 (cached_frame_info): Use cached_reg_t.
4367 (pyuw_prev_register): Likewise.
4368 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4369 (pyuw_dealloc_cache): Free all registers.
4370
f4906a9a
PA
43712017-06-22 Pedro Alves <palves@redhat.com>
4372 Simon Marchi <simon.marchi@ericsson.com>
4373
4374 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4375 warning.
4376 * common/diagnostics.h: New file.
4377
b45a1208
PA
43782017-06-22 Pedro Alves <palves@redhat.com>
4379
4380 * common/agent.h: Add include guards.
4381
e4da2c61
SM
43822017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4383
4384 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4385 talk about addressable units instead of bytes.
4386
96160d60
SDJ
43872017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4388
4389 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4390 of '::const_iterator'.
4391
9a6c7d9c
SDJ
43922017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4393
4394 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4395 'unittests/environ-selftests.c'.
4396 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4397 * charset.c (find_charset_names): Declare object 'iconv_env'.
4398 Update code to use 'iconv_env' object. Remove call to
4399 'free_environ'.
4400 * common/environ.c: Include <utility>.
4401 (make_environ): Delete function.
4402 (free_environ): Delete function.
4403 (gdb_environ::clear): New function.
4404 (gdb_environ::operator=): New function.
4405 (gdb_environ::get): Likewise.
4406 (environ_vector): Delete function.
4407 (set_in_environ): Delete function.
4408 (gdb_environ::set): New function.
4409 (unset_in_environ): Delete function.
4410 (gdb_environ::unset): New function.
4411 (gdb_environ::envp): Likewise.
4412 * common/environ.h: Include <vector>.
4413 (struct gdb_environ): Delete; transform into...
4414 (class gdb_environ): ... this class.
4415 (free_environ): Delete prototype.
4416 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4417 environ_vector): Likewise.
4418 * infcmd.c (run_command_1): Update code to call
4419 'envp' from 'gdb_environ' class.
4420 (environment_info): Update code to call methods from 'gdb_environ'
4421 class.
4422 (unset_environment_command): Likewise.
4423 (path_info): Likewise.
4424 (path_command): Likewise.
4425 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4426 (inferior::inferior): Initialize 'environment' using the host's
4427 information.
4428 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4429 Include "environ.h".
4430 (class inferior) <environment>: Change type from 'struct
4431 gdb_environ' to 'gdb_environ'.
4432 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4433 methods from 'gdb_environ' class.
4434 * solib.c (solib_find_1): Likewise
4435 * unittests/environ-selftests.c: New file.
4436
75c554cf
YQ
44372017-06-20 Yao Qi <yao.qi@linaro.org>
4438
4439 * features/i386/i386-linux.xml: Exchange the order of including
4440 32bit-linux.xml and 32bit-sse.xml.
4441 * features/i386/i386-linux.c: Regenerated.
4442
72ddacb7
YQ
44432017-06-20 Yao Qi <yao.qi@linaro.org>
4444
4445 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4446 Delete copy ctor and assignment operator.
4447 (tdesc_type): Likewise.
4448 (tdesc_feature): Likewise.
4449 (tdesc_free_reg): Remove.
4450 (tdesc_create_reg): Use new.
4451 (tdesc_free_type): Remove.
4452 (tdesc_create_vector): Use new.
4453 (tdesc_create_union): Likewise.
4454 (tdesc_create_flags): Likewise.
4455 (tdesc_create_enum): Likewise.
4456 (tdesc_free_feature): Delete.
4457 (free_target_description): Use delete.
4458
325c9fd4
JB
44592017-06-19 John Baldwin <jhb@FreeBSD.org>
4460
4461 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4462 registers.
4463
16b7a719
PA
44642017-06-19 Pedro Alves <palves@redhat.com>
4465
4466 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4467 after gdb::unlinker.
4468
1c8e01c9
SDJ
44692017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4470
4471 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4472 gdb_environ to access an environment variable.
4473
ffce45d2
TP
44742017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4475
4476 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4477 gdb_byte*.
4478
1d4fbac9
SM
44792017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4480
4481 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4482
8465943a
SM
44832017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4484
4485 * configure: Re-generate.
4486 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4487
3e019bdc
SM
44882017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4489
4490 * configure: Re-generate.
4491 * warning.m4: Pass -Werror to compiler when checking for
4492 supported warning flags.
4493
cf0dd6f0
SM
44942017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4495
4496 * Makefile.in (COMPILE.pre): Add "-x c++".
4497
6f98355c
YQ
44982017-06-16 Alan Hayward <alan.hayward@arm.com>
4499 Pedro Alves <palves@redhat.com>
4500 Yao Qi <yao.qi@linaro.org>
4501
4502 * defs.h (RequireLongest): New.
4503 (extract_integer): Declare function template.
4504 (extract_signed_integer): Remove the declaration, but define it
4505 static inline.
4506 (extract_unsigned_integer): Likewise.
4507 (store_integer): Declare function template.
4508 (store_signed_integer): Remove the declaration, but define it
4509 static inline.
4510 (store_unsigned_integer): Likewise.
4511 * findvar.c (extract_integer): New function template.
4512 (extract_signed_integer): Remove.
4513 (extract_unsigned_integer): Remove.
4514 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4515 instantiations.
4516 (store_integer): New function template.
4517 (store_signed_integer): Remove.
4518 (store_unsigned_integer): Remove.
4519 (store_integer): Explicit instantiations.
4520 * regcache.c (regcache_raw_read_signed): Update.
4521 (regcache::raw_read): New function.
4522 (regcache::raw_read_signed): Remove.
4523 (regcache::raw_read_unsigned): Remove.
4524 (regcache_raw_read_unsigned): Update.
4525 (regcache_raw_write_unsigned): Update.
4526 (regcache::raw_write_signed): Remove.
4527 (regcache::raw_write): New function.
4528 (regcache_cooked_read_signed): Update.
4529 (regcache::raw_write_unsigned): Remove.
4530 (regcache::cooked_read_signed): Remove.
4531 (regcache_cooked_read_unsigned): Update.
4532 (regcache::cooked_read_unsigned): Remove.
4533 (regcache_cooked_write_signed): Update.
4534 (regcache_cooked_write_unsigned): Update.
4535 * regcache.h (regcache) <raw_read_signed>: Remove.
4536 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
4537 <raw_read, raw_write>: New.
4538 <cooked_read_signed, cooked_write_signed>: Remove.
4539 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
4540 <cooked_read, cooked_write>: New.
4541 * sh64-tdep.c (sh64_pseudo_register_read): Update.
4542 (sh64_pseudo_register_write): Update.
4543
a87dc45a
AK
45442017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
4545
4546 * arc-tdep.c (arc_disassembler_options): New variable.
4547 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
4548 of default_print_insn.
4549 (arc_delayed_print_insn): Set info->section when needed,
4550 use default_print_insn to retrieve a disassembler.
4551
45159d6a
SDJ
45522017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
4553
4554 PR gdb/21574
4555 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
4556 to mention $SHELL and startup-with-shell.
4557
b46c4cf0
MF
45582017-06-14 Max Filippov <jcmvbkbc@gmail.com>
4559
4560 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
4561
6394c606
YQ
45622017-06-14 Yao Qi <yao.qi@linaro.org>
4563
4564 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
4565 default_print_insn instead of print_insn_aarch64.
4566 * arm-tdep.c (gdb_print_insn_arm): Call
4567 default_print_insn instead of print_insn_big_arm
4568 and print_insn_little_arm.
4569 * i386-tdep.c (i386_print_insn): Call default_print_insn
4570 instead of print_insn_i386.
4571 * ia64-tdep.c (ia64_print_insn): Call
4572 default_print_insn instead of print_insn_ia64.
4573 * mips-tdep.c (gdb_print_insn_mips): Call
4574 default_print_insn instead of print_insn_big_mips
4575 and print_insn_little_mips.
4576 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
4577 instead of print_insn_spu.
4578
d5722aa2
PA
45792017-06-14 Pedro Alves <palves@redhat.com>
4580
4581 * ada-lang.c: Include "common/byte-vector.h".
4582 (ada_value_primitive_packed_val): Use gdb::byte_vector.
4583 * charset.c (wchar_iterator::iterate): Resize the vector instead
4584 of reserving it.
4585 * common/byte-vector.h: Include "common/def-vector.h".
4586 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
4587 * cli/cli-dump.c: Include "common/byte-vector.h".
4588 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
4589 * common/byte-vector.h: New file.
4590 * common/def-vector.h: New file.
4591 * common/default-init-alloc.h: New file.
4592 * dwarf2loc.c: Include "common/byte-vector.h".
4593 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
4594 instead of reserving it.
4595 * dwarf2read.c: Include "common/byte-vector.h".
4596 (data_buf::m_vec): Now a gdb::byte_vector.
4597 * gdb_regex.c: Include "common/def-vector.h".
4598 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
4599 * mi/mi-main.c: Include "common/byte-vector.h".
4600 (mi_cmd_data_read_memory): Use gdb::byte_vector.
4601 * printcmd.c: Include "common/byte-vector.h".
4602 (print_scalar_formatted): Use gdb::byte_vector.
4603 * valprint.c: Include "common/byte-vector.h".
4604 (maybe_negate_by_bytes, print_decimal_chars): Use
4605 gdb::byte_vector.
4606
01ec7a27
SM
46072017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4608
4609 * darwin-nat.c: Include "nat/fork-inferior.h".
4610
848d9074
SM
46112017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4612
4613 * configure.nat: Factor out Darwin bits that are not
4614 architecture-specific. Add fork-inferior.o.
4615
3b912944
SM
46162017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4617
4618 * configure.nat: Factor out AIX bits that are not
4619 architecture-specific. Add fork-inferior.o.
4620
55acdf22
AA
46212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4622
4623 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
4624 (read_pieced_value, write_pieced_value): ...here. Reduce to
4625 wrappers that just call rw_pieced_value.
4626
f65e2044
AA
46272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4628
4629 * dwarf2loc.c (write_pieced_value): When writing the data for a
4630 memory piece, use write_memory_with_notification instead of
4631 write_memory.
4632
23f945bf
AA
46332017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4634
4635 * valops.c (read_value_memory): Change embedded_offset to
4636 represent a bit offset instead of a byte offset.
4637 * value.h (read_value_memory): Adjust comment.
4638
f236533e
AA
46392017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4640
4641 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
4642 dest_offset_bits and source_offset_bits.
4643 (write_pieced_value): Likewise.
4644
65d84b76
AA
46452017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4646
4647 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
4648 given by DW_OP_bit_piece.
4649 (write_pieced_value): Likewise.
4650
242d31ab
AA
46512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4652
4653 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
4654 some other preparations to the places where sufficient information
4655 is available.
4656 (write_pieced_value): Likewise.
4657
03c8af18
AA
46582017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4659
4660 * dwarf2loc.c (bits_to_bytes): New function.
4661 (read_pieced_value): Fix offset calculations for register pieces
4662 on big-endian targets.
4663 (write_pieced_value): Likewise.
4664
840989c1
AA
46652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4666
4667 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
4668 (write_pieced_value): Likewise.
4669
359b19bb
AA
46702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4671
4672 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
4673 transfer the source value's least significant bits, instead of its
4674 lowest-addressed ones. Rename type_len to max_offset.
4675 (read_pieced_value): Mirror above changes to write_pieced_value as
4676 applicable.
4677
07c9ca3b
AA
46782017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4679
4680 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
4681 truncate full bytes from dest_offset_bits before using it as an
4682 offset into the buffer.
4683
f1cc9874
AA
46842017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4685
4686 * dwarf2loc.c (write_pieced_value): Include transfer size in
4687 byte-wise check.
4688
cdaac320
AA
46892017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4690
4691 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
4692 calculation of this_size.
4693
af547a96
AA
46942017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4695
4696 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
4697 when targeting a bit-field.
4698 (write_pieced_value): Likewise.
4699
ddd7882a
AA
47002017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4701
4702 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
4703 (allocate_piece_closure): Drop addr_size parameter.
4704 (dwarf2_evaluate_loc_desc_full): Adjust call to
4705 allocate_piece_closure.
4706
e9352324
AA
47072017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4708
4709 PR gdb/21226
4710 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
4711 the LSB end, independent of endianness.
4712
d5d1163e
AA
47132017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4714
4715 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
4716 size capping.
4717
032bb6ea
YQ
47182017-06-13 Yao Qi <yao.qi@linaro.org>
4719
4720 * mips-linux-nat.c: Move include features/mips*-linux.c to
4721 mips-linux-tdep.c.
4722 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
4723 to mips-linux-tdep.c.
4724 * mips-linux-tdep.c: Include features/mips*-linux.c
4725 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
4726 functions.
4727 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
4728 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
4729 (tdesc_mips64_dsp_linux): Declare.
4730
f12f6bad
TT
47312017-06-12 Tom Tromey <tom@tromey.com>
4732
4733 * valprint.h (val_print_type_code_int): Remove.
4734 * valprint.c (generic_val_print_int): Always call
4735 val_print_scalar_formatted.
4736 (val_print_type_code_int): Remove.
4737 * printcmd.c (print_scalar_formatted): Handle options->format==0.
4738 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
4739 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
4740 * ada-valprint.c (ada_val_print_num): Use
4741 val_print_scalar_formatted.
4742
d9109c80
TT
47432017-06-12 Tom Tromey <tom@tromey.com>
4744
4745 * printcmd.c (print_scalar_formatted): Unify the two switches.
4746 Don't convert scalars to LONGEST.
4747
4ac0cb1c
TT
47482017-06-12 Tom Tromey <tom@tromey.com>
4749
4750 PR exp/16225:
4751 * valprint.h (print_decimal_chars): Update.
4752 * valprint.c (maybe_negate_by_bytes): New function.
4753 (print_decimal_chars): Add "is_signed" argument.
4754 * printcmd.c (print_scalar_formatted): Update.
4755
30a25466
TT
47562017-06-12 Tom Tromey <tom@tromey.com>
4757
4758 PR exp/16225:
4759 * valprint.h (print_binary_chars, print_hex_chars): Update.
4760 * valprint.c (val_print_type_code_int): Update.
4761 (print_binary_chars): Add "zero_pad" argument.
4762 (emit_octal_digit): New function.
4763 (print_octal_chars): Don't zero-pad.
4764 (print_decimal_chars): Likewise.
4765 (print_hex_chars): Add "zero_pad" argument.
4766 * sh64-tdep.c (sh64_do_fp_register): Update.
4767 * regcache.c (regcache::dump): Update.
4768 * printcmd.c (print_scalar_formatted): Update.
4769 * infcmd.c (default_print_one_register_info): Update.
4770
b3464d03
PA
47712017-06-12 Pedro Alves <palves@redhat.com>
4772 Alan Hayward <alan.hayward@arm.com>
4773
4774 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
4775 (mips_eabi_push_dummy_call): Rename local 'regsize' to
4776 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
4777 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
4778 Assert that abi_regsize bytes fit in 'ref_valbuf'.
4779
4b76cda9
PA
47802017-06-12 Pedro Alves <palves@redhat.com>
4781
4782 * dwarf2read.c (mapped_symtab::data): Now a vector of
4783 symtab_index_entry instead of vector of
4784 std::unique_ptr<symtab_index_entry>. All users adjusted to check
4785 whether an element's name is NULL instead of checking whether the
4786 element itself is NULL.
4787 (find_slot): Change return type. Adjust.
4788 (hash_expand, , add_index_entry, uniquify_cu_indices)
4789 (write_hash_table): Adjust.
4790
e8f8bcb3
PA
47912017-06-12 Pedro Alves <palves@redhat.com>
4792
4793 * dwarf2read.c (recursively_count_psymbols): New function.
4794 (write_psymtabs_to_index): Call it to compute number of psyms and
4795 pass estimate size of psyms_seen to unordered_set's ctor.
4796
70a1152b
PA
47972017-06-12 Pedro Alves <palves@redhat.com>
4798
4799 * dwarf2read.c (write_hash_table): Check if key already exists
4800 before emplacing.
4801
c2f134ac
PA
48022017-06-12 Pedro Alves <palves@redhat.com>
4803
4804 * dwarf2read.c (data_buf::append_space): Rename to...
4805 (data_buf::grow): ... this, and make private. Adjust all callers.
4806 (data_buf::append_uint): New method.
4807 (add_address_entry, write_one_signatured_type)
4808 (write_psymtabs_to_index): Use it.
4809
a81e6d4d
PA
48102017-06-12 Pedro Alves <palves@redhat.com>
4811
4812 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
4813 (file_write (FILE *, const std::vector<Elem>&)): Delete.
4814 (data_buf::file_write): Call ::fwrite directly.
4815
6fd931f2
PA
48162017-06-12 Pedro Alves <palves@redhat.com>
4817
4818 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
4819 std::vector::erase.
4820
bc8f2430
JK
48212017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4822
4823 Code cleanup: C++ify .gdb_index producer.
4824 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
4825 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
4826 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
4827 (create_strtab, add_string): Remove.
4828 (file_write, data_buf): New.
4829 (struct symtab_index_entry): Use std::vector for cu_indices.
4830 (struct mapped_symtab): Use std::vector for data.
4831 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
4832 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
4833 Remove.
4834 (find_slot): Change return type. Update it to the new data structures.
4835 (hash_expand, add_index_entry): Update it to the new data structures.
4836 (offset_type_compare): Remove.
4837 (uniquify_cu_indices): Update it to the new data structures.
4838 (c_str_view, c_str_view_hasher, vector_hasher): New.
4839 (add_indices_to_cpool): Remove.
4840 (write_hash_table): Update it to the new data structures.
4841 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
4842 (eq_psymtab_cu_index): Remove.
4843 (psym_index_map): New typedef.
4844 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
4845 reference and std::unordered_map for cu_index_htab.
4846 (add_address_entry, add_address_entry_worker, write_address_map)
4847 (write_psymbols): Update it to the new data structures.
4848 (write_obstack): Remove.
4849 (struct signatured_type_index_data): Change types_list to a data_buf
4850 reference and psyms_seen to a std::unordered_set reference.
4851 (write_one_signatured_type, recursively_write_psymbols)
4852 (write_psymtabs_to_index): Update it to the new data structures.
4853
c4dcb155
SM
48542017-06-11 Simon Marchi <simon.marchi@ericsson.com>
4855
4856 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
4857 separate-debug-file commands.
4858 * symfile.h (separate_debug_file_debug): New global.
4859 * symfile.c (separate_debug_file_debug): New global.
4860 (separate_debug_file_exists, find_separate_debug_file): Add
4861 debug output.
4862 (_initialize_symfile): Add "set debug separate-debug-file"
4863 command.
4864 * build-id.c (build_id_to_debug_bfd,
4865 find_separate_debug_file_by_buildid): Add debug output.
4866
6d45d4b4
SM
48672017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * gdbarch.sh (displaced_step_free_closure): Remove.
4870 * gdbarch.h, gdbarch.c: Re-generate.
4871 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
4872 displaced_step_free_closure.
4873 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4874 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4875 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4876 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
4877 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4878 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4879 * arch-utils.h (simple_displaced_step_free_closure): Remove.
4880 * arch-utils.c (simple_displaced_step_free_closure): Remove.
4881 * infrun.c (displaced_step_clear): Call xfree instead of
4882 gdbarch_displaced_step_free_closure.
4883
2f91880f
SDJ
48842017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
4885
4886 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
4887 NULL".
4888
b8b6e72f
AH
48892017-06-08 Alan Hayward <alan.hayward@arm.com>
4890
4891 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
4892 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
4893 (mn10300_push_dummy_call): Likewise.
4894
5369082e
AH
48952017-06-08 Alan Hayward <alan.hayward@arm.com>
4896
4897 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
4898
ff4ca5ac
AH
48992017-06-08 Alan Hayward <alan.hayward@arm.com>
4900
4901 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
4902
aefd8b33
SDJ
49032017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4904
4905 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
4906 able to start inferiors using a shell.
4907 (New remote packets): Announce new packet "QStartupWithShell".
4908 * remote.c: Add PACKET_QStartupWithShell.
4909 (extended_remote_create_inferior): Handle new
4910 PACKET_QStartupWithShell.
4911 (remote_protocol_features) <QStartupWithShell>: New entry for
4912 PACKET_QStartupWithShell.
4913 (_initialize_remote): Call "add_packet_config_cmd" for
4914 QStartupShell.
4915
2090129c
SDJ
49162017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4917 Pedro Alves <palves@redhat.com>
4918
4919 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
4920 and "nat/fork-inferior.h".
4921 * common/common-inferior.h: New file, with contents from
4922 "gdb/inferior.h".
4923 * commom/common-utils.c: Include "common-utils.h".
4924 (stringify_argv): New function.
4925 * common/common-utils.h (stringify_argv): New prototype.
4926 * configure.nat: Add "fork-inferior.o" as a dependency for
4927 "*linux*", "fbsd*" and "nbsd*" hosts.
4928 * corefile.c (get_exec_file): Update comment.
4929 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
4930 instead of "startup_inferior".
4931 (darwin_create_inferior): Call "add_thread_silent" after
4932 "fork_inferior".
4933 * fork-child.c: Cleanup unnecessary includes.
4934 (SHELL_FILE): Move to "common/common-fork-child.c".
4935 (environ): Likewise.
4936 (exec_wrapper): Initialize.
4937 (get_exec_wrapper): New function.
4938 (breakup_args): Move to "common/common-fork-child.c"; rename to
4939 "breakup_args_for_exec".
4940 (escape_bang_in_quoted_argument): Move to
4941 "common/common-fork-child.c".
4942 (saved_ui): New variable.
4943 (prefork_hook): New function.
4944 (postfork_hook): Likewise.
4945 (postfork_child_hook): Likewise.
4946 (gdb_startup_inferior): Likewise.
4947 (fork_inferior): Move to "common/common-fork-child.c". Update
4948 function to support gdbserver.
4949 (startup_inferior): Likewise.
4950 * gdbcore.h (get_exec_file): Remove declaration.
4951 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
4952 instead of "startup_inferior". Call "add_thread_silent" after
4953 "fork_inferior".
4954 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
4955 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
4956 instead of "startup_inferior". Call "add_thread_silent" after
4957 "fork_inferior".
4958 * inferior.h: Include "common-inferior.h".
4959 (trace_start_error): Move to "common/common-utils.h".
4960 (trace_start_error_with_name): Likewise.
4961 (fork_inferior): Move prototype to "nat/fork-inferior.h".
4962 (startup_inferior): Likewise.
4963 (gdb_startup_inferior): New prototype.
4964 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
4965 * nat/fork-inferior.h: New file.
4966 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
4967 instead of "startup_inferior". Call "add_thread_silent" after
4968 "fork_inferior".
4969 * target.h (target_terminal_init): Move prototype to
4970 "target/target.h".
4971 (target_terminal_inferior): Likewise.
4972 (target_terminal_ours): Likewise.
4973 * target/target.h (target_terminal_init): New prototype, moved
4974 from "target.h".
4975 (target_terminal_inferior): Likewise.
4976 (target_terminal_ours): Likewise.
4977 * utils.c (gdb_flush_out_err): New function.
4978
043a4934
SDJ
49792017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4980
4981 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
4982 * common/common-gdbthread.h: New file, with parts from
4983 "gdb/gdbthread.h".
4984 * gdbthread.h: Include "common-gdbthread.h".
4985 (switch_to_thread): Moved to "common/common-gdbthread.h".
4986
15652511
SDJ
49872017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4988
4989 * Makefile.in (SFILES): Add "common/job-control.c".
4990 (HFILES_NO_SRCDIR): Add "common/job-control.h".
4991 (COMMON_OBS): Add "job-control.o".
4992 * common/job-control.c: New file, with contents from
4993 "gdb/inflow.c".
4994 * common/job-control.h: New file, with contents from "terminal.h".
4995 * fork-child.c: Include "job-control.h".
4996 * inflow.c: Include "job-control.h".
4997 (gdb_setpgid): Move to "common/common-inflow.c".
4998 (_initialize_inflow): Move setting of "job_control" to
4999 "handle_job_control".
5000 * terminal.h (job_control): Moved to "common/common-terminal.h".
5001 (gdb_setpgid): Likewise.
5002 * top.c: Include "job_control.h".
5003 * utils.c: Likewise.
5004 (job_control): Moved to "job-control.c".
5005
2d7cc5c7
PA
50062017-06-07 Pedro Alves <palves@redhat.com>
5007
5008 * Makefile.in (SFILES): Add gdb_regex.c.
5009 (COMMON_OBS): Add gdb_regex.o.
5010 * ada-lang.c (ada_add_standard_exceptions)
5011 (ada_add_exceptions_from_frame, name_matches_regex)
5012 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5013 parameter type to compiled_regex. Adjust.
5014 (ada_exceptions_list): Use compiled_regex.
5015 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5016 std::unique_ptr<compiled_regex>.
5017 (exception_catchpoint::~exception_catchpoint): Remove regfree
5018 call.
5019 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5020 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5021 * breakpoint.c (solib_catchpoint::compiled): Now a
5022 std::unique_ptr<compiled_regex>.
5023 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5024 (check_status_catch_solib): Adjust to use compiled_regex.
5025 (add_solib_catchpoint): Adjust to use compiled_regex.
5026 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5027 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5028 compiled_regex reference. Adjust to use it.
5029 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5030 declaration. Include "gdb_regex.h".
5031 (apropos_cmd): Change regex parameter to compiled_regex reference.
5032 * gdb_regex.c: New file.
5033 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5034 declarations.
5035 (class compiled_regex): New.
5036 * linux-tdep.c: Include "common/gdb_optional.h".
5037 (struct mapping_regexes): New, factored out from
5038 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5039 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5040 gdb::optional and remove cleanups. Adjust to compiled_regex.
5041 * probe.c: Include "common/gdb_optional.h".
5042 (collect_probes): Use compiled_regex and gdb::optional and remove
5043 cleanups.
5044 * skip.c: Include "common/gdb_optional.h".
5045 (skiplist_entry::compiled_function_regexp): Now a
5046 gdb::optional<compiled_regex>.
5047 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5048 (free_skiplist_entry): Remove regfree call.
5049 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5050 compiled_regex and gdb::optional.
5051 * symtab.c: Include "common/gdb_optional.h".
5052 (search_symbols): Use compiled_regex and gdb::optional.
5053 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5054 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5055 to gdb_regex.c.
5056
50d6adef
AH
50572017-06-07 Alan Hayward <alan.hayward@arm.com>
5058
5059 * regcache.c (regcache::save): Avoid buffer use.
5060 (regcache::dump): Likewise.
5061
4a8a33c8
AH
50622017-06-07 Alan Hayward <alan.hayward@arm.com>
5063
5064 * sh-tdep.c (sh_pseudo_register_read): Remove
5065 MAX_REGISTER_SIZE.
5066 (sh_pseudo_register_write): Likewise.
5067 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5068 (sh64_pseudo_register_write): Likewise
5069
d1be909e
AH
50702017-06-07 Alan Hayward <alan.hayward@arm.com>
5071
5072 * aarch64-tdep.c (aarch64_store_return_value): Use
5073 V_REGISTER_SIZE.
5074 (aarch64_pseudo_read_value): Likewise.
5075 (aarch64_pseudo_write): Likewise.
5076
f4a65042
YQ
50772017-06-06 Yao Qi <yao.qi@linaro.org>
5078
5079 * regformats/regdef.h (set_register_cache): Remove the
5080 declaration.
5081
9f7fb0aa
AH
50822017-06-06 Alan Hayward <alan.hayward@arm.com>
5083
5084 * frame.c (frame_unwind_register_signed): Use
5085 frame_unwind_register_value.
5086
e1e01040
PA
50872017-06-06 Pedro Alves <palves@redhat.com>
5088
5089 PR breakpoints/21553
5090 * breakpoint.c (create_breakpoints_sal_default)
5091 (init_breakpoint_sal, create_breakpoint_sal): Use
5092 gdb::unique_xmalloc_ptr for string parameters.
5093 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5094 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5095 (base_breakpoint_create_breakpoints_sal)
5096 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5097 (strace_marker_create_breakpoints_sal)
5098 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5099 string parameters.
5100 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5101 gdb::unique_xmalloc_ptr for string parameters.
5102 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5103 parameters.
5104
fbe654c8
AH
51052017-06-06 Alan Hayward <alan.hayward@arm.com>
5106
5107 * alpha-tdep.c (alpha_register_to_value): Use
5108 get_frame_register_value.
5109 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5110
ae0d01d6
AH
51112017-06-06 Alan Hayward <alan.hayward@arm.com>
5112
5113 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5114 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5115 (ia64_value_to_register): Likewise.
5116 (ia64_extract_return_value): Likewise.
5117 (ia64_store_return_value): Likewise.
5118 (ia64_push_dummy_call): Likewise.
5119
49cf576c
JB
51202017-06-04 Joel Brobecker <brobecker@adacore.com>
5121
5122 GDB 8.0 released.
5123
26b6a6ab
SM
51242017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5125
5126 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5127
22827c51
SM
51282017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5129
5130 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5131 parameter.
5132 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5133
0e05cf3a
SM
51342017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5135
5136 * event-loop.c (poll_timers): Unallocate timer using delete
5137 instead of xfree.
5138
c1fc2657
SM
51392017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5140
5141 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5142 (struct breakpoint) <~breakpoint>: New.
5143 (struct watchpoint): Inherit from breakpoint.
5144 <~watchpoint>: New.
5145 <base>: Remove.
5146 (struct tracepoint): Inherit from breakpoint.
5147 <base>: Remove.
5148 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5149 (struct longjmp_breakpoint): Inherit from breakpoint.
5150 <~longjmp_breakpoint>: New.
5151 <base>: Remove.
5152 (new_breakpoint_from_type): Remove casts.
5153 (watchpoint_in_thread_scope): Remove reference to base field.
5154 (watchpoint_del_at_next_stop): Likewise.
5155 (update_watchpoint): Likewise.
5156 (watchpoint_check): Likewise.
5157 (bpstat_check_watchpoint): Likewise.
5158 (set_longjmp_breakpoint): Likewise.
5159 (struct fork_catchpoint): Inherit from breakpoint.
5160 <base>: Remove.
5161 (struct solib_catchpoint): Inherit from breakpoint.
5162 <~solib_catchpoint>: New.
5163 <base>: Remove.
5164 (dtor_catch_solib): Change to ...
5165 (solib_catchpoint::~solib_catchpoint): ... this.
5166 (breakpoint_hit_catch_solib): Remove reference to base field.
5167 (add_solib_catchpoint): Likewise.
5168 (create_fork_vfork_event_catchpoint): Likewise.
5169 (struct exec_catchpoint): Inherit from breakpoint.
5170 <~exec_catchpoint>: New.
5171 <base>: Remove.
5172 (dtor_catch_exec): Change to ...
5173 (exec_catchpoint::~exec_catchpoint): ... this.
5174 (dtor_watchpoint): Change to ...
5175 (watchpoint::~watchpoint): ... this.
5176 (watch_command_1): Remove reference to base field.
5177 (catch_exec_command_1): Likewise.
5178 (base_breakpoint_dtor): Change to ...
5179 (breakpoint::~breakpoint): ... this.
5180 (base_breakpoint_ops): Remove dtor field value.
5181 (longjmp_bkpt_dtor): Change to ...
5182 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5183 (strace_marker_create_breakpoints_sal): Remove reference to base
5184 field.
5185 (delete_breakpoint): Don't manually call breakpoint destructor.
5186 (create_tracepoint_from_upload): Remove reference to base field.
5187 (trace_pass_set_count): Likewise.
5188 (initialize_breakpoint_ops): Don't initialize
5189 momentary_breakpoint_ops, don't set dtors.
5190 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5191 <~ada_catchpoint>: New.
5192 <base>: Remove.
5193 (create_excep_cond_exprs): Remove reference to base field.
5194 (dtor_exception): Change to ...
5195 (ada_catchpoint::~ada_catchpoint): ... this.
5196 (dtor_catch_exception): Remove.
5197 (dtor_catch_exception_unhandled): Remove.
5198 (dtor_catch_assert): Remove.
5199 (create_ada_exception_catchpoint): Remove reference to base
5200 field.
5201 (initialize_ada_catchpoint_ops): Don't set dtors.
5202 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5203 breakpoint.
5204 <~signal_catchpoint>: New.
5205 <base>: Remove.
5206 (signal_catchpoint_dtor): Change to ...
5207 (signal_catchpoint::~signal_catchpoint): ... this.
5208 (create_signal_catchpoint): Remove reference to base field.
5209 (initialize_signal_catchpoint_ops): Don't set dtor.
5210 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5211 from breakpoint.
5212 <~syscall_catchpoint>: New.
5213 <base>: Remove.
5214 (dtor_catch_syscall): Change to ...
5215 (syscall_catchpoint::~syscall_catchpoint): ... this.
5216 (create_syscall_event_catchpoint): Remove reference to base
5217 field.
5218 (initialize_syscall_catchpoint_ops): Don't set dtor.
5219 * break-catch-throw.c (struct exception_catchpoint): Inherit
5220 from breakpoint.
5221 <~exception_catchpoint>: New.
5222 <base>: Remove.
5223 (dtor_exception_catchpoint): Change to ...
5224 (exception_catchpoint::~exception_catchpoint): ... this.
5225 (handle_gnu_v3_exceptions): Remove reference to base field.
5226 (initialize_throw_catchpoint_ops): Don't set dtor.
5227 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5228 field.
5229 * remote.c (remote_get_tracepoint_status): Likewise.
5230 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5231 * tracefile.c (tracefile_fetch_registers): Likewise.
5232 * tracepoint.c (actions_command): Likewise.
5233 (validate_actionline): Likewise.
5234 (tfind_1): Likewise.
5235 (get_traceframe_location): Likewise.
5236 (find_matching_tracepoint_location): Likewise.
5237 (parse_tracepoint_status): Likewise.
5238 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5239
3b0871f4
SM
52402017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5241
5242 * breakpoint.c (struct longjmp_breakpoint): New struct.
5243 (is_tracepoint_type): Change return type to bool.
5244 (is_longjmp_type): New function.
5245 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5246 (set_raw_breakpoint_without_location): Use
5247 new_breakpoint_from_type.
5248 (set_raw_breakpoint): Likewise.
5249
a5e364af
SM
52502017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5251
5252 * breakpoint.c (new_breakpoint_from_type): New function.
5253 (create_breakpoint_sal): Use new_breakpoint_from_type and
5254 unique_ptr.
5255 (create_breakpoint): Likewise.
5256
ae3b3f34
SM
52572017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5258
5259 * memattr.c (mem_info_command): Rename to ...
5260 (info_mem_command): ... this.
5261 (mem_enable_command): Rename to ...
5262 (enable_mem_command): ... this.
5263 (mem_disable_command): Rename to ...
5264 (disable_mem_command): ... this.
5265 (mem_delete_command): Rename to ...
5266 (delete_mem_command): ... this.
5267 (_initialize_mem): Adjust function names.
5268
13ace077
MM
52692017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5270
5271 * btrace.c (handle_pt_insn_events): New.
5272 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5273 STATUS. Split into this and ...
5274 (handle_pt_insn_event_flags): ... this.
5275
c56ccc05
MM
52762017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5277
5278 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5279 and struct pt_insn.resynced.
5280 * configure: Regenerated.
5281 * config.in: Regenerated.
5282
08c3f6d2
TW
52832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5284
5285 * btrace.c (ftrace_find_call_by_number): New function.
5286 (ftrace_new_function): Store objects, not pointers.
5287 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5288 ftrace_new_gap, ftrace_update_function,
5289 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5290 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5291 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5292 btrace_ends_with_single_insn, btrace_call_get): Account for
5293 btrace_thread_info::functions now storing objects.
5294 * btrace.h (struct btrace_thread_info): Add constructor.
5295 (struct btrace_thread_info) <functions>: Make std::vector.
5296 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5297 Initialize with default values.
5298 * record-btrace.c (record_btrace_frame_sniffer): Account for
5299 btrace_thread_info::functions now storing objects.
5300
8ffd39f2
TW
53012017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5302
5303 * btrace.c: Remove typedef bfun_s.
5304 (ftrace_new_gap): Directly add gaps to the list of gaps.
5305 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5306 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5307 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5308 instead of gdb VEC.
5309
4aeb0dfc
TW
53102017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5311
5312 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5313 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5314 with btrace_thread_info::next_segment and
5315 btrace_thread_info::prev_segment.
5316 * btrace.h: Remove struct btrace_func_link.
5317 (struct btrace_function): Replace pair of function segment pointers
5318 with pair of indices.
5319 * python/py-record-btrace.c (btpy_call_prev_sibling,
5320 btpy_call_next_sibling): Replace references to
5321 btrace_thread_info::segment with btrace_thread_info::next_segment and
5322 btrace_thread_info::prev_segment.
5323 * record-btrace.c (record_btrace_frame_this_id): Use
5324 btrace_find_call_by_number.
5325
eb8f2b9c
TW
53262017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5327
5328 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5329 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5330 btrace_insn_next, btrace_insn_prev): Remove references to
5331 btrace_thread_info::flow.
5332 * btrace.h (struct btrace_function): Remove FLOW.
5333
42bfe59e
TW
53342017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5335
5336 * btrace.c (ftrace_find_call_by_number): New function.
5337 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5338 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5339 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5340 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5341 index.
5342 * btrace.h (struct btrace_function): Turn UP into an index.
5343 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5344 as an index.
5345 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5346 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5347 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5348
b54b03bd
TW
53492017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5350
5351 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5352 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5353 ftrace_update_function, ftrace_compute_global_level_offset,
5354 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5355 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5356 btrace_insn_end, btrace_is_empty): Remove references to
5357 btrace_thread_info::begin and btrace_thread_info::end.
5358 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5359 (struct btrace_thread_info) <functions>: Adjust comment.
5360 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5361 btrace_thread_info::begin.
5362
8286623c
TW
53632017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5364
5365 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5366 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5367 ftrace_update_function): Remove arguments that implicitly were always
5368 BTINFO->END.
5369 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5370 Don't pass BTINFO->END.
5371
a0f1b963
TW
53722017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5373
5374 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5375 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5376 btrace_find_insn_by_number): Replace function segment pointer with
5377 index.
5378 (btrace_insn_cmp): Simplify.
5379 * btrace.h: (struct btrace_insn_iterator) Rename index to
5380 insn_index. Replace function segment pointer with index into function
5381 segment vector.
5382 * record-btrace.c (record_btrace_call_history): Replace function
5383 segment pointer use with index.
5384 (record_btrace_frame_sniffer): Retrieve function call segment through
5385 vector.
5386 (record_btrace_set_replay): Remove defunc't safety check.
5387
f158f208
TW
53882017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5389
5390 * btrace.c (btrace_ends_with_single_insn): New function.
5391 (btrace_call_get, btrace_call_number, btrace_call_begin,
5392 btrace_call_end, btrace_call_next, btrace_call_prev,
5393 btrace_find_call_by_number): Use index into call segment vector
5394 instead of pointer.
5395 (btrace_call_cmp): Simplify.
5396 * btrace.h (struct btrace_call_iterator): Replace function call segment
5397 pointer with index into vector.
5398 * record-btrace.c (record_btrace_call_history): Use index instead of
5399 pointer.
5400
521103fd
TW
54012017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5402
5403 * btrace.c (btrace_insn_begin, btrace_insn_end,
5404 btrace_find_insn_by_number): Add btinfo to iterator.
5405 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5406
17b89b34
TW
54072017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5408
5409 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5410 and save pointers directly.
5411 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5412 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5413 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5414 changed signature of functions.
5415 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5416 (btrace_fetch): Remove code that adds btrace_function pointers to
5417 vector of btrace_functions.
5418 (btrace_clear): Simplify freeing vector of btrace_functions.
5419
2b51eddc
TW
54202017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5421
5422 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5423 Replace VEC_* with std::vector functions.
5424 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5425 (struct btrace_thread_info)<functions>: Change type to std::vector.
5426
db6be0d5
SM
54272017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5428
5429 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5430 "Removed targets and native configurations" up. Merge duplicate
5431 "New commands" sub-sections. Add "New options" sub-sections.
5432
b057297a
AH
54332017-05-26 Alan Hayward <alan.hayward@arm.com>
5434
5435 * defs.h (copy_integer_to_size): New declaration.
5436 * findvar.c (copy_integer_to_size): New function.
5437 (do_cint_test): New selftest function.
5438 (copy_integer_to_size_test): Likewise.
5439 (_initialize_findvar): Likewise.
5440 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5441 (mips_fbsd_collect_reg): Use raw_collect_integer.
5442 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5443 (mips64_fill_gregset): Use raw_collect_integer
5444 (mips64_fill_fpregset): Use raw_supply_integer.
5445 * regcache.c (regcache::raw_supply_integer): New function.
5446 (regcache::raw_collect_integer): Likewise.
5447 * regcache.h: (regcache::raw_supply_integer): New declaration.
5448 (regcache::raw_collect_integer): Likewise.
5449
b77b02a5
YQ
54502017-05-24 Yao Qi <yao.qi@linaro.org>
5451
5452 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5453 (COMMON_OBS): Add gdbarch-selftests.o.
5454 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5455 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5456 * gdbarch-selftests.c: New file.
5457 * regcache.h (regcache) <~regcache>: Mark it virtual if
5458 GDB_SELF_TEST.
5459 <raw_write>: Likewise.
5460
e521e87e
YQ
54612017-05-24 Yao Qi <yao.qi@linaro.org>
5462
5463 * regcache.c (current_regcache): Change it to
5464 regcache::current_regcache.
5465 (regcache_observer_target_changed): Update.
5466 (regcache_thread_ptid_changed): Make it a regcache static
5467 method.
5468 (regcache_thread_ptid_changed): Update.
5469 (class regcache_access): New.
5470 (current_regcache_test): Update.
5471 (_initialize_regcache): Update.
5472 * regcache.h: Include forward_list.
5473 (regcache): Declare regcache_thread_ptid_changed and declare
5474 registers_changed_ptid as friend.
5475
d8e07dda
YQ
54762017-05-24 Yao Qi <yao.qi@linaro.org>
5477
5478 * i387-tdep.c (i387_register_to_value): Use register_size
5479 instead of TYPE_LENGTH.
5480 * m68k-tdep.c (m68k_register_to_value): Likewise.
5481
8c8f9122
YQ
54822017-05-24 Yao Qi <yao.qi@linaro.org>
5483
5484 * i387-tdep.c (i387_convert_register_p): Return false if type
5485 code isn't TYPE_CODE_FLT.
5486
68fce50f
YQ
54872017-05-24 Yao Qi <yao.qi@linaro.org>
5488
5489 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5490 length is 4.
5491 (alpha_register_to_value): Remove type length check.
5492 (alpha_value_to_register): Likewise.
5493
88954b49
YQ
54942017-05-24 Yao Qi <yao.qi@linaro.org>
5495
5496 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5497 TYPE_CODE_FLT.
5498
e3ec9b69
YQ
54992017-05-24 Yao Qi <yao.qi@linaro.org>
5500
5501 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5502 TYPE_CODE_FLT or not.
5503
cdd238da
YQ
55042017-05-24 Yao Qi <yao.qi@linaro.org>
5505
5506 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5507 * avr-tdep.c (avr_gdbarch_init): Likewise.
5508 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5509 * cris-tdep.c (cris_gdbarch_init): Likewise.
5510 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5511 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5512 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5514 * mep-tdep.c (mep_gdbarch_init): Likewise.
5515 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5516 * mips-tdep.c (mips_gdbarch_init): Likewise.
5517 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5518 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5519 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5520 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5521 * v850-tdep.c (v850_gdbarch_init): Likewise.
5522
7a3929c4
YQ
55232017-05-24 Yao Qi <yao.qi@linaro.org>
5524
5525 * selftest-arch.c (tests_with_arch): Call registers_changed
5526 and reinit_frame_cache.
5527 * selftest.c (run_self_tests): Likewise.
5528
f4985dba
YQ
55292017-05-24 Yao Qi <yao.qi@linaro.org>
5530
5531 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
5532 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
5533
ab20fa4a
YQ
55342017-05-24 Yao Qi <yao.qi@linaro.org>
5535
5536 * rl78-tdep.c (rl78_gdbarch_init): Don't call
5537 set_gdbarch_print_insn.
5538
f532ab94
YQ
55392017-05-24 Yao Qi <yao.qi@linaro.org>
5540
5541 * h8300-tdep.c (h8300_gdbarch_init): Don't call
5542 set_gdbarch_print_insn.
5543
39503f82
YQ
55442017-05-24 Yao Qi <yao.qi@linaro.org>
5545
5546 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5547 set_gdbarch_print_insn.
5548 * arc-tdep.c (arc_gdbarch_init): Likewise.
5549 * arch-utils.c: include dis-asm.h.
5550 (default_print_insn): New function.
5551 * arch-utils.h (default_print_insn): Declare.
5552 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
5553 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5554 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
5555 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
5556 * frv-tdep.c (frv_gdbarch_init): Likewise.
5557 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5558 * gdbarch.sh (print_insn): Use default_print_insn.
5559 * gdbarch.c: Regenerated.
5560 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5561 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
5562 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5563 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
5564 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5565 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
5566 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
5567 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5568 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
5569 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5570 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5571 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5572 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5573 * mt-tdep.c (mt_gdbarch_init): Likewise.
5574 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5575 * nios2-tdep.c (nios2_print_insn): Remove.
5576 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
5577 * rx-tdep.c (rx_gdbarch_init): Likewise.
5578 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5579 * score-tdep.c (score_print_insn): Remove.
5580 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
5581 * sh-tdep.c (sh_gdbarch_init): Likewise.
5582 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5583 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5584 * tic6x-tdep.c (tic6x_print_insn): Remove.
5585 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
5586 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
5587 * v850-tdep.c (v850_gdbarch_init): Likewise.
5588 * vax-tdep.c (vax_gdbarch_init): Likewise.
5589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5590 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
5591
f7241d4f
JB
55922017-05-23 John Baldwin <jhb@FreeBSD.org>
5593
5594 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
5595 (MIPS_FP0_REGNUM): Remove.
5596 (MIPS_FSR_REGNUM): Remove.
5597 (mips_fbsd_supply_fpregs): Use mips_regnum.
5598 (mips_fbsd_supply_gregs): Likewise.
5599 (mips_fbsd_collect_fpregs): Likewise.
5600 (mips_fbsd_collect_gregs): Likewise.
5601
d489d81d
JB
56022017-05-23 John Baldwin <jhb@FreeBSD.org>
5603
5604 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
5605 (getpfpregs_supplies): New function.
5606 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
5607 getfpregs_supplies.
5608 (mips_fbsd_store_inferior_registers): Likewise.
5609
e11b3cdc
PA
56102017-05-22 Pedro Alves <palves@redhat.com>
5611
5612 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
5613 maintainer.
5614
0f068fb5
AH
56152017-05-22 Alan Hayward <alan.hayward@arm.com>
5616
5617 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
5618 (store_register): Likewise.
5619 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
5620 (get_decimal_float_return_value): Likewise.
5621 (do_ppc_sysv_return_value): Likewise.
5622 (ppc64_sysv_abi_push_integer): Likewise.
5623 (ppc64_sysv_abi_push_freg): Likewise.
5624 (ppc64_sysv_abi_return_value_base): Likewise.
5625 (ppc64_sysv_abi_return_value): Likewise.
5626 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
5627 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
5628 * rs6000-nat.c: Likewise.
5629 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
5630 (rs6000_value_to_register): Likewise.
5631 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
5632
e6cf65f2
TT
56332017-05-21 Tom Tromey <tom@tromey.com>
5634
5635 PR rust/21466:
5636 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
5637 arrays as "[T]", not "[T; ]".
5638
43cc5389
TT
56392017-05-19 Tom Tromey <tom@tromey.com>
5640
5641 PR rust/21484:
5642 * rust-lang.c (exp_descriptor_rust): New function.
5643 (rust_language_defn): Use it.
5644 * p-lang.c (pascal_language_defn): Update.
5645 * opencl-lang.c (opencl_language_defn): Update.
5646 * objc-lang.c (objc_language_defn): Update.
5647 * m2-lang.c (m2_language_defn): Update.
5648 * language.h (struct language_defn)
5649 <la_watch_location_expression>: New member.
5650 * language.c (unknown_language_defn, auto_language_defn)
5651 (local_language_defn): Update.
5652 * go-lang.c (go_language_defn): Update.
5653 * f-lang.c (f_language_defn): Update.
5654 * d-lang.c (d_language_defn): Update.
5655 * c-lang.h (c_watch_location_expression): Declare.
5656 * c-lang.c (c_watch_location_expression): New function.
5657 (c_language_defn, cplus_language_defn, asm_language_defn)
5658 (minimal_language_defn): Use it.
5659 * breakpoint.c (watch_command_1): Call
5660 la_watch_location_expression.
5661 * ada-lang.c (ada_language_defn): Update.
5662
7a6e7fcc
RO
56632017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5664
6e7e1744
RO
5665 PR tui/21482
5666 * gdb_curses.h (NOMACROS): Define.
5667 (NCURSES_NOMACROS): Define.
5668
56692017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5670
5671 PR tui/21482
7a6e7fcc
RO
5672 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
5673 arg to char *.
5674 * tui/tui-wingeneral.c (box_win): Likewise.
5675 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
5676 (tui_show_source_line): Likewise.
5677 (tui_show_exec_info_content): Likewise.
5678
1933fd8e
VM
56792017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
5680
5681 * sparc-tdep.c (sparc_structure_return_p)
5682 (sparc_arg_on_registers_p): New functions.
5683 (sparc32_store_arguments): Use them.
5684 * sparc64-tdep.c (sparc64_16_byte_align_p)
5685 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
5686 Handle TYPE_CODE_ARRAY.
5687
21873064
YQ
56882017-05-17 Yao Qi <yao.qi@linaro.org>
5689
5690 * cli/cli-decode.c (add_alias_cmd): New function.
5691 * command.h (add_alias_cmd): Declare.
5692 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
5693 instead call add_alias_cmd.
5694
2b351b19
PA
56952017-05-17 Pedro Alves <palves@redhat.com>
5696
5697 * Makefile.in (nat_extra_makefile_frag): Rename to ...
5698 (nat_makefile_frag): ... this. All references updated.
5699 * configure.ac: Likewise.
5700 * configure.nat: Likewise. Enhance comments.
5701 * configure: Regenerate.
5702
5f2ad7a3
RO
57032017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5704
5705 * procfs.c (procfs_create_inferior): Change prototype to match
5706 definition.
5707
adf3dde5
EZ
57082017-05-13 Eli Zaretskii <eliz@gnu.org>
5709
5710 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
5711 C++ compiler warning.
5712
6830f270
TT
57132017-05-12 Tom Tromey <tom@tromey.com>
5714
5715 PR rust/21483:
5716 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
5717 recurse, just call value_struct_elt directly.
5718
68f2f2e3
TT
57192017-05-12 Tom Tromey <tom@tromey.com>
5720
5721 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
5722 OP_RUST_ARRAY>: Fix.
5723
256afbc2
TT
57242017-05-12 Tom Tromey <tom@tromey.com>
5725
5726 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
5727
94bb8dfe
YQ
57282017-05-09 Yao Qi <yao.qi@linaro.org>
5729
5730 * regcache.c: Include <forward_list>.
5731 (struct regcache_list): Remove.
5732 (current_regcache): Update.
5733 (get_thread_arch_aspace_regcache): Update for std::forward_list.
5734 (regcache_thread_ptid_changed): Likewise.
5735 (registers_changed_ptid): Likewise.
5736 (current_regcache_size): Likewise.
5737
8248946c
YQ
57382017-05-09 Yao Qi <yao.qi@linaro.org>
5739
5740 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
5741 (current_regcache_size): New function.
5742 (current_regcache_test): New function.
5743 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
5744
313c5961
AH
57452017-05-08 Alan Hayward <alan.hayward@arm.com>
5746
5747 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
5748 (print_gp_register_row): Use get_frame_register_value.
5749
27bfc1d1
AH
57502017-05-08 Alan Hayward <alan.hayward@arm.com>
5751
5752 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
5753 (mips_supply_fpregset): Likewise.
5754 (mips64_supply_gregset): Likewise.
5755
146e6c5c
AH
57562017-05-08 Alan Hayward <alan.hayward@arm.com>
5757
5758 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
5759 regcache->raw_supply_zeroed.
5760
e50f25ec
SDJ
57612017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5762
5763 * configure.nat: Rearrange 'case' statements to match
5764 host before cpu.
5765
21ea5acd
SDJ
57662017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5767
5768 * Makefile.in: Remove "@host_makefile_frag@". Add variables
5769 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
5770 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
5771 "@nat_extra_makefile_frag@".
5772 (Makefile): Remove dependency on "@frags@".
5773 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
5774 (data-directory/Makefile): Likewise.
5775 * config/aarch64/linux.mh: Deleted; moved contents to
5776 "gdb/configure.nat".
5777 * config/alpha/alpha-linux.mh: Likewise.
5778 * config/alpha/nbsd.mh: Likewise.
5779 * config/arm/linux.mh: Likewise.
5780 * config/arm/nbsdelf.mh: Likewise.
5781 * config/i386/cygwin.mh: Likewise.
5782 * config/i386/cygwin64.mh: Likewise.
5783 * config/i386/darwin.mh: Likewise.
5784 * config/i386/fbsd.mh: Likewise.
5785 * config/i386/fbsd64.mh: Likewise.
5786 * config/i386/go32.mh: Likewise.
5787 * config/i386/i386gnu.mh: Likewise.
5788 * config/i386/i386sol2.mh: Likewise.
5789 * config/i386/linux.mh: Likewise.
5790 * config/i386/linux64.mh: Likewise.
5791 * config/i386/mingw.mh: Likewise.
5792 * config/i386/mingw64.mh: Likewise.
5793 * config/i386/nbsd64.mh: Likewise.
5794 * config/i386/nbsdelf.mh: Likewise.
5795 * config/i386/nto.mh: Likewise.
5796 * config/i386/obsd.mh: Likewise.
5797 * config/i386/obsd64.mh: Likewise.
5798 * config/i386/sol2-64.mh: Likewise.
5799 * config/ia64/linux.mh: Likewise.
5800 * config/m32r/linux.mh: Likewise.
5801 * config/m68k/linux.mh: Likewise.
5802 * config/m68k/nbsdelf.mh: Likewise.
5803 * config/m68k/obsd.mh: Likewise.
5804 * config/m88k/obsd.mh: Likewise.
5805 * config/mips/fbsd.mh: Likewise.
5806 * config/mips/linux.mh: Likewise.
5807 * config/mips/nbsd.mh: Likewise.
5808 * config/mips/obsd64.mh: Likewise.
5809 * config/pa/linux.mh: Likewise.
5810 * config/pa/nbsd.mh: Likewise.
5811 * config/pa/obsd.mh: Likewise.
5812 * config/powerpc/aix.mh: Likewise.
5813 * config/powerpc/fbsd.mh: Likewise.
5814 * config/powerpc/linux.mh: Likewise.
5815 * config/powerpc/nbsd.mh: Likewise.
5816 * config/powerpc/obsd.mh: Likewise.
5817 * config/powerpc/ppc64-linux.mh: Likewise.
5818 * config/powerpc/spu-linux.mh: Likewise.
5819 * config/s390/linux.mh: Likewise.
5820 * config/sh/nbsd.mh: Likewise.
5821 * config/sparc/fbsd.mh: Likewise.
5822 * config/sparc/linux.mh: Likewise.
5823 * config/sparc/linux64.mh: Likewise.
5824 * config/sparc/nbsd64.mh: Likewise.
5825 * config/sparc/nbsdelf.mh: Likewise.
5826 * config/sparc/obsd64.mh: Likewise.
5827 * config/sparc/sol2.mh: Likewise.
5828 * config/tilegx/linux.mh: Likewise.
5829 * config/vax/nbsdelf.mh: Likewise.
5830 * config/vax/obsd.mh: Likewise.
5831 * config/xtensa/linux.mh: Likewise.
5832 * config/i386/i386gnu.mn: New file, with excerpts from
5833 "config/i386/i386gnu.mh".
5834 * configure: Regenerate.
5835 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
5836 *.mh files under "gdb/config".
5837 * configure.nat: New file, with contents from the
5838 "gdb/config/*/*.mh" files.
5839
7ed1acaf
TW
58402017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
5841
5842 * btrace.c (btrace_clear): Free insn vector.
5843
e13cb306
PA
58442017-05-05 Pedro Alves <palves@redhat.com>
5845
5846 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
5847 * configure: Regenerate.
5848
5ed8105e
PA
58492017-05-04 Pedro Alves <palves@redhat.com>
5850
5851 * Makefile.in (SFILES): Add progspace-and-thread.c.
5852 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
5853 (COMMON_OBS): Add progspace-and-thread.o.
5854 * breakpoint.c: Include "progspace-and-thread.h".
5855 (update_inserted_breakpoint_locations)
5856 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
5857 Use scoped_restore_current_pspace_and_thread.
5858 (create_std_terminate_master_breakpoint): Use
5859 scoped_restore_current_program_space.
5860 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
5861 (print_breakpoint_location): Use
5862 scoped_restore_current_program_space.
5863 (bp_loc_is_permanent): Use
5864 scoped_restore_current_pspace_and_thread.
5865 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
5866 (download_tracepoint_locations): Use
5867 scoped_restore_current_pspace_and_thread.
5868 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
5869 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
5870 (enum step_over_calls_kind): Moved from inferior.h.
5871 (class scoped_restore_current_thread): New class.
5872 * gdbthread.h (make_cleanup_restore_current_thread): Delete
5873 declaration.
5874 (scoped_restore_current_thread): New class.
5875 * infcmd.c: Include "common/gdb_optional.h".
5876 (continue_1, proceed_after_attach): Use
5877 scoped_restore_current_thread.
5878 (notice_new_inferior): Use scoped_restore_current_thread.
5879 * inferior.c: Include "progspace-and-thread.h".
5880 (restore_inferior, save_current_inferior): Delete.
5881 (add_inferior_command, clone_inferior_command): Use
5882 scoped_restore_current_pspace_and_thread.
5883 * inferior.h (scoped_restore_current_inferior): New class.
5884 * infrun.c: Include "progspace-and-thread.h" and
5885 "common/gdb_optional.h".
5886 (follow_fork_inferior): Use
5887 scoped_restore_current_pspace_and_thread.
5888 (scoped_restore_exited_inferior): New class.
5889 (handle_vfork_child_exec_or_exit): Use
5890 scoped_restore_exited_inferior,
5891 scoped_restore_current_pspace_and_thread,
5892 scoped_restore_current_thread and scoped_restore.
5893 (fetch_inferior_event): Use scoped_restore_current_thread.
5894 * linespec.c (decode_line_full, decode_line_1): Use
5895 scoped_restore_current_program_space.
5896 * mi/mi-main.c: Include "progspace-and-thread.h".
5897 (exec_continue): Use scoped_restore_current_thread.
5898 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
5899 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
5900 * proc-service.c (ps_pglobal_lookup): Use
5901 scoped_restore_current_program_space.
5902 * progspace-and-thread.c: New file.
5903 * progspace-and-thread.h: New file.
5904 * progspace.c (release_program_space, clone_program_space): Use
5905 scoped_restore_current_program_space.
5906 (restore_program_space, save_current_program_space)
5907 (save_current_space_and_thread): Delete.
5908 (switch_to_program_space_and_thread): Moved to
5909 progspace-and-thread.c.
5910 * progspace.h (save_current_program_space)
5911 (save_current_space_and_thread): Delete declarations.
5912 (scoped_restore_current_program_space): New class.
5913 * remote.c (remote_btrace_maybe_reopen): Use
5914 scoped_restore_current_thread.
5915 * symtab.c: Include "progspace-and-thread.h".
5916 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
5917 * thread.c (print_thread_info_1): Use
5918 scoped_restore_current_thread.
5919 (struct current_thread_cleanup): Delete.
5920 (do_restore_current_thread_cleanup)
5921 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
5922 (scoped_restore_current_thread::~scoped_restore_current_thread):
5923 ... this new dtor.
5924 (make_cleanup_restore_current_thread): Rename/convert to ...
5925 (scoped_restore_current_thread::scoped_restore_current_thread):
5926 ... this new ctor.
5927 (thread_apply_all_command): Use scoped_restore_current_thread.
5928 (thread_apply_command): Use scoped_restore_current_thread.
5929 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
5930 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
5931
f6223dbb
PA
59322017-05-04 Pedro Alves <palves@redhat.com>
5933
5934 * thread.c (make_cleanup_restore_current_thread): Move
5935 find_thread_ptid call before the is_stopped call. Assert that the
5936 thread is found. Replace is_stopped call by checking the thread's
5937 state directly. Remove unnecessary NULL-thread check.
5938
3c3ae77e
PA
59392017-05-04 Pedro Alves <palves@redhat.com>
5940
5941 * corelow.c (thread_section_name): New class.
5942 (get_core_register_section, get_core_siginfo): Use it.
5943
45eba0ab
AA
59442017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5945
5946 * corelow.c (sniff_core_bfd): Remove extra semicolon.
5947 (get_core_register_section): Remove xfree of NULL pointer.
5948
f81fdd35
AH
59492017-05-03 Alan Hayward <alan.hayward@arm.com>
5950
5951 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
5952 * regcache.c (regcache::raw_supply_zeroed): New function.
5953 * regcache.h (regcache::raw_supply_zeroed): New declaration.
5954
35837774
SM
59552017-05-03 Simon Marchi <simon.marchi@ericsson.com>
5956
5957 * gdbarch.sh: Remove commented out definition of
5958 TARGET_CHAR_BIT.
5959 * gdbarch.h: Re-generate.
5960
c94fee56
SDJ
59612017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5962
5963 * configure: Regenerate.
5964
d17f7b36
SM
59652017-05-02 Simon Marchi <simon.marchi@ericsson.com>
5966
5967 * solib-target.c (solib_target_relocate_section_addresses):
5968 Remove num_section_bases, num_bases, segment_bases variables.
5969
b560ebd6
SM
59702017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
5973
f2f46dfc
SM
59742017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5975
5976 * solib-target.c: Include <vector>
5977 (struct lm_info_target) <~lm_info_target>: Remove.
5978 <segment_bases, section_bases>: Change type to
5979 std::vector<CORE_ADDR>.
5980 (library_list_start_segment, library_list_start_section,
5981 library_list_end_library,
5982 solib_target_relocate_section_addresses): Adjust.
5983
a0ff9e1a
SM
59842017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5985
5986 * gdbarch.sh (software_single_step): Change return type to
5987 std::vector<CORE_ADDR>.
5988 * gdbarch.c, gdbarch.h: Re-generate.
5989 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
5990 Adjust.
5991 (arm_deal_with_atomic_sequence_raw): Adjust.
5992 (thumb_get_next_pcs_raw): Adjust.
5993 (arm_get_next_pcs_raw): Adjust.
5994 (arm_get_next_pcs): Adjust.
5995 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
5996 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
5997 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
5998 (alpha_software_single_step): Adjust.
5999 * alpha-tdep.h (alpha_software_single_step): Adjust.
6000 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6001 * arm-tdep.c (arm_software_single_step): Adjust.
6002 (arm_breakpoint_kind_from_current_state): Adjust.
6003 * arm-tdep.h (arm_software_single_step): Adjust.
6004 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6005 * cris-tdep.c (cris_software_single_step): Adjust.
6006 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6007 (micromips_deal_with_atomic_sequence): Adjust.
6008 (deal_with_atomic_sequence): Adjust.
6009 (mips_software_single_step): Adjust.
6010 * mips-tdep.h (mips_software_single_step): Adjust.
6011 * moxie-tdep.c (moxie_software_single_step): Adjust.
6012 * nios2-tdep.c (nios2_software_single_step): Adjust.
6013 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6014 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6015 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6016 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6017 * sparc-tdep.c (sparc_software_single_step): Adjust.
6018 * spu-tdep.c (spu_software_single_step): Adjust.
6019 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6020
ea480a30
SM
60212017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6022
6023 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6024 * gdbarch.h: Re-generate.
6025
d050f7d7
TW
60262017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6027
6028 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6029 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6030 * python/py-instruction.c, python/py-instruction.h: New file.
6031 * python/py-record.c: Add py-instruction.h include.
6032 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6033 gdb.RecordInstruction.
6034 * python/python-internal.h: Add gdbpy_initialize_instruction
6035 declaration.
6036 * python/python.c (do_start_initialization): Add
6037 gdbpy_initialize_instruction.
6038
14f819c8
TW
60392017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6040
6041 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6042 Remove.
6043 (btrace_func_from_recpy_func): New function.
6044 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6045 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6046 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6047 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6048 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6049 Also, use new helper functions.
6050 (btpy_list_item): Use new helper functions.
6051 (recpy_bt_function_call_history): Use new type name.
6052 (btpy_call_getset): Remove.
6053 (gdbpy_initialize_btrace): Remove code to initialize
6054 gdb.BtraceFunctionCall.
6055 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6056 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6057 recpy_bt_func_prev, recpy_bt_func_next): New export.
6058 * python/py-record.c (recpy_func_type): New static object.
6059 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6060 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6061 recpy_func_next): New function.
6062 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6063 (recpy_func_getset): New static object.
6064 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6065 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6066
0ed5da75
TW
60672017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6068
6069 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6070 (btpy_object, btpy_insn_type, btpy_new): Remove.
6071 (btpy_list_object): Use gdb.RecordInstruction type instead of
6072 gdb.BtraceInstruction type.
6073 (btrace_insn_from_recpy_insn): New function.
6074 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6075 btpy_new.
6076 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6077 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6078 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6079 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6080 instead of btpy_object.
6081 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6082 btpy_insn_data, btpy_insn_decode): Rename to ...
6083 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6084 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6085 recpy_bt_insn_decode): This. Also, use new helper functions.
6086 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6087 recpy_insn_type.
6088 (btpy_insn_getset): Remove.
6089 (gdbpy_initialize_btrace): Remove code to initialize
6090 gdb.BtraceInstruction. Use recpy_element_object.
6091 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6092 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6093 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6094 * python/py-record.c (recpy_insn_type): New static object.
6095 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6096 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6097 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6098 New function.
6099 (recpy_insn_getset): New static object.
6100 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6101 * python/py-record.h (recpy_element_object): New typedef.
6102 (recpy_insn_type, recpy_insn_new): New export.
6103
913aeadd
TW
61042017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6105
6106 * py-record-btrace.c (btpy_insn_new): Removed.
6107 (btpy_insn_or_gap_new): New function.
6108 (btpy_insn_error): Removed.
6109 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6110 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6111 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6112 btpy_insn_or_gap_new instead of btpy_insn_new.
6113 (btpy_insn_getset): Remove btpy_insn_error.
6114 * py-record.c (recpy_gap_type): New static object.
6115 (recpy_gap_object): New typedef.
6116 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6117 recpy_gap_reason_string): New function.
6118 (recpy_gap_getset): New static object.
6119 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6120 * py-record.h (recpy_gap_new): New export.
6121
a3be24ad
TW
61222017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6123
6124 * python/py-record.c (recpy_ptid): Remove.
6125 (recpy_record_getset): Remove recpy_ptid.
6126
ae20e79a
TW
61272017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6128
6129 * btrace.c (btrace_fetch): Set inferior_ptid.
6130 * python/py-record-btrace.c: Add "py-record.h" include.
6131 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6132 recpy_bt_end, recpy_bt_instruction_history,
6133 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6134 in gdb.Record object instead of current ptid.
6135 * python/py-record.c: Include new "py-record.h" file.
6136 (recpy_record_object): Moved to py-record.h.
6137 * python/py-record.h: New file.
6138
8d0050ea
TW
61392017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6140
6141 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6142 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6143 indentation.
6144
3f380b50
JB
61452017-05-01 Joel Brobecker <brobecker@adacore.com>
6146
6147 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6148 the past maintainers section.
6149
07495424
YQ
61502017-04-28 Yao Qi <yao.qi@linaro.org>
6151
6152 * infcmd.c (get_return_value): Use regcache ctor, and remove
6153 cleanup.
6154
deb1fa3e
YQ
61552017-04-28 Yao Qi <yao.qi@linaro.org>
6156 Pedro Alves <palves@redhat.com>
6157
6158 * regcache.c (regcache::regcache): New tag dispatch ctor.
6159 (do_cooked_read): Moved above.
6160 (regcache_dup): Use the tag dispatch ctor..
6161 * regcache.h (regcache): Declare ctor, delete copy ctor and
6162 assignment operator, remove friend regcache_dup.
6163
b421c83c
YQ
61642017-04-28 Yao Qi <yao.qi@linaro.org>
6165
6166 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6167 call method save instead of regcache_cpy.
6168 * regcache.h (struct regcache): Make regcache_dup a friend.
6169
ef79d9a3
YQ
61702017-04-28 Yao Qi <yao.qi@linaro.org>
6171
6172 * regcache.c (struct regcache): Move to regcache.h
6173 (regcache::arch): New method.
6174 (regcache_get_ptid): Update.
6175 (get_regcache_arch): Call arch method.
6176 (get_regcache_aspace): Call method aspace.
6177 (register_buffer): Change it to method.
6178 (regcache_save): Change it to regcache::save.
6179 (regcache_restore): Likewise.
6180 (regcache_cpy_no_passthrough): Remove the declaration.
6181 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6182 (regcache_cpy_no_passthrough): Change it to method
6183 cpy_no_passthrough.
6184 (regcache_register_status): Change it to method
6185 get_register_status.
6186 (regcache_invalidate): Change it to method invalidate.
6187 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6188 (regcache_raw_update): Change it to method raw_update.
6189 (regcache_raw_read): Likewise.
6190 (regcache_raw_read_signed): Likewise.
6191 (regcache_raw_read_unsigned): Likewise.
6192 (regcache_raw_write_signed): Likewise.
6193 (regcache_raw_write_unsigned): Likewise.
6194 (regcache_cooked_read): Likewise.
6195 (regcache_cooked_read_value): Likewise.
6196 (regcache_cooked_read_signed): Likewise.
6197 (regcache_cooked_read_unsigned): Likewise.
6198 (regcache_cooked_write_signed): Likewise.
6199 (regcache_cooked_write_unsigned): Likewise.
6200 (regcache_raw_set_cached_value): Likewise.
6201 (regcache_raw_write): Likewise.
6202 (regcache_cooked_write): Likewise.
6203 (regcache_xfer_part): Likewise.
6204 (regcache_raw_read_part): Likewise.
6205 (regcache_raw_write_part): Likewise.
6206 (regcache_cooked_read_part): Likewise.
6207 (regcache_cooked_write_part): Likewise.
6208 (regcache_raw_supply): Likewise.
6209 (regcache_raw_collect): Likewise.
6210 (regcache_transfer_regset): Likewise.
6211 (regcache_supply_regset): Likewise.
6212 (regcache_collect_regset): Likewise.
6213 (regcache_debug_print_register): Likewise.
6214 (enum regcache_dump_what): Move it to regcache.h.
6215 (regcache_dump): Change it to method dump.
6216 * regcache.h (enum regcache_dump_what): New.
6217 (class regcache): New.
6218 * target.c (target_fetch_registers): Call method
6219 debug_print_register.
6220 (target_store_registers): Likewise.
6221
f8fdb78e
SM
62222017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6223
6224 * windows-nat.c (struct lm_info_windows): Initialize field.
6225 (windows_make_so): Allocate lm_info_windows with new.
6226 (windows_free_so): Free lm_info_windows with delete.
6227
9ccbfd7b
SM
62282017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6229
6230 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6231 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6232 cleanup.
6233 (darwin_free_so): Free lm_info_darwin with delete.
6234
76e75227
SM
62352017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6236
6237 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6238 <l_addr_p>: Change type to bool.
6239 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6240 (svr4_free_so): Free lm_info_svr4 with delete.
6241 (svr4_copy_library_list): Replace memcpy with call to copy
6242 constructor.
6243 (library_list_start_library, svr4_default_sos): Allocate
6244 lm_info_svr4 with new.
6245
51046d9e
SM
62462017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6247
6248 * solib-target.c (struct lm_info_target): Add destructor,
6249 initialize fields.
6250 <name>: Change type to std::string.
6251 (library_list_start_library): Allocate lm_info_target with new.
6252 (solib_target_free_library_list): Free lm_info_target with
6253 delete.
6254 (solib_target_current_sos): Adapt to std::string.
6255 (solib_target_free_so): Free lm_info_target with delete.
6256
4023ae76
SM
62572017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6258
6259 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6260 fields.
6261 (frv_current_sos): Allocate lm_info_frv with new.
6262 (frv_relocate_main_executable): Free lm_info_frv with delete,
6263 allocate with new.
6264 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6265
af43057b
SM
62662017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6267
6268 * solib-frv.c (struct lm_info_frv): Fix indentation.
6269
b0911207
SM
62702017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6271
6272 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6273 map field.
6274 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6275 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6276 and allocate with new.
6277 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6278
6c401f72
SM
62792017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6280
6281 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6282 <filename, member_name>: Change type to std::string.
6283 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6284 (library_list_start_library): Allocate lm_info_aix with new.
6285 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6286 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6287 with copy constructor.
6288
d0e449a1
SM
62892017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6290
6291 * solist.h (struct lm_info): Remove.
6292 (struct lm_info_base): New class.
6293 (struct so_list) <lm_info>: Change type to lm_info_base *.
6294 * nto-tdep.c (struct lm_info): Remove.
6295 (lm_addr): Adjust.
6296 * solib-aix.c (struct lm_info): Rename to ...
6297 (struct lm_info_aix): ... this. Extend lm_info_base.
6298 (lm_info_p): Rename to ...
6299 (lm_info_aix_p): ... this, and adjust.
6300 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6301 solib_aix_parse_libraries, library_list_start_library,
6302 solib_aix_free_library_list, solib_aix_parse_libraries,
6303 solib_aix_get_library_list,
6304 solib_aix_relocate_section_addresses, solib_aix_free_so,
6305 solib_aix_get_section_offsets,
6306 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6307 Adjust.
6308 (struct solib_aix_inferior_data) <library_list>: Adjust.
6309 * solib-darwin.c (struct lm_info): Rename to ...
6310 (struct lm_info_darwin): ... this. Extend lm_info_base.
6311 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6312 * solib-dsbt.c (struct lm_info): Rename to ...
6313 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6314 (struct dsbt_info) <main_executable_lm_info): Adjust.
6315 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6316 dsbt_relocate_section_addresses): Adjust.
6317 * solib-frv.c (struct lm_info): Rename to ...
6318 (struct lm_info_frv): ... this. Extend lm_info_base.
6319 (main_executable_lm_info): Adjust.
6320 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6321 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6322 find_canonical_descriptor_in_load_object,
6323 frv_fdpic_find_canonical_descriptor): Adjust.
6324 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6325 to lm_info_svr4.
6326 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6327 svr4_clear_so, svr4_copy_library_list,
6328 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6329 svr4_current_sos, svr4_fetch_objfile_link_map,
6330 solist_update_incremental): Adjust.
6331 * solib-svr4.h (struct lm_info_svr4): Move here from
6332 solib-svr4.c.
6333 * solib-target.c (struct lm_info): Rename to ...
6334 (struct lm_info_target): ... this. Extend lm_info_base.
6335 (lm_info_p): Rename to ...
6336 (lm_info_target_p): ... this.
6337 (solib_target_parse_libraries, library_list_start_segment,
6338 library_list_start_section, library_list_start_library,
6339 library_list_end_library, solib_target_free_library_list,
6340 solib_target_current_sos, solib_target_free_so,
6341 solib_target_relocate_section_addresses): Adjust.
6342 * windows-nat.c (struct lm_info): Rename to ...
6343 (struct lm_info_windows): ... this. Extend lm_info_base.
6344 (windows_make_so, handle_load_dll, handle_unload_dll,
6345 windows_xfer_shared_libraries): Adjust.
6346
434a4023
SM
63472017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6348
6349 * solib-darwin.c (struct darwin_so_list): Remove.
6350 (darwin_current_sos): Allocate an so_list object instead of a
6351 darwin_so_list, separately allocate an lm_info object.
6352 (darwin_free_so): Free lm_info.
6353
428544e8
JB
63542017-04-28 John Baldwin <jhb@FreeBSD.org>
6355
6356 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6357 with fprintf_filtered.
6358
4621115f
YQ
63592017-04-28 Yao Qi <yao.qi@linaro.org>
6360
6361 * regcache.c (regcache::regcache): New function.
6362 (regcache::~regcache): New function.
6363 (regcache_xmalloc_1): Remove.
6364 (regcache_xmalloc): Call new regcache.
6365 (regcache_xfree): Call delete regcache.
6366 (get_thread_arch_aspace_regcache): Call new regcache.
6367
339053c2
YQ
63682017-04-28 Yao Qi <yao.qi@linaro.org>
6369
6370 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6371 lwp instead of ptid_get_lwp.
6372
7974a605
YQ
63732017-04-28 Yao Qi <yao.qi@linaro.org>
6374
6375 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6376 lwp_info instead of getting from inferior_ptid.
6377
e15c3eb4
KS
63782017-04-27 Keith Seitz <keiths@redhat.com>
6379
6380 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6381 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6382 (CV_CONVERSION_BADNESS): Define.
6383 (rank_one_type): Remove overly restrictive rvalue reference
6384 rank checks.
6385 Add cv-qualifier checks and subranks for type equality.
6386 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6387 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6388 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6389
72bc1d24
SM
63902017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6391
6392 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6393 count when creating the object.
6394
55bcecda
UW
63952017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6396 Ulrich Weigand <uweigand@de.ibm.com>
6397
6398 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6399 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6400 is used in AIX.
6401 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6402 (process_xcoff_symbol): Likewise.
6403 (scan_xcoff_symtab): Likewise.
6404
5c99fcf8
AH
64052017-04-26 Alan Hayward <alan.hayward@arm.com>
6406
6407 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6408 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6409 (ia64_access_reg): Use get_frame_register_unsigned.
6410 (ia64_access_rse_reg): Likewise.
6411 (ia64_libunwind_frame_prev_register): Likewise.
6412
b41c5a85
JW
64132017-04-26 Jiong Wang <jiong.wang@arm.com>
6414
6415 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6416 * gdbarch.c: Regenerated.
6417 * gdbarch.h: Regenerated.
6418 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6419 visibility external.
6420 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6421 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6422 (enum cfa_how_kind): Move to ...
6423 (struct dwarf2_frame_state_reg_info): Likewise.
6424 (struct dwarf2_frame_state): Likewise.
6425 * dwarf2-frame.h: ... here.
6426 (dwarf2_frame_state_alloc_regs): New declaration.
6427 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6428 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6429
c185f580
AH
64302017-04-26 Alan Hayward <alan.hayward@arm.com>
6431
6432 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6433 regcache_raw_read_unsigned.
6434 (xtensa_pseudo_register_write): Likewise.
6435
19c45594
AH
64362017-04-26 Alan Hayward <alan.hayward@arm.com>
6437
6438 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6439 (nds32_pseudo_register_write): Likewise.
6440
4658f12e
YQ
64412017-04-25 Yao Qi <yao.qi@linaro.org>
6442
6443 * regcache.c (struct regcache) <readonly_p>: Change its type
6444 to bool.
6445 (regcache_xmalloc_1): Update parameter type and callers update.
6446
d581dda8
YQ
64472017-04-25 Yao Qi <yao.qi@linaro.org>
6448
6449 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6450 set_gdbarch_wchar_bit.
6451 * arm-tdep.c (arm_gdbarch_init): Likewise.
6452
debed3db
PA
64532017-04-25 Pedro Alves <palves@redhat.com>
6454
6455 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6456 (BothAreRelocatable, memcopy, memmove): Don't define.
6457 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6458 macros.
6459
b0b92aeb
PA
64602017-04-25 Pedro Alves <palves@redhat.com>
6461
6462 * common/common-defs.h: Include "common/poison.h".
6463 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6464 and adjust.
6465 * common/poison.h: New file.
6466 * common/traits.h: Include <type_traits>.
6467 (Not, Or, Requires): New, moved from common/function-view.h.
6468
16c4d54a
PA
64692017-04-25 Pedro Alves <palves@redhat.com>
6470
6471 * breakpoint.h (struct breakpoint): In-class initialize all
6472 fields. Make boolean fields "bool".
6473 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6474 memset call and initializations no longer necessary.
6475
b5c36682
PA
64762017-04-25 Pedro Alves <palves@redhat.com>
6477
6478 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6479 reference.
6480 (pt_btrace_insn): New function.
6481 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6482
5625a286
PA
64832017-04-25 Pedro Alves <palves@redhat.com>
6484
6485 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6486 "base" field and inherit from "bp_location" instead. Add
6487 non-default ctor.
6488 (allocate_location_exception): Use new non-default ctor.
6489 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6490 (init_bp_location): Convert to ...
6491 (bp_location::bp_location): ... this new ctor, and remove memset
6492 call.
6493 (base_breakpoint_allocate_location): Use the new non-default ctor.
6494 * breakpoint.h (bp_location): Now a class. Declare default and
6495 non-default ctors. In-class initialize all members.
6496 (init_bp_location): Remove declaration.
6497
23bcc18f
PA
64982017-04-25 Pedro Alves <palves@redhat.com>
6499
6500 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6501 assignment operator.
6502
e1ba3053
YQ
65032017-04-24 Yao Qi <yao.qi@linaro.org>
6504
6505 * doublest.c (convert_doublest_to_floatformat): Call
6506 floatformat_totalsize_bytes.
6507
10f489e5
TT
65082017-04-22 Tom Tromey <tom@tromey.com>
6509
6510 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6511 ui_out_emit_list.
6512 * stack.c (print_frame): Use ui_out_emit_list.
6513 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6514 ui_out_emit_list.
6515 * mi/mi-main.c (print_one_inferior)
6516 (mi_cmd_data_list_register_names)
6517 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6518 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6519 ui_out_emit_list.
6520 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
6521 (mi_output_solib_attribs): Use ui_out_emit_list,
6522 ui_out_emit_tuple.
6523 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
6524 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6525 (mi_cmd_stack_list_args, list_args_or_locals): Use
6526 ui_out_emit_list.
6527 * disasm.c (do_assembly_only): Use ui_out_emit_list.
6528 * breakpoint.c (print_solib_event, output_thread_groups): Use
6529 ui_out_emit_list.
6530
0092b74d
TT
65312017-04-22 Tom Tromey <tom@tromey.com>
6532
6533 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
6534 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
6535 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
6536
a14a62dd
TT
65372017-04-22 Tom Tromey <tom@tromey.com>
6538
6539 * tracepoint.c (tvariables_info_1)
6540 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
6541
46b9c129
TT
65422017-04-22 Tom Tromey <tom@tromey.com>
6543
6544 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
6545 annotate_arg_emitter.
6546 * breakpoint.c (print_mention_watchpoint)
6547 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
6548 * annotate.h (struct annotate_arg_emitter): New.
6549
2e783024
TT
65502017-04-22 Tom Tromey <tom@tromey.com>
6551
6552 * record-btrace.c (record_btrace_insn_history)
6553 (record_btrace_insn_history_range, record_btrace_call_history)
6554 (record_btrace_call_history_range): Use ui_out_emit_tuple.
6555 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
6556 ui_out_emit_tuple.
6557 * stack.c (print_frame_info): Use ui_out_emit_tuple.
6558 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
6559 * skip.c (skip_info): Use ui_out_emit_tuple.
6560 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
6561 * progspace.c (print_program_space): Use ui_out_emit_tuple.
6562 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
6563 * osdata.c (info_osdata): Use ui_out_emit_tuple.
6564 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6565 ui_out_emit_tuple.
6566 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
6567 (output_register, mi_cmd_data_read_memory)
6568 (mi_cmd_data_read_memory_bytes, mi_load_progress)
6569 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
6570 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
6571 Use ui_out_emit_tuple.
6572 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
6573 ui_out_emit_tuple.
6574 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
6575 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
6576 * linux-thread-db.c (info_auto_load_libthread_db): Use
6577 ui_out_emit_tuple.
6578 * inferior.c (print_inferior): Use ui_out_emit_tuple.
6579 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
6580 * disasm.c (do_mixed_source_and_assembly_deprecated)
6581 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
6582 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
6583 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
6584 * breakpoint.c (print_one_breakpoint_location)
6585 (print_one_breakpoint): Use ui_out_emit_tuple.
6586 * auto-load.c (print_script, info_auto_load_cmd): Use
6587 ui_out_emit_tuple.
6588 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
6589
9be21bb4
SM
65902017-04-21 Simon Marchi <simon.marchi@ericsson.com>
6591
6592 * thread.c (print_thread_info_1): Remove dead code.
6593
0d4c07af
JK
65942017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6595
6596 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
6597 GDB_SELF_TEST.
6598 * arm-tdep.c (selftests::arm_record_test): Likewise.
6599
4daf993d
YQ
66002017-04-21 Yao Qi <yao.qi@linaro.org>
6601
6602 * regcache.c (regcache_restore): Remove argument 2. Replace
6603 argument 3 with regcache. Get register status from
6604 src->register_status and get register contents from
6605 register_buffer (src, regnum).
6606 (regcache_cpy): Update.
6607
a6c21d4a
PA
66082017-04-19 Pedro Alves <palves@redhat.com>
6609
6610 * gdbthread.h (thread): Add missing closing parenthesis in
6611 comment.
6612
3a3fd0fd
PA
66132017-04-19 Pedro Alves <palves@redhat.com>
6614
6615 * common/refcounted-object.h: New file.
6616 * gdbthread.h: Include "common/refcounted-object.h".
6617 (thread_info): Inherit from refcounted_object and add comments.
6618 (thread_info::incref, thread_info::decref)
6619 (thread_info::m_refcount): Delete.
6620 (thread_info::deletable): Use the refcounted_object::refcount()
6621 method.
6622 * inferior.c (current_inferior_): Add comment.
6623 (set_current_inferior): Increment/decrement refcounts.
6624 (prune_inferiors, remove_inferior_command): Skip inferiors marked
6625 not-deletable instead of comparing with the current inferior.
6626 (initialize_inferiors): Increment the initial inferior's refcount.
6627 * inferior.h (struct inferior): Forward declare.
6628 Include "common/refcounted-object.h".
6629 (current_inferior, set_current_inferior): Move declaration to
6630 before struct inferior's definition, and fix comment.
6631 (inferior): Inherit from refcounted_object. Add comments.
6632 * thread.c (switch_to_thread_no_regs): Reference the thread's
6633 inferior pointer directly instead of doing a ptid lookup.
6634 (switch_to_no_thread): New function.
6635 (switch_to_thread(thread_info *)): New function, factored out
6636 from ...
6637 (switch_to_thread(ptid_t)): ... this.
6638 (restore_current_thread): Delete.
6639 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
6640 fields, and add 'inf' field.
6641 (do_restore_current_thread_cleanup): Check whether old->inf is
6642 alive instead of looking up an inferior by ptid. Use
6643 switch_to_thread and switch_to_no_thread.
6644 (restore_current_thread_cleanup_dtor): Use old->inf directly
6645 instead of lookup up an inferior by id. Decref the inferior.
6646 Don't restore 'removable'.
6647 (make_cleanup_restore_current_thread): Same the inferior pointer
6648 in old, instead of the inferior number. Incref the inferior.
6649 Don't save/clear 'removable'.
6650
9bcb1f16
PA
66512017-04-19 Pedro Alves <palves@redhat.com>
6652
6653 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6654 unittests/scoped_restore-selftests.c.
6655 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
6656 * common/scoped_restore.h (scoped_restore_base): Make "class".
6657 (scoped_restore_base::release): New public method.
6658 (scoped_restore_base::scoped_restore_base): New protected ctor.
6659 (scoped_restore_base::m_saved_var): New protected field.
6660 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
6661 scoped_restore_base base class instead of m_saved_var directly.
6662 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
6663 (scoped_restore_tmpl::scoped_restore_tmpl(const
6664 scoped_restore_tmpl<T>&)): Likewise.
6665 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
6666 method.
6667 (scoped_restore_tmpl::saved_var): New method.
6668 (scoped_restore_tmpl::m_saved_var): Delete.
6669 * inferior.h (inferior::detaching): Now a bool.
6670 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
6671 cleanup.
6672 * unittests/scoped_restore-selftests.c: New file.
6673
26fcd539
PA
66742017-04-19 Pedro Alves <palves@redhat.com>
6675
6676 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
6677 Re-sort in alphabetic order.
6678
fdd243b0
PA
66792017-04-18 Pedro Alves <palves@redhat.com>
6680
6681 * xml-support.c (obstack_xml_printf): Delete.
6682 * xml-support.h (obstack_xml_printf): Delete.
6683
4895cde2
PA
66842017-04-18 Pedro Alves <palves@redhat.com>
6685
6686 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
6687 vdebug, verror, body_text, start_element, end_element, name,
6688 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
6689 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
6690 is_xinclude>: Make private and add m_ prefix.
6691 (gdb_xml_parser::body_text): New method, based on ...
6692 (gdb_xml_body_text): ... this. Adjust.
6693 (gdb_xml_parser::vdebug): New method, based on ...
6694 (gdb_xml_debug): ... this. Adjust.
6695 (gdb_xml_parser::verror): New method, based on ...
6696 (gdb_xml_error): ... this. Adjust.
6697 (gdb_xml_parser::start_element): New method, based on ...
6698 (gdb_xml_start_element): ... this. Adjust.
6699 (gdb_xml_start_element_wrapper): Defer to
6700 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
6701 (gdb_xml_parser::end_element): New method, based on ...
6702 (gdb_xml_end_element_wrapper): ... this. Adjust.
6703 (gdb_xml_parser::~gdb_xml_parser): Adjust.
6704 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
6705 (gdb_xml_parser::use_dtd): New method, based on ...
6706 (gdb_xml_use_dtd): ... this. Adjust.
6707 (gdb_xml_parser::parse): New method, based on ...
6708 (gdb_xml_parse): ... this. Adjust.
6709 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
6710 (xinclude_start_include): Adjust to call the parser's name method.
6711 (xml_xinclude_default, xml_xinclude_start_doctype)
6712 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
6713 method.
6714 (xml_process_xincludes): Adjust to call parser methods.
6715 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
6716 declarations.
6717
bd8a901f
PA
67182017-04-18 Pedro Alves <palves@redhat.com>
6719
6720 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
6721 gdb::optional<std::string>.
6722 * xml-support.c: Include <string>.
6723 (scope_level::scope_level(scope_level &&))
6724 (scope_level::~scope_level): Delete.
6725 (scope_level::body): Now a std::string.
6726 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
6727 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
6728 parameter.
6729 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
6730 (xinclude_parsing_data::output): Now a std::string reference.
6731 (xinclude_start_include): Adjust.
6732 (xml_xinclude_default): Adjust.
6733 (xml_process_xincludes): Add 'output' parameter, and return bool.
6734 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
6735 and return bool.
6736 * xml-tdesc.c: Include <unordered_map> and <string>.
6737 (tdesc_xml_cache): Delete.
6738 (tdesc_xml_cache_s): Delete.
6739 (xml_cache): Now an std::unordered_map.
6740 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
6741 (target_fetch_description_xml): Change return type to
6742 gdb::optional<std::string>, and adjust.
6743 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
6744 (target_fetch_description_xml): Change return type to
6745 gdb::optional<std::string>.
6746
d35d1958
PA
67472017-04-18 Pedro Alves <palves@redhat.com>
6748
6749 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6750 unittests/optional-selftests.c.
6751 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
6752 * unittests/optional-selftests.c: New file.
6753 * unittests/optional/assignment/1.cc: New file.
6754 * unittests/optional/assignment/2.cc: New file.
6755 * unittests/optional/assignment/3.cc: New file.
6756 * unittests/optional/assignment/4.cc: New file.
6757 * unittests/optional/assignment/5.cc: New file.
6758 * unittests/optional/assignment/6.cc: New file.
6759 * unittests/optional/assignment/7.cc: New file.
6760 * unittests/optional/cons/copy.cc: New file.
6761 * unittests/optional/cons/default.cc: New file.
6762 * unittests/optional/cons/move.cc: New file.
6763 * unittests/optional/cons/value.cc: New file.
6764 * unittests/optional/in_place.cc: New file.
6765 * unittests/optional/observers/1.cc: New file.
6766 * unittests/optional/observers/2.cc: New file.
6767
22796e97
PA
67682017-04-18 Pedro Alves <palves@redhat.com>
6769
6770 * common/gdb_optional.h: Include common/traits.h.
6771 (in_place_t): New type.
6772 (in_place): New constexpr variable.
6773 (optional::optional): Remove member initialization of
6774 m_instantiated.
6775 (optional::optional(in_place_t...)): New constructor.
6776 (optional::~optional): Use reset.
6777 (optional::optional(const optional&)): New.
6778 (optional::optional(const optional&&)): New.
6779 (optional::optional(T &)): New.
6780 (optional::optional(T &&)): New.
6781 (operator::operator=(const optional &)): New.
6782 (operator::operator=(optional &&)): New.
6783 (operator::operator= (const T &))
6784 (operator::operator= (T &&))
6785 (operator::emplace (Args &&... args)): Return a T&. Use reset.
6786 (operator::reset): New.
6787 (operator::m_instantiated):: Add in-class initializer.
6788 * common/traits.h: Include <type_traits>.
6789 (struct And): New types.
6790
a7fc9b61
PA
67912017-04-18 Pedro Alves <palves@redhat.com>
6792
6793 * xml-support.c: Include <vector>.
6794 (scope_level::scope_level(const gdb_xml_element *))
6795 (scope_level::scope_level(scope_level&&)): New.
6796 (scope_level::~scope_level): New.
6797 (scope_level_s): Delete.
6798 (gdb_xml_parser::scopes): Now a std::vector.
6799 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
6800 Use std::vector.
6801 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
6802 scope cleanup code.
6803 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
6804 of the scopes member. Use std::vector::emplace_back.
6805
010151c9
PA
68062017-04-18 Pedro Alves <palves@redhat.com>
6807
6808 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
6809 a bool.
6810 (gdb_xml_end_element): Change type of first parameter.
6811 (gdb_xml_cleanup): Rename to ...
6812 (gdb_xml_parser::~gdb_xml_parser): ... this.
6813 (gdb_xml_create_parser_and_cleanup): Delete with ...
6814 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
6815 to this new ctor.
6816 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
6817 using gdb_xml_create_parser_and_cleanup.
6818 (xinclude_parsing_data): Add ctor/dtor.
6819 (xml_xinclude_cleanup): Delete.
6820 (xml_process_xincludes): Create a local xinclude_parsing_data
6821 instead of heap-allocating one. Create a local gdb_xml_parser
6822 instead of heap-allocating one with
6823 gdb_xml_create_parser_and_cleanup.
6824
d56060f0
JB
68252017-04-18 John Baldwin <jhb@FreeBSD.org>
6826
6827 PR threads/20743
6828 * fbsd-nat.c (resume_one_thread_cb): Remove.
6829 (resume_all_threads_cb): Remove.
6830 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
6831 iterate_over_threads.
6832
305d16a9
JB
68332017-04-17 Joel Brobecker <brobecker@adacore.com>
6834
6835 * NEWS: Create a new section for the next release branch.
6836 Rename the section of the current branch, now that it has
6837 been cut.
6838
8bb57231
JB
68392017-04-17 Joel Brobecker <brobecker@adacore.com>
6840
6841 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
6842 * version.in: Bump version to 8.0.50.DATE-git.
6843
096c92dd
SDJ
68442017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
6845
6846 PR gdb/21385
6847 * windows-nat.c (windows_create_inferior): Declare 'allargs'
6848 independently of the host, and fix build breakage on Cygwin.
6849
0550c955
PA
68502017-04-13 Pedro Alves <palves@redhat.com>
6851
6852 * inferior.c (free_inferior): Convert to ...
6853 (inferior::~inferior): ... this dtor.
6854 (inferior::inferior): New ctor, factored out from ...
6855 (add_inferior_silent): ... here. Allocate the inferior with a new
6856 expression.
6857 (delete_inferior): Call delete instead of free_inferior.
6858 * inferior.h (gdb_environ, continuation): Forward declare.
6859 (inferior): Now a class. Add in-class initialization to all
6860 members. Make boolean fields bool, except 'detaching'.
6861 (inferior::inferior): New explicit ctor.
6862 (inferior::~inferior): New.
6863
e3d60dfc
PA
68642017-04-13 Pedro Alves <palves@redhat.com>
6865
6866 * inferior.c (init_inferior_list): Delete.
6867 * inferior.h (init_inferior_list): Delete.
6868
5fd69d0a
PA
68692017-04-13 Pedro Alves <palves@redhat.com>
6870
6871 PR threads/13217
6872 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
6873 (top level): Call it twice, with different thread sets.
6874
c6609450
PA
68752017-04-13 Pedro Alves <palves@redhat.com>
6876
6877 * thread.c: Include <algorithm>.
6878 (thread_array_cleanup): Delete.
6879 (scoped_inc_dec_ref): New class.
6880 (live_threads_count): New function.
6881 (set_thread_refcount): Delete.
6882 (tp_array_compar_ascending): Now a bool.
6883 (tp_array_compar): Convert to a std::sort comparison function.
6884 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
6885 and live_threads_count.
6886
2a00d7ce
PA
68872017-04-13 Pedro Alves <palves@redhat.com>
6888
6889 * infrun.c (follow_fork_inferior): Also switch the current
6890 inferior.
6891
441d7c93
PA
68922017-04-13 Pedro Alves <palves@redhat.com>
6893
6894 * breakpoint.c (watch_command_1): Save watchpoint-frame info
6895 before calling create_internal_breakpoint.
6896
808480f6
PA
68972017-04-13 Pedro Alves <palves@redhat.com>
6898
6899 * fork-child.c (execv_argv): New class.
6900 (breakup_args): Refactored as ...
6901 (execv_argv::init_for_no_shell): .. this method of execv_argv.
6902 Copy arguments to storage and replace separators with NULL
6903 terminators in place.
6904 (escape_bang_in_quoted_argument): Adjust to return bool.
6905 (execv_argv::execv_argv): New ctor.
6906 (execv_argv::init_for_shell): New method, factored out from
6907 fork_inferior. Don't strdup strings into the vector.
6908 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
6909 Remove free_vector_argv call.
6910
ad3d022a
YQ
69112017-04-13 Yao Qi <yao.qi@linaro.org>
6912
6913 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
6914 tdep->rx_psw_type.
6915
e6ddc3bf
YQ
69162017-04-13 Yao Qi <yao.qi@linaro.org>
6917
6918 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
6919 * rx-tdep.c (rx_gdbarch_init): Likewise.
6920
bfb8cf90
PA
69212017-04-13 Pedro Alves <palves@redhat.com>
6922
6923 * breakpoint.h (struct breakpoint): Reindent.
6924
f5336ca5
PA
69252017-04-13 Pedro Alves <palves@redhat.com>
6926
6927 * breakpoint.c (bp_location): Rename to ...
6928 (bp_locations): ... this. All references updated.
6929 (bp_location_count): Rename to ...
6930 (bp_locations_count): ... this. All references updated.
6931 (bp_location_placed_address_before_address_max): Rename to ...
6932 (bp_locations_placed_address_before_address_max): ... this. All
6933 references updated.
6934 (bp_location_shadow_len_after_address_max): Rename to ...
6935 (bp_locations_shadow_len_after_address_max): ... this. All
6936 references updated.
6937 (bp_location_compare_addrs): Rename to ...
6938 (bp_locations_compare_addrs): ... this. All references updated.
6939 (bp_location_compare):Rename to ...
6940 (bp_locations_compare): ... this. All references updated.
6941 (bp_location_target_extensions_update): Rename to ...
6942 (bp_locations_target_extensions_update): ... this. All references
6943 updated.
6944
be628ab8
SDJ
69452017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6946
6947 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
6948 * common/common.m4: Check headers 'termios.h', 'termio.h' and
6949 'sgtty.h'.
6950 * common/gdb_termios.h: New file, with parts of "terminal.h".
6951 * inflow.c: Include "gdb_termios.h".
6952 * ser-unix.c: Include "gdb_termios.h".
6953 * terminal.h: Move terminal-related defines to
6954 "common/gdb_termios.h".
6955
8e9e35b1
TT
69562017-04-12 Tom Tromey <tom@tromey.com>
6957
6958 * probe.c (parse_probes): Update.
6959 * location.h (delete_event_location): Don't declare.
6960 (event_location_deleter::operator()): Update.
6961 * location.c (event_location_deleter::operator()): Rename from
6962 delete_event_location.
6963 * linespec.h (linespec_result) <location>: Change type to
6964 event_location_up.
6965 * linespec.c (canonicalize_linespec, event_location_to_sals)
6966 (decode_objc): Update.
6967 (linespec_result): Don't call delete_event_location.
6968 * breakpoint.c (create_breakpoints_sal)
6969 (bkpt_probe_create_sals_from_location)
6970 (strace_marker_create_sals_from_location): Update.
6971
16e802b9
TT
69722017-04-12 Tom Tromey <tom@tromey.com>
6973
6974 * linespec.h (struct linespec_result): Add constructor and
6975 destructor.
6976 (init_linespec_result, destroy_linespec_result)
6977 (make_cleanup_destroy_linespec_result): Don't declare.
6978 * linespec.c (init_linespec_result): Remove.
6979 (linespec_result::~linespec_result): Rename from
6980 destroy_linespec_result. Update.
6981 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
6982 Remove.
6983 * breakpoint.c (create_breakpoint, break_range_command)
6984 (decode_location_default): Update.
6985 * ax-gdb.c (agent_command_1): Update.
6986
d28cd78a
TT
69872017-04-12 Tom Tromey <tom@tromey.com>
6988
6989 * remote.c (remote_download_tracepoint): Update.
6990 * python/py-breakpoint.c (bppy_get_location): Update.
6991 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
6992 (gdbscm_breakpoint_location): Update.
6993 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
6994 * breakpoint.h (struct breakpoint) <location, location_range_end>:
6995 Change type to event_location_up.
6996 * breakpoint.c (create_overlay_event_breakpoint)
6997 (create_longjmp_master_breakpoint)
6998 (create_std_terminate_master_breakpoint)
6999 (create_exception_master_breakpoint)
7000 (breakpoint_event_location_empty_p, print_breakpoint_location)
7001 (print_one_breakpoint_location, create_thread_event_breakpoint)
7002 (init_breakpoint_sal, create_breakpoint)
7003 (print_recreate_ranged_breakpoint, break_range_command)
7004 (init_ada_exception_breakpoint, say_where): Update.
7005 (base_breakpoint_dtor): Don't call delete_event_location.
7006 (bkpt_print_recreate, tracepoint_print_recreate)
7007 (dprintf_print_recreate, update_static_tracepoint)
7008 (breakpoint_re_set_default): Update.
7009
711799d5
TT
70102017-04-12 Tom Tromey <tom@tromey.com>
7011
7012 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7013 type of "to_do". Update.
7014 (compute_stack_depth): Use std::vector.
7015
52d214d3
TT
70162017-04-12 Tom Tromey <tom@tromey.com>
7017
7018 * printcmd.c (find_instruction_backward): Use std::vector.
7019
4c404b8b
TT
70202017-04-12 Tom Tromey <tom@tromey.com>
7021
7022 * symfile.c (objfilep): Remove typedef.
7023 (reread_symbols): Use a std::vector.
7024
156d9eab
TT
70252017-04-12 Tom Tromey <tom@tromey.com>
7026
7027 * mi/mi-main.c (exec_direction_forward): Remove.
7028 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7029 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7030 scoped_restore.
7031 * guile/guile.c (guile_repl_command, guile_command)
7032 (gdbscm_execute_gdb_command): Use scoped_restore.
7033 * go-exp.y (go_parse): Use scoped_restore.
7034 * d-exp.y (d_parse): Use scoped_restore.
7035 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7036 * c-exp.y (c_parse): Use scoped_restore.
7037
4d89769a
TT
70382017-04-12 Tom Tromey <tom@tromey.com>
7039
7040 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7041 (mi_parse): Update return type.
7042 (mi_parse_free): Remove.
7043 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7044 (mi_parse::~mi_parse): Rename from mi_parse_free.
7045 (mi_parse_cleanup): Remove.
7046 (mi_parse): Return a unique_ptr. Use new.
7047 * mi/mi-main.c (mi_execute_command): Update.
7048
4b217cc7
TT
70492017-04-12 Tom Tromey <tom@tromey.com>
7050
7051 * location.c (explicit_location_lex_one): Return a
7052 unique_xmalloc_ptr.
7053 (string_to_explicit_location): Update. Remove cleanups.
7054
59d3651b
TT
70552017-04-12 Tom Tromey <tom@tromey.com>
7056
7057 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7058 (compare_value_and_voffset): Change type. Update.
7059 (compute_vtable_size): Change type of "offset_vec".
7060 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7061 (gnuv3_get_typeid): Remove extraneous declaration.
7062
b24b0d6c
TT
70632017-04-12 Tom Tromey <tom@tromey.com>
7064
7065 * charset.h (wchar_iterator): Fix comment.
7066
80a3b8c5
TT
70672017-04-12 Tom Tromey <tom@tromey.com>
7068
7069 * charset.c (iconv_wrapper): New class.
7070 (cleanup_iconv): Remove.
7071 (convert_between_encodings): Use it.
7072
c83dd867
TT
70732017-04-12 Tom Tromey <tom@tromey.com>
7074
7075 * symfile.h (increment_reading_symtab): Update type.
7076 * symfile.c (decrement_reading_symtab): Remove.
7077 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7078 * psymtab.c (psymtab_to_symtab): Update.
7079 * dwarf2read.c (dw2_instantiate_symtab): Update.
7080
0e8621a0
TT
70812017-04-12 Tom Tromey <tom@tromey.com>
7082
7083 * jit.c (struct jit_reader): Declare separately. Add constructor
7084 and destructor. Change type of "handle".
7085 (loaded_jit_reader): Define separately.
7086 (jit_reader_load): Update. New "new".
7087 (jit_reader_unload_command): Use "delete".
7088 * gdb-dlfcn.h (struct dlclose_deleter): New.
7089 (gdb_dlhandle_up): New typedef.
7090 (gdb_dlopen, gdb_dlsym): Update types.
7091 (gdb_dlclose): Remove.
7092 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7093 (gdb_dlsym): Change type of "handle".
7094 (make_cleanup_dlclose): Remove.
7095 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7096 * compile/compile-c-support.c (load_libcc): Update.
7097
67d89901
TT
70982017-04-12 Tom Tromey <tom@tromey.com>
7099
7100 * symtab.h (find_pcs_for_symtab_line): Change return type.
7101 * symtab.c (find_pcs_for_symtab_line): Change return type.
7102 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7103 type of "vec". Update.
7104 (ltpy_get_pcs_for_line): Update.
7105 * linespec.c (decode_digits_ordinary): Update.
7106
93921405
TT
71072017-04-12 Tom Tromey <tom@tromey.com>
7108
7109 * tracepoint.c (actions_command): Update.
7110 * python/python.c (python_command, python_interactive_command):
7111 Update.
7112 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7113 * guile/guile.c (guile_command): Update.
7114 * defs.h (read_command_lines, read_command_lines_1): Return
7115 command_line_up.
7116 (command_lines_deleter): New struct.
7117 (command_line_up): New typedef.
7118 * compile/compile.c (compile_code_command)
7119 (compile_print_command): Update.
7120 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7121 command_line_up.
7122 (make_cleanup_free_command_lines): Remove.
7123 * cli/cli-script.c (get_command_line, read_command_lines_1)
7124 (copy_command_lines): Return command_line_up.
7125 (while_command, if_command, read_command_lines, define_command)
7126 (document_command): Update.
7127 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7128 Remove.
7129 * breakpoint.h (breakpoint_set_commands): Change type of
7130 "commands".
7131 * breakpoint.c (breakpoint_set_commands): Change type of
7132 "commands". Update.
7133 (do_map_commands_command, update_dprintf_command_list)
7134 (create_tracepoint_from_upload): Update.
7135
ffc2605c
TT
71362017-04-12 Tom Tromey <tom@tromey.com>
7137
7138 * tracepoint.c (scope_info): Update.
7139 * spu-tdep.c (spu_catch_start): Update.
7140 * python/python.c (gdbpy_decode_line): Update.
7141 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7142 * python/py-breakpoint.c (bppy_init): Update.
7143 * probe.c (parse_probes): Update.
7144 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7145 * location.h (event_location_deleter): New struct.
7146 (event_location_up): New typedef.
7147 (new_linespec_location, new_address_location, new_probe_location)
7148 (new_explicit_location, copy_event_location)
7149 (string_to_event_location, string_to_event_location_basic)
7150 (string_to_explicit_location): Update return type.
7151 (make_cleanup_delete_event_location): Remove.
7152 * location.c (new_linespec_location, new_address_location)
7153 (new_probe_location, new_explicit_location, copy_event_location):
7154 Return event_location_up.
7155 (delete_event_location_cleanup)
7156 (make_cleanup_delete_event_location): Remove.
7157 (string_to_explicit_location, string_to_event_location_basic)
7158 (string_to_event_location): Return event_location_up.
7159 * linespec.c (canonicalize_linespec, event_location_to_sals)
7160 (decode_line_with_current_source)
7161 (decode_line_with_last_displayed, decode_objc): Update.
7162 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7163 * completer.c (location_completer): Update.
7164 * cli/cli-cmds.c (edit_command, list_command): Update.
7165 * breakpoint.c (create_overlay_event_breakpoint)
7166 (create_longjmp_master_breakpoint)
7167 (create_std_terminate_master_breakpoint)
7168 (create_exception_master_breakpoint)
7169 (create_thread_event_breakpoint): Update.
7170 (init_breakpoint_sal): Update. Remove some dead code.
7171 (create_breakpoint_sal): Change type of "location". Update.
7172 (create_breakpoints_sal, create_breakpoint, break_command_1)
7173 (dprintf_command, break_range_command, until_break_command)
7174 (init_ada_exception_breakpoint)
7175 (strace_marker_create_sals_from_location)
7176 (update_static_tracepoint, trace_command, ftrace_command)
7177 (strace_command, create_tracepoint_from_upload): Update.
7178 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7179 * ax-gdb.c (agent_command_1): Update.
7180
8f10c932
PA
71812017-04-12 Pedro Alves <palves@redhat.com>
7182
7183 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7184 * configure.tgt: Handle i[34567]86-*-go32* and
7185 i[34567]86-*-msdosdjgpp*.
7186 * i386-tdep.c (i386_svr4_reg_to_regnum):
7187 Make extern.
7188 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7189 i386-go32-tdep.c.
7190 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7191 * i386-go32-tdep.c: New file.
7192 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7193 declarations.
7194
0a31ccfb
SM
71952017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7196
7197 * aix-thread.c (pd_status2str): Change return type to const char *.
7198
e9bb3fbb
PA
71992017-04-12 Pedro Alves <palves@redhat.com>
7200
7201 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7202 calls to set_gdbarch_gnu_triplet_regexp.
7203
53375380
PA
72042017-04-12 Pedro Alves <palves@redhat.com>
7205
7206 PR gdb/21323
7207 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7208 New enum value.
7209 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7210 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7211 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7212 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7213 * gdbarch.h, gdbarch.c: Regenerate.
7214 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7215 gdbarch_wchar_bit and gdbarch_wchar_signed.
7216 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7217 * arm-tdep.c (arm_gdbarch_init): Likewise.
7218 * avr-tdep.c (avr_gdbarch_init): Likewise.
7219 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7220 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7221 * i386-tdep.c (i386_go32_init_abi): Likewise.
7222 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7223 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7224 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7225 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7226 * sh-tdep.c (sh_gdbarch_init): Likewise.
7227 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7228 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7229 * windows-tdep.c (windows_init_abi): Likewise.
7230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7231
53e710ac
PA
72322017-04-12 Pedro Alves <palves@redhat.com>
7233
7234 PR c++/21323
7235 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7236 cplus_primitive_type_char32_t>: New enum values.
7237 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7238 and cplus_primitive_type_char32_t.
7239 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7240 32, use the archtecture's built-in type for char16_t and char32_t,
7241 respectively. Otherwise, fallback to init_integer_type as before,
7242 but make the type unsigned, and issue a complaint.
7243 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7244
ab0538b8
AH
72452017-04-12 Alan Hayward <alan.hayward@arm.com>
7246
5e0e0422 7247 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
7248 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7249
5430098f
SDJ
72502017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7251
7252 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7253 'const char *'.
7254
7c5ded6a
SDJ
72552017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7256
7257 * common/common-utils.c (free_vector_argv): New function.
7258 * common/common-utils.h: Include <vector>.
7259 (free_vector_argv): New prototype.
7260 * darwin-nat.c (darwin_create_inferior): Rewrite function
7261 prototype in order to constify "exec_file" and accept a
7262 "std::string" for "allargs".
7263 * fork-child.c: Include <vector>.
7264 (breakup_args): Rewrite function, using C++.
7265 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7266 and accept "std::string" for "allargs". Update the code to
7267 calculate "argv" based on "allargs". Update calls to "exec_fun"
7268 and "execvp".
7269 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7270 order to constify "exec_file" and accept a "std::string" for
7271 "allargs".
7272 * go32-nat.c (go32_create_inferior): Likewise.
7273 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7274 * infcmd.c (run_command_1): Constify "exec_file". Use
7275 "std::string" for inferior arguments.
7276 * inferior.h (fork_inferior): Update prototype.
7277 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7278 prototype in order to constify "exec_file" and accept a
7279 "std::string" for "allargs".
7280 * nto-procfs.c (procfs_create_inferior): Likewise.
7281 * procfs.c (procfs_create_inferior): Likewise.
7282 * remote-sim.c (gdbsim_create_inferior): Likewise.
7283 * remote.c (extended_remote_run): Update code to accept
7284 "std::string" as argument.
7285 (extended_remote_create_inferior): Rewrite function prototype in
7286 order to constify "exec_file" and accept a "std::string" for
7287 "allargs".
7288 * rs6000-nat.c (super_create_inferior): Likewise.
7289 (rs6000_create_inferior): Likewise.
7290 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7291 * windows-nat.c (windows_create_inferior): Likewise.
7292
ae0eee42
PA
72932017-04-11 Pedro Alves <palves@redhat.com>
7294
7295 * thread.c: Fix whitespace throughout.
7296
a6acac06
PR
72972017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7298
7299 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7300
64403bd1
AH
73012017-04-11 Alan Hayward <alan.hayward@arm.com>
7302
7303 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7304
a5bef50f
SDJ
73052017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7306
7307 PR gdb/21364
7308 * osdata.c (info_osdata): Check if 'type' is an empty string
7309 instead of NULL.
7310
9295a5a9
PA
73112017-04-10 Pedro Alves <palves@redhat.com>
7312
7313 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7314 (ptid_to_global_thread_id, in_thread_list)
7315 (do_captured_list_thread_ids, set_resumed, set_running)
7316 (set_executing, set_stop_requested, finish_thread_state)
7317 (validate_registers_access, can_access_registers_ptid)
7318 (print_thread_info_1, switch_to_thread)
7319 (do_restore_current_thread_cleanup)
7320 (make_cleanup_restore_current_thread, thread_command)
7321 (thread_name_command): Use operator== instead of ptid_equal.
7322
996812e3
PA
73232017-04-10 Pedro Alves <palves@redhat.com>
7324
7325 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7326 (current_thread_cleanup_chain): Delete.
7327 (restore_current_thread_cleanup_dtor)
7328 (make_cleanup_restore_current_thread): Remove references to
7329 current_thread_cleanup_chain.
7330
845b344f
AH
73312017-04-10 Alan Hayward <alan.hayward@arm.com>
7332
7333 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7334 REG_UNKNOWN.
7335
803bdfe4
YQ
73362017-04-10 Yao Qi <yao.qi@linaro.org>
7337
7338 PR gdb/19942
7339 * gdbthread.h (thread_info::deletable): New method.
7340 (thread_info::incref): New method.
7341 (thread_info::decref): New method.
7342 (thread_info::refcount): Move it to private.
7343 * infrun.c (save_stop_context): Call inc_refcount.
7344 (release_stop_context_cleanup): Likewise.
7345 * thread.c (set_thread_exited): New function.
7346 (init_thread_list): Delete "tp" only it is deletable, otherwise
7347 call set_thread_exited.
7348 (delete_thread_1): Call set_thread_exited.
7349 (current_thread_cleanup) <inferior_pid>: Remove.
7350 <thread>: New field.
7351 (restore_current_thread_ptid_changed): Removed.
7352 (do_restore_current_thread_cleanup): Adjust.
7353 (restore_current_thread_cleanup_dtor): Don't call
7354 find_thread_ptid.
7355 (set_thread_refcount): Use dec_refcount.
7356 (make_cleanup_restore_current_thread): Adjust.
7357 (thread_apply_all_command): Call inc_refcount.
7358 (_initialize_thread): Don't call
7359 observer_attach_thread_ptid_changed.
7360
8c25b497
YQ
73612017-04-10 Yao Qi <yao.qi@linaro.org>
7362
7363 * thread.c (delete_thread_1): Hoist code on marking thread as
7364 exited.
7365
8473b447
SM
73662017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7367
7368 * windows-nat.c (windows_detach): Initialize ptid with
7369 minus_one_ptid.
7370
6670ec13
SM
73712017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7372
7373 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7374
ba2f91bb
AH
73752017-04-07 Alan Hayward <alan.hayward@arm.com>
7376
7377 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7378 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7379 (bfin_pseudo_register_write): Likewise
7380
436252de
SM
73812017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7382
7383 * common/ptid.h (struct ptid): Change to...
7384 (class ptid_t): ... this.
7385 <ptid_t>: New constructors.
7386 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7387 matches>: New methods.
7388 <make_null, make_minus_one>: New static methods.
7389 <pid>: Rename to...
7390 <m_pid>: ...this.
7391 <lwp>: Rename to...
7392 <m_lwp>: ...this.
7393 <tid>: Rename to...
7394 <m_tid>: ...this.
7395 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7396 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7397 as references, move comment to class ptid_t.
7398 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7399 ptid_t static methods.
7400 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7401 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7402 Take ptid arguments as references, implement using ptid_t methods.
7403 * unittests/ptid-selftests.c: New file.
7404 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7405 unittests/ptid-selftests.c.
7406 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7407
0dedf377
TP
74082017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7409
7410 * python/python.c (python_run_simple_file): Cast mode literal to
7411 non-const char pointer as expected by PyFile_FromString.
7412
4e9868d4
SM
74132017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7414
7415 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7416 minus_one_ptid and null_ptid.
7417
9bf2a700
PA
74182017-04-05 Pedro Alves <palves@redhat.com>
7419
7420 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7421 * configure: Regenerate.
7422
a121b7c1
PA
74232017-04-05 Pedro Alves <palves@redhat.com>
7424
7425 * ada-exp.y (yyerror): Constify.
7426 * ada-lang.c (bound_name, get_selections)
7427 (ada_variant_discrim_type)
7428 (ada_variant_discrim_name, ada_value_struct_elt)
7429 (ada_lookup_struct_elt_type, is_unchecked_variant)
7430 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7431 (catch_ada_exception_command_split)
7432 (catch_ada_assert_command_split, catch_assert_command)
7433 (ada_op_name): Constify.
7434 * ada-lang.h (ada_yyerror, get_selections)
7435 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7436 * arc-tdep.c (arc_print_frame_cache): Constify.
7437 * arm-tdep.c (arm_skip_stub): Constify.
7438 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7439 (gen_aggregate_elt_ref): Constify.
7440 * bcache.c (print_bcache_statistics): Constify.
7441 * bcache.h (print_bcache_statistics): Constify.
7442 * break-catch-throw.c (catch_exception_command_1):
7443 * breakpoint.c (struct ep_type_description::description):
7444 Constify.
7445 (add_solib_catchpoint): Constify.
7446 (catch_fork_command_1): Add cast.
7447 (add_catch_command): Constify.
7448 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7449 Constify.
7450 * bsd-uthread.c (bsd_uthread_state): Constify.
7451 * buildsym.c (patch_subfile_names): Constify.
7452 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7453 Constify.
7454 * c-exp.y (yyerror): Constify.
7455 (token::oper): Constify.
7456 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7457 * c-varobj.c (cplus_describe_child): Constify.
7458 * charset.c (find_charset_names): Add cast.
7459 (find_charset_names): Constify array and add const_cast.
7460 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7461 (edit_command): Constify.
7462 * cli/cli-decode.c (lookup_cmd): Constify.
7463 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7464 Constify.
7465 (struct dump_context): Constify.
7466 (add_dump_command, restore_command): Constify.
7467 * cli/cli-script.c (get_command_line): Constify.
7468 * cli/cli-script.h (get_command_line): Constify.
7469 * cli/cli-utils.c (check_for_argument): Constify.
7470 * cli/cli-utils.h (check_for_argument): Constify.
7471 * coff-pe-read.c (struct read_pe_section_data): Constify.
7472 * command.h (lookup_cmd): Constify.
7473 * common/print-utils.c (decimal2str): Constify.
7474 * completer.c (gdb_print_filename): Constify.
7475 * corefile.c (set_gnutarget): Constify.
7476 * cp-name-parser.y (yyerror): Constify.
7477 * cp-valprint.c (cp_print_class_member): Constify.
7478 * cris-tdep.c (cris_register_name, crisv32_register_name):
7479 Constify.
7480 * d-exp.y (yyerror): Constify.
7481 (struct token::oper): Constify.
7482 * d-lang.h (d_yyerror): Constify.
7483 * dbxread.c (struct header_file_location::name): Constify.
7484 (add_old_header_file, add_new_header_file, last_function_name)
7485 (dbx_next_symbol_text, add_bincl_to_list)
7486 (find_corresponding_bincl_psymtab, set_namestring)
7487 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7488 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7489 * defs.h (command_line_input, print_address_symbolic)
7490 (deprecated_readline_begin_hook): Constify.
7491 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7492 Constify.
7493 * event-top.c (handle_line_of_input): Constify and add cast.
7494 * exceptions.c (catch_errors): Constify.
7495 * exceptions.h (catch_errors): Constify.
7496 * expprint.c (print_subexp_standard, op_string, op_name)
7497 (op_name_standard, dump_raw_expression, dump_raw_expression):
7498 * expression.h (op_name, op_string, dump_raw_expression):
7499 Constify.
7500 * f-exp.y (yyerror): Constify.
7501 (struct token::oper): Constify.
7502 (struct f77_boolean_val::name): Constify.
7503 * f-lang.c (f_word_break_characters): Constify.
7504 * f-lang.h (f_yyerror): Constify.
7505 * fork-child.c (fork_inferior): Add cast.
7506 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7507 (new_variant): Constify.
7508 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7509 * gdbarch.c: Regenerate.
7510 * gdbcore.h (set_gnutarget): Constify.
7511 * go-exp.y (yyerror): Constify.
7512 (token::oper): Constify.
7513 * go-lang.h (go_yyerror): Constify.
7514 * go32-nat.c (go32_sysinfo): Constify.
7515 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7516 * guile/scm-cmd.c (cmdscm_function): Constify.
7517 * guile/scm-param.c (pascm_param_value): Constify.
7518 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7519 (h8300sx_register_name): Constify.
7520 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
7521 Constify.
7522 * ia64-tdep.c (ia64_register_names): Constify.
7523 * infcmd.c (construct_inferior_arguments): Constify.
7524 (path_command, attach_post_wait): Constify.
7525 * language.c (show_range_command, show_case_command)
7526 (unk_lang_error): Constify.
7527 * language.h (language_defn::la_error)
7528 (language_defn::la_name_of_this): Constify.
7529 * linespec.c (decode_line_2): Constify.
7530 * linux-thread-db.c (thread_db_err_str): Constify.
7531 * lm32-tdep.c (lm32_register_name): Constify.
7532 * m2-exp.y (yyerror): Constify.
7533 * m2-lang.h (m2_yyerror): Constify.
7534 * m32r-tdep.c (m32r_register_names): Constify and make static.
7535 * m68hc11-tdep.c (m68hc11_register_names): Constify.
7536 * m88k-tdep.c (m88k_register_name): Constify.
7537 * macroexp.c (appendmem): Constify.
7538 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
7539 (upgrade_type, parse_external, parse_partial_symbols)
7540 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
7541 (new_symbol): Constify.
7542 * memattr.c (mem_info_command): Constify.
7543 * mep-tdep.c (register_name_from_keyword): Constify.
7544 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
7545 Constify.
7546 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
7547 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
7548 * mi/mi-main.c (captured_mi_execute_command): Constify and add
7549 cast.
7550 (mi_execute_async_cli_command): Constify.
7551 * mips-tdep.c (mips_register_name): Constify.
7552 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
7553 (am33_register_name, am33_2_register_name)
7554 * moxie-tdep.c (moxie_register_names): Constify.
7555 * nat/linux-osdata.c (osdata_type): Constify fields.
7556 * nto-tdep.c (nto_parse_redirection): Constify.
7557 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
7558 (lookup_child_selector): Constify.
7559 (objc_methcall::name): Constify.
7560 * objc-lang.h (lookup_objc_class, lookup_child_selector)
7561 (lookup_struct_typedef): Constify.
7562 * objfiles.c (pc_in_section): Constify.
7563 * objfiles.h (pc_in_section): Constify.
7564 * p-exp.y (struct token::oper): Constify.
7565 (yyerror): Constify.
7566 * p-lang.h (pascal_yyerror): Constify.
7567 * parser-defs.h (op_name_standard): Constify.
7568 (op_print::string): Constify.
7569 (exp_descriptor::op_name): Constify.
7570 * printcmd.c (print_address_symbolic): Constify.
7571 * psymtab.c (print_partial_symbols): Constify.
7572 * python/py-breakpoint.c (stop_func): Constify.
7573 (bppy_get_expression): Constify.
7574 * python/py-cmd.c (cmdpy_completer::name): Constify.
7575 (cmdpy_function): Constify.
7576 * python/py-event.c (evpy_add_attribute)
7577 (gdbpy_initialize_event_generic): Constify.
7578 * python/py-event.h (evpy_add_attribute)
7579 (gdbpy_initialize_event_generic): Constify.
7580 * python/py-evts.c (add_new_registry): Constify.
7581 * python/py-finishbreakpoint.c (outofscope_func): Constify.
7582 * python/py-framefilter.c (get_py_iter_from_func): Constify.
7583 * python/py-inferior.c (get_buffer): Add cast.
7584 * python/py-param.c (parm_constant::name): Constify.
7585 * python/py-unwind.c (fprint_frame_id): Constify.
7586 * python/python.c (gdbpy_parameter_value): Constify.
7587 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
7588 * remote.c (memory_packet_config::name): Constify.
7589 (show_packet_config_cmd, remote_write_bytes)
7590 (remote_buffer_add_string):
7591 * reverse.c (exec_reverse_once): Constify.
7592 * rs6000-tdep.c (variant::name, variant::description): Constify.
7593 * rust-exp.y (rustyyerror): Constify.
7594 * rust-lang.c (rust_op_name): Constify.
7595 * rust-lang.h (rustyyerror): Constify.
7596 * serial.h (serial_ops::name): Constify.
7597 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
7598 (sh_sh3e_register_name, sh_sh2e_register_name)
7599 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
7600 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
7601 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
7602 (sh_sh4al_dsp_register_name): Constify.
7603 * sh64-tdep.c (sh64_register_name): Constify.
7604 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
7605 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
7606 * stabsread.c (patch_block_stabs, read_type_number)
7607 (ref_map::stabs, ref_add, process_reference)
7608 (symbol_reference_defined, define_symbol, define_symbol)
7609 (error_type, read_type, read_member_functions, read_cpp_abbrev)
7610 (read_one_struct_field, read_struct_fields, read_baseclasses)
7611 (read_tilde_fields, read_struct_type, read_array_type)
7612 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
7613 (read_huge_number, read_range_type, read_args, common_block_start)
7614 (find_name_end): Constify.
7615 * stabsread.h (common_block_start, define_symbol)
7616 (process_one_symbol, symbol_reference_defined, ref_add):
7617 * symfile.c (get_section_index, add_symbol_file_command):
7618 * symfile.h (get_section_index): Constify.
7619 * target-descriptions.c (tdesc_type::name): Constify.
7620 (tdesc_free_type): Add cast.
7621 * target.c (find_default_run_target):
7622 (add_deprecated_target_alias, find_default_run_target)
7623 (target_announce_detach): Constify.
7624 (do_option): Constify.
7625 * target.h (add_deprecated_target_alias): Constify.
7626 * thread.c (print_thread_info_1): Constify.
7627 * top.c (deprecated_readline_begin_hook, command_line_input):
7628 Constify.
7629 (init_main): Add casts.
7630 * top.h (handle_line_of_input): Constify.
7631 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
7632 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
7633 (tfind_command): Rename to ...
7634 (tfind_command_1): ... this and constify.
7635 (tfind_command): New function.
7636 (tfind_end_command, tfind_start_command): Adjust.
7637 (encode_source_string): Constify.
7638 * tracepoint.h (encode_source_string): Constify.
7639 * tui/tui-data.c (tui_partial_win_by_name): Constify.
7640 * tui/tui-data.h (tui_partial_win_by_name): Constify.
7641 * tui/tui-source.c (tui_set_source_content_nil): Constify.
7642 * tui/tui-source.h (tui_set_source_content_nil): Constify.
7643 * tui/tui-win.c (parse_scrolling_args): Constify.
7644 * tui/tui-windata.c (tui_erase_data_content): Constify.
7645 * tui/tui-windata.h (tui_erase_data_content): Constify.
7646 * tui/tui-winsource.c (tui_erase_source_content): Constify.
7647 * tui/tui.c (tui_enable): Add cast.
7648 * utils.c (defaulted_query): Constify.
7649 (init_page_info): Add cast.
7650 (puts_debug, subset_compare): Constify.
7651 * utils.h (subset_compare): Constify.
7652 * varobj.c (varobj_format_string): Constify.
7653 * varobj.h (varobj_format_string): Constify.
7654 * vax-tdep.c (vax_register_name): Constify.
7655 * windows-nat.c (windows_detach): Constify.
7656 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
7657 * xml-support.c (gdb_xml_end_element): Constify.
7658 * xml-tdesc.c (tdesc_start_reg): Constify.
7659 * xstormy16-tdep.c (xstormy16_register_name): Constify.
7660 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
7661 * xtensa-tdep.h (xtensa_register_t::name): Constify.
7662
995816ba
PA
76632017-04-05 Pedro Alves <palves@redhat.com>
7664
7665 * proc-api.c (struct trans): Constify.
7666 (procfs_note): Constify.
7667 * proc-events.c (struct trans, syscall_table):
7668 * proc-flags.c (struct trans): Constify.
7669 * proc-utils.h (procfs_note): Constify.
7670 * proc-why.c (struct trans): Constify.
7671 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
7672 (procfs_detach): Constify.
7673 * sol-thread.c (struct string_map): Constify.
7674 (td_err_string, td_state_string): Constify.
7675
3e83a920
PA
76762017-04-05 Pedro Alves <palves@redhat.com>
7677
7678 * proc-api.c (procfs_filename): Don't initialize
7679 procfs_filename.
7680 (prepare_to_trace): Assume procfs_filename is non-NULL.
7681 (_initialize_proc_api): Give procfs_filename a default value here.
7682
63160a43
PA
76832017-04-05 Pedro Alves <palves@redhat.com>
7684
7685 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
7686 'cond_string' parameter.
7687 (extract_exception_regexp): Constify 'string' parameter.
7688 (catch_exception_command_1): Constify.
7689 * breakpoint.c (init_catchpoint)
7690 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
7691 parameter.
7692 (ep_parse_optional_if_clause, catch_fork_command_1)
7693 (catch_exec_command_1): Constify.
7694 * breakpoint.h (init_catchpoint): Constify 'cond_string'
7695 parameter.
7696 (ep_parse_optional_if_clause): Constify.
7697 * cli/cli-utils.c (remove_trailing_whitespace)
7698 (check_for_argument): Constify.
7699 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
7700 non-const overload.
7701 (check_for_argument): Likewise.
7702
9b2eba3d
PA
77032017-04-05 Pedro Alves <palves@redhat.com>
7704
7705 * event-top.c (command_line_handler): Add cast to execute_command
7706 call.
7707 * record-btrace.c (cmd_record_btrace_bts_start)
7708 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
7709 (cmd_record_btrace_start): Add cast to execute_command call.
7710 * record-full.c (record_full_goto_insn):
7711 * record.c (record_start, record_stop): Add cast to
7712 execute_command_to_string calls.
7713 (cmd_record_start): Add cast to execute_command calls.
7714
2adadf51
PA
77152017-04-05 Pedro Alves <palves@redhat.com>
7716
7717 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
7718 static inline function.
7719 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
7720 array and use gdb_PyArg_ParseTupleAndKeywords.
7721 * python/py-cmd.c (cmdpy_init): Likewise.
7722 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
7723 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
7724 (infpy_search_memory): Likewise.
7725 * python/py-objfile.c (objfpy_add_separate_debug_file)
7726 (gdbpy_lookup_objfile): Likewise.
7727 * python/py-symbol.c (gdbpy_lookup_symbol)
7728 (gdbpy_lookup_global_symbol): Likewise.
7729 * python/py-type.c (gdbpy_lookup_type): Likewise.
7730 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
7731 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
7732 Likewise.
7733
0d1f4ceb
PA
77342017-04-05 Pedro Alves <palves@redhat.com>
7735
7736 * python/python-internal.h (gdb_PyGetSetDef): New type.
7737 * python/py-block.c (block_object_getset)
7738 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
7739 * python/py-event.c (event_object_getset)
7740 (finish_breakpoint_object_getset): Likewise.
7741 * python/py-inferior.c (inferior_object_getset): Likewise.
7742 * python/py-infthread.c (thread_object_getset): Likewise.
7743 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
7744 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
7745 * python/py-objfile.c (objfile_getset): Likewise.
7746 * python/py-progspace.c (pspace_getset): Likewise.
7747 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
7748 Likewise.
7749 * python/py-record.c (recpy_record_getset): Likewise.
7750 * python/py-symbol.c (symbol_object_getset): Likewise.
7751 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
7752 Likewise.
7753 * python/py-type.c (type_object_getset, field_object_getset):
7754 Likewise.
7755 * python/py-value.c (value_object_getset): Likewise.
7756
4d759979
PA
77572017-04-05 Pedro Alves <palves@redhat.com>
7758
7759 * python/python-internal.h (gdb_PyObject_CallMethod)
7760 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
7761 New functions.
7762 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
7763 (PySys_GetObject, PySys_SetPath): New macros.
7764
fdf9e36f
PA
77652017-04-05 Pedro Alves <palves@redhat.com>
7766
7767 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
7768 info_osdata_command.
7769 * osdata.c (info_osdata_command): Rename to ...
7770 (info_osdata): ... this. Constify 'type' parameter, and remove
7771 the 'from_tty' parameter. Accept NULL TYPE.
7772 (info_osdata_command): New function.
7773 * osdata.h (info_osdata_command): Remove declaration.
7774 (info_osdata): New declaration.
7775
9f33b8b7
PA
77762017-04-05 Pedro Alves <palves@redhat.com>
7777
7778 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
7779 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
7780 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
7781 parameter.
7782 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
7783 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
7784 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
7785 parameter.
7786 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
7787 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
7788 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
7789 (mi_cmd_file_list_exec_source_files)
7790 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
7791 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7792 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
7793 parameter.
7794 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
7795 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
7796 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7797 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
7798 (mi_cmd_stack_info_frame): Constify 'command' parameter.
7799 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
7800 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
7801 'command' parameter.
7802 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
7803 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
7804 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
7805 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
7806 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
7807 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
7808 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
7809 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
7810 (mi_cmd_var_set_update_range): Constify 'command' parameter.
7811 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
7812 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
7813 parameter.
7814 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
7815 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
7816 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
7817 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
7818 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
7819 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
7820 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
7821 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
7822 (mi_cmd_data_list_changed_registers)
7823 (mi_cmd_data_write_register_values)
7824 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
7825 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
7826 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
7827 (mi_cmd_list_features, mi_cmd_list_target_features)
7828 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
7829 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
7830 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
7831 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
7832 (mi_cmd_trace_frame_collected): Constify 'command'
7833 parameter.
7834 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
7835 'command' parameter.
7836
67cb5b2d
PA
78372017-04-05 Pedro Alves <palves@redhat.com>
7838
7839 * ada-lang.c (ada_completer_word_break_characters): Now a const
7840 array.
7841 (ada_get_gdb_completer_word_break_characters): Constify.
7842 * completer.c (gdb_completer_command_word_break_characters)
7843 (gdb_completer_file_name_break_characters)
7844 (gdb_completer_quote_characters): Now const arrays.
7845 (get_gdb_completer_quote_characters): Constify.
7846 (set_rl_completer_word_break_characters): New function.
7847 (set_gdb_completion_word_break_characters)
7848 (complete_line_internal): Use it.
7849 * completer.h (get_gdb_completer_quote_characters): Constify.
7850 (set_rl_completer_word_break_characters): Declare.
7851 * f-lang.c (f_word_break_characters): Constify.
7852 * language.c (default_word_break_characters): Constify.
7853 * language.h (language_defn::la_word_break_characters): Constify.
7854 (default_word_break_characters): Constify.
7855 * top.c (init_main): Use set_rl_completer_word_break_characters.
7856
7a114964
PA
78572017-04-05 Pedro Alves <palves@redhat.com>
7858
7859 * aix-thread.c (aix_thread_pid_to_str)
7860 (aix_thread_extra_thread_info): Constify.
7861 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
7862 * bsd-uthread.c (bsd_uthread_extra_thread_info)
7863 (bsd_uthread_pid_to_str): Constify.
7864 * corelow.c (core_pid_to_str): Constify.
7865 * darwin-nat.c (darwin_pid_to_str): Constify.
7866 * fbsd-nat.c (fbsd_pid_to_str): Constify.
7867 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
7868 Constify.
7869 * gnu-nat.c (gnu_pid_to_str): Constify.
7870 * go32-nat.c (go32_pid_to_str): Constify.
7871 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
7872 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
7873 * inferior.c (inferior_pid_to_str): Constify.
7874 * linux-nat.c (linux_nat_pid_to_str): Constify.
7875 * linux-tdep.c (linux_core_pid_to_str): Constify.
7876 * linux-thread-db.c (thread_db_pid_to_str)
7877 (thread_db_extra_thread_info): Constify.
7878 * nto-tdep.c (nto_extra_thread_info): Constify.
7879 * nto-tdep.h (nto_extra_thread_info): Constify.
7880 * obsd-nat.c (obsd_pid_to_str): Constify.
7881 * procfs.c (procfs_pid_to_str): Constify.
7882 * ravenscar-thread.c (ravenscar_extra_thread_info)
7883 (ravenscar_pid_to_str): Constify.
7884 * remote-sim.c (gdbsim_pid_to_str): Constify.
7885 * remote.c (remote_threads_extra_info, remote_pid_to_str):
7886 Constify.
7887 * sol-thread.c (solaris_pid_to_str): Constify.
7888 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
7889 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
7890 * target.c (default_pid_to_str, target_pid_to_str)
7891 (normal_pid_to_str, default_pid_to_str): Constify.
7892 * target.h (target_ops::to_pid_to_str)
7893 (target_ops::to_extra_thread_info): Constify.
7894 (target_pid_to_str, normal_pid_to_str): Constify.
7895 * windows-nat.c (windows_pid_to_str): Constify.
7896 * gdbarch.sh (core_pid_to_str): Constify.
7897 * target-delegates.c: Regenerate.
7898 * gdbarch.h, gdbarch.c: Regenerate.
7899
69bbf465
PA
79002017-04-05 Pedro Alves <palves@redhat.com>
7901
7902 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
7903 the memory of the temporary warning_pre_print override.
7904 * utils.c (warning_pre_print): Constify.
7905 * utils.h (warning_pre_print): Constify.
7906
be47f9e8
PA
79072017-04-05 Pedro Alves <palves@redhat.com>
7908
7909 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
7910 (shell_command): New function.
7911 (make_command): Use std::string.
7912 (init_cli_cmds): Register shell_command instead of shell_escape.
7913
bde6261a
PA
79142017-04-05 Pedro Alves <palves@redhat.com>
7915
7916 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
7917 * tracepoint.c (default_collect): Don't initialize.
7918
b38ef47f
PA
79192017-04-05 Pedro Alves <palves@redhat.com>
7920
7921 * macroexp.c (macro_buffer::shared): Now a bool.
7922 (init_buffer): Update.
7923 (init_shared_buffer): Constify 'addr' parameter.
7924 (substitute_args, expand, macro_expand, macro_expand_next): Remove
7925 casts.
7926
f995bbe8
PA
79272017-04-05 Pedro Alves <palves@redhat.com>
7928
7929 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
7930 * disasm.c (set_disassembler_options): Constify local.
7931 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
7932
4a596fe2
SDJ
79332017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7934
7935 PR gdb/21352
7936 * tracefile.c (tsave_command): Fix argument parsing for '-r'
7937 option.
7938
2cad08ea
YQ
79392017-04-05 Yao Qi <yao.qi@linaro.org>
7940
7941 * frame.c (frame_unwind_register_unsigned): Call
7942 frame_unwind_register_value.
7943
55a98976
YQ
79442017-04-05 Yao Qi <yao.qi@linaro.org>
7945
7946 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
7947 Use gdb_test_multiple, and don't match anchor.
7948
4ac40124
PA
79492017-04-05 Pedro Alves <palves@redhat.com>
7950
7951 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
7952 (Write After Approval): Remove Simon Marchi.
7953
c053b654
PA
79542017-04-05 Pedro Alves <palves@redhat.com>
7955
7956 * common/gdb_optional.h (optional::optional): Make constexpr and
7957 initialize m_dummy.
7958
4c7bf4f9
JB
79592017-04-04 John Baldwin <jhb@FreeBSD.org>
7960
7961 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
7962 (amd64fbsd_jmp_buf_reg_offset): Remove.
7963 (amd64fbsd_supply_uthread): Remove function.
7964 (amd64fbsd_collect_uthread): Remove function.
7965 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
7966 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
7967 (x86_64-*-freebsd*): Remove bsd-uthread.o.
7968 (fbsd-nat.c): Update comment.
7969 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
7970 (i386fbsd_jmp_buf_reg_offset): Remove.
7971 (i386fbsd_supply_uthread): Remove function.
7972 (i386fbsd_collect_uthread): Remove function.
7973 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
7974
1e1a8bef
JB
79752017-04-04 John Baldwin <jhb@FreeBSD.org>
7976
7977 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
7978 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
7979 * NEWS: Mention that support for FreeBSD/alpha was removed.
7980 * alpha-fbsd-tdep.c: Delete file.
7981 * config/alpha/fbsd.mh: Delete file.
7982 * configure.host: Delete alpha*-*-freebsd* and
7983 alpha*-*-kfreebsd*-gnu.
7984 * configure.tgt: Delete alpha*-*-freebsd* and
7985 alpha*-*-kfreebsd*-gnu.
7986
49907934
JB
79872017-04-04 John Baldwin <jhb@FreeBSD.org>
7988
7989 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
7990 amd64bsd_store_inferior_registers): Use ptid from regcache.
7991
6f77053d
PA
79922017-04-04 Pedro Alves <palves@redhat.com>
7993
7994 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
7995 data fields, make them private and add "m_" prefixes.
7996 (lnp_state_machine::lnp_state_machine): New ctor.
7997 (record_line, check_line_address, handle_set_discriminator)
7998 (handle_set_address, handle_advance_pc, handle_special_opcode)
7999 (handle_advance_line, handle_set_file, handle_negate_stmt)
8000 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8001 (end_sequence, advance_line): New methods.
8002 (m_gdbarch, m_record_lines_p): New fields.
8003 (lnp_reader_state): Delete.
8004 (dwarf_record_line): Rename to ...
8005 (lnp_state_machine::record_line): ... adjust.
8006 (init_lnp_state_machine): Delete.
8007 (lnp_state_machine::lnp_state_machine): New.
8008 (check_line_address): Rename to ...
8009 (lnp_state_machine::check_line_address): This.
8010 (dwarf_decode_lines_1): Remove reference to "reader_state".
8011 Adjust lnp_state_machine having a non-default ctor. Use bool.
8012 State machine internal state manipulation moved to
8013 lnp_state_machine methods.
8014
9c541725
PA
80152017-04-04 Pedro Alves <palves@redhat.com>
8016
8017 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8018 unittests/offset-type-selftests.c.
8019 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8020 * common/offset-type.h: New file.
8021 * common/preprocessor.h: New file.
8022 * common/traits.h: New file.
8023 * common/valid-expr.h: New file.
8024 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8025 sect_offset and cu_offset strong typedefs throughout.
8026 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8027 typedefs throughout.
8028 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8029 sect_offset and cu_offset strong typedefs throughout.
8030 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8031 typedefs throughout.
8032 * gdbtypes.h: Include "common/offset-type.h".
8033 (cu_offset): Now an offset type (strong typedef) instead of a
8034 struct.
8035 (sect_offset): Likewise.
8036 (union call_site_parameter_u): Rename "param_offset" field to
8037 "param_cu_off".
8038 * unittests/offset-type-selftests.c: New file.
8039
ecfb656c
PA
80402017-04-04 Pedro Alves <palves@redhat.com>
8041
8042 * common/underlying.h: New file.
8043 * dwarf2read.c: Include "common/gdb_optional.h" and
8044 "common/underlying.h".
8045 (dir_index, file_name_index): New types.
8046 (file_entry): Use them.
8047 (file_entry::include): Use to_underlying.
8048 (line_header::add_file_name): Use dir_index.
8049 (read_formatted_entries): Use gdb::optional. Read form before
8050 writting to file_entry.
8051 (dwarf_decode_line_header): Use dir_index.
8052 (lnp_state_machine::current_file): Use to_underlying.
8053 (lnp_state_machine::file): Change type to file_name_index.
8054 (dwarf_record_line): Use to_underlying.
8055 (init_lnp_state_machine): Use file_name_index.
8056 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8057
d194f1fe
PA
80582017-04-04 Pedro Alves <palves@redhat.com>
8059
8060 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8061 operator bool, has_value and get methods.
8062
fff8551c
PA
80632017-04-04 Pedro Alves <palves@redhat.com>
8064
8065 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8066 fields.
8067 (line_header): Initialize all data fields. Change type of
8068 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8069 Change type of include_dirs to std::vector<const char *>. Remove
8070 num_include_dirs, include_dirs_size. Change type of file_names to
8071 std::vector<file_entry>. Remove num_file_names, file_names_size.
8072 (line_header::line_header): New.
8073 (line_header::add_include_dir, line_header::add_file_name): New
8074 methods.
8075 (line_header::include_dir_at): Remove NULL check.
8076 (line_header::file_name_at): Add const overload.
8077 (line_header_up): New unique_ptr typedef.
8078 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8079 std::vector. Remove free_line_header call.
8080 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8081 free_line_header call.
8082 (free_cu_line_header): Delete.
8083 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8084 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8085 Adjust to use std::vector.
8086 (free_line_header): Delete.
8087 (free_line_header_voidp): Use delete.
8088 (add_include_dir): Replace with ...
8089 (line_header::add_include_dir): ... this method. Use std::vector.
8090 (add_file_name): Replace with ...
8091 (line_header::add_file_name): ... this method. Use std::vector.
8092 (add_include_dir_stub): Delete.
8093 (read_formatted_entries): Remove memset.
8094 (dwarf_decode_line_header): Return a line_header_up instead of a
8095 raw pointer. Remove cleanup handling. Pass lambdas to
8096 read_formatted_entries. Adjust to use line_header methods.
8097 (dwarf_decode_lines_1): Adjust to use line_header methods.
8098 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8099 use std::vector.
8100
d62a8ae2
SM
81012017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8102
8103 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8104 instead of struct ptid.
8105
db3a1dc7
AH
81062017-05-04 Alan Hayward <alan.hayward@arm.com>
8107
8108 * frame.c (get_frame_register_bytes): Unwind using value.
8109 (put_frame_register_bytes): Likewise.
8110
b1b45502
IB
81112017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8112
8113 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8114 aggregate-like.
8115
ec13808e
JK
81162017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8117
8118 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8119
12316564
YQ
81202017-03-29 Yao Qi <yao.qi@linaro.org>
8121
8122 * gdbthread.h (struct thread_info): Declare constructor and
8123 destructor. Add some in-class member initializers.
8124 * thread.c (free_thread): Remove.
8125 (init_thread_list): Call delete instead of free_thread.
8126 (new_thread): Call thread_info constructor.
8127 (thread_info::thread_info): New function.
8128 (thread_info::~thread_info): New function.
8129 (delete_thread_1): Call delete instead of free_thread.
8130 (make_cleanup_restore_current_thread): Move tp and frame to
8131 inner block.
8132
fe5f7374
AK
81332017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8134
8135 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8136 (arc_skip_prologue): Likewise.
8137 (arc_make_frame_cache): Likewise.
8138 (arc_pv_get_operand): New function.
8139 (arc_is_in_prologue): Likewise.
8140 (arc_analyze_prologue): Likewise.
8141 (arc_print_frame_cache): Likewise.
8142 (MAX_PROLOGUE_LENGTH): New constant.
8143
eea78757
AK
81442017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8145
8146 * configure.tgt: Add arc-insn.o.
8147 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8148 (dump_arc_instruction_command): New function.
8149 (arc_fprintf_disasm): Likewise.
8150 (arc_disassemble_info): Likewise.
8151 (arc_insn_get_operand_value): Likewise.
8152 (arc_insn_get_operand_value_signed): Likewise.
8153 (arc_insn_get_memory_base_reg): Likewise.
8154 (arc_insn_get_memory_offset): Likewise.
8155 (arc_insn_get_branch_target): Likewise.
8156 (arc_insn_dump): Likewise.
8157 (arc_insn_get_linear_next_pc): Likewise.
8158 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8159 (arc_disassemble_info): Likewise.
8160 (arc_insn_get_branch_target): Likewise.
8161 (arc_insn_get_linear_next_pc): Likewise.
8162 * NEWS: Mention new "maint print arc arc-instruction".
8163
3be78afd
AK
81642017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8165
8166 * arc-tdep (maintenance_print_arc_list): New variable.
8167 (maintenance_print_arc_command): New function.
8168
296ec4fa
AK
81692017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8170
8171 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8172 Add "limm" and "reserved".
8173 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8174 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8175 * arc-tdep.h (arc_regnum): Likewise.
8176
f74f865e
MF
81772017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8178
8179 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8180 for THREADPTR register.
8181 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8182 register.
8183 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8184 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8185 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8186
0d0bf81a
MF
81872017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8188
8189 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8190 registers above gdbarch_num_regs (gdbarch) as privileged in
8191 call0 ABI.
8192
0ce4291e
MF
81932017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8194
8195 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8196 for a single specified register or for all registers in
8197 a0_base..a0_base + C0_NREGS range.
8198 (supply_gregset_reg): Call regcache_raw_supply for a single
8199 specified register or for all registers in a0_base..a0_base +
8200 C0_NREGS range.
8201
c56054f9
MF
82022017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8203
8204 * arch/xtensa.h (C0_NREGS): Add definition.
8205 * xtensa-tdep.c (C0_NREGS): Remove definition.
8206
a4398628
MF
82072017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8208
8209 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8210 Drop xtensa_default_isa initialization.
8211 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8212
8c43009f
PA
82132017-03-27 Pedro Alves <palves@redhat.com>
8214
8215 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8216 (file_entry::include_dir): New method.
8217 (line_header::include_dir_at, line_header::file_name_at): New
8218 methods.
8219 (setup_type_unit_groups, setup_type_unit_groups)
8220 (psymtab_include_file_name): Simplify using the new methods.
8221 (lnp_state_machine) <the_line_header>: New field.
8222 <file>: Add comment.
8223 (lnp_state_machine::current_file): New method.
8224 (dwarf_record_line): Simplify using the new methods.
8225 (init_lnp_state_machine): Initialize the "the_line_header" field.
8226 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8227 Simplify using the new methods.
8228
a7e80b9e
PA
82292017-03-27 Pedro Alves <palves@redhat.com>
8230
8231 * cp-name-parser.y (make_empty): Delete.
8232 (demangler_special, nested_name, ptr_operator, array_indicator)
8233 (direct_declarator, declarator_1): Use fill_comp instead of
8234 make_empty.
8235
21047726
PA
82362017-03-27 Pedro Alves <palves@redhat.com>
8237
8238 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8239 to ATTRIBUTE_PRINTF.
8240 * solib-target.c (library_list_start_list): Print "string" not
8241 "version".
8242 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8243 gdb_xml_error call.
8244
d721ba37
PA
82452017-03-27 Pedro Alves <palves@redhat.com>
8246
8247 * dwarf2read.c (struct file_and_directory): New.
8248 (dwarf2_get_dwz_file): Adjust to use std::string.
8249 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8250 (find_file_and_directory): Adjust to return a file_and_directory
8251 object.
8252 (read_file_scope): Adjust to use file_and_directory. Remove
8253 make_cleanup/do_cleanups calls.
8254 (open_and_init_dwp_file): Adjust to use std::string. Remove
8255 make_cleanup/do_cleanups calls.
8256 * python/python.c (do_start_initialization): Adjust to ldirname
8257 returning a std::string.
8258 * utils.c (ldirname): Now returns a std::string.
8259 * utils.h (ldirname): Change return type to std::string.
8260 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8261 returning a std::string.
8262 * xml-tdesc.c (file_read_description_xml): Likewise.
8263
ed771251
AH
82642017-03-24 Alan Hayward <alan.hayward@arm.com>
8265
8266 * regcache.c (regcache_debug_print_register): New function.
8267 * regcache.h (regcache_debug_print_register): New declaration.
8268 * target.c (debug_print_register): Remove.
8269 (target_fetch_registers): Call regcache_debug_print_register.
8270 (target_store_registers): Likewise.
8271
568c1b9f
PB
82722017-03-24 Pádraig Brady <pbrady@fb.com>
8273
8274 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8275 reference beyond the 'lh->include_dirs' array before accessing to
8276 it.
8277 (psymtab_include_file_name): Likewise.
8278 (dwarf_decode_lines_1): Likewise.
8279 (dwarf_decode_lines): Likewise.
8280 (file_file_name): Likewise.
8281
3e00d44f
SM
82822017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8283
8284 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8285 inferior_ptid.
8286 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8287 ps_lsetfpregs): Likewise.
8288 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8289 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8290 ps_lsetfpregs): Likewise.
8291 * target.c (target_fetch_registers, target_store_registers):
8292 Remove asserts.
8293
077ae656
AH
82942017-03-23 Alan Hayward <alan.hayward@arm.com>
8295
8296 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8297
1e2b521d
YQ
82982017-03-23 Yao Qi <yao.qi@linaro.org>
8299
8300 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8301 (_initialize_aarch64_tdep): Register it.
8302 (aarch64_record_load_store): Handle PRFM instruction.
8303 (aarch64_process_record_test): New function.
8304
33877125
YQ
83052017-03-23 Yao Qi <yao.qi@linaro.org>
8306
8307 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8308 indentation.
8309
a0eef940
YQ
83102017-03-23 Yao Qi <yao.qi@linaro.org>
8311
8312 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8313
3f2a3564
PR
83142017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8315
8316 python/python.c (do_start_initialization): Fix memory leak.
8317
b67aeab0
SM
83182017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8319
8320 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8321 using get_ptrace_pid.
8322 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8323 inferior_ptid.
8324 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8325 inferior_ptid instead of pid.
8326
ffdbe864
YQ
83272017-03-22 Yao Qi <yao.qi@linaro.org>
8328
8329 * aarch64-tdep.c: Wrap locally used classes in anonymous
8330 namespace.
8331 * arm-tdep.c: Likewise.
8332 * linespec.c: Likewise.
8333 * ui-out.c: Likewise.
8334
9d736fbf
JG
83352017-03-22 Jonah Graham <jonah@kichwacoders.com>
8336
8337 PR gdb/19637
8338 * python/lib/gdb/printer/bound_registers.py: Import sys.
8339
3de88e9a
SM
83402017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8341
8342 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8343 windows_thread_info parameter and use it instead of
8344 current_thread.
8345 (windows_fetch_inferior_registers): Don't set current_thread,
8346 pass the thread to do_windows_fetch_inferior_registers. Use
8347 ptid from regcache instead of inferior_ptid.
8348 (do_windows_store_inferior_registers): Add windows_thread_info
8349 parameter and use it instead of current_thread.
8350 (windows_store_inferior_registers): Don't set current_thread,
8351 pass the thread to do_windows_store_inferior_registers. Use
8352 ptid from regcache instead of inferior_ptid.
8353
0e7b8f61
SM
83542017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8355
8356 * ser-mingw.c (ser_windows_raw): Remove reference to
8357 struct serial::current_timeout.
8358
5badf10a
IR
83592017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8360
8361 PR tdep/20928
8362 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8363 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8364 (sparc64_fsr_type): Fix %fsr decoding.
8365
cee59b3f
TW
83662017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8367
8368 * python/py-record-btrace.c (btpy_insn_data): Change return type
8369 for Python 2.
8370
639a9038
SM
83712017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8372
8373 * spu-linux-nat.c (spu_fetch_inferior_registers,
8374 spu_store_inferior_registers): Use ptid from regcache, set and
8375 restore inferior_ptid.
8376 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8377 Likewise.
8378
bcc0c096
SM
83792017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8380
8381 * i386-linux-nat.c (fetch_register, store_register,
8382 i386_linux_fetch_inferior_registers,
8383 i386_linux_store_inferior_registers): Use ptid from regcache.
8384 * ia64-linux-nat.c (ia64_linux_fetch_register,
8385 ia64_linux_store_register): Likewise.
8386 * inf-ptrace.c (inf_ptrace_fetch_register,
8387 inf_ptrace_store_register): Likewise.
8388 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8389 m32r_linux_store_inferior_registers): Likewise.
8390 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8391 m68kbsd_store_inferior_registers): Likewise.
8392 * m68k-linux-nat.c (fetch_register, store_register,
8393 m68k_linux_fetch_inferior_registers,
8394 m68k_linux_store_inferior_registers): Likewise.
8395 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8396 m88kbsd_store_inferior_registers): Likewise.
8397 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8398 mips_fbsd_store_inferior_registers): Likewise.
8399 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8400 mips64_linux_regsets_store_registers): Likewise.
8401 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8402 mipsnbsd_store_inferior_registers): Likewise.
8403 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8404 mips64obsd_store_inferior_registers): Likewise.
8405 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8406 Likewise.
8407 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8408 ppcfbsd_store_inferior_registers): Likewise.
8409 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8410 ppc_linux_store_inferior_registers): Likewise.
8411 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8412 ppcnbsd_store_inferior_registers): Likewise.
8413 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8414 ppcobsd_store_registers): Likewise.
8415 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8416 Likewise.
8417 * ravenscar-thread.c (ravenscar_fetch_registers,
8418 ravenscar_store_registers, ravenscar_prepare_to_store):
8419 Likewise.
8420 * record-btrace.c (record_btrace_fetch_registers,
8421 record_btrace_store_registers, record_btrace_prepare_to_store):
8422 Likewise.
8423 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8424 Lookup inferior using ptid from regcache, instead of
8425 current_inferior.
8426 * remote.c (remote_fetch_registers, remote_store_registers): Use
8427 ptid from regcache.
8428 * rs6000-nat.c (fetch_register, store_register): Likewise.
8429 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8430 s390_linux_store_inferior_registers): Likewise.
8431 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8432 shnbsd_store_inferior_registers): Likewise.
8433 * sol-thread.c (sol_thread_fetch_registers,
8434 sol_thread_store_registers): Likewise.
8435 * sparc-nat.c (sparc_fetch_inferior_registers,
8436 sparc_store_inferior_registers): Likewise.
8437 * tilegx-linux-nat.c (fetch_inferior_registers,
8438 store_inferior_registers): Likewise.
8439 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8440 vaxbsd_store_inferior_registers): Likewise.
8441 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8442 store_xtregs): Likewise.
8443
c0f55cc6
AV
84442017-03-20 Artemiy Volkov <artemiyv@acm.org>
8445
8446 PR gdb/14441
8447 * NEWS: Mention support for rvalue references in GDB and python.
8448 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8449 supports both lvalue and rvalue references.
8450
15c0a2a9
AV
84512017-03-20 Artemiy Volkov <artemiyv@acm.org>
8452
8453 PR gdb/14441
8454 * gdbtypes.c (rank_one_type): Implement overloading
8455 resolution rules regarding rvalue references.
8456
aa006118
AV
84572017-03-20 Artemiy Volkov <artemiyv@acm.org>
8458
8459 PR gdb/14441
8460 * aarch64-tdep.c (aarch64_type_align)
8461 (aarch64_extract_return_value, aarch64_store_return_value): Change
8462 lvalue reference type checks to general reference type checks.
8463 * amd64-tdep.c (amd64_classify): Likewise.
8464 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8465 Likewise.
8466 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8467 (arm_store_return_value): Likewise.
8468 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8469 * c-typeprint.c (c_print_type): Likewise.
8470 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8471 (cplus_number_of_children, cplus_describe_child): Likewise.
8472 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8473 * completer.c (expression_completer): Likewise.
8474 * cp-support.c (make_symbol_overload_list_adl_namespace):
8475 Likewise.
8476 * darwin-nat-info.c (info_mach_region_command): Likewise.
8477 * dwarf2loc.c (entry_data_value_coerce_ref)
8478 (value_of_dwarf_reg_entry): Likewise.
8479 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8480 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8481 Likewise.
8482 * findvar.c (extract_typed_address, store_typed_address):
8483 Likewise.
8484 * gdbtypes.c (rank_one_type): Likewise.
8485 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8486 * infcall.c (value_arg_coerce): Likewise.
8487 * language.c (pointer_type): Likewise.
8488 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8489 Likewise.
8490 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8491 * mn10300-tdep.c (mn10300_type_align): Likewise.
8492 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8493 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8494 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8495 Likewise.
8496 * printcmd.c (print_formatted, x_command): Likewise.
8497 * python/py-type.c (typy_get_composite, typy_template_argument):
8498 Likewise.
8499 * python/py-value.c (valpy_referenced_value)
8500 (valpy_get_dynamic_type, value_has_field): Likewise.
8501 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8502 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8503 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8504 * spu-tdep.c (spu_scalar_value_p): Likewise.
8505 * symtab.c (lookup_symbol_aux): Likewise.
8506 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8507 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8508 Likewise.
8509 * valops.c (value_cast_pointers, value_cast)
8510 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8511 (value_struct_elt, value_struct_elt_bitpos)
8512 (value_find_oload_method_list, find_overload_match)
8513 (value_rtti_indirect_type): Likewise.
8514 * valprint.c (val_print_scalar_type_p, generic_val_print):
8515 Likewise.
8516 * value.c (value_actual_type, value_as_address, unpack_long)
8517 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8518 (coerce_ref): Likewise.
8519 * varobj.c (varobj_get_value_type): Likewise.
8520
3fcf899d
AV
85212017-03-20 Artemiy Volkov <artemiyv@acm.org>
8522
8523 PR gdb/14441
8524 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
8525 table of constants.
8526 * python/lib/gdb/command/explore.py: Support exploring values
8527 of rvalue reference types.
8528 * python/lib/gdb/types.py: Implement get_basic_type() for
8529 rvalue reference types.
8530 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
8531 constant.
8532 * python/py-value.c (valpy_getitem): Add an rvalue reference
8533 check.
8534 (valpy_reference_value): Add new parameter "refcode".
8535 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
8536 New wrappers for valpy_reference_value().
8537 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8538 (gdbpy_invoke_xmethod): Likewise.
8539
4297a3f0
AV
85402017-03-20 Artemiy Volkov <artemiyv@acm.org>
8541
8542 PR gdb/14441
8543 * dwarf2read.c (process_die, read_type_die_1): Handle the
8544 DW_TAG_rvalue_reference_type DIE.
8545 (read_tag_reference_type): Add new parameter "refcode".
8546
e1cb3213
AV
85472017-03-20 Artemiy Volkov <artemiyv@acm.org>
8548
8549 PR gdb/14441
8550 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
8551 (c_type_print_modifier, c_type_print_varspec_suffix)
8552 (c_type_print_base): Support printing rvalue reference types.
8553 * c-valprint.c (c_val_print, c_value_print): Support printing
8554 rvalue reference values.
8555
e4347c89
AV
85562017-03-20 Artemiy Volkov <artemiyv@acm.org>
8557
8558 PR gdb/14441
8559 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
8560 typename.
8561 * cp-support.c (replace_typedefs): Handle
8562 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
8563 * python/py-type.c (typy_lookup_type): Likewise.
8564
53cc15f5
AV
85652017-03-20 Artemiy Volkov <artemiyv@acm.org>
8566
8567 PR gdb/14441
8568 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
8569 * parse.c (insert_type): Change assert statement.
8570 (follow_types): Handle rvalue reference types.
8571 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
8572 constant.
8573
a65cfae5
AV
85742017-03-20 Artemiy Volkov <artemiyv@acm.org>
8575
8576 PR gdb/14441
8577 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
8578 value_ref() interface.
8579 * c-valprint.c (c_value_print): Likewise.
8580 * infcall.c (value_arg_coerce): Likewise.
8581 * python/py-value.c (valpy_reference_value): Likewise.
8582 * valops.c (value_cast, value_reinterpret_cast)
8583 (value_dynamic_cast, typecmp): Likewise.
8584 (value_ref): Parameterize by kind of return value reference type.
8585 * value.h (value_ref): Add new parameter "refcode".
8586
3b224330
AV
85872017-03-20 Artemiy Volkov <artemiyv@acm.org>
8588
8589 PR gdb/14441
8590 * dwarf2read.c (read_tag_reference_type): Use
8591 lookup_lvalue_reference_type() instead of lookup_reference_type().
8592 * eval.c (evaluate_subexp_standard): Likewise.
8593 * f-exp.y: Likewise.
8594 * gdbtypes.c (make_reference_type, lookup_reference_type):
8595 Generalize with rvalue reference types.
8596 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
8597 convenience wrappers for lookup_reference_type().
8598 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
8599 reference kind parameter.
8600 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
8601 wrappers for lookup_reference_type().
8602 * guile/scm-type.c (gdbscm_type_reference): Use
8603 lookup_lvalue_reference_type() instead of lookup_reference_type().
8604 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
8605 * parse.c (follow_types): Likewise.
8606 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
8607 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
8608 Likewise.
8609 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8610 (gdbpy_invoke_xmethod): Likewise.
8611 * stabsread.c: Provide extra argument to make_reference_type()
8612 call.
8613 * valops.c (value_ref, value_rtti_indirect_type): Use
8614 lookup_lvalue_reference_type() instead of lookup_reference_type().
8615
f9aeb8d4
AV
86162017-03-20 Artemiy Volkov <artemiyv@acm.org>
8617
8618 PR gdb/14441
8619 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
8620 (TYPE_IS_REFERENCE): New macro.
8621 (struct type): Add rvalue_reference_type field.
8622 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
8623
51457a05
MAL
86242017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8625
8626 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
8627 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
8628 New function definition.
8629 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
8630 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
8631 New function declaration.
8632 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
8633 * mi/mi-interp.h: New file.
8634 * solib.c (info_sharedlibrary_command): Replace for loop with
8635 ALL_SO_LIBS macro
8636 * solib.h (update_solib_list): New function declaration.
8637 (so_list_head): Move macro.
8638 * solist.h (ALL_SO_LIBS): New macro.
8639
e696b3ad
MAL
86402017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8641
8642 * infcmd.c (post_create_inferior): Remove unused argument in
8643 call to solib_add.
8644 * remote.c (remote_start_remote): Likewise.
8645 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
8646 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
8647 (enable_break): Likewise.
8648 * solib.c (update_solib_list): Remove unused target argument
8649 and its documentation.
8650 (solib_add): Remove unused target argument. Remove unused
8651 argument in call to update_solib_list.
8652 (info_sharedlibrary_command): Remove unused argument in call
8653 to update_solib_list.
8654 (sharedlibrary_command): Remove unused argument in call to
8655 solib_add.
8656 (handle_solib_event): Likewise.
8657 (reload_shared_libraries): Likewise.
8658 * solib.h (solib_add): Remove unused target argument.
8659
dcb84eda
AA
86602017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
8661
8662 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
8663 (s390_displaced_step_fixup): Cover relative branches with the
8664 default fixup handling. This fixes lack of support for some
8665 relative branch instructions.
8666
d9cb6cdc
SM
86672017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8668
8669 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
8670 ptid from regcache.
8671
1afaf9f4
SM
86722017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8673
8674 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
8675 i386_darwin_store_inferior_registers): Use ptid from regcache.
8676
aac12e24
SM
86772017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8678
8679 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
8680 i386bsd_store_inferior_registers): Use ptid from regcache.
8681
bbe1eef1
SM
86822017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8683
8684 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
8685 hppaobsd_store_registers): Use ptid from regcache.
8686
10799020
SM
86872017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8688
8689 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
8690 hppanbsd_store_registers): Use ptid from regcache.
8691
00204cf7
SM
86922017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8693
8694 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
8695 from regcache. Use get_ptrace_pid.
8696
11a33714
SM
86972017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8698
8699 * corelow.c (get_core_register_section): Use ptid from regcache,
8700 update doc.
8701
317cd492
SM
87022017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8703
8704 * bsd-uthread.c (bsd_uthread_fetch_registers,
8705 bsd_uthread_store_registers): Use ptid from regcache, set and
8706 restore inferior_ptid.
8707
9ac8a7c2
SM
87082017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8709
8710 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
8711 fetch_fp_regs, store_register, store_regs, store_fp_register,
8712 store_fp_regs): Use ptid from regcache.
8713
4ac4bb6a
SM
87142017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8715
8716 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
8717 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
8718 store_vfp_regs): Use ptid from regcache.
8719
9bcbdca8
PA
87202017-03-17 Pedro Alves <palves@redhat.com>
8721
8722 PR remote/21188
8723 * ser-base.c (ser_base_wait_for): Add comment.
8724 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
8725 version.
8726 * ser-unix.c (hardwire_raw): Remove reference to
8727 scb->current_timeout.
8728 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
8729 (hardwire_ops): Install ser_base_readchar instead of
8730 hardwire_readchar.
8731 * serial.h (struct serial) <current_timeout, timeout_remaining>:
8732 Remove fields.
8733
7503099f
JG
87342017-03-17 Jonah Graham <jonah@kichwacoders.com>
8735
8736 PR gdb/19637
8737 * python/lib/gdb/printer/bound_registers.py: Add support for
8738 Python 3.
8739
7942e96e
AA
87402017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8741
8742 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
8743 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
8744 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
8745 byte_offset to subobj_byte_offset. Fix the handling of
8746 DWARF_VALUE_STACK on big-endian targets when coming via an
8747 implicit pointer.
8748 (dwarf2_evaluate_loc_desc): Adjust call to
8749 dwarf2_evaluate_loc_desc_full.
8750 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
8751 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
8752
ba14f379
YQ
87532017-03-16 Yao Qi <yao.qi@linaro.org>
8754
8755 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
8756 and REVSH instructions.
8757
b121eeb9
YQ
87582017-03-16 Yao Qi <yao.qi@linaro.org>
8759
8760 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
8761 (arm_record_test): Declare.
8762 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
8763 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
8764 align with the manual.
8765 (thumb_record_misc): Adjust the code order to align with the
8766 manual.
8767 (thumb2_record_decode_insn_handler): Fix instruction matching.
8768 (instruction_reader_thumb): New class.
8769 (arm_record_test): New function.
8770
728a7913
YQ
87712017-03-16 Yao Qi <yao.qi@linaro.org>
8772
8773 * arm-tdep.c (abstract_memory_reader): New class.
8774 (instruction_reader): New class.
8775 (extract_arm_insn): Add argument 'reader'. Callers updated.
8776 (decode_insn): Likewise.
8777
34b43320
DE
87782017-03-16 Doug Evans <dje@google.com>
8779
a7c0469f
DE
8780 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
8781 member. Change type of TYPE member to SCM. All uses updated.
8782 (lsscm_make_lazy_string_smob): Add assert.
8783 (lsscm_make_lazy_string): Flag bad length values.
8784 (lsscm_elt_type): New function.
8785 (gdbscm_lazy_string_to_value): Rewrite to use
8786 lsscm_safe_lazy_string_to_value.
8787 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
8788 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
8789 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
8790 in incoming type.
8791 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
8792 * guile/scm-type.c (tyscm_scm_to_type): New function.
8793
87942017-03-15 Doug Evans <dje@google.com>
8795
34b43320
DE
8796 PR python/17728, python/18439, python/18779
8797 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
8798 member. Change type of TYPE member to PyObject *. All uses updated.
8799 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
8800 (gdbpy_create_lazy_string_object): Flag bad length values.
8801 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
8802 Handle typedefs in incoming type.
8803 (stpy_lazy_string_elt_type): New function.
8804 (gdbpy_extract_lazy_string): Call it.
8805 * python/py-value.c (valpy_lazy_string): Flag bad length values.
8806 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
8807 typedefs in incoming type.
8808
a3a5fecc
DE
88092017-03-16 Doug Evans <dje@google.com>
8810
8811 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
8812 * guile/scm-type.c (tyscm_scm_to_type): New function.
8813
28f1c605
JW
88142017-03-16 Jiong Wang <jiong.wang@arm.com>
8815
8816 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
8817 "ULONGEST" for "skip".
8818
87c336f6
AA
88192017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
8820
8821 PR gdb/21220
8822 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
8823 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
8824 (inf_ptrace_peek_poke): ...here. New function. Now also loop
8825 over ptrace peek/poke until end of buffer or error.
8826
cf81cf60
SM
88272017-03-14 Simon Marchi <simon.marchi@ericsson.com>
8828
8829 * parse.c (length_of_subexp): Make static.
8830 * parser-defs.h (length_of_subexp): Remove.
8831
a379284a
AA
88322017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
8833
8834 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
8835 as well.
8836
8a6200ba
PA
88372017-03-14 Pedro Alves <palves@redhat.com>
8838
8839 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
8840 (main): Use std::unique_ptr. Remove calls to
8841 cp_demangled_name_parse_free.
8842
f79ec206
SM
88432017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8844
8845 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
8846 alphabsd_store_inferior_registers): Use regcache->ptid instead
8847 of inferior_ptid.
8848
edb5fb00
SM
88492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8850
8851 * aix-thread.c (aix_thread_fetch_registers,
8852 aix_thread_store_registers): Use regcache->ptid instead of
8853 inferior_ptid.
8854
55119686
SM
88552017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8856
8857 * aarch64-linux-nat.c (fetch_gregs_from_thread,
8858 store_gregs_to_thread, fetch_fpregs_from_thread,
8859 store_fpregs_to_thread): Use regcache->ptid instead of
8860 inferior_ptid.
8861
6a06fbb7
SM
88622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8863
8864 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
8865 amd64_linux_fetch_inferior_registers): Use regcache->ptid
8866 instead of inferior_ptid.
8867
c6386875
SM
88682017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8869
8870 * target.c (target_fetch_registers, target_store_registers): Add
8871 assert.
8872
ddaaf0fb
SM
88732017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8874
8875 * regcache.h (regcache_get_ptid): New function.
8876 * regcache.c (regcache_get_ptid): New function.
8877
b9da89d1 88782017-03-13 Mark Wielaard <mark@klomp.org>
8879
8880 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
8881
5f4d1085
KS
88822017-03-10 Keith Seitz <keiths@redhat.com>
8883
8884 PR c++/8218
8885 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
8886
c65d6b55
PA
88872017-03-08 Pedro Alves <palves@redhat.com>
8888
8889 PR gdb/18360
8890 * infrun.c (start_step_over, do_target_resume, resume)
8891 (restart_threads): Assert we're not resuming a thread that is
8892 meant to be stopped.
8893 (infrun_thread_stop_requested_callback): Delete.
8894 (infrun_thread_stop_requested): If the thread is internally
8895 stopped, queue a pending stop event and clear the thread's
8896 inline-frame state.
8897 (handle_stop_requested): New function.
8898 (handle_syscall_event, handle_inferior_event_1): Use
8899 handle_stop_requested.
8900 (handle_stop_requested): New function.
8901 (handle_signal_stop): Set the thread's stop_signal here instead of
8902 at caller.
8903 (finish_step_over): Clear step over info unconditionally.
8904 (handle_signal_stop): If the user had interrupted the event
8905 thread, consider the stop a random signal.
8906 (handle_signal_stop) <signal arrived while stepping over
8907 breakpoint>: Don't restart threads here.
8908 (stop_waiting): Don't clear step-over info here.
8909
15c22686
PA
89102017-03-08 Pedro Alves <palves@redhat.com>
8911
8912 PR 21206
8913 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
8914 goes to argument 2, not 1.
8915
6e5d74e7
PA
89162017-03-08 Pedro Alves <palves@redhat.com>
8917
8918 PR cli/21218
8919 * top.c (gdb_readline_wrapper): Avoid passing NULL to
8920 display_gdb_prompt.
8921 (command_line_input): Add comment.
8922
9753a2f6
PA
89232017-03-08 Pedro Alves <palves@redhat.com>
8924
8925 PR tui/21216
8926 * tui/tui-file.c (tui_file::write): New.
8927 * tui/tui-file.h (tui_file): Override "write".
8928 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
8929 factored out from ...
8930 (tui_puts): ... here.
8931 (tui_putc): Use them.
8932 (tui_write): New function.
8933 * tui/tui-io.h (tui_write): Declare.
8934
1672e0d9
SDJ
89352017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8936
8937 * Makefile.in (SFILES): Replace "environ.c" with
8938 "common/environ.c".
8939 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
8940 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
8941 to...
8942 * common/environ.c: ... here.
8943 * environ.h: Moved to...
8944 * common/environ.h: ... here.
8945
f7bb4e3a
PB
89462017-03-07 Peter Bergner <bergner@vnet.ibm.com>
8947
8948 * gdbarch.sh (pstring_ptr): New static function.
8949 (gdbarch_disassembler_options): Use it.
8950 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
8951 not valid_disassembler_option->name.
8952 * gdbarch.c: Regenerate.
8953
e45ced6c
PB
89542017-03-07 Peter Bergner <bergner@vnet.ibm.com>
8955
8956 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
8957
5f6fd321
PA
89582017-03-07 Pedro Alves <palves@redhat.com>
8959
8960 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
8961
6dbb839a 89622017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
8963
8964 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
8965 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
8966 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 8967 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 8968
d274ecf4
SM
89692017-03-06 Simon Marchi <simon.marchi@ericsson.com>
8970
8971 * xtensa-linux-nat.c (fetch_gregs): Remove const.
8972
df97be55
SM
89732017-03-03 Simon Marchi <simon.marchi@ericsson.com>
8974
8975 * remote.c (remote_add_target_side_commands): Use range-based
8976 for loop.
8977
7d45f3df
YQ
89782017-03-03 Yao Qi <yao.qi@linaro.org>
8979
8980 PR gdb/21165
8981 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
8982 value is lazy.
8983 * valprint.c (common_val_print): Likewise.
8984
65b48a81
PB
89852017-02-28 Peter Bergner <bergner@vnet.ibm.com>
8986
8987 * NEWS: Mention new set/show disassembler-options commands.
8988 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
8989 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
8990 (prospective_options): New static variable.
8991 (gdb_disassembler::gdb_disassembler): Initialize
8992 m_di.disassembler_options.
8993 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
8994 (get_disassembler_options): New function.
8995 (set_disassembler_options): Likewise.
8996 (set_disassembler_options_sfunc): Likewise.
8997 (show_disassembler_options_sfunc): Likewise.
8998 (disassembler_options_completer): Likewise.
8999 (_initialize_disasm): Likewise.
9000 * disasm.h (get_disassembler_options): New prototype.
9001 (set_disassembler_options): Likewise.
9002 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9003 (gdbarch_verify_disassembler_options): Likewise.
9004 * gdbarch.c: Regenerate.
9005 * gdbarch.h: Likewise.
9006 * arm-tdep.c (num_disassembly_options): Delete.
9007 (set_disassembly_style): Likewise.
9008 (arm_disassembler_options): New static variable.
9009 (set_disassembly_style_sfunc): Convert short style name into long
9010 option name. Call set_disassembler_options.
9011 (show_disassembly_style_sfunc): New function.
9012 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9013 set_gdbarch_verify_disassembler_options.
9014 (_initialize_arm_tdep): Delete regnames variable and update callers.
9015 (arm_disassembler_options): Initialize.
9016 (disasm_options): New variable.
9017 (num_disassembly_options): Rename from this...
9018 (num_disassembly_styles): ...to this. Compute by scanning through
9019 disasm_options.
9020 (valid_disassembly_styles): Initialize using disasm_options.
9021 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9022 set_arm_regname_option.
9023 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9024 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9025 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9026 set_gdbarch_verify_disassembler_options.
9027 * s390-tdep.c (s390_disassembler_options): New static variable.
9028 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9029 set_gdbarch_verify_disassembler_options.
9030
d538e36d
SM
90312017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9032
9033 * remote.c (remote_add_target_side_condition): Remove "struct"
9034 keyword from range-based for loop.
9035
83621223
SM
90362017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9037
9038 * remote.c (remote_add_target_side_condition): Use range-based
9039 for loop. Update comment.
9040
2123df0e
YQ
90412017-02-27 Yao Qi <yao.qi@linaro.org>
9042
9043 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9044
8e368124
AH
90452017-02-26 Alan Hayward <alan.hayward@arm.com>
9046
9047 * regcache.c (regcache_raw_update): New function.
9048 (regcache_raw_read): Move code to regcache_raw_update.
9049 * regcache.h (regcache_raw_update): New declaration.
9050 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9051
a49dd8dd
JK
90522017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9053
9054 * dwarf2read.c (create_debug_type_hash_table): Initialize
9055 header.signature and header.type_offset_in_tu.
9056
34e4bae9
PA
90572017-02-24 Pedro Alves <palves@redhat.com>
9058
9059 * symtab.c (make_file_symbol_completion_list_1): Use
9060 add_symtab_completions.
9061
b0e4b369
AH
90622017-02-24 Alan Hayward <alan.hayward@arm.com>
9063
9064 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9065
975c21ab
AH
90662017-02-24 Alan Hayward <alan.hayward@arm.com>
9067
9068 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9069 I386_MAX_REGISTER_SIZE.
9070 (i386_pseudo_register_write): Likewise.
9071 (i386_process_record): Likewise.
9072 * i387-tdep.c (i387_supply_xsave): Likewise.
9073 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9074 (store_register): Likewise.
9075
14bc53a8
PA
90762017-02-23 Pedro Alves <palves@redhat.com>
9077
9078 * ada-lang.c: Include "common/function-view.h".
9079 (ada_iterate_over_symbols): Adjust to use function_view as
9080 callback type.
9081 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9082 (ada_make_symbol_completion_list): Use a lambda.
9083 (ada_exc_search_name_matches): Delete.
9084 (name_matches_regex): New.
9085 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9086 * compile/compile-c-support.c: Include "common/function-view.h".
9087 (print_one_macro): Change prototype to accept a ui_file pointer.
9088 (write_macro_definitions): Use a lambda.
9089 * dwarf2read.c: Include "common/function-view.h".
9090 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9091 (dw2_expand_symtabs_matching): Adjust to use function_view as
9092 callback type.
9093 * language.h: Include "common/function-view.h".
9094 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9095 function_view as callback type.
9096 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9097 * linespec.c: Include "common/function-view.h".
9098 (collect_info::add_symbol): New method.
9099 (struct symbol_and_data_callback, iterate_inline_only, struct
9100 symbol_matcher_data, iterate_name_matcher): Delete.
9101 (iterate_over_all_matching_symtabs): Adjust to use function_view
9102 as callback type and lambdas.
9103 (iterate_over_file_blocks): Adjust to use function_view as
9104 callback type.
9105 (decode_compound_collector): Now a class with private fields.
9106 (decode_compound_collector::release_symbols): New method.
9107 (collect_one_symbol): Rename to...
9108 (decode_compound_collector::operator()): ... this and adjust.
9109 (lookup_prefix_sym): decode_compound_collector construction bits
9110 move to decode_compound_collector ctor. Pass the
9111 decode_compound_collector object directly as callback. Remove
9112 cleanups and use decode_compound_collector::release_symbols
9113 instead.
9114 (symtab_collector): Now a class with private fields.
9115 (symtab_collector::release_symtabs): New method.
9116 (add_symtabs_to_list): Rename to...
9117 (symtab_collector::operator()): ... this and adjust.
9118 (collect_symtabs_from_filename): symtab_collector construction
9119 bits move to symtab_collector ctor. Pass the symtab_collector
9120 object directly as callback. Remove cleanups and use
9121 symtab_collector::release_symtabs instead.
9122 (collect_symbols): Delete.
9123 (add_matching_symbols_to_info): Use lambdas.
9124 * macrocmd.c (print_macro_callback): Delete.
9125 (info_macro_command): Use a lambda.
9126 (info_macros_command): Pass print_macro_definition as callable
9127 directly.
9128 (print_one_macro): Remove 'ignore' parameter.
9129 (macro_list_command): Adjust.
9130 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9131 (macro_for_each_data::user_data): Delete field.
9132 (foreach_macro): Adjust to call the function_view.
9133 (macro_for_each): Adjust to use function_view as callback type.
9134 (foreach_macro_in_scope): Adjust to call the function_view.
9135 (macro_for_each_in_scope): Adjust to use function_view as callback
9136 type.
9137 * macrotab.h: Include "common/function-view.h".
9138 (macro_callback_fn): Declare a prototype instead of a pointer.
9139 Remove "user_data" parameter.
9140 (macro_for_each, macro_for_each_in_scope): Adjust to use
9141 function_view as callback type.
9142 * psymtab.c (partial_map_expand_apply)
9143 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9144 Adjust to use function_view as callback type and to return bool.
9145 (psym_expand_symtabs_matching): Adjust to use function_view as
9146 callback types.
9147 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9148 to use function_view as callback type and to return bool.
9149 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9150 callback types.
9151 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9152 as callback types.
9153 * symfile.h: Include "common/function-view.h".
9154 (expand_symtabs_file_matcher_ftype)
9155 (expand_symtabs_symbol_matcher_ftype)
9156 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9157 return bool.
9158 (quick_symbol_functions::map_symtabs_matching_filename)
9159 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9160 function_view as callback type and return bool.
9161 (expand_symtabs_matching): Adjust to use function_view as callback
9162 type.
9163 (maintenance_expand_name_matcher)
9164 (maintenance_expand_file_matcher): Delete.
9165 (maintenance_expand_symtabs): Use lambdas.
9166 * symtab.c (iterate_over_some_symtabs): Adjust to use
9167 function_view as callback types and return bool.
9168 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9169 of a cleanup.
9170 (lookup_symtab_callback): Delete.
9171 (lookup_symtab): Use a lambda.
9172 (iterate_over_symbols): Adjust to use function_view as callback
9173 type.
9174 (struct search_symbols_data, search_symbols_file_matches)
9175 (search_symbols_name_matches): Delete.
9176 (search_symbols): Use a pair of lambdas.
9177 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9178 (symtab_expansion_callback): Delete.
9179 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9180 * symtab.h: Include "common/function-view.h".
9181 (iterate_over_some_symtabs): Adjust to use function_view as
9182 callback type and return bool.
9183 (iterate_over_symtabs): Adjust to use function_view as callback
9184 type.
9185 (symbol_found_callback_ftype): Remove 'data' parameter and return
9186 bool.
9187 (iterate_over_symbols): Adjust to use function_view as callback
9188 type.
9189
07e253aa
PA
91902017-02-23 Pedro Alves <palves@redhat.com>
9191
9192 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9193 (%.o) <unittests/%.c>: New pattern.
9194 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9195 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9196 * common/function-view.h: New file.
9197 * unittests/function-view-selftests.c: New file.
9198 * configure: Regenerate.
9199
8eaf5320
SM
92002017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9201
9202 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9203 inferior_ptid.
9204 * go32-nat.c (go32_thread_alive): Likewise.
9205
38768751
YQ
92062017-02-23 Yao Qi <yao.qi@linaro.org>
9207
9208 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9209 delete.
9210
0a8beaba
YQ
92112017-02-23 Yao Qi <yao.qi@linaro.org>
9212
9213 * varobj.c (varobj_clear_saved_item): Use delete instead of
9214 xfree.
9215 (update_dynamic_varobj_children): Likewise.
9216
58fdfd2c
JK
92172017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9218
9219 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9220
1b90b139
SM
92212017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9222
9223 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9224 m_enum_value to 0 in default constructor.
9225
2039d74e
EBM
92262017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9227
9228 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9229 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9230 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9231 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9232 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9233 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9234 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9235 IS_STORE_CONDITIONAL_INSN.
9236
7814882a
JK
92372017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9240
0ae60b63
JK
92412017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9242
9243 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9244
0224619f
JK
92452017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9246
9247 * dwarf2read.c (skip_one_die, read_attribute_value)
9248 (dwarf2_const_value_attr, dump_die_shallow)
9249 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9250 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9251
0af92d60
JK
92522017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9253
9254 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9255 (dwarf_parse_macro_header): Accept DWARF version 5.
9256 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9257
216f72a1
JK
92582017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9259
9260 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9261 DW_AT_GNU_*.
9262 * common/common-exceptions.h (enum errors): Likewise.
9263 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9264 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9265 (dwarf_expr_context::execute_stack_op): Likewise.
9266 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9267 Likewise.
9268 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9269 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9270 (show_entry_values_debug, call_site_to_target_addr)
9271 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9272 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9273 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9274 (value_of_dwarf_block_entry, indirect_pieced_value)
9275 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9276 (disassemble_dwarf_expression): Likewise.
9277 * dwarf2read.c (process_die, inherit_abstract_dies)
9278 (read_call_site_scope): Likewise.
9279 * gdbtypes.h (struct func_type, struct call_site_parameter)
9280 (struct call_site): Likewise.
9281 * stack.c (read_frame_arg): Likewise.
9282 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9283
43988095
JK
92842017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9285
9286 * defs.h (read_unsigned_leb128): New declaration.
9287 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9288 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9289 (dwarf2_find_location_expression): Call also
9290 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9291 * dwarf2loc.h (dwarf2_version): New declaration.
9292 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9293 rnglists.
9294 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9295 .debug_rnglists.
9296 (struct dwop_section_names): Add loclists_dwo.
9297 (dwop_section_names): Add .debug_loclists.dwo.
9298 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9299 (struct dwarf2_per_cu_data): Add dwarf_version.
9300 (struct dwo_sections): Add loclists.
9301 (struct attr_abbrev): Add implicit_const.
9302 (read_indirect_line_string): New declaration.
9303 (read_unsigned_leb128): Delete declaration.
9304 (rcuh_kind): New definition.
9305 (read_and_check_comp_unit_head): Change parameter
9306 is_debug_types_section to section_kind.
9307 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9308 (read_comp_unit_head): Change parameter abfd to section, add parameter
9309 section_kind. Handle DWARF-5.
9310 (error_check_comp_unit_head): Accept also DWARF version 5.
9311 (read_and_check_comp_unit_head): Change parameter
9312 is_debug_types_section to section_kind.
9313 (read_and_check_type_unit_head): Delete function.
9314 (read_abbrev_offset): Handle DWARF-5.
9315 (create_debug_type_hash_table): Add parameter section_kind. Process
9316 only DW_UT_type. Use signature and type_offset_in_tu from struct
9317 comp_unit_head.
9318 (create_debug_types_hash_table): Update create_debug_type_hash_table
9319 caller.
9320 (create_all_type_units): Call create_debug_type_hash_table.
9321 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9322 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9323 caller.
9324 (skip_one_die): Handle DW_FORM_implicit_const.
9325 (dwarf2_rnglists_process): New function.
9326 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9327 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9328 (read_attribute_value): Handle DW_FORM_implicit_const,
9329 DW_FORM_line_strp.
9330 (read_attribute): Handle DW_FORM_implicit_const.
9331 (read_indirect_string_at_offset_from): New function from
9332 read_indirect_string_at_offset.
9333 (read_indirect_string_at_offset): Call
9334 read_indirect_string_at_offset_from.
9335 (read_indirect_line_string_at_offset): New function.
9336 (read_indirect_string): New function comment.
9337 (read_indirect_line_string): New function.
9338 (read_unsigned_leb128): Make it global.
9339 (dwarf2_string_attr): Handle DWARF-5.
9340 (add_include_dir_stub, read_formatted_entries): New functions.
9341 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9342 Handle DWARF-5.
9343 (per_cu_header_read_in): Update read_comp_unit_head caller.
9344 (dwarf2_version): New function.
9345 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9346 rnglists.
9347 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9348 fields.
9349
22d2f3ab
JK
93502017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9351
9352 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9353
5f46c5a5
JK
93542017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9355
9356 * dwarf2read.c (dwarf2_ranges_process): New function from
9357 dwarf2_ranges_read.
9358 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9359 dwarf2_ranges_process.
9360
78d4d2c5
JK
93612017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9362
9363 * dwarf2read.c (create_debug_type_hash_table): New function from
9364 create_debug_types_hash_table.
9365 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9366 (create_all_type_units, open_and_init_dwo_file): Update
9367 create_debug_types_hash_table callers.
9368
1b076f25
SDJ
93692017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9370
9371 PR gdb/16188
9372 * fork-child.c (trace_start_error): Fix thinko. va_end should
9373 refer to 'ap', not 'args'.
9374
0db8980c
SDJ
93752017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9376 Pedro Alves <palves@redhat.com>
9377
9378 PR gdb/16188
9379 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9380 calls succeeded.
9381 * fork-child.c (trace_start_error): New function.
9382 (trace_start_error_with_name): Likewise.
9383 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9384 * inf-ptrace.c (inf_ptrace_me): Likewise.
9385 * inferior.h (trace_start_error): New prototype.
9386 (trace_start_error_with_name): Likewise.
9387
99e8a4f9
SDJ
93882017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9389
9390 PR gdb/21164
9391 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9392 NULL before using it.
9393 * symmisc.c (maintenance_print_symbols): Likewise.
9394 (maintenance_print_msymbols): Likewise.
9395
4e746bb6
TW
93962017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9397
9398 * NEWS: Add record Python bindings entry.
9399
94002017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9401
9402 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9403 py-record-full.o.
9404 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9405 * python/py-record-btrace.c, python/py-record-btrace.h,
9406 python/py-record-full.c, python/py-record-full.h: New file.
9407 * python/py-record.c: Add include for py-record-btrace.h and
9408 py-record-full.h.
9409 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9410 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9411 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9412 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9413 New definition.
9414 (gdbpy_initialize_btrace): New export.
9415 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9416
94172017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9418
9419 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9420 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9421 * python/py-record.c: New file.
9422 * python/python-internal.h (gdbpy_start_recording,
9423 gdbpy_current_recording, gdpy_stop_recording,
9424 gdbpy_initialize_record): New export.
9425 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9426 (python_GdbMethods): Add gdbpy_start_recording,
9427 gdbpy_current_recording and gdbpy_stop_recording.
9428
94292017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9430
9431 * record-btrace.c (record_btrace_record_method): New function.
9432 (init_record_btrace_ops): Initialize to_record_method.
9433 * record-full.c (record_full_record_method): New function.
9434 (init_record_full_ops, init_record_full_core_ops): Add
9435 record_full_record_method.
9436 * record.h (enum record_method): New enum.
9437 * target-debug.h (target_debug_print_enum_record_method: New define.
9438 * target-delegates.c: Regenerate.
9439 * target.c (target_record_method): New function.
9440 * target.h: Include record.h.
9441 (struct target_ops) <to_record_method>: New field.
9442 (target_record_method): New export.
9443
94442017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9445
9446 * record.h (record_start, record_stop): New export.
9447 * record.c (record_start, record_stop): New function.
9448
94492017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9450
9451 * btrace.c (btrace_fetch): Copy function call segments pointer
9452 into a vector.
9453 (btrace_clear): Clear the vector.
9454 (btrace_find_insn_by_number): Use binary search to find the correct
9455 function call segment.
9456 * btrace.h (brace_fun_p): New typedef.
9457 (struct btrace_thread_info) <functions>: New field.
9458
94592017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9460
9461 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9462 * btrace.c (btrace_decode_error): ... here. New function.
9463 * btrace.h (btrace_decode_error): New export.
9464
94652017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9466
9467 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9468 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9469 btrace_find_insn_by_number): Remove special case for gaps.
9470 * btrace.h (btrace_insn_get_error): New export.
9471 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9472 * record-btrace.c (btrace_insn_history): Print number for gaps.
9473 (record_btrace_info, record_btrace_goto): Handle gaps.
9474
3f77c769
TT
94752017-02-14 Tom Tromey <tom@tromey.com>
9476
9477 PR python/13598:
9478 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9479 event.
9480 * python/py-evts.c (gdbpy_initialize_py_events): Add
9481 before_prompt registry.
9482 * python/py-events.h (events_object) <before_prompt>: New field.
9483
4c2c7ac6
MM
94842017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9485
9486 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9487
5cf30ebf
LM
94882017-02-13 Luis Machado <lgustavo@codesourcery.com>
9489
9490 * symfile (_initialize_symfile): Add usage text to the load command's
9491 help text.
9492
26a06916
SM
94932017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9494
9495 * utils.c (defaulted_query): Don't query on secondary UIs.
9496
0b145e37
TT
94972017-02-10 Tom Tromey <tom@tromey.com>
9498
9499 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9500
2d8365c4
TT
95012017-02-10 Tom Tromey <tom@tromey.com>
9502
9503 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9504 "cleanup" local.
9505 * python/py-type.c (typy_legacy_template_argument): Remove
9506 unnecessary "cleanup" local.
9507
2bb8f231
TT
95082017-02-10 Tom Tromey <tom@tromey.com>
9509
9510 * python/python.c (do_start_initialization): New function, from
9511 _initialize_python.
9512 (_initialize_python): Call do_start_initialization.
9513 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9514 goto.
9515
1bdfaf42
TT
95162017-02-10 Tom Tromey <tom@tromey.com>
9517
9518 * python/py-prettyprint.c (pretty_print_one_value): Use
9519 gdbpy_ref.
9520
88b6faea
TT
95212017-02-10 Tom Tromey <tom@tromey.com>
9522
9523 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
9524 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
9525 gdbpy_ref.
9526 * python/py-type.c (field_new): Use gdbpy_ref.
9527 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
9528 gdbpy_ref.
9529 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
9530 (py_free_pspace): Likewise.
9531 (pspace_to_pspace_object): Likewise.
9532 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
9533 (py_free_objfile): Likewise.
9534 (objfile_to_objfile_object): Likewise.
9535 * python/py-inferior.c (delete_thread_object): Use
9536 gdbpy_ref.
9537 (infpy_read_memory): Likewise.
9538 (py_free_inferior): Likewise.
9539 * python/py-evtregistry.c (create_eventregistry_object): Use
9540 gdbpy_ref.
9541 * python/py-event.c (create_event_object): Use gdbpy_ref.
9542
7780f186
TT
95432017-02-10 Tom Tromey <tom@tromey.com>
9544
9545 * python/py-ref.h (gdbpy_ref_policy): Now a template.
9546 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
9547 used.
9548 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
9549 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
9550 python/py-exitedevent.c, python/py-finishbreakpoint.c,
9551 python/py-framefilter.c, python/py-function.c,
9552 python/py-inferior.c, python/py-infevents.c,
9553 python/py-linetable.c, python/py-newobjfileevent.c,
9554 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
9555 python/py-signalevent.c, python/py-stopevent.c,
9556 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
9557 python/py-unwind.c, python/py-utils.c, python/py-value.c,
9558 python/py-varobj.c, python/py-xmethods.c, python/python.c,
9559 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
9560
d4b0bb18
TT
95612017-02-10 Tom Tromey <tom@tromey.com>
9562
9563 * ui-out.h (ui_out_emit_type): New class.
9564 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
9565 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
9566 and ui_out_emit_tuple.
9567 (enumerate_locals): Likewise.
9568 (py_mi_print_variables, py_print_locals, py_print_args): Use
9569 ui_out_emit_list.
9570 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
9571 ui_out_emit_list.
9572 * common/gdb_optional.h: New file.
9573
f67f945c
MG
95742017-02-10 Martin Galvan <martingalvan@sourceware.org>
9575
9576 * MAINTAINERS (Write After Approval): Update my e-mail address.
9577
18da0c51
MG
95782017-02-10 Martin Galvan <martingalvan@sourceware.org>
9579
9580 PR gdb/21122
9581 * breakpoint.c (_initialize_breakpoint): Update the help description
9582 of the 'commands' command to indicate that it takes a list argument.
9583
62c14536
SM
95842017-02-09 Simon Marchi <simon.marchi@ericsson.com>
9585
9586 * interps.c (current_interp_set_logging): Remove "return".
9587
ff6fa247
GB
95882017-02-09 Gary Benson <gbenson@redhat.com>
9589
9590 * symtab.c (add_symtab_completions): Prevent NULL pointer
9591 dereference.
9592
a474bd8e
PA
95932017-02-08 Pedro Alves <palves@redhat.com>
9594
9595 * interps.c (interp::interp): Remove reference to quiet_p.
9596 (interp_set): Make static. Remove dead "Switching to" output
9597 code.
9598 (interp_quiet_p, interp_set_quiet): Delete.
9599 (interpreter_exec_cmd): Don't set the interpreter quiet.
9600 * interps.h (interp_quiet_p): Make static.
9601 (class interp) <quiet_p>: Remove field
9602
3d7b173c
JG
96032017-02-08 Jerome Guitton <guitton@adacore.com>
9604
604c4576
JG
9605 * cli/cli-decode.c (find_command_name_length): Make it extern.
9606 * cli/cli-decode.h (find_command_name_length): Declare.
9607 * cli/cli-script.c (command_name_equals, line_first_arg):
9608 New functions.
9609 (process_next_line): Use cli-decode to parse command names.
9610 (build_command_line): Make args a constant pointer.
9611
96122017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 9613
3d7b173c
JG
9614 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
9615 Remove case-insensitive search.
9616
1291063d
JM
96172017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
9618
9619 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
9620 at the end of the line. Avoids an ARI warning.
9621
20b477a7
LM
96222017-02-06 Luis Machado <lgustavo@codesourcery.com>
9623
9624 * NEWS: Mention support for record/replay of Intel 64 rdrand and
9625 rdseed instructions.
9626 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
9627
3f7b46f2
IR
96282017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
9629
9630 PR tdep/20936
9631 Provide and use sparc32 and sparc64 target description XML files.
9632 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
9633 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
9634 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
9635 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
9636 * features/sparc/sparc32-solaris.xml: New file.
9637 * features/sparc/sparc64-solaris.xml: New file.
9638 * features/sparc/sparc32-solaris.c: Generated.
9639 * features/sparc/sparc64-solaris.c: Generated.
9640 * sparc-tdep.h: Account for differences in target descriptions.
9641 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
9642 (sparc32_register_type): Use target provided registers.
9643 (validate_tdesc_registers): New function.
9644 (sparc32_gdbarch_init): Use tdesc_has_registers.
9645 Set pseudoregister functions.
9646 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
9647 (sparc64_register_type): Use target provided registers.
9648 (sparc64_init_abi): Set pseudoregister functions.
9649
f0fd41c1
TT
96502017-02-03 Tom Tromey <tom@tromey.com>
9651
9652 PR rust/21097:
9653 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
9654 with a single member.
9655
d6f9b0fb
PA
96562017-02-03 Pedro Alves <palves@redhat.com>
9657
9658 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
9659 (cli_interp_base::~cli_interp_base): New.
9660 (cli_interp): New struct.
9661 (as_cli_interp): Cast the interp itself to cli_interp.
9662 (cli_interpreter_pre_command_loop): Rename to ...
9663 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
9664 parameter.
9665 (cli_interpreter_init): Rename to ...
9666 (cli_interp::init): ... this. Remove 'self' parameter. Use
9667 boolean. Make extern.
9668 (cli_interpreter_resume): Rename to ...
9669 (cli_interp::resume): ... this. Remove 'data' parameter. Make
9670 extern.
9671 (cli_interpreter_suspend): Rename to ...
9672 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
9673 extern.
9674 (cli_interpreter_exec): Rename to ...
9675 (cli_interp::exec): ... this. Remove 'data' parameter. Make
9676 extern.
9677 (cli_interpreter_supports_command_editing): Rename to ...
9678 (cli_interp_base::supports_command_editing): ... this. Remove
9679 'interp' parameter. Make extern.
9680 (cli_ui_out): Rename to ...
9681 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
9682 Make extern.
9683 (cli_set_logging): Rename to ...
9684 (cli_interp_base::set_logging): ... this. Remove 'interp'
9685 parameter. Make extern.
9686 (cli_interp_procs): Delete.
9687 (cli_interp_factory): Adjust to use "new".
9688 * cli/cli-interp.h: Include "interps.h".
9689 (struct cli_interp_base): New struct.
9690 * interps.c (struct interp): Delete. Fields moved to interps.h.
9691 (interp_new): Delete.
9692 (interp::interp, interp::~interp): New.
9693 (interp_set): Use bool, and return void. Assume the interpreter
9694 has suspend, init and resume methods, and that the all return
9695 void.
9696 (set_top_level_interpreter): interp_set returns void.
9697 (interp_ui_out): Adapt.
9698 (current_interp_set_logging): Adapt.
9699 (interp_data): Delete.
9700 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
9701 (interp_exec): Adapt.
9702 (top_level_interpreter_data): Delete.
9703 * interps.h (interp_init_ftype, interp_resume_ftype)
9704 (interp_suspend_ftype, interp_exec_ftype)
9705 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
9706 (class interp): New.
9707 (interp_new): Delete.
9708 (interp_set): Now returns void. Use bool.
9709 (interp_data, top_level_interpreter_data): Delete.
9710 * mi/mi-common.h: Include interps.h.
9711 (class mi_interp): Inherit from interp. Define a ctor. Declare
9712 init, resume, suspect, exec, interp_ui_out, set_logging and
9713 pre_command_loop methods.
9714 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
9715 (mi_interpreter_init): Rename to ...
9716 (mi_interp::init): ... this. Remove the 'interp' parameter, use
9717 bool, return void and make extern. Adjust.
9718 (mi_interpreter_resume): ... Rename to ...
9719 (mi_interp::resume): ... this. Remove the 'data' parameter,
9720 return void and make extern. Adjust.
9721 (mi_interpreter_suspend): ... Rename to ...
9722 (mi_interp::suspend): ... this. Remove the 'data' parameter,
9723 return void and make extern. Adjust.
9724 (mi_interpreter_exec): ... Rename to ...
9725 (mi_interp::exec): ... this. Remove the 'data' parameter and make
9726 extern. Adjust.
9727 (mi_interpreter_pre_command_loop): ... Rename to ...
9728 (mi_interp::pre_command_loop): ... this. Remove the 'self'
9729 parameter and make extern.
9730 (mi_on_normal_stop_1): Adjust.
9731 (mi_ui_out): Rename to ...
9732 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
9733 parameter and make extern. Adjust.
9734 (mi_set_logging): Rename to ...
9735 (mi_interp::set_logging): ... this. Remove the 'interp'
9736 parameter and make extern. Adjust.
9737 (mi_interp_procs): Delete.
9738 (mi_interp_factory): Adjust to use 'new'.
9739 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
9740 (mi_print_exception, mi_execute_command, mi_load_progress):
9741 Adjust.
9742 * tui/tui-interp.c (tui_interp): New class.
9743 (as_tui_interp): Return a tui_interp pointer.
9744 (tui_on_normal_stop, tui_on_signal_received)
9745 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
9746 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
9747 to use interp::interp_ui_out.
9748 (tui_init): Rename to ...
9749 (tui_interp::init): ... this. Remove the 'self' parameter, use
9750 bool, return void and make extern. Adjust.
9751 (tui_resume): Rename to ...
9752 (tui_interp::resume): ... this. Remove the 'data' parameter,
9753 return void and make extern. Adjust.
9754 (tui_suspend): Rename to ...
9755 (tui_interp::suspend): ... this. Remove the 'data' parameter,
9756 return void and make extern. Adjust.
9757 (tui_ui_out): Rename to ...
9758 (tui_interp::interp_ui_out): ... this. Remove the 'self'
9759 parameter, and make extern. Adjust.
9760 (tui_exec): Rename to ...
9761 (tui_interp::exec): ... this. Remove the 'data' parameter and
9762 make extern.
9763 (tui_interp_procs): Delete.
9764 (tui_interp_factory): Use "new".
9765
65c40c95
TT
97662017-02-02 Tom Tromey <tom@tromey.com>
9767
9768 * rust-exp.y (ends_raw_string, space_then_number)
9769 (rust_identifier_start_p): Return bool.
9770 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
9771 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
9772 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
9773 (rust_chartype_p): Return bool.
9774 (val_print_struct, rust_print_struct_def, rust_print_type):
9775 Update.
9776 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
9777 Return bool.
9778
b50f188d
TT
97792017-02-02 Tom Tromey <tom@tromey.com>
9780
9781 * rust-lang.c: Reindent.
9782
03c85b11
TT
97832017-02-02 Tom Tromey <tom@tromey.com>
9784
9785 * rust-lang.h (rust_crate_for_block): Update.
9786 * rust-lang.c (rust_crate_for_block): Return std::string.
9787 (rust_get_disr_info): Use std:;string, not
9788 gdb::unique_xmalloc_ptr.
9789 * rust-exp.y (crate_name): Update.
9790
9b6da501
PA
97912017-02-02 Pedro Alves <palves@redhat.com>
9792
9793 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
9794 field out of gdb_disassembler_test and make it static.
9795
ec4cb20b
PA
97962017-02-02 Pedro Alves <palves@redhat.com>
9797
9798 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
9799 mi1_interp and mi_interp fields.
9800
5be5dbf0
PA
98012017-02-02 Pedro Alves <palves@redhat.com>
9802
616268b6
PA
9803 * cli/cli-interp.c (struct saved_output_files, saved_output):
9804 Moved from cli/cli-logging.c.
9805 (cli_set_logging): New function.
9806 (cli_interp_procs): Install cli_set_logging.
9807 * cli/cli-interp.h (make_logging_output, cli_set_logging):
9808 Declare.
9809 * cli/cli-logging.c (struct saved_output_files, saved_output):
9810 Moved to cli/cli-interp.c.
9811 (pop_output_files): Don't save outputs here.
9812 (make_logging_output): New function.
9813 (handle_redirections): Don't build tee nor save previous outputs
9814 here.
9815 * interps.c (current_interp_set_logging): Change prototype.
9816 Assume there's always a set_logging_proc method installed.
9817 * interps.h (interp_set_logging_ftype): Change prototype.
9818 (current_interp_set_logging): Change prototype and adjust comment.
9819 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
9820 use make_logging_output.
9821 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
98222017-02-02 Pedro Alves <palves@redhat.com>
9823
5be5dbf0
PA
9824 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
9825 from ...
9826 (set_logging_overwrite): ... here.
9827 (logging_no_redirect_file): Delete.
9828 (set_logging_redirect): Don't handle redirection on the fly.
9829 Instead warn that "logging off" / "logging on" is necessary.
9830 (pop_output_files): Delete references to logging_no_redirect_file.
9831 (show_logging_command): Always speak in terms of what will happen
9832 once logging is reenabled.
9833
c99cc448
PA
98342017-02-02 Pedro Alves <palves@redhat.com>
9835
9836 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
9837
8b172ce7
PA
98382017-02-02 Pedro Alves <palves@redhat.com>
9839
9840 * disasm.c (gdb_pretty_print_insn): Rename to ...
9841 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
9842 Remove gdbarch parameter. Adapt to clear the object's buffers
9843 instead of allocating new buffers, and to print using the object's
9844 gdb_disassembler instead of calling gdb_print_insn.
9845 (dump_insns): Use gdb_pretty_print_disassembler.
9846 * disasm.h (gdb_pretty_print_insn): Delete declaration.
9847 (gdb_pretty_print_disassembler): New class.
9848 * record-btrace.c (btrace_insn_history): Use
9849 gdb_pretty_print_disassembler.
9850
d7e74731
PA
98512017-02-02 Pedro Alves <palves@redhat.com>
9852
9853 * ada-lang.c (type_as_string): Use string_file.
9854 * ada-valprint.c (ada_print_floating): Use string_file.
9855 * ada-varobj.c (ada_varobj_scalar_image)
9856 (ada_varobj_get_value_image): Use string_file.
9857 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
9858 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
9859 * breakpoint.c (update_inserted_breakpoint_locations)
9860 (insert_breakpoint_locations, reattach_breakpoints)
9861 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
9862 (print_it_watchpoint): Use string_file.
9863 (save_breakpoints): Use stdio_file.
9864 * c-exp.y (oper): Use string_file.
9865 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
9866 tee_file.
9867 (pop_output_files): Use delete.
9868 (handle_redirections): Use stdio_file and tee_file.
9869 * cli/cli-setshow.c (do_show_command): Use string_file.
9870 * compile/compile-c-support.c (c_compute_program): Use
9871 string_file.
9872 * compile/compile-c-symbols.c (generate_vla_size): Take a
9873 'string_file &' instead of a 'ui_file *'.
9874 (generate_c_for_for_one_variable): Take a 'string_file &' instead
9875 of a 'ui_file *'. Use string_file.
9876 (generate_c_for_variable_locations): Take a 'string_file &'
9877 instead of a 'ui_file *'.
9878 * compile/compile-internal.h (generate_c_for_for_one_variable):
9879 Take a 'string_file &' instead of a 'ui_file *'.
9880 * compile/compile-loc2c.c (push, pushf, unary, binary)
9881 (print_label, pushf_register_address, pushf_register)
9882 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
9883 'ui_file *'. Adjust.
9884 * compile/compile.c (compile_to_object): Use string_file.
9885 * compile/compile.h (compile_dwarf_expr_to_c)
9886 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
9887 'ui_file *'.
9888 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
9889 (replace_typedefs_qualified_name): Use string_file and
9890 obstack_copy0.
9891 * disasm.c (gdb_pretty_print_insn): Use string_file.
9892 (gdb_disassembly): Adjust reference the null_stream global.
9893 (do_ui_file_delete): Delete.
9894 (gdb_insn_length): Use null_stream.
9895 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
9896 * dwarf2loc.c (dwarf2_compile_property_to_c)
9897 (locexpr_generate_c_location, loclist_generate_c_location): Take a
9898 'string_file &' instead of a 'ui_file *'.
9899 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
9900 * dwarf2read.c (do_ui_file_peek_last): Delete.
9901 (dwarf2_compute_name): Use string_file.
9902 * event-top.c (gdb_setup_readline): Use stdio_file.
9903 * gdbarch.sh (verify_gdbarch): Use string_file.
9904 * gdbtypes.c (safe_parse_type): Use null_stream.
9905 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
9906 string_file.
9907 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
9908 'string_file *' instead of a 'ui_file *'.
9909 (gdbscm_arch_disassemble): Use string_file.
9910 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
9911 * guile/scm-ports.c (class ioscm_file_port): Now a class that
9912 inherits from ui_file.
9913 (ioscm_file_port_delete, ioscm_file_port_rewind)
9914 (ioscm_file_port_put): Delete.
9915 (ioscm_file_port_write): Rename to ...
9916 (ioscm_file_port::write): ... this. Remove file_port_magic
9917 checks.
9918 (ioscm_file_port_new): Delete.
9919 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
9920 ui_file_up.
9921 * guile/scm-type.c (tyscm_type_name): Use string_file.
9922 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
9923 Use string_file.
9924 * infcmd.c (print_return_value_1): Use string_file.
9925 * infrun.c (print_target_wait_results): Use string_file.
9926 * language.c (add_language): Use string_file.
9927 * location.c (explicit_to_string_internal): Use string_file.
9928 * main.c (captured_main_1): Use null_file.
9929 * maint.c (maintenance_print_architecture): Use stdio_file.
9930 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
9931 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
9932 event_channel>: Change type to mi_console_file pointer.
9933 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
9934 (mi_console_file_delete): Delete.
9935 (struct mi_console_file): Delete.
9936 (mi_console_file_magic): Delete.
9937 (mi_console_file_new): Delete.
9938 (mi_console_file::mi_console_file): New.
9939 (mi_console_file_delete): Delete.
9940 (mi_console_file_fputs): Delete.
9941 (mi_console_file::write): New.
9942 (mi_console_raw_packet): Delete.
9943 (mi_console_file::flush): New.
9944 (mi_console_file_flush): Delete.
9945 (mi_console_set_raw): Rename to ...
9946 (mi_console_file::set_raw): ... this.
9947 * mi/mi-console.h (class mi_console_file): New class.
9948 (mi_console_file_new, mi_console_set_raw): Delete.
9949 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
9950 (mi_set_logging): Use delete and tee_file. Adjust.
9951 * mi/mi-main.c (output_register): Use string_file.
9952 (mi_cmd_data_evaluate_expression): Use string_file.
9953 (mi_cmd_data_read_memory): Use string_file.
9954 (mi_cmd_execute, print_variable_or_computed): Use string_file.
9955 * mi/mi-out.c (mi_ui_out::main_stream): New.
9956 (mi_ui_out::rewind): Use main_stream and
9957 string_file.
9958 (mi_ui_out::put): Use main_stream and string_file.
9959 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
9960 Allocate a 'string_file' instead.
9961 (mi_out_new): Don't allocate a mem_fileopen stream here.
9962 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
9963 (mi_ui_out::main_stream): Declare method.
9964 * printcmd.c (eval_command): Use string_file.
9965 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
9966 * python/py-arch.c (archpy_disassemble): Use string_file.
9967 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
9968 * python/py-frame.c (frapy_str): Use string_file.
9969 * python/py-framefilter.c (py_print_type, py_print_single_arg):
9970 Use string_file.
9971 * python/py-type.c (typy_str): Use string_file.
9972 * python/py-unwind.c (unwind_infopy_str): Use string_file.
9973 * python/py-value.c (valpy_str): Use string_file.
9974 * record-btrace.c (btrace_insn_history): Use string_file.
9975 * regcache.c (regcache_print): Use stdio_file.
9976 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
9977 * remote.c (escape_buffer): Use string_file.
9978 * rust-lang.c (rust_get_disr_info): Use string_file.
9979 * serial.c (serial_open_ops_1): Use stdio_file.
9980 (do_serial_close): Use delete.
9981 * stack.c (print_frame_arg): Use string_file.
9982 (print_frame_args): Remove local mem_fileopen stream, not used.
9983 (print_frame): Use string_file.
9984 * symmisc.c (maintenance_print_symbols): Use stdio_file.
9985 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
9986 Take a 'string_file *' instead of a 'ui_file *'.
9987 * top.c (new_ui): Use stdio_file and stderr_file.
9988 (free_ui): Use delete.
9989 (execute_command_to_string): Use string_file.
9990 (quit_confirm): Use string_file.
9991 * tracepoint.c (collection_list::append_exp): Use string_file.
9992 * tui/tui-disasm.c (tui_disassemble): Use string_file.
9993 * tui/tui-file.c: Don't include "ui-file.h".
9994 (enum streamtype, struct tui_stream): Delete.
9995 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
9996 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
9997 (tui_file::tui_file): New method.
9998 (tui_file_fputs): Delete.
9999 (tui_file_get_strbuf): Delete.
10000 (tui_file::puts): New method.
10001 (tui_file_adjust_strbuf): Delete.
10002 (tui_file_flush): Delete.
10003 (tui_file::flush): New method.
10004 * tui/tui-file.h: Tweak intro comment.
10005 Include ui-file.h.
10006 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10007 (tui_file_adjust_strbuf): Delete declarations.
10008 (class tui_file): New class.
10009 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10010 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10011 (tui_register_format): Use string_stream.
10012 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10013 (tui_get_function_from_frame): Use string_file.
10014 * typeprint.c (type_to_string): Use string_file.
10015 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10016 (null_stream): New global.
10017 (ui_file_delete): Delete.
10018 (ui_file::ui_file): New.
10019 (null_file_isatty): Delete.
10020 (ui_file::~ui_file): New.
10021 (null_file_rewind): Delete.
10022 (ui_file::printf): New.
10023 (null_file_put): Delete.
10024 (null_file_flush): Delete.
10025 (ui_file::putstr): New.
10026 (null_file_write): Delete.
10027 (ui_file::putstrn): New.
10028 (null_file_read): Delete.
10029 (ui_file::putc): New.
10030 (null_file_fputs): Delete.
10031 (null_file_write_async_safe): Delete.
10032 (ui_file::vprintf): New.
10033 (null_file_delete): Delete.
10034 (null_file::write): New.
10035 (null_file_fseek): Delete.
10036 (null_file::puts): New.
10037 (ui_file_data): Delete.
10038 (null_file::write_async_safe): New.
10039 (gdb_flush, ui_file_isatty): Adjust.
10040 (ui_file_put, ui_file_rewind): Delete.
10041 (ui_file_write): Adjust.
10042 (ui_file_write_for_put): Delete.
10043 (ui_file_write_async_safe, ui_file_read): Adjust.
10044 (ui_file_fseek): Delete.
10045 (fputs_unfiltered): Adjust.
10046 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10047 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10048 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10049 (set_ui_file_data): Delete.
10050 (string_file::~string_file, string_file::write)
10051 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10052 (do_ui_file_as_string, ui_file_as_string): Delete.
10053 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10054 (struct mem_file): Delete.
10055 (mem_file_new): Delete.
10056 (stdio_file::stdio_file): New.
10057 (mem_file_delete): Delete.
10058 (stdio_file::stdio_file): New.
10059 (mem_fileopen): Delete.
10060 (stdio_file::~stdio_file): New.
10061 (mem_file_rewind): Delete.
10062 (stdio_file::set_stream): New.
10063 (mem_file_put): Delete.
10064 (stdio_file::open): New.
10065 (mem_file_write): Delete.
10066 (stdio_file_magic, struct stdio_file): Delete.
10067 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10068 (stdio_file::flush): New.
10069 (stdio_file_read): Rename to ...
10070 (stdio_file::read): ... this. Adjust.
10071 (stdio_file_write): Rename to ...
10072 (stdio_file::write): ... this. Adjust.
10073 (stdio_file_write_async_safe): Rename to ...
10074 (stdio_file::write_async_safe) ... this. Adjust.
10075 (stdio_file_fputs): Rename to ...
10076 (stdio_file::puts) ... this. Adjust.
10077 (stdio_file_isatty): Delete.
10078 (stdio_file_fseek): Delete.
10079 (stdio_file::isatty): New.
10080 (stderr_file_write): Rename to ...
10081 (stderr_file::write) ... this. Adjust.
10082 (stderr_file_fputs): Rename to ...
10083 (stderr_file::puts) ... this. Adjust.
10084 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10085 (stderr_file::stderr_file): New.
10086 (tee_file_magic): Delete.
10087 (struct tee_file): Delete.
10088 (tee_file::tee_file): New.
10089 (tee_file_new): Delete.
10090 (tee_file::~tee_file): New.
10091 (tee_file_delete): Delete.
10092 (tee_file_flush): Rename to ...
10093 (tee_file::flush): ... this. Adjust.
10094 (tee_file_write): Rename to ...
10095 (tee_file::write): ... this. Adjust.
10096 (tee_file::write_async_safe): New.
10097 (tee_file_fputs): Rename to ...
10098 (tee_file::puts): ... this. Adjust.
10099 (tee_file_isatty): Rename to ...
10100 (tee_file::isatty): ... this. Adjust.
10101 * ui-file.h (struct obstack, struct ui_file): Don't
10102 forward-declare.
10103 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10104 (ui_file_write_ftype)
10105 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10106 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10107 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10108 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10109 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10110 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10111 (set_ui_file_fseek): Delete.
10112 (ui_file_data, ui_file_delete, ui_file_rewind)
10113 (struct ui_file): New.
10114 (ui_file_up): New.
10115 (class null_file): New.
10116 (null_stream): Declare.
10117 (ui_file_write_for_put, ui_file_put): Delete.
10118 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10119 Delete.
10120 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10121 (gdb_fopen, tee_file_new): Delete.
10122 (struct string_file): New.
10123 (struct stdio_file): New.
10124 (stdio_file_up): New.
10125 (struct stderr_file): New.
10126 (class tee_file): New.
10127 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10128 of a 'ui_file *'. Adjust.
10129 * ui-out.h (class ui_out) <field_stream>: Likewise.
10130 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10131 (null_stream): Delete.
10132 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10133 Adjust.
10134 * utils.h (struct ui_file): Delete forward declaration..
10135 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10136 (error_stream): Take a 'string_file &' instead of a
10137 'ui_file *'.
10138 * varobj.c (varobj_value_get_print_value): Use string_file.
10139 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10140 * gdbarch.c: Regenerate.
10141
187808b0
PA
101422017-02-02 Pedro Alves <palves@redhat.com>
10143
10144 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10145 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10146 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10147 Adjust to call gdb_print_insn instead of
10148 gdb_disassembler::print_insn.
10149 (dump_insns, do_mixed_source_and_assembly_deprecated)
10150 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10151 'gdbarch' parameter. Remove gdb_disassembler parameter.
10152 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10153 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10154 declaration.
10155 (gdb_pretty_print_insn): Re-add declaration.
10156 * record-btrace.c (btrace_insn_history): Don't allocate a
10157 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10158
7a8eb317
SM
101592017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10160
10161 * disasm.h (gdb_disassembly): Remove file_string parameter.
10162 * disasm.c (gdb_disassembly): Likewise.
10163 * cli/cli-cmds.c (print_disassembly): Adapt.
10164 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10165 * stack.c (do_gdb_disassembly): Likewise.
10166
7346ef59
AA
101672017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10168
10169 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10170 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10171 targets. And if the implicit value is longer than needed, extract
10172 the first bytes instead of the "least significant" ones.
10173
cd4007e4
MM
101742017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10175
10176 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10177 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10178 (btrace_fetch): Assert can_access_registers_ptid.
10179 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10180 validate_registers_access.
10181
cf77c34e
MM
101822017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10183
10184 * gdbthread.h (can_access_registers_ptid): New.
10185 * thread.c (can_access_registers_ptid): New.
10186
be85ce7d
PA
101872017-02-01 Pedro Alves <palves@redhat.com>
10188
10189 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10190
29b0b251
PA
101912017-01-31 Pedro Alves <palves@redhat.com>
10192
10193 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10194 Fix typos.
10195
289b5b24
PA
101962017-01-31 Pedro Alves <palves@redhat.com>
10197
10198 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10199 not used.
10200
b47413b4
PA
102012017-01-31 Pedro Alves <palves@redhat.com>
10202
10203 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10204
60adb36c
PA
102052017-01-31 Pedro Alves <palves@redhat.com>
10206
10207 * common/scoped_restore.h
10208 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10209 change the value's parameter type to T2.
10210 (make_scoped_restore): Likewise.
10211
2735833d
WT
102122017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10213 Richard Henderson <rth@redhat.com>
10214
10215 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10216 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10217 GS_BASE for older kernels.
10218 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10219 GS_BASE for older kernels.
10220 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10221 and GS_BASE to the offset table.
10222 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10223 system register group.
10224 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10225 for older kernels.
10226 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10227 amd64 ABI.
10228 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10229 AMD64_GSBASE_REGNUM.
10230 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10231 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10232 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10233 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10234 i386/64bit-segments.xml in those rules.
10235 * features/i386/64bit-segments.xml: New file.
10236 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10237 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10238 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10239 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10240 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10241 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10242 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10243 * features/i386/amd64-avx-linux.c: Regenerated.
10244 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10245 * features/i386/amd64-avx-mpx.c: Regenerated.
10246 * features/i386/amd64-avx512-linux.c: Regenerated.
10247 * features/i386/amd64-linux.c: Regenerated.
10248 * features/i386/amd64-mpx-linux.c: Regenerated.
10249 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10250 * features/i386/i386-avx-mpx.c: Regenerated.
10251 * features/i386/x32-avx-linux.c: Regenerated.
10252 * features/i386/x32-avx512-linux.c: Regenerated.
10253 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10254 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10255 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10256 * regformats/i386/amd64-linux.dat: Regenerated.
10257 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10258 * regformats/i386/x32-avx-linux.dat: Regenerated.
10259 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10260 * regformats/i386/x32-linux.dat: Regenerated.
10261
8884e97e
WT
102622017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10263
10264 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10265 Set to AMD64_NUM_REGS.
10266
7005d26a
WT
102672017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10268
10269 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10270 that checks validity of a register number.
10271
4bd2e1b2
KC
102722017-01-27 Kees Cook <keescook@google.com>
10273
10274 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10275 fetch_fpregs if target has fpa registers.
10276 (arm_linux_store_inferior_registers): Call store_fpregs if target
10277 has fpa registers.
10278
7cf1de6c
AA
102792017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10280
10281 * cris-tdep.c (cris_gdbarch_init): Remove check for
10282 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10283
874a1c8c
AT
102842017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10285
10286 * corelow.c (get_core_register_section): Check for regset
10287 existence before checking for REGSET_VARIABLE_SIZE.
10288
d8b49cf0
YQ
102892017-01-26 Yao Qi <yao.qi@linaro.org>
10290 Pedro Alves <palves@redhat.com>
10291
10292 PR gdb/20939
10293 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10294 call memory_error, save memaddr instead.
10295 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10296 negative, cal memory_error.
10297 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10298
658ca58c
YQ
102992017-01-26 Yao Qi <yao.qi@linaro.org>
10300
10301 * disasm-selftests.c (memory_error_test): New function.
10302 (_initialize_disasm_selftests): Register memory_error_test.
10303
79843d45
YQ
103042017-01-26 Yao Qi <yao.qi@linaro.org>
10305
10306 * Makefile.in (SFILES): Add disasm-selftests.c and
10307 selftest-arch.c.
10308 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10309 * disasm-selftests.c: New file.
10310 * selftest-arch.c: New file.
10311 * selftest-arch.h: New file.
10312
8cafda32
YQ
103132017-01-26 Yao Qi <yao.qi@linaro.org>
10314
10315 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10316 to bfd_arch_mep. Don't return 0 if section is not
10317 found. Call print_insn_mep.
10318
e47ad6c0
YQ
103192017-01-26 Pedro Alves <palves@redhat.com>
10320 Yao Qi <yao.qi@linaro.org>
10321
10322 * arm-tdep.c: Include "disasm.h".
10323 (gdb_print_insn_arm): Update code to get gdbarch.
10324 * disasm.c (dis_asm_read_memory): Change it to
10325 gdb_disassembler::dis_asm_read_memory.
10326 (dis_asm_memory_error): Likewise.
10327 (dis_asm_print_address): Likewise.
10328 (gdb_pretty_print_insn): Change it to
10329 gdb_disassembler::pretty_print_insn.
10330 (dump_insns): Add one argument gdb_disassemlber. All
10331 callers updated.
10332 (do_mixed_source_and_assembly_deprecated): Likewise.
10333 (do_mixed_source_and_assembly): Likewise.
10334 (do_assembly_only): Likewise.
10335 (gdb_disassembler::gdb_disassembler): New.
10336 (gdb_disassembler::print_insn): New.
10337 * disasm.h (class gdb_disassembler): New.
10338 (gdb_pretty_print_insn): Remove declaration.
10339 (gdb_disassemble_info): Likewise.
10340 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10341 (gdbscm_disasm_read_memory_worker): Update.
10342 (gdbscm_disasm_read_memory): Update.
10343 (gdbscm_disasm_memory_error): Remove.
10344 (gdbscm_disasm_print_address): Remove.
10345 (gdbscm_disassembler::gdbscm_disassembler): New.
10346 (gdbscm_print_insn_from_port): Update.
10347 * mips-tdep.c: Include disasm.h.
10348 (gdb_print_insn_mips): Update code to get gdbarch.
10349 * record-btrace.c (btrace_insn_history): Update.
10350 * spu-tdep.c: Include disasm.h.
10351 (struct spu_dis_asm_data): Remove.
10352 (struct spu_dis_asm_info): New.
10353 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10354 SPU id.
10355 (gdb_print_insn_spu): Cast disassemble_info to
10356 spu_dis_asm_info.
10357
80d75874
YQ
103582017-01-26 Yao Qi <yao.qi@linaro.org>
10359
10360 * disasm.c (do_ui_file_delete): Delete.
10361 (gdb_insn_length): Move code creating stream to ...
10362 * utils.c (null_stream): ... here. New function.
10363 * utils.h (null_stream): Declare.
10364
60685cd0
SM
103652017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10366
10367 * python/py-inferior.c (find_thread_object): Return directly
10368 from the loop. Remove "found" variable.
10369
eb1cdb62
JB
103702017-01-21 Joel Brobecker <brobecker@adacore.com>
10371
10372 GDB 7.12.1 released.
10373
b1ce6568
SM
103742017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10375
10376 * python/py-function.c (fnpy_call): Reorder declarations to have
10377 the gdbpy_enter object declared first.
10378 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10379
6f8b0407
SM
103802017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10381
fec93fb1 10382 PR python/21068
6f8b0407
SM
10383 * python/python-internal.h (PyMem_RawMalloc): Define for
10384 Python < 3.4.
10385 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10386 PyMem_RawMalloc instead of PyMem_Malloc.
10387
78cbbba8
LM
103882017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10389 Luis Machado <lgustavo@codesourcery.com>
10390
10391 * NEWS (New commands): Mention flash-erase.
10392 (New MI commands): Mention target-flash-erase.
10393 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10394 command.
10395 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10396 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10397 * target.c (flash_erase_command): New function.
10398 (initialize_targets): Add new flash-erase command.
10399 * target.h (flash_erase_command): New declaration.
10400
2132fe85
JB
104012017-01-20 Joel Brobecker <brobecker@adacore.com>
10402
10403 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10404 HAVE_SYS_PROCFS_H is defined.
10405
d1dff226
AH
104062017-01-18 Alan Hayward <alan.hayward@arm.com>
10407
10408 * remote.c (struct cached_reg): Change data into a pointer.
10409 * (stop_reply_dtr): Free data pointers before deleting vector.
10410 (process_stop_reply): Likewise.
10411 (remote_parse_stop_reply): Allocate space for data
10412
9890e433
AH
104132017-01-18 Alan Hayward <alan.hayward@arm.com>
10414
10415 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10416 MAX_REGISTER_SIZE.
10417 (amd64_pseudo_register_read_value): Likewise.
10418 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10419 (store_register_using_P): Likewise.
10420 * regcache.c (regcache_xfer_part): Likewise.
10421
7a36499a
IR
104222017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10423
10424 Split real and pseudo registers.
10425 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10426 (sparc32_pseudo_regnum): New enum.
10427 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10428 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10429 (SPARC32_CP0_REGISTERS): New macro.
10430 (sparc32_pseudo_register_name): New function.
10431 (sparc32_register_name): Use sparc32_pseudo_register_name.
10432 (sparc32_pseudo_register_type): New function.
10433 (sparc32_register_type): Use sparc32_pseudo_register_type.
10434 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10435 pseudo register numbers.
10436 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10437 (SPARC64_CP0_REGISTERS): New macro.
10438 (sparc64_pseudo_register_name): New function.
10439 (sparc64_register_name): Use sparc64_pseudo_register_name.
10440 (sparc64_pseudo_register_type): New function.
10441 (sparc64_register_type): Use sparc64_pseudo_register_type.
10442 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10443 pseudo register numbers.
10444 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10445 sparc64_store_arguments): Handle pseudo register numbers.
10446
6f8976bf
YQ
104472017-01-13 Yao Qi <yao.qi@linaro.org>
10448
10449 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10450 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10451 output.
10452 (getpkt_or_notif_sane_1): Likewise.
10453
e4241ace
YQ
104542017-01-13 Yao Qi <yao.qi@linaro.org>
10455
10456 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10457 of CC. Pass "-x c++-header" instead of "-x c".
10458
3015c064
SM
104592017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10460
10461 * remote.c (remote_can_async_p): Update comment.
10462
fde1b17d
SM
104632017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10464
10465 * linux-nat.c (linux_nat_can_async_p): Update comment.
10466
ca1ca08b
SM
104672017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10468
10469 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10470
4ad2da73
SM
104712017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10472
10473 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10474
c8b23b3f
TT
104752017-01-10 Tom Tromey <tom@tromey.com>
10476
10477 * python/py-type.c (typy_legacy_template_argument): Update.
10478 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10479 ~demangle_parse_info): Declare new members.
10480 (cp_demangled_name_to_comp): Return unique_ptr.
10481 (cp_demangled_name_parse_free)
10482 (make_cleanup_cp_demangled_name_parse_free)
10483 (cp_new_demangle_parse_info): Remove.
10484 * cp-support.c (do_demangled_name_parse_free_cleanup)
10485 (make_cleanup_cp_demangled_name_parse_free): Remove.
10486 (inspect_type, cp_canonicalize_string_full)
10487 (cp_canonicalize_string): Update.
10488 (mangled_name_to_comp): Change return type.
10489 (cp_class_name_from_physname, method_name_from_physname)
10490 (cp_func_name, cp_remove_params): Update.
10491 * cp-name-parser.y (demangle_parse_info): New constructor, from
10492 cp_new_demangle_parse_info.
10493 (~demangle_parse_info): New destructor, from
10494 cp_demangled_name_parse_free.
10495 (cp_merge_demangle_parse_infos): Update.
10496 (cp_demangled_name_to_comp): Change return type.
10497
1ac32117
TT
104982017-01-10 Tom Tromey <tom@tromey.com>
10499
10500 * top.c (prevent_dont_repeat): Change return type.
10501 * python/python.c (execute_gdb_command): Use std::string.
10502 Update.
10503 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10504 * command.h (prevent_dont_repeat): Change return type.
10505 * breakpoint.c (bpstat_do_actions_1): Update.
10506
0cf08227
TT
105072017-01-10 Tom Tromey <tom@tromey.com>
10508
10509 * value.h (scoped_value_mark::~scoped_value_mark): Call
10510 free_to_mark.
10511 (scoped_value_mark::free_to_mark): New method.
10512 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10513 scoped_value_mark.
10514
eb115069
TT
105152017-01-10 Tom Tromey <tom@tromey.com>
10516
10517 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10518 (valpy_reference_value, valpy_const_value, valpy_get_address)
10519 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10520 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
10521 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
10522 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
10523 scoped_value_mark.
10524 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
10525 * value.h (scoped_value_mark): New class.
10526
906768f9
TT
105272017-01-10 Tom Tromey <tom@tromey.com>
10528
10529 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
10530 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
10531 * psymtab.c (discard_psymtabs_upto): Remove.
10532 (make_cleanup_discard_psymtabs): Remove.
10533 (struct psymtab_state): Remove.
10534
bef155c3
TT
105352017-01-10 Tom Tromey <tom@tromey.com>
10536
10537 * record-full.c (record_full_save_cleanups): Remove.
10538 (record_full_save): Use gdb::unlinker.
10539 * gcore.c (do_bfd_delete_cleanup): Remove.
10540 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
10541 cleanups.
10542 * dwarf2read.c (unlink_if_set): Remove.
10543 (write_psymtabs_to_index): Use gdb::unlinker.
10544 * common/gdb_unlinker.h: New file.
10545
192b62ce
TT
105462017-01-10 Tom Tromey <tom@tromey.com>
10547
10548 * windows-tdep.c (windows_xfer_shared_library): Update.
10549 * windows-nat.c (windows_make_so): Update.
10550 * utils.h (make_cleanup_bfd_unref): Remove.
10551 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
10552 * symfile.h (symfile_bfd_open)
10553 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
10554 * symfile.c (read_symbols, symbol_file_add)
10555 (separate_debug_file_exists): Update.
10556 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
10557 (generic_load, reread_symbols): Update.
10558 * symfile-mem.c (symbol_file_add_from_memory): Update.
10559 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
10560 (spu_symbol_file_add_from_memory): Update.
10561 * solist.h (struct target_so_ops) <bfd_open>: Return
10562 gdb_bfd_ref_ptr.
10563 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
10564 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
10565 gdb_bfd_ref_ptr.
10566 (solib_map_sections, reload_shared_libraries_1): Update.
10567 * solib-svr4.c (enable_break): Update.
10568 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
10569 * solib-frv.c (enable_break2): Update.
10570 * solib-dsbt.c (enable_break): Update.
10571 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
10572 gdb_bfd_ref_ptr.
10573 (darwin_solib_get_all_image_info_addr_at_init): Update.
10574 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
10575 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
10576 * record-full.c (record_full_save): Update.
10577 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
10578 * procfs.c (insert_dbx_link_bpt_in_file): Update.
10579 * minidebug.c (find_separate_debug_file_in_section): Return
10580 gdb_bfd_ref_ptr.
10581 * machoread.c (macho_add_oso_symfile): Change abfd to
10582 gdb_bfd_ref_ptr.
10583 (macho_symfile_read_all_oso): Update.
10584 (macho_check_dsym): Return gdb_bfd_ref_ptr.
10585 (macho_symfile_read): Update.
10586 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
10587 (jit_bfd_try_read_symtab): Update.
10588 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10589 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10590 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10591 gdb_bfd_ref_ptr.
10592 (gdb_bfd_ref_policy): New struct.
10593 (gdb_bfd_ref_ptr): New typedef.
10594 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10595 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10596 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10597 gdb_bfd_ref_ptr.
10598 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10599 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10600 (gcore_command): Update.
10601 * exec.c (exec_file_attach): Update.
10602 * elfread.c (elf_symfile_read): Update.
10603 * dwarf2read.c (dwarf2_get_dwz_file): Update.
10604 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
10605 (open_and_init_dwo_file): Update.
10606 (open_dwp_file): Return gdb_bfd_ref_ptr.
10607 (open_and_init_dwp_file): Update.
10608 * corelow.c (core_open): Update.
10609 * compile/compile-object-load.c (compile_object_load): Update.
10610 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
10611 * coffread.c (coff_symfile_read): Update.
10612 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
10613 gdb_bfd_ref_ptr. Rename.
10614 (dump_bfd_file, restore_command): Update.
10615 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10616 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10617 (find_separate_debug_file_by_buildid): Update.
10618
50315b21
TT
106192017-01-10 Tom Tromey <tom@tromey.com>
10620
10621 * common/gdb_ref_ptr.h: New file.
10622 * python/py-ref.h (struct gdbpy_ref_policy): New.
10623 (gdbpy_ref): Now a typedef.
10624
fc4007c9
TT
106252017-01-10 Tom Tromey <tom@tromey.com>
10626
10627 * utils.h (make_cleanup_htab_delete): Don't declare.
10628 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
10629 Remove.
10630 * linespec.c (decode_compound_collector): Add constructor,
10631 destructor.
10632 (lookup_prefix_sym): Remove cleanup.
10633 (symtab_collector): Add constructor, destructor.
10634 (collect_symtabs_from_filename): Remove cleanup.
10635 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
10636 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
10637 Use htab_up.
10638 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
10639 * dwarf2read.c (dw2_expand_symtabs_matching)
10640 (dw2_map_symbol_filenames, dwarf_decode_macros)
10641 (write_psymtabs_to_index): Use htab_up.
10642 * dwarf2loc.c (func_verify_no_selftailcall)
10643 (call_site_find_chain_1, func_verify_no_selftailcall)
10644 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
10645 std::vector, gdb::unique_xmalloc_ptr.
10646 (call_sitep): Remove typedef.
10647 (dwarf2_locexpr_baton_eval): Remove unused variable.
10648
8dbcee67
TT
106492017-01-10 Tom Tromey <tom@tromey.com>
10650
10651 * python/python-internal.h (make_cleanup_py_decref)
10652 (make_cleanup_py_xdecref): Don't declare.
10653 * python/py-utils.c (py_decref, make_cleanup_py_decref)
10654 (py_xdecref, make_cleanup_py_xdecref): Remove.
10655
13df46cc
TT
106562017-01-10 Tom Tromey <tom@tromey.com>
10657
10658 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
10659 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
10660
06fc9bf7
TT
106612017-01-10 Tom Tromey <tom@tromey.com>
10662
10663 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
10664
830a4934
TT
106652017-01-10 Tom Tromey <tom@tromey.com>
10666
10667 * python/py-utils.c (unicode_to_encoded_string)
10668 (python_string_to_target_string)
10669 (python_string_to_target_python_string)
10670 (python_string_to_host_string, gdbpy_obj_to_string)
10671 (get_addr_from_python): Use gdbpy_ref.
10672
4586d543
TT
106732017-01-10 Tom Tromey <tom@tromey.com>
10674
10675 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
10676 gdbpy_ref.
10677
59876f8f
TT
106782017-01-10 Tom Tromey <tom@tromey.com>
10679
10680 * python/python.c (eval_python_command, gdbpy_decode_line)
10681 (gdbpy_run_events, gdbpy_start_type_printers)
10682 (gdbpy_apply_type_printers): Use gdbpy_ref.
10683
97d83487
TT
106842017-01-10 Tom Tromey <tom@tromey.com>
10685
10686 * python/py-param.c (get_doc_string, compute_enum_values): Use
10687 gdbpy_ref.
10688
9205649a
TT
106892017-01-10 Tom Tromey <tom@tromey.com>
10690
10691 * python/py-inferior.c (find_thread_object, build_inferior_list):
10692 Use gdbpy_ref.
10693
74c49d45
TT
106942017-01-10 Tom Tromey <tom@tromey.com>
10695
10696 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10697
16361ffb
TT
106982017-01-10 Tom Tromey <tom@tromey.com>
10699
10700 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
10701 gdbpy_ref.
10702
905f2cca
TT
107032017-01-10 Tom Tromey <tom@tromey.com>
10704
10705 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
10706 extra incref.
10707 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
10708 Use gdbpy_ref.
10709
64081434
TT
107102017-01-10 Tom Tromey <tom@tromey.com>
10711
10712 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
10713 gdbpy_ref.
10714
59e9e831
TT
107152017-01-10 Tom Tromey <tom@tromey.com>
10716
10717 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
10718 decref results of PyArg_ParseTupleAndKeywords.
10719
9de10f6d
TT
107202017-01-10 Tom Tromey <tom@tromey.com>
10721
10722 * python/python.c (python_run_simple_file): Use
10723 unique_xmalloc_ptr, gdbpy_ref.
10724
2bd5759d
TT
107252017-01-10 Tom Tromey <tom@tromey.com>
10726
10727 * python/py-prettyprint.c (print_stack_unless_memory_error)
10728 (print_string_repr, print_children): Use gdbpy_ref.
10729 (dummy_python_frame): New class.
10730 (dummy_python_frame::dummy_python_frame): Rename from
10731 push_dummy_python_frame.
10732 (py_restore_tstate): Remove.
10733
3b4e0e01
TT
107342017-01-10 Tom Tromey <tom@tromey.com>
10735
10736 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10737
17a22718
TT
107382017-01-10 Tom Tromey <tom@tromey.com>
10739
10740 * python/python.c (ensure_python_env, restore_python_env):
10741 Remove.
10742 * python/python-internal.h (ensure_python_env): Don't declare.
10743 * varobj.h (varobj_ensure_python_env): Don't declare.
10744 * varobj.c (varobj_ensure_python_env): Remove.
10745
68cdc557
TT
107462017-01-10 Tom Tromey <tom@tromey.com>
10747
10748 * varobj.c (varobj_value_get_print_value): Use
10749 gdbpy_enter_varobj.
10750
1eba6383
TT
107512017-01-10 Tom Tromey <tom@tromey.com>
10752
10753 * python/py-prettyprint.c (print_string_repr, print_children):
10754 Update.
10755 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
10756 of "encoding".
10757 * varobj.c (varobj_value_get_print_value): Update.
10758 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
10759
bde7b3e3
TT
107602017-01-10 Tom Tromey <tom@tromey.com>
10761
10762 * varobj.c (varobj_get_display_hint)
10763 (dynamic_varobj_has_child_method, install_new_value_visualizer)
10764 (varobj_set_visualizer, free_variable): Use
10765 gdbpy_enter_varobj.
10766
a7785f8c
TT
107672017-01-10 Tom Tromey <tom@tromey.com>
10768
10769 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
10770 (do_finish_initialization): New function. Use gdbpy_ref.
10771 (gdbpy_finish_initialization): Use gdbpy_enter. Call
10772 do_finish_initialization.
10773
2865bfce
TT
107742017-01-10 Tom Tromey <tom@tromey.com>
10775
10776 * python/py-param.c (get_set_value, get_show_value): Use
10777 gdbpy_enter, gdbpy_ref.
10778
0e9dcc75
TT
107792017-01-10 Tom Tromey <tom@tromey.com>
10780
10781 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
10782
12a5cedd
TT
107832017-01-10 Tom Tromey <tom@tromey.com>
10784
10785 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
10786
788f2586
TT
107872017-01-10 Tom Tromey <tom@tromey.com>
10788
10789 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
10790 Use gdbpy_enter_varobj.
10791
6cd67bea
TT
107922017-01-10 Tom Tromey <tom@tromey.com>
10793
10794 * varobj.c (gdbpy_enter_varobj): New constructor.
10795 * python/python-internal.h (gdbpy_enter_varobj): New class.
10796 * python/py-varobj.c (py_varobj_get_iterator): Use
10797 gdbpy_enter_varobj.
10798
14b122bf
TT
107992017-01-10 Tom Tromey <tom@tromey.com>
10800
10801 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
10802 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
10803 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
10804 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
10805 unique_xmalloc_ptr.
10806 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
10807
bf1ca3b9
TT
108082017-01-10 Tom Tromey <tom@tromey.com>
10809
10810 * python/py-xmethods.c (invoke_match_method): Use
10811 gdbpy_ref.
10812
572a5524
TT
108132017-01-10 Tom Tromey <tom@tromey.com>
10814
10815 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
10816 gdbpy_enter, gdbpy_ref.
10817
396a78b6
TT
108182017-01-10 Tom Tromey <tom@tromey.com>
10819
10820 * python/python.c (python_interactive_command): Use gdbpy_enter.
10821
a88b13c7
TT
108222017-01-10 Tom Tromey <tom@tromey.com>
10823
10824 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
10825 gdbpy_ref.
10826
e9f0c363
TT
108272017-01-10 Tom Tromey <tom@tromey.com>
10828
10829 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
10830 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
10831
6349f452
TT
108322017-01-10 Tom Tromey <tom@tromey.com>
10833
10834 * utils.h (htab_deleter): New struct.
10835 (htab_up): New typedef.
10836 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
10837 gdbpy_enter, gdbpy_ref, htab_up.
10838
c0171de6
TT
108392017-01-10 Tom Tromey <tom@tromey.com>
10840
10841 * python/py-unwind.c (pending_frame_invalidate): Remove.
10842 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
10843
f18e226f
TT
108442017-01-10 Tom Tromey <tom@tromey.com>
10845
10846 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
10847 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
10848
c57af3f1
TT
108492017-01-10 Tom Tromey <tom@tromey.com>
10850
10851 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
10852
60e600ec
TT
108532017-01-10 Tom Tromey <tom@tromey.com>
10854
10855 * python/python.c (gdbpy_eval_from_control_command)
10856 (gdbpy_source_script, gdbpy_run_events)
10857 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
10858 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
10859 gdbpy_enter.
10860
bf7da5b0
TT
108612017-01-10 Tom Tromey <tom@tromey.com>
10862
10863 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
10864
2d38bced
TT
108652017-01-10 Tom Tromey <tom@tromey.com>
10866
10867 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
10868
07bc7329
TT
108692017-01-10 Tom Tromey <tom@tromey.com>
10870
10871 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
10872 (python_on_inferior_call_pre, python_on_inferior_call_post)
10873 (python_on_memory_change, python_on_register_change)
10874 (python_inferior_exit, python_new_objfile, add_thread_object)
10875 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
10876
6e7c365e
TT
108772017-01-10 Tom Tromey <tom@tromey.com>
10878
10879 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
10880 (bpfinishpy_handle_exit): Use gdbpy_enter.
10881
6ba0cd40
TT
108822017-01-10 Tom Tromey <tom@tromey.com>
10883
10884 * python/py-cmd.c (cmdpy_destroyer)
10885 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
10886 gdbpy_enter.
10887
de2dc875
TT
108882017-01-10 Tom Tromey <tom@tromey.com>
10889
10890 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
10891 gdbpy_enter.
10892 (gdbpy_breakpoint_has_cond): Likewise.
10893
4ecee2c4
TT
108942017-01-10 Tom Tromey <tom@tromey.com>
10895
10896 * python/python.c (gdbpy_enter): New constructor.
10897 (~gdbpy_enter): New destructor.
10898 (restore_python_env, ensure_python_env): Rewrite.
10899 * python/python-internal.h (gdbpy_enter): New class.
10900
37fce74f
TT
109012017-01-10 Tom Tromey <tom@tromey.com>
10902
10903 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
10904
53a0cca3
TT
109052017-01-10 Tom Tromey <tom@tromey.com>
10906
10907 * python/py-value.c (value_has_field, get_field_flag)
10908 (get_field_type, valpy_getitem, convert_value_from_python): Use
10909 gdbpy_ref.
10910
ff3724f5
TT
109112017-01-10 Tom Tromey <tom@tromey.com>
10912
10913 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
10914 gdbpy_ref.
10915
0700aea5
TT
109162017-01-10 Tom Tromey <tom@tromey.com>
10917
10918 * python/py-prettyprint.c (search_pp_list)
10919 (find_pretty_printer_from_objfiles)
10920 (find_pretty_printer_from_progspace)
10921 (find_pretty_printer_from_gdb, find_pretty_printer)
10922 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
10923 gdbpy_ref.
10924
1bb44c9f
TT
109252017-01-10 Tom Tromey <tom@tromey.com>
10926
10927 * python/py-param.c (call_doc_function): Use gdbpy_ref.
10928
87ce03fd
TT
109292017-01-10 Tom Tromey <tom@tromey.com>
10930
10931 * python/py-linetable.c (build_line_table_tuple_from_pcs)
10932 (ltpy_get_all_source_lines): Use gdbpy_ref.
10933
ee0a3fb8
TT
109342017-01-10 Tom Tromey <tom@tromey.com>
10935
10936 * python/py-framefilter.c (extract_sym, extract_value)
10937 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
10938 gdbpy_ref.
10939
bf2a52fa
TT
109402017-01-10 Tom Tromey <tom@tromey.com>
10941
10942 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
10943
f59fe7f8
TT
109442017-01-10 Tom Tromey <tom@tromey.com>
10945
10946 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
10947
80bd970a
TT
109482017-01-10 Tom Tromey <tom@tromey.com>
10949
10950 * python/py-function.c (convert_values_to_python, fnpy_init): Use
10951 gdbpy_ref.
10952
d1b3de2e
TT
109532017-01-10 Tom Tromey <tom@tromey.com>
10954
10955 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
10956
3bb43384
TT
109572017-01-10 Tom Tromey <tom@tromey.com>
10958
10959 * python/py-type.c (convert_field, make_fielditem, typy_fields)
10960 (typy_range): Use gdbpy_ref.
10961
abf5651e
TT
109622017-01-10 Tom Tromey <tom@tromey.com>
10963
10964 * python/py-threadevent.c (create_thread_event_object): Use
10965 gdbpy_ref.
10966 * python/py-stopevent.c (create_stop_event_object): Simplify.
10967 (emit_stop_event): Use gdbpy_ref.
10968 * python/py-signalevent.c (create_signal_event_object): Use
10969 gdbpy_ref.
10970 * python/py-newobjfileevent.c (create_new_objfile_event_object)
10971 (emit_new_objfile_event, create_clear_objfiles_event_object)
10972 (emit_clear_objfiles_event): Use gdbpy_ref.
10973 * python/py-infevents.c (create_inferior_call_event_object)
10974 (create_register_changed_event_object)
10975 (create_memory_changed_event_object, emit_inferior_call_event)
10976 (emit_memory_changed_event, emit_register_changed_event): Use
10977 gdbpy_ref.
10978 * python/py-exitedevent.c (create_exited_event_object)
10979 (emit_exited_event): Use gdbpy_ref.
10980 * python/py-event.h (evpy_emit_event): Remove
10981 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
10982 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
10983 * python/py-continueevent.c (emit_continue_event): Use
10984 gdbpy_ref.
10985 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10986 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10987 gdbpy_ref.
10988 * python/py-bpevent.c (create_breakpoint_event_object): Use
10989 gdbpy_ref.
10990
a68ff33e
TT
109912017-01-10 Tom Tromey <tom@tromey.com>
10992
10993 * python/py-ref.h: New file.
10994
7becfd03
SM
109952017-01-10 Simon Marchi <simon.marchi@ericsson.com>
10996
10997 * cli-out.c (cli_ui_out::do_redirect): Change return type to
10998 void.
10999 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11000 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11001 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11002 * ui-out.c (ui_out::redirect): Likewise.
11003 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11004 * cli/cli-logging.c (set_logging_redirect): Update call site of
11005 ui_out::redirect.
11006 (handle_redirections): Likewise.
11007 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11008 * top.c (execute_command_to_string): Likewise.
11009 * utils.c (do_ui_out_redirect_pop): Likewise.
11010
df294654
SM
110112017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11012
11013 * stack.c (_initialize_stack): Update "frame" command help message.
11014
f5e6296e
IB
110152017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11016
11017 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11018
0e2d6fa6
YQ
110192017-01-06 Yao Qi <yao.qi@linaro.org>
11020
11021 * x86-linux-nat.h: Include gdb_proc_service.h.
11022
44d6d3f9
YQ
110232017-01-06 Yao Qi <yao.qi@linaro.org>
11024
11025 * ser-base.h: Include serial.h.
11026
656731fe
YQ
110272017-01-06 Yao Qi <yao.qi@linaro.org>
11028
11029 * ppc-linux-tdep.h: Include ppc-tdep.h.
11030
1ca8f924
YQ
110312017-01-06 Yao Qi <yao.qi@linaro.org>
11032
11033 * nat/amd64-linux-siginfo.h: Include signal.h.
11034
bc3008c4
YQ
110352017-01-06 Yao Qi <yao.qi@linaro.org>
11036
11037 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11038
66c80d03
YQ
110392017-01-06 Yao Qi <yao.qi@linaro.org>
11040
11041 * mi/mi-parse.h: Include mi-cmds.h.
11042
051d2dda
YQ
110432017-01-06 Yao Qi <yao.qi@linaro.org>
11044
11045 * inf-loop.c: Don't include "target.h".
11046 * inf-loop.h: Include it here.
11047
8018d34f
YQ
110482017-01-06 Yao Qi <yao.qi@linaro.org>
11049
11050 * dfp.h: Include "dboulest.h" and "expression.h".
11051
c0b8369c
YQ
110522017-01-06 Yao Qi <yao.qi@linaro.org>
11053
11054 * ax-gdb.h: Include "ax.h".
11055
ad5cba2a
YQ
110562017-01-06 Yao Qi <yao.qi@linaro.org>
11057
11058 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11059 with nat/gdb_ptrace.h.
11060
1c33cd7f
YQ
110612017-01-05 Yao Qi <yao.qi@linaro.org>
11062
11063 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11064 new line.
11065 (mips64_fbsd_sigframe_init): Likewise.
11066
c988ac1d
JB
110672017-01-04 John Baldwin <jhb@FreeBSD.org>
11068
11069 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11070 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11071
b268007c
JB
110722017-01-04 John Baldwin <jhb@FreeBSD.org>
11073
11074 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11075 * NEWS: Mention new FreeBSD/mips native configuration.
11076 * config/mips/fbsd.mh: New file.
11077 * configure.host: Add mips*-*-freebsd*.
11078 * mips-fbsd-nat.c: New file.
11079
387360da
JB
110802017-01-04 John Baldwin <jhb@FreeBSD.org>
11081
11082 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11083 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11084 * NEWS: Mention new FreeBSD/mips target.
11085 * configure.tgt: Add mips*-*-freebsd*.
11086 * mips-fbsd-tdep.c: New file.
11087 * mips-fbsd-tdep.h: New file.
11088
2aaaf250
YQ
110892017-01-04 Yao Qi <yao.qi@linaro.org>
11090
11091 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11092 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11093
61baf725
JB
110942017-01-01 Joel Brobecker <brobecker@adacore.com>
11095
6dbb839a 11096 Update copyright year range in all GDB files.
61baf725 11097
c113e7ff 110982017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 11099
c113e7ff 11100 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 11101
c113e7ff 11102For older changes see ChangeLog-2016.
c906108c
SS
11103\f
11104Local Variables:
11105mode: change-log
11106left-margin: 8
11107fill-column: 74
11108version-control: never
57da7796 11109coding: utf-8
c906108c 11110End:
This page took 2.990941 seconds and 4 git commands to generate.