Remove some cleanups from tracepoint.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8abcee91
TT
12017-09-29 Tom Tromey <tom@tromey.com>
2
3 * tracepoint.c (trace_variable_command): Use std::string.
4 (encode_actions_1): Remove unused declarations.
5 (create_tsv_from_upload): Use std::string.
6
6ad94bc7
TT
72017-09-29 Tom Tromey <tom@tromey.com>
8
9 * cp-support.c (gdb_demangle): Use std::string.
10
2003f3d8
TT
112017-09-29 Tom Tromey <tom@tromey.com>
12
13 * stack.c (parse_frame_specification): Use std::string
14 (info_frame_command): Use gdb::unique_xmalloc_ptr.
15
8f8accb5
TT
162017-09-29 Tom Tromey <tom@tromey.com>
17
18 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
19
200aa7b1
TT
202017-09-29 Tom Tromey <tom@tromey.com>
21
22 * utils.c (vfprintf_maybe_filtered): Use std::string.
23 (vfprintf_unfiltered): Likewise.
24
606aae8a
TT
252017-09-29 Tom Tromey <tom@tromey.com>
26
27 * event-top.c (top_level_prompt): Return std::string.
28 (display_gdb_prompt): Update.
29
bd413795
TT
302017-09-29 Tom Tromey <tom@tromey.com>
31
32 * unittests/common-utils-selftests.c (format): New function.
33 (string_vprintf_tests): New function.
34 (_initialize_common_utils_selftests): Register new tests.
35 * common/common-utils.c (string_vprintf): New function.
36 * common/common-utils.h (string_vprintf): Declare.
37
256642e8
PA
382017-09-29 Pedro Alves <palves@redhat.com>
39
40 * common/rsp-low.c (unpack_varlen_hex): Constify.
41 * common/rsp-low.h (unpack_varlen_hex): Constify.
42 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
43 Constify.
44 * remote.c (remote_set_permissions, read_ptid)
45 (remote_current_thread, remote_get_threads_with_qthreadinfo)
46 (remote_static_tracepoint_marker_at)
47 (remote_static_tracepoint_markers_by_strid)
48 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
49 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
50 (parse_tracepoint_definition, parse_tsv_definition)
51 (parse_static_tracepoint_marker_definition): Constify.
52 * tracepoint.h (parse_static_tracepoint_marker_definition)
53 (parse_trace_status, parse_tracepoint_status)
54 (parse_tracepoint_definition, parse_tsv_definition): Constify.
55
b6bb3468
PA
562017-09-29 Pedro Alves <palves@redhat.com>
57
58 * remote.c (target_buf, target_buf_size): Delete.
59 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
60 Use the connection's packet buffer instead.
61 All callers adjusted.
62 (_initialize_remote): Remove references to target_buf and
63 target_buf_size.
64
b2f8eb7a
PA
652017-09-28 Pedro Alves <palves@redhat.com>
66
67 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
68 unittests/common-utils-selftests.c.
69 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
70 (COMMON_OBS): Remove utils-selftests.o.
71 * utils-selftests.c: Move to ...
72 * unittests/common-utils-selftests.c: ... here and rename self
73 test to "string_printf".
74
08302ed2
DE
752017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
76
77 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
78 having NULL cus or tus.
79
96a5a1d3
UW
802017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
81
82 * arm-tdep.c: (convert_from_extended): Remove.
83 (convert_to_extended): Likewise.
84 (arm_extract_return_value): Use convert_typed_floating.
85 (arm_store_return_value): Likewise.
86
87 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
88 * sh-tdep.c: Do not include "floatformat.h".
89 (sh_littlebyte_bigword_type): New function.
90 (sh_register_convert_to_virtual): Use convert_typed_floating.
91 (sh_register_convert_to_raw): Likewise.
92 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
93 (sh64_littlebyte_bigword_type): New function.
94 (sh64_extract_return_value): Use convert_typed_floating.
95 (sh64_register_convert_to_virtual): Likewise.
96 (sh64_register_convert_to_raw): Likewise.
97
0db7851f
UW
982017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
99
100 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
101 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
102
103 * gdbtypes.h (union type_specific): Make field floatformat hold
104 just a single struct floatformat, not an array.
105 (floatformat_from_type): Move here.
106 * gdbtypes.c (floatformat_from_type): Move here. Update to
107 changed TYPE_FLOATFORMAT definition.
108 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
109 (recursive_dump_type): Likewise.
110 (init_float_type): Install correct floatformat for byte order.
111 (arch_float_type): Likewise.
112
77b7c781
UW
1132017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
114
115 * gdbtypes.c (init_type): Change incoming argument from
116 length-in-bytes to length-in-bits. Assert length is a
117 multiple of TARGET_CHAR_BITS.
118 (arch_type, arch_flags_type): Likewise.
119 (init_integer_type): Update call to init_type.
120 (init_character_type): Likewise.
121 (init_boolean_type): Likewise.
122 (init_float_type): Likewise.
123 (init_decfloat_type): Likewise.
124 (init_complex_type): Likewise.
125 (init_pointer_type): Likewise.
126 (objfile_type): Likewise.
127 (arch_integer_type): Update call to arch_type.
128 (arch_character_type): Likewise.
129 (arch_boolean_type): Likewise.
130 (arch_float_type): Likewise.
131 (arch_decfloat_type): Likewise.
132 (arch_complex_type): Likewise.
133 (arch_pointer_type): Likewise.
134 (gdbtypes_post_init): Likewise.
135
136 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
137 (read_base_type): Likewise.
138 * mdebugread.c (basic_type): Likewise.
139 * stabsread.c (dbx_init_float_type): Likewise.
140 (rs6000_builtin_type): Likewise.
141 (read_range_type): Likewise. Also, fix call to init_integer_type
142 with erroneous length argument.
143
144 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
145 * d-lang.c (build_d_types): Likewise.
146 * f-lang.c (build_fortran_types): Likewise.
147 * go-lang.c (build_go_types): Likewise.
148 * opencl-lang.c (build_opencl_types): Likewise.
149 * jit.c (finalize_symtab): Likewise.
150 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
151 (build_std_type_info_type): Likewise.
152 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
153 update call to arch_flags_type.
154
155 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
156 arch_type.
157 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
158 * windows-tdep.c (windows_get_tlb_type): Likewise.
159
160 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
161 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
162 * m32c-tdep.c (make_types): Likewise.
163 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
164 (rl78_psw_type): Update call to arch_flags_type.
165 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
166 * rx-tdep.c (rx_psw_type): Likewise.
167 (rx_fpsw_type): Likewise.
168 * sparc-tdep.c (sparc_psr_type): Likewise.
169 (sparc_fsr_type): Likewise.
170 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
171 (sparc64_ccr_type): Likewise.
172 (sparc64_fsr_type): Likewise.
173 (sparc64_fprs_type): Likewise.
174
f21b4d5c
TT
1752017-09-27 Tom Tromey <tom@tromey.com>
176
177 * findcmd.c (find_command): Constify.
178
643c2ffa
TT
1792017-09-27 Tom Tromey <tom@tromey.com>
180
181 * ada-tasks.c (task_command_1, task_command): Constify.
182
510e5e56
TT
1832017-09-27 Tom Tromey <tom@tromey.com>
184
185 * symtab.c (maintenance_print_symbol_cache)
186 (maintenance_flush_symbol_cache)
187 (maintenance_print_symbol_cache_statistics): Constify.
188
e503b191
TT
1892017-09-27 Tom Tromey <tom@tromey.com>
190
191 * inferior.c (detach_inferior_command, kill_inferior_command)
192 (inferior_command): Constify.
193
4e001312
TT
1942017-09-27 Tom Tromey <tom@tromey.com>
195
196 * regcache.c (regcache_print, maintenance_print_registers)
197 (maintenance_print_raw_registers)
198 (maintenance_print_cooked_registers)
199 (maintenance_print_register_groups)
200 (maintenance_print_remote_registers): Constify.
201
77763700
TT
2022017-09-27 Tom Tromey <tom@tromey.com>
203
204 * printcmd.c (map_display_numbers, undisplay_command)
205 (enable_disable_display_command, enable_display_command)
206 (disable_display_command): Constify.
207
4495129a
TT
2082017-09-27 Tom Tromey <tom@tromey.com>
209
210 * breakpoint.h (delete_command): Don't declare.
211 * breakpoint.c (delete_command, enable_once_command)
212 (enable_count_command, enable_delete_command, breakpoint_1)
213 (maintenance_info_breakpoints, stopin_command, stopat_command)
214 (delete_command, delete_trace_command, save_breakpoints)
215 (save_breakpoints_command, save_tracepoints_command): Constify.
216
3088cf40
TT
2172017-09-27 Tom Tromey <tom@tromey.com>
218
219 * macrocmd.c (macro_expand_command, macro_expand_once_command)
220 (skip_ws, extract_identifier, macro_define_command)
221 (macro_undef_command, macro_list_command): Constify.
222
69f476a3
TT
2232017-09-27 Tom Tromey <tom@tromey.com>
224
225 * infcmd.c (environment_info, set_environment_command)
226 (unset_environment_command, path_info, info_proc_cmd_1)
227 (info_proc_cmd_mappings, info_proc_cmd_stat)
228 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
229 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
230
c4a3e68e
TT
2312017-09-27 Tom Tromey <tom@tromey.com>
232
233 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
234 Constify.
235
c9d31bd6
TT
2362017-09-27 Tom Tromey <tom@tromey.com>
237
238 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
239
1f3f85eb
TT
2402017-09-27 Tom Tromey <tom@tromey.com>
241
242 * demangle.c (demangle_command): Constify.
243
9c504b5d
TT
2442017-09-27 Tom Tromey <tom@tromey.com>
245
246 * progspace.c (maintenance_info_program_spaces_command):
247 Constify.
248
6663cf91
TT
2492017-09-27 Tom Tromey <tom@tromey.com>
250
251 * compile/compile.c (check_raw_argument, compile_file_command)
252 (compile_code_command, compile_print_command): Constify.
253
34e5fa26
TT
2542017-09-27 Tom Tromey <tom@tromey.com>
255
256 * reggroups.c (maintenance_print_reggroups): Constify.
257
8384c356
TT
2582017-09-27 Tom Tromey <tom@tromey.com>
259
260 * dwarf2read.c (save_gdb_index_command): Constify.
261
884beb0c
TT
2622017-09-27 Tom Tromey <tom@tromey.com>
263
264 * stap-probe.c (info_probes_stap_command): Constify.
265
e0b2930c
TT
2662017-09-27 Tom Tromey <tom@tromey.com>
267
268 * fork-child.c (unset_exec_wrapper_command): Constify.
269
f938677d
TT
2702017-09-27 Tom Tromey <tom@tromey.com>
271
272 * btrace.c (get_uint, get_context_size, no_chunk)
273 (maint_btrace_packet_history_cmd)
274 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
275 (maint_info_btrace_cmd): Constify.
276
8949cb87
TT
2772017-09-27 Tom Tromey <tom@tromey.com>
278
279 * reverse.c (delete_bookmark_command): Constify.
280
ac88e2de
TT
2812017-09-27 Tom Tromey <tom@tromey.com>
282
283 * remote.c (set_memory_packet_size)
284 (set_memory_write_packet_size, show_memory_write_packet_size)
285 (set_memory_read_packet_size, show_memory_read_packet_size)
286 (compare_sections_command, packet_command, remote_put_command)
287 (remote_get_command, remote_delete_command): Constify.
288
bd4c9dfe
TT
2892017-09-27 Tom Tromey <tom@tromey.com>
290
291 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
292 (set_mipsfpu_double_command, set_mipsfpu_none_command)
293 (set_mipsfpu_auto_command): Constify.
294
5e93d4c6
TT
2952017-09-27 Tom Tromey <tom@tromey.com>
296
297 * cli/cli-cmds.h (cd_command): Constify.
298 * cli/cli-cmds.c (cd_command): Constify.
299
fc41a75b
TT
3002017-09-27 Tom Tromey <tom@tromey.com>
301
302 * thread.c (thread_name_command, thread_find_command): Constify.
303
67810076
TT
3042017-09-27 Tom Tromey <tom@tromey.com>
305
306 * probe.c (enable_probes_command, disable_probes_command):
307 Constify.
308
1d8b34a7
TT
3092017-09-27 Tom Tromey <tom@tromey.com>
310
311 * symfile.c (symbol_file_command): Constify.
312 * gdbcore.h (deprecated_file_changed_hook): Constify.
313 * exec.c (deprecated_file_changed_hook, exec_file_command)
314 (file_command): Constify.
315 * defs.h (symbol_file_command): Constify.
316
442019e1
TT
3172017-09-27 Tom Tromey <tom@tromey.com>
318
319 * remote-fileio.c (set_system_call_allowed)
320 (show_system_call_allowed): Constify.
321
2983f7cb
TT
3222017-09-27 Tom Tromey <tom@tromey.com>
323
324 * tracepoint.c (delete_trace_variable_command)
325 (tfind_end_command, tfind_start_command, tfind_pc_command)
326 (tfind_tracepoint_command, tfind_line_command)
327 (tfind_range_command, tfind_outside_command): Constify.
328
4fd41b24
TT
3292017-09-27 Tom Tromey <tom@tromey.com>
330
331 * ax-gdb.c (maint_agent_printf_command, agent_command)
332 (agent_eval_command): Constify.
333
f2fc3015
TT
3342017-09-27 Tom Tromey <tom@tromey.com>
335
336 * tracepoint.c (info_scope_command): Constify.
337 * python/python.c (gdbpy_decode_line): Constify.
338 * python/py-breakpoint.c (bppy_init): Constify.
339 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
340 * location.h: (new_linespec_location)
341 (string_to_event_location_basic, string_to_event_location):
342 Constify.
343 * location.c (new_linespec_location)
344 (string_to_event_location_basic, string_to_event_location):
345 Constify.
346 * linespec.h (decode_line_with_current_source)
347 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
348 * linespec.c (linespec_lex_to_end)
349 (decode_line_with_current_source)
350 (decode_line_with_last_displayed): Constify.
351 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
352 Constify.
353 * cli/cli-cmds.c (edit_command, list_command): Constify.
354 * breakpoint.h (until_break_command, watch_command_wrapper)
355 (awatch_command_wrapper, rwatch_command_wrapper)
356 (init_ada_exception_breakpoint): Constify.
357 * breakpoint.c (break_command_1, dprintf_command)
358 (break_range_command, watch_command_wrapper)
359 (rwatch_command_wrapper, awatch_command_wrapper)
360 (until_break_command, init_ada_exception_breakpoint)
361 (strace_marker_create_sals_from_location, trace_command)
362 (ftrace_command, strace_command, struct tracepoint): Constify.
363 * ax-gdb.c (agent_command_1): Constify.
364 * ada-lang.c (ada_exception_sal): Constify.
365
8c2f95f4
TT
3662017-09-27 Tom Tromey <tom@tromey.com>
367
368 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
369 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
370 (get_context_size, no_chunk, get_insn_history_modifiers)
371 (cmd_record_insn_history, get_call_history_modifiers)
372 (cmd_record_call_history): Constify.
373
a0d65762
TT
3742017-09-27 Tom Tromey <tom@tromey.com>
375
376 * source.c (show_substitute_path_command)
377 (unset_substitute_path_command, set_substitute_path_command):
378 Constify.
379
58971144
TT
3802017-09-27 Tom Tromey <tom@tromey.com>
381
382 * typeprint.c (maintenance_print_type): Constify.
383 * maint.c (maintenance_dump_me, maintenance_demangle)
384 (maintenance_time_display, maintenance_info_sections)
385 (maintenance_print_statistics, maintenance_deprecate)
386 (maintenance_undeprecate): Constify.
387 (maintenance_do_deprecate): Constify. Use std::string.
388 (maintenance_selftest): Constify.
389 * gdbtypes.h (maintenance_print_type): Constify.
390
c482f52c
TT
3912017-09-27 Tom Tromey <tom@tromey.com>
392
393 * hppa-tdep.c (unwind_command): Constify.
394
e100df1a
TT
3952017-09-27 Tom Tromey <tom@tromey.com>
396
397 * target-descriptions.c (unset_tdesc_filename_cmd)
398 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
399 Constify.
400
31d56ade
TT
4012017-09-27 Tom Tromey <tom@tromey.com>
402
403 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
404
b961da0b
TT
4052017-09-27 Tom Tromey <tom@tromey.com>
406
407 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
408
e2d8ae16
TT
4092017-09-27 Tom Tromey <tom@tromey.com>
410
411 * tui/tui-regs.c (tui_reg_command): Constify.
412
863779b0
TT
4132017-09-27 Tom Tromey <tom@tromey.com>
414
415 * skip.c (skip_file_command, skip_function_command)
416 (skip_enable_command, skip_disable_command, skip_delete_command):
417 Constify.
418
cdb34d4a
TT
4192017-09-27 Tom Tromey <tom@tromey.com>
420
421 * record-btrace.c (cmd_record_btrace_bts_start)
422 (cmd_record_btrace_pt_start): Constify.
423
e99c83e7
TT
4242017-09-27 Tom Tromey <tom@tromey.com>
425
426 * symmisc.c (maintenance_print_symbols)
427 (maintenance_print_msymbols, maintenance_print_objfiles)
428 (maintenance_info_symtabs, maintenance_check_symtabs)
429 (maintenance_expand_symtabs, maintenance_info_line_tables):
430 Constify.
431
32faf971
TT
4322017-09-27 Tom Tromey <tom@tromey.com>
433
434 * top.c (new_ui_command): Constify.
435
2cf311eb
TT
4362017-09-27 Tom Tromey <tom@tromey.com>
437
438 * symfile.c (add_symbol_file_command)
439 (remove_symbol_file_command, list_overlays_command)
440 (map_overlay_command, unmap_overlay_command)
441 (overlay_auto_command, overlay_manual_command)
442 (overlay_off_command, overlay_load_command): Constify.
443
e6738699
TT
4442017-09-27 Tom Tromey <tom@tromey.com>
445
446 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
447 (info_spu_mailbox_command, info_spu_dma_command)
448 (info_spu_proxydma_command): Constify.
449
aa360cd5
TT
4502017-09-27 Tom Tromey <tom@tromey.com>
451
452 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
453
898241a5
TT
4542017-09-27 Tom Tromey <tom@tromey.com>
455
456 * cli/cli-script.c (user_defined_command): Constify.
457
2d0ac106
TT
4582017-09-27 Tom Tromey <tom@tromey.com>
459
460 * cli/cli-dump.c (dump_memory_command, dump_value_command)
461 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
462 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
463 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
464 (dump_binary_value, append_binary_memory, append_binary_value):
465 Constify.
466 (struct dump_context) <func>: Constify.
467 (add_dump_command): Update.
468
dede02ce
TT
4692017-09-27 Tom Tromey <tom@tromey.com>
470
471 * cli/cli-cmds.c (show_version, show_configuration)
472 (source_command, show_user): Constify.
473
d3cb6b99
TT
4742017-09-27 Tom Tromey <tom@tromey.com>
475
476 * target.c (maintenance_print_target_stack): Constify.
477
1970a12f
TT
4782017-09-27 Tom Tromey <tom@tromey.com>
479
480 * interps.c (interpreter_exec_cmd): Constify.
481
41243651
TT
4822017-09-27 Tom Tromey <tom@tromey.com>
483
484 * record-full.c (cmd_record_full_restore): Constify.
485
4465d9db
TT
4862017-09-27 Tom Tromey <tom@tromey.com>
487
488 * memattr.c (enable_mem_command, disable_mem_command)
489 (delete_mem_command): Constify.
490
ad25e423
TT
4912017-09-27 Tom Tromey <tom@tromey.com>
492
493 * value.c (show_convenience): Constify.
494
d64097b1
TT
4952017-09-27 Tom Tromey <tom@tromey.com>
496
497 * gdbcore.h (core_file_command): Update.
498 * corefile.c (core_file_command): Constify.
499
4d4589ef
TT
5002017-09-27 Tom Tromey <tom@tromey.com>
501
502 * user-regs.c (maintenance_print_user_registers): Constify.
503
32a7bf17
TT
5042017-09-27 Tom Tromey <tom@tromey.com>
505
506 * cp-namespace.c (maintenance_cplus_namespace): Constify.
507
4a475551
TT
5082017-09-27 Tom Tromey <tom@tromey.com>
509
510 * cp-support.c (first_component_command): Constify.
511
990b9f9f
TT
5122017-09-27 Tom Tromey <tom@tromey.com>
513
514 * psymtab.c (maintenance_print_psymbols)
515 (maintenance_info_psymtabs, maintenance_check_psymtabs):
516 Constify.
517
c281872e
TT
5182017-09-27 Tom Tromey <tom@tromey.com>
519
520 * windows-tdep.c (display_tib): Constify.
521
5b64bf74
TT
5222017-09-27 Tom Tromey <tom@tromey.com>
523
524 * linux-fork.c (delete_checkpoint_command)
525 (detach_checkpoint_command): Constify.
526
4ada038f
TT
5272017-09-27 Tom Tromey <tom@tromey.com>
528
529 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
530
57f5a81b
TT
5312017-09-27 Tom Tromey <tom@tromey.com>
532
533 * arc-tdep.c (dump_arc_instruction_command): Constify.
534
b0a8e6c4
TT
5352017-09-27 Tom Tromey <tom@tromey.com>
536
537 * valprint.c (set_radix, show_radix): Constify.
538
8d97dc1c
TT
5392017-09-27 Tom Tromey <tom@tromey.com>
540
541 * dtrace-probe.c (info_probes_dtrace_command): Constify.
542
eb7c454d
TT
5432017-09-27 Tom Tromey <tom@tromey.com>
544
545 * command.h (not_just_help_class_command): Update.
546 * cli/cli-decode.h (not_just_help_class_command): Update.
547 * cli/cli-decode.c (not_just_help_class_command): Constify.
548
e4e33335
TT
5492017-09-27 Tom Tromey <tom@tromey.com>
550
551 * gdb_bfd.c (maintenance_info_bfds): Constify.
552
0450cc4c
TT
5532017-09-27 Tom Tromey <tom@tromey.com>
554
555 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
556 overloads.
557 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
558 (do_const_cfunc): New function.
559 (cmd_cfunc_eq): New overload.
560 (cli_user_command_p): Check do_const_cfunc.
561 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
562 const_cfunc.
563 * command.h (add_cmd): Add const overload and no-function
564 overload.
565 (set_cmd_cfunc): Add const overload.
566 (cmd_const_cfunc_ftype): Declare.
567 (cmd_cfunc_eq): Add const overload.
568 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
569 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
570 overload.
571
a9bbfbd8
TT
5722017-09-27 Tom Tromey <tom@tromey.com>
573
574 * macroexp.c (get_next_token_for_substitution): New function.
575 (substitute_args): Call it. Check for __VA_OPT__.
576
5230b05a
WT
5772017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
578 Pedro Alves <palves@redhat.com>
579
580 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
581 producer_is_icc_lt_14.
582 (producer_is_icc_lt_14): New function.
583 (check_producer): Add code for checking version of ICC.
584 (producer_is_icc): Move to producer.c.
585 (read_structure_type): Restrict ICC workaround to ICC<14.
586 * producer.c: Include selftest.h.
587 (producer_is_icc, producer_parsing_tests, _initialize_producer):
588 New functions.
589 * producer.h (producer_is_icc): New declaration.
590
b32b108a
WT
5912017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
592
593 * Makefile.in (SFILES): Add producer.c.
594 (COMMON_OBS): Add producer.o
595 * amd64-tdep.c (producer.h): Add new include.
596 * dwarf2read.c (producer.h): Add new include.
597 * producer.c: New file.
598 * producer.h: New file.
599 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
600 producer.c.
601 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
602 producer.h.
603
5007d765
MK
6042017-09-26 Matthias Klose <doko@ubuntu.com>
605
606 * configure.ac: Search ncursesw before ncurses.
607 Check ncursesw/ncurses.h before ncurses/ncurses.h.
608 * gdb_curses.h: Include <ncursesw/ncurses.h>
609 * config.in, configure: Regenerate.
610
281c4447
RO
6112017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
612
613 PR gdb/22185
614 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
615 obsolete.
616 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
617 Remove i386sol2 support.
618 * configure.nat <i386sol2>: Remove.
619 <sol2-64>: Fold into ...
620 <sol2>: ... this.
621 Move common settings to default section.
622 Add sol-thread.o.
623 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
624 x86_64-*-solaris2.1[0-9]*>: Rename to ...
625 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
626 <i[34567]86-*-solaris*>: Remove.
627 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
628
629 * configure.ac: Remove wctype in libw check.
630 (_MSE_INT_H): Don't define on Solaris 7-9.
631 <solaris*>: Remove libthread_db.so.1 check.
632 * configure: Regenerate.
633 * config.in: Regenerate.
634
635 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
636 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
637 (gdb_ps_size_t): Remove.
638 Use base types in users.
639 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
640
641 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
642
39b06c20
RO
6432017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
644
645 PR build/22206
646 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
647 (adi_is_addr_mapped): Likewise.
648 (PSR_ICC): Don't redefine.
649 (PSR_IMPL): Likewise.
650
6c3e20f1
TT
6512017-09-25 Tom Tromey <tom@tromey.com>
652
653 * regcache.c (regcache::dump): Use string_printf.
654
b292235f
TT
6552017-09-25 Tom Tromey <tom@tromey.com>
656
657 * regcache.c (class regcache_invalidator): New.
658 (struct register_to_invalidate): Remove.
659 (make_cleanup_regcache_invalidate): Remove.
660 (regcache::raw_write): Use regcache_invalidator.
661
9ac86b52
TT
6622017-09-25 Tom Tromey <tom@tromey.com>
663
664 * spu-tdep.c (spu2ppu_sniffer): Update.
665 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
666 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
667 Remove.
668 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
669 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
670 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
671 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
672 (frame_pop): Update.
673
c0e383c6
TT
6742017-09-25 Tom Tromey <tom@tromey.com>
675
676 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
677 * regcache.h (regcache_xfree): Don't declare.
678 * regcache.c (regcache_xfree): Remove.
679 (do_regcache_xfree): Use delete.
680 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
681 * linux-fork.c (free_fork): Use delete.
682 (fork_save_infrun_state): Likewise.
683 * jit.c (jit_dealloc_cache): Use delete.
684 * infrun.c (discard_infcall_suspend_state): Use delete.
685
791199cc
TT
6862017-09-25 Tom Tromey <tom@tromey.com>
687
688 * regcache.h (regcache_xmalloc): Don't declare.
689 (regcache_raw_set_cached_value): Update comment.
690 * regcache.c (regcache_xmalloc): Remove.
691 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
692 * jit.c (jit_frame_sniffer): Use new.
693 * frame.c (frame_save_as_regcache): Use new.
694
289e23aa
AA
6952017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
696
697 * NEWS: Advertise support for guarded-storage registers on IBM z.
698
1b63490c
AA
6992017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
700
701 * s390-linux-nat.c (have_regset_gs): New static variable.
702 (s390_linux_fetch_inferior_registers): Handle guarded-storage
703 control block and guarded-storage broadcast control regsets.
704 (s390_read_description): Detect whether the target has
705 guarded-storage support, return appropriate tdesc.
706 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
707 (features/s390x-gs-linux64.c): Likewise.
708 (struct gdbarch_tdep) <have_gs>: New field.
709 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
710 (s390_gsbc_regset): New variables.
711 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
712 and s390_gsbc_regset, if applicable.
713 (s390_core_read_description): Check whether core file was from a
714 target with guarded-storage support; include appropriate regsets.
715 (s390_gdbarch_init): Add registers for guarded-storage support.
716 (_initialize_s390_tdep): Initialize new target descriptions that
717 include registers for guarded-storage support.
718 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
719 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
720 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
721 (S390_NUM_REGS): Adjust macro definition.
722 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
723 (tdesc_s390x_gs_linux64): New declarations.
724
96235dc1
AA
7252017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
726
727 * features/s390-gs-linux64.xml: New file.
728 * features/s390-gs.xml: New file.
729 * features/s390-gsbc.xml: New file.
730 * features/s390x-gs-linux64.xml: New file.
731 * features/Makefile (WHICH): Add s390-gs-linux64 and
732 s390x-gs-linux64.
733 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
734 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
735 * features/s390-gs-linux64.c: New generated file.
736 * features/s390x-gs-linux64.c: New file.
737 * regformats/s390-gs-linux64.dat: New file.
738 * regformats/s390x-gs-linux64.dat: New file.
739
b4a7c699
TT
7402017-09-23 Tom Tromey <tom@tromey.com>
741
742 * defs.h (make_cleanup_override_quit_handler): Don't declare.
743
c2f97536
TT
7442017-09-22 Tom Tromey <tom@tromey.com>
745
746 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
747 type to scoped_restore_tmpl.
748 <scoped_input_handler>: Initialize m_quit_handler directly.
749
43573013
SDJ
7502017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
751
752 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
753 (cd_command): Likewise. Free "current_directory" before
754 assigning to it.
755 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
756 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
757 * top.c (gdb_dirbuf): Remove global declaration.
758 * top.h (gdb_dirbuf): Likewise.
759
6ec2e0f5
SDJ
7602017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
761
762 * gnulib/aclocal.m4: Regenerate.
763 * gnulib/config.in: Regenerate.
764 * gnulib/configure: Regenerate.
765 * gnulib/import/Makefile.am: Regenerate.
766 * gnulib/import/Makefile.in: Regenerate.
767 * gnulib/import/assure.h: New file.
768 * gnulib/import/at-func.c: Likewise
769 * gnulib/import/chdir-long.c: New file.
770 * gnulib/import/chdir-long.h: New file.
771 * gnulib/import/cloexec.c: New file.
772 * gnulib/import/cloexec.h: New file.
773 * gnulib/import/close.c: New file.
774 * gnulib/import/closedir.c: New file.
775 * gnulib/import/dirent-private.h: New file.
776 * gnulib/import/dup-safer.c: New file.
777 * gnulib/import/dup.c: New file.
778 * gnulib/import/dup2.c: New file.
779 * gnulib/import/error.c: New file.
780 * gnulib/import/error.h: New file.
781 * gnulib/import/exitfail.c: New file.
782 * gnulib/import/exitfail.h: New file.
783 * gnulib/import/fchdir.c: New file.
784 * gnulib/import/fcntl.c: New file.
785 * gnulib/import/fcntl.in.h: New file.
786 * gnulib/import/fd-hook.c: New file.
787 * gnulib/import/fd-hook.h: New file.
788 * gnulib/import/fd-safer.c: New file.
789 * gnulib/import/fdopendir.c: New file.
790 * gnulib/import/filename.h: New file.
791 * gnulib/import/filenamecat-lgpl.c: New file.
792 * gnulib/import/filenamecat.h: New file.
793 * gnulib/import/fstat.c: New file.
794 * gnulib/import/fstatat.c: New file.
795 * gnulib/import/getcwd-lgpl.c: New file.
796 * gnulib/import/getcwd.c: New file.
797 * gnulib/import/getdtablesize.c: New file.
798 * gnulib/import/getlogin_r.c: New file.
799 * gnulib/import/getprogname.c: New file.
800 * gnulib/import/getprogname.h: New file.
801 * gnulib/import/gettext.h: New file.
802 * gnulib/import/glob-libc.h: New file.
803 * gnulib/import/glob.c: New file.
804 * gnulib/import/glob.in.h: New file.
805 * gnulib/import/intprops.h: New file.
806 * gnulib/import/m4/chdir-long.m4: New file.
807 * gnulib/import/m4/close.m4: New file.
808 * gnulib/import/m4/closedir.m4: New file.
809 * gnulib/import/m4/d-ino.m4: New file.
810 * gnulib/import/m4/d-type.m4: New file.
811 * gnulib/import/m4/dup.m4: New file.
812 * gnulib/import/m4/dup2.m4: New file.
813 * gnulib/import/m4/error.m4: New file.
814 * gnulib/import/m4/fchdir.m4: New file.
815 * gnulib/import/m4/fcntl.m4: New file.
816 * gnulib/import/m4/fcntl_h.m4: New file.
817 * gnulib/import/m4/fdopendir.m4: New file.
818 * gnulib/import/m4/filenamecat.m4: New file.
819 * gnulib/import/m4/fstat.m4: New file.
820 * gnulib/import/m4/fstatat.m4: New file.
821 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
822 * gnulib/import/m4/getcwd-path-max.m4: New file.
823 * gnulib/import/m4/getcwd.m4: New file.
824 * gnulib/import/m4/getdtablesize.m4: New file.
825 * gnulib/import/m4/getlogin_r.m4: New file.
826 * gnulib/import/m4/getprogname.m4: New file.
827 * gnulib/import/m4/glob.m4: New file.
828 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
829 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
830 * gnulib/import/m4/mempcpy.m4: New file.
831 * gnulib/import/m4/memrchr.m4: New file.
832 * gnulib/import/m4/mode_t.m4: New file.
833 * gnulib/import/m4/msvc-inval.m4: New file.
834 * gnulib/import/m4/msvc-nothrow.m4: New file.
835 * gnulib/import/m4/open.m4: New file.
836 * gnulib/import/m4/openat.m4: New file.
837 * gnulib/import/m4/opendir.m4: New file.
838 * gnulib/import/m4/readdir.m4: New file.
839 * gnulib/import/m4/realloc.m4: New file.
840 * gnulib/import/m4/rewinddir.m4: New file.
841 * gnulib/import/m4/save-cwd.m4: New file.
842 * gnulib/import/m4/strdup.m4: New file.
843 * gnulib/import/m4/strerror.m4: New file.
844 * gnulib/import/m4/unistd-safer.m4: New file.
845 * gnulib/import/mempcpy.c: New file.
846 * gnulib/import/memrchr.c: New file.
847 * gnulib/import/msvc-inval.c: New file.
848 * gnulib/import/msvc-inval.h: New file.
849 * gnulib/import/msvc-nothrow.c: New file.
850 * gnulib/import/msvc-nothrow.h: New file.
851 * gnulib/import/open.c: New file.
852 * gnulib/import/openat-die.c: New file.
853 * gnulib/import/openat-priv.h: New file.
854 * gnulib/import/openat-proc.c: New file.
855 * gnulib/import/openat.c: New file.
856 * gnulib/import/openat.h: New file.
857 * gnulib/import/opendir.c: New file.
858 * gnulib/import/pipe-safer.c: New file.
859 * gnulib/import/readdir.c: New file.
860 * gnulib/import/realloc.c: New file.
861 * gnulib/import/rewinddir.c: New file.
862 * gnulib/import/save-cwd.c: New file.
863 * gnulib/import/save-cwd.h: New file.
864 * gnulib/import/strdup.c: New file.
865 * gnulib/import/strerror-override.c: New file.
866 * gnulib/import/strerror-override.h: New file.
867 * gnulib/import/strerror.c: New file.
868 * gnulib/import/unistd--.h: New file.
869 * gnulib/import/unistd-safer.h: New file.
870 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
871 "getcwd" and "glob".
872 * ser-tcp.c: Undefine "close" before redefining it.
873
432ae719
SM
8742017-09-21 Simon Marchi <simon.marchi@ericsson.com>
875
876 * guile/scm-value.c (gdbscm_value_address): Initialize address,
877 get rid of res_val.
878
4fa7574e
RO
8792017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
880
881 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
882 <sol2,sparc>: Likewise.
883 <sol2-64,i386>: Likewise.
884
885 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
886 -Wdeprecated-declarations on *-*-solaris*.
887 * configure: Regenerate.
888
889 * procfs.c: Include "nat/inferior.h".
890 (procfs_info_proc): Fix typo.
891
f6327dcb
KB
8922017-09-21 Kevin Buettner <kevinb@redhat.com>
893
894 * remote.c (vector): Include.
895 (struct private_thread_info): Add field, thread_handle.
896 (free_private_thread_info): Deallocate storage associated with
897 thread handle.
898 (get_private_info_thread): Initialize `thread_handle' field.
899 (struct thread_item): Add field, thread_handle.
900 (clear_threads_listing_context): Deallocate storage associated
901 with thread handle.
902 (start_thread): Add support for "handle" attribute.
903 (thread_attributes): Add "handle".
904 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
905 field.
906 (remote_update_thread_list): Update thread_handle.
907 (remote_thread_handle_to_thread_info): New function.
908 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
909
fbbe5337
KB
9102017-09-21 Kevin Buettner <kevinb@redhat.com>
911
912 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
913 function.
914 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
915 * python/python-internal.h (thread_object_type): Declare.
916
e04ee09e
KB
9172017-09-21 Kevin Buettner <kevinb@redhat.com>
918
919 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
920 (target_thread_handle_to_thread_info): Declare.
921 * target.c (target_thread_handle_to_thread_info): New function.
922 * target-delegates.c: Regenerate.
923 * gdbthread.h (find_thread_by_handle): Declare.
924 * thread.c (find_thread_by_handle): New function.
925 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
926 function.
927 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
928
1e5b66ed
SM
9292017-09-21 Simon Marchi <simon.marchi@ericsson.com>
930
931 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
932
ebe48ba0
SM
9332017-09-21 Simon Marchi <simon.marchi@ericsson.com>
934
935 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
936
0a0bf5dc
YQ
9372017-09-21 Yao Qi <yao.qi@linaro.org>
938
939 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
940 to gdb_target_obs.
941
d1b0a7bf
TT
9422017-09-20 Tom Tromey <tom@tromey.com>
943
944 * breakpoint.c (struct counted_command_line): Remove.
945 (breakpoint_commands): Update.
946 (alloc_counted_command_line, incref_counted_command_line)
947 (decref_counted_command_line, do_cleanup_counted_command_line)
948 (make_cleanup_decref_counted_command_line): Remove.
949 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
950 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
951 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
952 (save_breakpoints): Update.
953 * breakpoint.h (counted_command_line): Now a typedef to
954 shared_ptr.
955 (struct breakpoint) <commands>: Now a counted_command_line.
956 (struct bpstats) <command>: Likewise.
957
48649e1b
TT
9582017-09-20 Tom Tromey <tom@tromey.com>
959
960 * breakpoint.c (struct commands_info, do_map_commands_command):
961 Remove.
962 (commands_command_1): Update.
963 (iterate_over_related_breakpoints): Take a function_view.
964 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
965 (delete_command): Update.
966 (map_breakpoint_numbers): Take a function_view.
967 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
968 (disable_command): Update.
969 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
970 (enable_command): Update.
971 (struct disp_data, do_enable_breakpoint_disp)
972 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
973 (do_map_enable_delete_breakpoint): Remove.
974 (enable_once_command, enable_count_command, enable_delete_command)
975 (delete_trace_variable_command): Update.
976
04afa70c
TT
9772017-09-20 Tom Tromey <tom@tromey.com>
978
979 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
980 (bpstat_clear): Use delete.
981 (bpstats): New constructors.
982 (bpstat_copy, bpstat_stop_status): Use new.
983 (dprintf_after_condition_true): Update.
984 * breakpoint.h (bpstats::bpstats): Add constructors.
985 (bpstats::~bpstats): Add destructor.
986
c83833f4
PA
9872017-09-20 Pedro Alves <palves@redhat.com>
988
989 * eval.c (make_params): Delete, refactored as ...
990 (class fake_method): ... this new type's ctor.
991 (fake_method::~fake_method): New.
992 (evaluate_subexp_standard): Use 'fake_method'.
993
223ffa71
TT
9942017-09-20 Tom Tromey <tom@tromey.com>
995
996 * windows-nat.c (get_windows_debug_event, windows_wait)
997 (do_initial_windows_stuff, windows_attach): Update.
998 * utils.c (vwarning, internal_vproblem): Update.
999 (ui_unregister_input_event_handler_cleanup)
1000 (prepare_to_handle_input): Remove.
1001 (class scoped_input_handler): New.
1002 (defaulted_query, prompt_for_continue): Update.
1003 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1004 Update.
1005 * top.c (undo_terminal_modifications_before_exit): Update.
1006 * target/target.h (target_terminal_init, target_terminal_inferior)
1007 (target_terminal_ours): Don't declare.
1008 (class target_terminal): New.
1009 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1010 (target_terminal_ours_for_output)
1011 (make_cleanup_restore_target_terminal): Don't declare.
1012 (target_terminal_info): Remove.
1013 * target.c (enum terminal_state, terminal_state): Remove.
1014 (target_terminal::terminal_state): Define.
1015 (target_terminal::init): Rename from target_terminal_init.
1016 (target_terminal::inferior): Rename from
1017 target_terminal_inferior.
1018 (target_terminal::ours): Rename from target_terminal_ours.
1019 (target_terminal::ours_for_output): Rename from
1020 target_terminal_ours_for_output.
1021 (target_terminal::info): New method.
1022 (cleanup_restore_target_terminal)
1023 (make_cleanup_restore_target_terminal): Remove.
1024 * solib.c (handle_solib_event): Update.
1025 * remote.c (remote_serial_quit_handler): Update.
1026 (remote_terminal_inferior, remote_wait_as): Update.
1027 * record-full.c (record_full_wait_1): Update.
1028 * nto-procfs.c (procfs_create_inferior): Update.
1029 * nat/fork-inferior.c (startup_inferior): Update.
1030 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1031 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1032 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1033 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1034 (mi_breakpoint_created, mi_breakpoint_deleted)
1035 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1036 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1037 (mi_user_selected_context_changed, report_initial_inferior):
1038 Update.
1039 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1040 (linux_nat_terminal_inferior): Update.
1041 * infrun.c (follow_fork_inferior)
1042 (handle_vfork_child_exec_or_exit, do_target_resume)
1043 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1044 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1045 Update.
1046 * inflow.c (child_terminal_init, info_terminal_command): Update.
1047 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1048 (attach_command): Update.
1049 * infcall.c (call_thread_fsm_should_stop): Update.
1050 * gnu-nat.c (gnu_attach): Update.
1051 * extension.c (struct active_ext_lang_state)
1052 (restore_active_ext_lang): Update.
1053 * exceptions.c (print_flush): Update.
1054 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1055 (struct quit_handler_cleanup_data, restore_quit_handler)
1056 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1057 Remove.
1058 * cp-support.c (gdb_demangle): Update.
1059 * breakpoint.c (update_inserted_breakpoint_locations)
1060 (insert_breakpoint_locations, handle_jit_event)
1061 (disable_breakpoints_in_unloaded_shlib): Update.
1062 * annotate.c (annotate_breakpoints_invalid)
1063 (annotate_frames_invalid): Update.
1064
013af3fc
TT
10652017-09-20 Tom Tromey <tom@tromey.com>
1066
1067 * main.c (catch_command_errors): Rename from
1068 catch_command_errors_const.
1069 (captured_main_1): Update.
1070
06871ae8
PA
10712017-09-20 Pedro Alves <palves@redhat.com>
1072
1073 * cli/cli-cmds.c (list_command): Use print_sal_location.
1074 (print_sal_location): New function.
1075 (ambiguous_line_spec): Use print_sal_location.
1076 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1077 * symtab.c (find_function_start_sal): Likewise.
1078 * symtab.h (symtab_and_line::symbol): New field.
1079
e5f25bc5
PA
10802017-09-20 Pedro Alves <palves@redhat.com>
1081
1082 * linespec.c (minsym_found): Handle non-text minsyms.
1083 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1084
1b7fa39e
WT
10852017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1086
1087 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1088 backslash.
1089
37dd0825
WT
10902017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1091
1092 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1093 vmovups instead vmovaps.
1094 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1095
4e5a4f58
JB
10962017-09-19 John Baldwin <jhb@FreeBSD.org>
1097
1098 * NEWS (Changes since GDB 8.0): Add starti.
1099 * infcmd.c (enum run_break): New.
1100 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1101 case.
1102 (run_command): Use enum run_how.
1103 (start_command): Likewise.
1104 (starti_command): New function.
1105 (RUN_ARGS_HELP): New macro.
1106 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1107 commands. Add starti command.
1108
aa70c9f1
YQ
11092017-09-19 Yao Qi <yao.qi@linaro.org>
1110
1111 * Makefile.in (monitor.o): Remove the rule.
1112
d6541620
YQ
11132017-09-19 Yao Qi <yao.qi@linaro.org>
1114
1115 * annotate.h (struct annotate_arg_emitter): Use
1116 DISABLE_COPY_AND_ASSIGN.
1117 * common/refcounted-object.h (refcounted_object): Likewise.
1118 * completer.h (struct completion_result): Likewise.
1119 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1120 * filename-seen-cache.h (filename_seen_cache): Likewise.
1121 * gdbcore.h (thread_section_name): Likewise.
1122 * gdb_regex.h (compiled_regex): Likewise.
1123 * gdbthread.h (scoped_restore_current_thread): Likewise.
1124 * inferior.h (scoped_restore_current_inferior): Likewise.
1125 * jit.c (jit_reader): Likewise.
1126 * linespec.h (struct linespec_result): Likewise.
1127 * mi/mi-parse.h (struct mi_parse): Likewise.
1128 * nat/fork-inferior.c (execv_argv): Likewise.
1129 * progspace.h (scoped_restore_current_program_space): Likewise.
1130 * python/python-internal.h (class gdbpy_enter): Likewise.
1131 * regcache.h (regcache): Likewise.
1132 * target-descriptions.c (struct tdesc_reg): Likewise.
1133 (struct tdesc_type): Likewise.
1134 (struct tdesc_feature): Likewise.
1135 * ui-out.h (ui_out_emit_type): Likewise.
1136
0615127c
SM
11372017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1138
1139 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1140 label abort_expression.
1141
5e187554
SM
11422017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1143
1144 * common/buffer.c (buffer_xml_printf): Adjust.
1145 * common/xml-utils.c (xml_escape_text): Change return type to
1146 std::string, update code accordingly.
1147 * common/xml-utils.h (xml_escape_text): Change return type to
1148 std::string.
1149 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1150 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1151 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1152 Adjust.
1153
c3d7b541
SM
11542017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1155
1156 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1157 (SUBDIR_UNITTESTS_OBS): Add new object file.
1158 * unittests/xml-utils-selftests.c: New file.
1159
1526853e
SM
11602017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1161
1162 * common/selftest.h (selftest): New struct/interface.
1163 (register_test): Add name parameter, add new overload.
1164 (run_tests): Add filter parameter.
1165 (for_each_selftest_ftype): New typedef.
1166 (for_each_selftest): New declaration.
1167 * common/selftest.c (tests): Change type to
1168 map<string, unique_ptr<selftest>>.
1169 (simple_selftest): New struct.
1170 (register_test): New function.
1171 (register_test): Add name parameter and use it.
1172 (run_tests): Add filter parameter and use it. Add prints.
1173 Adjust to vector -> map change.
1174 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1175 registering selftests.
1176 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1177 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1178 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1179 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1180 * findvar.c (_initialize_findvar): Likewise.
1181 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1182 * maint.c (maintenance_selftest): Update call to run_tests.
1183 (maintenance_info_selftests): New function.
1184 (_initialize_maint_cmds): Register "maintenance info selftests"
1185 command. Update "maintenance selftest" doc.
1186 * regcache.c (_initialize_regcache): Add names when registering
1187 selftests.
1188 * rust-exp.y (_initialize_rust_exp): Likewise.
1189 * selftest-arch.c (gdbarch_selftest): New struct.
1190 (gdbarch_tests): Remove.
1191 (register_test_foreach_arch): Add name parameter. Call
1192 register_test.
1193 (tests_with_arch): Remove, move most content to
1194 gdbarch_selftest::operator().
1195 (_initialize_selftests_foreach_arch): Remove.
1196 * selftest-arch.h (register_test_foreach_arch): Add name
1197 parameter.
1198 (run_tests_with_arch): New declaration.
1199 * utils-selftests.c (_initialize_utils_selftests): Add names
1200 when registering selftests.
1201 * utils.c (_initialize_utils): Likewise.
1202 * unittests/array-view-selftests.c
1203 (_initialize_array_view_selftests): Likewise.
1204 * unittests/environ-selftests.c (_initialize_environ_selftests):
1205 Likewise.
1206 * unittests/function-view-selftests.c
1207 (_initialize_function_view_selftests): Likewise.
1208 * unittests/offset-type-selftests.c
1209 (_initialize_offset_type_selftests): Likewise.
1210 * unittests/optional-selftests.c
1211 (_initialize_optional_selftests): Likewise.
1212 * unittests/scoped_restore-selftests.c
1213 (_initialize_scoped_restore_selftests): Likewise.
1214 * NEWS: Document "maintenance selftest" and "maint info
1215 selftests".
1216
5846367a
SM
12172017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1218
1219 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1220 scoped_restore.
1221
bd77e8ff
SM
12222017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1223
1224 * mi/mi-main.c (mi_load_progress): Make uiout variable
1225 a unique_ptr.
1226
26a67918
PA
12272017-09-15 Pedro Alves <palves@redhat.com>
1228
1229 * compile/compile-c-types.c (convert_enum, convert_int)
1230 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1231
3f8a7804
SM
12322017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1233
1234 * dwarf2read.c (copy_string): Remove.
1235 (parse_macro_definition): Replace copy_string with savestring.
1236
8d200706
YQ
12372017-09-15 Yao Qi <yao.qi@linaro.org>
1238
1239 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1240 gdb_target_obs.
1241 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1242 Likewise.
1243 (i[34567]86-*-linux*): Likewise.
1244
d185219d
SM
12452017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1246
1247 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1248 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1249 <stack>: Change type to std::vector.
1250 <stack_len, stack_allocated>: Remove.
1251 <grow_stack>: Remove.
1252 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1253 (dwarf_expr_context::~dwarf_expr_context): Remove.
1254 (dwarf_expr_context::grow_stack): Remove.
1255 (dwarf_expr_context::push): Adjust.
1256 (dwarf_expr_context::pop): Adjust.
1257 (dwarf_expr_context::fetch): Adjust.
1258 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1259 (dwarf_expr_context::stack_empty_p): Adjust.
1260 (dwarf_expr_context::execute_stack_op): Adjust.
1261
eccd80d6
SM
12622017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1263
1264 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1265 return type to bool.
1266 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1267
69009882
SM
12682017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1269
1270 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1271 Change type to bool.
1272 (dwarf_stack_value) <in_stack_memory>: Likewise.
1273 (dwarf_expr_context) <push_address>: Change parameter type to
1274 bool.
1275 <fetch_in_stack_memory>: Change return type to bool.
1276 <push>: Change parameter type to bool.
1277 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1278 to bool.
1279 (dwarf_expr_context::push_address): Likewise.
1280 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1281 to bool.
1282 (dwarf_expr_context::execute_stack_op): Adjust.
1283 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1284
1e467161
SM
12852017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1286
1287 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1288 (struct dwarf_expr_context) <n_pieces>: Remove.
1289 <pieces>: Change type to std::vector.
1290 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1291 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1292 pieces.
1293 (dwarf_expr_context::add_piece): Adjust.
1294 * dwarf2loc.c (struct piece_closure): Initialize fields.
1295 <n_pieces>: Remove.
1296 <pieces>: Change type to std::vector.
1297 (allocate_piece_closure): Adjust, change parameter to
1298 std::vector rvalue and std::move it to piece_closure.
1299 (rw_pieced_value): Adjust.
1300 (check_pieced_synthetic_pointer): Adjust.
1301 (indirect_synthetic_pointer): Adjust.
1302 (coerce_pieced_ref): Adjust.
1303 (free_pieced_value_closure): Adjust. Use delete to free
1304 piece_closure.
1305 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1306 to allocate_piece_closure.
1307 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1308
0782db84
SM
13092017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1310
1311 * probe.h (probe_ops_cp): Remove typedef.
1312 (DEF_VEC_P (probe_ops_cp)): Remove.
1313 (all_probe_ops): Change type to std::vector.
1314 * probe.c (info_probes_for_ops): Adjust to vector change.
1315 (probe_linespec_to_ops): Likewise.
1316 (all_probe_ops): Change type to std::vector.
1317 (_initialize_probe): Adjust to vector change.
1318 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1319 * elfread.c (elf_get_probes): Likewise.
1320 * stap-probe.c (_initialize_stap_probe): Likewise.
1321
1eac6bea
SM
13222017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1323
1324 * probe.h (struct bound_probe): Define constructors.
1325 * probe.c (bound_probe_s): Remove typedef.
1326 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1327 (collect_probes): Change return type to std::vector, remove
1328 cleanup.
1329 (compare_probes): Return bool, change parameter type. Change
1330 semantic to "less than".
1331 (gen_ui_out_table_header_info): Change parameter to std::vector
1332 and update.
1333 (exists_probe_with_pops): Likewise.
1334 (info_probes_for_ops): Update to std::vector change.
1335 (enable_probes_command): Likewise.
1336 (disable_probes_command): Likewise.
1337
aaa63a31
SM
13382017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1339
1340 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1341 vec to std::vector.
1342 * probe.c (parse_probes_in_pspace): Update.
1343 (find_probes_in_objfile): Update.
1344 (find_probe_by_pc): Update.
1345 (collect_probes): Update.
1346 (probe_any_get_probes): Update.
1347 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1348 return type to reference to std::vector.
1349 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1350 std::vector and update.
1351 (dtrace_process_dof): Likewise.
1352 (dtrace_get_probes): Likewise.
1353 * elfread.c (elf_get_probes): Change return type to std::vector,
1354 store an std::vector in bfd_data.
1355 (probe_key_free): Update to std::vector.
1356 * stap-probe.c (handle_stap_probe): Change parameter to
1357 std::vector and update.
1358 (stap_get_probes): Likewise.
1359 * symfile-debug.c (debug_sym_get_probes): Change return type to
1360 std::vector and update.
1361
cb85b21b
TT
13622017-09-11 Tom Tromey <tom@tromey.com>
1363
1364 * breakpoint.c (program_breakpoint_here_p): Update.
1365 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1366 from make_show_memory_breakpoints_cleanup. Return a
1367 scoped_restore_tmpl<int>.
1368 (restore_show_memory_breakpoints): Remove.
1369 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1370 * mem-break.c (memory_validate_breakpoint): Update.
1371 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1372 (ia64_memory_remove_breakpoint): Update.
1373 (ia64_breakpoint_from_pc): Update.
1374 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1375 from make_show_memory_breakpoints_cleanup.
1376
8fbc99ef
TT
13772017-09-11 Tom Tromey <tom@tromey.com>
1378
1379 * d-namespace.c (d_lookup_symbol): Use std::string.
1380 (find_symbol_in_baseclass): Likewise.
1381
50feb4bd
TT
13822017-09-11 Tom Tromey <tom@tromey.com>
1383
1384 * ctf.c (ctf_start): Use std::string.
1385
c6dc63a1
TT
13862017-09-11 Tom Tromey <tom@tromey.com>
1387
1388 * ada-lang.c (is_known_support_routine): Update.
1389 (ada_unhandled_exception_name_addr_from_raise): Update.
1390 * guile/scm-frame.c (gdbscm_frame_name): Update.
1391 * python/py-frame.c (frapy_name): Update.
1392 (frapy_function): Update.
1393 * stack.h (find_frame_funname): Update.
1394 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1395 (print_frame): Update.
1396
d6b9b80f
TT
13972017-09-11 Tom Tromey <tom@tromey.com>
1398
1399 * findcmd.c (put_bits): Take a gdb::byte_vector.
1400 (parse_find_args): Return gdb::byte_vector. "args" now const.
1401 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1402 cleanups.
1403 (find_command): Update.
1404
a9921622
TT
14052017-09-11 Tom Tromey <tom@tromey.com>
1406
1407 * cli/cli-script.c (class scoped_restore_hook_in): New.
1408 (clear_hook_in_cleanup): Remove.
1409 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1410 scoped_restore_hook_in.
1411
be0d7abb
TT
14122017-09-11 Tom Tromey <tom@tromey.com>
1413
1414 * cli/cli-script.c (restore_interp): Remove.
1415 (read_command_lines): Use scoped_restore_interp.
1416 * interps.c (scoped_restore_interp::set_temp): Rename from
1417 interp_set_temp.
1418 * interps.h (class scoped_restore_interp): New.
1419 (interp_set_temp): Remove.
1420
00f675ff
TT
14212017-09-11 Tom Tromey <tom@tromey.com>
1422
1423 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1424 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1425 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1426 scoped_restore.
1427 (mi_cmd_break_insert_1): Update.
1428 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1429 scoped_restore.
1430
cb791d59
TT
14312017-09-11 Tom Tromey <tom@tromey.com>
1432
1433 * demangle.c (demangle_command): Update.
1434 * breakpoint.c (disable_command): Update.
1435 (enable_command): Update.
1436 (find_location_by_number): Make "number" const. Use
1437 get_number_trailer.
1438 * cli/cli-utils.c (extract_arg): Return std::string.
1439 * probe.c (parse_probe_linespec): Update. Change types.
1440 (collect_probes): Take string arguments.
1441 (parse_probe_linespec): Likewise.
1442 (info_probes_for_ops): Update.
1443 (enable_probes_command): Update.
1444 (disable_probes_command): Update.
1445 * break-catch-sig.c (catch_signal_split_args): Update.
1446 * mi/mi-parse.c (mi_parse): Update.
1447
2039bd9f
TT
14482017-09-11 Tom Tromey <tom@tromey.com>
1449
1450 * language.h (language_enum): Make argument const.
1451 * language.c (language_enum): Make argument const.
1452
f1735a53
TT
14532017-09-11 Tom Tromey <tom@tromey.com>
1454
1455 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1456 as function.
1457 (skip_to_space): Rename from skip_to_space_const.
1458 * common/common-utils.c (skip_to_space): New function.
1459 (skip_to_space): Rename from skip_to_space_const.
1460 * cli/cli-utils.h (get_number): Rename from get_number_const.
1461 (extract_arg): Rename from extract_arg_const.
1462 * cli/cli-utils.c (get_number): Rename from get_number_const.
1463 (extract_arg): Rename from extract_arg_const.
1464 (number_or_range_parser::get_number): Use ::get_number.
1465 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1466 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1467 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1468 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1469 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1470 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1471 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1472 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1473
7d221d74
TT
14742017-09-11 Tom Tromey <tom@tromey.com>
1475
1476 * python/python.c (do_start_initialization): Use
1477 py-event-types.def to initialize types.
1478 Define all object type structures.
1479 * python/python-internal.h: Don't declare event initialization
1480 functions.
1481 * python/py-threadevent.c (thread_event_object_type): Don't
1482 define.
1483 * python/py-stopevent.c (stop_event_object_type): Don't define.
1484 * python/py-signalevent.c (signal_event_object_type): Don't
1485 declare or define.
1486 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1487 (clear_objfiles_event_object_type): Don't declare or define.
1488 * python/py-infevents.c (inferior_call_pre_event_object_type)
1489 (inferior_call_post_event_object_type)
1490 (register_changed_event_object_type)
1491 (memory_changed_event_object_type): Don't declare or define.
1492 * python/py-inferior.c (new_thread_event_object_type)
1493 (new_inferior_event_object_type)
1494 (inferior_deleted_event_object_type): Don't declare or define.
1495 * python/py-exitedevent.c (exited_event_object_type): Don't
1496 declare or define.
1497 * python/py-evts.c (gdbpy_initialize_py_events): Use
1498 py-all-events.def.
1499 * python/py-events.h (thread_event_object_type): Don't declare.
1500 (events_object): Use py-all-events.def.
1501 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1502 py-event-types.def.
1503 * python/py-event-types.def: New file.
1504 * python/py-continueevent.c (create_continue_event_object): Don't
1505 declare or define.
1506 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1507 declare or define.
1508 * python/py-all-events.def: New file.
1509
35c61a1d
TT
15102017-09-11 Tom Tromey <tom@tromey.com>
1511
1512 * python/py-threadevent.c (create_thread_event_object): Return
1513 gdbpy_ref.
1514 * python/py-stopevent.h (create_stop_event_object)
1515 (create_breakpoint_event_object, create_signal_event_object):
1516 Update.
1517 * python/py-stopevent.c (create_stop_event_object): Return
1518 gdbpy_ref.
1519 (emit_stop_event): Update.
1520 * python/py-signalevent.c (create_signal_event_object): Return
1521 gdbpy_ref.
1522 * python/py-infevents.c (create_inferior_call_event_object):
1523 Update.
1524 * python/py-event.h (create_event_object)
1525 (create_thread_event_object): Update.
1526 * python/py-event.c (create_event_object): Return gdbpy_ref.
1527 * python/py-continueevent.c: Return gdbpy_ref.
1528 * python/py-bpevent.c (create_breakpoint_event_object): Return
1529 gdbpy_ref.
1530
7c96f8c1
TT
15312017-09-11 Tom Tromey <tom@tromey.com>
1532
1533 PR python/15622:
1534 * NEWS: Add entry.
1535 * python/python.c (do_start_initialization): Initialize new event
1536 types.
1537 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1538 (gdbpy_initialize_inferior_deleted_event)
1539 (gdbpy_initialize_new_thread_event): Declare.
1540 * python/py-threadevent.c (create_thread_event_object): Add option
1541 "thread" parameter.
1542 * python/py-inferior.c (new_thread_event_object_type)
1543 (new_inferior_event_object_type)
1544 (inferior_deleted_event_object_type): Declare.
1545 (python_new_inferior, python_inferior_deleted): New functions.
1546 (add_thread_object): Emit new_thread event.
1547 (gdbpy_initialize_inferior): Attach new functions to corresponding
1548 observers.
1549 (new_thread, new_inferior, inferior_deleted): Define new event
1550 types.
1551 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1552 registries.
1553 * python/py-events.h (events_object) <new_inferior,
1554 inferior_deleted, new_thread>: New fields.
1555 * python/py-event.h (create_thread_event_breakpoint): Add optional
1556 "thread" parameter.
1557
72542b8e
AB
15582017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1561 check current_ui instead.
1562 (internal_vproblem): Likewise.
1563
0d64823e
SM
15642017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1565
1566 * thread.c (print_thread_info_1): Remove unnecessary calls to
1567 uiout->is_mi_like_p.
1568
eb1e02fd
TT
15692017-09-09 Tom Tromey <tom@tromey.com>
1570
1571 * namespace.h (add_using_directive): Update.
1572 * namespace.c (add_using_directive): Change type of excludes to
1573 std::vector.
1574 * dwarf2read.c (read_import_statement): Use std::vector.
1575 (read_namespace): Update.
1576 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1577
0fc21fd8
TT
15782017-09-09 Tom Tromey <tom@tromey.com>
1579
1580 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1581
49663d05
TT
15822017-09-09 Tom Tromey <tom@tromey.com>
1583
1584 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1585
0b868b60
TT
15862017-09-09 Tom Tromey <tom@tromey.com>
1587
1588 * stack.c (func_command): Use gdb::def_vector.
1589
c0470d48
TT
15902017-09-09 Tom Tromey <tom@tromey.com>
1591
1592 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1593 ui_out_emit_list, ui_out_emit_tuple.
1594 (mi_cmd_var_update): Likewise.
1595
ca5909c7
TT
15962017-09-09 Tom Tromey <tom@tromey.com>
1597
1598 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1599 ui_out_redirect_pop.
1600 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1601 ui_out_redirect_pop.
1602 * utils.c (do_ui_out_redirect_pop)
1603 (make_cleanup_ui_out_redirect_pop): Remove.
1604 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1605 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1606 * ui-out.h (ui_out_redirect_pop): New class.
1607
e6a2252a
TT
16082017-09-09 Tom Tromey <tom@tromey.com>
1609
1610 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1611 (list_available_thread_groups, mi_cmd_list_thread_groups)
1612 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1613 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1614 Likewise.
1615
393702cd
TT
16162017-09-09 Tom Tromey <tom@tromey.com>
1617
1618 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1619 ui_out_emit_tuple.
1620
76f9c9cf
TT
16212017-09-09 Tom Tromey <tom@tromey.com>
1622
1623 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1624 * stack.c (print_frame): Use ui_out_emit_tuple.
1625 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1626 (info_spu_mailbox_command, info_spu_dma_command)
1627 (info_spu_proxydma_command): Likewise.
1628 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1629 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1630 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1631 ui_out_emit_tuple.
1632 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1633
dc9fe180
TT
16342017-09-09 Tom Tromey <tom@tromey.com>
1635
1636 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1637 (class ui_out_emit_table): Update comment.
1638 * ui-out.c (do_cleanup_table_end)
1639 (make_cleanup_ui_out_table_begin_end): Remove.
1640 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1641 (info_spu_dma_cmdlist): Likewise.
1642 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1643 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1644 ui_out_emit_table.
1645
f8cc3da6
TT
16462017-09-09 Tom Tromey <tom@tromey.com>
1647
1648 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1649 ui_out_emit_list, gdb::optional.
1650
481695ed
JB
16512017-09-09 John Baldwin <jhb@FreeBSD.org>
1652
1653 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1654 prototype.
1655 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1656 prototype.
1657 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1658 prototype.
1659 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1660 * ada-exp.y: Remove _initialize_ada_exp prototype.
1661 * ada-lang.c: Remove _initialize_ada_language prototype.
1662 * ada-tasks.c: Remove _initialize_tasks prototype.
1663 * addrmap.c: Remove _initialize_addrmap prototype.
1664 * agent.c: Remove _initialize_agent prototype.
1665 * aix-thread.c: Remove _initialize_aix_thread prototype.
1666 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1667 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1668 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1669 prototype.
1670 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1671 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1672 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1673 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1674 prototype.
1675 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1676 prototype.
1677 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1678 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1679 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1680 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1681 prototype.
1682 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1683 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1684 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1685 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1686 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1687 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1688 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1689 prototype.
1690 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1691 prototype.
1692 * annotate.c: Remove _initialize_annotate prototype.
1693 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1694 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1695 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1696 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1697 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1698 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1699 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1700 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1701 prototype.
1702 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1703 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1704 * auto-load.c: Remove _initialize_auto_load prototype.
1705 * auxv.c: Remove _initialize_auxv prototype.
1706 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1707 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1708 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1709 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1710 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1711 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1712 prototype.
1713 * break-catch-throw.c: Remove _initialize_break_catch_throw
1714 prototype.
1715 * breakpoint.c: Remove _initialize_breakpoint prototype.
1716 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1717 * btrace.c: Remove _initialize_btrace prototype.
1718 * charset.c: Remove _initialize_charset prototype.
1719 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1720 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1721 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1722 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1723 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1724 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1725 * coffread.c: Remove _initialize_coffread prototype.
1726 * compile/compile.c: Remove _initialize_compile prototype.
1727 * complaints.c: Remove _initialize_complaints prototype.
1728 * completer.c: Remove _initialize_completer prototype.
1729 * copying.awk: Remove _initialize_copying prototype.
1730 * copying.c: Regenerate.
1731 * core-regset.c: Remove _initialize_core_regset prototype.
1732 * corefile.c: Remove _initialize_core prototype.
1733 * corelow.c: Remove _initialize_corelow prototype.
1734 * cp-abi.c: Remove _initialize_cp_abi prototype.
1735 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1736 * cp-support.c: Remove _initialize_cp_support prototype.
1737 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1738 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1739 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1740 * ctf.c: Remove _initialize_ctf prototype.
1741 * d-lang.c: Remove _initialize_d_language prototype.
1742 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1743 prototype.
1744 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1745 * dbxread.c: Remove _initialize_dbxread prototype.
1746 * dcache.c: Remove _initialize_dcache prototype.
1747 * demangle.c: Remove _initialize_demangler prototype.
1748 * disasm-selftests.c: Remove _initialize_disasm_selftests
1749 prototype.
1750 * disasm.c: Remove _initialize_disasm prototype.
1751 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1752 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1753 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1754 prototype.
1755 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1756 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1757 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1758 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1759 * elfread.c: Remove _initialize_elfread prototype.
1760 * exec.c: Remove _initialize_exec prototype.
1761 * extension.c: Remove _initialize_extension prototype.
1762 * f-lang.c: Remove _initialize_f_language prototype.
1763 * f-valprint.c: Remove _initialize_f_valprint prototype.
1764 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1765 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1766 * filesystem.c: Remove _initialize_filesystem prototype.
1767 * findcmd.c: Remove _initialize_mem_search prototype.
1768 * fork-child.c: Remove _initialize_fork_child prototype.
1769 * frame-base.c: Remove _initialize_frame_base prototype.
1770 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1771 * frame.c: Remove _initialize_frame prototype.
1772 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1773 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1774 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1775 * gcore.c: Remove _initialize_gcore prototype.
1776 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1777 * gdbarch.c: Regenerate.
1778 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1779 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1780 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1781 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1782 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1783 * go-lang.c: Remove _initialize_go_language prototype.
1784 * go32-nat.c: Remove _initialize_go32_nat prototype.
1785 * guile/guile.c: Remove _initialize_guile prototype.
1786 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1787 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1788 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1789 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1790 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1791 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1792 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1793 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1794 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1795 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1796 prototype.
1797 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1798 prototype.
1799 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1800 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1801 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1802 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1803 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1804 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1805 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1806 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1807 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1808 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1809 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1810 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1811 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1812 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1813 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1814 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1815 prototype.
1816 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1817 prototype.
1818 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1819 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1820 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1821 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1822 * infcall.c: Remove _initialize_infcall prototype.
1823 * infcmd.c: Remove _initialize_infcmd prototype.
1824 * inferior.c: Remove _initialize_inferiors prototype.
1825 * inflow.c: Remove _initialize_inflow prototype.
1826 * infrun.c: Remove _initialize_infrun prototype.
1827 * interps.c: Remove _initialize_interpreter prototype.
1828 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1829 * jit.c: Remove _initialize_jit prototype.
1830 * language.c: Remove _initialize_language prototype.
1831 * linux-fork.c: Remove _initialize_linux_fork prototype.
1832 * linux-nat.c: Remove _initialize_linux_nat prototype.
1833 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1834 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1835 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1836 * m2-lang.c: Remove _initialize_m2_language prototype.
1837 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1838 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1839 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1840 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1841 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1842 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1843 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1844 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1845 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1846 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1847 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1848 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1849 * machoread.c: Remove _initialize_machoread prototype.
1850 * macrocmd.c: Remove _initialize_macrocmd prototype.
1851 * macroscope.c: Remove _initialize_macroscope prototype.
1852 * maint.c: Remove _initialize_maint_cmds prototype.
1853 * mdebugread.c: Remove _initialize_mdebugread prototype.
1854 * memattr.c: Remove _initialize_mem prototype.
1855 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1856 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1857 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1858 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1859 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1860 * microblaze-linux-tdep.c: Remove
1861 _initialize_microblaze_linux_tdep prototype.
1862 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1863 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1864 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1865 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1866 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1867 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1868 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1869 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1870 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1871 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1872 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1873 prototype.
1874 * mipsread.c: Remove _initialize_mipsread prototype.
1875 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1876 prototype.
1877 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1878 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1879 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1880 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1881 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1882 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1883 prototype.
1884 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1885 * nto-procfs.c: Remove _initialize_procfs prototype.
1886 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1887 * objc-lang.c: Remove _initialize_objc_language prototype.
1888 * objfiles.c: Remove _initialize_objfiles prototype.
1889 * observer.c: Remove observer_test_first_notification_function,
1890 observer_test_second_notification_function,
1891 observer_test_third_notification_function, and
1892 _initialize_observer prototypes.
1893 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1894 * osabi.c: Remove _initialize_gdb_osabi prototype.
1895 * osdata.c: Remove _initialize_osdata prototype.
1896 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1897 * parse.c: Remove _initialize_parse prototype.
1898 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1899 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1900 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1901 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1902 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1903 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1904 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1905 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1906 * printcmd.c: Remove _initialize_printcmd prototype.
1907 * probe.c: Remove _initialize_probe prototype.
1908 * proc-api.c: Remove _initialize_proc_api prototype.
1909 * proc-events.c: Remove _initialize_proc_events prototype.
1910 * proc-service.c: Remove _initialize_proc_service prototype.
1911 * procfs.c: Remove _initialize_procfs prototype.
1912 * psymtab.c: Remove _initialize_psymtab prototype.
1913 * python/python.c: Remove _initialize_python prototype.
1914 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1915 * record-btrace.c: Remove _initialize_record_btrace prototype.
1916 * record-full.c: Remove _initialize_record_full prototype.
1917 * record.c: Remove _initialize_record prototype.
1918 * regcache.c: Remove _initialize_regcache prototype.
1919 * reggroups.c: Remove _initialize_reggroup prototype.
1920 * remote-notif.c: Remove _initialize_notif prototype.
1921 * remote-sim.c: Remove _initialize_remote_sim prototype.
1922 * remote.c: Remove _initialize_remote prototype.
1923 * reverse.c: Remove _initialize_reverse prototype.
1924 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1925 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1926 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1927 prototype.
1928 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1929 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1930 * rust-exp.y: Remove _initialize_rust_exp prototype.
1931 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1932 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1933 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1934 * score-tdep.c: Remove _initialize_score_tdep prototype.
1935 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1936 prototype.
1937 * ser-go32.c: Remove _initialize_ser_dos prototype.
1938 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1939 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1940 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1941 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1942 * serial.c: Remove _initialize_serial prototype.
1943 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1944 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1945 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1946 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1947 * skip.c: Remove _initialize_step_skip prototype.
1948 * sol-thread.c: Remove _initialize_sol_thread prototype.
1949 * solib-aix.c: Remove _initialize_solib_aix prototype.
1950 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1951 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1952 * solib-frv.c: Remove _initialize_frv_solib prototype.
1953 * solib-spu.c: Remove _initialize_spu_solib prototype.
1954 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1955 * solib-target.c: Remove _initialize_solib_target prototype.
1956 * solib.c: Remove _initialize_solib prototype.
1957 * source.c: Remove _initialize_source prototype.
1958 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1959 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1960 prototype.
1961 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1962 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1963 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1964 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1965 prototype.
1966 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1967 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1968 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1969 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1970 prototype.
1971 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1972 prototype.
1973 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1974 prototype.
1975 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1976 prototype.
1977 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1978 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1979 prototype.
1980 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1981 prototype.
1982 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1983 prototype.
1984 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1985 prototype.
1986 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1987 prototype.
1988 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1989 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1990 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1991 * stabsread.c: Remove _initialize_stabsread prototype.
1992 * stack.c: Remove _initialize_stack prototype.
1993 * stap-probe.c: Remove _initialize_stap_probe prototype.
1994 * std-regs.c: Remove _initialize_frame_reg prototype.
1995 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1996 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1997 * symfile.c: Remove _initialize_symfile prototype.
1998 * symmisc.c: Remove _initialize_symmisc prototype.
1999 * symtab.c: Remove _initialize_symtab prototype.
2000 * target-dcache.c: Remove _initialize_target_dcache prototype.
2001 * target-descriptions.c: Remove _initialize_target_descriptions
2002 prototype.
2003 * thread.c: Remove _initialize_thread prototype.
2004 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2005 prototype.
2006 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2007 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2008 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2009 prototype.
2010 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2011 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2012 * tracefile.c: Remove _initialize_tracefile prototype.
2013 * tracepoint.c: Remove _initialize_tracepoint prototype.
2014 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2015 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2016 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2017 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2018 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2019 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2020 * tui/tui.c: Remove _initialize_tui prototype.
2021 * typeprint.c: Remove _initialize_typeprint prototype.
2022 * user-regs.c: Remove _initialize_user_regs prototype.
2023 * utils.c: Remove _initialize_utils prototype.
2024 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2025 * valarith.c: Remove _initialize_valarith prototype.
2026 * valops.c: Remove _initialize_valops prototype.
2027 * valprint.c: Remove _initialize_valprint prototype.
2028 * value.c: Remove _initialize_values prototype.
2029 * varobj.c: Remove _initialize_varobj prototype.
2030 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2031 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2032 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2033 * windows-nat.c: Remove _initialize_windows_nat,
2034 _initialize_check_for_gdb_ini, and _initialize_loadable
2035 prototypes.
2036 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2037 * xcoffread.c: Remove _initialize_xcoffread prototype.
2038 * xml-support.c: Remove _initialize_xml_support prototype.
2039 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2040 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2041 prototype.
2042 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2043 prototype.
2044 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2045
a611b5cb
KS
20462017-09-08 Keith Seitz <keiths@redhat.com>
2047
2048 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2049 field.
2050
469412dd
CW
20512017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2052
2053 * f-valprint.c (f_val_print): Remove check for one byte
2054 sized integers. Remove printing of character type.
2055
a5ad232b
FP
20562017-09-08 Frank Penczek <frank.penczek@intel.com>
2057 Christoph Weinmann <christoph.t.weinmann@intel.com>
2058 Bernhard Heckel <bernhard.heckel@intel.com>
2059
2060 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2061 to maintain proper indentation when printing pointers/refs.
2062
e5014227
JB
20632017-09-07 Joel Brobecker <brobecker@adacore.com>
2064
2065 GDB 8.0.1 released.
2066
63c99141
JB
20672017-09-07 Joel Brobecker <brobecker@adacore.com>
2068
2069 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2070
69c1e056
TT
20712017-09-05 Tom Tromey <tom@tromey.com>
2072
2073 * parse.c (funcall_chain): Now a std::vector.
2074 (start_arglist, end_arglist): Simplify.
2075 (free_funcalls): Remove.
2076 (parse_exp_in_context_1): Remove cleanup.
2077
fef704bf
TT
20782017-09-05 Tom Tromey <tom@tromey.com>
2079
2080 * go-exp.y (go_parse): Don't create a cleanup.
2081
5613c585
TT
20822017-09-05 Tom Tromey <tom@tromey.com>
2083
2084 * d-exp.y (PrimaryExpression): Use std::string.
2085 (d_parse): Don't create a cleanup.
2086
eae49211
TT
20872017-09-05 Tom Tromey <tom@tromey.com>
2088
2089 * utils.c (do_clear_parser_state): Remove.
2090 (make_cleanup_clear_parser_state): Remove.
2091 * p-exp.y (pascal_parse): Use scoped_restore.
2092 * m2-exp.y (m2_parse): Use scoped_restore.
2093 * f-exp.y (f_parse): Use scoped_restore.
2094 * d-exp.y (d_parse): Use scoped_restore.
2095 * c-exp.y (c_parse): Use scoped_restore.
2096 * ada-exp.y (ada_parse): Use scoped_restore.
2097 * utils.h (make_cleanup_clear_parser_state): Remove.
2098
73b9be8b
KS
20992017-09-06 Keith Seitz <keiths@redhat.com>
2100
2101 * dwarf2read.c (dw2_linkage_name_attr): New function.
2102 (dw2_linkage_name): New function.
2103 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2104 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2105 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2106
a102602b
KR
21072017-09-06 Kamil Rytarowski <n54@gmx.com>
2108
2109 * config/djgpp/djconfig.sh: Correct shell portability issue.
2110
28ad437d
KR
21112017-09-06 Kamil Rytarowski <n54@gmx.com>
2112
2113 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2114
351787dd
JB
21152017-09-06 John Baldwin <jhb@FreeBSD.org>
2116
2117 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2118 * NEWS: Mention new FreeBSD/mips native configuration.
2119 * configure.host: Add aarch64*-*-freebsd*.
2120 * configure.nat: Likewise.
2121 * aarch64-fbsd-nat.c: New file.
2122
c0f84956
JB
21232017-09-06 John Baldwin <jhb@FreeBSD.org>
2124
2125 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2126 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2127 * NEWS: Mention new FreeBSD/aarch64 target.
2128 * configure.tgt: Add aarch64*-*-freebsd*.
2129 * aarch64-fbsd-tdep.c: New file.
2130 * aarch64-fbsd-tdep.h: New file.
2131
7610297a
KR
21322017-09-06 Kamil Rytarowski <n54@gmx.com>
2133
2134 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2135
fbd1b771
JK
21362017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2139 of TLS symbols.
2140
5ca79eae
PW
21412017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2142
2143 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2144 call.
2145
bf93d7ba
SM
21462017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2147
2148 * infrun.c (follow_exec): Call add_thread after
2149 target_find_description.
2150
1bb7c059
SM
21512017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2152
2153 * infrun.c (handle_inferior_event_1): When exec'ing, read
2154 stop_pc after follow_exec.
2155
fc809827
SM
21562017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2157
2158 * remote.c (process_g_packet): Update error message.
2159
d2fcdd85
YQ
21602017-09-05 Yao Qi <yao.qi@linaro.org>
2161
2162 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2163 targets.
2164
e69570ee
PA
21652017-09-05 Pedro Alves <palves@redhat.com>
2166
2167 * eval.c (eval_call, evaluate_funcall): New functions, factored
2168 out from ...
2169 (evaluate_subexp_standard): ... this.
2170
22916b07
YQ
21712017-09-05 Yao Qi <yao.qi@linaro.org>
2172
2173 * amd64-tdep.c (amd64_target_description): Create target
2174 descriptions.
2175 (_initialize_amd64_tdep): Don't call functions
2176 initialize_tdesc_amd64_*. Add self tests.
2177 * arch/amd64.c (amd64_create_target_description): Add parameter
2178 is_linux. Call set_tdesc_osabi if is_linux is true.
2179 * arch/amd64.h (amd64_create_target_description): Update the
2180 declaration.
2181 * arch/i386.c (i386_create_target_description): Add parameter
2182 is_linux. Call set_tdesc_osabi if is_linux is true.
2183 * arch/i386.h (i386_create_target_description): Update
2184 declaration.
2185 * configure.tgt: Add i386.o to gdb_target_obs.
2186 * features/Makefile (XMLTOC): Remove i386/*.xml.
2187 * features/i386/amd64-avx-avx512.c: Remove.
2188 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2189 * features/i386/amd64-avx-mpx.c: Remove.
2190 * features/i386/amd64-avx.c: Remove.
2191 * features/i386/amd64-mpx.c: Remove.
2192 * features/i386/amd64.c: Remove.
2193 * features/i386/i386-avx-avx512.c: Remove.
2194 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2195 * features/i386/i386-avx-mpx.c: Remove.
2196 * features/i386/i386-avx.c: Remove.
2197 * features/i386/i386-mmx.c: Remove.
2198 * features/i386/i386-mpx.c: Remove.
2199 * features/i386/i386.c: Remove.
2200 * i386-tdep.c: Don't include features/i386/i386*.c., include
2201 target-descriptions.h and arch/i386.h.
2202 (i386_target_description): Create target descriptions.
2203 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2204 functions. Do self tests.
2205
0854b7b1
YQ
22062017-09-05 Yao Qi <yao.qi@linaro.org>
2207
2208 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2209 * features/i386/amd64-avx-avx512-linux.c: Removed.
2210 * features/i386/amd64-avx-linux.c: Removed.
2211 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2212 * features/i386/amd64-avx-mpx-linux.c: Removed.
2213 * features/i386/amd64-linux.c: Removed.
2214 * features/i386/amd64-mpx-linux.c: Removed.
2215 * features/i386/x32-avx-avx512-linux.c: Removed.
2216 * features/i386/x32-avx-linux.c: Removed.
2217 * features/i386/x32-linux.c: Removed.
2218
b4570e4b
YQ
22192017-09-05 Yao Qi <yao.qi@linaro.org>
2220
2221 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2222 features/i386/*.c.
2223 (amd64_linux_read_description): Call
2224 amd64_create_target_description.
2225 * arch/amd64.c: New file.
2226 * arch/amd64.h: New file.
2227 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2228 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2229
6c73f67f
YQ
22302017-09-05 Yao Qi <yao.qi@linaro.org>
2231
2232 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2233 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2234 (amd64_linux_read_description): Create target descriptions.
2235 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2236 functions. Add unit tests.
2237 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2238 x32-core.xml.
2239 * features/i386/64bit-avx.c: Generated.
2240 * features/i386/64bit-avx512.c: Generated.
2241 * features/i386/64bit-core.c: Generated.
2242 * features/i386/64bit-linux.c: Generated.
2243 * features/i386/64bit-mpx.c: Generated.
2244 * features/i386/64bit-pkeys.c: Generated.
2245 * features/i386/64bit-segments.c: Generated.
2246 * features/i386/64bit-sse.c: Generated.
2247 * features/i386/x32-core.c: Generated.
2248 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2249 c files for amd64-linux and x32-linux.
2250
9d3d478b
YQ
22512017-09-05 Yao Qi <yao.qi@linaro.org>
2252
2253 * amd64-linux-tdep.c (amd64_linux_read_description): New
2254 function.
2255 (amd64_linux_core_read_description): Call
2256 amd64_linux_read_description.
2257 (amd64_linux_init_abi): Likewise.
2258 (amd64_x32_linux_init_abi): Likewise.
2259 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2260 * x86-linux-nat.c (x86_linux_read_description): Call
2261 amd64_linux_read_description.
2262
b9f1d50f
YQ
22632017-09-05 Yao Qi <yao.qi@linaro.org>
2264
2265 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2266 comments.
2267
188c9e6d
YQ
22682017-09-05 Yao Qi <yao.qi@linaro.org>
2269
2270 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2271 * features/i386/i386-avx-avx512-linux.c: Remove.
2272 * features/i386/i386-avx-linux.c: Remove.
2273 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2274 * features/i386/i386-avx-mpx-linux.c: Remove.
2275 * features/i386/i386-linux.c: Remove.
2276 * features/i386/i386-mmx-linux.c: Remove.
2277 * features/i386/i386-mpx-linux.c: Remove.
2278
5f035c07
YQ
22792017-09-05 Yao Qi <yao.qi@linaro.org>
2280
2281 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2282 (SFILES): Add arch/i386.c.
2283 (HFILES_NO_SRCDIR): Add arch/i386.h.
2284 * arch/i386.c: New file.
2285 * arch/i386.h: New file.
2286 * arch/tdesc.h (allocate_target_description): Declare.
2287 (set_tdesc_architecture): Declare.
2288 (set_tdesc_osabi): Declare.
2289 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2290 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2291 include arch/i386.h.
2292 (i386_linux_read_description): Remove code and call
2293 i386_create_target_description.
2294 (set_tdesc_architecture): New function.
2295 (set_tdesc_osabi): New function.
2296 * target-descriptions.h (allocate_target_description): Remove.
2297
0abe8a89
YQ
22982017-09-05 Yao Qi <yao.qi@linaro.org>
2299
2300 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2301 * target-descriptions.c (tdesc_create_feature): Likewise, and
2302 adjust code.
2303 * features/i386/32bit-avx.c: Re-generated.
2304 * features/i386/32bit-avx512.c: Re-generated.
2305 * features/i386/32bit-core.c: Re-generated.
2306 * features/i386/32bit-linux.c: Re-generated.
2307 * features/i386/32bit-mpx.c: Re-generated.
2308 * features/i386/32bit-pkeys.c: Re-generated.
2309 * features/i386/32bit-sse.c: Re-generated.
2310
0a188386
YQ
23112017-09-05 Yao Qi <yao.qi@linaro.org>
2312
2313 * regformats/regdef.h (struct reg): Override operator == and !=.
2314
f49ff000
YQ
23152017-09-05 Yao Qi <yao.qi@linaro.org>
2316
2317 * arch/tdesc.h: New file.
2318 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2319 * target-descriptions.c: Update comments.
2320 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2321 declarations.
2322 * features/i386/32bit-avx.c: Re-generated.
2323 * features/i386/32bit-avx512.c: Re-generated.
2324 * features/i386/32bit-core.c: Re-generated.
2325 * features/i386/32bit-linux.c: Re-generated.
2326 * features/i386/32bit-mpx.c: Re-generated.
2327 * features/i386/32bit-pkeys.c: Re-generated.
2328 * features/i386/32bit-sse.c: Re-generated.
2329
f7000548
YQ
23302017-09-05 Yao Qi <yao.qi@linaro.org>
2331
2332 * regformats/regdat.sh: Update generated code.
2333
c9a5e2a5
YQ
23342017-09-05 Yao Qi <yao.qi@linaro.org>
2335
2336 * regformats/regdat.sh: Adjust code order.
2337
d6b687ac
SM
23382017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2339
2340 * expprint.c (dump_subexp_body_standard): Use constant format
2341 string in fprintf_filtered call.
2342
a379bfd0
JB
23432017-09-04 John Baldwin <jhb@FreeBSD.org>
2344
2345 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2346 NetBSD/i386.
2347 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2348
f7efc967
JB
23492017-09-04 John Baldwin <jhb@FreeBSD.org>
2350
2351 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2352
c49fbc6c
JB
23532017-09-04 John Baldwin <jhb@FreeBSD.org>
2354
2355 * bsd-kvm.o: Define _KMEMUSER.
2356 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2357 * configure: Regenerate.
2358
26562e73
JB
23592017-09-04 John Baldwin <jhb@FreeBSD.org>
2360
2361 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2362 * i386-fbsd-nat.c: Likewise.
2363
31cf1487
JB
23642017-09-04 John Baldwin <jhb@FreeBSD.org>
2365
2366 * unittests/array-view-selftests.c: Add include of <array>.
2367
5b9f8a7c
JB
23682017-09-04 John Baldwin <jhb@FreeBSD.org>
2369
2370 * spu-tdep.c (flush_ea_cache): Add missing argument to
2371 call_function_by_hand.
2372
d69cf9b2
PA
23732017-09-04 Pedro Alves <palves@redhat.com>
2374
2375 * NEWS (Safer support for debugging with no debug info): New.
2376
3693fdb3
PA
23772017-09-04 Pedro Alves <palves@redhat.com>
2378
2379 * c-exp.y (function_method, function_method_void): Add current
2380 instance flags to TYPE_INSTANCE.
2381 * dwarf2read.c (check_modifier): New.
2382 (compute_delayed_physnames): Assert that only C++ adds delayed
2383 physnames. Mark fn_fields as const/volatile depending on
2384 physname.
2385 * eval.c (make_params): New type_instance_flags parameter. Use
2386 it as the new type's instance flags.
2387 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2388 flags element and pass it to make_params.
2389 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2390 instance flags element.
2391 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2392 * gdbtypes.h: Include "enum-flags.h".
2393 (type_instance_flags): New enum-flags type.
2394 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2395 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2396 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2397 (follow_type_instance_flags): New function.
2398 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2399 * parser-defs.h (follow_type_instance_flags): Declare.
2400 * valops.c (value_struct_elt_for_reference): const/volatile must
2401 match too.
2402
e68cb8e0
PA
24032017-09-04 Pedro Alves <palves@redhat.com>
2404
2405 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2406 function/method scopes; lookup the nested name as a function local
2407 static variable.
2408
858be34c
PA
24092017-09-04 Pedro Alves <palves@redhat.com>
2410
2411 (%type <voidval>): Add function_method.
2412 * c-exp.y (exp): New production for calls with no arguments.
2413 (function_method, function_method_void_or_typelist): New
2414 productions.
2415 (exp): New production for "method()::static_var".
2416 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2417 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2418 Handle OP_FUNC_STATIC_VAR.
2419 * parse.c (operator_length_standard):
2420 Handle OP_FUNC_STATIC_VAR.
2421
dd5901a6
PA
24222017-09-04 Pedro Alves <palves@redhat.com>
2423
2424 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2425 handling.
2426 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2427 Ditto.
2428 * parse.c (operator_length_standard, operator_check_standard):
2429 Ditto.
2430 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2431
46a4882b
PA
24322017-09-04 Pedro Alves <palves@redhat.com>
2433
2434 * ax-gdb.c: Include "typeprint.h".
2435 (gen_expr_for_cast): New function.
2436 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2437 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2438 type is unknown.
2439 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2440 nodebug_data_symbol.
2441 * eval.c: Include "typeprint.h".
2442 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2443 Error out if symbol has unknown type.
2444 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2445 evaluate_subexp_for_cast.
2446 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2447 OP_VAR_MSYM_VALUE.
2448 (evaluate_subexp_for_cast): New function.
2449 * gdbtypes.c (init_nodebug_var_type): New function.
2450 (objfile_type): Use it to initialize types of variables with no
2451 debug info.
2452 * typeprint.c (error_unknown_type): New.
2453 * typeprint.h (error_unknown_type): New declaration.
2454 * compile/compile-c-types.c (convert_type_basic): Handle
2455 TYPE_CODE_ERROR; warn and fallback to int for variables with
2456 unknown type.
2457
fe13dfec
PA
24582017-09-04 Pedro Alves <palves@redhat.com>
2459
2460 * eval.c (evaluate_var_value): New function, factored out from ...
2461 (evaluate_subexp_standard): ... here.
2462
d008ee21
PA
24632017-09-04 Pedro Alves <palves@redhat.com>
2464
2465 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2466 Remove useless assignments to 'op'.
2467
827d0c51
PA
24682017-09-04 Pedro Alves <palves@redhat.com>
2469
2470 * eval.c (eval_skip_value): New function.
2471 (evaluate_subexp_standard): Use it.
2472
2c5a2be1
PA
24732017-09-04 Pedro Alves <palves@redhat.com>
2474
2475 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2476 function name from symbol/minsym and pass it to
2477 error_call_unknown_return_type.
2478
74ea4be4
PA
24792017-09-04 Pedro Alves <palves@redhat.com>
2480
2481 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2482 * ax-gdb.c (gen_msym_var_ref): New function.
2483 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2484 * eval.c (evaluate_var_msym_value): New function.
2485 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2486 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2487 to call_function_by_hand.
2488 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2489 Handle OP_VAR_MSYM_VALUE.
2490 (union exp_element) <msymbol>: New field.
2491 * minsyms.h (struct type): Forward declare.
2492 (find_minsym_type_and_address): Declare.
2493 * parse.c (write_exp_elt_msym): New function.
2494 (write_exp_msymbol): Delete, refactored as ...
2495 (find_minsym_type_and_address): ... this new function.
2496 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2497 (operator_length_standard, operator_check_standard): Handle
2498 OP_VAR_MSYM_VALUE.
2499 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2500
7022349d
PA
25012017-09-04 Pedro Alves <palves@redhat.com>
2502
2503 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2504 TYPE_GNU_IFUNC specially here. Throw error if return type is
2505 unknown.
2506 * ada-typeprint.c (print_func_type): Handle functions with unknown
2507 return type.
2508 * c-typeprint.c (c_type_print_base): Handle functions and methods
2509 with unknown return type.
2510 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2511 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2512 * compile/compile-c-types.c: Include "objfiles.h".
2513 (convert_func): For functions with unknown return type, warn and
2514 default to int.
2515 * compile/compile-object-run.c (compile_object_run): Adjust call
2516 to call_function_by_hand_dummy.
2517 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2518 call_function_by_hand.
2519 * eval.c (evaluate_subexp_standard): Adjust calls to
2520 call_function_by_hand. Handle functions and methods with unknown
2521 return type. Pass expect_type to call_function_by_hand.
2522 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2523 return type.
2524 * gcore.c (call_target_sbrk): Adjust call to
2525 call_function_by_hand.
2526 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2527 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2528 an integer address type instead of nodebug.
2529 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2530 call_function_by_hand.
2531 * infcall.c (error_call_unknown_return_type): New function.
2532 (call_function_by_hand): New "default_return_type" parameter.
2533 Pass it down.
2534 (call_function_by_hand_dummy): New "default_return_type"
2535 parameter. Use it instead of defaulting to int. If there's no
2536 default and the return type is unknown, throw an error. If
2537 there's a default return type, and the called function has no
2538 debug info, then assume the function is prototyped.
2539 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2540 New "default_return_type" parameter.
2541 (error_call_unknown_return_type): New declaration.
2542 * linux-fork.c (call_lseek): Cast return type of lseek.
2543 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2544 call_function_by_hand.
2545 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2546 calls to call_function_by_hand.
2547 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2548 return type.
2549 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2550 (value_nsstring, print_object_command): Adjust calls to
2551 call_function_by_hand.
2552 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2553 functions with unknown return type.
2554 (pascal_type_print_func_varspec_suffix): New function.
2555 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2556 TYPE_CODE_METHOD>: Use it.
2557 * python/py-value.c (valpy_call): Adjust call to
2558 call_function_by_hand.
2559 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2560 call_function_by_hand.
2561 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2562 call_function_by_hand.
2563 * valops.c (value_allocate_space_in_inferior): Adjust call to
2564 call_function_by_hand.
2565 * typeprint.c (type_print_unknown_return_type): New function.
2566 * typeprint.h (type_print_unknown_return_type): New declaration.
2567
54990598
PA
25682017-09-04 Pedro Alves <palves@redhat.com>
2569
2570 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2571 types with more than one parameter as prototyped.
2572
9a24775b
PA
25732017-09-04 Pedro Alves <palves@redhat.com>
2574
2575 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2576 (disassemble_command): Use gdb_disassembly_flags instead of bare
2577 int.
2578 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2579 (dump_insns, do_mixed_source_and_assembly_deprecated)
2580 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2581 Use gdb_disassembly_flags instead of bare int.
2582 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2583 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2584 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2585 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2586 (enum gdb_disassembly_flag): ... values of this new enumeration.
2587 (gdb_disassembly_flags): Define.
2588 (gdb_disassembly)
2589 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2590 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2591 gdb_disassembly_flags instead of bare int.
2592 * record-btrace.c (btrace_insn_history)
2593 (record_btrace_insn_history, record_btrace_insn_history_range)
2594 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2595 instead of bare int.
2596 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2597 Use gdb_disassembly_flags instead of bare int.
2598 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2599 Define.
2600 * target-delegates.c: Regenerate.
2601 * target.c (target_insn_history, target_insn_history_from)
2602 (target_insn_history_range): Use gdb_disassembly_flags instead of
2603 bare int.
2604 * target.h: Include "disasm.h".
2605 (struct target_ops) <to_insn_history, to_insn_history_from,
2606 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2607 int.
2608 (target_insn_history, target_insn_history_from)
2609 (target_insn_history_range): Use gdb_disassembly_flags instead of
2610 bare int.
2611
80a65e9b
SM
26122017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2613
2614 * cli/cli-script.c (build_command_line): For if/while commands,
2615 check whether args is empty.
2616
6b66338c
SM
26172017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2618
2619 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2620 (enum command_control_type): Likewise.
2621 (struct command_line): Likewise.
2622 (free_command_lines): Likewise.
2623 (struct command_lines_deleter): Likewise.
2624 (command_line_up): Likewise.
2625 (read_command_lines): Likewise.
2626 (read_command_lines_1): Likewise.
2627 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2628 (enum command_control_type): Likewise.
2629 (struct command_line): Likewise.
2630 (free_command_lines): Likewise.
2631 (struct command_lines_deleter): Likewise.
2632 (command_line_up): Likewise.
2633 (read_command_lines): Likewise.
2634 (read_command_lines_1): Likewise.
2635 * breakpoint.h: Include cli/cli-script.h.
2636 * extension-priv.h: Likewise.
2637 * gdbcmd.h: Likewise.
2638
51abb421
PA
26392017-09-04 Pedro Alves <palves@redhat.com>
2640
2641 * ada-lang.c (is_known_support_routine): Move sal declaration to
2642 where it is initialized.
2643 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2644 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2645 (clear_command, update_static_tracepoint): Remove init_sal
2646 references. Move declarations closer to initializations.
2647 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2648 initializations.
2649 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2650 references. Move sal declarations closer to initializations.
2651 * frame.c (find_frame_sal): Return a symtab_and_line via function
2652 return instead of output parameter. Remove init_sal references.
2653 * frame.h (find_frame_sal): Return a symtab_and_line via function
2654 return instead of output parameter.
2655 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2656 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2657 instead of memset.
2658 (gdbscm_find_pc_line): Remove init_sal reference.
2659 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2660 references. Move declarations closer to initializations.
2661 * infcmd.c (set_step_frame): Update. Move declarations closer to
2662 initializations.
2663 (finish_backward): Remove init_sal references. Move declarations
2664 closer to initializations.
2665 * infrun.c (process_event_stop_test, handle_step_into_function)
2666 (insert_hp_step_resume_breakpoint_at_frame)
2667 (insert_step_resume_breakpoint_at_caller): Likewise.
2668 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2669 (symbol_to_sal): Likewise.
2670 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2671 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2672 to its initialization.
2673 * reverse.c (save_bookmark_command): Use new/delete. Remove
2674 init_sal references. Move declarations closer to initializations.
2675 * source.c (get_current_source_symtab_and_line): Remove brace
2676 initialization.
2677 (set_current_source_symtab_and_line): Now takes the sal by const
2678 reference. Remove brace initialization.
2679 (line_info): Remove init_sal reference.
2680 * source.h (set_current_source_symtab_and_line): Now takes a
2681 symtab_and_line via const reference.
2682 * stack.c (set_current_sal_from_frame): Adjust.
2683 (print_frame_info): Adjust.
2684 (get_last_displayed_sal): Return the sal via function return
2685 instead of via output parameter. Simplify.
2686 (frame_info): Adjust.
2687 * stack.h (get_last_displayed_sal): Return the sal via function
2688 return instead of via output parameter.
2689 * symtab.c (init_sal): Delete.
2690 (find_pc_sect_line): Remove init_sal references. Move
2691 declarations closer to initializations.
2692 (find_function_start_sal): Remove init_sal references. Move
2693 declarations closer to initializations.
2694 * symtab.h (struct symtab_and_line): In-class initialize all
2695 fields.
2696 * tracepoint.c (set_traceframe_context)
2697 (print_one_static_tracepoint_marker): Remove init_sal references.
2698 Move declarations closer to initializations.
2699 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2700 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2701 declarations closer to initializations.
2702 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2703 init_sal references. Adjust.
2704
6c5b2ebe
PA
27052017-09-04 Pedro Alves <palves@redhat.com>
2706
2707 * ax-gdb.c (agent_command_1): Use range-for.
2708 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2709 * breakpoint.c: Include "common/array-view.h".
2710 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2711 parameter from struct symtabs_and_lines to
2712 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2713 (breakpoint_sals_to_pc): Change sals parameter from struct
2714 symtabs_and_lines to std::vector reference.
2715 (check_fast_tracepoint_sals): Change sals parameter from struct
2716 symtabs_and_lines to std::array_view. Use range-for.
2717 (decode_static_tracepoint_spec): Return a std::vector instead of
2718 symtabs_and_lines. Update.
2719 (create_breakpoint): Update.
2720 (break_range_command, until_break_command, clear_command): Update.
2721 (base_breakpoint_decode_location, bkpt_decode_location)
2722 (bkpt_probe_create_sals_from_location)
2723 (bkpt_probe_decode_location, tracepoint_decode_location)
2724 (tracepoint_probe_decode_location)
2725 (strace_marker_create_sals_from_location): Return a std::vector
2726 instead of symtabs_and_lines.
2727 (strace_marker_create_breakpoints_sal): Update.
2728 (strace_marker_decode_location): Return a std::vector instead of
2729 symtabs_and_lines. Update.
2730 (update_breakpoint_locations): Change struct symtabs_and_lines
2731 parameters to gdb::array_view. Adjust.
2732 (location_to_sals): Return a std::vector instead of
2733 symtabs_and_lines. Update.
2734 (breakpoint_re_set_default): Use std::vector instead of struct
2735 symtabs_and_lines.
2736 (decode_location_default): Return a std::vector instead of
2737 symtabs_and_lines. Update.
2738 * breakpoint.h: Include "common/array-view.h".
2739 (struct breakpoint_ops) <decode_location>: Now returns a
2740 std::vector instead of returning a symtabs_and_lines via output
2741 parameter.
2742 (update_breakpoint_locations): Change sals parameters to use
2743 gdb::array_view.
2744 * cli/cli-cmds.c (edit_command, list_command): Update to use
2745 std::vector and gdb::array_view.
2746 (ambiguous_line_spec): Adjust to use gdb::array_view and
2747 range-for.
2748 (compare_symtabs): Rename to ...
2749 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2750 const reference and adjust.
2751 (filter_sals): Rewrite using std::vector and standard algorithms.
2752 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2753 (jump_command): Update to use std::vector.
2754 * linespec.c (struct linespec_state) <canonical_names>: Update
2755 comment.
2756 (add_sal_to_sals_basic): Delete.
2757 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2758 (decode_line_2, create_sals_line_offset)
2759 (convert_address_location_to_sals, convert_linespec_to_sals)
2760 (convert_explicit_location_to_sals, parse_linespec)
2761 (event_location_to_sals, decode_line_full, decode_line_1)
2762 (decode_line_with_current_source)
2763 (decode_line_with_last_displayed, decode_objc)
2764 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2765 (linespec_result::~linespec_result): Adjust to use std::vector
2766 instead of symtabs_and_lines.
2767 * linespec.h (linespec_sals::sals): Now a std::vector.
2768 (struct linespec_result): Use std::vector, bool, and in-class
2769 initialization.
2770 (decode_line_1, decode_line_with_current_source)
2771 (decode_line_with_last_displayed): Return std::vector.
2772 * macrocmd.c (info_macros_command): Use std::vector.
2773 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2774 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2775 std::vector.
2776 * probe.h (parse_probes): Return a std::vector.
2777 * python/python.c (gdbpy_decode_line): Use std::vector and
2778 gdb::array_view.
2779 * source.c (select_source_symtab, line_info): Use std::vector.
2780 * stack.c (func_command): Use std::vector.
2781 * symtab.h (struct symtabs_and_lines): Delete.
2782 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2783
7c44b49c
PA
27842017-09-04 Pedro Alves <palves@redhat.com>
2785
2786 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2787 unittests/array-view-selftests.c.
2788 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2789 * common/array-view.h: New file.
2790 * unittests/array-view-selftests.c: New file.
2791
e439fa14
PA
27922017-09-04 Pedro Alves <palves@redhat.com>
2793
2794 * cli/cli-cmds.c (edit_command): Pass message to
2795 ambiguous_line_spec.
2796 (list_command): Pass message to ambiguous_line_spec. Say
2797 "first"/"last" instead of "start" and "end" to be consistent with
2798 the manual.
2799 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2800 them to print formatted message.
2801
7525b645
PA
28022017-09-04 Pedro Alves <palves@redhat.com>
2803
2804 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2805 ftrace_update_insns by reference instead of pointer.
2806
badc0020
YQ
28072017-09-04 Yao Qi <yao.qi@linaro.org>
2808
2809 * i386-go32-tdep.c: Include x86-xstate.h.
2810 (i386_go32_init_abi): Call i386_target_description.
2811 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2812 if xcr0 is X86_XSTATE_X87_MASK.
2813 * i386-tdep.h (tdesc_i386): Remove the declaration.
2814 (tdesc_i386_mmx): Likewise.
2815
d78bdb54
YQ
28162017-09-04 Yao Qi <yao.qi@linaro.org>
2817
2818 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2819 X86_XSTATE_SSE_MASK instead of 0.
2820
ca1fa5ee
YQ
28212017-09-04 Yao Qi <yao.qi@linaro.org>
2822
2823 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2824 i386_target_description.
2825 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2826 i386_target_description.
2827 * i386-tdep.c (i386_gdbarch_init): Likewise.
2828
2434b019
YQ
28292017-09-04 Yao Qi <yao.qi@linaro.org>
2830
2831 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2832 (x86_darwin_init_abi_64): Call amd64_target_description.
2833 * amd64-dicos-tdep.c: Likewise.
2834 * amd64-fbsd-nat.c: Likewise.
2835 * amd64-fbsd-tdep.c: Likewise.
2836 * amd64-nbsd-tdep.c: Likewise.
2837 * amd64-obsd-tdep.c: Likewise.
2838 * amd64-sol2-tdep.c: Likewise.
2839 * amd64-windows-tdep.c: Likewise.
2840 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2841
0860c437
SM
28422017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2843
2844 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2845 (btrace_function) <insn>: Change type to use std::vector.
2846 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2847 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2848 ftrace_update_insns, ftrace_compute_global_level_offset,
2849 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2850 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2851 change to std::vector.
2852 (ftrace_update_insns): Adjust to change to std::vector, change
2853 type of INSN parameter.
2854 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2855 * record-btrace.c (btrace_call_history_insn_range,
2856 btrace_compute_src_line_range,
2857 record_btrace_frame_prev_register): Adjust to change to
2858 std::vector.
2859 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2860 to change to std::vector.
2861
0638b7f9
TT
28622017-09-03 Tom Tromey <tom@tromey.com>
2863
2864 * corefile.c (reopen_exec_file): Use std::string.
2865
8f84fb0e
TT
28662017-09-03 Tom Tromey <tom@tromey.com>
2867
2868 * compile/compile.c (compile_register_name_mangled): Return
2869 std::string.
2870 * compile/compile-loc2c.c (pushf_register_address): Update.
2871 (pushf_register): Update.
2872 * compile/compile-c-types.c (convert_array): Update.
2873 * compile/compile-c-symbols.c (generate_vla_size): Update.
2874 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2875 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2876 (convert_one_symbol): Update.
2877 (generate_c_for_for_one_variable): Update.
2878 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2879 std::string.
2880 (generate_register_struct): Update.
2881 * compile/compile-internal.h (c_get_range_decl_name): Return a
2882 std::string.
2883 (compile_register_name_mangled): Return std::string.
2884
18e9961f
TT
28852017-09-03 Tom Tromey <tom@tromey.com>
2886
2887 * utils.c (perror_string): Return a std::string.
2888 (throw_perror_with_name, perror_warning_with_name): Update.
2889
45343786
TT
28902017-09-03 Tom Tromey <tom@tromey.com>
2891
2892 * demangle.c (demangle_command): Use std::string,
2893 unique_xmalloc_ptr.
2894
b57af503
TT
28952017-09-03 Tom Tromey <tom@tromey.com>
2896
2897 * cli/cli-setshow.c (do_set_command): Use std::string.
2898
6eecf35f
TT
28992017-09-03 Tom Tromey <tom@tromey.com>
2900
2901 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2902
56496dd4
TT
29032017-09-03 Tom Tromey <tom@tromey.com>
2904
2905 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2906
e91a1fa7
TT
29072017-09-03 Tom Tromey <tom@tromey.com>
2908
2909 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2910 gdb::unique_xmalloc_ptr.
2911
7ffd83d7
TT
29122017-09-03 Tom Tromey <tom@tromey.com>
2913
2914 * thread.c (print_thread_info_1): Use string_printf.
2915 (thread_apply_command, thread_apply_all_command): Use
2916 std::string.
2917
1ccbe998
TT
29182017-09-03 Tom Tromey <tom@tromey.com>
2919
2920 * valprint.c (val_print_string): Update.
2921 * gdbcore.h (memory_error_message): Return std::string.
2922 * corefile.c (memory_error_message): Return std::string.
2923 (memory_error): Update.
2924 * breakpoint.c (insert_bp_location): Update.
2925
23fdd69e
SM
29262017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2927
2928 * target/waitstatus.h (target_waitstatus_to_string): Change
2929 return type to std::string.
2930 * target/waitstatus.c (target_waitstatus_to_string): Return
2931 std::string.
2932 * target.h (target_waitstatus_to_string): Remove declaration.
2933 * infrun.c (resume, clear_proceed_status_thread,
2934 print_target_wait_results, do_target_wait, save_waitstatus,
2935 stop_all_threads): Adjust.
2936 * record-btrace.c (record_btrace_wait): Adjust.
2937 * target-debug.h
2938 (target_debug_print_struct_target_waitstatus_p): Adjust.
2939
5c811d30
JK
29402017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2941
2942 PR gdb/22046
2943 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2944 detection.
2945
0a2dde4a
SDJ
29462017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2947
2948 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2949 for setting/unsetting environment variables on the remote target.
2950 (New remote packets): Add entries for QEnvironmentHexEncoded,
2951 QEnvironmentUnset and QEnvironmentReset.
2952 * common/environ.c (gdb_environ::operator=): Extend method to
2953 handle m_user_set_env_list and m_user_unset_env_list.
2954 (gdb_environ::clear): Likewise.
2955 (match_var_in_string): Change type of first parameter from 'char
2956 *' to 'const char *'.
2957 (gdb_environ::set): Extend method to handle
2958 m_user_set_env_list and m_user_unset_env_list.
2959 (gdb_environ::unset): Likewise.
2960 (gdb_environ::clear_user_set_env): New method.
2961 (gdb_environ::user_set_envp): Likewise.
2962 (gdb_environ::user_unset_envp): Likewise.
2963 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2964 m_user_unset_env_list on move constructor/assignment.
2965 (unset): Add new default parameter 'update_unset_list = true'.
2966 (clear_user_set_env): New method.
2967 (user_set_envp): Likewise.
2968 (user_unset_envp): Likewise.
2969 (m_user_set_env_list): New std::set.
2970 (m_user_unset_env_list): Likewise.
2971 * common/rsp-low.c (hex2str): New function.
2972 (bin2hex): New overload for bin2hex function.
2973 * common/rsp-low.c (hex2str): New prototype.
2974 (str2hex): New overload prototype.
2975 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2976 QEnvironmentUnset and QEnvironmentReset.
2977 (remote_protocol_features): Add QEnvironmentHexEncoded,
2978 QEnvironmentUnset and QEnvironmentReset packets.
2979 (send_environment_packet): New function.
2980 (extended_remote_environment_support): Likewise.
2981 (extended_remote_create_inferior): Call
2982 extended_remote_environment_support.
2983 (_initialize_remote): Add QEnvironmentHexEncoded,
2984 QEnvironmentUnset and QEnvironmentReset packet configs.
2985 * unittests/environ-selftests.c (gdb_selftest_env_var):
2986 New variable.
2987 (test_vector_initialization): New function.
2988 (test_init_from_host_environ): Likewise.
2989 (test_reinit_from_host_environ): Likewise.
2990 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2991 Likewise.
2992 (test_unset_set_empty_vector): Likewise.
2993 (test_vector_clear): Likewise.
2994 (test_std_move): Likewise.
2995 (test_move_constructor):
2996 (test_self_move): Likewise.
2997 (test_set_unset_reset): Likewise.
2998 (run_tests): Rewrite in terms of the functions above.
2999
654670a4
WP
30002017-08-31 Weimin Pan <weimin.pan@oracle.com>
3001
3002 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3003 (adi_available): Use a temp variable of type CORE_ADDR as argument
3004 3 when calling target_auxv_search.
3005 (adi_normalize_address): Use masks and xor operators to calculate
3006 normalized address.
3007 (adi_read_versions, adi_write_versions, adi_print_versions)
3008 (do_examine, do_assign): Use paddress.
3009
7755ddb7
JB
30102017-08-29 John Baldwin <jhb@FreeBSD.org>
3011
3012 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3013 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3014 out of loop and add supply of FIR.
3015 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3016 add collect of FIR.
3017
fd437cbc
SM
30182017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3019
3804a343 3020 PR gdb/21827
fd437cbc
SM
3021 * cli/cli-script.c (define_command): Don't convert command name
3022 to lower case.
3023
988f6b3d
JB
30242017-08-25 Joel Brobecker <brobecker@adacore.com>
3025
3026 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3027 Update all callers accordingly. Remove all code blocks handling
3028 the case where DISPP is not NULL.
3029
663c44ac
JK
30302017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3031
3032 PR symtab/22003
3033 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3034 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3035 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3036
f1902523
JK
30372017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3038
3039 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3040 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3041 (read_comp_units_from_section): New parameter abbrev_section, use
3042 read_and_check_comp_unit_head, allocate signatured_type if needed.
3043 (create_all_comp_units): Update read_comp_units_from_section caller.
3044
87215ad1
SDJ
30452017-08-23 Pedro Alves <palves@redhat.com>
3046
3047 PR remote/21852
3048 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3049 to null_ptid and switch to thread without reading the registers
3050 after adding the inferior.
3051
6e41ddec
JK
30522017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3053
3054 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3055 compile-gcc.
3056 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3057 (compile_to_object): Implement compile_gcc.
3058 (_initialize_compile): Install "set compile-gcc". Initialize
3059 compile_gcc.
3060
e68c32d5
JK
30612017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3062
3063 * compile/compile.c (compile_to_object): Conditionally call
3064 set_verbose. Conditionally call compile or compile_v0.
3065
58afddc6
WP
30662017-08-07 Weimin Pan <weimin.pan@oracle.com>
3067
3068 * sparc64-tdep.h: (adi_normalize_address): New export.
3069 * sparc-nat.h: (open_adi_tag_fd): New export.
3070 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3071 * sparc64-linux-tdep.c:
3072 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3073 (sparc64_linux_handle_segmentation_fault): New function.
3074 (sparc64_linux_init_abi): Register
3075 sparc64_linux_handle_segmentation_fault
3076 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3077 (sparc64_addr_bits_remove): New function.
3078 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3079 (MAX_PROC_NAME_SIZE): New macro.
3080 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3081 (sparc64adilist): New variable.
3082 (adi_proc_list): New variable.
3083 (find_adi_info): New function.
3084 (add_adi_info): New function.
3085 (get_adi_info_proc): New function.
3086 (get_adi_info): New function.
3087 (info_adi_command): New function.
3088 (read_maps_entry): New function.
3089 (adi_available): New function.
3090 (adi_normalize_address): New function.
3091 (adi_align_address): New function.
3092 (adi_convert_byte_count): New function.
3093 (adi_tag_fd): New function.
3094 (adi_is_addr_mapped): New function.
3095 (adi_read_versions): New function.
3096 (adi_write_versions): New function.
3097 (adi_print_versions): New function.
3098 (do_examine): New function.
3099 (do_assign): New function.
3100 (adi_examine_command): New function.
3101 (adi_assign_command): New function.
3102 (_initialize_sparc64_adi_tdep): New function.
3103
11db9430
SM
31042017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3105
3106 * breakpoint.c (breakpoints_info): Rename to ...
3107 (info_breakpoints_command): ... this.
3108 (watchpoints_info): Rename to ...
3109 (info_watchpoints_command): ... this.
3110 (tracepoints_info): Rename to ...
3111 (info_tracepoints_command): ... this.
3112 (_initialize_breakpoint): Adjust.
3113 * dcache.c (dcache_info): Rename to ...
3114 (info_display_command): ... this.
3115 (_initialize_dcache): Adjust.
3116 * frame.h (args_info): Rename to ...
3117 (info_args_command): ... this.
3118 (locals_info): Rename to ...
3119 (info_locals_command): ... this.
3120 * infcmd.c (nofp_registers_info): Rename to ...
3121 (info_registers_command): ... this.
3122 (float_info): Rename to ...
3123 (info_float_command): ... this.
3124 (program_info): Rename to ...
3125 (info_program_command): ... this.
3126 (all_registers_info): Rename to ...
3127 (info_all_registers_command): ... this.
3128 (vector_info): Rename to ...
3129 (info_vector_command): ... this.
3130 (float_info): Rename to ...
3131 (info_float_command): ... this.
3132 (_initialize_infcmd): Adjust.
3133 * inferior.h (term_info): Rename to ...
3134 (info_terminal_command): ... this.
3135 * inflow.c (term_info): Rename to ...
3136 (info_terminal_command): ... this.
3137 (_initialize_inflow): Adjust.
3138 * infrun.c (signals_info): Rename to ...
3139 (info_signals_command): ... this.
3140 (_initialize_infrun): Adjust.
3141 * objc-lang.c (classes_info): Rename to ...
3142 (info_classes_command): ... this.
3143 (selectors_info): Rename to ...
3144 (info_selectors_command): ... this.
3145 (_initialize_objc_language): Adjust.
3146 * printcmd.c (sym_info): Rename to ...
3147 (info_symbol_command): ... this.
3148 (address_info): Rename to ...
3149 (info_address_command): ... this.
3150 (display_info): Rename to ...
3151 (info_display_command): ... this.
3152 (_initialize_printcmd): Adjust.
3153 * reverse.c (bookmarks_info): Rename to ...
3154 (info_breakpoints_command): ... this.
3155 (_initialize_reverse): Adjust.
3156 * ser-go32.c (dos_info): Rename to ...
3157 (info_serial_command): ... this.
3158 (_initialize_ser_dos): Adjust.
3159 * skip.c (skip_info): Rename to ...
3160 (info_skip_command): ... this.
3161 (_initialize_step_skip): Adjust.
3162 * source.c (line_info): Rename to ...
3163 (info_line_command): ... this.
3164 (source_info): Rename to ...
3165 (info_source_command)
3166 * stack.c (frame_info): Rename to ...
3167 (info_frame_command): ... this.
3168 (locals_info): Rename to ...
3169 (info_locals_command): ... this.
3170 (args_info): Rename to ...
3171 (info_args_command): ... this.
3172 (_initialize_stack): Adjust.
3173 * symtab.c (sources_info): Rename to ...
3174 (info_sources_command): ... this.
3175 (variables_info): Rename to ...
3176 (info_variables_command): ... this.
3177 (functions_info): Rename to ...
3178 (info_functions_command): ... this.
3179 (types_info): Rename to ...
3180 (info_types_command): ... this.
3181 (_initialize_symtab): Adjust.
3182 * target.c (target_info): Rename to ...
3183 (info_target_command): ... this.
3184 (initialize_targets): Adjust.
3185 * tracepoint.c (tvariables_info): Rename to ...
3186 (info_tvariables_command): ... this.
3187 (scope_info): Rename to ...
3188 (info_scope_command): ... this.
3189 (trace_dump_actions): Adjust.
3190 (_initialize_tracepoint): Adjust.
3191
b270e6f9
TT
31922017-08-22 Tom Tromey <tom@tromey.com>
3193
3194 * breakpoint.h (install_breakpoint): Update.
3195 * breakpoint.c (add_solib_catchpoint): Update.
3196 (install_breakpoint): Change argument to a std::unique_ptr.
3197 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3198 (create_breakpoint_sal, create_breakpoint): Update.
3199 (watch_command_1, catch_exec_command_1)
3200 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3201 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3202 Return the breakpoint.
3203 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3204 (new_single_step_breakpoint): Update.
3205 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3206 std::unique_ptr.
3207 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3208 std::unique_ptr.
3209 * break-catch-sig.c (create_signal_catchpoint): Use
3210 std::unique_ptr.
3211 * ada-lang.c (create_ada_exception_catchpoint): Use
3212 std::unique_ptr.
3213
36bd8eaa
TT
32142017-08-22 Tom Tromey <tom@tromey.com>
3215
3216 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3217
56f37645
TT
32182017-08-22 Tom Tromey <tom@tromey.com>
3219
3220 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3221 (lookup_partial_symbol): Update.
3222
0b581c69
TT
32232017-08-22 Tom Tromey <tom@tromey.com>
3224
3225 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3226 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3227 (find_and_open_source, symtab_to_fullname): Update.
3228 * psymtab.c (psymtab_to_fullname): Update.
3229
14278e1f
TT
32302017-08-22 Tom Tromey <tom@tromey.com>
3231
3232 * exec.c (exec_file_attach): Update.
3233 * linux-thread-db.c (try_thread_db_load): Update.
3234 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3235 * utils.c (gdb_realpath): Change return type.
3236 (gdb_realpath_keepfile): Update.
3237 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3238 (_initialize_utils): Register the new self test.
3239 * source.c (openp): Update.
3240 (find_and_open_source): Update.
3241 * nto-tdep.c (nto_find_and_open_solib): Update.
3242 * main.c (set_gdb_data_directory): Update.
3243 (captured_main_1): Update.
3244 * dwarf2read.c (dwarf2_get_dwz_file): Update
3245 (dw2_map_symbol_filenames): Update.
3246 * auto-load.c (auto_load_safe_path_vec_update): Update.
3247 (filename_is_in_auto_load_safe_path_vec): Change type of
3248 "filename_realp".
3249 (auto_load_objfile_script): Update.
3250 (file_is_auto_load_safe): Update. Use std::string.
3251 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3252
4971c9a7
TT
32532017-08-22 Tom Tromey <tom@tromey.com>
3254
3255 * utils.c (gdb_realpath_keepfile): Return a
3256 gdb::unique_xmalloc_ptr.
3257 * exec.c (exec_file_attach): Update.
3258 * utils.h (gdb_realpath_keepfile): Return a
3259 gdb::unique_xmalloc_ptr.
3260
e3e41d58
TT
32612017-08-22 Tom Tromey <tom@tromey.com>
3262
3263 * compile/compile.c (compile_file_command): Use
3264 gdb::unique_xmalloc_ptr, std::string.
3265 * utils.c (gdb_abspath): Change return type.
3266 * source.c (openp): Update.
3267 * objfiles.c (allocate_objfile): Update.
3268 * main.c (set_gdb_data_directory): Update.
3269 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3270
0d999a6e
ZZ
32712017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3272
3273 * cli-cmds.c (list_commands): List actual code around more than
3274 one location.
3275
329d5e7e
JB
32762017-08-21 John Baldwin <jhb@FreeBSD.org>
3277
3278 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3279
bf223d3e
PA
32802017-08-21 Pedro Alves <palves@redhat.com>
3281
3282 PR gdb/19487
3283 * c-exp.y (variable production): Handle function aliases.
3284 * minsyms.c (msymbol_is_text): New function.
3285 * minsyms.h (msymbol_is_text): Declare.
3286 * symtab.c (find_function_alias_target): New function.
3287 * symtab.h (find_function_alias_target): Declare.
3288
c973d0aa
PA
32892017-08-21 Pedro Alves <palves@redhat.com>
3290
3291 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3292 typedefs.
3293 * typeprint.c (whatis_exp): If handling "whatis", and expression
3294 is OP_TYPE, strip one typedef level. Otherwise don't strip
3295 typedefs here.
3296 * valops.c (value_cast): Save "to" type before resolving
3297 stubs/typedefs. Use that type as resulting value's type.
3298
2989a365
TT
32992017-08-18 Tom Tromey <tom@tromey.com>
3300 Pedro Alves <palves@redhat.com>
3301
3302 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3303 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3304 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3305 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3306 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3307 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3308 (linux_get_siginfo_data): Add "thread" argument. Use
3309 scoped_restore.
3310 * linux-nat.c (linux_child_follow_fork)
3311 (check_stopped_by_watchpoint): Use scoped_restore.
3312 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3313 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3314 (restore_inferior_ptid, save_inferior_ptid): Remove.
3315 * btrace.c (btrace_fetch): Use scoped_restore.
3316 * bsd-uthread.c (bsd_uthread_fetch_registers)
3317 (bsd_uthread_store_registers): Use scoped_restore.
3318 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3319 scoped_restore.
3320 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3321 (aix_thread_xfer_partial): Use scoped_restore.
3322 * inferior.h (save_inferior_ptid): Remove.
3323
e60eb288
YQ
33242017-08-18 Yao Qi <yao.qi@linaro.org>
3325
3326 PR tdep/21818
3327 * arm-tdep.c (gdb_print_insn_arm): Mark
3328 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3329
6d580b63
YQ
33302017-08-18 Yao Qi <yao.qi@linaro.org>
3331
3332 * NEWS: Mention GDBserver's new option "--selftest".
3333 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3334 * selftest.c: Move it to common/selftest.c.
3335 * selftest.h: Move it to common/selftest.h.
3336 * selftest-arch.c (reset): New function.
3337 (tests_with_arch): Call reset.
3338
86dcbf50
YQ
33392017-08-18 Yao Qi <yao.qi@linaro.org>
3340
3341 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3342 instead of exception_fprintf and printf_filtered.
3343
7649770c
YQ
33442017-08-18 Yao Qi <yao.qi@linaro.org>
3345
3346 * selftest.c (register_self_test): Rename it to
3347 selftests::register_test.
3348 (run_self_tests): selftest::run_tests.
3349 * selftest.h: Update declarations.
3350 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3351 selftests::register_test_foreach_arch.
3352 * selftest-arch.h: Update declaration.
3353 * aarch64-tdep.c: Update.
3354 * arm-tdep.c: Likewise.
3355 * disasm-selftests.c: Likewise.
3356 * dwarf2loc.c: Likewise.
3357 * dwarf2-frame.c: Likewise.
3358 * findvar.c: Likewise.
3359 * gdbarch-selftests.c: Likewise.
3360 * maint.c (maintenance_selftest): Likewise.
3361 * regcache.c: Likewise.
3362 * rust-exp.y: Likewise.
3363 * selftest-arch.c: Likewise.
3364 * unittests/environ-selftests.c: Likewise.
3365 * unittests/function-view-selftests.c: Likewise.
3366 * unittests/offset-type-selftests.c: Likewise.
3367 * unittests/optional-selftests.c: Likewise.
3368 * unittests/scoped_restore-selftests.c: Likewise.
3369 * utils-selftests.c: Likewise.
3370
b0cba12e
PA
33712017-08-17 Pedro Alves <palves@redhat.com>
3372
3373 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3374 local.
3375
4c8aa72d
PA
33762017-08-17 Pedro Alves <palves@redhat.com>
3377
3378 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3379 field.
3380 (reset_die_in_process): Delete, replaced by ...
3381 (process_die_scope): ... this new class. Make it responsible for
3382 freeing cu->line_header too.
3383 (process_die): Use process_die_scope.
3384 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3385 cu->line_header_die_owner. Don't release the line header if it's
3386 owned by the CU.
3387 (setup_type_unit_groups): Make the CU/DIE own the line header.
3388 Don't release the line header here.
3389
ba713918
AL
33902017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3391
3392 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3393
44d0fb3a
RK
33942017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3395
3396 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3397 Single-Key mode
3398
a5afdb16
RK
33992017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3400
3401 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3402 mode command list.
3403
47613aeb
SH
34042017-08-15 Stafford Horne <shorne@gmail.com>
3405
3406 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3407
9c3cc999
SH
34082017-08-15 Stafford Horne <shorne@gmail.com>
3409
3410 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3411
206726fb
SDJ
34122017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3413
3414 PR gdb/21954
3415 * infcmd.c (unset_environment_command): Use the 'clear' method on
3416 the environment instead of resetting it.
3417
0335ac6d
JB
34182017-08-15 John Baldwin <jhb@FreeBSD.org>
3419
3420 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3421 platforms.
3422
d3abe1c8
TT
34232017-08-14 Tom Tromey <tom@tromey.com>
3424
3425 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3426 (print_binary_chars): Likewise.
3427 (BITS_IN_BYTES): Remove.
3428
d6382fff
TT
34292017-08-14 Tom Tromey <tom@tromey.com>
3430
3431 PR gdb/21675
3432 * valprint.c (LOW_ZERO): Change value to 034.
3433 (print_octal_chars): Add static_asserts for octal constants.
3434 * printcmd.c (print_scalar_formatted): Add 'd' case.
3435
f978cb06
TT
34362017-08-11 Tom Tromey <tom@tromey.com>
3437
3438 * symfile.c (add_symbol_file_command): Use std::vector.
3439
2f5404b3
TT
34402017-08-14 Tom Tromey <tom@tromey.com>
3441
3442 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3443 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3444 std::move.
3445 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3446
de7985c3
PA
34472017-08-11 Pedro Alves <palves@redhat.com>
3448
3449 * infrun.c (process_event_stop_test): Adjust
3450 function_name_is_marked_for_skip call.
3451 * skip.c: Include <list>.
3452 (skiplist_entry): Make it a class with private fields, and
3453 getters/setters.
3454 (skiplist_entry_chain): Delete.
3455 (skiplist_entries): New.
3456 (skiplist_entry_count): Delete.
3457 (highest_skiplist_entry_num): New.
3458 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3459 (add_skiplist_entry): Delete.
3460 (skiplist_entry::skiplist_entry): New.
3461 (skiplist_entry::add_entry): New.
3462 (skip_file_command, skip_function): Adjust.
3463 (compile_skip_regexp): Delete.
3464 (skip_command): Don't compile regexp here. Adjust to use
3465 skiplist_entry::add_entry.
3466 (skip_info): Adjust to use range-for and getters.
3467 (skip_enable_command, skip_disable_command): Adjust to use
3468 range-for and setters.
3469 (skip_delete_command): Adjust to use std::list.
3470 (add_skiplist_entry): Delete.
3471 (skip_file_p): Delete, refactored as ...
3472 (skiplist_entry::do_skip_file_p): ... this new method.
3473 (skip_gfile_p): Delete, refactored as ...
3474 (skiplist_entry::do_gskip_file_p): ... this new method.
3475 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3476 (skiplist_entry::skip_function_p): ... this new method.
3477 (function_name_is_marked_for_skip): Now returns bool, and takes
3478 the function sal by const reference. Adjust to use range-for and
3479 skiplist_entry methods.
3480 (_initialize_step_skip): Remove references to
3481 skiplist_entry_chain, skiplist_entry_count.
3482 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3483 takes the function sal by const reference.
3484
be7d3cd5
YQ
34852017-08-11 Yao Qi <yao.qi@linaro.org>
3486
3487 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3488 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3489 (dwarf2_frame_cache):
3490 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3491 RETURN_MASK_ALL and set *this_case to NULL.
3492 * frame-unwind.h: Update comments.
3493
1c90d9f0
YQ
34942017-08-11 Yao Qi <yao.qi@linaro.org>
3495
3496 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3497 (dwarf2_frame_state_copy_regs): Remove.
3498 (dwarf2_frame_state_free_regs): Remove.
3499 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3500 (dwarf2_restore_rule): Call method .alloc_regs instead of
3501 dwarf2_frame_state_alloc_regs.
3502 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3503 constructor. Call std::move.
3504 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3505 (dwarf2_frame_cache): Likewise.
3506
3507 [GDB_SELF_TEST]: Include selftest.h and
3508 selftest-arch.h.
3509 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3510 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3511 execute_cfa_program_test.
3512
3513 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3514 copy ctor, assignment operator, move assignment.
3515 <alloc_regs>: New method.
3516 <swap>: New method.
3517 (struct dwarf2_frame_state): Delete dtor.
3518 (dwarf2_frame_state_alloc_regs): Remove declaration.
3519 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3520 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3521
afe37d6b
YQ
35222017-08-11 Yao Qi <yao.qi@linaro.org>
3523
3524 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3525 (dwarf2_frame_state::dwarf2_frame_state): New.
3526 (dwarf2_frame_state::~dwarf2_frame_state): New.
3527 (dwarf2_fetch_cfa_info): Update.
3528 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3529 rather than a pointer. Update code.
3530 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3531 dtor.
3532 <data_align, code_align, retaddr_column>: Change them to const.
3533 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3534 to bool.
3535
b348037f
YQ
35362017-08-11 Yao Qi <yao.qi@linaro.org>
3537
3538 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3539 <loc.exp>: New field.
3540 * dwarf2-frame.c (execute_cfa_program): Update.
3541 (dwarf2_frame_prev_register): Update.
3542
e7c9de26
PA
35432017-08-10 Pedro Alves <palves@redhat.com>
3544
3545 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3546
e8c6b620
JB
35472017-08-09 John Baldwin <jhb@FreeBSD.org>
3548
3549 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3550 (fbsd_pending_children): Use std::list.
3551 (fbsd_remember_child): Likewise.
3552 (fbsd_is_child_pending): Likewise.
3553 (fbsd_pending_vfork_done): Use std::forward_list.
3554 (fbsd_add_vfork_done): Likewise.
3555 (fbsd_is_vfork_done_pending): Likewise.
3556 (fbsd_next_vfork_done): Likewise.
3557
e4a26669
JB
35582017-08-09 John Baldwin <jhb@FreeBSD.org>
3559
3560 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3561 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3562 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3563 for `mapfilename'.
3564 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3565 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3566
142311d3
JB
35672017-08-09 John Baldwin <jhb@FreeBSD.org>
3568
3569 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3570 "filestuff.h".
3571 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3572
42fa2e0e
TT
35732017-08-09 Tom Tromey <tom@tromey.com>
3574
3575 * skip.c (skiplist_entry): New constructor.
3576 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3577 (skiplist_entry::file_is_glob): Now bool.
3578 (skiplist_entry::file, skiplist_entry::function): Now
3579 std::string.
3580 (make_skip_entry): Return a unique_ptr. Use new.
3581 (free_skiplist_entry, free_skiplist_entry_cleanup)
3582 (make_free_skiplist_entry_cleanup): Remove.
3583 (skip_command, skip_disable_command, add_skiplist_entry)
3584 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3585 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3586 (function_name_is_marked_for_skip): Update.
3587 (skip_delete_command): Update. Use delete.
3588
cd3af38d
JW
35892017-08-09 Jiong Wang <jiong.wang@arm.com>
3590
3591 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3592 (aarch64_linux_core_read_description): New function.
3593 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3594
29592bde
PA
35952017-08-09 Pedro Alves <palves@redhat.com>
3596
3597 * cp-name-parser.y (cp_comp_to_string): Return a
3598 gdb::unique_xmalloc_ptr<char>.
3599 * cp-support.c (replace_typedefs_qualified_name)
3600 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3601 (cp_canonicalize_string_full): Use op= instead of explicit
3602 convertion.
3603 (cp_class_name_from_physname, method_name_from_physname)
3604 (cp_func_name, cp_remove_params): Adjust to use
3605 gdb::unique_xmalloc_ptr<char>.
3606 * cp-support.h (cp_comp_to_string): Return a
3607 gdb::unique_xmalloc_ptr<char>.
3608 * python/py-type.c (typy_lookup_type): Adjust to use
3609 gdb::unique_xmalloc_ptr<char>.
3610
b3340438
L
36112017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3612
3613 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3614
e88e8651
YQ
36152017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3616 Yao Qi <yao.qi@linaro.org>
3617
3618 * cp-support.c (cp_canonicalize_string_full): Use
3619 gdb::unique_xmalloc_ptr<char>.
3620 (cp_canonicalize_string): Likewise.
3621
f5a29eb0
YQ
36222017-08-09 Yao Qi <yao.qi@linaro.org>
3623
3624 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3625 * regformats/i386/amd64-avx-avx512.dat: Remove.
3626 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3627 * regformats/i386/amd64-avx-mpx.dat:Remove.
3628 * regformats/i386/amd64-avx.dat: Remove.
3629 * regformats/i386/amd64-mpx.dat: Remove.
3630 * regformats/i386/i386-avx-avx512.dat: Remove.
3631 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3632 * regformats/i386/i386-avx-mpx.dat: Remove.
3633 * regformats/i386/i386-mmx.dat: Remove.
3634 * regformats/i386/i386-mpx.dat: Remove.
3635
57757c2f
YQ
36362017-08-09 Yao Qi <yao.qi@linaro.org>
3637
3638 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3639 * amd64-tdep.c: Don't include features/i386/x32*.c.
3640 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3641 functions.
3642 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3643 and i386/x32-avx-avx512.
3644 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3645 and i386/x32.xml.
3646 * features/i386/x32-avx-avx512.c: Removed.
3647 * features/i386/x32-avx-avx512.xml: Removed.
3648 * features/i386/x32-avx.c: Removed.
3649 * features/i386/x32-avx.xml: Removed.
3650 * features/i386/x32.c: Removed.
3651 * features/i386/x32.xml: Removed.
3652 * regformats/i386/x32-avx-avx512.dat: Removed.
3653 * regformats/i386/x32-avx.dat: Removed.
3654 * regformats/i386/x32.dat: Removed.
3655
ba7b109b
MR
36562017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3657
3658 PR breakpoints/21886
3659 * mem-break.c (default_memory_insert_breakpoint): Use
3660 `->placed_address' rather than `->reqstd_address' for the
3661 breakpoint location.
3662
e347efc3
MR
36632017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3664
3665 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3666 assertions.
3667
0dba2a6c
MR
36682017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3669
3670 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3671 a union of `tdep_info', `tdesc_data' and `id'.
3672 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3673 rather than `info.tdep_info'.
3674 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3675 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3676 * i386-tdep.c (i386_gdbarch_init): Likewise.
3677 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3678 * mips-tdep.c (mips_gdbarch_init): Likewise.
3679 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3680 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3681 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3682 `info.tdep_info'.
3683 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3684 `info.tdep_info'.
3685 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3686 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3687 `info.tdep_info'.
3688 * spu-tdep.c (spu_gdbarch_init): Likewise.
3689 * gdbarch.h: Regenerate.
3690
16eb6b2d
LS
36912017-08-07 Leszek Swirski <leszeks@google.com>
3692
7b005726 3693 PR symtab/20899
16eb6b2d
LS
3694 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3695
74cbb09e
SM
36962017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3697
3698 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3699 (gdbsim_open): Rename gdb_argv args object to argv.
3700
ee0c3293
TT
37012017-08-05 Tom Tromey <tom@tromey.com>
3702
3703 * compile/compile-object-load.c (compile_object_load): Use
3704 gdb::unique_xmalloc_ptr.
3705 * cli/cli-dump.c (scan_filename): Rename from
3706 scan_filename_with_cleanup. Change return type.
3707 (scan_expression): Rename from scan_expression_with_cleanup.
3708 Change return type.
3709 (dump_memory_to_file, dump_value_to_file, restore_command):
3710 Use gdb::unique_xmalloc_ptr. Update.
3711 * cli/cli-cmds.c (find_and_open_script): Use
3712 gdb::unique_xmalloc_ptr.
3713 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3714 * symmisc.c (maintenance_print_symbols)
3715 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3716 * symfile.c (symfile_bfd_open, generic_load)
3717 (add_symbol_file_command, remove_symbol_file_command): Use
3718 gdb::unique_xmalloc_ptr.
3719 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3720 * psymtab.c (maintenance_print_psymbols): Use
3721 gdb::unique_xmalloc_ptr.
3722 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3723 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3724 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3725 (reload_shared_libraries_1): Likewise.
3726
3232fabd
TT
37272017-08-05 Tom Tromey <tom@tromey.com>
3728
3729 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3730 (rust_op_vector, rust_set_vector): New typedefs.
3731 (current_parser): New global.
3732 (work_obstack): Change to pointer type. Update all users.
3733 (rust_ast, pstate): Remove globals.
3734 (struct rust_parser): New.
3735 (%union) <params, field_inits>: Change type.
3736 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3737 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3738 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3739 (convert_params_to_types, convert_params_to_expression): Change
3740 type of "params".
3741 (ast_string): Change type of "fields".
3742 (rust_parse): Make a rust_parser. Remove cleanups.
3743 (rust_lex_tests): Make and install an auto_obstack.
3744
f02fd774
YQ
37452017-08-04 Yao Qi <yao.qi@linaro.org>
3746
3747 * configure.srv (ipa_x32_linux_regobj): New.
3748 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3749 instead of X86_TDESC_AVX512.
3750 (initialize_low_tracepoint): Call
3751 init_registers_x32_avx_avx512_linux.
3752
91975afd
YQ
37532017-08-04 Yao Qi <yao.qi@linaro.org>
3754
3755 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3756
2331fa3a
RK
37572017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3758
3759 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3760
744e4fe1
TT
37612017-08-03 Tom Tromey <tom@tromey.com>
3762
3763 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3764 Remove.
3765 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3766
1c034b67
TT
37672017-08-03 Tom Tromey <tom@tromey.com>
3768
3769 * python/py-param.c (compute_enum_values): Use gdb_argv.
3770
773a1edc
TT
37712017-08-03 Tom Tromey <tom@tromey.com>
3772
3773 * utils.h (struct gdb_argv_deleter): New.
3774 (gdb_argv): New class.
3775 * utils.c (gdb_argv::reset): New method.
3776 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3777 * tracefile.c (tsave_command): Use gdb_argv.
3778 * top.c (new_ui_command): Use gdb_argv.
3779 * symmisc.c (maintenance_print_symbols)
3780 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3781 * symfile.c (symbol_file_command, generic_load)
3782 (remove_symbol_file_command): Use gdb_argv.
3783 * stack.c (backtrace_command): Use gdb_argv.
3784 * source.c (add_path, show_substitute_path_command)
3785 (unset_substitute_path_command, set_substitute_path_command):
3786 Use gdb_argv.
3787 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3788 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3789 * remote.c (extended_remote_run, remote_put_command)
3790 (remote_get_command, remote_delete_command): Use gdb_argv.
3791 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3792 (gdbsim_open): Use gdb_argv.
3793 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3794 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3795 * procfs.c (procfs_info_proc): Use gdb_argv.
3796 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3797 * infrun.c (handle_command): Use gdb_argv.
3798 * inferior.c (add_inferior_command, clone_inferior_command):
3799 Use gdb_argv.
3800 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3801 * exec.c (exec_file_command): Use gdb_argv.
3802 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3803 * compile/compile.c (build_argc_argv): Use gdb_argv.
3804
0d50bde3
TT
38052017-08-03 Tom Tromey <tom@tromey.com>
3806
3807 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3808
7f968c89
TT
38092017-08-03 Tom Tromey <tom@tromey.com>
3810
3811 * python/python.c (compute_python_string): Return std::string.
3812 (gdbpy_eval_from_control_command): Update.
3813 (do_start_initialization): Use std::string.
3814 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3815 xstrprintf.
3816 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3817 xstrprintf.
3818
3c9ebddd
TT
38192017-08-03 Tom Tromey <tom@tromey.com>
3820
3821 * top.h (do_restore_instream_cleanup): Remove.
3822 * top.c (do_restore_instream_cleanup): Remove.
3823 (read_command_file): Use scoped_restore.
3824 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3825
b51b225e
TT
38262017-08-03 Tom Tromey <tom@tromey.com>
3827
3828 * cli/cli-script.c (execute_user_command)
3829 (execute_control_command): Use scoped_restore.
3830
ac991630
TT
38312017-08-03 Tom Tromey <tom@tromey.com>
3832
3833 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3834 (execute_user_command): Remove user_call_depth; use
3835 user_args_stack's size instead.
3836
898e0c8e
TT
38372017-08-03 Tom Tromey <tom@tromey.com>
3838
3839 * top.h (in_user_command): Remove.
3840 * top.c (in_user_command): Remove.
3841 * cli/cli-script.c (do_restore_user_call_depth)
3842 (execute_user_command): Update.
3843
26fcd5d7
TT
38442017-08-03 Tom Tromey <tom@tromey.com>
3845
3846 * valops.c (search_struct_method): Use gdb::byte_vector.
3847 * valarith.c (value_concat): Use std::vector.
3848 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3849 (simple_search_memory): Likewise.
3850 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3851 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3852 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3853 * elfread.c (elf_rel_plt_read): Use std::string.
3854 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3855 * cli/cli-dump.c (restore_section_callback): Use
3856 gdb::byte_vector.
3857
7c218e6c
TT
38582017-08-03 Tom Tromey <tom@tromey.com>
3859
3860 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3861
31b68d4a
TT
38622017-08-03 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3865 (tui_register_format): Use scoped_restore.
3866
2ec845e7
TT
38672017-08-03 Tom Tromey <tom@tromey.com>
3868
3869 * reverse.c (exec_direction_default): Remove.
3870 (exec_reverse_once): Use scoped_restore.
3871 * remote.c (restore_remote_timeout): Remove.
3872 (remote_flash_erase, remote_flash_write, remote_flash_done)
3873 (readchar, remote_serial_write): Use scoped_restore.
3874 * cli/cli-script.c (struct source_cleanup_lines_args)
3875 (source_cleanup_lines): Remove.
3876 (script_from_file): Use scoped_restore.
3877 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3878 (source_command): Use scoped_restore.
3879
b3bc8453
TT
38802017-08-03 Tom Tromey <tom@tromey.com>
3881
3882 * utils.h (make_cleanup_free_so): Remove.
3883 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3884 * solist.h (struct so_deleter): New.
3885 (so_list_up): New typedef.
3886 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3887
e3ad2841
TT
38882017-08-03 Tom Tromey <tom@tromey.com>
3889
3890 * utils.h (make_cleanup_restore_current_language): Remove.
3891 * utils.c (do_restore_current_language)
3892 (make_cleanup_restore_current_language): Remove.
3893 * parse.c (parse_exp_in_context_1)
3894 (parse_expression_with_language): Use
3895 scoped_restore_current_language.
3896 * mi/mi-main.c (mi_cmd_execute): Use
3897 scoped_restore_current_language.
3898 * language.h (scoped_restore_current_language): New class.
3899
b80cf838
TT
39002017-08-03 Tom Tromey <tom@tromey.com>
3901
3902 * compile/compile.c (cleanup_unlink_file): Remove.
3903 (compile_to_object): Use gdb::unlinker.
3904 (eval_compile_command): Likewise.
3905
fad0444a
TT
39062017-08-03 Tom Tromey <tom@tromey.com>
3907
3908 * utils.h (make_cleanup_fclose): Remove.
3909 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3910
6e7bc05c
TT
39112017-08-03 Tom Tromey <tom@tromey.com>
3912
3913 * top.c (open_terminal_stream): Return gdb_file_up.
3914 (new_ui_command): Update.
3915
4a45905b
TT
39162017-08-03 Tom Tromey <tom@tromey.com>
3917
3918 * source.c (print_source_lines_base, forward_search_command)
3919 (reverse_search_command): Use gdb_file_up.
3920
7cd06d6e
TT
39212017-08-03 Tom Tromey <tom@tromey.com>
3922
3923 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3924
ed166945
TT
39252017-08-03 Tom Tromey <tom@tromey.com>
3926
3927 * cli/cli-cmds.c (find_and_open_script): Change return type.
3928 Remove "streamp" and "full_path" parameters.
3929 (source_script_with_search): Update.
3930 * auto-load.c (source_script_file): Update.
3931 * cli/cli-cmds.h (find_and_open_script): Change type.
3932 (open_script): New struct.
3933
d419f42d
TT
39342017-08-03 Tom Tromey <tom@tromey.com>
3935
3936 * xml-support.c (xml_fetch_content_from_file): Update.
3937 * ui-file.c (stdio_file::open): Update.
3938 * tracefile-tfile.c (tfile_start): Update.
3939 * remote.c (remote_file_put, remote_file_get): Update.
3940 * nat/linux-procfs.c (linux_proc_get_int)
3941 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3942 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3943 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3944 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3945 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3946 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3947 * linux-nat.c (linux_proc_pending_signals): Update.
3948 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3949 (file_closer): Remove.
3950 * compile/compile.c (compile_to_object): Update.
3951 * common/filestuff.h (struct gdb_file_deleter): New.
3952 (gdb_file_up): New typedef.
3953 (gdb_fopen_cloexec): Change return type.
3954 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3955 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3956 (dump_binary_file, restore_binary_file): Update.
3957 * auto-load.c (auto_load_objfile_script_1): Update.
3958
4a2b031d
TT
39592017-08-03 Tom Tromey <tom@tromey.com>
3960
3961 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3962 (info_static_tracepoint_markers_command): Likewise.
3963 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3964 * skip.c (skip_info): Use ui_out_emit_table.
3965 * progspace.c (print_program_space): Use ui_out_emit_table.
3966 * osdata.c (info_osdata): Use ui_out_emit_table.
3967 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3968 ui_out_emit_table.
3969 * linux-thread-db.c (info_auto_load_libthread_db): Use
3970 ui_out_emit_table.
3971 * inferior.c (print_inferior): Use ui_out_emit_table.
3972 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3973 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3974 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3975 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3976 * ui-out.h (class ui_out_emit_table): New.
3977
a4f320fd
MR
39782017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3979
3980 * mips-tdep.c (mips_fpu_type_str): New function.
3981 (mips_dump_tdep): Call it.
3982
a2f1f308
MR
39832017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3984
3985 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3986 `->mips_fpu_type'.
3987
7e5ed83b
XR
39882017-07-31 Xavier Roirand <roirand@adacore.com>
3989
3990 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3991
4c9dc811
XR
39922017-07-27 Xavier Roirand <roirand@adacore.com>
3993
3994 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3995
27d41eac
YQ
39962017-07-26 Yao Qi <yao.qi@linaro.org>
3997
3998 * cli/cli-cmds.c (maintenancechecklist): New variable.
3999 * gdbcmd.h (maintenancechecklist): Declare it.
4000 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4001 Call i386_linux_read_description with different masks.
4002 * maint.c (maintenance_check_command): New function.
4003 (_initialize_maint_cmds): Call add_prefix_cmd.
4004 * target-descriptions.c (tdesc_reg): override operator != and ==.
4005 (tdesc_type): Likewise.
4006 (tdesc_feature): Likewise.
4007 (target_desc): Likewise.
4008 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4009 (maintenance_check_xml_descriptions): New function.
4010 (_initialize_target_descriptions) Add command "xml-descriptions".
4011 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4012
ea03d0d3
YQ
40132017-07-26 Yao Qi <yao.qi@linaro.org>
4014
4015 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4016 Include features/i386/32bit-*.c.
4017 (i386_linux_read_description): Generate target description if it
4018 doesn't exist.
4019 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4020 functions.
4021 * features/i386/32bit-linux.c: Re-generated.
4022 * features/i386/32bit-sse.c: Likewise.
4023 * target-descriptions.c (print_c_feature::visit): Print code to
4024 set register number if needed.
4025 (print_c_feature) <m_next_regnum>: New field.
4026
25aa13e5
YQ
40272017-07-26 Yao Qi <yao.qi@linaro.org>
4028
4029 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4030 (FEATURE_XMLFILES): New.
4031 (FEATURE_CFILES): New.
4032 New rules.
4033 (clean-cfiles): Remove generated c files.
4034 * features/i386/32bit-avx.c: Generated.
4035 * features/i386/32bit-avx512.c: Generated.
4036 * features/i386/32bit-core.c: Generated.
4037 * features/i386/32bit-linux.c: Generated.
4038 * features/i386/32bit-mpx.c: Generated.
4039 * features/i386/32bit-pkeys.c: Generated.
4040 * features/i386/32bit-sse.c: Generated.
4041 * target-descriptions.c: Include algorithm.
4042 (tdesc_element_visitor): Add method visit_end.
4043 (print_c_tdesc): Implement visit_end.
4044 (print_c_tdesc:: m_filename_after_features): Move it to
4045 protected.
4046 (print_c_feature): New class.
4047 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4048 name starts with "i386/32bit-".
4049
6eb1e6a8
YQ
40502017-07-26 Yao Qi <yao.qi@linaro.org>
4051
4052 * target-descriptions.c (tdesc_element_visitor): New class.
4053 (tdesc_element): New class.
4054 (tdesc_reg): Inherit from tdesc_element.
4055 (tdesc_reg::accept): New function.
4056 (tdesc_type): Inherit from tdesc_element.
4057 (tdesc_type::accept): New function.
4058 (tdesc_feature): Inherit from tdesc_element.
4059 (tdesc_feature::accept): New function.
4060 (target_desc): Inherit from tdesc_element.
4061 (target_desc::target_desc): New.
4062 (target_desc::~target_desc): New.
4063 (target_desc::accept): New.
4064 (allocate_target_description): Use new.
4065 (free_target_description): Use delete.
4066 (print_c_tdesc): New class.
4067 (maint_print_c_tdesc_cmd): Adjust.
4068
4069 * features/aarch64.c: Re-generated.
4070 * features/arc-arcompact.c: Re-generated.
4071 * features/arc-v2.c: Re-generated.
4072 * features/arm/arm-with-iwmmxt.c: Re-generated.
4073 * features/arm/arm-with-m.c: Re-generated.
4074 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4075 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4076 * features/arm/arm-with-neon.c: Re-generated.
4077 * features/arm/arm-with-vfpv2.c: Re-generated.
4078 * features/arm/arm-with-vfpv3.c: Re-generated.
4079 * features/i386/amd64-avx-avx512.c: Re-generated.
4080 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4081 * features/i386/amd64-avx.c: Re-generated.
4082 * features/i386/amd64-avx-linux.c: Re-generated.
4083 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4084 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4085 * features/i386/amd64-avx-mpx.c: Re-generated.
4086 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4087 * features/i386/amd64.c: Re-generated.
4088 * features/i386/amd64-linux.c: Re-generated.
4089 * features/i386/amd64-mpx.c: Re-generated.
4090 * features/i386/amd64-mpx-linux.c: Re-generated.
4091 * features/i386/i386-avx-avx512.c: Re-generated.
4092 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4093 * features/i386/i386-avx.c: Re-generated.
4094 * features/i386/i386-avx-linux.c: Re-generated.
4095 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4096 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4097 * features/i386/i386-avx-mpx.c: Re-generated.
4098 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4099 * features/i386/i386.c: Re-generated.
4100 * features/i386/i386-linux.c: Re-generated.
4101 * features/i386/i386-mmx.c: Re-generated.
4102 * features/i386/i386-mmx-linux.c: Re-generated.
4103 * features/i386/i386-mpx.c: Re-generated.
4104 * features/i386/i386-mpx-linux.c: Re-generated.
4105 * features/i386/x32-avx-avx512.c: Re-generated.
4106 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4107 * features/i386/x32-avx.c: Re-generated.
4108 * features/i386/x32-avx-linux.c: Re-generated.
4109 * features/i386/x32.c: Re-generated.
4110 * features/i386/x32-linux.c: Re-generated.
4111 * features/microblaze.c: Re-generated.
4112 * features/microblaze-with-stack-protect.c: Re-generated.
4113 * features/mips64-dsp-linux.c: Re-generated.
4114 * features/mips64-linux.c: Re-generated.
4115 * features/mips-dsp-linux.c: Re-generated.
4116 * features/mips-linux.c: Re-generated.
4117 * features/nds32.c: Re-generated.
4118 * features/nios2.c: Re-generated.
4119 * features/nios2-linux.c: Re-generated.
4120 * features/rs6000/powerpc-32.c: Re-generated.
4121 * features/rs6000/powerpc-32l.c: Re-generated.
4122 * features/rs6000/powerpc-403.c: Re-generated.
4123 * features/rs6000/powerpc-403gc.c : Re-generated.
4124 * features/rs6000/powerpc-405.c: Re-generated.
4125 * features/rs6000/powerpc-505.c: Re-generated.
4126 * features/rs6000/powerpc-601.c: Re-generated.
4127 * features/rs6000/powerpc-602.c: Re-generated.
4128 * features/rs6000/powerpc-603.c: Re-generated.
4129 * features/rs6000/powerpc-604.c: Re-generated.
4130 * features/rs6000/powerpc-64.c: Re-generated.
4131 * features/rs6000/powerpc-64l.c: Re-generated.
4132 * features/rs6000/powerpc-7400.c: Re-generated.
4133 * features/rs6000/powerpc-750.c: Re-generated.
4134 * features/rs6000/powerpc-860.c: Re-generated.
4135 * features/rs6000/powerpc-altivec32.c: Re-generated.
4136 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4137 * features/rs6000/powerpc-altivec64.c: Re-generated.
4138 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4139 * features/rs6000/powerpc-cell32l.c: Re-generated.
4140 * features/rs6000/powerpc-cell64l.c: Re-generated.
4141 * features/rs6000/powerpc-e500.c: Re-generated.
4142 * features/rs6000/powerpc-e500l.c: Re-generated.
4143 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4144 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4145 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4146 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4147 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4148 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4149 * features/rs6000/powerpc-vsx32.c: Re-generated.
4150 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4151 * features/rs6000/powerpc-vsx64.c: Re-generated.
4152 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4153 * features/rs6000/rs6000.c: Re-generated.
4154 * features/s390-linux32.c: Re-generated.
4155 * features/s390-linux32v1.c: Re-generated.
4156 * features/s390-linux32v2.c: Re-generated.
4157 * features/s390-linux64.c: Re-generated.
4158 * features/s390-linux64v1.c: Re-generated.
4159 * features/s390-linux64v2.c: Re-generated.
4160 * features/s390-te-linux64.c: Re-generated.
4161 * features/s390-tevx-linux64.c: Re-generated.
4162 * features/s390-vx-linux64.c: Re-generated.
4163 * features/s390x-linux64.c: Re-generated.
4164 * features/s390x-linux64v1.c: Re-generated.
4165 * features/s390x-linux64v2.c: Re-generated.
4166 * features/s390x-te-linux64.c: Re-generated.
4167 * features/s390x-tevx-linux64.c: Re-generated.
4168 * features/s390x-vx-linux64.c: Re-generated.
4169 * features/sparc/sparc32-solaris.c: Re-generated.
4170 * features/sparc/sparc64-solaris.c: Re-generated.
4171 * features/tic6x-c62x.c: Re-generated.
4172 * features/tic6x-c62x-linux.c: Re-generated.
4173 * features/tic6x-c64x.c: Re-generated.
4174 * features/tic6x-c64x-linux.c: Re-generated.
4175 * features/tic6x-c64xp.c: Re-generated.
4176 * features/tic6x-c64xp-linux.c: Re-generated.
4177
35b4818d
YQ
41782017-07-26 Yao Qi <yao.qi@linaro.org>
4179
4180 * i386-linux-tdep.c (i386_linux_read_description): New function.
4181 (i386_linux_core_read_description): Call
4182 i386_linux_read_description.
4183 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4184 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4185 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4186 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4187 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4188 * x86-linux-nat.c (x86_linux_read_description): Call
4189 i386_linux_read_description.
4190
8e2141c6
YQ
41912017-07-26 Yao Qi <yao.qi@linaro.org>
4192
4193 * NEWS: Mention it.
4194 * features/Makefile (%.c: %.xml): Pass the xml file name to
4195 command "maint print c-tdesc".
4196 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4197 name from 'arg'.
4198
b468ff4c
YQ
41992017-07-26 Yao Qi <yao.qi@linaro.org>
4200
4201 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4202 in-class initialization.
4203 (tdesc_create_feature): Call new instead of XCNEW.
4204 (free_target_description): Ue delete.
4205
b9c0e1b4
JB
42062017-07-25 John Baldwin <jhb@FreeBSD.org>
4207
4208 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4209
a04b5337
YQ
42102017-07-25 Yao Qi <yao.qi@linaro.org>
4211
4212 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4213 constant.
4214 (amd64_x32_init_abi): Likewise.
4215 * amd64-tdep.h (amd64_init_abi): Update declaration.
4216 (amd64_x32_init_abi): Likewise.
4217
02ad7fc2
YQ
42182017-07-25 Yao Qi <yao.qi@linaro.org>
4219
4220 PR tdep/21717
4221 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4222 condition for FPSCR.
4223 (arm_linux_store_inferior_registers): Likewise.
4224
b6f48cb0
TT
42252017-07-22 Tom Tromey <tom@tromey.com>
4226
4227 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4228 <syscalls_counts>: Now a std::vector.
4229 (get_catch_syscall_inferior_data): Use "new".
4230 (catch_syscall_inferior_data_cleanup): Use "delete".
4231 (insert_catch_syscall, remove_catch_syscall)
4232 (clear_syscall_counts): Update.
4233
e12c9b7a
TT
42342017-07-22 Tom Tromey <tom@tromey.com>
4235
4236 * break-catch-syscall.c (syscall_catchpoint)
4237 <syscalls_to_be_caught>: Now a std::vector<int>
4238 (~syscall_catchpoint): Remove.
4239 (insert_catch_syscall, remove_catch_syscall)
4240 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4241 (print_mention_catch_syscall, print_recreate_catch_syscall):
4242 Update.
4243 (create_syscall_event_catchpoint): Change type of "filter"
4244 parameter.
4245 (catch_syscall_split_args): Return a std::vector.
4246 (catch_syscall_command_1, catching_syscall_number_1): Update.
4247
4fa8aeac
TT
42482017-07-22 Tom Tromey <tom@tromey.com>
4249
4250 * break-catch-throw.c (struct exception_catchpoint)
4251 <exception_rx>: Now a std::string.
4252 (~exception_catchpoint): Remove.
4253 (print_one_detail_exception_catchpoint): Update.
4254 (handle_gnu_v3_exceptions): Change type of except_rx.
4255 (extract_exception_regexp): Return a std::string.
4256 (catch_exception_command_1): Update.
4257
f746a154
TT
42582017-07-22 Tom Tromey <tom@tromey.com>
4259
4260 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4261 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4262 std::vector.
4263 <catch_all>: Now a bool.
4264 (~signal_catchpoint): Remove.
4265 (signal_catchpoint_insert_location)
4266 (signal_catchpoint_remove_location)
4267 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4268 (signal_catchpoint_print_mention)
4269 (signal_catchpoint_print_recreate)
4270 (signal_catchpoint_explains_signal): Update.
4271 (create_signal_catchpoint): Change type of "filter" and
4272 "catch_all".
4273 (catch_signal_split_args): Return a std::vector. Change type of
4274 "catch_all".
4275 (catch_signal_command): Update.
4276
47e77640
PA
42772017-07-20 Pedro Alves <palves@redhat.com>
4278
4279 * ada-lang.c (ada_language_defn): Make extern.
4280 (_initialize_ada_language): Remove add_language call.
4281 * c-lang.c (c_language_defn, cplus_language_defn)
4282 (asm_language_defn, minimal_language_defn): Make extern.
4283 (_initialize_c_language): Delete.
4284 * completer.c (compare_cstrings): Delete, moved to utils.h.
4285 * d-lang.c (d_language_defn): Make extern.
4286 (_initialize_d_language): Remove add_language calls.
4287 * defs.h (enum language): Add comment.
4288 * f-lang.c (f_language_defn): Make extern.
4289 (_initialize_f_language): Remove add_language call.
4290 * go-lang.c (go_language_defn): Make extern.
4291 (_initialize_go_language): Remove add_language call.
4292 * language.c: Include <algorithm>.
4293 (languages): Redefine as const array.
4294 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4295 (set_language_command): Handle "local". Use for-range loop.
4296 (set_language): Remove loop.
4297 (language_enum): Rewrite.
4298 (language_def, language_str): Remove loops.
4299 (add_language): Delete.
4300 (add_set_language_command): New, based on add_languages.
4301 (skip_language_trampoline): Adjust.
4302 (local_language_defn): Delete.
4303 (language_gdbarch_post_init): Adjust.
4304 (_initialize_language): Remove add_language calls. Call
4305 add_set_language_command.
4306 * language.h (add_language): Delete.
4307 (auto_language_defn)
4308 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4309 (asm_language_defn, c_language_defn, cplus_language_defn)
4310 (d_language_defn, f_language_defn, go_language_defn)
4311 (m2_language_defn, objc_language_defn, opencl_language_defn)
4312 (pascal_language_defn, rust_language_defn): Declare.
4313 * m2-lang.c (m2_language_defn): Make extern.
4314 (_initialize_m2_language): Remove add_language call.
4315 * objc-lang.c (objc_language_defn): Make extern.
4316 (_initialize_objc_language): Remove add_language call.
4317 * opencl-lang.c (opencl_language_defn): Make extern.
4318 (_initialize_opencl_language): Remove add_language call.
4319 * p-lang.c (pascal_language_defn): Make extern.
4320 (_initialize_pascal_language): Delete.
4321 * rust-lang.c (rust_language_defn): Make extern.
4322 (_initialize_rust_language): Delete.
4323 * utils.h (compare_cstrings): New static inline function.
4324
edb0c9cb
PA
43252017-07-20 Pedro Alves <palves@redhat.com>
4326
4327 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4328 (get_var_value): Constify parameters.
4329 (get_int_var_value): Change prototype.
4330 (to_fixed_range_type): Adjust.
4331 * ada-lang.h (get_int_var_value): Change prototype.
4332
a778f165
PA
43332017-07-20 Pedro Alves <palves@redhat.com>
4334
4335 * dwarf2read.c (dw2_lookup_symbol): Use
4336 SYMBOL_MATCHES_SEARCH_NAME.
4337 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4338
42edd901
PA
43392017-07-20 Pedro Alves <palves@redhat.com>
4340
4341 * block.c (block_iter_name_step, block_iter_name_first)
4342 (block_iter_name_next): Delete.
4343 (block_lookup_symbol_primary): Adjust to use
4344 dict_iter_match_first/dict_iter_match_next.
4345 * block.h (block_iter_name_first, block_iter_name_next): Delete
4346 declarations.
4347 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4348 dict_iter_match_first/dict_iter_match_next.
4349
cf325299
PA
43502017-07-20 Pedro Alves <palves@redhat.com>
4351
4352 * cp-support.c (cp_find_first_component_aux): Add missing case for
4353 end of string.
4354
c5ed0576
DB
43552017-07-18 David Blaikie <dblaikie@gmail.com>
4356
4357 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4358 of dwo_cu's dwo_file.
4359
27841e76
YQ
43602017-07-18 Yao Qi <yao.qi@linaro.org>
4361
4362 * remote.c (store_registers_using_G): Remove one line comment.
4363
cfb7e58b
YQ
43642017-07-18 Yao Qi <yao.qi@linaro.org>
4365
4366 * regcache.c (regcache_cpy): Simplify it.
4367 (regcache::cpy_no_passthrough): Remove it.
4368 * regcache.h (cpy_no_passthrough): Remove it.
4369 (regcache_dup, regcache_cpy): Update comments.
4370
386535dd
PA
43712017-07-18 Pedro Alves <palves@redhat.com>
4372
4373 * remote-sim.c (sim_command_completer): Adjust to work with a
4374 completion_tracker instead of a VEC.
4375
c45ec17c
PA
43762017-07-17 Pedro Alves <palves@redhat.com>
4377
4378 * completer.c (complete_source_filenames): New function.
4379 (complete_address_and_linespec_locations): New function.
4380 (location_completer): Use complete_address_and_linespec_locations.
4381 (completion_tracker::build_completion_result): Honor the tracker's
4382 request to suppress append.
4383 * completer.h (completion_tracker::suppress_append_ws)
4384 (completion_tracker::set_suppress_append_ws): New methods.
4385 (completion_tracker::m_suppress_append_ws): New field.
4386 (complete_source_filenames): New declaration.
4387 * linespec.c (linespec_complete_what): New.
4388 (struct ls_parser) <complete_what, completion_word,
4389 completion_quote_char, completion_quote_end, completion_tracker>:
4390 New fields.
4391 (string_find_incomplete_keyword_at_end): New.
4392 (linespec_lexer_lex_string): Record quote char. If in completion
4393 mode, don't throw.
4394 (linespec_lexer_consume_token): Advance the completion word point.
4395 (linespec_lexer_peek_token): Save/restore completion info.
4396 (save_stream_and_consume_token): New.
4397 (set_completion_after_number): New.
4398 (linespec_parse_basic): Set what to complete next depending on
4399 token. Handle function and label completions specially.
4400 (parse_linespec): Disable objc shortcut in completion mode. Set
4401 what to complete next depending on token type. Skip keyword if in
4402 completion mode.
4403 (complete_linespec_component, linespec_complete): New.
4404 * linespec.h (linespec_complete): Declare.
4405
be966d42
PA
44062017-07-17 Pedro Alves <palves@redhat.com>
4407
4408 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4409 Handle 'operator<' / 'operator<<'.
4410
a2459270
PA
44112017-07-17 Pedro Alves <palves@redhat.com>
4412
4413 * completer.c (collect_explicit_location_matches): Handle
4414 MATCH_LABEL.
4415 (convert_explicit_location_to_linespec): New, factored out from
4416 ...
4417 (convert_explicit_location_to_sals): ... this.
4418 (complete_label): New.
4419 (linespec_complete_label, find_label_symbols_in_block): New.
4420 (find_label_symbols): Add completion_mode parameter and adjust to
4421 call find_label_symbols_in_block.
4422 * linespec.h (linespec_complete_label): Declare.
4423
c6756f62
PA
44242017-07-17 Pedro Alves <palves@redhat.com>
4425
4426 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4427 complete_symbol_mode parameter.
4428 * cli/cli-cmds.c (complete_command): Get the completion result out
4429 of the handle_brkchars tracker if used a custom word point.
4430 * completer.c: Include "linespec.h".
4431 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4432 (advance_to_expression_complete_word_point): New.
4433 (completion_tracker::completes_to_completion_word): New.
4434 (complete_files_symbols): Pass down
4435 complete_symbol_mode::EXPRESSION.
4436 (explicit_options, probe_options): New.
4437 (collect_explicit_location_matches): Complete on the
4438 explictit_loc->foo instead of word. Use
4439 linespec_complete_function. Handle MATCH_LINE. Handle offering
4440 keyword and options completions.
4441 (backup_text_ptr): Delete.
4442 (skip_keyword): New.
4443 (complete_explicit_location): Remove 'word' parameter. Add
4444 language, quoted_arg_start and quoted_arg_end parameters.
4445 Rewrite, parsing left to right.
4446 (location_completer): Rewrite.
4447 (location_completer_handle_brkchars): New function.
4448 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4449 (enum complete_line_internal_reason): Adjust comments.
4450 (completion_tracker::discard_completions): New.
4451 (completer_handle_brkchars_func_for_completer): Handle
4452 location_completer.
4453 (gdb_custom_word_point_brkchars)
4454 (gdb_org_rl_basic_quote_characters): New.
4455 (gdb_completion_word_break_characters_throw)
4456 (completion_find_completion_word): Handle trackers that use a
4457 custom word point.
4458 (completion_tracker::advance_custom_word_point_by): New.
4459 (completion_tracker::build_completion_result): Don't rely on
4460 readline appending the quote char.
4461 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4462 use a custom word point.
4463 (gdb_rl_attempted_completion_function): Restore
4464 rl_basic_quote_characters.
4465 * completer.h (class completion_tracker): Extend intro comment.
4466 (completion_tracker::set_quote_char)
4467 (completion_tracker::quote_char)
4468 (completion_tracker::set_use_custom_word_point)
4469 (completion_tracker::use_custom_word_point)
4470 (completion_tracker::custom_word_point)
4471 (completion_tracker::set_custom_word_point)
4472 (completion_tracker::advance_custom_word_point_by)
4473 (completion_tracker::completes_to_completion_word)
4474 (completion_tracker::discard_completions): New methods.
4475 (completion_tracker::m_quote_char)
4476 (completion_tracker::m_use_custom_word_point)
4477 (completion_tracker::m_custom_word_point): New fields.
4478 (advance_to_expression_complete_word_point): Declare.
4479 * f-lang.c (f_collect_symbol_completion_matches): Add
4480 complete_symbol_mode parameter.
4481 * language.h (struct language_defn)
4482 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4483 parameter.
4484 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4485 (linespec_complete_function): New function.
4486 (linespec_lexer_lex_keyword): Adjust.
4487 * linespec.h (linespec_keywords, linespec_complete_function): New
4488 declarations.
4489 * location.c (find_end_quote): New function.
4490 (explicit_location_lex_one): Add explicit_completion_info
4491 parameter. Save quoting info. Don't throw if being called for
4492 completion. Don't handle Ada operators here.
4493 (is_cp_operator, skip_op_false_positives, first_of)
4494 (explicit_location_lex_one_function): New function.
4495 (string_to_explicit_location): Replace 'dont_throw' parameter with
4496 an explicit_completion_info pointer parameter. Handle it. Don't
4497 use explicit_location_lex_one to lex function names. Use
4498 explicit_location_lex_one_function instead.
4499 * location.h (struct explicit_completion_info): New.
4500 (string_to_explicit_location): Replace 'dont_throw' parameter with
4501 an explicit_completion_info pointer parameter.
4502 * symtab.c (default_collect_symbol_completion_matches_break_on):
4503 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4504 (default_collect_symbol_completion_matches)
4505 (collect_symbol_completion_matches): Add complete_symbol_mode
4506 parameter.
4507 (collect_symbol_completion_matches_type): Pass down
4508 complete_symbol_mode::EXPRESSION.
4509 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4510 parameter. Handle LINESPEC mode.
4511 * symtab.h (complete_symbol_mode): New.
4512 (default_collect_symbol_completion_matches_break_on)
4513 (default_collect_symbol_completion_matches)
4514 (collect_symbol_completion_matches)
4515 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4516 parameter.
4517
1d550c82
PA
45182017-07-17 Pedro Alves <palves@redhat.com>
4519
4520 * utils.c (enum class strncmp_iw_mode): New.
4521 (strcmp_iw): Rename to ...
4522 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4523 parameters. Handle them.
4524 (strncmp_iw): New.
4525 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4526 * utils.h (strncmp_iw): Declare.
4527 (strcmp_iw): Move describing comments here.
4528
8090b426
PA
45292017-07-17 Pedro Alves <palves@redhat.com>
4530
4531 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4532 CP_OPERATOR_STR.
4533 * c-typeprint.c (is_type_conversion_operator): Use
4534 CP_OPERATOR_STR.
4535 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4536 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4537 CP_OPERATOR_LEN.
4538 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4539 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4540 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4541 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4542 CP_OPERATOR_STR.
4543 * location.c: Include "cp-support.h".
4544 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4545 CP_OPERATOR_STR.
4546 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4547 CP_OPERATOR_LEN.
4548
6a2c1b87
PA
45492017-07-17 Pedro Alves <palves@redhat.com>
4550
4551 * cli/cli-cmds.c (complete_command): Use a completion tracker
4552 along with completion_find_completion_word for handle_brkchars
4553 phase.
4554 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4555 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4556 (struct gdb_rl_completion_word_info): New.
4557 (gdb_rl_find_completion_word): New.
4558 (completion_find_completion_word): New.
4559 * completer.h (completion_find_completion_word): Declare.
4560
eb3ff9a5
PA
45612017-07-17 Pedro Alves <palves@redhat.com>
4562
4563 * ada-lang.c (symbol_completion_match): Adjust comments.
4564 (symbol_completion_add): Replace vector parameter with
4565 completion_tracker parameter. Use it.
4566 (ada_make_symbol_completion_list): Rename to...
4567 (ada_collect_symbol_completion_matches): ... this. Add
4568 completion_tracker parameter and use it.
4569 (ada_language_defn): Adjust.
4570 * break-catch-syscall.c (catch_syscall_completer): Adjust
4571 prototype and work with completion_tracker instead of VEC.
4572 * breakpoint.c (condition_completer): Adjust prototype and work
4573 with completion_tracker instead of VEC.
4574 * c-lang.c (c_language_defn, cplus_language_defn)
4575 (asm_language_defn, minimal_language_defn): Adjust to renames.
4576 * cli/cli-cmds.c (complete_command): Rework using
4577 completion_tracker. Catch exceptions when completing.
4578 * cli/cli-decode.c (integer_unlimited_completer)
4579 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4580 with completion_tracker instead of VEC.
4581 * command.h (struct completion_tracker): Forward declare.
4582 (completer_ftype, completer_handle_brkchars_ftype): Change
4583 types.
4584 (complete_on_cmdlist, complete_on_enum): Adjust.
4585 * completer.c: Include <algorithm>.
4586 (struct gdb_completer_state): New.
4587 (current_completion): New global.
4588 (readline_line_completion_function): Delete.
4589 (noop_completer, filename_completer)
4590 (filename_completer_handle_brkchars, complete_files_symbols)
4591 (linespec_location_completer): Adjust to work with a
4592 completion_tracker instead of a VEC.
4593 (string_or_empty): New.
4594 (collect_explicit_location_matches): Adjust to work with a
4595 completion_tracker instead of a VEC.
4596 (explicit_location_completer): Rename to ...
4597 (complete_explicit_location): ... this and adjust to work with a
4598 completion_tracker instead of a VEC.
4599 (location_completer): Adjust to work with a completion_tracker
4600 instead of a VEC.
4601 (add_struct_fields): Adjust to work with a completion_list instead
4602 of VEC.
4603 (expression_completer): Rename to ...
4604 (complete_expression): ... this and adjust to work with a
4605 completion_tracker instead of a VEC. Use complete_files_symbols.
4606 (expression_completer): Reimplement on top of complete_expression.
4607 (symbol_completer): Adjust to work with a completion_tracker
4608 instead of a VEC.
4609 (enum complete_line_internal_reason): Add describing comments.
4610 (complete_line_internal_normal_command): Adjust to work with a
4611 completion_tracker instead of a VEC.
4612 (complete_line_internal): Rename to ...
4613 (complete_line_internal_1): ... this and adjust to work with a
4614 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4615 handle_brkchars phase.
4616 (new_completion_tracker): Delete.
4617 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4618 complete_line_internal_1.
4619 (free_completion_tracker): Delete.
4620 (INITIAL_COMPLETION_HTAB_SIZE): New.
4621 (completion_tracker::completion_tracker)
4622 (completion_tracker::~completion_tracker): New.
4623 (maybe_add_completion): Delete.
4624 (completion_tracker::maybe_add_completion)
4625 (completion_tracker::add_completion)
4626 (completion_tracker::add_completions): New.
4627 (throw_max_completions_reached_error): Delete.
4628 (complete_line): Adjust to work with a completion_tracker instead
4629 of a VEC. Don't create a completion_tracker_t or check for max
4630 completions here.
4631 (command_completer, command_completer_handle_brkchars)
4632 (signal_completer, reg_or_group_completer_1)
4633 (reg_or_group_completer, default_completer_handle_brkchars):
4634 Adjust to work with a completion_tracker.
4635 (gdb_completion_word_break_characters_throw): New.
4636 (gdb_completion_word_break_characters): Reimplement.
4637 (line_completion_function): Delete.
4638 (completion_tracker::recompute_lowest_common_denominator)
4639 (expand_preserving_ws)
4640 (completion_tracker::build_completion_result)
4641 (completion_result::completion_result)
4642 (completion_result::completion_result)
4643 (completion_result::~completion_result)
4644 (completion_result::completion_result)
4645 (completion_result::release_match_list, compare_cstrings)
4646 (completion_result::sort_match_list)
4647 (completion_result::reset_match_list)
4648 (gdb_rl_attempted_completion_function_throw)
4649 (gdb_rl_attempted_completion_function): New.
4650 * completer.h (completion_list, struct completion_result)
4651 (class completion_tracker): New.
4652 (complete_line): Add completion_tracker parameter.
4653 (readline_line_completion_function): Delete.
4654 (gdb_rl_attempted_completion_function): New.
4655 (noop_completer, filename_completer, expression_completer)
4656 (location_completer, symbol_completer, command_completer)
4657 (signal_completer, reg_or_group_completer): Update prototypes.
4658 (completion_tracker_t, new_completion_tracker)
4659 (make_cleanup_free_completion_tracker): Delete.
4660 (enum maybe_add_completion_enum): Delete.
4661 (maybe_add_completion): Delete.
4662 (throw_max_completions_reached_error): Delete.
4663 * corefile.c (complete_set_gnutarget): Adjust to work with a
4664 completion_tracker instead of a VEC.
4665 * cp-abi.c (cp_abi_completer): Adjust to work with a
4666 completion_tracker instead of a VEC.
4667 * d-lang.c (d_language_defn): Adjust.
4668 * disasm.c (disassembler_options_completer): Adjust to work with a
4669 completion_tracker instead of a VEC.
4670 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4671 (f_collect_symbol_completion_matches): ... this. Adjust to work
4672 with a completion_tracker instead of a VEC.
4673 (f_language_defn): Adjust.
4674 * go-lang.c (go_language_defn): Adjust.
4675 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4676 Adjust to work with a completion_tracker instead of a VEC.
4677 * infrun.c (handle_completer): Likewise.
4678 * interps.c (interpreter_completer): Likewise.
4679 * interps.h (interpreter_completer): Likewise.
4680 * language.c (unknown_language_defn, auto_language_defn)
4681 (local_language_defn): Adjust.
4682 * language.h (language_defn::la_make_symbol_completion_list):
4683 Rename to ...
4684 (language_defn::la_collect_symbol_completion_matches): ... this
4685 and adjust to work with a completion_tracker instead of a VEC.
4686 * m2-lang.c (m2_language_defn): Adjust.
4687 * objc-lang.c (objc_language_defn): Adjust.
4688 * opencl-lang.c (opencl_language_defn): Adjust.
4689 * p-lang.c (pascal_language_defn): Adjust.
4690 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4691 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4692 with a completion_tracker.
4693 * rust-lang.c (rust_language_defn): Adjust.
4694 * symtab.c (free_completion_list, do_free_completion_list)
4695 (return_val, completion_tracker): Delete.
4696 (completion_list_add_name, completion_list_add_symbol)
4697 (completion_list_add_msymbol, completion_list_objc_symbol)
4698 (completion_list_add_fields, add_symtab_completions): Add
4699 completion_tracker parameter and use it.
4700 (default_make_symbol_completion_list_break_on_1): Rename to...
4701 (default_collect_symbol_completion_matches_break_on): ... this.
4702 Add completion_tracker parameter and use it instead of allocating
4703 a completion tracker here.
4704 (default_make_symbol_completion_list_break_on): Delete old
4705 implementation.
4706 (default_make_symbol_completion_list): Delete.
4707 (default_collect_symbol_completion_matches): New.
4708 (make_symbol_completion_list): Delete.
4709 (collect_symbol_completion_matches): New.
4710 (make_symbol_completion_type): Rename to ...
4711 (collect_symbol_completion_matches_type): ... this. Add
4712 completion_tracker parameter and use it instead of VEC.
4713 (make_file_symbol_completion_list_1): Rename to...
4714 (collect_file_symbol_completion_matches): ... this. Add
4715 completion_tracker parameter and use it instead of VEC.
4716 (make_file_symbol_completion_list): Delete.
4717 (add_filename_to_list): Use completion_list instead of a VEC.
4718 (add_partial_filename_data::list): Now a completion_list.
4719 (make_source_files_completion_list): Work with a completion_list
4720 instead of a VEC.
4721 * symtab.h: Include "completer.h".
4722 (default_make_symbol_completion_list_break_on)
4723 (default_make_symbol_completion_list, make_symbol_completion_list)
4724 (make_symbol_completion_type, make_file_symbol_completion_list)
4725 (make_source_files_completion_list): Delete.
4726 (default_collect_symbol_completion_matches_break_on)
4727 (default_collect_symbol_completion_matches)
4728 (collect_symbol_completion_matches)
4729 (collect_symbol_completion_matches_type)
4730 (collect_file_symbol_completion_matches)
4731 (make_source_files_completion_list): New.
4732 * top.c (init_main): Don't install a rl_completion_entry_function
4733 hook. Install a rl_attempted_completion_function hook instead.
4734 * tui/tui-layout.c (layout_completer): Adjust to work with a
4735 completion_tracker.
4736 * tui/tui-regs.c (tui_reggroup_completer):
4737 * tui/tui-win.c (window_name_completer, focus_completer)
4738 (winheight_completer): Adjust to work with a completion_tracker.
4739 * value.c: Include "completer.h".
4740 (complete_internalvar): Adjust to work with a completion_tracker.
4741 * value.h (complete_internalvar): Likewise.
4742
6e1dbf8c
PA
47432017-07-17 Pedro Alves <palves@redhat.com>
4744
4745 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4746 renames.
4747 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4748 comments to completer_ftype's declaration.
4749 <completer_handle_brkchars>: Change type to
4750 completer_handle_brkchars_ftype.
4751 * command.h (completer_ftype): Add describing comment and give
4752 names to parameters.
4753 (completer_ftype_void): Rename to ...
4754 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4755 (set_cmd_completer_handle_brkchars): Adjust.
4756 * completer.c (filename_completer_handle_brkchars): New function.
4757 (complete_line_internal_normal_command): New function, factored
4758 out from ...
4759 (complete_line_internal): ... here.
4760 (command_completer_handle_brkchars)
4761 (default_completer_handle_brkchars)
4762 (completer_handle_brkchars_func_for_completer): New functions.
4763 * completer.h (set_gdb_completion_word_break_characters): Delete
4764 declaration.
4765 (completer_handle_brkchars_func_for_completer): New declaration.
4766 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4767 completer_handle_brkchars_func_for_completer.
4768
78b13106
PA
47692017-07-17 Pedro Alves <palves@redhat.com>
4770
4771 * completer.c (symbol_completer): New function, based on
4772 make_symbol_completion_list_fn.
4773 * completer.h (symbol_completer): New declaration.
4774 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4775 * python/py-cmd.c (completers): Adjust.
4776 * symtab.c (make_symbol_completion_list_fn): Delete.
4777 * symtab.h (make_symbol_completion_list_fn): Delete.
4778 * cli/cli-decode.c (add_cmd): Adjust.
4779
bbf2f4df
PA
47802017-07-17 Pedro Alves <palves@redhat.com>
4781
4782 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4783 * dwarf2read.c: Include "filename-seen-cache.h".
4784 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4785 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4786 * filename-seen-cache.c: New file.
4787 * filename-seen-cache.h: New file.
4788 * symtab.c: Include "filename-seen-cache.h".
4789 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4790 (create_filename_seen_cache, clear_filename_seen_cache)
4791 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4792 to filename-seen-cache.h/filename-seen-cache.c.
4793 (output_source_filename, sources_info)
4794 (maybe_add_partial_symtab_filename)
4795 (make_source_files_completion_list): Adjust to use
4796 filename_seen_cache.
4797
330cdd98
PA
47982017-07-17 Pedro Alves <palves@redhat.com>
4799
4800 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4801 fields.
4802 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4803 dwarf2_debug_sections*)): New.
4804 (dwarf2_per_objfile::dwarf2_per_objfile(const
4805 dwarf2_per_objfile&)): Declare as deleted.
4806 (dwarf2_per_objfile::operator=): Declare as deleted.
4807 (dwarf2_per_objfile::dwarf2_per_objfile)
4808 (dwarf2_per_objfile::~dwarf2_per_objfile)
4809 (dwarf2_per_objfile::free_cached_comp_units): New.
4810 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4811 ctor. Call dwarf2_per_objfile's ctor manually.
4812 (dwarf2_locate_sections): Deleted/refactored as ...
4813 (dwarf2_per_objfile::locate_sections): ... this new method.
4814 (free_cached_comp_units): Defer to
4815 dwarf2_per_objfile::free_cached_comp_units.
4816 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4817
8880f2a9
TT
48182017-07-14 Tom Tromey <tom@tromey.com>
4819
4820 PR rust/21764:
4821 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4822 parameter.
4823 <UNOP_SIZEOF>: Split into separate case.
4824 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4825
65547233
TT
48262017-07-14 Tom Tromey <tom@tromey.com>
4827
4828 PR rust/21763:
4829 * symtab.c (symbol_matches_domain): Add language_rust to special
4830 case.
4831 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4832 treat LOC_TYPEDEF symbols as variables.
4833
8f14146e
PA
48342017-07-14 Pedro Alves <palves@redhat.com>
4835
4836 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4837 symtabs matching all symtabs with SRCFILE as file name instead of
4838 only considering the first hit, with lookup_symtab.
4839
2347965c
SM
48402017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4841
4842 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4843 operator_name parameters.
4844 (gen_expr): Update function call.
4845
40f4af28
SM
48462017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4847
4848 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4849 parameter.
4850 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4851 Likewise.
4852 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4853 parameter, use agent_expr::gdbarch instead, update function
4854 calls.
4855 (locexpr_tracepoint_var_ref): Likewise.
4856 (loclist_tracepoint_var_ref): Likewise.
4857 * ax-gdb.c (gen_trace_static_fields): Likewise.
4858 (gen_traced_pop): Likewise.
4859 (gen_frame_args_address): Likewise.
4860 (gen_frame_locals_address): Likewise.
4861 (gen_var_ref): Likewise.
4862 (gen_struct_ref_recursive): Likewise.
4863 (gen_static_field): Likewise.
4864 (gen_maybe_namespace_elt): Likewise.
4865 (gen_expr): Likewise.
4866 (gen_trace_for_var): Likewise.
4867 (gen_trace_for_expr): Likewise.
4868 (gen_trace_for_return_address): Likewise.
4869
053f8057
SM
48702017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4871
4872 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4873 parameter.
4874 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4875
6661ad48
SM
48762017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4877
4878 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4879 from ax, update calls.
4880 (gen_usual_arithmetic): Likewise.
4881 (gen_integral_promotions): Likewise.
4882 (gen_bitfield_ref): Likewise.
4883 (gen_primitive_field): Likewise.
4884 (gen_struct_ref_recursive): Likewise.
4885 (gen_struct_ref): Likewise.
4886 (gen_maybe_namespace_elt): Likewise.
4887 (gen_struct_elt_for_reference): Likewise.
4888 (gen_namespace_elt): Likewise.
4889 (gen_aggregate_elt_ref): Likewise.
4890 (gen_expr): Get gdbarch from ax, update calls.
4891 (gen_expr_binop_rest): Likewise.
4892
c55a47e7
PA
48932017-07-13 Pedro Alves <palves@redhat.com>
4894
4895 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4896 as default tdesc.
4897 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4898 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4899 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4900 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4901 tdep.
4902 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4903 Get final tdesc from the tdep.
4904 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4905 default tdesc.
4906 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4907 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4908 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4909 Use it as default tdesc.
4910 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4911 down to amd_init_abi. No longer handle fallback tdesc here.
4912 * amd64-tdep.h (tdesc_x32): Declare.
4913 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4914 parameter.
4915 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4916 as default tdesc.
4917
55efceab
AA
49182017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4919
4920 * s390-linux-tdep.c (s390_process_record): Add support for
4921 instructions new in arch12.
4922
0aa37b65
JB
49232017-07-11 John Baldwin <jhb@FreeBSD.org>
4924
4925 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4926 PT_GETFSBASE and PT_GETGSBASE.
4927 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4928 PT_SETGSBASE.
4929
48aeef91
JB
49302017-07-11 John Baldwin <jhb@FreeBSD.org>
4931
4932 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4933 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4934 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4935 those rules.
4936 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4937 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4938 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4939 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4940 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4941 * features/i386/amd64.xml: Add 64bit-segments.xml.
4942 * features/i386/amd64-avx-avx512.c: Regenerated.
4943 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4944 * features/i386/amd64-avx-mpx.c: Regenerated.
4945 * features/i386/amd64-avx.c: Regenerated.
4946 * features/i386/amd64-mpx.c: Regenerated.
4947 * features/i386/amd64.c: Regenerated.
4948 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4949 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4950 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4951 * regformats/i386/amd64-avx.dat: Regenerated.
4952 * regformats/i386/amd64-mpx.dat: Regenerated.
4953 * regformats/i386/amd64.dat: Regenerated.
4954
77c501bc
YQ
49552017-07-10 Yao Qi <yao.qi@linaro.org>
4956
4957 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4958 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4959
6dc8d757
AK
49602017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4961
4962 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4963 unsetenv.
4964 * gnulib/aclocal.m4: Regenerate.
4965 * gnulib/config.in: Regenerate.
4966 * gnulib/configure: Regenerate.
4967 * gnulib/import/Makefile.am: Regenerate.
4968 * gnulib/import/Makefile.in: Regenerate.
4969 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4970 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4971 * gnulib/import/m4/environ.m4: New file.
4972 * gnulib/import/m4/setenv.m4: New file.
4973 * gnulib/import/setenv.c: New file.
4974 * gnulib/import/unsetenv.c: New file.
4975
266934d1
SM
49762017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4977
4978 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4979 address when op is DW_OP_addr.
4980
03278692
TT
49812017-07-09 Tom Tromey <tom@tromey.com>
4982
4983 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4984 check and apply to outer type.
4985
4b654465
JB
49862017-07-07 John Baldwin <jhb@FreeBSD.org>
4987
4988 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4989 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4990 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4991 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4992
2af9fc44
JB
49932017-07-07 John Baldwin <jhb@FreeBSD.org>
4994
4995 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4996
382b69bb
JB
49972017-07-07 John Baldwin <jhb@FreeBSD.org>
4998
4999 * corelow.c (get_core_siginfo): Remove.
5000 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5001 instead of get_core_siginfo.
5002 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5003 * gdbarch.h: Re-generate.
5004 * gdbarch.c: Re-generate.
5005 * linux-tdep.c (linux_core_xfer_siginfo): New.
5006 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5007
6e5eab33
JB
50082017-07-07 John Baldwin <jhb@FreeBSD.org>
5009
5010 * corelow.c (thread_section_name): Move to ...
5011 * gdbcore.h (thread_section_name): ... here.
5012
929edea9
JB
50132017-07-07 John Baldwin <jhb@FreeBSD.org>
5014
5015 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5016 (struct siginfo32): New.
5017 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5018 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5019 via ptrace(PT_LWPINFO).
5020
762c974a
JB
50212017-07-07 John Baldwin <jhb@FreeBSD.org>
5022
5023 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5024 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5025 (fbsd_get_siginfo_type): New.
5026 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5027 (_initialize_fbsd_tdep): New.
5028
33c5cd75
DB
50292017-07-06 David Blaikie <dblaikie@gmail.com>
5030
5031 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5032 a singular dwo_unit*) to support multiple CUs in the same way that
5033 multiple TUs are supported.
5034 (create_cus_hash_table): Replace create_dwo_cu with a function for
5035 parsing multiple CUs from a DWO file.
5036 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5037 create_dwo_cu.
5038 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5039 htab_find, rather than comparing the signature to a singleton CU in
5040 the dwo_file.
5041
8455d262
PA
50422017-07-06 Pedro Alves <palves@redhat.com>
5043
5044 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5045
4da3eb35
PA
50462017-07-04 Pedro Alves <palves@redhat.com>
5047
5048 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5049 * gdbtypes.h (TYPE_STATIC): Delete.
5050 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5051 is_synchronized, is_native>: Delete.
5052 <dummy>: Bump.
5053 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5054 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5055 (TYPE_FN_FIELD_ABSTRACT): Delete.
5056
5bfd255c
SM
50572017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5058
5059 * buffer.h (buffer_finish): Fix spelling mistakes.
5060
25c54127
EZ
50612017-07-01 Eli Zaretskii <eliz@gnu.org>
5062
5063 * .dir-locals.el: Automatically switch to C-style comments in
5064 versions of Emacs that support the feature.
5065
dc4bde35
SDJ
50662017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5067 Pedro Alves <palves@redhat.com>
5068
5069 PR cli/21688
5070 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5071 (process_next_line): New variable 'inline_cmd'.
5072 Adjust 'if' clauses for "python", "compile" and "guile" to use
5073 'command_name_equals' and check for '!inline_cmd'.
5074
51ed89aa
SDJ
50752017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5076
5077 PR cli/21688
5078 * cli/cli-script.c (command_name_equals_not_inline): New function.
5079 (process_next_line): Adjust 'if' clauses for "python", "compile"
5080 and "guile" to use command_name_equals_not_inline.
5081
eb17d413
PA
50822017-06-29 Pedro Alves <palves@redhat.com>
5083
5084 * completer.c (expression_completer): Call
5085 linespec_location_completer instead of location_completer.
5086
195bcdd5
PA
50872017-06-29 Pedro Alves <palves@redhat.com>
5088
5089 * completer.c (expression_completer): Remove code that recomputes
5090 'text' from 'word'.
5091
adc764e7
YQ
50922017-06-29 Yao Qi <yao.qi@linaro.org>
5093
5094 * regformats/regdat.sh: Generate code with
5095 "ifndef IN_PROCESS_AGENT".
5096
6e75794e
PA
50972017-06-28 Pedro Alves <palves@redhat.com>
5098
5099 * command.h: Include "common/scoped_restore.h".
5100
bc491f2e
YQ
51012017-06-28 Yao Qi <yao.qi@linaro.org>
5102
5103 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5104 instead of obstack_grow.
5105
41664b45
DG
51062017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5107
5108 PR gdb/21337
5109 * symfile.c (reread_symbols): Call objfiles_changed just before
5110 read_symbols.
5111
6da67eb1
PA
51122017-06-27 Pedro Alves <palves@redhat.com>
5113
5114 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5115 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5116 (completion_list_add_symbol, completion_list_add_msymbol):
5117 ... these new functions.
5118 (add_symtab_completions)
5119 (default_make_symbol_completion_list_break_on_1): Adjust.
5120
23732b1e
PA
51212017-06-27 Pedro Alves <palves@redhat.com>
5122
5123 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5124 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5125 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5126 dtor.
5127 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5128 'storage_obstack' field an auto_obstack. In-class initialize all
5129 non-bitfield fields. Make minsyms_read bool.
5130 * symfile.c (read_symbols): Adjust.
5131
a4d1e79a
AH
51322017-06-27 Alan Hayward <alan.hayward@arm.com>
5133
5134 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5135 (gdbsim_store_register): Likewise.
5136
8268c778
PA
51372017-06-27 Pedro Alves <palves@redhat.com>
5138
5139 * c-exp.y (name_obstack): Now an auto_obstack.
5140 (yylex): Use auto_obstack::clear.
5141 (c_parse): Use auto_obstack::clear instead of reinitializing and
5142 freeing the obstack.
5143 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5144 * d-exp.y (name_obstack): Now an auto_obstack.
5145 (yylex): Use auto_obstack::clear.
5146 (d_parse): Use auto_obstack::clear instead of reinitializing and
5147 freeing the obstack.
5148 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5149 auto_obstack.
5150 * dwarf2read.c (create_addrmap_from_index)
5151 (dwarf2_build_psymtabs_hard)
5152 (update_enumeration_type_from_children): Likewise.
5153 * gdb_obstack.h (auto_obstack): New type.
5154 * go-exp.y (name_obstack): Now an auto_obstack.
5155 (build_packaged_name): Use auto_obstack::clear.
5156 (go_parse): Use auto_obstack::clear instead of reinitializing and
5157 freeing the obstack.
5158 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5159 auto_obstack.
5160 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5161 * rust-exp.y (work_obstack): Now an auto_obstack.
5162 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5163 reinitializing and freeing the obstack.
5164 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5165 (host_char_to_target): Use auto_obstack.
5166 * utils.h (make_cleanup_obstack_free): Delete declaration.
5167 * valprint.c (generic_emit_char, generic_printstr): Use
5168 auto_obstack.
5169
db665f42
SM
51702017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5171
5172 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5173 thread.
5174 (darwin_init_thread_list): Don't update dummy thread.
5175 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5176
873c0814
SM
51772017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5178
5179 * record-full.c (netorder16): Remove.
5180
8b5a7a6e
SM
51812017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5182
5183 * common/diagnostics.h: Define macros for GCC.
5184 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5185 * common/vec.h: Include diagnostics.h.
5186 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5187 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5188 warning.
5189
d1435379
SM
51902017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5191
5192 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5193 New macro.
5194 * ada-lex.l: Ignore deprecated register warnings.
5195
cc75e0fd
SM
51962017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5197
5198 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5199 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5200
07809eaf
SM
52012017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5202
5203 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5204 its own line.
5205
f076f034
SM
52062017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5207
5208 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5209
0dd5cbc5
AH
52102017-06-23 Alan Hayward <alan.hayward@arm.com>
5211
5212 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5213 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5214 (xtensa_register_read_masked): Likewise.
5215
d4c6ce5b
SDJ
52162017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5217
5218 * common/environ.c (gdb_environ::unset): Update comment.
5219
16892a03
AH
52202017-06-22 Alan Hayward <alan.hayward@arm.com>
5221
5222 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5223 registers.
5224
d7dcbefc
AH
52252017-06-22 Alan Hayward <alan.hayward@arm.com>
5226
5227 * record-full.c (record_full_exec_insn): Use byte_vector.
5228
b30ff123
YQ
52292017-06-22 Yao Qi <yao.qi@linaro.org>
5230
5231 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5232 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5233
4fa847d7
AH
52342017-06-22 Alan Hayward <alan.hayward@arm.com>
5235
5236 * remote.c (cached_reg): Move from here...
5237 * regcache.h (cached_reg): ...to here.
5238 * python/py-unwind.c (struct reg_info): Remove.
5239 (cached_frame_info): Use cached_reg_t.
5240 (pyuw_prev_register): Likewise.
5241 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5242 (pyuw_dealloc_cache): Free all registers.
5243
f4906a9a
PA
52442017-06-22 Pedro Alves <palves@redhat.com>
5245 Simon Marchi <simon.marchi@ericsson.com>
5246
5247 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5248 warning.
5249 * common/diagnostics.h: New file.
5250
b45a1208
PA
52512017-06-22 Pedro Alves <palves@redhat.com>
5252
5253 * common/agent.h: Add include guards.
5254
e4da2c61
SM
52552017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5256
5257 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5258 talk about addressable units instead of bytes.
5259
96160d60
SDJ
52602017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5261
5262 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5263 of '::const_iterator'.
5264
9a6c7d9c
SDJ
52652017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5266
5267 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5268 'unittests/environ-selftests.c'.
5269 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5270 * charset.c (find_charset_names): Declare object 'iconv_env'.
5271 Update code to use 'iconv_env' object. Remove call to
5272 'free_environ'.
5273 * common/environ.c: Include <utility>.
5274 (make_environ): Delete function.
5275 (free_environ): Delete function.
5276 (gdb_environ::clear): New function.
5277 (gdb_environ::operator=): New function.
5278 (gdb_environ::get): Likewise.
5279 (environ_vector): Delete function.
5280 (set_in_environ): Delete function.
5281 (gdb_environ::set): New function.
5282 (unset_in_environ): Delete function.
5283 (gdb_environ::unset): New function.
5284 (gdb_environ::envp): Likewise.
5285 * common/environ.h: Include <vector>.
5286 (struct gdb_environ): Delete; transform into...
5287 (class gdb_environ): ... this class.
5288 (free_environ): Delete prototype.
5289 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5290 environ_vector): Likewise.
5291 * infcmd.c (run_command_1): Update code to call
5292 'envp' from 'gdb_environ' class.
5293 (environment_info): Update code to call methods from 'gdb_environ'
5294 class.
5295 (unset_environment_command): Likewise.
5296 (path_info): Likewise.
5297 (path_command): Likewise.
5298 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5299 (inferior::inferior): Initialize 'environment' using the host's
5300 information.
5301 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5302 Include "environ.h".
5303 (class inferior) <environment>: Change type from 'struct
5304 gdb_environ' to 'gdb_environ'.
5305 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5306 methods from 'gdb_environ' class.
5307 * solib.c (solib_find_1): Likewise
5308 * unittests/environ-selftests.c: New file.
5309
75c554cf
YQ
53102017-06-20 Yao Qi <yao.qi@linaro.org>
5311
5312 * features/i386/i386-linux.xml: Exchange the order of including
5313 32bit-linux.xml and 32bit-sse.xml.
5314 * features/i386/i386-linux.c: Regenerated.
5315
72ddacb7
YQ
53162017-06-20 Yao Qi <yao.qi@linaro.org>
5317
5318 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5319 Delete copy ctor and assignment operator.
5320 (tdesc_type): Likewise.
5321 (tdesc_feature): Likewise.
5322 (tdesc_free_reg): Remove.
5323 (tdesc_create_reg): Use new.
5324 (tdesc_free_type): Remove.
5325 (tdesc_create_vector): Use new.
5326 (tdesc_create_union): Likewise.
5327 (tdesc_create_flags): Likewise.
5328 (tdesc_create_enum): Likewise.
5329 (tdesc_free_feature): Delete.
5330 (free_target_description): Use delete.
5331
325c9fd4
JB
53322017-06-19 John Baldwin <jhb@FreeBSD.org>
5333
5334 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5335 registers.
5336
16b7a719
PA
53372017-06-19 Pedro Alves <palves@redhat.com>
5338
5339 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5340 after gdb::unlinker.
5341
1c8e01c9
SDJ
53422017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5343
5344 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5345 gdb_environ to access an environment variable.
5346
ffce45d2
TP
53472017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5348
5349 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5350 gdb_byte*.
5351
1d4fbac9
SM
53522017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5353
5354 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5355
8465943a
SM
53562017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5357
5358 * configure: Re-generate.
5359 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5360
3e019bdc
SM
53612017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5362
5363 * configure: Re-generate.
5364 * warning.m4: Pass -Werror to compiler when checking for
5365 supported warning flags.
5366
cf0dd6f0
SM
53672017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5368
5369 * Makefile.in (COMPILE.pre): Add "-x c++".
5370
6f98355c
YQ
53712017-06-16 Alan Hayward <alan.hayward@arm.com>
5372 Pedro Alves <palves@redhat.com>
5373 Yao Qi <yao.qi@linaro.org>
5374
5375 * defs.h (RequireLongest): New.
5376 (extract_integer): Declare function template.
5377 (extract_signed_integer): Remove the declaration, but define it
5378 static inline.
5379 (extract_unsigned_integer): Likewise.
5380 (store_integer): Declare function template.
5381 (store_signed_integer): Remove the declaration, but define it
5382 static inline.
5383 (store_unsigned_integer): Likewise.
5384 * findvar.c (extract_integer): New function template.
5385 (extract_signed_integer): Remove.
5386 (extract_unsigned_integer): Remove.
5387 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5388 instantiations.
5389 (store_integer): New function template.
5390 (store_signed_integer): Remove.
5391 (store_unsigned_integer): Remove.
5392 (store_integer): Explicit instantiations.
5393 * regcache.c (regcache_raw_read_signed): Update.
5394 (regcache::raw_read): New function.
5395 (regcache::raw_read_signed): Remove.
5396 (regcache::raw_read_unsigned): Remove.
5397 (regcache_raw_read_unsigned): Update.
5398 (regcache_raw_write_unsigned): Update.
5399 (regcache::raw_write_signed): Remove.
5400 (regcache::raw_write): New function.
5401 (regcache_cooked_read_signed): Update.
5402 (regcache::raw_write_unsigned): Remove.
5403 (regcache::cooked_read_signed): Remove.
5404 (regcache_cooked_read_unsigned): Update.
5405 (regcache::cooked_read_unsigned): Remove.
5406 (regcache_cooked_write_signed): Update.
5407 (regcache_cooked_write_unsigned): Update.
5408 * regcache.h (regcache) <raw_read_signed>: Remove.
5409 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5410 <raw_read, raw_write>: New.
5411 <cooked_read_signed, cooked_write_signed>: Remove.
5412 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5413 <cooked_read, cooked_write>: New.
5414 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5415 (sh64_pseudo_register_write): Update.
5416
a87dc45a
AK
54172017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5418
5419 * arc-tdep.c (arc_disassembler_options): New variable.
5420 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5421 of default_print_insn.
5422 (arc_delayed_print_insn): Set info->section when needed,
5423 use default_print_insn to retrieve a disassembler.
5424
45159d6a
SDJ
54252017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5426
5427 PR gdb/21574
5428 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5429 to mention $SHELL and startup-with-shell.
5430
b46c4cf0
MF
54312017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5432
5433 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5434
6394c606
YQ
54352017-06-14 Yao Qi <yao.qi@linaro.org>
5436
5437 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5438 default_print_insn instead of print_insn_aarch64.
5439 * arm-tdep.c (gdb_print_insn_arm): Call
5440 default_print_insn instead of print_insn_big_arm
5441 and print_insn_little_arm.
5442 * i386-tdep.c (i386_print_insn): Call default_print_insn
5443 instead of print_insn_i386.
5444 * ia64-tdep.c (ia64_print_insn): Call
5445 default_print_insn instead of print_insn_ia64.
5446 * mips-tdep.c (gdb_print_insn_mips): Call
5447 default_print_insn instead of print_insn_big_mips
5448 and print_insn_little_mips.
5449 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5450 instead of print_insn_spu.
5451
d5722aa2
PA
54522017-06-14 Pedro Alves <palves@redhat.com>
5453
5454 * ada-lang.c: Include "common/byte-vector.h".
5455 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5456 * charset.c (wchar_iterator::iterate): Resize the vector instead
5457 of reserving it.
5458 * common/byte-vector.h: Include "common/def-vector.h".
5459 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5460 * cli/cli-dump.c: Include "common/byte-vector.h".
5461 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5462 * common/byte-vector.h: New file.
5463 * common/def-vector.h: New file.
5464 * common/default-init-alloc.h: New file.
5465 * dwarf2loc.c: Include "common/byte-vector.h".
5466 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5467 instead of reserving it.
5468 * dwarf2read.c: Include "common/byte-vector.h".
5469 (data_buf::m_vec): Now a gdb::byte_vector.
5470 * gdb_regex.c: Include "common/def-vector.h".
5471 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5472 * mi/mi-main.c: Include "common/byte-vector.h".
5473 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5474 * printcmd.c: Include "common/byte-vector.h".
5475 (print_scalar_formatted): Use gdb::byte_vector.
5476 * valprint.c: Include "common/byte-vector.h".
5477 (maybe_negate_by_bytes, print_decimal_chars): Use
5478 gdb::byte_vector.
5479
01ec7a27
SM
54802017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5481
5482 * darwin-nat.c: Include "nat/fork-inferior.h".
5483
848d9074
SM
54842017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5485
5486 * configure.nat: Factor out Darwin bits that are not
5487 architecture-specific. Add fork-inferior.o.
5488
3b912944
SM
54892017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5490
5491 * configure.nat: Factor out AIX bits that are not
5492 architecture-specific. Add fork-inferior.o.
5493
55acdf22
AA
54942017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5495
5496 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5497 (read_pieced_value, write_pieced_value): ...here. Reduce to
5498 wrappers that just call rw_pieced_value.
5499
f65e2044
AA
55002017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5501
5502 * dwarf2loc.c (write_pieced_value): When writing the data for a
5503 memory piece, use write_memory_with_notification instead of
5504 write_memory.
5505
23f945bf
AA
55062017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5507
5508 * valops.c (read_value_memory): Change embedded_offset to
5509 represent a bit offset instead of a byte offset.
5510 * value.h (read_value_memory): Adjust comment.
5511
f236533e
AA
55122017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5513
5514 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5515 dest_offset_bits and source_offset_bits.
5516 (write_pieced_value): Likewise.
5517
65d84b76
AA
55182017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5519
5520 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5521 given by DW_OP_bit_piece.
5522 (write_pieced_value): Likewise.
5523
242d31ab
AA
55242017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5525
5526 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5527 some other preparations to the places where sufficient information
5528 is available.
5529 (write_pieced_value): Likewise.
5530
03c8af18
AA
55312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5532
5533 * dwarf2loc.c (bits_to_bytes): New function.
5534 (read_pieced_value): Fix offset calculations for register pieces
5535 on big-endian targets.
5536 (write_pieced_value): Likewise.
5537
840989c1
AA
55382017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5539
5540 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5541 (write_pieced_value): Likewise.
5542
359b19bb
AA
55432017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5544
5545 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5546 transfer the source value's least significant bits, instead of its
5547 lowest-addressed ones. Rename type_len to max_offset.
5548 (read_pieced_value): Mirror above changes to write_pieced_value as
5549 applicable.
5550
07c9ca3b
AA
55512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5552
5553 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5554 truncate full bytes from dest_offset_bits before using it as an
5555 offset into the buffer.
5556
f1cc9874
AA
55572017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5558
5559 * dwarf2loc.c (write_pieced_value): Include transfer size in
5560 byte-wise check.
5561
cdaac320
AA
55622017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5563
5564 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5565 calculation of this_size.
5566
af547a96
AA
55672017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5568
5569 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5570 when targeting a bit-field.
5571 (write_pieced_value): Likewise.
5572
ddd7882a
AA
55732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5574
5575 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5576 (allocate_piece_closure): Drop addr_size parameter.
5577 (dwarf2_evaluate_loc_desc_full): Adjust call to
5578 allocate_piece_closure.
5579
e9352324
AA
55802017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5581
5582 PR gdb/21226
5583 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5584 the LSB end, independent of endianness.
5585
d5d1163e
AA
55862017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5587
5588 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5589 size capping.
5590
032bb6ea
YQ
55912017-06-13 Yao Qi <yao.qi@linaro.org>
5592
5593 * mips-linux-nat.c: Move include features/mips*-linux.c to
5594 mips-linux-tdep.c.
5595 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5596 to mips-linux-tdep.c.
5597 * mips-linux-tdep.c: Include features/mips*-linux.c
5598 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5599 functions.
5600 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5601 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5602 (tdesc_mips64_dsp_linux): Declare.
5603
f12f6bad
TT
56042017-06-12 Tom Tromey <tom@tromey.com>
5605
5606 * valprint.h (val_print_type_code_int): Remove.
5607 * valprint.c (generic_val_print_int): Always call
5608 val_print_scalar_formatted.
5609 (val_print_type_code_int): Remove.
5610 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5611 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5612 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5613 * ada-valprint.c (ada_val_print_num): Use
5614 val_print_scalar_formatted.
5615
d9109c80
TT
56162017-06-12 Tom Tromey <tom@tromey.com>
5617
5618 * printcmd.c (print_scalar_formatted): Unify the two switches.
5619 Don't convert scalars to LONGEST.
5620
4ac0cb1c
TT
56212017-06-12 Tom Tromey <tom@tromey.com>
5622
5623 PR exp/16225:
5624 * valprint.h (print_decimal_chars): Update.
5625 * valprint.c (maybe_negate_by_bytes): New function.
5626 (print_decimal_chars): Add "is_signed" argument.
5627 * printcmd.c (print_scalar_formatted): Update.
5628
30a25466
TT
56292017-06-12 Tom Tromey <tom@tromey.com>
5630
5631 PR exp/16225:
5632 * valprint.h (print_binary_chars, print_hex_chars): Update.
5633 * valprint.c (val_print_type_code_int): Update.
5634 (print_binary_chars): Add "zero_pad" argument.
5635 (emit_octal_digit): New function.
5636 (print_octal_chars): Don't zero-pad.
5637 (print_decimal_chars): Likewise.
5638 (print_hex_chars): Add "zero_pad" argument.
5639 * sh64-tdep.c (sh64_do_fp_register): Update.
5640 * regcache.c (regcache::dump): Update.
5641 * printcmd.c (print_scalar_formatted): Update.
5642 * infcmd.c (default_print_one_register_info): Update.
5643
b3464d03
PA
56442017-06-12 Pedro Alves <palves@redhat.com>
5645 Alan Hayward <alan.hayward@arm.com>
5646
5647 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5648 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5649 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5650 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5651 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5652
4b76cda9
PA
56532017-06-12 Pedro Alves <palves@redhat.com>
5654
5655 * dwarf2read.c (mapped_symtab::data): Now a vector of
5656 symtab_index_entry instead of vector of
5657 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5658 whether an element's name is NULL instead of checking whether the
5659 element itself is NULL.
5660 (find_slot): Change return type. Adjust.
5661 (hash_expand, , add_index_entry, uniquify_cu_indices)
5662 (write_hash_table): Adjust.
5663
e8f8bcb3
PA
56642017-06-12 Pedro Alves <palves@redhat.com>
5665
5666 * dwarf2read.c (recursively_count_psymbols): New function.
5667 (write_psymtabs_to_index): Call it to compute number of psyms and
5668 pass estimate size of psyms_seen to unordered_set's ctor.
5669
70a1152b
PA
56702017-06-12 Pedro Alves <palves@redhat.com>
5671
5672 * dwarf2read.c (write_hash_table): Check if key already exists
5673 before emplacing.
5674
c2f134ac
PA
56752017-06-12 Pedro Alves <palves@redhat.com>
5676
5677 * dwarf2read.c (data_buf::append_space): Rename to...
5678 (data_buf::grow): ... this, and make private. Adjust all callers.
5679 (data_buf::append_uint): New method.
5680 (add_address_entry, write_one_signatured_type)
5681 (write_psymtabs_to_index): Use it.
5682
a81e6d4d
PA
56832017-06-12 Pedro Alves <palves@redhat.com>
5684
5685 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5686 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5687 (data_buf::file_write): Call ::fwrite directly.
5688
6fd931f2
PA
56892017-06-12 Pedro Alves <palves@redhat.com>
5690
5691 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5692 std::vector::erase.
5693
bc8f2430
JK
56942017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5695
5696 Code cleanup: C++ify .gdb_index producer.
5697 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5698 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5699 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5700 (create_strtab, add_string): Remove.
5701 (file_write, data_buf): New.
5702 (struct symtab_index_entry): Use std::vector for cu_indices.
5703 (struct mapped_symtab): Use std::vector for data.
5704 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5705 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5706 Remove.
5707 (find_slot): Change return type. Update it to the new data structures.
5708 (hash_expand, add_index_entry): Update it to the new data structures.
5709 (offset_type_compare): Remove.
5710 (uniquify_cu_indices): Update it to the new data structures.
5711 (c_str_view, c_str_view_hasher, vector_hasher): New.
5712 (add_indices_to_cpool): Remove.
5713 (write_hash_table): Update it to the new data structures.
5714 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5715 (eq_psymtab_cu_index): Remove.
5716 (psym_index_map): New typedef.
5717 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5718 reference and std::unordered_map for cu_index_htab.
5719 (add_address_entry, add_address_entry_worker, write_address_map)
5720 (write_psymbols): Update it to the new data structures.
5721 (write_obstack): Remove.
5722 (struct signatured_type_index_data): Change types_list to a data_buf
5723 reference and psyms_seen to a std::unordered_set reference.
5724 (write_one_signatured_type, recursively_write_psymbols)
5725 (write_psymtabs_to_index): Update it to the new data structures.
5726
c4dcb155
SM
57272017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5728
5729 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5730 separate-debug-file commands.
5731 * symfile.h (separate_debug_file_debug): New global.
5732 * symfile.c (separate_debug_file_debug): New global.
5733 (separate_debug_file_exists, find_separate_debug_file): Add
5734 debug output.
5735 (_initialize_symfile): Add "set debug separate-debug-file"
5736 command.
5737 * build-id.c (build_id_to_debug_bfd,
5738 find_separate_debug_file_by_buildid): Add debug output.
5739
6d45d4b4
SM
57402017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5741
5742 * gdbarch.sh (displaced_step_free_closure): Remove.
5743 * gdbarch.h, gdbarch.c: Re-generate.
5744 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5745 displaced_step_free_closure.
5746 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5747 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5748 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5749 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5750 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5751 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5752 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5753 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5754 * infrun.c (displaced_step_clear): Call xfree instead of
5755 gdbarch_displaced_step_free_closure.
5756
2f91880f
SDJ
57572017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5758
5759 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5760 NULL".
5761
b8b6e72f
AH
57622017-06-08 Alan Hayward <alan.hayward@arm.com>
5763
5764 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5765 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5766 (mn10300_push_dummy_call): Likewise.
5767
5369082e
AH
57682017-06-08 Alan Hayward <alan.hayward@arm.com>
5769
5770 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5771
ff4ca5ac
AH
57722017-06-08 Alan Hayward <alan.hayward@arm.com>
5773
5774 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5775
aefd8b33
SDJ
57762017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5777
5778 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5779 able to start inferiors using a shell.
5780 (New remote packets): Announce new packet "QStartupWithShell".
5781 * remote.c: Add PACKET_QStartupWithShell.
5782 (extended_remote_create_inferior): Handle new
5783 PACKET_QStartupWithShell.
5784 (remote_protocol_features) <QStartupWithShell>: New entry for
5785 PACKET_QStartupWithShell.
5786 (_initialize_remote): Call "add_packet_config_cmd" for
5787 QStartupShell.
5788
2090129c
SDJ
57892017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5790 Pedro Alves <palves@redhat.com>
5791
5792 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5793 and "nat/fork-inferior.h".
5794 * common/common-inferior.h: New file, with contents from
5795 "gdb/inferior.h".
5796 * commom/common-utils.c: Include "common-utils.h".
5797 (stringify_argv): New function.
5798 * common/common-utils.h (stringify_argv): New prototype.
5799 * configure.nat: Add "fork-inferior.o" as a dependency for
5800 "*linux*", "fbsd*" and "nbsd*" hosts.
5801 * corefile.c (get_exec_file): Update comment.
5802 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5803 instead of "startup_inferior".
5804 (darwin_create_inferior): Call "add_thread_silent" after
5805 "fork_inferior".
5806 * fork-child.c: Cleanup unnecessary includes.
5807 (SHELL_FILE): Move to "common/common-fork-child.c".
5808 (environ): Likewise.
5809 (exec_wrapper): Initialize.
5810 (get_exec_wrapper): New function.
5811 (breakup_args): Move to "common/common-fork-child.c"; rename to
5812 "breakup_args_for_exec".
5813 (escape_bang_in_quoted_argument): Move to
5814 "common/common-fork-child.c".
5815 (saved_ui): New variable.
5816 (prefork_hook): New function.
5817 (postfork_hook): Likewise.
5818 (postfork_child_hook): Likewise.
5819 (gdb_startup_inferior): Likewise.
5820 (fork_inferior): Move to "common/common-fork-child.c". Update
5821 function to support gdbserver.
5822 (startup_inferior): Likewise.
5823 * gdbcore.h (get_exec_file): Remove declaration.
5824 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5825 instead of "startup_inferior". Call "add_thread_silent" after
5826 "fork_inferior".
5827 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5828 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5829 instead of "startup_inferior". Call "add_thread_silent" after
5830 "fork_inferior".
5831 * inferior.h: Include "common-inferior.h".
5832 (trace_start_error): Move to "common/common-utils.h".
5833 (trace_start_error_with_name): Likewise.
5834 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5835 (startup_inferior): Likewise.
5836 (gdb_startup_inferior): New prototype.
5837 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5838 * nat/fork-inferior.h: New file.
5839 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5840 instead of "startup_inferior". Call "add_thread_silent" after
5841 "fork_inferior".
5842 * target.h (target_terminal_init): Move prototype to
5843 "target/target.h".
5844 (target_terminal_inferior): Likewise.
5845 (target_terminal_ours): Likewise.
5846 * target/target.h (target_terminal_init): New prototype, moved
5847 from "target.h".
5848 (target_terminal_inferior): Likewise.
5849 (target_terminal_ours): Likewise.
5850 * utils.c (gdb_flush_out_err): New function.
5851
043a4934
SDJ
58522017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5853
5854 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5855 * common/common-gdbthread.h: New file, with parts from
5856 "gdb/gdbthread.h".
5857 * gdbthread.h: Include "common-gdbthread.h".
5858 (switch_to_thread): Moved to "common/common-gdbthread.h".
5859
15652511
SDJ
58602017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5861
5862 * Makefile.in (SFILES): Add "common/job-control.c".
5863 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5864 (COMMON_OBS): Add "job-control.o".
5865 * common/job-control.c: New file, with contents from
5866 "gdb/inflow.c".
5867 * common/job-control.h: New file, with contents from "terminal.h".
5868 * fork-child.c: Include "job-control.h".
5869 * inflow.c: Include "job-control.h".
5870 (gdb_setpgid): Move to "common/common-inflow.c".
5871 (_initialize_inflow): Move setting of "job_control" to
5872 "handle_job_control".
5873 * terminal.h (job_control): Moved to "common/common-terminal.h".
5874 (gdb_setpgid): Likewise.
5875 * top.c: Include "job_control.h".
5876 * utils.c: Likewise.
5877 (job_control): Moved to "job-control.c".
5878
2d7cc5c7
PA
58792017-06-07 Pedro Alves <palves@redhat.com>
5880
5881 * Makefile.in (SFILES): Add gdb_regex.c.
5882 (COMMON_OBS): Add gdb_regex.o.
5883 * ada-lang.c (ada_add_standard_exceptions)
5884 (ada_add_exceptions_from_frame, name_matches_regex)
5885 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5886 parameter type to compiled_regex. Adjust.
5887 (ada_exceptions_list): Use compiled_regex.
5888 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5889 std::unique_ptr<compiled_regex>.
5890 (exception_catchpoint::~exception_catchpoint): Remove regfree
5891 call.
5892 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5893 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5894 * breakpoint.c (solib_catchpoint::compiled): Now a
5895 std::unique_ptr<compiled_regex>.
5896 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5897 (check_status_catch_solib): Adjust to use compiled_regex.
5898 (add_solib_catchpoint): Adjust to use compiled_regex.
5899 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5900 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5901 compiled_regex reference. Adjust to use it.
5902 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5903 declaration. Include "gdb_regex.h".
5904 (apropos_cmd): Change regex parameter to compiled_regex reference.
5905 * gdb_regex.c: New file.
5906 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5907 declarations.
5908 (class compiled_regex): New.
5909 * linux-tdep.c: Include "common/gdb_optional.h".
5910 (struct mapping_regexes): New, factored out from
5911 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5912 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5913 gdb::optional and remove cleanups. Adjust to compiled_regex.
5914 * probe.c: Include "common/gdb_optional.h".
5915 (collect_probes): Use compiled_regex and gdb::optional and remove
5916 cleanups.
5917 * skip.c: Include "common/gdb_optional.h".
5918 (skiplist_entry::compiled_function_regexp): Now a
5919 gdb::optional<compiled_regex>.
5920 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5921 (free_skiplist_entry): Remove regfree call.
5922 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5923 compiled_regex and gdb::optional.
5924 * symtab.c: Include "common/gdb_optional.h".
5925 (search_symbols): Use compiled_regex and gdb::optional.
5926 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5927 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5928 to gdb_regex.c.
5929
50d6adef
AH
59302017-06-07 Alan Hayward <alan.hayward@arm.com>
5931
5932 * regcache.c (regcache::save): Avoid buffer use.
5933 (regcache::dump): Likewise.
5934
4a8a33c8
AH
59352017-06-07 Alan Hayward <alan.hayward@arm.com>
5936
5937 * sh-tdep.c (sh_pseudo_register_read): Remove
5938 MAX_REGISTER_SIZE.
5939 (sh_pseudo_register_write): Likewise.
5940 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5941 (sh64_pseudo_register_write): Likewise
5942
d1be909e
AH
59432017-06-07 Alan Hayward <alan.hayward@arm.com>
5944
5945 * aarch64-tdep.c (aarch64_store_return_value): Use
5946 V_REGISTER_SIZE.
5947 (aarch64_pseudo_read_value): Likewise.
5948 (aarch64_pseudo_write): Likewise.
5949
f4a65042
YQ
59502017-06-06 Yao Qi <yao.qi@linaro.org>
5951
5952 * regformats/regdef.h (set_register_cache): Remove the
5953 declaration.
5954
9f7fb0aa
AH
59552017-06-06 Alan Hayward <alan.hayward@arm.com>
5956
5957 * frame.c (frame_unwind_register_signed): Use
5958 frame_unwind_register_value.
5959
e1e01040
PA
59602017-06-06 Pedro Alves <palves@redhat.com>
5961
5962 PR breakpoints/21553
5963 * breakpoint.c (create_breakpoints_sal_default)
5964 (init_breakpoint_sal, create_breakpoint_sal): Use
5965 gdb::unique_xmalloc_ptr for string parameters.
5966 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5967 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5968 (base_breakpoint_create_breakpoints_sal)
5969 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5970 (strace_marker_create_breakpoints_sal)
5971 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5972 string parameters.
5973 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5974 gdb::unique_xmalloc_ptr for string parameters.
5975 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5976 parameters.
5977
fbe654c8
AH
59782017-06-06 Alan Hayward <alan.hayward@arm.com>
5979
5980 * alpha-tdep.c (alpha_register_to_value): Use
5981 get_frame_register_value.
5982 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5983
ae0d01d6
AH
59842017-06-06 Alan Hayward <alan.hayward@arm.com>
5985
5986 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5987 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5988 (ia64_value_to_register): Likewise.
5989 (ia64_extract_return_value): Likewise.
5990 (ia64_store_return_value): Likewise.
5991 (ia64_push_dummy_call): Likewise.
5992
49cf576c
JB
59932017-06-04 Joel Brobecker <brobecker@adacore.com>
5994
5995 GDB 8.0 released.
5996
26b6a6ab
SM
59972017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5998
5999 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6000
22827c51
SM
60012017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6002
6003 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6004 parameter.
6005 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6006
0e05cf3a
SM
60072017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6008
6009 * event-loop.c (poll_timers): Unallocate timer using delete
6010 instead of xfree.
6011
c1fc2657
SM
60122017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6013
6014 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6015 (struct breakpoint) <~breakpoint>: New.
6016 (struct watchpoint): Inherit from breakpoint.
6017 <~watchpoint>: New.
6018 <base>: Remove.
6019 (struct tracepoint): Inherit from breakpoint.
6020 <base>: Remove.
6021 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6022 (struct longjmp_breakpoint): Inherit from breakpoint.
6023 <~longjmp_breakpoint>: New.
6024 <base>: Remove.
6025 (new_breakpoint_from_type): Remove casts.
6026 (watchpoint_in_thread_scope): Remove reference to base field.
6027 (watchpoint_del_at_next_stop): Likewise.
6028 (update_watchpoint): Likewise.
6029 (watchpoint_check): Likewise.
6030 (bpstat_check_watchpoint): Likewise.
6031 (set_longjmp_breakpoint): Likewise.
6032 (struct fork_catchpoint): Inherit from breakpoint.
6033 <base>: Remove.
6034 (struct solib_catchpoint): Inherit from breakpoint.
6035 <~solib_catchpoint>: New.
6036 <base>: Remove.
6037 (dtor_catch_solib): Change to ...
6038 (solib_catchpoint::~solib_catchpoint): ... this.
6039 (breakpoint_hit_catch_solib): Remove reference to base field.
6040 (add_solib_catchpoint): Likewise.
6041 (create_fork_vfork_event_catchpoint): Likewise.
6042 (struct exec_catchpoint): Inherit from breakpoint.
6043 <~exec_catchpoint>: New.
6044 <base>: Remove.
6045 (dtor_catch_exec): Change to ...
6046 (exec_catchpoint::~exec_catchpoint): ... this.
6047 (dtor_watchpoint): Change to ...
6048 (watchpoint::~watchpoint): ... this.
6049 (watch_command_1): Remove reference to base field.
6050 (catch_exec_command_1): Likewise.
6051 (base_breakpoint_dtor): Change to ...
6052 (breakpoint::~breakpoint): ... this.
6053 (base_breakpoint_ops): Remove dtor field value.
6054 (longjmp_bkpt_dtor): Change to ...
6055 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6056 (strace_marker_create_breakpoints_sal): Remove reference to base
6057 field.
6058 (delete_breakpoint): Don't manually call breakpoint destructor.
6059 (create_tracepoint_from_upload): Remove reference to base field.
6060 (trace_pass_set_count): Likewise.
6061 (initialize_breakpoint_ops): Don't initialize
6062 momentary_breakpoint_ops, don't set dtors.
6063 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6064 <~ada_catchpoint>: New.
6065 <base>: Remove.
6066 (create_excep_cond_exprs): Remove reference to base field.
6067 (dtor_exception): Change to ...
6068 (ada_catchpoint::~ada_catchpoint): ... this.
6069 (dtor_catch_exception): Remove.
6070 (dtor_catch_exception_unhandled): Remove.
6071 (dtor_catch_assert): Remove.
6072 (create_ada_exception_catchpoint): Remove reference to base
6073 field.
6074 (initialize_ada_catchpoint_ops): Don't set dtors.
6075 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6076 breakpoint.
6077 <~signal_catchpoint>: New.
6078 <base>: Remove.
6079 (signal_catchpoint_dtor): Change to ...
6080 (signal_catchpoint::~signal_catchpoint): ... this.
6081 (create_signal_catchpoint): Remove reference to base field.
6082 (initialize_signal_catchpoint_ops): Don't set dtor.
6083 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6084 from breakpoint.
6085 <~syscall_catchpoint>: New.
6086 <base>: Remove.
6087 (dtor_catch_syscall): Change to ...
6088 (syscall_catchpoint::~syscall_catchpoint): ... this.
6089 (create_syscall_event_catchpoint): Remove reference to base
6090 field.
6091 (initialize_syscall_catchpoint_ops): Don't set dtor.
6092 * break-catch-throw.c (struct exception_catchpoint): Inherit
6093 from breakpoint.
6094 <~exception_catchpoint>: New.
6095 <base>: Remove.
6096 (dtor_exception_catchpoint): Change to ...
6097 (exception_catchpoint::~exception_catchpoint): ... this.
6098 (handle_gnu_v3_exceptions): Remove reference to base field.
6099 (initialize_throw_catchpoint_ops): Don't set dtor.
6100 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6101 field.
6102 * remote.c (remote_get_tracepoint_status): Likewise.
6103 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6104 * tracefile.c (tracefile_fetch_registers): Likewise.
6105 * tracepoint.c (actions_command): Likewise.
6106 (validate_actionline): Likewise.
6107 (tfind_1): Likewise.
6108 (get_traceframe_location): Likewise.
6109 (find_matching_tracepoint_location): Likewise.
6110 (parse_tracepoint_status): Likewise.
6111 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6112
3b0871f4
SM
61132017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6114
6115 * breakpoint.c (struct longjmp_breakpoint): New struct.
6116 (is_tracepoint_type): Change return type to bool.
6117 (is_longjmp_type): New function.
6118 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6119 (set_raw_breakpoint_without_location): Use
6120 new_breakpoint_from_type.
6121 (set_raw_breakpoint): Likewise.
6122
a5e364af
SM
61232017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6124
6125 * breakpoint.c (new_breakpoint_from_type): New function.
6126 (create_breakpoint_sal): Use new_breakpoint_from_type and
6127 unique_ptr.
6128 (create_breakpoint): Likewise.
6129
ae3b3f34
SM
61302017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6131
6132 * memattr.c (mem_info_command): Rename to ...
6133 (info_mem_command): ... this.
6134 (mem_enable_command): Rename to ...
6135 (enable_mem_command): ... this.
6136 (mem_disable_command): Rename to ...
6137 (disable_mem_command): ... this.
6138 (mem_delete_command): Rename to ...
6139 (delete_mem_command): ... this.
6140 (_initialize_mem): Adjust function names.
6141
13ace077
MM
61422017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6143
6144 * btrace.c (handle_pt_insn_events): New.
6145 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6146 STATUS. Split into this and ...
6147 (handle_pt_insn_event_flags): ... this.
6148
c56ccc05
MM
61492017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6150
6151 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6152 and struct pt_insn.resynced.
6153 * configure: Regenerated.
6154 * config.in: Regenerated.
6155
08c3f6d2
TW
61562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6157
6158 * btrace.c (ftrace_find_call_by_number): New function.
6159 (ftrace_new_function): Store objects, not pointers.
6160 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6161 ftrace_new_gap, ftrace_update_function,
6162 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6163 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6164 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6165 btrace_ends_with_single_insn, btrace_call_get): Account for
6166 btrace_thread_info::functions now storing objects.
6167 * btrace.h (struct btrace_thread_info): Add constructor.
6168 (struct btrace_thread_info) <functions>: Make std::vector.
6169 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6170 Initialize with default values.
6171 * record-btrace.c (record_btrace_frame_sniffer): Account for
6172 btrace_thread_info::functions now storing objects.
6173
8ffd39f2
TW
61742017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6175
6176 * btrace.c: Remove typedef bfun_s.
6177 (ftrace_new_gap): Directly add gaps to the list of gaps.
6178 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6179 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6180 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6181 instead of gdb VEC.
6182
4aeb0dfc
TW
61832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6184
6185 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6186 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6187 with btrace_thread_info::next_segment and
6188 btrace_thread_info::prev_segment.
6189 * btrace.h: Remove struct btrace_func_link.
6190 (struct btrace_function): Replace pair of function segment pointers
6191 with pair of indices.
6192 * python/py-record-btrace.c (btpy_call_prev_sibling,
6193 btpy_call_next_sibling): Replace references to
6194 btrace_thread_info::segment with btrace_thread_info::next_segment and
6195 btrace_thread_info::prev_segment.
6196 * record-btrace.c (record_btrace_frame_this_id): Use
6197 btrace_find_call_by_number.
6198
eb8f2b9c
TW
61992017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6200
6201 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6202 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6203 btrace_insn_next, btrace_insn_prev): Remove references to
6204 btrace_thread_info::flow.
6205 * btrace.h (struct btrace_function): Remove FLOW.
6206
42bfe59e
TW
62072017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6208
6209 * btrace.c (ftrace_find_call_by_number): New function.
6210 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6211 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6212 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6213 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6214 index.
6215 * btrace.h (struct btrace_function): Turn UP into an index.
6216 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6217 as an index.
6218 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6219 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6220 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6221
b54b03bd
TW
62222017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6223
6224 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6225 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6226 ftrace_update_function, ftrace_compute_global_level_offset,
6227 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6228 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6229 btrace_insn_end, btrace_is_empty): Remove references to
6230 btrace_thread_info::begin and btrace_thread_info::end.
6231 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6232 (struct btrace_thread_info) <functions>: Adjust comment.
6233 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6234 btrace_thread_info::begin.
6235
8286623c
TW
62362017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6237
6238 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6239 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6240 ftrace_update_function): Remove arguments that implicitly were always
6241 BTINFO->END.
6242 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6243 Don't pass BTINFO->END.
6244
a0f1b963
TW
62452017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6246
6247 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6248 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6249 btrace_find_insn_by_number): Replace function segment pointer with
6250 index.
6251 (btrace_insn_cmp): Simplify.
6252 * btrace.h: (struct btrace_insn_iterator) Rename index to
6253 insn_index. Replace function segment pointer with index into function
6254 segment vector.
6255 * record-btrace.c (record_btrace_call_history): Replace function
6256 segment pointer use with index.
6257 (record_btrace_frame_sniffer): Retrieve function call segment through
6258 vector.
6259 (record_btrace_set_replay): Remove defunc't safety check.
6260
f158f208
TW
62612017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6262
6263 * btrace.c (btrace_ends_with_single_insn): New function.
6264 (btrace_call_get, btrace_call_number, btrace_call_begin,
6265 btrace_call_end, btrace_call_next, btrace_call_prev,
6266 btrace_find_call_by_number): Use index into call segment vector
6267 instead of pointer.
6268 (btrace_call_cmp): Simplify.
6269 * btrace.h (struct btrace_call_iterator): Replace function call segment
6270 pointer with index into vector.
6271 * record-btrace.c (record_btrace_call_history): Use index instead of
6272 pointer.
6273
521103fd
TW
62742017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6275
6276 * btrace.c (btrace_insn_begin, btrace_insn_end,
6277 btrace_find_insn_by_number): Add btinfo to iterator.
6278 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6279
17b89b34
TW
62802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6281
6282 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6283 and save pointers directly.
6284 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6285 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6286 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6287 changed signature of functions.
6288 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6289 (btrace_fetch): Remove code that adds btrace_function pointers to
6290 vector of btrace_functions.
6291 (btrace_clear): Simplify freeing vector of btrace_functions.
6292
2b51eddc
TW
62932017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6294
6295 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6296 Replace VEC_* with std::vector functions.
6297 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6298 (struct btrace_thread_info)<functions>: Change type to std::vector.
6299
db6be0d5
SM
63002017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6301
6302 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6303 "Removed targets and native configurations" up. Merge duplicate
6304 "New commands" sub-sections. Add "New options" sub-sections.
6305
b057297a
AH
63062017-05-26 Alan Hayward <alan.hayward@arm.com>
6307
6308 * defs.h (copy_integer_to_size): New declaration.
6309 * findvar.c (copy_integer_to_size): New function.
6310 (do_cint_test): New selftest function.
6311 (copy_integer_to_size_test): Likewise.
6312 (_initialize_findvar): Likewise.
6313 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6314 (mips_fbsd_collect_reg): Use raw_collect_integer.
6315 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6316 (mips64_fill_gregset): Use raw_collect_integer
6317 (mips64_fill_fpregset): Use raw_supply_integer.
6318 * regcache.c (regcache::raw_supply_integer): New function.
6319 (regcache::raw_collect_integer): Likewise.
6320 * regcache.h: (regcache::raw_supply_integer): New declaration.
6321 (regcache::raw_collect_integer): Likewise.
6322
b77b02a5
YQ
63232017-05-24 Yao Qi <yao.qi@linaro.org>
6324
6325 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6326 (COMMON_OBS): Add gdbarch-selftests.o.
6327 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6328 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6329 * gdbarch-selftests.c: New file.
6330 * regcache.h (regcache) <~regcache>: Mark it virtual if
6331 GDB_SELF_TEST.
6332 <raw_write>: Likewise.
6333
e521e87e
YQ
63342017-05-24 Yao Qi <yao.qi@linaro.org>
6335
6336 * regcache.c (current_regcache): Change it to
6337 regcache::current_regcache.
6338 (regcache_observer_target_changed): Update.
6339 (regcache_thread_ptid_changed): Make it a regcache static
6340 method.
6341 (regcache_thread_ptid_changed): Update.
6342 (class regcache_access): New.
6343 (current_regcache_test): Update.
6344 (_initialize_regcache): Update.
6345 * regcache.h: Include forward_list.
6346 (regcache): Declare regcache_thread_ptid_changed and declare
6347 registers_changed_ptid as friend.
6348
d8e07dda
YQ
63492017-05-24 Yao Qi <yao.qi@linaro.org>
6350
6351 * i387-tdep.c (i387_register_to_value): Use register_size
6352 instead of TYPE_LENGTH.
6353 * m68k-tdep.c (m68k_register_to_value): Likewise.
6354
8c8f9122
YQ
63552017-05-24 Yao Qi <yao.qi@linaro.org>
6356
6357 * i387-tdep.c (i387_convert_register_p): Return false if type
6358 code isn't TYPE_CODE_FLT.
6359
68fce50f
YQ
63602017-05-24 Yao Qi <yao.qi@linaro.org>
6361
6362 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6363 length is 4.
6364 (alpha_register_to_value): Remove type length check.
6365 (alpha_value_to_register): Likewise.
6366
88954b49
YQ
63672017-05-24 Yao Qi <yao.qi@linaro.org>
6368
6369 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6370 TYPE_CODE_FLT.
6371
e3ec9b69
YQ
63722017-05-24 Yao Qi <yao.qi@linaro.org>
6373
6374 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6375 TYPE_CODE_FLT or not.
6376
cdd238da
YQ
63772017-05-24 Yao Qi <yao.qi@linaro.org>
6378
6379 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6380 * avr-tdep.c (avr_gdbarch_init): Likewise.
6381 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6382 * cris-tdep.c (cris_gdbarch_init): Likewise.
6383 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6384 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6385 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6386 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6387 * mep-tdep.c (mep_gdbarch_init): Likewise.
6388 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6389 * mips-tdep.c (mips_gdbarch_init): Likewise.
6390 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6391 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6392 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6393 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6394 * v850-tdep.c (v850_gdbarch_init): Likewise.
6395
7a3929c4
YQ
63962017-05-24 Yao Qi <yao.qi@linaro.org>
6397
6398 * selftest-arch.c (tests_with_arch): Call registers_changed
6399 and reinit_frame_cache.
6400 * selftest.c (run_self_tests): Likewise.
6401
f4985dba
YQ
64022017-05-24 Yao Qi <yao.qi@linaro.org>
6403
6404 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6405 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6406
ab20fa4a
YQ
64072017-05-24 Yao Qi <yao.qi@linaro.org>
6408
6409 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6410 set_gdbarch_print_insn.
6411
f532ab94
YQ
64122017-05-24 Yao Qi <yao.qi@linaro.org>
6413
6414 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6415 set_gdbarch_print_insn.
6416
39503f82
YQ
64172017-05-24 Yao Qi <yao.qi@linaro.org>
6418
6419 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6420 set_gdbarch_print_insn.
6421 * arc-tdep.c (arc_gdbarch_init): Likewise.
6422 * arch-utils.c: include dis-asm.h.
6423 (default_print_insn): New function.
6424 * arch-utils.h (default_print_insn): Declare.
6425 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6426 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6427 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6428 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6429 * frv-tdep.c (frv_gdbarch_init): Likewise.
6430 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6431 * gdbarch.sh (print_insn): Use default_print_insn.
6432 * gdbarch.c: Regenerated.
6433 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6434 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6435 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6436 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6437 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6438 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6439 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6440 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6441 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6442 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6443 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6444 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6445 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6446 * mt-tdep.c (mt_gdbarch_init): Likewise.
6447 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6448 * nios2-tdep.c (nios2_print_insn): Remove.
6449 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6450 * rx-tdep.c (rx_gdbarch_init): Likewise.
6451 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6452 * score-tdep.c (score_print_insn): Remove.
6453 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6454 * sh-tdep.c (sh_gdbarch_init): Likewise.
6455 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6456 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6457 * tic6x-tdep.c (tic6x_print_insn): Remove.
6458 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6459 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6460 * v850-tdep.c (v850_gdbarch_init): Likewise.
6461 * vax-tdep.c (vax_gdbarch_init): Likewise.
6462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6463 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6464
f7241d4f
JB
64652017-05-23 John Baldwin <jhb@FreeBSD.org>
6466
6467 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6468 (MIPS_FP0_REGNUM): Remove.
6469 (MIPS_FSR_REGNUM): Remove.
6470 (mips_fbsd_supply_fpregs): Use mips_regnum.
6471 (mips_fbsd_supply_gregs): Likewise.
6472 (mips_fbsd_collect_fpregs): Likewise.
6473 (mips_fbsd_collect_gregs): Likewise.
6474
d489d81d
JB
64752017-05-23 John Baldwin <jhb@FreeBSD.org>
6476
6477 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6478 (getpfpregs_supplies): New function.
6479 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6480 getfpregs_supplies.
6481 (mips_fbsd_store_inferior_registers): Likewise.
6482
e11b3cdc
PA
64832017-05-22 Pedro Alves <palves@redhat.com>
6484
6485 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6486 maintainer.
6487
0f068fb5
AH
64882017-05-22 Alan Hayward <alan.hayward@arm.com>
6489
6490 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6491 (store_register): Likewise.
6492 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6493 (get_decimal_float_return_value): Likewise.
6494 (do_ppc_sysv_return_value): Likewise.
6495 (ppc64_sysv_abi_push_integer): Likewise.
6496 (ppc64_sysv_abi_push_freg): Likewise.
6497 (ppc64_sysv_abi_return_value_base): Likewise.
6498 (ppc64_sysv_abi_return_value): Likewise.
6499 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6500 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6501 * rs6000-nat.c: Likewise.
6502 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6503 (rs6000_value_to_register): Likewise.
6504 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6505
e6cf65f2
TT
65062017-05-21 Tom Tromey <tom@tromey.com>
6507
6508 PR rust/21466:
6509 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6510 arrays as "[T]", not "[T; ]".
6511
43cc5389
TT
65122017-05-19 Tom Tromey <tom@tromey.com>
6513
6514 PR rust/21484:
6515 * rust-lang.c (exp_descriptor_rust): New function.
6516 (rust_language_defn): Use it.
6517 * p-lang.c (pascal_language_defn): Update.
6518 * opencl-lang.c (opencl_language_defn): Update.
6519 * objc-lang.c (objc_language_defn): Update.
6520 * m2-lang.c (m2_language_defn): Update.
6521 * language.h (struct language_defn)
6522 <la_watch_location_expression>: New member.
6523 * language.c (unknown_language_defn, auto_language_defn)
6524 (local_language_defn): Update.
6525 * go-lang.c (go_language_defn): Update.
6526 * f-lang.c (f_language_defn): Update.
6527 * d-lang.c (d_language_defn): Update.
6528 * c-lang.h (c_watch_location_expression): Declare.
6529 * c-lang.c (c_watch_location_expression): New function.
6530 (c_language_defn, cplus_language_defn, asm_language_defn)
6531 (minimal_language_defn): Use it.
6532 * breakpoint.c (watch_command_1): Call
6533 la_watch_location_expression.
6534 * ada-lang.c (ada_language_defn): Update.
6535
7a6e7fcc
RO
65362017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6537
6e7e1744
RO
6538 PR tui/21482
6539 * gdb_curses.h (NOMACROS): Define.
6540 (NCURSES_NOMACROS): Define.
6541
65422017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6543
6544 PR tui/21482
7a6e7fcc
RO
6545 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6546 arg to char *.
6547 * tui/tui-wingeneral.c (box_win): Likewise.
6548 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6549 (tui_show_source_line): Likewise.
6550 (tui_show_exec_info_content): Likewise.
6551
1933fd8e
VM
65522017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6553
6554 * sparc-tdep.c (sparc_structure_return_p)
6555 (sparc_arg_on_registers_p): New functions.
6556 (sparc32_store_arguments): Use them.
6557 * sparc64-tdep.c (sparc64_16_byte_align_p)
6558 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6559 Handle TYPE_CODE_ARRAY.
6560
21873064
YQ
65612017-05-17 Yao Qi <yao.qi@linaro.org>
6562
6563 * cli/cli-decode.c (add_alias_cmd): New function.
6564 * command.h (add_alias_cmd): Declare.
6565 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6566 instead call add_alias_cmd.
6567
2b351b19
PA
65682017-05-17 Pedro Alves <palves@redhat.com>
6569
6570 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6571 (nat_makefile_frag): ... this. All references updated.
6572 * configure.ac: Likewise.
6573 * configure.nat: Likewise. Enhance comments.
6574 * configure: Regenerate.
6575
5f2ad7a3
RO
65762017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6577
6578 * procfs.c (procfs_create_inferior): Change prototype to match
6579 definition.
6580
adf3dde5
EZ
65812017-05-13 Eli Zaretskii <eliz@gnu.org>
6582
6583 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6584 C++ compiler warning.
6585
6830f270
TT
65862017-05-12 Tom Tromey <tom@tromey.com>
6587
6588 PR rust/21483:
6589 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6590 recurse, just call value_struct_elt directly.
6591
68f2f2e3
TT
65922017-05-12 Tom Tromey <tom@tromey.com>
6593
6594 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6595 OP_RUST_ARRAY>: Fix.
6596
256afbc2
TT
65972017-05-12 Tom Tromey <tom@tromey.com>
6598
6599 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6600
94bb8dfe
YQ
66012017-05-09 Yao Qi <yao.qi@linaro.org>
6602
6603 * regcache.c: Include <forward_list>.
6604 (struct regcache_list): Remove.
6605 (current_regcache): Update.
6606 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6607 (regcache_thread_ptid_changed): Likewise.
6608 (registers_changed_ptid): Likewise.
6609 (current_regcache_size): Likewise.
6610
8248946c
YQ
66112017-05-09 Yao Qi <yao.qi@linaro.org>
6612
6613 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6614 (current_regcache_size): New function.
6615 (current_regcache_test): New function.
6616 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6617
313c5961
AH
66182017-05-08 Alan Hayward <alan.hayward@arm.com>
6619
6620 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6621 (print_gp_register_row): Use get_frame_register_value.
6622
27bfc1d1
AH
66232017-05-08 Alan Hayward <alan.hayward@arm.com>
6624
6625 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6626 (mips_supply_fpregset): Likewise.
6627 (mips64_supply_gregset): Likewise.
6628
146e6c5c
AH
66292017-05-08 Alan Hayward <alan.hayward@arm.com>
6630
6631 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6632 regcache->raw_supply_zeroed.
6633
e50f25ec
SDJ
66342017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6635
6636 * configure.nat: Rearrange 'case' statements to match
6637 host before cpu.
6638
21ea5acd
SDJ
66392017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6640
6641 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6642 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6643 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6644 "@nat_extra_makefile_frag@".
6645 (Makefile): Remove dependency on "@frags@".
6646 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6647 (data-directory/Makefile): Likewise.
6648 * config/aarch64/linux.mh: Deleted; moved contents to
6649 "gdb/configure.nat".
6650 * config/alpha/alpha-linux.mh: Likewise.
6651 * config/alpha/nbsd.mh: Likewise.
6652 * config/arm/linux.mh: Likewise.
6653 * config/arm/nbsdelf.mh: Likewise.
6654 * config/i386/cygwin.mh: Likewise.
6655 * config/i386/cygwin64.mh: Likewise.
6656 * config/i386/darwin.mh: Likewise.
6657 * config/i386/fbsd.mh: Likewise.
6658 * config/i386/fbsd64.mh: Likewise.
6659 * config/i386/go32.mh: Likewise.
6660 * config/i386/i386gnu.mh: Likewise.
6661 * config/i386/i386sol2.mh: Likewise.
6662 * config/i386/linux.mh: Likewise.
6663 * config/i386/linux64.mh: Likewise.
6664 * config/i386/mingw.mh: Likewise.
6665 * config/i386/mingw64.mh: Likewise.
6666 * config/i386/nbsd64.mh: Likewise.
6667 * config/i386/nbsdelf.mh: Likewise.
6668 * config/i386/nto.mh: Likewise.
6669 * config/i386/obsd.mh: Likewise.
6670 * config/i386/obsd64.mh: Likewise.
6671 * config/i386/sol2-64.mh: Likewise.
6672 * config/ia64/linux.mh: Likewise.
6673 * config/m32r/linux.mh: Likewise.
6674 * config/m68k/linux.mh: Likewise.
6675 * config/m68k/nbsdelf.mh: Likewise.
6676 * config/m68k/obsd.mh: Likewise.
6677 * config/m88k/obsd.mh: Likewise.
6678 * config/mips/fbsd.mh: Likewise.
6679 * config/mips/linux.mh: Likewise.
6680 * config/mips/nbsd.mh: Likewise.
6681 * config/mips/obsd64.mh: Likewise.
6682 * config/pa/linux.mh: Likewise.
6683 * config/pa/nbsd.mh: Likewise.
6684 * config/pa/obsd.mh: Likewise.
6685 * config/powerpc/aix.mh: Likewise.
6686 * config/powerpc/fbsd.mh: Likewise.
6687 * config/powerpc/linux.mh: Likewise.
6688 * config/powerpc/nbsd.mh: Likewise.
6689 * config/powerpc/obsd.mh: Likewise.
6690 * config/powerpc/ppc64-linux.mh: Likewise.
6691 * config/powerpc/spu-linux.mh: Likewise.
6692 * config/s390/linux.mh: Likewise.
6693 * config/sh/nbsd.mh: Likewise.
6694 * config/sparc/fbsd.mh: Likewise.
6695 * config/sparc/linux.mh: Likewise.
6696 * config/sparc/linux64.mh: Likewise.
6697 * config/sparc/nbsd64.mh: Likewise.
6698 * config/sparc/nbsdelf.mh: Likewise.
6699 * config/sparc/obsd64.mh: Likewise.
6700 * config/sparc/sol2.mh: Likewise.
6701 * config/tilegx/linux.mh: Likewise.
6702 * config/vax/nbsdelf.mh: Likewise.
6703 * config/vax/obsd.mh: Likewise.
6704 * config/xtensa/linux.mh: Likewise.
6705 * config/i386/i386gnu.mn: New file, with excerpts from
6706 "config/i386/i386gnu.mh".
6707 * configure: Regenerate.
6708 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6709 *.mh files under "gdb/config".
6710 * configure.nat: New file, with contents from the
6711 "gdb/config/*/*.mh" files.
6712
7ed1acaf
TW
67132017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6714
6715 * btrace.c (btrace_clear): Free insn vector.
6716
e13cb306
PA
67172017-05-05 Pedro Alves <palves@redhat.com>
6718
6719 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6720 * configure: Regenerate.
6721
5ed8105e
PA
67222017-05-04 Pedro Alves <palves@redhat.com>
6723
6724 * Makefile.in (SFILES): Add progspace-and-thread.c.
6725 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6726 (COMMON_OBS): Add progspace-and-thread.o.
6727 * breakpoint.c: Include "progspace-and-thread.h".
6728 (update_inserted_breakpoint_locations)
6729 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6730 Use scoped_restore_current_pspace_and_thread.
6731 (create_std_terminate_master_breakpoint): Use
6732 scoped_restore_current_program_space.
6733 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6734 (print_breakpoint_location): Use
6735 scoped_restore_current_program_space.
6736 (bp_loc_is_permanent): Use
6737 scoped_restore_current_pspace_and_thread.
6738 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6739 (download_tracepoint_locations): Use
6740 scoped_restore_current_pspace_and_thread.
6741 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6742 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6743 (enum step_over_calls_kind): Moved from inferior.h.
6744 (class scoped_restore_current_thread): New class.
6745 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6746 declaration.
6747 (scoped_restore_current_thread): New class.
6748 * infcmd.c: Include "common/gdb_optional.h".
6749 (continue_1, proceed_after_attach): Use
6750 scoped_restore_current_thread.
6751 (notice_new_inferior): Use scoped_restore_current_thread.
6752 * inferior.c: Include "progspace-and-thread.h".
6753 (restore_inferior, save_current_inferior): Delete.
6754 (add_inferior_command, clone_inferior_command): Use
6755 scoped_restore_current_pspace_and_thread.
6756 * inferior.h (scoped_restore_current_inferior): New class.
6757 * infrun.c: Include "progspace-and-thread.h" and
6758 "common/gdb_optional.h".
6759 (follow_fork_inferior): Use
6760 scoped_restore_current_pspace_and_thread.
6761 (scoped_restore_exited_inferior): New class.
6762 (handle_vfork_child_exec_or_exit): Use
6763 scoped_restore_exited_inferior,
6764 scoped_restore_current_pspace_and_thread,
6765 scoped_restore_current_thread and scoped_restore.
6766 (fetch_inferior_event): Use scoped_restore_current_thread.
6767 * linespec.c (decode_line_full, decode_line_1): Use
6768 scoped_restore_current_program_space.
6769 * mi/mi-main.c: Include "progspace-and-thread.h".
6770 (exec_continue): Use scoped_restore_current_thread.
6771 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6772 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6773 * proc-service.c (ps_pglobal_lookup): Use
6774 scoped_restore_current_program_space.
6775 * progspace-and-thread.c: New file.
6776 * progspace-and-thread.h: New file.
6777 * progspace.c (release_program_space, clone_program_space): Use
6778 scoped_restore_current_program_space.
6779 (restore_program_space, save_current_program_space)
6780 (save_current_space_and_thread): Delete.
6781 (switch_to_program_space_and_thread): Moved to
6782 progspace-and-thread.c.
6783 * progspace.h (save_current_program_space)
6784 (save_current_space_and_thread): Delete declarations.
6785 (scoped_restore_current_program_space): New class.
6786 * remote.c (remote_btrace_maybe_reopen): Use
6787 scoped_restore_current_thread.
6788 * symtab.c: Include "progspace-and-thread.h".
6789 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6790 * thread.c (print_thread_info_1): Use
6791 scoped_restore_current_thread.
6792 (struct current_thread_cleanup): Delete.
6793 (do_restore_current_thread_cleanup)
6794 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6795 (scoped_restore_current_thread::~scoped_restore_current_thread):
6796 ... this new dtor.
6797 (make_cleanup_restore_current_thread): Rename/convert to ...
6798 (scoped_restore_current_thread::scoped_restore_current_thread):
6799 ... this new ctor.
6800 (thread_apply_all_command): Use scoped_restore_current_thread.
6801 (thread_apply_command): Use scoped_restore_current_thread.
6802 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6803 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6804
f6223dbb
PA
68052017-05-04 Pedro Alves <palves@redhat.com>
6806
6807 * thread.c (make_cleanup_restore_current_thread): Move
6808 find_thread_ptid call before the is_stopped call. Assert that the
6809 thread is found. Replace is_stopped call by checking the thread's
6810 state directly. Remove unnecessary NULL-thread check.
6811
3c3ae77e
PA
68122017-05-04 Pedro Alves <palves@redhat.com>
6813
6814 * corelow.c (thread_section_name): New class.
6815 (get_core_register_section, get_core_siginfo): Use it.
6816
45eba0ab
AA
68172017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6818
6819 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6820 (get_core_register_section): Remove xfree of NULL pointer.
6821
f81fdd35
AH
68222017-05-03 Alan Hayward <alan.hayward@arm.com>
6823
6824 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6825 * regcache.c (regcache::raw_supply_zeroed): New function.
6826 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6827
35837774
SM
68282017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6829
6830 * gdbarch.sh: Remove commented out definition of
6831 TARGET_CHAR_BIT.
6832 * gdbarch.h: Re-generate.
6833
c94fee56
SDJ
68342017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6835
6836 * configure: Regenerate.
6837
d17f7b36
SM
68382017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6839
6840 * solib-target.c (solib_target_relocate_section_addresses):
6841 Remove num_section_bases, num_bases, segment_bases variables.
6842
b560ebd6
SM
68432017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6844
6845 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6846
f2f46dfc
SM
68472017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6848
6849 * solib-target.c: Include <vector>
6850 (struct lm_info_target) <~lm_info_target>: Remove.
6851 <segment_bases, section_bases>: Change type to
6852 std::vector<CORE_ADDR>.
6853 (library_list_start_segment, library_list_start_section,
6854 library_list_end_library,
6855 solib_target_relocate_section_addresses): Adjust.
6856
a0ff9e1a
SM
68572017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6858
6859 * gdbarch.sh (software_single_step): Change return type to
6860 std::vector<CORE_ADDR>.
6861 * gdbarch.c, gdbarch.h: Re-generate.
6862 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6863 Adjust.
6864 (arm_deal_with_atomic_sequence_raw): Adjust.
6865 (thumb_get_next_pcs_raw): Adjust.
6866 (arm_get_next_pcs_raw): Adjust.
6867 (arm_get_next_pcs): Adjust.
6868 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6869 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6870 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6871 (alpha_software_single_step): Adjust.
6872 * alpha-tdep.h (alpha_software_single_step): Adjust.
6873 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6874 * arm-tdep.c (arm_software_single_step): Adjust.
6875 (arm_breakpoint_kind_from_current_state): Adjust.
6876 * arm-tdep.h (arm_software_single_step): Adjust.
6877 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6878 * cris-tdep.c (cris_software_single_step): Adjust.
6879 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6880 (micromips_deal_with_atomic_sequence): Adjust.
6881 (deal_with_atomic_sequence): Adjust.
6882 (mips_software_single_step): Adjust.
6883 * mips-tdep.h (mips_software_single_step): Adjust.
6884 * moxie-tdep.c (moxie_software_single_step): Adjust.
6885 * nios2-tdep.c (nios2_software_single_step): Adjust.
6886 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6887 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6888 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6889 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6890 * sparc-tdep.c (sparc_software_single_step): Adjust.
6891 * spu-tdep.c (spu_software_single_step): Adjust.
6892 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6893
ea480a30
SM
68942017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6895
6896 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6897 * gdbarch.h: Re-generate.
6898
d050f7d7
TW
68992017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6900
6901 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6902 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6903 * python/py-instruction.c, python/py-instruction.h: New file.
6904 * python/py-record.c: Add py-instruction.h include.
6905 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6906 gdb.RecordInstruction.
6907 * python/python-internal.h: Add gdbpy_initialize_instruction
6908 declaration.
6909 * python/python.c (do_start_initialization): Add
6910 gdbpy_initialize_instruction.
6911
14f819c8
TW
69122017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6913
6914 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6915 Remove.
6916 (btrace_func_from_recpy_func): New function.
6917 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6918 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6919 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6920 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6921 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6922 Also, use new helper functions.
6923 (btpy_list_item): Use new helper functions.
6924 (recpy_bt_function_call_history): Use new type name.
6925 (btpy_call_getset): Remove.
6926 (gdbpy_initialize_btrace): Remove code to initialize
6927 gdb.BtraceFunctionCall.
6928 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6929 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6930 recpy_bt_func_prev, recpy_bt_func_next): New export.
6931 * python/py-record.c (recpy_func_type): New static object.
6932 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6933 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6934 recpy_func_next): New function.
6935 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6936 (recpy_func_getset): New static object.
6937 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6938 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6939
0ed5da75
TW
69402017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6941
6942 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6943 (btpy_object, btpy_insn_type, btpy_new): Remove.
6944 (btpy_list_object): Use gdb.RecordInstruction type instead of
6945 gdb.BtraceInstruction type.
6946 (btrace_insn_from_recpy_insn): New function.
6947 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6948 btpy_new.
6949 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6950 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6951 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6952 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6953 instead of btpy_object.
6954 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6955 btpy_insn_data, btpy_insn_decode): Rename to ...
6956 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6957 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6958 recpy_bt_insn_decode): This. Also, use new helper functions.
6959 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6960 recpy_insn_type.
6961 (btpy_insn_getset): Remove.
6962 (gdbpy_initialize_btrace): Remove code to initialize
6963 gdb.BtraceInstruction. Use recpy_element_object.
6964 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6965 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6966 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6967 * python/py-record.c (recpy_insn_type): New static object.
6968 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6969 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6970 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6971 New function.
6972 (recpy_insn_getset): New static object.
6973 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6974 * python/py-record.h (recpy_element_object): New typedef.
6975 (recpy_insn_type, recpy_insn_new): New export.
6976
913aeadd
TW
69772017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6978
6979 * py-record-btrace.c (btpy_insn_new): Removed.
6980 (btpy_insn_or_gap_new): New function.
6981 (btpy_insn_error): Removed.
6982 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6983 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6984 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6985 btpy_insn_or_gap_new instead of btpy_insn_new.
6986 (btpy_insn_getset): Remove btpy_insn_error.
6987 * py-record.c (recpy_gap_type): New static object.
6988 (recpy_gap_object): New typedef.
6989 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6990 recpy_gap_reason_string): New function.
6991 (recpy_gap_getset): New static object.
6992 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6993 * py-record.h (recpy_gap_new): New export.
6994
a3be24ad
TW
69952017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6996
6997 * python/py-record.c (recpy_ptid): Remove.
6998 (recpy_record_getset): Remove recpy_ptid.
6999
ae20e79a
TW
70002017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7001
7002 * btrace.c (btrace_fetch): Set inferior_ptid.
7003 * python/py-record-btrace.c: Add "py-record.h" include.
7004 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7005 recpy_bt_end, recpy_bt_instruction_history,
7006 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7007 in gdb.Record object instead of current ptid.
7008 * python/py-record.c: Include new "py-record.h" file.
7009 (recpy_record_object): Moved to py-record.h.
7010 * python/py-record.h: New file.
7011
8d0050ea
TW
70122017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7013
7014 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7015 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7016 indentation.
7017
3f380b50
JB
70182017-05-01 Joel Brobecker <brobecker@adacore.com>
7019
7020 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7021 the past maintainers section.
7022
07495424
YQ
70232017-04-28 Yao Qi <yao.qi@linaro.org>
7024
7025 * infcmd.c (get_return_value): Use regcache ctor, and remove
7026 cleanup.
7027
deb1fa3e
YQ
70282017-04-28 Yao Qi <yao.qi@linaro.org>
7029 Pedro Alves <palves@redhat.com>
7030
7031 * regcache.c (regcache::regcache): New tag dispatch ctor.
7032 (do_cooked_read): Moved above.
7033 (regcache_dup): Use the tag dispatch ctor..
7034 * regcache.h (regcache): Declare ctor, delete copy ctor and
7035 assignment operator, remove friend regcache_dup.
7036
b421c83c
YQ
70372017-04-28 Yao Qi <yao.qi@linaro.org>
7038
7039 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7040 call method save instead of regcache_cpy.
7041 * regcache.h (struct regcache): Make regcache_dup a friend.
7042
ef79d9a3
YQ
70432017-04-28 Yao Qi <yao.qi@linaro.org>
7044
7045 * regcache.c (struct regcache): Move to regcache.h
7046 (regcache::arch): New method.
7047 (regcache_get_ptid): Update.
7048 (get_regcache_arch): Call arch method.
7049 (get_regcache_aspace): Call method aspace.
7050 (register_buffer): Change it to method.
7051 (regcache_save): Change it to regcache::save.
7052 (regcache_restore): Likewise.
7053 (regcache_cpy_no_passthrough): Remove the declaration.
7054 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7055 (regcache_cpy_no_passthrough): Change it to method
7056 cpy_no_passthrough.
7057 (regcache_register_status): Change it to method
7058 get_register_status.
7059 (regcache_invalidate): Change it to method invalidate.
7060 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7061 (regcache_raw_update): Change it to method raw_update.
7062 (regcache_raw_read): Likewise.
7063 (regcache_raw_read_signed): Likewise.
7064 (regcache_raw_read_unsigned): Likewise.
7065 (regcache_raw_write_signed): Likewise.
7066 (regcache_raw_write_unsigned): Likewise.
7067 (regcache_cooked_read): Likewise.
7068 (regcache_cooked_read_value): Likewise.
7069 (regcache_cooked_read_signed): Likewise.
7070 (regcache_cooked_read_unsigned): Likewise.
7071 (regcache_cooked_write_signed): Likewise.
7072 (regcache_cooked_write_unsigned): Likewise.
7073 (regcache_raw_set_cached_value): Likewise.
7074 (regcache_raw_write): Likewise.
7075 (regcache_cooked_write): Likewise.
7076 (regcache_xfer_part): Likewise.
7077 (regcache_raw_read_part): Likewise.
7078 (regcache_raw_write_part): Likewise.
7079 (regcache_cooked_read_part): Likewise.
7080 (regcache_cooked_write_part): Likewise.
7081 (regcache_raw_supply): Likewise.
7082 (regcache_raw_collect): Likewise.
7083 (regcache_transfer_regset): Likewise.
7084 (regcache_supply_regset): Likewise.
7085 (regcache_collect_regset): Likewise.
7086 (regcache_debug_print_register): Likewise.
7087 (enum regcache_dump_what): Move it to regcache.h.
7088 (regcache_dump): Change it to method dump.
7089 * regcache.h (enum regcache_dump_what): New.
7090 (class regcache): New.
7091 * target.c (target_fetch_registers): Call method
7092 debug_print_register.
7093 (target_store_registers): Likewise.
7094
f8fdb78e
SM
70952017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7096
7097 * windows-nat.c (struct lm_info_windows): Initialize field.
7098 (windows_make_so): Allocate lm_info_windows with new.
7099 (windows_free_so): Free lm_info_windows with delete.
7100
9ccbfd7b
SM
71012017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7102
7103 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7104 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7105 cleanup.
7106 (darwin_free_so): Free lm_info_darwin with delete.
7107
76e75227
SM
71082017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7109
7110 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7111 <l_addr_p>: Change type to bool.
7112 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7113 (svr4_free_so): Free lm_info_svr4 with delete.
7114 (svr4_copy_library_list): Replace memcpy with call to copy
7115 constructor.
7116 (library_list_start_library, svr4_default_sos): Allocate
7117 lm_info_svr4 with new.
7118
51046d9e
SM
71192017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7120
7121 * solib-target.c (struct lm_info_target): Add destructor,
7122 initialize fields.
7123 <name>: Change type to std::string.
7124 (library_list_start_library): Allocate lm_info_target with new.
7125 (solib_target_free_library_list): Free lm_info_target with
7126 delete.
7127 (solib_target_current_sos): Adapt to std::string.
7128 (solib_target_free_so): Free lm_info_target with delete.
7129
4023ae76
SM
71302017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7131
7132 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7133 fields.
7134 (frv_current_sos): Allocate lm_info_frv with new.
7135 (frv_relocate_main_executable): Free lm_info_frv with delete,
7136 allocate with new.
7137 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7138
af43057b
SM
71392017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7140
7141 * solib-frv.c (struct lm_info_frv): Fix indentation.
7142
b0911207
SM
71432017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7144
7145 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7146 map field.
7147 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7148 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7149 and allocate with new.
7150 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7151
6c401f72
SM
71522017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7153
7154 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7155 <filename, member_name>: Change type to std::string.
7156 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7157 (library_list_start_library): Allocate lm_info_aix with new.
7158 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7159 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7160 with copy constructor.
7161
d0e449a1
SM
71622017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7163
7164 * solist.h (struct lm_info): Remove.
7165 (struct lm_info_base): New class.
7166 (struct so_list) <lm_info>: Change type to lm_info_base *.
7167 * nto-tdep.c (struct lm_info): Remove.
7168 (lm_addr): Adjust.
7169 * solib-aix.c (struct lm_info): Rename to ...
7170 (struct lm_info_aix): ... this. Extend lm_info_base.
7171 (lm_info_p): Rename to ...
7172 (lm_info_aix_p): ... this, and adjust.
7173 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7174 solib_aix_parse_libraries, library_list_start_library,
7175 solib_aix_free_library_list, solib_aix_parse_libraries,
7176 solib_aix_get_library_list,
7177 solib_aix_relocate_section_addresses, solib_aix_free_so,
7178 solib_aix_get_section_offsets,
7179 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7180 Adjust.
7181 (struct solib_aix_inferior_data) <library_list>: Adjust.
7182 * solib-darwin.c (struct lm_info): Rename to ...
7183 (struct lm_info_darwin): ... this. Extend lm_info_base.
7184 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7185 * solib-dsbt.c (struct lm_info): Rename to ...
7186 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7187 (struct dsbt_info) <main_executable_lm_info): Adjust.
7188 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7189 dsbt_relocate_section_addresses): Adjust.
7190 * solib-frv.c (struct lm_info): Rename to ...
7191 (struct lm_info_frv): ... this. Extend lm_info_base.
7192 (main_executable_lm_info): Adjust.
7193 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7194 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7195 find_canonical_descriptor_in_load_object,
7196 frv_fdpic_find_canonical_descriptor): Adjust.
7197 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7198 to lm_info_svr4.
7199 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7200 svr4_clear_so, svr4_copy_library_list,
7201 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7202 svr4_current_sos, svr4_fetch_objfile_link_map,
7203 solist_update_incremental): Adjust.
7204 * solib-svr4.h (struct lm_info_svr4): Move here from
7205 solib-svr4.c.
7206 * solib-target.c (struct lm_info): Rename to ...
7207 (struct lm_info_target): ... this. Extend lm_info_base.
7208 (lm_info_p): Rename to ...
7209 (lm_info_target_p): ... this.
7210 (solib_target_parse_libraries, library_list_start_segment,
7211 library_list_start_section, library_list_start_library,
7212 library_list_end_library, solib_target_free_library_list,
7213 solib_target_current_sos, solib_target_free_so,
7214 solib_target_relocate_section_addresses): Adjust.
7215 * windows-nat.c (struct lm_info): Rename to ...
7216 (struct lm_info_windows): ... this. Extend lm_info_base.
7217 (windows_make_so, handle_load_dll, handle_unload_dll,
7218 windows_xfer_shared_libraries): Adjust.
7219
434a4023
SM
72202017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7221
7222 * solib-darwin.c (struct darwin_so_list): Remove.
7223 (darwin_current_sos): Allocate an so_list object instead of a
7224 darwin_so_list, separately allocate an lm_info object.
7225 (darwin_free_so): Free lm_info.
7226
428544e8
JB
72272017-04-28 John Baldwin <jhb@FreeBSD.org>
7228
7229 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7230 with fprintf_filtered.
7231
4621115f
YQ
72322017-04-28 Yao Qi <yao.qi@linaro.org>
7233
7234 * regcache.c (regcache::regcache): New function.
7235 (regcache::~regcache): New function.
7236 (regcache_xmalloc_1): Remove.
7237 (regcache_xmalloc): Call new regcache.
7238 (regcache_xfree): Call delete regcache.
7239 (get_thread_arch_aspace_regcache): Call new regcache.
7240
339053c2
YQ
72412017-04-28 Yao Qi <yao.qi@linaro.org>
7242
7243 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7244 lwp instead of ptid_get_lwp.
7245
7974a605
YQ
72462017-04-28 Yao Qi <yao.qi@linaro.org>
7247
7248 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7249 lwp_info instead of getting from inferior_ptid.
7250
e15c3eb4
KS
72512017-04-27 Keith Seitz <keiths@redhat.com>
7252
7253 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7254 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7255 (CV_CONVERSION_BADNESS): Define.
7256 (rank_one_type): Remove overly restrictive rvalue reference
7257 rank checks.
7258 Add cv-qualifier checks and subranks for type equality.
7259 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7260 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7261 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7262
72bc1d24
SM
72632017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7264
7265 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7266 count when creating the object.
7267
55bcecda
UW
72682017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7269 Ulrich Weigand <uweigand@de.ibm.com>
7270
7271 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7272 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7273 is used in AIX.
7274 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7275 (process_xcoff_symbol): Likewise.
7276 (scan_xcoff_symtab): Likewise.
7277
5c99fcf8
AH
72782017-04-26 Alan Hayward <alan.hayward@arm.com>
7279
7280 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7281 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7282 (ia64_access_reg): Use get_frame_register_unsigned.
7283 (ia64_access_rse_reg): Likewise.
7284 (ia64_libunwind_frame_prev_register): Likewise.
7285
b41c5a85
JW
72862017-04-26 Jiong Wang <jiong.wang@arm.com>
7287
7288 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7289 * gdbarch.c: Regenerated.
7290 * gdbarch.h: Regenerated.
7291 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7292 visibility external.
7293 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7294 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7295 (enum cfa_how_kind): Move to ...
7296 (struct dwarf2_frame_state_reg_info): Likewise.
7297 (struct dwarf2_frame_state): Likewise.
7298 * dwarf2-frame.h: ... here.
7299 (dwarf2_frame_state_alloc_regs): New declaration.
7300 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7301 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7302
c185f580
AH
73032017-04-26 Alan Hayward <alan.hayward@arm.com>
7304
7305 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7306 regcache_raw_read_unsigned.
7307 (xtensa_pseudo_register_write): Likewise.
7308
19c45594
AH
73092017-04-26 Alan Hayward <alan.hayward@arm.com>
7310
7311 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7312 (nds32_pseudo_register_write): Likewise.
7313
4658f12e
YQ
73142017-04-25 Yao Qi <yao.qi@linaro.org>
7315
7316 * regcache.c (struct regcache) <readonly_p>: Change its type
7317 to bool.
7318 (regcache_xmalloc_1): Update parameter type and callers update.
7319
d581dda8
YQ
73202017-04-25 Yao Qi <yao.qi@linaro.org>
7321
7322 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7323 set_gdbarch_wchar_bit.
7324 * arm-tdep.c (arm_gdbarch_init): Likewise.
7325
debed3db
PA
73262017-04-25 Pedro Alves <palves@redhat.com>
7327
7328 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7329 (BothAreRelocatable, memcopy, memmove): Don't define.
7330 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7331 macros.
7332
b0b92aeb
PA
73332017-04-25 Pedro Alves <palves@redhat.com>
7334
7335 * common/common-defs.h: Include "common/poison.h".
7336 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7337 and adjust.
7338 * common/poison.h: New file.
7339 * common/traits.h: Include <type_traits>.
7340 (Not, Or, Requires): New, moved from common/function-view.h.
7341
16c4d54a
PA
73422017-04-25 Pedro Alves <palves@redhat.com>
7343
7344 * breakpoint.h (struct breakpoint): In-class initialize all
7345 fields. Make boolean fields "bool".
7346 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7347 memset call and initializations no longer necessary.
7348
b5c36682
PA
73492017-04-25 Pedro Alves <palves@redhat.com>
7350
7351 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7352 reference.
7353 (pt_btrace_insn): New function.
7354 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7355
5625a286
PA
73562017-04-25 Pedro Alves <palves@redhat.com>
7357
7358 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7359 "base" field and inherit from "bp_location" instead. Add
7360 non-default ctor.
7361 (allocate_location_exception): Use new non-default ctor.
7362 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7363 (init_bp_location): Convert to ...
7364 (bp_location::bp_location): ... this new ctor, and remove memset
7365 call.
7366 (base_breakpoint_allocate_location): Use the new non-default ctor.
7367 * breakpoint.h (bp_location): Now a class. Declare default and
7368 non-default ctors. In-class initialize all members.
7369 (init_bp_location): Remove declaration.
7370
23bcc18f
PA
73712017-04-25 Pedro Alves <palves@redhat.com>
7372
7373 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7374 assignment operator.
7375
e1ba3053
YQ
73762017-04-24 Yao Qi <yao.qi@linaro.org>
7377
7378 * doublest.c (convert_doublest_to_floatformat): Call
7379 floatformat_totalsize_bytes.
7380
10f489e5
TT
73812017-04-22 Tom Tromey <tom@tromey.com>
7382
7383 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7384 ui_out_emit_list.
7385 * stack.c (print_frame): Use ui_out_emit_list.
7386 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7387 ui_out_emit_list.
7388 * mi/mi-main.c (print_one_inferior)
7389 (mi_cmd_data_list_register_names)
7390 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7391 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7392 ui_out_emit_list.
7393 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7394 (mi_output_solib_attribs): Use ui_out_emit_list,
7395 ui_out_emit_tuple.
7396 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7397 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7398 (mi_cmd_stack_list_args, list_args_or_locals): Use
7399 ui_out_emit_list.
7400 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7401 * breakpoint.c (print_solib_event, output_thread_groups): Use
7402 ui_out_emit_list.
7403
0092b74d
TT
74042017-04-22 Tom Tromey <tom@tromey.com>
7405
7406 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7407 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7408 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7409
a14a62dd
TT
74102017-04-22 Tom Tromey <tom@tromey.com>
7411
7412 * tracepoint.c (tvariables_info_1)
7413 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7414
46b9c129
TT
74152017-04-22 Tom Tromey <tom@tromey.com>
7416
7417 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7418 annotate_arg_emitter.
7419 * breakpoint.c (print_mention_watchpoint)
7420 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7421 * annotate.h (struct annotate_arg_emitter): New.
7422
2e783024
TT
74232017-04-22 Tom Tromey <tom@tromey.com>
7424
7425 * record-btrace.c (record_btrace_insn_history)
7426 (record_btrace_insn_history_range, record_btrace_call_history)
7427 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7428 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7429 ui_out_emit_tuple.
7430 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7431 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7432 * skip.c (skip_info): Use ui_out_emit_tuple.
7433 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7434 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7435 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7436 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7437 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7438 ui_out_emit_tuple.
7439 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7440 (output_register, mi_cmd_data_read_memory)
7441 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7442 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7443 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7444 Use ui_out_emit_tuple.
7445 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7446 ui_out_emit_tuple.
7447 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7448 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7449 * linux-thread-db.c (info_auto_load_libthread_db): Use
7450 ui_out_emit_tuple.
7451 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7452 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7453 * disasm.c (do_mixed_source_and_assembly_deprecated)
7454 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7455 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7456 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7457 * breakpoint.c (print_one_breakpoint_location)
7458 (print_one_breakpoint): Use ui_out_emit_tuple.
7459 * auto-load.c (print_script, info_auto_load_cmd): Use
7460 ui_out_emit_tuple.
7461 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7462
9be21bb4
SM
74632017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7464
7465 * thread.c (print_thread_info_1): Remove dead code.
7466
0d4c07af
JK
74672017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7468
7469 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7470 GDB_SELF_TEST.
7471 * arm-tdep.c (selftests::arm_record_test): Likewise.
7472
4daf993d
YQ
74732017-04-21 Yao Qi <yao.qi@linaro.org>
7474
7475 * regcache.c (regcache_restore): Remove argument 2. Replace
7476 argument 3 with regcache. Get register status from
7477 src->register_status and get register contents from
7478 register_buffer (src, regnum).
7479 (regcache_cpy): Update.
7480
a6c21d4a
PA
74812017-04-19 Pedro Alves <palves@redhat.com>
7482
7483 * gdbthread.h (thread): Add missing closing parenthesis in
7484 comment.
7485
3a3fd0fd
PA
74862017-04-19 Pedro Alves <palves@redhat.com>
7487
7488 * common/refcounted-object.h: New file.
7489 * gdbthread.h: Include "common/refcounted-object.h".
7490 (thread_info): Inherit from refcounted_object and add comments.
7491 (thread_info::incref, thread_info::decref)
7492 (thread_info::m_refcount): Delete.
7493 (thread_info::deletable): Use the refcounted_object::refcount()
7494 method.
7495 * inferior.c (current_inferior_): Add comment.
7496 (set_current_inferior): Increment/decrement refcounts.
7497 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7498 not-deletable instead of comparing with the current inferior.
7499 (initialize_inferiors): Increment the initial inferior's refcount.
7500 * inferior.h (struct inferior): Forward declare.
7501 Include "common/refcounted-object.h".
7502 (current_inferior, set_current_inferior): Move declaration to
7503 before struct inferior's definition, and fix comment.
7504 (inferior): Inherit from refcounted_object. Add comments.
7505 * thread.c (switch_to_thread_no_regs): Reference the thread's
7506 inferior pointer directly instead of doing a ptid lookup.
7507 (switch_to_no_thread): New function.
7508 (switch_to_thread(thread_info *)): New function, factored out
7509 from ...
7510 (switch_to_thread(ptid_t)): ... this.
7511 (restore_current_thread): Delete.
7512 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7513 fields, and add 'inf' field.
7514 (do_restore_current_thread_cleanup): Check whether old->inf is
7515 alive instead of looking up an inferior by ptid. Use
7516 switch_to_thread and switch_to_no_thread.
7517 (restore_current_thread_cleanup_dtor): Use old->inf directly
7518 instead of lookup up an inferior by id. Decref the inferior.
7519 Don't restore 'removable'.
7520 (make_cleanup_restore_current_thread): Same the inferior pointer
7521 in old, instead of the inferior number. Incref the inferior.
7522 Don't save/clear 'removable'.
7523
9bcb1f16
PA
75242017-04-19 Pedro Alves <palves@redhat.com>
7525
7526 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7527 unittests/scoped_restore-selftests.c.
7528 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7529 * common/scoped_restore.h (scoped_restore_base): Make "class".
7530 (scoped_restore_base::release): New public method.
7531 (scoped_restore_base::scoped_restore_base): New protected ctor.
7532 (scoped_restore_base::m_saved_var): New protected field.
7533 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7534 scoped_restore_base base class instead of m_saved_var directly.
7535 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7536 (scoped_restore_tmpl::scoped_restore_tmpl(const
7537 scoped_restore_tmpl<T>&)): Likewise.
7538 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7539 method.
7540 (scoped_restore_tmpl::saved_var): New method.
7541 (scoped_restore_tmpl::m_saved_var): Delete.
7542 * inferior.h (inferior::detaching): Now a bool.
7543 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7544 cleanup.
7545 * unittests/scoped_restore-selftests.c: New file.
7546
26fcd539
PA
75472017-04-19 Pedro Alves <palves@redhat.com>
7548
7549 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7550 Re-sort in alphabetic order.
7551
fdd243b0
PA
75522017-04-18 Pedro Alves <palves@redhat.com>
7553
7554 * xml-support.c (obstack_xml_printf): Delete.
7555 * xml-support.h (obstack_xml_printf): Delete.
7556
4895cde2
PA
75572017-04-18 Pedro Alves <palves@redhat.com>
7558
7559 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7560 vdebug, verror, body_text, start_element, end_element, name,
7561 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7562 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7563 is_xinclude>: Make private and add m_ prefix.
7564 (gdb_xml_parser::body_text): New method, based on ...
7565 (gdb_xml_body_text): ... this. Adjust.
7566 (gdb_xml_parser::vdebug): New method, based on ...
7567 (gdb_xml_debug): ... this. Adjust.
7568 (gdb_xml_parser::verror): New method, based on ...
7569 (gdb_xml_error): ... this. Adjust.
7570 (gdb_xml_parser::start_element): New method, based on ...
7571 (gdb_xml_start_element): ... this. Adjust.
7572 (gdb_xml_start_element_wrapper): Defer to
7573 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7574 (gdb_xml_parser::end_element): New method, based on ...
7575 (gdb_xml_end_element_wrapper): ... this. Adjust.
7576 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7577 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7578 (gdb_xml_parser::use_dtd): New method, based on ...
7579 (gdb_xml_use_dtd): ... this. Adjust.
7580 (gdb_xml_parser::parse): New method, based on ...
7581 (gdb_xml_parse): ... this. Adjust.
7582 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7583 (xinclude_start_include): Adjust to call the parser's name method.
7584 (xml_xinclude_default, xml_xinclude_start_doctype)
7585 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7586 method.
7587 (xml_process_xincludes): Adjust to call parser methods.
7588 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7589 declarations.
7590
bd8a901f
PA
75912017-04-18 Pedro Alves <palves@redhat.com>
7592
7593 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7594 gdb::optional<std::string>.
7595 * xml-support.c: Include <string>.
7596 (scope_level::scope_level(scope_level &&))
7597 (scope_level::~scope_level): Delete.
7598 (scope_level::body): Now a std::string.
7599 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7600 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7601 parameter.
7602 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7603 (xinclude_parsing_data::output): Now a std::string reference.
7604 (xinclude_start_include): Adjust.
7605 (xml_xinclude_default): Adjust.
7606 (xml_process_xincludes): Add 'output' parameter, and return bool.
7607 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7608 and return bool.
7609 * xml-tdesc.c: Include <unordered_map> and <string>.
7610 (tdesc_xml_cache): Delete.
7611 (tdesc_xml_cache_s): Delete.
7612 (xml_cache): Now an std::unordered_map.
7613 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7614 (target_fetch_description_xml): Change return type to
7615 gdb::optional<std::string>, and adjust.
7616 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7617 (target_fetch_description_xml): Change return type to
7618 gdb::optional<std::string>.
7619
d35d1958
PA
76202017-04-18 Pedro Alves <palves@redhat.com>
7621
7622 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7623 unittests/optional-selftests.c.
7624 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7625 * unittests/optional-selftests.c: New file.
7626 * unittests/optional/assignment/1.cc: New file.
7627 * unittests/optional/assignment/2.cc: New file.
7628 * unittests/optional/assignment/3.cc: New file.
7629 * unittests/optional/assignment/4.cc: New file.
7630 * unittests/optional/assignment/5.cc: New file.
7631 * unittests/optional/assignment/6.cc: New file.
7632 * unittests/optional/assignment/7.cc: New file.
7633 * unittests/optional/cons/copy.cc: New file.
7634 * unittests/optional/cons/default.cc: New file.
7635 * unittests/optional/cons/move.cc: New file.
7636 * unittests/optional/cons/value.cc: New file.
7637 * unittests/optional/in_place.cc: New file.
7638 * unittests/optional/observers/1.cc: New file.
7639 * unittests/optional/observers/2.cc: New file.
7640
22796e97
PA
76412017-04-18 Pedro Alves <palves@redhat.com>
7642
7643 * common/gdb_optional.h: Include common/traits.h.
7644 (in_place_t): New type.
7645 (in_place): New constexpr variable.
7646 (optional::optional): Remove member initialization of
7647 m_instantiated.
7648 (optional::optional(in_place_t...)): New constructor.
7649 (optional::~optional): Use reset.
7650 (optional::optional(const optional&)): New.
7651 (optional::optional(const optional&&)): New.
7652 (optional::optional(T &)): New.
7653 (optional::optional(T &&)): New.
7654 (operator::operator=(const optional &)): New.
7655 (operator::operator=(optional &&)): New.
7656 (operator::operator= (const T &))
7657 (operator::operator= (T &&))
7658 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7659 (operator::reset): New.
7660 (operator::m_instantiated):: Add in-class initializer.
7661 * common/traits.h: Include <type_traits>.
7662 (struct And): New types.
7663
a7fc9b61
PA
76642017-04-18 Pedro Alves <palves@redhat.com>
7665
7666 * xml-support.c: Include <vector>.
7667 (scope_level::scope_level(const gdb_xml_element *))
7668 (scope_level::scope_level(scope_level&&)): New.
7669 (scope_level::~scope_level): New.
7670 (scope_level_s): Delete.
7671 (gdb_xml_parser::scopes): Now a std::vector.
7672 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7673 Use std::vector.
7674 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7675 scope cleanup code.
7676 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7677 of the scopes member. Use std::vector::emplace_back.
7678
010151c9
PA
76792017-04-18 Pedro Alves <palves@redhat.com>
7680
7681 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7682 a bool.
7683 (gdb_xml_end_element): Change type of first parameter.
7684 (gdb_xml_cleanup): Rename to ...
7685 (gdb_xml_parser::~gdb_xml_parser): ... this.
7686 (gdb_xml_create_parser_and_cleanup): Delete with ...
7687 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7688 to this new ctor.
7689 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7690 using gdb_xml_create_parser_and_cleanup.
7691 (xinclude_parsing_data): Add ctor/dtor.
7692 (xml_xinclude_cleanup): Delete.
7693 (xml_process_xincludes): Create a local xinclude_parsing_data
7694 instead of heap-allocating one. Create a local gdb_xml_parser
7695 instead of heap-allocating one with
7696 gdb_xml_create_parser_and_cleanup.
7697
d56060f0
JB
76982017-04-18 John Baldwin <jhb@FreeBSD.org>
7699
7700 PR threads/20743
7701 * fbsd-nat.c (resume_one_thread_cb): Remove.
7702 (resume_all_threads_cb): Remove.
7703 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7704 iterate_over_threads.
7705
305d16a9
JB
77062017-04-17 Joel Brobecker <brobecker@adacore.com>
7707
7708 * NEWS: Create a new section for the next release branch.
7709 Rename the section of the current branch, now that it has
7710 been cut.
7711
8bb57231
JB
77122017-04-17 Joel Brobecker <brobecker@adacore.com>
7713
7714 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7715 * version.in: Bump version to 8.0.50.DATE-git.
7716
096c92dd
SDJ
77172017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7718
7719 PR gdb/21385
7720 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7721 independently of the host, and fix build breakage on Cygwin.
7722
0550c955
PA
77232017-04-13 Pedro Alves <palves@redhat.com>
7724
7725 * inferior.c (free_inferior): Convert to ...
7726 (inferior::~inferior): ... this dtor.
7727 (inferior::inferior): New ctor, factored out from ...
7728 (add_inferior_silent): ... here. Allocate the inferior with a new
7729 expression.
7730 (delete_inferior): Call delete instead of free_inferior.
7731 * inferior.h (gdb_environ, continuation): Forward declare.
7732 (inferior): Now a class. Add in-class initialization to all
7733 members. Make boolean fields bool, except 'detaching'.
7734 (inferior::inferior): New explicit ctor.
7735 (inferior::~inferior): New.
7736
e3d60dfc
PA
77372017-04-13 Pedro Alves <palves@redhat.com>
7738
7739 * inferior.c (init_inferior_list): Delete.
7740 * inferior.h (init_inferior_list): Delete.
7741
5fd69d0a
PA
77422017-04-13 Pedro Alves <palves@redhat.com>
7743
7744 PR threads/13217
7745 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7746 (top level): Call it twice, with different thread sets.
7747
c6609450
PA
77482017-04-13 Pedro Alves <palves@redhat.com>
7749
7750 * thread.c: Include <algorithm>.
7751 (thread_array_cleanup): Delete.
7752 (scoped_inc_dec_ref): New class.
7753 (live_threads_count): New function.
7754 (set_thread_refcount): Delete.
7755 (tp_array_compar_ascending): Now a bool.
7756 (tp_array_compar): Convert to a std::sort comparison function.
7757 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7758 and live_threads_count.
7759
2a00d7ce
PA
77602017-04-13 Pedro Alves <palves@redhat.com>
7761
7762 * infrun.c (follow_fork_inferior): Also switch the current
7763 inferior.
7764
441d7c93
PA
77652017-04-13 Pedro Alves <palves@redhat.com>
7766
7767 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7768 before calling create_internal_breakpoint.
7769
808480f6
PA
77702017-04-13 Pedro Alves <palves@redhat.com>
7771
7772 * fork-child.c (execv_argv): New class.
7773 (breakup_args): Refactored as ...
7774 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7775 Copy arguments to storage and replace separators with NULL
7776 terminators in place.
7777 (escape_bang_in_quoted_argument): Adjust to return bool.
7778 (execv_argv::execv_argv): New ctor.
7779 (execv_argv::init_for_shell): New method, factored out from
7780 fork_inferior. Don't strdup strings into the vector.
7781 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7782 Remove free_vector_argv call.
7783
ad3d022a
YQ
77842017-04-13 Yao Qi <yao.qi@linaro.org>
7785
7786 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7787 tdep->rx_psw_type.
7788
e6ddc3bf
YQ
77892017-04-13 Yao Qi <yao.qi@linaro.org>
7790
7791 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7792 * rx-tdep.c (rx_gdbarch_init): Likewise.
7793
bfb8cf90
PA
77942017-04-13 Pedro Alves <palves@redhat.com>
7795
7796 * breakpoint.h (struct breakpoint): Reindent.
7797
f5336ca5
PA
77982017-04-13 Pedro Alves <palves@redhat.com>
7799
7800 * breakpoint.c (bp_location): Rename to ...
7801 (bp_locations): ... this. All references updated.
7802 (bp_location_count): Rename to ...
7803 (bp_locations_count): ... this. All references updated.
7804 (bp_location_placed_address_before_address_max): Rename to ...
7805 (bp_locations_placed_address_before_address_max): ... this. All
7806 references updated.
7807 (bp_location_shadow_len_after_address_max): Rename to ...
7808 (bp_locations_shadow_len_after_address_max): ... this. All
7809 references updated.
7810 (bp_location_compare_addrs): Rename to ...
7811 (bp_locations_compare_addrs): ... this. All references updated.
7812 (bp_location_compare):Rename to ...
7813 (bp_locations_compare): ... this. All references updated.
7814 (bp_location_target_extensions_update): Rename to ...
7815 (bp_locations_target_extensions_update): ... this. All references
7816 updated.
7817
be628ab8
SDJ
78182017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7819
7820 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7821 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7822 'sgtty.h'.
7823 * common/gdb_termios.h: New file, with parts of "terminal.h".
7824 * inflow.c: Include "gdb_termios.h".
7825 * ser-unix.c: Include "gdb_termios.h".
7826 * terminal.h: Move terminal-related defines to
7827 "common/gdb_termios.h".
7828
8e9e35b1
TT
78292017-04-12 Tom Tromey <tom@tromey.com>
7830
7831 * probe.c (parse_probes): Update.
7832 * location.h (delete_event_location): Don't declare.
7833 (event_location_deleter::operator()): Update.
7834 * location.c (event_location_deleter::operator()): Rename from
7835 delete_event_location.
7836 * linespec.h (linespec_result) <location>: Change type to
7837 event_location_up.
7838 * linespec.c (canonicalize_linespec, event_location_to_sals)
7839 (decode_objc): Update.
7840 (linespec_result): Don't call delete_event_location.
7841 * breakpoint.c (create_breakpoints_sal)
7842 (bkpt_probe_create_sals_from_location)
7843 (strace_marker_create_sals_from_location): Update.
7844
16e802b9
TT
78452017-04-12 Tom Tromey <tom@tromey.com>
7846
7847 * linespec.h (struct linespec_result): Add constructor and
7848 destructor.
7849 (init_linespec_result, destroy_linespec_result)
7850 (make_cleanup_destroy_linespec_result): Don't declare.
7851 * linespec.c (init_linespec_result): Remove.
7852 (linespec_result::~linespec_result): Rename from
7853 destroy_linespec_result. Update.
7854 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7855 Remove.
7856 * breakpoint.c (create_breakpoint, break_range_command)
7857 (decode_location_default): Update.
7858 * ax-gdb.c (agent_command_1): Update.
7859
d28cd78a
TT
78602017-04-12 Tom Tromey <tom@tromey.com>
7861
7862 * remote.c (remote_download_tracepoint): Update.
7863 * python/py-breakpoint.c (bppy_get_location): Update.
7864 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7865 (gdbscm_breakpoint_location): Update.
7866 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7867 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7868 Change type to event_location_up.
7869 * breakpoint.c (create_overlay_event_breakpoint)
7870 (create_longjmp_master_breakpoint)
7871 (create_std_terminate_master_breakpoint)
7872 (create_exception_master_breakpoint)
7873 (breakpoint_event_location_empty_p, print_breakpoint_location)
7874 (print_one_breakpoint_location, create_thread_event_breakpoint)
7875 (init_breakpoint_sal, create_breakpoint)
7876 (print_recreate_ranged_breakpoint, break_range_command)
7877 (init_ada_exception_breakpoint, say_where): Update.
7878 (base_breakpoint_dtor): Don't call delete_event_location.
7879 (bkpt_print_recreate, tracepoint_print_recreate)
7880 (dprintf_print_recreate, update_static_tracepoint)
7881 (breakpoint_re_set_default): Update.
7882
711799d5
TT
78832017-04-12 Tom Tromey <tom@tromey.com>
7884
7885 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7886 type of "to_do". Update.
7887 (compute_stack_depth): Use std::vector.
7888
52d214d3
TT
78892017-04-12 Tom Tromey <tom@tromey.com>
7890
7891 * printcmd.c (find_instruction_backward): Use std::vector.
7892
4c404b8b
TT
78932017-04-12 Tom Tromey <tom@tromey.com>
7894
7895 * symfile.c (objfilep): Remove typedef.
7896 (reread_symbols): Use a std::vector.
7897
156d9eab
TT
78982017-04-12 Tom Tromey <tom@tromey.com>
7899
7900 * mi/mi-main.c (exec_direction_forward): Remove.
7901 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7902 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7903 scoped_restore.
7904 * guile/guile.c (guile_repl_command, guile_command)
7905 (gdbscm_execute_gdb_command): Use scoped_restore.
7906 * go-exp.y (go_parse): Use scoped_restore.
7907 * d-exp.y (d_parse): Use scoped_restore.
7908 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7909 * c-exp.y (c_parse): Use scoped_restore.
7910
4d89769a
TT
79112017-04-12 Tom Tromey <tom@tromey.com>
7912
7913 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7914 (mi_parse): Update return type.
7915 (mi_parse_free): Remove.
7916 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7917 (mi_parse::~mi_parse): Rename from mi_parse_free.
7918 (mi_parse_cleanup): Remove.
7919 (mi_parse): Return a unique_ptr. Use new.
7920 * mi/mi-main.c (mi_execute_command): Update.
7921
4b217cc7
TT
79222017-04-12 Tom Tromey <tom@tromey.com>
7923
7924 * location.c (explicit_location_lex_one): Return a
7925 unique_xmalloc_ptr.
7926 (string_to_explicit_location): Update. Remove cleanups.
7927
59d3651b
TT
79282017-04-12 Tom Tromey <tom@tromey.com>
7929
7930 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7931 (compare_value_and_voffset): Change type. Update.
7932 (compute_vtable_size): Change type of "offset_vec".
7933 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7934 (gnuv3_get_typeid): Remove extraneous declaration.
7935
b24b0d6c
TT
79362017-04-12 Tom Tromey <tom@tromey.com>
7937
7938 * charset.h (wchar_iterator): Fix comment.
7939
80a3b8c5
TT
79402017-04-12 Tom Tromey <tom@tromey.com>
7941
7942 * charset.c (iconv_wrapper): New class.
7943 (cleanup_iconv): Remove.
7944 (convert_between_encodings): Use it.
7945
c83dd867
TT
79462017-04-12 Tom Tromey <tom@tromey.com>
7947
7948 * symfile.h (increment_reading_symtab): Update type.
7949 * symfile.c (decrement_reading_symtab): Remove.
7950 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7951 * psymtab.c (psymtab_to_symtab): Update.
7952 * dwarf2read.c (dw2_instantiate_symtab): Update.
7953
0e8621a0
TT
79542017-04-12 Tom Tromey <tom@tromey.com>
7955
7956 * jit.c (struct jit_reader): Declare separately. Add constructor
7957 and destructor. Change type of "handle".
7958 (loaded_jit_reader): Define separately.
7959 (jit_reader_load): Update. New "new".
7960 (jit_reader_unload_command): Use "delete".
7961 * gdb-dlfcn.h (struct dlclose_deleter): New.
7962 (gdb_dlhandle_up): New typedef.
7963 (gdb_dlopen, gdb_dlsym): Update types.
7964 (gdb_dlclose): Remove.
7965 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7966 (gdb_dlsym): Change type of "handle".
7967 (make_cleanup_dlclose): Remove.
7968 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7969 * compile/compile-c-support.c (load_libcc): Update.
7970
67d89901
TT
79712017-04-12 Tom Tromey <tom@tromey.com>
7972
7973 * symtab.h (find_pcs_for_symtab_line): Change return type.
7974 * symtab.c (find_pcs_for_symtab_line): Change return type.
7975 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7976 type of "vec". Update.
7977 (ltpy_get_pcs_for_line): Update.
7978 * linespec.c (decode_digits_ordinary): Update.
7979
93921405
TT
79802017-04-12 Tom Tromey <tom@tromey.com>
7981
7982 * tracepoint.c (actions_command): Update.
7983 * python/python.c (python_command, python_interactive_command):
7984 Update.
7985 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7986 * guile/guile.c (guile_command): Update.
7987 * defs.h (read_command_lines, read_command_lines_1): Return
7988 command_line_up.
7989 (command_lines_deleter): New struct.
7990 (command_line_up): New typedef.
7991 * compile/compile.c (compile_code_command)
7992 (compile_print_command): Update.
7993 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7994 command_line_up.
7995 (make_cleanup_free_command_lines): Remove.
7996 * cli/cli-script.c (get_command_line, read_command_lines_1)
7997 (copy_command_lines): Return command_line_up.
7998 (while_command, if_command, read_command_lines, define_command)
7999 (document_command): Update.
8000 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8001 Remove.
8002 * breakpoint.h (breakpoint_set_commands): Change type of
8003 "commands".
8004 * breakpoint.c (breakpoint_set_commands): Change type of
8005 "commands". Update.
8006 (do_map_commands_command, update_dprintf_command_list)
8007 (create_tracepoint_from_upload): Update.
8008
ffc2605c
TT
80092017-04-12 Tom Tromey <tom@tromey.com>
8010
8011 * tracepoint.c (scope_info): Update.
8012 * spu-tdep.c (spu_catch_start): Update.
8013 * python/python.c (gdbpy_decode_line): Update.
8014 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8015 * python/py-breakpoint.c (bppy_init): Update.
8016 * probe.c (parse_probes): Update.
8017 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8018 * location.h (event_location_deleter): New struct.
8019 (event_location_up): New typedef.
8020 (new_linespec_location, new_address_location, new_probe_location)
8021 (new_explicit_location, copy_event_location)
8022 (string_to_event_location, string_to_event_location_basic)
8023 (string_to_explicit_location): Update return type.
8024 (make_cleanup_delete_event_location): Remove.
8025 * location.c (new_linespec_location, new_address_location)
8026 (new_probe_location, new_explicit_location, copy_event_location):
8027 Return event_location_up.
8028 (delete_event_location_cleanup)
8029 (make_cleanup_delete_event_location): Remove.
8030 (string_to_explicit_location, string_to_event_location_basic)
8031 (string_to_event_location): Return event_location_up.
8032 * linespec.c (canonicalize_linespec, event_location_to_sals)
8033 (decode_line_with_current_source)
8034 (decode_line_with_last_displayed, decode_objc): Update.
8035 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8036 * completer.c (location_completer): Update.
8037 * cli/cli-cmds.c (edit_command, list_command): Update.
8038 * breakpoint.c (create_overlay_event_breakpoint)
8039 (create_longjmp_master_breakpoint)
8040 (create_std_terminate_master_breakpoint)
8041 (create_exception_master_breakpoint)
8042 (create_thread_event_breakpoint): Update.
8043 (init_breakpoint_sal): Update. Remove some dead code.
8044 (create_breakpoint_sal): Change type of "location". Update.
8045 (create_breakpoints_sal, create_breakpoint, break_command_1)
8046 (dprintf_command, break_range_command, until_break_command)
8047 (init_ada_exception_breakpoint)
8048 (strace_marker_create_sals_from_location)
8049 (update_static_tracepoint, trace_command, ftrace_command)
8050 (strace_command, create_tracepoint_from_upload): Update.
8051 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8052 * ax-gdb.c (agent_command_1): Update.
8053
8f10c932
PA
80542017-04-12 Pedro Alves <palves@redhat.com>
8055
8056 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8057 * configure.tgt: Handle i[34567]86-*-go32* and
8058 i[34567]86-*-msdosdjgpp*.
8059 * i386-tdep.c (i386_svr4_reg_to_regnum):
8060 Make extern.
8061 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8062 i386-go32-tdep.c.
8063 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8064 * i386-go32-tdep.c: New file.
8065 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8066 declarations.
8067
0a31ccfb
SM
80682017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8069
8070 * aix-thread.c (pd_status2str): Change return type to const char *.
8071
e9bb3fbb
PA
80722017-04-12 Pedro Alves <palves@redhat.com>
8073
8074 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8075 calls to set_gdbarch_gnu_triplet_regexp.
8076
53375380
PA
80772017-04-12 Pedro Alves <palves@redhat.com>
8078
8079 PR gdb/21323
8080 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8081 New enum value.
8082 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8083 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8084 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8085 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8086 * gdbarch.h, gdbarch.c: Regenerate.
8087 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8088 gdbarch_wchar_bit and gdbarch_wchar_signed.
8089 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8090 * arm-tdep.c (arm_gdbarch_init): Likewise.
8091 * avr-tdep.c (avr_gdbarch_init): Likewise.
8092 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8093 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8094 * i386-tdep.c (i386_go32_init_abi): Likewise.
8095 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8096 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8097 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8098 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8099 * sh-tdep.c (sh_gdbarch_init): Likewise.
8100 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8101 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8102 * windows-tdep.c (windows_init_abi): Likewise.
8103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8104
53e710ac
PA
81052017-04-12 Pedro Alves <palves@redhat.com>
8106
8107 PR c++/21323
8108 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8109 cplus_primitive_type_char32_t>: New enum values.
8110 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8111 and cplus_primitive_type_char32_t.
8112 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8113 32, use the archtecture's built-in type for char16_t and char32_t,
8114 respectively. Otherwise, fallback to init_integer_type as before,
8115 but make the type unsigned, and issue a complaint.
8116 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8117
ab0538b8
AH
81182017-04-12 Alan Hayward <alan.hayward@arm.com>
8119
5e0e0422 8120 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8121 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8122
5430098f
SDJ
81232017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8124
8125 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8126 'const char *'.
8127
7c5ded6a
SDJ
81282017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8129
8130 * common/common-utils.c (free_vector_argv): New function.
8131 * common/common-utils.h: Include <vector>.
8132 (free_vector_argv): New prototype.
8133 * darwin-nat.c (darwin_create_inferior): Rewrite function
8134 prototype in order to constify "exec_file" and accept a
8135 "std::string" for "allargs".
8136 * fork-child.c: Include <vector>.
8137 (breakup_args): Rewrite function, using C++.
8138 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8139 and accept "std::string" for "allargs". Update the code to
8140 calculate "argv" based on "allargs". Update calls to "exec_fun"
8141 and "execvp".
8142 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8143 order to constify "exec_file" and accept a "std::string" for
8144 "allargs".
8145 * go32-nat.c (go32_create_inferior): Likewise.
8146 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8147 * infcmd.c (run_command_1): Constify "exec_file". Use
8148 "std::string" for inferior arguments.
8149 * inferior.h (fork_inferior): Update prototype.
8150 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8151 prototype in order to constify "exec_file" and accept a
8152 "std::string" for "allargs".
8153 * nto-procfs.c (procfs_create_inferior): Likewise.
8154 * procfs.c (procfs_create_inferior): Likewise.
8155 * remote-sim.c (gdbsim_create_inferior): Likewise.
8156 * remote.c (extended_remote_run): Update code to accept
8157 "std::string" as argument.
8158 (extended_remote_create_inferior): Rewrite function prototype in
8159 order to constify "exec_file" and accept a "std::string" for
8160 "allargs".
8161 * rs6000-nat.c (super_create_inferior): Likewise.
8162 (rs6000_create_inferior): Likewise.
8163 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8164 * windows-nat.c (windows_create_inferior): Likewise.
8165
ae0eee42
PA
81662017-04-11 Pedro Alves <palves@redhat.com>
8167
8168 * thread.c: Fix whitespace throughout.
8169
a6acac06
PR
81702017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8171
8172 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8173
64403bd1
AH
81742017-04-11 Alan Hayward <alan.hayward@arm.com>
8175
8176 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8177
a5bef50f
SDJ
81782017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8179
8180 PR gdb/21364
8181 * osdata.c (info_osdata): Check if 'type' is an empty string
8182 instead of NULL.
8183
9295a5a9
PA
81842017-04-10 Pedro Alves <palves@redhat.com>
8185
8186 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8187 (ptid_to_global_thread_id, in_thread_list)
8188 (do_captured_list_thread_ids, set_resumed, set_running)
8189 (set_executing, set_stop_requested, finish_thread_state)
8190 (validate_registers_access, can_access_registers_ptid)
8191 (print_thread_info_1, switch_to_thread)
8192 (do_restore_current_thread_cleanup)
8193 (make_cleanup_restore_current_thread, thread_command)
8194 (thread_name_command): Use operator== instead of ptid_equal.
8195
996812e3
PA
81962017-04-10 Pedro Alves <palves@redhat.com>
8197
8198 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8199 (current_thread_cleanup_chain): Delete.
8200 (restore_current_thread_cleanup_dtor)
8201 (make_cleanup_restore_current_thread): Remove references to
8202 current_thread_cleanup_chain.
8203
845b344f
AH
82042017-04-10 Alan Hayward <alan.hayward@arm.com>
8205
8206 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8207 REG_UNKNOWN.
8208
803bdfe4
YQ
82092017-04-10 Yao Qi <yao.qi@linaro.org>
8210
8211 PR gdb/19942
8212 * gdbthread.h (thread_info::deletable): New method.
8213 (thread_info::incref): New method.
8214 (thread_info::decref): New method.
8215 (thread_info::refcount): Move it to private.
8216 * infrun.c (save_stop_context): Call inc_refcount.
8217 (release_stop_context_cleanup): Likewise.
8218 * thread.c (set_thread_exited): New function.
8219 (init_thread_list): Delete "tp" only it is deletable, otherwise
8220 call set_thread_exited.
8221 (delete_thread_1): Call set_thread_exited.
8222 (current_thread_cleanup) <inferior_pid>: Remove.
8223 <thread>: New field.
8224 (restore_current_thread_ptid_changed): Removed.
8225 (do_restore_current_thread_cleanup): Adjust.
8226 (restore_current_thread_cleanup_dtor): Don't call
8227 find_thread_ptid.
8228 (set_thread_refcount): Use dec_refcount.
8229 (make_cleanup_restore_current_thread): Adjust.
8230 (thread_apply_all_command): Call inc_refcount.
8231 (_initialize_thread): Don't call
8232 observer_attach_thread_ptid_changed.
8233
8c25b497
YQ
82342017-04-10 Yao Qi <yao.qi@linaro.org>
8235
8236 * thread.c (delete_thread_1): Hoist code on marking thread as
8237 exited.
8238
8473b447
SM
82392017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8240
8241 * windows-nat.c (windows_detach): Initialize ptid with
8242 minus_one_ptid.
8243
6670ec13
SM
82442017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8245
8246 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8247
ba2f91bb
AH
82482017-04-07 Alan Hayward <alan.hayward@arm.com>
8249
8250 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8251 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8252 (bfin_pseudo_register_write): Likewise
8253
436252de
SM
82542017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8255
8256 * common/ptid.h (struct ptid): Change to...
8257 (class ptid_t): ... this.
8258 <ptid_t>: New constructors.
8259 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8260 matches>: New methods.
8261 <make_null, make_minus_one>: New static methods.
8262 <pid>: Rename to...
8263 <m_pid>: ...this.
8264 <lwp>: Rename to...
8265 <m_lwp>: ...this.
8266 <tid>: Rename to...
8267 <m_tid>: ...this.
8268 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8269 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8270 as references, move comment to class ptid_t.
8271 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8272 ptid_t static methods.
8273 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8274 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8275 Take ptid arguments as references, implement using ptid_t methods.
8276 * unittests/ptid-selftests.c: New file.
8277 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8278 unittests/ptid-selftests.c.
8279 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8280
0dedf377
TP
82812017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8282
8283 * python/python.c (python_run_simple_file): Cast mode literal to
8284 non-const char pointer as expected by PyFile_FromString.
8285
4e9868d4
SM
82862017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8287
8288 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8289 minus_one_ptid and null_ptid.
8290
9bf2a700
PA
82912017-04-05 Pedro Alves <palves@redhat.com>
8292
8293 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8294 * configure: Regenerate.
8295
a121b7c1
PA
82962017-04-05 Pedro Alves <palves@redhat.com>
8297
8298 * ada-exp.y (yyerror): Constify.
8299 * ada-lang.c (bound_name, get_selections)
8300 (ada_variant_discrim_type)
8301 (ada_variant_discrim_name, ada_value_struct_elt)
8302 (ada_lookup_struct_elt_type, is_unchecked_variant)
8303 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8304 (catch_ada_exception_command_split)
8305 (catch_ada_assert_command_split, catch_assert_command)
8306 (ada_op_name): Constify.
8307 * ada-lang.h (ada_yyerror, get_selections)
8308 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8309 * arc-tdep.c (arc_print_frame_cache): Constify.
8310 * arm-tdep.c (arm_skip_stub): Constify.
8311 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8312 (gen_aggregate_elt_ref): Constify.
8313 * bcache.c (print_bcache_statistics): Constify.
8314 * bcache.h (print_bcache_statistics): Constify.
8315 * break-catch-throw.c (catch_exception_command_1):
8316 * breakpoint.c (struct ep_type_description::description):
8317 Constify.
8318 (add_solib_catchpoint): Constify.
8319 (catch_fork_command_1): Add cast.
8320 (add_catch_command): Constify.
8321 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8322 Constify.
8323 * bsd-uthread.c (bsd_uthread_state): Constify.
8324 * buildsym.c (patch_subfile_names): Constify.
8325 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8326 Constify.
8327 * c-exp.y (yyerror): Constify.
8328 (token::oper): Constify.
8329 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8330 * c-varobj.c (cplus_describe_child): Constify.
8331 * charset.c (find_charset_names): Add cast.
8332 (find_charset_names): Constify array and add const_cast.
8333 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8334 (edit_command): Constify.
8335 * cli/cli-decode.c (lookup_cmd): Constify.
8336 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8337 Constify.
8338 (struct dump_context): Constify.
8339 (add_dump_command, restore_command): Constify.
8340 * cli/cli-script.c (get_command_line): Constify.
8341 * cli/cli-script.h (get_command_line): Constify.
8342 * cli/cli-utils.c (check_for_argument): Constify.
8343 * cli/cli-utils.h (check_for_argument): Constify.
8344 * coff-pe-read.c (struct read_pe_section_data): Constify.
8345 * command.h (lookup_cmd): Constify.
8346 * common/print-utils.c (decimal2str): Constify.
8347 * completer.c (gdb_print_filename): Constify.
8348 * corefile.c (set_gnutarget): Constify.
8349 * cp-name-parser.y (yyerror): Constify.
8350 * cp-valprint.c (cp_print_class_member): Constify.
8351 * cris-tdep.c (cris_register_name, crisv32_register_name):
8352 Constify.
8353 * d-exp.y (yyerror): Constify.
8354 (struct token::oper): Constify.
8355 * d-lang.h (d_yyerror): Constify.
8356 * dbxread.c (struct header_file_location::name): Constify.
8357 (add_old_header_file, add_new_header_file, last_function_name)
8358 (dbx_next_symbol_text, add_bincl_to_list)
8359 (find_corresponding_bincl_psymtab, set_namestring)
8360 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8361 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8362 * defs.h (command_line_input, print_address_symbolic)
8363 (deprecated_readline_begin_hook): Constify.
8364 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8365 Constify.
8366 * event-top.c (handle_line_of_input): Constify and add cast.
8367 * exceptions.c (catch_errors): Constify.
8368 * exceptions.h (catch_errors): Constify.
8369 * expprint.c (print_subexp_standard, op_string, op_name)
8370 (op_name_standard, dump_raw_expression, dump_raw_expression):
8371 * expression.h (op_name, op_string, dump_raw_expression):
8372 Constify.
8373 * f-exp.y (yyerror): Constify.
8374 (struct token::oper): Constify.
8375 (struct f77_boolean_val::name): Constify.
8376 * f-lang.c (f_word_break_characters): Constify.
8377 * f-lang.h (f_yyerror): Constify.
8378 * fork-child.c (fork_inferior): Add cast.
8379 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8380 (new_variant): Constify.
8381 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8382 * gdbarch.c: Regenerate.
8383 * gdbcore.h (set_gnutarget): Constify.
8384 * go-exp.y (yyerror): Constify.
8385 (token::oper): Constify.
8386 * go-lang.h (go_yyerror): Constify.
8387 * go32-nat.c (go32_sysinfo): Constify.
8388 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8389 * guile/scm-cmd.c (cmdscm_function): Constify.
8390 * guile/scm-param.c (pascm_param_value): Constify.
8391 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8392 (h8300sx_register_name): Constify.
8393 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8394 Constify.
8395 * ia64-tdep.c (ia64_register_names): Constify.
8396 * infcmd.c (construct_inferior_arguments): Constify.
8397 (path_command, attach_post_wait): Constify.
8398 * language.c (show_range_command, show_case_command)
8399 (unk_lang_error): Constify.
8400 * language.h (language_defn::la_error)
8401 (language_defn::la_name_of_this): Constify.
8402 * linespec.c (decode_line_2): Constify.
8403 * linux-thread-db.c (thread_db_err_str): Constify.
8404 * lm32-tdep.c (lm32_register_name): Constify.
8405 * m2-exp.y (yyerror): Constify.
8406 * m2-lang.h (m2_yyerror): Constify.
8407 * m32r-tdep.c (m32r_register_names): Constify and make static.
8408 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8409 * m88k-tdep.c (m88k_register_name): Constify.
8410 * macroexp.c (appendmem): Constify.
8411 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8412 (upgrade_type, parse_external, parse_partial_symbols)
8413 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8414 (new_symbol): Constify.
8415 * memattr.c (mem_info_command): Constify.
8416 * mep-tdep.c (register_name_from_keyword): Constify.
8417 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8418 Constify.
8419 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8420 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8421 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8422 cast.
8423 (mi_execute_async_cli_command): Constify.
8424 * mips-tdep.c (mips_register_name): Constify.
8425 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8426 (am33_register_name, am33_2_register_name)
8427 * moxie-tdep.c (moxie_register_names): Constify.
8428 * nat/linux-osdata.c (osdata_type): Constify fields.
8429 * nto-tdep.c (nto_parse_redirection): Constify.
8430 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8431 (lookup_child_selector): Constify.
8432 (objc_methcall::name): Constify.
8433 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8434 (lookup_struct_typedef): Constify.
8435 * objfiles.c (pc_in_section): Constify.
8436 * objfiles.h (pc_in_section): Constify.
8437 * p-exp.y (struct token::oper): Constify.
8438 (yyerror): Constify.
8439 * p-lang.h (pascal_yyerror): Constify.
8440 * parser-defs.h (op_name_standard): Constify.
8441 (op_print::string): Constify.
8442 (exp_descriptor::op_name): Constify.
8443 * printcmd.c (print_address_symbolic): Constify.
8444 * psymtab.c (print_partial_symbols): Constify.
8445 * python/py-breakpoint.c (stop_func): Constify.
8446 (bppy_get_expression): Constify.
8447 * python/py-cmd.c (cmdpy_completer::name): Constify.
8448 (cmdpy_function): Constify.
8449 * python/py-event.c (evpy_add_attribute)
8450 (gdbpy_initialize_event_generic): Constify.
8451 * python/py-event.h (evpy_add_attribute)
8452 (gdbpy_initialize_event_generic): Constify.
8453 * python/py-evts.c (add_new_registry): Constify.
8454 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8455 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8456 * python/py-inferior.c (get_buffer): Add cast.
8457 * python/py-param.c (parm_constant::name): Constify.
8458 * python/py-unwind.c (fprint_frame_id): Constify.
8459 * python/python.c (gdbpy_parameter_value): Constify.
8460 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8461 * remote.c (memory_packet_config::name): Constify.
8462 (show_packet_config_cmd, remote_write_bytes)
8463 (remote_buffer_add_string):
8464 * reverse.c (exec_reverse_once): Constify.
8465 * rs6000-tdep.c (variant::name, variant::description): Constify.
8466 * rust-exp.y (rustyyerror): Constify.
8467 * rust-lang.c (rust_op_name): Constify.
8468 * rust-lang.h (rustyyerror): Constify.
8469 * serial.h (serial_ops::name): Constify.
8470 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8471 (sh_sh3e_register_name, sh_sh2e_register_name)
8472 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8473 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8474 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8475 (sh_sh4al_dsp_register_name): Constify.
8476 * sh64-tdep.c (sh64_register_name): Constify.
8477 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8478 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8479 * stabsread.c (patch_block_stabs, read_type_number)
8480 (ref_map::stabs, ref_add, process_reference)
8481 (symbol_reference_defined, define_symbol, define_symbol)
8482 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8483 (read_one_struct_field, read_struct_fields, read_baseclasses)
8484 (read_tilde_fields, read_struct_type, read_array_type)
8485 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8486 (read_huge_number, read_range_type, read_args, common_block_start)
8487 (find_name_end): Constify.
8488 * stabsread.h (common_block_start, define_symbol)
8489 (process_one_symbol, symbol_reference_defined, ref_add):
8490 * symfile.c (get_section_index, add_symbol_file_command):
8491 * symfile.h (get_section_index): Constify.
8492 * target-descriptions.c (tdesc_type::name): Constify.
8493 (tdesc_free_type): Add cast.
8494 * target.c (find_default_run_target):
8495 (add_deprecated_target_alias, find_default_run_target)
8496 (target_announce_detach): Constify.
8497 (do_option): Constify.
8498 * target.h (add_deprecated_target_alias): Constify.
8499 * thread.c (print_thread_info_1): Constify.
8500 * top.c (deprecated_readline_begin_hook, command_line_input):
8501 Constify.
8502 (init_main): Add casts.
8503 * top.h (handle_line_of_input): Constify.
8504 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8505 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8506 (tfind_command): Rename to ...
8507 (tfind_command_1): ... this and constify.
8508 (tfind_command): New function.
8509 (tfind_end_command, tfind_start_command): Adjust.
8510 (encode_source_string): Constify.
8511 * tracepoint.h (encode_source_string): Constify.
8512 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8513 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8514 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8515 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8516 * tui/tui-win.c (parse_scrolling_args): Constify.
8517 * tui/tui-windata.c (tui_erase_data_content): Constify.
8518 * tui/tui-windata.h (tui_erase_data_content): Constify.
8519 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8520 * tui/tui.c (tui_enable): Add cast.
8521 * utils.c (defaulted_query): Constify.
8522 (init_page_info): Add cast.
8523 (puts_debug, subset_compare): Constify.
8524 * utils.h (subset_compare): Constify.
8525 * varobj.c (varobj_format_string): Constify.
8526 * varobj.h (varobj_format_string): Constify.
8527 * vax-tdep.c (vax_register_name): Constify.
8528 * windows-nat.c (windows_detach): Constify.
8529 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8530 * xml-support.c (gdb_xml_end_element): Constify.
8531 * xml-tdesc.c (tdesc_start_reg): Constify.
8532 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8533 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8534 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8535
995816ba
PA
85362017-04-05 Pedro Alves <palves@redhat.com>
8537
8538 * proc-api.c (struct trans): Constify.
8539 (procfs_note): Constify.
8540 * proc-events.c (struct trans, syscall_table):
8541 * proc-flags.c (struct trans): Constify.
8542 * proc-utils.h (procfs_note): Constify.
8543 * proc-why.c (struct trans): Constify.
8544 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8545 (procfs_detach): Constify.
8546 * sol-thread.c (struct string_map): Constify.
8547 (td_err_string, td_state_string): Constify.
8548
3e83a920
PA
85492017-04-05 Pedro Alves <palves@redhat.com>
8550
8551 * proc-api.c (procfs_filename): Don't initialize
8552 procfs_filename.
8553 (prepare_to_trace): Assume procfs_filename is non-NULL.
8554 (_initialize_proc_api): Give procfs_filename a default value here.
8555
63160a43
PA
85562017-04-05 Pedro Alves <palves@redhat.com>
8557
8558 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8559 'cond_string' parameter.
8560 (extract_exception_regexp): Constify 'string' parameter.
8561 (catch_exception_command_1): Constify.
8562 * breakpoint.c (init_catchpoint)
8563 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8564 parameter.
8565 (ep_parse_optional_if_clause, catch_fork_command_1)
8566 (catch_exec_command_1): Constify.
8567 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8568 parameter.
8569 (ep_parse_optional_if_clause): Constify.
8570 * cli/cli-utils.c (remove_trailing_whitespace)
8571 (check_for_argument): Constify.
8572 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8573 non-const overload.
8574 (check_for_argument): Likewise.
8575
9b2eba3d
PA
85762017-04-05 Pedro Alves <palves@redhat.com>
8577
8578 * event-top.c (command_line_handler): Add cast to execute_command
8579 call.
8580 * record-btrace.c (cmd_record_btrace_bts_start)
8581 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8582 (cmd_record_btrace_start): Add cast to execute_command call.
8583 * record-full.c (record_full_goto_insn):
8584 * record.c (record_start, record_stop): Add cast to
8585 execute_command_to_string calls.
8586 (cmd_record_start): Add cast to execute_command calls.
8587
2adadf51
PA
85882017-04-05 Pedro Alves <palves@redhat.com>
8589
8590 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8591 static inline function.
8592 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8593 array and use gdb_PyArg_ParseTupleAndKeywords.
8594 * python/py-cmd.c (cmdpy_init): Likewise.
8595 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8596 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8597 (infpy_search_memory): Likewise.
8598 * python/py-objfile.c (objfpy_add_separate_debug_file)
8599 (gdbpy_lookup_objfile): Likewise.
8600 * python/py-symbol.c (gdbpy_lookup_symbol)
8601 (gdbpy_lookup_global_symbol): Likewise.
8602 * python/py-type.c (gdbpy_lookup_type): Likewise.
8603 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8604 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8605 Likewise.
8606
0d1f4ceb
PA
86072017-04-05 Pedro Alves <palves@redhat.com>
8608
8609 * python/python-internal.h (gdb_PyGetSetDef): New type.
8610 * python/py-block.c (block_object_getset)
8611 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8612 * python/py-event.c (event_object_getset)
8613 (finish_breakpoint_object_getset): Likewise.
8614 * python/py-inferior.c (inferior_object_getset): Likewise.
8615 * python/py-infthread.c (thread_object_getset): Likewise.
8616 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8617 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8618 * python/py-objfile.c (objfile_getset): Likewise.
8619 * python/py-progspace.c (pspace_getset): Likewise.
8620 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8621 Likewise.
8622 * python/py-record.c (recpy_record_getset): Likewise.
8623 * python/py-symbol.c (symbol_object_getset): Likewise.
8624 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8625 Likewise.
8626 * python/py-type.c (type_object_getset, field_object_getset):
8627 Likewise.
8628 * python/py-value.c (value_object_getset): Likewise.
8629
4d759979
PA
86302017-04-05 Pedro Alves <palves@redhat.com>
8631
8632 * python/python-internal.h (gdb_PyObject_CallMethod)
8633 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8634 New functions.
8635 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8636 (PySys_GetObject, PySys_SetPath): New macros.
8637
fdf9e36f
PA
86382017-04-05 Pedro Alves <palves@redhat.com>
8639
8640 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8641 info_osdata_command.
8642 * osdata.c (info_osdata_command): Rename to ...
8643 (info_osdata): ... this. Constify 'type' parameter, and remove
8644 the 'from_tty' parameter. Accept NULL TYPE.
8645 (info_osdata_command): New function.
8646 * osdata.h (info_osdata_command): Remove declaration.
8647 (info_osdata): New declaration.
8648
9f33b8b7
PA
86492017-04-05 Pedro Alves <palves@redhat.com>
8650
8651 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8652 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8653 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8654 parameter.
8655 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8656 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8657 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8658 parameter.
8659 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8660 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8661 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8662 (mi_cmd_file_list_exec_source_files)
8663 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8664 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8665 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8666 parameter.
8667 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8668 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8669 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8670 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8671 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8672 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8673 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8674 'command' parameter.
8675 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8676 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8677 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8678 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8679 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8680 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8681 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8682 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8683 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8684 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8685 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8686 parameter.
8687 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8688 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8689 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8690 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8691 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8692 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8693 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8694 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8695 (mi_cmd_data_list_changed_registers)
8696 (mi_cmd_data_write_register_values)
8697 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8698 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8699 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8700 (mi_cmd_list_features, mi_cmd_list_target_features)
8701 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8702 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8703 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8704 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8705 (mi_cmd_trace_frame_collected): Constify 'command'
8706 parameter.
8707 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8708 'command' parameter.
8709
67cb5b2d
PA
87102017-04-05 Pedro Alves <palves@redhat.com>
8711
8712 * ada-lang.c (ada_completer_word_break_characters): Now a const
8713 array.
8714 (ada_get_gdb_completer_word_break_characters): Constify.
8715 * completer.c (gdb_completer_command_word_break_characters)
8716 (gdb_completer_file_name_break_characters)
8717 (gdb_completer_quote_characters): Now const arrays.
8718 (get_gdb_completer_quote_characters): Constify.
8719 (set_rl_completer_word_break_characters): New function.
8720 (set_gdb_completion_word_break_characters)
8721 (complete_line_internal): Use it.
8722 * completer.h (get_gdb_completer_quote_characters): Constify.
8723 (set_rl_completer_word_break_characters): Declare.
8724 * f-lang.c (f_word_break_characters): Constify.
8725 * language.c (default_word_break_characters): Constify.
8726 * language.h (language_defn::la_word_break_characters): Constify.
8727 (default_word_break_characters): Constify.
8728 * top.c (init_main): Use set_rl_completer_word_break_characters.
8729
7a114964
PA
87302017-04-05 Pedro Alves <palves@redhat.com>
8731
8732 * aix-thread.c (aix_thread_pid_to_str)
8733 (aix_thread_extra_thread_info): Constify.
8734 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8735 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8736 (bsd_uthread_pid_to_str): Constify.
8737 * corelow.c (core_pid_to_str): Constify.
8738 * darwin-nat.c (darwin_pid_to_str): Constify.
8739 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8740 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8741 Constify.
8742 * gnu-nat.c (gnu_pid_to_str): Constify.
8743 * go32-nat.c (go32_pid_to_str): Constify.
8744 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8745 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8746 * inferior.c (inferior_pid_to_str): Constify.
8747 * linux-nat.c (linux_nat_pid_to_str): Constify.
8748 * linux-tdep.c (linux_core_pid_to_str): Constify.
8749 * linux-thread-db.c (thread_db_pid_to_str)
8750 (thread_db_extra_thread_info): Constify.
8751 * nto-tdep.c (nto_extra_thread_info): Constify.
8752 * nto-tdep.h (nto_extra_thread_info): Constify.
8753 * obsd-nat.c (obsd_pid_to_str): Constify.
8754 * procfs.c (procfs_pid_to_str): Constify.
8755 * ravenscar-thread.c (ravenscar_extra_thread_info)
8756 (ravenscar_pid_to_str): Constify.
8757 * remote-sim.c (gdbsim_pid_to_str): Constify.
8758 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8759 Constify.
8760 * sol-thread.c (solaris_pid_to_str): Constify.
8761 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8762 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8763 * target.c (default_pid_to_str, target_pid_to_str)
8764 (normal_pid_to_str, default_pid_to_str): Constify.
8765 * target.h (target_ops::to_pid_to_str)
8766 (target_ops::to_extra_thread_info): Constify.
8767 (target_pid_to_str, normal_pid_to_str): Constify.
8768 * windows-nat.c (windows_pid_to_str): Constify.
8769 * gdbarch.sh (core_pid_to_str): Constify.
8770 * target-delegates.c: Regenerate.
8771 * gdbarch.h, gdbarch.c: Regenerate.
8772
69bbf465
PA
87732017-04-05 Pedro Alves <palves@redhat.com>
8774
8775 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8776 the memory of the temporary warning_pre_print override.
8777 * utils.c (warning_pre_print): Constify.
8778 * utils.h (warning_pre_print): Constify.
8779
be47f9e8
PA
87802017-04-05 Pedro Alves <palves@redhat.com>
8781
8782 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8783 (shell_command): New function.
8784 (make_command): Use std::string.
8785 (init_cli_cmds): Register shell_command instead of shell_escape.
8786
bde6261a
PA
87872017-04-05 Pedro Alves <palves@redhat.com>
8788
8789 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8790 * tracepoint.c (default_collect): Don't initialize.
8791
b38ef47f
PA
87922017-04-05 Pedro Alves <palves@redhat.com>
8793
8794 * macroexp.c (macro_buffer::shared): Now a bool.
8795 (init_buffer): Update.
8796 (init_shared_buffer): Constify 'addr' parameter.
8797 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8798 casts.
8799
f995bbe8
PA
88002017-04-05 Pedro Alves <palves@redhat.com>
8801
8802 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8803 * disasm.c (set_disassembler_options): Constify local.
8804 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8805
4a596fe2
SDJ
88062017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8807
8808 PR gdb/21352
8809 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8810 option.
8811
2cad08ea
YQ
88122017-04-05 Yao Qi <yao.qi@linaro.org>
8813
8814 * frame.c (frame_unwind_register_unsigned): Call
8815 frame_unwind_register_value.
8816
55a98976
YQ
88172017-04-05 Yao Qi <yao.qi@linaro.org>
8818
8819 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8820 Use gdb_test_multiple, and don't match anchor.
8821
4ac40124
PA
88222017-04-05 Pedro Alves <palves@redhat.com>
8823
8824 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8825 (Write After Approval): Remove Simon Marchi.
8826
c053b654
PA
88272017-04-05 Pedro Alves <palves@redhat.com>
8828
8829 * common/gdb_optional.h (optional::optional): Make constexpr and
8830 initialize m_dummy.
8831
4c7bf4f9
JB
88322017-04-04 John Baldwin <jhb@FreeBSD.org>
8833
8834 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8835 (amd64fbsd_jmp_buf_reg_offset): Remove.
8836 (amd64fbsd_supply_uthread): Remove function.
8837 (amd64fbsd_collect_uthread): Remove function.
8838 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8839 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8840 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8841 (fbsd-nat.c): Update comment.
8842 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8843 (i386fbsd_jmp_buf_reg_offset): Remove.
8844 (i386fbsd_supply_uthread): Remove function.
8845 (i386fbsd_collect_uthread): Remove function.
8846 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8847
1e1a8bef
JB
88482017-04-04 John Baldwin <jhb@FreeBSD.org>
8849
8850 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8851 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8852 * NEWS: Mention that support for FreeBSD/alpha was removed.
8853 * alpha-fbsd-tdep.c: Delete file.
8854 * config/alpha/fbsd.mh: Delete file.
8855 * configure.host: Delete alpha*-*-freebsd* and
8856 alpha*-*-kfreebsd*-gnu.
8857 * configure.tgt: Delete alpha*-*-freebsd* and
8858 alpha*-*-kfreebsd*-gnu.
8859
49907934
JB
88602017-04-04 John Baldwin <jhb@FreeBSD.org>
8861
8862 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8863 amd64bsd_store_inferior_registers): Use ptid from regcache.
8864
6f77053d
PA
88652017-04-04 Pedro Alves <palves@redhat.com>
8866
8867 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8868 data fields, make them private and add "m_" prefixes.
8869 (lnp_state_machine::lnp_state_machine): New ctor.
8870 (record_line, check_line_address, handle_set_discriminator)
8871 (handle_set_address, handle_advance_pc, handle_special_opcode)
8872 (handle_advance_line, handle_set_file, handle_negate_stmt)
8873 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8874 (end_sequence, advance_line): New methods.
8875 (m_gdbarch, m_record_lines_p): New fields.
8876 (lnp_reader_state): Delete.
8877 (dwarf_record_line): Rename to ...
8878 (lnp_state_machine::record_line): ... adjust.
8879 (init_lnp_state_machine): Delete.
8880 (lnp_state_machine::lnp_state_machine): New.
8881 (check_line_address): Rename to ...
8882 (lnp_state_machine::check_line_address): This.
8883 (dwarf_decode_lines_1): Remove reference to "reader_state".
8884 Adjust lnp_state_machine having a non-default ctor. Use bool.
8885 State machine internal state manipulation moved to
8886 lnp_state_machine methods.
8887
9c541725
PA
88882017-04-04 Pedro Alves <palves@redhat.com>
8889
8890 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8891 unittests/offset-type-selftests.c.
8892 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8893 * common/offset-type.h: New file.
8894 * common/preprocessor.h: New file.
8895 * common/traits.h: New file.
8896 * common/valid-expr.h: New file.
8897 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8898 sect_offset and cu_offset strong typedefs throughout.
8899 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8900 typedefs throughout.
8901 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8902 sect_offset and cu_offset strong typedefs throughout.
8903 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8904 typedefs throughout.
8905 * gdbtypes.h: Include "common/offset-type.h".
8906 (cu_offset): Now an offset type (strong typedef) instead of a
8907 struct.
8908 (sect_offset): Likewise.
8909 (union call_site_parameter_u): Rename "param_offset" field to
8910 "param_cu_off".
8911 * unittests/offset-type-selftests.c: New file.
8912
ecfb656c
PA
89132017-04-04 Pedro Alves <palves@redhat.com>
8914
8915 * common/underlying.h: New file.
8916 * dwarf2read.c: Include "common/gdb_optional.h" and
8917 "common/underlying.h".
8918 (dir_index, file_name_index): New types.
8919 (file_entry): Use them.
8920 (file_entry::include): Use to_underlying.
8921 (line_header::add_file_name): Use dir_index.
8922 (read_formatted_entries): Use gdb::optional. Read form before
8923 writting to file_entry.
8924 (dwarf_decode_line_header): Use dir_index.
8925 (lnp_state_machine::current_file): Use to_underlying.
8926 (lnp_state_machine::file): Change type to file_name_index.
8927 (dwarf_record_line): Use to_underlying.
8928 (init_lnp_state_machine): Use file_name_index.
8929 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8930
d194f1fe
PA
89312017-04-04 Pedro Alves <palves@redhat.com>
8932
8933 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8934 operator bool, has_value and get methods.
8935
fff8551c
PA
89362017-04-04 Pedro Alves <palves@redhat.com>
8937
8938 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8939 fields.
8940 (line_header): Initialize all data fields. Change type of
8941 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8942 Change type of include_dirs to std::vector<const char *>. Remove
8943 num_include_dirs, include_dirs_size. Change type of file_names to
8944 std::vector<file_entry>. Remove num_file_names, file_names_size.
8945 (line_header::line_header): New.
8946 (line_header::add_include_dir, line_header::add_file_name): New
8947 methods.
8948 (line_header::include_dir_at): Remove NULL check.
8949 (line_header::file_name_at): Add const overload.
8950 (line_header_up): New unique_ptr typedef.
8951 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8952 std::vector. Remove free_line_header call.
8953 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8954 free_line_header call.
8955 (free_cu_line_header): Delete.
8956 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8957 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8958 Adjust to use std::vector.
8959 (free_line_header): Delete.
8960 (free_line_header_voidp): Use delete.
8961 (add_include_dir): Replace with ...
8962 (line_header::add_include_dir): ... this method. Use std::vector.
8963 (add_file_name): Replace with ...
8964 (line_header::add_file_name): ... this method. Use std::vector.
8965 (add_include_dir_stub): Delete.
8966 (read_formatted_entries): Remove memset.
8967 (dwarf_decode_line_header): Return a line_header_up instead of a
8968 raw pointer. Remove cleanup handling. Pass lambdas to
8969 read_formatted_entries. Adjust to use line_header methods.
8970 (dwarf_decode_lines_1): Adjust to use line_header methods.
8971 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8972 use std::vector.
8973
d62a8ae2
SM
89742017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8975
8976 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8977 instead of struct ptid.
8978
db3a1dc7
AH
89792017-05-04 Alan Hayward <alan.hayward@arm.com>
8980
8981 * frame.c (get_frame_register_bytes): Unwind using value.
8982 (put_frame_register_bytes): Likewise.
8983
b1b45502
IB
89842017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8985
8986 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8987 aggregate-like.
8988
ec13808e
JK
89892017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8990
8991 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8992
12316564
YQ
89932017-03-29 Yao Qi <yao.qi@linaro.org>
8994
8995 * gdbthread.h (struct thread_info): Declare constructor and
8996 destructor. Add some in-class member initializers.
8997 * thread.c (free_thread): Remove.
8998 (init_thread_list): Call delete instead of free_thread.
8999 (new_thread): Call thread_info constructor.
9000 (thread_info::thread_info): New function.
9001 (thread_info::~thread_info): New function.
9002 (delete_thread_1): Call delete instead of free_thread.
9003 (make_cleanup_restore_current_thread): Move tp and frame to
9004 inner block.
9005
fe5f7374
AK
90062017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9007
9008 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9009 (arc_skip_prologue): Likewise.
9010 (arc_make_frame_cache): Likewise.
9011 (arc_pv_get_operand): New function.
9012 (arc_is_in_prologue): Likewise.
9013 (arc_analyze_prologue): Likewise.
9014 (arc_print_frame_cache): Likewise.
9015 (MAX_PROLOGUE_LENGTH): New constant.
9016
eea78757
AK
90172017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9018
9019 * configure.tgt: Add arc-insn.o.
9020 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9021 (dump_arc_instruction_command): New function.
9022 (arc_fprintf_disasm): Likewise.
9023 (arc_disassemble_info): Likewise.
9024 (arc_insn_get_operand_value): Likewise.
9025 (arc_insn_get_operand_value_signed): Likewise.
9026 (arc_insn_get_memory_base_reg): Likewise.
9027 (arc_insn_get_memory_offset): Likewise.
9028 (arc_insn_get_branch_target): Likewise.
9029 (arc_insn_dump): Likewise.
9030 (arc_insn_get_linear_next_pc): Likewise.
9031 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9032 (arc_disassemble_info): Likewise.
9033 (arc_insn_get_branch_target): Likewise.
9034 (arc_insn_get_linear_next_pc): Likewise.
9035 * NEWS: Mention new "maint print arc arc-instruction".
9036
3be78afd
AK
90372017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9038
9039 * arc-tdep (maintenance_print_arc_list): New variable.
9040 (maintenance_print_arc_command): New function.
9041
296ec4fa
AK
90422017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9043
9044 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9045 Add "limm" and "reserved".
9046 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9047 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9048 * arc-tdep.h (arc_regnum): Likewise.
9049
f74f865e
MF
90502017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9051
9052 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9053 for THREADPTR register.
9054 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9055 register.
9056 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9057 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9058 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9059
0d0bf81a
MF
90602017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9061
9062 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9063 registers above gdbarch_num_regs (gdbarch) as privileged in
9064 call0 ABI.
9065
0ce4291e
MF
90662017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9067
9068 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9069 for a single specified register or for all registers in
9070 a0_base..a0_base + C0_NREGS range.
9071 (supply_gregset_reg): Call regcache_raw_supply for a single
9072 specified register or for all registers in a0_base..a0_base +
9073 C0_NREGS range.
9074
c56054f9
MF
90752017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9076
9077 * arch/xtensa.h (C0_NREGS): Add definition.
9078 * xtensa-tdep.c (C0_NREGS): Remove definition.
9079
a4398628
MF
90802017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9081
9082 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9083 Drop xtensa_default_isa initialization.
9084 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9085
8c43009f
PA
90862017-03-27 Pedro Alves <palves@redhat.com>
9087
9088 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9089 (file_entry::include_dir): New method.
9090 (line_header::include_dir_at, line_header::file_name_at): New
9091 methods.
9092 (setup_type_unit_groups, setup_type_unit_groups)
9093 (psymtab_include_file_name): Simplify using the new methods.
9094 (lnp_state_machine) <the_line_header>: New field.
9095 <file>: Add comment.
9096 (lnp_state_machine::current_file): New method.
9097 (dwarf_record_line): Simplify using the new methods.
9098 (init_lnp_state_machine): Initialize the "the_line_header" field.
9099 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9100 Simplify using the new methods.
9101
a7e80b9e
PA
91022017-03-27 Pedro Alves <palves@redhat.com>
9103
9104 * cp-name-parser.y (make_empty): Delete.
9105 (demangler_special, nested_name, ptr_operator, array_indicator)
9106 (direct_declarator, declarator_1): Use fill_comp instead of
9107 make_empty.
9108
21047726
PA
91092017-03-27 Pedro Alves <palves@redhat.com>
9110
9111 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9112 to ATTRIBUTE_PRINTF.
9113 * solib-target.c (library_list_start_list): Print "string" not
9114 "version".
9115 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9116 gdb_xml_error call.
9117
d721ba37
PA
91182017-03-27 Pedro Alves <palves@redhat.com>
9119
9120 * dwarf2read.c (struct file_and_directory): New.
9121 (dwarf2_get_dwz_file): Adjust to use std::string.
9122 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9123 (find_file_and_directory): Adjust to return a file_and_directory
9124 object.
9125 (read_file_scope): Adjust to use file_and_directory. Remove
9126 make_cleanup/do_cleanups calls.
9127 (open_and_init_dwp_file): Adjust to use std::string. Remove
9128 make_cleanup/do_cleanups calls.
9129 * python/python.c (do_start_initialization): Adjust to ldirname
9130 returning a std::string.
9131 * utils.c (ldirname): Now returns a std::string.
9132 * utils.h (ldirname): Change return type to std::string.
9133 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9134 returning a std::string.
9135 * xml-tdesc.c (file_read_description_xml): Likewise.
9136
ed771251
AH
91372017-03-24 Alan Hayward <alan.hayward@arm.com>
9138
9139 * regcache.c (regcache_debug_print_register): New function.
9140 * regcache.h (regcache_debug_print_register): New declaration.
9141 * target.c (debug_print_register): Remove.
9142 (target_fetch_registers): Call regcache_debug_print_register.
9143 (target_store_registers): Likewise.
9144
568c1b9f
PB
91452017-03-24 Pádraig Brady <pbrady@fb.com>
9146
9147 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9148 reference beyond the 'lh->include_dirs' array before accessing to
9149 it.
9150 (psymtab_include_file_name): Likewise.
9151 (dwarf_decode_lines_1): Likewise.
9152 (dwarf_decode_lines): Likewise.
9153 (file_file_name): Likewise.
9154
3e00d44f
SM
91552017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9156
9157 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9158 inferior_ptid.
9159 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9160 ps_lsetfpregs): Likewise.
9161 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9162 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9163 ps_lsetfpregs): Likewise.
9164 * target.c (target_fetch_registers, target_store_registers):
9165 Remove asserts.
9166
077ae656
AH
91672017-03-23 Alan Hayward <alan.hayward@arm.com>
9168
9169 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9170
1e2b521d
YQ
91712017-03-23 Yao Qi <yao.qi@linaro.org>
9172
9173 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9174 (_initialize_aarch64_tdep): Register it.
9175 (aarch64_record_load_store): Handle PRFM instruction.
9176 (aarch64_process_record_test): New function.
9177
33877125
YQ
91782017-03-23 Yao Qi <yao.qi@linaro.org>
9179
9180 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9181 indentation.
9182
a0eef940
YQ
91832017-03-23 Yao Qi <yao.qi@linaro.org>
9184
9185 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9186
3f2a3564
PR
91872017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9188
9189 python/python.c (do_start_initialization): Fix memory leak.
9190
b67aeab0
SM
91912017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9192
9193 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9194 using get_ptrace_pid.
9195 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9196 inferior_ptid.
9197 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9198 inferior_ptid instead of pid.
9199
ffdbe864
YQ
92002017-03-22 Yao Qi <yao.qi@linaro.org>
9201
9202 * aarch64-tdep.c: Wrap locally used classes in anonymous
9203 namespace.
9204 * arm-tdep.c: Likewise.
9205 * linespec.c: Likewise.
9206 * ui-out.c: Likewise.
9207
9d736fbf
JG
92082017-03-22 Jonah Graham <jonah@kichwacoders.com>
9209
9210 PR gdb/19637
9211 * python/lib/gdb/printer/bound_registers.py: Import sys.
9212
3de88e9a
SM
92132017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9214
9215 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9216 windows_thread_info parameter and use it instead of
9217 current_thread.
9218 (windows_fetch_inferior_registers): Don't set current_thread,
9219 pass the thread to do_windows_fetch_inferior_registers. Use
9220 ptid from regcache instead of inferior_ptid.
9221 (do_windows_store_inferior_registers): Add windows_thread_info
9222 parameter and use it instead of current_thread.
9223 (windows_store_inferior_registers): Don't set current_thread,
9224 pass the thread to do_windows_store_inferior_registers. Use
9225 ptid from regcache instead of inferior_ptid.
9226
0e7b8f61
SM
92272017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9228
9229 * ser-mingw.c (ser_windows_raw): Remove reference to
9230 struct serial::current_timeout.
9231
5badf10a
IR
92322017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9233
9234 PR tdep/20928
9235 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9236 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9237 (sparc64_fsr_type): Fix %fsr decoding.
9238
cee59b3f
TW
92392017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9240
9241 * python/py-record-btrace.c (btpy_insn_data): Change return type
9242 for Python 2.
9243
639a9038
SM
92442017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * spu-linux-nat.c (spu_fetch_inferior_registers,
9247 spu_store_inferior_registers): Use ptid from regcache, set and
9248 restore inferior_ptid.
9249 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9250 Likewise.
9251
bcc0c096
SM
92522017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9253
9254 * i386-linux-nat.c (fetch_register, store_register,
9255 i386_linux_fetch_inferior_registers,
9256 i386_linux_store_inferior_registers): Use ptid from regcache.
9257 * ia64-linux-nat.c (ia64_linux_fetch_register,
9258 ia64_linux_store_register): Likewise.
9259 * inf-ptrace.c (inf_ptrace_fetch_register,
9260 inf_ptrace_store_register): Likewise.
9261 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9262 m32r_linux_store_inferior_registers): Likewise.
9263 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9264 m68kbsd_store_inferior_registers): Likewise.
9265 * m68k-linux-nat.c (fetch_register, store_register,
9266 m68k_linux_fetch_inferior_registers,
9267 m68k_linux_store_inferior_registers): Likewise.
9268 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9269 m88kbsd_store_inferior_registers): Likewise.
9270 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9271 mips_fbsd_store_inferior_registers): Likewise.
9272 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9273 mips64_linux_regsets_store_registers): Likewise.
9274 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9275 mipsnbsd_store_inferior_registers): Likewise.
9276 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9277 mips64obsd_store_inferior_registers): Likewise.
9278 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9279 Likewise.
9280 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9281 ppcfbsd_store_inferior_registers): Likewise.
9282 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9283 ppc_linux_store_inferior_registers): Likewise.
9284 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9285 ppcnbsd_store_inferior_registers): Likewise.
9286 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9287 ppcobsd_store_registers): Likewise.
9288 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9289 Likewise.
9290 * ravenscar-thread.c (ravenscar_fetch_registers,
9291 ravenscar_store_registers, ravenscar_prepare_to_store):
9292 Likewise.
9293 * record-btrace.c (record_btrace_fetch_registers,
9294 record_btrace_store_registers, record_btrace_prepare_to_store):
9295 Likewise.
9296 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9297 Lookup inferior using ptid from regcache, instead of
9298 current_inferior.
9299 * remote.c (remote_fetch_registers, remote_store_registers): Use
9300 ptid from regcache.
9301 * rs6000-nat.c (fetch_register, store_register): Likewise.
9302 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9303 s390_linux_store_inferior_registers): Likewise.
9304 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9305 shnbsd_store_inferior_registers): Likewise.
9306 * sol-thread.c (sol_thread_fetch_registers,
9307 sol_thread_store_registers): Likewise.
9308 * sparc-nat.c (sparc_fetch_inferior_registers,
9309 sparc_store_inferior_registers): Likewise.
9310 * tilegx-linux-nat.c (fetch_inferior_registers,
9311 store_inferior_registers): Likewise.
9312 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9313 vaxbsd_store_inferior_registers): Likewise.
9314 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9315 store_xtregs): Likewise.
9316
c0f55cc6
AV
93172017-03-20 Artemiy Volkov <artemiyv@acm.org>
9318
9319 PR gdb/14441
9320 * NEWS: Mention support for rvalue references in GDB and python.
9321 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9322 supports both lvalue and rvalue references.
9323
15c0a2a9
AV
93242017-03-20 Artemiy Volkov <artemiyv@acm.org>
9325
9326 PR gdb/14441
9327 * gdbtypes.c (rank_one_type): Implement overloading
9328 resolution rules regarding rvalue references.
9329
aa006118
AV
93302017-03-20 Artemiy Volkov <artemiyv@acm.org>
9331
9332 PR gdb/14441
9333 * aarch64-tdep.c (aarch64_type_align)
9334 (aarch64_extract_return_value, aarch64_store_return_value): Change
9335 lvalue reference type checks to general reference type checks.
9336 * amd64-tdep.c (amd64_classify): Likewise.
9337 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9338 Likewise.
9339 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9340 (arm_store_return_value): Likewise.
9341 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9342 * c-typeprint.c (c_print_type): Likewise.
9343 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9344 (cplus_number_of_children, cplus_describe_child): Likewise.
9345 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9346 * completer.c (expression_completer): Likewise.
9347 * cp-support.c (make_symbol_overload_list_adl_namespace):
9348 Likewise.
9349 * darwin-nat-info.c (info_mach_region_command): Likewise.
9350 * dwarf2loc.c (entry_data_value_coerce_ref)
9351 (value_of_dwarf_reg_entry): Likewise.
9352 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9353 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9354 Likewise.
9355 * findvar.c (extract_typed_address, store_typed_address):
9356 Likewise.
9357 * gdbtypes.c (rank_one_type): Likewise.
9358 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9359 * infcall.c (value_arg_coerce): Likewise.
9360 * language.c (pointer_type): Likewise.
9361 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9362 Likewise.
9363 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9364 * mn10300-tdep.c (mn10300_type_align): Likewise.
9365 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9366 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9367 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9368 Likewise.
9369 * printcmd.c (print_formatted, x_command): Likewise.
9370 * python/py-type.c (typy_get_composite, typy_template_argument):
9371 Likewise.
9372 * python/py-value.c (valpy_referenced_value)
9373 (valpy_get_dynamic_type, value_has_field): Likewise.
9374 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9375 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9376 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9377 * spu-tdep.c (spu_scalar_value_p): Likewise.
9378 * symtab.c (lookup_symbol_aux): Likewise.
9379 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9380 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9381 Likewise.
9382 * valops.c (value_cast_pointers, value_cast)
9383 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9384 (value_struct_elt, value_struct_elt_bitpos)
9385 (value_find_oload_method_list, find_overload_match)
9386 (value_rtti_indirect_type): Likewise.
9387 * valprint.c (val_print_scalar_type_p, generic_val_print):
9388 Likewise.
9389 * value.c (value_actual_type, value_as_address, unpack_long)
9390 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9391 (coerce_ref): Likewise.
9392 * varobj.c (varobj_get_value_type): Likewise.
9393
3fcf899d
AV
93942017-03-20 Artemiy Volkov <artemiyv@acm.org>
9395
9396 PR gdb/14441
9397 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9398 table of constants.
9399 * python/lib/gdb/command/explore.py: Support exploring values
9400 of rvalue reference types.
9401 * python/lib/gdb/types.py: Implement get_basic_type() for
9402 rvalue reference types.
9403 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9404 constant.
9405 * python/py-value.c (valpy_getitem): Add an rvalue reference
9406 check.
9407 (valpy_reference_value): Add new parameter "refcode".
9408 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9409 New wrappers for valpy_reference_value().
9410 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9411 (gdbpy_invoke_xmethod): Likewise.
9412
4297a3f0
AV
94132017-03-20 Artemiy Volkov <artemiyv@acm.org>
9414
9415 PR gdb/14441
9416 * dwarf2read.c (process_die, read_type_die_1): Handle the
9417 DW_TAG_rvalue_reference_type DIE.
9418 (read_tag_reference_type): Add new parameter "refcode".
9419
e1cb3213
AV
94202017-03-20 Artemiy Volkov <artemiyv@acm.org>
9421
9422 PR gdb/14441
9423 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9424 (c_type_print_modifier, c_type_print_varspec_suffix)
9425 (c_type_print_base): Support printing rvalue reference types.
9426 * c-valprint.c (c_val_print, c_value_print): Support printing
9427 rvalue reference values.
9428
e4347c89
AV
94292017-03-20 Artemiy Volkov <artemiyv@acm.org>
9430
9431 PR gdb/14441
9432 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9433 typename.
9434 * cp-support.c (replace_typedefs): Handle
9435 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9436 * python/py-type.c (typy_lookup_type): Likewise.
9437
53cc15f5
AV
94382017-03-20 Artemiy Volkov <artemiyv@acm.org>
9439
9440 PR gdb/14441
9441 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9442 * parse.c (insert_type): Change assert statement.
9443 (follow_types): Handle rvalue reference types.
9444 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9445 constant.
9446
a65cfae5
AV
94472017-03-20 Artemiy Volkov <artemiyv@acm.org>
9448
9449 PR gdb/14441
9450 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9451 value_ref() interface.
9452 * c-valprint.c (c_value_print): Likewise.
9453 * infcall.c (value_arg_coerce): Likewise.
9454 * python/py-value.c (valpy_reference_value): Likewise.
9455 * valops.c (value_cast, value_reinterpret_cast)
9456 (value_dynamic_cast, typecmp): Likewise.
9457 (value_ref): Parameterize by kind of return value reference type.
9458 * value.h (value_ref): Add new parameter "refcode".
9459
3b224330
AV
94602017-03-20 Artemiy Volkov <artemiyv@acm.org>
9461
9462 PR gdb/14441
9463 * dwarf2read.c (read_tag_reference_type): Use
9464 lookup_lvalue_reference_type() instead of lookup_reference_type().
9465 * eval.c (evaluate_subexp_standard): Likewise.
9466 * f-exp.y: Likewise.
9467 * gdbtypes.c (make_reference_type, lookup_reference_type):
9468 Generalize with rvalue reference types.
9469 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9470 convenience wrappers for lookup_reference_type().
9471 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9472 reference kind parameter.
9473 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9474 wrappers for lookup_reference_type().
9475 * guile/scm-type.c (gdbscm_type_reference): Use
9476 lookup_lvalue_reference_type() instead of lookup_reference_type().
9477 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9478 * parse.c (follow_types): Likewise.
9479 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9480 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9481 Likewise.
9482 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9483 (gdbpy_invoke_xmethod): Likewise.
9484 * stabsread.c: Provide extra argument to make_reference_type()
9485 call.
9486 * valops.c (value_ref, value_rtti_indirect_type): Use
9487 lookup_lvalue_reference_type() instead of lookup_reference_type().
9488
f9aeb8d4
AV
94892017-03-20 Artemiy Volkov <artemiyv@acm.org>
9490
9491 PR gdb/14441
9492 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9493 (TYPE_IS_REFERENCE): New macro.
9494 (struct type): Add rvalue_reference_type field.
9495 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9496
51457a05
MAL
94972017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9498
9499 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9500 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9501 New function definition.
9502 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9503 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9504 New function declaration.
9505 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9506 * mi/mi-interp.h: New file.
9507 * solib.c (info_sharedlibrary_command): Replace for loop with
9508 ALL_SO_LIBS macro
9509 * solib.h (update_solib_list): New function declaration.
9510 (so_list_head): Move macro.
9511 * solist.h (ALL_SO_LIBS): New macro.
9512
e696b3ad
MAL
95132017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9514
9515 * infcmd.c (post_create_inferior): Remove unused argument in
9516 call to solib_add.
9517 * remote.c (remote_start_remote): Likewise.
9518 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9519 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9520 (enable_break): Likewise.
9521 * solib.c (update_solib_list): Remove unused target argument
9522 and its documentation.
9523 (solib_add): Remove unused target argument. Remove unused
9524 argument in call to update_solib_list.
9525 (info_sharedlibrary_command): Remove unused argument in call
9526 to update_solib_list.
9527 (sharedlibrary_command): Remove unused argument in call to
9528 solib_add.
9529 (handle_solib_event): Likewise.
9530 (reload_shared_libraries): Likewise.
9531 * solib.h (solib_add): Remove unused target argument.
9532
dcb84eda
AA
95332017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9534
9535 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9536 (s390_displaced_step_fixup): Cover relative branches with the
9537 default fixup handling. This fixes lack of support for some
9538 relative branch instructions.
9539
d9cb6cdc
SM
95402017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9541
9542 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9543 ptid from regcache.
9544
1afaf9f4
SM
95452017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9546
9547 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9548 i386_darwin_store_inferior_registers): Use ptid from regcache.
9549
aac12e24
SM
95502017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9551
9552 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9553 i386bsd_store_inferior_registers): Use ptid from regcache.
9554
bbe1eef1
SM
95552017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9556
9557 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9558 hppaobsd_store_registers): Use ptid from regcache.
9559
10799020
SM
95602017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9561
9562 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9563 hppanbsd_store_registers): Use ptid from regcache.
9564
00204cf7
SM
95652017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9566
9567 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9568 from regcache. Use get_ptrace_pid.
9569
11a33714
SM
95702017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9571
9572 * corelow.c (get_core_register_section): Use ptid from regcache,
9573 update doc.
9574
317cd492
SM
95752017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9576
9577 * bsd-uthread.c (bsd_uthread_fetch_registers,
9578 bsd_uthread_store_registers): Use ptid from regcache, set and
9579 restore inferior_ptid.
9580
9ac8a7c2
SM
95812017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9582
9583 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9584 fetch_fp_regs, store_register, store_regs, store_fp_register,
9585 store_fp_regs): Use ptid from regcache.
9586
4ac4bb6a
SM
95872017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9588
9589 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9590 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9591 store_vfp_regs): Use ptid from regcache.
9592
9bcbdca8
PA
95932017-03-17 Pedro Alves <palves@redhat.com>
9594
9595 PR remote/21188
9596 * ser-base.c (ser_base_wait_for): Add comment.
9597 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9598 version.
9599 * ser-unix.c (hardwire_raw): Remove reference to
9600 scb->current_timeout.
9601 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9602 (hardwire_ops): Install ser_base_readchar instead of
9603 hardwire_readchar.
9604 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9605 Remove fields.
9606
7503099f
JG
96072017-03-17 Jonah Graham <jonah@kichwacoders.com>
9608
9609 PR gdb/19637
9610 * python/lib/gdb/printer/bound_registers.py: Add support for
9611 Python 3.
9612
7942e96e
AA
96132017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9614
9615 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9616 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9617 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9618 byte_offset to subobj_byte_offset. Fix the handling of
9619 DWARF_VALUE_STACK on big-endian targets when coming via an
9620 implicit pointer.
9621 (dwarf2_evaluate_loc_desc): Adjust call to
9622 dwarf2_evaluate_loc_desc_full.
9623 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9624 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9625
ba14f379
YQ
96262017-03-16 Yao Qi <yao.qi@linaro.org>
9627
9628 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9629 and REVSH instructions.
9630
b121eeb9
YQ
96312017-03-16 Yao Qi <yao.qi@linaro.org>
9632
9633 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9634 (arm_record_test): Declare.
9635 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9636 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9637 align with the manual.
9638 (thumb_record_misc): Adjust the code order to align with the
9639 manual.
9640 (thumb2_record_decode_insn_handler): Fix instruction matching.
9641 (instruction_reader_thumb): New class.
9642 (arm_record_test): New function.
9643
728a7913
YQ
96442017-03-16 Yao Qi <yao.qi@linaro.org>
9645
9646 * arm-tdep.c (abstract_memory_reader): New class.
9647 (instruction_reader): New class.
9648 (extract_arm_insn): Add argument 'reader'. Callers updated.
9649 (decode_insn): Likewise.
9650
34b43320
DE
96512017-03-16 Doug Evans <dje@google.com>
9652
a7c0469f
DE
9653 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9654 member. Change type of TYPE member to SCM. All uses updated.
9655 (lsscm_make_lazy_string_smob): Add assert.
9656 (lsscm_make_lazy_string): Flag bad length values.
9657 (lsscm_elt_type): New function.
9658 (gdbscm_lazy_string_to_value): Rewrite to use
9659 lsscm_safe_lazy_string_to_value.
9660 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9661 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9662 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9663 in incoming type.
9664 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9665 * guile/scm-type.c (tyscm_scm_to_type): New function.
9666
96672017-03-15 Doug Evans <dje@google.com>
9668
34b43320
DE
9669 PR python/17728, python/18439, python/18779
9670 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9671 member. Change type of TYPE member to PyObject *. All uses updated.
9672 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9673 (gdbpy_create_lazy_string_object): Flag bad length values.
9674 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9675 Handle typedefs in incoming type.
9676 (stpy_lazy_string_elt_type): New function.
9677 (gdbpy_extract_lazy_string): Call it.
9678 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9679 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9680 typedefs in incoming type.
9681
a3a5fecc
DE
96822017-03-16 Doug Evans <dje@google.com>
9683
9684 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9685 * guile/scm-type.c (tyscm_scm_to_type): New function.
9686
28f1c605
JW
96872017-03-16 Jiong Wang <jiong.wang@arm.com>
9688
9689 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9690 "ULONGEST" for "skip".
9691
87c336f6
AA
96922017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9693
9694 PR gdb/21220
9695 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9696 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9697 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9698 over ptrace peek/poke until end of buffer or error.
9699
cf81cf60
SM
97002017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9701
9702 * parse.c (length_of_subexp): Make static.
9703 * parser-defs.h (length_of_subexp): Remove.
9704
a379284a
AA
97052017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9706
9707 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9708 as well.
9709
8a6200ba
PA
97102017-03-14 Pedro Alves <palves@redhat.com>
9711
9712 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9713 (main): Use std::unique_ptr. Remove calls to
9714 cp_demangled_name_parse_free.
9715
f79ec206
SM
97162017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9717
9718 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9719 alphabsd_store_inferior_registers): Use regcache->ptid instead
9720 of inferior_ptid.
9721
edb5fb00
SM
97222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9723
9724 * aix-thread.c (aix_thread_fetch_registers,
9725 aix_thread_store_registers): Use regcache->ptid instead of
9726 inferior_ptid.
9727
55119686
SM
97282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9729
9730 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9731 store_gregs_to_thread, fetch_fpregs_from_thread,
9732 store_fpregs_to_thread): Use regcache->ptid instead of
9733 inferior_ptid.
9734
6a06fbb7
SM
97352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9736
9737 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9738 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9739 instead of inferior_ptid.
9740
c6386875
SM
97412017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9742
9743 * target.c (target_fetch_registers, target_store_registers): Add
9744 assert.
9745
ddaaf0fb
SM
97462017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9747
9748 * regcache.h (regcache_get_ptid): New function.
9749 * regcache.c (regcache_get_ptid): New function.
9750
b9da89d1 97512017-03-13 Mark Wielaard <mark@klomp.org>
9752
9753 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9754
5f4d1085
KS
97552017-03-10 Keith Seitz <keiths@redhat.com>
9756
9757 PR c++/8218
9758 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9759
c65d6b55
PA
97602017-03-08 Pedro Alves <palves@redhat.com>
9761
9762 PR gdb/18360
9763 * infrun.c (start_step_over, do_target_resume, resume)
9764 (restart_threads): Assert we're not resuming a thread that is
9765 meant to be stopped.
9766 (infrun_thread_stop_requested_callback): Delete.
9767 (infrun_thread_stop_requested): If the thread is internally
9768 stopped, queue a pending stop event and clear the thread's
9769 inline-frame state.
9770 (handle_stop_requested): New function.
9771 (handle_syscall_event, handle_inferior_event_1): Use
9772 handle_stop_requested.
9773 (handle_stop_requested): New function.
9774 (handle_signal_stop): Set the thread's stop_signal here instead of
9775 at caller.
9776 (finish_step_over): Clear step over info unconditionally.
9777 (handle_signal_stop): If the user had interrupted the event
9778 thread, consider the stop a random signal.
9779 (handle_signal_stop) <signal arrived while stepping over
9780 breakpoint>: Don't restart threads here.
9781 (stop_waiting): Don't clear step-over info here.
9782
15c22686
PA
97832017-03-08 Pedro Alves <palves@redhat.com>
9784
9785 PR 21206
9786 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9787 goes to argument 2, not 1.
9788
6e5d74e7
PA
97892017-03-08 Pedro Alves <palves@redhat.com>
9790
9791 PR cli/21218
9792 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9793 display_gdb_prompt.
9794 (command_line_input): Add comment.
9795
9753a2f6
PA
97962017-03-08 Pedro Alves <palves@redhat.com>
9797
9798 PR tui/21216
9799 * tui/tui-file.c (tui_file::write): New.
9800 * tui/tui-file.h (tui_file): Override "write".
9801 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9802 factored out from ...
9803 (tui_puts): ... here.
9804 (tui_putc): Use them.
9805 (tui_write): New function.
9806 * tui/tui-io.h (tui_write): Declare.
9807
1672e0d9
SDJ
98082017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9809
9810 * Makefile.in (SFILES): Replace "environ.c" with
9811 "common/environ.c".
9812 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9813 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9814 to...
9815 * common/environ.c: ... here.
9816 * environ.h: Moved to...
9817 * common/environ.h: ... here.
9818
f7bb4e3a
PB
98192017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9820
9821 * gdbarch.sh (pstring_ptr): New static function.
9822 (gdbarch_disassembler_options): Use it.
9823 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9824 not valid_disassembler_option->name.
9825 * gdbarch.c: Regenerate.
9826
e45ced6c
PB
98272017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9828
9829 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9830
5f6fd321
PA
98312017-03-07 Pedro Alves <palves@redhat.com>
9832
9833 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9834
6dbb839a 98352017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
9836
9837 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9838 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9839 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 9840 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 9841
d274ecf4
SM
98422017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9843
9844 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9845
df97be55
SM
98462017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9847
9848 * remote.c (remote_add_target_side_commands): Use range-based
9849 for loop.
9850
7d45f3df
YQ
98512017-03-03 Yao Qi <yao.qi@linaro.org>
9852
9853 PR gdb/21165
9854 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9855 value is lazy.
9856 * valprint.c (common_val_print): Likewise.
9857
65b48a81
PB
98582017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9859
9860 * NEWS: Mention new set/show disassembler-options commands.
9861 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9862 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9863 (prospective_options): New static variable.
9864 (gdb_disassembler::gdb_disassembler): Initialize
9865 m_di.disassembler_options.
9866 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9867 (get_disassembler_options): New function.
9868 (set_disassembler_options): Likewise.
9869 (set_disassembler_options_sfunc): Likewise.
9870 (show_disassembler_options_sfunc): Likewise.
9871 (disassembler_options_completer): Likewise.
9872 (_initialize_disasm): Likewise.
9873 * disasm.h (get_disassembler_options): New prototype.
9874 (set_disassembler_options): Likewise.
9875 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9876 (gdbarch_verify_disassembler_options): Likewise.
9877 * gdbarch.c: Regenerate.
9878 * gdbarch.h: Likewise.
9879 * arm-tdep.c (num_disassembly_options): Delete.
9880 (set_disassembly_style): Likewise.
9881 (arm_disassembler_options): New static variable.
9882 (set_disassembly_style_sfunc): Convert short style name into long
9883 option name. Call set_disassembler_options.
9884 (show_disassembly_style_sfunc): New function.
9885 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9886 set_gdbarch_verify_disassembler_options.
9887 (_initialize_arm_tdep): Delete regnames variable and update callers.
9888 (arm_disassembler_options): Initialize.
9889 (disasm_options): New variable.
9890 (num_disassembly_options): Rename from this...
9891 (num_disassembly_styles): ...to this. Compute by scanning through
9892 disasm_options.
9893 (valid_disassembly_styles): Initialize using disasm_options.
9894 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9895 set_arm_regname_option.
9896 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9897 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9898 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9899 set_gdbarch_verify_disassembler_options.
9900 * s390-tdep.c (s390_disassembler_options): New static variable.
9901 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9902 set_gdbarch_verify_disassembler_options.
9903
d538e36d
SM
99042017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9905
9906 * remote.c (remote_add_target_side_condition): Remove "struct"
9907 keyword from range-based for loop.
9908
83621223
SM
99092017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9910
9911 * remote.c (remote_add_target_side_condition): Use range-based
9912 for loop. Update comment.
9913
2123df0e
YQ
99142017-02-27 Yao Qi <yao.qi@linaro.org>
9915
9916 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9917
8e368124
AH
99182017-02-26 Alan Hayward <alan.hayward@arm.com>
9919
9920 * regcache.c (regcache_raw_update): New function.
9921 (regcache_raw_read): Move code to regcache_raw_update.
9922 * regcache.h (regcache_raw_update): New declaration.
9923 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9924
a49dd8dd
JK
99252017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9926
9927 * dwarf2read.c (create_debug_type_hash_table): Initialize
9928 header.signature and header.type_offset_in_tu.
9929
34e4bae9
PA
99302017-02-24 Pedro Alves <palves@redhat.com>
9931
9932 * symtab.c (make_file_symbol_completion_list_1): Use
9933 add_symtab_completions.
9934
b0e4b369
AH
99352017-02-24 Alan Hayward <alan.hayward@arm.com>
9936
9937 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9938
975c21ab
AH
99392017-02-24 Alan Hayward <alan.hayward@arm.com>
9940
9941 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9942 I386_MAX_REGISTER_SIZE.
9943 (i386_pseudo_register_write): Likewise.
9944 (i386_process_record): Likewise.
9945 * i387-tdep.c (i387_supply_xsave): Likewise.
9946 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9947 (store_register): Likewise.
9948
14bc53a8
PA
99492017-02-23 Pedro Alves <palves@redhat.com>
9950
9951 * ada-lang.c: Include "common/function-view.h".
9952 (ada_iterate_over_symbols): Adjust to use function_view as
9953 callback type.
9954 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9955 (ada_make_symbol_completion_list): Use a lambda.
9956 (ada_exc_search_name_matches): Delete.
9957 (name_matches_regex): New.
9958 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9959 * compile/compile-c-support.c: Include "common/function-view.h".
9960 (print_one_macro): Change prototype to accept a ui_file pointer.
9961 (write_macro_definitions): Use a lambda.
9962 * dwarf2read.c: Include "common/function-view.h".
9963 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9964 (dw2_expand_symtabs_matching): Adjust to use function_view as
9965 callback type.
9966 * language.h: Include "common/function-view.h".
9967 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9968 function_view as callback type.
9969 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9970 * linespec.c: Include "common/function-view.h".
9971 (collect_info::add_symbol): New method.
9972 (struct symbol_and_data_callback, iterate_inline_only, struct
9973 symbol_matcher_data, iterate_name_matcher): Delete.
9974 (iterate_over_all_matching_symtabs): Adjust to use function_view
9975 as callback type and lambdas.
9976 (iterate_over_file_blocks): Adjust to use function_view as
9977 callback type.
9978 (decode_compound_collector): Now a class with private fields.
9979 (decode_compound_collector::release_symbols): New method.
9980 (collect_one_symbol): Rename to...
9981 (decode_compound_collector::operator()): ... this and adjust.
9982 (lookup_prefix_sym): decode_compound_collector construction bits
9983 move to decode_compound_collector ctor. Pass the
9984 decode_compound_collector object directly as callback. Remove
9985 cleanups and use decode_compound_collector::release_symbols
9986 instead.
9987 (symtab_collector): Now a class with private fields.
9988 (symtab_collector::release_symtabs): New method.
9989 (add_symtabs_to_list): Rename to...
9990 (symtab_collector::operator()): ... this and adjust.
9991 (collect_symtabs_from_filename): symtab_collector construction
9992 bits move to symtab_collector ctor. Pass the symtab_collector
9993 object directly as callback. Remove cleanups and use
9994 symtab_collector::release_symtabs instead.
9995 (collect_symbols): Delete.
9996 (add_matching_symbols_to_info): Use lambdas.
9997 * macrocmd.c (print_macro_callback): Delete.
9998 (info_macro_command): Use a lambda.
9999 (info_macros_command): Pass print_macro_definition as callable
10000 directly.
10001 (print_one_macro): Remove 'ignore' parameter.
10002 (macro_list_command): Adjust.
10003 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10004 (macro_for_each_data::user_data): Delete field.
10005 (foreach_macro): Adjust to call the function_view.
10006 (macro_for_each): Adjust to use function_view as callback type.
10007 (foreach_macro_in_scope): Adjust to call the function_view.
10008 (macro_for_each_in_scope): Adjust to use function_view as callback
10009 type.
10010 * macrotab.h: Include "common/function-view.h".
10011 (macro_callback_fn): Declare a prototype instead of a pointer.
10012 Remove "user_data" parameter.
10013 (macro_for_each, macro_for_each_in_scope): Adjust to use
10014 function_view as callback type.
10015 * psymtab.c (partial_map_expand_apply)
10016 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10017 Adjust to use function_view as callback type and to return bool.
10018 (psym_expand_symtabs_matching): Adjust to use function_view as
10019 callback types.
10020 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10021 to use function_view as callback type and to return bool.
10022 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10023 callback types.
10024 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10025 as callback types.
10026 * symfile.h: Include "common/function-view.h".
10027 (expand_symtabs_file_matcher_ftype)
10028 (expand_symtabs_symbol_matcher_ftype)
10029 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10030 return bool.
10031 (quick_symbol_functions::map_symtabs_matching_filename)
10032 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10033 function_view as callback type and return bool.
10034 (expand_symtabs_matching): Adjust to use function_view as callback
10035 type.
10036 (maintenance_expand_name_matcher)
10037 (maintenance_expand_file_matcher): Delete.
10038 (maintenance_expand_symtabs): Use lambdas.
10039 * symtab.c (iterate_over_some_symtabs): Adjust to use
10040 function_view as callback types and return bool.
10041 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10042 of a cleanup.
10043 (lookup_symtab_callback): Delete.
10044 (lookup_symtab): Use a lambda.
10045 (iterate_over_symbols): Adjust to use function_view as callback
10046 type.
10047 (struct search_symbols_data, search_symbols_file_matches)
10048 (search_symbols_name_matches): Delete.
10049 (search_symbols): Use a pair of lambdas.
10050 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10051 (symtab_expansion_callback): Delete.
10052 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10053 * symtab.h: Include "common/function-view.h".
10054 (iterate_over_some_symtabs): Adjust to use function_view as
10055 callback type and return bool.
10056 (iterate_over_symtabs): Adjust to use function_view as callback
10057 type.
10058 (symbol_found_callback_ftype): Remove 'data' parameter and return
10059 bool.
10060 (iterate_over_symbols): Adjust to use function_view as callback
10061 type.
10062
07e253aa
PA
100632017-02-23 Pedro Alves <palves@redhat.com>
10064
10065 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10066 (%.o) <unittests/%.c>: New pattern.
10067 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10068 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10069 * common/function-view.h: New file.
10070 * unittests/function-view-selftests.c: New file.
10071 * configure: Regenerate.
10072
8eaf5320
SM
100732017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10074
10075 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10076 inferior_ptid.
10077 * go32-nat.c (go32_thread_alive): Likewise.
10078
38768751
YQ
100792017-02-23 Yao Qi <yao.qi@linaro.org>
10080
10081 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10082 delete.
10083
0a8beaba
YQ
100842017-02-23 Yao Qi <yao.qi@linaro.org>
10085
10086 * varobj.c (varobj_clear_saved_item): Use delete instead of
10087 xfree.
10088 (update_dynamic_varobj_children): Likewise.
10089
58fdfd2c
JK
100902017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10091
10092 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10093
1b90b139
SM
100942017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10095
10096 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10097 m_enum_value to 0 in default constructor.
10098
2039d74e
EBM
100992017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10100
10101 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10102 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10103 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10104 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10105 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10106 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10107 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10108 IS_STORE_CONDITIONAL_INSN.
10109
7814882a
JK
101102017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10111
10112 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10113
0ae60b63
JK
101142017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10115
10116 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10117
0224619f
JK
101182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10119
10120 * dwarf2read.c (skip_one_die, read_attribute_value)
10121 (dwarf2_const_value_attr, dump_die_shallow)
10122 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10123 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10124
0af92d60
JK
101252017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10126
10127 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10128 (dwarf_parse_macro_header): Accept DWARF version 5.
10129 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10130
216f72a1
JK
101312017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10132
10133 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10134 DW_AT_GNU_*.
10135 * common/common-exceptions.h (enum errors): Likewise.
10136 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10137 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10138 (dwarf_expr_context::execute_stack_op): Likewise.
10139 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10140 Likewise.
10141 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10142 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10143 (show_entry_values_debug, call_site_to_target_addr)
10144 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10145 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10146 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10147 (value_of_dwarf_block_entry, indirect_pieced_value)
10148 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10149 (disassemble_dwarf_expression): Likewise.
10150 * dwarf2read.c (process_die, inherit_abstract_dies)
10151 (read_call_site_scope): Likewise.
10152 * gdbtypes.h (struct func_type, struct call_site_parameter)
10153 (struct call_site): Likewise.
10154 * stack.c (read_frame_arg): Likewise.
10155 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10156
43988095
JK
101572017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10158
10159 * defs.h (read_unsigned_leb128): New declaration.
10160 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10161 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10162 (dwarf2_find_location_expression): Call also
10163 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10164 * dwarf2loc.h (dwarf2_version): New declaration.
10165 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10166 rnglists.
10167 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10168 .debug_rnglists.
10169 (struct dwop_section_names): Add loclists_dwo.
10170 (dwop_section_names): Add .debug_loclists.dwo.
10171 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10172 (struct dwarf2_per_cu_data): Add dwarf_version.
10173 (struct dwo_sections): Add loclists.
10174 (struct attr_abbrev): Add implicit_const.
10175 (read_indirect_line_string): New declaration.
10176 (read_unsigned_leb128): Delete declaration.
10177 (rcuh_kind): New definition.
10178 (read_and_check_comp_unit_head): Change parameter
10179 is_debug_types_section to section_kind.
10180 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10181 (read_comp_unit_head): Change parameter abfd to section, add parameter
10182 section_kind. Handle DWARF-5.
10183 (error_check_comp_unit_head): Accept also DWARF version 5.
10184 (read_and_check_comp_unit_head): Change parameter
10185 is_debug_types_section to section_kind.
10186 (read_and_check_type_unit_head): Delete function.
10187 (read_abbrev_offset): Handle DWARF-5.
10188 (create_debug_type_hash_table): Add parameter section_kind. Process
10189 only DW_UT_type. Use signature and type_offset_in_tu from struct
10190 comp_unit_head.
10191 (create_debug_types_hash_table): Update create_debug_type_hash_table
10192 caller.
10193 (create_all_type_units): Call create_debug_type_hash_table.
10194 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10195 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10196 caller.
10197 (skip_one_die): Handle DW_FORM_implicit_const.
10198 (dwarf2_rnglists_process): New function.
10199 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10200 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10201 (read_attribute_value): Handle DW_FORM_implicit_const,
10202 DW_FORM_line_strp.
10203 (read_attribute): Handle DW_FORM_implicit_const.
10204 (read_indirect_string_at_offset_from): New function from
10205 read_indirect_string_at_offset.
10206 (read_indirect_string_at_offset): Call
10207 read_indirect_string_at_offset_from.
10208 (read_indirect_line_string_at_offset): New function.
10209 (read_indirect_string): New function comment.
10210 (read_indirect_line_string): New function.
10211 (read_unsigned_leb128): Make it global.
10212 (dwarf2_string_attr): Handle DWARF-5.
10213 (add_include_dir_stub, read_formatted_entries): New functions.
10214 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10215 Handle DWARF-5.
10216 (per_cu_header_read_in): Update read_comp_unit_head caller.
10217 (dwarf2_version): New function.
10218 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10219 rnglists.
10220 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10221 fields.
10222
22d2f3ab
JK
102232017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10224
10225 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10226
5f46c5a5
JK
102272017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10228
10229 * dwarf2read.c (dwarf2_ranges_process): New function from
10230 dwarf2_ranges_read.
10231 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10232 dwarf2_ranges_process.
10233
78d4d2c5
JK
102342017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10235
10236 * dwarf2read.c (create_debug_type_hash_table): New function from
10237 create_debug_types_hash_table.
10238 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10239 (create_all_type_units, open_and_init_dwo_file): Update
10240 create_debug_types_hash_table callers.
10241
1b076f25
SDJ
102422017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10243
10244 PR gdb/16188
10245 * fork-child.c (trace_start_error): Fix thinko. va_end should
10246 refer to 'ap', not 'args'.
10247
0db8980c
SDJ
102482017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10249 Pedro Alves <palves@redhat.com>
10250
10251 PR gdb/16188
10252 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10253 calls succeeded.
10254 * fork-child.c (trace_start_error): New function.
10255 (trace_start_error_with_name): Likewise.
10256 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10257 * inf-ptrace.c (inf_ptrace_me): Likewise.
10258 * inferior.h (trace_start_error): New prototype.
10259 (trace_start_error_with_name): Likewise.
10260
99e8a4f9
SDJ
102612017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10262
10263 PR gdb/21164
10264 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10265 NULL before using it.
10266 * symmisc.c (maintenance_print_symbols): Likewise.
10267 (maintenance_print_msymbols): Likewise.
10268
4e746bb6
TW
102692017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10270
10271 * NEWS: Add record Python bindings entry.
10272
102732017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10274
10275 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10276 py-record-full.o.
10277 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10278 * python/py-record-btrace.c, python/py-record-btrace.h,
10279 python/py-record-full.c, python/py-record-full.h: New file.
10280 * python/py-record.c: Add include for py-record-btrace.h and
10281 py-record-full.h.
10282 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10283 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10284 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10285 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10286 New definition.
10287 (gdbpy_initialize_btrace): New export.
10288 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10289
102902017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10291
10292 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10293 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10294 * python/py-record.c: New file.
10295 * python/python-internal.h (gdbpy_start_recording,
10296 gdbpy_current_recording, gdpy_stop_recording,
10297 gdbpy_initialize_record): New export.
10298 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10299 (python_GdbMethods): Add gdbpy_start_recording,
10300 gdbpy_current_recording and gdbpy_stop_recording.
10301
103022017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10303
10304 * record-btrace.c (record_btrace_record_method): New function.
10305 (init_record_btrace_ops): Initialize to_record_method.
10306 * record-full.c (record_full_record_method): New function.
10307 (init_record_full_ops, init_record_full_core_ops): Add
10308 record_full_record_method.
10309 * record.h (enum record_method): New enum.
10310 * target-debug.h (target_debug_print_enum_record_method: New define.
10311 * target-delegates.c: Regenerate.
10312 * target.c (target_record_method): New function.
10313 * target.h: Include record.h.
10314 (struct target_ops) <to_record_method>: New field.
10315 (target_record_method): New export.
10316
103172017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10318
10319 * record.h (record_start, record_stop): New export.
10320 * record.c (record_start, record_stop): New function.
10321
103222017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10323
10324 * btrace.c (btrace_fetch): Copy function call segments pointer
10325 into a vector.
10326 (btrace_clear): Clear the vector.
10327 (btrace_find_insn_by_number): Use binary search to find the correct
10328 function call segment.
10329 * btrace.h (brace_fun_p): New typedef.
10330 (struct btrace_thread_info) <functions>: New field.
10331
103322017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10333
10334 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10335 * btrace.c (btrace_decode_error): ... here. New function.
10336 * btrace.h (btrace_decode_error): New export.
10337
103382017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10339
10340 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10341 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10342 btrace_find_insn_by_number): Remove special case for gaps.
10343 * btrace.h (btrace_insn_get_error): New export.
10344 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10345 * record-btrace.c (btrace_insn_history): Print number for gaps.
10346 (record_btrace_info, record_btrace_goto): Handle gaps.
10347
3f77c769
TT
103482017-02-14 Tom Tromey <tom@tromey.com>
10349
10350 PR python/13598:
10351 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10352 event.
10353 * python/py-evts.c (gdbpy_initialize_py_events): Add
10354 before_prompt registry.
10355 * python/py-events.h (events_object) <before_prompt>: New field.
10356
4c2c7ac6
MM
103572017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10358
10359 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10360
5cf30ebf
LM
103612017-02-13 Luis Machado <lgustavo@codesourcery.com>
10362
10363 * symfile (_initialize_symfile): Add usage text to the load command's
10364 help text.
10365
26a06916
SM
103662017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10367
10368 * utils.c (defaulted_query): Don't query on secondary UIs.
10369
0b145e37
TT
103702017-02-10 Tom Tromey <tom@tromey.com>
10371
10372 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10373
2d8365c4
TT
103742017-02-10 Tom Tromey <tom@tromey.com>
10375
10376 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10377 "cleanup" local.
10378 * python/py-type.c (typy_legacy_template_argument): Remove
10379 unnecessary "cleanup" local.
10380
2bb8f231
TT
103812017-02-10 Tom Tromey <tom@tromey.com>
10382
10383 * python/python.c (do_start_initialization): New function, from
10384 _initialize_python.
10385 (_initialize_python): Call do_start_initialization.
10386 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10387 goto.
10388
1bdfaf42
TT
103892017-02-10 Tom Tromey <tom@tromey.com>
10390
10391 * python/py-prettyprint.c (pretty_print_one_value): Use
10392 gdbpy_ref.
10393
88b6faea
TT
103942017-02-10 Tom Tromey <tom@tromey.com>
10395
10396 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10397 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10398 gdbpy_ref.
10399 * python/py-type.c (field_new): Use gdbpy_ref.
10400 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10401 gdbpy_ref.
10402 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10403 (py_free_pspace): Likewise.
10404 (pspace_to_pspace_object): Likewise.
10405 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10406 (py_free_objfile): Likewise.
10407 (objfile_to_objfile_object): Likewise.
10408 * python/py-inferior.c (delete_thread_object): Use
10409 gdbpy_ref.
10410 (infpy_read_memory): Likewise.
10411 (py_free_inferior): Likewise.
10412 * python/py-evtregistry.c (create_eventregistry_object): Use
10413 gdbpy_ref.
10414 * python/py-event.c (create_event_object): Use gdbpy_ref.
10415
7780f186
TT
104162017-02-10 Tom Tromey <tom@tromey.com>
10417
10418 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10419 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10420 used.
10421 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10422 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10423 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10424 python/py-framefilter.c, python/py-function.c,
10425 python/py-inferior.c, python/py-infevents.c,
10426 python/py-linetable.c, python/py-newobjfileevent.c,
10427 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10428 python/py-signalevent.c, python/py-stopevent.c,
10429 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10430 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10431 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10432 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10433
d4b0bb18
TT
104342017-02-10 Tom Tromey <tom@tromey.com>
10435
10436 * ui-out.h (ui_out_emit_type): New class.
10437 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10438 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10439 and ui_out_emit_tuple.
10440 (enumerate_locals): Likewise.
10441 (py_mi_print_variables, py_print_locals, py_print_args): Use
10442 ui_out_emit_list.
10443 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10444 ui_out_emit_list.
10445 * common/gdb_optional.h: New file.
10446
f67f945c
MG
104472017-02-10 Martin Galvan <martingalvan@sourceware.org>
10448
10449 * MAINTAINERS (Write After Approval): Update my e-mail address.
10450
18da0c51
MG
104512017-02-10 Martin Galvan <martingalvan@sourceware.org>
10452
10453 PR gdb/21122
10454 * breakpoint.c (_initialize_breakpoint): Update the help description
10455 of the 'commands' command to indicate that it takes a list argument.
10456
62c14536
SM
104572017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10458
10459 * interps.c (current_interp_set_logging): Remove "return".
10460
ff6fa247
GB
104612017-02-09 Gary Benson <gbenson@redhat.com>
10462
10463 * symtab.c (add_symtab_completions): Prevent NULL pointer
10464 dereference.
10465
a474bd8e
PA
104662017-02-08 Pedro Alves <palves@redhat.com>
10467
10468 * interps.c (interp::interp): Remove reference to quiet_p.
10469 (interp_set): Make static. Remove dead "Switching to" output
10470 code.
10471 (interp_quiet_p, interp_set_quiet): Delete.
10472 (interpreter_exec_cmd): Don't set the interpreter quiet.
10473 * interps.h (interp_quiet_p): Make static.
10474 (class interp) <quiet_p>: Remove field
10475
3d7b173c
JG
104762017-02-08 Jerome Guitton <guitton@adacore.com>
10477
604c4576
JG
10478 * cli/cli-decode.c (find_command_name_length): Make it extern.
10479 * cli/cli-decode.h (find_command_name_length): Declare.
10480 * cli/cli-script.c (command_name_equals, line_first_arg):
10481 New functions.
10482 (process_next_line): Use cli-decode to parse command names.
10483 (build_command_line): Make args a constant pointer.
10484
104852017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10486
3d7b173c
JG
10487 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10488 Remove case-insensitive search.
10489
1291063d
JM
104902017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10491
10492 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10493 at the end of the line. Avoids an ARI warning.
10494
20b477a7
LM
104952017-02-06 Luis Machado <lgustavo@codesourcery.com>
10496
10497 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10498 rdseed instructions.
10499 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10500
3f7b46f2
IR
105012017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10502
10503 PR tdep/20936
10504 Provide and use sparc32 and sparc64 target description XML files.
10505 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10506 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10507 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10508 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10509 * features/sparc/sparc32-solaris.xml: New file.
10510 * features/sparc/sparc64-solaris.xml: New file.
10511 * features/sparc/sparc32-solaris.c: Generated.
10512 * features/sparc/sparc64-solaris.c: Generated.
10513 * sparc-tdep.h: Account for differences in target descriptions.
10514 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10515 (sparc32_register_type): Use target provided registers.
10516 (validate_tdesc_registers): New function.
10517 (sparc32_gdbarch_init): Use tdesc_has_registers.
10518 Set pseudoregister functions.
10519 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10520 (sparc64_register_type): Use target provided registers.
10521 (sparc64_init_abi): Set pseudoregister functions.
10522
f0fd41c1
TT
105232017-02-03 Tom Tromey <tom@tromey.com>
10524
10525 PR rust/21097:
10526 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10527 with a single member.
10528
d6f9b0fb
PA
105292017-02-03 Pedro Alves <palves@redhat.com>
10530
10531 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10532 (cli_interp_base::~cli_interp_base): New.
10533 (cli_interp): New struct.
10534 (as_cli_interp): Cast the interp itself to cli_interp.
10535 (cli_interpreter_pre_command_loop): Rename to ...
10536 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10537 parameter.
10538 (cli_interpreter_init): Rename to ...
10539 (cli_interp::init): ... this. Remove 'self' parameter. Use
10540 boolean. Make extern.
10541 (cli_interpreter_resume): Rename to ...
10542 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10543 extern.
10544 (cli_interpreter_suspend): Rename to ...
10545 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10546 extern.
10547 (cli_interpreter_exec): Rename to ...
10548 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10549 extern.
10550 (cli_interpreter_supports_command_editing): Rename to ...
10551 (cli_interp_base::supports_command_editing): ... this. Remove
10552 'interp' parameter. Make extern.
10553 (cli_ui_out): Rename to ...
10554 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10555 Make extern.
10556 (cli_set_logging): Rename to ...
10557 (cli_interp_base::set_logging): ... this. Remove 'interp'
10558 parameter. Make extern.
10559 (cli_interp_procs): Delete.
10560 (cli_interp_factory): Adjust to use "new".
10561 * cli/cli-interp.h: Include "interps.h".
10562 (struct cli_interp_base): New struct.
10563 * interps.c (struct interp): Delete. Fields moved to interps.h.
10564 (interp_new): Delete.
10565 (interp::interp, interp::~interp): New.
10566 (interp_set): Use bool, and return void. Assume the interpreter
10567 has suspend, init and resume methods, and that the all return
10568 void.
10569 (set_top_level_interpreter): interp_set returns void.
10570 (interp_ui_out): Adapt.
10571 (current_interp_set_logging): Adapt.
10572 (interp_data): Delete.
10573 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10574 (interp_exec): Adapt.
10575 (top_level_interpreter_data): Delete.
10576 * interps.h (interp_init_ftype, interp_resume_ftype)
10577 (interp_suspend_ftype, interp_exec_ftype)
10578 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10579 (class interp): New.
10580 (interp_new): Delete.
10581 (interp_set): Now returns void. Use bool.
10582 (interp_data, top_level_interpreter_data): Delete.
10583 * mi/mi-common.h: Include interps.h.
10584 (class mi_interp): Inherit from interp. Define a ctor. Declare
10585 init, resume, suspect, exec, interp_ui_out, set_logging and
10586 pre_command_loop methods.
10587 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10588 (mi_interpreter_init): Rename to ...
10589 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10590 bool, return void and make extern. Adjust.
10591 (mi_interpreter_resume): ... Rename to ...
10592 (mi_interp::resume): ... this. Remove the 'data' parameter,
10593 return void and make extern. Adjust.
10594 (mi_interpreter_suspend): ... Rename to ...
10595 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10596 return void and make extern. Adjust.
10597 (mi_interpreter_exec): ... Rename to ...
10598 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10599 extern. Adjust.
10600 (mi_interpreter_pre_command_loop): ... Rename to ...
10601 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10602 parameter and make extern.
10603 (mi_on_normal_stop_1): Adjust.
10604 (mi_ui_out): Rename to ...
10605 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10606 parameter and make extern. Adjust.
10607 (mi_set_logging): Rename to ...
10608 (mi_interp::set_logging): ... this. Remove the 'interp'
10609 parameter and make extern. Adjust.
10610 (mi_interp_procs): Delete.
10611 (mi_interp_factory): Adjust to use 'new'.
10612 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10613 (mi_print_exception, mi_execute_command, mi_load_progress):
10614 Adjust.
10615 * tui/tui-interp.c (tui_interp): New class.
10616 (as_tui_interp): Return a tui_interp pointer.
10617 (tui_on_normal_stop, tui_on_signal_received)
10618 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10619 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10620 to use interp::interp_ui_out.
10621 (tui_init): Rename to ...
10622 (tui_interp::init): ... this. Remove the 'self' parameter, use
10623 bool, return void and make extern. Adjust.
10624 (tui_resume): Rename to ...
10625 (tui_interp::resume): ... this. Remove the 'data' parameter,
10626 return void and make extern. Adjust.
10627 (tui_suspend): Rename to ...
10628 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10629 return void and make extern. Adjust.
10630 (tui_ui_out): Rename to ...
10631 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10632 parameter, and make extern. Adjust.
10633 (tui_exec): Rename to ...
10634 (tui_interp::exec): ... this. Remove the 'data' parameter and
10635 make extern.
10636 (tui_interp_procs): Delete.
10637 (tui_interp_factory): Use "new".
10638
65c40c95
TT
106392017-02-02 Tom Tromey <tom@tromey.com>
10640
10641 * rust-exp.y (ends_raw_string, space_then_number)
10642 (rust_identifier_start_p): Return bool.
10643 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10644 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10645 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10646 (rust_chartype_p): Return bool.
10647 (val_print_struct, rust_print_struct_def, rust_print_type):
10648 Update.
10649 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10650 Return bool.
10651
b50f188d
TT
106522017-02-02 Tom Tromey <tom@tromey.com>
10653
10654 * rust-lang.c: Reindent.
10655
03c85b11
TT
106562017-02-02 Tom Tromey <tom@tromey.com>
10657
10658 * rust-lang.h (rust_crate_for_block): Update.
10659 * rust-lang.c (rust_crate_for_block): Return std::string.
10660 (rust_get_disr_info): Use std:;string, not
10661 gdb::unique_xmalloc_ptr.
10662 * rust-exp.y (crate_name): Update.
10663
9b6da501
PA
106642017-02-02 Pedro Alves <palves@redhat.com>
10665
10666 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10667 field out of gdb_disassembler_test and make it static.
10668
ec4cb20b
PA
106692017-02-02 Pedro Alves <palves@redhat.com>
10670
10671 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10672 mi1_interp and mi_interp fields.
10673
5be5dbf0
PA
106742017-02-02 Pedro Alves <palves@redhat.com>
10675
616268b6
PA
10676 * cli/cli-interp.c (struct saved_output_files, saved_output):
10677 Moved from cli/cli-logging.c.
10678 (cli_set_logging): New function.
10679 (cli_interp_procs): Install cli_set_logging.
10680 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10681 Declare.
10682 * cli/cli-logging.c (struct saved_output_files, saved_output):
10683 Moved to cli/cli-interp.c.
10684 (pop_output_files): Don't save outputs here.
10685 (make_logging_output): New function.
10686 (handle_redirections): Don't build tee nor save previous outputs
10687 here.
10688 * interps.c (current_interp_set_logging): Change prototype.
10689 Assume there's always a set_logging_proc method installed.
10690 * interps.h (interp_set_logging_ftype): Change prototype.
10691 (current_interp_set_logging): Change prototype and adjust comment.
10692 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10693 use make_logging_output.
10694 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
106952017-02-02 Pedro Alves <palves@redhat.com>
10696
5be5dbf0
PA
10697 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10698 from ...
10699 (set_logging_overwrite): ... here.
10700 (logging_no_redirect_file): Delete.
10701 (set_logging_redirect): Don't handle redirection on the fly.
10702 Instead warn that "logging off" / "logging on" is necessary.
10703 (pop_output_files): Delete references to logging_no_redirect_file.
10704 (show_logging_command): Always speak in terms of what will happen
10705 once logging is reenabled.
10706
c99cc448
PA
107072017-02-02 Pedro Alves <palves@redhat.com>
10708
10709 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10710
8b172ce7
PA
107112017-02-02 Pedro Alves <palves@redhat.com>
10712
10713 * disasm.c (gdb_pretty_print_insn): Rename to ...
10714 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10715 Remove gdbarch parameter. Adapt to clear the object's buffers
10716 instead of allocating new buffers, and to print using the object's
10717 gdb_disassembler instead of calling gdb_print_insn.
10718 (dump_insns): Use gdb_pretty_print_disassembler.
10719 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10720 (gdb_pretty_print_disassembler): New class.
10721 * record-btrace.c (btrace_insn_history): Use
10722 gdb_pretty_print_disassembler.
10723
d7e74731
PA
107242017-02-02 Pedro Alves <palves@redhat.com>
10725
10726 * ada-lang.c (type_as_string): Use string_file.
10727 * ada-valprint.c (ada_print_floating): Use string_file.
10728 * ada-varobj.c (ada_varobj_scalar_image)
10729 (ada_varobj_get_value_image): Use string_file.
10730 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10731 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10732 * breakpoint.c (update_inserted_breakpoint_locations)
10733 (insert_breakpoint_locations, reattach_breakpoints)
10734 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10735 (print_it_watchpoint): Use string_file.
10736 (save_breakpoints): Use stdio_file.
10737 * c-exp.y (oper): Use string_file.
10738 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10739 tee_file.
10740 (pop_output_files): Use delete.
10741 (handle_redirections): Use stdio_file and tee_file.
10742 * cli/cli-setshow.c (do_show_command): Use string_file.
10743 * compile/compile-c-support.c (c_compute_program): Use
10744 string_file.
10745 * compile/compile-c-symbols.c (generate_vla_size): Take a
10746 'string_file &' instead of a 'ui_file *'.
10747 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10748 of a 'ui_file *'. Use string_file.
10749 (generate_c_for_variable_locations): Take a 'string_file &'
10750 instead of a 'ui_file *'.
10751 * compile/compile-internal.h (generate_c_for_for_one_variable):
10752 Take a 'string_file &' instead of a 'ui_file *'.
10753 * compile/compile-loc2c.c (push, pushf, unary, binary)
10754 (print_label, pushf_register_address, pushf_register)
10755 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10756 'ui_file *'. Adjust.
10757 * compile/compile.c (compile_to_object): Use string_file.
10758 * compile/compile.h (compile_dwarf_expr_to_c)
10759 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10760 'ui_file *'.
10761 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10762 (replace_typedefs_qualified_name): Use string_file and
10763 obstack_copy0.
10764 * disasm.c (gdb_pretty_print_insn): Use string_file.
10765 (gdb_disassembly): Adjust reference the null_stream global.
10766 (do_ui_file_delete): Delete.
10767 (gdb_insn_length): Use null_stream.
10768 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10769 * dwarf2loc.c (dwarf2_compile_property_to_c)
10770 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10771 'string_file &' instead of a 'ui_file *'.
10772 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10773 * dwarf2read.c (do_ui_file_peek_last): Delete.
10774 (dwarf2_compute_name): Use string_file.
10775 * event-top.c (gdb_setup_readline): Use stdio_file.
10776 * gdbarch.sh (verify_gdbarch): Use string_file.
10777 * gdbtypes.c (safe_parse_type): Use null_stream.
10778 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10779 string_file.
10780 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10781 'string_file *' instead of a 'ui_file *'.
10782 (gdbscm_arch_disassemble): Use string_file.
10783 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10784 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10785 inherits from ui_file.
10786 (ioscm_file_port_delete, ioscm_file_port_rewind)
10787 (ioscm_file_port_put): Delete.
10788 (ioscm_file_port_write): Rename to ...
10789 (ioscm_file_port::write): ... this. Remove file_port_magic
10790 checks.
10791 (ioscm_file_port_new): Delete.
10792 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10793 ui_file_up.
10794 * guile/scm-type.c (tyscm_type_name): Use string_file.
10795 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10796 Use string_file.
10797 * infcmd.c (print_return_value_1): Use string_file.
10798 * infrun.c (print_target_wait_results): Use string_file.
10799 * language.c (add_language): Use string_file.
10800 * location.c (explicit_to_string_internal): Use string_file.
10801 * main.c (captured_main_1): Use null_file.
10802 * maint.c (maintenance_print_architecture): Use stdio_file.
10803 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10804 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10805 event_channel>: Change type to mi_console_file pointer.
10806 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10807 (mi_console_file_delete): Delete.
10808 (struct mi_console_file): Delete.
10809 (mi_console_file_magic): Delete.
10810 (mi_console_file_new): Delete.
10811 (mi_console_file::mi_console_file): New.
10812 (mi_console_file_delete): Delete.
10813 (mi_console_file_fputs): Delete.
10814 (mi_console_file::write): New.
10815 (mi_console_raw_packet): Delete.
10816 (mi_console_file::flush): New.
10817 (mi_console_file_flush): Delete.
10818 (mi_console_set_raw): Rename to ...
10819 (mi_console_file::set_raw): ... this.
10820 * mi/mi-console.h (class mi_console_file): New class.
10821 (mi_console_file_new, mi_console_set_raw): Delete.
10822 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10823 (mi_set_logging): Use delete and tee_file. Adjust.
10824 * mi/mi-main.c (output_register): Use string_file.
10825 (mi_cmd_data_evaluate_expression): Use string_file.
10826 (mi_cmd_data_read_memory): Use string_file.
10827 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10828 * mi/mi-out.c (mi_ui_out::main_stream): New.
10829 (mi_ui_out::rewind): Use main_stream and
10830 string_file.
10831 (mi_ui_out::put): Use main_stream and string_file.
10832 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10833 Allocate a 'string_file' instead.
10834 (mi_out_new): Don't allocate a mem_fileopen stream here.
10835 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10836 (mi_ui_out::main_stream): Declare method.
10837 * printcmd.c (eval_command): Use string_file.
10838 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10839 * python/py-arch.c (archpy_disassemble): Use string_file.
10840 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10841 * python/py-frame.c (frapy_str): Use string_file.
10842 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10843 Use string_file.
10844 * python/py-type.c (typy_str): Use string_file.
10845 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10846 * python/py-value.c (valpy_str): Use string_file.
10847 * record-btrace.c (btrace_insn_history): Use string_file.
10848 * regcache.c (regcache_print): Use stdio_file.
10849 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10850 * remote.c (escape_buffer): Use string_file.
10851 * rust-lang.c (rust_get_disr_info): Use string_file.
10852 * serial.c (serial_open_ops_1): Use stdio_file.
10853 (do_serial_close): Use delete.
10854 * stack.c (print_frame_arg): Use string_file.
10855 (print_frame_args): Remove local mem_fileopen stream, not used.
10856 (print_frame): Use string_file.
10857 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10858 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10859 Take a 'string_file *' instead of a 'ui_file *'.
10860 * top.c (new_ui): Use stdio_file and stderr_file.
10861 (free_ui): Use delete.
10862 (execute_command_to_string): Use string_file.
10863 (quit_confirm): Use string_file.
10864 * tracepoint.c (collection_list::append_exp): Use string_file.
10865 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10866 * tui/tui-file.c: Don't include "ui-file.h".
10867 (enum streamtype, struct tui_stream): Delete.
10868 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10869 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10870 (tui_file::tui_file): New method.
10871 (tui_file_fputs): Delete.
10872 (tui_file_get_strbuf): Delete.
10873 (tui_file::puts): New method.
10874 (tui_file_adjust_strbuf): Delete.
10875 (tui_file_flush): Delete.
10876 (tui_file::flush): New method.
10877 * tui/tui-file.h: Tweak intro comment.
10878 Include ui-file.h.
10879 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10880 (tui_file_adjust_strbuf): Delete declarations.
10881 (class tui_file): New class.
10882 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10883 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10884 (tui_register_format): Use string_stream.
10885 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10886 (tui_get_function_from_frame): Use string_file.
10887 * typeprint.c (type_to_string): Use string_file.
10888 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10889 (null_stream): New global.
10890 (ui_file_delete): Delete.
10891 (ui_file::ui_file): New.
10892 (null_file_isatty): Delete.
10893 (ui_file::~ui_file): New.
10894 (null_file_rewind): Delete.
10895 (ui_file::printf): New.
10896 (null_file_put): Delete.
10897 (null_file_flush): Delete.
10898 (ui_file::putstr): New.
10899 (null_file_write): Delete.
10900 (ui_file::putstrn): New.
10901 (null_file_read): Delete.
10902 (ui_file::putc): New.
10903 (null_file_fputs): Delete.
10904 (null_file_write_async_safe): Delete.
10905 (ui_file::vprintf): New.
10906 (null_file_delete): Delete.
10907 (null_file::write): New.
10908 (null_file_fseek): Delete.
10909 (null_file::puts): New.
10910 (ui_file_data): Delete.
10911 (null_file::write_async_safe): New.
10912 (gdb_flush, ui_file_isatty): Adjust.
10913 (ui_file_put, ui_file_rewind): Delete.
10914 (ui_file_write): Adjust.
10915 (ui_file_write_for_put): Delete.
10916 (ui_file_write_async_safe, ui_file_read): Adjust.
10917 (ui_file_fseek): Delete.
10918 (fputs_unfiltered): Adjust.
10919 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10920 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10921 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10922 (set_ui_file_data): Delete.
10923 (string_file::~string_file, string_file::write)
10924 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10925 (do_ui_file_as_string, ui_file_as_string): Delete.
10926 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10927 (struct mem_file): Delete.
10928 (mem_file_new): Delete.
10929 (stdio_file::stdio_file): New.
10930 (mem_file_delete): Delete.
10931 (stdio_file::stdio_file): New.
10932 (mem_fileopen): Delete.
10933 (stdio_file::~stdio_file): New.
10934 (mem_file_rewind): Delete.
10935 (stdio_file::set_stream): New.
10936 (mem_file_put): Delete.
10937 (stdio_file::open): New.
10938 (mem_file_write): Delete.
10939 (stdio_file_magic, struct stdio_file): Delete.
10940 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10941 (stdio_file::flush): New.
10942 (stdio_file_read): Rename to ...
10943 (stdio_file::read): ... this. Adjust.
10944 (stdio_file_write): Rename to ...
10945 (stdio_file::write): ... this. Adjust.
10946 (stdio_file_write_async_safe): Rename to ...
10947 (stdio_file::write_async_safe) ... this. Adjust.
10948 (stdio_file_fputs): Rename to ...
10949 (stdio_file::puts) ... this. Adjust.
10950 (stdio_file_isatty): Delete.
10951 (stdio_file_fseek): Delete.
10952 (stdio_file::isatty): New.
10953 (stderr_file_write): Rename to ...
10954 (stderr_file::write) ... this. Adjust.
10955 (stderr_file_fputs): Rename to ...
10956 (stderr_file::puts) ... this. Adjust.
10957 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10958 (stderr_file::stderr_file): New.
10959 (tee_file_magic): Delete.
10960 (struct tee_file): Delete.
10961 (tee_file::tee_file): New.
10962 (tee_file_new): Delete.
10963 (tee_file::~tee_file): New.
10964 (tee_file_delete): Delete.
10965 (tee_file_flush): Rename to ...
10966 (tee_file::flush): ... this. Adjust.
10967 (tee_file_write): Rename to ...
10968 (tee_file::write): ... this. Adjust.
10969 (tee_file::write_async_safe): New.
10970 (tee_file_fputs): Rename to ...
10971 (tee_file::puts): ... this. Adjust.
10972 (tee_file_isatty): Rename to ...
10973 (tee_file::isatty): ... this. Adjust.
10974 * ui-file.h (struct obstack, struct ui_file): Don't
10975 forward-declare.
10976 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10977 (ui_file_write_ftype)
10978 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10979 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10980 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10981 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10982 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10983 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10984 (set_ui_file_fseek): Delete.
10985 (ui_file_data, ui_file_delete, ui_file_rewind)
10986 (struct ui_file): New.
10987 (ui_file_up): New.
10988 (class null_file): New.
10989 (null_stream): Declare.
10990 (ui_file_write_for_put, ui_file_put): Delete.
10991 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10992 Delete.
10993 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10994 (gdb_fopen, tee_file_new): Delete.
10995 (struct string_file): New.
10996 (struct stdio_file): New.
10997 (stdio_file_up): New.
10998 (struct stderr_file): New.
10999 (class tee_file): New.
11000 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11001 of a 'ui_file *'. Adjust.
11002 * ui-out.h (class ui_out) <field_stream>: Likewise.
11003 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11004 (null_stream): Delete.
11005 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11006 Adjust.
11007 * utils.h (struct ui_file): Delete forward declaration..
11008 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11009 (error_stream): Take a 'string_file &' instead of a
11010 'ui_file *'.
11011 * varobj.c (varobj_value_get_print_value): Use string_file.
11012 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11013 * gdbarch.c: Regenerate.
11014
187808b0
PA
110152017-02-02 Pedro Alves <palves@redhat.com>
11016
11017 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11018 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11019 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11020 Adjust to call gdb_print_insn instead of
11021 gdb_disassembler::print_insn.
11022 (dump_insns, do_mixed_source_and_assembly_deprecated)
11023 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11024 'gdbarch' parameter. Remove gdb_disassembler parameter.
11025 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11026 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11027 declaration.
11028 (gdb_pretty_print_insn): Re-add declaration.
11029 * record-btrace.c (btrace_insn_history): Don't allocate a
11030 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11031
7a8eb317
SM
110322017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11033
11034 * disasm.h (gdb_disassembly): Remove file_string parameter.
11035 * disasm.c (gdb_disassembly): Likewise.
11036 * cli/cli-cmds.c (print_disassembly): Adapt.
11037 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11038 * stack.c (do_gdb_disassembly): Likewise.
11039
7346ef59
AA
110402017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11041
11042 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11043 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11044 targets. And if the implicit value is longer than needed, extract
11045 the first bytes instead of the "least significant" ones.
11046
cd4007e4
MM
110472017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11048
11049 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11050 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11051 (btrace_fetch): Assert can_access_registers_ptid.
11052 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11053 validate_registers_access.
11054
cf77c34e
MM
110552017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11056
11057 * gdbthread.h (can_access_registers_ptid): New.
11058 * thread.c (can_access_registers_ptid): New.
11059
be85ce7d
PA
110602017-02-01 Pedro Alves <palves@redhat.com>
11061
11062 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11063
29b0b251
PA
110642017-01-31 Pedro Alves <palves@redhat.com>
11065
11066 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11067 Fix typos.
11068
289b5b24
PA
110692017-01-31 Pedro Alves <palves@redhat.com>
11070
11071 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11072 not used.
11073
b47413b4
PA
110742017-01-31 Pedro Alves <palves@redhat.com>
11075
11076 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11077
60adb36c
PA
110782017-01-31 Pedro Alves <palves@redhat.com>
11079
11080 * common/scoped_restore.h
11081 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11082 change the value's parameter type to T2.
11083 (make_scoped_restore): Likewise.
11084
2735833d
WT
110852017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11086 Richard Henderson <rth@redhat.com>
11087
11088 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11089 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11090 GS_BASE for older kernels.
11091 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11092 GS_BASE for older kernels.
11093 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11094 and GS_BASE to the offset table.
11095 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11096 system register group.
11097 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11098 for older kernels.
11099 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11100 amd64 ABI.
11101 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11102 AMD64_GSBASE_REGNUM.
11103 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11104 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11105 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11106 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11107 i386/64bit-segments.xml in those rules.
11108 * features/i386/64bit-segments.xml: New file.
11109 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11110 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11111 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11112 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11113 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11114 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11115 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11116 * features/i386/amd64-avx-linux.c: Regenerated.
11117 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11118 * features/i386/amd64-avx-mpx.c: Regenerated.
11119 * features/i386/amd64-avx512-linux.c: Regenerated.
11120 * features/i386/amd64-linux.c: Regenerated.
11121 * features/i386/amd64-mpx-linux.c: Regenerated.
11122 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11123 * features/i386/i386-avx-mpx.c: Regenerated.
11124 * features/i386/x32-avx-linux.c: Regenerated.
11125 * features/i386/x32-avx512-linux.c: Regenerated.
11126 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11127 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11128 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11129 * regformats/i386/amd64-linux.dat: Regenerated.
11130 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11131 * regformats/i386/x32-avx-linux.dat: Regenerated.
11132 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11133 * regformats/i386/x32-linux.dat: Regenerated.
11134
8884e97e
WT
111352017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11136
11137 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11138 Set to AMD64_NUM_REGS.
11139
7005d26a
WT
111402017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11141
11142 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11143 that checks validity of a register number.
11144
4bd2e1b2
KC
111452017-01-27 Kees Cook <keescook@google.com>
11146
11147 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11148 fetch_fpregs if target has fpa registers.
11149 (arm_linux_store_inferior_registers): Call store_fpregs if target
11150 has fpa registers.
11151
7cf1de6c
AA
111522017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11153
11154 * cris-tdep.c (cris_gdbarch_init): Remove check for
11155 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11156
874a1c8c
AT
111572017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11158
11159 * corelow.c (get_core_register_section): Check for regset
11160 existence before checking for REGSET_VARIABLE_SIZE.
11161
d8b49cf0
YQ
111622017-01-26 Yao Qi <yao.qi@linaro.org>
11163 Pedro Alves <palves@redhat.com>
11164
11165 PR gdb/20939
11166 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11167 call memory_error, save memaddr instead.
11168 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11169 negative, cal memory_error.
11170 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11171
658ca58c
YQ
111722017-01-26 Yao Qi <yao.qi@linaro.org>
11173
11174 * disasm-selftests.c (memory_error_test): New function.
11175 (_initialize_disasm_selftests): Register memory_error_test.
11176
79843d45
YQ
111772017-01-26 Yao Qi <yao.qi@linaro.org>
11178
11179 * Makefile.in (SFILES): Add disasm-selftests.c and
11180 selftest-arch.c.
11181 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11182 * disasm-selftests.c: New file.
11183 * selftest-arch.c: New file.
11184 * selftest-arch.h: New file.
11185
8cafda32
YQ
111862017-01-26 Yao Qi <yao.qi@linaro.org>
11187
11188 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11189 to bfd_arch_mep. Don't return 0 if section is not
11190 found. Call print_insn_mep.
11191
e47ad6c0
YQ
111922017-01-26 Pedro Alves <palves@redhat.com>
11193 Yao Qi <yao.qi@linaro.org>
11194
11195 * arm-tdep.c: Include "disasm.h".
11196 (gdb_print_insn_arm): Update code to get gdbarch.
11197 * disasm.c (dis_asm_read_memory): Change it to
11198 gdb_disassembler::dis_asm_read_memory.
11199 (dis_asm_memory_error): Likewise.
11200 (dis_asm_print_address): Likewise.
11201 (gdb_pretty_print_insn): Change it to
11202 gdb_disassembler::pretty_print_insn.
11203 (dump_insns): Add one argument gdb_disassemlber. All
11204 callers updated.
11205 (do_mixed_source_and_assembly_deprecated): Likewise.
11206 (do_mixed_source_and_assembly): Likewise.
11207 (do_assembly_only): Likewise.
11208 (gdb_disassembler::gdb_disassembler): New.
11209 (gdb_disassembler::print_insn): New.
11210 * disasm.h (class gdb_disassembler): New.
11211 (gdb_pretty_print_insn): Remove declaration.
11212 (gdb_disassemble_info): Likewise.
11213 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11214 (gdbscm_disasm_read_memory_worker): Update.
11215 (gdbscm_disasm_read_memory): Update.
11216 (gdbscm_disasm_memory_error): Remove.
11217 (gdbscm_disasm_print_address): Remove.
11218 (gdbscm_disassembler::gdbscm_disassembler): New.
11219 (gdbscm_print_insn_from_port): Update.
11220 * mips-tdep.c: Include disasm.h.
11221 (gdb_print_insn_mips): Update code to get gdbarch.
11222 * record-btrace.c (btrace_insn_history): Update.
11223 * spu-tdep.c: Include disasm.h.
11224 (struct spu_dis_asm_data): Remove.
11225 (struct spu_dis_asm_info): New.
11226 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11227 SPU id.
11228 (gdb_print_insn_spu): Cast disassemble_info to
11229 spu_dis_asm_info.
11230
80d75874
YQ
112312017-01-26 Yao Qi <yao.qi@linaro.org>
11232
11233 * disasm.c (do_ui_file_delete): Delete.
11234 (gdb_insn_length): Move code creating stream to ...
11235 * utils.c (null_stream): ... here. New function.
11236 * utils.h (null_stream): Declare.
11237
60685cd0
SM
112382017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11239
11240 * python/py-inferior.c (find_thread_object): Return directly
11241 from the loop. Remove "found" variable.
11242
eb1cdb62
JB
112432017-01-21 Joel Brobecker <brobecker@adacore.com>
11244
11245 GDB 7.12.1 released.
11246
b1ce6568
SM
112472017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11248
11249 * python/py-function.c (fnpy_call): Reorder declarations to have
11250 the gdbpy_enter object declared first.
11251 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11252
6f8b0407
SM
112532017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11254
fec93fb1 11255 PR python/21068
6f8b0407
SM
11256 * python/python-internal.h (PyMem_RawMalloc): Define for
11257 Python < 3.4.
11258 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11259 PyMem_RawMalloc instead of PyMem_Malloc.
11260
78cbbba8
LM
112612017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11262 Luis Machado <lgustavo@codesourcery.com>
11263
11264 * NEWS (New commands): Mention flash-erase.
11265 (New MI commands): Mention target-flash-erase.
11266 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11267 command.
11268 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11269 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11270 * target.c (flash_erase_command): New function.
11271 (initialize_targets): Add new flash-erase command.
11272 * target.h (flash_erase_command): New declaration.
11273
2132fe85
JB
112742017-01-20 Joel Brobecker <brobecker@adacore.com>
11275
11276 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11277 HAVE_SYS_PROCFS_H is defined.
11278
d1dff226
AH
112792017-01-18 Alan Hayward <alan.hayward@arm.com>
11280
11281 * remote.c (struct cached_reg): Change data into a pointer.
11282 * (stop_reply_dtr): Free data pointers before deleting vector.
11283 (process_stop_reply): Likewise.
11284 (remote_parse_stop_reply): Allocate space for data
11285
9890e433
AH
112862017-01-18 Alan Hayward <alan.hayward@arm.com>
11287
11288 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11289 MAX_REGISTER_SIZE.
11290 (amd64_pseudo_register_read_value): Likewise.
11291 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11292 (store_register_using_P): Likewise.
11293 * regcache.c (regcache_xfer_part): Likewise.
11294
7a36499a
IR
112952017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11296
11297 Split real and pseudo registers.
11298 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11299 (sparc32_pseudo_regnum): New enum.
11300 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11301 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11302 (SPARC32_CP0_REGISTERS): New macro.
11303 (sparc32_pseudo_register_name): New function.
11304 (sparc32_register_name): Use sparc32_pseudo_register_name.
11305 (sparc32_pseudo_register_type): New function.
11306 (sparc32_register_type): Use sparc32_pseudo_register_type.
11307 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11308 pseudo register numbers.
11309 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11310 (SPARC64_CP0_REGISTERS): New macro.
11311 (sparc64_pseudo_register_name): New function.
11312 (sparc64_register_name): Use sparc64_pseudo_register_name.
11313 (sparc64_pseudo_register_type): New function.
11314 (sparc64_register_type): Use sparc64_pseudo_register_type.
11315 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11316 pseudo register numbers.
11317 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11318 sparc64_store_arguments): Handle pseudo register numbers.
11319
6f8976bf
YQ
113202017-01-13 Yao Qi <yao.qi@linaro.org>
11321
11322 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11323 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11324 output.
11325 (getpkt_or_notif_sane_1): Likewise.
11326
e4241ace
YQ
113272017-01-13 Yao Qi <yao.qi@linaro.org>
11328
11329 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11330 of CC. Pass "-x c++-header" instead of "-x c".
11331
3015c064
SM
113322017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11333
11334 * remote.c (remote_can_async_p): Update comment.
11335
fde1b17d
SM
113362017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11337
11338 * linux-nat.c (linux_nat_can_async_p): Update comment.
11339
ca1ca08b
SM
113402017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11341
11342 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11343
4ad2da73
SM
113442017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11345
11346 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11347
c8b23b3f
TT
113482017-01-10 Tom Tromey <tom@tromey.com>
11349
11350 * python/py-type.c (typy_legacy_template_argument): Update.
11351 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11352 ~demangle_parse_info): Declare new members.
11353 (cp_demangled_name_to_comp): Return unique_ptr.
11354 (cp_demangled_name_parse_free)
11355 (make_cleanup_cp_demangled_name_parse_free)
11356 (cp_new_demangle_parse_info): Remove.
11357 * cp-support.c (do_demangled_name_parse_free_cleanup)
11358 (make_cleanup_cp_demangled_name_parse_free): Remove.
11359 (inspect_type, cp_canonicalize_string_full)
11360 (cp_canonicalize_string): Update.
11361 (mangled_name_to_comp): Change return type.
11362 (cp_class_name_from_physname, method_name_from_physname)
11363 (cp_func_name, cp_remove_params): Update.
11364 * cp-name-parser.y (demangle_parse_info): New constructor, from
11365 cp_new_demangle_parse_info.
11366 (~demangle_parse_info): New destructor, from
11367 cp_demangled_name_parse_free.
11368 (cp_merge_demangle_parse_infos): Update.
11369 (cp_demangled_name_to_comp): Change return type.
11370
1ac32117
TT
113712017-01-10 Tom Tromey <tom@tromey.com>
11372
11373 * top.c (prevent_dont_repeat): Change return type.
11374 * python/python.c (execute_gdb_command): Use std::string.
11375 Update.
11376 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11377 * command.h (prevent_dont_repeat): Change return type.
11378 * breakpoint.c (bpstat_do_actions_1): Update.
11379
0cf08227
TT
113802017-01-10 Tom Tromey <tom@tromey.com>
11381
11382 * value.h (scoped_value_mark::~scoped_value_mark): Call
11383 free_to_mark.
11384 (scoped_value_mark::free_to_mark): New method.
11385 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11386 scoped_value_mark.
11387
eb115069
TT
113882017-01-10 Tom Tromey <tom@tromey.com>
11389
11390 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11391 (valpy_reference_value, valpy_const_value, valpy_get_address)
11392 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11393 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11394 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11395 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11396 scoped_value_mark.
11397 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11398 * value.h (scoped_value_mark): New class.
11399
906768f9
TT
114002017-01-10 Tom Tromey <tom@tromey.com>
11401
11402 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11403 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11404 * psymtab.c (discard_psymtabs_upto): Remove.
11405 (make_cleanup_discard_psymtabs): Remove.
11406 (struct psymtab_state): Remove.
11407
bef155c3
TT
114082017-01-10 Tom Tromey <tom@tromey.com>
11409
11410 * record-full.c (record_full_save_cleanups): Remove.
11411 (record_full_save): Use gdb::unlinker.
11412 * gcore.c (do_bfd_delete_cleanup): Remove.
11413 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11414 cleanups.
11415 * dwarf2read.c (unlink_if_set): Remove.
11416 (write_psymtabs_to_index): Use gdb::unlinker.
11417 * common/gdb_unlinker.h: New file.
11418
192b62ce
TT
114192017-01-10 Tom Tromey <tom@tromey.com>
11420
11421 * windows-tdep.c (windows_xfer_shared_library): Update.
11422 * windows-nat.c (windows_make_so): Update.
11423 * utils.h (make_cleanup_bfd_unref): Remove.
11424 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11425 * symfile.h (symfile_bfd_open)
11426 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11427 * symfile.c (read_symbols, symbol_file_add)
11428 (separate_debug_file_exists): Update.
11429 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11430 (generic_load, reread_symbols): Update.
11431 * symfile-mem.c (symbol_file_add_from_memory): Update.
11432 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11433 (spu_symbol_file_add_from_memory): Update.
11434 * solist.h (struct target_so_ops) <bfd_open>: Return
11435 gdb_bfd_ref_ptr.
11436 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11437 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11438 gdb_bfd_ref_ptr.
11439 (solib_map_sections, reload_shared_libraries_1): Update.
11440 * solib-svr4.c (enable_break): Update.
11441 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11442 * solib-frv.c (enable_break2): Update.
11443 * solib-dsbt.c (enable_break): Update.
11444 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11445 gdb_bfd_ref_ptr.
11446 (darwin_solib_get_all_image_info_addr_at_init): Update.
11447 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11448 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11449 * record-full.c (record_full_save): Update.
11450 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11451 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11452 * minidebug.c (find_separate_debug_file_in_section): Return
11453 gdb_bfd_ref_ptr.
11454 * machoread.c (macho_add_oso_symfile): Change abfd to
11455 gdb_bfd_ref_ptr.
11456 (macho_symfile_read_all_oso): Update.
11457 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11458 (macho_symfile_read): Update.
11459 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11460 (jit_bfd_try_read_symtab): Update.
11461 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11462 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11463 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11464 gdb_bfd_ref_ptr.
11465 (gdb_bfd_ref_policy): New struct.
11466 (gdb_bfd_ref_ptr): New typedef.
11467 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11468 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11469 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11470 gdb_bfd_ref_ptr.
11471 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11472 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11473 (gcore_command): Update.
11474 * exec.c (exec_file_attach): Update.
11475 * elfread.c (elf_symfile_read): Update.
11476 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11477 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11478 (open_and_init_dwo_file): Update.
11479 (open_dwp_file): Return gdb_bfd_ref_ptr.
11480 (open_and_init_dwp_file): Update.
11481 * corelow.c (core_open): Update.
11482 * compile/compile-object-load.c (compile_object_load): Update.
11483 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11484 * coffread.c (coff_symfile_read): Update.
11485 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11486 gdb_bfd_ref_ptr. Rename.
11487 (dump_bfd_file, restore_command): Update.
11488 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11489 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11490 (find_separate_debug_file_by_buildid): Update.
11491
50315b21
TT
114922017-01-10 Tom Tromey <tom@tromey.com>
11493
11494 * common/gdb_ref_ptr.h: New file.
11495 * python/py-ref.h (struct gdbpy_ref_policy): New.
11496 (gdbpy_ref): Now a typedef.
11497
fc4007c9
TT
114982017-01-10 Tom Tromey <tom@tromey.com>
11499
11500 * utils.h (make_cleanup_htab_delete): Don't declare.
11501 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11502 Remove.
11503 * linespec.c (decode_compound_collector): Add constructor,
11504 destructor.
11505 (lookup_prefix_sym): Remove cleanup.
11506 (symtab_collector): Add constructor, destructor.
11507 (collect_symtabs_from_filename): Remove cleanup.
11508 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11509 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11510 Use htab_up.
11511 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11512 * dwarf2read.c (dw2_expand_symtabs_matching)
11513 (dw2_map_symbol_filenames, dwarf_decode_macros)
11514 (write_psymtabs_to_index): Use htab_up.
11515 * dwarf2loc.c (func_verify_no_selftailcall)
11516 (call_site_find_chain_1, func_verify_no_selftailcall)
11517 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11518 std::vector, gdb::unique_xmalloc_ptr.
11519 (call_sitep): Remove typedef.
11520 (dwarf2_locexpr_baton_eval): Remove unused variable.
11521
8dbcee67
TT
115222017-01-10 Tom Tromey <tom@tromey.com>
11523
11524 * python/python-internal.h (make_cleanup_py_decref)
11525 (make_cleanup_py_xdecref): Don't declare.
11526 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11527 (py_xdecref, make_cleanup_py_xdecref): Remove.
11528
13df46cc
TT
115292017-01-10 Tom Tromey <tom@tromey.com>
11530
11531 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11532 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11533
06fc9bf7
TT
115342017-01-10 Tom Tromey <tom@tromey.com>
11535
11536 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11537
830a4934
TT
115382017-01-10 Tom Tromey <tom@tromey.com>
11539
11540 * python/py-utils.c (unicode_to_encoded_string)
11541 (python_string_to_target_string)
11542 (python_string_to_target_python_string)
11543 (python_string_to_host_string, gdbpy_obj_to_string)
11544 (get_addr_from_python): Use gdbpy_ref.
11545
4586d543
TT
115462017-01-10 Tom Tromey <tom@tromey.com>
11547
11548 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11549 gdbpy_ref.
11550
59876f8f
TT
115512017-01-10 Tom Tromey <tom@tromey.com>
11552
11553 * python/python.c (eval_python_command, gdbpy_decode_line)
11554 (gdbpy_run_events, gdbpy_start_type_printers)
11555 (gdbpy_apply_type_printers): Use gdbpy_ref.
11556
97d83487
TT
115572017-01-10 Tom Tromey <tom@tromey.com>
11558
11559 * python/py-param.c (get_doc_string, compute_enum_values): Use
11560 gdbpy_ref.
11561
9205649a
TT
115622017-01-10 Tom Tromey <tom@tromey.com>
11563
11564 * python/py-inferior.c (find_thread_object, build_inferior_list):
11565 Use gdbpy_ref.
11566
74c49d45
TT
115672017-01-10 Tom Tromey <tom@tromey.com>
11568
11569 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11570
16361ffb
TT
115712017-01-10 Tom Tromey <tom@tromey.com>
11572
11573 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11574 gdbpy_ref.
11575
905f2cca
TT
115762017-01-10 Tom Tromey <tom@tromey.com>
11577
11578 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11579 extra incref.
11580 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11581 Use gdbpy_ref.
11582
64081434
TT
115832017-01-10 Tom Tromey <tom@tromey.com>
11584
11585 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11586 gdbpy_ref.
11587
59e9e831
TT
115882017-01-10 Tom Tromey <tom@tromey.com>
11589
11590 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11591 decref results of PyArg_ParseTupleAndKeywords.
11592
9de10f6d
TT
115932017-01-10 Tom Tromey <tom@tromey.com>
11594
11595 * python/python.c (python_run_simple_file): Use
11596 unique_xmalloc_ptr, gdbpy_ref.
11597
2bd5759d
TT
115982017-01-10 Tom Tromey <tom@tromey.com>
11599
11600 * python/py-prettyprint.c (print_stack_unless_memory_error)
11601 (print_string_repr, print_children): Use gdbpy_ref.
11602 (dummy_python_frame): New class.
11603 (dummy_python_frame::dummy_python_frame): Rename from
11604 push_dummy_python_frame.
11605 (py_restore_tstate): Remove.
11606
3b4e0e01
TT
116072017-01-10 Tom Tromey <tom@tromey.com>
11608
11609 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11610
17a22718
TT
116112017-01-10 Tom Tromey <tom@tromey.com>
11612
11613 * python/python.c (ensure_python_env, restore_python_env):
11614 Remove.
11615 * python/python-internal.h (ensure_python_env): Don't declare.
11616 * varobj.h (varobj_ensure_python_env): Don't declare.
11617 * varobj.c (varobj_ensure_python_env): Remove.
11618
68cdc557
TT
116192017-01-10 Tom Tromey <tom@tromey.com>
11620
11621 * varobj.c (varobj_value_get_print_value): Use
11622 gdbpy_enter_varobj.
11623
1eba6383
TT
116242017-01-10 Tom Tromey <tom@tromey.com>
11625
11626 * python/py-prettyprint.c (print_string_repr, print_children):
11627 Update.
11628 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11629 of "encoding".
11630 * varobj.c (varobj_value_get_print_value): Update.
11631 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11632
bde7b3e3
TT
116332017-01-10 Tom Tromey <tom@tromey.com>
11634
11635 * varobj.c (varobj_get_display_hint)
11636 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11637 (varobj_set_visualizer, free_variable): Use
11638 gdbpy_enter_varobj.
11639
a7785f8c
TT
116402017-01-10 Tom Tromey <tom@tromey.com>
11641
11642 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11643 (do_finish_initialization): New function. Use gdbpy_ref.
11644 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11645 do_finish_initialization.
11646
2865bfce
TT
116472017-01-10 Tom Tromey <tom@tromey.com>
11648
11649 * python/py-param.c (get_set_value, get_show_value): Use
11650 gdbpy_enter, gdbpy_ref.
11651
0e9dcc75
TT
116522017-01-10 Tom Tromey <tom@tromey.com>
11653
11654 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11655
12a5cedd
TT
116562017-01-10 Tom Tromey <tom@tromey.com>
11657
11658 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11659
788f2586
TT
116602017-01-10 Tom Tromey <tom@tromey.com>
11661
11662 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11663 Use gdbpy_enter_varobj.
11664
6cd67bea
TT
116652017-01-10 Tom Tromey <tom@tromey.com>
11666
11667 * varobj.c (gdbpy_enter_varobj): New constructor.
11668 * python/python-internal.h (gdbpy_enter_varobj): New class.
11669 * python/py-varobj.c (py_varobj_get_iterator): Use
11670 gdbpy_enter_varobj.
11671
14b122bf
TT
116722017-01-10 Tom Tromey <tom@tromey.com>
11673
11674 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11675 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11676 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11677 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11678 unique_xmalloc_ptr.
11679 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11680
bf1ca3b9
TT
116812017-01-10 Tom Tromey <tom@tromey.com>
11682
11683 * python/py-xmethods.c (invoke_match_method): Use
11684 gdbpy_ref.
11685
572a5524
TT
116862017-01-10 Tom Tromey <tom@tromey.com>
11687
11688 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11689 gdbpy_enter, gdbpy_ref.
11690
396a78b6
TT
116912017-01-10 Tom Tromey <tom@tromey.com>
11692
11693 * python/python.c (python_interactive_command): Use gdbpy_enter.
11694
a88b13c7
TT
116952017-01-10 Tom Tromey <tom@tromey.com>
11696
11697 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11698 gdbpy_ref.
11699
e9f0c363
TT
117002017-01-10 Tom Tromey <tom@tromey.com>
11701
11702 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11703 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11704
6349f452
TT
117052017-01-10 Tom Tromey <tom@tromey.com>
11706
11707 * utils.h (htab_deleter): New struct.
11708 (htab_up): New typedef.
11709 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11710 gdbpy_enter, gdbpy_ref, htab_up.
11711
c0171de6
TT
117122017-01-10 Tom Tromey <tom@tromey.com>
11713
11714 * python/py-unwind.c (pending_frame_invalidate): Remove.
11715 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11716
f18e226f
TT
117172017-01-10 Tom Tromey <tom@tromey.com>
11718
11719 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11720 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11721
c57af3f1
TT
117222017-01-10 Tom Tromey <tom@tromey.com>
11723
11724 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11725
60e600ec
TT
117262017-01-10 Tom Tromey <tom@tromey.com>
11727
11728 * python/python.c (gdbpy_eval_from_control_command)
11729 (gdbpy_source_script, gdbpy_run_events)
11730 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11731 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11732 gdbpy_enter.
11733
bf7da5b0
TT
117342017-01-10 Tom Tromey <tom@tromey.com>
11735
11736 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11737
2d38bced
TT
117382017-01-10 Tom Tromey <tom@tromey.com>
11739
11740 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11741
07bc7329
TT
117422017-01-10 Tom Tromey <tom@tromey.com>
11743
11744 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11745 (python_on_inferior_call_pre, python_on_inferior_call_post)
11746 (python_on_memory_change, python_on_register_change)
11747 (python_inferior_exit, python_new_objfile, add_thread_object)
11748 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11749
6e7c365e
TT
117502017-01-10 Tom Tromey <tom@tromey.com>
11751
11752 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11753 (bpfinishpy_handle_exit): Use gdbpy_enter.
11754
6ba0cd40
TT
117552017-01-10 Tom Tromey <tom@tromey.com>
11756
11757 * python/py-cmd.c (cmdpy_destroyer)
11758 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11759 gdbpy_enter.
11760
de2dc875
TT
117612017-01-10 Tom Tromey <tom@tromey.com>
11762
11763 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11764 gdbpy_enter.
11765 (gdbpy_breakpoint_has_cond): Likewise.
11766
4ecee2c4
TT
117672017-01-10 Tom Tromey <tom@tromey.com>
11768
11769 * python/python.c (gdbpy_enter): New constructor.
11770 (~gdbpy_enter): New destructor.
11771 (restore_python_env, ensure_python_env): Rewrite.
11772 * python/python-internal.h (gdbpy_enter): New class.
11773
37fce74f
TT
117742017-01-10 Tom Tromey <tom@tromey.com>
11775
11776 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11777
53a0cca3
TT
117782017-01-10 Tom Tromey <tom@tromey.com>
11779
11780 * python/py-value.c (value_has_field, get_field_flag)
11781 (get_field_type, valpy_getitem, convert_value_from_python): Use
11782 gdbpy_ref.
11783
ff3724f5
TT
117842017-01-10 Tom Tromey <tom@tromey.com>
11785
11786 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11787 gdbpy_ref.
11788
0700aea5
TT
117892017-01-10 Tom Tromey <tom@tromey.com>
11790
11791 * python/py-prettyprint.c (search_pp_list)
11792 (find_pretty_printer_from_objfiles)
11793 (find_pretty_printer_from_progspace)
11794 (find_pretty_printer_from_gdb, find_pretty_printer)
11795 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11796 gdbpy_ref.
11797
1bb44c9f
TT
117982017-01-10 Tom Tromey <tom@tromey.com>
11799
11800 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11801
87ce03fd
TT
118022017-01-10 Tom Tromey <tom@tromey.com>
11803
11804 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11805 (ltpy_get_all_source_lines): Use gdbpy_ref.
11806
ee0a3fb8
TT
118072017-01-10 Tom Tromey <tom@tromey.com>
11808
11809 * python/py-framefilter.c (extract_sym, extract_value)
11810 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11811 gdbpy_ref.
11812
bf2a52fa
TT
118132017-01-10 Tom Tromey <tom@tromey.com>
11814
11815 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11816
f59fe7f8
TT
118172017-01-10 Tom Tromey <tom@tromey.com>
11818
11819 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11820
80bd970a
TT
118212017-01-10 Tom Tromey <tom@tromey.com>
11822
11823 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11824 gdbpy_ref.
11825
d1b3de2e
TT
118262017-01-10 Tom Tromey <tom@tromey.com>
11827
11828 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11829
3bb43384
TT
118302017-01-10 Tom Tromey <tom@tromey.com>
11831
11832 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11833 (typy_range): Use gdbpy_ref.
11834
abf5651e
TT
118352017-01-10 Tom Tromey <tom@tromey.com>
11836
11837 * python/py-threadevent.c (create_thread_event_object): Use
11838 gdbpy_ref.
11839 * python/py-stopevent.c (create_stop_event_object): Simplify.
11840 (emit_stop_event): Use gdbpy_ref.
11841 * python/py-signalevent.c (create_signal_event_object): Use
11842 gdbpy_ref.
11843 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11844 (emit_new_objfile_event, create_clear_objfiles_event_object)
11845 (emit_clear_objfiles_event): Use gdbpy_ref.
11846 * python/py-infevents.c (create_inferior_call_event_object)
11847 (create_register_changed_event_object)
11848 (create_memory_changed_event_object, emit_inferior_call_event)
11849 (emit_memory_changed_event, emit_register_changed_event): Use
11850 gdbpy_ref.
11851 * python/py-exitedevent.c (create_exited_event_object)
11852 (emit_exited_event): Use gdbpy_ref.
11853 * python/py-event.h (evpy_emit_event): Remove
11854 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11855 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11856 * python/py-continueevent.c (emit_continue_event): Use
11857 gdbpy_ref.
11858 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11859 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11860 gdbpy_ref.
11861 * python/py-bpevent.c (create_breakpoint_event_object): Use
11862 gdbpy_ref.
11863
a68ff33e
TT
118642017-01-10 Tom Tromey <tom@tromey.com>
11865
11866 * python/py-ref.h: New file.
11867
7becfd03
SM
118682017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11869
11870 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11871 void.
11872 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11873 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11874 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11875 * ui-out.c (ui_out::redirect): Likewise.
11876 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11877 * cli/cli-logging.c (set_logging_redirect): Update call site of
11878 ui_out::redirect.
11879 (handle_redirections): Likewise.
11880 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11881 * top.c (execute_command_to_string): Likewise.
11882 * utils.c (do_ui_out_redirect_pop): Likewise.
11883
df294654
SM
118842017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11885
11886 * stack.c (_initialize_stack): Update "frame" command help message.
11887
f5e6296e
IB
118882017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11889
11890 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11891
0e2d6fa6
YQ
118922017-01-06 Yao Qi <yao.qi@linaro.org>
11893
11894 * x86-linux-nat.h: Include gdb_proc_service.h.
11895
44d6d3f9
YQ
118962017-01-06 Yao Qi <yao.qi@linaro.org>
11897
11898 * ser-base.h: Include serial.h.
11899
656731fe
YQ
119002017-01-06 Yao Qi <yao.qi@linaro.org>
11901
11902 * ppc-linux-tdep.h: Include ppc-tdep.h.
11903
1ca8f924
YQ
119042017-01-06 Yao Qi <yao.qi@linaro.org>
11905
11906 * nat/amd64-linux-siginfo.h: Include signal.h.
11907
bc3008c4
YQ
119082017-01-06 Yao Qi <yao.qi@linaro.org>
11909
11910 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11911
66c80d03
YQ
119122017-01-06 Yao Qi <yao.qi@linaro.org>
11913
11914 * mi/mi-parse.h: Include mi-cmds.h.
11915
051d2dda
YQ
119162017-01-06 Yao Qi <yao.qi@linaro.org>
11917
11918 * inf-loop.c: Don't include "target.h".
11919 * inf-loop.h: Include it here.
11920
8018d34f
YQ
119212017-01-06 Yao Qi <yao.qi@linaro.org>
11922
11923 * dfp.h: Include "dboulest.h" and "expression.h".
11924
c0b8369c
YQ
119252017-01-06 Yao Qi <yao.qi@linaro.org>
11926
11927 * ax-gdb.h: Include "ax.h".
11928
ad5cba2a
YQ
119292017-01-06 Yao Qi <yao.qi@linaro.org>
11930
11931 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11932 with nat/gdb_ptrace.h.
11933
1c33cd7f
YQ
119342017-01-05 Yao Qi <yao.qi@linaro.org>
11935
11936 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11937 new line.
11938 (mips64_fbsd_sigframe_init): Likewise.
11939
c988ac1d
JB
119402017-01-04 John Baldwin <jhb@FreeBSD.org>
11941
11942 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11943 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11944
b268007c
JB
119452017-01-04 John Baldwin <jhb@FreeBSD.org>
11946
11947 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11948 * NEWS: Mention new FreeBSD/mips native configuration.
11949 * config/mips/fbsd.mh: New file.
11950 * configure.host: Add mips*-*-freebsd*.
11951 * mips-fbsd-nat.c: New file.
11952
387360da
JB
119532017-01-04 John Baldwin <jhb@FreeBSD.org>
11954
11955 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11956 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11957 * NEWS: Mention new FreeBSD/mips target.
11958 * configure.tgt: Add mips*-*-freebsd*.
11959 * mips-fbsd-tdep.c: New file.
11960 * mips-fbsd-tdep.h: New file.
11961
2aaaf250
YQ
119622017-01-04 Yao Qi <yao.qi@linaro.org>
11963
11964 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11965 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11966
61baf725
JB
119672017-01-01 Joel Brobecker <brobecker@adacore.com>
11968
6dbb839a 11969 Update copyright year range in all GDB files.
61baf725 11970
c113e7ff 119712017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 11972
c113e7ff 11973 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 11974
c113e7ff 11975For older changes see ChangeLog-2016.
c906108c
SS
11976\f
11977Local Variables:
11978mode: change-log
11979left-margin: 8
11980fill-column: 74
11981version-control: never
57da7796 11982coding: utf-8
c906108c 11983End:
This page took 2.656119 seconds and 4 git commands to generate.