Remove cleanup from display_gdb_prompt
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
606aae8a
TT
12017-09-29 Tom Tromey <tom@tromey.com>
2
3 * event-top.c (top_level_prompt): Return std::string.
4 (display_gdb_prompt): Update.
5
bd413795
TT
62017-09-29 Tom Tromey <tom@tromey.com>
7
8 * unittests/common-utils-selftests.c (format): New function.
9 (string_vprintf_tests): New function.
10 (_initialize_common_utils_selftests): Register new tests.
11 * common/common-utils.c (string_vprintf): New function.
12 * common/common-utils.h (string_vprintf): Declare.
13
256642e8
PA
142017-09-29 Pedro Alves <palves@redhat.com>
15
16 * common/rsp-low.c (unpack_varlen_hex): Constify.
17 * common/rsp-low.h (unpack_varlen_hex): Constify.
18 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
19 Constify.
20 * remote.c (remote_set_permissions, read_ptid)
21 (remote_current_thread, remote_get_threads_with_qthreadinfo)
22 (remote_static_tracepoint_marker_at)
23 (remote_static_tracepoint_markers_by_strid)
24 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
25 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
26 (parse_tracepoint_definition, parse_tsv_definition)
27 (parse_static_tracepoint_marker_definition): Constify.
28 * tracepoint.h (parse_static_tracepoint_marker_definition)
29 (parse_trace_status, parse_tracepoint_status)
30 (parse_tracepoint_definition, parse_tsv_definition): Constify.
31
b6bb3468
PA
322017-09-29 Pedro Alves <palves@redhat.com>
33
34 * remote.c (target_buf, target_buf_size): Delete.
35 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
36 Use the connection's packet buffer instead.
37 All callers adjusted.
38 (_initialize_remote): Remove references to target_buf and
39 target_buf_size.
40
b2f8eb7a
PA
412017-09-28 Pedro Alves <palves@redhat.com>
42
43 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
44 unittests/common-utils-selftests.c.
45 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
46 (COMMON_OBS): Remove utils-selftests.o.
47 * utils-selftests.c: Move to ...
48 * unittests/common-utils-selftests.c: ... here and rename self
49 test to "string_printf".
50
08302ed2
DE
512017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
52
53 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
54 having NULL cus or tus.
55
96a5a1d3
UW
562017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
57
58 * arm-tdep.c: (convert_from_extended): Remove.
59 (convert_to_extended): Likewise.
60 (arm_extract_return_value): Use convert_typed_floating.
61 (arm_store_return_value): Likewise.
62
63 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
64 * sh-tdep.c: Do not include "floatformat.h".
65 (sh_littlebyte_bigword_type): New function.
66 (sh_register_convert_to_virtual): Use convert_typed_floating.
67 (sh_register_convert_to_raw): Likewise.
68 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
69 (sh64_littlebyte_bigword_type): New function.
70 (sh64_extract_return_value): Use convert_typed_floating.
71 (sh64_register_convert_to_virtual): Likewise.
72 (sh64_register_convert_to_raw): Likewise.
73
0db7851f
UW
742017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
75
76 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
77 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
78
79 * gdbtypes.h (union type_specific): Make field floatformat hold
80 just a single struct floatformat, not an array.
81 (floatformat_from_type): Move here.
82 * gdbtypes.c (floatformat_from_type): Move here. Update to
83 changed TYPE_FLOATFORMAT definition.
84 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
85 (recursive_dump_type): Likewise.
86 (init_float_type): Install correct floatformat for byte order.
87 (arch_float_type): Likewise.
88
77b7c781
UW
892017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
90
91 * gdbtypes.c (init_type): Change incoming argument from
92 length-in-bytes to length-in-bits. Assert length is a
93 multiple of TARGET_CHAR_BITS.
94 (arch_type, arch_flags_type): Likewise.
95 (init_integer_type): Update call to init_type.
96 (init_character_type): Likewise.
97 (init_boolean_type): Likewise.
98 (init_float_type): Likewise.
99 (init_decfloat_type): Likewise.
100 (init_complex_type): Likewise.
101 (init_pointer_type): Likewise.
102 (objfile_type): Likewise.
103 (arch_integer_type): Update call to arch_type.
104 (arch_character_type): Likewise.
105 (arch_boolean_type): Likewise.
106 (arch_float_type): Likewise.
107 (arch_decfloat_type): Likewise.
108 (arch_complex_type): Likewise.
109 (arch_pointer_type): Likewise.
110 (gdbtypes_post_init): Likewise.
111
112 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
113 (read_base_type): Likewise.
114 * mdebugread.c (basic_type): Likewise.
115 * stabsread.c (dbx_init_float_type): Likewise.
116 (rs6000_builtin_type): Likewise.
117 (read_range_type): Likewise. Also, fix call to init_integer_type
118 with erroneous length argument.
119
120 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
121 * d-lang.c (build_d_types): Likewise.
122 * f-lang.c (build_fortran_types): Likewise.
123 * go-lang.c (build_go_types): Likewise.
124 * opencl-lang.c (build_opencl_types): Likewise.
125 * jit.c (finalize_symtab): Likewise.
126 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
127 (build_std_type_info_type): Likewise.
128 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
129 update call to arch_flags_type.
130
131 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
132 arch_type.
133 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
134 * windows-tdep.c (windows_get_tlb_type): Likewise.
135
136 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
137 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
138 * m32c-tdep.c (make_types): Likewise.
139 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
140 (rl78_psw_type): Update call to arch_flags_type.
141 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
142 * rx-tdep.c (rx_psw_type): Likewise.
143 (rx_fpsw_type): Likewise.
144 * sparc-tdep.c (sparc_psr_type): Likewise.
145 (sparc_fsr_type): Likewise.
146 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
147 (sparc64_ccr_type): Likewise.
148 (sparc64_fsr_type): Likewise.
149 (sparc64_fprs_type): Likewise.
150
f21b4d5c
TT
1512017-09-27 Tom Tromey <tom@tromey.com>
152
153 * findcmd.c (find_command): Constify.
154
643c2ffa
TT
1552017-09-27 Tom Tromey <tom@tromey.com>
156
157 * ada-tasks.c (task_command_1, task_command): Constify.
158
510e5e56
TT
1592017-09-27 Tom Tromey <tom@tromey.com>
160
161 * symtab.c (maintenance_print_symbol_cache)
162 (maintenance_flush_symbol_cache)
163 (maintenance_print_symbol_cache_statistics): Constify.
164
e503b191
TT
1652017-09-27 Tom Tromey <tom@tromey.com>
166
167 * inferior.c (detach_inferior_command, kill_inferior_command)
168 (inferior_command): Constify.
169
4e001312
TT
1702017-09-27 Tom Tromey <tom@tromey.com>
171
172 * regcache.c (regcache_print, maintenance_print_registers)
173 (maintenance_print_raw_registers)
174 (maintenance_print_cooked_registers)
175 (maintenance_print_register_groups)
176 (maintenance_print_remote_registers): Constify.
177
77763700
TT
1782017-09-27 Tom Tromey <tom@tromey.com>
179
180 * printcmd.c (map_display_numbers, undisplay_command)
181 (enable_disable_display_command, enable_display_command)
182 (disable_display_command): Constify.
183
4495129a
TT
1842017-09-27 Tom Tromey <tom@tromey.com>
185
186 * breakpoint.h (delete_command): Don't declare.
187 * breakpoint.c (delete_command, enable_once_command)
188 (enable_count_command, enable_delete_command, breakpoint_1)
189 (maintenance_info_breakpoints, stopin_command, stopat_command)
190 (delete_command, delete_trace_command, save_breakpoints)
191 (save_breakpoints_command, save_tracepoints_command): Constify.
192
3088cf40
TT
1932017-09-27 Tom Tromey <tom@tromey.com>
194
195 * macrocmd.c (macro_expand_command, macro_expand_once_command)
196 (skip_ws, extract_identifier, macro_define_command)
197 (macro_undef_command, macro_list_command): Constify.
198
69f476a3
TT
1992017-09-27 Tom Tromey <tom@tromey.com>
200
201 * infcmd.c (environment_info, set_environment_command)
202 (unset_environment_command, path_info, info_proc_cmd_1)
203 (info_proc_cmd_mappings, info_proc_cmd_stat)
204 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
205 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
206
c4a3e68e
TT
2072017-09-27 Tom Tromey <tom@tromey.com>
208
209 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
210 Constify.
211
c9d31bd6
TT
2122017-09-27 Tom Tromey <tom@tromey.com>
213
214 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
215
1f3f85eb
TT
2162017-09-27 Tom Tromey <tom@tromey.com>
217
218 * demangle.c (demangle_command): Constify.
219
9c504b5d
TT
2202017-09-27 Tom Tromey <tom@tromey.com>
221
222 * progspace.c (maintenance_info_program_spaces_command):
223 Constify.
224
6663cf91
TT
2252017-09-27 Tom Tromey <tom@tromey.com>
226
227 * compile/compile.c (check_raw_argument, compile_file_command)
228 (compile_code_command, compile_print_command): Constify.
229
34e5fa26
TT
2302017-09-27 Tom Tromey <tom@tromey.com>
231
232 * reggroups.c (maintenance_print_reggroups): Constify.
233
8384c356
TT
2342017-09-27 Tom Tromey <tom@tromey.com>
235
236 * dwarf2read.c (save_gdb_index_command): Constify.
237
884beb0c
TT
2382017-09-27 Tom Tromey <tom@tromey.com>
239
240 * stap-probe.c (info_probes_stap_command): Constify.
241
e0b2930c
TT
2422017-09-27 Tom Tromey <tom@tromey.com>
243
244 * fork-child.c (unset_exec_wrapper_command): Constify.
245
f938677d
TT
2462017-09-27 Tom Tromey <tom@tromey.com>
247
248 * btrace.c (get_uint, get_context_size, no_chunk)
249 (maint_btrace_packet_history_cmd)
250 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
251 (maint_info_btrace_cmd): Constify.
252
8949cb87
TT
2532017-09-27 Tom Tromey <tom@tromey.com>
254
255 * reverse.c (delete_bookmark_command): Constify.
256
ac88e2de
TT
2572017-09-27 Tom Tromey <tom@tromey.com>
258
259 * remote.c (set_memory_packet_size)
260 (set_memory_write_packet_size, show_memory_write_packet_size)
261 (set_memory_read_packet_size, show_memory_read_packet_size)
262 (compare_sections_command, packet_command, remote_put_command)
263 (remote_get_command, remote_delete_command): Constify.
264
bd4c9dfe
TT
2652017-09-27 Tom Tromey <tom@tromey.com>
266
267 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
268 (set_mipsfpu_double_command, set_mipsfpu_none_command)
269 (set_mipsfpu_auto_command): Constify.
270
5e93d4c6
TT
2712017-09-27 Tom Tromey <tom@tromey.com>
272
273 * cli/cli-cmds.h (cd_command): Constify.
274 * cli/cli-cmds.c (cd_command): Constify.
275
fc41a75b
TT
2762017-09-27 Tom Tromey <tom@tromey.com>
277
278 * thread.c (thread_name_command, thread_find_command): Constify.
279
67810076
TT
2802017-09-27 Tom Tromey <tom@tromey.com>
281
282 * probe.c (enable_probes_command, disable_probes_command):
283 Constify.
284
1d8b34a7
TT
2852017-09-27 Tom Tromey <tom@tromey.com>
286
287 * symfile.c (symbol_file_command): Constify.
288 * gdbcore.h (deprecated_file_changed_hook): Constify.
289 * exec.c (deprecated_file_changed_hook, exec_file_command)
290 (file_command): Constify.
291 * defs.h (symbol_file_command): Constify.
292
442019e1
TT
2932017-09-27 Tom Tromey <tom@tromey.com>
294
295 * remote-fileio.c (set_system_call_allowed)
296 (show_system_call_allowed): Constify.
297
2983f7cb
TT
2982017-09-27 Tom Tromey <tom@tromey.com>
299
300 * tracepoint.c (delete_trace_variable_command)
301 (tfind_end_command, tfind_start_command, tfind_pc_command)
302 (tfind_tracepoint_command, tfind_line_command)
303 (tfind_range_command, tfind_outside_command): Constify.
304
4fd41b24
TT
3052017-09-27 Tom Tromey <tom@tromey.com>
306
307 * ax-gdb.c (maint_agent_printf_command, agent_command)
308 (agent_eval_command): Constify.
309
f2fc3015
TT
3102017-09-27 Tom Tromey <tom@tromey.com>
311
312 * tracepoint.c (info_scope_command): Constify.
313 * python/python.c (gdbpy_decode_line): Constify.
314 * python/py-breakpoint.c (bppy_init): Constify.
315 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
316 * location.h: (new_linespec_location)
317 (string_to_event_location_basic, string_to_event_location):
318 Constify.
319 * location.c (new_linespec_location)
320 (string_to_event_location_basic, string_to_event_location):
321 Constify.
322 * linespec.h (decode_line_with_current_source)
323 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
324 * linespec.c (linespec_lex_to_end)
325 (decode_line_with_current_source)
326 (decode_line_with_last_displayed): Constify.
327 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
328 Constify.
329 * cli/cli-cmds.c (edit_command, list_command): Constify.
330 * breakpoint.h (until_break_command, watch_command_wrapper)
331 (awatch_command_wrapper, rwatch_command_wrapper)
332 (init_ada_exception_breakpoint): Constify.
333 * breakpoint.c (break_command_1, dprintf_command)
334 (break_range_command, watch_command_wrapper)
335 (rwatch_command_wrapper, awatch_command_wrapper)
336 (until_break_command, init_ada_exception_breakpoint)
337 (strace_marker_create_sals_from_location, trace_command)
338 (ftrace_command, strace_command, struct tracepoint): Constify.
339 * ax-gdb.c (agent_command_1): Constify.
340 * ada-lang.c (ada_exception_sal): Constify.
341
8c2f95f4
TT
3422017-09-27 Tom Tromey <tom@tromey.com>
343
344 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
345 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
346 (get_context_size, no_chunk, get_insn_history_modifiers)
347 (cmd_record_insn_history, get_call_history_modifiers)
348 (cmd_record_call_history): Constify.
349
a0d65762
TT
3502017-09-27 Tom Tromey <tom@tromey.com>
351
352 * source.c (show_substitute_path_command)
353 (unset_substitute_path_command, set_substitute_path_command):
354 Constify.
355
58971144
TT
3562017-09-27 Tom Tromey <tom@tromey.com>
357
358 * typeprint.c (maintenance_print_type): Constify.
359 * maint.c (maintenance_dump_me, maintenance_demangle)
360 (maintenance_time_display, maintenance_info_sections)
361 (maintenance_print_statistics, maintenance_deprecate)
362 (maintenance_undeprecate): Constify.
363 (maintenance_do_deprecate): Constify. Use std::string.
364 (maintenance_selftest): Constify.
365 * gdbtypes.h (maintenance_print_type): Constify.
366
c482f52c
TT
3672017-09-27 Tom Tromey <tom@tromey.com>
368
369 * hppa-tdep.c (unwind_command): Constify.
370
e100df1a
TT
3712017-09-27 Tom Tromey <tom@tromey.com>
372
373 * target-descriptions.c (unset_tdesc_filename_cmd)
374 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
375 Constify.
376
31d56ade
TT
3772017-09-27 Tom Tromey <tom@tromey.com>
378
379 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
380
b961da0b
TT
3812017-09-27 Tom Tromey <tom@tromey.com>
382
383 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
384
e2d8ae16
TT
3852017-09-27 Tom Tromey <tom@tromey.com>
386
387 * tui/tui-regs.c (tui_reg_command): Constify.
388
863779b0
TT
3892017-09-27 Tom Tromey <tom@tromey.com>
390
391 * skip.c (skip_file_command, skip_function_command)
392 (skip_enable_command, skip_disable_command, skip_delete_command):
393 Constify.
394
cdb34d4a
TT
3952017-09-27 Tom Tromey <tom@tromey.com>
396
397 * record-btrace.c (cmd_record_btrace_bts_start)
398 (cmd_record_btrace_pt_start): Constify.
399
e99c83e7
TT
4002017-09-27 Tom Tromey <tom@tromey.com>
401
402 * symmisc.c (maintenance_print_symbols)
403 (maintenance_print_msymbols, maintenance_print_objfiles)
404 (maintenance_info_symtabs, maintenance_check_symtabs)
405 (maintenance_expand_symtabs, maintenance_info_line_tables):
406 Constify.
407
32faf971
TT
4082017-09-27 Tom Tromey <tom@tromey.com>
409
410 * top.c (new_ui_command): Constify.
411
2cf311eb
TT
4122017-09-27 Tom Tromey <tom@tromey.com>
413
414 * symfile.c (add_symbol_file_command)
415 (remove_symbol_file_command, list_overlays_command)
416 (map_overlay_command, unmap_overlay_command)
417 (overlay_auto_command, overlay_manual_command)
418 (overlay_off_command, overlay_load_command): Constify.
419
e6738699
TT
4202017-09-27 Tom Tromey <tom@tromey.com>
421
422 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
423 (info_spu_mailbox_command, info_spu_dma_command)
424 (info_spu_proxydma_command): Constify.
425
aa360cd5
TT
4262017-09-27 Tom Tromey <tom@tromey.com>
427
428 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
429
898241a5
TT
4302017-09-27 Tom Tromey <tom@tromey.com>
431
432 * cli/cli-script.c (user_defined_command): Constify.
433
2d0ac106
TT
4342017-09-27 Tom Tromey <tom@tromey.com>
435
436 * cli/cli-dump.c (dump_memory_command, dump_value_command)
437 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
438 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
439 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
440 (dump_binary_value, append_binary_memory, append_binary_value):
441 Constify.
442 (struct dump_context) <func>: Constify.
443 (add_dump_command): Update.
444
dede02ce
TT
4452017-09-27 Tom Tromey <tom@tromey.com>
446
447 * cli/cli-cmds.c (show_version, show_configuration)
448 (source_command, show_user): Constify.
449
d3cb6b99
TT
4502017-09-27 Tom Tromey <tom@tromey.com>
451
452 * target.c (maintenance_print_target_stack): Constify.
453
1970a12f
TT
4542017-09-27 Tom Tromey <tom@tromey.com>
455
456 * interps.c (interpreter_exec_cmd): Constify.
457
41243651
TT
4582017-09-27 Tom Tromey <tom@tromey.com>
459
460 * record-full.c (cmd_record_full_restore): Constify.
461
4465d9db
TT
4622017-09-27 Tom Tromey <tom@tromey.com>
463
464 * memattr.c (enable_mem_command, disable_mem_command)
465 (delete_mem_command): Constify.
466
ad25e423
TT
4672017-09-27 Tom Tromey <tom@tromey.com>
468
469 * value.c (show_convenience): Constify.
470
d64097b1
TT
4712017-09-27 Tom Tromey <tom@tromey.com>
472
473 * gdbcore.h (core_file_command): Update.
474 * corefile.c (core_file_command): Constify.
475
4d4589ef
TT
4762017-09-27 Tom Tromey <tom@tromey.com>
477
478 * user-regs.c (maintenance_print_user_registers): Constify.
479
32a7bf17
TT
4802017-09-27 Tom Tromey <tom@tromey.com>
481
482 * cp-namespace.c (maintenance_cplus_namespace): Constify.
483
4a475551
TT
4842017-09-27 Tom Tromey <tom@tromey.com>
485
486 * cp-support.c (first_component_command): Constify.
487
990b9f9f
TT
4882017-09-27 Tom Tromey <tom@tromey.com>
489
490 * psymtab.c (maintenance_print_psymbols)
491 (maintenance_info_psymtabs, maintenance_check_psymtabs):
492 Constify.
493
c281872e
TT
4942017-09-27 Tom Tromey <tom@tromey.com>
495
496 * windows-tdep.c (display_tib): Constify.
497
5b64bf74
TT
4982017-09-27 Tom Tromey <tom@tromey.com>
499
500 * linux-fork.c (delete_checkpoint_command)
501 (detach_checkpoint_command): Constify.
502
4ada038f
TT
5032017-09-27 Tom Tromey <tom@tromey.com>
504
505 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
506
57f5a81b
TT
5072017-09-27 Tom Tromey <tom@tromey.com>
508
509 * arc-tdep.c (dump_arc_instruction_command): Constify.
510
b0a8e6c4
TT
5112017-09-27 Tom Tromey <tom@tromey.com>
512
513 * valprint.c (set_radix, show_radix): Constify.
514
8d97dc1c
TT
5152017-09-27 Tom Tromey <tom@tromey.com>
516
517 * dtrace-probe.c (info_probes_dtrace_command): Constify.
518
eb7c454d
TT
5192017-09-27 Tom Tromey <tom@tromey.com>
520
521 * command.h (not_just_help_class_command): Update.
522 * cli/cli-decode.h (not_just_help_class_command): Update.
523 * cli/cli-decode.c (not_just_help_class_command): Constify.
524
e4e33335
TT
5252017-09-27 Tom Tromey <tom@tromey.com>
526
527 * gdb_bfd.c (maintenance_info_bfds): Constify.
528
0450cc4c
TT
5292017-09-27 Tom Tromey <tom@tromey.com>
530
531 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
532 overloads.
533 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
534 (do_const_cfunc): New function.
535 (cmd_cfunc_eq): New overload.
536 (cli_user_command_p): Check do_const_cfunc.
537 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
538 const_cfunc.
539 * command.h (add_cmd): Add const overload and no-function
540 overload.
541 (set_cmd_cfunc): Add const overload.
542 (cmd_const_cfunc_ftype): Declare.
543 (cmd_cfunc_eq): Add const overload.
544 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
545 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
546 overload.
547
a9bbfbd8
TT
5482017-09-27 Tom Tromey <tom@tromey.com>
549
550 * macroexp.c (get_next_token_for_substitution): New function.
551 (substitute_args): Call it. Check for __VA_OPT__.
552
5230b05a
WT
5532017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
554 Pedro Alves <palves@redhat.com>
555
556 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
557 producer_is_icc_lt_14.
558 (producer_is_icc_lt_14): New function.
559 (check_producer): Add code for checking version of ICC.
560 (producer_is_icc): Move to producer.c.
561 (read_structure_type): Restrict ICC workaround to ICC<14.
562 * producer.c: Include selftest.h.
563 (producer_is_icc, producer_parsing_tests, _initialize_producer):
564 New functions.
565 * producer.h (producer_is_icc): New declaration.
566
b32b108a
WT
5672017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
568
569 * Makefile.in (SFILES): Add producer.c.
570 (COMMON_OBS): Add producer.o
571 * amd64-tdep.c (producer.h): Add new include.
572 * dwarf2read.c (producer.h): Add new include.
573 * producer.c: New file.
574 * producer.h: New file.
575 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
576 producer.c.
577 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
578 producer.h.
579
5007d765
MK
5802017-09-26 Matthias Klose <doko@ubuntu.com>
581
582 * configure.ac: Search ncursesw before ncurses.
583 Check ncursesw/ncurses.h before ncurses/ncurses.h.
584 * gdb_curses.h: Include <ncursesw/ncurses.h>
585 * config.in, configure: Regenerate.
586
281c4447
RO
5872017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
588
589 PR gdb/22185
590 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
591 obsolete.
592 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
593 Remove i386sol2 support.
594 * configure.nat <i386sol2>: Remove.
595 <sol2-64>: Fold into ...
596 <sol2>: ... this.
597 Move common settings to default section.
598 Add sol-thread.o.
599 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
600 x86_64-*-solaris2.1[0-9]*>: Rename to ...
601 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
602 <i[34567]86-*-solaris*>: Remove.
603 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
604
605 * configure.ac: Remove wctype in libw check.
606 (_MSE_INT_H): Don't define on Solaris 7-9.
607 <solaris*>: Remove libthread_db.so.1 check.
608 * configure: Regenerate.
609 * config.in: Regenerate.
610
611 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
612 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
613 (gdb_ps_size_t): Remove.
614 Use base types in users.
615 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
616
617 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
618
39b06c20
RO
6192017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
620
621 PR build/22206
622 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
623 (adi_is_addr_mapped): Likewise.
624 (PSR_ICC): Don't redefine.
625 (PSR_IMPL): Likewise.
626
6c3e20f1
TT
6272017-09-25 Tom Tromey <tom@tromey.com>
628
629 * regcache.c (regcache::dump): Use string_printf.
630
b292235f
TT
6312017-09-25 Tom Tromey <tom@tromey.com>
632
633 * regcache.c (class regcache_invalidator): New.
634 (struct register_to_invalidate): Remove.
635 (make_cleanup_regcache_invalidate): Remove.
636 (regcache::raw_write): Use regcache_invalidator.
637
9ac86b52
TT
6382017-09-25 Tom Tromey <tom@tromey.com>
639
640 * spu-tdep.c (spu2ppu_sniffer): Update.
641 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
642 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
643 Remove.
644 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
645 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
646 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
647 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
648 (frame_pop): Update.
649
c0e383c6
TT
6502017-09-25 Tom Tromey <tom@tromey.com>
651
652 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
653 * regcache.h (regcache_xfree): Don't declare.
654 * regcache.c (regcache_xfree): Remove.
655 (do_regcache_xfree): Use delete.
656 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
657 * linux-fork.c (free_fork): Use delete.
658 (fork_save_infrun_state): Likewise.
659 * jit.c (jit_dealloc_cache): Use delete.
660 * infrun.c (discard_infcall_suspend_state): Use delete.
661
791199cc
TT
6622017-09-25 Tom Tromey <tom@tromey.com>
663
664 * regcache.h (regcache_xmalloc): Don't declare.
665 (regcache_raw_set_cached_value): Update comment.
666 * regcache.c (regcache_xmalloc): Remove.
667 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
668 * jit.c (jit_frame_sniffer): Use new.
669 * frame.c (frame_save_as_regcache): Use new.
670
289e23aa
AA
6712017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
672
673 * NEWS: Advertise support for guarded-storage registers on IBM z.
674
1b63490c
AA
6752017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
676
677 * s390-linux-nat.c (have_regset_gs): New static variable.
678 (s390_linux_fetch_inferior_registers): Handle guarded-storage
679 control block and guarded-storage broadcast control regsets.
680 (s390_read_description): Detect whether the target has
681 guarded-storage support, return appropriate tdesc.
682 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
683 (features/s390x-gs-linux64.c): Likewise.
684 (struct gdbarch_tdep) <have_gs>: New field.
685 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
686 (s390_gsbc_regset): New variables.
687 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
688 and s390_gsbc_regset, if applicable.
689 (s390_core_read_description): Check whether core file was from a
690 target with guarded-storage support; include appropriate regsets.
691 (s390_gdbarch_init): Add registers for guarded-storage support.
692 (_initialize_s390_tdep): Initialize new target descriptions that
693 include registers for guarded-storage support.
694 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
695 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
696 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
697 (S390_NUM_REGS): Adjust macro definition.
698 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
699 (tdesc_s390x_gs_linux64): New declarations.
700
96235dc1
AA
7012017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
702
703 * features/s390-gs-linux64.xml: New file.
704 * features/s390-gs.xml: New file.
705 * features/s390-gsbc.xml: New file.
706 * features/s390x-gs-linux64.xml: New file.
707 * features/Makefile (WHICH): Add s390-gs-linux64 and
708 s390x-gs-linux64.
709 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
710 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
711 * features/s390-gs-linux64.c: New generated file.
712 * features/s390x-gs-linux64.c: New file.
713 * regformats/s390-gs-linux64.dat: New file.
714 * regformats/s390x-gs-linux64.dat: New file.
715
b4a7c699
TT
7162017-09-23 Tom Tromey <tom@tromey.com>
717
718 * defs.h (make_cleanup_override_quit_handler): Don't declare.
719
c2f97536
TT
7202017-09-22 Tom Tromey <tom@tromey.com>
721
722 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
723 type to scoped_restore_tmpl.
724 <scoped_input_handler>: Initialize m_quit_handler directly.
725
43573013
SDJ
7262017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
727
728 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
729 (cd_command): Likewise. Free "current_directory" before
730 assigning to it.
731 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
732 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
733 * top.c (gdb_dirbuf): Remove global declaration.
734 * top.h (gdb_dirbuf): Likewise.
735
6ec2e0f5
SDJ
7362017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
737
738 * gnulib/aclocal.m4: Regenerate.
739 * gnulib/config.in: Regenerate.
740 * gnulib/configure: Regenerate.
741 * gnulib/import/Makefile.am: Regenerate.
742 * gnulib/import/Makefile.in: Regenerate.
743 * gnulib/import/assure.h: New file.
744 * gnulib/import/at-func.c: Likewise
745 * gnulib/import/chdir-long.c: New file.
746 * gnulib/import/chdir-long.h: New file.
747 * gnulib/import/cloexec.c: New file.
748 * gnulib/import/cloexec.h: New file.
749 * gnulib/import/close.c: New file.
750 * gnulib/import/closedir.c: New file.
751 * gnulib/import/dirent-private.h: New file.
752 * gnulib/import/dup-safer.c: New file.
753 * gnulib/import/dup.c: New file.
754 * gnulib/import/dup2.c: New file.
755 * gnulib/import/error.c: New file.
756 * gnulib/import/error.h: New file.
757 * gnulib/import/exitfail.c: New file.
758 * gnulib/import/exitfail.h: New file.
759 * gnulib/import/fchdir.c: New file.
760 * gnulib/import/fcntl.c: New file.
761 * gnulib/import/fcntl.in.h: New file.
762 * gnulib/import/fd-hook.c: New file.
763 * gnulib/import/fd-hook.h: New file.
764 * gnulib/import/fd-safer.c: New file.
765 * gnulib/import/fdopendir.c: New file.
766 * gnulib/import/filename.h: New file.
767 * gnulib/import/filenamecat-lgpl.c: New file.
768 * gnulib/import/filenamecat.h: New file.
769 * gnulib/import/fstat.c: New file.
770 * gnulib/import/fstatat.c: New file.
771 * gnulib/import/getcwd-lgpl.c: New file.
772 * gnulib/import/getcwd.c: New file.
773 * gnulib/import/getdtablesize.c: New file.
774 * gnulib/import/getlogin_r.c: New file.
775 * gnulib/import/getprogname.c: New file.
776 * gnulib/import/getprogname.h: New file.
777 * gnulib/import/gettext.h: New file.
778 * gnulib/import/glob-libc.h: New file.
779 * gnulib/import/glob.c: New file.
780 * gnulib/import/glob.in.h: New file.
781 * gnulib/import/intprops.h: New file.
782 * gnulib/import/m4/chdir-long.m4: New file.
783 * gnulib/import/m4/close.m4: New file.
784 * gnulib/import/m4/closedir.m4: New file.
785 * gnulib/import/m4/d-ino.m4: New file.
786 * gnulib/import/m4/d-type.m4: New file.
787 * gnulib/import/m4/dup.m4: New file.
788 * gnulib/import/m4/dup2.m4: New file.
789 * gnulib/import/m4/error.m4: New file.
790 * gnulib/import/m4/fchdir.m4: New file.
791 * gnulib/import/m4/fcntl.m4: New file.
792 * gnulib/import/m4/fcntl_h.m4: New file.
793 * gnulib/import/m4/fdopendir.m4: New file.
794 * gnulib/import/m4/filenamecat.m4: New file.
795 * gnulib/import/m4/fstat.m4: New file.
796 * gnulib/import/m4/fstatat.m4: New file.
797 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
798 * gnulib/import/m4/getcwd-path-max.m4: New file.
799 * gnulib/import/m4/getcwd.m4: New file.
800 * gnulib/import/m4/getdtablesize.m4: New file.
801 * gnulib/import/m4/getlogin_r.m4: New file.
802 * gnulib/import/m4/getprogname.m4: New file.
803 * gnulib/import/m4/glob.m4: New file.
804 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
805 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
806 * gnulib/import/m4/mempcpy.m4: New file.
807 * gnulib/import/m4/memrchr.m4: New file.
808 * gnulib/import/m4/mode_t.m4: New file.
809 * gnulib/import/m4/msvc-inval.m4: New file.
810 * gnulib/import/m4/msvc-nothrow.m4: New file.
811 * gnulib/import/m4/open.m4: New file.
812 * gnulib/import/m4/openat.m4: New file.
813 * gnulib/import/m4/opendir.m4: New file.
814 * gnulib/import/m4/readdir.m4: New file.
815 * gnulib/import/m4/realloc.m4: New file.
816 * gnulib/import/m4/rewinddir.m4: New file.
817 * gnulib/import/m4/save-cwd.m4: New file.
818 * gnulib/import/m4/strdup.m4: New file.
819 * gnulib/import/m4/strerror.m4: New file.
820 * gnulib/import/m4/unistd-safer.m4: New file.
821 * gnulib/import/mempcpy.c: New file.
822 * gnulib/import/memrchr.c: New file.
823 * gnulib/import/msvc-inval.c: New file.
824 * gnulib/import/msvc-inval.h: New file.
825 * gnulib/import/msvc-nothrow.c: New file.
826 * gnulib/import/msvc-nothrow.h: New file.
827 * gnulib/import/open.c: New file.
828 * gnulib/import/openat-die.c: New file.
829 * gnulib/import/openat-priv.h: New file.
830 * gnulib/import/openat-proc.c: New file.
831 * gnulib/import/openat.c: New file.
832 * gnulib/import/openat.h: New file.
833 * gnulib/import/opendir.c: New file.
834 * gnulib/import/pipe-safer.c: New file.
835 * gnulib/import/readdir.c: New file.
836 * gnulib/import/realloc.c: New file.
837 * gnulib/import/rewinddir.c: New file.
838 * gnulib/import/save-cwd.c: New file.
839 * gnulib/import/save-cwd.h: New file.
840 * gnulib/import/strdup.c: New file.
841 * gnulib/import/strerror-override.c: New file.
842 * gnulib/import/strerror-override.h: New file.
843 * gnulib/import/strerror.c: New file.
844 * gnulib/import/unistd--.h: New file.
845 * gnulib/import/unistd-safer.h: New file.
846 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
847 "getcwd" and "glob".
848 * ser-tcp.c: Undefine "close" before redefining it.
849
432ae719
SM
8502017-09-21 Simon Marchi <simon.marchi@ericsson.com>
851
852 * guile/scm-value.c (gdbscm_value_address): Initialize address,
853 get rid of res_val.
854
4fa7574e
RO
8552017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
856
857 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
858 <sol2,sparc>: Likewise.
859 <sol2-64,i386>: Likewise.
860
861 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
862 -Wdeprecated-declarations on *-*-solaris*.
863 * configure: Regenerate.
864
865 * procfs.c: Include "nat/inferior.h".
866 (procfs_info_proc): Fix typo.
867
f6327dcb
KB
8682017-09-21 Kevin Buettner <kevinb@redhat.com>
869
870 * remote.c (vector): Include.
871 (struct private_thread_info): Add field, thread_handle.
872 (free_private_thread_info): Deallocate storage associated with
873 thread handle.
874 (get_private_info_thread): Initialize `thread_handle' field.
875 (struct thread_item): Add field, thread_handle.
876 (clear_threads_listing_context): Deallocate storage associated
877 with thread handle.
878 (start_thread): Add support for "handle" attribute.
879 (thread_attributes): Add "handle".
880 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
881 field.
882 (remote_update_thread_list): Update thread_handle.
883 (remote_thread_handle_to_thread_info): New function.
884 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
885
fbbe5337
KB
8862017-09-21 Kevin Buettner <kevinb@redhat.com>
887
888 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
889 function.
890 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
891 * python/python-internal.h (thread_object_type): Declare.
892
e04ee09e
KB
8932017-09-21 Kevin Buettner <kevinb@redhat.com>
894
895 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
896 (target_thread_handle_to_thread_info): Declare.
897 * target.c (target_thread_handle_to_thread_info): New function.
898 * target-delegates.c: Regenerate.
899 * gdbthread.h (find_thread_by_handle): Declare.
900 * thread.c (find_thread_by_handle): New function.
901 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
902 function.
903 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
904
1e5b66ed
SM
9052017-09-21 Simon Marchi <simon.marchi@ericsson.com>
906
907 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
908
ebe48ba0
SM
9092017-09-21 Simon Marchi <simon.marchi@ericsson.com>
910
911 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
912
0a0bf5dc
YQ
9132017-09-21 Yao Qi <yao.qi@linaro.org>
914
915 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
916 to gdb_target_obs.
917
d1b0a7bf
TT
9182017-09-20 Tom Tromey <tom@tromey.com>
919
920 * breakpoint.c (struct counted_command_line): Remove.
921 (breakpoint_commands): Update.
922 (alloc_counted_command_line, incref_counted_command_line)
923 (decref_counted_command_line, do_cleanup_counted_command_line)
924 (make_cleanup_decref_counted_command_line): Remove.
925 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
926 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
927 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
928 (save_breakpoints): Update.
929 * breakpoint.h (counted_command_line): Now a typedef to
930 shared_ptr.
931 (struct breakpoint) <commands>: Now a counted_command_line.
932 (struct bpstats) <command>: Likewise.
933
48649e1b
TT
9342017-09-20 Tom Tromey <tom@tromey.com>
935
936 * breakpoint.c (struct commands_info, do_map_commands_command):
937 Remove.
938 (commands_command_1): Update.
939 (iterate_over_related_breakpoints): Take a function_view.
940 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
941 (delete_command): Update.
942 (map_breakpoint_numbers): Take a function_view.
943 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
944 (disable_command): Update.
945 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
946 (enable_command): Update.
947 (struct disp_data, do_enable_breakpoint_disp)
948 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
949 (do_map_enable_delete_breakpoint): Remove.
950 (enable_once_command, enable_count_command, enable_delete_command)
951 (delete_trace_variable_command): Update.
952
04afa70c
TT
9532017-09-20 Tom Tromey <tom@tromey.com>
954
955 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
956 (bpstat_clear): Use delete.
957 (bpstats): New constructors.
958 (bpstat_copy, bpstat_stop_status): Use new.
959 (dprintf_after_condition_true): Update.
960 * breakpoint.h (bpstats::bpstats): Add constructors.
961 (bpstats::~bpstats): Add destructor.
962
c83833f4
PA
9632017-09-20 Pedro Alves <palves@redhat.com>
964
965 * eval.c (make_params): Delete, refactored as ...
966 (class fake_method): ... this new type's ctor.
967 (fake_method::~fake_method): New.
968 (evaluate_subexp_standard): Use 'fake_method'.
969
223ffa71
TT
9702017-09-20 Tom Tromey <tom@tromey.com>
971
972 * windows-nat.c (get_windows_debug_event, windows_wait)
973 (do_initial_windows_stuff, windows_attach): Update.
974 * utils.c (vwarning, internal_vproblem): Update.
975 (ui_unregister_input_event_handler_cleanup)
976 (prepare_to_handle_input): Remove.
977 (class scoped_input_handler): New.
978 (defaulted_query, prompt_for_continue): Update.
979 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
980 Update.
981 * top.c (undo_terminal_modifications_before_exit): Update.
982 * target/target.h (target_terminal_init, target_terminal_inferior)
983 (target_terminal_ours): Don't declare.
984 (class target_terminal): New.
985 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
986 (target_terminal_ours_for_output)
987 (make_cleanup_restore_target_terminal): Don't declare.
988 (target_terminal_info): Remove.
989 * target.c (enum terminal_state, terminal_state): Remove.
990 (target_terminal::terminal_state): Define.
991 (target_terminal::init): Rename from target_terminal_init.
992 (target_terminal::inferior): Rename from
993 target_terminal_inferior.
994 (target_terminal::ours): Rename from target_terminal_ours.
995 (target_terminal::ours_for_output): Rename from
996 target_terminal_ours_for_output.
997 (target_terminal::info): New method.
998 (cleanup_restore_target_terminal)
999 (make_cleanup_restore_target_terminal): Remove.
1000 * solib.c (handle_solib_event): Update.
1001 * remote.c (remote_serial_quit_handler): Update.
1002 (remote_terminal_inferior, remote_wait_as): Update.
1003 * record-full.c (record_full_wait_1): Update.
1004 * nto-procfs.c (procfs_create_inferior): Update.
1005 * nat/fork-inferior.c (startup_inferior): Update.
1006 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1007 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1008 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1009 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1010 (mi_breakpoint_created, mi_breakpoint_deleted)
1011 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1012 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1013 (mi_user_selected_context_changed, report_initial_inferior):
1014 Update.
1015 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1016 (linux_nat_terminal_inferior): Update.
1017 * infrun.c (follow_fork_inferior)
1018 (handle_vfork_child_exec_or_exit, do_target_resume)
1019 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1020 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1021 Update.
1022 * inflow.c (child_terminal_init, info_terminal_command): Update.
1023 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1024 (attach_command): Update.
1025 * infcall.c (call_thread_fsm_should_stop): Update.
1026 * gnu-nat.c (gnu_attach): Update.
1027 * extension.c (struct active_ext_lang_state)
1028 (restore_active_ext_lang): Update.
1029 * exceptions.c (print_flush): Update.
1030 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1031 (struct quit_handler_cleanup_data, restore_quit_handler)
1032 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1033 Remove.
1034 * cp-support.c (gdb_demangle): Update.
1035 * breakpoint.c (update_inserted_breakpoint_locations)
1036 (insert_breakpoint_locations, handle_jit_event)
1037 (disable_breakpoints_in_unloaded_shlib): Update.
1038 * annotate.c (annotate_breakpoints_invalid)
1039 (annotate_frames_invalid): Update.
1040
013af3fc
TT
10412017-09-20 Tom Tromey <tom@tromey.com>
1042
1043 * main.c (catch_command_errors): Rename from
1044 catch_command_errors_const.
1045 (captured_main_1): Update.
1046
06871ae8
PA
10472017-09-20 Pedro Alves <palves@redhat.com>
1048
1049 * cli/cli-cmds.c (list_command): Use print_sal_location.
1050 (print_sal_location): New function.
1051 (ambiguous_line_spec): Use print_sal_location.
1052 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1053 * symtab.c (find_function_start_sal): Likewise.
1054 * symtab.h (symtab_and_line::symbol): New field.
1055
e5f25bc5
PA
10562017-09-20 Pedro Alves <palves@redhat.com>
1057
1058 * linespec.c (minsym_found): Handle non-text minsyms.
1059 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1060
1b7fa39e
WT
10612017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1062
1063 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1064 backslash.
1065
37dd0825
WT
10662017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1067
1068 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1069 vmovups instead vmovaps.
1070 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1071
4e5a4f58
JB
10722017-09-19 John Baldwin <jhb@FreeBSD.org>
1073
1074 * NEWS (Changes since GDB 8.0): Add starti.
1075 * infcmd.c (enum run_break): New.
1076 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1077 case.
1078 (run_command): Use enum run_how.
1079 (start_command): Likewise.
1080 (starti_command): New function.
1081 (RUN_ARGS_HELP): New macro.
1082 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1083 commands. Add starti command.
1084
aa70c9f1
YQ
10852017-09-19 Yao Qi <yao.qi@linaro.org>
1086
1087 * Makefile.in (monitor.o): Remove the rule.
1088
d6541620
YQ
10892017-09-19 Yao Qi <yao.qi@linaro.org>
1090
1091 * annotate.h (struct annotate_arg_emitter): Use
1092 DISABLE_COPY_AND_ASSIGN.
1093 * common/refcounted-object.h (refcounted_object): Likewise.
1094 * completer.h (struct completion_result): Likewise.
1095 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1096 * filename-seen-cache.h (filename_seen_cache): Likewise.
1097 * gdbcore.h (thread_section_name): Likewise.
1098 * gdb_regex.h (compiled_regex): Likewise.
1099 * gdbthread.h (scoped_restore_current_thread): Likewise.
1100 * inferior.h (scoped_restore_current_inferior): Likewise.
1101 * jit.c (jit_reader): Likewise.
1102 * linespec.h (struct linespec_result): Likewise.
1103 * mi/mi-parse.h (struct mi_parse): Likewise.
1104 * nat/fork-inferior.c (execv_argv): Likewise.
1105 * progspace.h (scoped_restore_current_program_space): Likewise.
1106 * python/python-internal.h (class gdbpy_enter): Likewise.
1107 * regcache.h (regcache): Likewise.
1108 * target-descriptions.c (struct tdesc_reg): Likewise.
1109 (struct tdesc_type): Likewise.
1110 (struct tdesc_feature): Likewise.
1111 * ui-out.h (ui_out_emit_type): Likewise.
1112
0615127c
SM
11132017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1114
1115 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1116 label abort_expression.
1117
5e187554
SM
11182017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1119
1120 * common/buffer.c (buffer_xml_printf): Adjust.
1121 * common/xml-utils.c (xml_escape_text): Change return type to
1122 std::string, update code accordingly.
1123 * common/xml-utils.h (xml_escape_text): Change return type to
1124 std::string.
1125 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1126 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1127 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1128 Adjust.
1129
c3d7b541
SM
11302017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1131
1132 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1133 (SUBDIR_UNITTESTS_OBS): Add new object file.
1134 * unittests/xml-utils-selftests.c: New file.
1135
1526853e
SM
11362017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1137
1138 * common/selftest.h (selftest): New struct/interface.
1139 (register_test): Add name parameter, add new overload.
1140 (run_tests): Add filter parameter.
1141 (for_each_selftest_ftype): New typedef.
1142 (for_each_selftest): New declaration.
1143 * common/selftest.c (tests): Change type to
1144 map<string, unique_ptr<selftest>>.
1145 (simple_selftest): New struct.
1146 (register_test): New function.
1147 (register_test): Add name parameter and use it.
1148 (run_tests): Add filter parameter and use it. Add prints.
1149 Adjust to vector -> map change.
1150 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1151 registering selftests.
1152 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1153 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1154 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1155 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1156 * findvar.c (_initialize_findvar): Likewise.
1157 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1158 * maint.c (maintenance_selftest): Update call to run_tests.
1159 (maintenance_info_selftests): New function.
1160 (_initialize_maint_cmds): Register "maintenance info selftests"
1161 command. Update "maintenance selftest" doc.
1162 * regcache.c (_initialize_regcache): Add names when registering
1163 selftests.
1164 * rust-exp.y (_initialize_rust_exp): Likewise.
1165 * selftest-arch.c (gdbarch_selftest): New struct.
1166 (gdbarch_tests): Remove.
1167 (register_test_foreach_arch): Add name parameter. Call
1168 register_test.
1169 (tests_with_arch): Remove, move most content to
1170 gdbarch_selftest::operator().
1171 (_initialize_selftests_foreach_arch): Remove.
1172 * selftest-arch.h (register_test_foreach_arch): Add name
1173 parameter.
1174 (run_tests_with_arch): New declaration.
1175 * utils-selftests.c (_initialize_utils_selftests): Add names
1176 when registering selftests.
1177 * utils.c (_initialize_utils): Likewise.
1178 * unittests/array-view-selftests.c
1179 (_initialize_array_view_selftests): Likewise.
1180 * unittests/environ-selftests.c (_initialize_environ_selftests):
1181 Likewise.
1182 * unittests/function-view-selftests.c
1183 (_initialize_function_view_selftests): Likewise.
1184 * unittests/offset-type-selftests.c
1185 (_initialize_offset_type_selftests): Likewise.
1186 * unittests/optional-selftests.c
1187 (_initialize_optional_selftests): Likewise.
1188 * unittests/scoped_restore-selftests.c
1189 (_initialize_scoped_restore_selftests): Likewise.
1190 * NEWS: Document "maintenance selftest" and "maint info
1191 selftests".
1192
5846367a
SM
11932017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1194
1195 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1196 scoped_restore.
1197
bd77e8ff
SM
11982017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1199
1200 * mi/mi-main.c (mi_load_progress): Make uiout variable
1201 a unique_ptr.
1202
26a67918
PA
12032017-09-15 Pedro Alves <palves@redhat.com>
1204
1205 * compile/compile-c-types.c (convert_enum, convert_int)
1206 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1207
3f8a7804
SM
12082017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1209
1210 * dwarf2read.c (copy_string): Remove.
1211 (parse_macro_definition): Replace copy_string with savestring.
1212
8d200706
YQ
12132017-09-15 Yao Qi <yao.qi@linaro.org>
1214
1215 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1216 gdb_target_obs.
1217 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1218 Likewise.
1219 (i[34567]86-*-linux*): Likewise.
1220
d185219d
SM
12212017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1222
1223 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1224 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1225 <stack>: Change type to std::vector.
1226 <stack_len, stack_allocated>: Remove.
1227 <grow_stack>: Remove.
1228 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1229 (dwarf_expr_context::~dwarf_expr_context): Remove.
1230 (dwarf_expr_context::grow_stack): Remove.
1231 (dwarf_expr_context::push): Adjust.
1232 (dwarf_expr_context::pop): Adjust.
1233 (dwarf_expr_context::fetch): Adjust.
1234 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1235 (dwarf_expr_context::stack_empty_p): Adjust.
1236 (dwarf_expr_context::execute_stack_op): Adjust.
1237
eccd80d6
SM
12382017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1239
1240 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1241 return type to bool.
1242 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1243
69009882
SM
12442017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1245
1246 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1247 Change type to bool.
1248 (dwarf_stack_value) <in_stack_memory>: Likewise.
1249 (dwarf_expr_context) <push_address>: Change parameter type to
1250 bool.
1251 <fetch_in_stack_memory>: Change return type to bool.
1252 <push>: Change parameter type to bool.
1253 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1254 to bool.
1255 (dwarf_expr_context::push_address): Likewise.
1256 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1257 to bool.
1258 (dwarf_expr_context::execute_stack_op): Adjust.
1259 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1260
1e467161
SM
12612017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1262
1263 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1264 (struct dwarf_expr_context) <n_pieces>: Remove.
1265 <pieces>: Change type to std::vector.
1266 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1267 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1268 pieces.
1269 (dwarf_expr_context::add_piece): Adjust.
1270 * dwarf2loc.c (struct piece_closure): Initialize fields.
1271 <n_pieces>: Remove.
1272 <pieces>: Change type to std::vector.
1273 (allocate_piece_closure): Adjust, change parameter to
1274 std::vector rvalue and std::move it to piece_closure.
1275 (rw_pieced_value): Adjust.
1276 (check_pieced_synthetic_pointer): Adjust.
1277 (indirect_synthetic_pointer): Adjust.
1278 (coerce_pieced_ref): Adjust.
1279 (free_pieced_value_closure): Adjust. Use delete to free
1280 piece_closure.
1281 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1282 to allocate_piece_closure.
1283 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1284
0782db84
SM
12852017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1286
1287 * probe.h (probe_ops_cp): Remove typedef.
1288 (DEF_VEC_P (probe_ops_cp)): Remove.
1289 (all_probe_ops): Change type to std::vector.
1290 * probe.c (info_probes_for_ops): Adjust to vector change.
1291 (probe_linespec_to_ops): Likewise.
1292 (all_probe_ops): Change type to std::vector.
1293 (_initialize_probe): Adjust to vector change.
1294 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1295 * elfread.c (elf_get_probes): Likewise.
1296 * stap-probe.c (_initialize_stap_probe): Likewise.
1297
1eac6bea
SM
12982017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1299
1300 * probe.h (struct bound_probe): Define constructors.
1301 * probe.c (bound_probe_s): Remove typedef.
1302 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1303 (collect_probes): Change return type to std::vector, remove
1304 cleanup.
1305 (compare_probes): Return bool, change parameter type. Change
1306 semantic to "less than".
1307 (gen_ui_out_table_header_info): Change parameter to std::vector
1308 and update.
1309 (exists_probe_with_pops): Likewise.
1310 (info_probes_for_ops): Update to std::vector change.
1311 (enable_probes_command): Likewise.
1312 (disable_probes_command): Likewise.
1313
aaa63a31
SM
13142017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1315
1316 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1317 vec to std::vector.
1318 * probe.c (parse_probes_in_pspace): Update.
1319 (find_probes_in_objfile): Update.
1320 (find_probe_by_pc): Update.
1321 (collect_probes): Update.
1322 (probe_any_get_probes): Update.
1323 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1324 return type to reference to std::vector.
1325 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1326 std::vector and update.
1327 (dtrace_process_dof): Likewise.
1328 (dtrace_get_probes): Likewise.
1329 * elfread.c (elf_get_probes): Change return type to std::vector,
1330 store an std::vector in bfd_data.
1331 (probe_key_free): Update to std::vector.
1332 * stap-probe.c (handle_stap_probe): Change parameter to
1333 std::vector and update.
1334 (stap_get_probes): Likewise.
1335 * symfile-debug.c (debug_sym_get_probes): Change return type to
1336 std::vector and update.
1337
cb85b21b
TT
13382017-09-11 Tom Tromey <tom@tromey.com>
1339
1340 * breakpoint.c (program_breakpoint_here_p): Update.
1341 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1342 from make_show_memory_breakpoints_cleanup. Return a
1343 scoped_restore_tmpl<int>.
1344 (restore_show_memory_breakpoints): Remove.
1345 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1346 * mem-break.c (memory_validate_breakpoint): Update.
1347 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1348 (ia64_memory_remove_breakpoint): Update.
1349 (ia64_breakpoint_from_pc): Update.
1350 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1351 from make_show_memory_breakpoints_cleanup.
1352
8fbc99ef
TT
13532017-09-11 Tom Tromey <tom@tromey.com>
1354
1355 * d-namespace.c (d_lookup_symbol): Use std::string.
1356 (find_symbol_in_baseclass): Likewise.
1357
50feb4bd
TT
13582017-09-11 Tom Tromey <tom@tromey.com>
1359
1360 * ctf.c (ctf_start): Use std::string.
1361
c6dc63a1
TT
13622017-09-11 Tom Tromey <tom@tromey.com>
1363
1364 * ada-lang.c (is_known_support_routine): Update.
1365 (ada_unhandled_exception_name_addr_from_raise): Update.
1366 * guile/scm-frame.c (gdbscm_frame_name): Update.
1367 * python/py-frame.c (frapy_name): Update.
1368 (frapy_function): Update.
1369 * stack.h (find_frame_funname): Update.
1370 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1371 (print_frame): Update.
1372
d6b9b80f
TT
13732017-09-11 Tom Tromey <tom@tromey.com>
1374
1375 * findcmd.c (put_bits): Take a gdb::byte_vector.
1376 (parse_find_args): Return gdb::byte_vector. "args" now const.
1377 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1378 cleanups.
1379 (find_command): Update.
1380
a9921622
TT
13812017-09-11 Tom Tromey <tom@tromey.com>
1382
1383 * cli/cli-script.c (class scoped_restore_hook_in): New.
1384 (clear_hook_in_cleanup): Remove.
1385 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1386 scoped_restore_hook_in.
1387
be0d7abb
TT
13882017-09-11 Tom Tromey <tom@tromey.com>
1389
1390 * cli/cli-script.c (restore_interp): Remove.
1391 (read_command_lines): Use scoped_restore_interp.
1392 * interps.c (scoped_restore_interp::set_temp): Rename from
1393 interp_set_temp.
1394 * interps.h (class scoped_restore_interp): New.
1395 (interp_set_temp): Remove.
1396
00f675ff
TT
13972017-09-11 Tom Tromey <tom@tromey.com>
1398
1399 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1400 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1401 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1402 scoped_restore.
1403 (mi_cmd_break_insert_1): Update.
1404 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1405 scoped_restore.
1406
cb791d59
TT
14072017-09-11 Tom Tromey <tom@tromey.com>
1408
1409 * demangle.c (demangle_command): Update.
1410 * breakpoint.c (disable_command): Update.
1411 (enable_command): Update.
1412 (find_location_by_number): Make "number" const. Use
1413 get_number_trailer.
1414 * cli/cli-utils.c (extract_arg): Return std::string.
1415 * probe.c (parse_probe_linespec): Update. Change types.
1416 (collect_probes): Take string arguments.
1417 (parse_probe_linespec): Likewise.
1418 (info_probes_for_ops): Update.
1419 (enable_probes_command): Update.
1420 (disable_probes_command): Update.
1421 * break-catch-sig.c (catch_signal_split_args): Update.
1422 * mi/mi-parse.c (mi_parse): Update.
1423
2039bd9f
TT
14242017-09-11 Tom Tromey <tom@tromey.com>
1425
1426 * language.h (language_enum): Make argument const.
1427 * language.c (language_enum): Make argument const.
1428
f1735a53
TT
14292017-09-11 Tom Tromey <tom@tromey.com>
1430
1431 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1432 as function.
1433 (skip_to_space): Rename from skip_to_space_const.
1434 * common/common-utils.c (skip_to_space): New function.
1435 (skip_to_space): Rename from skip_to_space_const.
1436 * cli/cli-utils.h (get_number): Rename from get_number_const.
1437 (extract_arg): Rename from extract_arg_const.
1438 * cli/cli-utils.c (get_number): Rename from get_number_const.
1439 (extract_arg): Rename from extract_arg_const.
1440 (number_or_range_parser::get_number): Use ::get_number.
1441 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1442 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1443 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1444 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1445 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1446 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1447 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1448 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1449
7d221d74
TT
14502017-09-11 Tom Tromey <tom@tromey.com>
1451
1452 * python/python.c (do_start_initialization): Use
1453 py-event-types.def to initialize types.
1454 Define all object type structures.
1455 * python/python-internal.h: Don't declare event initialization
1456 functions.
1457 * python/py-threadevent.c (thread_event_object_type): Don't
1458 define.
1459 * python/py-stopevent.c (stop_event_object_type): Don't define.
1460 * python/py-signalevent.c (signal_event_object_type): Don't
1461 declare or define.
1462 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1463 (clear_objfiles_event_object_type): Don't declare or define.
1464 * python/py-infevents.c (inferior_call_pre_event_object_type)
1465 (inferior_call_post_event_object_type)
1466 (register_changed_event_object_type)
1467 (memory_changed_event_object_type): Don't declare or define.
1468 * python/py-inferior.c (new_thread_event_object_type)
1469 (new_inferior_event_object_type)
1470 (inferior_deleted_event_object_type): Don't declare or define.
1471 * python/py-exitedevent.c (exited_event_object_type): Don't
1472 declare or define.
1473 * python/py-evts.c (gdbpy_initialize_py_events): Use
1474 py-all-events.def.
1475 * python/py-events.h (thread_event_object_type): Don't declare.
1476 (events_object): Use py-all-events.def.
1477 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1478 py-event-types.def.
1479 * python/py-event-types.def: New file.
1480 * python/py-continueevent.c (create_continue_event_object): Don't
1481 declare or define.
1482 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1483 declare or define.
1484 * python/py-all-events.def: New file.
1485
35c61a1d
TT
14862017-09-11 Tom Tromey <tom@tromey.com>
1487
1488 * python/py-threadevent.c (create_thread_event_object): Return
1489 gdbpy_ref.
1490 * python/py-stopevent.h (create_stop_event_object)
1491 (create_breakpoint_event_object, create_signal_event_object):
1492 Update.
1493 * python/py-stopevent.c (create_stop_event_object): Return
1494 gdbpy_ref.
1495 (emit_stop_event): Update.
1496 * python/py-signalevent.c (create_signal_event_object): Return
1497 gdbpy_ref.
1498 * python/py-infevents.c (create_inferior_call_event_object):
1499 Update.
1500 * python/py-event.h (create_event_object)
1501 (create_thread_event_object): Update.
1502 * python/py-event.c (create_event_object): Return gdbpy_ref.
1503 * python/py-continueevent.c: Return gdbpy_ref.
1504 * python/py-bpevent.c (create_breakpoint_event_object): Return
1505 gdbpy_ref.
1506
7c96f8c1
TT
15072017-09-11 Tom Tromey <tom@tromey.com>
1508
1509 PR python/15622:
1510 * NEWS: Add entry.
1511 * python/python.c (do_start_initialization): Initialize new event
1512 types.
1513 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1514 (gdbpy_initialize_inferior_deleted_event)
1515 (gdbpy_initialize_new_thread_event): Declare.
1516 * python/py-threadevent.c (create_thread_event_object): Add option
1517 "thread" parameter.
1518 * python/py-inferior.c (new_thread_event_object_type)
1519 (new_inferior_event_object_type)
1520 (inferior_deleted_event_object_type): Declare.
1521 (python_new_inferior, python_inferior_deleted): New functions.
1522 (add_thread_object): Emit new_thread event.
1523 (gdbpy_initialize_inferior): Attach new functions to corresponding
1524 observers.
1525 (new_thread, new_inferior, inferior_deleted): Define new event
1526 types.
1527 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1528 registries.
1529 * python/py-events.h (events_object) <new_inferior,
1530 inferior_deleted, new_thread>: New fields.
1531 * python/py-event.h (create_thread_event_breakpoint): Add optional
1532 "thread" parameter.
1533
72542b8e
AB
15342017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1535
1536 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1537 check current_ui instead.
1538 (internal_vproblem): Likewise.
1539
0d64823e
SM
15402017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1541
1542 * thread.c (print_thread_info_1): Remove unnecessary calls to
1543 uiout->is_mi_like_p.
1544
eb1e02fd
TT
15452017-09-09 Tom Tromey <tom@tromey.com>
1546
1547 * namespace.h (add_using_directive): Update.
1548 * namespace.c (add_using_directive): Change type of excludes to
1549 std::vector.
1550 * dwarf2read.c (read_import_statement): Use std::vector.
1551 (read_namespace): Update.
1552 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1553
0fc21fd8
TT
15542017-09-09 Tom Tromey <tom@tromey.com>
1555
1556 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1557
49663d05
TT
15582017-09-09 Tom Tromey <tom@tromey.com>
1559
1560 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1561
0b868b60
TT
15622017-09-09 Tom Tromey <tom@tromey.com>
1563
1564 * stack.c (func_command): Use gdb::def_vector.
1565
c0470d48
TT
15662017-09-09 Tom Tromey <tom@tromey.com>
1567
1568 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1569 ui_out_emit_list, ui_out_emit_tuple.
1570 (mi_cmd_var_update): Likewise.
1571
ca5909c7
TT
15722017-09-09 Tom Tromey <tom@tromey.com>
1573
1574 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1575 ui_out_redirect_pop.
1576 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1577 ui_out_redirect_pop.
1578 * utils.c (do_ui_out_redirect_pop)
1579 (make_cleanup_ui_out_redirect_pop): Remove.
1580 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1581 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1582 * ui-out.h (ui_out_redirect_pop): New class.
1583
e6a2252a
TT
15842017-09-09 Tom Tromey <tom@tromey.com>
1585
1586 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1587 (list_available_thread_groups, mi_cmd_list_thread_groups)
1588 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1589 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1590 Likewise.
1591
393702cd
TT
15922017-09-09 Tom Tromey <tom@tromey.com>
1593
1594 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1595 ui_out_emit_tuple.
1596
76f9c9cf
TT
15972017-09-09 Tom Tromey <tom@tromey.com>
1598
1599 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1600 * stack.c (print_frame): Use ui_out_emit_tuple.
1601 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1602 (info_spu_mailbox_command, info_spu_dma_command)
1603 (info_spu_proxydma_command): Likewise.
1604 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1605 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1606 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1607 ui_out_emit_tuple.
1608 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1609
dc9fe180
TT
16102017-09-09 Tom Tromey <tom@tromey.com>
1611
1612 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1613 (class ui_out_emit_table): Update comment.
1614 * ui-out.c (do_cleanup_table_end)
1615 (make_cleanup_ui_out_table_begin_end): Remove.
1616 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1617 (info_spu_dma_cmdlist): Likewise.
1618 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1619 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1620 ui_out_emit_table.
1621
f8cc3da6
TT
16222017-09-09 Tom Tromey <tom@tromey.com>
1623
1624 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1625 ui_out_emit_list, gdb::optional.
1626
481695ed
JB
16272017-09-09 John Baldwin <jhb@FreeBSD.org>
1628
1629 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1630 prototype.
1631 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1632 prototype.
1633 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1634 prototype.
1635 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1636 * ada-exp.y: Remove _initialize_ada_exp prototype.
1637 * ada-lang.c: Remove _initialize_ada_language prototype.
1638 * ada-tasks.c: Remove _initialize_tasks prototype.
1639 * addrmap.c: Remove _initialize_addrmap prototype.
1640 * agent.c: Remove _initialize_agent prototype.
1641 * aix-thread.c: Remove _initialize_aix_thread prototype.
1642 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1643 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1644 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1645 prototype.
1646 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1647 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1648 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1649 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1650 prototype.
1651 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1652 prototype.
1653 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1654 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1655 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1656 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1657 prototype.
1658 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1659 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1660 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1661 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1662 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1663 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1664 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1665 prototype.
1666 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1667 prototype.
1668 * annotate.c: Remove _initialize_annotate prototype.
1669 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1670 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1671 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1672 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1673 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1674 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1675 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1676 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1677 prototype.
1678 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1679 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1680 * auto-load.c: Remove _initialize_auto_load prototype.
1681 * auxv.c: Remove _initialize_auxv prototype.
1682 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1683 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1684 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1685 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1686 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1687 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1688 prototype.
1689 * break-catch-throw.c: Remove _initialize_break_catch_throw
1690 prototype.
1691 * breakpoint.c: Remove _initialize_breakpoint prototype.
1692 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1693 * btrace.c: Remove _initialize_btrace prototype.
1694 * charset.c: Remove _initialize_charset prototype.
1695 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1696 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1697 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1698 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1699 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1700 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1701 * coffread.c: Remove _initialize_coffread prototype.
1702 * compile/compile.c: Remove _initialize_compile prototype.
1703 * complaints.c: Remove _initialize_complaints prototype.
1704 * completer.c: Remove _initialize_completer prototype.
1705 * copying.awk: Remove _initialize_copying prototype.
1706 * copying.c: Regenerate.
1707 * core-regset.c: Remove _initialize_core_regset prototype.
1708 * corefile.c: Remove _initialize_core prototype.
1709 * corelow.c: Remove _initialize_corelow prototype.
1710 * cp-abi.c: Remove _initialize_cp_abi prototype.
1711 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1712 * cp-support.c: Remove _initialize_cp_support prototype.
1713 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1714 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1715 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1716 * ctf.c: Remove _initialize_ctf prototype.
1717 * d-lang.c: Remove _initialize_d_language prototype.
1718 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1719 prototype.
1720 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1721 * dbxread.c: Remove _initialize_dbxread prototype.
1722 * dcache.c: Remove _initialize_dcache prototype.
1723 * demangle.c: Remove _initialize_demangler prototype.
1724 * disasm-selftests.c: Remove _initialize_disasm_selftests
1725 prototype.
1726 * disasm.c: Remove _initialize_disasm prototype.
1727 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1728 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1729 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1730 prototype.
1731 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1732 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1733 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1734 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1735 * elfread.c: Remove _initialize_elfread prototype.
1736 * exec.c: Remove _initialize_exec prototype.
1737 * extension.c: Remove _initialize_extension prototype.
1738 * f-lang.c: Remove _initialize_f_language prototype.
1739 * f-valprint.c: Remove _initialize_f_valprint prototype.
1740 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1741 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1742 * filesystem.c: Remove _initialize_filesystem prototype.
1743 * findcmd.c: Remove _initialize_mem_search prototype.
1744 * fork-child.c: Remove _initialize_fork_child prototype.
1745 * frame-base.c: Remove _initialize_frame_base prototype.
1746 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1747 * frame.c: Remove _initialize_frame prototype.
1748 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1749 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1750 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1751 * gcore.c: Remove _initialize_gcore prototype.
1752 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1753 * gdbarch.c: Regenerate.
1754 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1755 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1756 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1757 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1758 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1759 * go-lang.c: Remove _initialize_go_language prototype.
1760 * go32-nat.c: Remove _initialize_go32_nat prototype.
1761 * guile/guile.c: Remove _initialize_guile prototype.
1762 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1763 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1764 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1765 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1766 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1767 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1768 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1769 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1770 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1771 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1772 prototype.
1773 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1774 prototype.
1775 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1776 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1777 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1778 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1779 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1780 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1781 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1782 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1783 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1784 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1785 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1786 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1787 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1788 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1789 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1790 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1791 prototype.
1792 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1793 prototype.
1794 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1795 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1796 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1797 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1798 * infcall.c: Remove _initialize_infcall prototype.
1799 * infcmd.c: Remove _initialize_infcmd prototype.
1800 * inferior.c: Remove _initialize_inferiors prototype.
1801 * inflow.c: Remove _initialize_inflow prototype.
1802 * infrun.c: Remove _initialize_infrun prototype.
1803 * interps.c: Remove _initialize_interpreter prototype.
1804 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1805 * jit.c: Remove _initialize_jit prototype.
1806 * language.c: Remove _initialize_language prototype.
1807 * linux-fork.c: Remove _initialize_linux_fork prototype.
1808 * linux-nat.c: Remove _initialize_linux_nat prototype.
1809 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1810 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1811 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1812 * m2-lang.c: Remove _initialize_m2_language prototype.
1813 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1814 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1815 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1816 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1817 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1818 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1819 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1820 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1821 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1822 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1823 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1824 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1825 * machoread.c: Remove _initialize_machoread prototype.
1826 * macrocmd.c: Remove _initialize_macrocmd prototype.
1827 * macroscope.c: Remove _initialize_macroscope prototype.
1828 * maint.c: Remove _initialize_maint_cmds prototype.
1829 * mdebugread.c: Remove _initialize_mdebugread prototype.
1830 * memattr.c: Remove _initialize_mem prototype.
1831 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1832 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1833 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1834 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1835 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1836 * microblaze-linux-tdep.c: Remove
1837 _initialize_microblaze_linux_tdep prototype.
1838 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1839 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1840 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1841 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1842 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1843 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1844 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1845 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1846 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1847 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1848 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1849 prototype.
1850 * mipsread.c: Remove _initialize_mipsread prototype.
1851 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1852 prototype.
1853 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1854 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1855 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1856 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1857 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1858 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1859 prototype.
1860 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1861 * nto-procfs.c: Remove _initialize_procfs prototype.
1862 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1863 * objc-lang.c: Remove _initialize_objc_language prototype.
1864 * objfiles.c: Remove _initialize_objfiles prototype.
1865 * observer.c: Remove observer_test_first_notification_function,
1866 observer_test_second_notification_function,
1867 observer_test_third_notification_function, and
1868 _initialize_observer prototypes.
1869 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1870 * osabi.c: Remove _initialize_gdb_osabi prototype.
1871 * osdata.c: Remove _initialize_osdata prototype.
1872 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1873 * parse.c: Remove _initialize_parse prototype.
1874 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1875 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1876 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1877 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1878 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1879 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1880 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1881 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1882 * printcmd.c: Remove _initialize_printcmd prototype.
1883 * probe.c: Remove _initialize_probe prototype.
1884 * proc-api.c: Remove _initialize_proc_api prototype.
1885 * proc-events.c: Remove _initialize_proc_events prototype.
1886 * proc-service.c: Remove _initialize_proc_service prototype.
1887 * procfs.c: Remove _initialize_procfs prototype.
1888 * psymtab.c: Remove _initialize_psymtab prototype.
1889 * python/python.c: Remove _initialize_python prototype.
1890 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1891 * record-btrace.c: Remove _initialize_record_btrace prototype.
1892 * record-full.c: Remove _initialize_record_full prototype.
1893 * record.c: Remove _initialize_record prototype.
1894 * regcache.c: Remove _initialize_regcache prototype.
1895 * reggroups.c: Remove _initialize_reggroup prototype.
1896 * remote-notif.c: Remove _initialize_notif prototype.
1897 * remote-sim.c: Remove _initialize_remote_sim prototype.
1898 * remote.c: Remove _initialize_remote prototype.
1899 * reverse.c: Remove _initialize_reverse prototype.
1900 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1901 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1902 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1903 prototype.
1904 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1905 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1906 * rust-exp.y: Remove _initialize_rust_exp prototype.
1907 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1908 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1909 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1910 * score-tdep.c: Remove _initialize_score_tdep prototype.
1911 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1912 prototype.
1913 * ser-go32.c: Remove _initialize_ser_dos prototype.
1914 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1915 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1916 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1917 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1918 * serial.c: Remove _initialize_serial prototype.
1919 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1920 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1921 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1922 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1923 * skip.c: Remove _initialize_step_skip prototype.
1924 * sol-thread.c: Remove _initialize_sol_thread prototype.
1925 * solib-aix.c: Remove _initialize_solib_aix prototype.
1926 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1927 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1928 * solib-frv.c: Remove _initialize_frv_solib prototype.
1929 * solib-spu.c: Remove _initialize_spu_solib prototype.
1930 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1931 * solib-target.c: Remove _initialize_solib_target prototype.
1932 * solib.c: Remove _initialize_solib prototype.
1933 * source.c: Remove _initialize_source prototype.
1934 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1935 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1936 prototype.
1937 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1938 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1939 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1940 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1941 prototype.
1942 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1943 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1944 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1945 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1946 prototype.
1947 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1948 prototype.
1949 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1950 prototype.
1951 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1952 prototype.
1953 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1954 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1955 prototype.
1956 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1957 prototype.
1958 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1959 prototype.
1960 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1961 prototype.
1962 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1963 prototype.
1964 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1965 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1966 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1967 * stabsread.c: Remove _initialize_stabsread prototype.
1968 * stack.c: Remove _initialize_stack prototype.
1969 * stap-probe.c: Remove _initialize_stap_probe prototype.
1970 * std-regs.c: Remove _initialize_frame_reg prototype.
1971 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1972 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1973 * symfile.c: Remove _initialize_symfile prototype.
1974 * symmisc.c: Remove _initialize_symmisc prototype.
1975 * symtab.c: Remove _initialize_symtab prototype.
1976 * target-dcache.c: Remove _initialize_target_dcache prototype.
1977 * target-descriptions.c: Remove _initialize_target_descriptions
1978 prototype.
1979 * thread.c: Remove _initialize_thread prototype.
1980 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1981 prototype.
1982 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1983 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1984 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1985 prototype.
1986 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1987 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1988 * tracefile.c: Remove _initialize_tracefile prototype.
1989 * tracepoint.c: Remove _initialize_tracepoint prototype.
1990 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1991 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1992 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1993 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1994 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1995 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1996 * tui/tui.c: Remove _initialize_tui prototype.
1997 * typeprint.c: Remove _initialize_typeprint prototype.
1998 * user-regs.c: Remove _initialize_user_regs prototype.
1999 * utils.c: Remove _initialize_utils prototype.
2000 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2001 * valarith.c: Remove _initialize_valarith prototype.
2002 * valops.c: Remove _initialize_valops prototype.
2003 * valprint.c: Remove _initialize_valprint prototype.
2004 * value.c: Remove _initialize_values prototype.
2005 * varobj.c: Remove _initialize_varobj prototype.
2006 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2007 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2008 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2009 * windows-nat.c: Remove _initialize_windows_nat,
2010 _initialize_check_for_gdb_ini, and _initialize_loadable
2011 prototypes.
2012 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2013 * xcoffread.c: Remove _initialize_xcoffread prototype.
2014 * xml-support.c: Remove _initialize_xml_support prototype.
2015 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2016 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2017 prototype.
2018 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2019 prototype.
2020 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2021
a611b5cb
KS
20222017-09-08 Keith Seitz <keiths@redhat.com>
2023
2024 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2025 field.
2026
469412dd
CW
20272017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2028
2029 * f-valprint.c (f_val_print): Remove check for one byte
2030 sized integers. Remove printing of character type.
2031
a5ad232b
FP
20322017-09-08 Frank Penczek <frank.penczek@intel.com>
2033 Christoph Weinmann <christoph.t.weinmann@intel.com>
2034 Bernhard Heckel <bernhard.heckel@intel.com>
2035
2036 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2037 to maintain proper indentation when printing pointers/refs.
2038
e5014227
JB
20392017-09-07 Joel Brobecker <brobecker@adacore.com>
2040
2041 GDB 8.0.1 released.
2042
63c99141
JB
20432017-09-07 Joel Brobecker <brobecker@adacore.com>
2044
2045 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2046
69c1e056
TT
20472017-09-05 Tom Tromey <tom@tromey.com>
2048
2049 * parse.c (funcall_chain): Now a std::vector.
2050 (start_arglist, end_arglist): Simplify.
2051 (free_funcalls): Remove.
2052 (parse_exp_in_context_1): Remove cleanup.
2053
fef704bf
TT
20542017-09-05 Tom Tromey <tom@tromey.com>
2055
2056 * go-exp.y (go_parse): Don't create a cleanup.
2057
5613c585
TT
20582017-09-05 Tom Tromey <tom@tromey.com>
2059
2060 * d-exp.y (PrimaryExpression): Use std::string.
2061 (d_parse): Don't create a cleanup.
2062
eae49211
TT
20632017-09-05 Tom Tromey <tom@tromey.com>
2064
2065 * utils.c (do_clear_parser_state): Remove.
2066 (make_cleanup_clear_parser_state): Remove.
2067 * p-exp.y (pascal_parse): Use scoped_restore.
2068 * m2-exp.y (m2_parse): Use scoped_restore.
2069 * f-exp.y (f_parse): Use scoped_restore.
2070 * d-exp.y (d_parse): Use scoped_restore.
2071 * c-exp.y (c_parse): Use scoped_restore.
2072 * ada-exp.y (ada_parse): Use scoped_restore.
2073 * utils.h (make_cleanup_clear_parser_state): Remove.
2074
73b9be8b
KS
20752017-09-06 Keith Seitz <keiths@redhat.com>
2076
2077 * dwarf2read.c (dw2_linkage_name_attr): New function.
2078 (dw2_linkage_name): New function.
2079 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2080 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2081 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2082
a102602b
KR
20832017-09-06 Kamil Rytarowski <n54@gmx.com>
2084
2085 * config/djgpp/djconfig.sh: Correct shell portability issue.
2086
28ad437d
KR
20872017-09-06 Kamil Rytarowski <n54@gmx.com>
2088
2089 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2090
351787dd
JB
20912017-09-06 John Baldwin <jhb@FreeBSD.org>
2092
2093 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2094 * NEWS: Mention new FreeBSD/mips native configuration.
2095 * configure.host: Add aarch64*-*-freebsd*.
2096 * configure.nat: Likewise.
2097 * aarch64-fbsd-nat.c: New file.
2098
c0f84956
JB
20992017-09-06 John Baldwin <jhb@FreeBSD.org>
2100
2101 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2102 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2103 * NEWS: Mention new FreeBSD/aarch64 target.
2104 * configure.tgt: Add aarch64*-*-freebsd*.
2105 * aarch64-fbsd-tdep.c: New file.
2106 * aarch64-fbsd-tdep.h: New file.
2107
7610297a
KR
21082017-09-06 Kamil Rytarowski <n54@gmx.com>
2109
2110 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2111
fbd1b771
JK
21122017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2113
2114 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2115 of TLS symbols.
2116
5ca79eae
PW
21172017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2118
2119 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2120 call.
2121
bf93d7ba
SM
21222017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2123
2124 * infrun.c (follow_exec): Call add_thread after
2125 target_find_description.
2126
1bb7c059
SM
21272017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2128
2129 * infrun.c (handle_inferior_event_1): When exec'ing, read
2130 stop_pc after follow_exec.
2131
fc809827
SM
21322017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2133
2134 * remote.c (process_g_packet): Update error message.
2135
d2fcdd85
YQ
21362017-09-05 Yao Qi <yao.qi@linaro.org>
2137
2138 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2139 targets.
2140
e69570ee
PA
21412017-09-05 Pedro Alves <palves@redhat.com>
2142
2143 * eval.c (eval_call, evaluate_funcall): New functions, factored
2144 out from ...
2145 (evaluate_subexp_standard): ... this.
2146
22916b07
YQ
21472017-09-05 Yao Qi <yao.qi@linaro.org>
2148
2149 * amd64-tdep.c (amd64_target_description): Create target
2150 descriptions.
2151 (_initialize_amd64_tdep): Don't call functions
2152 initialize_tdesc_amd64_*. Add self tests.
2153 * arch/amd64.c (amd64_create_target_description): Add parameter
2154 is_linux. Call set_tdesc_osabi if is_linux is true.
2155 * arch/amd64.h (amd64_create_target_description): Update the
2156 declaration.
2157 * arch/i386.c (i386_create_target_description): Add parameter
2158 is_linux. Call set_tdesc_osabi if is_linux is true.
2159 * arch/i386.h (i386_create_target_description): Update
2160 declaration.
2161 * configure.tgt: Add i386.o to gdb_target_obs.
2162 * features/Makefile (XMLTOC): Remove i386/*.xml.
2163 * features/i386/amd64-avx-avx512.c: Remove.
2164 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2165 * features/i386/amd64-avx-mpx.c: Remove.
2166 * features/i386/amd64-avx.c: Remove.
2167 * features/i386/amd64-mpx.c: Remove.
2168 * features/i386/amd64.c: Remove.
2169 * features/i386/i386-avx-avx512.c: Remove.
2170 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2171 * features/i386/i386-avx-mpx.c: Remove.
2172 * features/i386/i386-avx.c: Remove.
2173 * features/i386/i386-mmx.c: Remove.
2174 * features/i386/i386-mpx.c: Remove.
2175 * features/i386/i386.c: Remove.
2176 * i386-tdep.c: Don't include features/i386/i386*.c., include
2177 target-descriptions.h and arch/i386.h.
2178 (i386_target_description): Create target descriptions.
2179 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2180 functions. Do self tests.
2181
0854b7b1
YQ
21822017-09-05 Yao Qi <yao.qi@linaro.org>
2183
2184 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2185 * features/i386/amd64-avx-avx512-linux.c: Removed.
2186 * features/i386/amd64-avx-linux.c: Removed.
2187 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2188 * features/i386/amd64-avx-mpx-linux.c: Removed.
2189 * features/i386/amd64-linux.c: Removed.
2190 * features/i386/amd64-mpx-linux.c: Removed.
2191 * features/i386/x32-avx-avx512-linux.c: Removed.
2192 * features/i386/x32-avx-linux.c: Removed.
2193 * features/i386/x32-linux.c: Removed.
2194
b4570e4b
YQ
21952017-09-05 Yao Qi <yao.qi@linaro.org>
2196
2197 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2198 features/i386/*.c.
2199 (amd64_linux_read_description): Call
2200 amd64_create_target_description.
2201 * arch/amd64.c: New file.
2202 * arch/amd64.h: New file.
2203 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2204 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2205
6c73f67f
YQ
22062017-09-05 Yao Qi <yao.qi@linaro.org>
2207
2208 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2209 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2210 (amd64_linux_read_description): Create target descriptions.
2211 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2212 functions. Add unit tests.
2213 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2214 x32-core.xml.
2215 * features/i386/64bit-avx.c: Generated.
2216 * features/i386/64bit-avx512.c: Generated.
2217 * features/i386/64bit-core.c: Generated.
2218 * features/i386/64bit-linux.c: Generated.
2219 * features/i386/64bit-mpx.c: Generated.
2220 * features/i386/64bit-pkeys.c: Generated.
2221 * features/i386/64bit-segments.c: Generated.
2222 * features/i386/64bit-sse.c: Generated.
2223 * features/i386/x32-core.c: Generated.
2224 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2225 c files for amd64-linux and x32-linux.
2226
9d3d478b
YQ
22272017-09-05 Yao Qi <yao.qi@linaro.org>
2228
2229 * amd64-linux-tdep.c (amd64_linux_read_description): New
2230 function.
2231 (amd64_linux_core_read_description): Call
2232 amd64_linux_read_description.
2233 (amd64_linux_init_abi): Likewise.
2234 (amd64_x32_linux_init_abi): Likewise.
2235 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2236 * x86-linux-nat.c (x86_linux_read_description): Call
2237 amd64_linux_read_description.
2238
b9f1d50f
YQ
22392017-09-05 Yao Qi <yao.qi@linaro.org>
2240
2241 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2242 comments.
2243
188c9e6d
YQ
22442017-09-05 Yao Qi <yao.qi@linaro.org>
2245
2246 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2247 * features/i386/i386-avx-avx512-linux.c: Remove.
2248 * features/i386/i386-avx-linux.c: Remove.
2249 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2250 * features/i386/i386-avx-mpx-linux.c: Remove.
2251 * features/i386/i386-linux.c: Remove.
2252 * features/i386/i386-mmx-linux.c: Remove.
2253 * features/i386/i386-mpx-linux.c: Remove.
2254
5f035c07
YQ
22552017-09-05 Yao Qi <yao.qi@linaro.org>
2256
2257 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2258 (SFILES): Add arch/i386.c.
2259 (HFILES_NO_SRCDIR): Add arch/i386.h.
2260 * arch/i386.c: New file.
2261 * arch/i386.h: New file.
2262 * arch/tdesc.h (allocate_target_description): Declare.
2263 (set_tdesc_architecture): Declare.
2264 (set_tdesc_osabi): Declare.
2265 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2266 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2267 include arch/i386.h.
2268 (i386_linux_read_description): Remove code and call
2269 i386_create_target_description.
2270 (set_tdesc_architecture): New function.
2271 (set_tdesc_osabi): New function.
2272 * target-descriptions.h (allocate_target_description): Remove.
2273
0abe8a89
YQ
22742017-09-05 Yao Qi <yao.qi@linaro.org>
2275
2276 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2277 * target-descriptions.c (tdesc_create_feature): Likewise, and
2278 adjust code.
2279 * features/i386/32bit-avx.c: Re-generated.
2280 * features/i386/32bit-avx512.c: Re-generated.
2281 * features/i386/32bit-core.c: Re-generated.
2282 * features/i386/32bit-linux.c: Re-generated.
2283 * features/i386/32bit-mpx.c: Re-generated.
2284 * features/i386/32bit-pkeys.c: Re-generated.
2285 * features/i386/32bit-sse.c: Re-generated.
2286
0a188386
YQ
22872017-09-05 Yao Qi <yao.qi@linaro.org>
2288
2289 * regformats/regdef.h (struct reg): Override operator == and !=.
2290
f49ff000
YQ
22912017-09-05 Yao Qi <yao.qi@linaro.org>
2292
2293 * arch/tdesc.h: New file.
2294 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2295 * target-descriptions.c: Update comments.
2296 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2297 declarations.
2298 * features/i386/32bit-avx.c: Re-generated.
2299 * features/i386/32bit-avx512.c: Re-generated.
2300 * features/i386/32bit-core.c: Re-generated.
2301 * features/i386/32bit-linux.c: Re-generated.
2302 * features/i386/32bit-mpx.c: Re-generated.
2303 * features/i386/32bit-pkeys.c: Re-generated.
2304 * features/i386/32bit-sse.c: Re-generated.
2305
f7000548
YQ
23062017-09-05 Yao Qi <yao.qi@linaro.org>
2307
2308 * regformats/regdat.sh: Update generated code.
2309
c9a5e2a5
YQ
23102017-09-05 Yao Qi <yao.qi@linaro.org>
2311
2312 * regformats/regdat.sh: Adjust code order.
2313
d6b687ac
SM
23142017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2315
2316 * expprint.c (dump_subexp_body_standard): Use constant format
2317 string in fprintf_filtered call.
2318
a379bfd0
JB
23192017-09-04 John Baldwin <jhb@FreeBSD.org>
2320
2321 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2322 NetBSD/i386.
2323 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2324
f7efc967
JB
23252017-09-04 John Baldwin <jhb@FreeBSD.org>
2326
2327 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2328
c49fbc6c
JB
23292017-09-04 John Baldwin <jhb@FreeBSD.org>
2330
2331 * bsd-kvm.o: Define _KMEMUSER.
2332 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2333 * configure: Regenerate.
2334
26562e73
JB
23352017-09-04 John Baldwin <jhb@FreeBSD.org>
2336
2337 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2338 * i386-fbsd-nat.c: Likewise.
2339
31cf1487
JB
23402017-09-04 John Baldwin <jhb@FreeBSD.org>
2341
2342 * unittests/array-view-selftests.c: Add include of <array>.
2343
5b9f8a7c
JB
23442017-09-04 John Baldwin <jhb@FreeBSD.org>
2345
2346 * spu-tdep.c (flush_ea_cache): Add missing argument to
2347 call_function_by_hand.
2348
d69cf9b2
PA
23492017-09-04 Pedro Alves <palves@redhat.com>
2350
2351 * NEWS (Safer support for debugging with no debug info): New.
2352
3693fdb3
PA
23532017-09-04 Pedro Alves <palves@redhat.com>
2354
2355 * c-exp.y (function_method, function_method_void): Add current
2356 instance flags to TYPE_INSTANCE.
2357 * dwarf2read.c (check_modifier): New.
2358 (compute_delayed_physnames): Assert that only C++ adds delayed
2359 physnames. Mark fn_fields as const/volatile depending on
2360 physname.
2361 * eval.c (make_params): New type_instance_flags parameter. Use
2362 it as the new type's instance flags.
2363 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2364 flags element and pass it to make_params.
2365 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2366 instance flags element.
2367 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2368 * gdbtypes.h: Include "enum-flags.h".
2369 (type_instance_flags): New enum-flags type.
2370 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2371 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2372 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2373 (follow_type_instance_flags): New function.
2374 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2375 * parser-defs.h (follow_type_instance_flags): Declare.
2376 * valops.c (value_struct_elt_for_reference): const/volatile must
2377 match too.
2378
e68cb8e0
PA
23792017-09-04 Pedro Alves <palves@redhat.com>
2380
2381 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2382 function/method scopes; lookup the nested name as a function local
2383 static variable.
2384
858be34c
PA
23852017-09-04 Pedro Alves <palves@redhat.com>
2386
2387 (%type <voidval>): Add function_method.
2388 * c-exp.y (exp): New production for calls with no arguments.
2389 (function_method, function_method_void_or_typelist): New
2390 productions.
2391 (exp): New production for "method()::static_var".
2392 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2393 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2394 Handle OP_FUNC_STATIC_VAR.
2395 * parse.c (operator_length_standard):
2396 Handle OP_FUNC_STATIC_VAR.
2397
dd5901a6
PA
23982017-09-04 Pedro Alves <palves@redhat.com>
2399
2400 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2401 handling.
2402 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2403 Ditto.
2404 * parse.c (operator_length_standard, operator_check_standard):
2405 Ditto.
2406 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2407
46a4882b
PA
24082017-09-04 Pedro Alves <palves@redhat.com>
2409
2410 * ax-gdb.c: Include "typeprint.h".
2411 (gen_expr_for_cast): New function.
2412 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2413 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2414 type is unknown.
2415 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2416 nodebug_data_symbol.
2417 * eval.c: Include "typeprint.h".
2418 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2419 Error out if symbol has unknown type.
2420 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2421 evaluate_subexp_for_cast.
2422 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2423 OP_VAR_MSYM_VALUE.
2424 (evaluate_subexp_for_cast): New function.
2425 * gdbtypes.c (init_nodebug_var_type): New function.
2426 (objfile_type): Use it to initialize types of variables with no
2427 debug info.
2428 * typeprint.c (error_unknown_type): New.
2429 * typeprint.h (error_unknown_type): New declaration.
2430 * compile/compile-c-types.c (convert_type_basic): Handle
2431 TYPE_CODE_ERROR; warn and fallback to int for variables with
2432 unknown type.
2433
fe13dfec
PA
24342017-09-04 Pedro Alves <palves@redhat.com>
2435
2436 * eval.c (evaluate_var_value): New function, factored out from ...
2437 (evaluate_subexp_standard): ... here.
2438
d008ee21
PA
24392017-09-04 Pedro Alves <palves@redhat.com>
2440
2441 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2442 Remove useless assignments to 'op'.
2443
827d0c51
PA
24442017-09-04 Pedro Alves <palves@redhat.com>
2445
2446 * eval.c (eval_skip_value): New function.
2447 (evaluate_subexp_standard): Use it.
2448
2c5a2be1
PA
24492017-09-04 Pedro Alves <palves@redhat.com>
2450
2451 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2452 function name from symbol/minsym and pass it to
2453 error_call_unknown_return_type.
2454
74ea4be4
PA
24552017-09-04 Pedro Alves <palves@redhat.com>
2456
2457 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2458 * ax-gdb.c (gen_msym_var_ref): New function.
2459 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2460 * eval.c (evaluate_var_msym_value): New function.
2461 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2462 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2463 to call_function_by_hand.
2464 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2465 Handle OP_VAR_MSYM_VALUE.
2466 (union exp_element) <msymbol>: New field.
2467 * minsyms.h (struct type): Forward declare.
2468 (find_minsym_type_and_address): Declare.
2469 * parse.c (write_exp_elt_msym): New function.
2470 (write_exp_msymbol): Delete, refactored as ...
2471 (find_minsym_type_and_address): ... this new function.
2472 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2473 (operator_length_standard, operator_check_standard): Handle
2474 OP_VAR_MSYM_VALUE.
2475 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2476
7022349d
PA
24772017-09-04 Pedro Alves <palves@redhat.com>
2478
2479 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2480 TYPE_GNU_IFUNC specially here. Throw error if return type is
2481 unknown.
2482 * ada-typeprint.c (print_func_type): Handle functions with unknown
2483 return type.
2484 * c-typeprint.c (c_type_print_base): Handle functions and methods
2485 with unknown return type.
2486 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2487 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2488 * compile/compile-c-types.c: Include "objfiles.h".
2489 (convert_func): For functions with unknown return type, warn and
2490 default to int.
2491 * compile/compile-object-run.c (compile_object_run): Adjust call
2492 to call_function_by_hand_dummy.
2493 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2494 call_function_by_hand.
2495 * eval.c (evaluate_subexp_standard): Adjust calls to
2496 call_function_by_hand. Handle functions and methods with unknown
2497 return type. Pass expect_type to call_function_by_hand.
2498 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2499 return type.
2500 * gcore.c (call_target_sbrk): Adjust call to
2501 call_function_by_hand.
2502 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2503 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2504 an integer address type instead of nodebug.
2505 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2506 call_function_by_hand.
2507 * infcall.c (error_call_unknown_return_type): New function.
2508 (call_function_by_hand): New "default_return_type" parameter.
2509 Pass it down.
2510 (call_function_by_hand_dummy): New "default_return_type"
2511 parameter. Use it instead of defaulting to int. If there's no
2512 default and the return type is unknown, throw an error. If
2513 there's a default return type, and the called function has no
2514 debug info, then assume the function is prototyped.
2515 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2516 New "default_return_type" parameter.
2517 (error_call_unknown_return_type): New declaration.
2518 * linux-fork.c (call_lseek): Cast return type of lseek.
2519 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2520 call_function_by_hand.
2521 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2522 calls to call_function_by_hand.
2523 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2524 return type.
2525 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2526 (value_nsstring, print_object_command): Adjust calls to
2527 call_function_by_hand.
2528 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2529 functions with unknown return type.
2530 (pascal_type_print_func_varspec_suffix): New function.
2531 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2532 TYPE_CODE_METHOD>: Use it.
2533 * python/py-value.c (valpy_call): Adjust call to
2534 call_function_by_hand.
2535 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2536 call_function_by_hand.
2537 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2538 call_function_by_hand.
2539 * valops.c (value_allocate_space_in_inferior): Adjust call to
2540 call_function_by_hand.
2541 * typeprint.c (type_print_unknown_return_type): New function.
2542 * typeprint.h (type_print_unknown_return_type): New declaration.
2543
54990598
PA
25442017-09-04 Pedro Alves <palves@redhat.com>
2545
2546 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2547 types with more than one parameter as prototyped.
2548
9a24775b
PA
25492017-09-04 Pedro Alves <palves@redhat.com>
2550
2551 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2552 (disassemble_command): Use gdb_disassembly_flags instead of bare
2553 int.
2554 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2555 (dump_insns, do_mixed_source_and_assembly_deprecated)
2556 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2557 Use gdb_disassembly_flags instead of bare int.
2558 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2559 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2560 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2561 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2562 (enum gdb_disassembly_flag): ... values of this new enumeration.
2563 (gdb_disassembly_flags): Define.
2564 (gdb_disassembly)
2565 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2566 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2567 gdb_disassembly_flags instead of bare int.
2568 * record-btrace.c (btrace_insn_history)
2569 (record_btrace_insn_history, record_btrace_insn_history_range)
2570 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2571 instead of bare int.
2572 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2573 Use gdb_disassembly_flags instead of bare int.
2574 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2575 Define.
2576 * target-delegates.c: Regenerate.
2577 * target.c (target_insn_history, target_insn_history_from)
2578 (target_insn_history_range): Use gdb_disassembly_flags instead of
2579 bare int.
2580 * target.h: Include "disasm.h".
2581 (struct target_ops) <to_insn_history, to_insn_history_from,
2582 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2583 int.
2584 (target_insn_history, target_insn_history_from)
2585 (target_insn_history_range): Use gdb_disassembly_flags instead of
2586 bare int.
2587
80a65e9b
SM
25882017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2589
2590 * cli/cli-script.c (build_command_line): For if/while commands,
2591 check whether args is empty.
2592
6b66338c
SM
25932017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2594
2595 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2596 (enum command_control_type): Likewise.
2597 (struct command_line): Likewise.
2598 (free_command_lines): Likewise.
2599 (struct command_lines_deleter): Likewise.
2600 (command_line_up): Likewise.
2601 (read_command_lines): Likewise.
2602 (read_command_lines_1): Likewise.
2603 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2604 (enum command_control_type): Likewise.
2605 (struct command_line): Likewise.
2606 (free_command_lines): Likewise.
2607 (struct command_lines_deleter): Likewise.
2608 (command_line_up): Likewise.
2609 (read_command_lines): Likewise.
2610 (read_command_lines_1): Likewise.
2611 * breakpoint.h: Include cli/cli-script.h.
2612 * extension-priv.h: Likewise.
2613 * gdbcmd.h: Likewise.
2614
51abb421
PA
26152017-09-04 Pedro Alves <palves@redhat.com>
2616
2617 * ada-lang.c (is_known_support_routine): Move sal declaration to
2618 where it is initialized.
2619 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2620 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2621 (clear_command, update_static_tracepoint): Remove init_sal
2622 references. Move declarations closer to initializations.
2623 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2624 initializations.
2625 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2626 references. Move sal declarations closer to initializations.
2627 * frame.c (find_frame_sal): Return a symtab_and_line via function
2628 return instead of output parameter. Remove init_sal references.
2629 * frame.h (find_frame_sal): Return a symtab_and_line via function
2630 return instead of output parameter.
2631 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2632 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2633 instead of memset.
2634 (gdbscm_find_pc_line): Remove init_sal reference.
2635 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2636 references. Move declarations closer to initializations.
2637 * infcmd.c (set_step_frame): Update. Move declarations closer to
2638 initializations.
2639 (finish_backward): Remove init_sal references. Move declarations
2640 closer to initializations.
2641 * infrun.c (process_event_stop_test, handle_step_into_function)
2642 (insert_hp_step_resume_breakpoint_at_frame)
2643 (insert_step_resume_breakpoint_at_caller): Likewise.
2644 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2645 (symbol_to_sal): Likewise.
2646 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2647 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2648 to its initialization.
2649 * reverse.c (save_bookmark_command): Use new/delete. Remove
2650 init_sal references. Move declarations closer to initializations.
2651 * source.c (get_current_source_symtab_and_line): Remove brace
2652 initialization.
2653 (set_current_source_symtab_and_line): Now takes the sal by const
2654 reference. Remove brace initialization.
2655 (line_info): Remove init_sal reference.
2656 * source.h (set_current_source_symtab_and_line): Now takes a
2657 symtab_and_line via const reference.
2658 * stack.c (set_current_sal_from_frame): Adjust.
2659 (print_frame_info): Adjust.
2660 (get_last_displayed_sal): Return the sal via function return
2661 instead of via output parameter. Simplify.
2662 (frame_info): Adjust.
2663 * stack.h (get_last_displayed_sal): Return the sal via function
2664 return instead of via output parameter.
2665 * symtab.c (init_sal): Delete.
2666 (find_pc_sect_line): Remove init_sal references. Move
2667 declarations closer to initializations.
2668 (find_function_start_sal): Remove init_sal references. Move
2669 declarations closer to initializations.
2670 * symtab.h (struct symtab_and_line): In-class initialize all
2671 fields.
2672 * tracepoint.c (set_traceframe_context)
2673 (print_one_static_tracepoint_marker): Remove init_sal references.
2674 Move declarations closer to initializations.
2675 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2676 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2677 declarations closer to initializations.
2678 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2679 init_sal references. Adjust.
2680
6c5b2ebe
PA
26812017-09-04 Pedro Alves <palves@redhat.com>
2682
2683 * ax-gdb.c (agent_command_1): Use range-for.
2684 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2685 * breakpoint.c: Include "common/array-view.h".
2686 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2687 parameter from struct symtabs_and_lines to
2688 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2689 (breakpoint_sals_to_pc): Change sals parameter from struct
2690 symtabs_and_lines to std::vector reference.
2691 (check_fast_tracepoint_sals): Change sals parameter from struct
2692 symtabs_and_lines to std::array_view. Use range-for.
2693 (decode_static_tracepoint_spec): Return a std::vector instead of
2694 symtabs_and_lines. Update.
2695 (create_breakpoint): Update.
2696 (break_range_command, until_break_command, clear_command): Update.
2697 (base_breakpoint_decode_location, bkpt_decode_location)
2698 (bkpt_probe_create_sals_from_location)
2699 (bkpt_probe_decode_location, tracepoint_decode_location)
2700 (tracepoint_probe_decode_location)
2701 (strace_marker_create_sals_from_location): Return a std::vector
2702 instead of symtabs_and_lines.
2703 (strace_marker_create_breakpoints_sal): Update.
2704 (strace_marker_decode_location): Return a std::vector instead of
2705 symtabs_and_lines. Update.
2706 (update_breakpoint_locations): Change struct symtabs_and_lines
2707 parameters to gdb::array_view. Adjust.
2708 (location_to_sals): Return a std::vector instead of
2709 symtabs_and_lines. Update.
2710 (breakpoint_re_set_default): Use std::vector instead of struct
2711 symtabs_and_lines.
2712 (decode_location_default): Return a std::vector instead of
2713 symtabs_and_lines. Update.
2714 * breakpoint.h: Include "common/array-view.h".
2715 (struct breakpoint_ops) <decode_location>: Now returns a
2716 std::vector instead of returning a symtabs_and_lines via output
2717 parameter.
2718 (update_breakpoint_locations): Change sals parameters to use
2719 gdb::array_view.
2720 * cli/cli-cmds.c (edit_command, list_command): Update to use
2721 std::vector and gdb::array_view.
2722 (ambiguous_line_spec): Adjust to use gdb::array_view and
2723 range-for.
2724 (compare_symtabs): Rename to ...
2725 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2726 const reference and adjust.
2727 (filter_sals): Rewrite using std::vector and standard algorithms.
2728 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2729 (jump_command): Update to use std::vector.
2730 * linespec.c (struct linespec_state) <canonical_names>: Update
2731 comment.
2732 (add_sal_to_sals_basic): Delete.
2733 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2734 (decode_line_2, create_sals_line_offset)
2735 (convert_address_location_to_sals, convert_linespec_to_sals)
2736 (convert_explicit_location_to_sals, parse_linespec)
2737 (event_location_to_sals, decode_line_full, decode_line_1)
2738 (decode_line_with_current_source)
2739 (decode_line_with_last_displayed, decode_objc)
2740 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2741 (linespec_result::~linespec_result): Adjust to use std::vector
2742 instead of symtabs_and_lines.
2743 * linespec.h (linespec_sals::sals): Now a std::vector.
2744 (struct linespec_result): Use std::vector, bool, and in-class
2745 initialization.
2746 (decode_line_1, decode_line_with_current_source)
2747 (decode_line_with_last_displayed): Return std::vector.
2748 * macrocmd.c (info_macros_command): Use std::vector.
2749 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2750 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2751 std::vector.
2752 * probe.h (parse_probes): Return a std::vector.
2753 * python/python.c (gdbpy_decode_line): Use std::vector and
2754 gdb::array_view.
2755 * source.c (select_source_symtab, line_info): Use std::vector.
2756 * stack.c (func_command): Use std::vector.
2757 * symtab.h (struct symtabs_and_lines): Delete.
2758 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2759
7c44b49c
PA
27602017-09-04 Pedro Alves <palves@redhat.com>
2761
2762 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2763 unittests/array-view-selftests.c.
2764 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2765 * common/array-view.h: New file.
2766 * unittests/array-view-selftests.c: New file.
2767
e439fa14
PA
27682017-09-04 Pedro Alves <palves@redhat.com>
2769
2770 * cli/cli-cmds.c (edit_command): Pass message to
2771 ambiguous_line_spec.
2772 (list_command): Pass message to ambiguous_line_spec. Say
2773 "first"/"last" instead of "start" and "end" to be consistent with
2774 the manual.
2775 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2776 them to print formatted message.
2777
7525b645
PA
27782017-09-04 Pedro Alves <palves@redhat.com>
2779
2780 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2781 ftrace_update_insns by reference instead of pointer.
2782
badc0020
YQ
27832017-09-04 Yao Qi <yao.qi@linaro.org>
2784
2785 * i386-go32-tdep.c: Include x86-xstate.h.
2786 (i386_go32_init_abi): Call i386_target_description.
2787 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2788 if xcr0 is X86_XSTATE_X87_MASK.
2789 * i386-tdep.h (tdesc_i386): Remove the declaration.
2790 (tdesc_i386_mmx): Likewise.
2791
d78bdb54
YQ
27922017-09-04 Yao Qi <yao.qi@linaro.org>
2793
2794 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2795 X86_XSTATE_SSE_MASK instead of 0.
2796
ca1fa5ee
YQ
27972017-09-04 Yao Qi <yao.qi@linaro.org>
2798
2799 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2800 i386_target_description.
2801 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2802 i386_target_description.
2803 * i386-tdep.c (i386_gdbarch_init): Likewise.
2804
2434b019
YQ
28052017-09-04 Yao Qi <yao.qi@linaro.org>
2806
2807 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2808 (x86_darwin_init_abi_64): Call amd64_target_description.
2809 * amd64-dicos-tdep.c: Likewise.
2810 * amd64-fbsd-nat.c: Likewise.
2811 * amd64-fbsd-tdep.c: Likewise.
2812 * amd64-nbsd-tdep.c: Likewise.
2813 * amd64-obsd-tdep.c: Likewise.
2814 * amd64-sol2-tdep.c: Likewise.
2815 * amd64-windows-tdep.c: Likewise.
2816 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2817
0860c437
SM
28182017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2819
2820 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2821 (btrace_function) <insn>: Change type to use std::vector.
2822 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2823 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2824 ftrace_update_insns, ftrace_compute_global_level_offset,
2825 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2826 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2827 change to std::vector.
2828 (ftrace_update_insns): Adjust to change to std::vector, change
2829 type of INSN parameter.
2830 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2831 * record-btrace.c (btrace_call_history_insn_range,
2832 btrace_compute_src_line_range,
2833 record_btrace_frame_prev_register): Adjust to change to
2834 std::vector.
2835 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2836 to change to std::vector.
2837
0638b7f9
TT
28382017-09-03 Tom Tromey <tom@tromey.com>
2839
2840 * corefile.c (reopen_exec_file): Use std::string.
2841
8f84fb0e
TT
28422017-09-03 Tom Tromey <tom@tromey.com>
2843
2844 * compile/compile.c (compile_register_name_mangled): Return
2845 std::string.
2846 * compile/compile-loc2c.c (pushf_register_address): Update.
2847 (pushf_register): Update.
2848 * compile/compile-c-types.c (convert_array): Update.
2849 * compile/compile-c-symbols.c (generate_vla_size): Update.
2850 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2851 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2852 (convert_one_symbol): Update.
2853 (generate_c_for_for_one_variable): Update.
2854 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2855 std::string.
2856 (generate_register_struct): Update.
2857 * compile/compile-internal.h (c_get_range_decl_name): Return a
2858 std::string.
2859 (compile_register_name_mangled): Return std::string.
2860
18e9961f
TT
28612017-09-03 Tom Tromey <tom@tromey.com>
2862
2863 * utils.c (perror_string): Return a std::string.
2864 (throw_perror_with_name, perror_warning_with_name): Update.
2865
45343786
TT
28662017-09-03 Tom Tromey <tom@tromey.com>
2867
2868 * demangle.c (demangle_command): Use std::string,
2869 unique_xmalloc_ptr.
2870
b57af503
TT
28712017-09-03 Tom Tromey <tom@tromey.com>
2872
2873 * cli/cli-setshow.c (do_set_command): Use std::string.
2874
6eecf35f
TT
28752017-09-03 Tom Tromey <tom@tromey.com>
2876
2877 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2878
56496dd4
TT
28792017-09-03 Tom Tromey <tom@tromey.com>
2880
2881 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2882
e91a1fa7
TT
28832017-09-03 Tom Tromey <tom@tromey.com>
2884
2885 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2886 gdb::unique_xmalloc_ptr.
2887
7ffd83d7
TT
28882017-09-03 Tom Tromey <tom@tromey.com>
2889
2890 * thread.c (print_thread_info_1): Use string_printf.
2891 (thread_apply_command, thread_apply_all_command): Use
2892 std::string.
2893
1ccbe998
TT
28942017-09-03 Tom Tromey <tom@tromey.com>
2895
2896 * valprint.c (val_print_string): Update.
2897 * gdbcore.h (memory_error_message): Return std::string.
2898 * corefile.c (memory_error_message): Return std::string.
2899 (memory_error): Update.
2900 * breakpoint.c (insert_bp_location): Update.
2901
23fdd69e
SM
29022017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2903
2904 * target/waitstatus.h (target_waitstatus_to_string): Change
2905 return type to std::string.
2906 * target/waitstatus.c (target_waitstatus_to_string): Return
2907 std::string.
2908 * target.h (target_waitstatus_to_string): Remove declaration.
2909 * infrun.c (resume, clear_proceed_status_thread,
2910 print_target_wait_results, do_target_wait, save_waitstatus,
2911 stop_all_threads): Adjust.
2912 * record-btrace.c (record_btrace_wait): Adjust.
2913 * target-debug.h
2914 (target_debug_print_struct_target_waitstatus_p): Adjust.
2915
5c811d30
JK
29162017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2917
2918 PR gdb/22046
2919 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2920 detection.
2921
0a2dde4a
SDJ
29222017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2923
2924 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2925 for setting/unsetting environment variables on the remote target.
2926 (New remote packets): Add entries for QEnvironmentHexEncoded,
2927 QEnvironmentUnset and QEnvironmentReset.
2928 * common/environ.c (gdb_environ::operator=): Extend method to
2929 handle m_user_set_env_list and m_user_unset_env_list.
2930 (gdb_environ::clear): Likewise.
2931 (match_var_in_string): Change type of first parameter from 'char
2932 *' to 'const char *'.
2933 (gdb_environ::set): Extend method to handle
2934 m_user_set_env_list and m_user_unset_env_list.
2935 (gdb_environ::unset): Likewise.
2936 (gdb_environ::clear_user_set_env): New method.
2937 (gdb_environ::user_set_envp): Likewise.
2938 (gdb_environ::user_unset_envp): Likewise.
2939 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2940 m_user_unset_env_list on move constructor/assignment.
2941 (unset): Add new default parameter 'update_unset_list = true'.
2942 (clear_user_set_env): New method.
2943 (user_set_envp): Likewise.
2944 (user_unset_envp): Likewise.
2945 (m_user_set_env_list): New std::set.
2946 (m_user_unset_env_list): Likewise.
2947 * common/rsp-low.c (hex2str): New function.
2948 (bin2hex): New overload for bin2hex function.
2949 * common/rsp-low.c (hex2str): New prototype.
2950 (str2hex): New overload prototype.
2951 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2952 QEnvironmentUnset and QEnvironmentReset.
2953 (remote_protocol_features): Add QEnvironmentHexEncoded,
2954 QEnvironmentUnset and QEnvironmentReset packets.
2955 (send_environment_packet): New function.
2956 (extended_remote_environment_support): Likewise.
2957 (extended_remote_create_inferior): Call
2958 extended_remote_environment_support.
2959 (_initialize_remote): Add QEnvironmentHexEncoded,
2960 QEnvironmentUnset and QEnvironmentReset packet configs.
2961 * unittests/environ-selftests.c (gdb_selftest_env_var):
2962 New variable.
2963 (test_vector_initialization): New function.
2964 (test_init_from_host_environ): Likewise.
2965 (test_reinit_from_host_environ): Likewise.
2966 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2967 Likewise.
2968 (test_unset_set_empty_vector): Likewise.
2969 (test_vector_clear): Likewise.
2970 (test_std_move): Likewise.
2971 (test_move_constructor):
2972 (test_self_move): Likewise.
2973 (test_set_unset_reset): Likewise.
2974 (run_tests): Rewrite in terms of the functions above.
2975
654670a4
WP
29762017-08-31 Weimin Pan <weimin.pan@oracle.com>
2977
2978 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2979 (adi_available): Use a temp variable of type CORE_ADDR as argument
2980 3 when calling target_auxv_search.
2981 (adi_normalize_address): Use masks and xor operators to calculate
2982 normalized address.
2983 (adi_read_versions, adi_write_versions, adi_print_versions)
2984 (do_examine, do_assign): Use paddress.
2985
7755ddb7
JB
29862017-08-29 John Baldwin <jhb@FreeBSD.org>
2987
2988 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2989 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2990 out of loop and add supply of FIR.
2991 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2992 add collect of FIR.
2993
fd437cbc
SM
29942017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2995
3804a343 2996 PR gdb/21827
fd437cbc
SM
2997 * cli/cli-script.c (define_command): Don't convert command name
2998 to lower case.
2999
988f6b3d
JB
30002017-08-25 Joel Brobecker <brobecker@adacore.com>
3001
3002 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3003 Update all callers accordingly. Remove all code blocks handling
3004 the case where DISPP is not NULL.
3005
663c44ac
JK
30062017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3007
3008 PR symtab/22003
3009 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3010 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3011 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3012
f1902523
JK
30132017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3014
3015 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3016 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3017 (read_comp_units_from_section): New parameter abbrev_section, use
3018 read_and_check_comp_unit_head, allocate signatured_type if needed.
3019 (create_all_comp_units): Update read_comp_units_from_section caller.
3020
87215ad1
SDJ
30212017-08-23 Pedro Alves <palves@redhat.com>
3022
3023 PR remote/21852
3024 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3025 to null_ptid and switch to thread without reading the registers
3026 after adding the inferior.
3027
6e41ddec
JK
30282017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3029
3030 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3031 compile-gcc.
3032 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3033 (compile_to_object): Implement compile_gcc.
3034 (_initialize_compile): Install "set compile-gcc". Initialize
3035 compile_gcc.
3036
e68c32d5
JK
30372017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3038
3039 * compile/compile.c (compile_to_object): Conditionally call
3040 set_verbose. Conditionally call compile or compile_v0.
3041
58afddc6
WP
30422017-08-07 Weimin Pan <weimin.pan@oracle.com>
3043
3044 * sparc64-tdep.h: (adi_normalize_address): New export.
3045 * sparc-nat.h: (open_adi_tag_fd): New export.
3046 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3047 * sparc64-linux-tdep.c:
3048 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3049 (sparc64_linux_handle_segmentation_fault): New function.
3050 (sparc64_linux_init_abi): Register
3051 sparc64_linux_handle_segmentation_fault
3052 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3053 (sparc64_addr_bits_remove): New function.
3054 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3055 (MAX_PROC_NAME_SIZE): New macro.
3056 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3057 (sparc64adilist): New variable.
3058 (adi_proc_list): New variable.
3059 (find_adi_info): New function.
3060 (add_adi_info): New function.
3061 (get_adi_info_proc): New function.
3062 (get_adi_info): New function.
3063 (info_adi_command): New function.
3064 (read_maps_entry): New function.
3065 (adi_available): New function.
3066 (adi_normalize_address): New function.
3067 (adi_align_address): New function.
3068 (adi_convert_byte_count): New function.
3069 (adi_tag_fd): New function.
3070 (adi_is_addr_mapped): New function.
3071 (adi_read_versions): New function.
3072 (adi_write_versions): New function.
3073 (adi_print_versions): New function.
3074 (do_examine): New function.
3075 (do_assign): New function.
3076 (adi_examine_command): New function.
3077 (adi_assign_command): New function.
3078 (_initialize_sparc64_adi_tdep): New function.
3079
11db9430
SM
30802017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3081
3082 * breakpoint.c (breakpoints_info): Rename to ...
3083 (info_breakpoints_command): ... this.
3084 (watchpoints_info): Rename to ...
3085 (info_watchpoints_command): ... this.
3086 (tracepoints_info): Rename to ...
3087 (info_tracepoints_command): ... this.
3088 (_initialize_breakpoint): Adjust.
3089 * dcache.c (dcache_info): Rename to ...
3090 (info_display_command): ... this.
3091 (_initialize_dcache): Adjust.
3092 * frame.h (args_info): Rename to ...
3093 (info_args_command): ... this.
3094 (locals_info): Rename to ...
3095 (info_locals_command): ... this.
3096 * infcmd.c (nofp_registers_info): Rename to ...
3097 (info_registers_command): ... this.
3098 (float_info): Rename to ...
3099 (info_float_command): ... this.
3100 (program_info): Rename to ...
3101 (info_program_command): ... this.
3102 (all_registers_info): Rename to ...
3103 (info_all_registers_command): ... this.
3104 (vector_info): Rename to ...
3105 (info_vector_command): ... this.
3106 (float_info): Rename to ...
3107 (info_float_command): ... this.
3108 (_initialize_infcmd): Adjust.
3109 * inferior.h (term_info): Rename to ...
3110 (info_terminal_command): ... this.
3111 * inflow.c (term_info): Rename to ...
3112 (info_terminal_command): ... this.
3113 (_initialize_inflow): Adjust.
3114 * infrun.c (signals_info): Rename to ...
3115 (info_signals_command): ... this.
3116 (_initialize_infrun): Adjust.
3117 * objc-lang.c (classes_info): Rename to ...
3118 (info_classes_command): ... this.
3119 (selectors_info): Rename to ...
3120 (info_selectors_command): ... this.
3121 (_initialize_objc_language): Adjust.
3122 * printcmd.c (sym_info): Rename to ...
3123 (info_symbol_command): ... this.
3124 (address_info): Rename to ...
3125 (info_address_command): ... this.
3126 (display_info): Rename to ...
3127 (info_display_command): ... this.
3128 (_initialize_printcmd): Adjust.
3129 * reverse.c (bookmarks_info): Rename to ...
3130 (info_breakpoints_command): ... this.
3131 (_initialize_reverse): Adjust.
3132 * ser-go32.c (dos_info): Rename to ...
3133 (info_serial_command): ... this.
3134 (_initialize_ser_dos): Adjust.
3135 * skip.c (skip_info): Rename to ...
3136 (info_skip_command): ... this.
3137 (_initialize_step_skip): Adjust.
3138 * source.c (line_info): Rename to ...
3139 (info_line_command): ... this.
3140 (source_info): Rename to ...
3141 (info_source_command)
3142 * stack.c (frame_info): Rename to ...
3143 (info_frame_command): ... this.
3144 (locals_info): Rename to ...
3145 (info_locals_command): ... this.
3146 (args_info): Rename to ...
3147 (info_args_command): ... this.
3148 (_initialize_stack): Adjust.
3149 * symtab.c (sources_info): Rename to ...
3150 (info_sources_command): ... this.
3151 (variables_info): Rename to ...
3152 (info_variables_command): ... this.
3153 (functions_info): Rename to ...
3154 (info_functions_command): ... this.
3155 (types_info): Rename to ...
3156 (info_types_command): ... this.
3157 (_initialize_symtab): Adjust.
3158 * target.c (target_info): Rename to ...
3159 (info_target_command): ... this.
3160 (initialize_targets): Adjust.
3161 * tracepoint.c (tvariables_info): Rename to ...
3162 (info_tvariables_command): ... this.
3163 (scope_info): Rename to ...
3164 (info_scope_command): ... this.
3165 (trace_dump_actions): Adjust.
3166 (_initialize_tracepoint): Adjust.
3167
b270e6f9
TT
31682017-08-22 Tom Tromey <tom@tromey.com>
3169
3170 * breakpoint.h (install_breakpoint): Update.
3171 * breakpoint.c (add_solib_catchpoint): Update.
3172 (install_breakpoint): Change argument to a std::unique_ptr.
3173 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3174 (create_breakpoint_sal, create_breakpoint): Update.
3175 (watch_command_1, catch_exec_command_1)
3176 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3177 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3178 Return the breakpoint.
3179 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3180 (new_single_step_breakpoint): Update.
3181 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3182 std::unique_ptr.
3183 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3184 std::unique_ptr.
3185 * break-catch-sig.c (create_signal_catchpoint): Use
3186 std::unique_ptr.
3187 * ada-lang.c (create_ada_exception_catchpoint): Use
3188 std::unique_ptr.
3189
36bd8eaa
TT
31902017-08-22 Tom Tromey <tom@tromey.com>
3191
3192 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3193
56f37645
TT
31942017-08-22 Tom Tromey <tom@tromey.com>
3195
3196 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3197 (lookup_partial_symbol): Update.
3198
0b581c69
TT
31992017-08-22 Tom Tromey <tom@tromey.com>
3200
3201 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3202 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3203 (find_and_open_source, symtab_to_fullname): Update.
3204 * psymtab.c (psymtab_to_fullname): Update.
3205
14278e1f
TT
32062017-08-22 Tom Tromey <tom@tromey.com>
3207
3208 * exec.c (exec_file_attach): Update.
3209 * linux-thread-db.c (try_thread_db_load): Update.
3210 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3211 * utils.c (gdb_realpath): Change return type.
3212 (gdb_realpath_keepfile): Update.
3213 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3214 (_initialize_utils): Register the new self test.
3215 * source.c (openp): Update.
3216 (find_and_open_source): Update.
3217 * nto-tdep.c (nto_find_and_open_solib): Update.
3218 * main.c (set_gdb_data_directory): Update.
3219 (captured_main_1): Update.
3220 * dwarf2read.c (dwarf2_get_dwz_file): Update
3221 (dw2_map_symbol_filenames): Update.
3222 * auto-load.c (auto_load_safe_path_vec_update): Update.
3223 (filename_is_in_auto_load_safe_path_vec): Change type of
3224 "filename_realp".
3225 (auto_load_objfile_script): Update.
3226 (file_is_auto_load_safe): Update. Use std::string.
3227 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3228
4971c9a7
TT
32292017-08-22 Tom Tromey <tom@tromey.com>
3230
3231 * utils.c (gdb_realpath_keepfile): Return a
3232 gdb::unique_xmalloc_ptr.
3233 * exec.c (exec_file_attach): Update.
3234 * utils.h (gdb_realpath_keepfile): Return a
3235 gdb::unique_xmalloc_ptr.
3236
e3e41d58
TT
32372017-08-22 Tom Tromey <tom@tromey.com>
3238
3239 * compile/compile.c (compile_file_command): Use
3240 gdb::unique_xmalloc_ptr, std::string.
3241 * utils.c (gdb_abspath): Change return type.
3242 * source.c (openp): Update.
3243 * objfiles.c (allocate_objfile): Update.
3244 * main.c (set_gdb_data_directory): Update.
3245 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3246
0d999a6e
ZZ
32472017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3248
3249 * cli-cmds.c (list_commands): List actual code around more than
3250 one location.
3251
329d5e7e
JB
32522017-08-21 John Baldwin <jhb@FreeBSD.org>
3253
3254 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3255
bf223d3e
PA
32562017-08-21 Pedro Alves <palves@redhat.com>
3257
3258 PR gdb/19487
3259 * c-exp.y (variable production): Handle function aliases.
3260 * minsyms.c (msymbol_is_text): New function.
3261 * minsyms.h (msymbol_is_text): Declare.
3262 * symtab.c (find_function_alias_target): New function.
3263 * symtab.h (find_function_alias_target): Declare.
3264
c973d0aa
PA
32652017-08-21 Pedro Alves <palves@redhat.com>
3266
3267 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3268 typedefs.
3269 * typeprint.c (whatis_exp): If handling "whatis", and expression
3270 is OP_TYPE, strip one typedef level. Otherwise don't strip
3271 typedefs here.
3272 * valops.c (value_cast): Save "to" type before resolving
3273 stubs/typedefs. Use that type as resulting value's type.
3274
2989a365
TT
32752017-08-18 Tom Tromey <tom@tromey.com>
3276 Pedro Alves <palves@redhat.com>
3277
3278 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3279 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3280 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3281 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3282 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3283 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3284 (linux_get_siginfo_data): Add "thread" argument. Use
3285 scoped_restore.
3286 * linux-nat.c (linux_child_follow_fork)
3287 (check_stopped_by_watchpoint): Use scoped_restore.
3288 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3289 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3290 (restore_inferior_ptid, save_inferior_ptid): Remove.
3291 * btrace.c (btrace_fetch): Use scoped_restore.
3292 * bsd-uthread.c (bsd_uthread_fetch_registers)
3293 (bsd_uthread_store_registers): Use scoped_restore.
3294 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3295 scoped_restore.
3296 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3297 (aix_thread_xfer_partial): Use scoped_restore.
3298 * inferior.h (save_inferior_ptid): Remove.
3299
e60eb288
YQ
33002017-08-18 Yao Qi <yao.qi@linaro.org>
3301
3302 PR tdep/21818
3303 * arm-tdep.c (gdb_print_insn_arm): Mark
3304 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3305
6d580b63
YQ
33062017-08-18 Yao Qi <yao.qi@linaro.org>
3307
3308 * NEWS: Mention GDBserver's new option "--selftest".
3309 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3310 * selftest.c: Move it to common/selftest.c.
3311 * selftest.h: Move it to common/selftest.h.
3312 * selftest-arch.c (reset): New function.
3313 (tests_with_arch): Call reset.
3314
86dcbf50
YQ
33152017-08-18 Yao Qi <yao.qi@linaro.org>
3316
3317 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3318 instead of exception_fprintf and printf_filtered.
3319
7649770c
YQ
33202017-08-18 Yao Qi <yao.qi@linaro.org>
3321
3322 * selftest.c (register_self_test): Rename it to
3323 selftests::register_test.
3324 (run_self_tests): selftest::run_tests.
3325 * selftest.h: Update declarations.
3326 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3327 selftests::register_test_foreach_arch.
3328 * selftest-arch.h: Update declaration.
3329 * aarch64-tdep.c: Update.
3330 * arm-tdep.c: Likewise.
3331 * disasm-selftests.c: Likewise.
3332 * dwarf2loc.c: Likewise.
3333 * dwarf2-frame.c: Likewise.
3334 * findvar.c: Likewise.
3335 * gdbarch-selftests.c: Likewise.
3336 * maint.c (maintenance_selftest): Likewise.
3337 * regcache.c: Likewise.
3338 * rust-exp.y: Likewise.
3339 * selftest-arch.c: Likewise.
3340 * unittests/environ-selftests.c: Likewise.
3341 * unittests/function-view-selftests.c: Likewise.
3342 * unittests/offset-type-selftests.c: Likewise.
3343 * unittests/optional-selftests.c: Likewise.
3344 * unittests/scoped_restore-selftests.c: Likewise.
3345 * utils-selftests.c: Likewise.
3346
b0cba12e
PA
33472017-08-17 Pedro Alves <palves@redhat.com>
3348
3349 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3350 local.
3351
4c8aa72d
PA
33522017-08-17 Pedro Alves <palves@redhat.com>
3353
3354 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3355 field.
3356 (reset_die_in_process): Delete, replaced by ...
3357 (process_die_scope): ... this new class. Make it responsible for
3358 freeing cu->line_header too.
3359 (process_die): Use process_die_scope.
3360 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3361 cu->line_header_die_owner. Don't release the line header if it's
3362 owned by the CU.
3363 (setup_type_unit_groups): Make the CU/DIE own the line header.
3364 Don't release the line header here.
3365
ba713918
AL
33662017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3367
3368 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3369
44d0fb3a
RK
33702017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3371
3372 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3373 Single-Key mode
3374
a5afdb16
RK
33752017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3376
3377 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3378 mode command list.
3379
47613aeb
SH
33802017-08-15 Stafford Horne <shorne@gmail.com>
3381
3382 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3383
9c3cc999
SH
33842017-08-15 Stafford Horne <shorne@gmail.com>
3385
3386 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3387
206726fb
SDJ
33882017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3389
3390 PR gdb/21954
3391 * infcmd.c (unset_environment_command): Use the 'clear' method on
3392 the environment instead of resetting it.
3393
0335ac6d
JB
33942017-08-15 John Baldwin <jhb@FreeBSD.org>
3395
3396 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3397 platforms.
3398
d3abe1c8
TT
33992017-08-14 Tom Tromey <tom@tromey.com>
3400
3401 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3402 (print_binary_chars): Likewise.
3403 (BITS_IN_BYTES): Remove.
3404
d6382fff
TT
34052017-08-14 Tom Tromey <tom@tromey.com>
3406
3407 PR gdb/21675
3408 * valprint.c (LOW_ZERO): Change value to 034.
3409 (print_octal_chars): Add static_asserts for octal constants.
3410 * printcmd.c (print_scalar_formatted): Add 'd' case.
3411
f978cb06
TT
34122017-08-11 Tom Tromey <tom@tromey.com>
3413
3414 * symfile.c (add_symbol_file_command): Use std::vector.
3415
2f5404b3
TT
34162017-08-14 Tom Tromey <tom@tromey.com>
3417
3418 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3419 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3420 std::move.
3421 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3422
de7985c3
PA
34232017-08-11 Pedro Alves <palves@redhat.com>
3424
3425 * infrun.c (process_event_stop_test): Adjust
3426 function_name_is_marked_for_skip call.
3427 * skip.c: Include <list>.
3428 (skiplist_entry): Make it a class with private fields, and
3429 getters/setters.
3430 (skiplist_entry_chain): Delete.
3431 (skiplist_entries): New.
3432 (skiplist_entry_count): Delete.
3433 (highest_skiplist_entry_num): New.
3434 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3435 (add_skiplist_entry): Delete.
3436 (skiplist_entry::skiplist_entry): New.
3437 (skiplist_entry::add_entry): New.
3438 (skip_file_command, skip_function): Adjust.
3439 (compile_skip_regexp): Delete.
3440 (skip_command): Don't compile regexp here. Adjust to use
3441 skiplist_entry::add_entry.
3442 (skip_info): Adjust to use range-for and getters.
3443 (skip_enable_command, skip_disable_command): Adjust to use
3444 range-for and setters.
3445 (skip_delete_command): Adjust to use std::list.
3446 (add_skiplist_entry): Delete.
3447 (skip_file_p): Delete, refactored as ...
3448 (skiplist_entry::do_skip_file_p): ... this new method.
3449 (skip_gfile_p): Delete, refactored as ...
3450 (skiplist_entry::do_gskip_file_p): ... this new method.
3451 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3452 (skiplist_entry::skip_function_p): ... this new method.
3453 (function_name_is_marked_for_skip): Now returns bool, and takes
3454 the function sal by const reference. Adjust to use range-for and
3455 skiplist_entry methods.
3456 (_initialize_step_skip): Remove references to
3457 skiplist_entry_chain, skiplist_entry_count.
3458 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3459 takes the function sal by const reference.
3460
be7d3cd5
YQ
34612017-08-11 Yao Qi <yao.qi@linaro.org>
3462
3463 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3464 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3465 (dwarf2_frame_cache):
3466 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3467 RETURN_MASK_ALL and set *this_case to NULL.
3468 * frame-unwind.h: Update comments.
3469
1c90d9f0
YQ
34702017-08-11 Yao Qi <yao.qi@linaro.org>
3471
3472 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3473 (dwarf2_frame_state_copy_regs): Remove.
3474 (dwarf2_frame_state_free_regs): Remove.
3475 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3476 (dwarf2_restore_rule): Call method .alloc_regs instead of
3477 dwarf2_frame_state_alloc_regs.
3478 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3479 constructor. Call std::move.
3480 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3481 (dwarf2_frame_cache): Likewise.
3482
3483 [GDB_SELF_TEST]: Include selftest.h and
3484 selftest-arch.h.
3485 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3486 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3487 execute_cfa_program_test.
3488
3489 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3490 copy ctor, assignment operator, move assignment.
3491 <alloc_regs>: New method.
3492 <swap>: New method.
3493 (struct dwarf2_frame_state): Delete dtor.
3494 (dwarf2_frame_state_alloc_regs): Remove declaration.
3495 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3496 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3497
afe37d6b
YQ
34982017-08-11 Yao Qi <yao.qi@linaro.org>
3499
3500 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3501 (dwarf2_frame_state::dwarf2_frame_state): New.
3502 (dwarf2_frame_state::~dwarf2_frame_state): New.
3503 (dwarf2_fetch_cfa_info): Update.
3504 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3505 rather than a pointer. Update code.
3506 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3507 dtor.
3508 <data_align, code_align, retaddr_column>: Change them to const.
3509 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3510 to bool.
3511
b348037f
YQ
35122017-08-11 Yao Qi <yao.qi@linaro.org>
3513
3514 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3515 <loc.exp>: New field.
3516 * dwarf2-frame.c (execute_cfa_program): Update.
3517 (dwarf2_frame_prev_register): Update.
3518
e7c9de26
PA
35192017-08-10 Pedro Alves <palves@redhat.com>
3520
3521 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3522
e8c6b620
JB
35232017-08-09 John Baldwin <jhb@FreeBSD.org>
3524
3525 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3526 (fbsd_pending_children): Use std::list.
3527 (fbsd_remember_child): Likewise.
3528 (fbsd_is_child_pending): Likewise.
3529 (fbsd_pending_vfork_done): Use std::forward_list.
3530 (fbsd_add_vfork_done): Likewise.
3531 (fbsd_is_vfork_done_pending): Likewise.
3532 (fbsd_next_vfork_done): Likewise.
3533
e4a26669
JB
35342017-08-09 John Baldwin <jhb@FreeBSD.org>
3535
3536 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3537 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3538 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3539 for `mapfilename'.
3540 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3541 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3542
142311d3
JB
35432017-08-09 John Baldwin <jhb@FreeBSD.org>
3544
3545 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3546 "filestuff.h".
3547 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3548
42fa2e0e
TT
35492017-08-09 Tom Tromey <tom@tromey.com>
3550
3551 * skip.c (skiplist_entry): New constructor.
3552 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3553 (skiplist_entry::file_is_glob): Now bool.
3554 (skiplist_entry::file, skiplist_entry::function): Now
3555 std::string.
3556 (make_skip_entry): Return a unique_ptr. Use new.
3557 (free_skiplist_entry, free_skiplist_entry_cleanup)
3558 (make_free_skiplist_entry_cleanup): Remove.
3559 (skip_command, skip_disable_command, add_skiplist_entry)
3560 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3561 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3562 (function_name_is_marked_for_skip): Update.
3563 (skip_delete_command): Update. Use delete.
3564
cd3af38d
JW
35652017-08-09 Jiong Wang <jiong.wang@arm.com>
3566
3567 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3568 (aarch64_linux_core_read_description): New function.
3569 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3570
29592bde
PA
35712017-08-09 Pedro Alves <palves@redhat.com>
3572
3573 * cp-name-parser.y (cp_comp_to_string): Return a
3574 gdb::unique_xmalloc_ptr<char>.
3575 * cp-support.c (replace_typedefs_qualified_name)
3576 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3577 (cp_canonicalize_string_full): Use op= instead of explicit
3578 convertion.
3579 (cp_class_name_from_physname, method_name_from_physname)
3580 (cp_func_name, cp_remove_params): Adjust to use
3581 gdb::unique_xmalloc_ptr<char>.
3582 * cp-support.h (cp_comp_to_string): Return a
3583 gdb::unique_xmalloc_ptr<char>.
3584 * python/py-type.c (typy_lookup_type): Adjust to use
3585 gdb::unique_xmalloc_ptr<char>.
3586
b3340438
L
35872017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3588
3589 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3590
e88e8651
YQ
35912017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3592 Yao Qi <yao.qi@linaro.org>
3593
3594 * cp-support.c (cp_canonicalize_string_full): Use
3595 gdb::unique_xmalloc_ptr<char>.
3596 (cp_canonicalize_string): Likewise.
3597
f5a29eb0
YQ
35982017-08-09 Yao Qi <yao.qi@linaro.org>
3599
3600 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3601 * regformats/i386/amd64-avx-avx512.dat: Remove.
3602 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3603 * regformats/i386/amd64-avx-mpx.dat:Remove.
3604 * regformats/i386/amd64-avx.dat: Remove.
3605 * regformats/i386/amd64-mpx.dat: Remove.
3606 * regformats/i386/i386-avx-avx512.dat: Remove.
3607 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3608 * regformats/i386/i386-avx-mpx.dat: Remove.
3609 * regformats/i386/i386-mmx.dat: Remove.
3610 * regformats/i386/i386-mpx.dat: Remove.
3611
57757c2f
YQ
36122017-08-09 Yao Qi <yao.qi@linaro.org>
3613
3614 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3615 * amd64-tdep.c: Don't include features/i386/x32*.c.
3616 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3617 functions.
3618 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3619 and i386/x32-avx-avx512.
3620 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3621 and i386/x32.xml.
3622 * features/i386/x32-avx-avx512.c: Removed.
3623 * features/i386/x32-avx-avx512.xml: Removed.
3624 * features/i386/x32-avx.c: Removed.
3625 * features/i386/x32-avx.xml: Removed.
3626 * features/i386/x32.c: Removed.
3627 * features/i386/x32.xml: Removed.
3628 * regformats/i386/x32-avx-avx512.dat: Removed.
3629 * regformats/i386/x32-avx.dat: Removed.
3630 * regformats/i386/x32.dat: Removed.
3631
ba7b109b
MR
36322017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3633
3634 PR breakpoints/21886
3635 * mem-break.c (default_memory_insert_breakpoint): Use
3636 `->placed_address' rather than `->reqstd_address' for the
3637 breakpoint location.
3638
e347efc3
MR
36392017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3640
3641 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3642 assertions.
3643
0dba2a6c
MR
36442017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3645
3646 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3647 a union of `tdep_info', `tdesc_data' and `id'.
3648 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3649 rather than `info.tdep_info'.
3650 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3651 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3652 * i386-tdep.c (i386_gdbarch_init): Likewise.
3653 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3654 * mips-tdep.c (mips_gdbarch_init): Likewise.
3655 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3656 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3657 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3658 `info.tdep_info'.
3659 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3660 `info.tdep_info'.
3661 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3662 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3663 `info.tdep_info'.
3664 * spu-tdep.c (spu_gdbarch_init): Likewise.
3665 * gdbarch.h: Regenerate.
3666
16eb6b2d
LS
36672017-08-07 Leszek Swirski <leszeks@google.com>
3668
7b005726 3669 PR symtab/20899
16eb6b2d
LS
3670 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3671
74cbb09e
SM
36722017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3673
3674 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3675 (gdbsim_open): Rename gdb_argv args object to argv.
3676
ee0c3293
TT
36772017-08-05 Tom Tromey <tom@tromey.com>
3678
3679 * compile/compile-object-load.c (compile_object_load): Use
3680 gdb::unique_xmalloc_ptr.
3681 * cli/cli-dump.c (scan_filename): Rename from
3682 scan_filename_with_cleanup. Change return type.
3683 (scan_expression): Rename from scan_expression_with_cleanup.
3684 Change return type.
3685 (dump_memory_to_file, dump_value_to_file, restore_command):
3686 Use gdb::unique_xmalloc_ptr. Update.
3687 * cli/cli-cmds.c (find_and_open_script): Use
3688 gdb::unique_xmalloc_ptr.
3689 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3690 * symmisc.c (maintenance_print_symbols)
3691 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3692 * symfile.c (symfile_bfd_open, generic_load)
3693 (add_symbol_file_command, remove_symbol_file_command): Use
3694 gdb::unique_xmalloc_ptr.
3695 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3696 * psymtab.c (maintenance_print_psymbols): Use
3697 gdb::unique_xmalloc_ptr.
3698 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3699 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3700 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3701 (reload_shared_libraries_1): Likewise.
3702
3232fabd
TT
37032017-08-05 Tom Tromey <tom@tromey.com>
3704
3705 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3706 (rust_op_vector, rust_set_vector): New typedefs.
3707 (current_parser): New global.
3708 (work_obstack): Change to pointer type. Update all users.
3709 (rust_ast, pstate): Remove globals.
3710 (struct rust_parser): New.
3711 (%union) <params, field_inits>: Change type.
3712 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3713 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3714 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3715 (convert_params_to_types, convert_params_to_expression): Change
3716 type of "params".
3717 (ast_string): Change type of "fields".
3718 (rust_parse): Make a rust_parser. Remove cleanups.
3719 (rust_lex_tests): Make and install an auto_obstack.
3720
f02fd774
YQ
37212017-08-04 Yao Qi <yao.qi@linaro.org>
3722
3723 * configure.srv (ipa_x32_linux_regobj): New.
3724 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3725 instead of X86_TDESC_AVX512.
3726 (initialize_low_tracepoint): Call
3727 init_registers_x32_avx_avx512_linux.
3728
91975afd
YQ
37292017-08-04 Yao Qi <yao.qi@linaro.org>
3730
3731 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3732
2331fa3a
RK
37332017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3734
3735 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3736
744e4fe1
TT
37372017-08-03 Tom Tromey <tom@tromey.com>
3738
3739 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3740 Remove.
3741 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3742
1c034b67
TT
37432017-08-03 Tom Tromey <tom@tromey.com>
3744
3745 * python/py-param.c (compute_enum_values): Use gdb_argv.
3746
773a1edc
TT
37472017-08-03 Tom Tromey <tom@tromey.com>
3748
3749 * utils.h (struct gdb_argv_deleter): New.
3750 (gdb_argv): New class.
3751 * utils.c (gdb_argv::reset): New method.
3752 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3753 * tracefile.c (tsave_command): Use gdb_argv.
3754 * top.c (new_ui_command): Use gdb_argv.
3755 * symmisc.c (maintenance_print_symbols)
3756 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3757 * symfile.c (symbol_file_command, generic_load)
3758 (remove_symbol_file_command): Use gdb_argv.
3759 * stack.c (backtrace_command): Use gdb_argv.
3760 * source.c (add_path, show_substitute_path_command)
3761 (unset_substitute_path_command, set_substitute_path_command):
3762 Use gdb_argv.
3763 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3764 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3765 * remote.c (extended_remote_run, remote_put_command)
3766 (remote_get_command, remote_delete_command): Use gdb_argv.
3767 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3768 (gdbsim_open): Use gdb_argv.
3769 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3770 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3771 * procfs.c (procfs_info_proc): Use gdb_argv.
3772 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3773 * infrun.c (handle_command): Use gdb_argv.
3774 * inferior.c (add_inferior_command, clone_inferior_command):
3775 Use gdb_argv.
3776 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3777 * exec.c (exec_file_command): Use gdb_argv.
3778 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3779 * compile/compile.c (build_argc_argv): Use gdb_argv.
3780
0d50bde3
TT
37812017-08-03 Tom Tromey <tom@tromey.com>
3782
3783 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3784
7f968c89
TT
37852017-08-03 Tom Tromey <tom@tromey.com>
3786
3787 * python/python.c (compute_python_string): Return std::string.
3788 (gdbpy_eval_from_control_command): Update.
3789 (do_start_initialization): Use std::string.
3790 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3791 xstrprintf.
3792 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3793 xstrprintf.
3794
3c9ebddd
TT
37952017-08-03 Tom Tromey <tom@tromey.com>
3796
3797 * top.h (do_restore_instream_cleanup): Remove.
3798 * top.c (do_restore_instream_cleanup): Remove.
3799 (read_command_file): Use scoped_restore.
3800 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3801
b51b225e
TT
38022017-08-03 Tom Tromey <tom@tromey.com>
3803
3804 * cli/cli-script.c (execute_user_command)
3805 (execute_control_command): Use scoped_restore.
3806
ac991630
TT
38072017-08-03 Tom Tromey <tom@tromey.com>
3808
3809 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3810 (execute_user_command): Remove user_call_depth; use
3811 user_args_stack's size instead.
3812
898e0c8e
TT
38132017-08-03 Tom Tromey <tom@tromey.com>
3814
3815 * top.h (in_user_command): Remove.
3816 * top.c (in_user_command): Remove.
3817 * cli/cli-script.c (do_restore_user_call_depth)
3818 (execute_user_command): Update.
3819
26fcd5d7
TT
38202017-08-03 Tom Tromey <tom@tromey.com>
3821
3822 * valops.c (search_struct_method): Use gdb::byte_vector.
3823 * valarith.c (value_concat): Use std::vector.
3824 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3825 (simple_search_memory): Likewise.
3826 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3827 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3828 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3829 * elfread.c (elf_rel_plt_read): Use std::string.
3830 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3831 * cli/cli-dump.c (restore_section_callback): Use
3832 gdb::byte_vector.
3833
7c218e6c
TT
38342017-08-03 Tom Tromey <tom@tromey.com>
3835
3836 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3837
31b68d4a
TT
38382017-08-03 Tom Tromey <tom@tromey.com>
3839
3840 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3841 (tui_register_format): Use scoped_restore.
3842
2ec845e7
TT
38432017-08-03 Tom Tromey <tom@tromey.com>
3844
3845 * reverse.c (exec_direction_default): Remove.
3846 (exec_reverse_once): Use scoped_restore.
3847 * remote.c (restore_remote_timeout): Remove.
3848 (remote_flash_erase, remote_flash_write, remote_flash_done)
3849 (readchar, remote_serial_write): Use scoped_restore.
3850 * cli/cli-script.c (struct source_cleanup_lines_args)
3851 (source_cleanup_lines): Remove.
3852 (script_from_file): Use scoped_restore.
3853 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3854 (source_command): Use scoped_restore.
3855
b3bc8453
TT
38562017-08-03 Tom Tromey <tom@tromey.com>
3857
3858 * utils.h (make_cleanup_free_so): Remove.
3859 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3860 * solist.h (struct so_deleter): New.
3861 (so_list_up): New typedef.
3862 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3863
e3ad2841
TT
38642017-08-03 Tom Tromey <tom@tromey.com>
3865
3866 * utils.h (make_cleanup_restore_current_language): Remove.
3867 * utils.c (do_restore_current_language)
3868 (make_cleanup_restore_current_language): Remove.
3869 * parse.c (parse_exp_in_context_1)
3870 (parse_expression_with_language): Use
3871 scoped_restore_current_language.
3872 * mi/mi-main.c (mi_cmd_execute): Use
3873 scoped_restore_current_language.
3874 * language.h (scoped_restore_current_language): New class.
3875
b80cf838
TT
38762017-08-03 Tom Tromey <tom@tromey.com>
3877
3878 * compile/compile.c (cleanup_unlink_file): Remove.
3879 (compile_to_object): Use gdb::unlinker.
3880 (eval_compile_command): Likewise.
3881
fad0444a
TT
38822017-08-03 Tom Tromey <tom@tromey.com>
3883
3884 * utils.h (make_cleanup_fclose): Remove.
3885 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3886
6e7bc05c
TT
38872017-08-03 Tom Tromey <tom@tromey.com>
3888
3889 * top.c (open_terminal_stream): Return gdb_file_up.
3890 (new_ui_command): Update.
3891
4a45905b
TT
38922017-08-03 Tom Tromey <tom@tromey.com>
3893
3894 * source.c (print_source_lines_base, forward_search_command)
3895 (reverse_search_command): Use gdb_file_up.
3896
7cd06d6e
TT
38972017-08-03 Tom Tromey <tom@tromey.com>
3898
3899 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3900
ed166945
TT
39012017-08-03 Tom Tromey <tom@tromey.com>
3902
3903 * cli/cli-cmds.c (find_and_open_script): Change return type.
3904 Remove "streamp" and "full_path" parameters.
3905 (source_script_with_search): Update.
3906 * auto-load.c (source_script_file): Update.
3907 * cli/cli-cmds.h (find_and_open_script): Change type.
3908 (open_script): New struct.
3909
d419f42d
TT
39102017-08-03 Tom Tromey <tom@tromey.com>
3911
3912 * xml-support.c (xml_fetch_content_from_file): Update.
3913 * ui-file.c (stdio_file::open): Update.
3914 * tracefile-tfile.c (tfile_start): Update.
3915 * remote.c (remote_file_put, remote_file_get): Update.
3916 * nat/linux-procfs.c (linux_proc_get_int)
3917 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3918 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3919 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3920 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3921 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3922 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3923 * linux-nat.c (linux_proc_pending_signals): Update.
3924 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3925 (file_closer): Remove.
3926 * compile/compile.c (compile_to_object): Update.
3927 * common/filestuff.h (struct gdb_file_deleter): New.
3928 (gdb_file_up): New typedef.
3929 (gdb_fopen_cloexec): Change return type.
3930 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3931 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3932 (dump_binary_file, restore_binary_file): Update.
3933 * auto-load.c (auto_load_objfile_script_1): Update.
3934
4a2b031d
TT
39352017-08-03 Tom Tromey <tom@tromey.com>
3936
3937 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3938 (info_static_tracepoint_markers_command): Likewise.
3939 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3940 * skip.c (skip_info): Use ui_out_emit_table.
3941 * progspace.c (print_program_space): Use ui_out_emit_table.
3942 * osdata.c (info_osdata): Use ui_out_emit_table.
3943 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3944 ui_out_emit_table.
3945 * linux-thread-db.c (info_auto_load_libthread_db): Use
3946 ui_out_emit_table.
3947 * inferior.c (print_inferior): Use ui_out_emit_table.
3948 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3949 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3950 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3951 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3952 * ui-out.h (class ui_out_emit_table): New.
3953
a4f320fd
MR
39542017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3955
3956 * mips-tdep.c (mips_fpu_type_str): New function.
3957 (mips_dump_tdep): Call it.
3958
a2f1f308
MR
39592017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3960
3961 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3962 `->mips_fpu_type'.
3963
7e5ed83b
XR
39642017-07-31 Xavier Roirand <roirand@adacore.com>
3965
3966 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3967
4c9dc811
XR
39682017-07-27 Xavier Roirand <roirand@adacore.com>
3969
3970 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3971
27d41eac
YQ
39722017-07-26 Yao Qi <yao.qi@linaro.org>
3973
3974 * cli/cli-cmds.c (maintenancechecklist): New variable.
3975 * gdbcmd.h (maintenancechecklist): Declare it.
3976 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3977 Call i386_linux_read_description with different masks.
3978 * maint.c (maintenance_check_command): New function.
3979 (_initialize_maint_cmds): Call add_prefix_cmd.
3980 * target-descriptions.c (tdesc_reg): override operator != and ==.
3981 (tdesc_type): Likewise.
3982 (tdesc_feature): Likewise.
3983 (target_desc): Likewise.
3984 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3985 (maintenance_check_xml_descriptions): New function.
3986 (_initialize_target_descriptions) Add command "xml-descriptions".
3987 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3988
ea03d0d3
YQ
39892017-07-26 Yao Qi <yao.qi@linaro.org>
3990
3991 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3992 Include features/i386/32bit-*.c.
3993 (i386_linux_read_description): Generate target description if it
3994 doesn't exist.
3995 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3996 functions.
3997 * features/i386/32bit-linux.c: Re-generated.
3998 * features/i386/32bit-sse.c: Likewise.
3999 * target-descriptions.c (print_c_feature::visit): Print code to
4000 set register number if needed.
4001 (print_c_feature) <m_next_regnum>: New field.
4002
25aa13e5
YQ
40032017-07-26 Yao Qi <yao.qi@linaro.org>
4004
4005 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4006 (FEATURE_XMLFILES): New.
4007 (FEATURE_CFILES): New.
4008 New rules.
4009 (clean-cfiles): Remove generated c files.
4010 * features/i386/32bit-avx.c: Generated.
4011 * features/i386/32bit-avx512.c: Generated.
4012 * features/i386/32bit-core.c: Generated.
4013 * features/i386/32bit-linux.c: Generated.
4014 * features/i386/32bit-mpx.c: Generated.
4015 * features/i386/32bit-pkeys.c: Generated.
4016 * features/i386/32bit-sse.c: Generated.
4017 * target-descriptions.c: Include algorithm.
4018 (tdesc_element_visitor): Add method visit_end.
4019 (print_c_tdesc): Implement visit_end.
4020 (print_c_tdesc:: m_filename_after_features): Move it to
4021 protected.
4022 (print_c_feature): New class.
4023 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4024 name starts with "i386/32bit-".
4025
6eb1e6a8
YQ
40262017-07-26 Yao Qi <yao.qi@linaro.org>
4027
4028 * target-descriptions.c (tdesc_element_visitor): New class.
4029 (tdesc_element): New class.
4030 (tdesc_reg): Inherit from tdesc_element.
4031 (tdesc_reg::accept): New function.
4032 (tdesc_type): Inherit from tdesc_element.
4033 (tdesc_type::accept): New function.
4034 (tdesc_feature): Inherit from tdesc_element.
4035 (tdesc_feature::accept): New function.
4036 (target_desc): Inherit from tdesc_element.
4037 (target_desc::target_desc): New.
4038 (target_desc::~target_desc): New.
4039 (target_desc::accept): New.
4040 (allocate_target_description): Use new.
4041 (free_target_description): Use delete.
4042 (print_c_tdesc): New class.
4043 (maint_print_c_tdesc_cmd): Adjust.
4044
4045 * features/aarch64.c: Re-generated.
4046 * features/arc-arcompact.c: Re-generated.
4047 * features/arc-v2.c: Re-generated.
4048 * features/arm/arm-with-iwmmxt.c: Re-generated.
4049 * features/arm/arm-with-m.c: Re-generated.
4050 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4051 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4052 * features/arm/arm-with-neon.c: Re-generated.
4053 * features/arm/arm-with-vfpv2.c: Re-generated.
4054 * features/arm/arm-with-vfpv3.c: Re-generated.
4055 * features/i386/amd64-avx-avx512.c: Re-generated.
4056 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4057 * features/i386/amd64-avx.c: Re-generated.
4058 * features/i386/amd64-avx-linux.c: Re-generated.
4059 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4060 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4061 * features/i386/amd64-avx-mpx.c: Re-generated.
4062 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4063 * features/i386/amd64.c: Re-generated.
4064 * features/i386/amd64-linux.c: Re-generated.
4065 * features/i386/amd64-mpx.c: Re-generated.
4066 * features/i386/amd64-mpx-linux.c: Re-generated.
4067 * features/i386/i386-avx-avx512.c: Re-generated.
4068 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4069 * features/i386/i386-avx.c: Re-generated.
4070 * features/i386/i386-avx-linux.c: Re-generated.
4071 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4072 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4073 * features/i386/i386-avx-mpx.c: Re-generated.
4074 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4075 * features/i386/i386.c: Re-generated.
4076 * features/i386/i386-linux.c: Re-generated.
4077 * features/i386/i386-mmx.c: Re-generated.
4078 * features/i386/i386-mmx-linux.c: Re-generated.
4079 * features/i386/i386-mpx.c: Re-generated.
4080 * features/i386/i386-mpx-linux.c: Re-generated.
4081 * features/i386/x32-avx-avx512.c: Re-generated.
4082 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4083 * features/i386/x32-avx.c: Re-generated.
4084 * features/i386/x32-avx-linux.c: Re-generated.
4085 * features/i386/x32.c: Re-generated.
4086 * features/i386/x32-linux.c: Re-generated.
4087 * features/microblaze.c: Re-generated.
4088 * features/microblaze-with-stack-protect.c: Re-generated.
4089 * features/mips64-dsp-linux.c: Re-generated.
4090 * features/mips64-linux.c: Re-generated.
4091 * features/mips-dsp-linux.c: Re-generated.
4092 * features/mips-linux.c: Re-generated.
4093 * features/nds32.c: Re-generated.
4094 * features/nios2.c: Re-generated.
4095 * features/nios2-linux.c: Re-generated.
4096 * features/rs6000/powerpc-32.c: Re-generated.
4097 * features/rs6000/powerpc-32l.c: Re-generated.
4098 * features/rs6000/powerpc-403.c: Re-generated.
4099 * features/rs6000/powerpc-403gc.c : Re-generated.
4100 * features/rs6000/powerpc-405.c: Re-generated.
4101 * features/rs6000/powerpc-505.c: Re-generated.
4102 * features/rs6000/powerpc-601.c: Re-generated.
4103 * features/rs6000/powerpc-602.c: Re-generated.
4104 * features/rs6000/powerpc-603.c: Re-generated.
4105 * features/rs6000/powerpc-604.c: Re-generated.
4106 * features/rs6000/powerpc-64.c: Re-generated.
4107 * features/rs6000/powerpc-64l.c: Re-generated.
4108 * features/rs6000/powerpc-7400.c: Re-generated.
4109 * features/rs6000/powerpc-750.c: Re-generated.
4110 * features/rs6000/powerpc-860.c: Re-generated.
4111 * features/rs6000/powerpc-altivec32.c: Re-generated.
4112 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4113 * features/rs6000/powerpc-altivec64.c: Re-generated.
4114 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4115 * features/rs6000/powerpc-cell32l.c: Re-generated.
4116 * features/rs6000/powerpc-cell64l.c: Re-generated.
4117 * features/rs6000/powerpc-e500.c: Re-generated.
4118 * features/rs6000/powerpc-e500l.c: Re-generated.
4119 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4120 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4121 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4122 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4123 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4124 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4125 * features/rs6000/powerpc-vsx32.c: Re-generated.
4126 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4127 * features/rs6000/powerpc-vsx64.c: Re-generated.
4128 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4129 * features/rs6000/rs6000.c: Re-generated.
4130 * features/s390-linux32.c: Re-generated.
4131 * features/s390-linux32v1.c: Re-generated.
4132 * features/s390-linux32v2.c: Re-generated.
4133 * features/s390-linux64.c: Re-generated.
4134 * features/s390-linux64v1.c: Re-generated.
4135 * features/s390-linux64v2.c: Re-generated.
4136 * features/s390-te-linux64.c: Re-generated.
4137 * features/s390-tevx-linux64.c: Re-generated.
4138 * features/s390-vx-linux64.c: Re-generated.
4139 * features/s390x-linux64.c: Re-generated.
4140 * features/s390x-linux64v1.c: Re-generated.
4141 * features/s390x-linux64v2.c: Re-generated.
4142 * features/s390x-te-linux64.c: Re-generated.
4143 * features/s390x-tevx-linux64.c: Re-generated.
4144 * features/s390x-vx-linux64.c: Re-generated.
4145 * features/sparc/sparc32-solaris.c: Re-generated.
4146 * features/sparc/sparc64-solaris.c: Re-generated.
4147 * features/tic6x-c62x.c: Re-generated.
4148 * features/tic6x-c62x-linux.c: Re-generated.
4149 * features/tic6x-c64x.c: Re-generated.
4150 * features/tic6x-c64x-linux.c: Re-generated.
4151 * features/tic6x-c64xp.c: Re-generated.
4152 * features/tic6x-c64xp-linux.c: Re-generated.
4153
35b4818d
YQ
41542017-07-26 Yao Qi <yao.qi@linaro.org>
4155
4156 * i386-linux-tdep.c (i386_linux_read_description): New function.
4157 (i386_linux_core_read_description): Call
4158 i386_linux_read_description.
4159 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4160 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4161 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4162 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4163 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4164 * x86-linux-nat.c (x86_linux_read_description): Call
4165 i386_linux_read_description.
4166
8e2141c6
YQ
41672017-07-26 Yao Qi <yao.qi@linaro.org>
4168
4169 * NEWS: Mention it.
4170 * features/Makefile (%.c: %.xml): Pass the xml file name to
4171 command "maint print c-tdesc".
4172 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4173 name from 'arg'.
4174
b468ff4c
YQ
41752017-07-26 Yao Qi <yao.qi@linaro.org>
4176
4177 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4178 in-class initialization.
4179 (tdesc_create_feature): Call new instead of XCNEW.
4180 (free_target_description): Ue delete.
4181
b9c0e1b4
JB
41822017-07-25 John Baldwin <jhb@FreeBSD.org>
4183
4184 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4185
a04b5337
YQ
41862017-07-25 Yao Qi <yao.qi@linaro.org>
4187
4188 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4189 constant.
4190 (amd64_x32_init_abi): Likewise.
4191 * amd64-tdep.h (amd64_init_abi): Update declaration.
4192 (amd64_x32_init_abi): Likewise.
4193
02ad7fc2
YQ
41942017-07-25 Yao Qi <yao.qi@linaro.org>
4195
4196 PR tdep/21717
4197 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4198 condition for FPSCR.
4199 (arm_linux_store_inferior_registers): Likewise.
4200
b6f48cb0
TT
42012017-07-22 Tom Tromey <tom@tromey.com>
4202
4203 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4204 <syscalls_counts>: Now a std::vector.
4205 (get_catch_syscall_inferior_data): Use "new".
4206 (catch_syscall_inferior_data_cleanup): Use "delete".
4207 (insert_catch_syscall, remove_catch_syscall)
4208 (clear_syscall_counts): Update.
4209
e12c9b7a
TT
42102017-07-22 Tom Tromey <tom@tromey.com>
4211
4212 * break-catch-syscall.c (syscall_catchpoint)
4213 <syscalls_to_be_caught>: Now a std::vector<int>
4214 (~syscall_catchpoint): Remove.
4215 (insert_catch_syscall, remove_catch_syscall)
4216 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4217 (print_mention_catch_syscall, print_recreate_catch_syscall):
4218 Update.
4219 (create_syscall_event_catchpoint): Change type of "filter"
4220 parameter.
4221 (catch_syscall_split_args): Return a std::vector.
4222 (catch_syscall_command_1, catching_syscall_number_1): Update.
4223
4fa8aeac
TT
42242017-07-22 Tom Tromey <tom@tromey.com>
4225
4226 * break-catch-throw.c (struct exception_catchpoint)
4227 <exception_rx>: Now a std::string.
4228 (~exception_catchpoint): Remove.
4229 (print_one_detail_exception_catchpoint): Update.
4230 (handle_gnu_v3_exceptions): Change type of except_rx.
4231 (extract_exception_regexp): Return a std::string.
4232 (catch_exception_command_1): Update.
4233
f746a154
TT
42342017-07-22 Tom Tromey <tom@tromey.com>
4235
4236 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4237 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4238 std::vector.
4239 <catch_all>: Now a bool.
4240 (~signal_catchpoint): Remove.
4241 (signal_catchpoint_insert_location)
4242 (signal_catchpoint_remove_location)
4243 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4244 (signal_catchpoint_print_mention)
4245 (signal_catchpoint_print_recreate)
4246 (signal_catchpoint_explains_signal): Update.
4247 (create_signal_catchpoint): Change type of "filter" and
4248 "catch_all".
4249 (catch_signal_split_args): Return a std::vector. Change type of
4250 "catch_all".
4251 (catch_signal_command): Update.
4252
47e77640
PA
42532017-07-20 Pedro Alves <palves@redhat.com>
4254
4255 * ada-lang.c (ada_language_defn): Make extern.
4256 (_initialize_ada_language): Remove add_language call.
4257 * c-lang.c (c_language_defn, cplus_language_defn)
4258 (asm_language_defn, minimal_language_defn): Make extern.
4259 (_initialize_c_language): Delete.
4260 * completer.c (compare_cstrings): Delete, moved to utils.h.
4261 * d-lang.c (d_language_defn): Make extern.
4262 (_initialize_d_language): Remove add_language calls.
4263 * defs.h (enum language): Add comment.
4264 * f-lang.c (f_language_defn): Make extern.
4265 (_initialize_f_language): Remove add_language call.
4266 * go-lang.c (go_language_defn): Make extern.
4267 (_initialize_go_language): Remove add_language call.
4268 * language.c: Include <algorithm>.
4269 (languages): Redefine as const array.
4270 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4271 (set_language_command): Handle "local". Use for-range loop.
4272 (set_language): Remove loop.
4273 (language_enum): Rewrite.
4274 (language_def, language_str): Remove loops.
4275 (add_language): Delete.
4276 (add_set_language_command): New, based on add_languages.
4277 (skip_language_trampoline): Adjust.
4278 (local_language_defn): Delete.
4279 (language_gdbarch_post_init): Adjust.
4280 (_initialize_language): Remove add_language calls. Call
4281 add_set_language_command.
4282 * language.h (add_language): Delete.
4283 (auto_language_defn)
4284 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4285 (asm_language_defn, c_language_defn, cplus_language_defn)
4286 (d_language_defn, f_language_defn, go_language_defn)
4287 (m2_language_defn, objc_language_defn, opencl_language_defn)
4288 (pascal_language_defn, rust_language_defn): Declare.
4289 * m2-lang.c (m2_language_defn): Make extern.
4290 (_initialize_m2_language): Remove add_language call.
4291 * objc-lang.c (objc_language_defn): Make extern.
4292 (_initialize_objc_language): Remove add_language call.
4293 * opencl-lang.c (opencl_language_defn): Make extern.
4294 (_initialize_opencl_language): Remove add_language call.
4295 * p-lang.c (pascal_language_defn): Make extern.
4296 (_initialize_pascal_language): Delete.
4297 * rust-lang.c (rust_language_defn): Make extern.
4298 (_initialize_rust_language): Delete.
4299 * utils.h (compare_cstrings): New static inline function.
4300
edb0c9cb
PA
43012017-07-20 Pedro Alves <palves@redhat.com>
4302
4303 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4304 (get_var_value): Constify parameters.
4305 (get_int_var_value): Change prototype.
4306 (to_fixed_range_type): Adjust.
4307 * ada-lang.h (get_int_var_value): Change prototype.
4308
a778f165
PA
43092017-07-20 Pedro Alves <palves@redhat.com>
4310
4311 * dwarf2read.c (dw2_lookup_symbol): Use
4312 SYMBOL_MATCHES_SEARCH_NAME.
4313 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4314
42edd901
PA
43152017-07-20 Pedro Alves <palves@redhat.com>
4316
4317 * block.c (block_iter_name_step, block_iter_name_first)
4318 (block_iter_name_next): Delete.
4319 (block_lookup_symbol_primary): Adjust to use
4320 dict_iter_match_first/dict_iter_match_next.
4321 * block.h (block_iter_name_first, block_iter_name_next): Delete
4322 declarations.
4323 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4324 dict_iter_match_first/dict_iter_match_next.
4325
cf325299
PA
43262017-07-20 Pedro Alves <palves@redhat.com>
4327
4328 * cp-support.c (cp_find_first_component_aux): Add missing case for
4329 end of string.
4330
c5ed0576
DB
43312017-07-18 David Blaikie <dblaikie@gmail.com>
4332
4333 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4334 of dwo_cu's dwo_file.
4335
27841e76
YQ
43362017-07-18 Yao Qi <yao.qi@linaro.org>
4337
4338 * remote.c (store_registers_using_G): Remove one line comment.
4339
cfb7e58b
YQ
43402017-07-18 Yao Qi <yao.qi@linaro.org>
4341
4342 * regcache.c (regcache_cpy): Simplify it.
4343 (regcache::cpy_no_passthrough): Remove it.
4344 * regcache.h (cpy_no_passthrough): Remove it.
4345 (regcache_dup, regcache_cpy): Update comments.
4346
386535dd
PA
43472017-07-18 Pedro Alves <palves@redhat.com>
4348
4349 * remote-sim.c (sim_command_completer): Adjust to work with a
4350 completion_tracker instead of a VEC.
4351
c45ec17c
PA
43522017-07-17 Pedro Alves <palves@redhat.com>
4353
4354 * completer.c (complete_source_filenames): New function.
4355 (complete_address_and_linespec_locations): New function.
4356 (location_completer): Use complete_address_and_linespec_locations.
4357 (completion_tracker::build_completion_result): Honor the tracker's
4358 request to suppress append.
4359 * completer.h (completion_tracker::suppress_append_ws)
4360 (completion_tracker::set_suppress_append_ws): New methods.
4361 (completion_tracker::m_suppress_append_ws): New field.
4362 (complete_source_filenames): New declaration.
4363 * linespec.c (linespec_complete_what): New.
4364 (struct ls_parser) <complete_what, completion_word,
4365 completion_quote_char, completion_quote_end, completion_tracker>:
4366 New fields.
4367 (string_find_incomplete_keyword_at_end): New.
4368 (linespec_lexer_lex_string): Record quote char. If in completion
4369 mode, don't throw.
4370 (linespec_lexer_consume_token): Advance the completion word point.
4371 (linespec_lexer_peek_token): Save/restore completion info.
4372 (save_stream_and_consume_token): New.
4373 (set_completion_after_number): New.
4374 (linespec_parse_basic): Set what to complete next depending on
4375 token. Handle function and label completions specially.
4376 (parse_linespec): Disable objc shortcut in completion mode. Set
4377 what to complete next depending on token type. Skip keyword if in
4378 completion mode.
4379 (complete_linespec_component, linespec_complete): New.
4380 * linespec.h (linespec_complete): Declare.
4381
be966d42
PA
43822017-07-17 Pedro Alves <palves@redhat.com>
4383
4384 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4385 Handle 'operator<' / 'operator<<'.
4386
a2459270
PA
43872017-07-17 Pedro Alves <palves@redhat.com>
4388
4389 * completer.c (collect_explicit_location_matches): Handle
4390 MATCH_LABEL.
4391 (convert_explicit_location_to_linespec): New, factored out from
4392 ...
4393 (convert_explicit_location_to_sals): ... this.
4394 (complete_label): New.
4395 (linespec_complete_label, find_label_symbols_in_block): New.
4396 (find_label_symbols): Add completion_mode parameter and adjust to
4397 call find_label_symbols_in_block.
4398 * linespec.h (linespec_complete_label): Declare.
4399
c6756f62
PA
44002017-07-17 Pedro Alves <palves@redhat.com>
4401
4402 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4403 complete_symbol_mode parameter.
4404 * cli/cli-cmds.c (complete_command): Get the completion result out
4405 of the handle_brkchars tracker if used a custom word point.
4406 * completer.c: Include "linespec.h".
4407 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4408 (advance_to_expression_complete_word_point): New.
4409 (completion_tracker::completes_to_completion_word): New.
4410 (complete_files_symbols): Pass down
4411 complete_symbol_mode::EXPRESSION.
4412 (explicit_options, probe_options): New.
4413 (collect_explicit_location_matches): Complete on the
4414 explictit_loc->foo instead of word. Use
4415 linespec_complete_function. Handle MATCH_LINE. Handle offering
4416 keyword and options completions.
4417 (backup_text_ptr): Delete.
4418 (skip_keyword): New.
4419 (complete_explicit_location): Remove 'word' parameter. Add
4420 language, quoted_arg_start and quoted_arg_end parameters.
4421 Rewrite, parsing left to right.
4422 (location_completer): Rewrite.
4423 (location_completer_handle_brkchars): New function.
4424 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4425 (enum complete_line_internal_reason): Adjust comments.
4426 (completion_tracker::discard_completions): New.
4427 (completer_handle_brkchars_func_for_completer): Handle
4428 location_completer.
4429 (gdb_custom_word_point_brkchars)
4430 (gdb_org_rl_basic_quote_characters): New.
4431 (gdb_completion_word_break_characters_throw)
4432 (completion_find_completion_word): Handle trackers that use a
4433 custom word point.
4434 (completion_tracker::advance_custom_word_point_by): New.
4435 (completion_tracker::build_completion_result): Don't rely on
4436 readline appending the quote char.
4437 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4438 use a custom word point.
4439 (gdb_rl_attempted_completion_function): Restore
4440 rl_basic_quote_characters.
4441 * completer.h (class completion_tracker): Extend intro comment.
4442 (completion_tracker::set_quote_char)
4443 (completion_tracker::quote_char)
4444 (completion_tracker::set_use_custom_word_point)
4445 (completion_tracker::use_custom_word_point)
4446 (completion_tracker::custom_word_point)
4447 (completion_tracker::set_custom_word_point)
4448 (completion_tracker::advance_custom_word_point_by)
4449 (completion_tracker::completes_to_completion_word)
4450 (completion_tracker::discard_completions): New methods.
4451 (completion_tracker::m_quote_char)
4452 (completion_tracker::m_use_custom_word_point)
4453 (completion_tracker::m_custom_word_point): New fields.
4454 (advance_to_expression_complete_word_point): Declare.
4455 * f-lang.c (f_collect_symbol_completion_matches): Add
4456 complete_symbol_mode parameter.
4457 * language.h (struct language_defn)
4458 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4459 parameter.
4460 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4461 (linespec_complete_function): New function.
4462 (linespec_lexer_lex_keyword): Adjust.
4463 * linespec.h (linespec_keywords, linespec_complete_function): New
4464 declarations.
4465 * location.c (find_end_quote): New function.
4466 (explicit_location_lex_one): Add explicit_completion_info
4467 parameter. Save quoting info. Don't throw if being called for
4468 completion. Don't handle Ada operators here.
4469 (is_cp_operator, skip_op_false_positives, first_of)
4470 (explicit_location_lex_one_function): New function.
4471 (string_to_explicit_location): Replace 'dont_throw' parameter with
4472 an explicit_completion_info pointer parameter. Handle it. Don't
4473 use explicit_location_lex_one to lex function names. Use
4474 explicit_location_lex_one_function instead.
4475 * location.h (struct explicit_completion_info): New.
4476 (string_to_explicit_location): Replace 'dont_throw' parameter with
4477 an explicit_completion_info pointer parameter.
4478 * symtab.c (default_collect_symbol_completion_matches_break_on):
4479 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4480 (default_collect_symbol_completion_matches)
4481 (collect_symbol_completion_matches): Add complete_symbol_mode
4482 parameter.
4483 (collect_symbol_completion_matches_type): Pass down
4484 complete_symbol_mode::EXPRESSION.
4485 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4486 parameter. Handle LINESPEC mode.
4487 * symtab.h (complete_symbol_mode): New.
4488 (default_collect_symbol_completion_matches_break_on)
4489 (default_collect_symbol_completion_matches)
4490 (collect_symbol_completion_matches)
4491 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4492 parameter.
4493
1d550c82
PA
44942017-07-17 Pedro Alves <palves@redhat.com>
4495
4496 * utils.c (enum class strncmp_iw_mode): New.
4497 (strcmp_iw): Rename to ...
4498 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4499 parameters. Handle them.
4500 (strncmp_iw): New.
4501 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4502 * utils.h (strncmp_iw): Declare.
4503 (strcmp_iw): Move describing comments here.
4504
8090b426
PA
45052017-07-17 Pedro Alves <palves@redhat.com>
4506
4507 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4508 CP_OPERATOR_STR.
4509 * c-typeprint.c (is_type_conversion_operator): Use
4510 CP_OPERATOR_STR.
4511 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4512 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4513 CP_OPERATOR_LEN.
4514 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4515 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4516 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4517 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4518 CP_OPERATOR_STR.
4519 * location.c: Include "cp-support.h".
4520 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4521 CP_OPERATOR_STR.
4522 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4523 CP_OPERATOR_LEN.
4524
6a2c1b87
PA
45252017-07-17 Pedro Alves <palves@redhat.com>
4526
4527 * cli/cli-cmds.c (complete_command): Use a completion tracker
4528 along with completion_find_completion_word for handle_brkchars
4529 phase.
4530 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4531 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4532 (struct gdb_rl_completion_word_info): New.
4533 (gdb_rl_find_completion_word): New.
4534 (completion_find_completion_word): New.
4535 * completer.h (completion_find_completion_word): Declare.
4536
eb3ff9a5
PA
45372017-07-17 Pedro Alves <palves@redhat.com>
4538
4539 * ada-lang.c (symbol_completion_match): Adjust comments.
4540 (symbol_completion_add): Replace vector parameter with
4541 completion_tracker parameter. Use it.
4542 (ada_make_symbol_completion_list): Rename to...
4543 (ada_collect_symbol_completion_matches): ... this. Add
4544 completion_tracker parameter and use it.
4545 (ada_language_defn): Adjust.
4546 * break-catch-syscall.c (catch_syscall_completer): Adjust
4547 prototype and work with completion_tracker instead of VEC.
4548 * breakpoint.c (condition_completer): Adjust prototype and work
4549 with completion_tracker instead of VEC.
4550 * c-lang.c (c_language_defn, cplus_language_defn)
4551 (asm_language_defn, minimal_language_defn): Adjust to renames.
4552 * cli/cli-cmds.c (complete_command): Rework using
4553 completion_tracker. Catch exceptions when completing.
4554 * cli/cli-decode.c (integer_unlimited_completer)
4555 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4556 with completion_tracker instead of VEC.
4557 * command.h (struct completion_tracker): Forward declare.
4558 (completer_ftype, completer_handle_brkchars_ftype): Change
4559 types.
4560 (complete_on_cmdlist, complete_on_enum): Adjust.
4561 * completer.c: Include <algorithm>.
4562 (struct gdb_completer_state): New.
4563 (current_completion): New global.
4564 (readline_line_completion_function): Delete.
4565 (noop_completer, filename_completer)
4566 (filename_completer_handle_brkchars, complete_files_symbols)
4567 (linespec_location_completer): Adjust to work with a
4568 completion_tracker instead of a VEC.
4569 (string_or_empty): New.
4570 (collect_explicit_location_matches): Adjust to work with a
4571 completion_tracker instead of a VEC.
4572 (explicit_location_completer): Rename to ...
4573 (complete_explicit_location): ... this and adjust to work with a
4574 completion_tracker instead of a VEC.
4575 (location_completer): Adjust to work with a completion_tracker
4576 instead of a VEC.
4577 (add_struct_fields): Adjust to work with a completion_list instead
4578 of VEC.
4579 (expression_completer): Rename to ...
4580 (complete_expression): ... this and adjust to work with a
4581 completion_tracker instead of a VEC. Use complete_files_symbols.
4582 (expression_completer): Reimplement on top of complete_expression.
4583 (symbol_completer): Adjust to work with a completion_tracker
4584 instead of a VEC.
4585 (enum complete_line_internal_reason): Add describing comments.
4586 (complete_line_internal_normal_command): Adjust to work with a
4587 completion_tracker instead of a VEC.
4588 (complete_line_internal): Rename to ...
4589 (complete_line_internal_1): ... this and adjust to work with a
4590 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4591 handle_brkchars phase.
4592 (new_completion_tracker): Delete.
4593 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4594 complete_line_internal_1.
4595 (free_completion_tracker): Delete.
4596 (INITIAL_COMPLETION_HTAB_SIZE): New.
4597 (completion_tracker::completion_tracker)
4598 (completion_tracker::~completion_tracker): New.
4599 (maybe_add_completion): Delete.
4600 (completion_tracker::maybe_add_completion)
4601 (completion_tracker::add_completion)
4602 (completion_tracker::add_completions): New.
4603 (throw_max_completions_reached_error): Delete.
4604 (complete_line): Adjust to work with a completion_tracker instead
4605 of a VEC. Don't create a completion_tracker_t or check for max
4606 completions here.
4607 (command_completer, command_completer_handle_brkchars)
4608 (signal_completer, reg_or_group_completer_1)
4609 (reg_or_group_completer, default_completer_handle_brkchars):
4610 Adjust to work with a completion_tracker.
4611 (gdb_completion_word_break_characters_throw): New.
4612 (gdb_completion_word_break_characters): Reimplement.
4613 (line_completion_function): Delete.
4614 (completion_tracker::recompute_lowest_common_denominator)
4615 (expand_preserving_ws)
4616 (completion_tracker::build_completion_result)
4617 (completion_result::completion_result)
4618 (completion_result::completion_result)
4619 (completion_result::~completion_result)
4620 (completion_result::completion_result)
4621 (completion_result::release_match_list, compare_cstrings)
4622 (completion_result::sort_match_list)
4623 (completion_result::reset_match_list)
4624 (gdb_rl_attempted_completion_function_throw)
4625 (gdb_rl_attempted_completion_function): New.
4626 * completer.h (completion_list, struct completion_result)
4627 (class completion_tracker): New.
4628 (complete_line): Add completion_tracker parameter.
4629 (readline_line_completion_function): Delete.
4630 (gdb_rl_attempted_completion_function): New.
4631 (noop_completer, filename_completer, expression_completer)
4632 (location_completer, symbol_completer, command_completer)
4633 (signal_completer, reg_or_group_completer): Update prototypes.
4634 (completion_tracker_t, new_completion_tracker)
4635 (make_cleanup_free_completion_tracker): Delete.
4636 (enum maybe_add_completion_enum): Delete.
4637 (maybe_add_completion): Delete.
4638 (throw_max_completions_reached_error): Delete.
4639 * corefile.c (complete_set_gnutarget): Adjust to work with a
4640 completion_tracker instead of a VEC.
4641 * cp-abi.c (cp_abi_completer): Adjust to work with a
4642 completion_tracker instead of a VEC.
4643 * d-lang.c (d_language_defn): Adjust.
4644 * disasm.c (disassembler_options_completer): Adjust to work with a
4645 completion_tracker instead of a VEC.
4646 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4647 (f_collect_symbol_completion_matches): ... this. Adjust to work
4648 with a completion_tracker instead of a VEC.
4649 (f_language_defn): Adjust.
4650 * go-lang.c (go_language_defn): Adjust.
4651 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4652 Adjust to work with a completion_tracker instead of a VEC.
4653 * infrun.c (handle_completer): Likewise.
4654 * interps.c (interpreter_completer): Likewise.
4655 * interps.h (interpreter_completer): Likewise.
4656 * language.c (unknown_language_defn, auto_language_defn)
4657 (local_language_defn): Adjust.
4658 * language.h (language_defn::la_make_symbol_completion_list):
4659 Rename to ...
4660 (language_defn::la_collect_symbol_completion_matches): ... this
4661 and adjust to work with a completion_tracker instead of a VEC.
4662 * m2-lang.c (m2_language_defn): Adjust.
4663 * objc-lang.c (objc_language_defn): Adjust.
4664 * opencl-lang.c (opencl_language_defn): Adjust.
4665 * p-lang.c (pascal_language_defn): Adjust.
4666 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4667 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4668 with a completion_tracker.
4669 * rust-lang.c (rust_language_defn): Adjust.
4670 * symtab.c (free_completion_list, do_free_completion_list)
4671 (return_val, completion_tracker): Delete.
4672 (completion_list_add_name, completion_list_add_symbol)
4673 (completion_list_add_msymbol, completion_list_objc_symbol)
4674 (completion_list_add_fields, add_symtab_completions): Add
4675 completion_tracker parameter and use it.
4676 (default_make_symbol_completion_list_break_on_1): Rename to...
4677 (default_collect_symbol_completion_matches_break_on): ... this.
4678 Add completion_tracker parameter and use it instead of allocating
4679 a completion tracker here.
4680 (default_make_symbol_completion_list_break_on): Delete old
4681 implementation.
4682 (default_make_symbol_completion_list): Delete.
4683 (default_collect_symbol_completion_matches): New.
4684 (make_symbol_completion_list): Delete.
4685 (collect_symbol_completion_matches): New.
4686 (make_symbol_completion_type): Rename to ...
4687 (collect_symbol_completion_matches_type): ... this. Add
4688 completion_tracker parameter and use it instead of VEC.
4689 (make_file_symbol_completion_list_1): Rename to...
4690 (collect_file_symbol_completion_matches): ... this. Add
4691 completion_tracker parameter and use it instead of VEC.
4692 (make_file_symbol_completion_list): Delete.
4693 (add_filename_to_list): Use completion_list instead of a VEC.
4694 (add_partial_filename_data::list): Now a completion_list.
4695 (make_source_files_completion_list): Work with a completion_list
4696 instead of a VEC.
4697 * symtab.h: Include "completer.h".
4698 (default_make_symbol_completion_list_break_on)
4699 (default_make_symbol_completion_list, make_symbol_completion_list)
4700 (make_symbol_completion_type, make_file_symbol_completion_list)
4701 (make_source_files_completion_list): Delete.
4702 (default_collect_symbol_completion_matches_break_on)
4703 (default_collect_symbol_completion_matches)
4704 (collect_symbol_completion_matches)
4705 (collect_symbol_completion_matches_type)
4706 (collect_file_symbol_completion_matches)
4707 (make_source_files_completion_list): New.
4708 * top.c (init_main): Don't install a rl_completion_entry_function
4709 hook. Install a rl_attempted_completion_function hook instead.
4710 * tui/tui-layout.c (layout_completer): Adjust to work with a
4711 completion_tracker.
4712 * tui/tui-regs.c (tui_reggroup_completer):
4713 * tui/tui-win.c (window_name_completer, focus_completer)
4714 (winheight_completer): Adjust to work with a completion_tracker.
4715 * value.c: Include "completer.h".
4716 (complete_internalvar): Adjust to work with a completion_tracker.
4717 * value.h (complete_internalvar): Likewise.
4718
6e1dbf8c
PA
47192017-07-17 Pedro Alves <palves@redhat.com>
4720
4721 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4722 renames.
4723 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4724 comments to completer_ftype's declaration.
4725 <completer_handle_brkchars>: Change type to
4726 completer_handle_brkchars_ftype.
4727 * command.h (completer_ftype): Add describing comment and give
4728 names to parameters.
4729 (completer_ftype_void): Rename to ...
4730 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4731 (set_cmd_completer_handle_brkchars): Adjust.
4732 * completer.c (filename_completer_handle_brkchars): New function.
4733 (complete_line_internal_normal_command): New function, factored
4734 out from ...
4735 (complete_line_internal): ... here.
4736 (command_completer_handle_brkchars)
4737 (default_completer_handle_brkchars)
4738 (completer_handle_brkchars_func_for_completer): New functions.
4739 * completer.h (set_gdb_completion_word_break_characters): Delete
4740 declaration.
4741 (completer_handle_brkchars_func_for_completer): New declaration.
4742 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4743 completer_handle_brkchars_func_for_completer.
4744
78b13106
PA
47452017-07-17 Pedro Alves <palves@redhat.com>
4746
4747 * completer.c (symbol_completer): New function, based on
4748 make_symbol_completion_list_fn.
4749 * completer.h (symbol_completer): New declaration.
4750 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4751 * python/py-cmd.c (completers): Adjust.
4752 * symtab.c (make_symbol_completion_list_fn): Delete.
4753 * symtab.h (make_symbol_completion_list_fn): Delete.
4754 * cli/cli-decode.c (add_cmd): Adjust.
4755
bbf2f4df
PA
47562017-07-17 Pedro Alves <palves@redhat.com>
4757
4758 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4759 * dwarf2read.c: Include "filename-seen-cache.h".
4760 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4761 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4762 * filename-seen-cache.c: New file.
4763 * filename-seen-cache.h: New file.
4764 * symtab.c: Include "filename-seen-cache.h".
4765 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4766 (create_filename_seen_cache, clear_filename_seen_cache)
4767 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4768 to filename-seen-cache.h/filename-seen-cache.c.
4769 (output_source_filename, sources_info)
4770 (maybe_add_partial_symtab_filename)
4771 (make_source_files_completion_list): Adjust to use
4772 filename_seen_cache.
4773
330cdd98
PA
47742017-07-17 Pedro Alves <palves@redhat.com>
4775
4776 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4777 fields.
4778 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4779 dwarf2_debug_sections*)): New.
4780 (dwarf2_per_objfile::dwarf2_per_objfile(const
4781 dwarf2_per_objfile&)): Declare as deleted.
4782 (dwarf2_per_objfile::operator=): Declare as deleted.
4783 (dwarf2_per_objfile::dwarf2_per_objfile)
4784 (dwarf2_per_objfile::~dwarf2_per_objfile)
4785 (dwarf2_per_objfile::free_cached_comp_units): New.
4786 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4787 ctor. Call dwarf2_per_objfile's ctor manually.
4788 (dwarf2_locate_sections): Deleted/refactored as ...
4789 (dwarf2_per_objfile::locate_sections): ... this new method.
4790 (free_cached_comp_units): Defer to
4791 dwarf2_per_objfile::free_cached_comp_units.
4792 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4793
8880f2a9
TT
47942017-07-14 Tom Tromey <tom@tromey.com>
4795
4796 PR rust/21764:
4797 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4798 parameter.
4799 <UNOP_SIZEOF>: Split into separate case.
4800 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4801
65547233
TT
48022017-07-14 Tom Tromey <tom@tromey.com>
4803
4804 PR rust/21763:
4805 * symtab.c (symbol_matches_domain): Add language_rust to special
4806 case.
4807 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4808 treat LOC_TYPEDEF symbols as variables.
4809
8f14146e
PA
48102017-07-14 Pedro Alves <palves@redhat.com>
4811
4812 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4813 symtabs matching all symtabs with SRCFILE as file name instead of
4814 only considering the first hit, with lookup_symtab.
4815
2347965c
SM
48162017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4817
4818 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4819 operator_name parameters.
4820 (gen_expr): Update function call.
4821
40f4af28
SM
48222017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4823
4824 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4825 parameter.
4826 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4827 Likewise.
4828 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4829 parameter, use agent_expr::gdbarch instead, update function
4830 calls.
4831 (locexpr_tracepoint_var_ref): Likewise.
4832 (loclist_tracepoint_var_ref): Likewise.
4833 * ax-gdb.c (gen_trace_static_fields): Likewise.
4834 (gen_traced_pop): Likewise.
4835 (gen_frame_args_address): Likewise.
4836 (gen_frame_locals_address): Likewise.
4837 (gen_var_ref): Likewise.
4838 (gen_struct_ref_recursive): Likewise.
4839 (gen_static_field): Likewise.
4840 (gen_maybe_namespace_elt): Likewise.
4841 (gen_expr): Likewise.
4842 (gen_trace_for_var): Likewise.
4843 (gen_trace_for_expr): Likewise.
4844 (gen_trace_for_return_address): Likewise.
4845
053f8057
SM
48462017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4847
4848 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4849 parameter.
4850 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4851
6661ad48
SM
48522017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4853
4854 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4855 from ax, update calls.
4856 (gen_usual_arithmetic): Likewise.
4857 (gen_integral_promotions): Likewise.
4858 (gen_bitfield_ref): Likewise.
4859 (gen_primitive_field): Likewise.
4860 (gen_struct_ref_recursive): Likewise.
4861 (gen_struct_ref): Likewise.
4862 (gen_maybe_namespace_elt): Likewise.
4863 (gen_struct_elt_for_reference): Likewise.
4864 (gen_namespace_elt): Likewise.
4865 (gen_aggregate_elt_ref): Likewise.
4866 (gen_expr): Get gdbarch from ax, update calls.
4867 (gen_expr_binop_rest): Likewise.
4868
c55a47e7
PA
48692017-07-13 Pedro Alves <palves@redhat.com>
4870
4871 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4872 as default tdesc.
4873 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4874 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4875 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4876 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4877 tdep.
4878 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4879 Get final tdesc from the tdep.
4880 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4881 default tdesc.
4882 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4883 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4884 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4885 Use it as default tdesc.
4886 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4887 down to amd_init_abi. No longer handle fallback tdesc here.
4888 * amd64-tdep.h (tdesc_x32): Declare.
4889 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4890 parameter.
4891 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4892 as default tdesc.
4893
55efceab
AA
48942017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4895
4896 * s390-linux-tdep.c (s390_process_record): Add support for
4897 instructions new in arch12.
4898
0aa37b65
JB
48992017-07-11 John Baldwin <jhb@FreeBSD.org>
4900
4901 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4902 PT_GETFSBASE and PT_GETGSBASE.
4903 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4904 PT_SETGSBASE.
4905
48aeef91
JB
49062017-07-11 John Baldwin <jhb@FreeBSD.org>
4907
4908 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4909 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4910 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4911 those rules.
4912 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4913 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4914 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4915 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4916 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4917 * features/i386/amd64.xml: Add 64bit-segments.xml.
4918 * features/i386/amd64-avx-avx512.c: Regenerated.
4919 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4920 * features/i386/amd64-avx-mpx.c: Regenerated.
4921 * features/i386/amd64-avx.c: Regenerated.
4922 * features/i386/amd64-mpx.c: Regenerated.
4923 * features/i386/amd64.c: Regenerated.
4924 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4925 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4926 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4927 * regformats/i386/amd64-avx.dat: Regenerated.
4928 * regformats/i386/amd64-mpx.dat: Regenerated.
4929 * regformats/i386/amd64.dat: Regenerated.
4930
77c501bc
YQ
49312017-07-10 Yao Qi <yao.qi@linaro.org>
4932
4933 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4934 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4935
6dc8d757
AK
49362017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4937
4938 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4939 unsetenv.
4940 * gnulib/aclocal.m4: Regenerate.
4941 * gnulib/config.in: Regenerate.
4942 * gnulib/configure: Regenerate.
4943 * gnulib/import/Makefile.am: Regenerate.
4944 * gnulib/import/Makefile.in: Regenerate.
4945 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4946 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4947 * gnulib/import/m4/environ.m4: New file.
4948 * gnulib/import/m4/setenv.m4: New file.
4949 * gnulib/import/setenv.c: New file.
4950 * gnulib/import/unsetenv.c: New file.
4951
266934d1
SM
49522017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4953
4954 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4955 address when op is DW_OP_addr.
4956
03278692
TT
49572017-07-09 Tom Tromey <tom@tromey.com>
4958
4959 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4960 check and apply to outer type.
4961
4b654465
JB
49622017-07-07 John Baldwin <jhb@FreeBSD.org>
4963
4964 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4965 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4966 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4967 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4968
2af9fc44
JB
49692017-07-07 John Baldwin <jhb@FreeBSD.org>
4970
4971 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4972
382b69bb
JB
49732017-07-07 John Baldwin <jhb@FreeBSD.org>
4974
4975 * corelow.c (get_core_siginfo): Remove.
4976 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4977 instead of get_core_siginfo.
4978 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4979 * gdbarch.h: Re-generate.
4980 * gdbarch.c: Re-generate.
4981 * linux-tdep.c (linux_core_xfer_siginfo): New.
4982 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4983
6e5eab33
JB
49842017-07-07 John Baldwin <jhb@FreeBSD.org>
4985
4986 * corelow.c (thread_section_name): Move to ...
4987 * gdbcore.h (thread_section_name): ... here.
4988
929edea9
JB
49892017-07-07 John Baldwin <jhb@FreeBSD.org>
4990
4991 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4992 (struct siginfo32): New.
4993 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4994 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4995 via ptrace(PT_LWPINFO).
4996
762c974a
JB
49972017-07-07 John Baldwin <jhb@FreeBSD.org>
4998
4999 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5000 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5001 (fbsd_get_siginfo_type): New.
5002 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5003 (_initialize_fbsd_tdep): New.
5004
33c5cd75
DB
50052017-07-06 David Blaikie <dblaikie@gmail.com>
5006
5007 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5008 a singular dwo_unit*) to support multiple CUs in the same way that
5009 multiple TUs are supported.
5010 (create_cus_hash_table): Replace create_dwo_cu with a function for
5011 parsing multiple CUs from a DWO file.
5012 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5013 create_dwo_cu.
5014 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5015 htab_find, rather than comparing the signature to a singleton CU in
5016 the dwo_file.
5017
8455d262
PA
50182017-07-06 Pedro Alves <palves@redhat.com>
5019
5020 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5021
4da3eb35
PA
50222017-07-04 Pedro Alves <palves@redhat.com>
5023
5024 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5025 * gdbtypes.h (TYPE_STATIC): Delete.
5026 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5027 is_synchronized, is_native>: Delete.
5028 <dummy>: Bump.
5029 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5030 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5031 (TYPE_FN_FIELD_ABSTRACT): Delete.
5032
5bfd255c
SM
50332017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5034
5035 * buffer.h (buffer_finish): Fix spelling mistakes.
5036
25c54127
EZ
50372017-07-01 Eli Zaretskii <eliz@gnu.org>
5038
5039 * .dir-locals.el: Automatically switch to C-style comments in
5040 versions of Emacs that support the feature.
5041
dc4bde35
SDJ
50422017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5043 Pedro Alves <palves@redhat.com>
5044
5045 PR cli/21688
5046 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5047 (process_next_line): New variable 'inline_cmd'.
5048 Adjust 'if' clauses for "python", "compile" and "guile" to use
5049 'command_name_equals' and check for '!inline_cmd'.
5050
51ed89aa
SDJ
50512017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5052
5053 PR cli/21688
5054 * cli/cli-script.c (command_name_equals_not_inline): New function.
5055 (process_next_line): Adjust 'if' clauses for "python", "compile"
5056 and "guile" to use command_name_equals_not_inline.
5057
eb17d413
PA
50582017-06-29 Pedro Alves <palves@redhat.com>
5059
5060 * completer.c (expression_completer): Call
5061 linespec_location_completer instead of location_completer.
5062
195bcdd5
PA
50632017-06-29 Pedro Alves <palves@redhat.com>
5064
5065 * completer.c (expression_completer): Remove code that recomputes
5066 'text' from 'word'.
5067
adc764e7
YQ
50682017-06-29 Yao Qi <yao.qi@linaro.org>
5069
5070 * regformats/regdat.sh: Generate code with
5071 "ifndef IN_PROCESS_AGENT".
5072
6e75794e
PA
50732017-06-28 Pedro Alves <palves@redhat.com>
5074
5075 * command.h: Include "common/scoped_restore.h".
5076
bc491f2e
YQ
50772017-06-28 Yao Qi <yao.qi@linaro.org>
5078
5079 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5080 instead of obstack_grow.
5081
41664b45
DG
50822017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5083
5084 PR gdb/21337
5085 * symfile.c (reread_symbols): Call objfiles_changed just before
5086 read_symbols.
5087
6da67eb1
PA
50882017-06-27 Pedro Alves <palves@redhat.com>
5089
5090 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5091 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5092 (completion_list_add_symbol, completion_list_add_msymbol):
5093 ... these new functions.
5094 (add_symtab_completions)
5095 (default_make_symbol_completion_list_break_on_1): Adjust.
5096
23732b1e
PA
50972017-06-27 Pedro Alves <palves@redhat.com>
5098
5099 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5100 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5101 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5102 dtor.
5103 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5104 'storage_obstack' field an auto_obstack. In-class initialize all
5105 non-bitfield fields. Make minsyms_read bool.
5106 * symfile.c (read_symbols): Adjust.
5107
a4d1e79a
AH
51082017-06-27 Alan Hayward <alan.hayward@arm.com>
5109
5110 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5111 (gdbsim_store_register): Likewise.
5112
8268c778
PA
51132017-06-27 Pedro Alves <palves@redhat.com>
5114
5115 * c-exp.y (name_obstack): Now an auto_obstack.
5116 (yylex): Use auto_obstack::clear.
5117 (c_parse): Use auto_obstack::clear instead of reinitializing and
5118 freeing the obstack.
5119 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5120 * d-exp.y (name_obstack): Now an auto_obstack.
5121 (yylex): Use auto_obstack::clear.
5122 (d_parse): Use auto_obstack::clear instead of reinitializing and
5123 freeing the obstack.
5124 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5125 auto_obstack.
5126 * dwarf2read.c (create_addrmap_from_index)
5127 (dwarf2_build_psymtabs_hard)
5128 (update_enumeration_type_from_children): Likewise.
5129 * gdb_obstack.h (auto_obstack): New type.
5130 * go-exp.y (name_obstack): Now an auto_obstack.
5131 (build_packaged_name): Use auto_obstack::clear.
5132 (go_parse): Use auto_obstack::clear instead of reinitializing and
5133 freeing the obstack.
5134 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5135 auto_obstack.
5136 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5137 * rust-exp.y (work_obstack): Now an auto_obstack.
5138 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5139 reinitializing and freeing the obstack.
5140 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5141 (host_char_to_target): Use auto_obstack.
5142 * utils.h (make_cleanup_obstack_free): Delete declaration.
5143 * valprint.c (generic_emit_char, generic_printstr): Use
5144 auto_obstack.
5145
db665f42
SM
51462017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5147
5148 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5149 thread.
5150 (darwin_init_thread_list): Don't update dummy thread.
5151 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5152
873c0814
SM
51532017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5154
5155 * record-full.c (netorder16): Remove.
5156
8b5a7a6e
SM
51572017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5158
5159 * common/diagnostics.h: Define macros for GCC.
5160 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5161 * common/vec.h: Include diagnostics.h.
5162 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5163 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5164 warning.
5165
d1435379
SM
51662017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5167
5168 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5169 New macro.
5170 * ada-lex.l: Ignore deprecated register warnings.
5171
cc75e0fd
SM
51722017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5173
5174 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5175 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5176
07809eaf
SM
51772017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5178
5179 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5180 its own line.
5181
f076f034
SM
51822017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5183
5184 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5185
0dd5cbc5
AH
51862017-06-23 Alan Hayward <alan.hayward@arm.com>
5187
5188 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5189 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5190 (xtensa_register_read_masked): Likewise.
5191
d4c6ce5b
SDJ
51922017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5193
5194 * common/environ.c (gdb_environ::unset): Update comment.
5195
16892a03
AH
51962017-06-22 Alan Hayward <alan.hayward@arm.com>
5197
5198 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5199 registers.
5200
d7dcbefc
AH
52012017-06-22 Alan Hayward <alan.hayward@arm.com>
5202
5203 * record-full.c (record_full_exec_insn): Use byte_vector.
5204
b30ff123
YQ
52052017-06-22 Yao Qi <yao.qi@linaro.org>
5206
5207 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5208 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5209
4fa847d7
AH
52102017-06-22 Alan Hayward <alan.hayward@arm.com>
5211
5212 * remote.c (cached_reg): Move from here...
5213 * regcache.h (cached_reg): ...to here.
5214 * python/py-unwind.c (struct reg_info): Remove.
5215 (cached_frame_info): Use cached_reg_t.
5216 (pyuw_prev_register): Likewise.
5217 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5218 (pyuw_dealloc_cache): Free all registers.
5219
f4906a9a
PA
52202017-06-22 Pedro Alves <palves@redhat.com>
5221 Simon Marchi <simon.marchi@ericsson.com>
5222
5223 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5224 warning.
5225 * common/diagnostics.h: New file.
5226
b45a1208
PA
52272017-06-22 Pedro Alves <palves@redhat.com>
5228
5229 * common/agent.h: Add include guards.
5230
e4da2c61
SM
52312017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5232
5233 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5234 talk about addressable units instead of bytes.
5235
96160d60
SDJ
52362017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5237
5238 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5239 of '::const_iterator'.
5240
9a6c7d9c
SDJ
52412017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5242
5243 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5244 'unittests/environ-selftests.c'.
5245 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5246 * charset.c (find_charset_names): Declare object 'iconv_env'.
5247 Update code to use 'iconv_env' object. Remove call to
5248 'free_environ'.
5249 * common/environ.c: Include <utility>.
5250 (make_environ): Delete function.
5251 (free_environ): Delete function.
5252 (gdb_environ::clear): New function.
5253 (gdb_environ::operator=): New function.
5254 (gdb_environ::get): Likewise.
5255 (environ_vector): Delete function.
5256 (set_in_environ): Delete function.
5257 (gdb_environ::set): New function.
5258 (unset_in_environ): Delete function.
5259 (gdb_environ::unset): New function.
5260 (gdb_environ::envp): Likewise.
5261 * common/environ.h: Include <vector>.
5262 (struct gdb_environ): Delete; transform into...
5263 (class gdb_environ): ... this class.
5264 (free_environ): Delete prototype.
5265 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5266 environ_vector): Likewise.
5267 * infcmd.c (run_command_1): Update code to call
5268 'envp' from 'gdb_environ' class.
5269 (environment_info): Update code to call methods from 'gdb_environ'
5270 class.
5271 (unset_environment_command): Likewise.
5272 (path_info): Likewise.
5273 (path_command): Likewise.
5274 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5275 (inferior::inferior): Initialize 'environment' using the host's
5276 information.
5277 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5278 Include "environ.h".
5279 (class inferior) <environment>: Change type from 'struct
5280 gdb_environ' to 'gdb_environ'.
5281 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5282 methods from 'gdb_environ' class.
5283 * solib.c (solib_find_1): Likewise
5284 * unittests/environ-selftests.c: New file.
5285
75c554cf
YQ
52862017-06-20 Yao Qi <yao.qi@linaro.org>
5287
5288 * features/i386/i386-linux.xml: Exchange the order of including
5289 32bit-linux.xml and 32bit-sse.xml.
5290 * features/i386/i386-linux.c: Regenerated.
5291
72ddacb7
YQ
52922017-06-20 Yao Qi <yao.qi@linaro.org>
5293
5294 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5295 Delete copy ctor and assignment operator.
5296 (tdesc_type): Likewise.
5297 (tdesc_feature): Likewise.
5298 (tdesc_free_reg): Remove.
5299 (tdesc_create_reg): Use new.
5300 (tdesc_free_type): Remove.
5301 (tdesc_create_vector): Use new.
5302 (tdesc_create_union): Likewise.
5303 (tdesc_create_flags): Likewise.
5304 (tdesc_create_enum): Likewise.
5305 (tdesc_free_feature): Delete.
5306 (free_target_description): Use delete.
5307
325c9fd4
JB
53082017-06-19 John Baldwin <jhb@FreeBSD.org>
5309
5310 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5311 registers.
5312
16b7a719
PA
53132017-06-19 Pedro Alves <palves@redhat.com>
5314
5315 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5316 after gdb::unlinker.
5317
1c8e01c9
SDJ
53182017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5319
5320 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5321 gdb_environ to access an environment variable.
5322
ffce45d2
TP
53232017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5324
5325 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5326 gdb_byte*.
5327
1d4fbac9
SM
53282017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5329
5330 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5331
8465943a
SM
53322017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5333
5334 * configure: Re-generate.
5335 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5336
3e019bdc
SM
53372017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5338
5339 * configure: Re-generate.
5340 * warning.m4: Pass -Werror to compiler when checking for
5341 supported warning flags.
5342
cf0dd6f0
SM
53432017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5344
5345 * Makefile.in (COMPILE.pre): Add "-x c++".
5346
6f98355c
YQ
53472017-06-16 Alan Hayward <alan.hayward@arm.com>
5348 Pedro Alves <palves@redhat.com>
5349 Yao Qi <yao.qi@linaro.org>
5350
5351 * defs.h (RequireLongest): New.
5352 (extract_integer): Declare function template.
5353 (extract_signed_integer): Remove the declaration, but define it
5354 static inline.
5355 (extract_unsigned_integer): Likewise.
5356 (store_integer): Declare function template.
5357 (store_signed_integer): Remove the declaration, but define it
5358 static inline.
5359 (store_unsigned_integer): Likewise.
5360 * findvar.c (extract_integer): New function template.
5361 (extract_signed_integer): Remove.
5362 (extract_unsigned_integer): Remove.
5363 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5364 instantiations.
5365 (store_integer): New function template.
5366 (store_signed_integer): Remove.
5367 (store_unsigned_integer): Remove.
5368 (store_integer): Explicit instantiations.
5369 * regcache.c (regcache_raw_read_signed): Update.
5370 (regcache::raw_read): New function.
5371 (regcache::raw_read_signed): Remove.
5372 (regcache::raw_read_unsigned): Remove.
5373 (regcache_raw_read_unsigned): Update.
5374 (regcache_raw_write_unsigned): Update.
5375 (regcache::raw_write_signed): Remove.
5376 (regcache::raw_write): New function.
5377 (regcache_cooked_read_signed): Update.
5378 (regcache::raw_write_unsigned): Remove.
5379 (regcache::cooked_read_signed): Remove.
5380 (regcache_cooked_read_unsigned): Update.
5381 (regcache::cooked_read_unsigned): Remove.
5382 (regcache_cooked_write_signed): Update.
5383 (regcache_cooked_write_unsigned): Update.
5384 * regcache.h (regcache) <raw_read_signed>: Remove.
5385 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5386 <raw_read, raw_write>: New.
5387 <cooked_read_signed, cooked_write_signed>: Remove.
5388 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5389 <cooked_read, cooked_write>: New.
5390 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5391 (sh64_pseudo_register_write): Update.
5392
a87dc45a
AK
53932017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5394
5395 * arc-tdep.c (arc_disassembler_options): New variable.
5396 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5397 of default_print_insn.
5398 (arc_delayed_print_insn): Set info->section when needed,
5399 use default_print_insn to retrieve a disassembler.
5400
45159d6a
SDJ
54012017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5402
5403 PR gdb/21574
5404 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5405 to mention $SHELL and startup-with-shell.
5406
b46c4cf0
MF
54072017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5408
5409 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5410
6394c606
YQ
54112017-06-14 Yao Qi <yao.qi@linaro.org>
5412
5413 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5414 default_print_insn instead of print_insn_aarch64.
5415 * arm-tdep.c (gdb_print_insn_arm): Call
5416 default_print_insn instead of print_insn_big_arm
5417 and print_insn_little_arm.
5418 * i386-tdep.c (i386_print_insn): Call default_print_insn
5419 instead of print_insn_i386.
5420 * ia64-tdep.c (ia64_print_insn): Call
5421 default_print_insn instead of print_insn_ia64.
5422 * mips-tdep.c (gdb_print_insn_mips): Call
5423 default_print_insn instead of print_insn_big_mips
5424 and print_insn_little_mips.
5425 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5426 instead of print_insn_spu.
5427
d5722aa2
PA
54282017-06-14 Pedro Alves <palves@redhat.com>
5429
5430 * ada-lang.c: Include "common/byte-vector.h".
5431 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5432 * charset.c (wchar_iterator::iterate): Resize the vector instead
5433 of reserving it.
5434 * common/byte-vector.h: Include "common/def-vector.h".
5435 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5436 * cli/cli-dump.c: Include "common/byte-vector.h".
5437 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5438 * common/byte-vector.h: New file.
5439 * common/def-vector.h: New file.
5440 * common/default-init-alloc.h: New file.
5441 * dwarf2loc.c: Include "common/byte-vector.h".
5442 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5443 instead of reserving it.
5444 * dwarf2read.c: Include "common/byte-vector.h".
5445 (data_buf::m_vec): Now a gdb::byte_vector.
5446 * gdb_regex.c: Include "common/def-vector.h".
5447 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5448 * mi/mi-main.c: Include "common/byte-vector.h".
5449 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5450 * printcmd.c: Include "common/byte-vector.h".
5451 (print_scalar_formatted): Use gdb::byte_vector.
5452 * valprint.c: Include "common/byte-vector.h".
5453 (maybe_negate_by_bytes, print_decimal_chars): Use
5454 gdb::byte_vector.
5455
01ec7a27
SM
54562017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5457
5458 * darwin-nat.c: Include "nat/fork-inferior.h".
5459
848d9074
SM
54602017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5461
5462 * configure.nat: Factor out Darwin bits that are not
5463 architecture-specific. Add fork-inferior.o.
5464
3b912944
SM
54652017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5466
5467 * configure.nat: Factor out AIX bits that are not
5468 architecture-specific. Add fork-inferior.o.
5469
55acdf22
AA
54702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5471
5472 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5473 (read_pieced_value, write_pieced_value): ...here. Reduce to
5474 wrappers that just call rw_pieced_value.
5475
f65e2044
AA
54762017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5477
5478 * dwarf2loc.c (write_pieced_value): When writing the data for a
5479 memory piece, use write_memory_with_notification instead of
5480 write_memory.
5481
23f945bf
AA
54822017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5483
5484 * valops.c (read_value_memory): Change embedded_offset to
5485 represent a bit offset instead of a byte offset.
5486 * value.h (read_value_memory): Adjust comment.
5487
f236533e
AA
54882017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5489
5490 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5491 dest_offset_bits and source_offset_bits.
5492 (write_pieced_value): Likewise.
5493
65d84b76
AA
54942017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5495
5496 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5497 given by DW_OP_bit_piece.
5498 (write_pieced_value): Likewise.
5499
242d31ab
AA
55002017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5501
5502 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5503 some other preparations to the places where sufficient information
5504 is available.
5505 (write_pieced_value): Likewise.
5506
03c8af18
AA
55072017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5508
5509 * dwarf2loc.c (bits_to_bytes): New function.
5510 (read_pieced_value): Fix offset calculations for register pieces
5511 on big-endian targets.
5512 (write_pieced_value): Likewise.
5513
840989c1
AA
55142017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5515
5516 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5517 (write_pieced_value): Likewise.
5518
359b19bb
AA
55192017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5520
5521 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5522 transfer the source value's least significant bits, instead of its
5523 lowest-addressed ones. Rename type_len to max_offset.
5524 (read_pieced_value): Mirror above changes to write_pieced_value as
5525 applicable.
5526
07c9ca3b
AA
55272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5528
5529 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5530 truncate full bytes from dest_offset_bits before using it as an
5531 offset into the buffer.
5532
f1cc9874
AA
55332017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5534
5535 * dwarf2loc.c (write_pieced_value): Include transfer size in
5536 byte-wise check.
5537
cdaac320
AA
55382017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5539
5540 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5541 calculation of this_size.
5542
af547a96
AA
55432017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5544
5545 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5546 when targeting a bit-field.
5547 (write_pieced_value): Likewise.
5548
ddd7882a
AA
55492017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5550
5551 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5552 (allocate_piece_closure): Drop addr_size parameter.
5553 (dwarf2_evaluate_loc_desc_full): Adjust call to
5554 allocate_piece_closure.
5555
e9352324
AA
55562017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5557
5558 PR gdb/21226
5559 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5560 the LSB end, independent of endianness.
5561
d5d1163e
AA
55622017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5563
5564 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5565 size capping.
5566
032bb6ea
YQ
55672017-06-13 Yao Qi <yao.qi@linaro.org>
5568
5569 * mips-linux-nat.c: Move include features/mips*-linux.c to
5570 mips-linux-tdep.c.
5571 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5572 to mips-linux-tdep.c.
5573 * mips-linux-tdep.c: Include features/mips*-linux.c
5574 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5575 functions.
5576 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5577 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5578 (tdesc_mips64_dsp_linux): Declare.
5579
f12f6bad
TT
55802017-06-12 Tom Tromey <tom@tromey.com>
5581
5582 * valprint.h (val_print_type_code_int): Remove.
5583 * valprint.c (generic_val_print_int): Always call
5584 val_print_scalar_formatted.
5585 (val_print_type_code_int): Remove.
5586 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5587 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5588 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5589 * ada-valprint.c (ada_val_print_num): Use
5590 val_print_scalar_formatted.
5591
d9109c80
TT
55922017-06-12 Tom Tromey <tom@tromey.com>
5593
5594 * printcmd.c (print_scalar_formatted): Unify the two switches.
5595 Don't convert scalars to LONGEST.
5596
4ac0cb1c
TT
55972017-06-12 Tom Tromey <tom@tromey.com>
5598
5599 PR exp/16225:
5600 * valprint.h (print_decimal_chars): Update.
5601 * valprint.c (maybe_negate_by_bytes): New function.
5602 (print_decimal_chars): Add "is_signed" argument.
5603 * printcmd.c (print_scalar_formatted): Update.
5604
30a25466
TT
56052017-06-12 Tom Tromey <tom@tromey.com>
5606
5607 PR exp/16225:
5608 * valprint.h (print_binary_chars, print_hex_chars): Update.
5609 * valprint.c (val_print_type_code_int): Update.
5610 (print_binary_chars): Add "zero_pad" argument.
5611 (emit_octal_digit): New function.
5612 (print_octal_chars): Don't zero-pad.
5613 (print_decimal_chars): Likewise.
5614 (print_hex_chars): Add "zero_pad" argument.
5615 * sh64-tdep.c (sh64_do_fp_register): Update.
5616 * regcache.c (regcache::dump): Update.
5617 * printcmd.c (print_scalar_formatted): Update.
5618 * infcmd.c (default_print_one_register_info): Update.
5619
b3464d03
PA
56202017-06-12 Pedro Alves <palves@redhat.com>
5621 Alan Hayward <alan.hayward@arm.com>
5622
5623 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5624 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5625 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5626 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5627 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5628
4b76cda9
PA
56292017-06-12 Pedro Alves <palves@redhat.com>
5630
5631 * dwarf2read.c (mapped_symtab::data): Now a vector of
5632 symtab_index_entry instead of vector of
5633 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5634 whether an element's name is NULL instead of checking whether the
5635 element itself is NULL.
5636 (find_slot): Change return type. Adjust.
5637 (hash_expand, , add_index_entry, uniquify_cu_indices)
5638 (write_hash_table): Adjust.
5639
e8f8bcb3
PA
56402017-06-12 Pedro Alves <palves@redhat.com>
5641
5642 * dwarf2read.c (recursively_count_psymbols): New function.
5643 (write_psymtabs_to_index): Call it to compute number of psyms and
5644 pass estimate size of psyms_seen to unordered_set's ctor.
5645
70a1152b
PA
56462017-06-12 Pedro Alves <palves@redhat.com>
5647
5648 * dwarf2read.c (write_hash_table): Check if key already exists
5649 before emplacing.
5650
c2f134ac
PA
56512017-06-12 Pedro Alves <palves@redhat.com>
5652
5653 * dwarf2read.c (data_buf::append_space): Rename to...
5654 (data_buf::grow): ... this, and make private. Adjust all callers.
5655 (data_buf::append_uint): New method.
5656 (add_address_entry, write_one_signatured_type)
5657 (write_psymtabs_to_index): Use it.
5658
a81e6d4d
PA
56592017-06-12 Pedro Alves <palves@redhat.com>
5660
5661 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5662 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5663 (data_buf::file_write): Call ::fwrite directly.
5664
6fd931f2
PA
56652017-06-12 Pedro Alves <palves@redhat.com>
5666
5667 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5668 std::vector::erase.
5669
bc8f2430
JK
56702017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5671
5672 Code cleanup: C++ify .gdb_index producer.
5673 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5674 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5675 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5676 (create_strtab, add_string): Remove.
5677 (file_write, data_buf): New.
5678 (struct symtab_index_entry): Use std::vector for cu_indices.
5679 (struct mapped_symtab): Use std::vector for data.
5680 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5681 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5682 Remove.
5683 (find_slot): Change return type. Update it to the new data structures.
5684 (hash_expand, add_index_entry): Update it to the new data structures.
5685 (offset_type_compare): Remove.
5686 (uniquify_cu_indices): Update it to the new data structures.
5687 (c_str_view, c_str_view_hasher, vector_hasher): New.
5688 (add_indices_to_cpool): Remove.
5689 (write_hash_table): Update it to the new data structures.
5690 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5691 (eq_psymtab_cu_index): Remove.
5692 (psym_index_map): New typedef.
5693 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5694 reference and std::unordered_map for cu_index_htab.
5695 (add_address_entry, add_address_entry_worker, write_address_map)
5696 (write_psymbols): Update it to the new data structures.
5697 (write_obstack): Remove.
5698 (struct signatured_type_index_data): Change types_list to a data_buf
5699 reference and psyms_seen to a std::unordered_set reference.
5700 (write_one_signatured_type, recursively_write_psymbols)
5701 (write_psymtabs_to_index): Update it to the new data structures.
5702
c4dcb155
SM
57032017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5704
5705 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5706 separate-debug-file commands.
5707 * symfile.h (separate_debug_file_debug): New global.
5708 * symfile.c (separate_debug_file_debug): New global.
5709 (separate_debug_file_exists, find_separate_debug_file): Add
5710 debug output.
5711 (_initialize_symfile): Add "set debug separate-debug-file"
5712 command.
5713 * build-id.c (build_id_to_debug_bfd,
5714 find_separate_debug_file_by_buildid): Add debug output.
5715
6d45d4b4
SM
57162017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5717
5718 * gdbarch.sh (displaced_step_free_closure): Remove.
5719 * gdbarch.h, gdbarch.c: Re-generate.
5720 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5721 displaced_step_free_closure.
5722 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5723 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5724 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5725 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5726 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5727 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5728 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5729 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5730 * infrun.c (displaced_step_clear): Call xfree instead of
5731 gdbarch_displaced_step_free_closure.
5732
2f91880f
SDJ
57332017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5734
5735 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5736 NULL".
5737
b8b6e72f
AH
57382017-06-08 Alan Hayward <alan.hayward@arm.com>
5739
5740 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5741 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5742 (mn10300_push_dummy_call): Likewise.
5743
5369082e
AH
57442017-06-08 Alan Hayward <alan.hayward@arm.com>
5745
5746 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5747
ff4ca5ac
AH
57482017-06-08 Alan Hayward <alan.hayward@arm.com>
5749
5750 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5751
aefd8b33
SDJ
57522017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5753
5754 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5755 able to start inferiors using a shell.
5756 (New remote packets): Announce new packet "QStartupWithShell".
5757 * remote.c: Add PACKET_QStartupWithShell.
5758 (extended_remote_create_inferior): Handle new
5759 PACKET_QStartupWithShell.
5760 (remote_protocol_features) <QStartupWithShell>: New entry for
5761 PACKET_QStartupWithShell.
5762 (_initialize_remote): Call "add_packet_config_cmd" for
5763 QStartupShell.
5764
2090129c
SDJ
57652017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5766 Pedro Alves <palves@redhat.com>
5767
5768 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5769 and "nat/fork-inferior.h".
5770 * common/common-inferior.h: New file, with contents from
5771 "gdb/inferior.h".
5772 * commom/common-utils.c: Include "common-utils.h".
5773 (stringify_argv): New function.
5774 * common/common-utils.h (stringify_argv): New prototype.
5775 * configure.nat: Add "fork-inferior.o" as a dependency for
5776 "*linux*", "fbsd*" and "nbsd*" hosts.
5777 * corefile.c (get_exec_file): Update comment.
5778 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5779 instead of "startup_inferior".
5780 (darwin_create_inferior): Call "add_thread_silent" after
5781 "fork_inferior".
5782 * fork-child.c: Cleanup unnecessary includes.
5783 (SHELL_FILE): Move to "common/common-fork-child.c".
5784 (environ): Likewise.
5785 (exec_wrapper): Initialize.
5786 (get_exec_wrapper): New function.
5787 (breakup_args): Move to "common/common-fork-child.c"; rename to
5788 "breakup_args_for_exec".
5789 (escape_bang_in_quoted_argument): Move to
5790 "common/common-fork-child.c".
5791 (saved_ui): New variable.
5792 (prefork_hook): New function.
5793 (postfork_hook): Likewise.
5794 (postfork_child_hook): Likewise.
5795 (gdb_startup_inferior): Likewise.
5796 (fork_inferior): Move to "common/common-fork-child.c". Update
5797 function to support gdbserver.
5798 (startup_inferior): Likewise.
5799 * gdbcore.h (get_exec_file): Remove declaration.
5800 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5801 instead of "startup_inferior". Call "add_thread_silent" after
5802 "fork_inferior".
5803 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5804 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5805 instead of "startup_inferior". Call "add_thread_silent" after
5806 "fork_inferior".
5807 * inferior.h: Include "common-inferior.h".
5808 (trace_start_error): Move to "common/common-utils.h".
5809 (trace_start_error_with_name): Likewise.
5810 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5811 (startup_inferior): Likewise.
5812 (gdb_startup_inferior): New prototype.
5813 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5814 * nat/fork-inferior.h: New file.
5815 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5816 instead of "startup_inferior". Call "add_thread_silent" after
5817 "fork_inferior".
5818 * target.h (target_terminal_init): Move prototype to
5819 "target/target.h".
5820 (target_terminal_inferior): Likewise.
5821 (target_terminal_ours): Likewise.
5822 * target/target.h (target_terminal_init): New prototype, moved
5823 from "target.h".
5824 (target_terminal_inferior): Likewise.
5825 (target_terminal_ours): Likewise.
5826 * utils.c (gdb_flush_out_err): New function.
5827
043a4934
SDJ
58282017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5829
5830 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5831 * common/common-gdbthread.h: New file, with parts from
5832 "gdb/gdbthread.h".
5833 * gdbthread.h: Include "common-gdbthread.h".
5834 (switch_to_thread): Moved to "common/common-gdbthread.h".
5835
15652511
SDJ
58362017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5837
5838 * Makefile.in (SFILES): Add "common/job-control.c".
5839 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5840 (COMMON_OBS): Add "job-control.o".
5841 * common/job-control.c: New file, with contents from
5842 "gdb/inflow.c".
5843 * common/job-control.h: New file, with contents from "terminal.h".
5844 * fork-child.c: Include "job-control.h".
5845 * inflow.c: Include "job-control.h".
5846 (gdb_setpgid): Move to "common/common-inflow.c".
5847 (_initialize_inflow): Move setting of "job_control" to
5848 "handle_job_control".
5849 * terminal.h (job_control): Moved to "common/common-terminal.h".
5850 (gdb_setpgid): Likewise.
5851 * top.c: Include "job_control.h".
5852 * utils.c: Likewise.
5853 (job_control): Moved to "job-control.c".
5854
2d7cc5c7
PA
58552017-06-07 Pedro Alves <palves@redhat.com>
5856
5857 * Makefile.in (SFILES): Add gdb_regex.c.
5858 (COMMON_OBS): Add gdb_regex.o.
5859 * ada-lang.c (ada_add_standard_exceptions)
5860 (ada_add_exceptions_from_frame, name_matches_regex)
5861 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5862 parameter type to compiled_regex. Adjust.
5863 (ada_exceptions_list): Use compiled_regex.
5864 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5865 std::unique_ptr<compiled_regex>.
5866 (exception_catchpoint::~exception_catchpoint): Remove regfree
5867 call.
5868 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5869 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5870 * breakpoint.c (solib_catchpoint::compiled): Now a
5871 std::unique_ptr<compiled_regex>.
5872 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5873 (check_status_catch_solib): Adjust to use compiled_regex.
5874 (add_solib_catchpoint): Adjust to use compiled_regex.
5875 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5876 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5877 compiled_regex reference. Adjust to use it.
5878 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5879 declaration. Include "gdb_regex.h".
5880 (apropos_cmd): Change regex parameter to compiled_regex reference.
5881 * gdb_regex.c: New file.
5882 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5883 declarations.
5884 (class compiled_regex): New.
5885 * linux-tdep.c: Include "common/gdb_optional.h".
5886 (struct mapping_regexes): New, factored out from
5887 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5888 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5889 gdb::optional and remove cleanups. Adjust to compiled_regex.
5890 * probe.c: Include "common/gdb_optional.h".
5891 (collect_probes): Use compiled_regex and gdb::optional and remove
5892 cleanups.
5893 * skip.c: Include "common/gdb_optional.h".
5894 (skiplist_entry::compiled_function_regexp): Now a
5895 gdb::optional<compiled_regex>.
5896 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5897 (free_skiplist_entry): Remove regfree call.
5898 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5899 compiled_regex and gdb::optional.
5900 * symtab.c: Include "common/gdb_optional.h".
5901 (search_symbols): Use compiled_regex and gdb::optional.
5902 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5903 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5904 to gdb_regex.c.
5905
50d6adef
AH
59062017-06-07 Alan Hayward <alan.hayward@arm.com>
5907
5908 * regcache.c (regcache::save): Avoid buffer use.
5909 (regcache::dump): Likewise.
5910
4a8a33c8
AH
59112017-06-07 Alan Hayward <alan.hayward@arm.com>
5912
5913 * sh-tdep.c (sh_pseudo_register_read): Remove
5914 MAX_REGISTER_SIZE.
5915 (sh_pseudo_register_write): Likewise.
5916 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5917 (sh64_pseudo_register_write): Likewise
5918
d1be909e
AH
59192017-06-07 Alan Hayward <alan.hayward@arm.com>
5920
5921 * aarch64-tdep.c (aarch64_store_return_value): Use
5922 V_REGISTER_SIZE.
5923 (aarch64_pseudo_read_value): Likewise.
5924 (aarch64_pseudo_write): Likewise.
5925
f4a65042
YQ
59262017-06-06 Yao Qi <yao.qi@linaro.org>
5927
5928 * regformats/regdef.h (set_register_cache): Remove the
5929 declaration.
5930
9f7fb0aa
AH
59312017-06-06 Alan Hayward <alan.hayward@arm.com>
5932
5933 * frame.c (frame_unwind_register_signed): Use
5934 frame_unwind_register_value.
5935
e1e01040
PA
59362017-06-06 Pedro Alves <palves@redhat.com>
5937
5938 PR breakpoints/21553
5939 * breakpoint.c (create_breakpoints_sal_default)
5940 (init_breakpoint_sal, create_breakpoint_sal): Use
5941 gdb::unique_xmalloc_ptr for string parameters.
5942 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5943 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5944 (base_breakpoint_create_breakpoints_sal)
5945 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5946 (strace_marker_create_breakpoints_sal)
5947 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5948 string parameters.
5949 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5950 gdb::unique_xmalloc_ptr for string parameters.
5951 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5952 parameters.
5953
fbe654c8
AH
59542017-06-06 Alan Hayward <alan.hayward@arm.com>
5955
5956 * alpha-tdep.c (alpha_register_to_value): Use
5957 get_frame_register_value.
5958 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5959
ae0d01d6
AH
59602017-06-06 Alan Hayward <alan.hayward@arm.com>
5961
5962 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5963 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5964 (ia64_value_to_register): Likewise.
5965 (ia64_extract_return_value): Likewise.
5966 (ia64_store_return_value): Likewise.
5967 (ia64_push_dummy_call): Likewise.
5968
49cf576c
JB
59692017-06-04 Joel Brobecker <brobecker@adacore.com>
5970
5971 GDB 8.0 released.
5972
26b6a6ab
SM
59732017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5974
5975 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5976
22827c51
SM
59772017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5978
5979 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5980 parameter.
5981 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5982
0e05cf3a
SM
59832017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5984
5985 * event-loop.c (poll_timers): Unallocate timer using delete
5986 instead of xfree.
5987
c1fc2657
SM
59882017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5989
5990 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5991 (struct breakpoint) <~breakpoint>: New.
5992 (struct watchpoint): Inherit from breakpoint.
5993 <~watchpoint>: New.
5994 <base>: Remove.
5995 (struct tracepoint): Inherit from breakpoint.
5996 <base>: Remove.
5997 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5998 (struct longjmp_breakpoint): Inherit from breakpoint.
5999 <~longjmp_breakpoint>: New.
6000 <base>: Remove.
6001 (new_breakpoint_from_type): Remove casts.
6002 (watchpoint_in_thread_scope): Remove reference to base field.
6003 (watchpoint_del_at_next_stop): Likewise.
6004 (update_watchpoint): Likewise.
6005 (watchpoint_check): Likewise.
6006 (bpstat_check_watchpoint): Likewise.
6007 (set_longjmp_breakpoint): Likewise.
6008 (struct fork_catchpoint): Inherit from breakpoint.
6009 <base>: Remove.
6010 (struct solib_catchpoint): Inherit from breakpoint.
6011 <~solib_catchpoint>: New.
6012 <base>: Remove.
6013 (dtor_catch_solib): Change to ...
6014 (solib_catchpoint::~solib_catchpoint): ... this.
6015 (breakpoint_hit_catch_solib): Remove reference to base field.
6016 (add_solib_catchpoint): Likewise.
6017 (create_fork_vfork_event_catchpoint): Likewise.
6018 (struct exec_catchpoint): Inherit from breakpoint.
6019 <~exec_catchpoint>: New.
6020 <base>: Remove.
6021 (dtor_catch_exec): Change to ...
6022 (exec_catchpoint::~exec_catchpoint): ... this.
6023 (dtor_watchpoint): Change to ...
6024 (watchpoint::~watchpoint): ... this.
6025 (watch_command_1): Remove reference to base field.
6026 (catch_exec_command_1): Likewise.
6027 (base_breakpoint_dtor): Change to ...
6028 (breakpoint::~breakpoint): ... this.
6029 (base_breakpoint_ops): Remove dtor field value.
6030 (longjmp_bkpt_dtor): Change to ...
6031 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6032 (strace_marker_create_breakpoints_sal): Remove reference to base
6033 field.
6034 (delete_breakpoint): Don't manually call breakpoint destructor.
6035 (create_tracepoint_from_upload): Remove reference to base field.
6036 (trace_pass_set_count): Likewise.
6037 (initialize_breakpoint_ops): Don't initialize
6038 momentary_breakpoint_ops, don't set dtors.
6039 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6040 <~ada_catchpoint>: New.
6041 <base>: Remove.
6042 (create_excep_cond_exprs): Remove reference to base field.
6043 (dtor_exception): Change to ...
6044 (ada_catchpoint::~ada_catchpoint): ... this.
6045 (dtor_catch_exception): Remove.
6046 (dtor_catch_exception_unhandled): Remove.
6047 (dtor_catch_assert): Remove.
6048 (create_ada_exception_catchpoint): Remove reference to base
6049 field.
6050 (initialize_ada_catchpoint_ops): Don't set dtors.
6051 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6052 breakpoint.
6053 <~signal_catchpoint>: New.
6054 <base>: Remove.
6055 (signal_catchpoint_dtor): Change to ...
6056 (signal_catchpoint::~signal_catchpoint): ... this.
6057 (create_signal_catchpoint): Remove reference to base field.
6058 (initialize_signal_catchpoint_ops): Don't set dtor.
6059 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6060 from breakpoint.
6061 <~syscall_catchpoint>: New.
6062 <base>: Remove.
6063 (dtor_catch_syscall): Change to ...
6064 (syscall_catchpoint::~syscall_catchpoint): ... this.
6065 (create_syscall_event_catchpoint): Remove reference to base
6066 field.
6067 (initialize_syscall_catchpoint_ops): Don't set dtor.
6068 * break-catch-throw.c (struct exception_catchpoint): Inherit
6069 from breakpoint.
6070 <~exception_catchpoint>: New.
6071 <base>: Remove.
6072 (dtor_exception_catchpoint): Change to ...
6073 (exception_catchpoint::~exception_catchpoint): ... this.
6074 (handle_gnu_v3_exceptions): Remove reference to base field.
6075 (initialize_throw_catchpoint_ops): Don't set dtor.
6076 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6077 field.
6078 * remote.c (remote_get_tracepoint_status): Likewise.
6079 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6080 * tracefile.c (tracefile_fetch_registers): Likewise.
6081 * tracepoint.c (actions_command): Likewise.
6082 (validate_actionline): Likewise.
6083 (tfind_1): Likewise.
6084 (get_traceframe_location): Likewise.
6085 (find_matching_tracepoint_location): Likewise.
6086 (parse_tracepoint_status): Likewise.
6087 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6088
3b0871f4
SM
60892017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6090
6091 * breakpoint.c (struct longjmp_breakpoint): New struct.
6092 (is_tracepoint_type): Change return type to bool.
6093 (is_longjmp_type): New function.
6094 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6095 (set_raw_breakpoint_without_location): Use
6096 new_breakpoint_from_type.
6097 (set_raw_breakpoint): Likewise.
6098
a5e364af
SM
60992017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6100
6101 * breakpoint.c (new_breakpoint_from_type): New function.
6102 (create_breakpoint_sal): Use new_breakpoint_from_type and
6103 unique_ptr.
6104 (create_breakpoint): Likewise.
6105
ae3b3f34
SM
61062017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * memattr.c (mem_info_command): Rename to ...
6109 (info_mem_command): ... this.
6110 (mem_enable_command): Rename to ...
6111 (enable_mem_command): ... this.
6112 (mem_disable_command): Rename to ...
6113 (disable_mem_command): ... this.
6114 (mem_delete_command): Rename to ...
6115 (delete_mem_command): ... this.
6116 (_initialize_mem): Adjust function names.
6117
13ace077
MM
61182017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6119
6120 * btrace.c (handle_pt_insn_events): New.
6121 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6122 STATUS. Split into this and ...
6123 (handle_pt_insn_event_flags): ... this.
6124
c56ccc05
MM
61252017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6126
6127 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6128 and struct pt_insn.resynced.
6129 * configure: Regenerated.
6130 * config.in: Regenerated.
6131
08c3f6d2
TW
61322017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6133
6134 * btrace.c (ftrace_find_call_by_number): New function.
6135 (ftrace_new_function): Store objects, not pointers.
6136 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6137 ftrace_new_gap, ftrace_update_function,
6138 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6139 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6140 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6141 btrace_ends_with_single_insn, btrace_call_get): Account for
6142 btrace_thread_info::functions now storing objects.
6143 * btrace.h (struct btrace_thread_info): Add constructor.
6144 (struct btrace_thread_info) <functions>: Make std::vector.
6145 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6146 Initialize with default values.
6147 * record-btrace.c (record_btrace_frame_sniffer): Account for
6148 btrace_thread_info::functions now storing objects.
6149
8ffd39f2
TW
61502017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6151
6152 * btrace.c: Remove typedef bfun_s.
6153 (ftrace_new_gap): Directly add gaps to the list of gaps.
6154 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6155 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6156 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6157 instead of gdb VEC.
6158
4aeb0dfc
TW
61592017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6160
6161 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6162 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6163 with btrace_thread_info::next_segment and
6164 btrace_thread_info::prev_segment.
6165 * btrace.h: Remove struct btrace_func_link.
6166 (struct btrace_function): Replace pair of function segment pointers
6167 with pair of indices.
6168 * python/py-record-btrace.c (btpy_call_prev_sibling,
6169 btpy_call_next_sibling): Replace references to
6170 btrace_thread_info::segment with btrace_thread_info::next_segment and
6171 btrace_thread_info::prev_segment.
6172 * record-btrace.c (record_btrace_frame_this_id): Use
6173 btrace_find_call_by_number.
6174
eb8f2b9c
TW
61752017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6176
6177 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6178 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6179 btrace_insn_next, btrace_insn_prev): Remove references to
6180 btrace_thread_info::flow.
6181 * btrace.h (struct btrace_function): Remove FLOW.
6182
42bfe59e
TW
61832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6184
6185 * btrace.c (ftrace_find_call_by_number): New function.
6186 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6187 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6188 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6189 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6190 index.
6191 * btrace.h (struct btrace_function): Turn UP into an index.
6192 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6193 as an index.
6194 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6195 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6196 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6197
b54b03bd
TW
61982017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6199
6200 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6201 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6202 ftrace_update_function, ftrace_compute_global_level_offset,
6203 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6204 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6205 btrace_insn_end, btrace_is_empty): Remove references to
6206 btrace_thread_info::begin and btrace_thread_info::end.
6207 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6208 (struct btrace_thread_info) <functions>: Adjust comment.
6209 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6210 btrace_thread_info::begin.
6211
8286623c
TW
62122017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6213
6214 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6215 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6216 ftrace_update_function): Remove arguments that implicitly were always
6217 BTINFO->END.
6218 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6219 Don't pass BTINFO->END.
6220
a0f1b963
TW
62212017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6222
6223 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6224 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6225 btrace_find_insn_by_number): Replace function segment pointer with
6226 index.
6227 (btrace_insn_cmp): Simplify.
6228 * btrace.h: (struct btrace_insn_iterator) Rename index to
6229 insn_index. Replace function segment pointer with index into function
6230 segment vector.
6231 * record-btrace.c (record_btrace_call_history): Replace function
6232 segment pointer use with index.
6233 (record_btrace_frame_sniffer): Retrieve function call segment through
6234 vector.
6235 (record_btrace_set_replay): Remove defunc't safety check.
6236
f158f208
TW
62372017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6238
6239 * btrace.c (btrace_ends_with_single_insn): New function.
6240 (btrace_call_get, btrace_call_number, btrace_call_begin,
6241 btrace_call_end, btrace_call_next, btrace_call_prev,
6242 btrace_find_call_by_number): Use index into call segment vector
6243 instead of pointer.
6244 (btrace_call_cmp): Simplify.
6245 * btrace.h (struct btrace_call_iterator): Replace function call segment
6246 pointer with index into vector.
6247 * record-btrace.c (record_btrace_call_history): Use index instead of
6248 pointer.
6249
521103fd
TW
62502017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6251
6252 * btrace.c (btrace_insn_begin, btrace_insn_end,
6253 btrace_find_insn_by_number): Add btinfo to iterator.
6254 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6255
17b89b34
TW
62562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6257
6258 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6259 and save pointers directly.
6260 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6261 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6262 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6263 changed signature of functions.
6264 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6265 (btrace_fetch): Remove code that adds btrace_function pointers to
6266 vector of btrace_functions.
6267 (btrace_clear): Simplify freeing vector of btrace_functions.
6268
2b51eddc
TW
62692017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6270
6271 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6272 Replace VEC_* with std::vector functions.
6273 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6274 (struct btrace_thread_info)<functions>: Change type to std::vector.
6275
db6be0d5
SM
62762017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6277
6278 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6279 "Removed targets and native configurations" up. Merge duplicate
6280 "New commands" sub-sections. Add "New options" sub-sections.
6281
b057297a
AH
62822017-05-26 Alan Hayward <alan.hayward@arm.com>
6283
6284 * defs.h (copy_integer_to_size): New declaration.
6285 * findvar.c (copy_integer_to_size): New function.
6286 (do_cint_test): New selftest function.
6287 (copy_integer_to_size_test): Likewise.
6288 (_initialize_findvar): Likewise.
6289 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6290 (mips_fbsd_collect_reg): Use raw_collect_integer.
6291 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6292 (mips64_fill_gregset): Use raw_collect_integer
6293 (mips64_fill_fpregset): Use raw_supply_integer.
6294 * regcache.c (regcache::raw_supply_integer): New function.
6295 (regcache::raw_collect_integer): Likewise.
6296 * regcache.h: (regcache::raw_supply_integer): New declaration.
6297 (regcache::raw_collect_integer): Likewise.
6298
b77b02a5
YQ
62992017-05-24 Yao Qi <yao.qi@linaro.org>
6300
6301 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6302 (COMMON_OBS): Add gdbarch-selftests.o.
6303 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6304 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6305 * gdbarch-selftests.c: New file.
6306 * regcache.h (regcache) <~regcache>: Mark it virtual if
6307 GDB_SELF_TEST.
6308 <raw_write>: Likewise.
6309
e521e87e
YQ
63102017-05-24 Yao Qi <yao.qi@linaro.org>
6311
6312 * regcache.c (current_regcache): Change it to
6313 regcache::current_regcache.
6314 (regcache_observer_target_changed): Update.
6315 (regcache_thread_ptid_changed): Make it a regcache static
6316 method.
6317 (regcache_thread_ptid_changed): Update.
6318 (class regcache_access): New.
6319 (current_regcache_test): Update.
6320 (_initialize_regcache): Update.
6321 * regcache.h: Include forward_list.
6322 (regcache): Declare regcache_thread_ptid_changed and declare
6323 registers_changed_ptid as friend.
6324
d8e07dda
YQ
63252017-05-24 Yao Qi <yao.qi@linaro.org>
6326
6327 * i387-tdep.c (i387_register_to_value): Use register_size
6328 instead of TYPE_LENGTH.
6329 * m68k-tdep.c (m68k_register_to_value): Likewise.
6330
8c8f9122
YQ
63312017-05-24 Yao Qi <yao.qi@linaro.org>
6332
6333 * i387-tdep.c (i387_convert_register_p): Return false if type
6334 code isn't TYPE_CODE_FLT.
6335
68fce50f
YQ
63362017-05-24 Yao Qi <yao.qi@linaro.org>
6337
6338 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6339 length is 4.
6340 (alpha_register_to_value): Remove type length check.
6341 (alpha_value_to_register): Likewise.
6342
88954b49
YQ
63432017-05-24 Yao Qi <yao.qi@linaro.org>
6344
6345 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6346 TYPE_CODE_FLT.
6347
e3ec9b69
YQ
63482017-05-24 Yao Qi <yao.qi@linaro.org>
6349
6350 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6351 TYPE_CODE_FLT or not.
6352
cdd238da
YQ
63532017-05-24 Yao Qi <yao.qi@linaro.org>
6354
6355 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6356 * avr-tdep.c (avr_gdbarch_init): Likewise.
6357 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6358 * cris-tdep.c (cris_gdbarch_init): Likewise.
6359 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6360 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6361 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6363 * mep-tdep.c (mep_gdbarch_init): Likewise.
6364 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6365 * mips-tdep.c (mips_gdbarch_init): Likewise.
6366 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6367 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6368 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6369 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6370 * v850-tdep.c (v850_gdbarch_init): Likewise.
6371
7a3929c4
YQ
63722017-05-24 Yao Qi <yao.qi@linaro.org>
6373
6374 * selftest-arch.c (tests_with_arch): Call registers_changed
6375 and reinit_frame_cache.
6376 * selftest.c (run_self_tests): Likewise.
6377
f4985dba
YQ
63782017-05-24 Yao Qi <yao.qi@linaro.org>
6379
6380 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6381 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6382
ab20fa4a
YQ
63832017-05-24 Yao Qi <yao.qi@linaro.org>
6384
6385 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6386 set_gdbarch_print_insn.
6387
f532ab94
YQ
63882017-05-24 Yao Qi <yao.qi@linaro.org>
6389
6390 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6391 set_gdbarch_print_insn.
6392
39503f82
YQ
63932017-05-24 Yao Qi <yao.qi@linaro.org>
6394
6395 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6396 set_gdbarch_print_insn.
6397 * arc-tdep.c (arc_gdbarch_init): Likewise.
6398 * arch-utils.c: include dis-asm.h.
6399 (default_print_insn): New function.
6400 * arch-utils.h (default_print_insn): Declare.
6401 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6402 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6403 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6404 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6405 * frv-tdep.c (frv_gdbarch_init): Likewise.
6406 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6407 * gdbarch.sh (print_insn): Use default_print_insn.
6408 * gdbarch.c: Regenerated.
6409 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6410 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6411 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6412 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6413 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6414 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6415 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6416 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6417 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6418 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6419 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6420 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6421 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6422 * mt-tdep.c (mt_gdbarch_init): Likewise.
6423 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6424 * nios2-tdep.c (nios2_print_insn): Remove.
6425 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6426 * rx-tdep.c (rx_gdbarch_init): Likewise.
6427 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6428 * score-tdep.c (score_print_insn): Remove.
6429 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6430 * sh-tdep.c (sh_gdbarch_init): Likewise.
6431 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6432 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6433 * tic6x-tdep.c (tic6x_print_insn): Remove.
6434 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6435 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6436 * v850-tdep.c (v850_gdbarch_init): Likewise.
6437 * vax-tdep.c (vax_gdbarch_init): Likewise.
6438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6439 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6440
f7241d4f
JB
64412017-05-23 John Baldwin <jhb@FreeBSD.org>
6442
6443 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6444 (MIPS_FP0_REGNUM): Remove.
6445 (MIPS_FSR_REGNUM): Remove.
6446 (mips_fbsd_supply_fpregs): Use mips_regnum.
6447 (mips_fbsd_supply_gregs): Likewise.
6448 (mips_fbsd_collect_fpregs): Likewise.
6449 (mips_fbsd_collect_gregs): Likewise.
6450
d489d81d
JB
64512017-05-23 John Baldwin <jhb@FreeBSD.org>
6452
6453 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6454 (getpfpregs_supplies): New function.
6455 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6456 getfpregs_supplies.
6457 (mips_fbsd_store_inferior_registers): Likewise.
6458
e11b3cdc
PA
64592017-05-22 Pedro Alves <palves@redhat.com>
6460
6461 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6462 maintainer.
6463
0f068fb5
AH
64642017-05-22 Alan Hayward <alan.hayward@arm.com>
6465
6466 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6467 (store_register): Likewise.
6468 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6469 (get_decimal_float_return_value): Likewise.
6470 (do_ppc_sysv_return_value): Likewise.
6471 (ppc64_sysv_abi_push_integer): Likewise.
6472 (ppc64_sysv_abi_push_freg): Likewise.
6473 (ppc64_sysv_abi_return_value_base): Likewise.
6474 (ppc64_sysv_abi_return_value): Likewise.
6475 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6476 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6477 * rs6000-nat.c: Likewise.
6478 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6479 (rs6000_value_to_register): Likewise.
6480 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6481
e6cf65f2
TT
64822017-05-21 Tom Tromey <tom@tromey.com>
6483
6484 PR rust/21466:
6485 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6486 arrays as "[T]", not "[T; ]".
6487
43cc5389
TT
64882017-05-19 Tom Tromey <tom@tromey.com>
6489
6490 PR rust/21484:
6491 * rust-lang.c (exp_descriptor_rust): New function.
6492 (rust_language_defn): Use it.
6493 * p-lang.c (pascal_language_defn): Update.
6494 * opencl-lang.c (opencl_language_defn): Update.
6495 * objc-lang.c (objc_language_defn): Update.
6496 * m2-lang.c (m2_language_defn): Update.
6497 * language.h (struct language_defn)
6498 <la_watch_location_expression>: New member.
6499 * language.c (unknown_language_defn, auto_language_defn)
6500 (local_language_defn): Update.
6501 * go-lang.c (go_language_defn): Update.
6502 * f-lang.c (f_language_defn): Update.
6503 * d-lang.c (d_language_defn): Update.
6504 * c-lang.h (c_watch_location_expression): Declare.
6505 * c-lang.c (c_watch_location_expression): New function.
6506 (c_language_defn, cplus_language_defn, asm_language_defn)
6507 (minimal_language_defn): Use it.
6508 * breakpoint.c (watch_command_1): Call
6509 la_watch_location_expression.
6510 * ada-lang.c (ada_language_defn): Update.
6511
7a6e7fcc
RO
65122017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6513
6e7e1744
RO
6514 PR tui/21482
6515 * gdb_curses.h (NOMACROS): Define.
6516 (NCURSES_NOMACROS): Define.
6517
65182017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6519
6520 PR tui/21482
7a6e7fcc
RO
6521 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6522 arg to char *.
6523 * tui/tui-wingeneral.c (box_win): Likewise.
6524 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6525 (tui_show_source_line): Likewise.
6526 (tui_show_exec_info_content): Likewise.
6527
1933fd8e
VM
65282017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6529
6530 * sparc-tdep.c (sparc_structure_return_p)
6531 (sparc_arg_on_registers_p): New functions.
6532 (sparc32_store_arguments): Use them.
6533 * sparc64-tdep.c (sparc64_16_byte_align_p)
6534 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6535 Handle TYPE_CODE_ARRAY.
6536
21873064
YQ
65372017-05-17 Yao Qi <yao.qi@linaro.org>
6538
6539 * cli/cli-decode.c (add_alias_cmd): New function.
6540 * command.h (add_alias_cmd): Declare.
6541 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6542 instead call add_alias_cmd.
6543
2b351b19
PA
65442017-05-17 Pedro Alves <palves@redhat.com>
6545
6546 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6547 (nat_makefile_frag): ... this. All references updated.
6548 * configure.ac: Likewise.
6549 * configure.nat: Likewise. Enhance comments.
6550 * configure: Regenerate.
6551
5f2ad7a3
RO
65522017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6553
6554 * procfs.c (procfs_create_inferior): Change prototype to match
6555 definition.
6556
adf3dde5
EZ
65572017-05-13 Eli Zaretskii <eliz@gnu.org>
6558
6559 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6560 C++ compiler warning.
6561
6830f270
TT
65622017-05-12 Tom Tromey <tom@tromey.com>
6563
6564 PR rust/21483:
6565 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6566 recurse, just call value_struct_elt directly.
6567
68f2f2e3
TT
65682017-05-12 Tom Tromey <tom@tromey.com>
6569
6570 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6571 OP_RUST_ARRAY>: Fix.
6572
256afbc2
TT
65732017-05-12 Tom Tromey <tom@tromey.com>
6574
6575 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6576
94bb8dfe
YQ
65772017-05-09 Yao Qi <yao.qi@linaro.org>
6578
6579 * regcache.c: Include <forward_list>.
6580 (struct regcache_list): Remove.
6581 (current_regcache): Update.
6582 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6583 (regcache_thread_ptid_changed): Likewise.
6584 (registers_changed_ptid): Likewise.
6585 (current_regcache_size): Likewise.
6586
8248946c
YQ
65872017-05-09 Yao Qi <yao.qi@linaro.org>
6588
6589 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6590 (current_regcache_size): New function.
6591 (current_regcache_test): New function.
6592 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6593
313c5961
AH
65942017-05-08 Alan Hayward <alan.hayward@arm.com>
6595
6596 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6597 (print_gp_register_row): Use get_frame_register_value.
6598
27bfc1d1
AH
65992017-05-08 Alan Hayward <alan.hayward@arm.com>
6600
6601 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6602 (mips_supply_fpregset): Likewise.
6603 (mips64_supply_gregset): Likewise.
6604
146e6c5c
AH
66052017-05-08 Alan Hayward <alan.hayward@arm.com>
6606
6607 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6608 regcache->raw_supply_zeroed.
6609
e50f25ec
SDJ
66102017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6611
6612 * configure.nat: Rearrange 'case' statements to match
6613 host before cpu.
6614
21ea5acd
SDJ
66152017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6616
6617 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6618 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6619 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6620 "@nat_extra_makefile_frag@".
6621 (Makefile): Remove dependency on "@frags@".
6622 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6623 (data-directory/Makefile): Likewise.
6624 * config/aarch64/linux.mh: Deleted; moved contents to
6625 "gdb/configure.nat".
6626 * config/alpha/alpha-linux.mh: Likewise.
6627 * config/alpha/nbsd.mh: Likewise.
6628 * config/arm/linux.mh: Likewise.
6629 * config/arm/nbsdelf.mh: Likewise.
6630 * config/i386/cygwin.mh: Likewise.
6631 * config/i386/cygwin64.mh: Likewise.
6632 * config/i386/darwin.mh: Likewise.
6633 * config/i386/fbsd.mh: Likewise.
6634 * config/i386/fbsd64.mh: Likewise.
6635 * config/i386/go32.mh: Likewise.
6636 * config/i386/i386gnu.mh: Likewise.
6637 * config/i386/i386sol2.mh: Likewise.
6638 * config/i386/linux.mh: Likewise.
6639 * config/i386/linux64.mh: Likewise.
6640 * config/i386/mingw.mh: Likewise.
6641 * config/i386/mingw64.mh: Likewise.
6642 * config/i386/nbsd64.mh: Likewise.
6643 * config/i386/nbsdelf.mh: Likewise.
6644 * config/i386/nto.mh: Likewise.
6645 * config/i386/obsd.mh: Likewise.
6646 * config/i386/obsd64.mh: Likewise.
6647 * config/i386/sol2-64.mh: Likewise.
6648 * config/ia64/linux.mh: Likewise.
6649 * config/m32r/linux.mh: Likewise.
6650 * config/m68k/linux.mh: Likewise.
6651 * config/m68k/nbsdelf.mh: Likewise.
6652 * config/m68k/obsd.mh: Likewise.
6653 * config/m88k/obsd.mh: Likewise.
6654 * config/mips/fbsd.mh: Likewise.
6655 * config/mips/linux.mh: Likewise.
6656 * config/mips/nbsd.mh: Likewise.
6657 * config/mips/obsd64.mh: Likewise.
6658 * config/pa/linux.mh: Likewise.
6659 * config/pa/nbsd.mh: Likewise.
6660 * config/pa/obsd.mh: Likewise.
6661 * config/powerpc/aix.mh: Likewise.
6662 * config/powerpc/fbsd.mh: Likewise.
6663 * config/powerpc/linux.mh: Likewise.
6664 * config/powerpc/nbsd.mh: Likewise.
6665 * config/powerpc/obsd.mh: Likewise.
6666 * config/powerpc/ppc64-linux.mh: Likewise.
6667 * config/powerpc/spu-linux.mh: Likewise.
6668 * config/s390/linux.mh: Likewise.
6669 * config/sh/nbsd.mh: Likewise.
6670 * config/sparc/fbsd.mh: Likewise.
6671 * config/sparc/linux.mh: Likewise.
6672 * config/sparc/linux64.mh: Likewise.
6673 * config/sparc/nbsd64.mh: Likewise.
6674 * config/sparc/nbsdelf.mh: Likewise.
6675 * config/sparc/obsd64.mh: Likewise.
6676 * config/sparc/sol2.mh: Likewise.
6677 * config/tilegx/linux.mh: Likewise.
6678 * config/vax/nbsdelf.mh: Likewise.
6679 * config/vax/obsd.mh: Likewise.
6680 * config/xtensa/linux.mh: Likewise.
6681 * config/i386/i386gnu.mn: New file, with excerpts from
6682 "config/i386/i386gnu.mh".
6683 * configure: Regenerate.
6684 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6685 *.mh files under "gdb/config".
6686 * configure.nat: New file, with contents from the
6687 "gdb/config/*/*.mh" files.
6688
7ed1acaf
TW
66892017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6690
6691 * btrace.c (btrace_clear): Free insn vector.
6692
e13cb306
PA
66932017-05-05 Pedro Alves <palves@redhat.com>
6694
6695 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6696 * configure: Regenerate.
6697
5ed8105e
PA
66982017-05-04 Pedro Alves <palves@redhat.com>
6699
6700 * Makefile.in (SFILES): Add progspace-and-thread.c.
6701 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6702 (COMMON_OBS): Add progspace-and-thread.o.
6703 * breakpoint.c: Include "progspace-and-thread.h".
6704 (update_inserted_breakpoint_locations)
6705 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6706 Use scoped_restore_current_pspace_and_thread.
6707 (create_std_terminate_master_breakpoint): Use
6708 scoped_restore_current_program_space.
6709 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6710 (print_breakpoint_location): Use
6711 scoped_restore_current_program_space.
6712 (bp_loc_is_permanent): Use
6713 scoped_restore_current_pspace_and_thread.
6714 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6715 (download_tracepoint_locations): Use
6716 scoped_restore_current_pspace_and_thread.
6717 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6718 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6719 (enum step_over_calls_kind): Moved from inferior.h.
6720 (class scoped_restore_current_thread): New class.
6721 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6722 declaration.
6723 (scoped_restore_current_thread): New class.
6724 * infcmd.c: Include "common/gdb_optional.h".
6725 (continue_1, proceed_after_attach): Use
6726 scoped_restore_current_thread.
6727 (notice_new_inferior): Use scoped_restore_current_thread.
6728 * inferior.c: Include "progspace-and-thread.h".
6729 (restore_inferior, save_current_inferior): Delete.
6730 (add_inferior_command, clone_inferior_command): Use
6731 scoped_restore_current_pspace_and_thread.
6732 * inferior.h (scoped_restore_current_inferior): New class.
6733 * infrun.c: Include "progspace-and-thread.h" and
6734 "common/gdb_optional.h".
6735 (follow_fork_inferior): Use
6736 scoped_restore_current_pspace_and_thread.
6737 (scoped_restore_exited_inferior): New class.
6738 (handle_vfork_child_exec_or_exit): Use
6739 scoped_restore_exited_inferior,
6740 scoped_restore_current_pspace_and_thread,
6741 scoped_restore_current_thread and scoped_restore.
6742 (fetch_inferior_event): Use scoped_restore_current_thread.
6743 * linespec.c (decode_line_full, decode_line_1): Use
6744 scoped_restore_current_program_space.
6745 * mi/mi-main.c: Include "progspace-and-thread.h".
6746 (exec_continue): Use scoped_restore_current_thread.
6747 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6748 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6749 * proc-service.c (ps_pglobal_lookup): Use
6750 scoped_restore_current_program_space.
6751 * progspace-and-thread.c: New file.
6752 * progspace-and-thread.h: New file.
6753 * progspace.c (release_program_space, clone_program_space): Use
6754 scoped_restore_current_program_space.
6755 (restore_program_space, save_current_program_space)
6756 (save_current_space_and_thread): Delete.
6757 (switch_to_program_space_and_thread): Moved to
6758 progspace-and-thread.c.
6759 * progspace.h (save_current_program_space)
6760 (save_current_space_and_thread): Delete declarations.
6761 (scoped_restore_current_program_space): New class.
6762 * remote.c (remote_btrace_maybe_reopen): Use
6763 scoped_restore_current_thread.
6764 * symtab.c: Include "progspace-and-thread.h".
6765 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6766 * thread.c (print_thread_info_1): Use
6767 scoped_restore_current_thread.
6768 (struct current_thread_cleanup): Delete.
6769 (do_restore_current_thread_cleanup)
6770 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6771 (scoped_restore_current_thread::~scoped_restore_current_thread):
6772 ... this new dtor.
6773 (make_cleanup_restore_current_thread): Rename/convert to ...
6774 (scoped_restore_current_thread::scoped_restore_current_thread):
6775 ... this new ctor.
6776 (thread_apply_all_command): Use scoped_restore_current_thread.
6777 (thread_apply_command): Use scoped_restore_current_thread.
6778 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6779 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6780
f6223dbb
PA
67812017-05-04 Pedro Alves <palves@redhat.com>
6782
6783 * thread.c (make_cleanup_restore_current_thread): Move
6784 find_thread_ptid call before the is_stopped call. Assert that the
6785 thread is found. Replace is_stopped call by checking the thread's
6786 state directly. Remove unnecessary NULL-thread check.
6787
3c3ae77e
PA
67882017-05-04 Pedro Alves <palves@redhat.com>
6789
6790 * corelow.c (thread_section_name): New class.
6791 (get_core_register_section, get_core_siginfo): Use it.
6792
45eba0ab
AA
67932017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6794
6795 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6796 (get_core_register_section): Remove xfree of NULL pointer.
6797
f81fdd35
AH
67982017-05-03 Alan Hayward <alan.hayward@arm.com>
6799
6800 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6801 * regcache.c (regcache::raw_supply_zeroed): New function.
6802 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6803
35837774
SM
68042017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6805
6806 * gdbarch.sh: Remove commented out definition of
6807 TARGET_CHAR_BIT.
6808 * gdbarch.h: Re-generate.
6809
c94fee56
SDJ
68102017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6811
6812 * configure: Regenerate.
6813
d17f7b36
SM
68142017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6815
6816 * solib-target.c (solib_target_relocate_section_addresses):
6817 Remove num_section_bases, num_bases, segment_bases variables.
6818
b560ebd6
SM
68192017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6820
6821 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6822
f2f46dfc
SM
68232017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6824
6825 * solib-target.c: Include <vector>
6826 (struct lm_info_target) <~lm_info_target>: Remove.
6827 <segment_bases, section_bases>: Change type to
6828 std::vector<CORE_ADDR>.
6829 (library_list_start_segment, library_list_start_section,
6830 library_list_end_library,
6831 solib_target_relocate_section_addresses): Adjust.
6832
a0ff9e1a
SM
68332017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6834
6835 * gdbarch.sh (software_single_step): Change return type to
6836 std::vector<CORE_ADDR>.
6837 * gdbarch.c, gdbarch.h: Re-generate.
6838 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6839 Adjust.
6840 (arm_deal_with_atomic_sequence_raw): Adjust.
6841 (thumb_get_next_pcs_raw): Adjust.
6842 (arm_get_next_pcs_raw): Adjust.
6843 (arm_get_next_pcs): Adjust.
6844 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6845 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6846 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6847 (alpha_software_single_step): Adjust.
6848 * alpha-tdep.h (alpha_software_single_step): Adjust.
6849 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6850 * arm-tdep.c (arm_software_single_step): Adjust.
6851 (arm_breakpoint_kind_from_current_state): Adjust.
6852 * arm-tdep.h (arm_software_single_step): Adjust.
6853 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6854 * cris-tdep.c (cris_software_single_step): Adjust.
6855 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6856 (micromips_deal_with_atomic_sequence): Adjust.
6857 (deal_with_atomic_sequence): Adjust.
6858 (mips_software_single_step): Adjust.
6859 * mips-tdep.h (mips_software_single_step): Adjust.
6860 * moxie-tdep.c (moxie_software_single_step): Adjust.
6861 * nios2-tdep.c (nios2_software_single_step): Adjust.
6862 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6863 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6864 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6865 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6866 * sparc-tdep.c (sparc_software_single_step): Adjust.
6867 * spu-tdep.c (spu_software_single_step): Adjust.
6868 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6869
ea480a30
SM
68702017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6871
6872 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6873 * gdbarch.h: Re-generate.
6874
d050f7d7
TW
68752017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6876
6877 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6878 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6879 * python/py-instruction.c, python/py-instruction.h: New file.
6880 * python/py-record.c: Add py-instruction.h include.
6881 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6882 gdb.RecordInstruction.
6883 * python/python-internal.h: Add gdbpy_initialize_instruction
6884 declaration.
6885 * python/python.c (do_start_initialization): Add
6886 gdbpy_initialize_instruction.
6887
14f819c8
TW
68882017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6889
6890 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6891 Remove.
6892 (btrace_func_from_recpy_func): New function.
6893 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6894 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6895 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6896 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6897 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6898 Also, use new helper functions.
6899 (btpy_list_item): Use new helper functions.
6900 (recpy_bt_function_call_history): Use new type name.
6901 (btpy_call_getset): Remove.
6902 (gdbpy_initialize_btrace): Remove code to initialize
6903 gdb.BtraceFunctionCall.
6904 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6905 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6906 recpy_bt_func_prev, recpy_bt_func_next): New export.
6907 * python/py-record.c (recpy_func_type): New static object.
6908 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6909 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6910 recpy_func_next): New function.
6911 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6912 (recpy_func_getset): New static object.
6913 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6914 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6915
0ed5da75
TW
69162017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6917
6918 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6919 (btpy_object, btpy_insn_type, btpy_new): Remove.
6920 (btpy_list_object): Use gdb.RecordInstruction type instead of
6921 gdb.BtraceInstruction type.
6922 (btrace_insn_from_recpy_insn): New function.
6923 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6924 btpy_new.
6925 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6926 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6927 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6928 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6929 instead of btpy_object.
6930 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6931 btpy_insn_data, btpy_insn_decode): Rename to ...
6932 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6933 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6934 recpy_bt_insn_decode): This. Also, use new helper functions.
6935 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6936 recpy_insn_type.
6937 (btpy_insn_getset): Remove.
6938 (gdbpy_initialize_btrace): Remove code to initialize
6939 gdb.BtraceInstruction. Use recpy_element_object.
6940 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6941 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6942 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6943 * python/py-record.c (recpy_insn_type): New static object.
6944 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6945 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6946 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6947 New function.
6948 (recpy_insn_getset): New static object.
6949 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6950 * python/py-record.h (recpy_element_object): New typedef.
6951 (recpy_insn_type, recpy_insn_new): New export.
6952
913aeadd
TW
69532017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6954
6955 * py-record-btrace.c (btpy_insn_new): Removed.
6956 (btpy_insn_or_gap_new): New function.
6957 (btpy_insn_error): Removed.
6958 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6959 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6960 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6961 btpy_insn_or_gap_new instead of btpy_insn_new.
6962 (btpy_insn_getset): Remove btpy_insn_error.
6963 * py-record.c (recpy_gap_type): New static object.
6964 (recpy_gap_object): New typedef.
6965 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6966 recpy_gap_reason_string): New function.
6967 (recpy_gap_getset): New static object.
6968 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6969 * py-record.h (recpy_gap_new): New export.
6970
a3be24ad
TW
69712017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6972
6973 * python/py-record.c (recpy_ptid): Remove.
6974 (recpy_record_getset): Remove recpy_ptid.
6975
ae20e79a
TW
69762017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6977
6978 * btrace.c (btrace_fetch): Set inferior_ptid.
6979 * python/py-record-btrace.c: Add "py-record.h" include.
6980 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6981 recpy_bt_end, recpy_bt_instruction_history,
6982 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6983 in gdb.Record object instead of current ptid.
6984 * python/py-record.c: Include new "py-record.h" file.
6985 (recpy_record_object): Moved to py-record.h.
6986 * python/py-record.h: New file.
6987
8d0050ea
TW
69882017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6989
6990 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6991 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6992 indentation.
6993
3f380b50
JB
69942017-05-01 Joel Brobecker <brobecker@adacore.com>
6995
6996 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6997 the past maintainers section.
6998
07495424
YQ
69992017-04-28 Yao Qi <yao.qi@linaro.org>
7000
7001 * infcmd.c (get_return_value): Use regcache ctor, and remove
7002 cleanup.
7003
deb1fa3e
YQ
70042017-04-28 Yao Qi <yao.qi@linaro.org>
7005 Pedro Alves <palves@redhat.com>
7006
7007 * regcache.c (regcache::regcache): New tag dispatch ctor.
7008 (do_cooked_read): Moved above.
7009 (regcache_dup): Use the tag dispatch ctor..
7010 * regcache.h (regcache): Declare ctor, delete copy ctor and
7011 assignment operator, remove friend regcache_dup.
7012
b421c83c
YQ
70132017-04-28 Yao Qi <yao.qi@linaro.org>
7014
7015 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7016 call method save instead of regcache_cpy.
7017 * regcache.h (struct regcache): Make regcache_dup a friend.
7018
ef79d9a3
YQ
70192017-04-28 Yao Qi <yao.qi@linaro.org>
7020
7021 * regcache.c (struct regcache): Move to regcache.h
7022 (regcache::arch): New method.
7023 (regcache_get_ptid): Update.
7024 (get_regcache_arch): Call arch method.
7025 (get_regcache_aspace): Call method aspace.
7026 (register_buffer): Change it to method.
7027 (regcache_save): Change it to regcache::save.
7028 (regcache_restore): Likewise.
7029 (regcache_cpy_no_passthrough): Remove the declaration.
7030 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7031 (regcache_cpy_no_passthrough): Change it to method
7032 cpy_no_passthrough.
7033 (regcache_register_status): Change it to method
7034 get_register_status.
7035 (regcache_invalidate): Change it to method invalidate.
7036 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7037 (regcache_raw_update): Change it to method raw_update.
7038 (regcache_raw_read): Likewise.
7039 (regcache_raw_read_signed): Likewise.
7040 (regcache_raw_read_unsigned): Likewise.
7041 (regcache_raw_write_signed): Likewise.
7042 (regcache_raw_write_unsigned): Likewise.
7043 (regcache_cooked_read): Likewise.
7044 (regcache_cooked_read_value): Likewise.
7045 (regcache_cooked_read_signed): Likewise.
7046 (regcache_cooked_read_unsigned): Likewise.
7047 (regcache_cooked_write_signed): Likewise.
7048 (regcache_cooked_write_unsigned): Likewise.
7049 (regcache_raw_set_cached_value): Likewise.
7050 (regcache_raw_write): Likewise.
7051 (regcache_cooked_write): Likewise.
7052 (regcache_xfer_part): Likewise.
7053 (regcache_raw_read_part): Likewise.
7054 (regcache_raw_write_part): Likewise.
7055 (regcache_cooked_read_part): Likewise.
7056 (regcache_cooked_write_part): Likewise.
7057 (regcache_raw_supply): Likewise.
7058 (regcache_raw_collect): Likewise.
7059 (regcache_transfer_regset): Likewise.
7060 (regcache_supply_regset): Likewise.
7061 (regcache_collect_regset): Likewise.
7062 (regcache_debug_print_register): Likewise.
7063 (enum regcache_dump_what): Move it to regcache.h.
7064 (regcache_dump): Change it to method dump.
7065 * regcache.h (enum regcache_dump_what): New.
7066 (class regcache): New.
7067 * target.c (target_fetch_registers): Call method
7068 debug_print_register.
7069 (target_store_registers): Likewise.
7070
f8fdb78e
SM
70712017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7072
7073 * windows-nat.c (struct lm_info_windows): Initialize field.
7074 (windows_make_so): Allocate lm_info_windows with new.
7075 (windows_free_so): Free lm_info_windows with delete.
7076
9ccbfd7b
SM
70772017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7078
7079 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7080 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7081 cleanup.
7082 (darwin_free_so): Free lm_info_darwin with delete.
7083
76e75227
SM
70842017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7085
7086 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7087 <l_addr_p>: Change type to bool.
7088 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7089 (svr4_free_so): Free lm_info_svr4 with delete.
7090 (svr4_copy_library_list): Replace memcpy with call to copy
7091 constructor.
7092 (library_list_start_library, svr4_default_sos): Allocate
7093 lm_info_svr4 with new.
7094
51046d9e
SM
70952017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7096
7097 * solib-target.c (struct lm_info_target): Add destructor,
7098 initialize fields.
7099 <name>: Change type to std::string.
7100 (library_list_start_library): Allocate lm_info_target with new.
7101 (solib_target_free_library_list): Free lm_info_target with
7102 delete.
7103 (solib_target_current_sos): Adapt to std::string.
7104 (solib_target_free_so): Free lm_info_target with delete.
7105
4023ae76
SM
71062017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7107
7108 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7109 fields.
7110 (frv_current_sos): Allocate lm_info_frv with new.
7111 (frv_relocate_main_executable): Free lm_info_frv with delete,
7112 allocate with new.
7113 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7114
af43057b
SM
71152017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7116
7117 * solib-frv.c (struct lm_info_frv): Fix indentation.
7118
b0911207
SM
71192017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7120
7121 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7122 map field.
7123 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7124 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7125 and allocate with new.
7126 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7127
6c401f72
SM
71282017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7129
7130 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7131 <filename, member_name>: Change type to std::string.
7132 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7133 (library_list_start_library): Allocate lm_info_aix with new.
7134 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7135 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7136 with copy constructor.
7137
d0e449a1
SM
71382017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7139
7140 * solist.h (struct lm_info): Remove.
7141 (struct lm_info_base): New class.
7142 (struct so_list) <lm_info>: Change type to lm_info_base *.
7143 * nto-tdep.c (struct lm_info): Remove.
7144 (lm_addr): Adjust.
7145 * solib-aix.c (struct lm_info): Rename to ...
7146 (struct lm_info_aix): ... this. Extend lm_info_base.
7147 (lm_info_p): Rename to ...
7148 (lm_info_aix_p): ... this, and adjust.
7149 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7150 solib_aix_parse_libraries, library_list_start_library,
7151 solib_aix_free_library_list, solib_aix_parse_libraries,
7152 solib_aix_get_library_list,
7153 solib_aix_relocate_section_addresses, solib_aix_free_so,
7154 solib_aix_get_section_offsets,
7155 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7156 Adjust.
7157 (struct solib_aix_inferior_data) <library_list>: Adjust.
7158 * solib-darwin.c (struct lm_info): Rename to ...
7159 (struct lm_info_darwin): ... this. Extend lm_info_base.
7160 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7161 * solib-dsbt.c (struct lm_info): Rename to ...
7162 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7163 (struct dsbt_info) <main_executable_lm_info): Adjust.
7164 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7165 dsbt_relocate_section_addresses): Adjust.
7166 * solib-frv.c (struct lm_info): Rename to ...
7167 (struct lm_info_frv): ... this. Extend lm_info_base.
7168 (main_executable_lm_info): Adjust.
7169 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7170 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7171 find_canonical_descriptor_in_load_object,
7172 frv_fdpic_find_canonical_descriptor): Adjust.
7173 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7174 to lm_info_svr4.
7175 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7176 svr4_clear_so, svr4_copy_library_list,
7177 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7178 svr4_current_sos, svr4_fetch_objfile_link_map,
7179 solist_update_incremental): Adjust.
7180 * solib-svr4.h (struct lm_info_svr4): Move here from
7181 solib-svr4.c.
7182 * solib-target.c (struct lm_info): Rename to ...
7183 (struct lm_info_target): ... this. Extend lm_info_base.
7184 (lm_info_p): Rename to ...
7185 (lm_info_target_p): ... this.
7186 (solib_target_parse_libraries, library_list_start_segment,
7187 library_list_start_section, library_list_start_library,
7188 library_list_end_library, solib_target_free_library_list,
7189 solib_target_current_sos, solib_target_free_so,
7190 solib_target_relocate_section_addresses): Adjust.
7191 * windows-nat.c (struct lm_info): Rename to ...
7192 (struct lm_info_windows): ... this. Extend lm_info_base.
7193 (windows_make_so, handle_load_dll, handle_unload_dll,
7194 windows_xfer_shared_libraries): Adjust.
7195
434a4023
SM
71962017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7197
7198 * solib-darwin.c (struct darwin_so_list): Remove.
7199 (darwin_current_sos): Allocate an so_list object instead of a
7200 darwin_so_list, separately allocate an lm_info object.
7201 (darwin_free_so): Free lm_info.
7202
428544e8
JB
72032017-04-28 John Baldwin <jhb@FreeBSD.org>
7204
7205 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7206 with fprintf_filtered.
7207
4621115f
YQ
72082017-04-28 Yao Qi <yao.qi@linaro.org>
7209
7210 * regcache.c (regcache::regcache): New function.
7211 (regcache::~regcache): New function.
7212 (regcache_xmalloc_1): Remove.
7213 (regcache_xmalloc): Call new regcache.
7214 (regcache_xfree): Call delete regcache.
7215 (get_thread_arch_aspace_regcache): Call new regcache.
7216
339053c2
YQ
72172017-04-28 Yao Qi <yao.qi@linaro.org>
7218
7219 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7220 lwp instead of ptid_get_lwp.
7221
7974a605
YQ
72222017-04-28 Yao Qi <yao.qi@linaro.org>
7223
7224 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7225 lwp_info instead of getting from inferior_ptid.
7226
e15c3eb4
KS
72272017-04-27 Keith Seitz <keiths@redhat.com>
7228
7229 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7230 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7231 (CV_CONVERSION_BADNESS): Define.
7232 (rank_one_type): Remove overly restrictive rvalue reference
7233 rank checks.
7234 Add cv-qualifier checks and subranks for type equality.
7235 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7236 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7237 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7238
72bc1d24
SM
72392017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7240
7241 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7242 count when creating the object.
7243
55bcecda
UW
72442017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7245 Ulrich Weigand <uweigand@de.ibm.com>
7246
7247 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7248 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7249 is used in AIX.
7250 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7251 (process_xcoff_symbol): Likewise.
7252 (scan_xcoff_symtab): Likewise.
7253
5c99fcf8
AH
72542017-04-26 Alan Hayward <alan.hayward@arm.com>
7255
7256 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7257 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7258 (ia64_access_reg): Use get_frame_register_unsigned.
7259 (ia64_access_rse_reg): Likewise.
7260 (ia64_libunwind_frame_prev_register): Likewise.
7261
b41c5a85
JW
72622017-04-26 Jiong Wang <jiong.wang@arm.com>
7263
7264 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7265 * gdbarch.c: Regenerated.
7266 * gdbarch.h: Regenerated.
7267 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7268 visibility external.
7269 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7270 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7271 (enum cfa_how_kind): Move to ...
7272 (struct dwarf2_frame_state_reg_info): Likewise.
7273 (struct dwarf2_frame_state): Likewise.
7274 * dwarf2-frame.h: ... here.
7275 (dwarf2_frame_state_alloc_regs): New declaration.
7276 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7277 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7278
c185f580
AH
72792017-04-26 Alan Hayward <alan.hayward@arm.com>
7280
7281 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7282 regcache_raw_read_unsigned.
7283 (xtensa_pseudo_register_write): Likewise.
7284
19c45594
AH
72852017-04-26 Alan Hayward <alan.hayward@arm.com>
7286
7287 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7288 (nds32_pseudo_register_write): Likewise.
7289
4658f12e
YQ
72902017-04-25 Yao Qi <yao.qi@linaro.org>
7291
7292 * regcache.c (struct regcache) <readonly_p>: Change its type
7293 to bool.
7294 (regcache_xmalloc_1): Update parameter type and callers update.
7295
d581dda8
YQ
72962017-04-25 Yao Qi <yao.qi@linaro.org>
7297
7298 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7299 set_gdbarch_wchar_bit.
7300 * arm-tdep.c (arm_gdbarch_init): Likewise.
7301
debed3db
PA
73022017-04-25 Pedro Alves <palves@redhat.com>
7303
7304 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7305 (BothAreRelocatable, memcopy, memmove): Don't define.
7306 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7307 macros.
7308
b0b92aeb
PA
73092017-04-25 Pedro Alves <palves@redhat.com>
7310
7311 * common/common-defs.h: Include "common/poison.h".
7312 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7313 and adjust.
7314 * common/poison.h: New file.
7315 * common/traits.h: Include <type_traits>.
7316 (Not, Or, Requires): New, moved from common/function-view.h.
7317
16c4d54a
PA
73182017-04-25 Pedro Alves <palves@redhat.com>
7319
7320 * breakpoint.h (struct breakpoint): In-class initialize all
7321 fields. Make boolean fields "bool".
7322 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7323 memset call and initializations no longer necessary.
7324
b5c36682
PA
73252017-04-25 Pedro Alves <palves@redhat.com>
7326
7327 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7328 reference.
7329 (pt_btrace_insn): New function.
7330 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7331
5625a286
PA
73322017-04-25 Pedro Alves <palves@redhat.com>
7333
7334 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7335 "base" field and inherit from "bp_location" instead. Add
7336 non-default ctor.
7337 (allocate_location_exception): Use new non-default ctor.
7338 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7339 (init_bp_location): Convert to ...
7340 (bp_location::bp_location): ... this new ctor, and remove memset
7341 call.
7342 (base_breakpoint_allocate_location): Use the new non-default ctor.
7343 * breakpoint.h (bp_location): Now a class. Declare default and
7344 non-default ctors. In-class initialize all members.
7345 (init_bp_location): Remove declaration.
7346
23bcc18f
PA
73472017-04-25 Pedro Alves <palves@redhat.com>
7348
7349 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7350 assignment operator.
7351
e1ba3053
YQ
73522017-04-24 Yao Qi <yao.qi@linaro.org>
7353
7354 * doublest.c (convert_doublest_to_floatformat): Call
7355 floatformat_totalsize_bytes.
7356
10f489e5
TT
73572017-04-22 Tom Tromey <tom@tromey.com>
7358
7359 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7360 ui_out_emit_list.
7361 * stack.c (print_frame): Use ui_out_emit_list.
7362 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7363 ui_out_emit_list.
7364 * mi/mi-main.c (print_one_inferior)
7365 (mi_cmd_data_list_register_names)
7366 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7367 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7368 ui_out_emit_list.
7369 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7370 (mi_output_solib_attribs): Use ui_out_emit_list,
7371 ui_out_emit_tuple.
7372 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7373 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7374 (mi_cmd_stack_list_args, list_args_or_locals): Use
7375 ui_out_emit_list.
7376 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7377 * breakpoint.c (print_solib_event, output_thread_groups): Use
7378 ui_out_emit_list.
7379
0092b74d
TT
73802017-04-22 Tom Tromey <tom@tromey.com>
7381
7382 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7383 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7384 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7385
a14a62dd
TT
73862017-04-22 Tom Tromey <tom@tromey.com>
7387
7388 * tracepoint.c (tvariables_info_1)
7389 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7390
46b9c129
TT
73912017-04-22 Tom Tromey <tom@tromey.com>
7392
7393 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7394 annotate_arg_emitter.
7395 * breakpoint.c (print_mention_watchpoint)
7396 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7397 * annotate.h (struct annotate_arg_emitter): New.
7398
2e783024
TT
73992017-04-22 Tom Tromey <tom@tromey.com>
7400
7401 * record-btrace.c (record_btrace_insn_history)
7402 (record_btrace_insn_history_range, record_btrace_call_history)
7403 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7404 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7405 ui_out_emit_tuple.
7406 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7407 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7408 * skip.c (skip_info): Use ui_out_emit_tuple.
7409 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7410 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7411 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7412 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7413 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7414 ui_out_emit_tuple.
7415 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7416 (output_register, mi_cmd_data_read_memory)
7417 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7418 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7419 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7420 Use ui_out_emit_tuple.
7421 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7422 ui_out_emit_tuple.
7423 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7424 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7425 * linux-thread-db.c (info_auto_load_libthread_db): Use
7426 ui_out_emit_tuple.
7427 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7428 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7429 * disasm.c (do_mixed_source_and_assembly_deprecated)
7430 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7431 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7432 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7433 * breakpoint.c (print_one_breakpoint_location)
7434 (print_one_breakpoint): Use ui_out_emit_tuple.
7435 * auto-load.c (print_script, info_auto_load_cmd): Use
7436 ui_out_emit_tuple.
7437 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7438
9be21bb4
SM
74392017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7440
7441 * thread.c (print_thread_info_1): Remove dead code.
7442
0d4c07af
JK
74432017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7444
7445 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7446 GDB_SELF_TEST.
7447 * arm-tdep.c (selftests::arm_record_test): Likewise.
7448
4daf993d
YQ
74492017-04-21 Yao Qi <yao.qi@linaro.org>
7450
7451 * regcache.c (regcache_restore): Remove argument 2. Replace
7452 argument 3 with regcache. Get register status from
7453 src->register_status and get register contents from
7454 register_buffer (src, regnum).
7455 (regcache_cpy): Update.
7456
a6c21d4a
PA
74572017-04-19 Pedro Alves <palves@redhat.com>
7458
7459 * gdbthread.h (thread): Add missing closing parenthesis in
7460 comment.
7461
3a3fd0fd
PA
74622017-04-19 Pedro Alves <palves@redhat.com>
7463
7464 * common/refcounted-object.h: New file.
7465 * gdbthread.h: Include "common/refcounted-object.h".
7466 (thread_info): Inherit from refcounted_object and add comments.
7467 (thread_info::incref, thread_info::decref)
7468 (thread_info::m_refcount): Delete.
7469 (thread_info::deletable): Use the refcounted_object::refcount()
7470 method.
7471 * inferior.c (current_inferior_): Add comment.
7472 (set_current_inferior): Increment/decrement refcounts.
7473 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7474 not-deletable instead of comparing with the current inferior.
7475 (initialize_inferiors): Increment the initial inferior's refcount.
7476 * inferior.h (struct inferior): Forward declare.
7477 Include "common/refcounted-object.h".
7478 (current_inferior, set_current_inferior): Move declaration to
7479 before struct inferior's definition, and fix comment.
7480 (inferior): Inherit from refcounted_object. Add comments.
7481 * thread.c (switch_to_thread_no_regs): Reference the thread's
7482 inferior pointer directly instead of doing a ptid lookup.
7483 (switch_to_no_thread): New function.
7484 (switch_to_thread(thread_info *)): New function, factored out
7485 from ...
7486 (switch_to_thread(ptid_t)): ... this.
7487 (restore_current_thread): Delete.
7488 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7489 fields, and add 'inf' field.
7490 (do_restore_current_thread_cleanup): Check whether old->inf is
7491 alive instead of looking up an inferior by ptid. Use
7492 switch_to_thread and switch_to_no_thread.
7493 (restore_current_thread_cleanup_dtor): Use old->inf directly
7494 instead of lookup up an inferior by id. Decref the inferior.
7495 Don't restore 'removable'.
7496 (make_cleanup_restore_current_thread): Same the inferior pointer
7497 in old, instead of the inferior number. Incref the inferior.
7498 Don't save/clear 'removable'.
7499
9bcb1f16
PA
75002017-04-19 Pedro Alves <palves@redhat.com>
7501
7502 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7503 unittests/scoped_restore-selftests.c.
7504 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7505 * common/scoped_restore.h (scoped_restore_base): Make "class".
7506 (scoped_restore_base::release): New public method.
7507 (scoped_restore_base::scoped_restore_base): New protected ctor.
7508 (scoped_restore_base::m_saved_var): New protected field.
7509 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7510 scoped_restore_base base class instead of m_saved_var directly.
7511 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7512 (scoped_restore_tmpl::scoped_restore_tmpl(const
7513 scoped_restore_tmpl<T>&)): Likewise.
7514 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7515 method.
7516 (scoped_restore_tmpl::saved_var): New method.
7517 (scoped_restore_tmpl::m_saved_var): Delete.
7518 * inferior.h (inferior::detaching): Now a bool.
7519 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7520 cleanup.
7521 * unittests/scoped_restore-selftests.c: New file.
7522
26fcd539
PA
75232017-04-19 Pedro Alves <palves@redhat.com>
7524
7525 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7526 Re-sort in alphabetic order.
7527
fdd243b0
PA
75282017-04-18 Pedro Alves <palves@redhat.com>
7529
7530 * xml-support.c (obstack_xml_printf): Delete.
7531 * xml-support.h (obstack_xml_printf): Delete.
7532
4895cde2
PA
75332017-04-18 Pedro Alves <palves@redhat.com>
7534
7535 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7536 vdebug, verror, body_text, start_element, end_element, name,
7537 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7538 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7539 is_xinclude>: Make private and add m_ prefix.
7540 (gdb_xml_parser::body_text): New method, based on ...
7541 (gdb_xml_body_text): ... this. Adjust.
7542 (gdb_xml_parser::vdebug): New method, based on ...
7543 (gdb_xml_debug): ... this. Adjust.
7544 (gdb_xml_parser::verror): New method, based on ...
7545 (gdb_xml_error): ... this. Adjust.
7546 (gdb_xml_parser::start_element): New method, based on ...
7547 (gdb_xml_start_element): ... this. Adjust.
7548 (gdb_xml_start_element_wrapper): Defer to
7549 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7550 (gdb_xml_parser::end_element): New method, based on ...
7551 (gdb_xml_end_element_wrapper): ... this. Adjust.
7552 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7553 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7554 (gdb_xml_parser::use_dtd): New method, based on ...
7555 (gdb_xml_use_dtd): ... this. Adjust.
7556 (gdb_xml_parser::parse): New method, based on ...
7557 (gdb_xml_parse): ... this. Adjust.
7558 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7559 (xinclude_start_include): Adjust to call the parser's name method.
7560 (xml_xinclude_default, xml_xinclude_start_doctype)
7561 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7562 method.
7563 (xml_process_xincludes): Adjust to call parser methods.
7564 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7565 declarations.
7566
bd8a901f
PA
75672017-04-18 Pedro Alves <palves@redhat.com>
7568
7569 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7570 gdb::optional<std::string>.
7571 * xml-support.c: Include <string>.
7572 (scope_level::scope_level(scope_level &&))
7573 (scope_level::~scope_level): Delete.
7574 (scope_level::body): Now a std::string.
7575 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7576 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7577 parameter.
7578 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7579 (xinclude_parsing_data::output): Now a std::string reference.
7580 (xinclude_start_include): Adjust.
7581 (xml_xinclude_default): Adjust.
7582 (xml_process_xincludes): Add 'output' parameter, and return bool.
7583 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7584 and return bool.
7585 * xml-tdesc.c: Include <unordered_map> and <string>.
7586 (tdesc_xml_cache): Delete.
7587 (tdesc_xml_cache_s): Delete.
7588 (xml_cache): Now an std::unordered_map.
7589 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7590 (target_fetch_description_xml): Change return type to
7591 gdb::optional<std::string>, and adjust.
7592 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7593 (target_fetch_description_xml): Change return type to
7594 gdb::optional<std::string>.
7595
d35d1958
PA
75962017-04-18 Pedro Alves <palves@redhat.com>
7597
7598 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7599 unittests/optional-selftests.c.
7600 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7601 * unittests/optional-selftests.c: New file.
7602 * unittests/optional/assignment/1.cc: New file.
7603 * unittests/optional/assignment/2.cc: New file.
7604 * unittests/optional/assignment/3.cc: New file.
7605 * unittests/optional/assignment/4.cc: New file.
7606 * unittests/optional/assignment/5.cc: New file.
7607 * unittests/optional/assignment/6.cc: New file.
7608 * unittests/optional/assignment/7.cc: New file.
7609 * unittests/optional/cons/copy.cc: New file.
7610 * unittests/optional/cons/default.cc: New file.
7611 * unittests/optional/cons/move.cc: New file.
7612 * unittests/optional/cons/value.cc: New file.
7613 * unittests/optional/in_place.cc: New file.
7614 * unittests/optional/observers/1.cc: New file.
7615 * unittests/optional/observers/2.cc: New file.
7616
22796e97
PA
76172017-04-18 Pedro Alves <palves@redhat.com>
7618
7619 * common/gdb_optional.h: Include common/traits.h.
7620 (in_place_t): New type.
7621 (in_place): New constexpr variable.
7622 (optional::optional): Remove member initialization of
7623 m_instantiated.
7624 (optional::optional(in_place_t...)): New constructor.
7625 (optional::~optional): Use reset.
7626 (optional::optional(const optional&)): New.
7627 (optional::optional(const optional&&)): New.
7628 (optional::optional(T &)): New.
7629 (optional::optional(T &&)): New.
7630 (operator::operator=(const optional &)): New.
7631 (operator::operator=(optional &&)): New.
7632 (operator::operator= (const T &))
7633 (operator::operator= (T &&))
7634 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7635 (operator::reset): New.
7636 (operator::m_instantiated):: Add in-class initializer.
7637 * common/traits.h: Include <type_traits>.
7638 (struct And): New types.
7639
a7fc9b61
PA
76402017-04-18 Pedro Alves <palves@redhat.com>
7641
7642 * xml-support.c: Include <vector>.
7643 (scope_level::scope_level(const gdb_xml_element *))
7644 (scope_level::scope_level(scope_level&&)): New.
7645 (scope_level::~scope_level): New.
7646 (scope_level_s): Delete.
7647 (gdb_xml_parser::scopes): Now a std::vector.
7648 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7649 Use std::vector.
7650 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7651 scope cleanup code.
7652 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7653 of the scopes member. Use std::vector::emplace_back.
7654
010151c9
PA
76552017-04-18 Pedro Alves <palves@redhat.com>
7656
7657 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7658 a bool.
7659 (gdb_xml_end_element): Change type of first parameter.
7660 (gdb_xml_cleanup): Rename to ...
7661 (gdb_xml_parser::~gdb_xml_parser): ... this.
7662 (gdb_xml_create_parser_and_cleanup): Delete with ...
7663 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7664 to this new ctor.
7665 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7666 using gdb_xml_create_parser_and_cleanup.
7667 (xinclude_parsing_data): Add ctor/dtor.
7668 (xml_xinclude_cleanup): Delete.
7669 (xml_process_xincludes): Create a local xinclude_parsing_data
7670 instead of heap-allocating one. Create a local gdb_xml_parser
7671 instead of heap-allocating one with
7672 gdb_xml_create_parser_and_cleanup.
7673
d56060f0
JB
76742017-04-18 John Baldwin <jhb@FreeBSD.org>
7675
7676 PR threads/20743
7677 * fbsd-nat.c (resume_one_thread_cb): Remove.
7678 (resume_all_threads_cb): Remove.
7679 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7680 iterate_over_threads.
7681
305d16a9
JB
76822017-04-17 Joel Brobecker <brobecker@adacore.com>
7683
7684 * NEWS: Create a new section for the next release branch.
7685 Rename the section of the current branch, now that it has
7686 been cut.
7687
8bb57231
JB
76882017-04-17 Joel Brobecker <brobecker@adacore.com>
7689
7690 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7691 * version.in: Bump version to 8.0.50.DATE-git.
7692
096c92dd
SDJ
76932017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7694
7695 PR gdb/21385
7696 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7697 independently of the host, and fix build breakage on Cygwin.
7698
0550c955
PA
76992017-04-13 Pedro Alves <palves@redhat.com>
7700
7701 * inferior.c (free_inferior): Convert to ...
7702 (inferior::~inferior): ... this dtor.
7703 (inferior::inferior): New ctor, factored out from ...
7704 (add_inferior_silent): ... here. Allocate the inferior with a new
7705 expression.
7706 (delete_inferior): Call delete instead of free_inferior.
7707 * inferior.h (gdb_environ, continuation): Forward declare.
7708 (inferior): Now a class. Add in-class initialization to all
7709 members. Make boolean fields bool, except 'detaching'.
7710 (inferior::inferior): New explicit ctor.
7711 (inferior::~inferior): New.
7712
e3d60dfc
PA
77132017-04-13 Pedro Alves <palves@redhat.com>
7714
7715 * inferior.c (init_inferior_list): Delete.
7716 * inferior.h (init_inferior_list): Delete.
7717
5fd69d0a
PA
77182017-04-13 Pedro Alves <palves@redhat.com>
7719
7720 PR threads/13217
7721 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7722 (top level): Call it twice, with different thread sets.
7723
c6609450
PA
77242017-04-13 Pedro Alves <palves@redhat.com>
7725
7726 * thread.c: Include <algorithm>.
7727 (thread_array_cleanup): Delete.
7728 (scoped_inc_dec_ref): New class.
7729 (live_threads_count): New function.
7730 (set_thread_refcount): Delete.
7731 (tp_array_compar_ascending): Now a bool.
7732 (tp_array_compar): Convert to a std::sort comparison function.
7733 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7734 and live_threads_count.
7735
2a00d7ce
PA
77362017-04-13 Pedro Alves <palves@redhat.com>
7737
7738 * infrun.c (follow_fork_inferior): Also switch the current
7739 inferior.
7740
441d7c93
PA
77412017-04-13 Pedro Alves <palves@redhat.com>
7742
7743 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7744 before calling create_internal_breakpoint.
7745
808480f6
PA
77462017-04-13 Pedro Alves <palves@redhat.com>
7747
7748 * fork-child.c (execv_argv): New class.
7749 (breakup_args): Refactored as ...
7750 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7751 Copy arguments to storage and replace separators with NULL
7752 terminators in place.
7753 (escape_bang_in_quoted_argument): Adjust to return bool.
7754 (execv_argv::execv_argv): New ctor.
7755 (execv_argv::init_for_shell): New method, factored out from
7756 fork_inferior. Don't strdup strings into the vector.
7757 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7758 Remove free_vector_argv call.
7759
ad3d022a
YQ
77602017-04-13 Yao Qi <yao.qi@linaro.org>
7761
7762 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7763 tdep->rx_psw_type.
7764
e6ddc3bf
YQ
77652017-04-13 Yao Qi <yao.qi@linaro.org>
7766
7767 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7768 * rx-tdep.c (rx_gdbarch_init): Likewise.
7769
bfb8cf90
PA
77702017-04-13 Pedro Alves <palves@redhat.com>
7771
7772 * breakpoint.h (struct breakpoint): Reindent.
7773
f5336ca5
PA
77742017-04-13 Pedro Alves <palves@redhat.com>
7775
7776 * breakpoint.c (bp_location): Rename to ...
7777 (bp_locations): ... this. All references updated.
7778 (bp_location_count): Rename to ...
7779 (bp_locations_count): ... this. All references updated.
7780 (bp_location_placed_address_before_address_max): Rename to ...
7781 (bp_locations_placed_address_before_address_max): ... this. All
7782 references updated.
7783 (bp_location_shadow_len_after_address_max): Rename to ...
7784 (bp_locations_shadow_len_after_address_max): ... this. All
7785 references updated.
7786 (bp_location_compare_addrs): Rename to ...
7787 (bp_locations_compare_addrs): ... this. All references updated.
7788 (bp_location_compare):Rename to ...
7789 (bp_locations_compare): ... this. All references updated.
7790 (bp_location_target_extensions_update): Rename to ...
7791 (bp_locations_target_extensions_update): ... this. All references
7792 updated.
7793
be628ab8
SDJ
77942017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7795
7796 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7797 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7798 'sgtty.h'.
7799 * common/gdb_termios.h: New file, with parts of "terminal.h".
7800 * inflow.c: Include "gdb_termios.h".
7801 * ser-unix.c: Include "gdb_termios.h".
7802 * terminal.h: Move terminal-related defines to
7803 "common/gdb_termios.h".
7804
8e9e35b1
TT
78052017-04-12 Tom Tromey <tom@tromey.com>
7806
7807 * probe.c (parse_probes): Update.
7808 * location.h (delete_event_location): Don't declare.
7809 (event_location_deleter::operator()): Update.
7810 * location.c (event_location_deleter::operator()): Rename from
7811 delete_event_location.
7812 * linespec.h (linespec_result) <location>: Change type to
7813 event_location_up.
7814 * linespec.c (canonicalize_linespec, event_location_to_sals)
7815 (decode_objc): Update.
7816 (linespec_result): Don't call delete_event_location.
7817 * breakpoint.c (create_breakpoints_sal)
7818 (bkpt_probe_create_sals_from_location)
7819 (strace_marker_create_sals_from_location): Update.
7820
16e802b9
TT
78212017-04-12 Tom Tromey <tom@tromey.com>
7822
7823 * linespec.h (struct linespec_result): Add constructor and
7824 destructor.
7825 (init_linespec_result, destroy_linespec_result)
7826 (make_cleanup_destroy_linespec_result): Don't declare.
7827 * linespec.c (init_linespec_result): Remove.
7828 (linespec_result::~linespec_result): Rename from
7829 destroy_linespec_result. Update.
7830 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7831 Remove.
7832 * breakpoint.c (create_breakpoint, break_range_command)
7833 (decode_location_default): Update.
7834 * ax-gdb.c (agent_command_1): Update.
7835
d28cd78a
TT
78362017-04-12 Tom Tromey <tom@tromey.com>
7837
7838 * remote.c (remote_download_tracepoint): Update.
7839 * python/py-breakpoint.c (bppy_get_location): Update.
7840 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7841 (gdbscm_breakpoint_location): Update.
7842 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7843 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7844 Change type to event_location_up.
7845 * breakpoint.c (create_overlay_event_breakpoint)
7846 (create_longjmp_master_breakpoint)
7847 (create_std_terminate_master_breakpoint)
7848 (create_exception_master_breakpoint)
7849 (breakpoint_event_location_empty_p, print_breakpoint_location)
7850 (print_one_breakpoint_location, create_thread_event_breakpoint)
7851 (init_breakpoint_sal, create_breakpoint)
7852 (print_recreate_ranged_breakpoint, break_range_command)
7853 (init_ada_exception_breakpoint, say_where): Update.
7854 (base_breakpoint_dtor): Don't call delete_event_location.
7855 (bkpt_print_recreate, tracepoint_print_recreate)
7856 (dprintf_print_recreate, update_static_tracepoint)
7857 (breakpoint_re_set_default): Update.
7858
711799d5
TT
78592017-04-12 Tom Tromey <tom@tromey.com>
7860
7861 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7862 type of "to_do". Update.
7863 (compute_stack_depth): Use std::vector.
7864
52d214d3
TT
78652017-04-12 Tom Tromey <tom@tromey.com>
7866
7867 * printcmd.c (find_instruction_backward): Use std::vector.
7868
4c404b8b
TT
78692017-04-12 Tom Tromey <tom@tromey.com>
7870
7871 * symfile.c (objfilep): Remove typedef.
7872 (reread_symbols): Use a std::vector.
7873
156d9eab
TT
78742017-04-12 Tom Tromey <tom@tromey.com>
7875
7876 * mi/mi-main.c (exec_direction_forward): Remove.
7877 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7878 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7879 scoped_restore.
7880 * guile/guile.c (guile_repl_command, guile_command)
7881 (gdbscm_execute_gdb_command): Use scoped_restore.
7882 * go-exp.y (go_parse): Use scoped_restore.
7883 * d-exp.y (d_parse): Use scoped_restore.
7884 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7885 * c-exp.y (c_parse): Use scoped_restore.
7886
4d89769a
TT
78872017-04-12 Tom Tromey <tom@tromey.com>
7888
7889 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7890 (mi_parse): Update return type.
7891 (mi_parse_free): Remove.
7892 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7893 (mi_parse::~mi_parse): Rename from mi_parse_free.
7894 (mi_parse_cleanup): Remove.
7895 (mi_parse): Return a unique_ptr. Use new.
7896 * mi/mi-main.c (mi_execute_command): Update.
7897
4b217cc7
TT
78982017-04-12 Tom Tromey <tom@tromey.com>
7899
7900 * location.c (explicit_location_lex_one): Return a
7901 unique_xmalloc_ptr.
7902 (string_to_explicit_location): Update. Remove cleanups.
7903
59d3651b
TT
79042017-04-12 Tom Tromey <tom@tromey.com>
7905
7906 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7907 (compare_value_and_voffset): Change type. Update.
7908 (compute_vtable_size): Change type of "offset_vec".
7909 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7910 (gnuv3_get_typeid): Remove extraneous declaration.
7911
b24b0d6c
TT
79122017-04-12 Tom Tromey <tom@tromey.com>
7913
7914 * charset.h (wchar_iterator): Fix comment.
7915
80a3b8c5
TT
79162017-04-12 Tom Tromey <tom@tromey.com>
7917
7918 * charset.c (iconv_wrapper): New class.
7919 (cleanup_iconv): Remove.
7920 (convert_between_encodings): Use it.
7921
c83dd867
TT
79222017-04-12 Tom Tromey <tom@tromey.com>
7923
7924 * symfile.h (increment_reading_symtab): Update type.
7925 * symfile.c (decrement_reading_symtab): Remove.
7926 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7927 * psymtab.c (psymtab_to_symtab): Update.
7928 * dwarf2read.c (dw2_instantiate_symtab): Update.
7929
0e8621a0
TT
79302017-04-12 Tom Tromey <tom@tromey.com>
7931
7932 * jit.c (struct jit_reader): Declare separately. Add constructor
7933 and destructor. Change type of "handle".
7934 (loaded_jit_reader): Define separately.
7935 (jit_reader_load): Update. New "new".
7936 (jit_reader_unload_command): Use "delete".
7937 * gdb-dlfcn.h (struct dlclose_deleter): New.
7938 (gdb_dlhandle_up): New typedef.
7939 (gdb_dlopen, gdb_dlsym): Update types.
7940 (gdb_dlclose): Remove.
7941 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7942 (gdb_dlsym): Change type of "handle".
7943 (make_cleanup_dlclose): Remove.
7944 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7945 * compile/compile-c-support.c (load_libcc): Update.
7946
67d89901
TT
79472017-04-12 Tom Tromey <tom@tromey.com>
7948
7949 * symtab.h (find_pcs_for_symtab_line): Change return type.
7950 * symtab.c (find_pcs_for_symtab_line): Change return type.
7951 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7952 type of "vec". Update.
7953 (ltpy_get_pcs_for_line): Update.
7954 * linespec.c (decode_digits_ordinary): Update.
7955
93921405
TT
79562017-04-12 Tom Tromey <tom@tromey.com>
7957
7958 * tracepoint.c (actions_command): Update.
7959 * python/python.c (python_command, python_interactive_command):
7960 Update.
7961 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7962 * guile/guile.c (guile_command): Update.
7963 * defs.h (read_command_lines, read_command_lines_1): Return
7964 command_line_up.
7965 (command_lines_deleter): New struct.
7966 (command_line_up): New typedef.
7967 * compile/compile.c (compile_code_command)
7968 (compile_print_command): Update.
7969 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7970 command_line_up.
7971 (make_cleanup_free_command_lines): Remove.
7972 * cli/cli-script.c (get_command_line, read_command_lines_1)
7973 (copy_command_lines): Return command_line_up.
7974 (while_command, if_command, read_command_lines, define_command)
7975 (document_command): Update.
7976 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7977 Remove.
7978 * breakpoint.h (breakpoint_set_commands): Change type of
7979 "commands".
7980 * breakpoint.c (breakpoint_set_commands): Change type of
7981 "commands". Update.
7982 (do_map_commands_command, update_dprintf_command_list)
7983 (create_tracepoint_from_upload): Update.
7984
ffc2605c
TT
79852017-04-12 Tom Tromey <tom@tromey.com>
7986
7987 * tracepoint.c (scope_info): Update.
7988 * spu-tdep.c (spu_catch_start): Update.
7989 * python/python.c (gdbpy_decode_line): Update.
7990 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7991 * python/py-breakpoint.c (bppy_init): Update.
7992 * probe.c (parse_probes): Update.
7993 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7994 * location.h (event_location_deleter): New struct.
7995 (event_location_up): New typedef.
7996 (new_linespec_location, new_address_location, new_probe_location)
7997 (new_explicit_location, copy_event_location)
7998 (string_to_event_location, string_to_event_location_basic)
7999 (string_to_explicit_location): Update return type.
8000 (make_cleanup_delete_event_location): Remove.
8001 * location.c (new_linespec_location, new_address_location)
8002 (new_probe_location, new_explicit_location, copy_event_location):
8003 Return event_location_up.
8004 (delete_event_location_cleanup)
8005 (make_cleanup_delete_event_location): Remove.
8006 (string_to_explicit_location, string_to_event_location_basic)
8007 (string_to_event_location): Return event_location_up.
8008 * linespec.c (canonicalize_linespec, event_location_to_sals)
8009 (decode_line_with_current_source)
8010 (decode_line_with_last_displayed, decode_objc): Update.
8011 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8012 * completer.c (location_completer): Update.
8013 * cli/cli-cmds.c (edit_command, list_command): Update.
8014 * breakpoint.c (create_overlay_event_breakpoint)
8015 (create_longjmp_master_breakpoint)
8016 (create_std_terminate_master_breakpoint)
8017 (create_exception_master_breakpoint)
8018 (create_thread_event_breakpoint): Update.
8019 (init_breakpoint_sal): Update. Remove some dead code.
8020 (create_breakpoint_sal): Change type of "location". Update.
8021 (create_breakpoints_sal, create_breakpoint, break_command_1)
8022 (dprintf_command, break_range_command, until_break_command)
8023 (init_ada_exception_breakpoint)
8024 (strace_marker_create_sals_from_location)
8025 (update_static_tracepoint, trace_command, ftrace_command)
8026 (strace_command, create_tracepoint_from_upload): Update.
8027 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8028 * ax-gdb.c (agent_command_1): Update.
8029
8f10c932
PA
80302017-04-12 Pedro Alves <palves@redhat.com>
8031
8032 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8033 * configure.tgt: Handle i[34567]86-*-go32* and
8034 i[34567]86-*-msdosdjgpp*.
8035 * i386-tdep.c (i386_svr4_reg_to_regnum):
8036 Make extern.
8037 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8038 i386-go32-tdep.c.
8039 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8040 * i386-go32-tdep.c: New file.
8041 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8042 declarations.
8043
0a31ccfb
SM
80442017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8045
8046 * aix-thread.c (pd_status2str): Change return type to const char *.
8047
e9bb3fbb
PA
80482017-04-12 Pedro Alves <palves@redhat.com>
8049
8050 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8051 calls to set_gdbarch_gnu_triplet_regexp.
8052
53375380
PA
80532017-04-12 Pedro Alves <palves@redhat.com>
8054
8055 PR gdb/21323
8056 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8057 New enum value.
8058 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8059 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8060 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8061 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8062 * gdbarch.h, gdbarch.c: Regenerate.
8063 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8064 gdbarch_wchar_bit and gdbarch_wchar_signed.
8065 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8066 * arm-tdep.c (arm_gdbarch_init): Likewise.
8067 * avr-tdep.c (avr_gdbarch_init): Likewise.
8068 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8069 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8070 * i386-tdep.c (i386_go32_init_abi): Likewise.
8071 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8072 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8073 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8074 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8075 * sh-tdep.c (sh_gdbarch_init): Likewise.
8076 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8077 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8078 * windows-tdep.c (windows_init_abi): Likewise.
8079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8080
53e710ac
PA
80812017-04-12 Pedro Alves <palves@redhat.com>
8082
8083 PR c++/21323
8084 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8085 cplus_primitive_type_char32_t>: New enum values.
8086 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8087 and cplus_primitive_type_char32_t.
8088 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8089 32, use the archtecture's built-in type for char16_t and char32_t,
8090 respectively. Otherwise, fallback to init_integer_type as before,
8091 but make the type unsigned, and issue a complaint.
8092 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8093
ab0538b8
AH
80942017-04-12 Alan Hayward <alan.hayward@arm.com>
8095
5e0e0422 8096 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8097 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8098
5430098f
SDJ
80992017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8100
8101 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8102 'const char *'.
8103
7c5ded6a
SDJ
81042017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8105
8106 * common/common-utils.c (free_vector_argv): New function.
8107 * common/common-utils.h: Include <vector>.
8108 (free_vector_argv): New prototype.
8109 * darwin-nat.c (darwin_create_inferior): Rewrite function
8110 prototype in order to constify "exec_file" and accept a
8111 "std::string" for "allargs".
8112 * fork-child.c: Include <vector>.
8113 (breakup_args): Rewrite function, using C++.
8114 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8115 and accept "std::string" for "allargs". Update the code to
8116 calculate "argv" based on "allargs". Update calls to "exec_fun"
8117 and "execvp".
8118 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8119 order to constify "exec_file" and accept a "std::string" for
8120 "allargs".
8121 * go32-nat.c (go32_create_inferior): Likewise.
8122 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8123 * infcmd.c (run_command_1): Constify "exec_file". Use
8124 "std::string" for inferior arguments.
8125 * inferior.h (fork_inferior): Update prototype.
8126 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8127 prototype in order to constify "exec_file" and accept a
8128 "std::string" for "allargs".
8129 * nto-procfs.c (procfs_create_inferior): Likewise.
8130 * procfs.c (procfs_create_inferior): Likewise.
8131 * remote-sim.c (gdbsim_create_inferior): Likewise.
8132 * remote.c (extended_remote_run): Update code to accept
8133 "std::string" as argument.
8134 (extended_remote_create_inferior): Rewrite function prototype in
8135 order to constify "exec_file" and accept a "std::string" for
8136 "allargs".
8137 * rs6000-nat.c (super_create_inferior): Likewise.
8138 (rs6000_create_inferior): Likewise.
8139 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8140 * windows-nat.c (windows_create_inferior): Likewise.
8141
ae0eee42
PA
81422017-04-11 Pedro Alves <palves@redhat.com>
8143
8144 * thread.c: Fix whitespace throughout.
8145
a6acac06
PR
81462017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8147
8148 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8149
64403bd1
AH
81502017-04-11 Alan Hayward <alan.hayward@arm.com>
8151
8152 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8153
a5bef50f
SDJ
81542017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8155
8156 PR gdb/21364
8157 * osdata.c (info_osdata): Check if 'type' is an empty string
8158 instead of NULL.
8159
9295a5a9
PA
81602017-04-10 Pedro Alves <palves@redhat.com>
8161
8162 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8163 (ptid_to_global_thread_id, in_thread_list)
8164 (do_captured_list_thread_ids, set_resumed, set_running)
8165 (set_executing, set_stop_requested, finish_thread_state)
8166 (validate_registers_access, can_access_registers_ptid)
8167 (print_thread_info_1, switch_to_thread)
8168 (do_restore_current_thread_cleanup)
8169 (make_cleanup_restore_current_thread, thread_command)
8170 (thread_name_command): Use operator== instead of ptid_equal.
8171
996812e3
PA
81722017-04-10 Pedro Alves <palves@redhat.com>
8173
8174 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8175 (current_thread_cleanup_chain): Delete.
8176 (restore_current_thread_cleanup_dtor)
8177 (make_cleanup_restore_current_thread): Remove references to
8178 current_thread_cleanup_chain.
8179
845b344f
AH
81802017-04-10 Alan Hayward <alan.hayward@arm.com>
8181
8182 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8183 REG_UNKNOWN.
8184
803bdfe4
YQ
81852017-04-10 Yao Qi <yao.qi@linaro.org>
8186
8187 PR gdb/19942
8188 * gdbthread.h (thread_info::deletable): New method.
8189 (thread_info::incref): New method.
8190 (thread_info::decref): New method.
8191 (thread_info::refcount): Move it to private.
8192 * infrun.c (save_stop_context): Call inc_refcount.
8193 (release_stop_context_cleanup): Likewise.
8194 * thread.c (set_thread_exited): New function.
8195 (init_thread_list): Delete "tp" only it is deletable, otherwise
8196 call set_thread_exited.
8197 (delete_thread_1): Call set_thread_exited.
8198 (current_thread_cleanup) <inferior_pid>: Remove.
8199 <thread>: New field.
8200 (restore_current_thread_ptid_changed): Removed.
8201 (do_restore_current_thread_cleanup): Adjust.
8202 (restore_current_thread_cleanup_dtor): Don't call
8203 find_thread_ptid.
8204 (set_thread_refcount): Use dec_refcount.
8205 (make_cleanup_restore_current_thread): Adjust.
8206 (thread_apply_all_command): Call inc_refcount.
8207 (_initialize_thread): Don't call
8208 observer_attach_thread_ptid_changed.
8209
8c25b497
YQ
82102017-04-10 Yao Qi <yao.qi@linaro.org>
8211
8212 * thread.c (delete_thread_1): Hoist code on marking thread as
8213 exited.
8214
8473b447
SM
82152017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8216
8217 * windows-nat.c (windows_detach): Initialize ptid with
8218 minus_one_ptid.
8219
6670ec13
SM
82202017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8221
8222 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8223
ba2f91bb
AH
82242017-04-07 Alan Hayward <alan.hayward@arm.com>
8225
8226 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8227 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8228 (bfin_pseudo_register_write): Likewise
8229
436252de
SM
82302017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8231
8232 * common/ptid.h (struct ptid): Change to...
8233 (class ptid_t): ... this.
8234 <ptid_t>: New constructors.
8235 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8236 matches>: New methods.
8237 <make_null, make_minus_one>: New static methods.
8238 <pid>: Rename to...
8239 <m_pid>: ...this.
8240 <lwp>: Rename to...
8241 <m_lwp>: ...this.
8242 <tid>: Rename to...
8243 <m_tid>: ...this.
8244 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8245 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8246 as references, move comment to class ptid_t.
8247 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8248 ptid_t static methods.
8249 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8250 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8251 Take ptid arguments as references, implement using ptid_t methods.
8252 * unittests/ptid-selftests.c: New file.
8253 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8254 unittests/ptid-selftests.c.
8255 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8256
0dedf377
TP
82572017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8258
8259 * python/python.c (python_run_simple_file): Cast mode literal to
8260 non-const char pointer as expected by PyFile_FromString.
8261
4e9868d4
SM
82622017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8263
8264 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8265 minus_one_ptid and null_ptid.
8266
9bf2a700
PA
82672017-04-05 Pedro Alves <palves@redhat.com>
8268
8269 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8270 * configure: Regenerate.
8271
a121b7c1
PA
82722017-04-05 Pedro Alves <palves@redhat.com>
8273
8274 * ada-exp.y (yyerror): Constify.
8275 * ada-lang.c (bound_name, get_selections)
8276 (ada_variant_discrim_type)
8277 (ada_variant_discrim_name, ada_value_struct_elt)
8278 (ada_lookup_struct_elt_type, is_unchecked_variant)
8279 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8280 (catch_ada_exception_command_split)
8281 (catch_ada_assert_command_split, catch_assert_command)
8282 (ada_op_name): Constify.
8283 * ada-lang.h (ada_yyerror, get_selections)
8284 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8285 * arc-tdep.c (arc_print_frame_cache): Constify.
8286 * arm-tdep.c (arm_skip_stub): Constify.
8287 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8288 (gen_aggregate_elt_ref): Constify.
8289 * bcache.c (print_bcache_statistics): Constify.
8290 * bcache.h (print_bcache_statistics): Constify.
8291 * break-catch-throw.c (catch_exception_command_1):
8292 * breakpoint.c (struct ep_type_description::description):
8293 Constify.
8294 (add_solib_catchpoint): Constify.
8295 (catch_fork_command_1): Add cast.
8296 (add_catch_command): Constify.
8297 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8298 Constify.
8299 * bsd-uthread.c (bsd_uthread_state): Constify.
8300 * buildsym.c (patch_subfile_names): Constify.
8301 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8302 Constify.
8303 * c-exp.y (yyerror): Constify.
8304 (token::oper): Constify.
8305 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8306 * c-varobj.c (cplus_describe_child): Constify.
8307 * charset.c (find_charset_names): Add cast.
8308 (find_charset_names): Constify array and add const_cast.
8309 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8310 (edit_command): Constify.
8311 * cli/cli-decode.c (lookup_cmd): Constify.
8312 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8313 Constify.
8314 (struct dump_context): Constify.
8315 (add_dump_command, restore_command): Constify.
8316 * cli/cli-script.c (get_command_line): Constify.
8317 * cli/cli-script.h (get_command_line): Constify.
8318 * cli/cli-utils.c (check_for_argument): Constify.
8319 * cli/cli-utils.h (check_for_argument): Constify.
8320 * coff-pe-read.c (struct read_pe_section_data): Constify.
8321 * command.h (lookup_cmd): Constify.
8322 * common/print-utils.c (decimal2str): Constify.
8323 * completer.c (gdb_print_filename): Constify.
8324 * corefile.c (set_gnutarget): Constify.
8325 * cp-name-parser.y (yyerror): Constify.
8326 * cp-valprint.c (cp_print_class_member): Constify.
8327 * cris-tdep.c (cris_register_name, crisv32_register_name):
8328 Constify.
8329 * d-exp.y (yyerror): Constify.
8330 (struct token::oper): Constify.
8331 * d-lang.h (d_yyerror): Constify.
8332 * dbxread.c (struct header_file_location::name): Constify.
8333 (add_old_header_file, add_new_header_file, last_function_name)
8334 (dbx_next_symbol_text, add_bincl_to_list)
8335 (find_corresponding_bincl_psymtab, set_namestring)
8336 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8337 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8338 * defs.h (command_line_input, print_address_symbolic)
8339 (deprecated_readline_begin_hook): Constify.
8340 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8341 Constify.
8342 * event-top.c (handle_line_of_input): Constify and add cast.
8343 * exceptions.c (catch_errors): Constify.
8344 * exceptions.h (catch_errors): Constify.
8345 * expprint.c (print_subexp_standard, op_string, op_name)
8346 (op_name_standard, dump_raw_expression, dump_raw_expression):
8347 * expression.h (op_name, op_string, dump_raw_expression):
8348 Constify.
8349 * f-exp.y (yyerror): Constify.
8350 (struct token::oper): Constify.
8351 (struct f77_boolean_val::name): Constify.
8352 * f-lang.c (f_word_break_characters): Constify.
8353 * f-lang.h (f_yyerror): Constify.
8354 * fork-child.c (fork_inferior): Add cast.
8355 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8356 (new_variant): Constify.
8357 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8358 * gdbarch.c: Regenerate.
8359 * gdbcore.h (set_gnutarget): Constify.
8360 * go-exp.y (yyerror): Constify.
8361 (token::oper): Constify.
8362 * go-lang.h (go_yyerror): Constify.
8363 * go32-nat.c (go32_sysinfo): Constify.
8364 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8365 * guile/scm-cmd.c (cmdscm_function): Constify.
8366 * guile/scm-param.c (pascm_param_value): Constify.
8367 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8368 (h8300sx_register_name): Constify.
8369 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8370 Constify.
8371 * ia64-tdep.c (ia64_register_names): Constify.
8372 * infcmd.c (construct_inferior_arguments): Constify.
8373 (path_command, attach_post_wait): Constify.
8374 * language.c (show_range_command, show_case_command)
8375 (unk_lang_error): Constify.
8376 * language.h (language_defn::la_error)
8377 (language_defn::la_name_of_this): Constify.
8378 * linespec.c (decode_line_2): Constify.
8379 * linux-thread-db.c (thread_db_err_str): Constify.
8380 * lm32-tdep.c (lm32_register_name): Constify.
8381 * m2-exp.y (yyerror): Constify.
8382 * m2-lang.h (m2_yyerror): Constify.
8383 * m32r-tdep.c (m32r_register_names): Constify and make static.
8384 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8385 * m88k-tdep.c (m88k_register_name): Constify.
8386 * macroexp.c (appendmem): Constify.
8387 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8388 (upgrade_type, parse_external, parse_partial_symbols)
8389 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8390 (new_symbol): Constify.
8391 * memattr.c (mem_info_command): Constify.
8392 * mep-tdep.c (register_name_from_keyword): Constify.
8393 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8394 Constify.
8395 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8396 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8397 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8398 cast.
8399 (mi_execute_async_cli_command): Constify.
8400 * mips-tdep.c (mips_register_name): Constify.
8401 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8402 (am33_register_name, am33_2_register_name)
8403 * moxie-tdep.c (moxie_register_names): Constify.
8404 * nat/linux-osdata.c (osdata_type): Constify fields.
8405 * nto-tdep.c (nto_parse_redirection): Constify.
8406 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8407 (lookup_child_selector): Constify.
8408 (objc_methcall::name): Constify.
8409 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8410 (lookup_struct_typedef): Constify.
8411 * objfiles.c (pc_in_section): Constify.
8412 * objfiles.h (pc_in_section): Constify.
8413 * p-exp.y (struct token::oper): Constify.
8414 (yyerror): Constify.
8415 * p-lang.h (pascal_yyerror): Constify.
8416 * parser-defs.h (op_name_standard): Constify.
8417 (op_print::string): Constify.
8418 (exp_descriptor::op_name): Constify.
8419 * printcmd.c (print_address_symbolic): Constify.
8420 * psymtab.c (print_partial_symbols): Constify.
8421 * python/py-breakpoint.c (stop_func): Constify.
8422 (bppy_get_expression): Constify.
8423 * python/py-cmd.c (cmdpy_completer::name): Constify.
8424 (cmdpy_function): Constify.
8425 * python/py-event.c (evpy_add_attribute)
8426 (gdbpy_initialize_event_generic): Constify.
8427 * python/py-event.h (evpy_add_attribute)
8428 (gdbpy_initialize_event_generic): Constify.
8429 * python/py-evts.c (add_new_registry): Constify.
8430 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8431 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8432 * python/py-inferior.c (get_buffer): Add cast.
8433 * python/py-param.c (parm_constant::name): Constify.
8434 * python/py-unwind.c (fprint_frame_id): Constify.
8435 * python/python.c (gdbpy_parameter_value): Constify.
8436 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8437 * remote.c (memory_packet_config::name): Constify.
8438 (show_packet_config_cmd, remote_write_bytes)
8439 (remote_buffer_add_string):
8440 * reverse.c (exec_reverse_once): Constify.
8441 * rs6000-tdep.c (variant::name, variant::description): Constify.
8442 * rust-exp.y (rustyyerror): Constify.
8443 * rust-lang.c (rust_op_name): Constify.
8444 * rust-lang.h (rustyyerror): Constify.
8445 * serial.h (serial_ops::name): Constify.
8446 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8447 (sh_sh3e_register_name, sh_sh2e_register_name)
8448 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8449 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8450 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8451 (sh_sh4al_dsp_register_name): Constify.
8452 * sh64-tdep.c (sh64_register_name): Constify.
8453 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8454 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8455 * stabsread.c (patch_block_stabs, read_type_number)
8456 (ref_map::stabs, ref_add, process_reference)
8457 (symbol_reference_defined, define_symbol, define_symbol)
8458 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8459 (read_one_struct_field, read_struct_fields, read_baseclasses)
8460 (read_tilde_fields, read_struct_type, read_array_type)
8461 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8462 (read_huge_number, read_range_type, read_args, common_block_start)
8463 (find_name_end): Constify.
8464 * stabsread.h (common_block_start, define_symbol)
8465 (process_one_symbol, symbol_reference_defined, ref_add):
8466 * symfile.c (get_section_index, add_symbol_file_command):
8467 * symfile.h (get_section_index): Constify.
8468 * target-descriptions.c (tdesc_type::name): Constify.
8469 (tdesc_free_type): Add cast.
8470 * target.c (find_default_run_target):
8471 (add_deprecated_target_alias, find_default_run_target)
8472 (target_announce_detach): Constify.
8473 (do_option): Constify.
8474 * target.h (add_deprecated_target_alias): Constify.
8475 * thread.c (print_thread_info_1): Constify.
8476 * top.c (deprecated_readline_begin_hook, command_line_input):
8477 Constify.
8478 (init_main): Add casts.
8479 * top.h (handle_line_of_input): Constify.
8480 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8481 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8482 (tfind_command): Rename to ...
8483 (tfind_command_1): ... this and constify.
8484 (tfind_command): New function.
8485 (tfind_end_command, tfind_start_command): Adjust.
8486 (encode_source_string): Constify.
8487 * tracepoint.h (encode_source_string): Constify.
8488 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8489 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8490 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8491 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8492 * tui/tui-win.c (parse_scrolling_args): Constify.
8493 * tui/tui-windata.c (tui_erase_data_content): Constify.
8494 * tui/tui-windata.h (tui_erase_data_content): Constify.
8495 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8496 * tui/tui.c (tui_enable): Add cast.
8497 * utils.c (defaulted_query): Constify.
8498 (init_page_info): Add cast.
8499 (puts_debug, subset_compare): Constify.
8500 * utils.h (subset_compare): Constify.
8501 * varobj.c (varobj_format_string): Constify.
8502 * varobj.h (varobj_format_string): Constify.
8503 * vax-tdep.c (vax_register_name): Constify.
8504 * windows-nat.c (windows_detach): Constify.
8505 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8506 * xml-support.c (gdb_xml_end_element): Constify.
8507 * xml-tdesc.c (tdesc_start_reg): Constify.
8508 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8509 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8510 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8511
995816ba
PA
85122017-04-05 Pedro Alves <palves@redhat.com>
8513
8514 * proc-api.c (struct trans): Constify.
8515 (procfs_note): Constify.
8516 * proc-events.c (struct trans, syscall_table):
8517 * proc-flags.c (struct trans): Constify.
8518 * proc-utils.h (procfs_note): Constify.
8519 * proc-why.c (struct trans): Constify.
8520 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8521 (procfs_detach): Constify.
8522 * sol-thread.c (struct string_map): Constify.
8523 (td_err_string, td_state_string): Constify.
8524
3e83a920
PA
85252017-04-05 Pedro Alves <palves@redhat.com>
8526
8527 * proc-api.c (procfs_filename): Don't initialize
8528 procfs_filename.
8529 (prepare_to_trace): Assume procfs_filename is non-NULL.
8530 (_initialize_proc_api): Give procfs_filename a default value here.
8531
63160a43
PA
85322017-04-05 Pedro Alves <palves@redhat.com>
8533
8534 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8535 'cond_string' parameter.
8536 (extract_exception_regexp): Constify 'string' parameter.
8537 (catch_exception_command_1): Constify.
8538 * breakpoint.c (init_catchpoint)
8539 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8540 parameter.
8541 (ep_parse_optional_if_clause, catch_fork_command_1)
8542 (catch_exec_command_1): Constify.
8543 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8544 parameter.
8545 (ep_parse_optional_if_clause): Constify.
8546 * cli/cli-utils.c (remove_trailing_whitespace)
8547 (check_for_argument): Constify.
8548 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8549 non-const overload.
8550 (check_for_argument): Likewise.
8551
9b2eba3d
PA
85522017-04-05 Pedro Alves <palves@redhat.com>
8553
8554 * event-top.c (command_line_handler): Add cast to execute_command
8555 call.
8556 * record-btrace.c (cmd_record_btrace_bts_start)
8557 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8558 (cmd_record_btrace_start): Add cast to execute_command call.
8559 * record-full.c (record_full_goto_insn):
8560 * record.c (record_start, record_stop): Add cast to
8561 execute_command_to_string calls.
8562 (cmd_record_start): Add cast to execute_command calls.
8563
2adadf51
PA
85642017-04-05 Pedro Alves <palves@redhat.com>
8565
8566 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8567 static inline function.
8568 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8569 array and use gdb_PyArg_ParseTupleAndKeywords.
8570 * python/py-cmd.c (cmdpy_init): Likewise.
8571 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8572 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8573 (infpy_search_memory): Likewise.
8574 * python/py-objfile.c (objfpy_add_separate_debug_file)
8575 (gdbpy_lookup_objfile): Likewise.
8576 * python/py-symbol.c (gdbpy_lookup_symbol)
8577 (gdbpy_lookup_global_symbol): Likewise.
8578 * python/py-type.c (gdbpy_lookup_type): Likewise.
8579 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8580 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8581 Likewise.
8582
0d1f4ceb
PA
85832017-04-05 Pedro Alves <palves@redhat.com>
8584
8585 * python/python-internal.h (gdb_PyGetSetDef): New type.
8586 * python/py-block.c (block_object_getset)
8587 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8588 * python/py-event.c (event_object_getset)
8589 (finish_breakpoint_object_getset): Likewise.
8590 * python/py-inferior.c (inferior_object_getset): Likewise.
8591 * python/py-infthread.c (thread_object_getset): Likewise.
8592 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8593 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8594 * python/py-objfile.c (objfile_getset): Likewise.
8595 * python/py-progspace.c (pspace_getset): Likewise.
8596 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8597 Likewise.
8598 * python/py-record.c (recpy_record_getset): Likewise.
8599 * python/py-symbol.c (symbol_object_getset): Likewise.
8600 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8601 Likewise.
8602 * python/py-type.c (type_object_getset, field_object_getset):
8603 Likewise.
8604 * python/py-value.c (value_object_getset): Likewise.
8605
4d759979
PA
86062017-04-05 Pedro Alves <palves@redhat.com>
8607
8608 * python/python-internal.h (gdb_PyObject_CallMethod)
8609 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8610 New functions.
8611 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8612 (PySys_GetObject, PySys_SetPath): New macros.
8613
fdf9e36f
PA
86142017-04-05 Pedro Alves <palves@redhat.com>
8615
8616 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8617 info_osdata_command.
8618 * osdata.c (info_osdata_command): Rename to ...
8619 (info_osdata): ... this. Constify 'type' parameter, and remove
8620 the 'from_tty' parameter. Accept NULL TYPE.
8621 (info_osdata_command): New function.
8622 * osdata.h (info_osdata_command): Remove declaration.
8623 (info_osdata): New declaration.
8624
9f33b8b7
PA
86252017-04-05 Pedro Alves <palves@redhat.com>
8626
8627 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8628 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8629 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8630 parameter.
8631 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8632 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8633 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8634 parameter.
8635 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8636 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8637 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8638 (mi_cmd_file_list_exec_source_files)
8639 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8640 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8641 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8642 parameter.
8643 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8644 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8645 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8646 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8647 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8648 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8649 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8650 'command' parameter.
8651 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8652 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8653 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8654 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8655 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8656 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8657 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8658 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8659 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8660 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8661 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8662 parameter.
8663 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8664 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8665 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8666 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8667 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8668 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8669 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8670 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8671 (mi_cmd_data_list_changed_registers)
8672 (mi_cmd_data_write_register_values)
8673 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8674 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8675 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8676 (mi_cmd_list_features, mi_cmd_list_target_features)
8677 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8678 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8679 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8680 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8681 (mi_cmd_trace_frame_collected): Constify 'command'
8682 parameter.
8683 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8684 'command' parameter.
8685
67cb5b2d
PA
86862017-04-05 Pedro Alves <palves@redhat.com>
8687
8688 * ada-lang.c (ada_completer_word_break_characters): Now a const
8689 array.
8690 (ada_get_gdb_completer_word_break_characters): Constify.
8691 * completer.c (gdb_completer_command_word_break_characters)
8692 (gdb_completer_file_name_break_characters)
8693 (gdb_completer_quote_characters): Now const arrays.
8694 (get_gdb_completer_quote_characters): Constify.
8695 (set_rl_completer_word_break_characters): New function.
8696 (set_gdb_completion_word_break_characters)
8697 (complete_line_internal): Use it.
8698 * completer.h (get_gdb_completer_quote_characters): Constify.
8699 (set_rl_completer_word_break_characters): Declare.
8700 * f-lang.c (f_word_break_characters): Constify.
8701 * language.c (default_word_break_characters): Constify.
8702 * language.h (language_defn::la_word_break_characters): Constify.
8703 (default_word_break_characters): Constify.
8704 * top.c (init_main): Use set_rl_completer_word_break_characters.
8705
7a114964
PA
87062017-04-05 Pedro Alves <palves@redhat.com>
8707
8708 * aix-thread.c (aix_thread_pid_to_str)
8709 (aix_thread_extra_thread_info): Constify.
8710 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8711 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8712 (bsd_uthread_pid_to_str): Constify.
8713 * corelow.c (core_pid_to_str): Constify.
8714 * darwin-nat.c (darwin_pid_to_str): Constify.
8715 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8716 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8717 Constify.
8718 * gnu-nat.c (gnu_pid_to_str): Constify.
8719 * go32-nat.c (go32_pid_to_str): Constify.
8720 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8721 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8722 * inferior.c (inferior_pid_to_str): Constify.
8723 * linux-nat.c (linux_nat_pid_to_str): Constify.
8724 * linux-tdep.c (linux_core_pid_to_str): Constify.
8725 * linux-thread-db.c (thread_db_pid_to_str)
8726 (thread_db_extra_thread_info): Constify.
8727 * nto-tdep.c (nto_extra_thread_info): Constify.
8728 * nto-tdep.h (nto_extra_thread_info): Constify.
8729 * obsd-nat.c (obsd_pid_to_str): Constify.
8730 * procfs.c (procfs_pid_to_str): Constify.
8731 * ravenscar-thread.c (ravenscar_extra_thread_info)
8732 (ravenscar_pid_to_str): Constify.
8733 * remote-sim.c (gdbsim_pid_to_str): Constify.
8734 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8735 Constify.
8736 * sol-thread.c (solaris_pid_to_str): Constify.
8737 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8738 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8739 * target.c (default_pid_to_str, target_pid_to_str)
8740 (normal_pid_to_str, default_pid_to_str): Constify.
8741 * target.h (target_ops::to_pid_to_str)
8742 (target_ops::to_extra_thread_info): Constify.
8743 (target_pid_to_str, normal_pid_to_str): Constify.
8744 * windows-nat.c (windows_pid_to_str): Constify.
8745 * gdbarch.sh (core_pid_to_str): Constify.
8746 * target-delegates.c: Regenerate.
8747 * gdbarch.h, gdbarch.c: Regenerate.
8748
69bbf465
PA
87492017-04-05 Pedro Alves <palves@redhat.com>
8750
8751 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8752 the memory of the temporary warning_pre_print override.
8753 * utils.c (warning_pre_print): Constify.
8754 * utils.h (warning_pre_print): Constify.
8755
be47f9e8
PA
87562017-04-05 Pedro Alves <palves@redhat.com>
8757
8758 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8759 (shell_command): New function.
8760 (make_command): Use std::string.
8761 (init_cli_cmds): Register shell_command instead of shell_escape.
8762
bde6261a
PA
87632017-04-05 Pedro Alves <palves@redhat.com>
8764
8765 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8766 * tracepoint.c (default_collect): Don't initialize.
8767
b38ef47f
PA
87682017-04-05 Pedro Alves <palves@redhat.com>
8769
8770 * macroexp.c (macro_buffer::shared): Now a bool.
8771 (init_buffer): Update.
8772 (init_shared_buffer): Constify 'addr' parameter.
8773 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8774 casts.
8775
f995bbe8
PA
87762017-04-05 Pedro Alves <palves@redhat.com>
8777
8778 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8779 * disasm.c (set_disassembler_options): Constify local.
8780 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8781
4a596fe2
SDJ
87822017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8783
8784 PR gdb/21352
8785 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8786 option.
8787
2cad08ea
YQ
87882017-04-05 Yao Qi <yao.qi@linaro.org>
8789
8790 * frame.c (frame_unwind_register_unsigned): Call
8791 frame_unwind_register_value.
8792
55a98976
YQ
87932017-04-05 Yao Qi <yao.qi@linaro.org>
8794
8795 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8796 Use gdb_test_multiple, and don't match anchor.
8797
4ac40124
PA
87982017-04-05 Pedro Alves <palves@redhat.com>
8799
8800 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8801 (Write After Approval): Remove Simon Marchi.
8802
c053b654
PA
88032017-04-05 Pedro Alves <palves@redhat.com>
8804
8805 * common/gdb_optional.h (optional::optional): Make constexpr and
8806 initialize m_dummy.
8807
4c7bf4f9
JB
88082017-04-04 John Baldwin <jhb@FreeBSD.org>
8809
8810 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8811 (amd64fbsd_jmp_buf_reg_offset): Remove.
8812 (amd64fbsd_supply_uthread): Remove function.
8813 (amd64fbsd_collect_uthread): Remove function.
8814 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8815 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8816 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8817 (fbsd-nat.c): Update comment.
8818 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8819 (i386fbsd_jmp_buf_reg_offset): Remove.
8820 (i386fbsd_supply_uthread): Remove function.
8821 (i386fbsd_collect_uthread): Remove function.
8822 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8823
1e1a8bef
JB
88242017-04-04 John Baldwin <jhb@FreeBSD.org>
8825
8826 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8827 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8828 * NEWS: Mention that support for FreeBSD/alpha was removed.
8829 * alpha-fbsd-tdep.c: Delete file.
8830 * config/alpha/fbsd.mh: Delete file.
8831 * configure.host: Delete alpha*-*-freebsd* and
8832 alpha*-*-kfreebsd*-gnu.
8833 * configure.tgt: Delete alpha*-*-freebsd* and
8834 alpha*-*-kfreebsd*-gnu.
8835
49907934
JB
88362017-04-04 John Baldwin <jhb@FreeBSD.org>
8837
8838 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8839 amd64bsd_store_inferior_registers): Use ptid from regcache.
8840
6f77053d
PA
88412017-04-04 Pedro Alves <palves@redhat.com>
8842
8843 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8844 data fields, make them private and add "m_" prefixes.
8845 (lnp_state_machine::lnp_state_machine): New ctor.
8846 (record_line, check_line_address, handle_set_discriminator)
8847 (handle_set_address, handle_advance_pc, handle_special_opcode)
8848 (handle_advance_line, handle_set_file, handle_negate_stmt)
8849 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8850 (end_sequence, advance_line): New methods.
8851 (m_gdbarch, m_record_lines_p): New fields.
8852 (lnp_reader_state): Delete.
8853 (dwarf_record_line): Rename to ...
8854 (lnp_state_machine::record_line): ... adjust.
8855 (init_lnp_state_machine): Delete.
8856 (lnp_state_machine::lnp_state_machine): New.
8857 (check_line_address): Rename to ...
8858 (lnp_state_machine::check_line_address): This.
8859 (dwarf_decode_lines_1): Remove reference to "reader_state".
8860 Adjust lnp_state_machine having a non-default ctor. Use bool.
8861 State machine internal state manipulation moved to
8862 lnp_state_machine methods.
8863
9c541725
PA
88642017-04-04 Pedro Alves <palves@redhat.com>
8865
8866 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8867 unittests/offset-type-selftests.c.
8868 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8869 * common/offset-type.h: New file.
8870 * common/preprocessor.h: New file.
8871 * common/traits.h: New file.
8872 * common/valid-expr.h: New file.
8873 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8874 sect_offset and cu_offset strong typedefs throughout.
8875 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8876 typedefs throughout.
8877 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8878 sect_offset and cu_offset strong typedefs throughout.
8879 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8880 typedefs throughout.
8881 * gdbtypes.h: Include "common/offset-type.h".
8882 (cu_offset): Now an offset type (strong typedef) instead of a
8883 struct.
8884 (sect_offset): Likewise.
8885 (union call_site_parameter_u): Rename "param_offset" field to
8886 "param_cu_off".
8887 * unittests/offset-type-selftests.c: New file.
8888
ecfb656c
PA
88892017-04-04 Pedro Alves <palves@redhat.com>
8890
8891 * common/underlying.h: New file.
8892 * dwarf2read.c: Include "common/gdb_optional.h" and
8893 "common/underlying.h".
8894 (dir_index, file_name_index): New types.
8895 (file_entry): Use them.
8896 (file_entry::include): Use to_underlying.
8897 (line_header::add_file_name): Use dir_index.
8898 (read_formatted_entries): Use gdb::optional. Read form before
8899 writting to file_entry.
8900 (dwarf_decode_line_header): Use dir_index.
8901 (lnp_state_machine::current_file): Use to_underlying.
8902 (lnp_state_machine::file): Change type to file_name_index.
8903 (dwarf_record_line): Use to_underlying.
8904 (init_lnp_state_machine): Use file_name_index.
8905 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8906
d194f1fe
PA
89072017-04-04 Pedro Alves <palves@redhat.com>
8908
8909 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8910 operator bool, has_value and get methods.
8911
fff8551c
PA
89122017-04-04 Pedro Alves <palves@redhat.com>
8913
8914 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8915 fields.
8916 (line_header): Initialize all data fields. Change type of
8917 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8918 Change type of include_dirs to std::vector<const char *>. Remove
8919 num_include_dirs, include_dirs_size. Change type of file_names to
8920 std::vector<file_entry>. Remove num_file_names, file_names_size.
8921 (line_header::line_header): New.
8922 (line_header::add_include_dir, line_header::add_file_name): New
8923 methods.
8924 (line_header::include_dir_at): Remove NULL check.
8925 (line_header::file_name_at): Add const overload.
8926 (line_header_up): New unique_ptr typedef.
8927 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8928 std::vector. Remove free_line_header call.
8929 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8930 free_line_header call.
8931 (free_cu_line_header): Delete.
8932 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8933 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8934 Adjust to use std::vector.
8935 (free_line_header): Delete.
8936 (free_line_header_voidp): Use delete.
8937 (add_include_dir): Replace with ...
8938 (line_header::add_include_dir): ... this method. Use std::vector.
8939 (add_file_name): Replace with ...
8940 (line_header::add_file_name): ... this method. Use std::vector.
8941 (add_include_dir_stub): Delete.
8942 (read_formatted_entries): Remove memset.
8943 (dwarf_decode_line_header): Return a line_header_up instead of a
8944 raw pointer. Remove cleanup handling. Pass lambdas to
8945 read_formatted_entries. Adjust to use line_header methods.
8946 (dwarf_decode_lines_1): Adjust to use line_header methods.
8947 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8948 use std::vector.
8949
d62a8ae2
SM
89502017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8951
8952 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8953 instead of struct ptid.
8954
db3a1dc7
AH
89552017-05-04 Alan Hayward <alan.hayward@arm.com>
8956
8957 * frame.c (get_frame_register_bytes): Unwind using value.
8958 (put_frame_register_bytes): Likewise.
8959
b1b45502
IB
89602017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8961
8962 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8963 aggregate-like.
8964
ec13808e
JK
89652017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8966
8967 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8968
12316564
YQ
89692017-03-29 Yao Qi <yao.qi@linaro.org>
8970
8971 * gdbthread.h (struct thread_info): Declare constructor and
8972 destructor. Add some in-class member initializers.
8973 * thread.c (free_thread): Remove.
8974 (init_thread_list): Call delete instead of free_thread.
8975 (new_thread): Call thread_info constructor.
8976 (thread_info::thread_info): New function.
8977 (thread_info::~thread_info): New function.
8978 (delete_thread_1): Call delete instead of free_thread.
8979 (make_cleanup_restore_current_thread): Move tp and frame to
8980 inner block.
8981
fe5f7374
AK
89822017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8983
8984 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8985 (arc_skip_prologue): Likewise.
8986 (arc_make_frame_cache): Likewise.
8987 (arc_pv_get_operand): New function.
8988 (arc_is_in_prologue): Likewise.
8989 (arc_analyze_prologue): Likewise.
8990 (arc_print_frame_cache): Likewise.
8991 (MAX_PROLOGUE_LENGTH): New constant.
8992
eea78757
AK
89932017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8994
8995 * configure.tgt: Add arc-insn.o.
8996 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8997 (dump_arc_instruction_command): New function.
8998 (arc_fprintf_disasm): Likewise.
8999 (arc_disassemble_info): Likewise.
9000 (arc_insn_get_operand_value): Likewise.
9001 (arc_insn_get_operand_value_signed): Likewise.
9002 (arc_insn_get_memory_base_reg): Likewise.
9003 (arc_insn_get_memory_offset): Likewise.
9004 (arc_insn_get_branch_target): Likewise.
9005 (arc_insn_dump): Likewise.
9006 (arc_insn_get_linear_next_pc): Likewise.
9007 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9008 (arc_disassemble_info): Likewise.
9009 (arc_insn_get_branch_target): Likewise.
9010 (arc_insn_get_linear_next_pc): Likewise.
9011 * NEWS: Mention new "maint print arc arc-instruction".
9012
3be78afd
AK
90132017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9014
9015 * arc-tdep (maintenance_print_arc_list): New variable.
9016 (maintenance_print_arc_command): New function.
9017
296ec4fa
AK
90182017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9019
9020 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9021 Add "limm" and "reserved".
9022 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9023 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9024 * arc-tdep.h (arc_regnum): Likewise.
9025
f74f865e
MF
90262017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9027
9028 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9029 for THREADPTR register.
9030 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9031 register.
9032 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9033 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9034 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9035
0d0bf81a
MF
90362017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9037
9038 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9039 registers above gdbarch_num_regs (gdbarch) as privileged in
9040 call0 ABI.
9041
0ce4291e
MF
90422017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9043
9044 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9045 for a single specified register or for all registers in
9046 a0_base..a0_base + C0_NREGS range.
9047 (supply_gregset_reg): Call regcache_raw_supply for a single
9048 specified register or for all registers in a0_base..a0_base +
9049 C0_NREGS range.
9050
c56054f9
MF
90512017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9052
9053 * arch/xtensa.h (C0_NREGS): Add definition.
9054 * xtensa-tdep.c (C0_NREGS): Remove definition.
9055
a4398628
MF
90562017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9057
9058 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9059 Drop xtensa_default_isa initialization.
9060 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9061
8c43009f
PA
90622017-03-27 Pedro Alves <palves@redhat.com>
9063
9064 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9065 (file_entry::include_dir): New method.
9066 (line_header::include_dir_at, line_header::file_name_at): New
9067 methods.
9068 (setup_type_unit_groups, setup_type_unit_groups)
9069 (psymtab_include_file_name): Simplify using the new methods.
9070 (lnp_state_machine) <the_line_header>: New field.
9071 <file>: Add comment.
9072 (lnp_state_machine::current_file): New method.
9073 (dwarf_record_line): Simplify using the new methods.
9074 (init_lnp_state_machine): Initialize the "the_line_header" field.
9075 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9076 Simplify using the new methods.
9077
a7e80b9e
PA
90782017-03-27 Pedro Alves <palves@redhat.com>
9079
9080 * cp-name-parser.y (make_empty): Delete.
9081 (demangler_special, nested_name, ptr_operator, array_indicator)
9082 (direct_declarator, declarator_1): Use fill_comp instead of
9083 make_empty.
9084
21047726
PA
90852017-03-27 Pedro Alves <palves@redhat.com>
9086
9087 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9088 to ATTRIBUTE_PRINTF.
9089 * solib-target.c (library_list_start_list): Print "string" not
9090 "version".
9091 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9092 gdb_xml_error call.
9093
d721ba37
PA
90942017-03-27 Pedro Alves <palves@redhat.com>
9095
9096 * dwarf2read.c (struct file_and_directory): New.
9097 (dwarf2_get_dwz_file): Adjust to use std::string.
9098 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9099 (find_file_and_directory): Adjust to return a file_and_directory
9100 object.
9101 (read_file_scope): Adjust to use file_and_directory. Remove
9102 make_cleanup/do_cleanups calls.
9103 (open_and_init_dwp_file): Adjust to use std::string. Remove
9104 make_cleanup/do_cleanups calls.
9105 * python/python.c (do_start_initialization): Adjust to ldirname
9106 returning a std::string.
9107 * utils.c (ldirname): Now returns a std::string.
9108 * utils.h (ldirname): Change return type to std::string.
9109 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9110 returning a std::string.
9111 * xml-tdesc.c (file_read_description_xml): Likewise.
9112
ed771251
AH
91132017-03-24 Alan Hayward <alan.hayward@arm.com>
9114
9115 * regcache.c (regcache_debug_print_register): New function.
9116 * regcache.h (regcache_debug_print_register): New declaration.
9117 * target.c (debug_print_register): Remove.
9118 (target_fetch_registers): Call regcache_debug_print_register.
9119 (target_store_registers): Likewise.
9120
568c1b9f
PB
91212017-03-24 Pádraig Brady <pbrady@fb.com>
9122
9123 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9124 reference beyond the 'lh->include_dirs' array before accessing to
9125 it.
9126 (psymtab_include_file_name): Likewise.
9127 (dwarf_decode_lines_1): Likewise.
9128 (dwarf_decode_lines): Likewise.
9129 (file_file_name): Likewise.
9130
3e00d44f
SM
91312017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9132
9133 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9134 inferior_ptid.
9135 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9136 ps_lsetfpregs): Likewise.
9137 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9138 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9139 ps_lsetfpregs): Likewise.
9140 * target.c (target_fetch_registers, target_store_registers):
9141 Remove asserts.
9142
077ae656
AH
91432017-03-23 Alan Hayward <alan.hayward@arm.com>
9144
9145 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9146
1e2b521d
YQ
91472017-03-23 Yao Qi <yao.qi@linaro.org>
9148
9149 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9150 (_initialize_aarch64_tdep): Register it.
9151 (aarch64_record_load_store): Handle PRFM instruction.
9152 (aarch64_process_record_test): New function.
9153
33877125
YQ
91542017-03-23 Yao Qi <yao.qi@linaro.org>
9155
9156 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9157 indentation.
9158
a0eef940
YQ
91592017-03-23 Yao Qi <yao.qi@linaro.org>
9160
9161 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9162
3f2a3564
PR
91632017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9164
9165 python/python.c (do_start_initialization): Fix memory leak.
9166
b67aeab0
SM
91672017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9168
9169 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9170 using get_ptrace_pid.
9171 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9172 inferior_ptid.
9173 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9174 inferior_ptid instead of pid.
9175
ffdbe864
YQ
91762017-03-22 Yao Qi <yao.qi@linaro.org>
9177
9178 * aarch64-tdep.c: Wrap locally used classes in anonymous
9179 namespace.
9180 * arm-tdep.c: Likewise.
9181 * linespec.c: Likewise.
9182 * ui-out.c: Likewise.
9183
9d736fbf
JG
91842017-03-22 Jonah Graham <jonah@kichwacoders.com>
9185
9186 PR gdb/19637
9187 * python/lib/gdb/printer/bound_registers.py: Import sys.
9188
3de88e9a
SM
91892017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9190
9191 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9192 windows_thread_info parameter and use it instead of
9193 current_thread.
9194 (windows_fetch_inferior_registers): Don't set current_thread,
9195 pass the thread to do_windows_fetch_inferior_registers. Use
9196 ptid from regcache instead of inferior_ptid.
9197 (do_windows_store_inferior_registers): Add windows_thread_info
9198 parameter and use it instead of current_thread.
9199 (windows_store_inferior_registers): Don't set current_thread,
9200 pass the thread to do_windows_store_inferior_registers. Use
9201 ptid from regcache instead of inferior_ptid.
9202
0e7b8f61
SM
92032017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9204
9205 * ser-mingw.c (ser_windows_raw): Remove reference to
9206 struct serial::current_timeout.
9207
5badf10a
IR
92082017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9209
9210 PR tdep/20928
9211 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9212 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9213 (sparc64_fsr_type): Fix %fsr decoding.
9214
cee59b3f
TW
92152017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9216
9217 * python/py-record-btrace.c (btpy_insn_data): Change return type
9218 for Python 2.
9219
639a9038
SM
92202017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9221
9222 * spu-linux-nat.c (spu_fetch_inferior_registers,
9223 spu_store_inferior_registers): Use ptid from regcache, set and
9224 restore inferior_ptid.
9225 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9226 Likewise.
9227
bcc0c096
SM
92282017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9229
9230 * i386-linux-nat.c (fetch_register, store_register,
9231 i386_linux_fetch_inferior_registers,
9232 i386_linux_store_inferior_registers): Use ptid from regcache.
9233 * ia64-linux-nat.c (ia64_linux_fetch_register,
9234 ia64_linux_store_register): Likewise.
9235 * inf-ptrace.c (inf_ptrace_fetch_register,
9236 inf_ptrace_store_register): Likewise.
9237 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9238 m32r_linux_store_inferior_registers): Likewise.
9239 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9240 m68kbsd_store_inferior_registers): Likewise.
9241 * m68k-linux-nat.c (fetch_register, store_register,
9242 m68k_linux_fetch_inferior_registers,
9243 m68k_linux_store_inferior_registers): Likewise.
9244 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9245 m88kbsd_store_inferior_registers): Likewise.
9246 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9247 mips_fbsd_store_inferior_registers): Likewise.
9248 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9249 mips64_linux_regsets_store_registers): Likewise.
9250 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9251 mipsnbsd_store_inferior_registers): Likewise.
9252 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9253 mips64obsd_store_inferior_registers): Likewise.
9254 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9255 Likewise.
9256 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9257 ppcfbsd_store_inferior_registers): Likewise.
9258 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9259 ppc_linux_store_inferior_registers): Likewise.
9260 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9261 ppcnbsd_store_inferior_registers): Likewise.
9262 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9263 ppcobsd_store_registers): Likewise.
9264 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9265 Likewise.
9266 * ravenscar-thread.c (ravenscar_fetch_registers,
9267 ravenscar_store_registers, ravenscar_prepare_to_store):
9268 Likewise.
9269 * record-btrace.c (record_btrace_fetch_registers,
9270 record_btrace_store_registers, record_btrace_prepare_to_store):
9271 Likewise.
9272 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9273 Lookup inferior using ptid from regcache, instead of
9274 current_inferior.
9275 * remote.c (remote_fetch_registers, remote_store_registers): Use
9276 ptid from regcache.
9277 * rs6000-nat.c (fetch_register, store_register): Likewise.
9278 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9279 s390_linux_store_inferior_registers): Likewise.
9280 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9281 shnbsd_store_inferior_registers): Likewise.
9282 * sol-thread.c (sol_thread_fetch_registers,
9283 sol_thread_store_registers): Likewise.
9284 * sparc-nat.c (sparc_fetch_inferior_registers,
9285 sparc_store_inferior_registers): Likewise.
9286 * tilegx-linux-nat.c (fetch_inferior_registers,
9287 store_inferior_registers): Likewise.
9288 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9289 vaxbsd_store_inferior_registers): Likewise.
9290 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9291 store_xtregs): Likewise.
9292
c0f55cc6
AV
92932017-03-20 Artemiy Volkov <artemiyv@acm.org>
9294
9295 PR gdb/14441
9296 * NEWS: Mention support for rvalue references in GDB and python.
9297 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9298 supports both lvalue and rvalue references.
9299
15c0a2a9
AV
93002017-03-20 Artemiy Volkov <artemiyv@acm.org>
9301
9302 PR gdb/14441
9303 * gdbtypes.c (rank_one_type): Implement overloading
9304 resolution rules regarding rvalue references.
9305
aa006118
AV
93062017-03-20 Artemiy Volkov <artemiyv@acm.org>
9307
9308 PR gdb/14441
9309 * aarch64-tdep.c (aarch64_type_align)
9310 (aarch64_extract_return_value, aarch64_store_return_value): Change
9311 lvalue reference type checks to general reference type checks.
9312 * amd64-tdep.c (amd64_classify): Likewise.
9313 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9314 Likewise.
9315 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9316 (arm_store_return_value): Likewise.
9317 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9318 * c-typeprint.c (c_print_type): Likewise.
9319 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9320 (cplus_number_of_children, cplus_describe_child): Likewise.
9321 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9322 * completer.c (expression_completer): Likewise.
9323 * cp-support.c (make_symbol_overload_list_adl_namespace):
9324 Likewise.
9325 * darwin-nat-info.c (info_mach_region_command): Likewise.
9326 * dwarf2loc.c (entry_data_value_coerce_ref)
9327 (value_of_dwarf_reg_entry): Likewise.
9328 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9329 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9330 Likewise.
9331 * findvar.c (extract_typed_address, store_typed_address):
9332 Likewise.
9333 * gdbtypes.c (rank_one_type): Likewise.
9334 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9335 * infcall.c (value_arg_coerce): Likewise.
9336 * language.c (pointer_type): Likewise.
9337 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9338 Likewise.
9339 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9340 * mn10300-tdep.c (mn10300_type_align): Likewise.
9341 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9342 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9343 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9344 Likewise.
9345 * printcmd.c (print_formatted, x_command): Likewise.
9346 * python/py-type.c (typy_get_composite, typy_template_argument):
9347 Likewise.
9348 * python/py-value.c (valpy_referenced_value)
9349 (valpy_get_dynamic_type, value_has_field): Likewise.
9350 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9351 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9352 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9353 * spu-tdep.c (spu_scalar_value_p): Likewise.
9354 * symtab.c (lookup_symbol_aux): Likewise.
9355 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9356 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9357 Likewise.
9358 * valops.c (value_cast_pointers, value_cast)
9359 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9360 (value_struct_elt, value_struct_elt_bitpos)
9361 (value_find_oload_method_list, find_overload_match)
9362 (value_rtti_indirect_type): Likewise.
9363 * valprint.c (val_print_scalar_type_p, generic_val_print):
9364 Likewise.
9365 * value.c (value_actual_type, value_as_address, unpack_long)
9366 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9367 (coerce_ref): Likewise.
9368 * varobj.c (varobj_get_value_type): Likewise.
9369
3fcf899d
AV
93702017-03-20 Artemiy Volkov <artemiyv@acm.org>
9371
9372 PR gdb/14441
9373 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9374 table of constants.
9375 * python/lib/gdb/command/explore.py: Support exploring values
9376 of rvalue reference types.
9377 * python/lib/gdb/types.py: Implement get_basic_type() for
9378 rvalue reference types.
9379 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9380 constant.
9381 * python/py-value.c (valpy_getitem): Add an rvalue reference
9382 check.
9383 (valpy_reference_value): Add new parameter "refcode".
9384 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9385 New wrappers for valpy_reference_value().
9386 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9387 (gdbpy_invoke_xmethod): Likewise.
9388
4297a3f0
AV
93892017-03-20 Artemiy Volkov <artemiyv@acm.org>
9390
9391 PR gdb/14441
9392 * dwarf2read.c (process_die, read_type_die_1): Handle the
9393 DW_TAG_rvalue_reference_type DIE.
9394 (read_tag_reference_type): Add new parameter "refcode".
9395
e1cb3213
AV
93962017-03-20 Artemiy Volkov <artemiyv@acm.org>
9397
9398 PR gdb/14441
9399 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9400 (c_type_print_modifier, c_type_print_varspec_suffix)
9401 (c_type_print_base): Support printing rvalue reference types.
9402 * c-valprint.c (c_val_print, c_value_print): Support printing
9403 rvalue reference values.
9404
e4347c89
AV
94052017-03-20 Artemiy Volkov <artemiyv@acm.org>
9406
9407 PR gdb/14441
9408 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9409 typename.
9410 * cp-support.c (replace_typedefs): Handle
9411 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9412 * python/py-type.c (typy_lookup_type): Likewise.
9413
53cc15f5
AV
94142017-03-20 Artemiy Volkov <artemiyv@acm.org>
9415
9416 PR gdb/14441
9417 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9418 * parse.c (insert_type): Change assert statement.
9419 (follow_types): Handle rvalue reference types.
9420 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9421 constant.
9422
a65cfae5
AV
94232017-03-20 Artemiy Volkov <artemiyv@acm.org>
9424
9425 PR gdb/14441
9426 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9427 value_ref() interface.
9428 * c-valprint.c (c_value_print): Likewise.
9429 * infcall.c (value_arg_coerce): Likewise.
9430 * python/py-value.c (valpy_reference_value): Likewise.
9431 * valops.c (value_cast, value_reinterpret_cast)
9432 (value_dynamic_cast, typecmp): Likewise.
9433 (value_ref): Parameterize by kind of return value reference type.
9434 * value.h (value_ref): Add new parameter "refcode".
9435
3b224330
AV
94362017-03-20 Artemiy Volkov <artemiyv@acm.org>
9437
9438 PR gdb/14441
9439 * dwarf2read.c (read_tag_reference_type): Use
9440 lookup_lvalue_reference_type() instead of lookup_reference_type().
9441 * eval.c (evaluate_subexp_standard): Likewise.
9442 * f-exp.y: Likewise.
9443 * gdbtypes.c (make_reference_type, lookup_reference_type):
9444 Generalize with rvalue reference types.
9445 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9446 convenience wrappers for lookup_reference_type().
9447 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9448 reference kind parameter.
9449 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9450 wrappers for lookup_reference_type().
9451 * guile/scm-type.c (gdbscm_type_reference): Use
9452 lookup_lvalue_reference_type() instead of lookup_reference_type().
9453 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9454 * parse.c (follow_types): Likewise.
9455 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9456 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9457 Likewise.
9458 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9459 (gdbpy_invoke_xmethod): Likewise.
9460 * stabsread.c: Provide extra argument to make_reference_type()
9461 call.
9462 * valops.c (value_ref, value_rtti_indirect_type): Use
9463 lookup_lvalue_reference_type() instead of lookup_reference_type().
9464
f9aeb8d4
AV
94652017-03-20 Artemiy Volkov <artemiyv@acm.org>
9466
9467 PR gdb/14441
9468 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9469 (TYPE_IS_REFERENCE): New macro.
9470 (struct type): Add rvalue_reference_type field.
9471 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9472
51457a05
MAL
94732017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9474
9475 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9476 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9477 New function definition.
9478 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9479 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9480 New function declaration.
9481 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9482 * mi/mi-interp.h: New file.
9483 * solib.c (info_sharedlibrary_command): Replace for loop with
9484 ALL_SO_LIBS macro
9485 * solib.h (update_solib_list): New function declaration.
9486 (so_list_head): Move macro.
9487 * solist.h (ALL_SO_LIBS): New macro.
9488
e696b3ad
MAL
94892017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9490
9491 * infcmd.c (post_create_inferior): Remove unused argument in
9492 call to solib_add.
9493 * remote.c (remote_start_remote): Likewise.
9494 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9495 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9496 (enable_break): Likewise.
9497 * solib.c (update_solib_list): Remove unused target argument
9498 and its documentation.
9499 (solib_add): Remove unused target argument. Remove unused
9500 argument in call to update_solib_list.
9501 (info_sharedlibrary_command): Remove unused argument in call
9502 to update_solib_list.
9503 (sharedlibrary_command): Remove unused argument in call to
9504 solib_add.
9505 (handle_solib_event): Likewise.
9506 (reload_shared_libraries): Likewise.
9507 * solib.h (solib_add): Remove unused target argument.
9508
dcb84eda
AA
95092017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9510
9511 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9512 (s390_displaced_step_fixup): Cover relative branches with the
9513 default fixup handling. This fixes lack of support for some
9514 relative branch instructions.
9515
d9cb6cdc
SM
95162017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9517
9518 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9519 ptid from regcache.
9520
1afaf9f4
SM
95212017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9522
9523 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9524 i386_darwin_store_inferior_registers): Use ptid from regcache.
9525
aac12e24
SM
95262017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9527
9528 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9529 i386bsd_store_inferior_registers): Use ptid from regcache.
9530
bbe1eef1
SM
95312017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9532
9533 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9534 hppaobsd_store_registers): Use ptid from regcache.
9535
10799020
SM
95362017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9537
9538 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9539 hppanbsd_store_registers): Use ptid from regcache.
9540
00204cf7
SM
95412017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9542
9543 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9544 from regcache. Use get_ptrace_pid.
9545
11a33714
SM
95462017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9547
9548 * corelow.c (get_core_register_section): Use ptid from regcache,
9549 update doc.
9550
317cd492
SM
95512017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9552
9553 * bsd-uthread.c (bsd_uthread_fetch_registers,
9554 bsd_uthread_store_registers): Use ptid from regcache, set and
9555 restore inferior_ptid.
9556
9ac8a7c2
SM
95572017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9558
9559 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9560 fetch_fp_regs, store_register, store_regs, store_fp_register,
9561 store_fp_regs): Use ptid from regcache.
9562
4ac4bb6a
SM
95632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9564
9565 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9566 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9567 store_vfp_regs): Use ptid from regcache.
9568
9bcbdca8
PA
95692017-03-17 Pedro Alves <palves@redhat.com>
9570
9571 PR remote/21188
9572 * ser-base.c (ser_base_wait_for): Add comment.
9573 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9574 version.
9575 * ser-unix.c (hardwire_raw): Remove reference to
9576 scb->current_timeout.
9577 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9578 (hardwire_ops): Install ser_base_readchar instead of
9579 hardwire_readchar.
9580 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9581 Remove fields.
9582
7503099f
JG
95832017-03-17 Jonah Graham <jonah@kichwacoders.com>
9584
9585 PR gdb/19637
9586 * python/lib/gdb/printer/bound_registers.py: Add support for
9587 Python 3.
9588
7942e96e
AA
95892017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9590
9591 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9592 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9593 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9594 byte_offset to subobj_byte_offset. Fix the handling of
9595 DWARF_VALUE_STACK on big-endian targets when coming via an
9596 implicit pointer.
9597 (dwarf2_evaluate_loc_desc): Adjust call to
9598 dwarf2_evaluate_loc_desc_full.
9599 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9600 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9601
ba14f379
YQ
96022017-03-16 Yao Qi <yao.qi@linaro.org>
9603
9604 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9605 and REVSH instructions.
9606
b121eeb9
YQ
96072017-03-16 Yao Qi <yao.qi@linaro.org>
9608
9609 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9610 (arm_record_test): Declare.
9611 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9612 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9613 align with the manual.
9614 (thumb_record_misc): Adjust the code order to align with the
9615 manual.
9616 (thumb2_record_decode_insn_handler): Fix instruction matching.
9617 (instruction_reader_thumb): New class.
9618 (arm_record_test): New function.
9619
728a7913
YQ
96202017-03-16 Yao Qi <yao.qi@linaro.org>
9621
9622 * arm-tdep.c (abstract_memory_reader): New class.
9623 (instruction_reader): New class.
9624 (extract_arm_insn): Add argument 'reader'. Callers updated.
9625 (decode_insn): Likewise.
9626
34b43320
DE
96272017-03-16 Doug Evans <dje@google.com>
9628
a7c0469f
DE
9629 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9630 member. Change type of TYPE member to SCM. All uses updated.
9631 (lsscm_make_lazy_string_smob): Add assert.
9632 (lsscm_make_lazy_string): Flag bad length values.
9633 (lsscm_elt_type): New function.
9634 (gdbscm_lazy_string_to_value): Rewrite to use
9635 lsscm_safe_lazy_string_to_value.
9636 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9637 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9638 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9639 in incoming type.
9640 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9641 * guile/scm-type.c (tyscm_scm_to_type): New function.
9642
96432017-03-15 Doug Evans <dje@google.com>
9644
34b43320
DE
9645 PR python/17728, python/18439, python/18779
9646 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9647 member. Change type of TYPE member to PyObject *. All uses updated.
9648 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9649 (gdbpy_create_lazy_string_object): Flag bad length values.
9650 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9651 Handle typedefs in incoming type.
9652 (stpy_lazy_string_elt_type): New function.
9653 (gdbpy_extract_lazy_string): Call it.
9654 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9655 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9656 typedefs in incoming type.
9657
a3a5fecc
DE
96582017-03-16 Doug Evans <dje@google.com>
9659
9660 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9661 * guile/scm-type.c (tyscm_scm_to_type): New function.
9662
28f1c605
JW
96632017-03-16 Jiong Wang <jiong.wang@arm.com>
9664
9665 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9666 "ULONGEST" for "skip".
9667
87c336f6
AA
96682017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9669
9670 PR gdb/21220
9671 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9672 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9673 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9674 over ptrace peek/poke until end of buffer or error.
9675
cf81cf60
SM
96762017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9677
9678 * parse.c (length_of_subexp): Make static.
9679 * parser-defs.h (length_of_subexp): Remove.
9680
a379284a
AA
96812017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9682
9683 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9684 as well.
9685
8a6200ba
PA
96862017-03-14 Pedro Alves <palves@redhat.com>
9687
9688 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9689 (main): Use std::unique_ptr. Remove calls to
9690 cp_demangled_name_parse_free.
9691
f79ec206
SM
96922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9693
9694 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9695 alphabsd_store_inferior_registers): Use regcache->ptid instead
9696 of inferior_ptid.
9697
edb5fb00
SM
96982017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9699
9700 * aix-thread.c (aix_thread_fetch_registers,
9701 aix_thread_store_registers): Use regcache->ptid instead of
9702 inferior_ptid.
9703
55119686
SM
97042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9705
9706 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9707 store_gregs_to_thread, fetch_fpregs_from_thread,
9708 store_fpregs_to_thread): Use regcache->ptid instead of
9709 inferior_ptid.
9710
6a06fbb7
SM
97112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9712
9713 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9714 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9715 instead of inferior_ptid.
9716
c6386875
SM
97172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9718
9719 * target.c (target_fetch_registers, target_store_registers): Add
9720 assert.
9721
ddaaf0fb
SM
97222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9723
9724 * regcache.h (regcache_get_ptid): New function.
9725 * regcache.c (regcache_get_ptid): New function.
9726
b9da89d1 97272017-03-13 Mark Wielaard <mark@klomp.org>
9728
9729 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9730
5f4d1085
KS
97312017-03-10 Keith Seitz <keiths@redhat.com>
9732
9733 PR c++/8218
9734 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9735
c65d6b55
PA
97362017-03-08 Pedro Alves <palves@redhat.com>
9737
9738 PR gdb/18360
9739 * infrun.c (start_step_over, do_target_resume, resume)
9740 (restart_threads): Assert we're not resuming a thread that is
9741 meant to be stopped.
9742 (infrun_thread_stop_requested_callback): Delete.
9743 (infrun_thread_stop_requested): If the thread is internally
9744 stopped, queue a pending stop event and clear the thread's
9745 inline-frame state.
9746 (handle_stop_requested): New function.
9747 (handle_syscall_event, handle_inferior_event_1): Use
9748 handle_stop_requested.
9749 (handle_stop_requested): New function.
9750 (handle_signal_stop): Set the thread's stop_signal here instead of
9751 at caller.
9752 (finish_step_over): Clear step over info unconditionally.
9753 (handle_signal_stop): If the user had interrupted the event
9754 thread, consider the stop a random signal.
9755 (handle_signal_stop) <signal arrived while stepping over
9756 breakpoint>: Don't restart threads here.
9757 (stop_waiting): Don't clear step-over info here.
9758
15c22686
PA
97592017-03-08 Pedro Alves <palves@redhat.com>
9760
9761 PR 21206
9762 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9763 goes to argument 2, not 1.
9764
6e5d74e7
PA
97652017-03-08 Pedro Alves <palves@redhat.com>
9766
9767 PR cli/21218
9768 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9769 display_gdb_prompt.
9770 (command_line_input): Add comment.
9771
9753a2f6
PA
97722017-03-08 Pedro Alves <palves@redhat.com>
9773
9774 PR tui/21216
9775 * tui/tui-file.c (tui_file::write): New.
9776 * tui/tui-file.h (tui_file): Override "write".
9777 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9778 factored out from ...
9779 (tui_puts): ... here.
9780 (tui_putc): Use them.
9781 (tui_write): New function.
9782 * tui/tui-io.h (tui_write): Declare.
9783
1672e0d9
SDJ
97842017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9785
9786 * Makefile.in (SFILES): Replace "environ.c" with
9787 "common/environ.c".
9788 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9789 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9790 to...
9791 * common/environ.c: ... here.
9792 * environ.h: Moved to...
9793 * common/environ.h: ... here.
9794
f7bb4e3a
PB
97952017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9796
9797 * gdbarch.sh (pstring_ptr): New static function.
9798 (gdbarch_disassembler_options): Use it.
9799 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9800 not valid_disassembler_option->name.
9801 * gdbarch.c: Regenerate.
9802
e45ced6c
PB
98032017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9804
9805 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9806
5f6fd321
PA
98072017-03-07 Pedro Alves <palves@redhat.com>
9808
9809 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9810
6dbb839a 98112017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
9812
9813 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9814 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9815 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 9816 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 9817
d274ecf4
SM
98182017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9819
9820 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9821
df97be55
SM
98222017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9823
9824 * remote.c (remote_add_target_side_commands): Use range-based
9825 for loop.
9826
7d45f3df
YQ
98272017-03-03 Yao Qi <yao.qi@linaro.org>
9828
9829 PR gdb/21165
9830 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9831 value is lazy.
9832 * valprint.c (common_val_print): Likewise.
9833
65b48a81
PB
98342017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9835
9836 * NEWS: Mention new set/show disassembler-options commands.
9837 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9838 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9839 (prospective_options): New static variable.
9840 (gdb_disassembler::gdb_disassembler): Initialize
9841 m_di.disassembler_options.
9842 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9843 (get_disassembler_options): New function.
9844 (set_disassembler_options): Likewise.
9845 (set_disassembler_options_sfunc): Likewise.
9846 (show_disassembler_options_sfunc): Likewise.
9847 (disassembler_options_completer): Likewise.
9848 (_initialize_disasm): Likewise.
9849 * disasm.h (get_disassembler_options): New prototype.
9850 (set_disassembler_options): Likewise.
9851 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9852 (gdbarch_verify_disassembler_options): Likewise.
9853 * gdbarch.c: Regenerate.
9854 * gdbarch.h: Likewise.
9855 * arm-tdep.c (num_disassembly_options): Delete.
9856 (set_disassembly_style): Likewise.
9857 (arm_disassembler_options): New static variable.
9858 (set_disassembly_style_sfunc): Convert short style name into long
9859 option name. Call set_disassembler_options.
9860 (show_disassembly_style_sfunc): New function.
9861 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9862 set_gdbarch_verify_disassembler_options.
9863 (_initialize_arm_tdep): Delete regnames variable and update callers.
9864 (arm_disassembler_options): Initialize.
9865 (disasm_options): New variable.
9866 (num_disassembly_options): Rename from this...
9867 (num_disassembly_styles): ...to this. Compute by scanning through
9868 disasm_options.
9869 (valid_disassembly_styles): Initialize using disasm_options.
9870 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9871 set_arm_regname_option.
9872 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9873 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9874 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9875 set_gdbarch_verify_disassembler_options.
9876 * s390-tdep.c (s390_disassembler_options): New static variable.
9877 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9878 set_gdbarch_verify_disassembler_options.
9879
d538e36d
SM
98802017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9881
9882 * remote.c (remote_add_target_side_condition): Remove "struct"
9883 keyword from range-based for loop.
9884
83621223
SM
98852017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9886
9887 * remote.c (remote_add_target_side_condition): Use range-based
9888 for loop. Update comment.
9889
2123df0e
YQ
98902017-02-27 Yao Qi <yao.qi@linaro.org>
9891
9892 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9893
8e368124
AH
98942017-02-26 Alan Hayward <alan.hayward@arm.com>
9895
9896 * regcache.c (regcache_raw_update): New function.
9897 (regcache_raw_read): Move code to regcache_raw_update.
9898 * regcache.h (regcache_raw_update): New declaration.
9899 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9900
a49dd8dd
JK
99012017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9902
9903 * dwarf2read.c (create_debug_type_hash_table): Initialize
9904 header.signature and header.type_offset_in_tu.
9905
34e4bae9
PA
99062017-02-24 Pedro Alves <palves@redhat.com>
9907
9908 * symtab.c (make_file_symbol_completion_list_1): Use
9909 add_symtab_completions.
9910
b0e4b369
AH
99112017-02-24 Alan Hayward <alan.hayward@arm.com>
9912
9913 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9914
975c21ab
AH
99152017-02-24 Alan Hayward <alan.hayward@arm.com>
9916
9917 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9918 I386_MAX_REGISTER_SIZE.
9919 (i386_pseudo_register_write): Likewise.
9920 (i386_process_record): Likewise.
9921 * i387-tdep.c (i387_supply_xsave): Likewise.
9922 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9923 (store_register): Likewise.
9924
14bc53a8
PA
99252017-02-23 Pedro Alves <palves@redhat.com>
9926
9927 * ada-lang.c: Include "common/function-view.h".
9928 (ada_iterate_over_symbols): Adjust to use function_view as
9929 callback type.
9930 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9931 (ada_make_symbol_completion_list): Use a lambda.
9932 (ada_exc_search_name_matches): Delete.
9933 (name_matches_regex): New.
9934 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9935 * compile/compile-c-support.c: Include "common/function-view.h".
9936 (print_one_macro): Change prototype to accept a ui_file pointer.
9937 (write_macro_definitions): Use a lambda.
9938 * dwarf2read.c: Include "common/function-view.h".
9939 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9940 (dw2_expand_symtabs_matching): Adjust to use function_view as
9941 callback type.
9942 * language.h: Include "common/function-view.h".
9943 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9944 function_view as callback type.
9945 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9946 * linespec.c: Include "common/function-view.h".
9947 (collect_info::add_symbol): New method.
9948 (struct symbol_and_data_callback, iterate_inline_only, struct
9949 symbol_matcher_data, iterate_name_matcher): Delete.
9950 (iterate_over_all_matching_symtabs): Adjust to use function_view
9951 as callback type and lambdas.
9952 (iterate_over_file_blocks): Adjust to use function_view as
9953 callback type.
9954 (decode_compound_collector): Now a class with private fields.
9955 (decode_compound_collector::release_symbols): New method.
9956 (collect_one_symbol): Rename to...
9957 (decode_compound_collector::operator()): ... this and adjust.
9958 (lookup_prefix_sym): decode_compound_collector construction bits
9959 move to decode_compound_collector ctor. Pass the
9960 decode_compound_collector object directly as callback. Remove
9961 cleanups and use decode_compound_collector::release_symbols
9962 instead.
9963 (symtab_collector): Now a class with private fields.
9964 (symtab_collector::release_symtabs): New method.
9965 (add_symtabs_to_list): Rename to...
9966 (symtab_collector::operator()): ... this and adjust.
9967 (collect_symtabs_from_filename): symtab_collector construction
9968 bits move to symtab_collector ctor. Pass the symtab_collector
9969 object directly as callback. Remove cleanups and use
9970 symtab_collector::release_symtabs instead.
9971 (collect_symbols): Delete.
9972 (add_matching_symbols_to_info): Use lambdas.
9973 * macrocmd.c (print_macro_callback): Delete.
9974 (info_macro_command): Use a lambda.
9975 (info_macros_command): Pass print_macro_definition as callable
9976 directly.
9977 (print_one_macro): Remove 'ignore' parameter.
9978 (macro_list_command): Adjust.
9979 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9980 (macro_for_each_data::user_data): Delete field.
9981 (foreach_macro): Adjust to call the function_view.
9982 (macro_for_each): Adjust to use function_view as callback type.
9983 (foreach_macro_in_scope): Adjust to call the function_view.
9984 (macro_for_each_in_scope): Adjust to use function_view as callback
9985 type.
9986 * macrotab.h: Include "common/function-view.h".
9987 (macro_callback_fn): Declare a prototype instead of a pointer.
9988 Remove "user_data" parameter.
9989 (macro_for_each, macro_for_each_in_scope): Adjust to use
9990 function_view as callback type.
9991 * psymtab.c (partial_map_expand_apply)
9992 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9993 Adjust to use function_view as callback type and to return bool.
9994 (psym_expand_symtabs_matching): Adjust to use function_view as
9995 callback types.
9996 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9997 to use function_view as callback type and to return bool.
9998 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9999 callback types.
10000 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10001 as callback types.
10002 * symfile.h: Include "common/function-view.h".
10003 (expand_symtabs_file_matcher_ftype)
10004 (expand_symtabs_symbol_matcher_ftype)
10005 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10006 return bool.
10007 (quick_symbol_functions::map_symtabs_matching_filename)
10008 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10009 function_view as callback type and return bool.
10010 (expand_symtabs_matching): Adjust to use function_view as callback
10011 type.
10012 (maintenance_expand_name_matcher)
10013 (maintenance_expand_file_matcher): Delete.
10014 (maintenance_expand_symtabs): Use lambdas.
10015 * symtab.c (iterate_over_some_symtabs): Adjust to use
10016 function_view as callback types and return bool.
10017 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10018 of a cleanup.
10019 (lookup_symtab_callback): Delete.
10020 (lookup_symtab): Use a lambda.
10021 (iterate_over_symbols): Adjust to use function_view as callback
10022 type.
10023 (struct search_symbols_data, search_symbols_file_matches)
10024 (search_symbols_name_matches): Delete.
10025 (search_symbols): Use a pair of lambdas.
10026 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10027 (symtab_expansion_callback): Delete.
10028 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10029 * symtab.h: Include "common/function-view.h".
10030 (iterate_over_some_symtabs): Adjust to use function_view as
10031 callback type and return bool.
10032 (iterate_over_symtabs): Adjust to use function_view as callback
10033 type.
10034 (symbol_found_callback_ftype): Remove 'data' parameter and return
10035 bool.
10036 (iterate_over_symbols): Adjust to use function_view as callback
10037 type.
10038
07e253aa
PA
100392017-02-23 Pedro Alves <palves@redhat.com>
10040
10041 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10042 (%.o) <unittests/%.c>: New pattern.
10043 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10044 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10045 * common/function-view.h: New file.
10046 * unittests/function-view-selftests.c: New file.
10047 * configure: Regenerate.
10048
8eaf5320
SM
100492017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10050
10051 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10052 inferior_ptid.
10053 * go32-nat.c (go32_thread_alive): Likewise.
10054
38768751
YQ
100552017-02-23 Yao Qi <yao.qi@linaro.org>
10056
10057 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10058 delete.
10059
0a8beaba
YQ
100602017-02-23 Yao Qi <yao.qi@linaro.org>
10061
10062 * varobj.c (varobj_clear_saved_item): Use delete instead of
10063 xfree.
10064 (update_dynamic_varobj_children): Likewise.
10065
58fdfd2c
JK
100662017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10067
10068 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10069
1b90b139
SM
100702017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10071
10072 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10073 m_enum_value to 0 in default constructor.
10074
2039d74e
EBM
100752017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10076
10077 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10078 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10079 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10080 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10081 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10082 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10083 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10084 IS_STORE_CONDITIONAL_INSN.
10085
7814882a
JK
100862017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10087
10088 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10089
0ae60b63
JK
100902017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10091
10092 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10093
0224619f
JK
100942017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10095
10096 * dwarf2read.c (skip_one_die, read_attribute_value)
10097 (dwarf2_const_value_attr, dump_die_shallow)
10098 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10099 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10100
0af92d60
JK
101012017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10102
10103 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10104 (dwarf_parse_macro_header): Accept DWARF version 5.
10105 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10106
216f72a1
JK
101072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10108
10109 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10110 DW_AT_GNU_*.
10111 * common/common-exceptions.h (enum errors): Likewise.
10112 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10113 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10114 (dwarf_expr_context::execute_stack_op): Likewise.
10115 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10116 Likewise.
10117 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10118 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10119 (show_entry_values_debug, call_site_to_target_addr)
10120 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10121 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10122 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10123 (value_of_dwarf_block_entry, indirect_pieced_value)
10124 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10125 (disassemble_dwarf_expression): Likewise.
10126 * dwarf2read.c (process_die, inherit_abstract_dies)
10127 (read_call_site_scope): Likewise.
10128 * gdbtypes.h (struct func_type, struct call_site_parameter)
10129 (struct call_site): Likewise.
10130 * stack.c (read_frame_arg): Likewise.
10131 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10132
43988095
JK
101332017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10134
10135 * defs.h (read_unsigned_leb128): New declaration.
10136 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10137 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10138 (dwarf2_find_location_expression): Call also
10139 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10140 * dwarf2loc.h (dwarf2_version): New declaration.
10141 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10142 rnglists.
10143 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10144 .debug_rnglists.
10145 (struct dwop_section_names): Add loclists_dwo.
10146 (dwop_section_names): Add .debug_loclists.dwo.
10147 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10148 (struct dwarf2_per_cu_data): Add dwarf_version.
10149 (struct dwo_sections): Add loclists.
10150 (struct attr_abbrev): Add implicit_const.
10151 (read_indirect_line_string): New declaration.
10152 (read_unsigned_leb128): Delete declaration.
10153 (rcuh_kind): New definition.
10154 (read_and_check_comp_unit_head): Change parameter
10155 is_debug_types_section to section_kind.
10156 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10157 (read_comp_unit_head): Change parameter abfd to section, add parameter
10158 section_kind. Handle DWARF-5.
10159 (error_check_comp_unit_head): Accept also DWARF version 5.
10160 (read_and_check_comp_unit_head): Change parameter
10161 is_debug_types_section to section_kind.
10162 (read_and_check_type_unit_head): Delete function.
10163 (read_abbrev_offset): Handle DWARF-5.
10164 (create_debug_type_hash_table): Add parameter section_kind. Process
10165 only DW_UT_type. Use signature and type_offset_in_tu from struct
10166 comp_unit_head.
10167 (create_debug_types_hash_table): Update create_debug_type_hash_table
10168 caller.
10169 (create_all_type_units): Call create_debug_type_hash_table.
10170 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10171 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10172 caller.
10173 (skip_one_die): Handle DW_FORM_implicit_const.
10174 (dwarf2_rnglists_process): New function.
10175 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10176 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10177 (read_attribute_value): Handle DW_FORM_implicit_const,
10178 DW_FORM_line_strp.
10179 (read_attribute): Handle DW_FORM_implicit_const.
10180 (read_indirect_string_at_offset_from): New function from
10181 read_indirect_string_at_offset.
10182 (read_indirect_string_at_offset): Call
10183 read_indirect_string_at_offset_from.
10184 (read_indirect_line_string_at_offset): New function.
10185 (read_indirect_string): New function comment.
10186 (read_indirect_line_string): New function.
10187 (read_unsigned_leb128): Make it global.
10188 (dwarf2_string_attr): Handle DWARF-5.
10189 (add_include_dir_stub, read_formatted_entries): New functions.
10190 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10191 Handle DWARF-5.
10192 (per_cu_header_read_in): Update read_comp_unit_head caller.
10193 (dwarf2_version): New function.
10194 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10195 rnglists.
10196 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10197 fields.
10198
22d2f3ab
JK
101992017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10200
10201 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10202
5f46c5a5
JK
102032017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10204
10205 * dwarf2read.c (dwarf2_ranges_process): New function from
10206 dwarf2_ranges_read.
10207 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10208 dwarf2_ranges_process.
10209
78d4d2c5
JK
102102017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10211
10212 * dwarf2read.c (create_debug_type_hash_table): New function from
10213 create_debug_types_hash_table.
10214 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10215 (create_all_type_units, open_and_init_dwo_file): Update
10216 create_debug_types_hash_table callers.
10217
1b076f25
SDJ
102182017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10219
10220 PR gdb/16188
10221 * fork-child.c (trace_start_error): Fix thinko. va_end should
10222 refer to 'ap', not 'args'.
10223
0db8980c
SDJ
102242017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10225 Pedro Alves <palves@redhat.com>
10226
10227 PR gdb/16188
10228 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10229 calls succeeded.
10230 * fork-child.c (trace_start_error): New function.
10231 (trace_start_error_with_name): Likewise.
10232 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10233 * inf-ptrace.c (inf_ptrace_me): Likewise.
10234 * inferior.h (trace_start_error): New prototype.
10235 (trace_start_error_with_name): Likewise.
10236
99e8a4f9
SDJ
102372017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10238
10239 PR gdb/21164
10240 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10241 NULL before using it.
10242 * symmisc.c (maintenance_print_symbols): Likewise.
10243 (maintenance_print_msymbols): Likewise.
10244
4e746bb6
TW
102452017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10246
10247 * NEWS: Add record Python bindings entry.
10248
102492017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10250
10251 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10252 py-record-full.o.
10253 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10254 * python/py-record-btrace.c, python/py-record-btrace.h,
10255 python/py-record-full.c, python/py-record-full.h: New file.
10256 * python/py-record.c: Add include for py-record-btrace.h and
10257 py-record-full.h.
10258 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10259 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10260 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10261 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10262 New definition.
10263 (gdbpy_initialize_btrace): New export.
10264 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10265
102662017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10267
10268 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10269 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10270 * python/py-record.c: New file.
10271 * python/python-internal.h (gdbpy_start_recording,
10272 gdbpy_current_recording, gdpy_stop_recording,
10273 gdbpy_initialize_record): New export.
10274 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10275 (python_GdbMethods): Add gdbpy_start_recording,
10276 gdbpy_current_recording and gdbpy_stop_recording.
10277
102782017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10279
10280 * record-btrace.c (record_btrace_record_method): New function.
10281 (init_record_btrace_ops): Initialize to_record_method.
10282 * record-full.c (record_full_record_method): New function.
10283 (init_record_full_ops, init_record_full_core_ops): Add
10284 record_full_record_method.
10285 * record.h (enum record_method): New enum.
10286 * target-debug.h (target_debug_print_enum_record_method: New define.
10287 * target-delegates.c: Regenerate.
10288 * target.c (target_record_method): New function.
10289 * target.h: Include record.h.
10290 (struct target_ops) <to_record_method>: New field.
10291 (target_record_method): New export.
10292
102932017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10294
10295 * record.h (record_start, record_stop): New export.
10296 * record.c (record_start, record_stop): New function.
10297
102982017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10299
10300 * btrace.c (btrace_fetch): Copy function call segments pointer
10301 into a vector.
10302 (btrace_clear): Clear the vector.
10303 (btrace_find_insn_by_number): Use binary search to find the correct
10304 function call segment.
10305 * btrace.h (brace_fun_p): New typedef.
10306 (struct btrace_thread_info) <functions>: New field.
10307
103082017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10309
10310 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10311 * btrace.c (btrace_decode_error): ... here. New function.
10312 * btrace.h (btrace_decode_error): New export.
10313
103142017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10315
10316 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10317 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10318 btrace_find_insn_by_number): Remove special case for gaps.
10319 * btrace.h (btrace_insn_get_error): New export.
10320 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10321 * record-btrace.c (btrace_insn_history): Print number for gaps.
10322 (record_btrace_info, record_btrace_goto): Handle gaps.
10323
3f77c769
TT
103242017-02-14 Tom Tromey <tom@tromey.com>
10325
10326 PR python/13598:
10327 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10328 event.
10329 * python/py-evts.c (gdbpy_initialize_py_events): Add
10330 before_prompt registry.
10331 * python/py-events.h (events_object) <before_prompt>: New field.
10332
4c2c7ac6
MM
103332017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10334
10335 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10336
5cf30ebf
LM
103372017-02-13 Luis Machado <lgustavo@codesourcery.com>
10338
10339 * symfile (_initialize_symfile): Add usage text to the load command's
10340 help text.
10341
26a06916
SM
103422017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10343
10344 * utils.c (defaulted_query): Don't query on secondary UIs.
10345
0b145e37
TT
103462017-02-10 Tom Tromey <tom@tromey.com>
10347
10348 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10349
2d8365c4
TT
103502017-02-10 Tom Tromey <tom@tromey.com>
10351
10352 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10353 "cleanup" local.
10354 * python/py-type.c (typy_legacy_template_argument): Remove
10355 unnecessary "cleanup" local.
10356
2bb8f231
TT
103572017-02-10 Tom Tromey <tom@tromey.com>
10358
10359 * python/python.c (do_start_initialization): New function, from
10360 _initialize_python.
10361 (_initialize_python): Call do_start_initialization.
10362 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10363 goto.
10364
1bdfaf42
TT
103652017-02-10 Tom Tromey <tom@tromey.com>
10366
10367 * python/py-prettyprint.c (pretty_print_one_value): Use
10368 gdbpy_ref.
10369
88b6faea
TT
103702017-02-10 Tom Tromey <tom@tromey.com>
10371
10372 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10373 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10374 gdbpy_ref.
10375 * python/py-type.c (field_new): Use gdbpy_ref.
10376 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10377 gdbpy_ref.
10378 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10379 (py_free_pspace): Likewise.
10380 (pspace_to_pspace_object): Likewise.
10381 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10382 (py_free_objfile): Likewise.
10383 (objfile_to_objfile_object): Likewise.
10384 * python/py-inferior.c (delete_thread_object): Use
10385 gdbpy_ref.
10386 (infpy_read_memory): Likewise.
10387 (py_free_inferior): Likewise.
10388 * python/py-evtregistry.c (create_eventregistry_object): Use
10389 gdbpy_ref.
10390 * python/py-event.c (create_event_object): Use gdbpy_ref.
10391
7780f186
TT
103922017-02-10 Tom Tromey <tom@tromey.com>
10393
10394 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10395 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10396 used.
10397 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10398 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10399 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10400 python/py-framefilter.c, python/py-function.c,
10401 python/py-inferior.c, python/py-infevents.c,
10402 python/py-linetable.c, python/py-newobjfileevent.c,
10403 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10404 python/py-signalevent.c, python/py-stopevent.c,
10405 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10406 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10407 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10408 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10409
d4b0bb18
TT
104102017-02-10 Tom Tromey <tom@tromey.com>
10411
10412 * ui-out.h (ui_out_emit_type): New class.
10413 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10414 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10415 and ui_out_emit_tuple.
10416 (enumerate_locals): Likewise.
10417 (py_mi_print_variables, py_print_locals, py_print_args): Use
10418 ui_out_emit_list.
10419 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10420 ui_out_emit_list.
10421 * common/gdb_optional.h: New file.
10422
f67f945c
MG
104232017-02-10 Martin Galvan <martingalvan@sourceware.org>
10424
10425 * MAINTAINERS (Write After Approval): Update my e-mail address.
10426
18da0c51
MG
104272017-02-10 Martin Galvan <martingalvan@sourceware.org>
10428
10429 PR gdb/21122
10430 * breakpoint.c (_initialize_breakpoint): Update the help description
10431 of the 'commands' command to indicate that it takes a list argument.
10432
62c14536
SM
104332017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10434
10435 * interps.c (current_interp_set_logging): Remove "return".
10436
ff6fa247
GB
104372017-02-09 Gary Benson <gbenson@redhat.com>
10438
10439 * symtab.c (add_symtab_completions): Prevent NULL pointer
10440 dereference.
10441
a474bd8e
PA
104422017-02-08 Pedro Alves <palves@redhat.com>
10443
10444 * interps.c (interp::interp): Remove reference to quiet_p.
10445 (interp_set): Make static. Remove dead "Switching to" output
10446 code.
10447 (interp_quiet_p, interp_set_quiet): Delete.
10448 (interpreter_exec_cmd): Don't set the interpreter quiet.
10449 * interps.h (interp_quiet_p): Make static.
10450 (class interp) <quiet_p>: Remove field
10451
3d7b173c
JG
104522017-02-08 Jerome Guitton <guitton@adacore.com>
10453
604c4576
JG
10454 * cli/cli-decode.c (find_command_name_length): Make it extern.
10455 * cli/cli-decode.h (find_command_name_length): Declare.
10456 * cli/cli-script.c (command_name_equals, line_first_arg):
10457 New functions.
10458 (process_next_line): Use cli-decode to parse command names.
10459 (build_command_line): Make args a constant pointer.
10460
104612017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10462
3d7b173c
JG
10463 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10464 Remove case-insensitive search.
10465
1291063d
JM
104662017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10467
10468 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10469 at the end of the line. Avoids an ARI warning.
10470
20b477a7
LM
104712017-02-06 Luis Machado <lgustavo@codesourcery.com>
10472
10473 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10474 rdseed instructions.
10475 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10476
3f7b46f2
IR
104772017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10478
10479 PR tdep/20936
10480 Provide and use sparc32 and sparc64 target description XML files.
10481 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10482 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10483 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10484 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10485 * features/sparc/sparc32-solaris.xml: New file.
10486 * features/sparc/sparc64-solaris.xml: New file.
10487 * features/sparc/sparc32-solaris.c: Generated.
10488 * features/sparc/sparc64-solaris.c: Generated.
10489 * sparc-tdep.h: Account for differences in target descriptions.
10490 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10491 (sparc32_register_type): Use target provided registers.
10492 (validate_tdesc_registers): New function.
10493 (sparc32_gdbarch_init): Use tdesc_has_registers.
10494 Set pseudoregister functions.
10495 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10496 (sparc64_register_type): Use target provided registers.
10497 (sparc64_init_abi): Set pseudoregister functions.
10498
f0fd41c1
TT
104992017-02-03 Tom Tromey <tom@tromey.com>
10500
10501 PR rust/21097:
10502 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10503 with a single member.
10504
d6f9b0fb
PA
105052017-02-03 Pedro Alves <palves@redhat.com>
10506
10507 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10508 (cli_interp_base::~cli_interp_base): New.
10509 (cli_interp): New struct.
10510 (as_cli_interp): Cast the interp itself to cli_interp.
10511 (cli_interpreter_pre_command_loop): Rename to ...
10512 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10513 parameter.
10514 (cli_interpreter_init): Rename to ...
10515 (cli_interp::init): ... this. Remove 'self' parameter. Use
10516 boolean. Make extern.
10517 (cli_interpreter_resume): Rename to ...
10518 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10519 extern.
10520 (cli_interpreter_suspend): Rename to ...
10521 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10522 extern.
10523 (cli_interpreter_exec): Rename to ...
10524 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10525 extern.
10526 (cli_interpreter_supports_command_editing): Rename to ...
10527 (cli_interp_base::supports_command_editing): ... this. Remove
10528 'interp' parameter. Make extern.
10529 (cli_ui_out): Rename to ...
10530 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10531 Make extern.
10532 (cli_set_logging): Rename to ...
10533 (cli_interp_base::set_logging): ... this. Remove 'interp'
10534 parameter. Make extern.
10535 (cli_interp_procs): Delete.
10536 (cli_interp_factory): Adjust to use "new".
10537 * cli/cli-interp.h: Include "interps.h".
10538 (struct cli_interp_base): New struct.
10539 * interps.c (struct interp): Delete. Fields moved to interps.h.
10540 (interp_new): Delete.
10541 (interp::interp, interp::~interp): New.
10542 (interp_set): Use bool, and return void. Assume the interpreter
10543 has suspend, init and resume methods, and that the all return
10544 void.
10545 (set_top_level_interpreter): interp_set returns void.
10546 (interp_ui_out): Adapt.
10547 (current_interp_set_logging): Adapt.
10548 (interp_data): Delete.
10549 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10550 (interp_exec): Adapt.
10551 (top_level_interpreter_data): Delete.
10552 * interps.h (interp_init_ftype, interp_resume_ftype)
10553 (interp_suspend_ftype, interp_exec_ftype)
10554 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10555 (class interp): New.
10556 (interp_new): Delete.
10557 (interp_set): Now returns void. Use bool.
10558 (interp_data, top_level_interpreter_data): Delete.
10559 * mi/mi-common.h: Include interps.h.
10560 (class mi_interp): Inherit from interp. Define a ctor. Declare
10561 init, resume, suspect, exec, interp_ui_out, set_logging and
10562 pre_command_loop methods.
10563 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10564 (mi_interpreter_init): Rename to ...
10565 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10566 bool, return void and make extern. Adjust.
10567 (mi_interpreter_resume): ... Rename to ...
10568 (mi_interp::resume): ... this. Remove the 'data' parameter,
10569 return void and make extern. Adjust.
10570 (mi_interpreter_suspend): ... Rename to ...
10571 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10572 return void and make extern. Adjust.
10573 (mi_interpreter_exec): ... Rename to ...
10574 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10575 extern. Adjust.
10576 (mi_interpreter_pre_command_loop): ... Rename to ...
10577 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10578 parameter and make extern.
10579 (mi_on_normal_stop_1): Adjust.
10580 (mi_ui_out): Rename to ...
10581 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10582 parameter and make extern. Adjust.
10583 (mi_set_logging): Rename to ...
10584 (mi_interp::set_logging): ... this. Remove the 'interp'
10585 parameter and make extern. Adjust.
10586 (mi_interp_procs): Delete.
10587 (mi_interp_factory): Adjust to use 'new'.
10588 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10589 (mi_print_exception, mi_execute_command, mi_load_progress):
10590 Adjust.
10591 * tui/tui-interp.c (tui_interp): New class.
10592 (as_tui_interp): Return a tui_interp pointer.
10593 (tui_on_normal_stop, tui_on_signal_received)
10594 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10595 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10596 to use interp::interp_ui_out.
10597 (tui_init): Rename to ...
10598 (tui_interp::init): ... this. Remove the 'self' parameter, use
10599 bool, return void and make extern. Adjust.
10600 (tui_resume): Rename to ...
10601 (tui_interp::resume): ... this. Remove the 'data' parameter,
10602 return void and make extern. Adjust.
10603 (tui_suspend): Rename to ...
10604 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10605 return void and make extern. Adjust.
10606 (tui_ui_out): Rename to ...
10607 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10608 parameter, and make extern. Adjust.
10609 (tui_exec): Rename to ...
10610 (tui_interp::exec): ... this. Remove the 'data' parameter and
10611 make extern.
10612 (tui_interp_procs): Delete.
10613 (tui_interp_factory): Use "new".
10614
65c40c95
TT
106152017-02-02 Tom Tromey <tom@tromey.com>
10616
10617 * rust-exp.y (ends_raw_string, space_then_number)
10618 (rust_identifier_start_p): Return bool.
10619 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10620 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10621 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10622 (rust_chartype_p): Return bool.
10623 (val_print_struct, rust_print_struct_def, rust_print_type):
10624 Update.
10625 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10626 Return bool.
10627
b50f188d
TT
106282017-02-02 Tom Tromey <tom@tromey.com>
10629
10630 * rust-lang.c: Reindent.
10631
03c85b11
TT
106322017-02-02 Tom Tromey <tom@tromey.com>
10633
10634 * rust-lang.h (rust_crate_for_block): Update.
10635 * rust-lang.c (rust_crate_for_block): Return std::string.
10636 (rust_get_disr_info): Use std:;string, not
10637 gdb::unique_xmalloc_ptr.
10638 * rust-exp.y (crate_name): Update.
10639
9b6da501
PA
106402017-02-02 Pedro Alves <palves@redhat.com>
10641
10642 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10643 field out of gdb_disassembler_test and make it static.
10644
ec4cb20b
PA
106452017-02-02 Pedro Alves <palves@redhat.com>
10646
10647 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10648 mi1_interp and mi_interp fields.
10649
5be5dbf0
PA
106502017-02-02 Pedro Alves <palves@redhat.com>
10651
616268b6
PA
10652 * cli/cli-interp.c (struct saved_output_files, saved_output):
10653 Moved from cli/cli-logging.c.
10654 (cli_set_logging): New function.
10655 (cli_interp_procs): Install cli_set_logging.
10656 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10657 Declare.
10658 * cli/cli-logging.c (struct saved_output_files, saved_output):
10659 Moved to cli/cli-interp.c.
10660 (pop_output_files): Don't save outputs here.
10661 (make_logging_output): New function.
10662 (handle_redirections): Don't build tee nor save previous outputs
10663 here.
10664 * interps.c (current_interp_set_logging): Change prototype.
10665 Assume there's always a set_logging_proc method installed.
10666 * interps.h (interp_set_logging_ftype): Change prototype.
10667 (current_interp_set_logging): Change prototype and adjust comment.
10668 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10669 use make_logging_output.
10670 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
106712017-02-02 Pedro Alves <palves@redhat.com>
10672
5be5dbf0
PA
10673 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10674 from ...
10675 (set_logging_overwrite): ... here.
10676 (logging_no_redirect_file): Delete.
10677 (set_logging_redirect): Don't handle redirection on the fly.
10678 Instead warn that "logging off" / "logging on" is necessary.
10679 (pop_output_files): Delete references to logging_no_redirect_file.
10680 (show_logging_command): Always speak in terms of what will happen
10681 once logging is reenabled.
10682
c99cc448
PA
106832017-02-02 Pedro Alves <palves@redhat.com>
10684
10685 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10686
8b172ce7
PA
106872017-02-02 Pedro Alves <palves@redhat.com>
10688
10689 * disasm.c (gdb_pretty_print_insn): Rename to ...
10690 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10691 Remove gdbarch parameter. Adapt to clear the object's buffers
10692 instead of allocating new buffers, and to print using the object's
10693 gdb_disassembler instead of calling gdb_print_insn.
10694 (dump_insns): Use gdb_pretty_print_disassembler.
10695 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10696 (gdb_pretty_print_disassembler): New class.
10697 * record-btrace.c (btrace_insn_history): Use
10698 gdb_pretty_print_disassembler.
10699
d7e74731
PA
107002017-02-02 Pedro Alves <palves@redhat.com>
10701
10702 * ada-lang.c (type_as_string): Use string_file.
10703 * ada-valprint.c (ada_print_floating): Use string_file.
10704 * ada-varobj.c (ada_varobj_scalar_image)
10705 (ada_varobj_get_value_image): Use string_file.
10706 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10707 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10708 * breakpoint.c (update_inserted_breakpoint_locations)
10709 (insert_breakpoint_locations, reattach_breakpoints)
10710 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10711 (print_it_watchpoint): Use string_file.
10712 (save_breakpoints): Use stdio_file.
10713 * c-exp.y (oper): Use string_file.
10714 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10715 tee_file.
10716 (pop_output_files): Use delete.
10717 (handle_redirections): Use stdio_file and tee_file.
10718 * cli/cli-setshow.c (do_show_command): Use string_file.
10719 * compile/compile-c-support.c (c_compute_program): Use
10720 string_file.
10721 * compile/compile-c-symbols.c (generate_vla_size): Take a
10722 'string_file &' instead of a 'ui_file *'.
10723 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10724 of a 'ui_file *'. Use string_file.
10725 (generate_c_for_variable_locations): Take a 'string_file &'
10726 instead of a 'ui_file *'.
10727 * compile/compile-internal.h (generate_c_for_for_one_variable):
10728 Take a 'string_file &' instead of a 'ui_file *'.
10729 * compile/compile-loc2c.c (push, pushf, unary, binary)
10730 (print_label, pushf_register_address, pushf_register)
10731 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10732 'ui_file *'. Adjust.
10733 * compile/compile.c (compile_to_object): Use string_file.
10734 * compile/compile.h (compile_dwarf_expr_to_c)
10735 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10736 'ui_file *'.
10737 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10738 (replace_typedefs_qualified_name): Use string_file and
10739 obstack_copy0.
10740 * disasm.c (gdb_pretty_print_insn): Use string_file.
10741 (gdb_disassembly): Adjust reference the null_stream global.
10742 (do_ui_file_delete): Delete.
10743 (gdb_insn_length): Use null_stream.
10744 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10745 * dwarf2loc.c (dwarf2_compile_property_to_c)
10746 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10747 'string_file &' instead of a 'ui_file *'.
10748 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10749 * dwarf2read.c (do_ui_file_peek_last): Delete.
10750 (dwarf2_compute_name): Use string_file.
10751 * event-top.c (gdb_setup_readline): Use stdio_file.
10752 * gdbarch.sh (verify_gdbarch): Use string_file.
10753 * gdbtypes.c (safe_parse_type): Use null_stream.
10754 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10755 string_file.
10756 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10757 'string_file *' instead of a 'ui_file *'.
10758 (gdbscm_arch_disassemble): Use string_file.
10759 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10760 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10761 inherits from ui_file.
10762 (ioscm_file_port_delete, ioscm_file_port_rewind)
10763 (ioscm_file_port_put): Delete.
10764 (ioscm_file_port_write): Rename to ...
10765 (ioscm_file_port::write): ... this. Remove file_port_magic
10766 checks.
10767 (ioscm_file_port_new): Delete.
10768 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10769 ui_file_up.
10770 * guile/scm-type.c (tyscm_type_name): Use string_file.
10771 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10772 Use string_file.
10773 * infcmd.c (print_return_value_1): Use string_file.
10774 * infrun.c (print_target_wait_results): Use string_file.
10775 * language.c (add_language): Use string_file.
10776 * location.c (explicit_to_string_internal): Use string_file.
10777 * main.c (captured_main_1): Use null_file.
10778 * maint.c (maintenance_print_architecture): Use stdio_file.
10779 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10780 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10781 event_channel>: Change type to mi_console_file pointer.
10782 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10783 (mi_console_file_delete): Delete.
10784 (struct mi_console_file): Delete.
10785 (mi_console_file_magic): Delete.
10786 (mi_console_file_new): Delete.
10787 (mi_console_file::mi_console_file): New.
10788 (mi_console_file_delete): Delete.
10789 (mi_console_file_fputs): Delete.
10790 (mi_console_file::write): New.
10791 (mi_console_raw_packet): Delete.
10792 (mi_console_file::flush): New.
10793 (mi_console_file_flush): Delete.
10794 (mi_console_set_raw): Rename to ...
10795 (mi_console_file::set_raw): ... this.
10796 * mi/mi-console.h (class mi_console_file): New class.
10797 (mi_console_file_new, mi_console_set_raw): Delete.
10798 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10799 (mi_set_logging): Use delete and tee_file. Adjust.
10800 * mi/mi-main.c (output_register): Use string_file.
10801 (mi_cmd_data_evaluate_expression): Use string_file.
10802 (mi_cmd_data_read_memory): Use string_file.
10803 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10804 * mi/mi-out.c (mi_ui_out::main_stream): New.
10805 (mi_ui_out::rewind): Use main_stream and
10806 string_file.
10807 (mi_ui_out::put): Use main_stream and string_file.
10808 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10809 Allocate a 'string_file' instead.
10810 (mi_out_new): Don't allocate a mem_fileopen stream here.
10811 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10812 (mi_ui_out::main_stream): Declare method.
10813 * printcmd.c (eval_command): Use string_file.
10814 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10815 * python/py-arch.c (archpy_disassemble): Use string_file.
10816 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10817 * python/py-frame.c (frapy_str): Use string_file.
10818 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10819 Use string_file.
10820 * python/py-type.c (typy_str): Use string_file.
10821 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10822 * python/py-value.c (valpy_str): Use string_file.
10823 * record-btrace.c (btrace_insn_history): Use string_file.
10824 * regcache.c (regcache_print): Use stdio_file.
10825 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10826 * remote.c (escape_buffer): Use string_file.
10827 * rust-lang.c (rust_get_disr_info): Use string_file.
10828 * serial.c (serial_open_ops_1): Use stdio_file.
10829 (do_serial_close): Use delete.
10830 * stack.c (print_frame_arg): Use string_file.
10831 (print_frame_args): Remove local mem_fileopen stream, not used.
10832 (print_frame): Use string_file.
10833 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10834 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10835 Take a 'string_file *' instead of a 'ui_file *'.
10836 * top.c (new_ui): Use stdio_file and stderr_file.
10837 (free_ui): Use delete.
10838 (execute_command_to_string): Use string_file.
10839 (quit_confirm): Use string_file.
10840 * tracepoint.c (collection_list::append_exp): Use string_file.
10841 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10842 * tui/tui-file.c: Don't include "ui-file.h".
10843 (enum streamtype, struct tui_stream): Delete.
10844 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10845 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10846 (tui_file::tui_file): New method.
10847 (tui_file_fputs): Delete.
10848 (tui_file_get_strbuf): Delete.
10849 (tui_file::puts): New method.
10850 (tui_file_adjust_strbuf): Delete.
10851 (tui_file_flush): Delete.
10852 (tui_file::flush): New method.
10853 * tui/tui-file.h: Tweak intro comment.
10854 Include ui-file.h.
10855 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10856 (tui_file_adjust_strbuf): Delete declarations.
10857 (class tui_file): New class.
10858 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10859 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10860 (tui_register_format): Use string_stream.
10861 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10862 (tui_get_function_from_frame): Use string_file.
10863 * typeprint.c (type_to_string): Use string_file.
10864 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10865 (null_stream): New global.
10866 (ui_file_delete): Delete.
10867 (ui_file::ui_file): New.
10868 (null_file_isatty): Delete.
10869 (ui_file::~ui_file): New.
10870 (null_file_rewind): Delete.
10871 (ui_file::printf): New.
10872 (null_file_put): Delete.
10873 (null_file_flush): Delete.
10874 (ui_file::putstr): New.
10875 (null_file_write): Delete.
10876 (ui_file::putstrn): New.
10877 (null_file_read): Delete.
10878 (ui_file::putc): New.
10879 (null_file_fputs): Delete.
10880 (null_file_write_async_safe): Delete.
10881 (ui_file::vprintf): New.
10882 (null_file_delete): Delete.
10883 (null_file::write): New.
10884 (null_file_fseek): Delete.
10885 (null_file::puts): New.
10886 (ui_file_data): Delete.
10887 (null_file::write_async_safe): New.
10888 (gdb_flush, ui_file_isatty): Adjust.
10889 (ui_file_put, ui_file_rewind): Delete.
10890 (ui_file_write): Adjust.
10891 (ui_file_write_for_put): Delete.
10892 (ui_file_write_async_safe, ui_file_read): Adjust.
10893 (ui_file_fseek): Delete.
10894 (fputs_unfiltered): Adjust.
10895 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10896 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10897 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10898 (set_ui_file_data): Delete.
10899 (string_file::~string_file, string_file::write)
10900 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10901 (do_ui_file_as_string, ui_file_as_string): Delete.
10902 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10903 (struct mem_file): Delete.
10904 (mem_file_new): Delete.
10905 (stdio_file::stdio_file): New.
10906 (mem_file_delete): Delete.
10907 (stdio_file::stdio_file): New.
10908 (mem_fileopen): Delete.
10909 (stdio_file::~stdio_file): New.
10910 (mem_file_rewind): Delete.
10911 (stdio_file::set_stream): New.
10912 (mem_file_put): Delete.
10913 (stdio_file::open): New.
10914 (mem_file_write): Delete.
10915 (stdio_file_magic, struct stdio_file): Delete.
10916 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10917 (stdio_file::flush): New.
10918 (stdio_file_read): Rename to ...
10919 (stdio_file::read): ... this. Adjust.
10920 (stdio_file_write): Rename to ...
10921 (stdio_file::write): ... this. Adjust.
10922 (stdio_file_write_async_safe): Rename to ...
10923 (stdio_file::write_async_safe) ... this. Adjust.
10924 (stdio_file_fputs): Rename to ...
10925 (stdio_file::puts) ... this. Adjust.
10926 (stdio_file_isatty): Delete.
10927 (stdio_file_fseek): Delete.
10928 (stdio_file::isatty): New.
10929 (stderr_file_write): Rename to ...
10930 (stderr_file::write) ... this. Adjust.
10931 (stderr_file_fputs): Rename to ...
10932 (stderr_file::puts) ... this. Adjust.
10933 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10934 (stderr_file::stderr_file): New.
10935 (tee_file_magic): Delete.
10936 (struct tee_file): Delete.
10937 (tee_file::tee_file): New.
10938 (tee_file_new): Delete.
10939 (tee_file::~tee_file): New.
10940 (tee_file_delete): Delete.
10941 (tee_file_flush): Rename to ...
10942 (tee_file::flush): ... this. Adjust.
10943 (tee_file_write): Rename to ...
10944 (tee_file::write): ... this. Adjust.
10945 (tee_file::write_async_safe): New.
10946 (tee_file_fputs): Rename to ...
10947 (tee_file::puts): ... this. Adjust.
10948 (tee_file_isatty): Rename to ...
10949 (tee_file::isatty): ... this. Adjust.
10950 * ui-file.h (struct obstack, struct ui_file): Don't
10951 forward-declare.
10952 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10953 (ui_file_write_ftype)
10954 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10955 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10956 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10957 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10958 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10959 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10960 (set_ui_file_fseek): Delete.
10961 (ui_file_data, ui_file_delete, ui_file_rewind)
10962 (struct ui_file): New.
10963 (ui_file_up): New.
10964 (class null_file): New.
10965 (null_stream): Declare.
10966 (ui_file_write_for_put, ui_file_put): Delete.
10967 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10968 Delete.
10969 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10970 (gdb_fopen, tee_file_new): Delete.
10971 (struct string_file): New.
10972 (struct stdio_file): New.
10973 (stdio_file_up): New.
10974 (struct stderr_file): New.
10975 (class tee_file): New.
10976 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10977 of a 'ui_file *'. Adjust.
10978 * ui-out.h (class ui_out) <field_stream>: Likewise.
10979 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10980 (null_stream): Delete.
10981 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10982 Adjust.
10983 * utils.h (struct ui_file): Delete forward declaration..
10984 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10985 (error_stream): Take a 'string_file &' instead of a
10986 'ui_file *'.
10987 * varobj.c (varobj_value_get_print_value): Use string_file.
10988 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10989 * gdbarch.c: Regenerate.
10990
187808b0
PA
109912017-02-02 Pedro Alves <palves@redhat.com>
10992
10993 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10994 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10995 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10996 Adjust to call gdb_print_insn instead of
10997 gdb_disassembler::print_insn.
10998 (dump_insns, do_mixed_source_and_assembly_deprecated)
10999 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11000 'gdbarch' parameter. Remove gdb_disassembler parameter.
11001 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11002 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11003 declaration.
11004 (gdb_pretty_print_insn): Re-add declaration.
11005 * record-btrace.c (btrace_insn_history): Don't allocate a
11006 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11007
7a8eb317
SM
110082017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11009
11010 * disasm.h (gdb_disassembly): Remove file_string parameter.
11011 * disasm.c (gdb_disassembly): Likewise.
11012 * cli/cli-cmds.c (print_disassembly): Adapt.
11013 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11014 * stack.c (do_gdb_disassembly): Likewise.
11015
7346ef59
AA
110162017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11017
11018 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11019 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11020 targets. And if the implicit value is longer than needed, extract
11021 the first bytes instead of the "least significant" ones.
11022
cd4007e4
MM
110232017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11024
11025 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11026 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11027 (btrace_fetch): Assert can_access_registers_ptid.
11028 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11029 validate_registers_access.
11030
cf77c34e
MM
110312017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11032
11033 * gdbthread.h (can_access_registers_ptid): New.
11034 * thread.c (can_access_registers_ptid): New.
11035
be85ce7d
PA
110362017-02-01 Pedro Alves <palves@redhat.com>
11037
11038 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11039
29b0b251
PA
110402017-01-31 Pedro Alves <palves@redhat.com>
11041
11042 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11043 Fix typos.
11044
289b5b24
PA
110452017-01-31 Pedro Alves <palves@redhat.com>
11046
11047 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11048 not used.
11049
b47413b4
PA
110502017-01-31 Pedro Alves <palves@redhat.com>
11051
11052 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11053
60adb36c
PA
110542017-01-31 Pedro Alves <palves@redhat.com>
11055
11056 * common/scoped_restore.h
11057 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11058 change the value's parameter type to T2.
11059 (make_scoped_restore): Likewise.
11060
2735833d
WT
110612017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11062 Richard Henderson <rth@redhat.com>
11063
11064 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11065 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11066 GS_BASE for older kernels.
11067 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11068 GS_BASE for older kernels.
11069 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11070 and GS_BASE to the offset table.
11071 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11072 system register group.
11073 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11074 for older kernels.
11075 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11076 amd64 ABI.
11077 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11078 AMD64_GSBASE_REGNUM.
11079 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11080 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11081 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11082 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11083 i386/64bit-segments.xml in those rules.
11084 * features/i386/64bit-segments.xml: New file.
11085 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11086 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11087 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11088 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11089 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11090 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11091 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11092 * features/i386/amd64-avx-linux.c: Regenerated.
11093 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11094 * features/i386/amd64-avx-mpx.c: Regenerated.
11095 * features/i386/amd64-avx512-linux.c: Regenerated.
11096 * features/i386/amd64-linux.c: Regenerated.
11097 * features/i386/amd64-mpx-linux.c: Regenerated.
11098 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11099 * features/i386/i386-avx-mpx.c: Regenerated.
11100 * features/i386/x32-avx-linux.c: Regenerated.
11101 * features/i386/x32-avx512-linux.c: Regenerated.
11102 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11103 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11104 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11105 * regformats/i386/amd64-linux.dat: Regenerated.
11106 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11107 * regformats/i386/x32-avx-linux.dat: Regenerated.
11108 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11109 * regformats/i386/x32-linux.dat: Regenerated.
11110
8884e97e
WT
111112017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11112
11113 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11114 Set to AMD64_NUM_REGS.
11115
7005d26a
WT
111162017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11117
11118 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11119 that checks validity of a register number.
11120
4bd2e1b2
KC
111212017-01-27 Kees Cook <keescook@google.com>
11122
11123 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11124 fetch_fpregs if target has fpa registers.
11125 (arm_linux_store_inferior_registers): Call store_fpregs if target
11126 has fpa registers.
11127
7cf1de6c
AA
111282017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11129
11130 * cris-tdep.c (cris_gdbarch_init): Remove check for
11131 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11132
874a1c8c
AT
111332017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11134
11135 * corelow.c (get_core_register_section): Check for regset
11136 existence before checking for REGSET_VARIABLE_SIZE.
11137
d8b49cf0
YQ
111382017-01-26 Yao Qi <yao.qi@linaro.org>
11139 Pedro Alves <palves@redhat.com>
11140
11141 PR gdb/20939
11142 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11143 call memory_error, save memaddr instead.
11144 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11145 negative, cal memory_error.
11146 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11147
658ca58c
YQ
111482017-01-26 Yao Qi <yao.qi@linaro.org>
11149
11150 * disasm-selftests.c (memory_error_test): New function.
11151 (_initialize_disasm_selftests): Register memory_error_test.
11152
79843d45
YQ
111532017-01-26 Yao Qi <yao.qi@linaro.org>
11154
11155 * Makefile.in (SFILES): Add disasm-selftests.c and
11156 selftest-arch.c.
11157 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11158 * disasm-selftests.c: New file.
11159 * selftest-arch.c: New file.
11160 * selftest-arch.h: New file.
11161
8cafda32
YQ
111622017-01-26 Yao Qi <yao.qi@linaro.org>
11163
11164 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11165 to bfd_arch_mep. Don't return 0 if section is not
11166 found. Call print_insn_mep.
11167
e47ad6c0
YQ
111682017-01-26 Pedro Alves <palves@redhat.com>
11169 Yao Qi <yao.qi@linaro.org>
11170
11171 * arm-tdep.c: Include "disasm.h".
11172 (gdb_print_insn_arm): Update code to get gdbarch.
11173 * disasm.c (dis_asm_read_memory): Change it to
11174 gdb_disassembler::dis_asm_read_memory.
11175 (dis_asm_memory_error): Likewise.
11176 (dis_asm_print_address): Likewise.
11177 (gdb_pretty_print_insn): Change it to
11178 gdb_disassembler::pretty_print_insn.
11179 (dump_insns): Add one argument gdb_disassemlber. All
11180 callers updated.
11181 (do_mixed_source_and_assembly_deprecated): Likewise.
11182 (do_mixed_source_and_assembly): Likewise.
11183 (do_assembly_only): Likewise.
11184 (gdb_disassembler::gdb_disassembler): New.
11185 (gdb_disassembler::print_insn): New.
11186 * disasm.h (class gdb_disassembler): New.
11187 (gdb_pretty_print_insn): Remove declaration.
11188 (gdb_disassemble_info): Likewise.
11189 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11190 (gdbscm_disasm_read_memory_worker): Update.
11191 (gdbscm_disasm_read_memory): Update.
11192 (gdbscm_disasm_memory_error): Remove.
11193 (gdbscm_disasm_print_address): Remove.
11194 (gdbscm_disassembler::gdbscm_disassembler): New.
11195 (gdbscm_print_insn_from_port): Update.
11196 * mips-tdep.c: Include disasm.h.
11197 (gdb_print_insn_mips): Update code to get gdbarch.
11198 * record-btrace.c (btrace_insn_history): Update.
11199 * spu-tdep.c: Include disasm.h.
11200 (struct spu_dis_asm_data): Remove.
11201 (struct spu_dis_asm_info): New.
11202 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11203 SPU id.
11204 (gdb_print_insn_spu): Cast disassemble_info to
11205 spu_dis_asm_info.
11206
80d75874
YQ
112072017-01-26 Yao Qi <yao.qi@linaro.org>
11208
11209 * disasm.c (do_ui_file_delete): Delete.
11210 (gdb_insn_length): Move code creating stream to ...
11211 * utils.c (null_stream): ... here. New function.
11212 * utils.h (null_stream): Declare.
11213
60685cd0
SM
112142017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11215
11216 * python/py-inferior.c (find_thread_object): Return directly
11217 from the loop. Remove "found" variable.
11218
eb1cdb62
JB
112192017-01-21 Joel Brobecker <brobecker@adacore.com>
11220
11221 GDB 7.12.1 released.
11222
b1ce6568
SM
112232017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11224
11225 * python/py-function.c (fnpy_call): Reorder declarations to have
11226 the gdbpy_enter object declared first.
11227 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11228
6f8b0407
SM
112292017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11230
fec93fb1 11231 PR python/21068
6f8b0407
SM
11232 * python/python-internal.h (PyMem_RawMalloc): Define for
11233 Python < 3.4.
11234 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11235 PyMem_RawMalloc instead of PyMem_Malloc.
11236
78cbbba8
LM
112372017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11238 Luis Machado <lgustavo@codesourcery.com>
11239
11240 * NEWS (New commands): Mention flash-erase.
11241 (New MI commands): Mention target-flash-erase.
11242 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11243 command.
11244 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11245 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11246 * target.c (flash_erase_command): New function.
11247 (initialize_targets): Add new flash-erase command.
11248 * target.h (flash_erase_command): New declaration.
11249
2132fe85
JB
112502017-01-20 Joel Brobecker <brobecker@adacore.com>
11251
11252 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11253 HAVE_SYS_PROCFS_H is defined.
11254
d1dff226
AH
112552017-01-18 Alan Hayward <alan.hayward@arm.com>
11256
11257 * remote.c (struct cached_reg): Change data into a pointer.
11258 * (stop_reply_dtr): Free data pointers before deleting vector.
11259 (process_stop_reply): Likewise.
11260 (remote_parse_stop_reply): Allocate space for data
11261
9890e433
AH
112622017-01-18 Alan Hayward <alan.hayward@arm.com>
11263
11264 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11265 MAX_REGISTER_SIZE.
11266 (amd64_pseudo_register_read_value): Likewise.
11267 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11268 (store_register_using_P): Likewise.
11269 * regcache.c (regcache_xfer_part): Likewise.
11270
7a36499a
IR
112712017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11272
11273 Split real and pseudo registers.
11274 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11275 (sparc32_pseudo_regnum): New enum.
11276 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11277 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11278 (SPARC32_CP0_REGISTERS): New macro.
11279 (sparc32_pseudo_register_name): New function.
11280 (sparc32_register_name): Use sparc32_pseudo_register_name.
11281 (sparc32_pseudo_register_type): New function.
11282 (sparc32_register_type): Use sparc32_pseudo_register_type.
11283 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11284 pseudo register numbers.
11285 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11286 (SPARC64_CP0_REGISTERS): New macro.
11287 (sparc64_pseudo_register_name): New function.
11288 (sparc64_register_name): Use sparc64_pseudo_register_name.
11289 (sparc64_pseudo_register_type): New function.
11290 (sparc64_register_type): Use sparc64_pseudo_register_type.
11291 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11292 pseudo register numbers.
11293 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11294 sparc64_store_arguments): Handle pseudo register numbers.
11295
6f8976bf
YQ
112962017-01-13 Yao Qi <yao.qi@linaro.org>
11297
11298 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11299 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11300 output.
11301 (getpkt_or_notif_sane_1): Likewise.
11302
e4241ace
YQ
113032017-01-13 Yao Qi <yao.qi@linaro.org>
11304
11305 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11306 of CC. Pass "-x c++-header" instead of "-x c".
11307
3015c064
SM
113082017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11309
11310 * remote.c (remote_can_async_p): Update comment.
11311
fde1b17d
SM
113122017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11313
11314 * linux-nat.c (linux_nat_can_async_p): Update comment.
11315
ca1ca08b
SM
113162017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11317
11318 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11319
4ad2da73
SM
113202017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11321
11322 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11323
c8b23b3f
TT
113242017-01-10 Tom Tromey <tom@tromey.com>
11325
11326 * python/py-type.c (typy_legacy_template_argument): Update.
11327 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11328 ~demangle_parse_info): Declare new members.
11329 (cp_demangled_name_to_comp): Return unique_ptr.
11330 (cp_demangled_name_parse_free)
11331 (make_cleanup_cp_demangled_name_parse_free)
11332 (cp_new_demangle_parse_info): Remove.
11333 * cp-support.c (do_demangled_name_parse_free_cleanup)
11334 (make_cleanup_cp_demangled_name_parse_free): Remove.
11335 (inspect_type, cp_canonicalize_string_full)
11336 (cp_canonicalize_string): Update.
11337 (mangled_name_to_comp): Change return type.
11338 (cp_class_name_from_physname, method_name_from_physname)
11339 (cp_func_name, cp_remove_params): Update.
11340 * cp-name-parser.y (demangle_parse_info): New constructor, from
11341 cp_new_demangle_parse_info.
11342 (~demangle_parse_info): New destructor, from
11343 cp_demangled_name_parse_free.
11344 (cp_merge_demangle_parse_infos): Update.
11345 (cp_demangled_name_to_comp): Change return type.
11346
1ac32117
TT
113472017-01-10 Tom Tromey <tom@tromey.com>
11348
11349 * top.c (prevent_dont_repeat): Change return type.
11350 * python/python.c (execute_gdb_command): Use std::string.
11351 Update.
11352 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11353 * command.h (prevent_dont_repeat): Change return type.
11354 * breakpoint.c (bpstat_do_actions_1): Update.
11355
0cf08227
TT
113562017-01-10 Tom Tromey <tom@tromey.com>
11357
11358 * value.h (scoped_value_mark::~scoped_value_mark): Call
11359 free_to_mark.
11360 (scoped_value_mark::free_to_mark): New method.
11361 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11362 scoped_value_mark.
11363
eb115069
TT
113642017-01-10 Tom Tromey <tom@tromey.com>
11365
11366 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11367 (valpy_reference_value, valpy_const_value, valpy_get_address)
11368 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11369 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11370 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11371 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11372 scoped_value_mark.
11373 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11374 * value.h (scoped_value_mark): New class.
11375
906768f9
TT
113762017-01-10 Tom Tromey <tom@tromey.com>
11377
11378 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11379 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11380 * psymtab.c (discard_psymtabs_upto): Remove.
11381 (make_cleanup_discard_psymtabs): Remove.
11382 (struct psymtab_state): Remove.
11383
bef155c3
TT
113842017-01-10 Tom Tromey <tom@tromey.com>
11385
11386 * record-full.c (record_full_save_cleanups): Remove.
11387 (record_full_save): Use gdb::unlinker.
11388 * gcore.c (do_bfd_delete_cleanup): Remove.
11389 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11390 cleanups.
11391 * dwarf2read.c (unlink_if_set): Remove.
11392 (write_psymtabs_to_index): Use gdb::unlinker.
11393 * common/gdb_unlinker.h: New file.
11394
192b62ce
TT
113952017-01-10 Tom Tromey <tom@tromey.com>
11396
11397 * windows-tdep.c (windows_xfer_shared_library): Update.
11398 * windows-nat.c (windows_make_so): Update.
11399 * utils.h (make_cleanup_bfd_unref): Remove.
11400 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11401 * symfile.h (symfile_bfd_open)
11402 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11403 * symfile.c (read_symbols, symbol_file_add)
11404 (separate_debug_file_exists): Update.
11405 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11406 (generic_load, reread_symbols): Update.
11407 * symfile-mem.c (symbol_file_add_from_memory): Update.
11408 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11409 (spu_symbol_file_add_from_memory): Update.
11410 * solist.h (struct target_so_ops) <bfd_open>: Return
11411 gdb_bfd_ref_ptr.
11412 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11413 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11414 gdb_bfd_ref_ptr.
11415 (solib_map_sections, reload_shared_libraries_1): Update.
11416 * solib-svr4.c (enable_break): Update.
11417 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11418 * solib-frv.c (enable_break2): Update.
11419 * solib-dsbt.c (enable_break): Update.
11420 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11421 gdb_bfd_ref_ptr.
11422 (darwin_solib_get_all_image_info_addr_at_init): Update.
11423 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11424 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11425 * record-full.c (record_full_save): Update.
11426 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11427 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11428 * minidebug.c (find_separate_debug_file_in_section): Return
11429 gdb_bfd_ref_ptr.
11430 * machoread.c (macho_add_oso_symfile): Change abfd to
11431 gdb_bfd_ref_ptr.
11432 (macho_symfile_read_all_oso): Update.
11433 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11434 (macho_symfile_read): Update.
11435 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11436 (jit_bfd_try_read_symtab): Update.
11437 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11438 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11439 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11440 gdb_bfd_ref_ptr.
11441 (gdb_bfd_ref_policy): New struct.
11442 (gdb_bfd_ref_ptr): New typedef.
11443 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11444 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11445 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11446 gdb_bfd_ref_ptr.
11447 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11448 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11449 (gcore_command): Update.
11450 * exec.c (exec_file_attach): Update.
11451 * elfread.c (elf_symfile_read): Update.
11452 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11453 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11454 (open_and_init_dwo_file): Update.
11455 (open_dwp_file): Return gdb_bfd_ref_ptr.
11456 (open_and_init_dwp_file): Update.
11457 * corelow.c (core_open): Update.
11458 * compile/compile-object-load.c (compile_object_load): Update.
11459 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11460 * coffread.c (coff_symfile_read): Update.
11461 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11462 gdb_bfd_ref_ptr. Rename.
11463 (dump_bfd_file, restore_command): Update.
11464 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11465 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11466 (find_separate_debug_file_by_buildid): Update.
11467
50315b21
TT
114682017-01-10 Tom Tromey <tom@tromey.com>
11469
11470 * common/gdb_ref_ptr.h: New file.
11471 * python/py-ref.h (struct gdbpy_ref_policy): New.
11472 (gdbpy_ref): Now a typedef.
11473
fc4007c9
TT
114742017-01-10 Tom Tromey <tom@tromey.com>
11475
11476 * utils.h (make_cleanup_htab_delete): Don't declare.
11477 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11478 Remove.
11479 * linespec.c (decode_compound_collector): Add constructor,
11480 destructor.
11481 (lookup_prefix_sym): Remove cleanup.
11482 (symtab_collector): Add constructor, destructor.
11483 (collect_symtabs_from_filename): Remove cleanup.
11484 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11485 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11486 Use htab_up.
11487 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11488 * dwarf2read.c (dw2_expand_symtabs_matching)
11489 (dw2_map_symbol_filenames, dwarf_decode_macros)
11490 (write_psymtabs_to_index): Use htab_up.
11491 * dwarf2loc.c (func_verify_no_selftailcall)
11492 (call_site_find_chain_1, func_verify_no_selftailcall)
11493 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11494 std::vector, gdb::unique_xmalloc_ptr.
11495 (call_sitep): Remove typedef.
11496 (dwarf2_locexpr_baton_eval): Remove unused variable.
11497
8dbcee67
TT
114982017-01-10 Tom Tromey <tom@tromey.com>
11499
11500 * python/python-internal.h (make_cleanup_py_decref)
11501 (make_cleanup_py_xdecref): Don't declare.
11502 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11503 (py_xdecref, make_cleanup_py_xdecref): Remove.
11504
13df46cc
TT
115052017-01-10 Tom Tromey <tom@tromey.com>
11506
11507 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11508 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11509
06fc9bf7
TT
115102017-01-10 Tom Tromey <tom@tromey.com>
11511
11512 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11513
830a4934
TT
115142017-01-10 Tom Tromey <tom@tromey.com>
11515
11516 * python/py-utils.c (unicode_to_encoded_string)
11517 (python_string_to_target_string)
11518 (python_string_to_target_python_string)
11519 (python_string_to_host_string, gdbpy_obj_to_string)
11520 (get_addr_from_python): Use gdbpy_ref.
11521
4586d543
TT
115222017-01-10 Tom Tromey <tom@tromey.com>
11523
11524 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11525 gdbpy_ref.
11526
59876f8f
TT
115272017-01-10 Tom Tromey <tom@tromey.com>
11528
11529 * python/python.c (eval_python_command, gdbpy_decode_line)
11530 (gdbpy_run_events, gdbpy_start_type_printers)
11531 (gdbpy_apply_type_printers): Use gdbpy_ref.
11532
97d83487
TT
115332017-01-10 Tom Tromey <tom@tromey.com>
11534
11535 * python/py-param.c (get_doc_string, compute_enum_values): Use
11536 gdbpy_ref.
11537
9205649a
TT
115382017-01-10 Tom Tromey <tom@tromey.com>
11539
11540 * python/py-inferior.c (find_thread_object, build_inferior_list):
11541 Use gdbpy_ref.
11542
74c49d45
TT
115432017-01-10 Tom Tromey <tom@tromey.com>
11544
11545 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11546
16361ffb
TT
115472017-01-10 Tom Tromey <tom@tromey.com>
11548
11549 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11550 gdbpy_ref.
11551
905f2cca
TT
115522017-01-10 Tom Tromey <tom@tromey.com>
11553
11554 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11555 extra incref.
11556 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11557 Use gdbpy_ref.
11558
64081434
TT
115592017-01-10 Tom Tromey <tom@tromey.com>
11560
11561 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11562 gdbpy_ref.
11563
59e9e831
TT
115642017-01-10 Tom Tromey <tom@tromey.com>
11565
11566 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11567 decref results of PyArg_ParseTupleAndKeywords.
11568
9de10f6d
TT
115692017-01-10 Tom Tromey <tom@tromey.com>
11570
11571 * python/python.c (python_run_simple_file): Use
11572 unique_xmalloc_ptr, gdbpy_ref.
11573
2bd5759d
TT
115742017-01-10 Tom Tromey <tom@tromey.com>
11575
11576 * python/py-prettyprint.c (print_stack_unless_memory_error)
11577 (print_string_repr, print_children): Use gdbpy_ref.
11578 (dummy_python_frame): New class.
11579 (dummy_python_frame::dummy_python_frame): Rename from
11580 push_dummy_python_frame.
11581 (py_restore_tstate): Remove.
11582
3b4e0e01
TT
115832017-01-10 Tom Tromey <tom@tromey.com>
11584
11585 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11586
17a22718
TT
115872017-01-10 Tom Tromey <tom@tromey.com>
11588
11589 * python/python.c (ensure_python_env, restore_python_env):
11590 Remove.
11591 * python/python-internal.h (ensure_python_env): Don't declare.
11592 * varobj.h (varobj_ensure_python_env): Don't declare.
11593 * varobj.c (varobj_ensure_python_env): Remove.
11594
68cdc557
TT
115952017-01-10 Tom Tromey <tom@tromey.com>
11596
11597 * varobj.c (varobj_value_get_print_value): Use
11598 gdbpy_enter_varobj.
11599
1eba6383
TT
116002017-01-10 Tom Tromey <tom@tromey.com>
11601
11602 * python/py-prettyprint.c (print_string_repr, print_children):
11603 Update.
11604 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11605 of "encoding".
11606 * varobj.c (varobj_value_get_print_value): Update.
11607 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11608
bde7b3e3
TT
116092017-01-10 Tom Tromey <tom@tromey.com>
11610
11611 * varobj.c (varobj_get_display_hint)
11612 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11613 (varobj_set_visualizer, free_variable): Use
11614 gdbpy_enter_varobj.
11615
a7785f8c
TT
116162017-01-10 Tom Tromey <tom@tromey.com>
11617
11618 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11619 (do_finish_initialization): New function. Use gdbpy_ref.
11620 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11621 do_finish_initialization.
11622
2865bfce
TT
116232017-01-10 Tom Tromey <tom@tromey.com>
11624
11625 * python/py-param.c (get_set_value, get_show_value): Use
11626 gdbpy_enter, gdbpy_ref.
11627
0e9dcc75
TT
116282017-01-10 Tom Tromey <tom@tromey.com>
11629
11630 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11631
12a5cedd
TT
116322017-01-10 Tom Tromey <tom@tromey.com>
11633
11634 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11635
788f2586
TT
116362017-01-10 Tom Tromey <tom@tromey.com>
11637
11638 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11639 Use gdbpy_enter_varobj.
11640
6cd67bea
TT
116412017-01-10 Tom Tromey <tom@tromey.com>
11642
11643 * varobj.c (gdbpy_enter_varobj): New constructor.
11644 * python/python-internal.h (gdbpy_enter_varobj): New class.
11645 * python/py-varobj.c (py_varobj_get_iterator): Use
11646 gdbpy_enter_varobj.
11647
14b122bf
TT
116482017-01-10 Tom Tromey <tom@tromey.com>
11649
11650 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11651 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11652 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11653 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11654 unique_xmalloc_ptr.
11655 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11656
bf1ca3b9
TT
116572017-01-10 Tom Tromey <tom@tromey.com>
11658
11659 * python/py-xmethods.c (invoke_match_method): Use
11660 gdbpy_ref.
11661
572a5524
TT
116622017-01-10 Tom Tromey <tom@tromey.com>
11663
11664 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11665 gdbpy_enter, gdbpy_ref.
11666
396a78b6
TT
116672017-01-10 Tom Tromey <tom@tromey.com>
11668
11669 * python/python.c (python_interactive_command): Use gdbpy_enter.
11670
a88b13c7
TT
116712017-01-10 Tom Tromey <tom@tromey.com>
11672
11673 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11674 gdbpy_ref.
11675
e9f0c363
TT
116762017-01-10 Tom Tromey <tom@tromey.com>
11677
11678 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11679 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11680
6349f452
TT
116812017-01-10 Tom Tromey <tom@tromey.com>
11682
11683 * utils.h (htab_deleter): New struct.
11684 (htab_up): New typedef.
11685 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11686 gdbpy_enter, gdbpy_ref, htab_up.
11687
c0171de6
TT
116882017-01-10 Tom Tromey <tom@tromey.com>
11689
11690 * python/py-unwind.c (pending_frame_invalidate): Remove.
11691 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11692
f18e226f
TT
116932017-01-10 Tom Tromey <tom@tromey.com>
11694
11695 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11696 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11697
c57af3f1
TT
116982017-01-10 Tom Tromey <tom@tromey.com>
11699
11700 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11701
60e600ec
TT
117022017-01-10 Tom Tromey <tom@tromey.com>
11703
11704 * python/python.c (gdbpy_eval_from_control_command)
11705 (gdbpy_source_script, gdbpy_run_events)
11706 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11707 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11708 gdbpy_enter.
11709
bf7da5b0
TT
117102017-01-10 Tom Tromey <tom@tromey.com>
11711
11712 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11713
2d38bced
TT
117142017-01-10 Tom Tromey <tom@tromey.com>
11715
11716 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11717
07bc7329
TT
117182017-01-10 Tom Tromey <tom@tromey.com>
11719
11720 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11721 (python_on_inferior_call_pre, python_on_inferior_call_post)
11722 (python_on_memory_change, python_on_register_change)
11723 (python_inferior_exit, python_new_objfile, add_thread_object)
11724 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11725
6e7c365e
TT
117262017-01-10 Tom Tromey <tom@tromey.com>
11727
11728 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11729 (bpfinishpy_handle_exit): Use gdbpy_enter.
11730
6ba0cd40
TT
117312017-01-10 Tom Tromey <tom@tromey.com>
11732
11733 * python/py-cmd.c (cmdpy_destroyer)
11734 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11735 gdbpy_enter.
11736
de2dc875
TT
117372017-01-10 Tom Tromey <tom@tromey.com>
11738
11739 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11740 gdbpy_enter.
11741 (gdbpy_breakpoint_has_cond): Likewise.
11742
4ecee2c4
TT
117432017-01-10 Tom Tromey <tom@tromey.com>
11744
11745 * python/python.c (gdbpy_enter): New constructor.
11746 (~gdbpy_enter): New destructor.
11747 (restore_python_env, ensure_python_env): Rewrite.
11748 * python/python-internal.h (gdbpy_enter): New class.
11749
37fce74f
TT
117502017-01-10 Tom Tromey <tom@tromey.com>
11751
11752 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11753
53a0cca3
TT
117542017-01-10 Tom Tromey <tom@tromey.com>
11755
11756 * python/py-value.c (value_has_field, get_field_flag)
11757 (get_field_type, valpy_getitem, convert_value_from_python): Use
11758 gdbpy_ref.
11759
ff3724f5
TT
117602017-01-10 Tom Tromey <tom@tromey.com>
11761
11762 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11763 gdbpy_ref.
11764
0700aea5
TT
117652017-01-10 Tom Tromey <tom@tromey.com>
11766
11767 * python/py-prettyprint.c (search_pp_list)
11768 (find_pretty_printer_from_objfiles)
11769 (find_pretty_printer_from_progspace)
11770 (find_pretty_printer_from_gdb, find_pretty_printer)
11771 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11772 gdbpy_ref.
11773
1bb44c9f
TT
117742017-01-10 Tom Tromey <tom@tromey.com>
11775
11776 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11777
87ce03fd
TT
117782017-01-10 Tom Tromey <tom@tromey.com>
11779
11780 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11781 (ltpy_get_all_source_lines): Use gdbpy_ref.
11782
ee0a3fb8
TT
117832017-01-10 Tom Tromey <tom@tromey.com>
11784
11785 * python/py-framefilter.c (extract_sym, extract_value)
11786 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11787 gdbpy_ref.
11788
bf2a52fa
TT
117892017-01-10 Tom Tromey <tom@tromey.com>
11790
11791 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11792
f59fe7f8
TT
117932017-01-10 Tom Tromey <tom@tromey.com>
11794
11795 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11796
80bd970a
TT
117972017-01-10 Tom Tromey <tom@tromey.com>
11798
11799 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11800 gdbpy_ref.
11801
d1b3de2e
TT
118022017-01-10 Tom Tromey <tom@tromey.com>
11803
11804 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11805
3bb43384
TT
118062017-01-10 Tom Tromey <tom@tromey.com>
11807
11808 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11809 (typy_range): Use gdbpy_ref.
11810
abf5651e
TT
118112017-01-10 Tom Tromey <tom@tromey.com>
11812
11813 * python/py-threadevent.c (create_thread_event_object): Use
11814 gdbpy_ref.
11815 * python/py-stopevent.c (create_stop_event_object): Simplify.
11816 (emit_stop_event): Use gdbpy_ref.
11817 * python/py-signalevent.c (create_signal_event_object): Use
11818 gdbpy_ref.
11819 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11820 (emit_new_objfile_event, create_clear_objfiles_event_object)
11821 (emit_clear_objfiles_event): Use gdbpy_ref.
11822 * python/py-infevents.c (create_inferior_call_event_object)
11823 (create_register_changed_event_object)
11824 (create_memory_changed_event_object, emit_inferior_call_event)
11825 (emit_memory_changed_event, emit_register_changed_event): Use
11826 gdbpy_ref.
11827 * python/py-exitedevent.c (create_exited_event_object)
11828 (emit_exited_event): Use gdbpy_ref.
11829 * python/py-event.h (evpy_emit_event): Remove
11830 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11831 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11832 * python/py-continueevent.c (emit_continue_event): Use
11833 gdbpy_ref.
11834 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11835 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11836 gdbpy_ref.
11837 * python/py-bpevent.c (create_breakpoint_event_object): Use
11838 gdbpy_ref.
11839
a68ff33e
TT
118402017-01-10 Tom Tromey <tom@tromey.com>
11841
11842 * python/py-ref.h: New file.
11843
7becfd03
SM
118442017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11845
11846 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11847 void.
11848 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11849 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11850 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11851 * ui-out.c (ui_out::redirect): Likewise.
11852 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11853 * cli/cli-logging.c (set_logging_redirect): Update call site of
11854 ui_out::redirect.
11855 (handle_redirections): Likewise.
11856 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11857 * top.c (execute_command_to_string): Likewise.
11858 * utils.c (do_ui_out_redirect_pop): Likewise.
11859
df294654
SM
118602017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11861
11862 * stack.c (_initialize_stack): Update "frame" command help message.
11863
f5e6296e
IB
118642017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11865
11866 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11867
0e2d6fa6
YQ
118682017-01-06 Yao Qi <yao.qi@linaro.org>
11869
11870 * x86-linux-nat.h: Include gdb_proc_service.h.
11871
44d6d3f9
YQ
118722017-01-06 Yao Qi <yao.qi@linaro.org>
11873
11874 * ser-base.h: Include serial.h.
11875
656731fe
YQ
118762017-01-06 Yao Qi <yao.qi@linaro.org>
11877
11878 * ppc-linux-tdep.h: Include ppc-tdep.h.
11879
1ca8f924
YQ
118802017-01-06 Yao Qi <yao.qi@linaro.org>
11881
11882 * nat/amd64-linux-siginfo.h: Include signal.h.
11883
bc3008c4
YQ
118842017-01-06 Yao Qi <yao.qi@linaro.org>
11885
11886 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11887
66c80d03
YQ
118882017-01-06 Yao Qi <yao.qi@linaro.org>
11889
11890 * mi/mi-parse.h: Include mi-cmds.h.
11891
051d2dda
YQ
118922017-01-06 Yao Qi <yao.qi@linaro.org>
11893
11894 * inf-loop.c: Don't include "target.h".
11895 * inf-loop.h: Include it here.
11896
8018d34f
YQ
118972017-01-06 Yao Qi <yao.qi@linaro.org>
11898
11899 * dfp.h: Include "dboulest.h" and "expression.h".
11900
c0b8369c
YQ
119012017-01-06 Yao Qi <yao.qi@linaro.org>
11902
11903 * ax-gdb.h: Include "ax.h".
11904
ad5cba2a
YQ
119052017-01-06 Yao Qi <yao.qi@linaro.org>
11906
11907 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11908 with nat/gdb_ptrace.h.
11909
1c33cd7f
YQ
119102017-01-05 Yao Qi <yao.qi@linaro.org>
11911
11912 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11913 new line.
11914 (mips64_fbsd_sigframe_init): Likewise.
11915
c988ac1d
JB
119162017-01-04 John Baldwin <jhb@FreeBSD.org>
11917
11918 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11919 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11920
b268007c
JB
119212017-01-04 John Baldwin <jhb@FreeBSD.org>
11922
11923 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11924 * NEWS: Mention new FreeBSD/mips native configuration.
11925 * config/mips/fbsd.mh: New file.
11926 * configure.host: Add mips*-*-freebsd*.
11927 * mips-fbsd-nat.c: New file.
11928
387360da
JB
119292017-01-04 John Baldwin <jhb@FreeBSD.org>
11930
11931 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11932 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11933 * NEWS: Mention new FreeBSD/mips target.
11934 * configure.tgt: Add mips*-*-freebsd*.
11935 * mips-fbsd-tdep.c: New file.
11936 * mips-fbsd-tdep.h: New file.
11937
2aaaf250
YQ
119382017-01-04 Yao Qi <yao.qi@linaro.org>
11939
11940 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11941 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11942
61baf725
JB
119432017-01-01 Joel Brobecker <brobecker@adacore.com>
11944
6dbb839a 11945 Update copyright year range in all GDB files.
61baf725 11946
c113e7ff 119472017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 11948
c113e7ff 11949 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 11950
c113e7ff 11951For older changes see ChangeLog-2016.
c906108c
SS
11952\f
11953Local Variables:
11954mode: change-log
11955left-margin: 8
11956fill-column: 74
11957version-control: never
57da7796 11958coding: utf-8
c906108c 11959End:
This page took 2.618229 seconds and 4 git commands to generate.