Use DISABLE_COPY_AND_ASSIGN
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-19 Yao Qi <yao.qi@linaro.org>
2
3 * annotate.h (struct annotate_arg_emitter): Use
4 DISABLE_COPY_AND_ASSIGN.
5 * common/refcounted-object.h (refcounted_object): Likewise.
6 * completer.h (struct completion_result): Likewise.
7 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
8 * filename-seen-cache.h (filename_seen_cache): Likewise.
9 * gdbcore.h (thread_section_name): Likewise.
10 * gdb_regex.h (compiled_regex): Likewise.
11 * gdbthread.h (scoped_restore_current_thread): Likewise.
12 * inferior.h (scoped_restore_current_inferior): Likewise.
13 * jit.c (jit_reader): Likewise.
14 * linespec.h (struct linespec_result): Likewise.
15 * mi/mi-parse.h (struct mi_parse): Likewise.
16 * nat/fork-inferior.c (execv_argv): Likewise.
17 * progspace.h (scoped_restore_current_program_space): Likewise.
18 * python/python-internal.h (class gdbpy_enter): Likewise.
19 * regcache.h (regcache): Likewise.
20 * target-descriptions.c (struct tdesc_reg): Likewise.
21 (struct tdesc_type): Likewise.
22 (struct tdesc_feature): Likewise.
23 * ui-out.h (ui_out_emit_type): Likewise.
24
25 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
26
27 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
28 label abort_expression.
29
30 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
31
32 * common/buffer.c (buffer_xml_printf): Adjust.
33 * common/xml-utils.c (xml_escape_text): Change return type to
34 std::string, update code accordingly.
35 * common/xml-utils.h (xml_escape_text): Change return type to
36 std::string.
37 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
38 * windows-tdep.c (windows_xfer_shared_library): Adjust.
39 * unittests/xml-utils-selftests.c (test_xml_escape_text):
40 Adjust.
41
42 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
43
44 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
45 (SUBDIR_UNITTESTS_OBS): Add new object file.
46 * unittests/xml-utils-selftests.c: New file.
47
48 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
49
50 * common/selftest.h (selftest): New struct/interface.
51 (register_test): Add name parameter, add new overload.
52 (run_tests): Add filter parameter.
53 (for_each_selftest_ftype): New typedef.
54 (for_each_selftest): New declaration.
55 * common/selftest.c (tests): Change type to
56 map<string, unique_ptr<selftest>>.
57 (simple_selftest): New struct.
58 (register_test): New function.
59 (register_test): Add name parameter and use it.
60 (run_tests): Add filter parameter and use it. Add prints.
61 Adjust to vector -> map change.
62 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
63 registering selftests.
64 * arm-tdep.c (_initialize_arm_tdep): Likewise.
65 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
66 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
67 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
68 * findvar.c (_initialize_findvar): Likewise.
69 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
70 * maint.c (maintenance_selftest): Update call to run_tests.
71 (maintenance_info_selftests): New function.
72 (_initialize_maint_cmds): Register "maintenance info selftests"
73 command. Update "maintenance selftest" doc.
74 * regcache.c (_initialize_regcache): Add names when registering
75 selftests.
76 * rust-exp.y (_initialize_rust_exp): Likewise.
77 * selftest-arch.c (gdbarch_selftest): New struct.
78 (gdbarch_tests): Remove.
79 (register_test_foreach_arch): Add name parameter. Call
80 register_test.
81 (tests_with_arch): Remove, move most content to
82 gdbarch_selftest::operator().
83 (_initialize_selftests_foreach_arch): Remove.
84 * selftest-arch.h (register_test_foreach_arch): Add name
85 parameter.
86 (run_tests_with_arch): New declaration.
87 * utils-selftests.c (_initialize_utils_selftests): Add names
88 when registering selftests.
89 * utils.c (_initialize_utils): Likewise.
90 * unittests/array-view-selftests.c
91 (_initialize_array_view_selftests): Likewise.
92 * unittests/environ-selftests.c (_initialize_environ_selftests):
93 Likewise.
94 * unittests/function-view-selftests.c
95 (_initialize_function_view_selftests): Likewise.
96 * unittests/offset-type-selftests.c
97 (_initialize_offset_type_selftests): Likewise.
98 * unittests/optional-selftests.c
99 (_initialize_optional_selftests): Likewise.
100 * unittests/scoped_restore-selftests.c
101 (_initialize_scoped_restore_selftests): Likewise.
102 * NEWS: Document "maintenance selftest" and "maint info
103 selftests".
104
105 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
106
107 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
108 scoped_restore.
109
110 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
111
112 * mi/mi-main.c (mi_load_progress): Make uiout variable
113 a unique_ptr.
114
115 2017-09-15 Pedro Alves <palves@redhat.com>
116
117 * compile/compile-c-types.c (convert_enum, convert_int)
118 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
119
120 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
121
122 * dwarf2read.c (copy_string): Remove.
123 (parse_macro_definition): Replace copy_string with savestring.
124
125 2017-09-15 Yao Qi <yao.qi@linaro.org>
126
127 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
128 gdb_target_obs.
129 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
130 Likewise.
131 (i[34567]86-*-linux*): Likewise.
132
133 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
134
135 * dwarf2expr.h (dwarf_stack_value): Add constructor.
136 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
137 <stack>: Change type to std::vector.
138 <stack_len, stack_allocated>: Remove.
139 <grow_stack>: Remove.
140 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
141 (dwarf_expr_context::~dwarf_expr_context): Remove.
142 (dwarf_expr_context::grow_stack): Remove.
143 (dwarf_expr_context::push): Adjust.
144 (dwarf_expr_context::pop): Adjust.
145 (dwarf_expr_context::fetch): Adjust.
146 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
147 (dwarf_expr_context::stack_empty_p): Adjust.
148 (dwarf_expr_context::execute_stack_op): Adjust.
149
150 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
151
152 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
153 return type to bool.
154 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
155
156 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
157
158 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
159 Change type to bool.
160 (dwarf_stack_value) <in_stack_memory>: Likewise.
161 (dwarf_expr_context) <push_address>: Change parameter type to
162 bool.
163 <fetch_in_stack_memory>: Change return type to bool.
164 <push>: Change parameter type to bool.
165 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
166 to bool.
167 (dwarf_expr_context::push_address): Likewise.
168 (dwarf_expr_context::fetch_in_stack_memory): Change return type
169 to bool.
170 (dwarf_expr_context::execute_stack_op): Adjust.
171 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
172
173 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
174
175 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
176 (struct dwarf_expr_context) <n_pieces>: Remove.
177 <pieces>: Change type to std::vector.
178 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
179 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
180 pieces.
181 (dwarf_expr_context::add_piece): Adjust.
182 * dwarf2loc.c (struct piece_closure): Initialize fields.
183 <n_pieces>: Remove.
184 <pieces>: Change type to std::vector.
185 (allocate_piece_closure): Adjust, change parameter to
186 std::vector rvalue and std::move it to piece_closure.
187 (rw_pieced_value): Adjust.
188 (check_pieced_synthetic_pointer): Adjust.
189 (indirect_synthetic_pointer): Adjust.
190 (coerce_pieced_ref): Adjust.
191 (free_pieced_value_closure): Adjust. Use delete to free
192 piece_closure.
193 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
194 to allocate_piece_closure.
195 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
196
197 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
198
199 * probe.h (probe_ops_cp): Remove typedef.
200 (DEF_VEC_P (probe_ops_cp)): Remove.
201 (all_probe_ops): Change type to std::vector.
202 * probe.c (info_probes_for_ops): Adjust to vector change.
203 (probe_linespec_to_ops): Likewise.
204 (all_probe_ops): Change type to std::vector.
205 (_initialize_probe): Adjust to vector change.
206 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
207 * elfread.c (elf_get_probes): Likewise.
208 * stap-probe.c (_initialize_stap_probe): Likewise.
209
210 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
211
212 * probe.h (struct bound_probe): Define constructors.
213 * probe.c (bound_probe_s): Remove typedef.
214 (DEF_VEC_O (bound_probe_s)): Remove VEC.
215 (collect_probes): Change return type to std::vector, remove
216 cleanup.
217 (compare_probes): Return bool, change parameter type. Change
218 semantic to "less than".
219 (gen_ui_out_table_header_info): Change parameter to std::vector
220 and update.
221 (exists_probe_with_pops): Likewise.
222 (info_probes_for_ops): Update to std::vector change.
223 (enable_probes_command): Likewise.
224 (disable_probes_command): Likewise.
225
226 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
227
228 * probe.h (struct probe_ops) <get_probes>: Change parameter from
229 vec to std::vector.
230 * probe.c (parse_probes_in_pspace): Update.
231 (find_probes_in_objfile): Update.
232 (find_probe_by_pc): Update.
233 (collect_probes): Update.
234 (probe_any_get_probes): Update.
235 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
236 return type to reference to std::vector.
237 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
238 std::vector and update.
239 (dtrace_process_dof): Likewise.
240 (dtrace_get_probes): Likewise.
241 * elfread.c (elf_get_probes): Change return type to std::vector,
242 store an std::vector in bfd_data.
243 (probe_key_free): Update to std::vector.
244 * stap-probe.c (handle_stap_probe): Change parameter to
245 std::vector and update.
246 (stap_get_probes): Likewise.
247 * symfile-debug.c (debug_sym_get_probes): Change return type to
248 std::vector and update.
249
250 2017-09-11 Tom Tromey <tom@tromey.com>
251
252 * breakpoint.c (program_breakpoint_here_p): Update.
253 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
254 from make_show_memory_breakpoints_cleanup. Return a
255 scoped_restore_tmpl<int>.
256 (restore_show_memory_breakpoints): Remove.
257 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
258 * mem-break.c (memory_validate_breakpoint): Update.
259 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
260 (ia64_memory_remove_breakpoint): Update.
261 (ia64_breakpoint_from_pc): Update.
262 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
263 from make_show_memory_breakpoints_cleanup.
264
265 2017-09-11 Tom Tromey <tom@tromey.com>
266
267 * d-namespace.c (d_lookup_symbol): Use std::string.
268 (find_symbol_in_baseclass): Likewise.
269
270 2017-09-11 Tom Tromey <tom@tromey.com>
271
272 * ctf.c (ctf_start): Use std::string.
273
274 2017-09-11 Tom Tromey <tom@tromey.com>
275
276 * ada-lang.c (is_known_support_routine): Update.
277 (ada_unhandled_exception_name_addr_from_raise): Update.
278 * guile/scm-frame.c (gdbscm_frame_name): Update.
279 * python/py-frame.c (frapy_name): Update.
280 (frapy_function): Update.
281 * stack.h (find_frame_funname): Update.
282 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
283 (print_frame): Update.
284
285 2017-09-11 Tom Tromey <tom@tromey.com>
286
287 * findcmd.c (put_bits): Take a gdb::byte_vector.
288 (parse_find_args): Return gdb::byte_vector. "args" now const.
289 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
290 cleanups.
291 (find_command): Update.
292
293 2017-09-11 Tom Tromey <tom@tromey.com>
294
295 * cli/cli-script.c (class scoped_restore_hook_in): New.
296 (clear_hook_in_cleanup): Remove.
297 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
298 scoped_restore_hook_in.
299
300 2017-09-11 Tom Tromey <tom@tromey.com>
301
302 * cli/cli-script.c (restore_interp): Remove.
303 (read_command_lines): Use scoped_restore_interp.
304 * interps.c (scoped_restore_interp::set_temp): Rename from
305 interp_set_temp.
306 * interps.h (class scoped_restore_interp): New.
307 (interp_set_temp): Remove.
308
309 2017-09-11 Tom Tromey <tom@tromey.com>
310
311 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
312 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
313 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
314 scoped_restore.
315 (mi_cmd_break_insert_1): Update.
316 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
317 scoped_restore.
318
319 2017-09-11 Tom Tromey <tom@tromey.com>
320
321 * demangle.c (demangle_command): Update.
322 * breakpoint.c (disable_command): Update.
323 (enable_command): Update.
324 (find_location_by_number): Make "number" const. Use
325 get_number_trailer.
326 * cli/cli-utils.c (extract_arg): Return std::string.
327 * probe.c (parse_probe_linespec): Update. Change types.
328 (collect_probes): Take string arguments.
329 (parse_probe_linespec): Likewise.
330 (info_probes_for_ops): Update.
331 (enable_probes_command): Update.
332 (disable_probes_command): Update.
333 * break-catch-sig.c (catch_signal_split_args): Update.
334 * mi/mi-parse.c (mi_parse): Update.
335
336 2017-09-11 Tom Tromey <tom@tromey.com>
337
338 * language.h (language_enum): Make argument const.
339 * language.c (language_enum): Make argument const.
340
341 2017-09-11 Tom Tromey <tom@tromey.com>
342
343 * common/common-utils.h (skip_to_space): Remove macro, redeclare
344 as function.
345 (skip_to_space): Rename from skip_to_space_const.
346 * common/common-utils.c (skip_to_space): New function.
347 (skip_to_space): Rename from skip_to_space_const.
348 * cli/cli-utils.h (get_number): Rename from get_number_const.
349 (extract_arg): Rename from extract_arg_const.
350 * cli/cli-utils.c (get_number): Rename from get_number_const.
351 (extract_arg): Rename from extract_arg_const.
352 (number_or_range_parser::get_number): Use ::get_number.
353 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
354 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
355 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
356 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
357 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
358 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
359 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
360 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
361
362 2017-09-11 Tom Tromey <tom@tromey.com>
363
364 * python/python.c (do_start_initialization): Use
365 py-event-types.def to initialize types.
366 Define all object type structures.
367 * python/python-internal.h: Don't declare event initialization
368 functions.
369 * python/py-threadevent.c (thread_event_object_type): Don't
370 define.
371 * python/py-stopevent.c (stop_event_object_type): Don't define.
372 * python/py-signalevent.c (signal_event_object_type): Don't
373 declare or define.
374 * python/py-newobjfileevent.c (new_objfile_event_object_type)
375 (clear_objfiles_event_object_type): Don't declare or define.
376 * python/py-infevents.c (inferior_call_pre_event_object_type)
377 (inferior_call_post_event_object_type)
378 (register_changed_event_object_type)
379 (memory_changed_event_object_type): Don't declare or define.
380 * python/py-inferior.c (new_thread_event_object_type)
381 (new_inferior_event_object_type)
382 (inferior_deleted_event_object_type): Don't declare or define.
383 * python/py-exitedevent.c (exited_event_object_type): Don't
384 declare or define.
385 * python/py-evts.c (gdbpy_initialize_py_events): Use
386 py-all-events.def.
387 * python/py-events.h (thread_event_object_type): Don't declare.
388 (events_object): Use py-all-events.def.
389 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
390 py-event-types.def.
391 * python/py-event-types.def: New file.
392 * python/py-continueevent.c (create_continue_event_object): Don't
393 declare or define.
394 * python/py-bpevent.c (breakpoint_event_object_type): Don't
395 declare or define.
396 * python/py-all-events.def: New file.
397
398 2017-09-11 Tom Tromey <tom@tromey.com>
399
400 * python/py-threadevent.c (create_thread_event_object): Return
401 gdbpy_ref.
402 * python/py-stopevent.h (create_stop_event_object)
403 (create_breakpoint_event_object, create_signal_event_object):
404 Update.
405 * python/py-stopevent.c (create_stop_event_object): Return
406 gdbpy_ref.
407 (emit_stop_event): Update.
408 * python/py-signalevent.c (create_signal_event_object): Return
409 gdbpy_ref.
410 * python/py-infevents.c (create_inferior_call_event_object):
411 Update.
412 * python/py-event.h (create_event_object)
413 (create_thread_event_object): Update.
414 * python/py-event.c (create_event_object): Return gdbpy_ref.
415 * python/py-continueevent.c: Return gdbpy_ref.
416 * python/py-bpevent.c (create_breakpoint_event_object): Return
417 gdbpy_ref.
418
419 2017-09-11 Tom Tromey <tom@tromey.com>
420
421 PR python/15622:
422 * NEWS: Add entry.
423 * python/python.c (do_start_initialization): Initialize new event
424 types.
425 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
426 (gdbpy_initialize_inferior_deleted_event)
427 (gdbpy_initialize_new_thread_event): Declare.
428 * python/py-threadevent.c (create_thread_event_object): Add option
429 "thread" parameter.
430 * python/py-inferior.c (new_thread_event_object_type)
431 (new_inferior_event_object_type)
432 (inferior_deleted_event_object_type): Declare.
433 (python_new_inferior, python_inferior_deleted): New functions.
434 (add_thread_object): Emit new_thread event.
435 (gdbpy_initialize_inferior): Attach new functions to corresponding
436 observers.
437 (new_thread, new_inferior, inferior_deleted): Define new event
438 types.
439 * python/py-evts.c (gdbpy_initialize_py_events): Add new
440 registries.
441 * python/py-events.h (events_object) <new_inferior,
442 inferior_deleted, new_thread>: New fields.
443 * python/py-event.h (create_thread_event_breakpoint): Add optional
444 "thread" parameter.
445
446 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
449 check current_ui instead.
450 (internal_vproblem): Likewise.
451
452 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
453
454 * thread.c (print_thread_info_1): Remove unnecessary calls to
455 uiout->is_mi_like_p.
456
457 2017-09-09 Tom Tromey <tom@tromey.com>
458
459 * namespace.h (add_using_directive): Update.
460 * namespace.c (add_using_directive): Change type of excludes to
461 std::vector.
462 * dwarf2read.c (read_import_statement): Use std::vector.
463 (read_namespace): Update.
464 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
465
466 2017-09-09 Tom Tromey <tom@tromey.com>
467
468 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
469
470 2017-09-09 Tom Tromey <tom@tromey.com>
471
472 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
473
474 2017-09-09 Tom Tromey <tom@tromey.com>
475
476 * stack.c (func_command): Use gdb::def_vector.
477
478 2017-09-09 Tom Tromey <tom@tromey.com>
479
480 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
481 ui_out_emit_list, ui_out_emit_tuple.
482 (mi_cmd_var_update): Likewise.
483
484 2017-09-09 Tom Tromey <tom@tromey.com>
485
486 * mi/mi-interp.c (mi_user_selected_context_changed): Use
487 ui_out_redirect_pop.
488 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
489 ui_out_redirect_pop.
490 * utils.c (do_ui_out_redirect_pop)
491 (make_cleanup_ui_out_redirect_pop): Remove.
492 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
493 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
494 * ui-out.h (ui_out_redirect_pop): New class.
495
496 2017-09-09 Tom Tromey <tom@tromey.com>
497
498 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
499 (list_available_thread_groups, mi_cmd_list_thread_groups)
500 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
501 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
502 Likewise.
503
504 2017-09-09 Tom Tromey <tom@tromey.com>
505
506 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
507 ui_out_emit_tuple.
508
509 2017-09-09 Tom Tromey <tom@tromey.com>
510
511 * target.c (flash_erase_command): Use ui_out_emit_tuple.
512 * stack.c (print_frame): Use ui_out_emit_tuple.
513 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
514 (info_spu_mailbox_command, info_spu_dma_command)
515 (info_spu_proxydma_command): Likewise.
516 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
517 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
518 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
519 ui_out_emit_tuple.
520 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
521
522 2017-09-09 Tom Tromey <tom@tromey.com>
523
524 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
525 (class ui_out_emit_table): Update comment.
526 * ui-out.c (do_cleanup_table_end)
527 (make_cleanup_ui_out_table_begin_end): Remove.
528 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
529 (info_spu_dma_cmdlist): Likewise.
530 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
531 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
532 ui_out_emit_table.
533
534 2017-09-09 Tom Tromey <tom@tromey.com>
535
536 * thread.c (print_thread_info_1): Use ui_out_emit_table,
537 ui_out_emit_list, gdb::optional.
538
539 2017-09-09 John Baldwin <jhb@FreeBSD.org>
540
541 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
542 prototype.
543 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
544 prototype.
545 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
546 prototype.
547 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
548 * ada-exp.y: Remove _initialize_ada_exp prototype.
549 * ada-lang.c: Remove _initialize_ada_language prototype.
550 * ada-tasks.c: Remove _initialize_tasks prototype.
551 * addrmap.c: Remove _initialize_addrmap prototype.
552 * agent.c: Remove _initialize_agent prototype.
553 * aix-thread.c: Remove _initialize_aix_thread prototype.
554 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
555 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
556 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
557 prototype.
558 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
559 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
560 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
561 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
562 prototype.
563 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
564 prototype.
565 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
566 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
567 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
568 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
569 prototype.
570 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
571 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
572 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
573 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
574 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
575 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
576 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
577 prototype.
578 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
579 prototype.
580 * annotate.c: Remove _initialize_annotate prototype.
581 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
582 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
583 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
584 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
585 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
586 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
587 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
588 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
589 prototype.
590 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
591 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
592 * auto-load.c: Remove _initialize_auto_load prototype.
593 * auxv.c: Remove _initialize_auxv prototype.
594 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
595 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
596 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
597 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
598 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
599 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
600 prototype.
601 * break-catch-throw.c: Remove _initialize_break_catch_throw
602 prototype.
603 * breakpoint.c: Remove _initialize_breakpoint prototype.
604 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
605 * btrace.c: Remove _initialize_btrace prototype.
606 * charset.c: Remove _initialize_charset prototype.
607 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
608 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
609 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
610 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
611 * cli/cli-script.c: Remove _initialize_cli_script prototype.
612 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
613 * coffread.c: Remove _initialize_coffread prototype.
614 * compile/compile.c: Remove _initialize_compile prototype.
615 * complaints.c: Remove _initialize_complaints prototype.
616 * completer.c: Remove _initialize_completer prototype.
617 * copying.awk: Remove _initialize_copying prototype.
618 * copying.c: Regenerate.
619 * core-regset.c: Remove _initialize_core_regset prototype.
620 * corefile.c: Remove _initialize_core prototype.
621 * corelow.c: Remove _initialize_corelow prototype.
622 * cp-abi.c: Remove _initialize_cp_abi prototype.
623 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
624 * cp-support.c: Remove _initialize_cp_support prototype.
625 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
626 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
627 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
628 * ctf.c: Remove _initialize_ctf prototype.
629 * d-lang.c: Remove _initialize_d_language prototype.
630 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
631 prototype.
632 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
633 * dbxread.c: Remove _initialize_dbxread prototype.
634 * dcache.c: Remove _initialize_dcache prototype.
635 * demangle.c: Remove _initialize_demangler prototype.
636 * disasm-selftests.c: Remove _initialize_disasm_selftests
637 prototype.
638 * disasm.c: Remove _initialize_disasm prototype.
639 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
640 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
641 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
642 prototype.
643 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
644 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
645 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
646 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
647 * elfread.c: Remove _initialize_elfread prototype.
648 * exec.c: Remove _initialize_exec prototype.
649 * extension.c: Remove _initialize_extension prototype.
650 * f-lang.c: Remove _initialize_f_language prototype.
651 * f-valprint.c: Remove _initialize_f_valprint prototype.
652 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
653 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
654 * filesystem.c: Remove _initialize_filesystem prototype.
655 * findcmd.c: Remove _initialize_mem_search prototype.
656 * fork-child.c: Remove _initialize_fork_child prototype.
657 * frame-base.c: Remove _initialize_frame_base prototype.
658 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
659 * frame.c: Remove _initialize_frame prototype.
660 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
661 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
662 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
663 * gcore.c: Remove _initialize_gcore prototype.
664 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
665 * gdbarch.c: Regenerate.
666 * gdbarch.sh: Remove _initialize_gdbarch prototype.
667 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
668 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
669 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
670 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
671 * go-lang.c: Remove _initialize_go_language prototype.
672 * go32-nat.c: Remove _initialize_go32_nat prototype.
673 * guile/guile.c: Remove _initialize_guile prototype.
674 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
675 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
676 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
677 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
678 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
679 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
680 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
681 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
682 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
683 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
684 prototype.
685 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
686 prototype.
687 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
688 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
689 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
690 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
691 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
692 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
693 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
694 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
695 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
696 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
697 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
698 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
699 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
700 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
701 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
702 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
703 prototype.
704 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
705 prototype.
706 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
707 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
708 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
709 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
710 * infcall.c: Remove _initialize_infcall prototype.
711 * infcmd.c: Remove _initialize_infcmd prototype.
712 * inferior.c: Remove _initialize_inferiors prototype.
713 * inflow.c: Remove _initialize_inflow prototype.
714 * infrun.c: Remove _initialize_infrun prototype.
715 * interps.c: Remove _initialize_interpreter prototype.
716 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
717 * jit.c: Remove _initialize_jit prototype.
718 * language.c: Remove _initialize_language prototype.
719 * linux-fork.c: Remove _initialize_linux_fork prototype.
720 * linux-nat.c: Remove _initialize_linux_nat prototype.
721 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
722 * linux-thread-db.c: Remove _initialize_thread_db prototype.
723 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
724 * m2-lang.c: Remove _initialize_m2_language prototype.
725 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
726 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
727 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
728 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
729 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
730 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
731 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
732 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
733 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
734 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
735 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
736 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
737 * machoread.c: Remove _initialize_machoread prototype.
738 * macrocmd.c: Remove _initialize_macrocmd prototype.
739 * macroscope.c: Remove _initialize_macroscope prototype.
740 * maint.c: Remove _initialize_maint_cmds prototype.
741 * mdebugread.c: Remove _initialize_mdebugread prototype.
742 * memattr.c: Remove _initialize_mem prototype.
743 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
744 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
745 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
746 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
747 * mi/mi-main.c: Remove _initialize_mi_main prototype.
748 * microblaze-linux-tdep.c: Remove
749 _initialize_microblaze_linux_tdep prototype.
750 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
751 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
752 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
753 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
754 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
755 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
756 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
757 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
758 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
759 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
760 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
761 prototype.
762 * mipsread.c: Remove _initialize_mipsread prototype.
763 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
764 prototype.
765 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
766 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
767 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
768 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
769 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
770 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
771 prototype.
772 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
773 * nto-procfs.c: Remove _initialize_procfs prototype.
774 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
775 * objc-lang.c: Remove _initialize_objc_language prototype.
776 * objfiles.c: Remove _initialize_objfiles prototype.
777 * observer.c: Remove observer_test_first_notification_function,
778 observer_test_second_notification_function,
779 observer_test_third_notification_function, and
780 _initialize_observer prototypes.
781 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
782 * osabi.c: Remove _initialize_gdb_osabi prototype.
783 * osdata.c: Remove _initialize_osdata prototype.
784 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
785 * parse.c: Remove _initialize_parse prototype.
786 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
787 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
788 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
789 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
790 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
791 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
792 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
793 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
794 * printcmd.c: Remove _initialize_printcmd prototype.
795 * probe.c: Remove _initialize_probe prototype.
796 * proc-api.c: Remove _initialize_proc_api prototype.
797 * proc-events.c: Remove _initialize_proc_events prototype.
798 * proc-service.c: Remove _initialize_proc_service prototype.
799 * procfs.c: Remove _initialize_procfs prototype.
800 * psymtab.c: Remove _initialize_psymtab prototype.
801 * python/python.c: Remove _initialize_python prototype.
802 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
803 * record-btrace.c: Remove _initialize_record_btrace prototype.
804 * record-full.c: Remove _initialize_record_full prototype.
805 * record.c: Remove _initialize_record prototype.
806 * regcache.c: Remove _initialize_regcache prototype.
807 * reggroups.c: Remove _initialize_reggroup prototype.
808 * remote-notif.c: Remove _initialize_notif prototype.
809 * remote-sim.c: Remove _initialize_remote_sim prototype.
810 * remote.c: Remove _initialize_remote prototype.
811 * reverse.c: Remove _initialize_reverse prototype.
812 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
813 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
814 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
815 prototype.
816 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
817 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
818 * rust-exp.y: Remove _initialize_rust_exp prototype.
819 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
820 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
821 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
822 * score-tdep.c: Remove _initialize_score_tdep prototype.
823 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
824 prototype.
825 * ser-go32.c: Remove _initialize_ser_dos prototype.
826 * ser-mingw.c: Remove _initialize_ser_windows prototype.
827 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
828 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
829 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
830 * serial.c: Remove _initialize_serial prototype.
831 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
832 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
833 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
834 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
835 * skip.c: Remove _initialize_step_skip prototype.
836 * sol-thread.c: Remove _initialize_sol_thread prototype.
837 * solib-aix.c: Remove _initialize_solib_aix prototype.
838 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
839 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
840 * solib-frv.c: Remove _initialize_frv_solib prototype.
841 * solib-spu.c: Remove _initialize_spu_solib prototype.
842 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
843 * solib-target.c: Remove _initialize_solib_target prototype.
844 * solib.c: Remove _initialize_solib prototype.
845 * source.c: Remove _initialize_source prototype.
846 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
847 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
848 prototype.
849 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
850 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
851 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
852 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
853 prototype.
854 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
855 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
856 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
857 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
858 prototype.
859 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
860 prototype.
861 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
862 prototype.
863 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
864 prototype.
865 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
866 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
867 prototype.
868 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
869 prototype.
870 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
871 prototype.
872 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
873 prototype.
874 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
875 prototype.
876 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
877 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
878 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
879 * stabsread.c: Remove _initialize_stabsread prototype.
880 * stack.c: Remove _initialize_stack prototype.
881 * stap-probe.c: Remove _initialize_stap_probe prototype.
882 * std-regs.c: Remove _initialize_frame_reg prototype.
883 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
884 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
885 * symfile.c: Remove _initialize_symfile prototype.
886 * symmisc.c: Remove _initialize_symmisc prototype.
887 * symtab.c: Remove _initialize_symtab prototype.
888 * target-dcache.c: Remove _initialize_target_dcache prototype.
889 * target-descriptions.c: Remove _initialize_target_descriptions
890 prototype.
891 * thread.c: Remove _initialize_thread prototype.
892 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
893 prototype.
894 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
895 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
896 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
897 prototype.
898 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
899 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
900 * tracefile.c: Remove _initialize_tracefile prototype.
901 * tracepoint.c: Remove _initialize_tracepoint prototype.
902 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
903 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
904 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
905 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
906 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
907 * tui/tui-win.c: Remove _initialize_tui_win prototype.
908 * tui/tui.c: Remove _initialize_tui prototype.
909 * typeprint.c: Remove _initialize_typeprint prototype.
910 * user-regs.c: Remove _initialize_user_regs prototype.
911 * utils.c: Remove _initialize_utils prototype.
912 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
913 * valarith.c: Remove _initialize_valarith prototype.
914 * valops.c: Remove _initialize_valops prototype.
915 * valprint.c: Remove _initialize_valprint prototype.
916 * value.c: Remove _initialize_values prototype.
917 * varobj.c: Remove _initialize_varobj prototype.
918 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
919 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
920 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
921 * windows-nat.c: Remove _initialize_windows_nat,
922 _initialize_check_for_gdb_ini, and _initialize_loadable
923 prototypes.
924 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
925 * xcoffread.c: Remove _initialize_xcoffread prototype.
926 * xml-support.c: Remove _initialize_xml_support prototype.
927 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
928 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
929 prototype.
930 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
931 prototype.
932 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
933
934 2017-09-08 Keith Seitz <keiths@redhat.com>
935
936 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
937 field.
938
939 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
940
941 * f-valprint.c (f_val_print): Remove check for one byte
942 sized integers. Remove printing of character type.
943
944 2017-09-08 Frank Penczek <frank.penczek@intel.com>
945 Christoph Weinmann <christoph.t.weinmann@intel.com>
946 Bernhard Heckel <bernhard.heckel@intel.com>
947
948 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
949 to maintain proper indentation when printing pointers/refs.
950
951 2017-09-07 Joel Brobecker <brobecker@adacore.com>
952
953 GDB 8.0.1 released.
954
955 2017-09-07 Joel Brobecker <brobecker@adacore.com>
956
957 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
958
959 2017-09-05 Tom Tromey <tom@tromey.com>
960
961 * parse.c (funcall_chain): Now a std::vector.
962 (start_arglist, end_arglist): Simplify.
963 (free_funcalls): Remove.
964 (parse_exp_in_context_1): Remove cleanup.
965
966 2017-09-05 Tom Tromey <tom@tromey.com>
967
968 * go-exp.y (go_parse): Don't create a cleanup.
969
970 2017-09-05 Tom Tromey <tom@tromey.com>
971
972 * d-exp.y (PrimaryExpression): Use std::string.
973 (d_parse): Don't create a cleanup.
974
975 2017-09-05 Tom Tromey <tom@tromey.com>
976
977 * utils.c (do_clear_parser_state): Remove.
978 (make_cleanup_clear_parser_state): Remove.
979 * p-exp.y (pascal_parse): Use scoped_restore.
980 * m2-exp.y (m2_parse): Use scoped_restore.
981 * f-exp.y (f_parse): Use scoped_restore.
982 * d-exp.y (d_parse): Use scoped_restore.
983 * c-exp.y (c_parse): Use scoped_restore.
984 * ada-exp.y (ada_parse): Use scoped_restore.
985 * utils.h (make_cleanup_clear_parser_state): Remove.
986
987 2017-09-06 Keith Seitz <keiths@redhat.com>
988
989 * dwarf2read.c (dw2_linkage_name_attr): New function.
990 (dw2_linkage_name): New function.
991 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
992 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
993 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
994
995 2017-09-06 Kamil Rytarowski <n54@gmx.com>
996
997 * config/djgpp/djconfig.sh: Correct shell portability issue.
998
999 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1000
1001 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1002
1003 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1004
1005 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1006 * NEWS: Mention new FreeBSD/mips native configuration.
1007 * configure.host: Add aarch64*-*-freebsd*.
1008 * configure.nat: Likewise.
1009 * aarch64-fbsd-nat.c: New file.
1010
1011 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1012
1013 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1014 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1015 * NEWS: Mention new FreeBSD/aarch64 target.
1016 * configure.tgt: Add aarch64*-*-freebsd*.
1017 * aarch64-fbsd-tdep.c: New file.
1018 * aarch64-fbsd-tdep.h: New file.
1019
1020 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1021
1022 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1023
1024 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1025
1026 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1027 of TLS symbols.
1028
1029 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1030
1031 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1032 call.
1033
1034 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1035
1036 * infrun.c (follow_exec): Call add_thread after
1037 target_find_description.
1038
1039 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1040
1041 * infrun.c (handle_inferior_event_1): When exec'ing, read
1042 stop_pc after follow_exec.
1043
1044 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1045
1046 * remote.c (process_g_packet): Update error message.
1047
1048 2017-09-05 Yao Qi <yao.qi@linaro.org>
1049
1050 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1051 targets.
1052
1053 2017-09-05 Pedro Alves <palves@redhat.com>
1054
1055 * eval.c (eval_call, evaluate_funcall): New functions, factored
1056 out from ...
1057 (evaluate_subexp_standard): ... this.
1058
1059 2017-09-05 Yao Qi <yao.qi@linaro.org>
1060
1061 * amd64-tdep.c (amd64_target_description): Create target
1062 descriptions.
1063 (_initialize_amd64_tdep): Don't call functions
1064 initialize_tdesc_amd64_*. Add self tests.
1065 * arch/amd64.c (amd64_create_target_description): Add parameter
1066 is_linux. Call set_tdesc_osabi if is_linux is true.
1067 * arch/amd64.h (amd64_create_target_description): Update the
1068 declaration.
1069 * arch/i386.c (i386_create_target_description): Add parameter
1070 is_linux. Call set_tdesc_osabi if is_linux is true.
1071 * arch/i386.h (i386_create_target_description): Update
1072 declaration.
1073 * configure.tgt: Add i386.o to gdb_target_obs.
1074 * features/Makefile (XMLTOC): Remove i386/*.xml.
1075 * features/i386/amd64-avx-avx512.c: Remove.
1076 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1077 * features/i386/amd64-avx-mpx.c: Remove.
1078 * features/i386/amd64-avx.c: Remove.
1079 * features/i386/amd64-mpx.c: Remove.
1080 * features/i386/amd64.c: Remove.
1081 * features/i386/i386-avx-avx512.c: Remove.
1082 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1083 * features/i386/i386-avx-mpx.c: Remove.
1084 * features/i386/i386-avx.c: Remove.
1085 * features/i386/i386-mmx.c: Remove.
1086 * features/i386/i386-mpx.c: Remove.
1087 * features/i386/i386.c: Remove.
1088 * i386-tdep.c: Don't include features/i386/i386*.c., include
1089 target-descriptions.h and arch/i386.h.
1090 (i386_target_description): Create target descriptions.
1091 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1092 functions. Do self tests.
1093
1094 2017-09-05 Yao Qi <yao.qi@linaro.org>
1095
1096 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1097 * features/i386/amd64-avx-avx512-linux.c: Removed.
1098 * features/i386/amd64-avx-linux.c: Removed.
1099 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1100 * features/i386/amd64-avx-mpx-linux.c: Removed.
1101 * features/i386/amd64-linux.c: Removed.
1102 * features/i386/amd64-mpx-linux.c: Removed.
1103 * features/i386/x32-avx-avx512-linux.c: Removed.
1104 * features/i386/x32-avx-linux.c: Removed.
1105 * features/i386/x32-linux.c: Removed.
1106
1107 2017-09-05 Yao Qi <yao.qi@linaro.org>
1108
1109 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1110 features/i386/*.c.
1111 (amd64_linux_read_description): Call
1112 amd64_create_target_description.
1113 * arch/amd64.c: New file.
1114 * arch/amd64.h: New file.
1115 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1116 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1117
1118 2017-09-05 Yao Qi <yao.qi@linaro.org>
1119
1120 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1121 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1122 (amd64_linux_read_description): Create target descriptions.
1123 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1124 functions. Add unit tests.
1125 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1126 x32-core.xml.
1127 * features/i386/64bit-avx.c: Generated.
1128 * features/i386/64bit-avx512.c: Generated.
1129 * features/i386/64bit-core.c: Generated.
1130 * features/i386/64bit-linux.c: Generated.
1131 * features/i386/64bit-mpx.c: Generated.
1132 * features/i386/64bit-pkeys.c: Generated.
1133 * features/i386/64bit-segments.c: Generated.
1134 * features/i386/64bit-sse.c: Generated.
1135 * features/i386/x32-core.c: Generated.
1136 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1137 c files for amd64-linux and x32-linux.
1138
1139 2017-09-05 Yao Qi <yao.qi@linaro.org>
1140
1141 * amd64-linux-tdep.c (amd64_linux_read_description): New
1142 function.
1143 (amd64_linux_core_read_description): Call
1144 amd64_linux_read_description.
1145 (amd64_linux_init_abi): Likewise.
1146 (amd64_x32_linux_init_abi): Likewise.
1147 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1148 * x86-linux-nat.c (x86_linux_read_description): Call
1149 amd64_linux_read_description.
1150
1151 2017-09-05 Yao Qi <yao.qi@linaro.org>
1152
1153 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1154 comments.
1155
1156 2017-09-05 Yao Qi <yao.qi@linaro.org>
1157
1158 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1159 * features/i386/i386-avx-avx512-linux.c: Remove.
1160 * features/i386/i386-avx-linux.c: Remove.
1161 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1162 * features/i386/i386-avx-mpx-linux.c: Remove.
1163 * features/i386/i386-linux.c: Remove.
1164 * features/i386/i386-mmx-linux.c: Remove.
1165 * features/i386/i386-mpx-linux.c: Remove.
1166
1167 2017-09-05 Yao Qi <yao.qi@linaro.org>
1168
1169 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1170 (SFILES): Add arch/i386.c.
1171 (HFILES_NO_SRCDIR): Add arch/i386.h.
1172 * arch/i386.c: New file.
1173 * arch/i386.h: New file.
1174 * arch/tdesc.h (allocate_target_description): Declare.
1175 (set_tdesc_architecture): Declare.
1176 (set_tdesc_osabi): Declare.
1177 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1178 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1179 include arch/i386.h.
1180 (i386_linux_read_description): Remove code and call
1181 i386_create_target_description.
1182 (set_tdesc_architecture): New function.
1183 (set_tdesc_osabi): New function.
1184 * target-descriptions.h (allocate_target_description): Remove.
1185
1186 2017-09-05 Yao Qi <yao.qi@linaro.org>
1187
1188 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1189 * target-descriptions.c (tdesc_create_feature): Likewise, and
1190 adjust code.
1191 * features/i386/32bit-avx.c: Re-generated.
1192 * features/i386/32bit-avx512.c: Re-generated.
1193 * features/i386/32bit-core.c: Re-generated.
1194 * features/i386/32bit-linux.c: Re-generated.
1195 * features/i386/32bit-mpx.c: Re-generated.
1196 * features/i386/32bit-pkeys.c: Re-generated.
1197 * features/i386/32bit-sse.c: Re-generated.
1198
1199 2017-09-05 Yao Qi <yao.qi@linaro.org>
1200
1201 * regformats/regdef.h (struct reg): Override operator == and !=.
1202
1203 2017-09-05 Yao Qi <yao.qi@linaro.org>
1204
1205 * arch/tdesc.h: New file.
1206 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1207 * target-descriptions.c: Update comments.
1208 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1209 declarations.
1210 * features/i386/32bit-avx.c: Re-generated.
1211 * features/i386/32bit-avx512.c: Re-generated.
1212 * features/i386/32bit-core.c: Re-generated.
1213 * features/i386/32bit-linux.c: Re-generated.
1214 * features/i386/32bit-mpx.c: Re-generated.
1215 * features/i386/32bit-pkeys.c: Re-generated.
1216 * features/i386/32bit-sse.c: Re-generated.
1217
1218 2017-09-05 Yao Qi <yao.qi@linaro.org>
1219
1220 * regformats/regdat.sh: Update generated code.
1221
1222 2017-09-05 Yao Qi <yao.qi@linaro.org>
1223
1224 * regformats/regdat.sh: Adjust code order.
1225
1226 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1227
1228 * expprint.c (dump_subexp_body_standard): Use constant format
1229 string in fprintf_filtered call.
1230
1231 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1232
1233 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1234 NetBSD/i386.
1235 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1236
1237 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1238
1239 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1240
1241 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1242
1243 * bsd-kvm.o: Define _KMEMUSER.
1244 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1245 * configure: Regenerate.
1246
1247 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1248
1249 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1250 * i386-fbsd-nat.c: Likewise.
1251
1252 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1253
1254 * unittests/array-view-selftests.c: Add include of <array>.
1255
1256 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1257
1258 * spu-tdep.c (flush_ea_cache): Add missing argument to
1259 call_function_by_hand.
1260
1261 2017-09-04 Pedro Alves <palves@redhat.com>
1262
1263 * NEWS (Safer support for debugging with no debug info): New.
1264
1265 2017-09-04 Pedro Alves <palves@redhat.com>
1266
1267 * c-exp.y (function_method, function_method_void): Add current
1268 instance flags to TYPE_INSTANCE.
1269 * dwarf2read.c (check_modifier): New.
1270 (compute_delayed_physnames): Assert that only C++ adds delayed
1271 physnames. Mark fn_fields as const/volatile depending on
1272 physname.
1273 * eval.c (make_params): New type_instance_flags parameter. Use
1274 it as the new type's instance flags.
1275 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1276 flags element and pass it to make_params.
1277 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1278 instance flags element.
1279 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1280 * gdbtypes.h: Include "enum-flags.h".
1281 (type_instance_flags): New enum-flags type.
1282 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
1283 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
1284 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
1285 (follow_type_instance_flags): New function.
1286 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
1287 * parser-defs.h (follow_type_instance_flags): Declare.
1288 * valops.c (value_struct_elt_for_reference): const/volatile must
1289 match too.
1290
1291 2017-09-04 Pedro Alves <palves@redhat.com>
1292
1293 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
1294 function/method scopes; lookup the nested name as a function local
1295 static variable.
1296
1297 2017-09-04 Pedro Alves <palves@redhat.com>
1298
1299 (%type <voidval>): Add function_method.
1300 * c-exp.y (exp): New production for calls with no arguments.
1301 (function_method, function_method_void_or_typelist): New
1302 productions.
1303 (exp): New production for "method()::static_var".
1304 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
1305 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1306 Handle OP_FUNC_STATIC_VAR.
1307 * parse.c (operator_length_standard):
1308 Handle OP_FUNC_STATIC_VAR.
1309
1310 2017-09-04 Pedro Alves <palves@redhat.com>
1311
1312 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
1313 handling.
1314 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1315 Ditto.
1316 * parse.c (operator_length_standard, operator_check_standard):
1317 Ditto.
1318 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
1319
1320 2017-09-04 Pedro Alves <palves@redhat.com>
1321
1322 * ax-gdb.c: Include "typeprint.h".
1323 (gen_expr_for_cast): New function.
1324 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
1325 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
1326 type is unknown.
1327 * dwarf2read.c (new_symbol_full): Fallback to int instead of
1328 nodebug_data_symbol.
1329 * eval.c: Include "typeprint.h".
1330 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
1331 Error out if symbol has unknown type.
1332 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
1333 evaluate_subexp_for_cast.
1334 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
1335 OP_VAR_MSYM_VALUE.
1336 (evaluate_subexp_for_cast): New function.
1337 * gdbtypes.c (init_nodebug_var_type): New function.
1338 (objfile_type): Use it to initialize types of variables with no
1339 debug info.
1340 * typeprint.c (error_unknown_type): New.
1341 * typeprint.h (error_unknown_type): New declaration.
1342 * compile/compile-c-types.c (convert_type_basic): Handle
1343 TYPE_CODE_ERROR; warn and fallback to int for variables with
1344 unknown type.
1345
1346 2017-09-04 Pedro Alves <palves@redhat.com>
1347
1348 * eval.c (evaluate_var_value): New function, factored out from ...
1349 (evaluate_subexp_standard): ... here.
1350
1351 2017-09-04 Pedro Alves <palves@redhat.com>
1352
1353 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
1354 Remove useless assignments to 'op'.
1355
1356 2017-09-04 Pedro Alves <palves@redhat.com>
1357
1358 * eval.c (eval_skip_value): New function.
1359 (evaluate_subexp_standard): Use it.
1360
1361 2017-09-04 Pedro Alves <palves@redhat.com>
1362
1363 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
1364 function name from symbol/minsym and pass it to
1365 error_call_unknown_return_type.
1366
1367 2017-09-04 Pedro Alves <palves@redhat.com>
1368
1369 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
1370 * ax-gdb.c (gen_msym_var_ref): New function.
1371 (gen_expr): Handle OP_VAR_MSYM_VALUE.
1372 * eval.c (evaluate_var_msym_value): New function.
1373 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
1374 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
1375 to call_function_by_hand.
1376 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1377 Handle OP_VAR_MSYM_VALUE.
1378 (union exp_element) <msymbol>: New field.
1379 * minsyms.h (struct type): Forward declare.
1380 (find_minsym_type_and_address): Declare.
1381 * parse.c (write_exp_elt_msym): New function.
1382 (write_exp_msymbol): Delete, refactored as ...
1383 (find_minsym_type_and_address): ... this new function.
1384 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
1385 (operator_length_standard, operator_check_standard): Handle
1386 OP_VAR_MSYM_VALUE.
1387 * std-operator.def (OP_VAR_MSYM_VALUE): New.
1388
1389 2017-09-04 Pedro Alves <palves@redhat.com>
1390
1391 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
1392 TYPE_GNU_IFUNC specially here. Throw error if return type is
1393 unknown.
1394 * ada-typeprint.c (print_func_type): Handle functions with unknown
1395 return type.
1396 * c-typeprint.c (c_type_print_base): Handle functions and methods
1397 with unknown return type.
1398 * compile/compile-c-symbols.c (convert_symbol_bmsym)
1399 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
1400 * compile/compile-c-types.c: Include "objfiles.h".
1401 (convert_func): For functions with unknown return type, warn and
1402 default to int.
1403 * compile/compile-object-run.c (compile_object_run): Adjust call
1404 to call_function_by_hand_dummy.
1405 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
1406 call_function_by_hand.
1407 * eval.c (evaluate_subexp_standard): Adjust calls to
1408 call_function_by_hand. Handle functions and methods with unknown
1409 return type. Pass expect_type to call_function_by_hand.
1410 * f-typeprint.c (f_type_print_base): Handle functions with unknown
1411 return type.
1412 * gcore.c (call_target_sbrk): Adjust call to
1413 call_function_by_hand.
1414 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
1415 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
1416 an integer address type instead of nodebug.
1417 * guile/scm-value.c (gdbscm_value_call): Adjust call to
1418 call_function_by_hand.
1419 * infcall.c (error_call_unknown_return_type): New function.
1420 (call_function_by_hand): New "default_return_type" parameter.
1421 Pass it down.
1422 (call_function_by_hand_dummy): New "default_return_type"
1423 parameter. Use it instead of defaulting to int. If there's no
1424 default and the return type is unknown, throw an error. If
1425 there's a default return type, and the called function has no
1426 debug info, then assume the function is prototyped.
1427 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
1428 New "default_return_type" parameter.
1429 (error_call_unknown_return_type): New declaration.
1430 * linux-fork.c (call_lseek): Cast return type of lseek.
1431 (inferior_call_waitpid, checkpoint_command): Adjust calls to
1432 call_function_by_hand.
1433 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
1434 calls to call_function_by_hand.
1435 * m2-typeprint.c (m2_procedure): Handle functions with unknown
1436 return type.
1437 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1438 (value_nsstring, print_object_command): Adjust calls to
1439 call_function_by_hand.
1440 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
1441 functions with unknown return type.
1442 (pascal_type_print_func_varspec_suffix): New function.
1443 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
1444 TYPE_CODE_METHOD>: Use it.
1445 * python/py-value.c (valpy_call): Adjust call to
1446 call_function_by_hand.
1447 * rust-lang.c (rust_evaluate_funcall): Adjust call to
1448 call_function_by_hand.
1449 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
1450 call_function_by_hand.
1451 * valops.c (value_allocate_space_in_inferior): Adjust call to
1452 call_function_by_hand.
1453 * typeprint.c (type_print_unknown_return_type): New function.
1454 * typeprint.h (type_print_unknown_return_type): New declaration.
1455
1456 2017-09-04 Pedro Alves <palves@redhat.com>
1457
1458 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
1459 types with more than one parameter as prototyped.
1460
1461 2017-09-04 Pedro Alves <palves@redhat.com>
1462
1463 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
1464 (disassemble_command): Use gdb_disassembly_flags instead of bare
1465 int.
1466 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
1467 (dump_insns, do_mixed_source_and_assembly_deprecated)
1468 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
1469 Use gdb_disassembly_flags instead of bare int.
1470 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
1471 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
1472 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
1473 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
1474 (enum gdb_disassembly_flag): ... values of this new enumeration.
1475 (gdb_disassembly_flags): Define.
1476 (gdb_disassembly)
1477 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
1478 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
1479 gdb_disassembly_flags instead of bare int.
1480 * record-btrace.c (btrace_insn_history)
1481 (record_btrace_insn_history, record_btrace_insn_history_range)
1482 (record_btrace_insn_history_from): Use gdb_disassembly_flags
1483 instead of bare int.
1484 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
1485 Use gdb_disassembly_flags instead of bare int.
1486 * target-debug.h (target_debug_print_gdb_disassembly_flags):
1487 Define.
1488 * target-delegates.c: Regenerate.
1489 * target.c (target_insn_history, target_insn_history_from)
1490 (target_insn_history_range): Use gdb_disassembly_flags instead of
1491 bare int.
1492 * target.h: Include "disasm.h".
1493 (struct target_ops) <to_insn_history, to_insn_history_from,
1494 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
1495 int.
1496 (target_insn_history, target_insn_history_from)
1497 (target_insn_history_range): Use gdb_disassembly_flags instead of
1498 bare int.
1499
1500 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1501
1502 * cli/cli-script.c (build_command_line): For if/while commands,
1503 check whether args is empty.
1504
1505 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1506
1507 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
1508 (enum command_control_type): Likewise.
1509 (struct command_line): Likewise.
1510 (free_command_lines): Likewise.
1511 (struct command_lines_deleter): Likewise.
1512 (command_line_up): Likewise.
1513 (read_command_lines): Likewise.
1514 (read_command_lines_1): Likewise.
1515 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
1516 (enum command_control_type): Likewise.
1517 (struct command_line): Likewise.
1518 (free_command_lines): Likewise.
1519 (struct command_lines_deleter): Likewise.
1520 (command_line_up): Likewise.
1521 (read_command_lines): Likewise.
1522 (read_command_lines_1): Likewise.
1523 * breakpoint.h: Include cli/cli-script.h.
1524 * extension-priv.h: Likewise.
1525 * gdbcmd.h: Likewise.
1526
1527 2017-09-04 Pedro Alves <palves@redhat.com>
1528
1529 * ada-lang.c (is_known_support_routine): Move sal declaration to
1530 where it is initialized.
1531 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
1532 (parse_breakpoint_sals, decode_static_tracepoint_spec)
1533 (clear_command, update_static_tracepoint): Remove init_sal
1534 references. Move declarations closer to initializations.
1535 * cli/cli-cmds.c (list_command): Move sal declarations closer to
1536 initializations.
1537 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
1538 references. Move sal declarations closer to initializations.
1539 * frame.c (find_frame_sal): Return a symtab_and_line via function
1540 return instead of output parameter. Remove init_sal references.
1541 * frame.h (find_frame_sal): Return a symtab_and_line via function
1542 return instead of output parameter.
1543 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
1544 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
1545 instead of memset.
1546 (gdbscm_find_pc_line): Remove init_sal reference.
1547 * infcall.c (call_function_by_hand_dummy): Remove init_sal
1548 references. Move declarations closer to initializations.
1549 * infcmd.c (set_step_frame): Update. Move declarations closer to
1550 initializations.
1551 (finish_backward): Remove init_sal references. Move declarations
1552 closer to initializations.
1553 * infrun.c (process_event_stop_test, handle_step_into_function)
1554 (insert_hp_step_resume_breakpoint_at_frame)
1555 (insert_step_resume_breakpoint_at_caller): Likewise.
1556 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
1557 (symbol_to_sal): Likewise.
1558 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
1559 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
1560 to its initialization.
1561 * reverse.c (save_bookmark_command): Use new/delete. Remove
1562 init_sal references. Move declarations closer to initializations.
1563 * source.c (get_current_source_symtab_and_line): Remove brace
1564 initialization.
1565 (set_current_source_symtab_and_line): Now takes the sal by const
1566 reference. Remove brace initialization.
1567 (line_info): Remove init_sal reference.
1568 * source.h (set_current_source_symtab_and_line): Now takes a
1569 symtab_and_line via const reference.
1570 * stack.c (set_current_sal_from_frame): Adjust.
1571 (print_frame_info): Adjust.
1572 (get_last_displayed_sal): Return the sal via function return
1573 instead of via output parameter. Simplify.
1574 (frame_info): Adjust.
1575 * stack.h (get_last_displayed_sal): Return the sal via function
1576 return instead of via output parameter.
1577 * symtab.c (init_sal): Delete.
1578 (find_pc_sect_line): Remove init_sal references. Move
1579 declarations closer to initializations.
1580 (find_function_start_sal): Remove init_sal references. Move
1581 declarations closer to initializations.
1582 * symtab.h (struct symtab_and_line): In-class initialize all
1583 fields.
1584 * tracepoint.c (set_traceframe_context)
1585 (print_one_static_tracepoint_marker): Remove init_sal references.
1586 Move declarations closer to initializations.
1587 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
1588 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
1589 declarations closer to initializations.
1590 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
1591 init_sal references. Adjust.
1592
1593 2017-09-04 Pedro Alves <palves@redhat.com>
1594
1595 * ax-gdb.c (agent_command_1): Use range-for.
1596 * break-catch-throw.c (re_set_exception_catchpoint): Update.
1597 * breakpoint.c: Include "common/array-view.h".
1598 (init_breakpoint_sal, create_breakpoint_sal): Change sals
1599 parameter from struct symtabs_and_lines to
1600 array_view<symtab_and_line>. Adjust. Use range-for. Update.
1601 (breakpoint_sals_to_pc): Change sals parameter from struct
1602 symtabs_and_lines to std::vector reference.
1603 (check_fast_tracepoint_sals): Change sals parameter from struct
1604 symtabs_and_lines to std::array_view. Use range-for.
1605 (decode_static_tracepoint_spec): Return a std::vector instead of
1606 symtabs_and_lines. Update.
1607 (create_breakpoint): Update.
1608 (break_range_command, until_break_command, clear_command): Update.
1609 (base_breakpoint_decode_location, bkpt_decode_location)
1610 (bkpt_probe_create_sals_from_location)
1611 (bkpt_probe_decode_location, tracepoint_decode_location)
1612 (tracepoint_probe_decode_location)
1613 (strace_marker_create_sals_from_location): Return a std::vector
1614 instead of symtabs_and_lines.
1615 (strace_marker_create_breakpoints_sal): Update.
1616 (strace_marker_decode_location): Return a std::vector instead of
1617 symtabs_and_lines. Update.
1618 (update_breakpoint_locations): Change struct symtabs_and_lines
1619 parameters to gdb::array_view. Adjust.
1620 (location_to_sals): Return a std::vector instead of
1621 symtabs_and_lines. Update.
1622 (breakpoint_re_set_default): Use std::vector instead of struct
1623 symtabs_and_lines.
1624 (decode_location_default): Return a std::vector instead of
1625 symtabs_and_lines. Update.
1626 * breakpoint.h: Include "common/array-view.h".
1627 (struct breakpoint_ops) <decode_location>: Now returns a
1628 std::vector instead of returning a symtabs_and_lines via output
1629 parameter.
1630 (update_breakpoint_locations): Change sals parameters to use
1631 gdb::array_view.
1632 * cli/cli-cmds.c (edit_command, list_command): Update to use
1633 std::vector and gdb::array_view.
1634 (ambiguous_line_spec): Adjust to use gdb::array_view and
1635 range-for.
1636 (compare_symtabs): Rename to ...
1637 (cmp_symtabs): ... this. Change parameters to symtab_and_line
1638 const reference and adjust.
1639 (filter_sals): Rewrite using std::vector and standard algorithms.
1640 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
1641 (jump_command): Update to use std::vector.
1642 * linespec.c (struct linespec_state) <canonical_names>: Update
1643 comment.
1644 (add_sal_to_sals_basic): Delete.
1645 (add_sal_to_sals, filter_results, convert_results_to_lsals)
1646 (decode_line_2, create_sals_line_offset)
1647 (convert_address_location_to_sals, convert_linespec_to_sals)
1648 (convert_explicit_location_to_sals, parse_linespec)
1649 (event_location_to_sals, decode_line_full, decode_line_1)
1650 (decode_line_with_current_source)
1651 (decode_line_with_last_displayed, decode_objc)
1652 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
1653 (linespec_result::~linespec_result): Adjust to use std::vector
1654 instead of symtabs_and_lines.
1655 * linespec.h (linespec_sals::sals): Now a std::vector.
1656 (struct linespec_result): Use std::vector, bool, and in-class
1657 initialization.
1658 (decode_line_1, decode_line_with_current_source)
1659 (decode_line_with_last_displayed): Return std::vector.
1660 * macrocmd.c (info_macros_command): Use std::vector.
1661 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
1662 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
1663 std::vector.
1664 * probe.h (parse_probes): Return a std::vector.
1665 * python/python.c (gdbpy_decode_line): Use std::vector and
1666 gdb::array_view.
1667 * source.c (select_source_symtab, line_info): Use std::vector.
1668 * stack.c (func_command): Use std::vector.
1669 * symtab.h (struct symtabs_and_lines): Delete.
1670 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
1671
1672 2017-09-04 Pedro Alves <palves@redhat.com>
1673
1674 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1675 unittests/array-view-selftests.c.
1676 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
1677 * common/array-view.h: New file.
1678 * unittests/array-view-selftests.c: New file.
1679
1680 2017-09-04 Pedro Alves <palves@redhat.com>
1681
1682 * cli/cli-cmds.c (edit_command): Pass message to
1683 ambiguous_line_spec.
1684 (list_command): Pass message to ambiguous_line_spec. Say
1685 "first"/"last" instead of "start" and "end" to be consistent with
1686 the manual.
1687 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
1688 them to print formatted message.
1689
1690 2017-09-04 Pedro Alves <palves@redhat.com>
1691
1692 * btrace.c (ftrace_add_pt): Pass btrace_insn to
1693 ftrace_update_insns by reference instead of pointer.
1694
1695 2017-09-04 Yao Qi <yao.qi@linaro.org>
1696
1697 * i386-go32-tdep.c: Include x86-xstate.h.
1698 (i386_go32_init_abi): Call i386_target_description.
1699 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
1700 if xcr0 is X86_XSTATE_X87_MASK.
1701 * i386-tdep.h (tdesc_i386): Remove the declaration.
1702 (tdesc_i386_mmx): Likewise.
1703
1704 2017-09-04 Yao Qi <yao.qi@linaro.org>
1705
1706 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
1707 X86_XSTATE_SSE_MASK instead of 0.
1708
1709 2017-09-04 Yao Qi <yao.qi@linaro.org>
1710
1711 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
1712 i386_target_description.
1713 * i386-fbsd-nat.c (i386fbsd_read_description): Call
1714 i386_target_description.
1715 * i386-tdep.c (i386_gdbarch_init): Likewise.
1716
1717 2017-09-04 Yao Qi <yao.qi@linaro.org>
1718
1719 * amd64-darwin-tdep.c: Include "x86-xstate.h".
1720 (x86_darwin_init_abi_64): Call amd64_target_description.
1721 * amd64-dicos-tdep.c: Likewise.
1722 * amd64-fbsd-nat.c: Likewise.
1723 * amd64-fbsd-tdep.c: Likewise.
1724 * amd64-nbsd-tdep.c: Likewise.
1725 * amd64-obsd-tdep.c: Likewise.
1726 * amd64-sol2-tdep.c: Likewise.
1727 * amd64-windows-tdep.c: Likewise.
1728 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
1729
1730 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1731
1732 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
1733 (btrace_function) <insn>: Change type to use std::vector.
1734 * btrace.c (ftrace_debug, ftrace_call_num_insn,
1735 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
1736 ftrace_update_insns, ftrace_compute_global_level_offset,
1737 btrace_stitch_bts, btrace_clear, btrace_insn_get,
1738 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
1739 change to std::vector.
1740 (ftrace_update_insns): Adjust to change to std::vector, change
1741 type of INSN parameter.
1742 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
1743 * record-btrace.c (btrace_call_history_insn_range,
1744 btrace_compute_src_line_range,
1745 record_btrace_frame_prev_register): Adjust to change to
1746 std::vector.
1747 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
1748 to change to std::vector.
1749
1750 2017-09-03 Tom Tromey <tom@tromey.com>
1751
1752 * corefile.c (reopen_exec_file): Use std::string.
1753
1754 2017-09-03 Tom Tromey <tom@tromey.com>
1755
1756 * compile/compile.c (compile_register_name_mangled): Return
1757 std::string.
1758 * compile/compile-loc2c.c (pushf_register_address): Update.
1759 (pushf_register): Update.
1760 * compile/compile-c-types.c (convert_array): Update.
1761 * compile/compile-c-symbols.c (generate_vla_size): Update.
1762 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
1763 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
1764 (convert_one_symbol): Update.
1765 (generate_c_for_for_one_variable): Update.
1766 * compile/compile-c-support.c (c_get_range_decl_name): Return a
1767 std::string.
1768 (generate_register_struct): Update.
1769 * compile/compile-internal.h (c_get_range_decl_name): Return a
1770 std::string.
1771 (compile_register_name_mangled): Return std::string.
1772
1773 2017-09-03 Tom Tromey <tom@tromey.com>
1774
1775 * utils.c (perror_string): Return a std::string.
1776 (throw_perror_with_name, perror_warning_with_name): Update.
1777
1778 2017-09-03 Tom Tromey <tom@tromey.com>
1779
1780 * demangle.c (demangle_command): Use std::string,
1781 unique_xmalloc_ptr.
1782
1783 2017-09-03 Tom Tromey <tom@tromey.com>
1784
1785 * cli/cli-setshow.c (do_set_command): Use std::string.
1786
1787 2017-09-03 Tom Tromey <tom@tromey.com>
1788
1789 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
1790
1791 2017-09-03 Tom Tromey <tom@tromey.com>
1792
1793 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
1794
1795 2017-09-03 Tom Tromey <tom@tromey.com>
1796
1797 * mi/mi-cmd-env.c (env_execute_cli_command): Use
1798 gdb::unique_xmalloc_ptr.
1799
1800 2017-09-03 Tom Tromey <tom@tromey.com>
1801
1802 * thread.c (print_thread_info_1): Use string_printf.
1803 (thread_apply_command, thread_apply_all_command): Use
1804 std::string.
1805
1806 2017-09-03 Tom Tromey <tom@tromey.com>
1807
1808 * valprint.c (val_print_string): Update.
1809 * gdbcore.h (memory_error_message): Return std::string.
1810 * corefile.c (memory_error_message): Return std::string.
1811 (memory_error): Update.
1812 * breakpoint.c (insert_bp_location): Update.
1813
1814 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
1815
1816 * target/waitstatus.h (target_waitstatus_to_string): Change
1817 return type to std::string.
1818 * target/waitstatus.c (target_waitstatus_to_string): Return
1819 std::string.
1820 * target.h (target_waitstatus_to_string): Remove declaration.
1821 * infrun.c (resume, clear_proceed_status_thread,
1822 print_target_wait_results, do_target_wait, save_waitstatus,
1823 stop_all_threads): Adjust.
1824 * record-btrace.c (record_btrace_wait): Adjust.
1825 * target-debug.h
1826 (target_debug_print_struct_target_waitstatus_p): Adjust.
1827
1828 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1829
1830 PR gdb/22046
1831 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
1832 detection.
1833
1834 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1835
1836 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
1837 for setting/unsetting environment variables on the remote target.
1838 (New remote packets): Add entries for QEnvironmentHexEncoded,
1839 QEnvironmentUnset and QEnvironmentReset.
1840 * common/environ.c (gdb_environ::operator=): Extend method to
1841 handle m_user_set_env_list and m_user_unset_env_list.
1842 (gdb_environ::clear): Likewise.
1843 (match_var_in_string): Change type of first parameter from 'char
1844 *' to 'const char *'.
1845 (gdb_environ::set): Extend method to handle
1846 m_user_set_env_list and m_user_unset_env_list.
1847 (gdb_environ::unset): Likewise.
1848 (gdb_environ::clear_user_set_env): New method.
1849 (gdb_environ::user_set_envp): Likewise.
1850 (gdb_environ::user_unset_envp): Likewise.
1851 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
1852 m_user_unset_env_list on move constructor/assignment.
1853 (unset): Add new default parameter 'update_unset_list = true'.
1854 (clear_user_set_env): New method.
1855 (user_set_envp): Likewise.
1856 (user_unset_envp): Likewise.
1857 (m_user_set_env_list): New std::set.
1858 (m_user_unset_env_list): Likewise.
1859 * common/rsp-low.c (hex2str): New function.
1860 (bin2hex): New overload for bin2hex function.
1861 * common/rsp-low.c (hex2str): New prototype.
1862 (str2hex): New overload prototype.
1863 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
1864 QEnvironmentUnset and QEnvironmentReset.
1865 (remote_protocol_features): Add QEnvironmentHexEncoded,
1866 QEnvironmentUnset and QEnvironmentReset packets.
1867 (send_environment_packet): New function.
1868 (extended_remote_environment_support): Likewise.
1869 (extended_remote_create_inferior): Call
1870 extended_remote_environment_support.
1871 (_initialize_remote): Add QEnvironmentHexEncoded,
1872 QEnvironmentUnset and QEnvironmentReset packet configs.
1873 * unittests/environ-selftests.c (gdb_selftest_env_var):
1874 New variable.
1875 (test_vector_initialization): New function.
1876 (test_init_from_host_environ): Likewise.
1877 (test_reinit_from_host_environ): Likewise.
1878 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
1879 Likewise.
1880 (test_unset_set_empty_vector): Likewise.
1881 (test_vector_clear): Likewise.
1882 (test_std_move): Likewise.
1883 (test_move_constructor):
1884 (test_self_move): Likewise.
1885 (test_set_unset_reset): Likewise.
1886 (run_tests): Rewrite in terms of the functions above.
1887
1888 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
1889
1890 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
1891 (adi_available): Use a temp variable of type CORE_ADDR as argument
1892 3 when calling target_auxv_search.
1893 (adi_normalize_address): Use masks and xor operators to calculate
1894 normalized address.
1895 (adi_read_versions, adi_write_versions, adi_print_versions)
1896 (do_examine, do_assign): Use paddress.
1897
1898 2017-08-29 John Baldwin <jhb@FreeBSD.org>
1899
1900 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
1901 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
1902 out of loop and add supply of FIR.
1903 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
1904 add collect of FIR.
1905
1906 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
1907
1908 PR gdb/21827
1909 * cli/cli-script.c (define_command): Don't convert command name
1910 to lower case.
1911
1912 2017-08-25 Joel Brobecker <brobecker@adacore.com>
1913
1914 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
1915 Update all callers accordingly. Remove all code blocks handling
1916 the case where DISPP is not NULL.
1917
1918 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1919
1920 PR symtab/22003
1921 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
1922 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
1923 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
1924
1925 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1926
1927 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
1928 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
1929 (read_comp_units_from_section): New parameter abbrev_section, use
1930 read_and_check_comp_unit_head, allocate signatured_type if needed.
1931 (create_all_comp_units): Update read_comp_units_from_section caller.
1932
1933 2017-08-23 Pedro Alves <palves@redhat.com>
1934
1935 PR remote/21852
1936 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
1937 to null_ptid and switch to thread without reading the registers
1938 after adding the inferior.
1939
1940 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1941
1942 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
1943 compile-gcc.
1944 * compile/compile.c (compile_gcc, show_compile_gcc): New.
1945 (compile_to_object): Implement compile_gcc.
1946 (_initialize_compile): Install "set compile-gcc". Initialize
1947 compile_gcc.
1948
1949 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1950
1951 * compile/compile.c (compile_to_object): Conditionally call
1952 set_verbose. Conditionally call compile or compile_v0.
1953
1954 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
1955
1956 * sparc64-tdep.h: (adi_normalize_address): New export.
1957 * sparc-nat.h: (open_adi_tag_fd): New export.
1958 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
1959 * sparc64-linux-tdep.c:
1960 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
1961 (sparc64_linux_handle_segmentation_fault): New function.
1962 (sparc64_linux_init_abi): Register
1963 sparc64_linux_handle_segmentation_fault
1964 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
1965 (sparc64_addr_bits_remove): New function.
1966 (sparc64_init_abi): Register sparc64_addr_bits_remove.
1967 (MAX_PROC_NAME_SIZE): New macro.
1968 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
1969 (sparc64adilist): New variable.
1970 (adi_proc_list): New variable.
1971 (find_adi_info): New function.
1972 (add_adi_info): New function.
1973 (get_adi_info_proc): New function.
1974 (get_adi_info): New function.
1975 (info_adi_command): New function.
1976 (read_maps_entry): New function.
1977 (adi_available): New function.
1978 (adi_normalize_address): New function.
1979 (adi_align_address): New function.
1980 (adi_convert_byte_count): New function.
1981 (adi_tag_fd): New function.
1982 (adi_is_addr_mapped): New function.
1983 (adi_read_versions): New function.
1984 (adi_write_versions): New function.
1985 (adi_print_versions): New function.
1986 (do_examine): New function.
1987 (do_assign): New function.
1988 (adi_examine_command): New function.
1989 (adi_assign_command): New function.
1990 (_initialize_sparc64_adi_tdep): New function.
1991
1992 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
1993
1994 * breakpoint.c (breakpoints_info): Rename to ...
1995 (info_breakpoints_command): ... this.
1996 (watchpoints_info): Rename to ...
1997 (info_watchpoints_command): ... this.
1998 (tracepoints_info): Rename to ...
1999 (info_tracepoints_command): ... this.
2000 (_initialize_breakpoint): Adjust.
2001 * dcache.c (dcache_info): Rename to ...
2002 (info_display_command): ... this.
2003 (_initialize_dcache): Adjust.
2004 * frame.h (args_info): Rename to ...
2005 (info_args_command): ... this.
2006 (locals_info): Rename to ...
2007 (info_locals_command): ... this.
2008 * infcmd.c (nofp_registers_info): Rename to ...
2009 (info_registers_command): ... this.
2010 (float_info): Rename to ...
2011 (info_float_command): ... this.
2012 (program_info): Rename to ...
2013 (info_program_command): ... this.
2014 (all_registers_info): Rename to ...
2015 (info_all_registers_command): ... this.
2016 (vector_info): Rename to ...
2017 (info_vector_command): ... this.
2018 (float_info): Rename to ...
2019 (info_float_command): ... this.
2020 (_initialize_infcmd): Adjust.
2021 * inferior.h (term_info): Rename to ...
2022 (info_terminal_command): ... this.
2023 * inflow.c (term_info): Rename to ...
2024 (info_terminal_command): ... this.
2025 (_initialize_inflow): Adjust.
2026 * infrun.c (signals_info): Rename to ...
2027 (info_signals_command): ... this.
2028 (_initialize_infrun): Adjust.
2029 * objc-lang.c (classes_info): Rename to ...
2030 (info_classes_command): ... this.
2031 (selectors_info): Rename to ...
2032 (info_selectors_command): ... this.
2033 (_initialize_objc_language): Adjust.
2034 * printcmd.c (sym_info): Rename to ...
2035 (info_symbol_command): ... this.
2036 (address_info): Rename to ...
2037 (info_address_command): ... this.
2038 (display_info): Rename to ...
2039 (info_display_command): ... this.
2040 (_initialize_printcmd): Adjust.
2041 * reverse.c (bookmarks_info): Rename to ...
2042 (info_breakpoints_command): ... this.
2043 (_initialize_reverse): Adjust.
2044 * ser-go32.c (dos_info): Rename to ...
2045 (info_serial_command): ... this.
2046 (_initialize_ser_dos): Adjust.
2047 * skip.c (skip_info): Rename to ...
2048 (info_skip_command): ... this.
2049 (_initialize_step_skip): Adjust.
2050 * source.c (line_info): Rename to ...
2051 (info_line_command): ... this.
2052 (source_info): Rename to ...
2053 (info_source_command)
2054 * stack.c (frame_info): Rename to ...
2055 (info_frame_command): ... this.
2056 (locals_info): Rename to ...
2057 (info_locals_command): ... this.
2058 (args_info): Rename to ...
2059 (info_args_command): ... this.
2060 (_initialize_stack): Adjust.
2061 * symtab.c (sources_info): Rename to ...
2062 (info_sources_command): ... this.
2063 (variables_info): Rename to ...
2064 (info_variables_command): ... this.
2065 (functions_info): Rename to ...
2066 (info_functions_command): ... this.
2067 (types_info): Rename to ...
2068 (info_types_command): ... this.
2069 (_initialize_symtab): Adjust.
2070 * target.c (target_info): Rename to ...
2071 (info_target_command): ... this.
2072 (initialize_targets): Adjust.
2073 * tracepoint.c (tvariables_info): Rename to ...
2074 (info_tvariables_command): ... this.
2075 (scope_info): Rename to ...
2076 (info_scope_command): ... this.
2077 (trace_dump_actions): Adjust.
2078 (_initialize_tracepoint): Adjust.
2079
2080 2017-08-22 Tom Tromey <tom@tromey.com>
2081
2082 * breakpoint.h (install_breakpoint): Update.
2083 * breakpoint.c (add_solib_catchpoint): Update.
2084 (install_breakpoint): Change argument to a std::unique_ptr.
2085 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2086 (create_breakpoint_sal, create_breakpoint): Update.
2087 (watch_command_1, catch_exec_command_1)
2088 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2089 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2090 Return the breakpoint.
2091 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2092 (new_single_step_breakpoint): Update.
2093 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2094 std::unique_ptr.
2095 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2096 std::unique_ptr.
2097 * break-catch-sig.c (create_signal_catchpoint): Use
2098 std::unique_ptr.
2099 * ada-lang.c (create_ada_exception_catchpoint): Use
2100 std::unique_ptr.
2101
2102 2017-08-22 Tom Tromey <tom@tromey.com>
2103
2104 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2105
2106 2017-08-22 Tom Tromey <tom@tromey.com>
2107
2108 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2109 (lookup_partial_symbol): Update.
2110
2111 2017-08-22 Tom Tromey <tom@tromey.com>
2112
2113 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2114 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2115 (find_and_open_source, symtab_to_fullname): Update.
2116 * psymtab.c (psymtab_to_fullname): Update.
2117
2118 2017-08-22 Tom Tromey <tom@tromey.com>
2119
2120 * exec.c (exec_file_attach): Update.
2121 * linux-thread-db.c (try_thread_db_load): Update.
2122 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2123 * utils.c (gdb_realpath): Change return type.
2124 (gdb_realpath_keepfile): Update.
2125 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2126 (_initialize_utils): Register the new self test.
2127 * source.c (openp): Update.
2128 (find_and_open_source): Update.
2129 * nto-tdep.c (nto_find_and_open_solib): Update.
2130 * main.c (set_gdb_data_directory): Update.
2131 (captured_main_1): Update.
2132 * dwarf2read.c (dwarf2_get_dwz_file): Update
2133 (dw2_map_symbol_filenames): Update.
2134 * auto-load.c (auto_load_safe_path_vec_update): Update.
2135 (filename_is_in_auto_load_safe_path_vec): Change type of
2136 "filename_realp".
2137 (auto_load_objfile_script): Update.
2138 (file_is_auto_load_safe): Update. Use std::string.
2139 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2140
2141 2017-08-22 Tom Tromey <tom@tromey.com>
2142
2143 * utils.c (gdb_realpath_keepfile): Return a
2144 gdb::unique_xmalloc_ptr.
2145 * exec.c (exec_file_attach): Update.
2146 * utils.h (gdb_realpath_keepfile): Return a
2147 gdb::unique_xmalloc_ptr.
2148
2149 2017-08-22 Tom Tromey <tom@tromey.com>
2150
2151 * compile/compile.c (compile_file_command): Use
2152 gdb::unique_xmalloc_ptr, std::string.
2153 * utils.c (gdb_abspath): Change return type.
2154 * source.c (openp): Update.
2155 * objfiles.c (allocate_objfile): Update.
2156 * main.c (set_gdb_data_directory): Update.
2157 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2158
2159 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2160
2161 * cli-cmds.c (list_commands): List actual code around more than
2162 one location.
2163
2164 2017-08-21 John Baldwin <jhb@FreeBSD.org>
2165
2166 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2167
2168 2017-08-21 Pedro Alves <palves@redhat.com>
2169
2170 PR gdb/19487
2171 * c-exp.y (variable production): Handle function aliases.
2172 * minsyms.c (msymbol_is_text): New function.
2173 * minsyms.h (msymbol_is_text): Declare.
2174 * symtab.c (find_function_alias_target): New function.
2175 * symtab.h (find_function_alias_target): Declare.
2176
2177 2017-08-21 Pedro Alves <palves@redhat.com>
2178
2179 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2180 typedefs.
2181 * typeprint.c (whatis_exp): If handling "whatis", and expression
2182 is OP_TYPE, strip one typedef level. Otherwise don't strip
2183 typedefs here.
2184 * valops.c (value_cast): Save "to" type before resolving
2185 stubs/typedefs. Use that type as resulting value's type.
2186
2187 2017-08-18 Tom Tromey <tom@tromey.com>
2188 Pedro Alves <palves@redhat.com>
2189
2190 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2191 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2192 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2193 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2194 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2195 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2196 (linux_get_siginfo_data): Add "thread" argument. Use
2197 scoped_restore.
2198 * linux-nat.c (linux_child_follow_fork)
2199 (check_stopped_by_watchpoint): Use scoped_restore.
2200 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2201 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2202 (restore_inferior_ptid, save_inferior_ptid): Remove.
2203 * btrace.c (btrace_fetch): Use scoped_restore.
2204 * bsd-uthread.c (bsd_uthread_fetch_registers)
2205 (bsd_uthread_store_registers): Use scoped_restore.
2206 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2207 scoped_restore.
2208 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2209 (aix_thread_xfer_partial): Use scoped_restore.
2210 * inferior.h (save_inferior_ptid): Remove.
2211
2212 2017-08-18 Yao Qi <yao.qi@linaro.org>
2213
2214 PR tdep/21818
2215 * arm-tdep.c (gdb_print_insn_arm): Mark
2216 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2217
2218 2017-08-18 Yao Qi <yao.qi@linaro.org>
2219
2220 * NEWS: Mention GDBserver's new option "--selftest".
2221 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2222 * selftest.c: Move it to common/selftest.c.
2223 * selftest.h: Move it to common/selftest.h.
2224 * selftest-arch.c (reset): New function.
2225 (tests_with_arch): Call reset.
2226
2227 2017-08-18 Yao Qi <yao.qi@linaro.org>
2228
2229 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2230 instead of exception_fprintf and printf_filtered.
2231
2232 2017-08-18 Yao Qi <yao.qi@linaro.org>
2233
2234 * selftest.c (register_self_test): Rename it to
2235 selftests::register_test.
2236 (run_self_tests): selftest::run_tests.
2237 * selftest.h: Update declarations.
2238 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2239 selftests::register_test_foreach_arch.
2240 * selftest-arch.h: Update declaration.
2241 * aarch64-tdep.c: Update.
2242 * arm-tdep.c: Likewise.
2243 * disasm-selftests.c: Likewise.
2244 * dwarf2loc.c: Likewise.
2245 * dwarf2-frame.c: Likewise.
2246 * findvar.c: Likewise.
2247 * gdbarch-selftests.c: Likewise.
2248 * maint.c (maintenance_selftest): Likewise.
2249 * regcache.c: Likewise.
2250 * rust-exp.y: Likewise.
2251 * selftest-arch.c: Likewise.
2252 * unittests/environ-selftests.c: Likewise.
2253 * unittests/function-view-selftests.c: Likewise.
2254 * unittests/offset-type-selftests.c: Likewise.
2255 * unittests/optional-selftests.c: Likewise.
2256 * unittests/scoped_restore-selftests.c: Likewise.
2257 * utils-selftests.c: Likewise.
2258
2259 2017-08-17 Pedro Alves <palves@redhat.com>
2260
2261 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2262 local.
2263
2264 2017-08-17 Pedro Alves <palves@redhat.com>
2265
2266 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2267 field.
2268 (reset_die_in_process): Delete, replaced by ...
2269 (process_die_scope): ... this new class. Make it responsible for
2270 freeing cu->line_header too.
2271 (process_die): Use process_die_scope.
2272 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2273 cu->line_header_die_owner. Don't release the line header if it's
2274 owned by the CU.
2275 (setup_type_unit_groups): Make the CU/DIE own the line header.
2276 Don't release the line header here.
2277
2278 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2279
2280 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2281
2282 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
2283
2284 * NEWS: Mention new shortcuts for nexti and stepi in TUI
2285 Single-Key mode
2286
2287 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
2288
2289 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
2290 mode command list.
2291
2292 2017-08-15 Stafford Horne <shorne@gmail.com>
2293
2294 * MAINTAINERS (Write After Approval): Add Stafford Horne.
2295
2296 2017-08-15 Stafford Horne <shorne@gmail.com>
2297
2298 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
2299
2300 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
2301
2302 PR gdb/21954
2303 * infcmd.c (unset_environment_command): Use the 'clear' method on
2304 the environment instead of resetting it.
2305
2306 2017-08-15 John Baldwin <jhb@FreeBSD.org>
2307
2308 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
2309 platforms.
2310
2311 2017-08-14 Tom Tromey <tom@tromey.com>
2312
2313 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
2314 (print_binary_chars): Likewise.
2315 (BITS_IN_BYTES): Remove.
2316
2317 2017-08-14 Tom Tromey <tom@tromey.com>
2318
2319 PR gdb/21675
2320 * valprint.c (LOW_ZERO): Change value to 034.
2321 (print_octal_chars): Add static_asserts for octal constants.
2322 * printcmd.c (print_scalar_formatted): Add 'd' case.
2323
2324 2017-08-11 Tom Tromey <tom@tromey.com>
2325
2326 * symfile.c (add_symbol_file_command): Use std::vector.
2327
2328 2017-08-14 Tom Tromey <tom@tromey.com>
2329
2330 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
2331 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2332 std::move.
2333 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
2334
2335 2017-08-11 Pedro Alves <palves@redhat.com>
2336
2337 * infrun.c (process_event_stop_test): Adjust
2338 function_name_is_marked_for_skip call.
2339 * skip.c: Include <list>.
2340 (skiplist_entry): Make it a class with private fields, and
2341 getters/setters.
2342 (skiplist_entry_chain): Delete.
2343 (skiplist_entries): New.
2344 (skiplist_entry_count): Delete.
2345 (highest_skiplist_entry_num): New.
2346 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
2347 (add_skiplist_entry): Delete.
2348 (skiplist_entry::skiplist_entry): New.
2349 (skiplist_entry::add_entry): New.
2350 (skip_file_command, skip_function): Adjust.
2351 (compile_skip_regexp): Delete.
2352 (skip_command): Don't compile regexp here. Adjust to use
2353 skiplist_entry::add_entry.
2354 (skip_info): Adjust to use range-for and getters.
2355 (skip_enable_command, skip_disable_command): Adjust to use
2356 range-for and setters.
2357 (skip_delete_command): Adjust to use std::list.
2358 (add_skiplist_entry): Delete.
2359 (skip_file_p): Delete, refactored as ...
2360 (skiplist_entry::do_skip_file_p): ... this new method.
2361 (skip_gfile_p): Delete, refactored as ...
2362 (skiplist_entry::do_gskip_file_p): ... this new method.
2363 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
2364 (skiplist_entry::skip_function_p): ... this new method.
2365 (function_name_is_marked_for_skip): Now returns bool, and takes
2366 the function sal by const reference. Adjust to use range-for and
2367 skiplist_entry methods.
2368 (_initialize_step_skip): Remove references to
2369 skiplist_entry_chain, skiplist_entry_count.
2370 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
2371 takes the function sal by const reference.
2372
2373 2017-08-11 Yao Qi <yao.qi@linaro.org>
2374
2375 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
2376 (dwarf2_frame_cache): Remove reset_cache_cleanup.
2377 (dwarf2_frame_cache):
2378 * frame-unwind.c (frame_unwind_try_unwinder): Catch
2379 RETURN_MASK_ALL and set *this_case to NULL.
2380 * frame-unwind.h: Update comments.
2381
2382 2017-08-11 Yao Qi <yao.qi@linaro.org>
2383
2384 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
2385 (dwarf2_frame_state_copy_regs): Remove.
2386 (dwarf2_frame_state_free_regs): Remove.
2387 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
2388 (dwarf2_restore_rule): Call method .alloc_regs instead of
2389 dwarf2_frame_state_alloc_regs.
2390 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
2391 constructor. Call std::move.
2392 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
2393 (dwarf2_frame_cache): Likewise.
2394
2395 [GDB_SELF_TEST]: Include selftest.h and
2396 selftest-arch.h.
2397 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
2398 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
2399 execute_cfa_program_test.
2400
2401 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
2402 copy ctor, assignment operator, move assignment.
2403 <alloc_regs>: New method.
2404 <swap>: New method.
2405 (struct dwarf2_frame_state): Delete dtor.
2406 (dwarf2_frame_state_alloc_regs): Remove declaration.
2407 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
2408 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
2409
2410 2017-08-11 Yao Qi <yao.qi@linaro.org>
2411
2412 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
2413 (dwarf2_frame_state::dwarf2_frame_state): New.
2414 (dwarf2_frame_state::~dwarf2_frame_state): New.
2415 (dwarf2_fetch_cfa_info): Update.
2416 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
2417 rather than a pointer. Update code.
2418 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
2419 dtor.
2420 <data_align, code_align, retaddr_column>: Change them to const.
2421 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
2422 to bool.
2423
2424 2017-08-11 Yao Qi <yao.qi@linaro.org>
2425
2426 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
2427 <loc.exp>: New field.
2428 * dwarf2-frame.c (execute_cfa_program): Update.
2429 (dwarf2_frame_prev_register): Update.
2430
2431 2017-08-10 Pedro Alves <palves@redhat.com>
2432
2433 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
2434
2435 2017-08-09 John Baldwin <jhb@FreeBSD.org>
2436
2437 * fbsd-nat.c (struct fbsd_fork_info): Remove.
2438 (fbsd_pending_children): Use std::list.
2439 (fbsd_remember_child): Likewise.
2440 (fbsd_is_child_pending): Likewise.
2441 (fbsd_pending_vfork_done): Use std::forward_list.
2442 (fbsd_add_vfork_done): Likewise.
2443 (fbsd_is_vfork_done_pending): Likewise.
2444 (fbsd_next_vfork_done): Likewise.
2445
2446 2017-08-09 John Baldwin <jhb@FreeBSD.org>
2447
2448 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
2449 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
2450 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
2451 for `mapfilename'.
2452 (fbsd_xfer_partial): Use gdb::byte_vector.
2453 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
2454
2455 2017-08-09 John Baldwin <jhb@FreeBSD.org>
2456
2457 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
2458 "filestuff.h".
2459 (fbsd_find_memory_regions): Fix `mapfile' initialization.
2460
2461 2017-08-09 Tom Tromey <tom@tromey.com>
2462
2463 * skip.c (skiplist_entry): New constructor.
2464 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
2465 (skiplist_entry::file_is_glob): Now bool.
2466 (skiplist_entry::file, skiplist_entry::function): Now
2467 std::string.
2468 (make_skip_entry): Return a unique_ptr. Use new.
2469 (free_skiplist_entry, free_skiplist_entry_cleanup)
2470 (make_free_skiplist_entry_cleanup): Remove.
2471 (skip_command, skip_disable_command, add_skiplist_entry)
2472 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
2473 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
2474 (function_name_is_marked_for_skip): Update.
2475 (skip_delete_command): Update. Use delete.
2476
2477 2017-08-09 Jiong Wang <jiong.wang@arm.com>
2478
2479 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
2480 (aarch64_linux_core_read_description): New function.
2481 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
2482
2483 2017-08-09 Pedro Alves <palves@redhat.com>
2484
2485 * cp-name-parser.y (cp_comp_to_string): Return a
2486 gdb::unique_xmalloc_ptr<char>.
2487 * cp-support.c (replace_typedefs_qualified_name)
2488 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
2489 (cp_canonicalize_string_full): Use op= instead of explicit
2490 convertion.
2491 (cp_class_name_from_physname, method_name_from_physname)
2492 (cp_func_name, cp_remove_params): Adjust to use
2493 gdb::unique_xmalloc_ptr<char>.
2494 * cp-support.h (cp_comp_to_string): Return a
2495 gdb::unique_xmalloc_ptr<char>.
2496 * python/py-type.c (typy_lookup_type): Adjust to use
2497 gdb::unique_xmalloc_ptr<char>.
2498
2499 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
2500
2501 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
2502
2503 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
2504 Yao Qi <yao.qi@linaro.org>
2505
2506 * cp-support.c (cp_canonicalize_string_full): Use
2507 gdb::unique_xmalloc_ptr<char>.
2508 (cp_canonicalize_string): Likewise.
2509
2510 2017-08-09 Yao Qi <yao.qi@linaro.org>
2511
2512 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
2513 * regformats/i386/amd64-avx-avx512.dat: Remove.
2514 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
2515 * regformats/i386/amd64-avx-mpx.dat:Remove.
2516 * regformats/i386/amd64-avx.dat: Remove.
2517 * regformats/i386/amd64-mpx.dat: Remove.
2518 * regformats/i386/i386-avx-avx512.dat: Remove.
2519 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
2520 * regformats/i386/i386-avx-mpx.dat: Remove.
2521 * regformats/i386/i386-mmx.dat: Remove.
2522 * regformats/i386/i386-mpx.dat: Remove.
2523
2524 2017-08-09 Yao Qi <yao.qi@linaro.org>
2525
2526 * amd64-tdep.h (tdesc_x32): Remove the declaration.
2527 * amd64-tdep.c: Don't include features/i386/x32*.c.
2528 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
2529 functions.
2530 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
2531 and i386/x32-avx-avx512.
2532 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
2533 and i386/x32.xml.
2534 * features/i386/x32-avx-avx512.c: Removed.
2535 * features/i386/x32-avx-avx512.xml: Removed.
2536 * features/i386/x32-avx.c: Removed.
2537 * features/i386/x32-avx.xml: Removed.
2538 * features/i386/x32.c: Removed.
2539 * features/i386/x32.xml: Removed.
2540 * regformats/i386/x32-avx-avx512.dat: Removed.
2541 * regformats/i386/x32-avx.dat: Removed.
2542 * regformats/i386/x32.dat: Removed.
2543
2544 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2545
2546 PR breakpoints/21886
2547 * mem-break.c (default_memory_insert_breakpoint): Use
2548 `->placed_address' rather than `->reqstd_address' for the
2549 breakpoint location.
2550
2551 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2552
2553 * arch-utils.c (default_print_insn): Remove arch/mach/endian
2554 assertions.
2555
2556 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2557
2558 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
2559 a union of `tdep_info', `tdesc_data' and `id'.
2560 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
2561 rather than `info.tdep_info'.
2562 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2563 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2564 * i386-tdep.c (i386_gdbarch_init): Likewise.
2565 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2566 * mips-tdep.c (mips_gdbarch_init): Likewise.
2567 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2568 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2569 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
2570 `info.tdep_info'.
2571 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
2572 `info.tdep_info'.
2573 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2574 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
2575 `info.tdep_info'.
2576 * spu-tdep.c (spu_gdbarch_init): Likewise.
2577 * gdbarch.h: Regenerate.
2578
2579 2017-08-07 Leszek Swirski <leszeks@google.com>
2580
2581 PR symtab/20899
2582 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
2583
2584 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
2585
2586 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
2587 (gdbsim_open): Rename gdb_argv args object to argv.
2588
2589 2017-08-05 Tom Tromey <tom@tromey.com>
2590
2591 * compile/compile-object-load.c (compile_object_load): Use
2592 gdb::unique_xmalloc_ptr.
2593 * cli/cli-dump.c (scan_filename): Rename from
2594 scan_filename_with_cleanup. Change return type.
2595 (scan_expression): Rename from scan_expression_with_cleanup.
2596 Change return type.
2597 (dump_memory_to_file, dump_value_to_file, restore_command):
2598 Use gdb::unique_xmalloc_ptr. Update.
2599 * cli/cli-cmds.c (find_and_open_script): Use
2600 gdb::unique_xmalloc_ptr.
2601 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
2602 * symmisc.c (maintenance_print_symbols)
2603 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
2604 * symfile.c (symfile_bfd_open, generic_load)
2605 (add_symbol_file_command, remove_symbol_file_command): Use
2606 gdb::unique_xmalloc_ptr.
2607 * source.c (openp): Use gdb::unique_xmalloc_ptr.
2608 * psymtab.c (maintenance_print_psymbols): Use
2609 gdb::unique_xmalloc_ptr.
2610 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
2611 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
2612 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
2613 (reload_shared_libraries_1): Likewise.
2614
2615 2017-08-05 Tom Tromey <tom@tromey.com>
2616
2617 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
2618 (rust_op_vector, rust_set_vector): New typedefs.
2619 (current_parser): New global.
2620 (work_obstack): Change to pointer type. Update all users.
2621 (rust_ast, pstate): Remove globals.
2622 (struct rust_parser): New.
2623 (%union) <params, field_inits>: Change type.
2624 (start, tuple_expr, unit_expr, struct_expr_list, literal)
2625 (field_expr, expr_list, maybe_expr_list, type_list): Update.
2626 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
2627 (convert_params_to_types, convert_params_to_expression): Change
2628 type of "params".
2629 (ast_string): Change type of "fields".
2630 (rust_parse): Make a rust_parser. Remove cleanups.
2631 (rust_lex_tests): Make and install an auto_obstack.
2632
2633 2017-08-04 Yao Qi <yao.qi@linaro.org>
2634
2635 * configure.srv (ipa_x32_linux_regobj): New.
2636 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
2637 instead of X86_TDESC_AVX512.
2638 (initialize_low_tracepoint): Call
2639 init_registers_x32_avx_avx512_linux.
2640
2641 2017-08-04 Yao Qi <yao.qi@linaro.org>
2642
2643 * utils.h (gdb_argv): Add namespace std for nullptr_t.
2644
2645 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
2646
2647 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
2648
2649 2017-08-03 Tom Tromey <tom@tromey.com>
2650
2651 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
2652 Remove.
2653 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
2654
2655 2017-08-03 Tom Tromey <tom@tromey.com>
2656
2657 * python/py-param.c (compute_enum_values): Use gdb_argv.
2658
2659 2017-08-03 Tom Tromey <tom@tromey.com>
2660
2661 * utils.h (struct gdb_argv_deleter): New.
2662 (gdb_argv): New class.
2663 * utils.c (gdb_argv::reset): New method.
2664 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
2665 * tracefile.c (tsave_command): Use gdb_argv.
2666 * top.c (new_ui_command): Use gdb_argv.
2667 * symmisc.c (maintenance_print_symbols)
2668 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
2669 * symfile.c (symbol_file_command, generic_load)
2670 (remove_symbol_file_command): Use gdb_argv.
2671 * stack.c (backtrace_command): Use gdb_argv.
2672 * source.c (add_path, show_substitute_path_command)
2673 (unset_substitute_path_command, set_substitute_path_command):
2674 Use gdb_argv.
2675 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
2676 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
2677 * remote.c (extended_remote_run, remote_put_command)
2678 (remote_get_command, remote_delete_command): Use gdb_argv.
2679 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
2680 (gdbsim_open): Use gdb_argv.
2681 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
2682 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
2683 * procfs.c (procfs_info_proc): Use gdb_argv.
2684 * interps.c (interpreter_exec_cmd): Use gdb_argv.
2685 * infrun.c (handle_command): Use gdb_argv.
2686 * inferior.c (add_inferior_command, clone_inferior_command):
2687 Use gdb_argv.
2688 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
2689 * exec.c (exec_file_command): Use gdb_argv.
2690 * cli/cli-cmds.c (alias_command): Use gdb_argv.
2691 * compile/compile.c (build_argc_argv): Use gdb_argv.
2692
2693 2017-08-03 Tom Tromey <tom@tromey.com>
2694
2695 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
2696
2697 2017-08-03 Tom Tromey <tom@tromey.com>
2698
2699 * python/python.c (compute_python_string): Return std::string.
2700 (gdbpy_eval_from_control_command): Update.
2701 (do_start_initialization): Use std::string.
2702 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
2703 xstrprintf.
2704 * python/py-breakpoint.c (local_setattro): Use string_printf, not
2705 xstrprintf.
2706
2707 2017-08-03 Tom Tromey <tom@tromey.com>
2708
2709 * top.h (do_restore_instream_cleanup): Remove.
2710 * top.c (do_restore_instream_cleanup): Remove.
2711 (read_command_file): Use scoped_restore.
2712 * cli/cli-script.c (execute_user_command): Use scoped_restore.
2713
2714 2017-08-03 Tom Tromey <tom@tromey.com>
2715
2716 * cli/cli-script.c (execute_user_command)
2717 (execute_control_command): Use scoped_restore.
2718
2719 2017-08-03 Tom Tromey <tom@tromey.com>
2720
2721 * cli/cli-script.c (do_restore_user_call_depth): Remove.
2722 (execute_user_command): Remove user_call_depth; use
2723 user_args_stack's size instead.
2724
2725 2017-08-03 Tom Tromey <tom@tromey.com>
2726
2727 * top.h (in_user_command): Remove.
2728 * top.c (in_user_command): Remove.
2729 * cli/cli-script.c (do_restore_user_call_depth)
2730 (execute_user_command): Update.
2731
2732 2017-08-03 Tom Tromey <tom@tromey.com>
2733
2734 * valops.c (search_struct_method): Use gdb::byte_vector.
2735 * valarith.c (value_concat): Use std::vector.
2736 * target.c (memory_xfer_partial): Use gdb::byte_vector.
2737 (simple_search_memory): Likewise.
2738 * printcmd.c (find_string_backward): Use gdb::byte_vector.
2739 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
2740 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
2741 * elfread.c (elf_rel_plt_read): Use std::string.
2742 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
2743 * cli/cli-dump.c (restore_section_callback): Use
2744 gdb::byte_vector.
2745
2746 2017-08-03 Tom Tromey <tom@tromey.com>
2747
2748 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
2749
2750 2017-08-03 Tom Tromey <tom@tromey.com>
2751
2752 * tui/tui-regs.c (tui_restore_gdbout): Remove.
2753 (tui_register_format): Use scoped_restore.
2754
2755 2017-08-03 Tom Tromey <tom@tromey.com>
2756
2757 * reverse.c (exec_direction_default): Remove.
2758 (exec_reverse_once): Use scoped_restore.
2759 * remote.c (restore_remote_timeout): Remove.
2760 (remote_flash_erase, remote_flash_write, remote_flash_done)
2761 (readchar, remote_serial_write): Use scoped_restore.
2762 * cli/cli-script.c (struct source_cleanup_lines_args)
2763 (source_cleanup_lines): Remove.
2764 (script_from_file): Use scoped_restore.
2765 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
2766 (source_command): Use scoped_restore.
2767
2768 2017-08-03 Tom Tromey <tom@tromey.com>
2769
2770 * utils.h (make_cleanup_free_so): Remove.
2771 * utils.c (do_free_so, make_cleanup_free_so): Remove.
2772 * solist.h (struct so_deleter): New.
2773 (so_list_up): New typedef.
2774 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
2775
2776 2017-08-03 Tom Tromey <tom@tromey.com>
2777
2778 * utils.h (make_cleanup_restore_current_language): Remove.
2779 * utils.c (do_restore_current_language)
2780 (make_cleanup_restore_current_language): Remove.
2781 * parse.c (parse_exp_in_context_1)
2782 (parse_expression_with_language): Use
2783 scoped_restore_current_language.
2784 * mi/mi-main.c (mi_cmd_execute): Use
2785 scoped_restore_current_language.
2786 * language.h (scoped_restore_current_language): New class.
2787
2788 2017-08-03 Tom Tromey <tom@tromey.com>
2789
2790 * compile/compile.c (cleanup_unlink_file): Remove.
2791 (compile_to_object): Use gdb::unlinker.
2792 (eval_compile_command): Likewise.
2793
2794 2017-08-03 Tom Tromey <tom@tromey.com>
2795
2796 * utils.h (make_cleanup_fclose): Remove.
2797 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
2798
2799 2017-08-03 Tom Tromey <tom@tromey.com>
2800
2801 * top.c (open_terminal_stream): Return gdb_file_up.
2802 (new_ui_command): Update.
2803
2804 2017-08-03 Tom Tromey <tom@tromey.com>
2805
2806 * source.c (print_source_lines_base, forward_search_command)
2807 (reverse_search_command): Use gdb_file_up.
2808
2809 2017-08-03 Tom Tromey <tom@tromey.com>
2810
2811 * fbsd-nat.c (fbsd_find_memory_regions): Update.
2812
2813 2017-08-03 Tom Tromey <tom@tromey.com>
2814
2815 * cli/cli-cmds.c (find_and_open_script): Change return type.
2816 Remove "streamp" and "full_path" parameters.
2817 (source_script_with_search): Update.
2818 * auto-load.c (source_script_file): Update.
2819 * cli/cli-cmds.h (find_and_open_script): Change type.
2820 (open_script): New struct.
2821
2822 2017-08-03 Tom Tromey <tom@tromey.com>
2823
2824 * xml-support.c (xml_fetch_content_from_file): Update.
2825 * ui-file.c (stdio_file::open): Update.
2826 * tracefile-tfile.c (tfile_start): Update.
2827 * remote.c (remote_file_put, remote_file_get): Update.
2828 * nat/linux-procfs.c (linux_proc_get_int)
2829 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
2830 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
2831 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
2832 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
2833 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
2834 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
2835 * linux-nat.c (linux_proc_pending_signals): Update.
2836 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
2837 (file_closer): Remove.
2838 * compile/compile.c (compile_to_object): Update.
2839 * common/filestuff.h (struct gdb_file_deleter): New.
2840 (gdb_file_up): New typedef.
2841 (gdb_fopen_cloexec): Change return type.
2842 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
2843 * cli/cli-dump.c (fopen_with_cleanup): Remove.
2844 (dump_binary_file, restore_binary_file): Update.
2845 * auto-load.c (auto_load_objfile_script_1): Update.
2846
2847 2017-08-03 Tom Tromey <tom@tromey.com>
2848
2849 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
2850 (info_static_tracepoint_markers_command): Likewise.
2851 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
2852 * skip.c (skip_info): Use ui_out_emit_table.
2853 * progspace.c (print_program_space): Use ui_out_emit_table.
2854 * osdata.c (info_osdata): Use ui_out_emit_table.
2855 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
2856 ui_out_emit_table.
2857 * linux-thread-db.c (info_auto_load_libthread_db): Use
2858 ui_out_emit_table.
2859 * inferior.c (print_inferior): Use ui_out_emit_table.
2860 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
2861 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
2862 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
2863 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
2864 * ui-out.h (class ui_out_emit_table): New.
2865
2866 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
2867
2868 * mips-tdep.c (mips_fpu_type_str): New function.
2869 (mips_dump_tdep): Call it.
2870
2871 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
2872
2873 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
2874 `->mips_fpu_type'.
2875
2876 2017-07-31 Xavier Roirand <roirand@adacore.com>
2877
2878 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2879
2880 2017-07-27 Xavier Roirand <roirand@adacore.com>
2881
2882 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
2883
2884 2017-07-26 Yao Qi <yao.qi@linaro.org>
2885
2886 * cli/cli-cmds.c (maintenancechecklist): New variable.
2887 * gdbcmd.h (maintenancechecklist): Declare it.
2888 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
2889 Call i386_linux_read_description with different masks.
2890 * maint.c (maintenance_check_command): New function.
2891 (_initialize_maint_cmds): Call add_prefix_cmd.
2892 * target-descriptions.c (tdesc_reg): override operator != and ==.
2893 (tdesc_type): Likewise.
2894 (tdesc_feature): Likewise.
2895 (target_desc): Likewise.
2896 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
2897 (maintenance_check_xml_descriptions): New function.
2898 (_initialize_target_descriptions) Add command "xml-descriptions".
2899 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
2900
2901 2017-07-26 Yao Qi <yao.qi@linaro.org>
2902
2903 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
2904 Include features/i386/32bit-*.c.
2905 (i386_linux_read_description): Generate target description if it
2906 doesn't exist.
2907 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
2908 functions.
2909 * features/i386/32bit-linux.c: Re-generated.
2910 * features/i386/32bit-sse.c: Likewise.
2911 * target-descriptions.c (print_c_feature::visit): Print code to
2912 set register number if needed.
2913 (print_c_feature) <m_next_regnum>: New field.
2914
2915 2017-07-26 Yao Qi <yao.qi@linaro.org>
2916
2917 * features/Makefile (CFILES): Rename with TDESC_CFILES.
2918 (FEATURE_XMLFILES): New.
2919 (FEATURE_CFILES): New.
2920 New rules.
2921 (clean-cfiles): Remove generated c files.
2922 * features/i386/32bit-avx.c: Generated.
2923 * features/i386/32bit-avx512.c: Generated.
2924 * features/i386/32bit-core.c: Generated.
2925 * features/i386/32bit-linux.c: Generated.
2926 * features/i386/32bit-mpx.c: Generated.
2927 * features/i386/32bit-pkeys.c: Generated.
2928 * features/i386/32bit-sse.c: Generated.
2929 * target-descriptions.c: Include algorithm.
2930 (tdesc_element_visitor): Add method visit_end.
2931 (print_c_tdesc): Implement visit_end.
2932 (print_c_tdesc:: m_filename_after_features): Move it to
2933 protected.
2934 (print_c_feature): New class.
2935 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
2936 name starts with "i386/32bit-".
2937
2938 2017-07-26 Yao Qi <yao.qi@linaro.org>
2939
2940 * target-descriptions.c (tdesc_element_visitor): New class.
2941 (tdesc_element): New class.
2942 (tdesc_reg): Inherit from tdesc_element.
2943 (tdesc_reg::accept): New function.
2944 (tdesc_type): Inherit from tdesc_element.
2945 (tdesc_type::accept): New function.
2946 (tdesc_feature): Inherit from tdesc_element.
2947 (tdesc_feature::accept): New function.
2948 (target_desc): Inherit from tdesc_element.
2949 (target_desc::target_desc): New.
2950 (target_desc::~target_desc): New.
2951 (target_desc::accept): New.
2952 (allocate_target_description): Use new.
2953 (free_target_description): Use delete.
2954 (print_c_tdesc): New class.
2955 (maint_print_c_tdesc_cmd): Adjust.
2956
2957 * features/aarch64.c: Re-generated.
2958 * features/arc-arcompact.c: Re-generated.
2959 * features/arc-v2.c: Re-generated.
2960 * features/arm/arm-with-iwmmxt.c: Re-generated.
2961 * features/arm/arm-with-m.c: Re-generated.
2962 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
2963 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
2964 * features/arm/arm-with-neon.c: Re-generated.
2965 * features/arm/arm-with-vfpv2.c: Re-generated.
2966 * features/arm/arm-with-vfpv3.c: Re-generated.
2967 * features/i386/amd64-avx-avx512.c: Re-generated.
2968 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
2969 * features/i386/amd64-avx.c: Re-generated.
2970 * features/i386/amd64-avx-linux.c: Re-generated.
2971 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
2972 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
2973 * features/i386/amd64-avx-mpx.c: Re-generated.
2974 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
2975 * features/i386/amd64.c: Re-generated.
2976 * features/i386/amd64-linux.c: Re-generated.
2977 * features/i386/amd64-mpx.c: Re-generated.
2978 * features/i386/amd64-mpx-linux.c: Re-generated.
2979 * features/i386/i386-avx-avx512.c: Re-generated.
2980 * features/i386/i386-avx-avx512-linux.c: Re-generated.
2981 * features/i386/i386-avx.c: Re-generated.
2982 * features/i386/i386-avx-linux.c: Re-generated.
2983 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
2984 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
2985 * features/i386/i386-avx-mpx.c: Re-generated.
2986 * features/i386/i386-avx-mpx-linux.c: Re-generated.
2987 * features/i386/i386.c: Re-generated.
2988 * features/i386/i386-linux.c: Re-generated.
2989 * features/i386/i386-mmx.c: Re-generated.
2990 * features/i386/i386-mmx-linux.c: Re-generated.
2991 * features/i386/i386-mpx.c: Re-generated.
2992 * features/i386/i386-mpx-linux.c: Re-generated.
2993 * features/i386/x32-avx-avx512.c: Re-generated.
2994 * features/i386/x32-avx-avx512-linux.c: Re-generated.
2995 * features/i386/x32-avx.c: Re-generated.
2996 * features/i386/x32-avx-linux.c: Re-generated.
2997 * features/i386/x32.c: Re-generated.
2998 * features/i386/x32-linux.c: Re-generated.
2999 * features/microblaze.c: Re-generated.
3000 * features/microblaze-with-stack-protect.c: Re-generated.
3001 * features/mips64-dsp-linux.c: Re-generated.
3002 * features/mips64-linux.c: Re-generated.
3003 * features/mips-dsp-linux.c: Re-generated.
3004 * features/mips-linux.c: Re-generated.
3005 * features/nds32.c: Re-generated.
3006 * features/nios2.c: Re-generated.
3007 * features/nios2-linux.c: Re-generated.
3008 * features/rs6000/powerpc-32.c: Re-generated.
3009 * features/rs6000/powerpc-32l.c: Re-generated.
3010 * features/rs6000/powerpc-403.c: Re-generated.
3011 * features/rs6000/powerpc-403gc.c : Re-generated.
3012 * features/rs6000/powerpc-405.c: Re-generated.
3013 * features/rs6000/powerpc-505.c: Re-generated.
3014 * features/rs6000/powerpc-601.c: Re-generated.
3015 * features/rs6000/powerpc-602.c: Re-generated.
3016 * features/rs6000/powerpc-603.c: Re-generated.
3017 * features/rs6000/powerpc-604.c: Re-generated.
3018 * features/rs6000/powerpc-64.c: Re-generated.
3019 * features/rs6000/powerpc-64l.c: Re-generated.
3020 * features/rs6000/powerpc-7400.c: Re-generated.
3021 * features/rs6000/powerpc-750.c: Re-generated.
3022 * features/rs6000/powerpc-860.c: Re-generated.
3023 * features/rs6000/powerpc-altivec32.c: Re-generated.
3024 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3025 * features/rs6000/powerpc-altivec64.c: Re-generated.
3026 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3027 * features/rs6000/powerpc-cell32l.c: Re-generated.
3028 * features/rs6000/powerpc-cell64l.c: Re-generated.
3029 * features/rs6000/powerpc-e500.c: Re-generated.
3030 * features/rs6000/powerpc-e500l.c: Re-generated.
3031 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3032 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3033 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3034 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3035 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3036 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3037 * features/rs6000/powerpc-vsx32.c: Re-generated.
3038 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3039 * features/rs6000/powerpc-vsx64.c: Re-generated.
3040 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3041 * features/rs6000/rs6000.c: Re-generated.
3042 * features/s390-linux32.c: Re-generated.
3043 * features/s390-linux32v1.c: Re-generated.
3044 * features/s390-linux32v2.c: Re-generated.
3045 * features/s390-linux64.c: Re-generated.
3046 * features/s390-linux64v1.c: Re-generated.
3047 * features/s390-linux64v2.c: Re-generated.
3048 * features/s390-te-linux64.c: Re-generated.
3049 * features/s390-tevx-linux64.c: Re-generated.
3050 * features/s390-vx-linux64.c: Re-generated.
3051 * features/s390x-linux64.c: Re-generated.
3052 * features/s390x-linux64v1.c: Re-generated.
3053 * features/s390x-linux64v2.c: Re-generated.
3054 * features/s390x-te-linux64.c: Re-generated.
3055 * features/s390x-tevx-linux64.c: Re-generated.
3056 * features/s390x-vx-linux64.c: Re-generated.
3057 * features/sparc/sparc32-solaris.c: Re-generated.
3058 * features/sparc/sparc64-solaris.c: Re-generated.
3059 * features/tic6x-c62x.c: Re-generated.
3060 * features/tic6x-c62x-linux.c: Re-generated.
3061 * features/tic6x-c64x.c: Re-generated.
3062 * features/tic6x-c64x-linux.c: Re-generated.
3063 * features/tic6x-c64xp.c: Re-generated.
3064 * features/tic6x-c64xp-linux.c: Re-generated.
3065
3066 2017-07-26 Yao Qi <yao.qi@linaro.org>
3067
3068 * i386-linux-tdep.c (i386_linux_read_description): New function.
3069 (i386_linux_core_read_description): Call
3070 i386_linux_read_description.
3071 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3072 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3073 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3074 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3075 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3076 * x86-linux-nat.c (x86_linux_read_description): Call
3077 i386_linux_read_description.
3078
3079 2017-07-26 Yao Qi <yao.qi@linaro.org>
3080
3081 * NEWS: Mention it.
3082 * features/Makefile (%.c: %.xml): Pass the xml file name to
3083 command "maint print c-tdesc".
3084 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3085 name from 'arg'.
3086
3087 2017-07-26 Yao Qi <yao.qi@linaro.org>
3088
3089 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3090 in-class initialization.
3091 (tdesc_create_feature): Call new instead of XCNEW.
3092 (free_target_description): Ue delete.
3093
3094 2017-07-25 John Baldwin <jhb@FreeBSD.org>
3095
3096 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3097
3098 2017-07-25 Yao Qi <yao.qi@linaro.org>
3099
3100 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3101 constant.
3102 (amd64_x32_init_abi): Likewise.
3103 * amd64-tdep.h (amd64_init_abi): Update declaration.
3104 (amd64_x32_init_abi): Likewise.
3105
3106 2017-07-25 Yao Qi <yao.qi@linaro.org>
3107
3108 PR tdep/21717
3109 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3110 condition for FPSCR.
3111 (arm_linux_store_inferior_registers): Likewise.
3112
3113 2017-07-22 Tom Tromey <tom@tromey.com>
3114
3115 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3116 <syscalls_counts>: Now a std::vector.
3117 (get_catch_syscall_inferior_data): Use "new".
3118 (catch_syscall_inferior_data_cleanup): Use "delete".
3119 (insert_catch_syscall, remove_catch_syscall)
3120 (clear_syscall_counts): Update.
3121
3122 2017-07-22 Tom Tromey <tom@tromey.com>
3123
3124 * break-catch-syscall.c (syscall_catchpoint)
3125 <syscalls_to_be_caught>: Now a std::vector<int>
3126 (~syscall_catchpoint): Remove.
3127 (insert_catch_syscall, remove_catch_syscall)
3128 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3129 (print_mention_catch_syscall, print_recreate_catch_syscall):
3130 Update.
3131 (create_syscall_event_catchpoint): Change type of "filter"
3132 parameter.
3133 (catch_syscall_split_args): Return a std::vector.
3134 (catch_syscall_command_1, catching_syscall_number_1): Update.
3135
3136 2017-07-22 Tom Tromey <tom@tromey.com>
3137
3138 * break-catch-throw.c (struct exception_catchpoint)
3139 <exception_rx>: Now a std::string.
3140 (~exception_catchpoint): Remove.
3141 (print_one_detail_exception_catchpoint): Update.
3142 (handle_gnu_v3_exceptions): Change type of except_rx.
3143 (extract_exception_regexp): Return a std::string.
3144 (catch_exception_command_1): Update.
3145
3146 2017-07-22 Tom Tromey <tom@tromey.com>
3147
3148 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3149 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3150 std::vector.
3151 <catch_all>: Now a bool.
3152 (~signal_catchpoint): Remove.
3153 (signal_catchpoint_insert_location)
3154 (signal_catchpoint_remove_location)
3155 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3156 (signal_catchpoint_print_mention)
3157 (signal_catchpoint_print_recreate)
3158 (signal_catchpoint_explains_signal): Update.
3159 (create_signal_catchpoint): Change type of "filter" and
3160 "catch_all".
3161 (catch_signal_split_args): Return a std::vector. Change type of
3162 "catch_all".
3163 (catch_signal_command): Update.
3164
3165 2017-07-20 Pedro Alves <palves@redhat.com>
3166
3167 * ada-lang.c (ada_language_defn): Make extern.
3168 (_initialize_ada_language): Remove add_language call.
3169 * c-lang.c (c_language_defn, cplus_language_defn)
3170 (asm_language_defn, minimal_language_defn): Make extern.
3171 (_initialize_c_language): Delete.
3172 * completer.c (compare_cstrings): Delete, moved to utils.h.
3173 * d-lang.c (d_language_defn): Make extern.
3174 (_initialize_d_language): Remove add_language calls.
3175 * defs.h (enum language): Add comment.
3176 * f-lang.c (f_language_defn): Make extern.
3177 (_initialize_f_language): Remove add_language call.
3178 * go-lang.c (go_language_defn): Make extern.
3179 (_initialize_go_language): Remove add_language call.
3180 * language.c: Include <algorithm>.
3181 (languages): Redefine as const array.
3182 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3183 (set_language_command): Handle "local". Use for-range loop.
3184 (set_language): Remove loop.
3185 (language_enum): Rewrite.
3186 (language_def, language_str): Remove loops.
3187 (add_language): Delete.
3188 (add_set_language_command): New, based on add_languages.
3189 (skip_language_trampoline): Adjust.
3190 (local_language_defn): Delete.
3191 (language_gdbarch_post_init): Adjust.
3192 (_initialize_language): Remove add_language calls. Call
3193 add_set_language_command.
3194 * language.h (add_language): Delete.
3195 (auto_language_defn)
3196 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3197 (asm_language_defn, c_language_defn, cplus_language_defn)
3198 (d_language_defn, f_language_defn, go_language_defn)
3199 (m2_language_defn, objc_language_defn, opencl_language_defn)
3200 (pascal_language_defn, rust_language_defn): Declare.
3201 * m2-lang.c (m2_language_defn): Make extern.
3202 (_initialize_m2_language): Remove add_language call.
3203 * objc-lang.c (objc_language_defn): Make extern.
3204 (_initialize_objc_language): Remove add_language call.
3205 * opencl-lang.c (opencl_language_defn): Make extern.
3206 (_initialize_opencl_language): Remove add_language call.
3207 * p-lang.c (pascal_language_defn): Make extern.
3208 (_initialize_pascal_language): Delete.
3209 * rust-lang.c (rust_language_defn): Make extern.
3210 (_initialize_rust_language): Delete.
3211 * utils.h (compare_cstrings): New static inline function.
3212
3213 2017-07-20 Pedro Alves <palves@redhat.com>
3214
3215 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3216 (get_var_value): Constify parameters.
3217 (get_int_var_value): Change prototype.
3218 (to_fixed_range_type): Adjust.
3219 * ada-lang.h (get_int_var_value): Change prototype.
3220
3221 2017-07-20 Pedro Alves <palves@redhat.com>
3222
3223 * dwarf2read.c (dw2_lookup_symbol): Use
3224 SYMBOL_MATCHES_SEARCH_NAME.
3225 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3226
3227 2017-07-20 Pedro Alves <palves@redhat.com>
3228
3229 * block.c (block_iter_name_step, block_iter_name_first)
3230 (block_iter_name_next): Delete.
3231 (block_lookup_symbol_primary): Adjust to use
3232 dict_iter_match_first/dict_iter_match_next.
3233 * block.h (block_iter_name_first, block_iter_name_next): Delete
3234 declarations.
3235 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3236 dict_iter_match_first/dict_iter_match_next.
3237
3238 2017-07-20 Pedro Alves <palves@redhat.com>
3239
3240 * cp-support.c (cp_find_first_component_aux): Add missing case for
3241 end of string.
3242
3243 2017-07-18 David Blaikie <dblaikie@gmail.com>
3244
3245 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3246 of dwo_cu's dwo_file.
3247
3248 2017-07-18 Yao Qi <yao.qi@linaro.org>
3249
3250 * remote.c (store_registers_using_G): Remove one line comment.
3251
3252 2017-07-18 Yao Qi <yao.qi@linaro.org>
3253
3254 * regcache.c (regcache_cpy): Simplify it.
3255 (regcache::cpy_no_passthrough): Remove it.
3256 * regcache.h (cpy_no_passthrough): Remove it.
3257 (regcache_dup, regcache_cpy): Update comments.
3258
3259 2017-07-18 Pedro Alves <palves@redhat.com>
3260
3261 * remote-sim.c (sim_command_completer): Adjust to work with a
3262 completion_tracker instead of a VEC.
3263
3264 2017-07-17 Pedro Alves <palves@redhat.com>
3265
3266 * completer.c (complete_source_filenames): New function.
3267 (complete_address_and_linespec_locations): New function.
3268 (location_completer): Use complete_address_and_linespec_locations.
3269 (completion_tracker::build_completion_result): Honor the tracker's
3270 request to suppress append.
3271 * completer.h (completion_tracker::suppress_append_ws)
3272 (completion_tracker::set_suppress_append_ws): New methods.
3273 (completion_tracker::m_suppress_append_ws): New field.
3274 (complete_source_filenames): New declaration.
3275 * linespec.c (linespec_complete_what): New.
3276 (struct ls_parser) <complete_what, completion_word,
3277 completion_quote_char, completion_quote_end, completion_tracker>:
3278 New fields.
3279 (string_find_incomplete_keyword_at_end): New.
3280 (linespec_lexer_lex_string): Record quote char. If in completion
3281 mode, don't throw.
3282 (linespec_lexer_consume_token): Advance the completion word point.
3283 (linespec_lexer_peek_token): Save/restore completion info.
3284 (save_stream_and_consume_token): New.
3285 (set_completion_after_number): New.
3286 (linespec_parse_basic): Set what to complete next depending on
3287 token. Handle function and label completions specially.
3288 (parse_linespec): Disable objc shortcut in completion mode. Set
3289 what to complete next depending on token type. Skip keyword if in
3290 completion mode.
3291 (complete_linespec_component, linespec_complete): New.
3292 * linespec.h (linespec_complete): Declare.
3293
3294 2017-07-17 Pedro Alves <palves@redhat.com>
3295
3296 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
3297 Handle 'operator<' / 'operator<<'.
3298
3299 2017-07-17 Pedro Alves <palves@redhat.com>
3300
3301 * completer.c (collect_explicit_location_matches): Handle
3302 MATCH_LABEL.
3303 (convert_explicit_location_to_linespec): New, factored out from
3304 ...
3305 (convert_explicit_location_to_sals): ... this.
3306 (complete_label): New.
3307 (linespec_complete_label, find_label_symbols_in_block): New.
3308 (find_label_symbols): Add completion_mode parameter and adjust to
3309 call find_label_symbols_in_block.
3310 * linespec.h (linespec_complete_label): Declare.
3311
3312 2017-07-17 Pedro Alves <palves@redhat.com>
3313
3314 * ada-lang.c (ada_collect_symbol_completion_matches): Add
3315 complete_symbol_mode parameter.
3316 * cli/cli-cmds.c (complete_command): Get the completion result out
3317 of the handle_brkchars tracker if used a custom word point.
3318 * completer.c: Include "linespec.h".
3319 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
3320 (advance_to_expression_complete_word_point): New.
3321 (completion_tracker::completes_to_completion_word): New.
3322 (complete_files_symbols): Pass down
3323 complete_symbol_mode::EXPRESSION.
3324 (explicit_options, probe_options): New.
3325 (collect_explicit_location_matches): Complete on the
3326 explictit_loc->foo instead of word. Use
3327 linespec_complete_function. Handle MATCH_LINE. Handle offering
3328 keyword and options completions.
3329 (backup_text_ptr): Delete.
3330 (skip_keyword): New.
3331 (complete_explicit_location): Remove 'word' parameter. Add
3332 language, quoted_arg_start and quoted_arg_end parameters.
3333 Rewrite, parsing left to right.
3334 (location_completer): Rewrite.
3335 (location_completer_handle_brkchars): New function.
3336 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
3337 (enum complete_line_internal_reason): Adjust comments.
3338 (completion_tracker::discard_completions): New.
3339 (completer_handle_brkchars_func_for_completer): Handle
3340 location_completer.
3341 (gdb_custom_word_point_brkchars)
3342 (gdb_org_rl_basic_quote_characters): New.
3343 (gdb_completion_word_break_characters_throw)
3344 (completion_find_completion_word): Handle trackers that use a
3345 custom word point.
3346 (completion_tracker::advance_custom_word_point_by): New.
3347 (completion_tracker::build_completion_result): Don't rely on
3348 readline appending the quote char.
3349 (gdb_rl_attempted_completion_function_throw): Handle trackers that
3350 use a custom word point.
3351 (gdb_rl_attempted_completion_function): Restore
3352 rl_basic_quote_characters.
3353 * completer.h (class completion_tracker): Extend intro comment.
3354 (completion_tracker::set_quote_char)
3355 (completion_tracker::quote_char)
3356 (completion_tracker::set_use_custom_word_point)
3357 (completion_tracker::use_custom_word_point)
3358 (completion_tracker::custom_word_point)
3359 (completion_tracker::set_custom_word_point)
3360 (completion_tracker::advance_custom_word_point_by)
3361 (completion_tracker::completes_to_completion_word)
3362 (completion_tracker::discard_completions): New methods.
3363 (completion_tracker::m_quote_char)
3364 (completion_tracker::m_use_custom_word_point)
3365 (completion_tracker::m_custom_word_point): New fields.
3366 (advance_to_expression_complete_word_point): Declare.
3367 * f-lang.c (f_collect_symbol_completion_matches): Add
3368 complete_symbol_mode parameter.
3369 * language.h (struct language_defn)
3370 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
3371 parameter.
3372 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
3373 (linespec_complete_function): New function.
3374 (linespec_lexer_lex_keyword): Adjust.
3375 * linespec.h (linespec_keywords, linespec_complete_function): New
3376 declarations.
3377 * location.c (find_end_quote): New function.
3378 (explicit_location_lex_one): Add explicit_completion_info
3379 parameter. Save quoting info. Don't throw if being called for
3380 completion. Don't handle Ada operators here.
3381 (is_cp_operator, skip_op_false_positives, first_of)
3382 (explicit_location_lex_one_function): New function.
3383 (string_to_explicit_location): Replace 'dont_throw' parameter with
3384 an explicit_completion_info pointer parameter. Handle it. Don't
3385 use explicit_location_lex_one to lex function names. Use
3386 explicit_location_lex_one_function instead.
3387 * location.h (struct explicit_completion_info): New.
3388 (string_to_explicit_location): Replace 'dont_throw' parameter with
3389 an explicit_completion_info pointer parameter.
3390 * symtab.c (default_collect_symbol_completion_matches_break_on):
3391 Add complete_symbol_mode parameter. Handle LINESPEC mode.
3392 (default_collect_symbol_completion_matches)
3393 (collect_symbol_completion_matches): Add complete_symbol_mode
3394 parameter.
3395 (collect_symbol_completion_matches_type): Pass down
3396 complete_symbol_mode::EXPRESSION.
3397 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3398 parameter. Handle LINESPEC mode.
3399 * symtab.h (complete_symbol_mode): New.
3400 (default_collect_symbol_completion_matches_break_on)
3401 (default_collect_symbol_completion_matches)
3402 (collect_symbol_completion_matches)
3403 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3404 parameter.
3405
3406 2017-07-17 Pedro Alves <palves@redhat.com>
3407
3408 * utils.c (enum class strncmp_iw_mode): New.
3409 (strcmp_iw): Rename to ...
3410 (strncmp_iw_with_mode): ... this. Add string2_len and mode
3411 parameters. Handle them.
3412 (strncmp_iw): New.
3413 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
3414 * utils.h (strncmp_iw): Declare.
3415 (strcmp_iw): Move describing comments here.
3416
3417 2017-07-17 Pedro Alves <palves@redhat.com>
3418
3419 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
3420 CP_OPERATOR_STR.
3421 * c-typeprint.c (is_type_conversion_operator): Use
3422 CP_OPERATOR_STR.
3423 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
3424 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
3425 CP_OPERATOR_LEN.
3426 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
3427 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
3428 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
3429 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
3430 CP_OPERATOR_STR.
3431 * location.c: Include "cp-support.h".
3432 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
3433 CP_OPERATOR_STR.
3434 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
3435 CP_OPERATOR_LEN.
3436
3437 2017-07-17 Pedro Alves <palves@redhat.com>
3438
3439 * cli/cli-cmds.c (complete_command): Use a completion tracker
3440 along with completion_find_completion_word for handle_brkchars
3441 phase.
3442 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
3443 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
3444 (struct gdb_rl_completion_word_info): New.
3445 (gdb_rl_find_completion_word): New.
3446 (completion_find_completion_word): New.
3447 * completer.h (completion_find_completion_word): Declare.
3448
3449 2017-07-17 Pedro Alves <palves@redhat.com>
3450
3451 * ada-lang.c (symbol_completion_match): Adjust comments.
3452 (symbol_completion_add): Replace vector parameter with
3453 completion_tracker parameter. Use it.
3454 (ada_make_symbol_completion_list): Rename to...
3455 (ada_collect_symbol_completion_matches): ... this. Add
3456 completion_tracker parameter and use it.
3457 (ada_language_defn): Adjust.
3458 * break-catch-syscall.c (catch_syscall_completer): Adjust
3459 prototype and work with completion_tracker instead of VEC.
3460 * breakpoint.c (condition_completer): Adjust prototype and work
3461 with completion_tracker instead of VEC.
3462 * c-lang.c (c_language_defn, cplus_language_defn)
3463 (asm_language_defn, minimal_language_defn): Adjust to renames.
3464 * cli/cli-cmds.c (complete_command): Rework using
3465 completion_tracker. Catch exceptions when completing.
3466 * cli/cli-decode.c (integer_unlimited_completer)
3467 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
3468 with completion_tracker instead of VEC.
3469 * command.h (struct completion_tracker): Forward declare.
3470 (completer_ftype, completer_handle_brkchars_ftype): Change
3471 types.
3472 (complete_on_cmdlist, complete_on_enum): Adjust.
3473 * completer.c: Include <algorithm>.
3474 (struct gdb_completer_state): New.
3475 (current_completion): New global.
3476 (readline_line_completion_function): Delete.
3477 (noop_completer, filename_completer)
3478 (filename_completer_handle_brkchars, complete_files_symbols)
3479 (linespec_location_completer): Adjust to work with a
3480 completion_tracker instead of a VEC.
3481 (string_or_empty): New.
3482 (collect_explicit_location_matches): Adjust to work with a
3483 completion_tracker instead of a VEC.
3484 (explicit_location_completer): Rename to ...
3485 (complete_explicit_location): ... this and adjust to work with a
3486 completion_tracker instead of a VEC.
3487 (location_completer): Adjust to work with a completion_tracker
3488 instead of a VEC.
3489 (add_struct_fields): Adjust to work with a completion_list instead
3490 of VEC.
3491 (expression_completer): Rename to ...
3492 (complete_expression): ... this and adjust to work with a
3493 completion_tracker instead of a VEC. Use complete_files_symbols.
3494 (expression_completer): Reimplement on top of complete_expression.
3495 (symbol_completer): Adjust to work with a completion_tracker
3496 instead of a VEC.
3497 (enum complete_line_internal_reason): Add describing comments.
3498 (complete_line_internal_normal_command): Adjust to work with a
3499 completion_tracker instead of a VEC.
3500 (complete_line_internal): Rename to ...
3501 (complete_line_internal_1): ... this and adjust to work with a
3502 completion_tracker instead of a VEC. Assert TEXT is NULL in the
3503 handle_brkchars phase.
3504 (new_completion_tracker): Delete.
3505 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
3506 complete_line_internal_1.
3507 (free_completion_tracker): Delete.
3508 (INITIAL_COMPLETION_HTAB_SIZE): New.
3509 (completion_tracker::completion_tracker)
3510 (completion_tracker::~completion_tracker): New.
3511 (maybe_add_completion): Delete.
3512 (completion_tracker::maybe_add_completion)
3513 (completion_tracker::add_completion)
3514 (completion_tracker::add_completions): New.
3515 (throw_max_completions_reached_error): Delete.
3516 (complete_line): Adjust to work with a completion_tracker instead
3517 of a VEC. Don't create a completion_tracker_t or check for max
3518 completions here.
3519 (command_completer, command_completer_handle_brkchars)
3520 (signal_completer, reg_or_group_completer_1)
3521 (reg_or_group_completer, default_completer_handle_brkchars):
3522 Adjust to work with a completion_tracker.
3523 (gdb_completion_word_break_characters_throw): New.
3524 (gdb_completion_word_break_characters): Reimplement.
3525 (line_completion_function): Delete.
3526 (completion_tracker::recompute_lowest_common_denominator)
3527 (expand_preserving_ws)
3528 (completion_tracker::build_completion_result)
3529 (completion_result::completion_result)
3530 (completion_result::completion_result)
3531 (completion_result::~completion_result)
3532 (completion_result::completion_result)
3533 (completion_result::release_match_list, compare_cstrings)
3534 (completion_result::sort_match_list)
3535 (completion_result::reset_match_list)
3536 (gdb_rl_attempted_completion_function_throw)
3537 (gdb_rl_attempted_completion_function): New.
3538 * completer.h (completion_list, struct completion_result)
3539 (class completion_tracker): New.
3540 (complete_line): Add completion_tracker parameter.
3541 (readline_line_completion_function): Delete.
3542 (gdb_rl_attempted_completion_function): New.
3543 (noop_completer, filename_completer, expression_completer)
3544 (location_completer, symbol_completer, command_completer)
3545 (signal_completer, reg_or_group_completer): Update prototypes.
3546 (completion_tracker_t, new_completion_tracker)
3547 (make_cleanup_free_completion_tracker): Delete.
3548 (enum maybe_add_completion_enum): Delete.
3549 (maybe_add_completion): Delete.
3550 (throw_max_completions_reached_error): Delete.
3551 * corefile.c (complete_set_gnutarget): Adjust to work with a
3552 completion_tracker instead of a VEC.
3553 * cp-abi.c (cp_abi_completer): Adjust to work with a
3554 completion_tracker instead of a VEC.
3555 * d-lang.c (d_language_defn): Adjust.
3556 * disasm.c (disassembler_options_completer): Adjust to work with a
3557 completion_tracker instead of a VEC.
3558 * f-lang.c (f_make_symbol_completion_list): Rename to ...
3559 (f_collect_symbol_completion_matches): ... this. Adjust to work
3560 with a completion_tracker instead of a VEC.
3561 (f_language_defn): Adjust.
3562 * go-lang.c (go_language_defn): Adjust.
3563 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
3564 Adjust to work with a completion_tracker instead of a VEC.
3565 * infrun.c (handle_completer): Likewise.
3566 * interps.c (interpreter_completer): Likewise.
3567 * interps.h (interpreter_completer): Likewise.
3568 * language.c (unknown_language_defn, auto_language_defn)
3569 (local_language_defn): Adjust.
3570 * language.h (language_defn::la_make_symbol_completion_list):
3571 Rename to ...
3572 (language_defn::la_collect_symbol_completion_matches): ... this
3573 and adjust to work with a completion_tracker instead of a VEC.
3574 * m2-lang.c (m2_language_defn): Adjust.
3575 * objc-lang.c (objc_language_defn): Adjust.
3576 * opencl-lang.c (opencl_language_defn): Adjust.
3577 * p-lang.c (pascal_language_defn): Adjust.
3578 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
3579 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
3580 with a completion_tracker.
3581 * rust-lang.c (rust_language_defn): Adjust.
3582 * symtab.c (free_completion_list, do_free_completion_list)
3583 (return_val, completion_tracker): Delete.
3584 (completion_list_add_name, completion_list_add_symbol)
3585 (completion_list_add_msymbol, completion_list_objc_symbol)
3586 (completion_list_add_fields, add_symtab_completions): Add
3587 completion_tracker parameter and use it.
3588 (default_make_symbol_completion_list_break_on_1): Rename to...
3589 (default_collect_symbol_completion_matches_break_on): ... this.
3590 Add completion_tracker parameter and use it instead of allocating
3591 a completion tracker here.
3592 (default_make_symbol_completion_list_break_on): Delete old
3593 implementation.
3594 (default_make_symbol_completion_list): Delete.
3595 (default_collect_symbol_completion_matches): New.
3596 (make_symbol_completion_list): Delete.
3597 (collect_symbol_completion_matches): New.
3598 (make_symbol_completion_type): Rename to ...
3599 (collect_symbol_completion_matches_type): ... this. Add
3600 completion_tracker parameter and use it instead of VEC.
3601 (make_file_symbol_completion_list_1): Rename to...
3602 (collect_file_symbol_completion_matches): ... this. Add
3603 completion_tracker parameter and use it instead of VEC.
3604 (make_file_symbol_completion_list): Delete.
3605 (add_filename_to_list): Use completion_list instead of a VEC.
3606 (add_partial_filename_data::list): Now a completion_list.
3607 (make_source_files_completion_list): Work with a completion_list
3608 instead of a VEC.
3609 * symtab.h: Include "completer.h".
3610 (default_make_symbol_completion_list_break_on)
3611 (default_make_symbol_completion_list, make_symbol_completion_list)
3612 (make_symbol_completion_type, make_file_symbol_completion_list)
3613 (make_source_files_completion_list): Delete.
3614 (default_collect_symbol_completion_matches_break_on)
3615 (default_collect_symbol_completion_matches)
3616 (collect_symbol_completion_matches)
3617 (collect_symbol_completion_matches_type)
3618 (collect_file_symbol_completion_matches)
3619 (make_source_files_completion_list): New.
3620 * top.c (init_main): Don't install a rl_completion_entry_function
3621 hook. Install a rl_attempted_completion_function hook instead.
3622 * tui/tui-layout.c (layout_completer): Adjust to work with a
3623 completion_tracker.
3624 * tui/tui-regs.c (tui_reggroup_completer):
3625 * tui/tui-win.c (window_name_completer, focus_completer)
3626 (winheight_completer): Adjust to work with a completion_tracker.
3627 * value.c: Include "completer.h".
3628 (complete_internalvar): Adjust to work with a completion_tracker.
3629 * value.h (complete_internalvar): Likewise.
3630
3631 2017-07-17 Pedro Alves <palves@redhat.com>
3632
3633 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
3634 renames.
3635 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
3636 comments to completer_ftype's declaration.
3637 <completer_handle_brkchars>: Change type to
3638 completer_handle_brkchars_ftype.
3639 * command.h (completer_ftype): Add describing comment and give
3640 names to parameters.
3641 (completer_ftype_void): Rename to ...
3642 (completer_handle_brkchars_ftype) ... this. Add describing comment.
3643 (set_cmd_completer_handle_brkchars): Adjust.
3644 * completer.c (filename_completer_handle_brkchars): New function.
3645 (complete_line_internal_normal_command): New function, factored
3646 out from ...
3647 (complete_line_internal): ... here.
3648 (command_completer_handle_brkchars)
3649 (default_completer_handle_brkchars)
3650 (completer_handle_brkchars_func_for_completer): New functions.
3651 * completer.h (set_gdb_completion_word_break_characters): Delete
3652 declaration.
3653 (completer_handle_brkchars_func_for_completer): New declaration.
3654 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
3655 completer_handle_brkchars_func_for_completer.
3656
3657 2017-07-17 Pedro Alves <palves@redhat.com>
3658
3659 * completer.c (symbol_completer): New function, based on
3660 make_symbol_completion_list_fn.
3661 * completer.h (symbol_completer): New declaration.
3662 * guile/scm-cmd.c (cmdscm_completers): Adjust.
3663 * python/py-cmd.c (completers): Adjust.
3664 * symtab.c (make_symbol_completion_list_fn): Delete.
3665 * symtab.h (make_symbol_completion_list_fn): Delete.
3666 * cli/cli-decode.c (add_cmd): Adjust.
3667
3668 2017-07-17 Pedro Alves <palves@redhat.com>
3669
3670 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
3671 * dwarf2read.c: Include "filename-seen-cache.h".
3672 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
3673 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
3674 * filename-seen-cache.c: New file.
3675 * filename-seen-cache.h: New file.
3676 * symtab.c: Include "filename-seen-cache.h".
3677 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
3678 (create_filename_seen_cache, clear_filename_seen_cache)
3679 (delete_filename_seen_cache, filename_seen): Delete, parts moved
3680 to filename-seen-cache.h/filename-seen-cache.c.
3681 (output_source_filename, sources_info)
3682 (maybe_add_partial_symtab_filename)
3683 (make_source_files_completion_list): Adjust to use
3684 filename_seen_cache.
3685
3686 2017-07-17 Pedro Alves <palves@redhat.com>
3687
3688 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
3689 fields.
3690 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
3691 dwarf2_debug_sections*)): New.
3692 (dwarf2_per_objfile::dwarf2_per_objfile(const
3693 dwarf2_per_objfile&)): Declare as deleted.
3694 (dwarf2_per_objfile::operator=): Declare as deleted.
3695 (dwarf2_per_objfile::dwarf2_per_objfile)
3696 (dwarf2_per_objfile::~dwarf2_per_objfile)
3697 (dwarf2_per_objfile::free_cached_comp_units): New.
3698 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
3699 ctor. Call dwarf2_per_objfile's ctor manually.
3700 (dwarf2_locate_sections): Deleted/refactored as ...
3701 (dwarf2_per_objfile::locate_sections): ... this new method.
3702 (free_cached_comp_units): Defer to
3703 dwarf2_per_objfile::free_cached_comp_units.
3704 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
3705
3706 2017-07-14 Tom Tromey <tom@tromey.com>
3707
3708 PR rust/21764:
3709 * rust-exp.y (convert_ast_to_expression): Add "want_type"
3710 parameter.
3711 <UNOP_SIZEOF>: Split into separate case.
3712 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
3713
3714 2017-07-14 Tom Tromey <tom@tromey.com>
3715
3716 PR rust/21763:
3717 * symtab.c (symbol_matches_domain): Add language_rust to special
3718 case.
3719 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
3720 treat LOC_TYPEDEF symbols as variables.
3721
3722 2017-07-14 Pedro Alves <palves@redhat.com>
3723
3724 * symtab.c (make_file_symbol_completion_list_1): Iterate over
3725 symtabs matching all symtabs with SRCFILE as file name instead of
3726 only considering the first hit, with lookup_symtab.
3727
3728 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3729
3730 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
3731 operator_name parameters.
3732 (gen_expr): Update function call.
3733
3734 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3735
3736 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
3737 parameter.
3738 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
3739 Likewise.
3740 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
3741 parameter, use agent_expr::gdbarch instead, update function
3742 calls.
3743 (locexpr_tracepoint_var_ref): Likewise.
3744 (loclist_tracepoint_var_ref): Likewise.
3745 * ax-gdb.c (gen_trace_static_fields): Likewise.
3746 (gen_traced_pop): Likewise.
3747 (gen_frame_args_address): Likewise.
3748 (gen_frame_locals_address): Likewise.
3749 (gen_var_ref): Likewise.
3750 (gen_struct_ref_recursive): Likewise.
3751 (gen_static_field): Likewise.
3752 (gen_maybe_namespace_elt): Likewise.
3753 (gen_expr): Likewise.
3754 (gen_trace_for_var): Likewise.
3755 (gen_trace_for_expr): Likewise.
3756 (gen_trace_for_return_address): Likewise.
3757
3758 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3759
3760 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
3761 parameter.
3762 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
3763
3764 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3765
3766 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
3767 from ax, update calls.
3768 (gen_usual_arithmetic): Likewise.
3769 (gen_integral_promotions): Likewise.
3770 (gen_bitfield_ref): Likewise.
3771 (gen_primitive_field): Likewise.
3772 (gen_struct_ref_recursive): Likewise.
3773 (gen_struct_ref): Likewise.
3774 (gen_maybe_namespace_elt): Likewise.
3775 (gen_struct_elt_for_reference): Likewise.
3776 (gen_namespace_elt): Likewise.
3777 (gen_aggregate_elt_ref): Likewise.
3778 (gen_expr): Get gdbarch from ax, update calls.
3779 (gen_expr_binop_rest): Likewise.
3780
3781 2017-07-13 Pedro Alves <palves@redhat.com>
3782
3783 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
3784 as default tdesc.
3785 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
3786 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
3787 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
3788 tdesc_amd64_linux as default tdesc. Get final tdesc from the
3789 tdep.
3790 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
3791 Get final tdesc from the tdep.
3792 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
3793 default tdesc.
3794 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3795 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3796 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
3797 Use it as default tdesc.
3798 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
3799 down to amd_init_abi. No longer handle fallback tdesc here.
3800 * amd64-tdep.h (tdesc_x32): Declare.
3801 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
3802 parameter.
3803 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
3804 as default tdesc.
3805
3806 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3807
3808 * s390-linux-tdep.c (s390_process_record): Add support for
3809 instructions new in arch12.
3810
3811 2017-07-11 John Baldwin <jhb@FreeBSD.org>
3812
3813 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3814 PT_GETFSBASE and PT_GETGSBASE.
3815 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
3816 PT_SETGSBASE.
3817
3818 2017-07-11 John Baldwin <jhb@FreeBSD.org>
3819
3820 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
3821 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
3822 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
3823 those rules.
3824 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
3825 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
3826 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
3827 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
3828 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
3829 * features/i386/amd64.xml: Add 64bit-segments.xml.
3830 * features/i386/amd64-avx-avx512.c: Regenerated.
3831 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
3832 * features/i386/amd64-avx-mpx.c: Regenerated.
3833 * features/i386/amd64-avx.c: Regenerated.
3834 * features/i386/amd64-mpx.c: Regenerated.
3835 * features/i386/amd64.c: Regenerated.
3836 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
3837 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
3838 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
3839 * regformats/i386/amd64-avx.dat: Regenerated.
3840 * regformats/i386/amd64-mpx.dat: Regenerated.
3841 * regformats/i386/amd64.dat: Regenerated.
3842
3843 2017-07-10 Yao Qi <yao.qi@linaro.org>
3844
3845 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3846 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3847
3848 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
3849
3850 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
3851 unsetenv.
3852 * gnulib/aclocal.m4: Regenerate.
3853 * gnulib/config.in: Regenerate.
3854 * gnulib/configure: Regenerate.
3855 * gnulib/import/Makefile.am: Regenerate.
3856 * gnulib/import/Makefile.in: Regenerate.
3857 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3858 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3859 * gnulib/import/m4/environ.m4: New file.
3860 * gnulib/import/m4/setenv.m4: New file.
3861 * gnulib/import/setenv.c: New file.
3862 * gnulib/import/unsetenv.c: New file.
3863
3864 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
3865
3866 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
3867 address when op is DW_OP_addr.
3868
3869 2017-07-09 Tom Tromey <tom@tromey.com>
3870
3871 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
3872 check and apply to outer type.
3873
3874 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3875
3876 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
3877 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
3878 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
3879 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
3880
3881 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3882
3883 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
3884
3885 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3886
3887 * corelow.c (get_core_siginfo): Remove.
3888 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
3889 instead of get_core_siginfo.
3890 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
3891 * gdbarch.h: Re-generate.
3892 * gdbarch.c: Re-generate.
3893 * linux-tdep.c (linux_core_xfer_siginfo): New.
3894 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
3895
3896 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3897
3898 * corelow.c (thread_section_name): Move to ...
3899 * gdbcore.h (thread_section_name): ... here.
3900
3901 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3902
3903 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
3904 (struct siginfo32): New.
3905 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
3906 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
3907 via ptrace(PT_LWPINFO).
3908
3909 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3910
3911 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
3912 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
3913 (fbsd_get_siginfo_type): New.
3914 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3915 (_initialize_fbsd_tdep): New.
3916
3917 2017-07-06 David Blaikie <dblaikie@gmail.com>
3918
3919 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
3920 a singular dwo_unit*) to support multiple CUs in the same way that
3921 multiple TUs are supported.
3922 (create_cus_hash_table): Replace create_dwo_cu with a function for
3923 parsing multiple CUs from a DWO file.
3924 (open_and_init_dwo_file): Use create_cus_hash_table rather than
3925 create_dwo_cu.
3926 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
3927 htab_find, rather than comparing the signature to a singleton CU in
3928 the dwo_file.
3929
3930 2017-07-06 Pedro Alves <palves@redhat.com>
3931
3932 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
3933
3934 2017-07-04 Pedro Alves <palves@redhat.com>
3935
3936 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
3937 * gdbtypes.h (TYPE_STATIC): Delete.
3938 (struct fn_field) <is_public, is_abstract, is_static, is_final,
3939 is_synchronized, is_native>: Delete.
3940 <dummy>: Bump.
3941 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
3942 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
3943 (TYPE_FN_FIELD_ABSTRACT): Delete.
3944
3945 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
3946
3947 * buffer.h (buffer_finish): Fix spelling mistakes.
3948
3949 2017-07-01 Eli Zaretskii <eliz@gnu.org>
3950
3951 * .dir-locals.el: Automatically switch to C-style comments in
3952 versions of Emacs that support the feature.
3953
3954 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
3955 Pedro Alves <palves@redhat.com>
3956
3957 PR cli/21688
3958 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
3959 (process_next_line): New variable 'inline_cmd'.
3960 Adjust 'if' clauses for "python", "compile" and "guile" to use
3961 'command_name_equals' and check for '!inline_cmd'.
3962
3963 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
3964
3965 PR cli/21688
3966 * cli/cli-script.c (command_name_equals_not_inline): New function.
3967 (process_next_line): Adjust 'if' clauses for "python", "compile"
3968 and "guile" to use command_name_equals_not_inline.
3969
3970 2017-06-29 Pedro Alves <palves@redhat.com>
3971
3972 * completer.c (expression_completer): Call
3973 linespec_location_completer instead of location_completer.
3974
3975 2017-06-29 Pedro Alves <palves@redhat.com>
3976
3977 * completer.c (expression_completer): Remove code that recomputes
3978 'text' from 'word'.
3979
3980 2017-06-29 Yao Qi <yao.qi@linaro.org>
3981
3982 * regformats/regdat.sh: Generate code with
3983 "ifndef IN_PROCESS_AGENT".
3984
3985 2017-06-28 Pedro Alves <palves@redhat.com>
3986
3987 * command.h: Include "common/scoped_restore.h".
3988
3989 2017-06-28 Yao Qi <yao.qi@linaro.org>
3990
3991 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
3992 instead of obstack_grow.
3993
3994 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
3995
3996 PR gdb/21337
3997 * symfile.c (reread_symbols): Call objfiles_changed just before
3998 read_symbols.
3999
4000 2017-06-27 Pedro Alves <palves@redhat.com>
4001
4002 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4003 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4004 (completion_list_add_symbol, completion_list_add_msymbol):
4005 ... these new functions.
4006 (add_symtab_completions)
4007 (default_make_symbol_completion_list_break_on_1): Adjust.
4008
4009 2017-06-27 Pedro Alves <palves@redhat.com>
4010
4011 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4012 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4013 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4014 dtor.
4015 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4016 'storage_obstack' field an auto_obstack. In-class initialize all
4017 non-bitfield fields. Make minsyms_read bool.
4018 * symfile.c (read_symbols): Adjust.
4019
4020 2017-06-27 Alan Hayward <alan.hayward@arm.com>
4021
4022 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4023 (gdbsim_store_register): Likewise.
4024
4025 2017-06-27 Pedro Alves <palves@redhat.com>
4026
4027 * c-exp.y (name_obstack): Now an auto_obstack.
4028 (yylex): Use auto_obstack::clear.
4029 (c_parse): Use auto_obstack::clear instead of reinitializing and
4030 freeing the obstack.
4031 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4032 * d-exp.y (name_obstack): Now an auto_obstack.
4033 (yylex): Use auto_obstack::clear.
4034 (d_parse): Use auto_obstack::clear instead of reinitializing and
4035 freeing the obstack.
4036 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4037 auto_obstack.
4038 * dwarf2read.c (create_addrmap_from_index)
4039 (dwarf2_build_psymtabs_hard)
4040 (update_enumeration_type_from_children): Likewise.
4041 * gdb_obstack.h (auto_obstack): New type.
4042 * go-exp.y (name_obstack): Now an auto_obstack.
4043 (build_packaged_name): Use auto_obstack::clear.
4044 (go_parse): Use auto_obstack::clear instead of reinitializing and
4045 freeing the obstack.
4046 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4047 auto_obstack.
4048 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4049 * rust-exp.y (work_obstack): Now an auto_obstack.
4050 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4051 reinitializing and freeing the obstack.
4052 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4053 (host_char_to_target): Use auto_obstack.
4054 * utils.h (make_cleanup_obstack_free): Delete declaration.
4055 * valprint.c (generic_emit_char, generic_printstr): Use
4056 auto_obstack.
4057
4058 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4059
4060 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4061 thread.
4062 (darwin_init_thread_list): Don't update dummy thread.
4063 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4064
4065 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4066
4067 * record-full.c (netorder16): Remove.
4068
4069 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4070
4071 * common/diagnostics.h: Define macros for GCC.
4072 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4073 * common/vec.h: Include diagnostics.h.
4074 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4075 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4076 warning.
4077
4078 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4079
4080 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4081 New macro.
4082 * ada-lex.l: Ignore deprecated register warnings.
4083
4084 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4085
4086 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4087 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4088
4089 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4090
4091 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4092 its own line.
4093
4094 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4095
4096 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4097
4098 2017-06-23 Alan Hayward <alan.hayward@arm.com>
4099
4100 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4101 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4102 (xtensa_register_read_masked): Likewise.
4103
4104 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4105
4106 * common/environ.c (gdb_environ::unset): Update comment.
4107
4108 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4109
4110 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4111 registers.
4112
4113 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4114
4115 * record-full.c (record_full_exec_insn): Use byte_vector.
4116
4117 2017-06-22 Yao Qi <yao.qi@linaro.org>
4118
4119 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4120 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4121
4122 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4123
4124 * remote.c (cached_reg): Move from here...
4125 * regcache.h (cached_reg): ...to here.
4126 * python/py-unwind.c (struct reg_info): Remove.
4127 (cached_frame_info): Use cached_reg_t.
4128 (pyuw_prev_register): Likewise.
4129 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4130 (pyuw_dealloc_cache): Free all registers.
4131
4132 2017-06-22 Pedro Alves <palves@redhat.com>
4133 Simon Marchi <simon.marchi@ericsson.com>
4134
4135 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4136 warning.
4137 * common/diagnostics.h: New file.
4138
4139 2017-06-22 Pedro Alves <palves@redhat.com>
4140
4141 * common/agent.h: Add include guards.
4142
4143 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4144
4145 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4146 talk about addressable units instead of bytes.
4147
4148 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4149
4150 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4151 of '::const_iterator'.
4152
4153 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4154
4155 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4156 'unittests/environ-selftests.c'.
4157 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4158 * charset.c (find_charset_names): Declare object 'iconv_env'.
4159 Update code to use 'iconv_env' object. Remove call to
4160 'free_environ'.
4161 * common/environ.c: Include <utility>.
4162 (make_environ): Delete function.
4163 (free_environ): Delete function.
4164 (gdb_environ::clear): New function.
4165 (gdb_environ::operator=): New function.
4166 (gdb_environ::get): Likewise.
4167 (environ_vector): Delete function.
4168 (set_in_environ): Delete function.
4169 (gdb_environ::set): New function.
4170 (unset_in_environ): Delete function.
4171 (gdb_environ::unset): New function.
4172 (gdb_environ::envp): Likewise.
4173 * common/environ.h: Include <vector>.
4174 (struct gdb_environ): Delete; transform into...
4175 (class gdb_environ): ... this class.
4176 (free_environ): Delete prototype.
4177 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4178 environ_vector): Likewise.
4179 * infcmd.c (run_command_1): Update code to call
4180 'envp' from 'gdb_environ' class.
4181 (environment_info): Update code to call methods from 'gdb_environ'
4182 class.
4183 (unset_environment_command): Likewise.
4184 (path_info): Likewise.
4185 (path_command): Likewise.
4186 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4187 (inferior::inferior): Initialize 'environment' using the host's
4188 information.
4189 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4190 Include "environ.h".
4191 (class inferior) <environment>: Change type from 'struct
4192 gdb_environ' to 'gdb_environ'.
4193 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4194 methods from 'gdb_environ' class.
4195 * solib.c (solib_find_1): Likewise
4196 * unittests/environ-selftests.c: New file.
4197
4198 2017-06-20 Yao Qi <yao.qi@linaro.org>
4199
4200 * features/i386/i386-linux.xml: Exchange the order of including
4201 32bit-linux.xml and 32bit-sse.xml.
4202 * features/i386/i386-linux.c: Regenerated.
4203
4204 2017-06-20 Yao Qi <yao.qi@linaro.org>
4205
4206 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4207 Delete copy ctor and assignment operator.
4208 (tdesc_type): Likewise.
4209 (tdesc_feature): Likewise.
4210 (tdesc_free_reg): Remove.
4211 (tdesc_create_reg): Use new.
4212 (tdesc_free_type): Remove.
4213 (tdesc_create_vector): Use new.
4214 (tdesc_create_union): Likewise.
4215 (tdesc_create_flags): Likewise.
4216 (tdesc_create_enum): Likewise.
4217 (tdesc_free_feature): Delete.
4218 (free_target_description): Use delete.
4219
4220 2017-06-19 John Baldwin <jhb@FreeBSD.org>
4221
4222 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4223 registers.
4224
4225 2017-06-19 Pedro Alves <palves@redhat.com>
4226
4227 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4228 after gdb::unlinker.
4229
4230 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4231
4232 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4233 gdb_environ to access an environment variable.
4234
4235 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4236
4237 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4238 gdb_byte*.
4239
4240 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4241
4242 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4243
4244 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4245
4246 * configure: Re-generate.
4247 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4248
4249 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4250
4251 * configure: Re-generate.
4252 * warning.m4: Pass -Werror to compiler when checking for
4253 supported warning flags.
4254
4255 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4256
4257 * Makefile.in (COMPILE.pre): Add "-x c++".
4258
4259 2017-06-16 Alan Hayward <alan.hayward@arm.com>
4260 Pedro Alves <palves@redhat.com>
4261 Yao Qi <yao.qi@linaro.org>
4262
4263 * defs.h (RequireLongest): New.
4264 (extract_integer): Declare function template.
4265 (extract_signed_integer): Remove the declaration, but define it
4266 static inline.
4267 (extract_unsigned_integer): Likewise.
4268 (store_integer): Declare function template.
4269 (store_signed_integer): Remove the declaration, but define it
4270 static inline.
4271 (store_unsigned_integer): Likewise.
4272 * findvar.c (extract_integer): New function template.
4273 (extract_signed_integer): Remove.
4274 (extract_unsigned_integer): Remove.
4275 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4276 instantiations.
4277 (store_integer): New function template.
4278 (store_signed_integer): Remove.
4279 (store_unsigned_integer): Remove.
4280 (store_integer): Explicit instantiations.
4281 * regcache.c (regcache_raw_read_signed): Update.
4282 (regcache::raw_read): New function.
4283 (regcache::raw_read_signed): Remove.
4284 (regcache::raw_read_unsigned): Remove.
4285 (regcache_raw_read_unsigned): Update.
4286 (regcache_raw_write_unsigned): Update.
4287 (regcache::raw_write_signed): Remove.
4288 (regcache::raw_write): New function.
4289 (regcache_cooked_read_signed): Update.
4290 (regcache::raw_write_unsigned): Remove.
4291 (regcache::cooked_read_signed): Remove.
4292 (regcache_cooked_read_unsigned): Update.
4293 (regcache::cooked_read_unsigned): Remove.
4294 (regcache_cooked_write_signed): Update.
4295 (regcache_cooked_write_unsigned): Update.
4296 * regcache.h (regcache) <raw_read_signed>: Remove.
4297 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
4298 <raw_read, raw_write>: New.
4299 <cooked_read_signed, cooked_write_signed>: Remove.
4300 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
4301 <cooked_read, cooked_write>: New.
4302 * sh64-tdep.c (sh64_pseudo_register_read): Update.
4303 (sh64_pseudo_register_write): Update.
4304
4305 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
4306
4307 * arc-tdep.c (arc_disassembler_options): New variable.
4308 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
4309 of default_print_insn.
4310 (arc_delayed_print_insn): Set info->section when needed,
4311 use default_print_insn to retrieve a disassembler.
4312
4313 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
4314
4315 PR gdb/21574
4316 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
4317 to mention $SHELL and startup-with-shell.
4318
4319 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
4320
4321 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
4322
4323 2017-06-14 Yao Qi <yao.qi@linaro.org>
4324
4325 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
4326 default_print_insn instead of print_insn_aarch64.
4327 * arm-tdep.c (gdb_print_insn_arm): Call
4328 default_print_insn instead of print_insn_big_arm
4329 and print_insn_little_arm.
4330 * i386-tdep.c (i386_print_insn): Call default_print_insn
4331 instead of print_insn_i386.
4332 * ia64-tdep.c (ia64_print_insn): Call
4333 default_print_insn instead of print_insn_ia64.
4334 * mips-tdep.c (gdb_print_insn_mips): Call
4335 default_print_insn instead of print_insn_big_mips
4336 and print_insn_little_mips.
4337 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
4338 instead of print_insn_spu.
4339
4340 2017-06-14 Pedro Alves <palves@redhat.com>
4341
4342 * ada-lang.c: Include "common/byte-vector.h".
4343 (ada_value_primitive_packed_val): Use gdb::byte_vector.
4344 * charset.c (wchar_iterator::iterate): Resize the vector instead
4345 of reserving it.
4346 * common/byte-vector.h: Include "common/def-vector.h".
4347 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
4348 * cli/cli-dump.c: Include "common/byte-vector.h".
4349 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
4350 * common/byte-vector.h: New file.
4351 * common/def-vector.h: New file.
4352 * common/default-init-alloc.h: New file.
4353 * dwarf2loc.c: Include "common/byte-vector.h".
4354 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
4355 instead of reserving it.
4356 * dwarf2read.c: Include "common/byte-vector.h".
4357 (data_buf::m_vec): Now a gdb::byte_vector.
4358 * gdb_regex.c: Include "common/def-vector.h".
4359 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
4360 * mi/mi-main.c: Include "common/byte-vector.h".
4361 (mi_cmd_data_read_memory): Use gdb::byte_vector.
4362 * printcmd.c: Include "common/byte-vector.h".
4363 (print_scalar_formatted): Use gdb::byte_vector.
4364 * valprint.c: Include "common/byte-vector.h".
4365 (maybe_negate_by_bytes, print_decimal_chars): Use
4366 gdb::byte_vector.
4367
4368 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4369
4370 * darwin-nat.c: Include "nat/fork-inferior.h".
4371
4372 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4373
4374 * configure.nat: Factor out Darwin bits that are not
4375 architecture-specific. Add fork-inferior.o.
4376
4377 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4378
4379 * configure.nat: Factor out AIX bits that are not
4380 architecture-specific. Add fork-inferior.o.
4381
4382 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4383
4384 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
4385 (read_pieced_value, write_pieced_value): ...here. Reduce to
4386 wrappers that just call rw_pieced_value.
4387
4388 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4389
4390 * dwarf2loc.c (write_pieced_value): When writing the data for a
4391 memory piece, use write_memory_with_notification instead of
4392 write_memory.
4393
4394 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4395
4396 * valops.c (read_value_memory): Change embedded_offset to
4397 represent a bit offset instead of a byte offset.
4398 * value.h (read_value_memory): Adjust comment.
4399
4400 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4401
4402 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
4403 dest_offset_bits and source_offset_bits.
4404 (write_pieced_value): Likewise.
4405
4406 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4407
4408 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
4409 given by DW_OP_bit_piece.
4410 (write_pieced_value): Likewise.
4411
4412 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4413
4414 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
4415 some other preparations to the places where sufficient information
4416 is available.
4417 (write_pieced_value): Likewise.
4418
4419 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4420
4421 * dwarf2loc.c (bits_to_bytes): New function.
4422 (read_pieced_value): Fix offset calculations for register pieces
4423 on big-endian targets.
4424 (write_pieced_value): Likewise.
4425
4426 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4427
4428 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
4429 (write_pieced_value): Likewise.
4430
4431 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4432
4433 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
4434 transfer the source value's least significant bits, instead of its
4435 lowest-addressed ones. Rename type_len to max_offset.
4436 (read_pieced_value): Mirror above changes to write_pieced_value as
4437 applicable.
4438
4439 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4440
4441 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
4442 truncate full bytes from dest_offset_bits before using it as an
4443 offset into the buffer.
4444
4445 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4446
4447 * dwarf2loc.c (write_pieced_value): Include transfer size in
4448 byte-wise check.
4449
4450 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4451
4452 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
4453 calculation of this_size.
4454
4455 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4456
4457 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
4458 when targeting a bit-field.
4459 (write_pieced_value): Likewise.
4460
4461 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4462
4463 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
4464 (allocate_piece_closure): Drop addr_size parameter.
4465 (dwarf2_evaluate_loc_desc_full): Adjust call to
4466 allocate_piece_closure.
4467
4468 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4469
4470 PR gdb/21226
4471 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
4472 the LSB end, independent of endianness.
4473
4474 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4475
4476 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
4477 size capping.
4478
4479 2017-06-13 Yao Qi <yao.qi@linaro.org>
4480
4481 * mips-linux-nat.c: Move include features/mips*-linux.c to
4482 mips-linux-tdep.c.
4483 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
4484 to mips-linux-tdep.c.
4485 * mips-linux-tdep.c: Include features/mips*-linux.c
4486 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
4487 functions.
4488 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
4489 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
4490 (tdesc_mips64_dsp_linux): Declare.
4491
4492 2017-06-12 Tom Tromey <tom@tromey.com>
4493
4494 * valprint.h (val_print_type_code_int): Remove.
4495 * valprint.c (generic_val_print_int): Always call
4496 val_print_scalar_formatted.
4497 (val_print_type_code_int): Remove.
4498 * printcmd.c (print_scalar_formatted): Handle options->format==0.
4499 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
4500 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
4501 * ada-valprint.c (ada_val_print_num): Use
4502 val_print_scalar_formatted.
4503
4504 2017-06-12 Tom Tromey <tom@tromey.com>
4505
4506 * printcmd.c (print_scalar_formatted): Unify the two switches.
4507 Don't convert scalars to LONGEST.
4508
4509 2017-06-12 Tom Tromey <tom@tromey.com>
4510
4511 PR exp/16225:
4512 * valprint.h (print_decimal_chars): Update.
4513 * valprint.c (maybe_negate_by_bytes): New function.
4514 (print_decimal_chars): Add "is_signed" argument.
4515 * printcmd.c (print_scalar_formatted): Update.
4516
4517 2017-06-12 Tom Tromey <tom@tromey.com>
4518
4519 PR exp/16225:
4520 * valprint.h (print_binary_chars, print_hex_chars): Update.
4521 * valprint.c (val_print_type_code_int): Update.
4522 (print_binary_chars): Add "zero_pad" argument.
4523 (emit_octal_digit): New function.
4524 (print_octal_chars): Don't zero-pad.
4525 (print_decimal_chars): Likewise.
4526 (print_hex_chars): Add "zero_pad" argument.
4527 * sh64-tdep.c (sh64_do_fp_register): Update.
4528 * regcache.c (regcache::dump): Update.
4529 * printcmd.c (print_scalar_formatted): Update.
4530 * infcmd.c (default_print_one_register_info): Update.
4531
4532 2017-06-12 Pedro Alves <palves@redhat.com>
4533 Alan Hayward <alan.hayward@arm.com>
4534
4535 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
4536 (mips_eabi_push_dummy_call): Rename local 'regsize' to
4537 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
4538 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
4539 Assert that abi_regsize bytes fit in 'ref_valbuf'.
4540
4541 2017-06-12 Pedro Alves <palves@redhat.com>
4542
4543 * dwarf2read.c (mapped_symtab::data): Now a vector of
4544 symtab_index_entry instead of vector of
4545 std::unique_ptr<symtab_index_entry>. All users adjusted to check
4546 whether an element's name is NULL instead of checking whether the
4547 element itself is NULL.
4548 (find_slot): Change return type. Adjust.
4549 (hash_expand, , add_index_entry, uniquify_cu_indices)
4550 (write_hash_table): Adjust.
4551
4552 2017-06-12 Pedro Alves <palves@redhat.com>
4553
4554 * dwarf2read.c (recursively_count_psymbols): New function.
4555 (write_psymtabs_to_index): Call it to compute number of psyms and
4556 pass estimate size of psyms_seen to unordered_set's ctor.
4557
4558 2017-06-12 Pedro Alves <palves@redhat.com>
4559
4560 * dwarf2read.c (write_hash_table): Check if key already exists
4561 before emplacing.
4562
4563 2017-06-12 Pedro Alves <palves@redhat.com>
4564
4565 * dwarf2read.c (data_buf::append_space): Rename to...
4566 (data_buf::grow): ... this, and make private. Adjust all callers.
4567 (data_buf::append_uint): New method.
4568 (add_address_entry, write_one_signatured_type)
4569 (write_psymtabs_to_index): Use it.
4570
4571 2017-06-12 Pedro Alves <palves@redhat.com>
4572
4573 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
4574 (file_write (FILE *, const std::vector<Elem>&)): Delete.
4575 (data_buf::file_write): Call ::fwrite directly.
4576
4577 2017-06-12 Pedro Alves <palves@redhat.com>
4578
4579 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
4580 std::vector::erase.
4581
4582 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4583
4584 Code cleanup: C++ify .gdb_index producer.
4585 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
4586 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
4587 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
4588 (create_strtab, add_string): Remove.
4589 (file_write, data_buf): New.
4590 (struct symtab_index_entry): Use std::vector for cu_indices.
4591 (struct mapped_symtab): Use std::vector for data.
4592 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
4593 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
4594 Remove.
4595 (find_slot): Change return type. Update it to the new data structures.
4596 (hash_expand, add_index_entry): Update it to the new data structures.
4597 (offset_type_compare): Remove.
4598 (uniquify_cu_indices): Update it to the new data structures.
4599 (c_str_view, c_str_view_hasher, vector_hasher): New.
4600 (add_indices_to_cpool): Remove.
4601 (write_hash_table): Update it to the new data structures.
4602 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
4603 (eq_psymtab_cu_index): Remove.
4604 (psym_index_map): New typedef.
4605 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
4606 reference and std::unordered_map for cu_index_htab.
4607 (add_address_entry, add_address_entry_worker, write_address_map)
4608 (write_psymbols): Update it to the new data structures.
4609 (write_obstack): Remove.
4610 (struct signatured_type_index_data): Change types_list to a data_buf
4611 reference and psyms_seen to a std::unordered_set reference.
4612 (write_one_signatured_type, recursively_write_psymbols)
4613 (write_psymtabs_to_index): Update it to the new data structures.
4614
4615 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
4616
4617 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
4618 separate-debug-file commands.
4619 * symfile.h (separate_debug_file_debug): New global.
4620 * symfile.c (separate_debug_file_debug): New global.
4621 (separate_debug_file_exists, find_separate_debug_file): Add
4622 debug output.
4623 (_initialize_symfile): Add "set debug separate-debug-file"
4624 command.
4625 * build-id.c (build_id_to_debug_bfd,
4626 find_separate_debug_file_by_buildid): Add debug output.
4627
4628 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4629
4630 * gdbarch.sh (displaced_step_free_closure): Remove.
4631 * gdbarch.h, gdbarch.c: Re-generate.
4632 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
4633 displaced_step_free_closure.
4634 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4635 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4636 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4637 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
4638 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4639 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4640 * arch-utils.h (simple_displaced_step_free_closure): Remove.
4641 * arch-utils.c (simple_displaced_step_free_closure): Remove.
4642 * infrun.c (displaced_step_clear): Call xfree instead of
4643 gdbarch_displaced_step_free_closure.
4644
4645 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
4646
4647 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
4648 NULL".
4649
4650 2017-06-08 Alan Hayward <alan.hayward@arm.com>
4651
4652 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
4653 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
4654 (mn10300_push_dummy_call): Likewise.
4655
4656 2017-06-08 Alan Hayward <alan.hayward@arm.com>
4657
4658 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
4659
4660 2017-06-08 Alan Hayward <alan.hayward@arm.com>
4661
4662 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
4663
4664 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4665
4666 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
4667 able to start inferiors using a shell.
4668 (New remote packets): Announce new packet "QStartupWithShell".
4669 * remote.c: Add PACKET_QStartupWithShell.
4670 (extended_remote_create_inferior): Handle new
4671 PACKET_QStartupWithShell.
4672 (remote_protocol_features) <QStartupWithShell>: New entry for
4673 PACKET_QStartupWithShell.
4674 (_initialize_remote): Call "add_packet_config_cmd" for
4675 QStartupShell.
4676
4677 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4678 Pedro Alves <palves@redhat.com>
4679
4680 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
4681 and "nat/fork-inferior.h".
4682 * common/common-inferior.h: New file, with contents from
4683 "gdb/inferior.h".
4684 * commom/common-utils.c: Include "common-utils.h".
4685 (stringify_argv): New function.
4686 * common/common-utils.h (stringify_argv): New prototype.
4687 * configure.nat: Add "fork-inferior.o" as a dependency for
4688 "*linux*", "fbsd*" and "nbsd*" hosts.
4689 * corefile.c (get_exec_file): Update comment.
4690 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
4691 instead of "startup_inferior".
4692 (darwin_create_inferior): Call "add_thread_silent" after
4693 "fork_inferior".
4694 * fork-child.c: Cleanup unnecessary includes.
4695 (SHELL_FILE): Move to "common/common-fork-child.c".
4696 (environ): Likewise.
4697 (exec_wrapper): Initialize.
4698 (get_exec_wrapper): New function.
4699 (breakup_args): Move to "common/common-fork-child.c"; rename to
4700 "breakup_args_for_exec".
4701 (escape_bang_in_quoted_argument): Move to
4702 "common/common-fork-child.c".
4703 (saved_ui): New variable.
4704 (prefork_hook): New function.
4705 (postfork_hook): Likewise.
4706 (postfork_child_hook): Likewise.
4707 (gdb_startup_inferior): Likewise.
4708 (fork_inferior): Move to "common/common-fork-child.c". Update
4709 function to support gdbserver.
4710 (startup_inferior): Likewise.
4711 * gdbcore.h (get_exec_file): Remove declaration.
4712 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
4713 instead of "startup_inferior". Call "add_thread_silent" after
4714 "fork_inferior".
4715 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
4716 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
4717 instead of "startup_inferior". Call "add_thread_silent" after
4718 "fork_inferior".
4719 * inferior.h: Include "common-inferior.h".
4720 (trace_start_error): Move to "common/common-utils.h".
4721 (trace_start_error_with_name): Likewise.
4722 (fork_inferior): Move prototype to "nat/fork-inferior.h".
4723 (startup_inferior): Likewise.
4724 (gdb_startup_inferior): New prototype.
4725 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
4726 * nat/fork-inferior.h: New file.
4727 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
4728 instead of "startup_inferior". Call "add_thread_silent" after
4729 "fork_inferior".
4730 * target.h (target_terminal_init): Move prototype to
4731 "target/target.h".
4732 (target_terminal_inferior): Likewise.
4733 (target_terminal_ours): Likewise.
4734 * target/target.h (target_terminal_init): New prototype, moved
4735 from "target.h".
4736 (target_terminal_inferior): Likewise.
4737 (target_terminal_ours): Likewise.
4738 * utils.c (gdb_flush_out_err): New function.
4739
4740 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4741
4742 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
4743 * common/common-gdbthread.h: New file, with parts from
4744 "gdb/gdbthread.h".
4745 * gdbthread.h: Include "common-gdbthread.h".
4746 (switch_to_thread): Moved to "common/common-gdbthread.h".
4747
4748 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4749
4750 * Makefile.in (SFILES): Add "common/job-control.c".
4751 (HFILES_NO_SRCDIR): Add "common/job-control.h".
4752 (COMMON_OBS): Add "job-control.o".
4753 * common/job-control.c: New file, with contents from
4754 "gdb/inflow.c".
4755 * common/job-control.h: New file, with contents from "terminal.h".
4756 * fork-child.c: Include "job-control.h".
4757 * inflow.c: Include "job-control.h".
4758 (gdb_setpgid): Move to "common/common-inflow.c".
4759 (_initialize_inflow): Move setting of "job_control" to
4760 "handle_job_control".
4761 * terminal.h (job_control): Moved to "common/common-terminal.h".
4762 (gdb_setpgid): Likewise.
4763 * top.c: Include "job_control.h".
4764 * utils.c: Likewise.
4765 (job_control): Moved to "job-control.c".
4766
4767 2017-06-07 Pedro Alves <palves@redhat.com>
4768
4769 * Makefile.in (SFILES): Add gdb_regex.c.
4770 (COMMON_OBS): Add gdb_regex.o.
4771 * ada-lang.c (ada_add_standard_exceptions)
4772 (ada_add_exceptions_from_frame, name_matches_regex)
4773 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
4774 parameter type to compiled_regex. Adjust.
4775 (ada_exceptions_list): Use compiled_regex.
4776 * break-catch-throw.c (exception_catchpoint::pattern): Now a
4777 std::unique_ptr<compiled_regex>.
4778 (exception_catchpoint::~exception_catchpoint): Remove regfree
4779 call.
4780 (check_status_exception_catchpoint): Adjust to use compiled_regex.
4781 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
4782 * breakpoint.c (solib_catchpoint::compiled): Now a
4783 std::unique_ptr<compiled_regex>.
4784 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
4785 (check_status_catch_solib): Adjust to use compiled_regex.
4786 (add_solib_catchpoint): Adjust to use compiled_regex.
4787 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
4788 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
4789 compiled_regex reference. Adjust to use it.
4790 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
4791 declaration. Include "gdb_regex.h".
4792 (apropos_cmd): Change regex parameter to compiled_regex reference.
4793 * gdb_regex.c: New file.
4794 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
4795 declarations.
4796 (class compiled_regex): New.
4797 * linux-tdep.c: Include "common/gdb_optional.h".
4798 (struct mapping_regexes): New, factored out from
4799 mapping_is_anonymous_p, and adjusted to use compiled_regex.
4800 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
4801 gdb::optional and remove cleanups. Adjust to compiled_regex.
4802 * probe.c: Include "common/gdb_optional.h".
4803 (collect_probes): Use compiled_regex and gdb::optional and remove
4804 cleanups.
4805 * skip.c: Include "common/gdb_optional.h".
4806 (skiplist_entry::compiled_function_regexp): Now a
4807 gdb::optional<compiled_regex>.
4808 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
4809 (free_skiplist_entry): Remove regfree call.
4810 (compile_skip_regexp, skip_rfunction_p): Adjust to use
4811 compiled_regex and gdb::optional.
4812 * symtab.c: Include "common/gdb_optional.h".
4813 (search_symbols): Use compiled_regex and gdb::optional.
4814 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
4815 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
4816 to gdb_regex.c.
4817
4818 2017-06-07 Alan Hayward <alan.hayward@arm.com>
4819
4820 * regcache.c (regcache::save): Avoid buffer use.
4821 (regcache::dump): Likewise.
4822
4823 2017-06-07 Alan Hayward <alan.hayward@arm.com>
4824
4825 * sh-tdep.c (sh_pseudo_register_read): Remove
4826 MAX_REGISTER_SIZE.
4827 (sh_pseudo_register_write): Likewise.
4828 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
4829 (sh64_pseudo_register_write): Likewise
4830
4831 2017-06-07 Alan Hayward <alan.hayward@arm.com>
4832
4833 * aarch64-tdep.c (aarch64_store_return_value): Use
4834 V_REGISTER_SIZE.
4835 (aarch64_pseudo_read_value): Likewise.
4836 (aarch64_pseudo_write): Likewise.
4837
4838 2017-06-06 Yao Qi <yao.qi@linaro.org>
4839
4840 * regformats/regdef.h (set_register_cache): Remove the
4841 declaration.
4842
4843 2017-06-06 Alan Hayward <alan.hayward@arm.com>
4844
4845 * frame.c (frame_unwind_register_signed): Use
4846 frame_unwind_register_value.
4847
4848 2017-06-06 Pedro Alves <palves@redhat.com>
4849
4850 PR breakpoints/21553
4851 * breakpoint.c (create_breakpoints_sal_default)
4852 (init_breakpoint_sal, create_breakpoint_sal): Use
4853 gdb::unique_xmalloc_ptr for string parameters.
4854 (create_breakpoint): Constify 'extra_string' and 'cond_string'
4855 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
4856 (base_breakpoint_create_breakpoints_sal)
4857 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
4858 (strace_marker_create_breakpoints_sal)
4859 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
4860 string parameters.
4861 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
4862 gdb::unique_xmalloc_ptr for string parameters.
4863 (create_breakpoint): Constify 'extra_string' and 'cond_string'
4864 parameters.
4865
4866 2017-06-06 Alan Hayward <alan.hayward@arm.com>
4867
4868 * alpha-tdep.c (alpha_register_to_value): Use
4869 get_frame_register_value.
4870 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
4871
4872 2017-06-06 Alan Hayward <alan.hayward@arm.com>
4873
4874 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
4875 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
4876 (ia64_value_to_register): Likewise.
4877 (ia64_extract_return_value): Likewise.
4878 (ia64_store_return_value): Likewise.
4879 (ia64_push_dummy_call): Likewise.
4880
4881 2017-06-04 Joel Brobecker <brobecker@adacore.com>
4882
4883 GDB 8.0 released.
4884
4885 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
4886
4887 * x86-linux-nat.c (struct arch_lwp_info): Remove.
4888
4889 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
4890
4891 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
4892 parameter.
4893 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
4894
4895 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
4896
4897 * event-loop.c (poll_timers): Unallocate timer using delete
4898 instead of xfree.
4899
4900 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
4901
4902 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
4903 (struct breakpoint) <~breakpoint>: New.
4904 (struct watchpoint): Inherit from breakpoint.
4905 <~watchpoint>: New.
4906 <base>: Remove.
4907 (struct tracepoint): Inherit from breakpoint.
4908 <base>: Remove.
4909 * breakpoint.c (longjmp_breakpoint_ops): Remove.
4910 (struct longjmp_breakpoint): Inherit from breakpoint.
4911 <~longjmp_breakpoint>: New.
4912 <base>: Remove.
4913 (new_breakpoint_from_type): Remove casts.
4914 (watchpoint_in_thread_scope): Remove reference to base field.
4915 (watchpoint_del_at_next_stop): Likewise.
4916 (update_watchpoint): Likewise.
4917 (watchpoint_check): Likewise.
4918 (bpstat_check_watchpoint): Likewise.
4919 (set_longjmp_breakpoint): Likewise.
4920 (struct fork_catchpoint): Inherit from breakpoint.
4921 <base>: Remove.
4922 (struct solib_catchpoint): Inherit from breakpoint.
4923 <~solib_catchpoint>: New.
4924 <base>: Remove.
4925 (dtor_catch_solib): Change to ...
4926 (solib_catchpoint::~solib_catchpoint): ... this.
4927 (breakpoint_hit_catch_solib): Remove reference to base field.
4928 (add_solib_catchpoint): Likewise.
4929 (create_fork_vfork_event_catchpoint): Likewise.
4930 (struct exec_catchpoint): Inherit from breakpoint.
4931 <~exec_catchpoint>: New.
4932 <base>: Remove.
4933 (dtor_catch_exec): Change to ...
4934 (exec_catchpoint::~exec_catchpoint): ... this.
4935 (dtor_watchpoint): Change to ...
4936 (watchpoint::~watchpoint): ... this.
4937 (watch_command_1): Remove reference to base field.
4938 (catch_exec_command_1): Likewise.
4939 (base_breakpoint_dtor): Change to ...
4940 (breakpoint::~breakpoint): ... this.
4941 (base_breakpoint_ops): Remove dtor field value.
4942 (longjmp_bkpt_dtor): Change to ...
4943 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
4944 (strace_marker_create_breakpoints_sal): Remove reference to base
4945 field.
4946 (delete_breakpoint): Don't manually call breakpoint destructor.
4947 (create_tracepoint_from_upload): Remove reference to base field.
4948 (trace_pass_set_count): Likewise.
4949 (initialize_breakpoint_ops): Don't initialize
4950 momentary_breakpoint_ops, don't set dtors.
4951 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
4952 <~ada_catchpoint>: New.
4953 <base>: Remove.
4954 (create_excep_cond_exprs): Remove reference to base field.
4955 (dtor_exception): Change to ...
4956 (ada_catchpoint::~ada_catchpoint): ... this.
4957 (dtor_catch_exception): Remove.
4958 (dtor_catch_exception_unhandled): Remove.
4959 (dtor_catch_assert): Remove.
4960 (create_ada_exception_catchpoint): Remove reference to base
4961 field.
4962 (initialize_ada_catchpoint_ops): Don't set dtors.
4963 * break-catch-sig.c (struct signal_catchpoint): Inherit from
4964 breakpoint.
4965 <~signal_catchpoint>: New.
4966 <base>: Remove.
4967 (signal_catchpoint_dtor): Change to ...
4968 (signal_catchpoint::~signal_catchpoint): ... this.
4969 (create_signal_catchpoint): Remove reference to base field.
4970 (initialize_signal_catchpoint_ops): Don't set dtor.
4971 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
4972 from breakpoint.
4973 <~syscall_catchpoint>: New.
4974 <base>: Remove.
4975 (dtor_catch_syscall): Change to ...
4976 (syscall_catchpoint::~syscall_catchpoint): ... this.
4977 (create_syscall_event_catchpoint): Remove reference to base
4978 field.
4979 (initialize_syscall_catchpoint_ops): Don't set dtor.
4980 * break-catch-throw.c (struct exception_catchpoint): Inherit
4981 from breakpoint.
4982 <~exception_catchpoint>: New.
4983 <base>: Remove.
4984 (dtor_exception_catchpoint): Change to ...
4985 (exception_catchpoint::~exception_catchpoint): ... this.
4986 (handle_gnu_v3_exceptions): Remove reference to base field.
4987 (initialize_throw_catchpoint_ops): Don't set dtor.
4988 * ctf.c (ctf_get_traceframe_address): Remove reference to base
4989 field.
4990 * remote.c (remote_get_tracepoint_status): Likewise.
4991 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
4992 * tracefile.c (tracefile_fetch_registers): Likewise.
4993 * tracepoint.c (actions_command): Likewise.
4994 (validate_actionline): Likewise.
4995 (tfind_1): Likewise.
4996 (get_traceframe_location): Likewise.
4997 (find_matching_tracepoint_location): Likewise.
4998 (parse_tracepoint_status): Likewise.
4999 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5000
5001 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5002
5003 * breakpoint.c (struct longjmp_breakpoint): New struct.
5004 (is_tracepoint_type): Change return type to bool.
5005 (is_longjmp_type): New function.
5006 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5007 (set_raw_breakpoint_without_location): Use
5008 new_breakpoint_from_type.
5009 (set_raw_breakpoint): Likewise.
5010
5011 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5012
5013 * breakpoint.c (new_breakpoint_from_type): New function.
5014 (create_breakpoint_sal): Use new_breakpoint_from_type and
5015 unique_ptr.
5016 (create_breakpoint): Likewise.
5017
5018 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5019
5020 * memattr.c (mem_info_command): Rename to ...
5021 (info_mem_command): ... this.
5022 (mem_enable_command): Rename to ...
5023 (enable_mem_command): ... this.
5024 (mem_disable_command): Rename to ...
5025 (disable_mem_command): ... this.
5026 (mem_delete_command): Rename to ...
5027 (delete_mem_command): ... this.
5028 (_initialize_mem): Adjust function names.
5029
5030 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5031
5032 * btrace.c (handle_pt_insn_events): New.
5033 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5034 STATUS. Split into this and ...
5035 (handle_pt_insn_event_flags): ... this.
5036
5037 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5038
5039 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5040 and struct pt_insn.resynced.
5041 * configure: Regenerated.
5042 * config.in: Regenerated.
5043
5044 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5045
5046 * btrace.c (ftrace_find_call_by_number): New function.
5047 (ftrace_new_function): Store objects, not pointers.
5048 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5049 ftrace_new_gap, ftrace_update_function,
5050 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5051 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5052 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5053 btrace_ends_with_single_insn, btrace_call_get): Account for
5054 btrace_thread_info::functions now storing objects.
5055 * btrace.h (struct btrace_thread_info): Add constructor.
5056 (struct btrace_thread_info) <functions>: Make std::vector.
5057 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5058 Initialize with default values.
5059 * record-btrace.c (record_btrace_frame_sniffer): Account for
5060 btrace_thread_info::functions now storing objects.
5061
5062 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5063
5064 * btrace.c: Remove typedef bfun_s.
5065 (ftrace_new_gap): Directly add gaps to the list of gaps.
5066 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5067 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5068 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5069 instead of gdb VEC.
5070
5071 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5072
5073 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5074 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5075 with btrace_thread_info::next_segment and
5076 btrace_thread_info::prev_segment.
5077 * btrace.h: Remove struct btrace_func_link.
5078 (struct btrace_function): Replace pair of function segment pointers
5079 with pair of indices.
5080 * python/py-record-btrace.c (btpy_call_prev_sibling,
5081 btpy_call_next_sibling): Replace references to
5082 btrace_thread_info::segment with btrace_thread_info::next_segment and
5083 btrace_thread_info::prev_segment.
5084 * record-btrace.c (record_btrace_frame_this_id): Use
5085 btrace_find_call_by_number.
5086
5087 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5088
5089 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5090 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5091 btrace_insn_next, btrace_insn_prev): Remove references to
5092 btrace_thread_info::flow.
5093 * btrace.h (struct btrace_function): Remove FLOW.
5094
5095 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5096
5097 * btrace.c (ftrace_find_call_by_number): New function.
5098 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5099 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5100 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5101 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5102 index.
5103 * btrace.h (struct btrace_function): Turn UP into an index.
5104 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5105 as an index.
5106 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5107 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5108 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5109
5110 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5111
5112 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5113 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5114 ftrace_update_function, ftrace_compute_global_level_offset,
5115 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5116 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5117 btrace_insn_end, btrace_is_empty): Remove references to
5118 btrace_thread_info::begin and btrace_thread_info::end.
5119 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5120 (struct btrace_thread_info) <functions>: Adjust comment.
5121 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5122 btrace_thread_info::begin.
5123
5124 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5125
5126 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5127 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5128 ftrace_update_function): Remove arguments that implicitly were always
5129 BTINFO->END.
5130 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5131 Don't pass BTINFO->END.
5132
5133 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5134
5135 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5136 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5137 btrace_find_insn_by_number): Replace function segment pointer with
5138 index.
5139 (btrace_insn_cmp): Simplify.
5140 * btrace.h: (struct btrace_insn_iterator) Rename index to
5141 insn_index. Replace function segment pointer with index into function
5142 segment vector.
5143 * record-btrace.c (record_btrace_call_history): Replace function
5144 segment pointer use with index.
5145 (record_btrace_frame_sniffer): Retrieve function call segment through
5146 vector.
5147 (record_btrace_set_replay): Remove defunc't safety check.
5148
5149 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5150
5151 * btrace.c (btrace_ends_with_single_insn): New function.
5152 (btrace_call_get, btrace_call_number, btrace_call_begin,
5153 btrace_call_end, btrace_call_next, btrace_call_prev,
5154 btrace_find_call_by_number): Use index into call segment vector
5155 instead of pointer.
5156 (btrace_call_cmp): Simplify.
5157 * btrace.h (struct btrace_call_iterator): Replace function call segment
5158 pointer with index into vector.
5159 * record-btrace.c (record_btrace_call_history): Use index instead of
5160 pointer.
5161
5162 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5163
5164 * btrace.c (btrace_insn_begin, btrace_insn_end,
5165 btrace_find_insn_by_number): Add btinfo to iterator.
5166 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5167
5168 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5169
5170 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5171 and save pointers directly.
5172 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5173 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5174 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5175 changed signature of functions.
5176 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5177 (btrace_fetch): Remove code that adds btrace_function pointers to
5178 vector of btrace_functions.
5179 (btrace_clear): Simplify freeing vector of btrace_functions.
5180
5181 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5182
5183 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5184 Replace VEC_* with std::vector functions.
5185 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5186 (struct btrace_thread_info)<functions>: Change type to std::vector.
5187
5188 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5189
5190 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5191 "Removed targets and native configurations" up. Merge duplicate
5192 "New commands" sub-sections. Add "New options" sub-sections.
5193
5194 2017-05-26 Alan Hayward <alan.hayward@arm.com>
5195
5196 * defs.h (copy_integer_to_size): New declaration.
5197 * findvar.c (copy_integer_to_size): New function.
5198 (do_cint_test): New selftest function.
5199 (copy_integer_to_size_test): Likewise.
5200 (_initialize_findvar): Likewise.
5201 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5202 (mips_fbsd_collect_reg): Use raw_collect_integer.
5203 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5204 (mips64_fill_gregset): Use raw_collect_integer
5205 (mips64_fill_fpregset): Use raw_supply_integer.
5206 * regcache.c (regcache::raw_supply_integer): New function.
5207 (regcache::raw_collect_integer): Likewise.
5208 * regcache.h: (regcache::raw_supply_integer): New declaration.
5209 (regcache::raw_collect_integer): Likewise.
5210
5211 2017-05-24 Yao Qi <yao.qi@linaro.org>
5212
5213 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5214 (COMMON_OBS): Add gdbarch-selftests.o.
5215 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5216 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5217 * gdbarch-selftests.c: New file.
5218 * regcache.h (regcache) <~regcache>: Mark it virtual if
5219 GDB_SELF_TEST.
5220 <raw_write>: Likewise.
5221
5222 2017-05-24 Yao Qi <yao.qi@linaro.org>
5223
5224 * regcache.c (current_regcache): Change it to
5225 regcache::current_regcache.
5226 (regcache_observer_target_changed): Update.
5227 (regcache_thread_ptid_changed): Make it a regcache static
5228 method.
5229 (regcache_thread_ptid_changed): Update.
5230 (class regcache_access): New.
5231 (current_regcache_test): Update.
5232 (_initialize_regcache): Update.
5233 * regcache.h: Include forward_list.
5234 (regcache): Declare regcache_thread_ptid_changed and declare
5235 registers_changed_ptid as friend.
5236
5237 2017-05-24 Yao Qi <yao.qi@linaro.org>
5238
5239 * i387-tdep.c (i387_register_to_value): Use register_size
5240 instead of TYPE_LENGTH.
5241 * m68k-tdep.c (m68k_register_to_value): Likewise.
5242
5243 2017-05-24 Yao Qi <yao.qi@linaro.org>
5244
5245 * i387-tdep.c (i387_convert_register_p): Return false if type
5246 code isn't TYPE_CODE_FLT.
5247
5248 2017-05-24 Yao Qi <yao.qi@linaro.org>
5249
5250 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5251 length is 4.
5252 (alpha_register_to_value): Remove type length check.
5253 (alpha_value_to_register): Likewise.
5254
5255 2017-05-24 Yao Qi <yao.qi@linaro.org>
5256
5257 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5258 TYPE_CODE_FLT.
5259
5260 2017-05-24 Yao Qi <yao.qi@linaro.org>
5261
5262 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5263 TYPE_CODE_FLT or not.
5264
5265 2017-05-24 Yao Qi <yao.qi@linaro.org>
5266
5267 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5268 * avr-tdep.c (avr_gdbarch_init): Likewise.
5269 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5270 * cris-tdep.c (cris_gdbarch_init): Likewise.
5271 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5272 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5273 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5275 * mep-tdep.c (mep_gdbarch_init): Likewise.
5276 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5277 * mips-tdep.c (mips_gdbarch_init): Likewise.
5278 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5279 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5280 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5281 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5282 * v850-tdep.c (v850_gdbarch_init): Likewise.
5283
5284 2017-05-24 Yao Qi <yao.qi@linaro.org>
5285
5286 * selftest-arch.c (tests_with_arch): Call registers_changed
5287 and reinit_frame_cache.
5288 * selftest.c (run_self_tests): Likewise.
5289
5290 2017-05-24 Yao Qi <yao.qi@linaro.org>
5291
5292 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
5293 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
5294
5295 2017-05-24 Yao Qi <yao.qi@linaro.org>
5296
5297 * rl78-tdep.c (rl78_gdbarch_init): Don't call
5298 set_gdbarch_print_insn.
5299
5300 2017-05-24 Yao Qi <yao.qi@linaro.org>
5301
5302 * h8300-tdep.c (h8300_gdbarch_init): Don't call
5303 set_gdbarch_print_insn.
5304
5305 2017-05-24 Yao Qi <yao.qi@linaro.org>
5306
5307 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5308 set_gdbarch_print_insn.
5309 * arc-tdep.c (arc_gdbarch_init): Likewise.
5310 * arch-utils.c: include dis-asm.h.
5311 (default_print_insn): New function.
5312 * arch-utils.h (default_print_insn): Declare.
5313 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
5314 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5315 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
5316 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
5317 * frv-tdep.c (frv_gdbarch_init): Likewise.
5318 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5319 * gdbarch.sh (print_insn): Use default_print_insn.
5320 * gdbarch.c: Regenerated.
5321 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5322 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
5323 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5324 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
5325 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5326 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
5327 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
5328 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5329 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
5330 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5331 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5332 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5333 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5334 * mt-tdep.c (mt_gdbarch_init): Likewise.
5335 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5336 * nios2-tdep.c (nios2_print_insn): Remove.
5337 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
5338 * rx-tdep.c (rx_gdbarch_init): Likewise.
5339 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5340 * score-tdep.c (score_print_insn): Remove.
5341 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
5342 * sh-tdep.c (sh_gdbarch_init): Likewise.
5343 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5344 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5345 * tic6x-tdep.c (tic6x_print_insn): Remove.
5346 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
5347 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
5348 * v850-tdep.c (v850_gdbarch_init): Likewise.
5349 * vax-tdep.c (vax_gdbarch_init): Likewise.
5350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5351 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
5352
5353 2017-05-23 John Baldwin <jhb@FreeBSD.org>
5354
5355 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
5356 (MIPS_FP0_REGNUM): Remove.
5357 (MIPS_FSR_REGNUM): Remove.
5358 (mips_fbsd_supply_fpregs): Use mips_regnum.
5359 (mips_fbsd_supply_gregs): Likewise.
5360 (mips_fbsd_collect_fpregs): Likewise.
5361 (mips_fbsd_collect_gregs): Likewise.
5362
5363 2017-05-23 John Baldwin <jhb@FreeBSD.org>
5364
5365 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
5366 (getpfpregs_supplies): New function.
5367 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
5368 getfpregs_supplies.
5369 (mips_fbsd_store_inferior_registers): Likewise.
5370
5371 2017-05-22 Pedro Alves <palves@redhat.com>
5372
5373 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
5374 maintainer.
5375
5376 2017-05-22 Alan Hayward <alan.hayward@arm.com>
5377
5378 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
5379 (store_register): Likewise.
5380 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
5381 (get_decimal_float_return_value): Likewise.
5382 (do_ppc_sysv_return_value): Likewise.
5383 (ppc64_sysv_abi_push_integer): Likewise.
5384 (ppc64_sysv_abi_push_freg): Likewise.
5385 (ppc64_sysv_abi_return_value_base): Likewise.
5386 (ppc64_sysv_abi_return_value): Likewise.
5387 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
5388 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
5389 * rs6000-nat.c: Likewise.
5390 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
5391 (rs6000_value_to_register): Likewise.
5392 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
5393
5394 2017-05-21 Tom Tromey <tom@tromey.com>
5395
5396 PR rust/21466:
5397 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
5398 arrays as "[T]", not "[T; ]".
5399
5400 2017-05-19 Tom Tromey <tom@tromey.com>
5401
5402 PR rust/21484:
5403 * rust-lang.c (exp_descriptor_rust): New function.
5404 (rust_language_defn): Use it.
5405 * p-lang.c (pascal_language_defn): Update.
5406 * opencl-lang.c (opencl_language_defn): Update.
5407 * objc-lang.c (objc_language_defn): Update.
5408 * m2-lang.c (m2_language_defn): Update.
5409 * language.h (struct language_defn)
5410 <la_watch_location_expression>: New member.
5411 * language.c (unknown_language_defn, auto_language_defn)
5412 (local_language_defn): Update.
5413 * go-lang.c (go_language_defn): Update.
5414 * f-lang.c (f_language_defn): Update.
5415 * d-lang.c (d_language_defn): Update.
5416 * c-lang.h (c_watch_location_expression): Declare.
5417 * c-lang.c (c_watch_location_expression): New function.
5418 (c_language_defn, cplus_language_defn, asm_language_defn)
5419 (minimal_language_defn): Use it.
5420 * breakpoint.c (watch_command_1): Call
5421 la_watch_location_expression.
5422 * ada-lang.c (ada_language_defn): Update.
5423
5424 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5425
5426 PR tui/21482
5427 * gdb_curses.h (NOMACROS): Define.
5428 (NCURSES_NOMACROS): Define.
5429
5430 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5431
5432 PR tui/21482
5433 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
5434 arg to char *.
5435 * tui/tui-wingeneral.c (box_win): Likewise.
5436 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
5437 (tui_show_source_line): Likewise.
5438 (tui_show_exec_info_content): Likewise.
5439
5440 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
5441
5442 * sparc-tdep.c (sparc_structure_return_p)
5443 (sparc_arg_on_registers_p): New functions.
5444 (sparc32_store_arguments): Use them.
5445 * sparc64-tdep.c (sparc64_16_byte_align_p)
5446 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
5447 Handle TYPE_CODE_ARRAY.
5448
5449 2017-05-17 Yao Qi <yao.qi@linaro.org>
5450
5451 * cli/cli-decode.c (add_alias_cmd): New function.
5452 * command.h (add_alias_cmd): Declare.
5453 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
5454 instead call add_alias_cmd.
5455
5456 2017-05-17 Pedro Alves <palves@redhat.com>
5457
5458 * Makefile.in (nat_extra_makefile_frag): Rename to ...
5459 (nat_makefile_frag): ... this. All references updated.
5460 * configure.ac: Likewise.
5461 * configure.nat: Likewise. Enhance comments.
5462 * configure: Regenerate.
5463
5464 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5465
5466 * procfs.c (procfs_create_inferior): Change prototype to match
5467 definition.
5468
5469 2017-05-13 Eli Zaretskii <eliz@gnu.org>
5470
5471 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
5472 C++ compiler warning.
5473
5474 2017-05-12 Tom Tromey <tom@tromey.com>
5475
5476 PR rust/21483:
5477 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
5478 recurse, just call value_struct_elt directly.
5479
5480 2017-05-12 Tom Tromey <tom@tromey.com>
5481
5482 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
5483 OP_RUST_ARRAY>: Fix.
5484
5485 2017-05-12 Tom Tromey <tom@tromey.com>
5486
5487 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
5488
5489 2017-05-09 Yao Qi <yao.qi@linaro.org>
5490
5491 * regcache.c: Include <forward_list>.
5492 (struct regcache_list): Remove.
5493 (current_regcache): Update.
5494 (get_thread_arch_aspace_regcache): Update for std::forward_list.
5495 (regcache_thread_ptid_changed): Likewise.
5496 (registers_changed_ptid): Likewise.
5497 (current_regcache_size): Likewise.
5498
5499 2017-05-09 Yao Qi <yao.qi@linaro.org>
5500
5501 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
5502 (current_regcache_size): New function.
5503 (current_regcache_test): New function.
5504 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
5505
5506 2017-05-08 Alan Hayward <alan.hayward@arm.com>
5507
5508 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
5509 (print_gp_register_row): Use get_frame_register_value.
5510
5511 2017-05-08 Alan Hayward <alan.hayward@arm.com>
5512
5513 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
5514 (mips_supply_fpregset): Likewise.
5515 (mips64_supply_gregset): Likewise.
5516
5517 2017-05-08 Alan Hayward <alan.hayward@arm.com>
5518
5519 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
5520 regcache->raw_supply_zeroed.
5521
5522 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5523
5524 * configure.nat: Rearrange 'case' statements to match
5525 host before cpu.
5526
5527 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5528
5529 * Makefile.in: Remove "@host_makefile_frag@". Add variables
5530 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
5531 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
5532 "@nat_extra_makefile_frag@".
5533 (Makefile): Remove dependency on "@frags@".
5534 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
5535 (data-directory/Makefile): Likewise.
5536 * config/aarch64/linux.mh: Deleted; moved contents to
5537 "gdb/configure.nat".
5538 * config/alpha/alpha-linux.mh: Likewise.
5539 * config/alpha/nbsd.mh: Likewise.
5540 * config/arm/linux.mh: Likewise.
5541 * config/arm/nbsdelf.mh: Likewise.
5542 * config/i386/cygwin.mh: Likewise.
5543 * config/i386/cygwin64.mh: Likewise.
5544 * config/i386/darwin.mh: Likewise.
5545 * config/i386/fbsd.mh: Likewise.
5546 * config/i386/fbsd64.mh: Likewise.
5547 * config/i386/go32.mh: Likewise.
5548 * config/i386/i386gnu.mh: Likewise.
5549 * config/i386/i386sol2.mh: Likewise.
5550 * config/i386/linux.mh: Likewise.
5551 * config/i386/linux64.mh: Likewise.
5552 * config/i386/mingw.mh: Likewise.
5553 * config/i386/mingw64.mh: Likewise.
5554 * config/i386/nbsd64.mh: Likewise.
5555 * config/i386/nbsdelf.mh: Likewise.
5556 * config/i386/nto.mh: Likewise.
5557 * config/i386/obsd.mh: Likewise.
5558 * config/i386/obsd64.mh: Likewise.
5559 * config/i386/sol2-64.mh: Likewise.
5560 * config/ia64/linux.mh: Likewise.
5561 * config/m32r/linux.mh: Likewise.
5562 * config/m68k/linux.mh: Likewise.
5563 * config/m68k/nbsdelf.mh: Likewise.
5564 * config/m68k/obsd.mh: Likewise.
5565 * config/m88k/obsd.mh: Likewise.
5566 * config/mips/fbsd.mh: Likewise.
5567 * config/mips/linux.mh: Likewise.
5568 * config/mips/nbsd.mh: Likewise.
5569 * config/mips/obsd64.mh: Likewise.
5570 * config/pa/linux.mh: Likewise.
5571 * config/pa/nbsd.mh: Likewise.
5572 * config/pa/obsd.mh: Likewise.
5573 * config/powerpc/aix.mh: Likewise.
5574 * config/powerpc/fbsd.mh: Likewise.
5575 * config/powerpc/linux.mh: Likewise.
5576 * config/powerpc/nbsd.mh: Likewise.
5577 * config/powerpc/obsd.mh: Likewise.
5578 * config/powerpc/ppc64-linux.mh: Likewise.
5579 * config/powerpc/spu-linux.mh: Likewise.
5580 * config/s390/linux.mh: Likewise.
5581 * config/sh/nbsd.mh: Likewise.
5582 * config/sparc/fbsd.mh: Likewise.
5583 * config/sparc/linux.mh: Likewise.
5584 * config/sparc/linux64.mh: Likewise.
5585 * config/sparc/nbsd64.mh: Likewise.
5586 * config/sparc/nbsdelf.mh: Likewise.
5587 * config/sparc/obsd64.mh: Likewise.
5588 * config/sparc/sol2.mh: Likewise.
5589 * config/tilegx/linux.mh: Likewise.
5590 * config/vax/nbsdelf.mh: Likewise.
5591 * config/vax/obsd.mh: Likewise.
5592 * config/xtensa/linux.mh: Likewise.
5593 * config/i386/i386gnu.mn: New file, with excerpts from
5594 "config/i386/i386gnu.mh".
5595 * configure: Regenerate.
5596 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
5597 *.mh files under "gdb/config".
5598 * configure.nat: New file, with contents from the
5599 "gdb/config/*/*.mh" files.
5600
5601 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
5602
5603 * btrace.c (btrace_clear): Free insn vector.
5604
5605 2017-05-05 Pedro Alves <palves@redhat.com>
5606
5607 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
5608 * configure: Regenerate.
5609
5610 2017-05-04 Pedro Alves <palves@redhat.com>
5611
5612 * Makefile.in (SFILES): Add progspace-and-thread.c.
5613 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
5614 (COMMON_OBS): Add progspace-and-thread.o.
5615 * breakpoint.c: Include "progspace-and-thread.h".
5616 (update_inserted_breakpoint_locations)
5617 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
5618 Use scoped_restore_current_pspace_and_thread.
5619 (create_std_terminate_master_breakpoint): Use
5620 scoped_restore_current_program_space.
5621 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
5622 (print_breakpoint_location): Use
5623 scoped_restore_current_program_space.
5624 (bp_loc_is_permanent): Use
5625 scoped_restore_current_pspace_and_thread.
5626 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
5627 (download_tracepoint_locations): Use
5628 scoped_restore_current_pspace_and_thread.
5629 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
5630 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
5631 (enum step_over_calls_kind): Moved from inferior.h.
5632 (class scoped_restore_current_thread): New class.
5633 * gdbthread.h (make_cleanup_restore_current_thread): Delete
5634 declaration.
5635 (scoped_restore_current_thread): New class.
5636 * infcmd.c: Include "common/gdb_optional.h".
5637 (continue_1, proceed_after_attach): Use
5638 scoped_restore_current_thread.
5639 (notice_new_inferior): Use scoped_restore_current_thread.
5640 * inferior.c: Include "progspace-and-thread.h".
5641 (restore_inferior, save_current_inferior): Delete.
5642 (add_inferior_command, clone_inferior_command): Use
5643 scoped_restore_current_pspace_and_thread.
5644 * inferior.h (scoped_restore_current_inferior): New class.
5645 * infrun.c: Include "progspace-and-thread.h" and
5646 "common/gdb_optional.h".
5647 (follow_fork_inferior): Use
5648 scoped_restore_current_pspace_and_thread.
5649 (scoped_restore_exited_inferior): New class.
5650 (handle_vfork_child_exec_or_exit): Use
5651 scoped_restore_exited_inferior,
5652 scoped_restore_current_pspace_and_thread,
5653 scoped_restore_current_thread and scoped_restore.
5654 (fetch_inferior_event): Use scoped_restore_current_thread.
5655 * linespec.c (decode_line_full, decode_line_1): Use
5656 scoped_restore_current_program_space.
5657 * mi/mi-main.c: Include "progspace-and-thread.h".
5658 (exec_continue): Use scoped_restore_current_thread.
5659 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
5660 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
5661 * proc-service.c (ps_pglobal_lookup): Use
5662 scoped_restore_current_program_space.
5663 * progspace-and-thread.c: New file.
5664 * progspace-and-thread.h: New file.
5665 * progspace.c (release_program_space, clone_program_space): Use
5666 scoped_restore_current_program_space.
5667 (restore_program_space, save_current_program_space)
5668 (save_current_space_and_thread): Delete.
5669 (switch_to_program_space_and_thread): Moved to
5670 progspace-and-thread.c.
5671 * progspace.h (save_current_program_space)
5672 (save_current_space_and_thread): Delete declarations.
5673 (scoped_restore_current_program_space): New class.
5674 * remote.c (remote_btrace_maybe_reopen): Use
5675 scoped_restore_current_thread.
5676 * symtab.c: Include "progspace-and-thread.h".
5677 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
5678 * thread.c (print_thread_info_1): Use
5679 scoped_restore_current_thread.
5680 (struct current_thread_cleanup): Delete.
5681 (do_restore_current_thread_cleanup)
5682 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
5683 (scoped_restore_current_thread::~scoped_restore_current_thread):
5684 ... this new dtor.
5685 (make_cleanup_restore_current_thread): Rename/convert to ...
5686 (scoped_restore_current_thread::scoped_restore_current_thread):
5687 ... this new ctor.
5688 (thread_apply_all_command): Use scoped_restore_current_thread.
5689 (thread_apply_command): Use scoped_restore_current_thread.
5690 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
5691 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
5692
5693 2017-05-04 Pedro Alves <palves@redhat.com>
5694
5695 * thread.c (make_cleanup_restore_current_thread): Move
5696 find_thread_ptid call before the is_stopped call. Assert that the
5697 thread is found. Replace is_stopped call by checking the thread's
5698 state directly. Remove unnecessary NULL-thread check.
5699
5700 2017-05-04 Pedro Alves <palves@redhat.com>
5701
5702 * corelow.c (thread_section_name): New class.
5703 (get_core_register_section, get_core_siginfo): Use it.
5704
5705 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5706
5707 * corelow.c (sniff_core_bfd): Remove extra semicolon.
5708 (get_core_register_section): Remove xfree of NULL pointer.
5709
5710 2017-05-03 Alan Hayward <alan.hayward@arm.com>
5711
5712 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
5713 * regcache.c (regcache::raw_supply_zeroed): New function.
5714 * regcache.h (regcache::raw_supply_zeroed): New declaration.
5715
5716 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
5717
5718 * gdbarch.sh: Remove commented out definition of
5719 TARGET_CHAR_BIT.
5720 * gdbarch.h: Re-generate.
5721
5722 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5723
5724 * configure: Regenerate.
5725
5726 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
5727
5728 * solib-target.c (solib_target_relocate_section_addresses):
5729 Remove num_section_bases, num_bases, segment_bases variables.
5730
5731 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5732
5733 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
5734
5735 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5736
5737 * solib-target.c: Include <vector>
5738 (struct lm_info_target) <~lm_info_target>: Remove.
5739 <segment_bases, section_bases>: Change type to
5740 std::vector<CORE_ADDR>.
5741 (library_list_start_segment, library_list_start_section,
5742 library_list_end_library,
5743 solib_target_relocate_section_addresses): Adjust.
5744
5745 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5746
5747 * gdbarch.sh (software_single_step): Change return type to
5748 std::vector<CORE_ADDR>.
5749 * gdbarch.c, gdbarch.h: Re-generate.
5750 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
5751 Adjust.
5752 (arm_deal_with_atomic_sequence_raw): Adjust.
5753 (thumb_get_next_pcs_raw): Adjust.
5754 (arm_get_next_pcs_raw): Adjust.
5755 (arm_get_next_pcs): Adjust.
5756 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
5757 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
5758 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
5759 (alpha_software_single_step): Adjust.
5760 * alpha-tdep.h (alpha_software_single_step): Adjust.
5761 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
5762 * arm-tdep.c (arm_software_single_step): Adjust.
5763 (arm_breakpoint_kind_from_current_state): Adjust.
5764 * arm-tdep.h (arm_software_single_step): Adjust.
5765 * breakpoint.c (insert_single_step_breakpoint): Adjust.
5766 * cris-tdep.c (cris_software_single_step): Adjust.
5767 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
5768 (micromips_deal_with_atomic_sequence): Adjust.
5769 (deal_with_atomic_sequence): Adjust.
5770 (mips_software_single_step): Adjust.
5771 * mips-tdep.h (mips_software_single_step): Adjust.
5772 * moxie-tdep.c (moxie_software_single_step): Adjust.
5773 * nios2-tdep.c (nios2_software_single_step): Adjust.
5774 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
5775 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
5776 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
5777 * s390-linux-tdep.c (s390_software_single_step): Adjust.
5778 * sparc-tdep.c (sparc_software_single_step): Adjust.
5779 * spu-tdep.c (spu_software_single_step): Adjust.
5780 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
5781
5782 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5783
5784 * gdbarch.sh: Use semi-colon as field separator instead of colon.
5785 * gdbarch.h: Re-generate.
5786
5787 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5788
5789 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
5790 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
5791 * python/py-instruction.c, python/py-instruction.h: New file.
5792 * python/py-record.c: Add py-instruction.h include.
5793 (gdbpy_initialize_record): Make gdb.Instruction a super class of
5794 gdb.RecordInstruction.
5795 * python/python-internal.h: Add gdbpy_initialize_instruction
5796 declaration.
5797 * python/python.c (do_start_initialization): Add
5798 gdbpy_initialize_instruction.
5799
5800 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5801
5802 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
5803 Remove.
5804 (btrace_func_from_recpy_func): New function.
5805 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
5806 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
5807 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
5808 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
5809 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
5810 Also, use new helper functions.
5811 (btpy_list_item): Use new helper functions.
5812 (recpy_bt_function_call_history): Use new type name.
5813 (btpy_call_getset): Remove.
5814 (gdbpy_initialize_btrace): Remove code to initialize
5815 gdb.BtraceFunctionCall.
5816 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
5817 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
5818 recpy_bt_func_prev, recpy_bt_func_next): New export.
5819 * python/py-record.c (recpy_func_type): New static object.
5820 (recpy_func_new, recpy_func_level, recpy_func_symbol,
5821 recpy_func_instructions, recpy_func_up, recpy_func_prev,
5822 recpy_func_next): New function.
5823 (recpy_element_hash, recpy_element_richcompare): Updated comment.
5824 (recpy_func_getset): New static object.
5825 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
5826 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
5827
5828 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5829
5830 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
5831 (btpy_object, btpy_insn_type, btpy_new): Remove.
5832 (btpy_list_object): Use gdb.RecordInstruction type instead of
5833 gdb.BtraceInstruction type.
5834 (btrace_insn_from_recpy_insn): New function.
5835 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
5836 btpy_new.
5837 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
5838 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
5839 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
5840 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
5841 instead of btpy_object.
5842 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
5843 btpy_insn_data, btpy_insn_decode): Rename to ...
5844 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
5845 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
5846 recpy_bt_insn_decode): This. Also, use new helper functions.
5847 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
5848 recpy_insn_type.
5849 (btpy_insn_getset): Remove.
5850 (gdbpy_initialize_btrace): Remove code to initialize
5851 gdb.BtraceInstruction. Use recpy_element_object.
5852 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
5853 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
5854 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
5855 * python/py-record.c (recpy_insn_type): New static object.
5856 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
5857 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
5858 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
5859 New function.
5860 (recpy_insn_getset): New static object.
5861 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
5862 * python/py-record.h (recpy_element_object): New typedef.
5863 (recpy_insn_type, recpy_insn_new): New export.
5864
5865 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5866
5867 * py-record-btrace.c (btpy_insn_new): Removed.
5868 (btpy_insn_or_gap_new): New function.
5869 (btpy_insn_error): Removed.
5870 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
5871 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
5872 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
5873 btpy_insn_or_gap_new instead of btpy_insn_new.
5874 (btpy_insn_getset): Remove btpy_insn_error.
5875 * py-record.c (recpy_gap_type): New static object.
5876 (recpy_gap_object): New typedef.
5877 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
5878 recpy_gap_reason_string): New function.
5879 (recpy_gap_getset): New static object.
5880 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
5881 * py-record.h (recpy_gap_new): New export.
5882
5883 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5884
5885 * python/py-record.c (recpy_ptid): Remove.
5886 (recpy_record_getset): Remove recpy_ptid.
5887
5888 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5889
5890 * btrace.c (btrace_fetch): Set inferior_ptid.
5891 * python/py-record-btrace.c: Add "py-record.h" include.
5892 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
5893 recpy_bt_end, recpy_bt_instruction_history,
5894 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
5895 in gdb.Record object instead of current ptid.
5896 * python/py-record.c: Include new "py-record.h" file.
5897 (recpy_record_object): Moved to py-record.h.
5898 * python/py-record.h: New file.
5899
5900 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5901
5902 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
5903 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
5904 indentation.
5905
5906 2017-05-01 Joel Brobecker <brobecker@adacore.com>
5907
5908 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
5909 the past maintainers section.
5910
5911 2017-04-28 Yao Qi <yao.qi@linaro.org>
5912
5913 * infcmd.c (get_return_value): Use regcache ctor, and remove
5914 cleanup.
5915
5916 2017-04-28 Yao Qi <yao.qi@linaro.org>
5917 Pedro Alves <palves@redhat.com>
5918
5919 * regcache.c (regcache::regcache): New tag dispatch ctor.
5920 (do_cooked_read): Moved above.
5921 (regcache_dup): Use the tag dispatch ctor..
5922 * regcache.h (regcache): Declare ctor, delete copy ctor and
5923 assignment operator, remove friend regcache_dup.
5924
5925 2017-04-28 Yao Qi <yao.qi@linaro.org>
5926
5927 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
5928 call method save instead of regcache_cpy.
5929 * regcache.h (struct regcache): Make regcache_dup a friend.
5930
5931 2017-04-28 Yao Qi <yao.qi@linaro.org>
5932
5933 * regcache.c (struct regcache): Move to regcache.h
5934 (regcache::arch): New method.
5935 (regcache_get_ptid): Update.
5936 (get_regcache_arch): Call arch method.
5937 (get_regcache_aspace): Call method aspace.
5938 (register_buffer): Change it to method.
5939 (regcache_save): Change it to regcache::save.
5940 (regcache_restore): Likewise.
5941 (regcache_cpy_no_passthrough): Remove the declaration.
5942 (regcache_cpy): Call methods restore and cpy_no_passthrough.
5943 (regcache_cpy_no_passthrough): Change it to method
5944 cpy_no_passthrough.
5945 (regcache_register_status): Change it to method
5946 get_register_status.
5947 (regcache_invalidate): Change it to method invalidate.
5948 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
5949 (regcache_raw_update): Change it to method raw_update.
5950 (regcache_raw_read): Likewise.
5951 (regcache_raw_read_signed): Likewise.
5952 (regcache_raw_read_unsigned): Likewise.
5953 (regcache_raw_write_signed): Likewise.
5954 (regcache_raw_write_unsigned): Likewise.
5955 (regcache_cooked_read): Likewise.
5956 (regcache_cooked_read_value): Likewise.
5957 (regcache_cooked_read_signed): Likewise.
5958 (regcache_cooked_read_unsigned): Likewise.
5959 (regcache_cooked_write_signed): Likewise.
5960 (regcache_cooked_write_unsigned): Likewise.
5961 (regcache_raw_set_cached_value): Likewise.
5962 (regcache_raw_write): Likewise.
5963 (regcache_cooked_write): Likewise.
5964 (regcache_xfer_part): Likewise.
5965 (regcache_raw_read_part): Likewise.
5966 (regcache_raw_write_part): Likewise.
5967 (regcache_cooked_read_part): Likewise.
5968 (regcache_cooked_write_part): Likewise.
5969 (regcache_raw_supply): Likewise.
5970 (regcache_raw_collect): Likewise.
5971 (regcache_transfer_regset): Likewise.
5972 (regcache_supply_regset): Likewise.
5973 (regcache_collect_regset): Likewise.
5974 (regcache_debug_print_register): Likewise.
5975 (enum regcache_dump_what): Move it to regcache.h.
5976 (regcache_dump): Change it to method dump.
5977 * regcache.h (enum regcache_dump_what): New.
5978 (class regcache): New.
5979 * target.c (target_fetch_registers): Call method
5980 debug_print_register.
5981 (target_store_registers): Likewise.
5982
5983 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5984
5985 * windows-nat.c (struct lm_info_windows): Initialize field.
5986 (windows_make_so): Allocate lm_info_windows with new.
5987 (windows_free_so): Free lm_info_windows with delete.
5988
5989 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5990
5991 * solib-darwin.c (struct lm_info_darwin): Initialize field.
5992 (darwin_current_sos): Allocate lm_info_darwin with new, remove
5993 cleanup.
5994 (darwin_free_so): Free lm_info_darwin with delete.
5995
5996 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5997
5998 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
5999 <l_addr_p>: Change type to bool.
6000 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6001 (svr4_free_so): Free lm_info_svr4 with delete.
6002 (svr4_copy_library_list): Replace memcpy with call to copy
6003 constructor.
6004 (library_list_start_library, svr4_default_sos): Allocate
6005 lm_info_svr4 with new.
6006
6007 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6008
6009 * solib-target.c (struct lm_info_target): Add destructor,
6010 initialize fields.
6011 <name>: Change type to std::string.
6012 (library_list_start_library): Allocate lm_info_target with new.
6013 (solib_target_free_library_list): Free lm_info_target with
6014 delete.
6015 (solib_target_current_sos): Adapt to std::string.
6016 (solib_target_free_so): Free lm_info_target with delete.
6017
6018 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6019
6020 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6021 fields.
6022 (frv_current_sos): Allocate lm_info_frv with new.
6023 (frv_relocate_main_executable): Free lm_info_frv with delete,
6024 allocate with new.
6025 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6026
6027 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6028
6029 * solib-frv.c (struct lm_info_frv): Fix indentation.
6030
6031 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6032
6033 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6034 map field.
6035 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6036 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6037 and allocate with new.
6038 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6039
6040 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6041
6042 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6043 <filename, member_name>: Change type to std::string.
6044 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6045 (library_list_start_library): Allocate lm_info_aix with new.
6046 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6047 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6048 with copy constructor.
6049
6050 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6051
6052 * solist.h (struct lm_info): Remove.
6053 (struct lm_info_base): New class.
6054 (struct so_list) <lm_info>: Change type to lm_info_base *.
6055 * nto-tdep.c (struct lm_info): Remove.
6056 (lm_addr): Adjust.
6057 * solib-aix.c (struct lm_info): Rename to ...
6058 (struct lm_info_aix): ... this. Extend lm_info_base.
6059 (lm_info_p): Rename to ...
6060 (lm_info_aix_p): ... this, and adjust.
6061 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6062 solib_aix_parse_libraries, library_list_start_library,
6063 solib_aix_free_library_list, solib_aix_parse_libraries,
6064 solib_aix_get_library_list,
6065 solib_aix_relocate_section_addresses, solib_aix_free_so,
6066 solib_aix_get_section_offsets,
6067 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6068 Adjust.
6069 (struct solib_aix_inferior_data) <library_list>: Adjust.
6070 * solib-darwin.c (struct lm_info): Rename to ...
6071 (struct lm_info_darwin): ... this. Extend lm_info_base.
6072 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6073 * solib-dsbt.c (struct lm_info): Rename to ...
6074 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6075 (struct dsbt_info) <main_executable_lm_info): Adjust.
6076 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6077 dsbt_relocate_section_addresses): Adjust.
6078 * solib-frv.c (struct lm_info): Rename to ...
6079 (struct lm_info_frv): ... this. Extend lm_info_base.
6080 (main_executable_lm_info): Adjust.
6081 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6082 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6083 find_canonical_descriptor_in_load_object,
6084 frv_fdpic_find_canonical_descriptor): Adjust.
6085 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6086 to lm_info_svr4.
6087 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6088 svr4_clear_so, svr4_copy_library_list,
6089 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6090 svr4_current_sos, svr4_fetch_objfile_link_map,
6091 solist_update_incremental): Adjust.
6092 * solib-svr4.h (struct lm_info_svr4): Move here from
6093 solib-svr4.c.
6094 * solib-target.c (struct lm_info): Rename to ...
6095 (struct lm_info_target): ... this. Extend lm_info_base.
6096 (lm_info_p): Rename to ...
6097 (lm_info_target_p): ... this.
6098 (solib_target_parse_libraries, library_list_start_segment,
6099 library_list_start_section, library_list_start_library,
6100 library_list_end_library, solib_target_free_library_list,
6101 solib_target_current_sos, solib_target_free_so,
6102 solib_target_relocate_section_addresses): Adjust.
6103 * windows-nat.c (struct lm_info): Rename to ...
6104 (struct lm_info_windows): ... this. Extend lm_info_base.
6105 (windows_make_so, handle_load_dll, handle_unload_dll,
6106 windows_xfer_shared_libraries): Adjust.
6107
6108 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6109
6110 * solib-darwin.c (struct darwin_so_list): Remove.
6111 (darwin_current_sos): Allocate an so_list object instead of a
6112 darwin_so_list, separately allocate an lm_info object.
6113 (darwin_free_so): Free lm_info.
6114
6115 2017-04-28 John Baldwin <jhb@FreeBSD.org>
6116
6117 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6118 with fprintf_filtered.
6119
6120 2017-04-28 Yao Qi <yao.qi@linaro.org>
6121
6122 * regcache.c (regcache::regcache): New function.
6123 (regcache::~regcache): New function.
6124 (regcache_xmalloc_1): Remove.
6125 (regcache_xmalloc): Call new regcache.
6126 (regcache_xfree): Call delete regcache.
6127 (get_thread_arch_aspace_regcache): Call new regcache.
6128
6129 2017-04-28 Yao Qi <yao.qi@linaro.org>
6130
6131 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6132 lwp instead of ptid_get_lwp.
6133
6134 2017-04-28 Yao Qi <yao.qi@linaro.org>
6135
6136 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6137 lwp_info instead of getting from inferior_ptid.
6138
6139 2017-04-27 Keith Seitz <keiths@redhat.com>
6140
6141 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6142 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6143 (CV_CONVERSION_BADNESS): Define.
6144 (rank_one_type): Remove overly restrictive rvalue reference
6145 rank checks.
6146 Add cv-qualifier checks and subranks for type equality.
6147 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6148 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6149 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6150
6151 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6152
6153 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6154 count when creating the object.
6155
6156 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6157 Ulrich Weigand <uweigand@de.ibm.com>
6158
6159 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6160 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6161 is used in AIX.
6162 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6163 (process_xcoff_symbol): Likewise.
6164 (scan_xcoff_symtab): Likewise.
6165
6166 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6167
6168 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6169 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6170 (ia64_access_reg): Use get_frame_register_unsigned.
6171 (ia64_access_rse_reg): Likewise.
6172 (ia64_libunwind_frame_prev_register): Likewise.
6173
6174 2017-04-26 Jiong Wang <jiong.wang@arm.com>
6175
6176 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6177 * gdbarch.c: Regenerated.
6178 * gdbarch.h: Regenerated.
6179 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6180 visibility external.
6181 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6182 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6183 (enum cfa_how_kind): Move to ...
6184 (struct dwarf2_frame_state_reg_info): Likewise.
6185 (struct dwarf2_frame_state): Likewise.
6186 * dwarf2-frame.h: ... here.
6187 (dwarf2_frame_state_alloc_regs): New declaration.
6188 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6189 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6190
6191 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6192
6193 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6194 regcache_raw_read_unsigned.
6195 (xtensa_pseudo_register_write): Likewise.
6196
6197 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6198
6199 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6200 (nds32_pseudo_register_write): Likewise.
6201
6202 2017-04-25 Yao Qi <yao.qi@linaro.org>
6203
6204 * regcache.c (struct regcache) <readonly_p>: Change its type
6205 to bool.
6206 (regcache_xmalloc_1): Update parameter type and callers update.
6207
6208 2017-04-25 Yao Qi <yao.qi@linaro.org>
6209
6210 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6211 set_gdbarch_wchar_bit.
6212 * arm-tdep.c (arm_gdbarch_init): Likewise.
6213
6214 2017-04-25 Pedro Alves <palves@redhat.com>
6215
6216 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6217 (BothAreRelocatable, memcopy, memmove): Don't define.
6218 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6219 macros.
6220
6221 2017-04-25 Pedro Alves <palves@redhat.com>
6222
6223 * common/common-defs.h: Include "common/poison.h".
6224 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6225 and adjust.
6226 * common/poison.h: New file.
6227 * common/traits.h: Include <type_traits>.
6228 (Not, Or, Requires): New, moved from common/function-view.h.
6229
6230 2017-04-25 Pedro Alves <palves@redhat.com>
6231
6232 * breakpoint.h (struct breakpoint): In-class initialize all
6233 fields. Make boolean fields "bool".
6234 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6235 memset call and initializations no longer necessary.
6236
6237 2017-04-25 Pedro Alves <palves@redhat.com>
6238
6239 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6240 reference.
6241 (pt_btrace_insn): New function.
6242 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6243
6244 2017-04-25 Pedro Alves <palves@redhat.com>
6245
6246 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6247 "base" field and inherit from "bp_location" instead. Add
6248 non-default ctor.
6249 (allocate_location_exception): Use new non-default ctor.
6250 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6251 (init_bp_location): Convert to ...
6252 (bp_location::bp_location): ... this new ctor, and remove memset
6253 call.
6254 (base_breakpoint_allocate_location): Use the new non-default ctor.
6255 * breakpoint.h (bp_location): Now a class. Declare default and
6256 non-default ctors. In-class initialize all members.
6257 (init_bp_location): Remove declaration.
6258
6259 2017-04-25 Pedro Alves <palves@redhat.com>
6260
6261 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6262 assignment operator.
6263
6264 2017-04-24 Yao Qi <yao.qi@linaro.org>
6265
6266 * doublest.c (convert_doublest_to_floatformat): Call
6267 floatformat_totalsize_bytes.
6268
6269 2017-04-22 Tom Tromey <tom@tromey.com>
6270
6271 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6272 ui_out_emit_list.
6273 * stack.c (print_frame): Use ui_out_emit_list.
6274 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6275 ui_out_emit_list.
6276 * mi/mi-main.c (print_one_inferior)
6277 (mi_cmd_data_list_register_names)
6278 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6279 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6280 ui_out_emit_list.
6281 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
6282 (mi_output_solib_attribs): Use ui_out_emit_list,
6283 ui_out_emit_tuple.
6284 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
6285 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6286 (mi_cmd_stack_list_args, list_args_or_locals): Use
6287 ui_out_emit_list.
6288 * disasm.c (do_assembly_only): Use ui_out_emit_list.
6289 * breakpoint.c (print_solib_event, output_thread_groups): Use
6290 ui_out_emit_list.
6291
6292 2017-04-22 Tom Tromey <tom@tromey.com>
6293
6294 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
6295 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
6296 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
6297
6298 2017-04-22 Tom Tromey <tom@tromey.com>
6299
6300 * tracepoint.c (tvariables_info_1)
6301 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
6302
6303 2017-04-22 Tom Tromey <tom@tromey.com>
6304
6305 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
6306 annotate_arg_emitter.
6307 * breakpoint.c (print_mention_watchpoint)
6308 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
6309 * annotate.h (struct annotate_arg_emitter): New.
6310
6311 2017-04-22 Tom Tromey <tom@tromey.com>
6312
6313 * record-btrace.c (record_btrace_insn_history)
6314 (record_btrace_insn_history_range, record_btrace_call_history)
6315 (record_btrace_call_history_range): Use ui_out_emit_tuple.
6316 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
6317 ui_out_emit_tuple.
6318 * stack.c (print_frame_info): Use ui_out_emit_tuple.
6319 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
6320 * skip.c (skip_info): Use ui_out_emit_tuple.
6321 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
6322 * progspace.c (print_program_space): Use ui_out_emit_tuple.
6323 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
6324 * osdata.c (info_osdata): Use ui_out_emit_tuple.
6325 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6326 ui_out_emit_tuple.
6327 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
6328 (output_register, mi_cmd_data_read_memory)
6329 (mi_cmd_data_read_memory_bytes, mi_load_progress)
6330 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
6331 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
6332 Use ui_out_emit_tuple.
6333 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
6334 ui_out_emit_tuple.
6335 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
6336 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
6337 * linux-thread-db.c (info_auto_load_libthread_db): Use
6338 ui_out_emit_tuple.
6339 * inferior.c (print_inferior): Use ui_out_emit_tuple.
6340 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
6341 * disasm.c (do_mixed_source_and_assembly_deprecated)
6342 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
6343 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
6344 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
6345 * breakpoint.c (print_one_breakpoint_location)
6346 (print_one_breakpoint): Use ui_out_emit_tuple.
6347 * auto-load.c (print_script, info_auto_load_cmd): Use
6348 ui_out_emit_tuple.
6349 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
6350
6351 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
6352
6353 * thread.c (print_thread_info_1): Remove dead code.
6354
6355 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6356
6357 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
6358 GDB_SELF_TEST.
6359 * arm-tdep.c (selftests::arm_record_test): Likewise.
6360
6361 2017-04-21 Yao Qi <yao.qi@linaro.org>
6362
6363 * regcache.c (regcache_restore): Remove argument 2. Replace
6364 argument 3 with regcache. Get register status from
6365 src->register_status and get register contents from
6366 register_buffer (src, regnum).
6367 (regcache_cpy): Update.
6368
6369 2017-04-19 Pedro Alves <palves@redhat.com>
6370
6371 * gdbthread.h (thread): Add missing closing parenthesis in
6372 comment.
6373
6374 2017-04-19 Pedro Alves <palves@redhat.com>
6375
6376 * common/refcounted-object.h: New file.
6377 * gdbthread.h: Include "common/refcounted-object.h".
6378 (thread_info): Inherit from refcounted_object and add comments.
6379 (thread_info::incref, thread_info::decref)
6380 (thread_info::m_refcount): Delete.
6381 (thread_info::deletable): Use the refcounted_object::refcount()
6382 method.
6383 * inferior.c (current_inferior_): Add comment.
6384 (set_current_inferior): Increment/decrement refcounts.
6385 (prune_inferiors, remove_inferior_command): Skip inferiors marked
6386 not-deletable instead of comparing with the current inferior.
6387 (initialize_inferiors): Increment the initial inferior's refcount.
6388 * inferior.h (struct inferior): Forward declare.
6389 Include "common/refcounted-object.h".
6390 (current_inferior, set_current_inferior): Move declaration to
6391 before struct inferior's definition, and fix comment.
6392 (inferior): Inherit from refcounted_object. Add comments.
6393 * thread.c (switch_to_thread_no_regs): Reference the thread's
6394 inferior pointer directly instead of doing a ptid lookup.
6395 (switch_to_no_thread): New function.
6396 (switch_to_thread(thread_info *)): New function, factored out
6397 from ...
6398 (switch_to_thread(ptid_t)): ... this.
6399 (restore_current_thread): Delete.
6400 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
6401 fields, and add 'inf' field.
6402 (do_restore_current_thread_cleanup): Check whether old->inf is
6403 alive instead of looking up an inferior by ptid. Use
6404 switch_to_thread and switch_to_no_thread.
6405 (restore_current_thread_cleanup_dtor): Use old->inf directly
6406 instead of lookup up an inferior by id. Decref the inferior.
6407 Don't restore 'removable'.
6408 (make_cleanup_restore_current_thread): Same the inferior pointer
6409 in old, instead of the inferior number. Incref the inferior.
6410 Don't save/clear 'removable'.
6411
6412 2017-04-19 Pedro Alves <palves@redhat.com>
6413
6414 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6415 unittests/scoped_restore-selftests.c.
6416 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
6417 * common/scoped_restore.h (scoped_restore_base): Make "class".
6418 (scoped_restore_base::release): New public method.
6419 (scoped_restore_base::scoped_restore_base): New protected ctor.
6420 (scoped_restore_base::m_saved_var): New protected field.
6421 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
6422 scoped_restore_base base class instead of m_saved_var directly.
6423 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
6424 (scoped_restore_tmpl::scoped_restore_tmpl(const
6425 scoped_restore_tmpl<T>&)): Likewise.
6426 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
6427 method.
6428 (scoped_restore_tmpl::saved_var): New method.
6429 (scoped_restore_tmpl::m_saved_var): Delete.
6430 * inferior.h (inferior::detaching): Now a bool.
6431 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
6432 cleanup.
6433 * unittests/scoped_restore-selftests.c: New file.
6434
6435 2017-04-19 Pedro Alves <palves@redhat.com>
6436
6437 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
6438 Re-sort in alphabetic order.
6439
6440 2017-04-18 Pedro Alves <palves@redhat.com>
6441
6442 * xml-support.c (obstack_xml_printf): Delete.
6443 * xml-support.h (obstack_xml_printf): Delete.
6444
6445 2017-04-18 Pedro Alves <palves@redhat.com>
6446
6447 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
6448 vdebug, verror, body_text, start_element, end_element, name,
6449 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
6450 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
6451 is_xinclude>: Make private and add m_ prefix.
6452 (gdb_xml_parser::body_text): New method, based on ...
6453 (gdb_xml_body_text): ... this. Adjust.
6454 (gdb_xml_parser::vdebug): New method, based on ...
6455 (gdb_xml_debug): ... this. Adjust.
6456 (gdb_xml_parser::verror): New method, based on ...
6457 (gdb_xml_error): ... this. Adjust.
6458 (gdb_xml_parser::start_element): New method, based on ...
6459 (gdb_xml_start_element): ... this. Adjust.
6460 (gdb_xml_start_element_wrapper): Defer to
6461 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
6462 (gdb_xml_parser::end_element): New method, based on ...
6463 (gdb_xml_end_element_wrapper): ... this. Adjust.
6464 (gdb_xml_parser::~gdb_xml_parser): Adjust.
6465 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
6466 (gdb_xml_parser::use_dtd): New method, based on ...
6467 (gdb_xml_use_dtd): ... this. Adjust.
6468 (gdb_xml_parser::parse): New method, based on ...
6469 (gdb_xml_parse): ... this. Adjust.
6470 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
6471 (xinclude_start_include): Adjust to call the parser's name method.
6472 (xml_xinclude_default, xml_xinclude_start_doctype)
6473 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
6474 method.
6475 (xml_process_xincludes): Adjust to call parser methods.
6476 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
6477 declarations.
6478
6479 2017-04-18 Pedro Alves <palves@redhat.com>
6480
6481 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
6482 gdb::optional<std::string>.
6483 * xml-support.c: Include <string>.
6484 (scope_level::scope_level(scope_level &&))
6485 (scope_level::~scope_level): Delete.
6486 (scope_level::body): Now a std::string.
6487 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
6488 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
6489 parameter.
6490 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
6491 (xinclude_parsing_data::output): Now a std::string reference.
6492 (xinclude_start_include): Adjust.
6493 (xml_xinclude_default): Adjust.
6494 (xml_process_xincludes): Add 'output' parameter, and return bool.
6495 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
6496 and return bool.
6497 * xml-tdesc.c: Include <unordered_map> and <string>.
6498 (tdesc_xml_cache): Delete.
6499 (tdesc_xml_cache_s): Delete.
6500 (xml_cache): Now an std::unordered_map.
6501 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
6502 (target_fetch_description_xml): Change return type to
6503 gdb::optional<std::string>, and adjust.
6504 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
6505 (target_fetch_description_xml): Change return type to
6506 gdb::optional<std::string>.
6507
6508 2017-04-18 Pedro Alves <palves@redhat.com>
6509
6510 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6511 unittests/optional-selftests.c.
6512 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
6513 * unittests/optional-selftests.c: New file.
6514 * unittests/optional/assignment/1.cc: New file.
6515 * unittests/optional/assignment/2.cc: New file.
6516 * unittests/optional/assignment/3.cc: New file.
6517 * unittests/optional/assignment/4.cc: New file.
6518 * unittests/optional/assignment/5.cc: New file.
6519 * unittests/optional/assignment/6.cc: New file.
6520 * unittests/optional/assignment/7.cc: New file.
6521 * unittests/optional/cons/copy.cc: New file.
6522 * unittests/optional/cons/default.cc: New file.
6523 * unittests/optional/cons/move.cc: New file.
6524 * unittests/optional/cons/value.cc: New file.
6525 * unittests/optional/in_place.cc: New file.
6526 * unittests/optional/observers/1.cc: New file.
6527 * unittests/optional/observers/2.cc: New file.
6528
6529 2017-04-18 Pedro Alves <palves@redhat.com>
6530
6531 * common/gdb_optional.h: Include common/traits.h.
6532 (in_place_t): New type.
6533 (in_place): New constexpr variable.
6534 (optional::optional): Remove member initialization of
6535 m_instantiated.
6536 (optional::optional(in_place_t...)): New constructor.
6537 (optional::~optional): Use reset.
6538 (optional::optional(const optional&)): New.
6539 (optional::optional(const optional&&)): New.
6540 (optional::optional(T &)): New.
6541 (optional::optional(T &&)): New.
6542 (operator::operator=(const optional &)): New.
6543 (operator::operator=(optional &&)): New.
6544 (operator::operator= (const T &))
6545 (operator::operator= (T &&))
6546 (operator::emplace (Args &&... args)): Return a T&. Use reset.
6547 (operator::reset): New.
6548 (operator::m_instantiated):: Add in-class initializer.
6549 * common/traits.h: Include <type_traits>.
6550 (struct And): New types.
6551
6552 2017-04-18 Pedro Alves <palves@redhat.com>
6553
6554 * xml-support.c: Include <vector>.
6555 (scope_level::scope_level(const gdb_xml_element *))
6556 (scope_level::scope_level(scope_level&&)): New.
6557 (scope_level::~scope_level): New.
6558 (scope_level_s): Delete.
6559 (gdb_xml_parser::scopes): Now a std::vector.
6560 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
6561 Use std::vector.
6562 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
6563 scope cleanup code.
6564 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
6565 of the scopes member. Use std::vector::emplace_back.
6566
6567 2017-04-18 Pedro Alves <palves@redhat.com>
6568
6569 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
6570 a bool.
6571 (gdb_xml_end_element): Change type of first parameter.
6572 (gdb_xml_cleanup): Rename to ...
6573 (gdb_xml_parser::~gdb_xml_parser): ... this.
6574 (gdb_xml_create_parser_and_cleanup): Delete with ...
6575 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
6576 to this new ctor.
6577 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
6578 using gdb_xml_create_parser_and_cleanup.
6579 (xinclude_parsing_data): Add ctor/dtor.
6580 (xml_xinclude_cleanup): Delete.
6581 (xml_process_xincludes): Create a local xinclude_parsing_data
6582 instead of heap-allocating one. Create a local gdb_xml_parser
6583 instead of heap-allocating one with
6584 gdb_xml_create_parser_and_cleanup.
6585
6586 2017-04-18 John Baldwin <jhb@FreeBSD.org>
6587
6588 PR threads/20743
6589 * fbsd-nat.c (resume_one_thread_cb): Remove.
6590 (resume_all_threads_cb): Remove.
6591 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
6592 iterate_over_threads.
6593
6594 2017-04-17 Joel Brobecker <brobecker@adacore.com>
6595
6596 * NEWS: Create a new section for the next release branch.
6597 Rename the section of the current branch, now that it has
6598 been cut.
6599
6600 2017-04-17 Joel Brobecker <brobecker@adacore.com>
6601
6602 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
6603 * version.in: Bump version to 8.0.50.DATE-git.
6604
6605 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
6606
6607 PR gdb/21385
6608 * windows-nat.c (windows_create_inferior): Declare 'allargs'
6609 independently of the host, and fix build breakage on Cygwin.
6610
6611 2017-04-13 Pedro Alves <palves@redhat.com>
6612
6613 * inferior.c (free_inferior): Convert to ...
6614 (inferior::~inferior): ... this dtor.
6615 (inferior::inferior): New ctor, factored out from ...
6616 (add_inferior_silent): ... here. Allocate the inferior with a new
6617 expression.
6618 (delete_inferior): Call delete instead of free_inferior.
6619 * inferior.h (gdb_environ, continuation): Forward declare.
6620 (inferior): Now a class. Add in-class initialization to all
6621 members. Make boolean fields bool, except 'detaching'.
6622 (inferior::inferior): New explicit ctor.
6623 (inferior::~inferior): New.
6624
6625 2017-04-13 Pedro Alves <palves@redhat.com>
6626
6627 * inferior.c (init_inferior_list): Delete.
6628 * inferior.h (init_inferior_list): Delete.
6629
6630 2017-04-13 Pedro Alves <palves@redhat.com>
6631
6632 PR threads/13217
6633 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
6634 (top level): Call it twice, with different thread sets.
6635
6636 2017-04-13 Pedro Alves <palves@redhat.com>
6637
6638 * thread.c: Include <algorithm>.
6639 (thread_array_cleanup): Delete.
6640 (scoped_inc_dec_ref): New class.
6641 (live_threads_count): New function.
6642 (set_thread_refcount): Delete.
6643 (tp_array_compar_ascending): Now a bool.
6644 (tp_array_compar): Convert to a std::sort comparison function.
6645 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
6646 and live_threads_count.
6647
6648 2017-04-13 Pedro Alves <palves@redhat.com>
6649
6650 * infrun.c (follow_fork_inferior): Also switch the current
6651 inferior.
6652
6653 2017-04-13 Pedro Alves <palves@redhat.com>
6654
6655 * breakpoint.c (watch_command_1): Save watchpoint-frame info
6656 before calling create_internal_breakpoint.
6657
6658 2017-04-13 Pedro Alves <palves@redhat.com>
6659
6660 * fork-child.c (execv_argv): New class.
6661 (breakup_args): Refactored as ...
6662 (execv_argv::init_for_no_shell): .. this method of execv_argv.
6663 Copy arguments to storage and replace separators with NULL
6664 terminators in place.
6665 (escape_bang_in_quoted_argument): Adjust to return bool.
6666 (execv_argv::execv_argv): New ctor.
6667 (execv_argv::init_for_shell): New method, factored out from
6668 fork_inferior. Don't strdup strings into the vector.
6669 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
6670 Remove free_vector_argv call.
6671
6672 2017-04-13 Yao Qi <yao.qi@linaro.org>
6673
6674 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
6675 tdep->rx_psw_type.
6676
6677 2017-04-13 Yao Qi <yao.qi@linaro.org>
6678
6679 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
6680 * rx-tdep.c (rx_gdbarch_init): Likewise.
6681
6682 2017-04-13 Pedro Alves <palves@redhat.com>
6683
6684 * breakpoint.h (struct breakpoint): Reindent.
6685
6686 2017-04-13 Pedro Alves <palves@redhat.com>
6687
6688 * breakpoint.c (bp_location): Rename to ...
6689 (bp_locations): ... this. All references updated.
6690 (bp_location_count): Rename to ...
6691 (bp_locations_count): ... this. All references updated.
6692 (bp_location_placed_address_before_address_max): Rename to ...
6693 (bp_locations_placed_address_before_address_max): ... this. All
6694 references updated.
6695 (bp_location_shadow_len_after_address_max): Rename to ...
6696 (bp_locations_shadow_len_after_address_max): ... this. All
6697 references updated.
6698 (bp_location_compare_addrs): Rename to ...
6699 (bp_locations_compare_addrs): ... this. All references updated.
6700 (bp_location_compare):Rename to ...
6701 (bp_locations_compare): ... this. All references updated.
6702 (bp_location_target_extensions_update): Rename to ...
6703 (bp_locations_target_extensions_update): ... this. All references
6704 updated.
6705
6706 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6707
6708 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
6709 * common/common.m4: Check headers 'termios.h', 'termio.h' and
6710 'sgtty.h'.
6711 * common/gdb_termios.h: New file, with parts of "terminal.h".
6712 * inflow.c: Include "gdb_termios.h".
6713 * ser-unix.c: Include "gdb_termios.h".
6714 * terminal.h: Move terminal-related defines to
6715 "common/gdb_termios.h".
6716
6717 2017-04-12 Tom Tromey <tom@tromey.com>
6718
6719 * probe.c (parse_probes): Update.
6720 * location.h (delete_event_location): Don't declare.
6721 (event_location_deleter::operator()): Update.
6722 * location.c (event_location_deleter::operator()): Rename from
6723 delete_event_location.
6724 * linespec.h (linespec_result) <location>: Change type to
6725 event_location_up.
6726 * linespec.c (canonicalize_linespec, event_location_to_sals)
6727 (decode_objc): Update.
6728 (linespec_result): Don't call delete_event_location.
6729 * breakpoint.c (create_breakpoints_sal)
6730 (bkpt_probe_create_sals_from_location)
6731 (strace_marker_create_sals_from_location): Update.
6732
6733 2017-04-12 Tom Tromey <tom@tromey.com>
6734
6735 * linespec.h (struct linespec_result): Add constructor and
6736 destructor.
6737 (init_linespec_result, destroy_linespec_result)
6738 (make_cleanup_destroy_linespec_result): Don't declare.
6739 * linespec.c (init_linespec_result): Remove.
6740 (linespec_result::~linespec_result): Rename from
6741 destroy_linespec_result. Update.
6742 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
6743 Remove.
6744 * breakpoint.c (create_breakpoint, break_range_command)
6745 (decode_location_default): Update.
6746 * ax-gdb.c (agent_command_1): Update.
6747
6748 2017-04-12 Tom Tromey <tom@tromey.com>
6749
6750 * remote.c (remote_download_tracepoint): Update.
6751 * python/py-breakpoint.c (bppy_get_location): Update.
6752 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
6753 (gdbscm_breakpoint_location): Update.
6754 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
6755 * breakpoint.h (struct breakpoint) <location, location_range_end>:
6756 Change type to event_location_up.
6757 * breakpoint.c (create_overlay_event_breakpoint)
6758 (create_longjmp_master_breakpoint)
6759 (create_std_terminate_master_breakpoint)
6760 (create_exception_master_breakpoint)
6761 (breakpoint_event_location_empty_p, print_breakpoint_location)
6762 (print_one_breakpoint_location, create_thread_event_breakpoint)
6763 (init_breakpoint_sal, create_breakpoint)
6764 (print_recreate_ranged_breakpoint, break_range_command)
6765 (init_ada_exception_breakpoint, say_where): Update.
6766 (base_breakpoint_dtor): Don't call delete_event_location.
6767 (bkpt_print_recreate, tracepoint_print_recreate)
6768 (dprintf_print_recreate, update_static_tracepoint)
6769 (breakpoint_re_set_default): Update.
6770
6771 2017-04-12 Tom Tromey <tom@tromey.com>
6772
6773 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
6774 type of "to_do". Update.
6775 (compute_stack_depth): Use std::vector.
6776
6777 2017-04-12 Tom Tromey <tom@tromey.com>
6778
6779 * printcmd.c (find_instruction_backward): Use std::vector.
6780
6781 2017-04-12 Tom Tromey <tom@tromey.com>
6782
6783 * symfile.c (objfilep): Remove typedef.
6784 (reread_symbols): Use a std::vector.
6785
6786 2017-04-12 Tom Tromey <tom@tromey.com>
6787
6788 * mi/mi-main.c (exec_direction_forward): Remove.
6789 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
6790 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6791 scoped_restore.
6792 * guile/guile.c (guile_repl_command, guile_command)
6793 (gdbscm_execute_gdb_command): Use scoped_restore.
6794 * go-exp.y (go_parse): Use scoped_restore.
6795 * d-exp.y (d_parse): Use scoped_restore.
6796 * cli/cli-decode.c (cmd_func): Use scoped_restore.
6797 * c-exp.y (c_parse): Use scoped_restore.
6798
6799 2017-04-12 Tom Tromey <tom@tromey.com>
6800
6801 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
6802 (mi_parse): Update return type.
6803 (mi_parse_free): Remove.
6804 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
6805 (mi_parse::~mi_parse): Rename from mi_parse_free.
6806 (mi_parse_cleanup): Remove.
6807 (mi_parse): Return a unique_ptr. Use new.
6808 * mi/mi-main.c (mi_execute_command): Update.
6809
6810 2017-04-12 Tom Tromey <tom@tromey.com>
6811
6812 * location.c (explicit_location_lex_one): Return a
6813 unique_xmalloc_ptr.
6814 (string_to_explicit_location): Update. Remove cleanups.
6815
6816 2017-04-12 Tom Tromey <tom@tromey.com>
6817
6818 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
6819 (compare_value_and_voffset): Change type. Update.
6820 (compute_vtable_size): Change type of "offset_vec".
6821 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
6822 (gnuv3_get_typeid): Remove extraneous declaration.
6823
6824 2017-04-12 Tom Tromey <tom@tromey.com>
6825
6826 * charset.h (wchar_iterator): Fix comment.
6827
6828 2017-04-12 Tom Tromey <tom@tromey.com>
6829
6830 * charset.c (iconv_wrapper): New class.
6831 (cleanup_iconv): Remove.
6832 (convert_between_encodings): Use it.
6833
6834 2017-04-12 Tom Tromey <tom@tromey.com>
6835
6836 * symfile.h (increment_reading_symtab): Update type.
6837 * symfile.c (decrement_reading_symtab): Remove.
6838 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
6839 * psymtab.c (psymtab_to_symtab): Update.
6840 * dwarf2read.c (dw2_instantiate_symtab): Update.
6841
6842 2017-04-12 Tom Tromey <tom@tromey.com>
6843
6844 * jit.c (struct jit_reader): Declare separately. Add constructor
6845 and destructor. Change type of "handle".
6846 (loaded_jit_reader): Define separately.
6847 (jit_reader_load): Update. New "new".
6848 (jit_reader_unload_command): Use "delete".
6849 * gdb-dlfcn.h (struct dlclose_deleter): New.
6850 (gdb_dlhandle_up): New typedef.
6851 (gdb_dlopen, gdb_dlsym): Update types.
6852 (gdb_dlclose): Remove.
6853 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
6854 (gdb_dlsym): Change type of "handle".
6855 (make_cleanup_dlclose): Remove.
6856 (dlclose_deleter::operator()): Rename from gdb_dlclose.
6857 * compile/compile-c-support.c (load_libcc): Update.
6858
6859 2017-04-12 Tom Tromey <tom@tromey.com>
6860
6861 * symtab.h (find_pcs_for_symtab_line): Change return type.
6862 * symtab.c (find_pcs_for_symtab_line): Change return type.
6863 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
6864 type of "vec". Update.
6865 (ltpy_get_pcs_for_line): Update.
6866 * linespec.c (decode_digits_ordinary): Update.
6867
6868 2017-04-12 Tom Tromey <tom@tromey.com>
6869
6870 * tracepoint.c (actions_command): Update.
6871 * python/python.c (python_command, python_interactive_command):
6872 Update.
6873 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6874 * guile/guile.c (guile_command): Update.
6875 * defs.h (read_command_lines, read_command_lines_1): Return
6876 command_line_up.
6877 (command_lines_deleter): New struct.
6878 (command_line_up): New typedef.
6879 * compile/compile.c (compile_code_command)
6880 (compile_print_command): Update.
6881 * cli/cli-script.h (get_command_line, copy_command_lines): Return
6882 command_line_up.
6883 (make_cleanup_free_command_lines): Remove.
6884 * cli/cli-script.c (get_command_line, read_command_lines_1)
6885 (copy_command_lines): Return command_line_up.
6886 (while_command, if_command, read_command_lines, define_command)
6887 (document_command): Update.
6888 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
6889 Remove.
6890 * breakpoint.h (breakpoint_set_commands): Change type of
6891 "commands".
6892 * breakpoint.c (breakpoint_set_commands): Change type of
6893 "commands". Update.
6894 (do_map_commands_command, update_dprintf_command_list)
6895 (create_tracepoint_from_upload): Update.
6896
6897 2017-04-12 Tom Tromey <tom@tromey.com>
6898
6899 * tracepoint.c (scope_info): Update.
6900 * spu-tdep.c (spu_catch_start): Update.
6901 * python/python.c (gdbpy_decode_line): Update.
6902 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
6903 * python/py-breakpoint.c (bppy_init): Update.
6904 * probe.c (parse_probes): Update.
6905 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
6906 * location.h (event_location_deleter): New struct.
6907 (event_location_up): New typedef.
6908 (new_linespec_location, new_address_location, new_probe_location)
6909 (new_explicit_location, copy_event_location)
6910 (string_to_event_location, string_to_event_location_basic)
6911 (string_to_explicit_location): Update return type.
6912 (make_cleanup_delete_event_location): Remove.
6913 * location.c (new_linespec_location, new_address_location)
6914 (new_probe_location, new_explicit_location, copy_event_location):
6915 Return event_location_up.
6916 (delete_event_location_cleanup)
6917 (make_cleanup_delete_event_location): Remove.
6918 (string_to_explicit_location, string_to_event_location_basic)
6919 (string_to_event_location): Return event_location_up.
6920 * linespec.c (canonicalize_linespec, event_location_to_sals)
6921 (decode_line_with_current_source)
6922 (decode_line_with_last_displayed, decode_objc): Update.
6923 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6924 * completer.c (location_completer): Update.
6925 * cli/cli-cmds.c (edit_command, list_command): Update.
6926 * breakpoint.c (create_overlay_event_breakpoint)
6927 (create_longjmp_master_breakpoint)
6928 (create_std_terminate_master_breakpoint)
6929 (create_exception_master_breakpoint)
6930 (create_thread_event_breakpoint): Update.
6931 (init_breakpoint_sal): Update. Remove some dead code.
6932 (create_breakpoint_sal): Change type of "location". Update.
6933 (create_breakpoints_sal, create_breakpoint, break_command_1)
6934 (dprintf_command, break_range_command, until_break_command)
6935 (init_ada_exception_breakpoint)
6936 (strace_marker_create_sals_from_location)
6937 (update_static_tracepoint, trace_command, ftrace_command)
6938 (strace_command, create_tracepoint_from_upload): Update.
6939 * break-catch-throw.c (re_set_exception_catchpoint): Update.
6940 * ax-gdb.c (agent_command_1): Update.
6941
6942 2017-04-12 Pedro Alves <palves@redhat.com>
6943
6944 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
6945 * configure.tgt: Handle i[34567]86-*-go32* and
6946 i[34567]86-*-msdosdjgpp*.
6947 * i386-tdep.c (i386_svr4_reg_to_regnum):
6948 Make extern.
6949 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
6950 i386-go32-tdep.c.
6951 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
6952 * i386-go32-tdep.c: New file.
6953 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
6954 declarations.
6955
6956 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
6957
6958 * aix-thread.c (pd_status2str): Change return type to const char *.
6959
6960 2017-04-12 Pedro Alves <palves@redhat.com>
6961
6962 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
6963 calls to set_gdbarch_gnu_triplet_regexp.
6964
6965 2017-04-12 Pedro Alves <palves@redhat.com>
6966
6967 PR gdb/21323
6968 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
6969 New enum value.
6970 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
6971 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
6972 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
6973 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
6974 * gdbarch.h, gdbarch.c: Regenerate.
6975 * aarch64-tdep.c (aarch64_gdbarch_init): Override
6976 gdbarch_wchar_bit and gdbarch_wchar_signed.
6977 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
6978 * arm-tdep.c (arm_gdbarch_init): Likewise.
6979 * avr-tdep.c (avr_gdbarch_init): Likewise.
6980 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
6981 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
6982 * i386-tdep.c (i386_go32_init_abi): Likewise.
6983 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6984 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6985 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6986 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6987 * sh-tdep.c (sh_gdbarch_init): Likewise.
6988 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6989 * sparc64-tdep.c (sparc64_init_abi): Likewise.
6990 * windows-tdep.c (windows_init_abi): Likewise.
6991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6992
6993 2017-04-12 Pedro Alves <palves@redhat.com>
6994
6995 PR c++/21323
6996 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
6997 cplus_primitive_type_char32_t>: New enum values.
6998 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
6999 and cplus_primitive_type_char32_t.
7000 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7001 32, use the archtecture's built-in type for char16_t and char32_t,
7002 respectively. Otherwise, fallback to init_integer_type as before,
7003 but make the type unsigned, and issue a complaint.
7004 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7005
7006 2017-04-12 Alan Hayward <alan.hayward@arm.com>
7007
7008 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
7009 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7010
7011 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7012
7013 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7014 'const char *'.
7015
7016 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7017
7018 * common/common-utils.c (free_vector_argv): New function.
7019 * common/common-utils.h: Include <vector>.
7020 (free_vector_argv): New prototype.
7021 * darwin-nat.c (darwin_create_inferior): Rewrite function
7022 prototype in order to constify "exec_file" and accept a
7023 "std::string" for "allargs".
7024 * fork-child.c: Include <vector>.
7025 (breakup_args): Rewrite function, using C++.
7026 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7027 and accept "std::string" for "allargs". Update the code to
7028 calculate "argv" based on "allargs". Update calls to "exec_fun"
7029 and "execvp".
7030 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7031 order to constify "exec_file" and accept a "std::string" for
7032 "allargs".
7033 * go32-nat.c (go32_create_inferior): Likewise.
7034 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7035 * infcmd.c (run_command_1): Constify "exec_file". Use
7036 "std::string" for inferior arguments.
7037 * inferior.h (fork_inferior): Update prototype.
7038 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7039 prototype in order to constify "exec_file" and accept a
7040 "std::string" for "allargs".
7041 * nto-procfs.c (procfs_create_inferior): Likewise.
7042 * procfs.c (procfs_create_inferior): Likewise.
7043 * remote-sim.c (gdbsim_create_inferior): Likewise.
7044 * remote.c (extended_remote_run): Update code to accept
7045 "std::string" as argument.
7046 (extended_remote_create_inferior): Rewrite function prototype in
7047 order to constify "exec_file" and accept a "std::string" for
7048 "allargs".
7049 * rs6000-nat.c (super_create_inferior): Likewise.
7050 (rs6000_create_inferior): Likewise.
7051 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7052 * windows-nat.c (windows_create_inferior): Likewise.
7053
7054 2017-04-11 Pedro Alves <palves@redhat.com>
7055
7056 * thread.c: Fix whitespace throughout.
7057
7058 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7059
7060 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7061
7062 2017-04-11 Alan Hayward <alan.hayward@arm.com>
7063
7064 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7065
7066 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7067
7068 PR gdb/21364
7069 * osdata.c (info_osdata): Check if 'type' is an empty string
7070 instead of NULL.
7071
7072 2017-04-10 Pedro Alves <palves@redhat.com>
7073
7074 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7075 (ptid_to_global_thread_id, in_thread_list)
7076 (do_captured_list_thread_ids, set_resumed, set_running)
7077 (set_executing, set_stop_requested, finish_thread_state)
7078 (validate_registers_access, can_access_registers_ptid)
7079 (print_thread_info_1, switch_to_thread)
7080 (do_restore_current_thread_cleanup)
7081 (make_cleanup_restore_current_thread, thread_command)
7082 (thread_name_command): Use operator== instead of ptid_equal.
7083
7084 2017-04-10 Pedro Alves <palves@redhat.com>
7085
7086 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7087 (current_thread_cleanup_chain): Delete.
7088 (restore_current_thread_cleanup_dtor)
7089 (make_cleanup_restore_current_thread): Remove references to
7090 current_thread_cleanup_chain.
7091
7092 2017-04-10 Alan Hayward <alan.hayward@arm.com>
7093
7094 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7095 REG_UNKNOWN.
7096
7097 2017-04-10 Yao Qi <yao.qi@linaro.org>
7098
7099 PR gdb/19942
7100 * gdbthread.h (thread_info::deletable): New method.
7101 (thread_info::incref): New method.
7102 (thread_info::decref): New method.
7103 (thread_info::refcount): Move it to private.
7104 * infrun.c (save_stop_context): Call inc_refcount.
7105 (release_stop_context_cleanup): Likewise.
7106 * thread.c (set_thread_exited): New function.
7107 (init_thread_list): Delete "tp" only it is deletable, otherwise
7108 call set_thread_exited.
7109 (delete_thread_1): Call set_thread_exited.
7110 (current_thread_cleanup) <inferior_pid>: Remove.
7111 <thread>: New field.
7112 (restore_current_thread_ptid_changed): Removed.
7113 (do_restore_current_thread_cleanup): Adjust.
7114 (restore_current_thread_cleanup_dtor): Don't call
7115 find_thread_ptid.
7116 (set_thread_refcount): Use dec_refcount.
7117 (make_cleanup_restore_current_thread): Adjust.
7118 (thread_apply_all_command): Call inc_refcount.
7119 (_initialize_thread): Don't call
7120 observer_attach_thread_ptid_changed.
7121
7122 2017-04-10 Yao Qi <yao.qi@linaro.org>
7123
7124 * thread.c (delete_thread_1): Hoist code on marking thread as
7125 exited.
7126
7127 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7128
7129 * windows-nat.c (windows_detach): Initialize ptid with
7130 minus_one_ptid.
7131
7132 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7133
7134 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7135
7136 2017-04-07 Alan Hayward <alan.hayward@arm.com>
7137
7138 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7139 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7140 (bfin_pseudo_register_write): Likewise
7141
7142 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7143
7144 * common/ptid.h (struct ptid): Change to...
7145 (class ptid_t): ... this.
7146 <ptid_t>: New constructors.
7147 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7148 matches>: New methods.
7149 <make_null, make_minus_one>: New static methods.
7150 <pid>: Rename to...
7151 <m_pid>: ...this.
7152 <lwp>: Rename to...
7153 <m_lwp>: ...this.
7154 <tid>: Rename to...
7155 <m_tid>: ...this.
7156 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7157 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7158 as references, move comment to class ptid_t.
7159 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7160 ptid_t static methods.
7161 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7162 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7163 Take ptid arguments as references, implement using ptid_t methods.
7164 * unittests/ptid-selftests.c: New file.
7165 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7166 unittests/ptid-selftests.c.
7167 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7168
7169 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7170
7171 * python/python.c (python_run_simple_file): Cast mode literal to
7172 non-const char pointer as expected by PyFile_FromString.
7173
7174 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7175
7176 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7177 minus_one_ptid and null_ptid.
7178
7179 2017-04-05 Pedro Alves <palves@redhat.com>
7180
7181 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7182 * configure: Regenerate.
7183
7184 2017-04-05 Pedro Alves <palves@redhat.com>
7185
7186 * ada-exp.y (yyerror): Constify.
7187 * ada-lang.c (bound_name, get_selections)
7188 (ada_variant_discrim_type)
7189 (ada_variant_discrim_name, ada_value_struct_elt)
7190 (ada_lookup_struct_elt_type, is_unchecked_variant)
7191 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7192 (catch_ada_exception_command_split)
7193 (catch_ada_assert_command_split, catch_assert_command)
7194 (ada_op_name): Constify.
7195 * ada-lang.h (ada_yyerror, get_selections)
7196 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7197 * arc-tdep.c (arc_print_frame_cache): Constify.
7198 * arm-tdep.c (arm_skip_stub): Constify.
7199 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7200 (gen_aggregate_elt_ref): Constify.
7201 * bcache.c (print_bcache_statistics): Constify.
7202 * bcache.h (print_bcache_statistics): Constify.
7203 * break-catch-throw.c (catch_exception_command_1):
7204 * breakpoint.c (struct ep_type_description::description):
7205 Constify.
7206 (add_solib_catchpoint): Constify.
7207 (catch_fork_command_1): Add cast.
7208 (add_catch_command): Constify.
7209 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7210 Constify.
7211 * bsd-uthread.c (bsd_uthread_state): Constify.
7212 * buildsym.c (patch_subfile_names): Constify.
7213 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7214 Constify.
7215 * c-exp.y (yyerror): Constify.
7216 (token::oper): Constify.
7217 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7218 * c-varobj.c (cplus_describe_child): Constify.
7219 * charset.c (find_charset_names): Add cast.
7220 (find_charset_names): Constify array and add const_cast.
7221 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7222 (edit_command): Constify.
7223 * cli/cli-decode.c (lookup_cmd): Constify.
7224 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7225 Constify.
7226 (struct dump_context): Constify.
7227 (add_dump_command, restore_command): Constify.
7228 * cli/cli-script.c (get_command_line): Constify.
7229 * cli/cli-script.h (get_command_line): Constify.
7230 * cli/cli-utils.c (check_for_argument): Constify.
7231 * cli/cli-utils.h (check_for_argument): Constify.
7232 * coff-pe-read.c (struct read_pe_section_data): Constify.
7233 * command.h (lookup_cmd): Constify.
7234 * common/print-utils.c (decimal2str): Constify.
7235 * completer.c (gdb_print_filename): Constify.
7236 * corefile.c (set_gnutarget): Constify.
7237 * cp-name-parser.y (yyerror): Constify.
7238 * cp-valprint.c (cp_print_class_member): Constify.
7239 * cris-tdep.c (cris_register_name, crisv32_register_name):
7240 Constify.
7241 * d-exp.y (yyerror): Constify.
7242 (struct token::oper): Constify.
7243 * d-lang.h (d_yyerror): Constify.
7244 * dbxread.c (struct header_file_location::name): Constify.
7245 (add_old_header_file, add_new_header_file, last_function_name)
7246 (dbx_next_symbol_text, add_bincl_to_list)
7247 (find_corresponding_bincl_psymtab, set_namestring)
7248 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7249 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7250 * defs.h (command_line_input, print_address_symbolic)
7251 (deprecated_readline_begin_hook): Constify.
7252 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7253 Constify.
7254 * event-top.c (handle_line_of_input): Constify and add cast.
7255 * exceptions.c (catch_errors): Constify.
7256 * exceptions.h (catch_errors): Constify.
7257 * expprint.c (print_subexp_standard, op_string, op_name)
7258 (op_name_standard, dump_raw_expression, dump_raw_expression):
7259 * expression.h (op_name, op_string, dump_raw_expression):
7260 Constify.
7261 * f-exp.y (yyerror): Constify.
7262 (struct token::oper): Constify.
7263 (struct f77_boolean_val::name): Constify.
7264 * f-lang.c (f_word_break_characters): Constify.
7265 * f-lang.h (f_yyerror): Constify.
7266 * fork-child.c (fork_inferior): Add cast.
7267 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7268 (new_variant): Constify.
7269 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7270 * gdbarch.c: Regenerate.
7271 * gdbcore.h (set_gnutarget): Constify.
7272 * go-exp.y (yyerror): Constify.
7273 (token::oper): Constify.
7274 * go-lang.h (go_yyerror): Constify.
7275 * go32-nat.c (go32_sysinfo): Constify.
7276 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7277 * guile/scm-cmd.c (cmdscm_function): Constify.
7278 * guile/scm-param.c (pascm_param_value): Constify.
7279 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7280 (h8300sx_register_name): Constify.
7281 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
7282 Constify.
7283 * ia64-tdep.c (ia64_register_names): Constify.
7284 * infcmd.c (construct_inferior_arguments): Constify.
7285 (path_command, attach_post_wait): Constify.
7286 * language.c (show_range_command, show_case_command)
7287 (unk_lang_error): Constify.
7288 * language.h (language_defn::la_error)
7289 (language_defn::la_name_of_this): Constify.
7290 * linespec.c (decode_line_2): Constify.
7291 * linux-thread-db.c (thread_db_err_str): Constify.
7292 * lm32-tdep.c (lm32_register_name): Constify.
7293 * m2-exp.y (yyerror): Constify.
7294 * m2-lang.h (m2_yyerror): Constify.
7295 * m32r-tdep.c (m32r_register_names): Constify and make static.
7296 * m68hc11-tdep.c (m68hc11_register_names): Constify.
7297 * m88k-tdep.c (m88k_register_name): Constify.
7298 * macroexp.c (appendmem): Constify.
7299 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
7300 (upgrade_type, parse_external, parse_partial_symbols)
7301 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
7302 (new_symbol): Constify.
7303 * memattr.c (mem_info_command): Constify.
7304 * mep-tdep.c (register_name_from_keyword): Constify.
7305 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
7306 Constify.
7307 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
7308 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
7309 * mi/mi-main.c (captured_mi_execute_command): Constify and add
7310 cast.
7311 (mi_execute_async_cli_command): Constify.
7312 * mips-tdep.c (mips_register_name): Constify.
7313 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
7314 (am33_register_name, am33_2_register_name)
7315 * moxie-tdep.c (moxie_register_names): Constify.
7316 * nat/linux-osdata.c (osdata_type): Constify fields.
7317 * nto-tdep.c (nto_parse_redirection): Constify.
7318 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
7319 (lookup_child_selector): Constify.
7320 (objc_methcall::name): Constify.
7321 * objc-lang.h (lookup_objc_class, lookup_child_selector)
7322 (lookup_struct_typedef): Constify.
7323 * objfiles.c (pc_in_section): Constify.
7324 * objfiles.h (pc_in_section): Constify.
7325 * p-exp.y (struct token::oper): Constify.
7326 (yyerror): Constify.
7327 * p-lang.h (pascal_yyerror): Constify.
7328 * parser-defs.h (op_name_standard): Constify.
7329 (op_print::string): Constify.
7330 (exp_descriptor::op_name): Constify.
7331 * printcmd.c (print_address_symbolic): Constify.
7332 * psymtab.c (print_partial_symbols): Constify.
7333 * python/py-breakpoint.c (stop_func): Constify.
7334 (bppy_get_expression): Constify.
7335 * python/py-cmd.c (cmdpy_completer::name): Constify.
7336 (cmdpy_function): Constify.
7337 * python/py-event.c (evpy_add_attribute)
7338 (gdbpy_initialize_event_generic): Constify.
7339 * python/py-event.h (evpy_add_attribute)
7340 (gdbpy_initialize_event_generic): Constify.
7341 * python/py-evts.c (add_new_registry): Constify.
7342 * python/py-finishbreakpoint.c (outofscope_func): Constify.
7343 * python/py-framefilter.c (get_py_iter_from_func): Constify.
7344 * python/py-inferior.c (get_buffer): Add cast.
7345 * python/py-param.c (parm_constant::name): Constify.
7346 * python/py-unwind.c (fprint_frame_id): Constify.
7347 * python/python.c (gdbpy_parameter_value): Constify.
7348 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
7349 * remote.c (memory_packet_config::name): Constify.
7350 (show_packet_config_cmd, remote_write_bytes)
7351 (remote_buffer_add_string):
7352 * reverse.c (exec_reverse_once): Constify.
7353 * rs6000-tdep.c (variant::name, variant::description): Constify.
7354 * rust-exp.y (rustyyerror): Constify.
7355 * rust-lang.c (rust_op_name): Constify.
7356 * rust-lang.h (rustyyerror): Constify.
7357 * serial.h (serial_ops::name): Constify.
7358 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
7359 (sh_sh3e_register_name, sh_sh2e_register_name)
7360 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
7361 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
7362 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
7363 (sh_sh4al_dsp_register_name): Constify.
7364 * sh64-tdep.c (sh64_register_name): Constify.
7365 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
7366 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
7367 * stabsread.c (patch_block_stabs, read_type_number)
7368 (ref_map::stabs, ref_add, process_reference)
7369 (symbol_reference_defined, define_symbol, define_symbol)
7370 (error_type, read_type, read_member_functions, read_cpp_abbrev)
7371 (read_one_struct_field, read_struct_fields, read_baseclasses)
7372 (read_tilde_fields, read_struct_type, read_array_type)
7373 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
7374 (read_huge_number, read_range_type, read_args, common_block_start)
7375 (find_name_end): Constify.
7376 * stabsread.h (common_block_start, define_symbol)
7377 (process_one_symbol, symbol_reference_defined, ref_add):
7378 * symfile.c (get_section_index, add_symbol_file_command):
7379 * symfile.h (get_section_index): Constify.
7380 * target-descriptions.c (tdesc_type::name): Constify.
7381 (tdesc_free_type): Add cast.
7382 * target.c (find_default_run_target):
7383 (add_deprecated_target_alias, find_default_run_target)
7384 (target_announce_detach): Constify.
7385 (do_option): Constify.
7386 * target.h (add_deprecated_target_alias): Constify.
7387 * thread.c (print_thread_info_1): Constify.
7388 * top.c (deprecated_readline_begin_hook, command_line_input):
7389 Constify.
7390 (init_main): Add casts.
7391 * top.h (handle_line_of_input): Constify.
7392 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
7393 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
7394 (tfind_command): Rename to ...
7395 (tfind_command_1): ... this and constify.
7396 (tfind_command): New function.
7397 (tfind_end_command, tfind_start_command): Adjust.
7398 (encode_source_string): Constify.
7399 * tracepoint.h (encode_source_string): Constify.
7400 * tui/tui-data.c (tui_partial_win_by_name): Constify.
7401 * tui/tui-data.h (tui_partial_win_by_name): Constify.
7402 * tui/tui-source.c (tui_set_source_content_nil): Constify.
7403 * tui/tui-source.h (tui_set_source_content_nil): Constify.
7404 * tui/tui-win.c (parse_scrolling_args): Constify.
7405 * tui/tui-windata.c (tui_erase_data_content): Constify.
7406 * tui/tui-windata.h (tui_erase_data_content): Constify.
7407 * tui/tui-winsource.c (tui_erase_source_content): Constify.
7408 * tui/tui.c (tui_enable): Add cast.
7409 * utils.c (defaulted_query): Constify.
7410 (init_page_info): Add cast.
7411 (puts_debug, subset_compare): Constify.
7412 * utils.h (subset_compare): Constify.
7413 * varobj.c (varobj_format_string): Constify.
7414 * varobj.h (varobj_format_string): Constify.
7415 * vax-tdep.c (vax_register_name): Constify.
7416 * windows-nat.c (windows_detach): Constify.
7417 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
7418 * xml-support.c (gdb_xml_end_element): Constify.
7419 * xml-tdesc.c (tdesc_start_reg): Constify.
7420 * xstormy16-tdep.c (xstormy16_register_name): Constify.
7421 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
7422 * xtensa-tdep.h (xtensa_register_t::name): Constify.
7423
7424 2017-04-05 Pedro Alves <palves@redhat.com>
7425
7426 * proc-api.c (struct trans): Constify.
7427 (procfs_note): Constify.
7428 * proc-events.c (struct trans, syscall_table):
7429 * proc-flags.c (struct trans): Constify.
7430 * proc-utils.h (procfs_note): Constify.
7431 * proc-why.c (struct trans): Constify.
7432 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
7433 (procfs_detach): Constify.
7434 * sol-thread.c (struct string_map): Constify.
7435 (td_err_string, td_state_string): Constify.
7436
7437 2017-04-05 Pedro Alves <palves@redhat.com>
7438
7439 * proc-api.c (procfs_filename): Don't initialize
7440 procfs_filename.
7441 (prepare_to_trace): Assume procfs_filename is non-NULL.
7442 (_initialize_proc_api): Give procfs_filename a default value here.
7443
7444 2017-04-05 Pedro Alves <palves@redhat.com>
7445
7446 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
7447 'cond_string' parameter.
7448 (extract_exception_regexp): Constify 'string' parameter.
7449 (catch_exception_command_1): Constify.
7450 * breakpoint.c (init_catchpoint)
7451 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
7452 parameter.
7453 (ep_parse_optional_if_clause, catch_fork_command_1)
7454 (catch_exec_command_1): Constify.
7455 * breakpoint.h (init_catchpoint): Constify 'cond_string'
7456 parameter.
7457 (ep_parse_optional_if_clause): Constify.
7458 * cli/cli-utils.c (remove_trailing_whitespace)
7459 (check_for_argument): Constify.
7460 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
7461 non-const overload.
7462 (check_for_argument): Likewise.
7463
7464 2017-04-05 Pedro Alves <palves@redhat.com>
7465
7466 * event-top.c (command_line_handler): Add cast to execute_command
7467 call.
7468 * record-btrace.c (cmd_record_btrace_bts_start)
7469 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
7470 (cmd_record_btrace_start): Add cast to execute_command call.
7471 * record-full.c (record_full_goto_insn):
7472 * record.c (record_start, record_stop): Add cast to
7473 execute_command_to_string calls.
7474 (cmd_record_start): Add cast to execute_command calls.
7475
7476 2017-04-05 Pedro Alves <palves@redhat.com>
7477
7478 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
7479 static inline function.
7480 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
7481 array and use gdb_PyArg_ParseTupleAndKeywords.
7482 * python/py-cmd.c (cmdpy_init): Likewise.
7483 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
7484 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
7485 (infpy_search_memory): Likewise.
7486 * python/py-objfile.c (objfpy_add_separate_debug_file)
7487 (gdbpy_lookup_objfile): Likewise.
7488 * python/py-symbol.c (gdbpy_lookup_symbol)
7489 (gdbpy_lookup_global_symbol): Likewise.
7490 * python/py-type.c (gdbpy_lookup_type): Likewise.
7491 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
7492 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
7493 Likewise.
7494
7495 2017-04-05 Pedro Alves <palves@redhat.com>
7496
7497 * python/python-internal.h (gdb_PyGetSetDef): New type.
7498 * python/py-block.c (block_object_getset)
7499 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
7500 * python/py-event.c (event_object_getset)
7501 (finish_breakpoint_object_getset): Likewise.
7502 * python/py-inferior.c (inferior_object_getset): Likewise.
7503 * python/py-infthread.c (thread_object_getset): Likewise.
7504 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
7505 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
7506 * python/py-objfile.c (objfile_getset): Likewise.
7507 * python/py-progspace.c (pspace_getset): Likewise.
7508 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
7509 Likewise.
7510 * python/py-record.c (recpy_record_getset): Likewise.
7511 * python/py-symbol.c (symbol_object_getset): Likewise.
7512 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
7513 Likewise.
7514 * python/py-type.c (type_object_getset, field_object_getset):
7515 Likewise.
7516 * python/py-value.c (value_object_getset): Likewise.
7517
7518 2017-04-05 Pedro Alves <palves@redhat.com>
7519
7520 * python/python-internal.h (gdb_PyObject_CallMethod)
7521 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
7522 New functions.
7523 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
7524 (PySys_GetObject, PySys_SetPath): New macros.
7525
7526 2017-04-05 Pedro Alves <palves@redhat.com>
7527
7528 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
7529 info_osdata_command.
7530 * osdata.c (info_osdata_command): Rename to ...
7531 (info_osdata): ... this. Constify 'type' parameter, and remove
7532 the 'from_tty' parameter. Accept NULL TYPE.
7533 (info_osdata_command): New function.
7534 * osdata.h (info_osdata_command): Remove declaration.
7535 (info_osdata): New declaration.
7536
7537 2017-04-05 Pedro Alves <palves@redhat.com>
7538
7539 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
7540 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
7541 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
7542 parameter.
7543 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
7544 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
7545 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
7546 parameter.
7547 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
7548 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
7549 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
7550 (mi_cmd_file_list_exec_source_files)
7551 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
7552 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7553 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
7554 parameter.
7555 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
7556 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
7557 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7558 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
7559 (mi_cmd_stack_info_frame): Constify 'command' parameter.
7560 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
7561 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
7562 'command' parameter.
7563 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
7564 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
7565 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
7566 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
7567 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
7568 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
7569 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
7570 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
7571 (mi_cmd_var_set_update_range): Constify 'command' parameter.
7572 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
7573 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
7574 parameter.
7575 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
7576 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
7577 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
7578 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
7579 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
7580 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
7581 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
7582 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
7583 (mi_cmd_data_list_changed_registers)
7584 (mi_cmd_data_write_register_values)
7585 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
7586 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
7587 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
7588 (mi_cmd_list_features, mi_cmd_list_target_features)
7589 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
7590 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
7591 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
7592 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
7593 (mi_cmd_trace_frame_collected): Constify 'command'
7594 parameter.
7595 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
7596 'command' parameter.
7597
7598 2017-04-05 Pedro Alves <palves@redhat.com>
7599
7600 * ada-lang.c (ada_completer_word_break_characters): Now a const
7601 array.
7602 (ada_get_gdb_completer_word_break_characters): Constify.
7603 * completer.c (gdb_completer_command_word_break_characters)
7604 (gdb_completer_file_name_break_characters)
7605 (gdb_completer_quote_characters): Now const arrays.
7606 (get_gdb_completer_quote_characters): Constify.
7607 (set_rl_completer_word_break_characters): New function.
7608 (set_gdb_completion_word_break_characters)
7609 (complete_line_internal): Use it.
7610 * completer.h (get_gdb_completer_quote_characters): Constify.
7611 (set_rl_completer_word_break_characters): Declare.
7612 * f-lang.c (f_word_break_characters): Constify.
7613 * language.c (default_word_break_characters): Constify.
7614 * language.h (language_defn::la_word_break_characters): Constify.
7615 (default_word_break_characters): Constify.
7616 * top.c (init_main): Use set_rl_completer_word_break_characters.
7617
7618 2017-04-05 Pedro Alves <palves@redhat.com>
7619
7620 * aix-thread.c (aix_thread_pid_to_str)
7621 (aix_thread_extra_thread_info): Constify.
7622 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
7623 * bsd-uthread.c (bsd_uthread_extra_thread_info)
7624 (bsd_uthread_pid_to_str): Constify.
7625 * corelow.c (core_pid_to_str): Constify.
7626 * darwin-nat.c (darwin_pid_to_str): Constify.
7627 * fbsd-nat.c (fbsd_pid_to_str): Constify.
7628 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
7629 Constify.
7630 * gnu-nat.c (gnu_pid_to_str): Constify.
7631 * go32-nat.c (go32_pid_to_str): Constify.
7632 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
7633 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
7634 * inferior.c (inferior_pid_to_str): Constify.
7635 * linux-nat.c (linux_nat_pid_to_str): Constify.
7636 * linux-tdep.c (linux_core_pid_to_str): Constify.
7637 * linux-thread-db.c (thread_db_pid_to_str)
7638 (thread_db_extra_thread_info): Constify.
7639 * nto-tdep.c (nto_extra_thread_info): Constify.
7640 * nto-tdep.h (nto_extra_thread_info): Constify.
7641 * obsd-nat.c (obsd_pid_to_str): Constify.
7642 * procfs.c (procfs_pid_to_str): Constify.
7643 * ravenscar-thread.c (ravenscar_extra_thread_info)
7644 (ravenscar_pid_to_str): Constify.
7645 * remote-sim.c (gdbsim_pid_to_str): Constify.
7646 * remote.c (remote_threads_extra_info, remote_pid_to_str):
7647 Constify.
7648 * sol-thread.c (solaris_pid_to_str): Constify.
7649 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
7650 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
7651 * target.c (default_pid_to_str, target_pid_to_str)
7652 (normal_pid_to_str, default_pid_to_str): Constify.
7653 * target.h (target_ops::to_pid_to_str)
7654 (target_ops::to_extra_thread_info): Constify.
7655 (target_pid_to_str, normal_pid_to_str): Constify.
7656 * windows-nat.c (windows_pid_to_str): Constify.
7657 * gdbarch.sh (core_pid_to_str): Constify.
7658 * target-delegates.c: Regenerate.
7659 * gdbarch.h, gdbarch.c: Regenerate.
7660
7661 2017-04-05 Pedro Alves <palves@redhat.com>
7662
7663 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
7664 the memory of the temporary warning_pre_print override.
7665 * utils.c (warning_pre_print): Constify.
7666 * utils.h (warning_pre_print): Constify.
7667
7668 2017-04-05 Pedro Alves <palves@redhat.com>
7669
7670 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
7671 (shell_command): New function.
7672 (make_command): Use std::string.
7673 (init_cli_cmds): Register shell_command instead of shell_escape.
7674
7675 2017-04-05 Pedro Alves <palves@redhat.com>
7676
7677 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
7678 * tracepoint.c (default_collect): Don't initialize.
7679
7680 2017-04-05 Pedro Alves <palves@redhat.com>
7681
7682 * macroexp.c (macro_buffer::shared): Now a bool.
7683 (init_buffer): Update.
7684 (init_shared_buffer): Constify 'addr' parameter.
7685 (substitute_args, expand, macro_expand, macro_expand_next): Remove
7686 casts.
7687
7688 2017-04-05 Pedro Alves <palves@redhat.com>
7689
7690 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
7691 * disasm.c (set_disassembler_options): Constify local.
7692 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
7693
7694 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7695
7696 PR gdb/21352
7697 * tracefile.c (tsave_command): Fix argument parsing for '-r'
7698 option.
7699
7700 2017-04-05 Yao Qi <yao.qi@linaro.org>
7701
7702 * frame.c (frame_unwind_register_unsigned): Call
7703 frame_unwind_register_value.
7704
7705 2017-04-05 Yao Qi <yao.qi@linaro.org>
7706
7707 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
7708 Use gdb_test_multiple, and don't match anchor.
7709
7710 2017-04-05 Pedro Alves <palves@redhat.com>
7711
7712 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
7713 (Write After Approval): Remove Simon Marchi.
7714
7715 2017-04-05 Pedro Alves <palves@redhat.com>
7716
7717 * common/gdb_optional.h (optional::optional): Make constexpr and
7718 initialize m_dummy.
7719
7720 2017-04-04 John Baldwin <jhb@FreeBSD.org>
7721
7722 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
7723 (amd64fbsd_jmp_buf_reg_offset): Remove.
7724 (amd64fbsd_supply_uthread): Remove function.
7725 (amd64fbsd_collect_uthread): Remove function.
7726 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
7727 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
7728 (x86_64-*-freebsd*): Remove bsd-uthread.o.
7729 (fbsd-nat.c): Update comment.
7730 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
7731 (i386fbsd_jmp_buf_reg_offset): Remove.
7732 (i386fbsd_supply_uthread): Remove function.
7733 (i386fbsd_collect_uthread): Remove function.
7734 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
7735
7736 2017-04-04 John Baldwin <jhb@FreeBSD.org>
7737
7738 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
7739 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
7740 * NEWS: Mention that support for FreeBSD/alpha was removed.
7741 * alpha-fbsd-tdep.c: Delete file.
7742 * config/alpha/fbsd.mh: Delete file.
7743 * configure.host: Delete alpha*-*-freebsd* and
7744 alpha*-*-kfreebsd*-gnu.
7745 * configure.tgt: Delete alpha*-*-freebsd* and
7746 alpha*-*-kfreebsd*-gnu.
7747
7748 2017-04-04 John Baldwin <jhb@FreeBSD.org>
7749
7750 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
7751 amd64bsd_store_inferior_registers): Use ptid from regcache.
7752
7753 2017-04-04 Pedro Alves <palves@redhat.com>
7754
7755 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
7756 data fields, make them private and add "m_" prefixes.
7757 (lnp_state_machine::lnp_state_machine): New ctor.
7758 (record_line, check_line_address, handle_set_discriminator)
7759 (handle_set_address, handle_advance_pc, handle_special_opcode)
7760 (handle_advance_line, handle_set_file, handle_negate_stmt)
7761 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
7762 (end_sequence, advance_line): New methods.
7763 (m_gdbarch, m_record_lines_p): New fields.
7764 (lnp_reader_state): Delete.
7765 (dwarf_record_line): Rename to ...
7766 (lnp_state_machine::record_line): ... adjust.
7767 (init_lnp_state_machine): Delete.
7768 (lnp_state_machine::lnp_state_machine): New.
7769 (check_line_address): Rename to ...
7770 (lnp_state_machine::check_line_address): This.
7771 (dwarf_decode_lines_1): Remove reference to "reader_state".
7772 Adjust lnp_state_machine having a non-default ctor. Use bool.
7773 State machine internal state manipulation moved to
7774 lnp_state_machine methods.
7775
7776 2017-04-04 Pedro Alves <palves@redhat.com>
7777
7778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7779 unittests/offset-type-selftests.c.
7780 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
7781 * common/offset-type.h: New file.
7782 * common/preprocessor.h: New file.
7783 * common/traits.h: New file.
7784 * common/valid-expr.h: New file.
7785 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
7786 sect_offset and cu_offset strong typedefs throughout.
7787 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
7788 typedefs throughout.
7789 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
7790 sect_offset and cu_offset strong typedefs throughout.
7791 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
7792 typedefs throughout.
7793 * gdbtypes.h: Include "common/offset-type.h".
7794 (cu_offset): Now an offset type (strong typedef) instead of a
7795 struct.
7796 (sect_offset): Likewise.
7797 (union call_site_parameter_u): Rename "param_offset" field to
7798 "param_cu_off".
7799 * unittests/offset-type-selftests.c: New file.
7800
7801 2017-04-04 Pedro Alves <palves@redhat.com>
7802
7803 * common/underlying.h: New file.
7804 * dwarf2read.c: Include "common/gdb_optional.h" and
7805 "common/underlying.h".
7806 (dir_index, file_name_index): New types.
7807 (file_entry): Use them.
7808 (file_entry::include): Use to_underlying.
7809 (line_header::add_file_name): Use dir_index.
7810 (read_formatted_entries): Use gdb::optional. Read form before
7811 writting to file_entry.
7812 (dwarf_decode_line_header): Use dir_index.
7813 (lnp_state_machine::current_file): Use to_underlying.
7814 (lnp_state_machine::file): Change type to file_name_index.
7815 (dwarf_record_line): Use to_underlying.
7816 (init_lnp_state_machine): Use file_name_index.
7817 (dwarf_decode_lines_1): Use dir_index and file_name_index.
7818
7819 2017-04-04 Pedro Alves <palves@redhat.com>
7820
7821 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
7822 operator bool, has_value and get methods.
7823
7824 2017-04-04 Pedro Alves <palves@redhat.com>
7825
7826 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
7827 fields.
7828 (line_header): Initialize all data fields. Change type of
7829 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
7830 Change type of include_dirs to std::vector<const char *>. Remove
7831 num_include_dirs, include_dirs_size. Change type of file_names to
7832 std::vector<file_entry>. Remove num_file_names, file_names_size.
7833 (line_header::line_header): New.
7834 (line_header::add_include_dir, line_header::add_file_name): New
7835 methods.
7836 (line_header::include_dir_at): Remove NULL check.
7837 (line_header::file_name_at): Add const overload.
7838 (line_header_up): New unique_ptr typedef.
7839 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
7840 std::vector. Remove free_line_header call.
7841 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
7842 free_line_header call.
7843 (free_cu_line_header): Delete.
7844 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
7845 (setup_type_unit_groups): Use line_header_up instead of cleanups.
7846 Adjust to use std::vector.
7847 (free_line_header): Delete.
7848 (free_line_header_voidp): Use delete.
7849 (add_include_dir): Replace with ...
7850 (line_header::add_include_dir): ... this method. Use std::vector.
7851 (add_file_name): Replace with ...
7852 (line_header::add_file_name): ... this method. Use std::vector.
7853 (add_include_dir_stub): Delete.
7854 (read_formatted_entries): Remove memset.
7855 (dwarf_decode_line_header): Return a line_header_up instead of a
7856 raw pointer. Remove cleanup handling. Pass lambdas to
7857 read_formatted_entries. Adjust to use line_header methods.
7858 (dwarf_decode_lines_1): Adjust to use line_header methods.
7859 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
7860 use std::vector.
7861
7862 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
7863
7864 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
7865 instead of struct ptid.
7866
7867 2017-05-04 Alan Hayward <alan.hayward@arm.com>
7868
7869 * frame.c (get_frame_register_bytes): Unwind using value.
7870 (put_frame_register_bytes): Likewise.
7871
7872 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
7873
7874 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
7875 aggregate-like.
7876
7877 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7878
7879 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
7880
7881 2017-03-29 Yao Qi <yao.qi@linaro.org>
7882
7883 * gdbthread.h (struct thread_info): Declare constructor and
7884 destructor. Add some in-class member initializers.
7885 * thread.c (free_thread): Remove.
7886 (init_thread_list): Call delete instead of free_thread.
7887 (new_thread): Call thread_info constructor.
7888 (thread_info::thread_info): New function.
7889 (thread_info::~thread_info): New function.
7890 (delete_thread_1): Call delete instead of free_thread.
7891 (make_cleanup_restore_current_thread): Move tp and frame to
7892 inner block.
7893
7894 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
7895
7896 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
7897 (arc_skip_prologue): Likewise.
7898 (arc_make_frame_cache): Likewise.
7899 (arc_pv_get_operand): New function.
7900 (arc_is_in_prologue): Likewise.
7901 (arc_analyze_prologue): Likewise.
7902 (arc_print_frame_cache): Likewise.
7903 (MAX_PROLOGUE_LENGTH): New constant.
7904
7905 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
7906
7907 * configure.tgt: Add arc-insn.o.
7908 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
7909 (dump_arc_instruction_command): New function.
7910 (arc_fprintf_disasm): Likewise.
7911 (arc_disassemble_info): Likewise.
7912 (arc_insn_get_operand_value): Likewise.
7913 (arc_insn_get_operand_value_signed): Likewise.
7914 (arc_insn_get_memory_base_reg): Likewise.
7915 (arc_insn_get_memory_offset): Likewise.
7916 (arc_insn_get_branch_target): Likewise.
7917 (arc_insn_dump): Likewise.
7918 (arc_insn_get_linear_next_pc): Likewise.
7919 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
7920 (arc_disassemble_info): Likewise.
7921 (arc_insn_get_branch_target): Likewise.
7922 (arc_insn_get_linear_next_pc): Likewise.
7923 * NEWS: Mention new "maint print arc arc-instruction".
7924
7925 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
7926
7927 * arc-tdep (maintenance_print_arc_list): New variable.
7928 (maintenance_print_arc_command): New function.
7929
7930 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
7931
7932 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
7933 Add "limm" and "reserved".
7934 (arc_cannot_fetch_register, arc_cannot_store_register): Add
7935 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
7936 * arc-tdep.h (arc_regnum): Likewise.
7937
7938 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7939
7940 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
7941 for THREADPTR register.
7942 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
7943 register.
7944 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
7945 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
7946 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
7947
7948 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7949
7950 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
7951 registers above gdbarch_num_regs (gdbarch) as privileged in
7952 call0 ABI.
7953
7954 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7955
7956 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
7957 for a single specified register or for all registers in
7958 a0_base..a0_base + C0_NREGS range.
7959 (supply_gregset_reg): Call regcache_raw_supply for a single
7960 specified register or for all registers in a0_base..a0_base +
7961 C0_NREGS range.
7962
7963 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7964
7965 * arch/xtensa.h (C0_NREGS): Add definition.
7966 * xtensa-tdep.c (C0_NREGS): Remove definition.
7967
7968 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7969
7970 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
7971 Drop xtensa_default_isa initialization.
7972 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
7973
7974 2017-03-27 Pedro Alves <palves@redhat.com>
7975
7976 * dwarf2read.c (file_entry) <dir_index>: Add comment.
7977 (file_entry::include_dir): New method.
7978 (line_header::include_dir_at, line_header::file_name_at): New
7979 methods.
7980 (setup_type_unit_groups, setup_type_unit_groups)
7981 (psymtab_include_file_name): Simplify using the new methods.
7982 (lnp_state_machine) <the_line_header>: New field.
7983 <file>: Add comment.
7984 (lnp_state_machine::current_file): New method.
7985 (dwarf_record_line): Simplify using the new methods.
7986 (init_lnp_state_machine): Initialize the "the_line_header" field.
7987 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
7988 Simplify using the new methods.
7989
7990 2017-03-27 Pedro Alves <palves@redhat.com>
7991
7992 * cp-name-parser.y (make_empty): Delete.
7993 (demangler_special, nested_name, ptr_operator, array_indicator)
7994 (direct_declarator, declarator_1): Use fill_comp instead of
7995 make_empty.
7996
7997 2017-03-27 Pedro Alves <palves@redhat.com>
7998
7999 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8000 to ATTRIBUTE_PRINTF.
8001 * solib-target.c (library_list_start_list): Print "string" not
8002 "version".
8003 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8004 gdb_xml_error call.
8005
8006 2017-03-27 Pedro Alves <palves@redhat.com>
8007
8008 * dwarf2read.c (struct file_and_directory): New.
8009 (dwarf2_get_dwz_file): Adjust to use std::string.
8010 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8011 (find_file_and_directory): Adjust to return a file_and_directory
8012 object.
8013 (read_file_scope): Adjust to use file_and_directory. Remove
8014 make_cleanup/do_cleanups calls.
8015 (open_and_init_dwp_file): Adjust to use std::string. Remove
8016 make_cleanup/do_cleanups calls.
8017 * python/python.c (do_start_initialization): Adjust to ldirname
8018 returning a std::string.
8019 * utils.c (ldirname): Now returns a std::string.
8020 * utils.h (ldirname): Change return type to std::string.
8021 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8022 returning a std::string.
8023 * xml-tdesc.c (file_read_description_xml): Likewise.
8024
8025 2017-03-24 Alan Hayward <alan.hayward@arm.com>
8026
8027 * regcache.c (regcache_debug_print_register): New function.
8028 * regcache.h (regcache_debug_print_register): New declaration.
8029 * target.c (debug_print_register): Remove.
8030 (target_fetch_registers): Call regcache_debug_print_register.
8031 (target_store_registers): Likewise.
8032
8033 2017-03-24 Pádraig Brady <pbrady@fb.com>
8034
8035 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8036 reference beyond the 'lh->include_dirs' array before accessing to
8037 it.
8038 (psymtab_include_file_name): Likewise.
8039 (dwarf_decode_lines_1): Likewise.
8040 (dwarf_decode_lines): Likewise.
8041 (file_file_name): Likewise.
8042
8043 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8044
8045 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8046 inferior_ptid.
8047 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8048 ps_lsetfpregs): Likewise.
8049 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8050 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8051 ps_lsetfpregs): Likewise.
8052 * target.c (target_fetch_registers, target_store_registers):
8053 Remove asserts.
8054
8055 2017-03-23 Alan Hayward <alan.hayward@arm.com>
8056
8057 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8058
8059 2017-03-23 Yao Qi <yao.qi@linaro.org>
8060
8061 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8062 (_initialize_aarch64_tdep): Register it.
8063 (aarch64_record_load_store): Handle PRFM instruction.
8064 (aarch64_process_record_test): New function.
8065
8066 2017-03-23 Yao Qi <yao.qi@linaro.org>
8067
8068 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8069 indentation.
8070
8071 2017-03-23 Yao Qi <yao.qi@linaro.org>
8072
8073 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8074
8075 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8076
8077 python/python.c (do_start_initialization): Fix memory leak.
8078
8079 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8080
8081 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8082 using get_ptrace_pid.
8083 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8084 inferior_ptid.
8085 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8086 inferior_ptid instead of pid.
8087
8088 2017-03-22 Yao Qi <yao.qi@linaro.org>
8089
8090 * aarch64-tdep.c: Wrap locally used classes in anonymous
8091 namespace.
8092 * arm-tdep.c: Likewise.
8093 * linespec.c: Likewise.
8094 * ui-out.c: Likewise.
8095
8096 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
8097
8098 PR gdb/19637
8099 * python/lib/gdb/printer/bound_registers.py: Import sys.
8100
8101 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8102
8103 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8104 windows_thread_info parameter and use it instead of
8105 current_thread.
8106 (windows_fetch_inferior_registers): Don't set current_thread,
8107 pass the thread to do_windows_fetch_inferior_registers. Use
8108 ptid from regcache instead of inferior_ptid.
8109 (do_windows_store_inferior_registers): Add windows_thread_info
8110 parameter and use it instead of current_thread.
8111 (windows_store_inferior_registers): Don't set current_thread,
8112 pass the thread to do_windows_store_inferior_registers. Use
8113 ptid from regcache instead of inferior_ptid.
8114
8115 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8116
8117 * ser-mingw.c (ser_windows_raw): Remove reference to
8118 struct serial::current_timeout.
8119
8120 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8121
8122 PR tdep/20928
8123 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8124 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8125 (sparc64_fsr_type): Fix %fsr decoding.
8126
8127 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8128
8129 * python/py-record-btrace.c (btpy_insn_data): Change return type
8130 for Python 2.
8131
8132 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8133
8134 * spu-linux-nat.c (spu_fetch_inferior_registers,
8135 spu_store_inferior_registers): Use ptid from regcache, set and
8136 restore inferior_ptid.
8137 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8138 Likewise.
8139
8140 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8141
8142 * i386-linux-nat.c (fetch_register, store_register,
8143 i386_linux_fetch_inferior_registers,
8144 i386_linux_store_inferior_registers): Use ptid from regcache.
8145 * ia64-linux-nat.c (ia64_linux_fetch_register,
8146 ia64_linux_store_register): Likewise.
8147 * inf-ptrace.c (inf_ptrace_fetch_register,
8148 inf_ptrace_store_register): Likewise.
8149 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8150 m32r_linux_store_inferior_registers): Likewise.
8151 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8152 m68kbsd_store_inferior_registers): Likewise.
8153 * m68k-linux-nat.c (fetch_register, store_register,
8154 m68k_linux_fetch_inferior_registers,
8155 m68k_linux_store_inferior_registers): Likewise.
8156 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8157 m88kbsd_store_inferior_registers): Likewise.
8158 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8159 mips_fbsd_store_inferior_registers): Likewise.
8160 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8161 mips64_linux_regsets_store_registers): Likewise.
8162 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8163 mipsnbsd_store_inferior_registers): Likewise.
8164 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8165 mips64obsd_store_inferior_registers): Likewise.
8166 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8167 Likewise.
8168 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8169 ppcfbsd_store_inferior_registers): Likewise.
8170 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8171 ppc_linux_store_inferior_registers): Likewise.
8172 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8173 ppcnbsd_store_inferior_registers): Likewise.
8174 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8175 ppcobsd_store_registers): Likewise.
8176 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8177 Likewise.
8178 * ravenscar-thread.c (ravenscar_fetch_registers,
8179 ravenscar_store_registers, ravenscar_prepare_to_store):
8180 Likewise.
8181 * record-btrace.c (record_btrace_fetch_registers,
8182 record_btrace_store_registers, record_btrace_prepare_to_store):
8183 Likewise.
8184 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8185 Lookup inferior using ptid from regcache, instead of
8186 current_inferior.
8187 * remote.c (remote_fetch_registers, remote_store_registers): Use
8188 ptid from regcache.
8189 * rs6000-nat.c (fetch_register, store_register): Likewise.
8190 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8191 s390_linux_store_inferior_registers): Likewise.
8192 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8193 shnbsd_store_inferior_registers): Likewise.
8194 * sol-thread.c (sol_thread_fetch_registers,
8195 sol_thread_store_registers): Likewise.
8196 * sparc-nat.c (sparc_fetch_inferior_registers,
8197 sparc_store_inferior_registers): Likewise.
8198 * tilegx-linux-nat.c (fetch_inferior_registers,
8199 store_inferior_registers): Likewise.
8200 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8201 vaxbsd_store_inferior_registers): Likewise.
8202 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8203 store_xtregs): Likewise.
8204
8205 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8206
8207 PR gdb/14441
8208 * NEWS: Mention support for rvalue references in GDB and python.
8209 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8210 supports both lvalue and rvalue references.
8211
8212 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8213
8214 PR gdb/14441
8215 * gdbtypes.c (rank_one_type): Implement overloading
8216 resolution rules regarding rvalue references.
8217
8218 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8219
8220 PR gdb/14441
8221 * aarch64-tdep.c (aarch64_type_align)
8222 (aarch64_extract_return_value, aarch64_store_return_value): Change
8223 lvalue reference type checks to general reference type checks.
8224 * amd64-tdep.c (amd64_classify): Likewise.
8225 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8226 Likewise.
8227 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8228 (arm_store_return_value): Likewise.
8229 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8230 * c-typeprint.c (c_print_type): Likewise.
8231 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8232 (cplus_number_of_children, cplus_describe_child): Likewise.
8233 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8234 * completer.c (expression_completer): Likewise.
8235 * cp-support.c (make_symbol_overload_list_adl_namespace):
8236 Likewise.
8237 * darwin-nat-info.c (info_mach_region_command): Likewise.
8238 * dwarf2loc.c (entry_data_value_coerce_ref)
8239 (value_of_dwarf_reg_entry): Likewise.
8240 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8241 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8242 Likewise.
8243 * findvar.c (extract_typed_address, store_typed_address):
8244 Likewise.
8245 * gdbtypes.c (rank_one_type): Likewise.
8246 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8247 * infcall.c (value_arg_coerce): Likewise.
8248 * language.c (pointer_type): Likewise.
8249 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8250 Likewise.
8251 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8252 * mn10300-tdep.c (mn10300_type_align): Likewise.
8253 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8254 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8255 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8256 Likewise.
8257 * printcmd.c (print_formatted, x_command): Likewise.
8258 * python/py-type.c (typy_get_composite, typy_template_argument):
8259 Likewise.
8260 * python/py-value.c (valpy_referenced_value)
8261 (valpy_get_dynamic_type, value_has_field): Likewise.
8262 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8263 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8264 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8265 * spu-tdep.c (spu_scalar_value_p): Likewise.
8266 * symtab.c (lookup_symbol_aux): Likewise.
8267 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8268 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8269 Likewise.
8270 * valops.c (value_cast_pointers, value_cast)
8271 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8272 (value_struct_elt, value_struct_elt_bitpos)
8273 (value_find_oload_method_list, find_overload_match)
8274 (value_rtti_indirect_type): Likewise.
8275 * valprint.c (val_print_scalar_type_p, generic_val_print):
8276 Likewise.
8277 * value.c (value_actual_type, value_as_address, unpack_long)
8278 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8279 (coerce_ref): Likewise.
8280 * varobj.c (varobj_get_value_type): Likewise.
8281
8282 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8283
8284 PR gdb/14441
8285 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
8286 table of constants.
8287 * python/lib/gdb/command/explore.py: Support exploring values
8288 of rvalue reference types.
8289 * python/lib/gdb/types.py: Implement get_basic_type() for
8290 rvalue reference types.
8291 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
8292 constant.
8293 * python/py-value.c (valpy_getitem): Add an rvalue reference
8294 check.
8295 (valpy_reference_value): Add new parameter "refcode".
8296 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
8297 New wrappers for valpy_reference_value().
8298 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8299 (gdbpy_invoke_xmethod): Likewise.
8300
8301 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8302
8303 PR gdb/14441
8304 * dwarf2read.c (process_die, read_type_die_1): Handle the
8305 DW_TAG_rvalue_reference_type DIE.
8306 (read_tag_reference_type): Add new parameter "refcode".
8307
8308 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8309
8310 PR gdb/14441
8311 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
8312 (c_type_print_modifier, c_type_print_varspec_suffix)
8313 (c_type_print_base): Support printing rvalue reference types.
8314 * c-valprint.c (c_val_print, c_value_print): Support printing
8315 rvalue reference values.
8316
8317 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8318
8319 PR gdb/14441
8320 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
8321 typename.
8322 * cp-support.c (replace_typedefs): Handle
8323 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
8324 * python/py-type.c (typy_lookup_type): Likewise.
8325
8326 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8327
8328 PR gdb/14441
8329 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
8330 * parse.c (insert_type): Change assert statement.
8331 (follow_types): Handle rvalue reference types.
8332 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
8333 constant.
8334
8335 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8336
8337 PR gdb/14441
8338 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
8339 value_ref() interface.
8340 * c-valprint.c (c_value_print): Likewise.
8341 * infcall.c (value_arg_coerce): Likewise.
8342 * python/py-value.c (valpy_reference_value): Likewise.
8343 * valops.c (value_cast, value_reinterpret_cast)
8344 (value_dynamic_cast, typecmp): Likewise.
8345 (value_ref): Parameterize by kind of return value reference type.
8346 * value.h (value_ref): Add new parameter "refcode".
8347
8348 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8349
8350 PR gdb/14441
8351 * dwarf2read.c (read_tag_reference_type): Use
8352 lookup_lvalue_reference_type() instead of lookup_reference_type().
8353 * eval.c (evaluate_subexp_standard): Likewise.
8354 * f-exp.y: Likewise.
8355 * gdbtypes.c (make_reference_type, lookup_reference_type):
8356 Generalize with rvalue reference types.
8357 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
8358 convenience wrappers for lookup_reference_type().
8359 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
8360 reference kind parameter.
8361 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
8362 wrappers for lookup_reference_type().
8363 * guile/scm-type.c (gdbscm_type_reference): Use
8364 lookup_lvalue_reference_type() instead of lookup_reference_type().
8365 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
8366 * parse.c (follow_types): Likewise.
8367 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
8368 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
8369 Likewise.
8370 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8371 (gdbpy_invoke_xmethod): Likewise.
8372 * stabsread.c: Provide extra argument to make_reference_type()
8373 call.
8374 * valops.c (value_ref, value_rtti_indirect_type): Use
8375 lookup_lvalue_reference_type() instead of lookup_reference_type().
8376
8377 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8378
8379 PR gdb/14441
8380 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
8381 (TYPE_IS_REFERENCE): New macro.
8382 (struct type): Add rvalue_reference_type field.
8383 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
8384
8385 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8386
8387 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
8388 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
8389 New function definition.
8390 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
8391 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
8392 New function declaration.
8393 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
8394 * mi/mi-interp.h: New file.
8395 * solib.c (info_sharedlibrary_command): Replace for loop with
8396 ALL_SO_LIBS macro
8397 * solib.h (update_solib_list): New function declaration.
8398 (so_list_head): Move macro.
8399 * solist.h (ALL_SO_LIBS): New macro.
8400
8401 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8402
8403 * infcmd.c (post_create_inferior): Remove unused argument in
8404 call to solib_add.
8405 * remote.c (remote_start_remote): Likewise.
8406 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
8407 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
8408 (enable_break): Likewise.
8409 * solib.c (update_solib_list): Remove unused target argument
8410 and its documentation.
8411 (solib_add): Remove unused target argument. Remove unused
8412 argument in call to update_solib_list.
8413 (info_sharedlibrary_command): Remove unused argument in call
8414 to update_solib_list.
8415 (sharedlibrary_command): Remove unused argument in call to
8416 solib_add.
8417 (handle_solib_event): Likewise.
8418 (reload_shared_libraries): Likewise.
8419 * solib.h (solib_add): Remove unused target argument.
8420
8421 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
8422
8423 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
8424 (s390_displaced_step_fixup): Cover relative branches with the
8425 default fixup handling. This fixes lack of support for some
8426 relative branch instructions.
8427
8428 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8429
8430 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
8431 ptid from regcache.
8432
8433 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8434
8435 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
8436 i386_darwin_store_inferior_registers): Use ptid from regcache.
8437
8438 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8439
8440 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
8441 i386bsd_store_inferior_registers): Use ptid from regcache.
8442
8443 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8444
8445 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
8446 hppaobsd_store_registers): Use ptid from regcache.
8447
8448 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8449
8450 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
8451 hppanbsd_store_registers): Use ptid from regcache.
8452
8453 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8454
8455 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
8456 from regcache. Use get_ptrace_pid.
8457
8458 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8459
8460 * corelow.c (get_core_register_section): Use ptid from regcache,
8461 update doc.
8462
8463 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8464
8465 * bsd-uthread.c (bsd_uthread_fetch_registers,
8466 bsd_uthread_store_registers): Use ptid from regcache, set and
8467 restore inferior_ptid.
8468
8469 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8470
8471 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
8472 fetch_fp_regs, store_register, store_regs, store_fp_register,
8473 store_fp_regs): Use ptid from regcache.
8474
8475 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8476
8477 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
8478 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
8479 store_vfp_regs): Use ptid from regcache.
8480
8481 2017-03-17 Pedro Alves <palves@redhat.com>
8482
8483 PR remote/21188
8484 * ser-base.c (ser_base_wait_for): Add comment.
8485 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
8486 version.
8487 * ser-unix.c (hardwire_raw): Remove reference to
8488 scb->current_timeout.
8489 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
8490 (hardwire_ops): Install ser_base_readchar instead of
8491 hardwire_readchar.
8492 * serial.h (struct serial) <current_timeout, timeout_remaining>:
8493 Remove fields.
8494
8495 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
8496
8497 PR gdb/19637
8498 * python/lib/gdb/printer/bound_registers.py: Add support for
8499 Python 3.
8500
8501 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8502
8503 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
8504 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
8505 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
8506 byte_offset to subobj_byte_offset. Fix the handling of
8507 DWARF_VALUE_STACK on big-endian targets when coming via an
8508 implicit pointer.
8509 (dwarf2_evaluate_loc_desc): Adjust call to
8510 dwarf2_evaluate_loc_desc_full.
8511 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
8512 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
8513
8514 2017-03-16 Yao Qi <yao.qi@linaro.org>
8515
8516 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
8517 and REVSH instructions.
8518
8519 2017-03-16 Yao Qi <yao.qi@linaro.org>
8520
8521 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
8522 (arm_record_test): Declare.
8523 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
8524 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
8525 align with the manual.
8526 (thumb_record_misc): Adjust the code order to align with the
8527 manual.
8528 (thumb2_record_decode_insn_handler): Fix instruction matching.
8529 (instruction_reader_thumb): New class.
8530 (arm_record_test): New function.
8531
8532 2017-03-16 Yao Qi <yao.qi@linaro.org>
8533
8534 * arm-tdep.c (abstract_memory_reader): New class.
8535 (instruction_reader): New class.
8536 (extract_arm_insn): Add argument 'reader'. Callers updated.
8537 (decode_insn): Likewise.
8538
8539 2017-03-16 Doug Evans <dje@google.com>
8540
8541 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
8542 member. Change type of TYPE member to SCM. All uses updated.
8543 (lsscm_make_lazy_string_smob): Add assert.
8544 (lsscm_make_lazy_string): Flag bad length values.
8545 (lsscm_elt_type): New function.
8546 (gdbscm_lazy_string_to_value): Rewrite to use
8547 lsscm_safe_lazy_string_to_value.
8548 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
8549 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
8550 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
8551 in incoming type.
8552 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
8553 * guile/scm-type.c (tyscm_scm_to_type): New function.
8554
8555 2017-03-15 Doug Evans <dje@google.com>
8556
8557 PR python/17728, python/18439, python/18779
8558 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
8559 member. Change type of TYPE member to PyObject *. All uses updated.
8560 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
8561 (gdbpy_create_lazy_string_object): Flag bad length values.
8562 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
8563 Handle typedefs in incoming type.
8564 (stpy_lazy_string_elt_type): New function.
8565 (gdbpy_extract_lazy_string): Call it.
8566 * python/py-value.c (valpy_lazy_string): Flag bad length values.
8567 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
8568 typedefs in incoming type.
8569
8570 2017-03-16 Doug Evans <dje@google.com>
8571
8572 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
8573 * guile/scm-type.c (tyscm_scm_to_type): New function.
8574
8575 2017-03-16 Jiong Wang <jiong.wang@arm.com>
8576
8577 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
8578 "ULONGEST" for "skip".
8579
8580 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
8581
8582 PR gdb/21220
8583 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
8584 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
8585 (inf_ptrace_peek_poke): ...here. New function. Now also loop
8586 over ptrace peek/poke until end of buffer or error.
8587
8588 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
8589
8590 * parse.c (length_of_subexp): Make static.
8591 * parser-defs.h (length_of_subexp): Remove.
8592
8593 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
8594
8595 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
8596 as well.
8597
8598 2017-03-14 Pedro Alves <palves@redhat.com>
8599
8600 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
8601 (main): Use std::unique_ptr. Remove calls to
8602 cp_demangled_name_parse_free.
8603
8604 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8605
8606 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
8607 alphabsd_store_inferior_registers): Use regcache->ptid instead
8608 of inferior_ptid.
8609
8610 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8611
8612 * aix-thread.c (aix_thread_fetch_registers,
8613 aix_thread_store_registers): Use regcache->ptid instead of
8614 inferior_ptid.
8615
8616 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8617
8618 * aarch64-linux-nat.c (fetch_gregs_from_thread,
8619 store_gregs_to_thread, fetch_fpregs_from_thread,
8620 store_fpregs_to_thread): Use regcache->ptid instead of
8621 inferior_ptid.
8622
8623 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8624
8625 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
8626 amd64_linux_fetch_inferior_registers): Use regcache->ptid
8627 instead of inferior_ptid.
8628
8629 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8630
8631 * target.c (target_fetch_registers, target_store_registers): Add
8632 assert.
8633
8634 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8635
8636 * regcache.h (regcache_get_ptid): New function.
8637 * regcache.c (regcache_get_ptid): New function.
8638
8639 2017-03-13 Mark Wielaard <mark@klomp.org>
8640
8641 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
8642
8643 2017-03-10 Keith Seitz <keiths@redhat.com>
8644
8645 PR c++/8218
8646 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
8647
8648 2017-03-08 Pedro Alves <palves@redhat.com>
8649
8650 PR gdb/18360
8651 * infrun.c (start_step_over, do_target_resume, resume)
8652 (restart_threads): Assert we're not resuming a thread that is
8653 meant to be stopped.
8654 (infrun_thread_stop_requested_callback): Delete.
8655 (infrun_thread_stop_requested): If the thread is internally
8656 stopped, queue a pending stop event and clear the thread's
8657 inline-frame state.
8658 (handle_stop_requested): New function.
8659 (handle_syscall_event, handle_inferior_event_1): Use
8660 handle_stop_requested.
8661 (handle_stop_requested): New function.
8662 (handle_signal_stop): Set the thread's stop_signal here instead of
8663 at caller.
8664 (finish_step_over): Clear step over info unconditionally.
8665 (handle_signal_stop): If the user had interrupted the event
8666 thread, consider the stop a random signal.
8667 (handle_signal_stop) <signal arrived while stepping over
8668 breakpoint>: Don't restart threads here.
8669 (stop_waiting): Don't clear step-over info here.
8670
8671 2017-03-08 Pedro Alves <palves@redhat.com>
8672
8673 PR 21206
8674 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
8675 goes to argument 2, not 1.
8676
8677 2017-03-08 Pedro Alves <palves@redhat.com>
8678
8679 PR cli/21218
8680 * top.c (gdb_readline_wrapper): Avoid passing NULL to
8681 display_gdb_prompt.
8682 (command_line_input): Add comment.
8683
8684 2017-03-08 Pedro Alves <palves@redhat.com>
8685
8686 PR tui/21216
8687 * tui/tui-file.c (tui_file::write): New.
8688 * tui/tui-file.h (tui_file): Override "write".
8689 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
8690 factored out from ...
8691 (tui_puts): ... here.
8692 (tui_putc): Use them.
8693 (tui_write): New function.
8694 * tui/tui-io.h (tui_write): Declare.
8695
8696 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8697
8698 * Makefile.in (SFILES): Replace "environ.c" with
8699 "common/environ.c".
8700 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
8701 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
8702 to...
8703 * common/environ.c: ... here.
8704 * environ.h: Moved to...
8705 * common/environ.h: ... here.
8706
8707 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
8708
8709 * gdbarch.sh (pstring_ptr): New static function.
8710 (gdbarch_disassembler_options): Use it.
8711 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
8712 not valid_disassembler_option->name.
8713 * gdbarch.c: Regenerate.
8714
8715 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
8716
8717 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
8718
8719 2017-03-07 Pedro Alves <palves@redhat.com>
8720
8721 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
8722
8723 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
8724
8725 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
8726 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
8727 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
8728 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
8729
8730 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
8731
8732 * xtensa-linux-nat.c (fetch_gregs): Remove const.
8733
8734 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
8735
8736 * remote.c (remote_add_target_side_commands): Use range-based
8737 for loop.
8738
8739 2017-03-03 Yao Qi <yao.qi@linaro.org>
8740
8741 PR gdb/21165
8742 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
8743 value is lazy.
8744 * valprint.c (common_val_print): Likewise.
8745
8746 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
8747
8748 * NEWS: Mention new set/show disassembler-options commands.
8749 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
8750 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
8751 (prospective_options): New static variable.
8752 (gdb_disassembler::gdb_disassembler): Initialize
8753 m_di.disassembler_options.
8754 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
8755 (get_disassembler_options): New function.
8756 (set_disassembler_options): Likewise.
8757 (set_disassembler_options_sfunc): Likewise.
8758 (show_disassembler_options_sfunc): Likewise.
8759 (disassembler_options_completer): Likewise.
8760 (_initialize_disasm): Likewise.
8761 * disasm.h (get_disassembler_options): New prototype.
8762 (set_disassembler_options): Likewise.
8763 * gdbarch.sh (gdbarch_disassembler_options): New variable.
8764 (gdbarch_verify_disassembler_options): Likewise.
8765 * gdbarch.c: Regenerate.
8766 * gdbarch.h: Likewise.
8767 * arm-tdep.c (num_disassembly_options): Delete.
8768 (set_disassembly_style): Likewise.
8769 (arm_disassembler_options): New static variable.
8770 (set_disassembly_style_sfunc): Convert short style name into long
8771 option name. Call set_disassembler_options.
8772 (show_disassembly_style_sfunc): New function.
8773 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
8774 set_gdbarch_verify_disassembler_options.
8775 (_initialize_arm_tdep): Delete regnames variable and update callers.
8776 (arm_disassembler_options): Initialize.
8777 (disasm_options): New variable.
8778 (num_disassembly_options): Rename from this...
8779 (num_disassembly_styles): ...to this. Compute by scanning through
8780 disasm_options.
8781 (valid_disassembly_styles): Initialize using disasm_options.
8782 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
8783 set_arm_regname_option.
8784 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
8785 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
8786 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
8787 set_gdbarch_verify_disassembler_options.
8788 * s390-tdep.c (s390_disassembler_options): New static variable.
8789 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
8790 set_gdbarch_verify_disassembler_options.
8791
8792 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
8793
8794 * remote.c (remote_add_target_side_condition): Remove "struct"
8795 keyword from range-based for loop.
8796
8797 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
8798
8799 * remote.c (remote_add_target_side_condition): Use range-based
8800 for loop. Update comment.
8801
8802 2017-02-27 Yao Qi <yao.qi@linaro.org>
8803
8804 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
8805
8806 2017-02-26 Alan Hayward <alan.hayward@arm.com>
8807
8808 * regcache.c (regcache_raw_update): New function.
8809 (regcache_raw_read): Move code to regcache_raw_update.
8810 * regcache.h (regcache_raw_update): New declaration.
8811 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
8812
8813 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8814
8815 * dwarf2read.c (create_debug_type_hash_table): Initialize
8816 header.signature and header.type_offset_in_tu.
8817
8818 2017-02-24 Pedro Alves <palves@redhat.com>
8819
8820 * symtab.c (make_file_symbol_completion_list_1): Use
8821 add_symtab_completions.
8822
8823 2017-02-24 Alan Hayward <alan.hayward@arm.com>
8824
8825 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
8826
8827 2017-02-24 Alan Hayward <alan.hayward@arm.com>
8828
8829 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
8830 I386_MAX_REGISTER_SIZE.
8831 (i386_pseudo_register_write): Likewise.
8832 (i386_process_record): Likewise.
8833 * i387-tdep.c (i387_supply_xsave): Likewise.
8834 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
8835 (store_register): Likewise.
8836
8837 2017-02-23 Pedro Alves <palves@redhat.com>
8838
8839 * ada-lang.c: Include "common/function-view.h".
8840 (ada_iterate_over_symbols): Adjust to use function_view as
8841 callback type.
8842 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
8843 (ada_make_symbol_completion_list): Use a lambda.
8844 (ada_exc_search_name_matches): Delete.
8845 (name_matches_regex): New.
8846 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
8847 * compile/compile-c-support.c: Include "common/function-view.h".
8848 (print_one_macro): Change prototype to accept a ui_file pointer.
8849 (write_macro_definitions): Use a lambda.
8850 * dwarf2read.c: Include "common/function-view.h".
8851 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8852 (dw2_expand_symtabs_matching): Adjust to use function_view as
8853 callback type.
8854 * language.h: Include "common/function-view.h".
8855 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
8856 function_view as callback type.
8857 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
8858 * linespec.c: Include "common/function-view.h".
8859 (collect_info::add_symbol): New method.
8860 (struct symbol_and_data_callback, iterate_inline_only, struct
8861 symbol_matcher_data, iterate_name_matcher): Delete.
8862 (iterate_over_all_matching_symtabs): Adjust to use function_view
8863 as callback type and lambdas.
8864 (iterate_over_file_blocks): Adjust to use function_view as
8865 callback type.
8866 (decode_compound_collector): Now a class with private fields.
8867 (decode_compound_collector::release_symbols): New method.
8868 (collect_one_symbol): Rename to...
8869 (decode_compound_collector::operator()): ... this and adjust.
8870 (lookup_prefix_sym): decode_compound_collector construction bits
8871 move to decode_compound_collector ctor. Pass the
8872 decode_compound_collector object directly as callback. Remove
8873 cleanups and use decode_compound_collector::release_symbols
8874 instead.
8875 (symtab_collector): Now a class with private fields.
8876 (symtab_collector::release_symtabs): New method.
8877 (add_symtabs_to_list): Rename to...
8878 (symtab_collector::operator()): ... this and adjust.
8879 (collect_symtabs_from_filename): symtab_collector construction
8880 bits move to symtab_collector ctor. Pass the symtab_collector
8881 object directly as callback. Remove cleanups and use
8882 symtab_collector::release_symtabs instead.
8883 (collect_symbols): Delete.
8884 (add_matching_symbols_to_info): Use lambdas.
8885 * macrocmd.c (print_macro_callback): Delete.
8886 (info_macro_command): Use a lambda.
8887 (info_macros_command): Pass print_macro_definition as callable
8888 directly.
8889 (print_one_macro): Remove 'ignore' parameter.
8890 (macro_list_command): Adjust.
8891 * macrotab.c (macro_for_each_data::fn): Now a function_view.
8892 (macro_for_each_data::user_data): Delete field.
8893 (foreach_macro): Adjust to call the function_view.
8894 (macro_for_each): Adjust to use function_view as callback type.
8895 (foreach_macro_in_scope): Adjust to call the function_view.
8896 (macro_for_each_in_scope): Adjust to use function_view as callback
8897 type.
8898 * macrotab.h: Include "common/function-view.h".
8899 (macro_callback_fn): Declare a prototype instead of a pointer.
8900 Remove "user_data" parameter.
8901 (macro_for_each, macro_for_each_in_scope): Adjust to use
8902 function_view as callback type.
8903 * psymtab.c (partial_map_expand_apply)
8904 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
8905 Adjust to use function_view as callback type and to return bool.
8906 (psym_expand_symtabs_matching): Adjust to use function_view as
8907 callback types.
8908 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
8909 to use function_view as callback type and to return bool.
8910 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
8911 callback types.
8912 * symfile.c (expand_symtabs_matching): Adjust to use function_view
8913 as callback types.
8914 * symfile.h: Include "common/function-view.h".
8915 (expand_symtabs_file_matcher_ftype)
8916 (expand_symtabs_symbol_matcher_ftype)
8917 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
8918 return bool.
8919 (quick_symbol_functions::map_symtabs_matching_filename)
8920 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
8921 function_view as callback type and return bool.
8922 (expand_symtabs_matching): Adjust to use function_view as callback
8923 type.
8924 (maintenance_expand_name_matcher)
8925 (maintenance_expand_file_matcher): Delete.
8926 (maintenance_expand_symtabs): Use lambdas.
8927 * symtab.c (iterate_over_some_symtabs): Adjust to use
8928 function_view as callback types and return bool.
8929 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
8930 of a cleanup.
8931 (lookup_symtab_callback): Delete.
8932 (lookup_symtab): Use a lambda.
8933 (iterate_over_symbols): Adjust to use function_view as callback
8934 type.
8935 (struct search_symbols_data, search_symbols_file_matches)
8936 (search_symbols_name_matches): Delete.
8937 (search_symbols): Use a pair of lambdas.
8938 (struct add_name_data, add_macro_name, symbol_completion_matcher)
8939 (symtab_expansion_callback): Delete.
8940 (default_make_symbol_completion_list_break_on_1): Use lambdas.
8941 * symtab.h: Include "common/function-view.h".
8942 (iterate_over_some_symtabs): Adjust to use function_view as
8943 callback type and return bool.
8944 (iterate_over_symtabs): Adjust to use function_view as callback
8945 type.
8946 (symbol_found_callback_ftype): Remove 'data' parameter and return
8947 bool.
8948 (iterate_over_symbols): Adjust to use function_view as callback
8949 type.
8950
8951 2017-02-23 Pedro Alves <palves@redhat.com>
8952
8953 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
8954 (%.o) <unittests/%.c>: New pattern.
8955 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
8956 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
8957 * common/function-view.h: New file.
8958 * unittests/function-view-selftests.c: New file.
8959 * configure: Regenerate.
8960
8961 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
8962
8963 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
8964 inferior_ptid.
8965 * go32-nat.c (go32_thread_alive): Likewise.
8966
8967 2017-02-23 Yao Qi <yao.qi@linaro.org>
8968
8969 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
8970 delete.
8971
8972 2017-02-23 Yao Qi <yao.qi@linaro.org>
8973
8974 * varobj.c (varobj_clear_saved_item): Use delete instead of
8975 xfree.
8976 (update_dynamic_varobj_children): Likewise.
8977
8978 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8979
8980 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
8981
8982 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
8983
8984 * common/enum-flags.h (enum_flags::enum_flags): Initialize
8985 m_enum_value to 0 in default constructor.
8986
8987 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8988
8989 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
8990 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
8991 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
8992 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
8993 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
8994 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
8995 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
8996 IS_STORE_CONDITIONAL_INSN.
8997
8998 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8999
9000 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9001
9002 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9003
9004 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9005
9006 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9007
9008 * dwarf2read.c (skip_one_die, read_attribute_value)
9009 (dwarf2_const_value_attr, dump_die_shallow)
9010 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9011 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9012
9013 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9014
9015 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9016 (dwarf_parse_macro_header): Accept DWARF version 5.
9017 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9018
9019 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9020
9021 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9022 DW_AT_GNU_*.
9023 * common/common-exceptions.h (enum errors): Likewise.
9024 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9025 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9026 (dwarf_expr_context::execute_stack_op): Likewise.
9027 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9028 Likewise.
9029 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9030 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9031 (show_entry_values_debug, call_site_to_target_addr)
9032 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9033 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9034 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9035 (value_of_dwarf_block_entry, indirect_pieced_value)
9036 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9037 (disassemble_dwarf_expression): Likewise.
9038 * dwarf2read.c (process_die, inherit_abstract_dies)
9039 (read_call_site_scope): Likewise.
9040 * gdbtypes.h (struct func_type, struct call_site_parameter)
9041 (struct call_site): Likewise.
9042 * stack.c (read_frame_arg): Likewise.
9043 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9044
9045 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9046
9047 * defs.h (read_unsigned_leb128): New declaration.
9048 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9049 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9050 (dwarf2_find_location_expression): Call also
9051 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9052 * dwarf2loc.h (dwarf2_version): New declaration.
9053 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9054 rnglists.
9055 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9056 .debug_rnglists.
9057 (struct dwop_section_names): Add loclists_dwo.
9058 (dwop_section_names): Add .debug_loclists.dwo.
9059 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9060 (struct dwarf2_per_cu_data): Add dwarf_version.
9061 (struct dwo_sections): Add loclists.
9062 (struct attr_abbrev): Add implicit_const.
9063 (read_indirect_line_string): New declaration.
9064 (read_unsigned_leb128): Delete declaration.
9065 (rcuh_kind): New definition.
9066 (read_and_check_comp_unit_head): Change parameter
9067 is_debug_types_section to section_kind.
9068 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9069 (read_comp_unit_head): Change parameter abfd to section, add parameter
9070 section_kind. Handle DWARF-5.
9071 (error_check_comp_unit_head): Accept also DWARF version 5.
9072 (read_and_check_comp_unit_head): Change parameter
9073 is_debug_types_section to section_kind.
9074 (read_and_check_type_unit_head): Delete function.
9075 (read_abbrev_offset): Handle DWARF-5.
9076 (create_debug_type_hash_table): Add parameter section_kind. Process
9077 only DW_UT_type. Use signature and type_offset_in_tu from struct
9078 comp_unit_head.
9079 (create_debug_types_hash_table): Update create_debug_type_hash_table
9080 caller.
9081 (create_all_type_units): Call create_debug_type_hash_table.
9082 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9083 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9084 caller.
9085 (skip_one_die): Handle DW_FORM_implicit_const.
9086 (dwarf2_rnglists_process): New function.
9087 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9088 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9089 (read_attribute_value): Handle DW_FORM_implicit_const,
9090 DW_FORM_line_strp.
9091 (read_attribute): Handle DW_FORM_implicit_const.
9092 (read_indirect_string_at_offset_from): New function from
9093 read_indirect_string_at_offset.
9094 (read_indirect_string_at_offset): Call
9095 read_indirect_string_at_offset_from.
9096 (read_indirect_line_string_at_offset): New function.
9097 (read_indirect_string): New function comment.
9098 (read_indirect_line_string): New function.
9099 (read_unsigned_leb128): Make it global.
9100 (dwarf2_string_attr): Handle DWARF-5.
9101 (add_include_dir_stub, read_formatted_entries): New functions.
9102 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9103 Handle DWARF-5.
9104 (per_cu_header_read_in): Update read_comp_unit_head caller.
9105 (dwarf2_version): New function.
9106 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9107 rnglists.
9108 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9109 fields.
9110
9111 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9112
9113 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9114
9115 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9116
9117 * dwarf2read.c (dwarf2_ranges_process): New function from
9118 dwarf2_ranges_read.
9119 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9120 dwarf2_ranges_process.
9121
9122 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9123
9124 * dwarf2read.c (create_debug_type_hash_table): New function from
9125 create_debug_types_hash_table.
9126 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9127 (create_all_type_units, open_and_init_dwo_file): Update
9128 create_debug_types_hash_table callers.
9129
9130 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9131
9132 PR gdb/16188
9133 * fork-child.c (trace_start_error): Fix thinko. va_end should
9134 refer to 'ap', not 'args'.
9135
9136 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9137 Pedro Alves <palves@redhat.com>
9138
9139 PR gdb/16188
9140 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9141 calls succeeded.
9142 * fork-child.c (trace_start_error): New function.
9143 (trace_start_error_with_name): Likewise.
9144 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9145 * inf-ptrace.c (inf_ptrace_me): Likewise.
9146 * inferior.h (trace_start_error): New prototype.
9147 (trace_start_error_with_name): Likewise.
9148
9149 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9150
9151 PR gdb/21164
9152 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9153 NULL before using it.
9154 * symmisc.c (maintenance_print_symbols): Likewise.
9155 (maintenance_print_msymbols): Likewise.
9156
9157 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9158
9159 * NEWS: Add record Python bindings entry.
9160
9161 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9162
9163 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9164 py-record-full.o.
9165 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9166 * python/py-record-btrace.c, python/py-record-btrace.h,
9167 python/py-record-full.c, python/py-record-full.h: New file.
9168 * python/py-record.c: Add include for py-record-btrace.h and
9169 py-record-full.h.
9170 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9171 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9172 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9173 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9174 New definition.
9175 (gdbpy_initialize_btrace): New export.
9176 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9177
9178 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9179
9180 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9181 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9182 * python/py-record.c: New file.
9183 * python/python-internal.h (gdbpy_start_recording,
9184 gdbpy_current_recording, gdpy_stop_recording,
9185 gdbpy_initialize_record): New export.
9186 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9187 (python_GdbMethods): Add gdbpy_start_recording,
9188 gdbpy_current_recording and gdbpy_stop_recording.
9189
9190 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9191
9192 * record-btrace.c (record_btrace_record_method): New function.
9193 (init_record_btrace_ops): Initialize to_record_method.
9194 * record-full.c (record_full_record_method): New function.
9195 (init_record_full_ops, init_record_full_core_ops): Add
9196 record_full_record_method.
9197 * record.h (enum record_method): New enum.
9198 * target-debug.h (target_debug_print_enum_record_method: New define.
9199 * target-delegates.c: Regenerate.
9200 * target.c (target_record_method): New function.
9201 * target.h: Include record.h.
9202 (struct target_ops) <to_record_method>: New field.
9203 (target_record_method): New export.
9204
9205 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9206
9207 * record.h (record_start, record_stop): New export.
9208 * record.c (record_start, record_stop): New function.
9209
9210 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9211
9212 * btrace.c (btrace_fetch): Copy function call segments pointer
9213 into a vector.
9214 (btrace_clear): Clear the vector.
9215 (btrace_find_insn_by_number): Use binary search to find the correct
9216 function call segment.
9217 * btrace.h (brace_fun_p): New typedef.
9218 (struct btrace_thread_info) <functions>: New field.
9219
9220 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9221
9222 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9223 * btrace.c (btrace_decode_error): ... here. New function.
9224 * btrace.h (btrace_decode_error): New export.
9225
9226 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9227
9228 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9229 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9230 btrace_find_insn_by_number): Remove special case for gaps.
9231 * btrace.h (btrace_insn_get_error): New export.
9232 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9233 * record-btrace.c (btrace_insn_history): Print number for gaps.
9234 (record_btrace_info, record_btrace_goto): Handle gaps.
9235
9236 2017-02-14 Tom Tromey <tom@tromey.com>
9237
9238 PR python/13598:
9239 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9240 event.
9241 * python/py-evts.c (gdbpy_initialize_py_events): Add
9242 before_prompt registry.
9243 * python/py-events.h (events_object) <before_prompt>: New field.
9244
9245 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9246
9247 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9248
9249 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
9250
9251 * symfile (_initialize_symfile): Add usage text to the load command's
9252 help text.
9253
9254 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9255
9256 * utils.c (defaulted_query): Don't query on secondary UIs.
9257
9258 2017-02-10 Tom Tromey <tom@tromey.com>
9259
9260 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9261
9262 2017-02-10 Tom Tromey <tom@tromey.com>
9263
9264 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9265 "cleanup" local.
9266 * python/py-type.c (typy_legacy_template_argument): Remove
9267 unnecessary "cleanup" local.
9268
9269 2017-02-10 Tom Tromey <tom@tromey.com>
9270
9271 * python/python.c (do_start_initialization): New function, from
9272 _initialize_python.
9273 (_initialize_python): Call do_start_initialization.
9274 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9275 goto.
9276
9277 2017-02-10 Tom Tromey <tom@tromey.com>
9278
9279 * python/py-prettyprint.c (pretty_print_one_value): Use
9280 gdbpy_ref.
9281
9282 2017-02-10 Tom Tromey <tom@tromey.com>
9283
9284 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
9285 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
9286 gdbpy_ref.
9287 * python/py-type.c (field_new): Use gdbpy_ref.
9288 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
9289 gdbpy_ref.
9290 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
9291 (py_free_pspace): Likewise.
9292 (pspace_to_pspace_object): Likewise.
9293 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
9294 (py_free_objfile): Likewise.
9295 (objfile_to_objfile_object): Likewise.
9296 * python/py-inferior.c (delete_thread_object): Use
9297 gdbpy_ref.
9298 (infpy_read_memory): Likewise.
9299 (py_free_inferior): Likewise.
9300 * python/py-evtregistry.c (create_eventregistry_object): Use
9301 gdbpy_ref.
9302 * python/py-event.c (create_event_object): Use gdbpy_ref.
9303
9304 2017-02-10 Tom Tromey <tom@tromey.com>
9305
9306 * python/py-ref.h (gdbpy_ref_policy): Now a template.
9307 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
9308 used.
9309 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
9310 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
9311 python/py-exitedevent.c, python/py-finishbreakpoint.c,
9312 python/py-framefilter.c, python/py-function.c,
9313 python/py-inferior.c, python/py-infevents.c,
9314 python/py-linetable.c, python/py-newobjfileevent.c,
9315 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
9316 python/py-signalevent.c, python/py-stopevent.c,
9317 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
9318 python/py-unwind.c, python/py-utils.c, python/py-value.c,
9319 python/py-varobj.c, python/py-xmethods.c, python/python.c,
9320 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
9321
9322 2017-02-10 Tom Tromey <tom@tromey.com>
9323
9324 * ui-out.h (ui_out_emit_type): New class.
9325 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
9326 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
9327 and ui_out_emit_tuple.
9328 (enumerate_locals): Likewise.
9329 (py_mi_print_variables, py_print_locals, py_print_args): Use
9330 ui_out_emit_list.
9331 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
9332 ui_out_emit_list.
9333 * common/gdb_optional.h: New file.
9334
9335 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
9336
9337 * MAINTAINERS (Write After Approval): Update my e-mail address.
9338
9339 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
9340
9341 PR gdb/21122
9342 * breakpoint.c (_initialize_breakpoint): Update the help description
9343 of the 'commands' command to indicate that it takes a list argument.
9344
9345 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
9346
9347 * interps.c (current_interp_set_logging): Remove "return".
9348
9349 2017-02-09 Gary Benson <gbenson@redhat.com>
9350
9351 * symtab.c (add_symtab_completions): Prevent NULL pointer
9352 dereference.
9353
9354 2017-02-08 Pedro Alves <palves@redhat.com>
9355
9356 * interps.c (interp::interp): Remove reference to quiet_p.
9357 (interp_set): Make static. Remove dead "Switching to" output
9358 code.
9359 (interp_quiet_p, interp_set_quiet): Delete.
9360 (interpreter_exec_cmd): Don't set the interpreter quiet.
9361 * interps.h (interp_quiet_p): Make static.
9362 (class interp) <quiet_p>: Remove field
9363
9364 2017-02-08 Jerome Guitton <guitton@adacore.com>
9365
9366 * cli/cli-decode.c (find_command_name_length): Make it extern.
9367 * cli/cli-decode.h (find_command_name_length): Declare.
9368 * cli/cli-script.c (command_name_equals, line_first_arg):
9369 New functions.
9370 (process_next_line): Use cli-decode to parse command names.
9371 (build_command_line): Make args a constant pointer.
9372
9373 2017-02-08 Jerome Guitton <guitton@adacore.com>
9374
9375 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
9376 Remove case-insensitive search.
9377
9378 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
9379
9380 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
9381 at the end of the line. Avoids an ARI warning.
9382
9383 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
9384
9385 * NEWS: Mention support for record/replay of Intel 64 rdrand and
9386 rdseed instructions.
9387 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
9388
9389 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
9390
9391 PR tdep/20936
9392 Provide and use sparc32 and sparc64 target description XML files.
9393 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
9394 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
9395 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
9396 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
9397 * features/sparc/sparc32-solaris.xml: New file.
9398 * features/sparc/sparc64-solaris.xml: New file.
9399 * features/sparc/sparc32-solaris.c: Generated.
9400 * features/sparc/sparc64-solaris.c: Generated.
9401 * sparc-tdep.h: Account for differences in target descriptions.
9402 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
9403 (sparc32_register_type): Use target provided registers.
9404 (validate_tdesc_registers): New function.
9405 (sparc32_gdbarch_init): Use tdesc_has_registers.
9406 Set pseudoregister functions.
9407 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
9408 (sparc64_register_type): Use target provided registers.
9409 (sparc64_init_abi): Set pseudoregister functions.
9410
9411 2017-02-03 Tom Tromey <tom@tromey.com>
9412
9413 PR rust/21097:
9414 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
9415 with a single member.
9416
9417 2017-02-03 Pedro Alves <palves@redhat.com>
9418
9419 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
9420 (cli_interp_base::~cli_interp_base): New.
9421 (cli_interp): New struct.
9422 (as_cli_interp): Cast the interp itself to cli_interp.
9423 (cli_interpreter_pre_command_loop): Rename to ...
9424 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
9425 parameter.
9426 (cli_interpreter_init): Rename to ...
9427 (cli_interp::init): ... this. Remove 'self' parameter. Use
9428 boolean. Make extern.
9429 (cli_interpreter_resume): Rename to ...
9430 (cli_interp::resume): ... this. Remove 'data' parameter. Make
9431 extern.
9432 (cli_interpreter_suspend): Rename to ...
9433 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
9434 extern.
9435 (cli_interpreter_exec): Rename to ...
9436 (cli_interp::exec): ... this. Remove 'data' parameter. Make
9437 extern.
9438 (cli_interpreter_supports_command_editing): Rename to ...
9439 (cli_interp_base::supports_command_editing): ... this. Remove
9440 'interp' parameter. Make extern.
9441 (cli_ui_out): Rename to ...
9442 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
9443 Make extern.
9444 (cli_set_logging): Rename to ...
9445 (cli_interp_base::set_logging): ... this. Remove 'interp'
9446 parameter. Make extern.
9447 (cli_interp_procs): Delete.
9448 (cli_interp_factory): Adjust to use "new".
9449 * cli/cli-interp.h: Include "interps.h".
9450 (struct cli_interp_base): New struct.
9451 * interps.c (struct interp): Delete. Fields moved to interps.h.
9452 (interp_new): Delete.
9453 (interp::interp, interp::~interp): New.
9454 (interp_set): Use bool, and return void. Assume the interpreter
9455 has suspend, init and resume methods, and that the all return
9456 void.
9457 (set_top_level_interpreter): interp_set returns void.
9458 (interp_ui_out): Adapt.
9459 (current_interp_set_logging): Adapt.
9460 (interp_data): Delete.
9461 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
9462 (interp_exec): Adapt.
9463 (top_level_interpreter_data): Delete.
9464 * interps.h (interp_init_ftype, interp_resume_ftype)
9465 (interp_suspend_ftype, interp_exec_ftype)
9466 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
9467 (class interp): New.
9468 (interp_new): Delete.
9469 (interp_set): Now returns void. Use bool.
9470 (interp_data, top_level_interpreter_data): Delete.
9471 * mi/mi-common.h: Include interps.h.
9472 (class mi_interp): Inherit from interp. Define a ctor. Declare
9473 init, resume, suspect, exec, interp_ui_out, set_logging and
9474 pre_command_loop methods.
9475 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
9476 (mi_interpreter_init): Rename to ...
9477 (mi_interp::init): ... this. Remove the 'interp' parameter, use
9478 bool, return void and make extern. Adjust.
9479 (mi_interpreter_resume): ... Rename to ...
9480 (mi_interp::resume): ... this. Remove the 'data' parameter,
9481 return void and make extern. Adjust.
9482 (mi_interpreter_suspend): ... Rename to ...
9483 (mi_interp::suspend): ... this. Remove the 'data' parameter,
9484 return void and make extern. Adjust.
9485 (mi_interpreter_exec): ... Rename to ...
9486 (mi_interp::exec): ... this. Remove the 'data' parameter and make
9487 extern. Adjust.
9488 (mi_interpreter_pre_command_loop): ... Rename to ...
9489 (mi_interp::pre_command_loop): ... this. Remove the 'self'
9490 parameter and make extern.
9491 (mi_on_normal_stop_1): Adjust.
9492 (mi_ui_out): Rename to ...
9493 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
9494 parameter and make extern. Adjust.
9495 (mi_set_logging): Rename to ...
9496 (mi_interp::set_logging): ... this. Remove the 'interp'
9497 parameter and make extern. Adjust.
9498 (mi_interp_procs): Delete.
9499 (mi_interp_factory): Adjust to use 'new'.
9500 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
9501 (mi_print_exception, mi_execute_command, mi_load_progress):
9502 Adjust.
9503 * tui/tui-interp.c (tui_interp): New class.
9504 (as_tui_interp): Return a tui_interp pointer.
9505 (tui_on_normal_stop, tui_on_signal_received)
9506 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
9507 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
9508 to use interp::interp_ui_out.
9509 (tui_init): Rename to ...
9510 (tui_interp::init): ... this. Remove the 'self' parameter, use
9511 bool, return void and make extern. Adjust.
9512 (tui_resume): Rename to ...
9513 (tui_interp::resume): ... this. Remove the 'data' parameter,
9514 return void and make extern. Adjust.
9515 (tui_suspend): Rename to ...
9516 (tui_interp::suspend): ... this. Remove the 'data' parameter,
9517 return void and make extern. Adjust.
9518 (tui_ui_out): Rename to ...
9519 (tui_interp::interp_ui_out): ... this. Remove the 'self'
9520 parameter, and make extern. Adjust.
9521 (tui_exec): Rename to ...
9522 (tui_interp::exec): ... this. Remove the 'data' parameter and
9523 make extern.
9524 (tui_interp_procs): Delete.
9525 (tui_interp_factory): Use "new".
9526
9527 2017-02-02 Tom Tromey <tom@tromey.com>
9528
9529 * rust-exp.y (ends_raw_string, space_then_number)
9530 (rust_identifier_start_p): Return bool.
9531 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
9532 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
9533 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
9534 (rust_chartype_p): Return bool.
9535 (val_print_struct, rust_print_struct_def, rust_print_type):
9536 Update.
9537 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
9538 Return bool.
9539
9540 2017-02-02 Tom Tromey <tom@tromey.com>
9541
9542 * rust-lang.c: Reindent.
9543
9544 2017-02-02 Tom Tromey <tom@tromey.com>
9545
9546 * rust-lang.h (rust_crate_for_block): Update.
9547 * rust-lang.c (rust_crate_for_block): Return std::string.
9548 (rust_get_disr_info): Use std:;string, not
9549 gdb::unique_xmalloc_ptr.
9550 * rust-exp.y (crate_name): Update.
9551
9552 2017-02-02 Pedro Alves <palves@redhat.com>
9553
9554 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
9555 field out of gdb_disassembler_test and make it static.
9556
9557 2017-02-02 Pedro Alves <palves@redhat.com>
9558
9559 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
9560 mi1_interp and mi_interp fields.
9561
9562 2017-02-02 Pedro Alves <palves@redhat.com>
9563
9564 * cli/cli-interp.c (struct saved_output_files, saved_output):
9565 Moved from cli/cli-logging.c.
9566 (cli_set_logging): New function.
9567 (cli_interp_procs): Install cli_set_logging.
9568 * cli/cli-interp.h (make_logging_output, cli_set_logging):
9569 Declare.
9570 * cli/cli-logging.c (struct saved_output_files, saved_output):
9571 Moved to cli/cli-interp.c.
9572 (pop_output_files): Don't save outputs here.
9573 (make_logging_output): New function.
9574 (handle_redirections): Don't build tee nor save previous outputs
9575 here.
9576 * interps.c (current_interp_set_logging): Change prototype.
9577 Assume there's always a set_logging_proc method installed.
9578 * interps.h (interp_set_logging_ftype): Change prototype.
9579 (current_interp_set_logging): Change prototype and adjust comment.
9580 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
9581 use make_logging_output.
9582 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
9583 2017-02-02 Pedro Alves <palves@redhat.com>
9584
9585 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
9586 from ...
9587 (set_logging_overwrite): ... here.
9588 (logging_no_redirect_file): Delete.
9589 (set_logging_redirect): Don't handle redirection on the fly.
9590 Instead warn that "logging off" / "logging on" is necessary.
9591 (pop_output_files): Delete references to logging_no_redirect_file.
9592 (show_logging_command): Always speak in terms of what will happen
9593 once logging is reenabled.
9594
9595 2017-02-02 Pedro Alves <palves@redhat.com>
9596
9597 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
9598
9599 2017-02-02 Pedro Alves <palves@redhat.com>
9600
9601 * disasm.c (gdb_pretty_print_insn): Rename to ...
9602 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
9603 Remove gdbarch parameter. Adapt to clear the object's buffers
9604 instead of allocating new buffers, and to print using the object's
9605 gdb_disassembler instead of calling gdb_print_insn.
9606 (dump_insns): Use gdb_pretty_print_disassembler.
9607 * disasm.h (gdb_pretty_print_insn): Delete declaration.
9608 (gdb_pretty_print_disassembler): New class.
9609 * record-btrace.c (btrace_insn_history): Use
9610 gdb_pretty_print_disassembler.
9611
9612 2017-02-02 Pedro Alves <palves@redhat.com>
9613
9614 * ada-lang.c (type_as_string): Use string_file.
9615 * ada-valprint.c (ada_print_floating): Use string_file.
9616 * ada-varobj.c (ada_varobj_scalar_image)
9617 (ada_varobj_get_value_image): Use string_file.
9618 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
9619 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
9620 * breakpoint.c (update_inserted_breakpoint_locations)
9621 (insert_breakpoint_locations, reattach_breakpoints)
9622 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
9623 (print_it_watchpoint): Use string_file.
9624 (save_breakpoints): Use stdio_file.
9625 * c-exp.y (oper): Use string_file.
9626 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
9627 tee_file.
9628 (pop_output_files): Use delete.
9629 (handle_redirections): Use stdio_file and tee_file.
9630 * cli/cli-setshow.c (do_show_command): Use string_file.
9631 * compile/compile-c-support.c (c_compute_program): Use
9632 string_file.
9633 * compile/compile-c-symbols.c (generate_vla_size): Take a
9634 'string_file &' instead of a 'ui_file *'.
9635 (generate_c_for_for_one_variable): Take a 'string_file &' instead
9636 of a 'ui_file *'. Use string_file.
9637 (generate_c_for_variable_locations): Take a 'string_file &'
9638 instead of a 'ui_file *'.
9639 * compile/compile-internal.h (generate_c_for_for_one_variable):
9640 Take a 'string_file &' instead of a 'ui_file *'.
9641 * compile/compile-loc2c.c (push, pushf, unary, binary)
9642 (print_label, pushf_register_address, pushf_register)
9643 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
9644 'ui_file *'. Adjust.
9645 * compile/compile.c (compile_to_object): Use string_file.
9646 * compile/compile.h (compile_dwarf_expr_to_c)
9647 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
9648 'ui_file *'.
9649 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
9650 (replace_typedefs_qualified_name): Use string_file and
9651 obstack_copy0.
9652 * disasm.c (gdb_pretty_print_insn): Use string_file.
9653 (gdb_disassembly): Adjust reference the null_stream global.
9654 (do_ui_file_delete): Delete.
9655 (gdb_insn_length): Use null_stream.
9656 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
9657 * dwarf2loc.c (dwarf2_compile_property_to_c)
9658 (locexpr_generate_c_location, loclist_generate_c_location): Take a
9659 'string_file &' instead of a 'ui_file *'.
9660 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
9661 * dwarf2read.c (do_ui_file_peek_last): Delete.
9662 (dwarf2_compute_name): Use string_file.
9663 * event-top.c (gdb_setup_readline): Use stdio_file.
9664 * gdbarch.sh (verify_gdbarch): Use string_file.
9665 * gdbtypes.c (safe_parse_type): Use null_stream.
9666 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
9667 string_file.
9668 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
9669 'string_file *' instead of a 'ui_file *'.
9670 (gdbscm_arch_disassemble): Use string_file.
9671 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
9672 * guile/scm-ports.c (class ioscm_file_port): Now a class that
9673 inherits from ui_file.
9674 (ioscm_file_port_delete, ioscm_file_port_rewind)
9675 (ioscm_file_port_put): Delete.
9676 (ioscm_file_port_write): Rename to ...
9677 (ioscm_file_port::write): ... this. Remove file_port_magic
9678 checks.
9679 (ioscm_file_port_new): Delete.
9680 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
9681 ui_file_up.
9682 * guile/scm-type.c (tyscm_type_name): Use string_file.
9683 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
9684 Use string_file.
9685 * infcmd.c (print_return_value_1): Use string_file.
9686 * infrun.c (print_target_wait_results): Use string_file.
9687 * language.c (add_language): Use string_file.
9688 * location.c (explicit_to_string_internal): Use string_file.
9689 * main.c (captured_main_1): Use null_file.
9690 * maint.c (maintenance_print_architecture): Use stdio_file.
9691 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
9692 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
9693 event_channel>: Change type to mi_console_file pointer.
9694 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
9695 (mi_console_file_delete): Delete.
9696 (struct mi_console_file): Delete.
9697 (mi_console_file_magic): Delete.
9698 (mi_console_file_new): Delete.
9699 (mi_console_file::mi_console_file): New.
9700 (mi_console_file_delete): Delete.
9701 (mi_console_file_fputs): Delete.
9702 (mi_console_file::write): New.
9703 (mi_console_raw_packet): Delete.
9704 (mi_console_file::flush): New.
9705 (mi_console_file_flush): Delete.
9706 (mi_console_set_raw): Rename to ...
9707 (mi_console_file::set_raw): ... this.
9708 * mi/mi-console.h (class mi_console_file): New class.
9709 (mi_console_file_new, mi_console_set_raw): Delete.
9710 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
9711 (mi_set_logging): Use delete and tee_file. Adjust.
9712 * mi/mi-main.c (output_register): Use string_file.
9713 (mi_cmd_data_evaluate_expression): Use string_file.
9714 (mi_cmd_data_read_memory): Use string_file.
9715 (mi_cmd_execute, print_variable_or_computed): Use string_file.
9716 * mi/mi-out.c (mi_ui_out::main_stream): New.
9717 (mi_ui_out::rewind): Use main_stream and
9718 string_file.
9719 (mi_ui_out::put): Use main_stream and string_file.
9720 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
9721 Allocate a 'string_file' instead.
9722 (mi_out_new): Don't allocate a mem_fileopen stream here.
9723 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
9724 (mi_ui_out::main_stream): Declare method.
9725 * printcmd.c (eval_command): Use string_file.
9726 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
9727 * python/py-arch.c (archpy_disassemble): Use string_file.
9728 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
9729 * python/py-frame.c (frapy_str): Use string_file.
9730 * python/py-framefilter.c (py_print_type, py_print_single_arg):
9731 Use string_file.
9732 * python/py-type.c (typy_str): Use string_file.
9733 * python/py-unwind.c (unwind_infopy_str): Use string_file.
9734 * python/py-value.c (valpy_str): Use string_file.
9735 * record-btrace.c (btrace_insn_history): Use string_file.
9736 * regcache.c (regcache_print): Use stdio_file.
9737 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
9738 * remote.c (escape_buffer): Use string_file.
9739 * rust-lang.c (rust_get_disr_info): Use string_file.
9740 * serial.c (serial_open_ops_1): Use stdio_file.
9741 (do_serial_close): Use delete.
9742 * stack.c (print_frame_arg): Use string_file.
9743 (print_frame_args): Remove local mem_fileopen stream, not used.
9744 (print_frame): Use string_file.
9745 * symmisc.c (maintenance_print_symbols): Use stdio_file.
9746 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
9747 Take a 'string_file *' instead of a 'ui_file *'.
9748 * top.c (new_ui): Use stdio_file and stderr_file.
9749 (free_ui): Use delete.
9750 (execute_command_to_string): Use string_file.
9751 (quit_confirm): Use string_file.
9752 * tracepoint.c (collection_list::append_exp): Use string_file.
9753 * tui/tui-disasm.c (tui_disassemble): Use string_file.
9754 * tui/tui-file.c: Don't include "ui-file.h".
9755 (enum streamtype, struct tui_stream): Delete.
9756 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
9757 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
9758 (tui_file::tui_file): New method.
9759 (tui_file_fputs): Delete.
9760 (tui_file_get_strbuf): Delete.
9761 (tui_file::puts): New method.
9762 (tui_file_adjust_strbuf): Delete.
9763 (tui_file_flush): Delete.
9764 (tui_file::flush): New method.
9765 * tui/tui-file.h: Tweak intro comment.
9766 Include ui-file.h.
9767 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
9768 (tui_file_adjust_strbuf): Delete declarations.
9769 (class tui_file): New class.
9770 * tui/tui-io.c (tui_initialize_io): Use tui_file.
9771 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
9772 (tui_register_format): Use string_stream.
9773 * tui/tui-stack.c (tui_make_status_line): Use string_file.
9774 (tui_get_function_from_frame): Use string_file.
9775 * typeprint.c (type_to_string): Use string_file.
9776 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
9777 (null_stream): New global.
9778 (ui_file_delete): Delete.
9779 (ui_file::ui_file): New.
9780 (null_file_isatty): Delete.
9781 (ui_file::~ui_file): New.
9782 (null_file_rewind): Delete.
9783 (ui_file::printf): New.
9784 (null_file_put): Delete.
9785 (null_file_flush): Delete.
9786 (ui_file::putstr): New.
9787 (null_file_write): Delete.
9788 (ui_file::putstrn): New.
9789 (null_file_read): Delete.
9790 (ui_file::putc): New.
9791 (null_file_fputs): Delete.
9792 (null_file_write_async_safe): Delete.
9793 (ui_file::vprintf): New.
9794 (null_file_delete): Delete.
9795 (null_file::write): New.
9796 (null_file_fseek): Delete.
9797 (null_file::puts): New.
9798 (ui_file_data): Delete.
9799 (null_file::write_async_safe): New.
9800 (gdb_flush, ui_file_isatty): Adjust.
9801 (ui_file_put, ui_file_rewind): Delete.
9802 (ui_file_write): Adjust.
9803 (ui_file_write_for_put): Delete.
9804 (ui_file_write_async_safe, ui_file_read): Adjust.
9805 (ui_file_fseek): Delete.
9806 (fputs_unfiltered): Adjust.
9807 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
9808 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
9809 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
9810 (set_ui_file_data): Delete.
9811 (string_file::~string_file, string_file::write)
9812 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
9813 (do_ui_file_as_string, ui_file_as_string): Delete.
9814 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
9815 (struct mem_file): Delete.
9816 (mem_file_new): Delete.
9817 (stdio_file::stdio_file): New.
9818 (mem_file_delete): Delete.
9819 (stdio_file::stdio_file): New.
9820 (mem_fileopen): Delete.
9821 (stdio_file::~stdio_file): New.
9822 (mem_file_rewind): Delete.
9823 (stdio_file::set_stream): New.
9824 (mem_file_put): Delete.
9825 (stdio_file::open): New.
9826 (mem_file_write): Delete.
9827 (stdio_file_magic, struct stdio_file): Delete.
9828 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
9829 (stdio_file::flush): New.
9830 (stdio_file_read): Rename to ...
9831 (stdio_file::read): ... this. Adjust.
9832 (stdio_file_write): Rename to ...
9833 (stdio_file::write): ... this. Adjust.
9834 (stdio_file_write_async_safe): Rename to ...
9835 (stdio_file::write_async_safe) ... this. Adjust.
9836 (stdio_file_fputs): Rename to ...
9837 (stdio_file::puts) ... this. Adjust.
9838 (stdio_file_isatty): Delete.
9839 (stdio_file_fseek): Delete.
9840 (stdio_file::isatty): New.
9841 (stderr_file_write): Rename to ...
9842 (stderr_file::write) ... this. Adjust.
9843 (stderr_file_fputs): Rename to ...
9844 (stderr_file::puts) ... this. Adjust.
9845 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
9846 (stderr_file::stderr_file): New.
9847 (tee_file_magic): Delete.
9848 (struct tee_file): Delete.
9849 (tee_file::tee_file): New.
9850 (tee_file_new): Delete.
9851 (tee_file::~tee_file): New.
9852 (tee_file_delete): Delete.
9853 (tee_file_flush): Rename to ...
9854 (tee_file::flush): ... this. Adjust.
9855 (tee_file_write): Rename to ...
9856 (tee_file::write): ... this. Adjust.
9857 (tee_file::write_async_safe): New.
9858 (tee_file_fputs): Rename to ...
9859 (tee_file::puts): ... this. Adjust.
9860 (tee_file_isatty): Rename to ...
9861 (tee_file::isatty): ... this. Adjust.
9862 * ui-file.h (struct obstack, struct ui_file): Don't
9863 forward-declare.
9864 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
9865 (ui_file_write_ftype)
9866 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
9867 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
9868 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
9869 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
9870 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
9871 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
9872 (set_ui_file_fseek): Delete.
9873 (ui_file_data, ui_file_delete, ui_file_rewind)
9874 (struct ui_file): New.
9875 (ui_file_up): New.
9876 (class null_file): New.
9877 (null_stream): Declare.
9878 (ui_file_write_for_put, ui_file_put): Delete.
9879 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
9880 Delete.
9881 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
9882 (gdb_fopen, tee_file_new): Delete.
9883 (struct string_file): New.
9884 (struct stdio_file): New.
9885 (stdio_file_up): New.
9886 (struct stderr_file): New.
9887 (class tee_file): New.
9888 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
9889 of a 'ui_file *'. Adjust.
9890 * ui-out.h (class ui_out) <field_stream>: Likewise.
9891 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
9892 (null_stream): Delete.
9893 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
9894 Adjust.
9895 * utils.h (struct ui_file): Delete forward declaration..
9896 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
9897 (error_stream): Take a 'string_file &' instead of a
9898 'ui_file *'.
9899 * varobj.c (varobj_value_get_print_value): Use string_file.
9900 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
9901 * gdbarch.c: Regenerate.
9902
9903 2017-02-02 Pedro Alves <palves@redhat.com>
9904
9905 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
9906 (gdb_pretty_print_insn): ... this. Now a free function. Add back
9907 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
9908 Adjust to call gdb_print_insn instead of
9909 gdb_disassembler::print_insn.
9910 (dump_insns, do_mixed_source_and_assembly_deprecated)
9911 (do_mixed_source_and_assembly, do_assembly_only): Add back a
9912 'gdbarch' parameter. Remove gdb_disassembler parameter.
9913 (gdb_disassembly): Don't allocate a gdb_disassembler here.
9914 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
9915 declaration.
9916 (gdb_pretty_print_insn): Re-add declaration.
9917 * record-btrace.c (btrace_insn_history): Don't allocate a
9918 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
9919
9920 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
9921
9922 * disasm.h (gdb_disassembly): Remove file_string parameter.
9923 * disasm.c (gdb_disassembly): Likewise.
9924 * cli/cli-cmds.c (print_disassembly): Adapt.
9925 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9926 * stack.c (do_gdb_disassembly): Likewise.
9927
9928 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
9929
9930 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
9931 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
9932 targets. And if the implicit value is longer than needed, extract
9933 the first bytes instead of the "least significant" ones.
9934
9935 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
9936
9937 * btrace.c (btrace_enable): Do not call btrace_add_pc for
9938 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
9939 (btrace_fetch): Assert can_access_registers_ptid.
9940 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
9941 validate_registers_access.
9942
9943 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
9944
9945 * gdbthread.h (can_access_registers_ptid): New.
9946 * thread.c (can_access_registers_ptid): New.
9947
9948 2017-02-01 Pedro Alves <palves@redhat.com>
9949
9950 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
9951
9952 2017-01-31 Pedro Alves <palves@redhat.com>
9953
9954 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
9955 Fix typos.
9956
9957 2017-01-31 Pedro Alves <palves@redhat.com>
9958
9959 * stack.c (print_frame_args): Remove local mem_fileopen stream,
9960 not used.
9961
9962 2017-01-31 Pedro Alves <palves@redhat.com>
9963
9964 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
9965
9966 2017-01-31 Pedro Alves <palves@redhat.com>
9967
9968 * common/scoped_restore.h
9969 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
9970 change the value's parameter type to T2.
9971 (make_scoped_restore): Likewise.
9972
9973 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
9974 Richard Henderson <rth@redhat.com>
9975
9976 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
9977 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
9978 GS_BASE for older kernels.
9979 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
9980 GS_BASE for older kernels.
9981 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
9982 and GS_BASE to the offset table.
9983 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
9984 system register group.
9985 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
9986 for older kernels.
9987 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
9988 amd64 ABI.
9989 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
9990 AMD64_GSBASE_REGNUM.
9991 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
9992 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
9993 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
9994 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
9995 i386/64bit-segments.xml in those rules.
9996 * features/i386/64bit-segments.xml: New file.
9997 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
9998 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
9999 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10000 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10001 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10002 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10003 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10004 * features/i386/amd64-avx-linux.c: Regenerated.
10005 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10006 * features/i386/amd64-avx-mpx.c: Regenerated.
10007 * features/i386/amd64-avx512-linux.c: Regenerated.
10008 * features/i386/amd64-linux.c: Regenerated.
10009 * features/i386/amd64-mpx-linux.c: Regenerated.
10010 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10011 * features/i386/i386-avx-mpx.c: Regenerated.
10012 * features/i386/x32-avx-linux.c: Regenerated.
10013 * features/i386/x32-avx512-linux.c: Regenerated.
10014 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10015 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10016 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10017 * regformats/i386/amd64-linux.dat: Regenerated.
10018 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10019 * regformats/i386/x32-avx-linux.dat: Regenerated.
10020 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10021 * regformats/i386/x32-linux.dat: Regenerated.
10022
10023 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10024
10025 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10026 Set to AMD64_NUM_REGS.
10027
10028 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10029
10030 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10031 that checks validity of a register number.
10032
10033 2017-01-27 Kees Cook <keescook@google.com>
10034
10035 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10036 fetch_fpregs if target has fpa registers.
10037 (arm_linux_store_inferior_registers): Call store_fpregs if target
10038 has fpa registers.
10039
10040 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10041
10042 * cris-tdep.c (cris_gdbarch_init): Remove check for
10043 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10044
10045 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10046
10047 * corelow.c (get_core_register_section): Check for regset
10048 existence before checking for REGSET_VARIABLE_SIZE.
10049
10050 2017-01-26 Yao Qi <yao.qi@linaro.org>
10051 Pedro Alves <palves@redhat.com>
10052
10053 PR gdb/20939
10054 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10055 call memory_error, save memaddr instead.
10056 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10057 negative, cal memory_error.
10058 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10059
10060 2017-01-26 Yao Qi <yao.qi@linaro.org>
10061
10062 * disasm-selftests.c (memory_error_test): New function.
10063 (_initialize_disasm_selftests): Register memory_error_test.
10064
10065 2017-01-26 Yao Qi <yao.qi@linaro.org>
10066
10067 * Makefile.in (SFILES): Add disasm-selftests.c and
10068 selftest-arch.c.
10069 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10070 * disasm-selftests.c: New file.
10071 * selftest-arch.c: New file.
10072 * selftest-arch.h: New file.
10073
10074 2017-01-26 Yao Qi <yao.qi@linaro.org>
10075
10076 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10077 to bfd_arch_mep. Don't return 0 if section is not
10078 found. Call print_insn_mep.
10079
10080 2017-01-26 Pedro Alves <palves@redhat.com>
10081 Yao Qi <yao.qi@linaro.org>
10082
10083 * arm-tdep.c: Include "disasm.h".
10084 (gdb_print_insn_arm): Update code to get gdbarch.
10085 * disasm.c (dis_asm_read_memory): Change it to
10086 gdb_disassembler::dis_asm_read_memory.
10087 (dis_asm_memory_error): Likewise.
10088 (dis_asm_print_address): Likewise.
10089 (gdb_pretty_print_insn): Change it to
10090 gdb_disassembler::pretty_print_insn.
10091 (dump_insns): Add one argument gdb_disassemlber. All
10092 callers updated.
10093 (do_mixed_source_and_assembly_deprecated): Likewise.
10094 (do_mixed_source_and_assembly): Likewise.
10095 (do_assembly_only): Likewise.
10096 (gdb_disassembler::gdb_disassembler): New.
10097 (gdb_disassembler::print_insn): New.
10098 * disasm.h (class gdb_disassembler): New.
10099 (gdb_pretty_print_insn): Remove declaration.
10100 (gdb_disassemble_info): Likewise.
10101 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10102 (gdbscm_disasm_read_memory_worker): Update.
10103 (gdbscm_disasm_read_memory): Update.
10104 (gdbscm_disasm_memory_error): Remove.
10105 (gdbscm_disasm_print_address): Remove.
10106 (gdbscm_disassembler::gdbscm_disassembler): New.
10107 (gdbscm_print_insn_from_port): Update.
10108 * mips-tdep.c: Include disasm.h.
10109 (gdb_print_insn_mips): Update code to get gdbarch.
10110 * record-btrace.c (btrace_insn_history): Update.
10111 * spu-tdep.c: Include disasm.h.
10112 (struct spu_dis_asm_data): Remove.
10113 (struct spu_dis_asm_info): New.
10114 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10115 SPU id.
10116 (gdb_print_insn_spu): Cast disassemble_info to
10117 spu_dis_asm_info.
10118
10119 2017-01-26 Yao Qi <yao.qi@linaro.org>
10120
10121 * disasm.c (do_ui_file_delete): Delete.
10122 (gdb_insn_length): Move code creating stream to ...
10123 * utils.c (null_stream): ... here. New function.
10124 * utils.h (null_stream): Declare.
10125
10126 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10127
10128 * python/py-inferior.c (find_thread_object): Return directly
10129 from the loop. Remove "found" variable.
10130
10131 2017-01-21 Joel Brobecker <brobecker@adacore.com>
10132
10133 GDB 7.12.1 released.
10134
10135 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10136
10137 * python/py-function.c (fnpy_call): Reorder declarations to have
10138 the gdbpy_enter object declared first.
10139 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10140
10141 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10142
10143 PR python/21068
10144 * python/python-internal.h (PyMem_RawMalloc): Define for
10145 Python < 3.4.
10146 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10147 PyMem_RawMalloc instead of PyMem_Malloc.
10148
10149 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10150 Luis Machado <lgustavo@codesourcery.com>
10151
10152 * NEWS (New commands): Mention flash-erase.
10153 (New MI commands): Mention target-flash-erase.
10154 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10155 command.
10156 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10157 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10158 * target.c (flash_erase_command): New function.
10159 (initialize_targets): Add new flash-erase command.
10160 * target.h (flash_erase_command): New declaration.
10161
10162 2017-01-20 Joel Brobecker <brobecker@adacore.com>
10163
10164 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10165 HAVE_SYS_PROCFS_H is defined.
10166
10167 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10168
10169 * remote.c (struct cached_reg): Change data into a pointer.
10170 * (stop_reply_dtr): Free data pointers before deleting vector.
10171 (process_stop_reply): Likewise.
10172 (remote_parse_stop_reply): Allocate space for data
10173
10174 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10175
10176 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10177 MAX_REGISTER_SIZE.
10178 (amd64_pseudo_register_read_value): Likewise.
10179 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10180 (store_register_using_P): Likewise.
10181 * regcache.c (regcache_xfer_part): Likewise.
10182
10183 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10184
10185 Split real and pseudo registers.
10186 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10187 (sparc32_pseudo_regnum): New enum.
10188 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10189 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10190 (SPARC32_CP0_REGISTERS): New macro.
10191 (sparc32_pseudo_register_name): New function.
10192 (sparc32_register_name): Use sparc32_pseudo_register_name.
10193 (sparc32_pseudo_register_type): New function.
10194 (sparc32_register_type): Use sparc32_pseudo_register_type.
10195 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10196 pseudo register numbers.
10197 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10198 (SPARC64_CP0_REGISTERS): New macro.
10199 (sparc64_pseudo_register_name): New function.
10200 (sparc64_register_name): Use sparc64_pseudo_register_name.
10201 (sparc64_pseudo_register_type): New function.
10202 (sparc64_register_type): Use sparc64_pseudo_register_type.
10203 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10204 pseudo register numbers.
10205 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10206 sparc64_store_arguments): Handle pseudo register numbers.
10207
10208 2017-01-13 Yao Qi <yao.qi@linaro.org>
10209
10210 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10211 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10212 output.
10213 (getpkt_or_notif_sane_1): Likewise.
10214
10215 2017-01-13 Yao Qi <yao.qi@linaro.org>
10216
10217 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10218 of CC. Pass "-x c++-header" instead of "-x c".
10219
10220 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10221
10222 * remote.c (remote_can_async_p): Update comment.
10223
10224 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10225
10226 * linux-nat.c (linux_nat_can_async_p): Update comment.
10227
10228 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10229
10230 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10231
10232 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10233
10234 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10235
10236 2017-01-10 Tom Tromey <tom@tromey.com>
10237
10238 * python/py-type.c (typy_legacy_template_argument): Update.
10239 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10240 ~demangle_parse_info): Declare new members.
10241 (cp_demangled_name_to_comp): Return unique_ptr.
10242 (cp_demangled_name_parse_free)
10243 (make_cleanup_cp_demangled_name_parse_free)
10244 (cp_new_demangle_parse_info): Remove.
10245 * cp-support.c (do_demangled_name_parse_free_cleanup)
10246 (make_cleanup_cp_demangled_name_parse_free): Remove.
10247 (inspect_type, cp_canonicalize_string_full)
10248 (cp_canonicalize_string): Update.
10249 (mangled_name_to_comp): Change return type.
10250 (cp_class_name_from_physname, method_name_from_physname)
10251 (cp_func_name, cp_remove_params): Update.
10252 * cp-name-parser.y (demangle_parse_info): New constructor, from
10253 cp_new_demangle_parse_info.
10254 (~demangle_parse_info): New destructor, from
10255 cp_demangled_name_parse_free.
10256 (cp_merge_demangle_parse_infos): Update.
10257 (cp_demangled_name_to_comp): Change return type.
10258
10259 2017-01-10 Tom Tromey <tom@tromey.com>
10260
10261 * top.c (prevent_dont_repeat): Change return type.
10262 * python/python.c (execute_gdb_command): Use std::string.
10263 Update.
10264 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10265 * command.h (prevent_dont_repeat): Change return type.
10266 * breakpoint.c (bpstat_do_actions_1): Update.
10267
10268 2017-01-10 Tom Tromey <tom@tromey.com>
10269
10270 * value.h (scoped_value_mark::~scoped_value_mark): Call
10271 free_to_mark.
10272 (scoped_value_mark::free_to_mark): New method.
10273 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10274 scoped_value_mark.
10275
10276 2017-01-10 Tom Tromey <tom@tromey.com>
10277
10278 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10279 (valpy_reference_value, valpy_const_value, valpy_get_address)
10280 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10281 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
10282 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
10283 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
10284 scoped_value_mark.
10285 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
10286 * value.h (scoped_value_mark): New class.
10287
10288 2017-01-10 Tom Tromey <tom@tromey.com>
10289
10290 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
10291 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
10292 * psymtab.c (discard_psymtabs_upto): Remove.
10293 (make_cleanup_discard_psymtabs): Remove.
10294 (struct psymtab_state): Remove.
10295
10296 2017-01-10 Tom Tromey <tom@tromey.com>
10297
10298 * record-full.c (record_full_save_cleanups): Remove.
10299 (record_full_save): Use gdb::unlinker.
10300 * gcore.c (do_bfd_delete_cleanup): Remove.
10301 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
10302 cleanups.
10303 * dwarf2read.c (unlink_if_set): Remove.
10304 (write_psymtabs_to_index): Use gdb::unlinker.
10305 * common/gdb_unlinker.h: New file.
10306
10307 2017-01-10 Tom Tromey <tom@tromey.com>
10308
10309 * windows-tdep.c (windows_xfer_shared_library): Update.
10310 * windows-nat.c (windows_make_so): Update.
10311 * utils.h (make_cleanup_bfd_unref): Remove.
10312 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
10313 * symfile.h (symfile_bfd_open)
10314 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
10315 * symfile.c (read_symbols, symbol_file_add)
10316 (separate_debug_file_exists): Update.
10317 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
10318 (generic_load, reread_symbols): Update.
10319 * symfile-mem.c (symbol_file_add_from_memory): Update.
10320 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
10321 (spu_symbol_file_add_from_memory): Update.
10322 * solist.h (struct target_so_ops) <bfd_open>: Return
10323 gdb_bfd_ref_ptr.
10324 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
10325 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
10326 gdb_bfd_ref_ptr.
10327 (solib_map_sections, reload_shared_libraries_1): Update.
10328 * solib-svr4.c (enable_break): Update.
10329 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
10330 * solib-frv.c (enable_break2): Update.
10331 * solib-dsbt.c (enable_break): Update.
10332 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
10333 gdb_bfd_ref_ptr.
10334 (darwin_solib_get_all_image_info_addr_at_init): Update.
10335 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
10336 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
10337 * record-full.c (record_full_save): Update.
10338 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
10339 * procfs.c (insert_dbx_link_bpt_in_file): Update.
10340 * minidebug.c (find_separate_debug_file_in_section): Return
10341 gdb_bfd_ref_ptr.
10342 * machoread.c (macho_add_oso_symfile): Change abfd to
10343 gdb_bfd_ref_ptr.
10344 (macho_symfile_read_all_oso): Update.
10345 (macho_check_dsym): Return gdb_bfd_ref_ptr.
10346 (macho_symfile_read): Update.
10347 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
10348 (jit_bfd_try_read_symtab): Update.
10349 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10350 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10351 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10352 gdb_bfd_ref_ptr.
10353 (gdb_bfd_ref_policy): New struct.
10354 (gdb_bfd_ref_ptr): New typedef.
10355 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10356 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10357 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10358 gdb_bfd_ref_ptr.
10359 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10360 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10361 (gcore_command): Update.
10362 * exec.c (exec_file_attach): Update.
10363 * elfread.c (elf_symfile_read): Update.
10364 * dwarf2read.c (dwarf2_get_dwz_file): Update.
10365 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
10366 (open_and_init_dwo_file): Update.
10367 (open_dwp_file): Return gdb_bfd_ref_ptr.
10368 (open_and_init_dwp_file): Update.
10369 * corelow.c (core_open): Update.
10370 * compile/compile-object-load.c (compile_object_load): Update.
10371 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
10372 * coffread.c (coff_symfile_read): Update.
10373 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
10374 gdb_bfd_ref_ptr. Rename.
10375 (dump_bfd_file, restore_command): Update.
10376 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10377 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10378 (find_separate_debug_file_by_buildid): Update.
10379
10380 2017-01-10 Tom Tromey <tom@tromey.com>
10381
10382 * common/gdb_ref_ptr.h: New file.
10383 * python/py-ref.h (struct gdbpy_ref_policy): New.
10384 (gdbpy_ref): Now a typedef.
10385
10386 2017-01-10 Tom Tromey <tom@tromey.com>
10387
10388 * utils.h (make_cleanup_htab_delete): Don't declare.
10389 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
10390 Remove.
10391 * linespec.c (decode_compound_collector): Add constructor,
10392 destructor.
10393 (lookup_prefix_sym): Remove cleanup.
10394 (symtab_collector): Add constructor, destructor.
10395 (collect_symtabs_from_filename): Remove cleanup.
10396 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
10397 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
10398 Use htab_up.
10399 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
10400 * dwarf2read.c (dw2_expand_symtabs_matching)
10401 (dw2_map_symbol_filenames, dwarf_decode_macros)
10402 (write_psymtabs_to_index): Use htab_up.
10403 * dwarf2loc.c (func_verify_no_selftailcall)
10404 (call_site_find_chain_1, func_verify_no_selftailcall)
10405 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
10406 std::vector, gdb::unique_xmalloc_ptr.
10407 (call_sitep): Remove typedef.
10408 (dwarf2_locexpr_baton_eval): Remove unused variable.
10409
10410 2017-01-10 Tom Tromey <tom@tromey.com>
10411
10412 * python/python-internal.h (make_cleanup_py_decref)
10413 (make_cleanup_py_xdecref): Don't declare.
10414 * python/py-utils.c (py_decref, make_cleanup_py_decref)
10415 (py_xdecref, make_cleanup_py_xdecref): Remove.
10416
10417 2017-01-10 Tom Tromey <tom@tromey.com>
10418
10419 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
10420 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
10421
10422 2017-01-10 Tom Tromey <tom@tromey.com>
10423
10424 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
10425
10426 2017-01-10 Tom Tromey <tom@tromey.com>
10427
10428 * python/py-utils.c (unicode_to_encoded_string)
10429 (python_string_to_target_string)
10430 (python_string_to_target_python_string)
10431 (python_string_to_host_string, gdbpy_obj_to_string)
10432 (get_addr_from_python): Use gdbpy_ref.
10433
10434 2017-01-10 Tom Tromey <tom@tromey.com>
10435
10436 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
10437 gdbpy_ref.
10438
10439 2017-01-10 Tom Tromey <tom@tromey.com>
10440
10441 * python/python.c (eval_python_command, gdbpy_decode_line)
10442 (gdbpy_run_events, gdbpy_start_type_printers)
10443 (gdbpy_apply_type_printers): Use gdbpy_ref.
10444
10445 2017-01-10 Tom Tromey <tom@tromey.com>
10446
10447 * python/py-param.c (get_doc_string, compute_enum_values): Use
10448 gdbpy_ref.
10449
10450 2017-01-10 Tom Tromey <tom@tromey.com>
10451
10452 * python/py-inferior.c (find_thread_object, build_inferior_list):
10453 Use gdbpy_ref.
10454
10455 2017-01-10 Tom Tromey <tom@tromey.com>
10456
10457 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10458
10459 2017-01-10 Tom Tromey <tom@tromey.com>
10460
10461 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
10462 gdbpy_ref.
10463
10464 2017-01-10 Tom Tromey <tom@tromey.com>
10465
10466 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
10467 extra incref.
10468 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
10469 Use gdbpy_ref.
10470
10471 2017-01-10 Tom Tromey <tom@tromey.com>
10472
10473 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
10474 gdbpy_ref.
10475
10476 2017-01-10 Tom Tromey <tom@tromey.com>
10477
10478 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
10479 decref results of PyArg_ParseTupleAndKeywords.
10480
10481 2017-01-10 Tom Tromey <tom@tromey.com>
10482
10483 * python/python.c (python_run_simple_file): Use
10484 unique_xmalloc_ptr, gdbpy_ref.
10485
10486 2017-01-10 Tom Tromey <tom@tromey.com>
10487
10488 * python/py-prettyprint.c (print_stack_unless_memory_error)
10489 (print_string_repr, print_children): Use gdbpy_ref.
10490 (dummy_python_frame): New class.
10491 (dummy_python_frame::dummy_python_frame): Rename from
10492 push_dummy_python_frame.
10493 (py_restore_tstate): Remove.
10494
10495 2017-01-10 Tom Tromey <tom@tromey.com>
10496
10497 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10498
10499 2017-01-10 Tom Tromey <tom@tromey.com>
10500
10501 * python/python.c (ensure_python_env, restore_python_env):
10502 Remove.
10503 * python/python-internal.h (ensure_python_env): Don't declare.
10504 * varobj.h (varobj_ensure_python_env): Don't declare.
10505 * varobj.c (varobj_ensure_python_env): Remove.
10506
10507 2017-01-10 Tom Tromey <tom@tromey.com>
10508
10509 * varobj.c (varobj_value_get_print_value): Use
10510 gdbpy_enter_varobj.
10511
10512 2017-01-10 Tom Tromey <tom@tromey.com>
10513
10514 * python/py-prettyprint.c (print_string_repr, print_children):
10515 Update.
10516 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
10517 of "encoding".
10518 * varobj.c (varobj_value_get_print_value): Update.
10519 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
10520
10521 2017-01-10 Tom Tromey <tom@tromey.com>
10522
10523 * varobj.c (varobj_get_display_hint)
10524 (dynamic_varobj_has_child_method, install_new_value_visualizer)
10525 (varobj_set_visualizer, free_variable): Use
10526 gdbpy_enter_varobj.
10527
10528 2017-01-10 Tom Tromey <tom@tromey.com>
10529
10530 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
10531 (do_finish_initialization): New function. Use gdbpy_ref.
10532 (gdbpy_finish_initialization): Use gdbpy_enter. Call
10533 do_finish_initialization.
10534
10535 2017-01-10 Tom Tromey <tom@tromey.com>
10536
10537 * python/py-param.c (get_set_value, get_show_value): Use
10538 gdbpy_enter, gdbpy_ref.
10539
10540 2017-01-10 Tom Tromey <tom@tromey.com>
10541
10542 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
10543
10544 2017-01-10 Tom Tromey <tom@tromey.com>
10545
10546 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
10547
10548 2017-01-10 Tom Tromey <tom@tromey.com>
10549
10550 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
10551 Use gdbpy_enter_varobj.
10552
10553 2017-01-10 Tom Tromey <tom@tromey.com>
10554
10555 * varobj.c (gdbpy_enter_varobj): New constructor.
10556 * python/python-internal.h (gdbpy_enter_varobj): New class.
10557 * python/py-varobj.c (py_varobj_get_iterator): Use
10558 gdbpy_enter_varobj.
10559
10560 2017-01-10 Tom Tromey <tom@tromey.com>
10561
10562 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
10563 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
10564 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
10565 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
10566 unique_xmalloc_ptr.
10567 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
10568
10569 2017-01-10 Tom Tromey <tom@tromey.com>
10570
10571 * python/py-xmethods.c (invoke_match_method): Use
10572 gdbpy_ref.
10573
10574 2017-01-10 Tom Tromey <tom@tromey.com>
10575
10576 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
10577 gdbpy_enter, gdbpy_ref.
10578
10579 2017-01-10 Tom Tromey <tom@tromey.com>
10580
10581 * python/python.c (python_interactive_command): Use gdbpy_enter.
10582
10583 2017-01-10 Tom Tromey <tom@tromey.com>
10584
10585 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
10586 gdbpy_ref.
10587
10588 2017-01-10 Tom Tromey <tom@tromey.com>
10589
10590 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
10591 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
10592
10593 2017-01-10 Tom Tromey <tom@tromey.com>
10594
10595 * utils.h (htab_deleter): New struct.
10596 (htab_up): New typedef.
10597 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
10598 gdbpy_enter, gdbpy_ref, htab_up.
10599
10600 2017-01-10 Tom Tromey <tom@tromey.com>
10601
10602 * python/py-unwind.c (pending_frame_invalidate): Remove.
10603 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
10604
10605 2017-01-10 Tom Tromey <tom@tromey.com>
10606
10607 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
10608 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
10609
10610 2017-01-10 Tom Tromey <tom@tromey.com>
10611
10612 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
10613
10614 2017-01-10 Tom Tromey <tom@tromey.com>
10615
10616 * python/python.c (gdbpy_eval_from_control_command)
10617 (gdbpy_source_script, gdbpy_run_events)
10618 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
10619 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
10620 gdbpy_enter.
10621
10622 2017-01-10 Tom Tromey <tom@tromey.com>
10623
10624 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
10625
10626 2017-01-10 Tom Tromey <tom@tromey.com>
10627
10628 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
10629
10630 2017-01-10 Tom Tromey <tom@tromey.com>
10631
10632 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
10633 (python_on_inferior_call_pre, python_on_inferior_call_post)
10634 (python_on_memory_change, python_on_register_change)
10635 (python_inferior_exit, python_new_objfile, add_thread_object)
10636 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
10637
10638 2017-01-10 Tom Tromey <tom@tromey.com>
10639
10640 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
10641 (bpfinishpy_handle_exit): Use gdbpy_enter.
10642
10643 2017-01-10 Tom Tromey <tom@tromey.com>
10644
10645 * python/py-cmd.c (cmdpy_destroyer)
10646 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
10647 gdbpy_enter.
10648
10649 2017-01-10 Tom Tromey <tom@tromey.com>
10650
10651 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
10652 gdbpy_enter.
10653 (gdbpy_breakpoint_has_cond): Likewise.
10654
10655 2017-01-10 Tom Tromey <tom@tromey.com>
10656
10657 * python/python.c (gdbpy_enter): New constructor.
10658 (~gdbpy_enter): New destructor.
10659 (restore_python_env, ensure_python_env): Rewrite.
10660 * python/python-internal.h (gdbpy_enter): New class.
10661
10662 2017-01-10 Tom Tromey <tom@tromey.com>
10663
10664 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
10665
10666 2017-01-10 Tom Tromey <tom@tromey.com>
10667
10668 * python/py-value.c (value_has_field, get_field_flag)
10669 (get_field_type, valpy_getitem, convert_value_from_python): Use
10670 gdbpy_ref.
10671
10672 2017-01-10 Tom Tromey <tom@tromey.com>
10673
10674 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
10675 gdbpy_ref.
10676
10677 2017-01-10 Tom Tromey <tom@tromey.com>
10678
10679 * python/py-prettyprint.c (search_pp_list)
10680 (find_pretty_printer_from_objfiles)
10681 (find_pretty_printer_from_progspace)
10682 (find_pretty_printer_from_gdb, find_pretty_printer)
10683 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
10684 gdbpy_ref.
10685
10686 2017-01-10 Tom Tromey <tom@tromey.com>
10687
10688 * python/py-param.c (call_doc_function): Use gdbpy_ref.
10689
10690 2017-01-10 Tom Tromey <tom@tromey.com>
10691
10692 * python/py-linetable.c (build_line_table_tuple_from_pcs)
10693 (ltpy_get_all_source_lines): Use gdbpy_ref.
10694
10695 2017-01-10 Tom Tromey <tom@tromey.com>
10696
10697 * python/py-framefilter.c (extract_sym, extract_value)
10698 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
10699 gdbpy_ref.
10700
10701 2017-01-10 Tom Tromey <tom@tromey.com>
10702
10703 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
10704
10705 2017-01-10 Tom Tromey <tom@tromey.com>
10706
10707 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
10708
10709 2017-01-10 Tom Tromey <tom@tromey.com>
10710
10711 * python/py-function.c (convert_values_to_python, fnpy_init): Use
10712 gdbpy_ref.
10713
10714 2017-01-10 Tom Tromey <tom@tromey.com>
10715
10716 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
10717
10718 2017-01-10 Tom Tromey <tom@tromey.com>
10719
10720 * python/py-type.c (convert_field, make_fielditem, typy_fields)
10721 (typy_range): Use gdbpy_ref.
10722
10723 2017-01-10 Tom Tromey <tom@tromey.com>
10724
10725 * python/py-threadevent.c (create_thread_event_object): Use
10726 gdbpy_ref.
10727 * python/py-stopevent.c (create_stop_event_object): Simplify.
10728 (emit_stop_event): Use gdbpy_ref.
10729 * python/py-signalevent.c (create_signal_event_object): Use
10730 gdbpy_ref.
10731 * python/py-newobjfileevent.c (create_new_objfile_event_object)
10732 (emit_new_objfile_event, create_clear_objfiles_event_object)
10733 (emit_clear_objfiles_event): Use gdbpy_ref.
10734 * python/py-infevents.c (create_inferior_call_event_object)
10735 (create_register_changed_event_object)
10736 (create_memory_changed_event_object, emit_inferior_call_event)
10737 (emit_memory_changed_event, emit_register_changed_event): Use
10738 gdbpy_ref.
10739 * python/py-exitedevent.c (create_exited_event_object)
10740 (emit_exited_event): Use gdbpy_ref.
10741 * python/py-event.h (evpy_emit_event): Remove
10742 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
10743 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
10744 * python/py-continueevent.c (emit_continue_event): Use
10745 gdbpy_ref.
10746 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10747 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10748 gdbpy_ref.
10749 * python/py-bpevent.c (create_breakpoint_event_object): Use
10750 gdbpy_ref.
10751
10752 2017-01-10 Tom Tromey <tom@tromey.com>
10753
10754 * python/py-ref.h: New file.
10755
10756 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
10757
10758 * cli-out.c (cli_ui_out::do_redirect): Change return type to
10759 void.
10760 * cli-out.h (cli_ui_out::do_redirect): Likewise.
10761 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
10762 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
10763 * ui-out.c (ui_out::redirect): Likewise.
10764 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
10765 * cli/cli-logging.c (set_logging_redirect): Update call site of
10766 ui_out::redirect.
10767 (handle_redirections): Likewise.
10768 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
10769 * top.c (execute_command_to_string): Likewise.
10770 * utils.c (do_ui_out_redirect_pop): Likewise.
10771
10772 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
10773
10774 * stack.c (_initialize_stack): Update "frame" command help message.
10775
10776 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
10777
10778 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
10779
10780 2017-01-06 Yao Qi <yao.qi@linaro.org>
10781
10782 * x86-linux-nat.h: Include gdb_proc_service.h.
10783
10784 2017-01-06 Yao Qi <yao.qi@linaro.org>
10785
10786 * ser-base.h: Include serial.h.
10787
10788 2017-01-06 Yao Qi <yao.qi@linaro.org>
10789
10790 * ppc-linux-tdep.h: Include ppc-tdep.h.
10791
10792 2017-01-06 Yao Qi <yao.qi@linaro.org>
10793
10794 * nat/amd64-linux-siginfo.h: Include signal.h.
10795
10796 2017-01-06 Yao Qi <yao.qi@linaro.org>
10797
10798 * nat/aarch64-linux-hw-point.h: Include break-common.h.
10799
10800 2017-01-06 Yao Qi <yao.qi@linaro.org>
10801
10802 * mi/mi-parse.h: Include mi-cmds.h.
10803
10804 2017-01-06 Yao Qi <yao.qi@linaro.org>
10805
10806 * inf-loop.c: Don't include "target.h".
10807 * inf-loop.h: Include it here.
10808
10809 2017-01-06 Yao Qi <yao.qi@linaro.org>
10810
10811 * dfp.h: Include "dboulest.h" and "expression.h".
10812
10813 2017-01-06 Yao Qi <yao.qi@linaro.org>
10814
10815 * ax-gdb.h: Include "ax.h".
10816
10817 2017-01-06 Yao Qi <yao.qi@linaro.org>
10818
10819 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
10820 with nat/gdb_ptrace.h.
10821
10822 2017-01-05 Yao Qi <yao.qi@linaro.org>
10823
10824 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
10825 new line.
10826 (mips64_fbsd_sigframe_init): Likewise.
10827
10828 2017-01-04 John Baldwin <jhb@FreeBSD.org>
10829
10830 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
10831 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
10832
10833 2017-01-04 John Baldwin <jhb@FreeBSD.org>
10834
10835 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
10836 * NEWS: Mention new FreeBSD/mips native configuration.
10837 * config/mips/fbsd.mh: New file.
10838 * configure.host: Add mips*-*-freebsd*.
10839 * mips-fbsd-nat.c: New file.
10840
10841 2017-01-04 John Baldwin <jhb@FreeBSD.org>
10842
10843 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
10844 (ALLDEPFILES): Add mips-fbsd-tdep.c.
10845 * NEWS: Mention new FreeBSD/mips target.
10846 * configure.tgt: Add mips*-*-freebsd*.
10847 * mips-fbsd-tdep.c: New file.
10848 * mips-fbsd-tdep.h: New file.
10849
10850 2017-01-04 Yao Qi <yao.qi@linaro.org>
10851
10852 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
10853 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
10854
10855 2017-01-01 Joel Brobecker <brobecker@adacore.com>
10856
10857 Update copyright year range in all GDB files.
10858
10859 2017-01-01 Joel Brobecker <brobecker@adacore.com>
10860
10861 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
10862
10863 For older changes see ChangeLog-2016.
10864 \f
10865 Local Variables:
10866 mode: change-log
10867 left-margin: 8
10868 fill-column: 74
10869 version-control: never
10870 coding: utf-8
10871 End:
This page took 0.265193 seconds and 4 git commands to generate.