Simplify floatformat_from_type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0db7851f
UW
12017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
4 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5
6 * gdbtypes.h (union type_specific): Make field floatformat hold
7 just a single struct floatformat, not an array.
8 (floatformat_from_type): Move here.
9 * gdbtypes.c (floatformat_from_type): Move here. Update to
10 changed TYPE_FLOATFORMAT definition.
11 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
12 (recursive_dump_type): Likewise.
13 (init_float_type): Install correct floatformat for byte order.
14 (arch_float_type): Likewise.
15
77b7c781
UW
162017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17
18 * gdbtypes.c (init_type): Change incoming argument from
19 length-in-bytes to length-in-bits. Assert length is a
20 multiple of TARGET_CHAR_BITS.
21 (arch_type, arch_flags_type): Likewise.
22 (init_integer_type): Update call to init_type.
23 (init_character_type): Likewise.
24 (init_boolean_type): Likewise.
25 (init_float_type): Likewise.
26 (init_decfloat_type): Likewise.
27 (init_complex_type): Likewise.
28 (init_pointer_type): Likewise.
29 (objfile_type): Likewise.
30 (arch_integer_type): Update call to arch_type.
31 (arch_character_type): Likewise.
32 (arch_boolean_type): Likewise.
33 (arch_float_type): Likewise.
34 (arch_decfloat_type): Likewise.
35 (arch_complex_type): Likewise.
36 (arch_pointer_type): Likewise.
37 (gdbtypes_post_init): Likewise.
38
39 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
40 (read_base_type): Likewise.
41 * mdebugread.c (basic_type): Likewise.
42 * stabsread.c (dbx_init_float_type): Likewise.
43 (rs6000_builtin_type): Likewise.
44 (read_range_type): Likewise. Also, fix call to init_integer_type
45 with erroneous length argument.
46
47 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
48 * d-lang.c (build_d_types): Likewise.
49 * f-lang.c (build_fortran_types): Likewise.
50 * go-lang.c (build_go_types): Likewise.
51 * opencl-lang.c (build_opencl_types): Likewise.
52 * jit.c (finalize_symtab): Likewise.
53 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
54 (build_std_type_info_type): Likewise.
55 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
56 update call to arch_flags_type.
57
58 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
59 arch_type.
60 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
61 * windows-tdep.c (windows_get_tlb_type): Likewise.
62
63 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
64 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
65 * m32c-tdep.c (make_types): Likewise.
66 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
67 (rl78_psw_type): Update call to arch_flags_type.
68 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
69 * rx-tdep.c (rx_psw_type): Likewise.
70 (rx_fpsw_type): Likewise.
71 * sparc-tdep.c (sparc_psr_type): Likewise.
72 (sparc_fsr_type): Likewise.
73 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
74 (sparc64_ccr_type): Likewise.
75 (sparc64_fsr_type): Likewise.
76 (sparc64_fprs_type): Likewise.
77
f21b4d5c
TT
782017-09-27 Tom Tromey <tom@tromey.com>
79
80 * findcmd.c (find_command): Constify.
81
643c2ffa
TT
822017-09-27 Tom Tromey <tom@tromey.com>
83
84 * ada-tasks.c (task_command_1, task_command): Constify.
85
510e5e56
TT
862017-09-27 Tom Tromey <tom@tromey.com>
87
88 * symtab.c (maintenance_print_symbol_cache)
89 (maintenance_flush_symbol_cache)
90 (maintenance_print_symbol_cache_statistics): Constify.
91
e503b191
TT
922017-09-27 Tom Tromey <tom@tromey.com>
93
94 * inferior.c (detach_inferior_command, kill_inferior_command)
95 (inferior_command): Constify.
96
4e001312
TT
972017-09-27 Tom Tromey <tom@tromey.com>
98
99 * regcache.c (regcache_print, maintenance_print_registers)
100 (maintenance_print_raw_registers)
101 (maintenance_print_cooked_registers)
102 (maintenance_print_register_groups)
103 (maintenance_print_remote_registers): Constify.
104
77763700
TT
1052017-09-27 Tom Tromey <tom@tromey.com>
106
107 * printcmd.c (map_display_numbers, undisplay_command)
108 (enable_disable_display_command, enable_display_command)
109 (disable_display_command): Constify.
110
4495129a
TT
1112017-09-27 Tom Tromey <tom@tromey.com>
112
113 * breakpoint.h (delete_command): Don't declare.
114 * breakpoint.c (delete_command, enable_once_command)
115 (enable_count_command, enable_delete_command, breakpoint_1)
116 (maintenance_info_breakpoints, stopin_command, stopat_command)
117 (delete_command, delete_trace_command, save_breakpoints)
118 (save_breakpoints_command, save_tracepoints_command): Constify.
119
3088cf40
TT
1202017-09-27 Tom Tromey <tom@tromey.com>
121
122 * macrocmd.c (macro_expand_command, macro_expand_once_command)
123 (skip_ws, extract_identifier, macro_define_command)
124 (macro_undef_command, macro_list_command): Constify.
125
69f476a3
TT
1262017-09-27 Tom Tromey <tom@tromey.com>
127
128 * infcmd.c (environment_info, set_environment_command)
129 (unset_environment_command, path_info, info_proc_cmd_1)
130 (info_proc_cmd_mappings, info_proc_cmd_stat)
131 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
132 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
133
c4a3e68e
TT
1342017-09-27 Tom Tromey <tom@tromey.com>
135
136 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
137 Constify.
138
c9d31bd6
TT
1392017-09-27 Tom Tromey <tom@tromey.com>
140
141 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
142
1f3f85eb
TT
1432017-09-27 Tom Tromey <tom@tromey.com>
144
145 * demangle.c (demangle_command): Constify.
146
9c504b5d
TT
1472017-09-27 Tom Tromey <tom@tromey.com>
148
149 * progspace.c (maintenance_info_program_spaces_command):
150 Constify.
151
6663cf91
TT
1522017-09-27 Tom Tromey <tom@tromey.com>
153
154 * compile/compile.c (check_raw_argument, compile_file_command)
155 (compile_code_command, compile_print_command): Constify.
156
34e5fa26
TT
1572017-09-27 Tom Tromey <tom@tromey.com>
158
159 * reggroups.c (maintenance_print_reggroups): Constify.
160
8384c356
TT
1612017-09-27 Tom Tromey <tom@tromey.com>
162
163 * dwarf2read.c (save_gdb_index_command): Constify.
164
884beb0c
TT
1652017-09-27 Tom Tromey <tom@tromey.com>
166
167 * stap-probe.c (info_probes_stap_command): Constify.
168
e0b2930c
TT
1692017-09-27 Tom Tromey <tom@tromey.com>
170
171 * fork-child.c (unset_exec_wrapper_command): Constify.
172
f938677d
TT
1732017-09-27 Tom Tromey <tom@tromey.com>
174
175 * btrace.c (get_uint, get_context_size, no_chunk)
176 (maint_btrace_packet_history_cmd)
177 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
178 (maint_info_btrace_cmd): Constify.
179
8949cb87
TT
1802017-09-27 Tom Tromey <tom@tromey.com>
181
182 * reverse.c (delete_bookmark_command): Constify.
183
ac88e2de
TT
1842017-09-27 Tom Tromey <tom@tromey.com>
185
186 * remote.c (set_memory_packet_size)
187 (set_memory_write_packet_size, show_memory_write_packet_size)
188 (set_memory_read_packet_size, show_memory_read_packet_size)
189 (compare_sections_command, packet_command, remote_put_command)
190 (remote_get_command, remote_delete_command): Constify.
191
bd4c9dfe
TT
1922017-09-27 Tom Tromey <tom@tromey.com>
193
194 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
195 (set_mipsfpu_double_command, set_mipsfpu_none_command)
196 (set_mipsfpu_auto_command): Constify.
197
5e93d4c6
TT
1982017-09-27 Tom Tromey <tom@tromey.com>
199
200 * cli/cli-cmds.h (cd_command): Constify.
201 * cli/cli-cmds.c (cd_command): Constify.
202
fc41a75b
TT
2032017-09-27 Tom Tromey <tom@tromey.com>
204
205 * thread.c (thread_name_command, thread_find_command): Constify.
206
67810076
TT
2072017-09-27 Tom Tromey <tom@tromey.com>
208
209 * probe.c (enable_probes_command, disable_probes_command):
210 Constify.
211
1d8b34a7
TT
2122017-09-27 Tom Tromey <tom@tromey.com>
213
214 * symfile.c (symbol_file_command): Constify.
215 * gdbcore.h (deprecated_file_changed_hook): Constify.
216 * exec.c (deprecated_file_changed_hook, exec_file_command)
217 (file_command): Constify.
218 * defs.h (symbol_file_command): Constify.
219
442019e1
TT
2202017-09-27 Tom Tromey <tom@tromey.com>
221
222 * remote-fileio.c (set_system_call_allowed)
223 (show_system_call_allowed): Constify.
224
2983f7cb
TT
2252017-09-27 Tom Tromey <tom@tromey.com>
226
227 * tracepoint.c (delete_trace_variable_command)
228 (tfind_end_command, tfind_start_command, tfind_pc_command)
229 (tfind_tracepoint_command, tfind_line_command)
230 (tfind_range_command, tfind_outside_command): Constify.
231
4fd41b24
TT
2322017-09-27 Tom Tromey <tom@tromey.com>
233
234 * ax-gdb.c (maint_agent_printf_command, agent_command)
235 (agent_eval_command): Constify.
236
f2fc3015
TT
2372017-09-27 Tom Tromey <tom@tromey.com>
238
239 * tracepoint.c (info_scope_command): Constify.
240 * python/python.c (gdbpy_decode_line): Constify.
241 * python/py-breakpoint.c (bppy_init): Constify.
242 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
243 * location.h: (new_linespec_location)
244 (string_to_event_location_basic, string_to_event_location):
245 Constify.
246 * location.c (new_linespec_location)
247 (string_to_event_location_basic, string_to_event_location):
248 Constify.
249 * linespec.h (decode_line_with_current_source)
250 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
251 * linespec.c (linespec_lex_to_end)
252 (decode_line_with_current_source)
253 (decode_line_with_last_displayed): Constify.
254 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
255 Constify.
256 * cli/cli-cmds.c (edit_command, list_command): Constify.
257 * breakpoint.h (until_break_command, watch_command_wrapper)
258 (awatch_command_wrapper, rwatch_command_wrapper)
259 (init_ada_exception_breakpoint): Constify.
260 * breakpoint.c (break_command_1, dprintf_command)
261 (break_range_command, watch_command_wrapper)
262 (rwatch_command_wrapper, awatch_command_wrapper)
263 (until_break_command, init_ada_exception_breakpoint)
264 (strace_marker_create_sals_from_location, trace_command)
265 (ftrace_command, strace_command, struct tracepoint): Constify.
266 * ax-gdb.c (agent_command_1): Constify.
267 * ada-lang.c (ada_exception_sal): Constify.
268
8c2f95f4
TT
2692017-09-27 Tom Tromey <tom@tromey.com>
270
271 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
272 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
273 (get_context_size, no_chunk, get_insn_history_modifiers)
274 (cmd_record_insn_history, get_call_history_modifiers)
275 (cmd_record_call_history): Constify.
276
a0d65762
TT
2772017-09-27 Tom Tromey <tom@tromey.com>
278
279 * source.c (show_substitute_path_command)
280 (unset_substitute_path_command, set_substitute_path_command):
281 Constify.
282
58971144
TT
2832017-09-27 Tom Tromey <tom@tromey.com>
284
285 * typeprint.c (maintenance_print_type): Constify.
286 * maint.c (maintenance_dump_me, maintenance_demangle)
287 (maintenance_time_display, maintenance_info_sections)
288 (maintenance_print_statistics, maintenance_deprecate)
289 (maintenance_undeprecate): Constify.
290 (maintenance_do_deprecate): Constify. Use std::string.
291 (maintenance_selftest): Constify.
292 * gdbtypes.h (maintenance_print_type): Constify.
293
c482f52c
TT
2942017-09-27 Tom Tromey <tom@tromey.com>
295
296 * hppa-tdep.c (unwind_command): Constify.
297
e100df1a
TT
2982017-09-27 Tom Tromey <tom@tromey.com>
299
300 * target-descriptions.c (unset_tdesc_filename_cmd)
301 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
302 Constify.
303
31d56ade
TT
3042017-09-27 Tom Tromey <tom@tromey.com>
305
306 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
307
b961da0b
TT
3082017-09-27 Tom Tromey <tom@tromey.com>
309
310 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
311
e2d8ae16
TT
3122017-09-27 Tom Tromey <tom@tromey.com>
313
314 * tui/tui-regs.c (tui_reg_command): Constify.
315
863779b0
TT
3162017-09-27 Tom Tromey <tom@tromey.com>
317
318 * skip.c (skip_file_command, skip_function_command)
319 (skip_enable_command, skip_disable_command, skip_delete_command):
320 Constify.
321
cdb34d4a
TT
3222017-09-27 Tom Tromey <tom@tromey.com>
323
324 * record-btrace.c (cmd_record_btrace_bts_start)
325 (cmd_record_btrace_pt_start): Constify.
326
e99c83e7
TT
3272017-09-27 Tom Tromey <tom@tromey.com>
328
329 * symmisc.c (maintenance_print_symbols)
330 (maintenance_print_msymbols, maintenance_print_objfiles)
331 (maintenance_info_symtabs, maintenance_check_symtabs)
332 (maintenance_expand_symtabs, maintenance_info_line_tables):
333 Constify.
334
32faf971
TT
3352017-09-27 Tom Tromey <tom@tromey.com>
336
337 * top.c (new_ui_command): Constify.
338
2cf311eb
TT
3392017-09-27 Tom Tromey <tom@tromey.com>
340
341 * symfile.c (add_symbol_file_command)
342 (remove_symbol_file_command, list_overlays_command)
343 (map_overlay_command, unmap_overlay_command)
344 (overlay_auto_command, overlay_manual_command)
345 (overlay_off_command, overlay_load_command): Constify.
346
e6738699
TT
3472017-09-27 Tom Tromey <tom@tromey.com>
348
349 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
350 (info_spu_mailbox_command, info_spu_dma_command)
351 (info_spu_proxydma_command): Constify.
352
aa360cd5
TT
3532017-09-27 Tom Tromey <tom@tromey.com>
354
355 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
356
898241a5
TT
3572017-09-27 Tom Tromey <tom@tromey.com>
358
359 * cli/cli-script.c (user_defined_command): Constify.
360
2d0ac106
TT
3612017-09-27 Tom Tromey <tom@tromey.com>
362
363 * cli/cli-dump.c (dump_memory_command, dump_value_command)
364 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
365 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
366 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
367 (dump_binary_value, append_binary_memory, append_binary_value):
368 Constify.
369 (struct dump_context) <func>: Constify.
370 (add_dump_command): Update.
371
dede02ce
TT
3722017-09-27 Tom Tromey <tom@tromey.com>
373
374 * cli/cli-cmds.c (show_version, show_configuration)
375 (source_command, show_user): Constify.
376
d3cb6b99
TT
3772017-09-27 Tom Tromey <tom@tromey.com>
378
379 * target.c (maintenance_print_target_stack): Constify.
380
1970a12f
TT
3812017-09-27 Tom Tromey <tom@tromey.com>
382
383 * interps.c (interpreter_exec_cmd): Constify.
384
41243651
TT
3852017-09-27 Tom Tromey <tom@tromey.com>
386
387 * record-full.c (cmd_record_full_restore): Constify.
388
4465d9db
TT
3892017-09-27 Tom Tromey <tom@tromey.com>
390
391 * memattr.c (enable_mem_command, disable_mem_command)
392 (delete_mem_command): Constify.
393
ad25e423
TT
3942017-09-27 Tom Tromey <tom@tromey.com>
395
396 * value.c (show_convenience): Constify.
397
d64097b1
TT
3982017-09-27 Tom Tromey <tom@tromey.com>
399
400 * gdbcore.h (core_file_command): Update.
401 * corefile.c (core_file_command): Constify.
402
4d4589ef
TT
4032017-09-27 Tom Tromey <tom@tromey.com>
404
405 * user-regs.c (maintenance_print_user_registers): Constify.
406
32a7bf17
TT
4072017-09-27 Tom Tromey <tom@tromey.com>
408
409 * cp-namespace.c (maintenance_cplus_namespace): Constify.
410
4a475551
TT
4112017-09-27 Tom Tromey <tom@tromey.com>
412
413 * cp-support.c (first_component_command): Constify.
414
990b9f9f
TT
4152017-09-27 Tom Tromey <tom@tromey.com>
416
417 * psymtab.c (maintenance_print_psymbols)
418 (maintenance_info_psymtabs, maintenance_check_psymtabs):
419 Constify.
420
c281872e
TT
4212017-09-27 Tom Tromey <tom@tromey.com>
422
423 * windows-tdep.c (display_tib): Constify.
424
5b64bf74
TT
4252017-09-27 Tom Tromey <tom@tromey.com>
426
427 * linux-fork.c (delete_checkpoint_command)
428 (detach_checkpoint_command): Constify.
429
4ada038f
TT
4302017-09-27 Tom Tromey <tom@tromey.com>
431
432 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
433
57f5a81b
TT
4342017-09-27 Tom Tromey <tom@tromey.com>
435
436 * arc-tdep.c (dump_arc_instruction_command): Constify.
437
b0a8e6c4
TT
4382017-09-27 Tom Tromey <tom@tromey.com>
439
440 * valprint.c (set_radix, show_radix): Constify.
441
8d97dc1c
TT
4422017-09-27 Tom Tromey <tom@tromey.com>
443
444 * dtrace-probe.c (info_probes_dtrace_command): Constify.
445
eb7c454d
TT
4462017-09-27 Tom Tromey <tom@tromey.com>
447
448 * command.h (not_just_help_class_command): Update.
449 * cli/cli-decode.h (not_just_help_class_command): Update.
450 * cli/cli-decode.c (not_just_help_class_command): Constify.
451
e4e33335
TT
4522017-09-27 Tom Tromey <tom@tromey.com>
453
454 * gdb_bfd.c (maintenance_info_bfds): Constify.
455
0450cc4c
TT
4562017-09-27 Tom Tromey <tom@tromey.com>
457
458 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
459 overloads.
460 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
461 (do_const_cfunc): New function.
462 (cmd_cfunc_eq): New overload.
463 (cli_user_command_p): Check do_const_cfunc.
464 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
465 const_cfunc.
466 * command.h (add_cmd): Add const overload and no-function
467 overload.
468 (set_cmd_cfunc): Add const overload.
469 (cmd_const_cfunc_ftype): Declare.
470 (cmd_cfunc_eq): Add const overload.
471 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
472 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
473 overload.
474
a9bbfbd8
TT
4752017-09-27 Tom Tromey <tom@tromey.com>
476
477 * macroexp.c (get_next_token_for_substitution): New function.
478 (substitute_args): Call it. Check for __VA_OPT__.
479
5230b05a
WT
4802017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
481 Pedro Alves <palves@redhat.com>
482
483 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
484 producer_is_icc_lt_14.
485 (producer_is_icc_lt_14): New function.
486 (check_producer): Add code for checking version of ICC.
487 (producer_is_icc): Move to producer.c.
488 (read_structure_type): Restrict ICC workaround to ICC<14.
489 * producer.c: Include selftest.h.
490 (producer_is_icc, producer_parsing_tests, _initialize_producer):
491 New functions.
492 * producer.h (producer_is_icc): New declaration.
493
b32b108a
WT
4942017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
495
496 * Makefile.in (SFILES): Add producer.c.
497 (COMMON_OBS): Add producer.o
498 * amd64-tdep.c (producer.h): Add new include.
499 * dwarf2read.c (producer.h): Add new include.
500 * producer.c: New file.
501 * producer.h: New file.
502 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
503 producer.c.
504 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
505 producer.h.
506
5007d765
MK
5072017-09-26 Matthias Klose <doko@ubuntu.com>
508
509 * configure.ac: Search ncursesw before ncurses.
510 Check ncursesw/ncurses.h before ncurses/ncurses.h.
511 * gdb_curses.h: Include <ncursesw/ncurses.h>
512 * config.in, configure: Regenerate.
513
281c4447
RO
5142017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
515
516 PR gdb/22185
517 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
518 obsolete.
519 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
520 Remove i386sol2 support.
521 * configure.nat <i386sol2>: Remove.
522 <sol2-64>: Fold into ...
523 <sol2>: ... this.
524 Move common settings to default section.
525 Add sol-thread.o.
526 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
527 x86_64-*-solaris2.1[0-9]*>: Rename to ...
528 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
529 <i[34567]86-*-solaris*>: Remove.
530 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
531
532 * configure.ac: Remove wctype in libw check.
533 (_MSE_INT_H): Don't define on Solaris 7-9.
534 <solaris*>: Remove libthread_db.so.1 check.
535 * configure: Regenerate.
536 * config.in: Regenerate.
537
538 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
539 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
540 (gdb_ps_size_t): Remove.
541 Use base types in users.
542 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
543
544 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
545
39b06c20
RO
5462017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
547
548 PR build/22206
549 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
550 (adi_is_addr_mapped): Likewise.
551 (PSR_ICC): Don't redefine.
552 (PSR_IMPL): Likewise.
553
6c3e20f1
TT
5542017-09-25 Tom Tromey <tom@tromey.com>
555
556 * regcache.c (regcache::dump): Use string_printf.
557
b292235f
TT
5582017-09-25 Tom Tromey <tom@tromey.com>
559
560 * regcache.c (class regcache_invalidator): New.
561 (struct register_to_invalidate): Remove.
562 (make_cleanup_regcache_invalidate): Remove.
563 (regcache::raw_write): Use regcache_invalidator.
564
9ac86b52
TT
5652017-09-25 Tom Tromey <tom@tromey.com>
566
567 * spu-tdep.c (spu2ppu_sniffer): Update.
568 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
569 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
570 Remove.
571 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
572 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
573 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
574 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
575 (frame_pop): Update.
576
c0e383c6
TT
5772017-09-25 Tom Tromey <tom@tromey.com>
578
579 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
580 * regcache.h (regcache_xfree): Don't declare.
581 * regcache.c (regcache_xfree): Remove.
582 (do_regcache_xfree): Use delete.
583 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
584 * linux-fork.c (free_fork): Use delete.
585 (fork_save_infrun_state): Likewise.
586 * jit.c (jit_dealloc_cache): Use delete.
587 * infrun.c (discard_infcall_suspend_state): Use delete.
588
791199cc
TT
5892017-09-25 Tom Tromey <tom@tromey.com>
590
591 * regcache.h (regcache_xmalloc): Don't declare.
592 (regcache_raw_set_cached_value): Update comment.
593 * regcache.c (regcache_xmalloc): Remove.
594 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
595 * jit.c (jit_frame_sniffer): Use new.
596 * frame.c (frame_save_as_regcache): Use new.
597
289e23aa
AA
5982017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
599
600 * NEWS: Advertise support for guarded-storage registers on IBM z.
601
1b63490c
AA
6022017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
603
604 * s390-linux-nat.c (have_regset_gs): New static variable.
605 (s390_linux_fetch_inferior_registers): Handle guarded-storage
606 control block and guarded-storage broadcast control regsets.
607 (s390_read_description): Detect whether the target has
608 guarded-storage support, return appropriate tdesc.
609 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
610 (features/s390x-gs-linux64.c): Likewise.
611 (struct gdbarch_tdep) <have_gs>: New field.
612 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
613 (s390_gsbc_regset): New variables.
614 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
615 and s390_gsbc_regset, if applicable.
616 (s390_core_read_description): Check whether core file was from a
617 target with guarded-storage support; include appropriate regsets.
618 (s390_gdbarch_init): Add registers for guarded-storage support.
619 (_initialize_s390_tdep): Initialize new target descriptions that
620 include registers for guarded-storage support.
621 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
622 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
623 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
624 (S390_NUM_REGS): Adjust macro definition.
625 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
626 (tdesc_s390x_gs_linux64): New declarations.
627
96235dc1
AA
6282017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
629
630 * features/s390-gs-linux64.xml: New file.
631 * features/s390-gs.xml: New file.
632 * features/s390-gsbc.xml: New file.
633 * features/s390x-gs-linux64.xml: New file.
634 * features/Makefile (WHICH): Add s390-gs-linux64 and
635 s390x-gs-linux64.
636 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
637 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
638 * features/s390-gs-linux64.c: New generated file.
639 * features/s390x-gs-linux64.c: New file.
640 * regformats/s390-gs-linux64.dat: New file.
641 * regformats/s390x-gs-linux64.dat: New file.
642
b4a7c699
TT
6432017-09-23 Tom Tromey <tom@tromey.com>
644
645 * defs.h (make_cleanup_override_quit_handler): Don't declare.
646
c2f97536
TT
6472017-09-22 Tom Tromey <tom@tromey.com>
648
649 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
650 type to scoped_restore_tmpl.
651 <scoped_input_handler>: Initialize m_quit_handler directly.
652
43573013
SDJ
6532017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
654
655 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
656 (cd_command): Likewise. Free "current_directory" before
657 assigning to it.
658 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
659 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
660 * top.c (gdb_dirbuf): Remove global declaration.
661 * top.h (gdb_dirbuf): Likewise.
662
6ec2e0f5
SDJ
6632017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
664
665 * gnulib/aclocal.m4: Regenerate.
666 * gnulib/config.in: Regenerate.
667 * gnulib/configure: Regenerate.
668 * gnulib/import/Makefile.am: Regenerate.
669 * gnulib/import/Makefile.in: Regenerate.
670 * gnulib/import/assure.h: New file.
671 * gnulib/import/at-func.c: Likewise
672 * gnulib/import/chdir-long.c: New file.
673 * gnulib/import/chdir-long.h: New file.
674 * gnulib/import/cloexec.c: New file.
675 * gnulib/import/cloexec.h: New file.
676 * gnulib/import/close.c: New file.
677 * gnulib/import/closedir.c: New file.
678 * gnulib/import/dirent-private.h: New file.
679 * gnulib/import/dup-safer.c: New file.
680 * gnulib/import/dup.c: New file.
681 * gnulib/import/dup2.c: New file.
682 * gnulib/import/error.c: New file.
683 * gnulib/import/error.h: New file.
684 * gnulib/import/exitfail.c: New file.
685 * gnulib/import/exitfail.h: New file.
686 * gnulib/import/fchdir.c: New file.
687 * gnulib/import/fcntl.c: New file.
688 * gnulib/import/fcntl.in.h: New file.
689 * gnulib/import/fd-hook.c: New file.
690 * gnulib/import/fd-hook.h: New file.
691 * gnulib/import/fd-safer.c: New file.
692 * gnulib/import/fdopendir.c: New file.
693 * gnulib/import/filename.h: New file.
694 * gnulib/import/filenamecat-lgpl.c: New file.
695 * gnulib/import/filenamecat.h: New file.
696 * gnulib/import/fstat.c: New file.
697 * gnulib/import/fstatat.c: New file.
698 * gnulib/import/getcwd-lgpl.c: New file.
699 * gnulib/import/getcwd.c: New file.
700 * gnulib/import/getdtablesize.c: New file.
701 * gnulib/import/getlogin_r.c: New file.
702 * gnulib/import/getprogname.c: New file.
703 * gnulib/import/getprogname.h: New file.
704 * gnulib/import/gettext.h: New file.
705 * gnulib/import/glob-libc.h: New file.
706 * gnulib/import/glob.c: New file.
707 * gnulib/import/glob.in.h: New file.
708 * gnulib/import/intprops.h: New file.
709 * gnulib/import/m4/chdir-long.m4: New file.
710 * gnulib/import/m4/close.m4: New file.
711 * gnulib/import/m4/closedir.m4: New file.
712 * gnulib/import/m4/d-ino.m4: New file.
713 * gnulib/import/m4/d-type.m4: New file.
714 * gnulib/import/m4/dup.m4: New file.
715 * gnulib/import/m4/dup2.m4: New file.
716 * gnulib/import/m4/error.m4: New file.
717 * gnulib/import/m4/fchdir.m4: New file.
718 * gnulib/import/m4/fcntl.m4: New file.
719 * gnulib/import/m4/fcntl_h.m4: New file.
720 * gnulib/import/m4/fdopendir.m4: New file.
721 * gnulib/import/m4/filenamecat.m4: New file.
722 * gnulib/import/m4/fstat.m4: New file.
723 * gnulib/import/m4/fstatat.m4: New file.
724 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
725 * gnulib/import/m4/getcwd-path-max.m4: New file.
726 * gnulib/import/m4/getcwd.m4: New file.
727 * gnulib/import/m4/getdtablesize.m4: New file.
728 * gnulib/import/m4/getlogin_r.m4: New file.
729 * gnulib/import/m4/getprogname.m4: New file.
730 * gnulib/import/m4/glob.m4: New file.
731 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
732 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
733 * gnulib/import/m4/mempcpy.m4: New file.
734 * gnulib/import/m4/memrchr.m4: New file.
735 * gnulib/import/m4/mode_t.m4: New file.
736 * gnulib/import/m4/msvc-inval.m4: New file.
737 * gnulib/import/m4/msvc-nothrow.m4: New file.
738 * gnulib/import/m4/open.m4: New file.
739 * gnulib/import/m4/openat.m4: New file.
740 * gnulib/import/m4/opendir.m4: New file.
741 * gnulib/import/m4/readdir.m4: New file.
742 * gnulib/import/m4/realloc.m4: New file.
743 * gnulib/import/m4/rewinddir.m4: New file.
744 * gnulib/import/m4/save-cwd.m4: New file.
745 * gnulib/import/m4/strdup.m4: New file.
746 * gnulib/import/m4/strerror.m4: New file.
747 * gnulib/import/m4/unistd-safer.m4: New file.
748 * gnulib/import/mempcpy.c: New file.
749 * gnulib/import/memrchr.c: New file.
750 * gnulib/import/msvc-inval.c: New file.
751 * gnulib/import/msvc-inval.h: New file.
752 * gnulib/import/msvc-nothrow.c: New file.
753 * gnulib/import/msvc-nothrow.h: New file.
754 * gnulib/import/open.c: New file.
755 * gnulib/import/openat-die.c: New file.
756 * gnulib/import/openat-priv.h: New file.
757 * gnulib/import/openat-proc.c: New file.
758 * gnulib/import/openat.c: New file.
759 * gnulib/import/openat.h: New file.
760 * gnulib/import/opendir.c: New file.
761 * gnulib/import/pipe-safer.c: New file.
762 * gnulib/import/readdir.c: New file.
763 * gnulib/import/realloc.c: New file.
764 * gnulib/import/rewinddir.c: New file.
765 * gnulib/import/save-cwd.c: New file.
766 * gnulib/import/save-cwd.h: New file.
767 * gnulib/import/strdup.c: New file.
768 * gnulib/import/strerror-override.c: New file.
769 * gnulib/import/strerror-override.h: New file.
770 * gnulib/import/strerror.c: New file.
771 * gnulib/import/unistd--.h: New file.
772 * gnulib/import/unistd-safer.h: New file.
773 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
774 "getcwd" and "glob".
775 * ser-tcp.c: Undefine "close" before redefining it.
776
432ae719
SM
7772017-09-21 Simon Marchi <simon.marchi@ericsson.com>
778
779 * guile/scm-value.c (gdbscm_value_address): Initialize address,
780 get rid of res_val.
781
4fa7574e
RO
7822017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
783
784 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
785 <sol2,sparc>: Likewise.
786 <sol2-64,i386>: Likewise.
787
788 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
789 -Wdeprecated-declarations on *-*-solaris*.
790 * configure: Regenerate.
791
792 * procfs.c: Include "nat/inferior.h".
793 (procfs_info_proc): Fix typo.
794
f6327dcb
KB
7952017-09-21 Kevin Buettner <kevinb@redhat.com>
796
797 * remote.c (vector): Include.
798 (struct private_thread_info): Add field, thread_handle.
799 (free_private_thread_info): Deallocate storage associated with
800 thread handle.
801 (get_private_info_thread): Initialize `thread_handle' field.
802 (struct thread_item): Add field, thread_handle.
803 (clear_threads_listing_context): Deallocate storage associated
804 with thread handle.
805 (start_thread): Add support for "handle" attribute.
806 (thread_attributes): Add "handle".
807 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
808 field.
809 (remote_update_thread_list): Update thread_handle.
810 (remote_thread_handle_to_thread_info): New function.
811 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
812
fbbe5337
KB
8132017-09-21 Kevin Buettner <kevinb@redhat.com>
814
815 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
816 function.
817 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
818 * python/python-internal.h (thread_object_type): Declare.
819
e04ee09e
KB
8202017-09-21 Kevin Buettner <kevinb@redhat.com>
821
822 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
823 (target_thread_handle_to_thread_info): Declare.
824 * target.c (target_thread_handle_to_thread_info): New function.
825 * target-delegates.c: Regenerate.
826 * gdbthread.h (find_thread_by_handle): Declare.
827 * thread.c (find_thread_by_handle): New function.
828 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
829 function.
830 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
831
1e5b66ed
SM
8322017-09-21 Simon Marchi <simon.marchi@ericsson.com>
833
834 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
835
ebe48ba0
SM
8362017-09-21 Simon Marchi <simon.marchi@ericsson.com>
837
838 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
839
0a0bf5dc
YQ
8402017-09-21 Yao Qi <yao.qi@linaro.org>
841
842 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
843 to gdb_target_obs.
844
d1b0a7bf
TT
8452017-09-20 Tom Tromey <tom@tromey.com>
846
847 * breakpoint.c (struct counted_command_line): Remove.
848 (breakpoint_commands): Update.
849 (alloc_counted_command_line, incref_counted_command_line)
850 (decref_counted_command_line, do_cleanup_counted_command_line)
851 (make_cleanup_decref_counted_command_line): Remove.
852 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
853 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
854 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
855 (save_breakpoints): Update.
856 * breakpoint.h (counted_command_line): Now a typedef to
857 shared_ptr.
858 (struct breakpoint) <commands>: Now a counted_command_line.
859 (struct bpstats) <command>: Likewise.
860
48649e1b
TT
8612017-09-20 Tom Tromey <tom@tromey.com>
862
863 * breakpoint.c (struct commands_info, do_map_commands_command):
864 Remove.
865 (commands_command_1): Update.
866 (iterate_over_related_breakpoints): Take a function_view.
867 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
868 (delete_command): Update.
869 (map_breakpoint_numbers): Take a function_view.
870 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
871 (disable_command): Update.
872 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
873 (enable_command): Update.
874 (struct disp_data, do_enable_breakpoint_disp)
875 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
876 (do_map_enable_delete_breakpoint): Remove.
877 (enable_once_command, enable_count_command, enable_delete_command)
878 (delete_trace_variable_command): Update.
879
04afa70c
TT
8802017-09-20 Tom Tromey <tom@tromey.com>
881
882 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
883 (bpstat_clear): Use delete.
884 (bpstats): New constructors.
885 (bpstat_copy, bpstat_stop_status): Use new.
886 (dprintf_after_condition_true): Update.
887 * breakpoint.h (bpstats::bpstats): Add constructors.
888 (bpstats::~bpstats): Add destructor.
889
c83833f4
PA
8902017-09-20 Pedro Alves <palves@redhat.com>
891
892 * eval.c (make_params): Delete, refactored as ...
893 (class fake_method): ... this new type's ctor.
894 (fake_method::~fake_method): New.
895 (evaluate_subexp_standard): Use 'fake_method'.
896
223ffa71
TT
8972017-09-20 Tom Tromey <tom@tromey.com>
898
899 * windows-nat.c (get_windows_debug_event, windows_wait)
900 (do_initial_windows_stuff, windows_attach): Update.
901 * utils.c (vwarning, internal_vproblem): Update.
902 (ui_unregister_input_event_handler_cleanup)
903 (prepare_to_handle_input): Remove.
904 (class scoped_input_handler): New.
905 (defaulted_query, prompt_for_continue): Update.
906 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
907 Update.
908 * top.c (undo_terminal_modifications_before_exit): Update.
909 * target/target.h (target_terminal_init, target_terminal_inferior)
910 (target_terminal_ours): Don't declare.
911 (class target_terminal): New.
912 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
913 (target_terminal_ours_for_output)
914 (make_cleanup_restore_target_terminal): Don't declare.
915 (target_terminal_info): Remove.
916 * target.c (enum terminal_state, terminal_state): Remove.
917 (target_terminal::terminal_state): Define.
918 (target_terminal::init): Rename from target_terminal_init.
919 (target_terminal::inferior): Rename from
920 target_terminal_inferior.
921 (target_terminal::ours): Rename from target_terminal_ours.
922 (target_terminal::ours_for_output): Rename from
923 target_terminal_ours_for_output.
924 (target_terminal::info): New method.
925 (cleanup_restore_target_terminal)
926 (make_cleanup_restore_target_terminal): Remove.
927 * solib.c (handle_solib_event): Update.
928 * remote.c (remote_serial_quit_handler): Update.
929 (remote_terminal_inferior, remote_wait_as): Update.
930 * record-full.c (record_full_wait_1): Update.
931 * nto-procfs.c (procfs_create_inferior): Update.
932 * nat/fork-inferior.c (startup_inferior): Update.
933 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
934 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
935 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
936 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
937 (mi_breakpoint_created, mi_breakpoint_deleted)
938 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
939 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
940 (mi_user_selected_context_changed, report_initial_inferior):
941 Update.
942 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
943 (linux_nat_terminal_inferior): Update.
944 * infrun.c (follow_fork_inferior)
945 (handle_vfork_child_exec_or_exit, do_target_resume)
946 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
947 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
948 Update.
949 * inflow.c (child_terminal_init, info_terminal_command): Update.
950 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
951 (attach_command): Update.
952 * infcall.c (call_thread_fsm_should_stop): Update.
953 * gnu-nat.c (gnu_attach): Update.
954 * extension.c (struct active_ext_lang_state)
955 (restore_active_ext_lang): Update.
956 * exceptions.c (print_flush): Update.
957 * event-top.c (async_enable_stdin, default_quit_handler): Update.
958 (struct quit_handler_cleanup_data, restore_quit_handler)
959 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
960 Remove.
961 * cp-support.c (gdb_demangle): Update.
962 * breakpoint.c (update_inserted_breakpoint_locations)
963 (insert_breakpoint_locations, handle_jit_event)
964 (disable_breakpoints_in_unloaded_shlib): Update.
965 * annotate.c (annotate_breakpoints_invalid)
966 (annotate_frames_invalid): Update.
967
013af3fc
TT
9682017-09-20 Tom Tromey <tom@tromey.com>
969
970 * main.c (catch_command_errors): Rename from
971 catch_command_errors_const.
972 (captured_main_1): Update.
973
06871ae8
PA
9742017-09-20 Pedro Alves <palves@redhat.com>
975
976 * cli/cli-cmds.c (list_command): Use print_sal_location.
977 (print_sal_location): New function.
978 (ambiguous_line_spec): Use print_sal_location.
979 * linespec.c (symbol_to_sal): Record the symbol in the sal.
980 * symtab.c (find_function_start_sal): Likewise.
981 * symtab.h (symtab_and_line::symbol): New field.
982
e5f25bc5
PA
9832017-09-20 Pedro Alves <palves@redhat.com>
984
985 * linespec.c (minsym_found): Handle non-text minsyms.
986 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
987
1b7fa39e
WT
9882017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
989
990 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
991 backslash.
992
37dd0825
WT
9932017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
994
995 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
996 vmovups instead vmovaps.
997 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
998
4e5a4f58
JB
9992017-09-19 John Baldwin <jhb@FreeBSD.org>
1000
1001 * NEWS (Changes since GDB 8.0): Add starti.
1002 * infcmd.c (enum run_break): New.
1003 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1004 case.
1005 (run_command): Use enum run_how.
1006 (start_command): Likewise.
1007 (starti_command): New function.
1008 (RUN_ARGS_HELP): New macro.
1009 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1010 commands. Add starti command.
1011
aa70c9f1
YQ
10122017-09-19 Yao Qi <yao.qi@linaro.org>
1013
1014 * Makefile.in (monitor.o): Remove the rule.
1015
d6541620
YQ
10162017-09-19 Yao Qi <yao.qi@linaro.org>
1017
1018 * annotate.h (struct annotate_arg_emitter): Use
1019 DISABLE_COPY_AND_ASSIGN.
1020 * common/refcounted-object.h (refcounted_object): Likewise.
1021 * completer.h (struct completion_result): Likewise.
1022 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1023 * filename-seen-cache.h (filename_seen_cache): Likewise.
1024 * gdbcore.h (thread_section_name): Likewise.
1025 * gdb_regex.h (compiled_regex): Likewise.
1026 * gdbthread.h (scoped_restore_current_thread): Likewise.
1027 * inferior.h (scoped_restore_current_inferior): Likewise.
1028 * jit.c (jit_reader): Likewise.
1029 * linespec.h (struct linespec_result): Likewise.
1030 * mi/mi-parse.h (struct mi_parse): Likewise.
1031 * nat/fork-inferior.c (execv_argv): Likewise.
1032 * progspace.h (scoped_restore_current_program_space): Likewise.
1033 * python/python-internal.h (class gdbpy_enter): Likewise.
1034 * regcache.h (regcache): Likewise.
1035 * target-descriptions.c (struct tdesc_reg): Likewise.
1036 (struct tdesc_type): Likewise.
1037 (struct tdesc_feature): Likewise.
1038 * ui-out.h (ui_out_emit_type): Likewise.
1039
0615127c
SM
10402017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1041
1042 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1043 label abort_expression.
1044
5e187554
SM
10452017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1046
1047 * common/buffer.c (buffer_xml_printf): Adjust.
1048 * common/xml-utils.c (xml_escape_text): Change return type to
1049 std::string, update code accordingly.
1050 * common/xml-utils.h (xml_escape_text): Change return type to
1051 std::string.
1052 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1053 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1054 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1055 Adjust.
1056
c3d7b541
SM
10572017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1058
1059 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1060 (SUBDIR_UNITTESTS_OBS): Add new object file.
1061 * unittests/xml-utils-selftests.c: New file.
1062
1526853e
SM
10632017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1064
1065 * common/selftest.h (selftest): New struct/interface.
1066 (register_test): Add name parameter, add new overload.
1067 (run_tests): Add filter parameter.
1068 (for_each_selftest_ftype): New typedef.
1069 (for_each_selftest): New declaration.
1070 * common/selftest.c (tests): Change type to
1071 map<string, unique_ptr<selftest>>.
1072 (simple_selftest): New struct.
1073 (register_test): New function.
1074 (register_test): Add name parameter and use it.
1075 (run_tests): Add filter parameter and use it. Add prints.
1076 Adjust to vector -> map change.
1077 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1078 registering selftests.
1079 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1080 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1081 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1082 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1083 * findvar.c (_initialize_findvar): Likewise.
1084 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1085 * maint.c (maintenance_selftest): Update call to run_tests.
1086 (maintenance_info_selftests): New function.
1087 (_initialize_maint_cmds): Register "maintenance info selftests"
1088 command. Update "maintenance selftest" doc.
1089 * regcache.c (_initialize_regcache): Add names when registering
1090 selftests.
1091 * rust-exp.y (_initialize_rust_exp): Likewise.
1092 * selftest-arch.c (gdbarch_selftest): New struct.
1093 (gdbarch_tests): Remove.
1094 (register_test_foreach_arch): Add name parameter. Call
1095 register_test.
1096 (tests_with_arch): Remove, move most content to
1097 gdbarch_selftest::operator().
1098 (_initialize_selftests_foreach_arch): Remove.
1099 * selftest-arch.h (register_test_foreach_arch): Add name
1100 parameter.
1101 (run_tests_with_arch): New declaration.
1102 * utils-selftests.c (_initialize_utils_selftests): Add names
1103 when registering selftests.
1104 * utils.c (_initialize_utils): Likewise.
1105 * unittests/array-view-selftests.c
1106 (_initialize_array_view_selftests): Likewise.
1107 * unittests/environ-selftests.c (_initialize_environ_selftests):
1108 Likewise.
1109 * unittests/function-view-selftests.c
1110 (_initialize_function_view_selftests): Likewise.
1111 * unittests/offset-type-selftests.c
1112 (_initialize_offset_type_selftests): Likewise.
1113 * unittests/optional-selftests.c
1114 (_initialize_optional_selftests): Likewise.
1115 * unittests/scoped_restore-selftests.c
1116 (_initialize_scoped_restore_selftests): Likewise.
1117 * NEWS: Document "maintenance selftest" and "maint info
1118 selftests".
1119
5846367a
SM
11202017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1121
1122 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1123 scoped_restore.
1124
bd77e8ff
SM
11252017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1126
1127 * mi/mi-main.c (mi_load_progress): Make uiout variable
1128 a unique_ptr.
1129
26a67918
PA
11302017-09-15 Pedro Alves <palves@redhat.com>
1131
1132 * compile/compile-c-types.c (convert_enum, convert_int)
1133 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1134
3f8a7804
SM
11352017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1136
1137 * dwarf2read.c (copy_string): Remove.
1138 (parse_macro_definition): Replace copy_string with savestring.
1139
8d200706
YQ
11402017-09-15 Yao Qi <yao.qi@linaro.org>
1141
1142 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1143 gdb_target_obs.
1144 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1145 Likewise.
1146 (i[34567]86-*-linux*): Likewise.
1147
d185219d
SM
11482017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1149
1150 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1151 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1152 <stack>: Change type to std::vector.
1153 <stack_len, stack_allocated>: Remove.
1154 <grow_stack>: Remove.
1155 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1156 (dwarf_expr_context::~dwarf_expr_context): Remove.
1157 (dwarf_expr_context::grow_stack): Remove.
1158 (dwarf_expr_context::push): Adjust.
1159 (dwarf_expr_context::pop): Adjust.
1160 (dwarf_expr_context::fetch): Adjust.
1161 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1162 (dwarf_expr_context::stack_empty_p): Adjust.
1163 (dwarf_expr_context::execute_stack_op): Adjust.
1164
eccd80d6
SM
11652017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1166
1167 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1168 return type to bool.
1169 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1170
69009882
SM
11712017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1172
1173 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1174 Change type to bool.
1175 (dwarf_stack_value) <in_stack_memory>: Likewise.
1176 (dwarf_expr_context) <push_address>: Change parameter type to
1177 bool.
1178 <fetch_in_stack_memory>: Change return type to bool.
1179 <push>: Change parameter type to bool.
1180 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1181 to bool.
1182 (dwarf_expr_context::push_address): Likewise.
1183 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1184 to bool.
1185 (dwarf_expr_context::execute_stack_op): Adjust.
1186 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1187
1e467161
SM
11882017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1189
1190 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1191 (struct dwarf_expr_context) <n_pieces>: Remove.
1192 <pieces>: Change type to std::vector.
1193 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1194 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1195 pieces.
1196 (dwarf_expr_context::add_piece): Adjust.
1197 * dwarf2loc.c (struct piece_closure): Initialize fields.
1198 <n_pieces>: Remove.
1199 <pieces>: Change type to std::vector.
1200 (allocate_piece_closure): Adjust, change parameter to
1201 std::vector rvalue and std::move it to piece_closure.
1202 (rw_pieced_value): Adjust.
1203 (check_pieced_synthetic_pointer): Adjust.
1204 (indirect_synthetic_pointer): Adjust.
1205 (coerce_pieced_ref): Adjust.
1206 (free_pieced_value_closure): Adjust. Use delete to free
1207 piece_closure.
1208 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1209 to allocate_piece_closure.
1210 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1211
0782db84
SM
12122017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1213
1214 * probe.h (probe_ops_cp): Remove typedef.
1215 (DEF_VEC_P (probe_ops_cp)): Remove.
1216 (all_probe_ops): Change type to std::vector.
1217 * probe.c (info_probes_for_ops): Adjust to vector change.
1218 (probe_linespec_to_ops): Likewise.
1219 (all_probe_ops): Change type to std::vector.
1220 (_initialize_probe): Adjust to vector change.
1221 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1222 * elfread.c (elf_get_probes): Likewise.
1223 * stap-probe.c (_initialize_stap_probe): Likewise.
1224
1eac6bea
SM
12252017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1226
1227 * probe.h (struct bound_probe): Define constructors.
1228 * probe.c (bound_probe_s): Remove typedef.
1229 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1230 (collect_probes): Change return type to std::vector, remove
1231 cleanup.
1232 (compare_probes): Return bool, change parameter type. Change
1233 semantic to "less than".
1234 (gen_ui_out_table_header_info): Change parameter to std::vector
1235 and update.
1236 (exists_probe_with_pops): Likewise.
1237 (info_probes_for_ops): Update to std::vector change.
1238 (enable_probes_command): Likewise.
1239 (disable_probes_command): Likewise.
1240
aaa63a31
SM
12412017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1242
1243 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1244 vec to std::vector.
1245 * probe.c (parse_probes_in_pspace): Update.
1246 (find_probes_in_objfile): Update.
1247 (find_probe_by_pc): Update.
1248 (collect_probes): Update.
1249 (probe_any_get_probes): Update.
1250 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1251 return type to reference to std::vector.
1252 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1253 std::vector and update.
1254 (dtrace_process_dof): Likewise.
1255 (dtrace_get_probes): Likewise.
1256 * elfread.c (elf_get_probes): Change return type to std::vector,
1257 store an std::vector in bfd_data.
1258 (probe_key_free): Update to std::vector.
1259 * stap-probe.c (handle_stap_probe): Change parameter to
1260 std::vector and update.
1261 (stap_get_probes): Likewise.
1262 * symfile-debug.c (debug_sym_get_probes): Change return type to
1263 std::vector and update.
1264
cb85b21b
TT
12652017-09-11 Tom Tromey <tom@tromey.com>
1266
1267 * breakpoint.c (program_breakpoint_here_p): Update.
1268 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1269 from make_show_memory_breakpoints_cleanup. Return a
1270 scoped_restore_tmpl<int>.
1271 (restore_show_memory_breakpoints): Remove.
1272 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1273 * mem-break.c (memory_validate_breakpoint): Update.
1274 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1275 (ia64_memory_remove_breakpoint): Update.
1276 (ia64_breakpoint_from_pc): Update.
1277 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1278 from make_show_memory_breakpoints_cleanup.
1279
8fbc99ef
TT
12802017-09-11 Tom Tromey <tom@tromey.com>
1281
1282 * d-namespace.c (d_lookup_symbol): Use std::string.
1283 (find_symbol_in_baseclass): Likewise.
1284
50feb4bd
TT
12852017-09-11 Tom Tromey <tom@tromey.com>
1286
1287 * ctf.c (ctf_start): Use std::string.
1288
c6dc63a1
TT
12892017-09-11 Tom Tromey <tom@tromey.com>
1290
1291 * ada-lang.c (is_known_support_routine): Update.
1292 (ada_unhandled_exception_name_addr_from_raise): Update.
1293 * guile/scm-frame.c (gdbscm_frame_name): Update.
1294 * python/py-frame.c (frapy_name): Update.
1295 (frapy_function): Update.
1296 * stack.h (find_frame_funname): Update.
1297 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1298 (print_frame): Update.
1299
d6b9b80f
TT
13002017-09-11 Tom Tromey <tom@tromey.com>
1301
1302 * findcmd.c (put_bits): Take a gdb::byte_vector.
1303 (parse_find_args): Return gdb::byte_vector. "args" now const.
1304 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1305 cleanups.
1306 (find_command): Update.
1307
a9921622
TT
13082017-09-11 Tom Tromey <tom@tromey.com>
1309
1310 * cli/cli-script.c (class scoped_restore_hook_in): New.
1311 (clear_hook_in_cleanup): Remove.
1312 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1313 scoped_restore_hook_in.
1314
be0d7abb
TT
13152017-09-11 Tom Tromey <tom@tromey.com>
1316
1317 * cli/cli-script.c (restore_interp): Remove.
1318 (read_command_lines): Use scoped_restore_interp.
1319 * interps.c (scoped_restore_interp::set_temp): Rename from
1320 interp_set_temp.
1321 * interps.h (class scoped_restore_interp): New.
1322 (interp_set_temp): Remove.
1323
00f675ff
TT
13242017-09-11 Tom Tromey <tom@tromey.com>
1325
1326 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1327 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1328 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1329 scoped_restore.
1330 (mi_cmd_break_insert_1): Update.
1331 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1332 scoped_restore.
1333
cb791d59
TT
13342017-09-11 Tom Tromey <tom@tromey.com>
1335
1336 * demangle.c (demangle_command): Update.
1337 * breakpoint.c (disable_command): Update.
1338 (enable_command): Update.
1339 (find_location_by_number): Make "number" const. Use
1340 get_number_trailer.
1341 * cli/cli-utils.c (extract_arg): Return std::string.
1342 * probe.c (parse_probe_linespec): Update. Change types.
1343 (collect_probes): Take string arguments.
1344 (parse_probe_linespec): Likewise.
1345 (info_probes_for_ops): Update.
1346 (enable_probes_command): Update.
1347 (disable_probes_command): Update.
1348 * break-catch-sig.c (catch_signal_split_args): Update.
1349 * mi/mi-parse.c (mi_parse): Update.
1350
2039bd9f
TT
13512017-09-11 Tom Tromey <tom@tromey.com>
1352
1353 * language.h (language_enum): Make argument const.
1354 * language.c (language_enum): Make argument const.
1355
f1735a53
TT
13562017-09-11 Tom Tromey <tom@tromey.com>
1357
1358 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1359 as function.
1360 (skip_to_space): Rename from skip_to_space_const.
1361 * common/common-utils.c (skip_to_space): New function.
1362 (skip_to_space): Rename from skip_to_space_const.
1363 * cli/cli-utils.h (get_number): Rename from get_number_const.
1364 (extract_arg): Rename from extract_arg_const.
1365 * cli/cli-utils.c (get_number): Rename from get_number_const.
1366 (extract_arg): Rename from extract_arg_const.
1367 (number_or_range_parser::get_number): Use ::get_number.
1368 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1369 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1370 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1371 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1372 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1373 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1374 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1375 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1376
7d221d74
TT
13772017-09-11 Tom Tromey <tom@tromey.com>
1378
1379 * python/python.c (do_start_initialization): Use
1380 py-event-types.def to initialize types.
1381 Define all object type structures.
1382 * python/python-internal.h: Don't declare event initialization
1383 functions.
1384 * python/py-threadevent.c (thread_event_object_type): Don't
1385 define.
1386 * python/py-stopevent.c (stop_event_object_type): Don't define.
1387 * python/py-signalevent.c (signal_event_object_type): Don't
1388 declare or define.
1389 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1390 (clear_objfiles_event_object_type): Don't declare or define.
1391 * python/py-infevents.c (inferior_call_pre_event_object_type)
1392 (inferior_call_post_event_object_type)
1393 (register_changed_event_object_type)
1394 (memory_changed_event_object_type): Don't declare or define.
1395 * python/py-inferior.c (new_thread_event_object_type)
1396 (new_inferior_event_object_type)
1397 (inferior_deleted_event_object_type): Don't declare or define.
1398 * python/py-exitedevent.c (exited_event_object_type): Don't
1399 declare or define.
1400 * python/py-evts.c (gdbpy_initialize_py_events): Use
1401 py-all-events.def.
1402 * python/py-events.h (thread_event_object_type): Don't declare.
1403 (events_object): Use py-all-events.def.
1404 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1405 py-event-types.def.
1406 * python/py-event-types.def: New file.
1407 * python/py-continueevent.c (create_continue_event_object): Don't
1408 declare or define.
1409 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1410 declare or define.
1411 * python/py-all-events.def: New file.
1412
35c61a1d
TT
14132017-09-11 Tom Tromey <tom@tromey.com>
1414
1415 * python/py-threadevent.c (create_thread_event_object): Return
1416 gdbpy_ref.
1417 * python/py-stopevent.h (create_stop_event_object)
1418 (create_breakpoint_event_object, create_signal_event_object):
1419 Update.
1420 * python/py-stopevent.c (create_stop_event_object): Return
1421 gdbpy_ref.
1422 (emit_stop_event): Update.
1423 * python/py-signalevent.c (create_signal_event_object): Return
1424 gdbpy_ref.
1425 * python/py-infevents.c (create_inferior_call_event_object):
1426 Update.
1427 * python/py-event.h (create_event_object)
1428 (create_thread_event_object): Update.
1429 * python/py-event.c (create_event_object): Return gdbpy_ref.
1430 * python/py-continueevent.c: Return gdbpy_ref.
1431 * python/py-bpevent.c (create_breakpoint_event_object): Return
1432 gdbpy_ref.
1433
7c96f8c1
TT
14342017-09-11 Tom Tromey <tom@tromey.com>
1435
1436 PR python/15622:
1437 * NEWS: Add entry.
1438 * python/python.c (do_start_initialization): Initialize new event
1439 types.
1440 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1441 (gdbpy_initialize_inferior_deleted_event)
1442 (gdbpy_initialize_new_thread_event): Declare.
1443 * python/py-threadevent.c (create_thread_event_object): Add option
1444 "thread" parameter.
1445 * python/py-inferior.c (new_thread_event_object_type)
1446 (new_inferior_event_object_type)
1447 (inferior_deleted_event_object_type): Declare.
1448 (python_new_inferior, python_inferior_deleted): New functions.
1449 (add_thread_object): Emit new_thread event.
1450 (gdbpy_initialize_inferior): Attach new functions to corresponding
1451 observers.
1452 (new_thread, new_inferior, inferior_deleted): Define new event
1453 types.
1454 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1455 registries.
1456 * python/py-events.h (events_object) <new_inferior,
1457 inferior_deleted, new_thread>: New fields.
1458 * python/py-event.h (create_thread_event_breakpoint): Add optional
1459 "thread" parameter.
1460
72542b8e
AB
14612017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1462
1463 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1464 check current_ui instead.
1465 (internal_vproblem): Likewise.
1466
0d64823e
SM
14672017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1468
1469 * thread.c (print_thread_info_1): Remove unnecessary calls to
1470 uiout->is_mi_like_p.
1471
eb1e02fd
TT
14722017-09-09 Tom Tromey <tom@tromey.com>
1473
1474 * namespace.h (add_using_directive): Update.
1475 * namespace.c (add_using_directive): Change type of excludes to
1476 std::vector.
1477 * dwarf2read.c (read_import_statement): Use std::vector.
1478 (read_namespace): Update.
1479 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1480
0fc21fd8
TT
14812017-09-09 Tom Tromey <tom@tromey.com>
1482
1483 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1484
49663d05
TT
14852017-09-09 Tom Tromey <tom@tromey.com>
1486
1487 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1488
0b868b60
TT
14892017-09-09 Tom Tromey <tom@tromey.com>
1490
1491 * stack.c (func_command): Use gdb::def_vector.
1492
c0470d48
TT
14932017-09-09 Tom Tromey <tom@tromey.com>
1494
1495 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1496 ui_out_emit_list, ui_out_emit_tuple.
1497 (mi_cmd_var_update): Likewise.
1498
ca5909c7
TT
14992017-09-09 Tom Tromey <tom@tromey.com>
1500
1501 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1502 ui_out_redirect_pop.
1503 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1504 ui_out_redirect_pop.
1505 * utils.c (do_ui_out_redirect_pop)
1506 (make_cleanup_ui_out_redirect_pop): Remove.
1507 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1508 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1509 * ui-out.h (ui_out_redirect_pop): New class.
1510
e6a2252a
TT
15112017-09-09 Tom Tromey <tom@tromey.com>
1512
1513 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1514 (list_available_thread_groups, mi_cmd_list_thread_groups)
1515 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1516 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1517 Likewise.
1518
393702cd
TT
15192017-09-09 Tom Tromey <tom@tromey.com>
1520
1521 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1522 ui_out_emit_tuple.
1523
76f9c9cf
TT
15242017-09-09 Tom Tromey <tom@tromey.com>
1525
1526 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1527 * stack.c (print_frame): Use ui_out_emit_tuple.
1528 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1529 (info_spu_mailbox_command, info_spu_dma_command)
1530 (info_spu_proxydma_command): Likewise.
1531 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1532 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1533 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1534 ui_out_emit_tuple.
1535 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1536
dc9fe180
TT
15372017-09-09 Tom Tromey <tom@tromey.com>
1538
1539 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1540 (class ui_out_emit_table): Update comment.
1541 * ui-out.c (do_cleanup_table_end)
1542 (make_cleanup_ui_out_table_begin_end): Remove.
1543 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1544 (info_spu_dma_cmdlist): Likewise.
1545 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1546 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1547 ui_out_emit_table.
1548
f8cc3da6
TT
15492017-09-09 Tom Tromey <tom@tromey.com>
1550
1551 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1552 ui_out_emit_list, gdb::optional.
1553
481695ed
JB
15542017-09-09 John Baldwin <jhb@FreeBSD.org>
1555
1556 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1557 prototype.
1558 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1559 prototype.
1560 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1561 prototype.
1562 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1563 * ada-exp.y: Remove _initialize_ada_exp prototype.
1564 * ada-lang.c: Remove _initialize_ada_language prototype.
1565 * ada-tasks.c: Remove _initialize_tasks prototype.
1566 * addrmap.c: Remove _initialize_addrmap prototype.
1567 * agent.c: Remove _initialize_agent prototype.
1568 * aix-thread.c: Remove _initialize_aix_thread prototype.
1569 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1570 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1571 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1572 prototype.
1573 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1574 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1575 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1576 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1577 prototype.
1578 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1579 prototype.
1580 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1581 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1582 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1583 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1584 prototype.
1585 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1586 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1587 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1588 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1589 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1590 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1591 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1592 prototype.
1593 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1594 prototype.
1595 * annotate.c: Remove _initialize_annotate prototype.
1596 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1597 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1598 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1599 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1600 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1601 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1602 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1603 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1604 prototype.
1605 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1606 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1607 * auto-load.c: Remove _initialize_auto_load prototype.
1608 * auxv.c: Remove _initialize_auxv prototype.
1609 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1610 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1611 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1612 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1613 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1614 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1615 prototype.
1616 * break-catch-throw.c: Remove _initialize_break_catch_throw
1617 prototype.
1618 * breakpoint.c: Remove _initialize_breakpoint prototype.
1619 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1620 * btrace.c: Remove _initialize_btrace prototype.
1621 * charset.c: Remove _initialize_charset prototype.
1622 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1623 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1624 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1625 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1626 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1627 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1628 * coffread.c: Remove _initialize_coffread prototype.
1629 * compile/compile.c: Remove _initialize_compile prototype.
1630 * complaints.c: Remove _initialize_complaints prototype.
1631 * completer.c: Remove _initialize_completer prototype.
1632 * copying.awk: Remove _initialize_copying prototype.
1633 * copying.c: Regenerate.
1634 * core-regset.c: Remove _initialize_core_regset prototype.
1635 * corefile.c: Remove _initialize_core prototype.
1636 * corelow.c: Remove _initialize_corelow prototype.
1637 * cp-abi.c: Remove _initialize_cp_abi prototype.
1638 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1639 * cp-support.c: Remove _initialize_cp_support prototype.
1640 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1641 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1642 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1643 * ctf.c: Remove _initialize_ctf prototype.
1644 * d-lang.c: Remove _initialize_d_language prototype.
1645 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1646 prototype.
1647 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1648 * dbxread.c: Remove _initialize_dbxread prototype.
1649 * dcache.c: Remove _initialize_dcache prototype.
1650 * demangle.c: Remove _initialize_demangler prototype.
1651 * disasm-selftests.c: Remove _initialize_disasm_selftests
1652 prototype.
1653 * disasm.c: Remove _initialize_disasm prototype.
1654 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1655 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1656 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1657 prototype.
1658 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1659 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1660 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1661 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1662 * elfread.c: Remove _initialize_elfread prototype.
1663 * exec.c: Remove _initialize_exec prototype.
1664 * extension.c: Remove _initialize_extension prototype.
1665 * f-lang.c: Remove _initialize_f_language prototype.
1666 * f-valprint.c: Remove _initialize_f_valprint prototype.
1667 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1668 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1669 * filesystem.c: Remove _initialize_filesystem prototype.
1670 * findcmd.c: Remove _initialize_mem_search prototype.
1671 * fork-child.c: Remove _initialize_fork_child prototype.
1672 * frame-base.c: Remove _initialize_frame_base prototype.
1673 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1674 * frame.c: Remove _initialize_frame prototype.
1675 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1676 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1677 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1678 * gcore.c: Remove _initialize_gcore prototype.
1679 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1680 * gdbarch.c: Regenerate.
1681 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1682 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1683 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1684 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1685 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1686 * go-lang.c: Remove _initialize_go_language prototype.
1687 * go32-nat.c: Remove _initialize_go32_nat prototype.
1688 * guile/guile.c: Remove _initialize_guile prototype.
1689 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1690 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1691 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1692 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1693 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1694 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1695 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1696 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1697 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1698 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1699 prototype.
1700 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1701 prototype.
1702 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1703 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1704 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1705 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1706 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1707 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1708 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1709 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1710 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1711 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1712 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1713 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1714 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1715 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1716 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1717 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1718 prototype.
1719 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1720 prototype.
1721 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1722 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1723 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1724 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1725 * infcall.c: Remove _initialize_infcall prototype.
1726 * infcmd.c: Remove _initialize_infcmd prototype.
1727 * inferior.c: Remove _initialize_inferiors prototype.
1728 * inflow.c: Remove _initialize_inflow prototype.
1729 * infrun.c: Remove _initialize_infrun prototype.
1730 * interps.c: Remove _initialize_interpreter prototype.
1731 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1732 * jit.c: Remove _initialize_jit prototype.
1733 * language.c: Remove _initialize_language prototype.
1734 * linux-fork.c: Remove _initialize_linux_fork prototype.
1735 * linux-nat.c: Remove _initialize_linux_nat prototype.
1736 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1737 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1738 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1739 * m2-lang.c: Remove _initialize_m2_language prototype.
1740 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1741 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1742 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1743 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1744 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1745 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1746 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1747 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1748 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1749 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1750 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1751 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1752 * machoread.c: Remove _initialize_machoread prototype.
1753 * macrocmd.c: Remove _initialize_macrocmd prototype.
1754 * macroscope.c: Remove _initialize_macroscope prototype.
1755 * maint.c: Remove _initialize_maint_cmds prototype.
1756 * mdebugread.c: Remove _initialize_mdebugread prototype.
1757 * memattr.c: Remove _initialize_mem prototype.
1758 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1759 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1760 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1761 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1762 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1763 * microblaze-linux-tdep.c: Remove
1764 _initialize_microblaze_linux_tdep prototype.
1765 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1766 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1767 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1768 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1769 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1770 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1771 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1772 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1773 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1774 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1775 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1776 prototype.
1777 * mipsread.c: Remove _initialize_mipsread prototype.
1778 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1779 prototype.
1780 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1781 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1782 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1783 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1784 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1785 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1786 prototype.
1787 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1788 * nto-procfs.c: Remove _initialize_procfs prototype.
1789 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1790 * objc-lang.c: Remove _initialize_objc_language prototype.
1791 * objfiles.c: Remove _initialize_objfiles prototype.
1792 * observer.c: Remove observer_test_first_notification_function,
1793 observer_test_second_notification_function,
1794 observer_test_third_notification_function, and
1795 _initialize_observer prototypes.
1796 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1797 * osabi.c: Remove _initialize_gdb_osabi prototype.
1798 * osdata.c: Remove _initialize_osdata prototype.
1799 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1800 * parse.c: Remove _initialize_parse prototype.
1801 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1802 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1803 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1804 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1805 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1806 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1807 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1808 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1809 * printcmd.c: Remove _initialize_printcmd prototype.
1810 * probe.c: Remove _initialize_probe prototype.
1811 * proc-api.c: Remove _initialize_proc_api prototype.
1812 * proc-events.c: Remove _initialize_proc_events prototype.
1813 * proc-service.c: Remove _initialize_proc_service prototype.
1814 * procfs.c: Remove _initialize_procfs prototype.
1815 * psymtab.c: Remove _initialize_psymtab prototype.
1816 * python/python.c: Remove _initialize_python prototype.
1817 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1818 * record-btrace.c: Remove _initialize_record_btrace prototype.
1819 * record-full.c: Remove _initialize_record_full prototype.
1820 * record.c: Remove _initialize_record prototype.
1821 * regcache.c: Remove _initialize_regcache prototype.
1822 * reggroups.c: Remove _initialize_reggroup prototype.
1823 * remote-notif.c: Remove _initialize_notif prototype.
1824 * remote-sim.c: Remove _initialize_remote_sim prototype.
1825 * remote.c: Remove _initialize_remote prototype.
1826 * reverse.c: Remove _initialize_reverse prototype.
1827 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1828 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1829 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1830 prototype.
1831 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1832 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1833 * rust-exp.y: Remove _initialize_rust_exp prototype.
1834 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1835 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1836 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1837 * score-tdep.c: Remove _initialize_score_tdep prototype.
1838 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1839 prototype.
1840 * ser-go32.c: Remove _initialize_ser_dos prototype.
1841 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1842 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1843 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1844 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1845 * serial.c: Remove _initialize_serial prototype.
1846 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1847 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1848 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1849 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1850 * skip.c: Remove _initialize_step_skip prototype.
1851 * sol-thread.c: Remove _initialize_sol_thread prototype.
1852 * solib-aix.c: Remove _initialize_solib_aix prototype.
1853 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1854 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1855 * solib-frv.c: Remove _initialize_frv_solib prototype.
1856 * solib-spu.c: Remove _initialize_spu_solib prototype.
1857 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1858 * solib-target.c: Remove _initialize_solib_target prototype.
1859 * solib.c: Remove _initialize_solib prototype.
1860 * source.c: Remove _initialize_source prototype.
1861 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1862 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1863 prototype.
1864 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1865 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1866 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1867 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1868 prototype.
1869 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1870 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1871 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1872 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1873 prototype.
1874 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1875 prototype.
1876 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1877 prototype.
1878 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1879 prototype.
1880 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1881 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1882 prototype.
1883 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1884 prototype.
1885 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1886 prototype.
1887 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1888 prototype.
1889 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1890 prototype.
1891 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1892 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1893 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1894 * stabsread.c: Remove _initialize_stabsread prototype.
1895 * stack.c: Remove _initialize_stack prototype.
1896 * stap-probe.c: Remove _initialize_stap_probe prototype.
1897 * std-regs.c: Remove _initialize_frame_reg prototype.
1898 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1899 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1900 * symfile.c: Remove _initialize_symfile prototype.
1901 * symmisc.c: Remove _initialize_symmisc prototype.
1902 * symtab.c: Remove _initialize_symtab prototype.
1903 * target-dcache.c: Remove _initialize_target_dcache prototype.
1904 * target-descriptions.c: Remove _initialize_target_descriptions
1905 prototype.
1906 * thread.c: Remove _initialize_thread prototype.
1907 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1908 prototype.
1909 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1910 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1911 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1912 prototype.
1913 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1914 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1915 * tracefile.c: Remove _initialize_tracefile prototype.
1916 * tracepoint.c: Remove _initialize_tracepoint prototype.
1917 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1918 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1919 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1920 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1921 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1922 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1923 * tui/tui.c: Remove _initialize_tui prototype.
1924 * typeprint.c: Remove _initialize_typeprint prototype.
1925 * user-regs.c: Remove _initialize_user_regs prototype.
1926 * utils.c: Remove _initialize_utils prototype.
1927 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1928 * valarith.c: Remove _initialize_valarith prototype.
1929 * valops.c: Remove _initialize_valops prototype.
1930 * valprint.c: Remove _initialize_valprint prototype.
1931 * value.c: Remove _initialize_values prototype.
1932 * varobj.c: Remove _initialize_varobj prototype.
1933 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1934 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1935 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1936 * windows-nat.c: Remove _initialize_windows_nat,
1937 _initialize_check_for_gdb_ini, and _initialize_loadable
1938 prototypes.
1939 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1940 * xcoffread.c: Remove _initialize_xcoffread prototype.
1941 * xml-support.c: Remove _initialize_xml_support prototype.
1942 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1943 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1944 prototype.
1945 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1946 prototype.
1947 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1948
a611b5cb
KS
19492017-09-08 Keith Seitz <keiths@redhat.com>
1950
1951 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1952 field.
1953
469412dd
CW
19542017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1955
1956 * f-valprint.c (f_val_print): Remove check for one byte
1957 sized integers. Remove printing of character type.
1958
a5ad232b
FP
19592017-09-08 Frank Penczek <frank.penczek@intel.com>
1960 Christoph Weinmann <christoph.t.weinmann@intel.com>
1961 Bernhard Heckel <bernhard.heckel@intel.com>
1962
1963 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1964 to maintain proper indentation when printing pointers/refs.
1965
e5014227
JB
19662017-09-07 Joel Brobecker <brobecker@adacore.com>
1967
1968 GDB 8.0.1 released.
1969
63c99141
JB
19702017-09-07 Joel Brobecker <brobecker@adacore.com>
1971
1972 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1973
69c1e056
TT
19742017-09-05 Tom Tromey <tom@tromey.com>
1975
1976 * parse.c (funcall_chain): Now a std::vector.
1977 (start_arglist, end_arglist): Simplify.
1978 (free_funcalls): Remove.
1979 (parse_exp_in_context_1): Remove cleanup.
1980
fef704bf
TT
19812017-09-05 Tom Tromey <tom@tromey.com>
1982
1983 * go-exp.y (go_parse): Don't create a cleanup.
1984
5613c585
TT
19852017-09-05 Tom Tromey <tom@tromey.com>
1986
1987 * d-exp.y (PrimaryExpression): Use std::string.
1988 (d_parse): Don't create a cleanup.
1989
eae49211
TT
19902017-09-05 Tom Tromey <tom@tromey.com>
1991
1992 * utils.c (do_clear_parser_state): Remove.
1993 (make_cleanup_clear_parser_state): Remove.
1994 * p-exp.y (pascal_parse): Use scoped_restore.
1995 * m2-exp.y (m2_parse): Use scoped_restore.
1996 * f-exp.y (f_parse): Use scoped_restore.
1997 * d-exp.y (d_parse): Use scoped_restore.
1998 * c-exp.y (c_parse): Use scoped_restore.
1999 * ada-exp.y (ada_parse): Use scoped_restore.
2000 * utils.h (make_cleanup_clear_parser_state): Remove.
2001
73b9be8b
KS
20022017-09-06 Keith Seitz <keiths@redhat.com>
2003
2004 * dwarf2read.c (dw2_linkage_name_attr): New function.
2005 (dw2_linkage_name): New function.
2006 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2007 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2008 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2009
a102602b
KR
20102017-09-06 Kamil Rytarowski <n54@gmx.com>
2011
2012 * config/djgpp/djconfig.sh: Correct shell portability issue.
2013
28ad437d
KR
20142017-09-06 Kamil Rytarowski <n54@gmx.com>
2015
2016 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2017
351787dd
JB
20182017-09-06 John Baldwin <jhb@FreeBSD.org>
2019
2020 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2021 * NEWS: Mention new FreeBSD/mips native configuration.
2022 * configure.host: Add aarch64*-*-freebsd*.
2023 * configure.nat: Likewise.
2024 * aarch64-fbsd-nat.c: New file.
2025
c0f84956
JB
20262017-09-06 John Baldwin <jhb@FreeBSD.org>
2027
2028 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2029 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2030 * NEWS: Mention new FreeBSD/aarch64 target.
2031 * configure.tgt: Add aarch64*-*-freebsd*.
2032 * aarch64-fbsd-tdep.c: New file.
2033 * aarch64-fbsd-tdep.h: New file.
2034
7610297a
KR
20352017-09-06 Kamil Rytarowski <n54@gmx.com>
2036
2037 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2038
fbd1b771
JK
20392017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2040
2041 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2042 of TLS symbols.
2043
5ca79eae
PW
20442017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2045
2046 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2047 call.
2048
bf93d7ba
SM
20492017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2050
2051 * infrun.c (follow_exec): Call add_thread after
2052 target_find_description.
2053
1bb7c059
SM
20542017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2055
2056 * infrun.c (handle_inferior_event_1): When exec'ing, read
2057 stop_pc after follow_exec.
2058
fc809827
SM
20592017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2060
2061 * remote.c (process_g_packet): Update error message.
2062
d2fcdd85
YQ
20632017-09-05 Yao Qi <yao.qi@linaro.org>
2064
2065 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2066 targets.
2067
e69570ee
PA
20682017-09-05 Pedro Alves <palves@redhat.com>
2069
2070 * eval.c (eval_call, evaluate_funcall): New functions, factored
2071 out from ...
2072 (evaluate_subexp_standard): ... this.
2073
22916b07
YQ
20742017-09-05 Yao Qi <yao.qi@linaro.org>
2075
2076 * amd64-tdep.c (amd64_target_description): Create target
2077 descriptions.
2078 (_initialize_amd64_tdep): Don't call functions
2079 initialize_tdesc_amd64_*. Add self tests.
2080 * arch/amd64.c (amd64_create_target_description): Add parameter
2081 is_linux. Call set_tdesc_osabi if is_linux is true.
2082 * arch/amd64.h (amd64_create_target_description): Update the
2083 declaration.
2084 * arch/i386.c (i386_create_target_description): Add parameter
2085 is_linux. Call set_tdesc_osabi if is_linux is true.
2086 * arch/i386.h (i386_create_target_description): Update
2087 declaration.
2088 * configure.tgt: Add i386.o to gdb_target_obs.
2089 * features/Makefile (XMLTOC): Remove i386/*.xml.
2090 * features/i386/amd64-avx-avx512.c: Remove.
2091 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2092 * features/i386/amd64-avx-mpx.c: Remove.
2093 * features/i386/amd64-avx.c: Remove.
2094 * features/i386/amd64-mpx.c: Remove.
2095 * features/i386/amd64.c: Remove.
2096 * features/i386/i386-avx-avx512.c: Remove.
2097 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2098 * features/i386/i386-avx-mpx.c: Remove.
2099 * features/i386/i386-avx.c: Remove.
2100 * features/i386/i386-mmx.c: Remove.
2101 * features/i386/i386-mpx.c: Remove.
2102 * features/i386/i386.c: Remove.
2103 * i386-tdep.c: Don't include features/i386/i386*.c., include
2104 target-descriptions.h and arch/i386.h.
2105 (i386_target_description): Create target descriptions.
2106 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2107 functions. Do self tests.
2108
0854b7b1
YQ
21092017-09-05 Yao Qi <yao.qi@linaro.org>
2110
2111 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2112 * features/i386/amd64-avx-avx512-linux.c: Removed.
2113 * features/i386/amd64-avx-linux.c: Removed.
2114 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2115 * features/i386/amd64-avx-mpx-linux.c: Removed.
2116 * features/i386/amd64-linux.c: Removed.
2117 * features/i386/amd64-mpx-linux.c: Removed.
2118 * features/i386/x32-avx-avx512-linux.c: Removed.
2119 * features/i386/x32-avx-linux.c: Removed.
2120 * features/i386/x32-linux.c: Removed.
2121
b4570e4b
YQ
21222017-09-05 Yao Qi <yao.qi@linaro.org>
2123
2124 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2125 features/i386/*.c.
2126 (amd64_linux_read_description): Call
2127 amd64_create_target_description.
2128 * arch/amd64.c: New file.
2129 * arch/amd64.h: New file.
2130 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2131 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2132
6c73f67f
YQ
21332017-09-05 Yao Qi <yao.qi@linaro.org>
2134
2135 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2136 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2137 (amd64_linux_read_description): Create target descriptions.
2138 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2139 functions. Add unit tests.
2140 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2141 x32-core.xml.
2142 * features/i386/64bit-avx.c: Generated.
2143 * features/i386/64bit-avx512.c: Generated.
2144 * features/i386/64bit-core.c: Generated.
2145 * features/i386/64bit-linux.c: Generated.
2146 * features/i386/64bit-mpx.c: Generated.
2147 * features/i386/64bit-pkeys.c: Generated.
2148 * features/i386/64bit-segments.c: Generated.
2149 * features/i386/64bit-sse.c: Generated.
2150 * features/i386/x32-core.c: Generated.
2151 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2152 c files for amd64-linux and x32-linux.
2153
9d3d478b
YQ
21542017-09-05 Yao Qi <yao.qi@linaro.org>
2155
2156 * amd64-linux-tdep.c (amd64_linux_read_description): New
2157 function.
2158 (amd64_linux_core_read_description): Call
2159 amd64_linux_read_description.
2160 (amd64_linux_init_abi): Likewise.
2161 (amd64_x32_linux_init_abi): Likewise.
2162 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2163 * x86-linux-nat.c (x86_linux_read_description): Call
2164 amd64_linux_read_description.
2165
b9f1d50f
YQ
21662017-09-05 Yao Qi <yao.qi@linaro.org>
2167
2168 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2169 comments.
2170
188c9e6d
YQ
21712017-09-05 Yao Qi <yao.qi@linaro.org>
2172
2173 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2174 * features/i386/i386-avx-avx512-linux.c: Remove.
2175 * features/i386/i386-avx-linux.c: Remove.
2176 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2177 * features/i386/i386-avx-mpx-linux.c: Remove.
2178 * features/i386/i386-linux.c: Remove.
2179 * features/i386/i386-mmx-linux.c: Remove.
2180 * features/i386/i386-mpx-linux.c: Remove.
2181
5f035c07
YQ
21822017-09-05 Yao Qi <yao.qi@linaro.org>
2183
2184 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2185 (SFILES): Add arch/i386.c.
2186 (HFILES_NO_SRCDIR): Add arch/i386.h.
2187 * arch/i386.c: New file.
2188 * arch/i386.h: New file.
2189 * arch/tdesc.h (allocate_target_description): Declare.
2190 (set_tdesc_architecture): Declare.
2191 (set_tdesc_osabi): Declare.
2192 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2193 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2194 include arch/i386.h.
2195 (i386_linux_read_description): Remove code and call
2196 i386_create_target_description.
2197 (set_tdesc_architecture): New function.
2198 (set_tdesc_osabi): New function.
2199 * target-descriptions.h (allocate_target_description): Remove.
2200
0abe8a89
YQ
22012017-09-05 Yao Qi <yao.qi@linaro.org>
2202
2203 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2204 * target-descriptions.c (tdesc_create_feature): Likewise, and
2205 adjust code.
2206 * features/i386/32bit-avx.c: Re-generated.
2207 * features/i386/32bit-avx512.c: Re-generated.
2208 * features/i386/32bit-core.c: Re-generated.
2209 * features/i386/32bit-linux.c: Re-generated.
2210 * features/i386/32bit-mpx.c: Re-generated.
2211 * features/i386/32bit-pkeys.c: Re-generated.
2212 * features/i386/32bit-sse.c: Re-generated.
2213
0a188386
YQ
22142017-09-05 Yao Qi <yao.qi@linaro.org>
2215
2216 * regformats/regdef.h (struct reg): Override operator == and !=.
2217
f49ff000
YQ
22182017-09-05 Yao Qi <yao.qi@linaro.org>
2219
2220 * arch/tdesc.h: New file.
2221 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2222 * target-descriptions.c: Update comments.
2223 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2224 declarations.
2225 * features/i386/32bit-avx.c: Re-generated.
2226 * features/i386/32bit-avx512.c: Re-generated.
2227 * features/i386/32bit-core.c: Re-generated.
2228 * features/i386/32bit-linux.c: Re-generated.
2229 * features/i386/32bit-mpx.c: Re-generated.
2230 * features/i386/32bit-pkeys.c: Re-generated.
2231 * features/i386/32bit-sse.c: Re-generated.
2232
f7000548
YQ
22332017-09-05 Yao Qi <yao.qi@linaro.org>
2234
2235 * regformats/regdat.sh: Update generated code.
2236
c9a5e2a5
YQ
22372017-09-05 Yao Qi <yao.qi@linaro.org>
2238
2239 * regformats/regdat.sh: Adjust code order.
2240
d6b687ac
SM
22412017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2242
2243 * expprint.c (dump_subexp_body_standard): Use constant format
2244 string in fprintf_filtered call.
2245
a379bfd0
JB
22462017-09-04 John Baldwin <jhb@FreeBSD.org>
2247
2248 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2249 NetBSD/i386.
2250 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2251
f7efc967
JB
22522017-09-04 John Baldwin <jhb@FreeBSD.org>
2253
2254 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2255
c49fbc6c
JB
22562017-09-04 John Baldwin <jhb@FreeBSD.org>
2257
2258 * bsd-kvm.o: Define _KMEMUSER.
2259 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2260 * configure: Regenerate.
2261
26562e73
JB
22622017-09-04 John Baldwin <jhb@FreeBSD.org>
2263
2264 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2265 * i386-fbsd-nat.c: Likewise.
2266
31cf1487
JB
22672017-09-04 John Baldwin <jhb@FreeBSD.org>
2268
2269 * unittests/array-view-selftests.c: Add include of <array>.
2270
5b9f8a7c
JB
22712017-09-04 John Baldwin <jhb@FreeBSD.org>
2272
2273 * spu-tdep.c (flush_ea_cache): Add missing argument to
2274 call_function_by_hand.
2275
d69cf9b2
PA
22762017-09-04 Pedro Alves <palves@redhat.com>
2277
2278 * NEWS (Safer support for debugging with no debug info): New.
2279
3693fdb3
PA
22802017-09-04 Pedro Alves <palves@redhat.com>
2281
2282 * c-exp.y (function_method, function_method_void): Add current
2283 instance flags to TYPE_INSTANCE.
2284 * dwarf2read.c (check_modifier): New.
2285 (compute_delayed_physnames): Assert that only C++ adds delayed
2286 physnames. Mark fn_fields as const/volatile depending on
2287 physname.
2288 * eval.c (make_params): New type_instance_flags parameter. Use
2289 it as the new type's instance flags.
2290 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2291 flags element and pass it to make_params.
2292 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2293 instance flags element.
2294 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2295 * gdbtypes.h: Include "enum-flags.h".
2296 (type_instance_flags): New enum-flags type.
2297 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2298 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2299 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2300 (follow_type_instance_flags): New function.
2301 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2302 * parser-defs.h (follow_type_instance_flags): Declare.
2303 * valops.c (value_struct_elt_for_reference): const/volatile must
2304 match too.
2305
e68cb8e0
PA
23062017-09-04 Pedro Alves <palves@redhat.com>
2307
2308 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2309 function/method scopes; lookup the nested name as a function local
2310 static variable.
2311
858be34c
PA
23122017-09-04 Pedro Alves <palves@redhat.com>
2313
2314 (%type <voidval>): Add function_method.
2315 * c-exp.y (exp): New production for calls with no arguments.
2316 (function_method, function_method_void_or_typelist): New
2317 productions.
2318 (exp): New production for "method()::static_var".
2319 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2320 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2321 Handle OP_FUNC_STATIC_VAR.
2322 * parse.c (operator_length_standard):
2323 Handle OP_FUNC_STATIC_VAR.
2324
dd5901a6
PA
23252017-09-04 Pedro Alves <palves@redhat.com>
2326
2327 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2328 handling.
2329 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2330 Ditto.
2331 * parse.c (operator_length_standard, operator_check_standard):
2332 Ditto.
2333 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2334
46a4882b
PA
23352017-09-04 Pedro Alves <palves@redhat.com>
2336
2337 * ax-gdb.c: Include "typeprint.h".
2338 (gen_expr_for_cast): New function.
2339 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2340 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2341 type is unknown.
2342 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2343 nodebug_data_symbol.
2344 * eval.c: Include "typeprint.h".
2345 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2346 Error out if symbol has unknown type.
2347 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2348 evaluate_subexp_for_cast.
2349 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2350 OP_VAR_MSYM_VALUE.
2351 (evaluate_subexp_for_cast): New function.
2352 * gdbtypes.c (init_nodebug_var_type): New function.
2353 (objfile_type): Use it to initialize types of variables with no
2354 debug info.
2355 * typeprint.c (error_unknown_type): New.
2356 * typeprint.h (error_unknown_type): New declaration.
2357 * compile/compile-c-types.c (convert_type_basic): Handle
2358 TYPE_CODE_ERROR; warn and fallback to int for variables with
2359 unknown type.
2360
fe13dfec
PA
23612017-09-04 Pedro Alves <palves@redhat.com>
2362
2363 * eval.c (evaluate_var_value): New function, factored out from ...
2364 (evaluate_subexp_standard): ... here.
2365
d008ee21
PA
23662017-09-04 Pedro Alves <palves@redhat.com>
2367
2368 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2369 Remove useless assignments to 'op'.
2370
827d0c51
PA
23712017-09-04 Pedro Alves <palves@redhat.com>
2372
2373 * eval.c (eval_skip_value): New function.
2374 (evaluate_subexp_standard): Use it.
2375
2c5a2be1
PA
23762017-09-04 Pedro Alves <palves@redhat.com>
2377
2378 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2379 function name from symbol/minsym and pass it to
2380 error_call_unknown_return_type.
2381
74ea4be4
PA
23822017-09-04 Pedro Alves <palves@redhat.com>
2383
2384 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2385 * ax-gdb.c (gen_msym_var_ref): New function.
2386 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2387 * eval.c (evaluate_var_msym_value): New function.
2388 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2389 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2390 to call_function_by_hand.
2391 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2392 Handle OP_VAR_MSYM_VALUE.
2393 (union exp_element) <msymbol>: New field.
2394 * minsyms.h (struct type): Forward declare.
2395 (find_minsym_type_and_address): Declare.
2396 * parse.c (write_exp_elt_msym): New function.
2397 (write_exp_msymbol): Delete, refactored as ...
2398 (find_minsym_type_and_address): ... this new function.
2399 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2400 (operator_length_standard, operator_check_standard): Handle
2401 OP_VAR_MSYM_VALUE.
2402 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2403
7022349d
PA
24042017-09-04 Pedro Alves <palves@redhat.com>
2405
2406 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2407 TYPE_GNU_IFUNC specially here. Throw error if return type is
2408 unknown.
2409 * ada-typeprint.c (print_func_type): Handle functions with unknown
2410 return type.
2411 * c-typeprint.c (c_type_print_base): Handle functions and methods
2412 with unknown return type.
2413 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2414 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2415 * compile/compile-c-types.c: Include "objfiles.h".
2416 (convert_func): For functions with unknown return type, warn and
2417 default to int.
2418 * compile/compile-object-run.c (compile_object_run): Adjust call
2419 to call_function_by_hand_dummy.
2420 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2421 call_function_by_hand.
2422 * eval.c (evaluate_subexp_standard): Adjust calls to
2423 call_function_by_hand. Handle functions and methods with unknown
2424 return type. Pass expect_type to call_function_by_hand.
2425 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2426 return type.
2427 * gcore.c (call_target_sbrk): Adjust call to
2428 call_function_by_hand.
2429 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2430 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2431 an integer address type instead of nodebug.
2432 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2433 call_function_by_hand.
2434 * infcall.c (error_call_unknown_return_type): New function.
2435 (call_function_by_hand): New "default_return_type" parameter.
2436 Pass it down.
2437 (call_function_by_hand_dummy): New "default_return_type"
2438 parameter. Use it instead of defaulting to int. If there's no
2439 default and the return type is unknown, throw an error. If
2440 there's a default return type, and the called function has no
2441 debug info, then assume the function is prototyped.
2442 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2443 New "default_return_type" parameter.
2444 (error_call_unknown_return_type): New declaration.
2445 * linux-fork.c (call_lseek): Cast return type of lseek.
2446 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2447 call_function_by_hand.
2448 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2449 calls to call_function_by_hand.
2450 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2451 return type.
2452 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2453 (value_nsstring, print_object_command): Adjust calls to
2454 call_function_by_hand.
2455 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2456 functions with unknown return type.
2457 (pascal_type_print_func_varspec_suffix): New function.
2458 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2459 TYPE_CODE_METHOD>: Use it.
2460 * python/py-value.c (valpy_call): Adjust call to
2461 call_function_by_hand.
2462 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2463 call_function_by_hand.
2464 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2465 call_function_by_hand.
2466 * valops.c (value_allocate_space_in_inferior): Adjust call to
2467 call_function_by_hand.
2468 * typeprint.c (type_print_unknown_return_type): New function.
2469 * typeprint.h (type_print_unknown_return_type): New declaration.
2470
54990598
PA
24712017-09-04 Pedro Alves <palves@redhat.com>
2472
2473 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2474 types with more than one parameter as prototyped.
2475
9a24775b
PA
24762017-09-04 Pedro Alves <palves@redhat.com>
2477
2478 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2479 (disassemble_command): Use gdb_disassembly_flags instead of bare
2480 int.
2481 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2482 (dump_insns, do_mixed_source_and_assembly_deprecated)
2483 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2484 Use gdb_disassembly_flags instead of bare int.
2485 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2486 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2487 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2488 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2489 (enum gdb_disassembly_flag): ... values of this new enumeration.
2490 (gdb_disassembly_flags): Define.
2491 (gdb_disassembly)
2492 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2493 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2494 gdb_disassembly_flags instead of bare int.
2495 * record-btrace.c (btrace_insn_history)
2496 (record_btrace_insn_history, record_btrace_insn_history_range)
2497 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2498 instead of bare int.
2499 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2500 Use gdb_disassembly_flags instead of bare int.
2501 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2502 Define.
2503 * target-delegates.c: Regenerate.
2504 * target.c (target_insn_history, target_insn_history_from)
2505 (target_insn_history_range): Use gdb_disassembly_flags instead of
2506 bare int.
2507 * target.h: Include "disasm.h".
2508 (struct target_ops) <to_insn_history, to_insn_history_from,
2509 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2510 int.
2511 (target_insn_history, target_insn_history_from)
2512 (target_insn_history_range): Use gdb_disassembly_flags instead of
2513 bare int.
2514
80a65e9b
SM
25152017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2516
2517 * cli/cli-script.c (build_command_line): For if/while commands,
2518 check whether args is empty.
2519
6b66338c
SM
25202017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2521
2522 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2523 (enum command_control_type): Likewise.
2524 (struct command_line): Likewise.
2525 (free_command_lines): Likewise.
2526 (struct command_lines_deleter): Likewise.
2527 (command_line_up): Likewise.
2528 (read_command_lines): Likewise.
2529 (read_command_lines_1): Likewise.
2530 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2531 (enum command_control_type): Likewise.
2532 (struct command_line): Likewise.
2533 (free_command_lines): Likewise.
2534 (struct command_lines_deleter): Likewise.
2535 (command_line_up): Likewise.
2536 (read_command_lines): Likewise.
2537 (read_command_lines_1): Likewise.
2538 * breakpoint.h: Include cli/cli-script.h.
2539 * extension-priv.h: Likewise.
2540 * gdbcmd.h: Likewise.
2541
51abb421
PA
25422017-09-04 Pedro Alves <palves@redhat.com>
2543
2544 * ada-lang.c (is_known_support_routine): Move sal declaration to
2545 where it is initialized.
2546 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2547 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2548 (clear_command, update_static_tracepoint): Remove init_sal
2549 references. Move declarations closer to initializations.
2550 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2551 initializations.
2552 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2553 references. Move sal declarations closer to initializations.
2554 * frame.c (find_frame_sal): Return a symtab_and_line via function
2555 return instead of output parameter. Remove init_sal references.
2556 * frame.h (find_frame_sal): Return a symtab_and_line via function
2557 return instead of output parameter.
2558 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2559 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2560 instead of memset.
2561 (gdbscm_find_pc_line): Remove init_sal reference.
2562 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2563 references. Move declarations closer to initializations.
2564 * infcmd.c (set_step_frame): Update. Move declarations closer to
2565 initializations.
2566 (finish_backward): Remove init_sal references. Move declarations
2567 closer to initializations.
2568 * infrun.c (process_event_stop_test, handle_step_into_function)
2569 (insert_hp_step_resume_breakpoint_at_frame)
2570 (insert_step_resume_breakpoint_at_caller): Likewise.
2571 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2572 (symbol_to_sal): Likewise.
2573 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2574 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2575 to its initialization.
2576 * reverse.c (save_bookmark_command): Use new/delete. Remove
2577 init_sal references. Move declarations closer to initializations.
2578 * source.c (get_current_source_symtab_and_line): Remove brace
2579 initialization.
2580 (set_current_source_symtab_and_line): Now takes the sal by const
2581 reference. Remove brace initialization.
2582 (line_info): Remove init_sal reference.
2583 * source.h (set_current_source_symtab_and_line): Now takes a
2584 symtab_and_line via const reference.
2585 * stack.c (set_current_sal_from_frame): Adjust.
2586 (print_frame_info): Adjust.
2587 (get_last_displayed_sal): Return the sal via function return
2588 instead of via output parameter. Simplify.
2589 (frame_info): Adjust.
2590 * stack.h (get_last_displayed_sal): Return the sal via function
2591 return instead of via output parameter.
2592 * symtab.c (init_sal): Delete.
2593 (find_pc_sect_line): Remove init_sal references. Move
2594 declarations closer to initializations.
2595 (find_function_start_sal): Remove init_sal references. Move
2596 declarations closer to initializations.
2597 * symtab.h (struct symtab_and_line): In-class initialize all
2598 fields.
2599 * tracepoint.c (set_traceframe_context)
2600 (print_one_static_tracepoint_marker): Remove init_sal references.
2601 Move declarations closer to initializations.
2602 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2603 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2604 declarations closer to initializations.
2605 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2606 init_sal references. Adjust.
2607
6c5b2ebe
PA
26082017-09-04 Pedro Alves <palves@redhat.com>
2609
2610 * ax-gdb.c (agent_command_1): Use range-for.
2611 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2612 * breakpoint.c: Include "common/array-view.h".
2613 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2614 parameter from struct symtabs_and_lines to
2615 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2616 (breakpoint_sals_to_pc): Change sals parameter from struct
2617 symtabs_and_lines to std::vector reference.
2618 (check_fast_tracepoint_sals): Change sals parameter from struct
2619 symtabs_and_lines to std::array_view. Use range-for.
2620 (decode_static_tracepoint_spec): Return a std::vector instead of
2621 symtabs_and_lines. Update.
2622 (create_breakpoint): Update.
2623 (break_range_command, until_break_command, clear_command): Update.
2624 (base_breakpoint_decode_location, bkpt_decode_location)
2625 (bkpt_probe_create_sals_from_location)
2626 (bkpt_probe_decode_location, tracepoint_decode_location)
2627 (tracepoint_probe_decode_location)
2628 (strace_marker_create_sals_from_location): Return a std::vector
2629 instead of symtabs_and_lines.
2630 (strace_marker_create_breakpoints_sal): Update.
2631 (strace_marker_decode_location): Return a std::vector instead of
2632 symtabs_and_lines. Update.
2633 (update_breakpoint_locations): Change struct symtabs_and_lines
2634 parameters to gdb::array_view. Adjust.
2635 (location_to_sals): Return a std::vector instead of
2636 symtabs_and_lines. Update.
2637 (breakpoint_re_set_default): Use std::vector instead of struct
2638 symtabs_and_lines.
2639 (decode_location_default): Return a std::vector instead of
2640 symtabs_and_lines. Update.
2641 * breakpoint.h: Include "common/array-view.h".
2642 (struct breakpoint_ops) <decode_location>: Now returns a
2643 std::vector instead of returning a symtabs_and_lines via output
2644 parameter.
2645 (update_breakpoint_locations): Change sals parameters to use
2646 gdb::array_view.
2647 * cli/cli-cmds.c (edit_command, list_command): Update to use
2648 std::vector and gdb::array_view.
2649 (ambiguous_line_spec): Adjust to use gdb::array_view and
2650 range-for.
2651 (compare_symtabs): Rename to ...
2652 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2653 const reference and adjust.
2654 (filter_sals): Rewrite using std::vector and standard algorithms.
2655 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2656 (jump_command): Update to use std::vector.
2657 * linespec.c (struct linespec_state) <canonical_names>: Update
2658 comment.
2659 (add_sal_to_sals_basic): Delete.
2660 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2661 (decode_line_2, create_sals_line_offset)
2662 (convert_address_location_to_sals, convert_linespec_to_sals)
2663 (convert_explicit_location_to_sals, parse_linespec)
2664 (event_location_to_sals, decode_line_full, decode_line_1)
2665 (decode_line_with_current_source)
2666 (decode_line_with_last_displayed, decode_objc)
2667 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2668 (linespec_result::~linespec_result): Adjust to use std::vector
2669 instead of symtabs_and_lines.
2670 * linespec.h (linespec_sals::sals): Now a std::vector.
2671 (struct linespec_result): Use std::vector, bool, and in-class
2672 initialization.
2673 (decode_line_1, decode_line_with_current_source)
2674 (decode_line_with_last_displayed): Return std::vector.
2675 * macrocmd.c (info_macros_command): Use std::vector.
2676 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2677 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2678 std::vector.
2679 * probe.h (parse_probes): Return a std::vector.
2680 * python/python.c (gdbpy_decode_line): Use std::vector and
2681 gdb::array_view.
2682 * source.c (select_source_symtab, line_info): Use std::vector.
2683 * stack.c (func_command): Use std::vector.
2684 * symtab.h (struct symtabs_and_lines): Delete.
2685 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2686
7c44b49c
PA
26872017-09-04 Pedro Alves <palves@redhat.com>
2688
2689 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2690 unittests/array-view-selftests.c.
2691 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2692 * common/array-view.h: New file.
2693 * unittests/array-view-selftests.c: New file.
2694
e439fa14
PA
26952017-09-04 Pedro Alves <palves@redhat.com>
2696
2697 * cli/cli-cmds.c (edit_command): Pass message to
2698 ambiguous_line_spec.
2699 (list_command): Pass message to ambiguous_line_spec. Say
2700 "first"/"last" instead of "start" and "end" to be consistent with
2701 the manual.
2702 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2703 them to print formatted message.
2704
7525b645
PA
27052017-09-04 Pedro Alves <palves@redhat.com>
2706
2707 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2708 ftrace_update_insns by reference instead of pointer.
2709
badc0020
YQ
27102017-09-04 Yao Qi <yao.qi@linaro.org>
2711
2712 * i386-go32-tdep.c: Include x86-xstate.h.
2713 (i386_go32_init_abi): Call i386_target_description.
2714 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2715 if xcr0 is X86_XSTATE_X87_MASK.
2716 * i386-tdep.h (tdesc_i386): Remove the declaration.
2717 (tdesc_i386_mmx): Likewise.
2718
d78bdb54
YQ
27192017-09-04 Yao Qi <yao.qi@linaro.org>
2720
2721 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2722 X86_XSTATE_SSE_MASK instead of 0.
2723
ca1fa5ee
YQ
27242017-09-04 Yao Qi <yao.qi@linaro.org>
2725
2726 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2727 i386_target_description.
2728 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2729 i386_target_description.
2730 * i386-tdep.c (i386_gdbarch_init): Likewise.
2731
2434b019
YQ
27322017-09-04 Yao Qi <yao.qi@linaro.org>
2733
2734 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2735 (x86_darwin_init_abi_64): Call amd64_target_description.
2736 * amd64-dicos-tdep.c: Likewise.
2737 * amd64-fbsd-nat.c: Likewise.
2738 * amd64-fbsd-tdep.c: Likewise.
2739 * amd64-nbsd-tdep.c: Likewise.
2740 * amd64-obsd-tdep.c: Likewise.
2741 * amd64-sol2-tdep.c: Likewise.
2742 * amd64-windows-tdep.c: Likewise.
2743 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2744
0860c437
SM
27452017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2746
2747 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2748 (btrace_function) <insn>: Change type to use std::vector.
2749 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2750 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2751 ftrace_update_insns, ftrace_compute_global_level_offset,
2752 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2753 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2754 change to std::vector.
2755 (ftrace_update_insns): Adjust to change to std::vector, change
2756 type of INSN parameter.
2757 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2758 * record-btrace.c (btrace_call_history_insn_range,
2759 btrace_compute_src_line_range,
2760 record_btrace_frame_prev_register): Adjust to change to
2761 std::vector.
2762 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2763 to change to std::vector.
2764
0638b7f9
TT
27652017-09-03 Tom Tromey <tom@tromey.com>
2766
2767 * corefile.c (reopen_exec_file): Use std::string.
2768
8f84fb0e
TT
27692017-09-03 Tom Tromey <tom@tromey.com>
2770
2771 * compile/compile.c (compile_register_name_mangled): Return
2772 std::string.
2773 * compile/compile-loc2c.c (pushf_register_address): Update.
2774 (pushf_register): Update.
2775 * compile/compile-c-types.c (convert_array): Update.
2776 * compile/compile-c-symbols.c (generate_vla_size): Update.
2777 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2778 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2779 (convert_one_symbol): Update.
2780 (generate_c_for_for_one_variable): Update.
2781 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2782 std::string.
2783 (generate_register_struct): Update.
2784 * compile/compile-internal.h (c_get_range_decl_name): Return a
2785 std::string.
2786 (compile_register_name_mangled): Return std::string.
2787
18e9961f
TT
27882017-09-03 Tom Tromey <tom@tromey.com>
2789
2790 * utils.c (perror_string): Return a std::string.
2791 (throw_perror_with_name, perror_warning_with_name): Update.
2792
45343786
TT
27932017-09-03 Tom Tromey <tom@tromey.com>
2794
2795 * demangle.c (demangle_command): Use std::string,
2796 unique_xmalloc_ptr.
2797
b57af503
TT
27982017-09-03 Tom Tromey <tom@tromey.com>
2799
2800 * cli/cli-setshow.c (do_set_command): Use std::string.
2801
6eecf35f
TT
28022017-09-03 Tom Tromey <tom@tromey.com>
2803
2804 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2805
56496dd4
TT
28062017-09-03 Tom Tromey <tom@tromey.com>
2807
2808 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2809
e91a1fa7
TT
28102017-09-03 Tom Tromey <tom@tromey.com>
2811
2812 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2813 gdb::unique_xmalloc_ptr.
2814
7ffd83d7
TT
28152017-09-03 Tom Tromey <tom@tromey.com>
2816
2817 * thread.c (print_thread_info_1): Use string_printf.
2818 (thread_apply_command, thread_apply_all_command): Use
2819 std::string.
2820
1ccbe998
TT
28212017-09-03 Tom Tromey <tom@tromey.com>
2822
2823 * valprint.c (val_print_string): Update.
2824 * gdbcore.h (memory_error_message): Return std::string.
2825 * corefile.c (memory_error_message): Return std::string.
2826 (memory_error): Update.
2827 * breakpoint.c (insert_bp_location): Update.
2828
23fdd69e
SM
28292017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2830
2831 * target/waitstatus.h (target_waitstatus_to_string): Change
2832 return type to std::string.
2833 * target/waitstatus.c (target_waitstatus_to_string): Return
2834 std::string.
2835 * target.h (target_waitstatus_to_string): Remove declaration.
2836 * infrun.c (resume, clear_proceed_status_thread,
2837 print_target_wait_results, do_target_wait, save_waitstatus,
2838 stop_all_threads): Adjust.
2839 * record-btrace.c (record_btrace_wait): Adjust.
2840 * target-debug.h
2841 (target_debug_print_struct_target_waitstatus_p): Adjust.
2842
5c811d30
JK
28432017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2844
2845 PR gdb/22046
2846 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2847 detection.
2848
0a2dde4a
SDJ
28492017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2850
2851 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2852 for setting/unsetting environment variables on the remote target.
2853 (New remote packets): Add entries for QEnvironmentHexEncoded,
2854 QEnvironmentUnset and QEnvironmentReset.
2855 * common/environ.c (gdb_environ::operator=): Extend method to
2856 handle m_user_set_env_list and m_user_unset_env_list.
2857 (gdb_environ::clear): Likewise.
2858 (match_var_in_string): Change type of first parameter from 'char
2859 *' to 'const char *'.
2860 (gdb_environ::set): Extend method to handle
2861 m_user_set_env_list and m_user_unset_env_list.
2862 (gdb_environ::unset): Likewise.
2863 (gdb_environ::clear_user_set_env): New method.
2864 (gdb_environ::user_set_envp): Likewise.
2865 (gdb_environ::user_unset_envp): Likewise.
2866 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2867 m_user_unset_env_list on move constructor/assignment.
2868 (unset): Add new default parameter 'update_unset_list = true'.
2869 (clear_user_set_env): New method.
2870 (user_set_envp): Likewise.
2871 (user_unset_envp): Likewise.
2872 (m_user_set_env_list): New std::set.
2873 (m_user_unset_env_list): Likewise.
2874 * common/rsp-low.c (hex2str): New function.
2875 (bin2hex): New overload for bin2hex function.
2876 * common/rsp-low.c (hex2str): New prototype.
2877 (str2hex): New overload prototype.
2878 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2879 QEnvironmentUnset and QEnvironmentReset.
2880 (remote_protocol_features): Add QEnvironmentHexEncoded,
2881 QEnvironmentUnset and QEnvironmentReset packets.
2882 (send_environment_packet): New function.
2883 (extended_remote_environment_support): Likewise.
2884 (extended_remote_create_inferior): Call
2885 extended_remote_environment_support.
2886 (_initialize_remote): Add QEnvironmentHexEncoded,
2887 QEnvironmentUnset and QEnvironmentReset packet configs.
2888 * unittests/environ-selftests.c (gdb_selftest_env_var):
2889 New variable.
2890 (test_vector_initialization): New function.
2891 (test_init_from_host_environ): Likewise.
2892 (test_reinit_from_host_environ): Likewise.
2893 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2894 Likewise.
2895 (test_unset_set_empty_vector): Likewise.
2896 (test_vector_clear): Likewise.
2897 (test_std_move): Likewise.
2898 (test_move_constructor):
2899 (test_self_move): Likewise.
2900 (test_set_unset_reset): Likewise.
2901 (run_tests): Rewrite in terms of the functions above.
2902
654670a4
WP
29032017-08-31 Weimin Pan <weimin.pan@oracle.com>
2904
2905 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2906 (adi_available): Use a temp variable of type CORE_ADDR as argument
2907 3 when calling target_auxv_search.
2908 (adi_normalize_address): Use masks and xor operators to calculate
2909 normalized address.
2910 (adi_read_versions, adi_write_versions, adi_print_versions)
2911 (do_examine, do_assign): Use paddress.
2912
7755ddb7
JB
29132017-08-29 John Baldwin <jhb@FreeBSD.org>
2914
2915 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2916 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2917 out of loop and add supply of FIR.
2918 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2919 add collect of FIR.
2920
fd437cbc
SM
29212017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2922
3804a343 2923 PR gdb/21827
fd437cbc
SM
2924 * cli/cli-script.c (define_command): Don't convert command name
2925 to lower case.
2926
988f6b3d
JB
29272017-08-25 Joel Brobecker <brobecker@adacore.com>
2928
2929 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2930 Update all callers accordingly. Remove all code blocks handling
2931 the case where DISPP is not NULL.
2932
663c44ac
JK
29332017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2934
2935 PR symtab/22003
2936 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2937 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2938 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2939
f1902523
JK
29402017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2941
2942 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2943 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2944 (read_comp_units_from_section): New parameter abbrev_section, use
2945 read_and_check_comp_unit_head, allocate signatured_type if needed.
2946 (create_all_comp_units): Update read_comp_units_from_section caller.
2947
87215ad1
SDJ
29482017-08-23 Pedro Alves <palves@redhat.com>
2949
2950 PR remote/21852
2951 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2952 to null_ptid and switch to thread without reading the registers
2953 after adding the inferior.
2954
6e41ddec
JK
29552017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2956
2957 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2958 compile-gcc.
2959 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2960 (compile_to_object): Implement compile_gcc.
2961 (_initialize_compile): Install "set compile-gcc". Initialize
2962 compile_gcc.
2963
e68c32d5
JK
29642017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2965
2966 * compile/compile.c (compile_to_object): Conditionally call
2967 set_verbose. Conditionally call compile or compile_v0.
2968
58afddc6
WP
29692017-08-07 Weimin Pan <weimin.pan@oracle.com>
2970
2971 * sparc64-tdep.h: (adi_normalize_address): New export.
2972 * sparc-nat.h: (open_adi_tag_fd): New export.
2973 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2974 * sparc64-linux-tdep.c:
2975 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2976 (sparc64_linux_handle_segmentation_fault): New function.
2977 (sparc64_linux_init_abi): Register
2978 sparc64_linux_handle_segmentation_fault
2979 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2980 (sparc64_addr_bits_remove): New function.
2981 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2982 (MAX_PROC_NAME_SIZE): New macro.
2983 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2984 (sparc64adilist): New variable.
2985 (adi_proc_list): New variable.
2986 (find_adi_info): New function.
2987 (add_adi_info): New function.
2988 (get_adi_info_proc): New function.
2989 (get_adi_info): New function.
2990 (info_adi_command): New function.
2991 (read_maps_entry): New function.
2992 (adi_available): New function.
2993 (adi_normalize_address): New function.
2994 (adi_align_address): New function.
2995 (adi_convert_byte_count): New function.
2996 (adi_tag_fd): New function.
2997 (adi_is_addr_mapped): New function.
2998 (adi_read_versions): New function.
2999 (adi_write_versions): New function.
3000 (adi_print_versions): New function.
3001 (do_examine): New function.
3002 (do_assign): New function.
3003 (adi_examine_command): New function.
3004 (adi_assign_command): New function.
3005 (_initialize_sparc64_adi_tdep): New function.
3006
11db9430
SM
30072017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3008
3009 * breakpoint.c (breakpoints_info): Rename to ...
3010 (info_breakpoints_command): ... this.
3011 (watchpoints_info): Rename to ...
3012 (info_watchpoints_command): ... this.
3013 (tracepoints_info): Rename to ...
3014 (info_tracepoints_command): ... this.
3015 (_initialize_breakpoint): Adjust.
3016 * dcache.c (dcache_info): Rename to ...
3017 (info_display_command): ... this.
3018 (_initialize_dcache): Adjust.
3019 * frame.h (args_info): Rename to ...
3020 (info_args_command): ... this.
3021 (locals_info): Rename to ...
3022 (info_locals_command): ... this.
3023 * infcmd.c (nofp_registers_info): Rename to ...
3024 (info_registers_command): ... this.
3025 (float_info): Rename to ...
3026 (info_float_command): ... this.
3027 (program_info): Rename to ...
3028 (info_program_command): ... this.
3029 (all_registers_info): Rename to ...
3030 (info_all_registers_command): ... this.
3031 (vector_info): Rename to ...
3032 (info_vector_command): ... this.
3033 (float_info): Rename to ...
3034 (info_float_command): ... this.
3035 (_initialize_infcmd): Adjust.
3036 * inferior.h (term_info): Rename to ...
3037 (info_terminal_command): ... this.
3038 * inflow.c (term_info): Rename to ...
3039 (info_terminal_command): ... this.
3040 (_initialize_inflow): Adjust.
3041 * infrun.c (signals_info): Rename to ...
3042 (info_signals_command): ... this.
3043 (_initialize_infrun): Adjust.
3044 * objc-lang.c (classes_info): Rename to ...
3045 (info_classes_command): ... this.
3046 (selectors_info): Rename to ...
3047 (info_selectors_command): ... this.
3048 (_initialize_objc_language): Adjust.
3049 * printcmd.c (sym_info): Rename to ...
3050 (info_symbol_command): ... this.
3051 (address_info): Rename to ...
3052 (info_address_command): ... this.
3053 (display_info): Rename to ...
3054 (info_display_command): ... this.
3055 (_initialize_printcmd): Adjust.
3056 * reverse.c (bookmarks_info): Rename to ...
3057 (info_breakpoints_command): ... this.
3058 (_initialize_reverse): Adjust.
3059 * ser-go32.c (dos_info): Rename to ...
3060 (info_serial_command): ... this.
3061 (_initialize_ser_dos): Adjust.
3062 * skip.c (skip_info): Rename to ...
3063 (info_skip_command): ... this.
3064 (_initialize_step_skip): Adjust.
3065 * source.c (line_info): Rename to ...
3066 (info_line_command): ... this.
3067 (source_info): Rename to ...
3068 (info_source_command)
3069 * stack.c (frame_info): Rename to ...
3070 (info_frame_command): ... this.
3071 (locals_info): Rename to ...
3072 (info_locals_command): ... this.
3073 (args_info): Rename to ...
3074 (info_args_command): ... this.
3075 (_initialize_stack): Adjust.
3076 * symtab.c (sources_info): Rename to ...
3077 (info_sources_command): ... this.
3078 (variables_info): Rename to ...
3079 (info_variables_command): ... this.
3080 (functions_info): Rename to ...
3081 (info_functions_command): ... this.
3082 (types_info): Rename to ...
3083 (info_types_command): ... this.
3084 (_initialize_symtab): Adjust.
3085 * target.c (target_info): Rename to ...
3086 (info_target_command): ... this.
3087 (initialize_targets): Adjust.
3088 * tracepoint.c (tvariables_info): Rename to ...
3089 (info_tvariables_command): ... this.
3090 (scope_info): Rename to ...
3091 (info_scope_command): ... this.
3092 (trace_dump_actions): Adjust.
3093 (_initialize_tracepoint): Adjust.
3094
b270e6f9
TT
30952017-08-22 Tom Tromey <tom@tromey.com>
3096
3097 * breakpoint.h (install_breakpoint): Update.
3098 * breakpoint.c (add_solib_catchpoint): Update.
3099 (install_breakpoint): Change argument to a std::unique_ptr.
3100 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3101 (create_breakpoint_sal, create_breakpoint): Update.
3102 (watch_command_1, catch_exec_command_1)
3103 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3104 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3105 Return the breakpoint.
3106 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3107 (new_single_step_breakpoint): Update.
3108 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3109 std::unique_ptr.
3110 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3111 std::unique_ptr.
3112 * break-catch-sig.c (create_signal_catchpoint): Use
3113 std::unique_ptr.
3114 * ada-lang.c (create_ada_exception_catchpoint): Use
3115 std::unique_ptr.
3116
36bd8eaa
TT
31172017-08-22 Tom Tromey <tom@tromey.com>
3118
3119 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3120
56f37645
TT
31212017-08-22 Tom Tromey <tom@tromey.com>
3122
3123 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3124 (lookup_partial_symbol): Update.
3125
0b581c69
TT
31262017-08-22 Tom Tromey <tom@tromey.com>
3127
3128 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3129 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3130 (find_and_open_source, symtab_to_fullname): Update.
3131 * psymtab.c (psymtab_to_fullname): Update.
3132
14278e1f
TT
31332017-08-22 Tom Tromey <tom@tromey.com>
3134
3135 * exec.c (exec_file_attach): Update.
3136 * linux-thread-db.c (try_thread_db_load): Update.
3137 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3138 * utils.c (gdb_realpath): Change return type.
3139 (gdb_realpath_keepfile): Update.
3140 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3141 (_initialize_utils): Register the new self test.
3142 * source.c (openp): Update.
3143 (find_and_open_source): Update.
3144 * nto-tdep.c (nto_find_and_open_solib): Update.
3145 * main.c (set_gdb_data_directory): Update.
3146 (captured_main_1): Update.
3147 * dwarf2read.c (dwarf2_get_dwz_file): Update
3148 (dw2_map_symbol_filenames): Update.
3149 * auto-load.c (auto_load_safe_path_vec_update): Update.
3150 (filename_is_in_auto_load_safe_path_vec): Change type of
3151 "filename_realp".
3152 (auto_load_objfile_script): Update.
3153 (file_is_auto_load_safe): Update. Use std::string.
3154 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3155
4971c9a7
TT
31562017-08-22 Tom Tromey <tom@tromey.com>
3157
3158 * utils.c (gdb_realpath_keepfile): Return a
3159 gdb::unique_xmalloc_ptr.
3160 * exec.c (exec_file_attach): Update.
3161 * utils.h (gdb_realpath_keepfile): Return a
3162 gdb::unique_xmalloc_ptr.
3163
e3e41d58
TT
31642017-08-22 Tom Tromey <tom@tromey.com>
3165
3166 * compile/compile.c (compile_file_command): Use
3167 gdb::unique_xmalloc_ptr, std::string.
3168 * utils.c (gdb_abspath): Change return type.
3169 * source.c (openp): Update.
3170 * objfiles.c (allocate_objfile): Update.
3171 * main.c (set_gdb_data_directory): Update.
3172 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3173
0d999a6e
ZZ
31742017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3175
3176 * cli-cmds.c (list_commands): List actual code around more than
3177 one location.
3178
329d5e7e
JB
31792017-08-21 John Baldwin <jhb@FreeBSD.org>
3180
3181 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3182
bf223d3e
PA
31832017-08-21 Pedro Alves <palves@redhat.com>
3184
3185 PR gdb/19487
3186 * c-exp.y (variable production): Handle function aliases.
3187 * minsyms.c (msymbol_is_text): New function.
3188 * minsyms.h (msymbol_is_text): Declare.
3189 * symtab.c (find_function_alias_target): New function.
3190 * symtab.h (find_function_alias_target): Declare.
3191
c973d0aa
PA
31922017-08-21 Pedro Alves <palves@redhat.com>
3193
3194 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3195 typedefs.
3196 * typeprint.c (whatis_exp): If handling "whatis", and expression
3197 is OP_TYPE, strip one typedef level. Otherwise don't strip
3198 typedefs here.
3199 * valops.c (value_cast): Save "to" type before resolving
3200 stubs/typedefs. Use that type as resulting value's type.
3201
2989a365
TT
32022017-08-18 Tom Tromey <tom@tromey.com>
3203 Pedro Alves <palves@redhat.com>
3204
3205 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3206 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3207 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3208 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3209 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3210 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3211 (linux_get_siginfo_data): Add "thread" argument. Use
3212 scoped_restore.
3213 * linux-nat.c (linux_child_follow_fork)
3214 (check_stopped_by_watchpoint): Use scoped_restore.
3215 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3216 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3217 (restore_inferior_ptid, save_inferior_ptid): Remove.
3218 * btrace.c (btrace_fetch): Use scoped_restore.
3219 * bsd-uthread.c (bsd_uthread_fetch_registers)
3220 (bsd_uthread_store_registers): Use scoped_restore.
3221 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3222 scoped_restore.
3223 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3224 (aix_thread_xfer_partial): Use scoped_restore.
3225 * inferior.h (save_inferior_ptid): Remove.
3226
e60eb288
YQ
32272017-08-18 Yao Qi <yao.qi@linaro.org>
3228
3229 PR tdep/21818
3230 * arm-tdep.c (gdb_print_insn_arm): Mark
3231 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3232
6d580b63
YQ
32332017-08-18 Yao Qi <yao.qi@linaro.org>
3234
3235 * NEWS: Mention GDBserver's new option "--selftest".
3236 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3237 * selftest.c: Move it to common/selftest.c.
3238 * selftest.h: Move it to common/selftest.h.
3239 * selftest-arch.c (reset): New function.
3240 (tests_with_arch): Call reset.
3241
86dcbf50
YQ
32422017-08-18 Yao Qi <yao.qi@linaro.org>
3243
3244 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3245 instead of exception_fprintf and printf_filtered.
3246
7649770c
YQ
32472017-08-18 Yao Qi <yao.qi@linaro.org>
3248
3249 * selftest.c (register_self_test): Rename it to
3250 selftests::register_test.
3251 (run_self_tests): selftest::run_tests.
3252 * selftest.h: Update declarations.
3253 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3254 selftests::register_test_foreach_arch.
3255 * selftest-arch.h: Update declaration.
3256 * aarch64-tdep.c: Update.
3257 * arm-tdep.c: Likewise.
3258 * disasm-selftests.c: Likewise.
3259 * dwarf2loc.c: Likewise.
3260 * dwarf2-frame.c: Likewise.
3261 * findvar.c: Likewise.
3262 * gdbarch-selftests.c: Likewise.
3263 * maint.c (maintenance_selftest): Likewise.
3264 * regcache.c: Likewise.
3265 * rust-exp.y: Likewise.
3266 * selftest-arch.c: Likewise.
3267 * unittests/environ-selftests.c: Likewise.
3268 * unittests/function-view-selftests.c: Likewise.
3269 * unittests/offset-type-selftests.c: Likewise.
3270 * unittests/optional-selftests.c: Likewise.
3271 * unittests/scoped_restore-selftests.c: Likewise.
3272 * utils-selftests.c: Likewise.
3273
b0cba12e
PA
32742017-08-17 Pedro Alves <palves@redhat.com>
3275
3276 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3277 local.
3278
4c8aa72d
PA
32792017-08-17 Pedro Alves <palves@redhat.com>
3280
3281 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3282 field.
3283 (reset_die_in_process): Delete, replaced by ...
3284 (process_die_scope): ... this new class. Make it responsible for
3285 freeing cu->line_header too.
3286 (process_die): Use process_die_scope.
3287 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3288 cu->line_header_die_owner. Don't release the line header if it's
3289 owned by the CU.
3290 (setup_type_unit_groups): Make the CU/DIE own the line header.
3291 Don't release the line header here.
3292
ba713918
AL
32932017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3294
3295 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3296
44d0fb3a
RK
32972017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3298
3299 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3300 Single-Key mode
3301
a5afdb16
RK
33022017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3303
3304 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3305 mode command list.
3306
47613aeb
SH
33072017-08-15 Stafford Horne <shorne@gmail.com>
3308
3309 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3310
9c3cc999
SH
33112017-08-15 Stafford Horne <shorne@gmail.com>
3312
3313 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3314
206726fb
SDJ
33152017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3316
3317 PR gdb/21954
3318 * infcmd.c (unset_environment_command): Use the 'clear' method on
3319 the environment instead of resetting it.
3320
0335ac6d
JB
33212017-08-15 John Baldwin <jhb@FreeBSD.org>
3322
3323 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3324 platforms.
3325
d3abe1c8
TT
33262017-08-14 Tom Tromey <tom@tromey.com>
3327
3328 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3329 (print_binary_chars): Likewise.
3330 (BITS_IN_BYTES): Remove.
3331
d6382fff
TT
33322017-08-14 Tom Tromey <tom@tromey.com>
3333
3334 PR gdb/21675
3335 * valprint.c (LOW_ZERO): Change value to 034.
3336 (print_octal_chars): Add static_asserts for octal constants.
3337 * printcmd.c (print_scalar_formatted): Add 'd' case.
3338
f978cb06
TT
33392017-08-11 Tom Tromey <tom@tromey.com>
3340
3341 * symfile.c (add_symbol_file_command): Use std::vector.
3342
2f5404b3
TT
33432017-08-14 Tom Tromey <tom@tromey.com>
3344
3345 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3346 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3347 std::move.
3348 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3349
de7985c3
PA
33502017-08-11 Pedro Alves <palves@redhat.com>
3351
3352 * infrun.c (process_event_stop_test): Adjust
3353 function_name_is_marked_for_skip call.
3354 * skip.c: Include <list>.
3355 (skiplist_entry): Make it a class with private fields, and
3356 getters/setters.
3357 (skiplist_entry_chain): Delete.
3358 (skiplist_entries): New.
3359 (skiplist_entry_count): Delete.
3360 (highest_skiplist_entry_num): New.
3361 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3362 (add_skiplist_entry): Delete.
3363 (skiplist_entry::skiplist_entry): New.
3364 (skiplist_entry::add_entry): New.
3365 (skip_file_command, skip_function): Adjust.
3366 (compile_skip_regexp): Delete.
3367 (skip_command): Don't compile regexp here. Adjust to use
3368 skiplist_entry::add_entry.
3369 (skip_info): Adjust to use range-for and getters.
3370 (skip_enable_command, skip_disable_command): Adjust to use
3371 range-for and setters.
3372 (skip_delete_command): Adjust to use std::list.
3373 (add_skiplist_entry): Delete.
3374 (skip_file_p): Delete, refactored as ...
3375 (skiplist_entry::do_skip_file_p): ... this new method.
3376 (skip_gfile_p): Delete, refactored as ...
3377 (skiplist_entry::do_gskip_file_p): ... this new method.
3378 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3379 (skiplist_entry::skip_function_p): ... this new method.
3380 (function_name_is_marked_for_skip): Now returns bool, and takes
3381 the function sal by const reference. Adjust to use range-for and
3382 skiplist_entry methods.
3383 (_initialize_step_skip): Remove references to
3384 skiplist_entry_chain, skiplist_entry_count.
3385 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3386 takes the function sal by const reference.
3387
be7d3cd5
YQ
33882017-08-11 Yao Qi <yao.qi@linaro.org>
3389
3390 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3391 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3392 (dwarf2_frame_cache):
3393 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3394 RETURN_MASK_ALL and set *this_case to NULL.
3395 * frame-unwind.h: Update comments.
3396
1c90d9f0
YQ
33972017-08-11 Yao Qi <yao.qi@linaro.org>
3398
3399 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3400 (dwarf2_frame_state_copy_regs): Remove.
3401 (dwarf2_frame_state_free_regs): Remove.
3402 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3403 (dwarf2_restore_rule): Call method .alloc_regs instead of
3404 dwarf2_frame_state_alloc_regs.
3405 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3406 constructor. Call std::move.
3407 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3408 (dwarf2_frame_cache): Likewise.
3409
3410 [GDB_SELF_TEST]: Include selftest.h and
3411 selftest-arch.h.
3412 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3413 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3414 execute_cfa_program_test.
3415
3416 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3417 copy ctor, assignment operator, move assignment.
3418 <alloc_regs>: New method.
3419 <swap>: New method.
3420 (struct dwarf2_frame_state): Delete dtor.
3421 (dwarf2_frame_state_alloc_regs): Remove declaration.
3422 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3423 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3424
afe37d6b
YQ
34252017-08-11 Yao Qi <yao.qi@linaro.org>
3426
3427 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3428 (dwarf2_frame_state::dwarf2_frame_state): New.
3429 (dwarf2_frame_state::~dwarf2_frame_state): New.
3430 (dwarf2_fetch_cfa_info): Update.
3431 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3432 rather than a pointer. Update code.
3433 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3434 dtor.
3435 <data_align, code_align, retaddr_column>: Change them to const.
3436 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3437 to bool.
3438
b348037f
YQ
34392017-08-11 Yao Qi <yao.qi@linaro.org>
3440
3441 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3442 <loc.exp>: New field.
3443 * dwarf2-frame.c (execute_cfa_program): Update.
3444 (dwarf2_frame_prev_register): Update.
3445
e7c9de26
PA
34462017-08-10 Pedro Alves <palves@redhat.com>
3447
3448 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3449
e8c6b620
JB
34502017-08-09 John Baldwin <jhb@FreeBSD.org>
3451
3452 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3453 (fbsd_pending_children): Use std::list.
3454 (fbsd_remember_child): Likewise.
3455 (fbsd_is_child_pending): Likewise.
3456 (fbsd_pending_vfork_done): Use std::forward_list.
3457 (fbsd_add_vfork_done): Likewise.
3458 (fbsd_is_vfork_done_pending): Likewise.
3459 (fbsd_next_vfork_done): Likewise.
3460
e4a26669
JB
34612017-08-09 John Baldwin <jhb@FreeBSD.org>
3462
3463 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3464 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3465 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3466 for `mapfilename'.
3467 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3468 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3469
142311d3
JB
34702017-08-09 John Baldwin <jhb@FreeBSD.org>
3471
3472 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3473 "filestuff.h".
3474 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3475
42fa2e0e
TT
34762017-08-09 Tom Tromey <tom@tromey.com>
3477
3478 * skip.c (skiplist_entry): New constructor.
3479 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3480 (skiplist_entry::file_is_glob): Now bool.
3481 (skiplist_entry::file, skiplist_entry::function): Now
3482 std::string.
3483 (make_skip_entry): Return a unique_ptr. Use new.
3484 (free_skiplist_entry, free_skiplist_entry_cleanup)
3485 (make_free_skiplist_entry_cleanup): Remove.
3486 (skip_command, skip_disable_command, add_skiplist_entry)
3487 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3488 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3489 (function_name_is_marked_for_skip): Update.
3490 (skip_delete_command): Update. Use delete.
3491
cd3af38d
JW
34922017-08-09 Jiong Wang <jiong.wang@arm.com>
3493
3494 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3495 (aarch64_linux_core_read_description): New function.
3496 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3497
29592bde
PA
34982017-08-09 Pedro Alves <palves@redhat.com>
3499
3500 * cp-name-parser.y (cp_comp_to_string): Return a
3501 gdb::unique_xmalloc_ptr<char>.
3502 * cp-support.c (replace_typedefs_qualified_name)
3503 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3504 (cp_canonicalize_string_full): Use op= instead of explicit
3505 convertion.
3506 (cp_class_name_from_physname, method_name_from_physname)
3507 (cp_func_name, cp_remove_params): Adjust to use
3508 gdb::unique_xmalloc_ptr<char>.
3509 * cp-support.h (cp_comp_to_string): Return a
3510 gdb::unique_xmalloc_ptr<char>.
3511 * python/py-type.c (typy_lookup_type): Adjust to use
3512 gdb::unique_xmalloc_ptr<char>.
3513
b3340438
L
35142017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3515
3516 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3517
e88e8651
YQ
35182017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3519 Yao Qi <yao.qi@linaro.org>
3520
3521 * cp-support.c (cp_canonicalize_string_full): Use
3522 gdb::unique_xmalloc_ptr<char>.
3523 (cp_canonicalize_string): Likewise.
3524
f5a29eb0
YQ
35252017-08-09 Yao Qi <yao.qi@linaro.org>
3526
3527 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3528 * regformats/i386/amd64-avx-avx512.dat: Remove.
3529 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3530 * regformats/i386/amd64-avx-mpx.dat:Remove.
3531 * regformats/i386/amd64-avx.dat: Remove.
3532 * regformats/i386/amd64-mpx.dat: Remove.
3533 * regformats/i386/i386-avx-avx512.dat: Remove.
3534 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3535 * regformats/i386/i386-avx-mpx.dat: Remove.
3536 * regformats/i386/i386-mmx.dat: Remove.
3537 * regformats/i386/i386-mpx.dat: Remove.
3538
57757c2f
YQ
35392017-08-09 Yao Qi <yao.qi@linaro.org>
3540
3541 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3542 * amd64-tdep.c: Don't include features/i386/x32*.c.
3543 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3544 functions.
3545 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3546 and i386/x32-avx-avx512.
3547 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3548 and i386/x32.xml.
3549 * features/i386/x32-avx-avx512.c: Removed.
3550 * features/i386/x32-avx-avx512.xml: Removed.
3551 * features/i386/x32-avx.c: Removed.
3552 * features/i386/x32-avx.xml: Removed.
3553 * features/i386/x32.c: Removed.
3554 * features/i386/x32.xml: Removed.
3555 * regformats/i386/x32-avx-avx512.dat: Removed.
3556 * regformats/i386/x32-avx.dat: Removed.
3557 * regformats/i386/x32.dat: Removed.
3558
ba7b109b
MR
35592017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3560
3561 PR breakpoints/21886
3562 * mem-break.c (default_memory_insert_breakpoint): Use
3563 `->placed_address' rather than `->reqstd_address' for the
3564 breakpoint location.
3565
e347efc3
MR
35662017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3567
3568 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3569 assertions.
3570
0dba2a6c
MR
35712017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3572
3573 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3574 a union of `tdep_info', `tdesc_data' and `id'.
3575 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3576 rather than `info.tdep_info'.
3577 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3578 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3579 * i386-tdep.c (i386_gdbarch_init): Likewise.
3580 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3581 * mips-tdep.c (mips_gdbarch_init): Likewise.
3582 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3583 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3584 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3585 `info.tdep_info'.
3586 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3587 `info.tdep_info'.
3588 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3589 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3590 `info.tdep_info'.
3591 * spu-tdep.c (spu_gdbarch_init): Likewise.
3592 * gdbarch.h: Regenerate.
3593
16eb6b2d
LS
35942017-08-07 Leszek Swirski <leszeks@google.com>
3595
7b005726 3596 PR symtab/20899
16eb6b2d
LS
3597 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3598
74cbb09e
SM
35992017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3600
3601 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3602 (gdbsim_open): Rename gdb_argv args object to argv.
3603
ee0c3293
TT
36042017-08-05 Tom Tromey <tom@tromey.com>
3605
3606 * compile/compile-object-load.c (compile_object_load): Use
3607 gdb::unique_xmalloc_ptr.
3608 * cli/cli-dump.c (scan_filename): Rename from
3609 scan_filename_with_cleanup. Change return type.
3610 (scan_expression): Rename from scan_expression_with_cleanup.
3611 Change return type.
3612 (dump_memory_to_file, dump_value_to_file, restore_command):
3613 Use gdb::unique_xmalloc_ptr. Update.
3614 * cli/cli-cmds.c (find_and_open_script): Use
3615 gdb::unique_xmalloc_ptr.
3616 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3617 * symmisc.c (maintenance_print_symbols)
3618 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3619 * symfile.c (symfile_bfd_open, generic_load)
3620 (add_symbol_file_command, remove_symbol_file_command): Use
3621 gdb::unique_xmalloc_ptr.
3622 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3623 * psymtab.c (maintenance_print_psymbols): Use
3624 gdb::unique_xmalloc_ptr.
3625 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3626 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3627 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3628 (reload_shared_libraries_1): Likewise.
3629
3232fabd
TT
36302017-08-05 Tom Tromey <tom@tromey.com>
3631
3632 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3633 (rust_op_vector, rust_set_vector): New typedefs.
3634 (current_parser): New global.
3635 (work_obstack): Change to pointer type. Update all users.
3636 (rust_ast, pstate): Remove globals.
3637 (struct rust_parser): New.
3638 (%union) <params, field_inits>: Change type.
3639 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3640 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3641 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3642 (convert_params_to_types, convert_params_to_expression): Change
3643 type of "params".
3644 (ast_string): Change type of "fields".
3645 (rust_parse): Make a rust_parser. Remove cleanups.
3646 (rust_lex_tests): Make and install an auto_obstack.
3647
f02fd774
YQ
36482017-08-04 Yao Qi <yao.qi@linaro.org>
3649
3650 * configure.srv (ipa_x32_linux_regobj): New.
3651 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3652 instead of X86_TDESC_AVX512.
3653 (initialize_low_tracepoint): Call
3654 init_registers_x32_avx_avx512_linux.
3655
91975afd
YQ
36562017-08-04 Yao Qi <yao.qi@linaro.org>
3657
3658 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3659
2331fa3a
RK
36602017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3661
3662 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3663
744e4fe1
TT
36642017-08-03 Tom Tromey <tom@tromey.com>
3665
3666 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3667 Remove.
3668 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3669
1c034b67
TT
36702017-08-03 Tom Tromey <tom@tromey.com>
3671
3672 * python/py-param.c (compute_enum_values): Use gdb_argv.
3673
773a1edc
TT
36742017-08-03 Tom Tromey <tom@tromey.com>
3675
3676 * utils.h (struct gdb_argv_deleter): New.
3677 (gdb_argv): New class.
3678 * utils.c (gdb_argv::reset): New method.
3679 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3680 * tracefile.c (tsave_command): Use gdb_argv.
3681 * top.c (new_ui_command): Use gdb_argv.
3682 * symmisc.c (maintenance_print_symbols)
3683 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3684 * symfile.c (symbol_file_command, generic_load)
3685 (remove_symbol_file_command): Use gdb_argv.
3686 * stack.c (backtrace_command): Use gdb_argv.
3687 * source.c (add_path, show_substitute_path_command)
3688 (unset_substitute_path_command, set_substitute_path_command):
3689 Use gdb_argv.
3690 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3691 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3692 * remote.c (extended_remote_run, remote_put_command)
3693 (remote_get_command, remote_delete_command): Use gdb_argv.
3694 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3695 (gdbsim_open): Use gdb_argv.
3696 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3697 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3698 * procfs.c (procfs_info_proc): Use gdb_argv.
3699 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3700 * infrun.c (handle_command): Use gdb_argv.
3701 * inferior.c (add_inferior_command, clone_inferior_command):
3702 Use gdb_argv.
3703 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3704 * exec.c (exec_file_command): Use gdb_argv.
3705 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3706 * compile/compile.c (build_argc_argv): Use gdb_argv.
3707
0d50bde3
TT
37082017-08-03 Tom Tromey <tom@tromey.com>
3709
3710 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3711
7f968c89
TT
37122017-08-03 Tom Tromey <tom@tromey.com>
3713
3714 * python/python.c (compute_python_string): Return std::string.
3715 (gdbpy_eval_from_control_command): Update.
3716 (do_start_initialization): Use std::string.
3717 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3718 xstrprintf.
3719 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3720 xstrprintf.
3721
3c9ebddd
TT
37222017-08-03 Tom Tromey <tom@tromey.com>
3723
3724 * top.h (do_restore_instream_cleanup): Remove.
3725 * top.c (do_restore_instream_cleanup): Remove.
3726 (read_command_file): Use scoped_restore.
3727 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3728
b51b225e
TT
37292017-08-03 Tom Tromey <tom@tromey.com>
3730
3731 * cli/cli-script.c (execute_user_command)
3732 (execute_control_command): Use scoped_restore.
3733
ac991630
TT
37342017-08-03 Tom Tromey <tom@tromey.com>
3735
3736 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3737 (execute_user_command): Remove user_call_depth; use
3738 user_args_stack's size instead.
3739
898e0c8e
TT
37402017-08-03 Tom Tromey <tom@tromey.com>
3741
3742 * top.h (in_user_command): Remove.
3743 * top.c (in_user_command): Remove.
3744 * cli/cli-script.c (do_restore_user_call_depth)
3745 (execute_user_command): Update.
3746
26fcd5d7
TT
37472017-08-03 Tom Tromey <tom@tromey.com>
3748
3749 * valops.c (search_struct_method): Use gdb::byte_vector.
3750 * valarith.c (value_concat): Use std::vector.
3751 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3752 (simple_search_memory): Likewise.
3753 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3754 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3755 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3756 * elfread.c (elf_rel_plt_read): Use std::string.
3757 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3758 * cli/cli-dump.c (restore_section_callback): Use
3759 gdb::byte_vector.
3760
7c218e6c
TT
37612017-08-03 Tom Tromey <tom@tromey.com>
3762
3763 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3764
31b68d4a
TT
37652017-08-03 Tom Tromey <tom@tromey.com>
3766
3767 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3768 (tui_register_format): Use scoped_restore.
3769
2ec845e7
TT
37702017-08-03 Tom Tromey <tom@tromey.com>
3771
3772 * reverse.c (exec_direction_default): Remove.
3773 (exec_reverse_once): Use scoped_restore.
3774 * remote.c (restore_remote_timeout): Remove.
3775 (remote_flash_erase, remote_flash_write, remote_flash_done)
3776 (readchar, remote_serial_write): Use scoped_restore.
3777 * cli/cli-script.c (struct source_cleanup_lines_args)
3778 (source_cleanup_lines): Remove.
3779 (script_from_file): Use scoped_restore.
3780 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3781 (source_command): Use scoped_restore.
3782
b3bc8453
TT
37832017-08-03 Tom Tromey <tom@tromey.com>
3784
3785 * utils.h (make_cleanup_free_so): Remove.
3786 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3787 * solist.h (struct so_deleter): New.
3788 (so_list_up): New typedef.
3789 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3790
e3ad2841
TT
37912017-08-03 Tom Tromey <tom@tromey.com>
3792
3793 * utils.h (make_cleanup_restore_current_language): Remove.
3794 * utils.c (do_restore_current_language)
3795 (make_cleanup_restore_current_language): Remove.
3796 * parse.c (parse_exp_in_context_1)
3797 (parse_expression_with_language): Use
3798 scoped_restore_current_language.
3799 * mi/mi-main.c (mi_cmd_execute): Use
3800 scoped_restore_current_language.
3801 * language.h (scoped_restore_current_language): New class.
3802
b80cf838
TT
38032017-08-03 Tom Tromey <tom@tromey.com>
3804
3805 * compile/compile.c (cleanup_unlink_file): Remove.
3806 (compile_to_object): Use gdb::unlinker.
3807 (eval_compile_command): Likewise.
3808
fad0444a
TT
38092017-08-03 Tom Tromey <tom@tromey.com>
3810
3811 * utils.h (make_cleanup_fclose): Remove.
3812 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3813
6e7bc05c
TT
38142017-08-03 Tom Tromey <tom@tromey.com>
3815
3816 * top.c (open_terminal_stream): Return gdb_file_up.
3817 (new_ui_command): Update.
3818
4a45905b
TT
38192017-08-03 Tom Tromey <tom@tromey.com>
3820
3821 * source.c (print_source_lines_base, forward_search_command)
3822 (reverse_search_command): Use gdb_file_up.
3823
7cd06d6e
TT
38242017-08-03 Tom Tromey <tom@tromey.com>
3825
3826 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3827
ed166945
TT
38282017-08-03 Tom Tromey <tom@tromey.com>
3829
3830 * cli/cli-cmds.c (find_and_open_script): Change return type.
3831 Remove "streamp" and "full_path" parameters.
3832 (source_script_with_search): Update.
3833 * auto-load.c (source_script_file): Update.
3834 * cli/cli-cmds.h (find_and_open_script): Change type.
3835 (open_script): New struct.
3836
d419f42d
TT
38372017-08-03 Tom Tromey <tom@tromey.com>
3838
3839 * xml-support.c (xml_fetch_content_from_file): Update.
3840 * ui-file.c (stdio_file::open): Update.
3841 * tracefile-tfile.c (tfile_start): Update.
3842 * remote.c (remote_file_put, remote_file_get): Update.
3843 * nat/linux-procfs.c (linux_proc_get_int)
3844 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3845 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3846 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3847 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3848 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3849 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3850 * linux-nat.c (linux_proc_pending_signals): Update.
3851 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3852 (file_closer): Remove.
3853 * compile/compile.c (compile_to_object): Update.
3854 * common/filestuff.h (struct gdb_file_deleter): New.
3855 (gdb_file_up): New typedef.
3856 (gdb_fopen_cloexec): Change return type.
3857 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3858 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3859 (dump_binary_file, restore_binary_file): Update.
3860 * auto-load.c (auto_load_objfile_script_1): Update.
3861
4a2b031d
TT
38622017-08-03 Tom Tromey <tom@tromey.com>
3863
3864 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3865 (info_static_tracepoint_markers_command): Likewise.
3866 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3867 * skip.c (skip_info): Use ui_out_emit_table.
3868 * progspace.c (print_program_space): Use ui_out_emit_table.
3869 * osdata.c (info_osdata): Use ui_out_emit_table.
3870 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3871 ui_out_emit_table.
3872 * linux-thread-db.c (info_auto_load_libthread_db): Use
3873 ui_out_emit_table.
3874 * inferior.c (print_inferior): Use ui_out_emit_table.
3875 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3876 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3877 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3878 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3879 * ui-out.h (class ui_out_emit_table): New.
3880
a4f320fd
MR
38812017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3882
3883 * mips-tdep.c (mips_fpu_type_str): New function.
3884 (mips_dump_tdep): Call it.
3885
a2f1f308
MR
38862017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3887
3888 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3889 `->mips_fpu_type'.
3890
7e5ed83b
XR
38912017-07-31 Xavier Roirand <roirand@adacore.com>
3892
3893 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3894
4c9dc811
XR
38952017-07-27 Xavier Roirand <roirand@adacore.com>
3896
3897 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3898
27d41eac
YQ
38992017-07-26 Yao Qi <yao.qi@linaro.org>
3900
3901 * cli/cli-cmds.c (maintenancechecklist): New variable.
3902 * gdbcmd.h (maintenancechecklist): Declare it.
3903 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3904 Call i386_linux_read_description with different masks.
3905 * maint.c (maintenance_check_command): New function.
3906 (_initialize_maint_cmds): Call add_prefix_cmd.
3907 * target-descriptions.c (tdesc_reg): override operator != and ==.
3908 (tdesc_type): Likewise.
3909 (tdesc_feature): Likewise.
3910 (target_desc): Likewise.
3911 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3912 (maintenance_check_xml_descriptions): New function.
3913 (_initialize_target_descriptions) Add command "xml-descriptions".
3914 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3915
ea03d0d3
YQ
39162017-07-26 Yao Qi <yao.qi@linaro.org>
3917
3918 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3919 Include features/i386/32bit-*.c.
3920 (i386_linux_read_description): Generate target description if it
3921 doesn't exist.
3922 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3923 functions.
3924 * features/i386/32bit-linux.c: Re-generated.
3925 * features/i386/32bit-sse.c: Likewise.
3926 * target-descriptions.c (print_c_feature::visit): Print code to
3927 set register number if needed.
3928 (print_c_feature) <m_next_regnum>: New field.
3929
25aa13e5
YQ
39302017-07-26 Yao Qi <yao.qi@linaro.org>
3931
3932 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3933 (FEATURE_XMLFILES): New.
3934 (FEATURE_CFILES): New.
3935 New rules.
3936 (clean-cfiles): Remove generated c files.
3937 * features/i386/32bit-avx.c: Generated.
3938 * features/i386/32bit-avx512.c: Generated.
3939 * features/i386/32bit-core.c: Generated.
3940 * features/i386/32bit-linux.c: Generated.
3941 * features/i386/32bit-mpx.c: Generated.
3942 * features/i386/32bit-pkeys.c: Generated.
3943 * features/i386/32bit-sse.c: Generated.
3944 * target-descriptions.c: Include algorithm.
3945 (tdesc_element_visitor): Add method visit_end.
3946 (print_c_tdesc): Implement visit_end.
3947 (print_c_tdesc:: m_filename_after_features): Move it to
3948 protected.
3949 (print_c_feature): New class.
3950 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3951 name starts with "i386/32bit-".
3952
6eb1e6a8
YQ
39532017-07-26 Yao Qi <yao.qi@linaro.org>
3954
3955 * target-descriptions.c (tdesc_element_visitor): New class.
3956 (tdesc_element): New class.
3957 (tdesc_reg): Inherit from tdesc_element.
3958 (tdesc_reg::accept): New function.
3959 (tdesc_type): Inherit from tdesc_element.
3960 (tdesc_type::accept): New function.
3961 (tdesc_feature): Inherit from tdesc_element.
3962 (tdesc_feature::accept): New function.
3963 (target_desc): Inherit from tdesc_element.
3964 (target_desc::target_desc): New.
3965 (target_desc::~target_desc): New.
3966 (target_desc::accept): New.
3967 (allocate_target_description): Use new.
3968 (free_target_description): Use delete.
3969 (print_c_tdesc): New class.
3970 (maint_print_c_tdesc_cmd): Adjust.
3971
3972 * features/aarch64.c: Re-generated.
3973 * features/arc-arcompact.c: Re-generated.
3974 * features/arc-v2.c: Re-generated.
3975 * features/arm/arm-with-iwmmxt.c: Re-generated.
3976 * features/arm/arm-with-m.c: Re-generated.
3977 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3978 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3979 * features/arm/arm-with-neon.c: Re-generated.
3980 * features/arm/arm-with-vfpv2.c: Re-generated.
3981 * features/arm/arm-with-vfpv3.c: Re-generated.
3982 * features/i386/amd64-avx-avx512.c: Re-generated.
3983 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3984 * features/i386/amd64-avx.c: Re-generated.
3985 * features/i386/amd64-avx-linux.c: Re-generated.
3986 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3987 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3988 * features/i386/amd64-avx-mpx.c: Re-generated.
3989 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3990 * features/i386/amd64.c: Re-generated.
3991 * features/i386/amd64-linux.c: Re-generated.
3992 * features/i386/amd64-mpx.c: Re-generated.
3993 * features/i386/amd64-mpx-linux.c: Re-generated.
3994 * features/i386/i386-avx-avx512.c: Re-generated.
3995 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3996 * features/i386/i386-avx.c: Re-generated.
3997 * features/i386/i386-avx-linux.c: Re-generated.
3998 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3999 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4000 * features/i386/i386-avx-mpx.c: Re-generated.
4001 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4002 * features/i386/i386.c: Re-generated.
4003 * features/i386/i386-linux.c: Re-generated.
4004 * features/i386/i386-mmx.c: Re-generated.
4005 * features/i386/i386-mmx-linux.c: Re-generated.
4006 * features/i386/i386-mpx.c: Re-generated.
4007 * features/i386/i386-mpx-linux.c: Re-generated.
4008 * features/i386/x32-avx-avx512.c: Re-generated.
4009 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4010 * features/i386/x32-avx.c: Re-generated.
4011 * features/i386/x32-avx-linux.c: Re-generated.
4012 * features/i386/x32.c: Re-generated.
4013 * features/i386/x32-linux.c: Re-generated.
4014 * features/microblaze.c: Re-generated.
4015 * features/microblaze-with-stack-protect.c: Re-generated.
4016 * features/mips64-dsp-linux.c: Re-generated.
4017 * features/mips64-linux.c: Re-generated.
4018 * features/mips-dsp-linux.c: Re-generated.
4019 * features/mips-linux.c: Re-generated.
4020 * features/nds32.c: Re-generated.
4021 * features/nios2.c: Re-generated.
4022 * features/nios2-linux.c: Re-generated.
4023 * features/rs6000/powerpc-32.c: Re-generated.
4024 * features/rs6000/powerpc-32l.c: Re-generated.
4025 * features/rs6000/powerpc-403.c: Re-generated.
4026 * features/rs6000/powerpc-403gc.c : Re-generated.
4027 * features/rs6000/powerpc-405.c: Re-generated.
4028 * features/rs6000/powerpc-505.c: Re-generated.
4029 * features/rs6000/powerpc-601.c: Re-generated.
4030 * features/rs6000/powerpc-602.c: Re-generated.
4031 * features/rs6000/powerpc-603.c: Re-generated.
4032 * features/rs6000/powerpc-604.c: Re-generated.
4033 * features/rs6000/powerpc-64.c: Re-generated.
4034 * features/rs6000/powerpc-64l.c: Re-generated.
4035 * features/rs6000/powerpc-7400.c: Re-generated.
4036 * features/rs6000/powerpc-750.c: Re-generated.
4037 * features/rs6000/powerpc-860.c: Re-generated.
4038 * features/rs6000/powerpc-altivec32.c: Re-generated.
4039 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4040 * features/rs6000/powerpc-altivec64.c: Re-generated.
4041 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4042 * features/rs6000/powerpc-cell32l.c: Re-generated.
4043 * features/rs6000/powerpc-cell64l.c: Re-generated.
4044 * features/rs6000/powerpc-e500.c: Re-generated.
4045 * features/rs6000/powerpc-e500l.c: Re-generated.
4046 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4047 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4048 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4049 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4050 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4051 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4052 * features/rs6000/powerpc-vsx32.c: Re-generated.
4053 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4054 * features/rs6000/powerpc-vsx64.c: Re-generated.
4055 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4056 * features/rs6000/rs6000.c: Re-generated.
4057 * features/s390-linux32.c: Re-generated.
4058 * features/s390-linux32v1.c: Re-generated.
4059 * features/s390-linux32v2.c: Re-generated.
4060 * features/s390-linux64.c: Re-generated.
4061 * features/s390-linux64v1.c: Re-generated.
4062 * features/s390-linux64v2.c: Re-generated.
4063 * features/s390-te-linux64.c: Re-generated.
4064 * features/s390-tevx-linux64.c: Re-generated.
4065 * features/s390-vx-linux64.c: Re-generated.
4066 * features/s390x-linux64.c: Re-generated.
4067 * features/s390x-linux64v1.c: Re-generated.
4068 * features/s390x-linux64v2.c: Re-generated.
4069 * features/s390x-te-linux64.c: Re-generated.
4070 * features/s390x-tevx-linux64.c: Re-generated.
4071 * features/s390x-vx-linux64.c: Re-generated.
4072 * features/sparc/sparc32-solaris.c: Re-generated.
4073 * features/sparc/sparc64-solaris.c: Re-generated.
4074 * features/tic6x-c62x.c: Re-generated.
4075 * features/tic6x-c62x-linux.c: Re-generated.
4076 * features/tic6x-c64x.c: Re-generated.
4077 * features/tic6x-c64x-linux.c: Re-generated.
4078 * features/tic6x-c64xp.c: Re-generated.
4079 * features/tic6x-c64xp-linux.c: Re-generated.
4080
35b4818d
YQ
40812017-07-26 Yao Qi <yao.qi@linaro.org>
4082
4083 * i386-linux-tdep.c (i386_linux_read_description): New function.
4084 (i386_linux_core_read_description): Call
4085 i386_linux_read_description.
4086 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4087 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4088 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4089 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4090 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4091 * x86-linux-nat.c (x86_linux_read_description): Call
4092 i386_linux_read_description.
4093
8e2141c6
YQ
40942017-07-26 Yao Qi <yao.qi@linaro.org>
4095
4096 * NEWS: Mention it.
4097 * features/Makefile (%.c: %.xml): Pass the xml file name to
4098 command "maint print c-tdesc".
4099 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4100 name from 'arg'.
4101
b468ff4c
YQ
41022017-07-26 Yao Qi <yao.qi@linaro.org>
4103
4104 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4105 in-class initialization.
4106 (tdesc_create_feature): Call new instead of XCNEW.
4107 (free_target_description): Ue delete.
4108
b9c0e1b4
JB
41092017-07-25 John Baldwin <jhb@FreeBSD.org>
4110
4111 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4112
a04b5337
YQ
41132017-07-25 Yao Qi <yao.qi@linaro.org>
4114
4115 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4116 constant.
4117 (amd64_x32_init_abi): Likewise.
4118 * amd64-tdep.h (amd64_init_abi): Update declaration.
4119 (amd64_x32_init_abi): Likewise.
4120
02ad7fc2
YQ
41212017-07-25 Yao Qi <yao.qi@linaro.org>
4122
4123 PR tdep/21717
4124 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4125 condition for FPSCR.
4126 (arm_linux_store_inferior_registers): Likewise.
4127
b6f48cb0
TT
41282017-07-22 Tom Tromey <tom@tromey.com>
4129
4130 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4131 <syscalls_counts>: Now a std::vector.
4132 (get_catch_syscall_inferior_data): Use "new".
4133 (catch_syscall_inferior_data_cleanup): Use "delete".
4134 (insert_catch_syscall, remove_catch_syscall)
4135 (clear_syscall_counts): Update.
4136
e12c9b7a
TT
41372017-07-22 Tom Tromey <tom@tromey.com>
4138
4139 * break-catch-syscall.c (syscall_catchpoint)
4140 <syscalls_to_be_caught>: Now a std::vector<int>
4141 (~syscall_catchpoint): Remove.
4142 (insert_catch_syscall, remove_catch_syscall)
4143 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4144 (print_mention_catch_syscall, print_recreate_catch_syscall):
4145 Update.
4146 (create_syscall_event_catchpoint): Change type of "filter"
4147 parameter.
4148 (catch_syscall_split_args): Return a std::vector.
4149 (catch_syscall_command_1, catching_syscall_number_1): Update.
4150
4fa8aeac
TT
41512017-07-22 Tom Tromey <tom@tromey.com>
4152
4153 * break-catch-throw.c (struct exception_catchpoint)
4154 <exception_rx>: Now a std::string.
4155 (~exception_catchpoint): Remove.
4156 (print_one_detail_exception_catchpoint): Update.
4157 (handle_gnu_v3_exceptions): Change type of except_rx.
4158 (extract_exception_regexp): Return a std::string.
4159 (catch_exception_command_1): Update.
4160
f746a154
TT
41612017-07-22 Tom Tromey <tom@tromey.com>
4162
4163 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4164 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4165 std::vector.
4166 <catch_all>: Now a bool.
4167 (~signal_catchpoint): Remove.
4168 (signal_catchpoint_insert_location)
4169 (signal_catchpoint_remove_location)
4170 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4171 (signal_catchpoint_print_mention)
4172 (signal_catchpoint_print_recreate)
4173 (signal_catchpoint_explains_signal): Update.
4174 (create_signal_catchpoint): Change type of "filter" and
4175 "catch_all".
4176 (catch_signal_split_args): Return a std::vector. Change type of
4177 "catch_all".
4178 (catch_signal_command): Update.
4179
47e77640
PA
41802017-07-20 Pedro Alves <palves@redhat.com>
4181
4182 * ada-lang.c (ada_language_defn): Make extern.
4183 (_initialize_ada_language): Remove add_language call.
4184 * c-lang.c (c_language_defn, cplus_language_defn)
4185 (asm_language_defn, minimal_language_defn): Make extern.
4186 (_initialize_c_language): Delete.
4187 * completer.c (compare_cstrings): Delete, moved to utils.h.
4188 * d-lang.c (d_language_defn): Make extern.
4189 (_initialize_d_language): Remove add_language calls.
4190 * defs.h (enum language): Add comment.
4191 * f-lang.c (f_language_defn): Make extern.
4192 (_initialize_f_language): Remove add_language call.
4193 * go-lang.c (go_language_defn): Make extern.
4194 (_initialize_go_language): Remove add_language call.
4195 * language.c: Include <algorithm>.
4196 (languages): Redefine as const array.
4197 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4198 (set_language_command): Handle "local". Use for-range loop.
4199 (set_language): Remove loop.
4200 (language_enum): Rewrite.
4201 (language_def, language_str): Remove loops.
4202 (add_language): Delete.
4203 (add_set_language_command): New, based on add_languages.
4204 (skip_language_trampoline): Adjust.
4205 (local_language_defn): Delete.
4206 (language_gdbarch_post_init): Adjust.
4207 (_initialize_language): Remove add_language calls. Call
4208 add_set_language_command.
4209 * language.h (add_language): Delete.
4210 (auto_language_defn)
4211 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4212 (asm_language_defn, c_language_defn, cplus_language_defn)
4213 (d_language_defn, f_language_defn, go_language_defn)
4214 (m2_language_defn, objc_language_defn, opencl_language_defn)
4215 (pascal_language_defn, rust_language_defn): Declare.
4216 * m2-lang.c (m2_language_defn): Make extern.
4217 (_initialize_m2_language): Remove add_language call.
4218 * objc-lang.c (objc_language_defn): Make extern.
4219 (_initialize_objc_language): Remove add_language call.
4220 * opencl-lang.c (opencl_language_defn): Make extern.
4221 (_initialize_opencl_language): Remove add_language call.
4222 * p-lang.c (pascal_language_defn): Make extern.
4223 (_initialize_pascal_language): Delete.
4224 * rust-lang.c (rust_language_defn): Make extern.
4225 (_initialize_rust_language): Delete.
4226 * utils.h (compare_cstrings): New static inline function.
4227
edb0c9cb
PA
42282017-07-20 Pedro Alves <palves@redhat.com>
4229
4230 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4231 (get_var_value): Constify parameters.
4232 (get_int_var_value): Change prototype.
4233 (to_fixed_range_type): Adjust.
4234 * ada-lang.h (get_int_var_value): Change prototype.
4235
a778f165
PA
42362017-07-20 Pedro Alves <palves@redhat.com>
4237
4238 * dwarf2read.c (dw2_lookup_symbol): Use
4239 SYMBOL_MATCHES_SEARCH_NAME.
4240 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4241
42edd901
PA
42422017-07-20 Pedro Alves <palves@redhat.com>
4243
4244 * block.c (block_iter_name_step, block_iter_name_first)
4245 (block_iter_name_next): Delete.
4246 (block_lookup_symbol_primary): Adjust to use
4247 dict_iter_match_first/dict_iter_match_next.
4248 * block.h (block_iter_name_first, block_iter_name_next): Delete
4249 declarations.
4250 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4251 dict_iter_match_first/dict_iter_match_next.
4252
cf325299
PA
42532017-07-20 Pedro Alves <palves@redhat.com>
4254
4255 * cp-support.c (cp_find_first_component_aux): Add missing case for
4256 end of string.
4257
c5ed0576
DB
42582017-07-18 David Blaikie <dblaikie@gmail.com>
4259
4260 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4261 of dwo_cu's dwo_file.
4262
27841e76
YQ
42632017-07-18 Yao Qi <yao.qi@linaro.org>
4264
4265 * remote.c (store_registers_using_G): Remove one line comment.
4266
cfb7e58b
YQ
42672017-07-18 Yao Qi <yao.qi@linaro.org>
4268
4269 * regcache.c (regcache_cpy): Simplify it.
4270 (regcache::cpy_no_passthrough): Remove it.
4271 * regcache.h (cpy_no_passthrough): Remove it.
4272 (regcache_dup, regcache_cpy): Update comments.
4273
386535dd
PA
42742017-07-18 Pedro Alves <palves@redhat.com>
4275
4276 * remote-sim.c (sim_command_completer): Adjust to work with a
4277 completion_tracker instead of a VEC.
4278
c45ec17c
PA
42792017-07-17 Pedro Alves <palves@redhat.com>
4280
4281 * completer.c (complete_source_filenames): New function.
4282 (complete_address_and_linespec_locations): New function.
4283 (location_completer): Use complete_address_and_linespec_locations.
4284 (completion_tracker::build_completion_result): Honor the tracker's
4285 request to suppress append.
4286 * completer.h (completion_tracker::suppress_append_ws)
4287 (completion_tracker::set_suppress_append_ws): New methods.
4288 (completion_tracker::m_suppress_append_ws): New field.
4289 (complete_source_filenames): New declaration.
4290 * linespec.c (linespec_complete_what): New.
4291 (struct ls_parser) <complete_what, completion_word,
4292 completion_quote_char, completion_quote_end, completion_tracker>:
4293 New fields.
4294 (string_find_incomplete_keyword_at_end): New.
4295 (linespec_lexer_lex_string): Record quote char. If in completion
4296 mode, don't throw.
4297 (linespec_lexer_consume_token): Advance the completion word point.
4298 (linespec_lexer_peek_token): Save/restore completion info.
4299 (save_stream_and_consume_token): New.
4300 (set_completion_after_number): New.
4301 (linespec_parse_basic): Set what to complete next depending on
4302 token. Handle function and label completions specially.
4303 (parse_linespec): Disable objc shortcut in completion mode. Set
4304 what to complete next depending on token type. Skip keyword if in
4305 completion mode.
4306 (complete_linespec_component, linespec_complete): New.
4307 * linespec.h (linespec_complete): Declare.
4308
be966d42
PA
43092017-07-17 Pedro Alves <palves@redhat.com>
4310
4311 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4312 Handle 'operator<' / 'operator<<'.
4313
a2459270
PA
43142017-07-17 Pedro Alves <palves@redhat.com>
4315
4316 * completer.c (collect_explicit_location_matches): Handle
4317 MATCH_LABEL.
4318 (convert_explicit_location_to_linespec): New, factored out from
4319 ...
4320 (convert_explicit_location_to_sals): ... this.
4321 (complete_label): New.
4322 (linespec_complete_label, find_label_symbols_in_block): New.
4323 (find_label_symbols): Add completion_mode parameter and adjust to
4324 call find_label_symbols_in_block.
4325 * linespec.h (linespec_complete_label): Declare.
4326
c6756f62
PA
43272017-07-17 Pedro Alves <palves@redhat.com>
4328
4329 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4330 complete_symbol_mode parameter.
4331 * cli/cli-cmds.c (complete_command): Get the completion result out
4332 of the handle_brkchars tracker if used a custom word point.
4333 * completer.c: Include "linespec.h".
4334 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4335 (advance_to_expression_complete_word_point): New.
4336 (completion_tracker::completes_to_completion_word): New.
4337 (complete_files_symbols): Pass down
4338 complete_symbol_mode::EXPRESSION.
4339 (explicit_options, probe_options): New.
4340 (collect_explicit_location_matches): Complete on the
4341 explictit_loc->foo instead of word. Use
4342 linespec_complete_function. Handle MATCH_LINE. Handle offering
4343 keyword and options completions.
4344 (backup_text_ptr): Delete.
4345 (skip_keyword): New.
4346 (complete_explicit_location): Remove 'word' parameter. Add
4347 language, quoted_arg_start and quoted_arg_end parameters.
4348 Rewrite, parsing left to right.
4349 (location_completer): Rewrite.
4350 (location_completer_handle_brkchars): New function.
4351 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4352 (enum complete_line_internal_reason): Adjust comments.
4353 (completion_tracker::discard_completions): New.
4354 (completer_handle_brkchars_func_for_completer): Handle
4355 location_completer.
4356 (gdb_custom_word_point_brkchars)
4357 (gdb_org_rl_basic_quote_characters): New.
4358 (gdb_completion_word_break_characters_throw)
4359 (completion_find_completion_word): Handle trackers that use a
4360 custom word point.
4361 (completion_tracker::advance_custom_word_point_by): New.
4362 (completion_tracker::build_completion_result): Don't rely on
4363 readline appending the quote char.
4364 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4365 use a custom word point.
4366 (gdb_rl_attempted_completion_function): Restore
4367 rl_basic_quote_characters.
4368 * completer.h (class completion_tracker): Extend intro comment.
4369 (completion_tracker::set_quote_char)
4370 (completion_tracker::quote_char)
4371 (completion_tracker::set_use_custom_word_point)
4372 (completion_tracker::use_custom_word_point)
4373 (completion_tracker::custom_word_point)
4374 (completion_tracker::set_custom_word_point)
4375 (completion_tracker::advance_custom_word_point_by)
4376 (completion_tracker::completes_to_completion_word)
4377 (completion_tracker::discard_completions): New methods.
4378 (completion_tracker::m_quote_char)
4379 (completion_tracker::m_use_custom_word_point)
4380 (completion_tracker::m_custom_word_point): New fields.
4381 (advance_to_expression_complete_word_point): Declare.
4382 * f-lang.c (f_collect_symbol_completion_matches): Add
4383 complete_symbol_mode parameter.
4384 * language.h (struct language_defn)
4385 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4386 parameter.
4387 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4388 (linespec_complete_function): New function.
4389 (linespec_lexer_lex_keyword): Adjust.
4390 * linespec.h (linespec_keywords, linespec_complete_function): New
4391 declarations.
4392 * location.c (find_end_quote): New function.
4393 (explicit_location_lex_one): Add explicit_completion_info
4394 parameter. Save quoting info. Don't throw if being called for
4395 completion. Don't handle Ada operators here.
4396 (is_cp_operator, skip_op_false_positives, first_of)
4397 (explicit_location_lex_one_function): New function.
4398 (string_to_explicit_location): Replace 'dont_throw' parameter with
4399 an explicit_completion_info pointer parameter. Handle it. Don't
4400 use explicit_location_lex_one to lex function names. Use
4401 explicit_location_lex_one_function instead.
4402 * location.h (struct explicit_completion_info): New.
4403 (string_to_explicit_location): Replace 'dont_throw' parameter with
4404 an explicit_completion_info pointer parameter.
4405 * symtab.c (default_collect_symbol_completion_matches_break_on):
4406 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4407 (default_collect_symbol_completion_matches)
4408 (collect_symbol_completion_matches): Add complete_symbol_mode
4409 parameter.
4410 (collect_symbol_completion_matches_type): Pass down
4411 complete_symbol_mode::EXPRESSION.
4412 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4413 parameter. Handle LINESPEC mode.
4414 * symtab.h (complete_symbol_mode): New.
4415 (default_collect_symbol_completion_matches_break_on)
4416 (default_collect_symbol_completion_matches)
4417 (collect_symbol_completion_matches)
4418 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4419 parameter.
4420
1d550c82
PA
44212017-07-17 Pedro Alves <palves@redhat.com>
4422
4423 * utils.c (enum class strncmp_iw_mode): New.
4424 (strcmp_iw): Rename to ...
4425 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4426 parameters. Handle them.
4427 (strncmp_iw): New.
4428 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4429 * utils.h (strncmp_iw): Declare.
4430 (strcmp_iw): Move describing comments here.
4431
8090b426
PA
44322017-07-17 Pedro Alves <palves@redhat.com>
4433
4434 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4435 CP_OPERATOR_STR.
4436 * c-typeprint.c (is_type_conversion_operator): Use
4437 CP_OPERATOR_STR.
4438 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4439 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4440 CP_OPERATOR_LEN.
4441 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4442 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4443 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4444 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4445 CP_OPERATOR_STR.
4446 * location.c: Include "cp-support.h".
4447 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4448 CP_OPERATOR_STR.
4449 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4450 CP_OPERATOR_LEN.
4451
6a2c1b87
PA
44522017-07-17 Pedro Alves <palves@redhat.com>
4453
4454 * cli/cli-cmds.c (complete_command): Use a completion tracker
4455 along with completion_find_completion_word for handle_brkchars
4456 phase.
4457 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4458 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4459 (struct gdb_rl_completion_word_info): New.
4460 (gdb_rl_find_completion_word): New.
4461 (completion_find_completion_word): New.
4462 * completer.h (completion_find_completion_word): Declare.
4463
eb3ff9a5
PA
44642017-07-17 Pedro Alves <palves@redhat.com>
4465
4466 * ada-lang.c (symbol_completion_match): Adjust comments.
4467 (symbol_completion_add): Replace vector parameter with
4468 completion_tracker parameter. Use it.
4469 (ada_make_symbol_completion_list): Rename to...
4470 (ada_collect_symbol_completion_matches): ... this. Add
4471 completion_tracker parameter and use it.
4472 (ada_language_defn): Adjust.
4473 * break-catch-syscall.c (catch_syscall_completer): Adjust
4474 prototype and work with completion_tracker instead of VEC.
4475 * breakpoint.c (condition_completer): Adjust prototype and work
4476 with completion_tracker instead of VEC.
4477 * c-lang.c (c_language_defn, cplus_language_defn)
4478 (asm_language_defn, minimal_language_defn): Adjust to renames.
4479 * cli/cli-cmds.c (complete_command): Rework using
4480 completion_tracker. Catch exceptions when completing.
4481 * cli/cli-decode.c (integer_unlimited_completer)
4482 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4483 with completion_tracker instead of VEC.
4484 * command.h (struct completion_tracker): Forward declare.
4485 (completer_ftype, completer_handle_brkchars_ftype): Change
4486 types.
4487 (complete_on_cmdlist, complete_on_enum): Adjust.
4488 * completer.c: Include <algorithm>.
4489 (struct gdb_completer_state): New.
4490 (current_completion): New global.
4491 (readline_line_completion_function): Delete.
4492 (noop_completer, filename_completer)
4493 (filename_completer_handle_brkchars, complete_files_symbols)
4494 (linespec_location_completer): Adjust to work with a
4495 completion_tracker instead of a VEC.
4496 (string_or_empty): New.
4497 (collect_explicit_location_matches): Adjust to work with a
4498 completion_tracker instead of a VEC.
4499 (explicit_location_completer): Rename to ...
4500 (complete_explicit_location): ... this and adjust to work with a
4501 completion_tracker instead of a VEC.
4502 (location_completer): Adjust to work with a completion_tracker
4503 instead of a VEC.
4504 (add_struct_fields): Adjust to work with a completion_list instead
4505 of VEC.
4506 (expression_completer): Rename to ...
4507 (complete_expression): ... this and adjust to work with a
4508 completion_tracker instead of a VEC. Use complete_files_symbols.
4509 (expression_completer): Reimplement on top of complete_expression.
4510 (symbol_completer): Adjust to work with a completion_tracker
4511 instead of a VEC.
4512 (enum complete_line_internal_reason): Add describing comments.
4513 (complete_line_internal_normal_command): Adjust to work with a
4514 completion_tracker instead of a VEC.
4515 (complete_line_internal): Rename to ...
4516 (complete_line_internal_1): ... this and adjust to work with a
4517 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4518 handle_brkchars phase.
4519 (new_completion_tracker): Delete.
4520 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4521 complete_line_internal_1.
4522 (free_completion_tracker): Delete.
4523 (INITIAL_COMPLETION_HTAB_SIZE): New.
4524 (completion_tracker::completion_tracker)
4525 (completion_tracker::~completion_tracker): New.
4526 (maybe_add_completion): Delete.
4527 (completion_tracker::maybe_add_completion)
4528 (completion_tracker::add_completion)
4529 (completion_tracker::add_completions): New.
4530 (throw_max_completions_reached_error): Delete.
4531 (complete_line): Adjust to work with a completion_tracker instead
4532 of a VEC. Don't create a completion_tracker_t or check for max
4533 completions here.
4534 (command_completer, command_completer_handle_brkchars)
4535 (signal_completer, reg_or_group_completer_1)
4536 (reg_or_group_completer, default_completer_handle_brkchars):
4537 Adjust to work with a completion_tracker.
4538 (gdb_completion_word_break_characters_throw): New.
4539 (gdb_completion_word_break_characters): Reimplement.
4540 (line_completion_function): Delete.
4541 (completion_tracker::recompute_lowest_common_denominator)
4542 (expand_preserving_ws)
4543 (completion_tracker::build_completion_result)
4544 (completion_result::completion_result)
4545 (completion_result::completion_result)
4546 (completion_result::~completion_result)
4547 (completion_result::completion_result)
4548 (completion_result::release_match_list, compare_cstrings)
4549 (completion_result::sort_match_list)
4550 (completion_result::reset_match_list)
4551 (gdb_rl_attempted_completion_function_throw)
4552 (gdb_rl_attempted_completion_function): New.
4553 * completer.h (completion_list, struct completion_result)
4554 (class completion_tracker): New.
4555 (complete_line): Add completion_tracker parameter.
4556 (readline_line_completion_function): Delete.
4557 (gdb_rl_attempted_completion_function): New.
4558 (noop_completer, filename_completer, expression_completer)
4559 (location_completer, symbol_completer, command_completer)
4560 (signal_completer, reg_or_group_completer): Update prototypes.
4561 (completion_tracker_t, new_completion_tracker)
4562 (make_cleanup_free_completion_tracker): Delete.
4563 (enum maybe_add_completion_enum): Delete.
4564 (maybe_add_completion): Delete.
4565 (throw_max_completions_reached_error): Delete.
4566 * corefile.c (complete_set_gnutarget): Adjust to work with a
4567 completion_tracker instead of a VEC.
4568 * cp-abi.c (cp_abi_completer): Adjust to work with a
4569 completion_tracker instead of a VEC.
4570 * d-lang.c (d_language_defn): Adjust.
4571 * disasm.c (disassembler_options_completer): Adjust to work with a
4572 completion_tracker instead of a VEC.
4573 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4574 (f_collect_symbol_completion_matches): ... this. Adjust to work
4575 with a completion_tracker instead of a VEC.
4576 (f_language_defn): Adjust.
4577 * go-lang.c (go_language_defn): Adjust.
4578 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4579 Adjust to work with a completion_tracker instead of a VEC.
4580 * infrun.c (handle_completer): Likewise.
4581 * interps.c (interpreter_completer): Likewise.
4582 * interps.h (interpreter_completer): Likewise.
4583 * language.c (unknown_language_defn, auto_language_defn)
4584 (local_language_defn): Adjust.
4585 * language.h (language_defn::la_make_symbol_completion_list):
4586 Rename to ...
4587 (language_defn::la_collect_symbol_completion_matches): ... this
4588 and adjust to work with a completion_tracker instead of a VEC.
4589 * m2-lang.c (m2_language_defn): Adjust.
4590 * objc-lang.c (objc_language_defn): Adjust.
4591 * opencl-lang.c (opencl_language_defn): Adjust.
4592 * p-lang.c (pascal_language_defn): Adjust.
4593 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4594 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4595 with a completion_tracker.
4596 * rust-lang.c (rust_language_defn): Adjust.
4597 * symtab.c (free_completion_list, do_free_completion_list)
4598 (return_val, completion_tracker): Delete.
4599 (completion_list_add_name, completion_list_add_symbol)
4600 (completion_list_add_msymbol, completion_list_objc_symbol)
4601 (completion_list_add_fields, add_symtab_completions): Add
4602 completion_tracker parameter and use it.
4603 (default_make_symbol_completion_list_break_on_1): Rename to...
4604 (default_collect_symbol_completion_matches_break_on): ... this.
4605 Add completion_tracker parameter and use it instead of allocating
4606 a completion tracker here.
4607 (default_make_symbol_completion_list_break_on): Delete old
4608 implementation.
4609 (default_make_symbol_completion_list): Delete.
4610 (default_collect_symbol_completion_matches): New.
4611 (make_symbol_completion_list): Delete.
4612 (collect_symbol_completion_matches): New.
4613 (make_symbol_completion_type): Rename to ...
4614 (collect_symbol_completion_matches_type): ... this. Add
4615 completion_tracker parameter and use it instead of VEC.
4616 (make_file_symbol_completion_list_1): Rename to...
4617 (collect_file_symbol_completion_matches): ... this. Add
4618 completion_tracker parameter and use it instead of VEC.
4619 (make_file_symbol_completion_list): Delete.
4620 (add_filename_to_list): Use completion_list instead of a VEC.
4621 (add_partial_filename_data::list): Now a completion_list.
4622 (make_source_files_completion_list): Work with a completion_list
4623 instead of a VEC.
4624 * symtab.h: Include "completer.h".
4625 (default_make_symbol_completion_list_break_on)
4626 (default_make_symbol_completion_list, make_symbol_completion_list)
4627 (make_symbol_completion_type, make_file_symbol_completion_list)
4628 (make_source_files_completion_list): Delete.
4629 (default_collect_symbol_completion_matches_break_on)
4630 (default_collect_symbol_completion_matches)
4631 (collect_symbol_completion_matches)
4632 (collect_symbol_completion_matches_type)
4633 (collect_file_symbol_completion_matches)
4634 (make_source_files_completion_list): New.
4635 * top.c (init_main): Don't install a rl_completion_entry_function
4636 hook. Install a rl_attempted_completion_function hook instead.
4637 * tui/tui-layout.c (layout_completer): Adjust to work with a
4638 completion_tracker.
4639 * tui/tui-regs.c (tui_reggroup_completer):
4640 * tui/tui-win.c (window_name_completer, focus_completer)
4641 (winheight_completer): Adjust to work with a completion_tracker.
4642 * value.c: Include "completer.h".
4643 (complete_internalvar): Adjust to work with a completion_tracker.
4644 * value.h (complete_internalvar): Likewise.
4645
6e1dbf8c
PA
46462017-07-17 Pedro Alves <palves@redhat.com>
4647
4648 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4649 renames.
4650 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4651 comments to completer_ftype's declaration.
4652 <completer_handle_brkchars>: Change type to
4653 completer_handle_brkchars_ftype.
4654 * command.h (completer_ftype): Add describing comment and give
4655 names to parameters.
4656 (completer_ftype_void): Rename to ...
4657 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4658 (set_cmd_completer_handle_brkchars): Adjust.
4659 * completer.c (filename_completer_handle_brkchars): New function.
4660 (complete_line_internal_normal_command): New function, factored
4661 out from ...
4662 (complete_line_internal): ... here.
4663 (command_completer_handle_brkchars)
4664 (default_completer_handle_brkchars)
4665 (completer_handle_brkchars_func_for_completer): New functions.
4666 * completer.h (set_gdb_completion_word_break_characters): Delete
4667 declaration.
4668 (completer_handle_brkchars_func_for_completer): New declaration.
4669 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4670 completer_handle_brkchars_func_for_completer.
4671
78b13106
PA
46722017-07-17 Pedro Alves <palves@redhat.com>
4673
4674 * completer.c (symbol_completer): New function, based on
4675 make_symbol_completion_list_fn.
4676 * completer.h (symbol_completer): New declaration.
4677 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4678 * python/py-cmd.c (completers): Adjust.
4679 * symtab.c (make_symbol_completion_list_fn): Delete.
4680 * symtab.h (make_symbol_completion_list_fn): Delete.
4681 * cli/cli-decode.c (add_cmd): Adjust.
4682
bbf2f4df
PA
46832017-07-17 Pedro Alves <palves@redhat.com>
4684
4685 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4686 * dwarf2read.c: Include "filename-seen-cache.h".
4687 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4688 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4689 * filename-seen-cache.c: New file.
4690 * filename-seen-cache.h: New file.
4691 * symtab.c: Include "filename-seen-cache.h".
4692 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4693 (create_filename_seen_cache, clear_filename_seen_cache)
4694 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4695 to filename-seen-cache.h/filename-seen-cache.c.
4696 (output_source_filename, sources_info)
4697 (maybe_add_partial_symtab_filename)
4698 (make_source_files_completion_list): Adjust to use
4699 filename_seen_cache.
4700
330cdd98
PA
47012017-07-17 Pedro Alves <palves@redhat.com>
4702
4703 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4704 fields.
4705 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4706 dwarf2_debug_sections*)): New.
4707 (dwarf2_per_objfile::dwarf2_per_objfile(const
4708 dwarf2_per_objfile&)): Declare as deleted.
4709 (dwarf2_per_objfile::operator=): Declare as deleted.
4710 (dwarf2_per_objfile::dwarf2_per_objfile)
4711 (dwarf2_per_objfile::~dwarf2_per_objfile)
4712 (dwarf2_per_objfile::free_cached_comp_units): New.
4713 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4714 ctor. Call dwarf2_per_objfile's ctor manually.
4715 (dwarf2_locate_sections): Deleted/refactored as ...
4716 (dwarf2_per_objfile::locate_sections): ... this new method.
4717 (free_cached_comp_units): Defer to
4718 dwarf2_per_objfile::free_cached_comp_units.
4719 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4720
8880f2a9
TT
47212017-07-14 Tom Tromey <tom@tromey.com>
4722
4723 PR rust/21764:
4724 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4725 parameter.
4726 <UNOP_SIZEOF>: Split into separate case.
4727 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4728
65547233
TT
47292017-07-14 Tom Tromey <tom@tromey.com>
4730
4731 PR rust/21763:
4732 * symtab.c (symbol_matches_domain): Add language_rust to special
4733 case.
4734 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4735 treat LOC_TYPEDEF symbols as variables.
4736
8f14146e
PA
47372017-07-14 Pedro Alves <palves@redhat.com>
4738
4739 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4740 symtabs matching all symtabs with SRCFILE as file name instead of
4741 only considering the first hit, with lookup_symtab.
4742
2347965c
SM
47432017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4744
4745 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4746 operator_name parameters.
4747 (gen_expr): Update function call.
4748
40f4af28
SM
47492017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4750
4751 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4752 parameter.
4753 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4754 Likewise.
4755 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4756 parameter, use agent_expr::gdbarch instead, update function
4757 calls.
4758 (locexpr_tracepoint_var_ref): Likewise.
4759 (loclist_tracepoint_var_ref): Likewise.
4760 * ax-gdb.c (gen_trace_static_fields): Likewise.
4761 (gen_traced_pop): Likewise.
4762 (gen_frame_args_address): Likewise.
4763 (gen_frame_locals_address): Likewise.
4764 (gen_var_ref): Likewise.
4765 (gen_struct_ref_recursive): Likewise.
4766 (gen_static_field): Likewise.
4767 (gen_maybe_namespace_elt): Likewise.
4768 (gen_expr): Likewise.
4769 (gen_trace_for_var): Likewise.
4770 (gen_trace_for_expr): Likewise.
4771 (gen_trace_for_return_address): Likewise.
4772
053f8057
SM
47732017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4774
4775 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4776 parameter.
4777 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4778
6661ad48
SM
47792017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4780
4781 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4782 from ax, update calls.
4783 (gen_usual_arithmetic): Likewise.
4784 (gen_integral_promotions): Likewise.
4785 (gen_bitfield_ref): Likewise.
4786 (gen_primitive_field): Likewise.
4787 (gen_struct_ref_recursive): Likewise.
4788 (gen_struct_ref): Likewise.
4789 (gen_maybe_namespace_elt): Likewise.
4790 (gen_struct_elt_for_reference): Likewise.
4791 (gen_namespace_elt): Likewise.
4792 (gen_aggregate_elt_ref): Likewise.
4793 (gen_expr): Get gdbarch from ax, update calls.
4794 (gen_expr_binop_rest): Likewise.
4795
c55a47e7
PA
47962017-07-13 Pedro Alves <palves@redhat.com>
4797
4798 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4799 as default tdesc.
4800 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4801 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4802 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4803 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4804 tdep.
4805 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4806 Get final tdesc from the tdep.
4807 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4808 default tdesc.
4809 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4810 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4811 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4812 Use it as default tdesc.
4813 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4814 down to amd_init_abi. No longer handle fallback tdesc here.
4815 * amd64-tdep.h (tdesc_x32): Declare.
4816 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4817 parameter.
4818 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4819 as default tdesc.
4820
55efceab
AA
48212017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4822
4823 * s390-linux-tdep.c (s390_process_record): Add support for
4824 instructions new in arch12.
4825
0aa37b65
JB
48262017-07-11 John Baldwin <jhb@FreeBSD.org>
4827
4828 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4829 PT_GETFSBASE and PT_GETGSBASE.
4830 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4831 PT_SETGSBASE.
4832
48aeef91
JB
48332017-07-11 John Baldwin <jhb@FreeBSD.org>
4834
4835 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4836 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4837 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4838 those rules.
4839 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4840 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4841 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4842 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4843 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4844 * features/i386/amd64.xml: Add 64bit-segments.xml.
4845 * features/i386/amd64-avx-avx512.c: Regenerated.
4846 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4847 * features/i386/amd64-avx-mpx.c: Regenerated.
4848 * features/i386/amd64-avx.c: Regenerated.
4849 * features/i386/amd64-mpx.c: Regenerated.
4850 * features/i386/amd64.c: Regenerated.
4851 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4852 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4853 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4854 * regformats/i386/amd64-avx.dat: Regenerated.
4855 * regformats/i386/amd64-mpx.dat: Regenerated.
4856 * regformats/i386/amd64.dat: Regenerated.
4857
77c501bc
YQ
48582017-07-10 Yao Qi <yao.qi@linaro.org>
4859
4860 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4861 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4862
6dc8d757
AK
48632017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4864
4865 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4866 unsetenv.
4867 * gnulib/aclocal.m4: Regenerate.
4868 * gnulib/config.in: Regenerate.
4869 * gnulib/configure: Regenerate.
4870 * gnulib/import/Makefile.am: Regenerate.
4871 * gnulib/import/Makefile.in: Regenerate.
4872 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4873 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4874 * gnulib/import/m4/environ.m4: New file.
4875 * gnulib/import/m4/setenv.m4: New file.
4876 * gnulib/import/setenv.c: New file.
4877 * gnulib/import/unsetenv.c: New file.
4878
266934d1
SM
48792017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4880
4881 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4882 address when op is DW_OP_addr.
4883
03278692
TT
48842017-07-09 Tom Tromey <tom@tromey.com>
4885
4886 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4887 check and apply to outer type.
4888
4b654465
JB
48892017-07-07 John Baldwin <jhb@FreeBSD.org>
4890
4891 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4892 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4893 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4894 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4895
2af9fc44
JB
48962017-07-07 John Baldwin <jhb@FreeBSD.org>
4897
4898 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4899
382b69bb
JB
49002017-07-07 John Baldwin <jhb@FreeBSD.org>
4901
4902 * corelow.c (get_core_siginfo): Remove.
4903 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4904 instead of get_core_siginfo.
4905 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4906 * gdbarch.h: Re-generate.
4907 * gdbarch.c: Re-generate.
4908 * linux-tdep.c (linux_core_xfer_siginfo): New.
4909 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4910
6e5eab33
JB
49112017-07-07 John Baldwin <jhb@FreeBSD.org>
4912
4913 * corelow.c (thread_section_name): Move to ...
4914 * gdbcore.h (thread_section_name): ... here.
4915
929edea9
JB
49162017-07-07 John Baldwin <jhb@FreeBSD.org>
4917
4918 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4919 (struct siginfo32): New.
4920 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4921 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4922 via ptrace(PT_LWPINFO).
4923
762c974a
JB
49242017-07-07 John Baldwin <jhb@FreeBSD.org>
4925
4926 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4927 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4928 (fbsd_get_siginfo_type): New.
4929 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4930 (_initialize_fbsd_tdep): New.
4931
33c5cd75
DB
49322017-07-06 David Blaikie <dblaikie@gmail.com>
4933
4934 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4935 a singular dwo_unit*) to support multiple CUs in the same way that
4936 multiple TUs are supported.
4937 (create_cus_hash_table): Replace create_dwo_cu with a function for
4938 parsing multiple CUs from a DWO file.
4939 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4940 create_dwo_cu.
4941 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4942 htab_find, rather than comparing the signature to a singleton CU in
4943 the dwo_file.
4944
8455d262
PA
49452017-07-06 Pedro Alves <palves@redhat.com>
4946
4947 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4948
4da3eb35
PA
49492017-07-04 Pedro Alves <palves@redhat.com>
4950
4951 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4952 * gdbtypes.h (TYPE_STATIC): Delete.
4953 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4954 is_synchronized, is_native>: Delete.
4955 <dummy>: Bump.
4956 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4957 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4958 (TYPE_FN_FIELD_ABSTRACT): Delete.
4959
5bfd255c
SM
49602017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4961
4962 * buffer.h (buffer_finish): Fix spelling mistakes.
4963
25c54127
EZ
49642017-07-01 Eli Zaretskii <eliz@gnu.org>
4965
4966 * .dir-locals.el: Automatically switch to C-style comments in
4967 versions of Emacs that support the feature.
4968
dc4bde35
SDJ
49692017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4970 Pedro Alves <palves@redhat.com>
4971
4972 PR cli/21688
4973 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4974 (process_next_line): New variable 'inline_cmd'.
4975 Adjust 'if' clauses for "python", "compile" and "guile" to use
4976 'command_name_equals' and check for '!inline_cmd'.
4977
51ed89aa
SDJ
49782017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4979
4980 PR cli/21688
4981 * cli/cli-script.c (command_name_equals_not_inline): New function.
4982 (process_next_line): Adjust 'if' clauses for "python", "compile"
4983 and "guile" to use command_name_equals_not_inline.
4984
eb17d413
PA
49852017-06-29 Pedro Alves <palves@redhat.com>
4986
4987 * completer.c (expression_completer): Call
4988 linespec_location_completer instead of location_completer.
4989
195bcdd5
PA
49902017-06-29 Pedro Alves <palves@redhat.com>
4991
4992 * completer.c (expression_completer): Remove code that recomputes
4993 'text' from 'word'.
4994
adc764e7
YQ
49952017-06-29 Yao Qi <yao.qi@linaro.org>
4996
4997 * regformats/regdat.sh: Generate code with
4998 "ifndef IN_PROCESS_AGENT".
4999
6e75794e
PA
50002017-06-28 Pedro Alves <palves@redhat.com>
5001
5002 * command.h: Include "common/scoped_restore.h".
5003
bc491f2e
YQ
50042017-06-28 Yao Qi <yao.qi@linaro.org>
5005
5006 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5007 instead of obstack_grow.
5008
41664b45
DG
50092017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5010
5011 PR gdb/21337
5012 * symfile.c (reread_symbols): Call objfiles_changed just before
5013 read_symbols.
5014
6da67eb1
PA
50152017-06-27 Pedro Alves <palves@redhat.com>
5016
5017 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5018 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5019 (completion_list_add_symbol, completion_list_add_msymbol):
5020 ... these new functions.
5021 (add_symtab_completions)
5022 (default_make_symbol_completion_list_break_on_1): Adjust.
5023
23732b1e
PA
50242017-06-27 Pedro Alves <palves@redhat.com>
5025
5026 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5027 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5028 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5029 dtor.
5030 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5031 'storage_obstack' field an auto_obstack. In-class initialize all
5032 non-bitfield fields. Make minsyms_read bool.
5033 * symfile.c (read_symbols): Adjust.
5034
a4d1e79a
AH
50352017-06-27 Alan Hayward <alan.hayward@arm.com>
5036
5037 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5038 (gdbsim_store_register): Likewise.
5039
8268c778
PA
50402017-06-27 Pedro Alves <palves@redhat.com>
5041
5042 * c-exp.y (name_obstack): Now an auto_obstack.
5043 (yylex): Use auto_obstack::clear.
5044 (c_parse): Use auto_obstack::clear instead of reinitializing and
5045 freeing the obstack.
5046 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5047 * d-exp.y (name_obstack): Now an auto_obstack.
5048 (yylex): Use auto_obstack::clear.
5049 (d_parse): Use auto_obstack::clear instead of reinitializing and
5050 freeing the obstack.
5051 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5052 auto_obstack.
5053 * dwarf2read.c (create_addrmap_from_index)
5054 (dwarf2_build_psymtabs_hard)
5055 (update_enumeration_type_from_children): Likewise.
5056 * gdb_obstack.h (auto_obstack): New type.
5057 * go-exp.y (name_obstack): Now an auto_obstack.
5058 (build_packaged_name): Use auto_obstack::clear.
5059 (go_parse): Use auto_obstack::clear instead of reinitializing and
5060 freeing the obstack.
5061 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5062 auto_obstack.
5063 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5064 * rust-exp.y (work_obstack): Now an auto_obstack.
5065 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5066 reinitializing and freeing the obstack.
5067 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5068 (host_char_to_target): Use auto_obstack.
5069 * utils.h (make_cleanup_obstack_free): Delete declaration.
5070 * valprint.c (generic_emit_char, generic_printstr): Use
5071 auto_obstack.
5072
db665f42
SM
50732017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5074
5075 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5076 thread.
5077 (darwin_init_thread_list): Don't update dummy thread.
5078 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5079
873c0814
SM
50802017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5081
5082 * record-full.c (netorder16): Remove.
5083
8b5a7a6e
SM
50842017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5085
5086 * common/diagnostics.h: Define macros for GCC.
5087 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5088 * common/vec.h: Include diagnostics.h.
5089 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5090 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5091 warning.
5092
d1435379
SM
50932017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5094
5095 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5096 New macro.
5097 * ada-lex.l: Ignore deprecated register warnings.
5098
cc75e0fd
SM
50992017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5100
5101 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5102 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5103
07809eaf
SM
51042017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5105
5106 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5107 its own line.
5108
f076f034
SM
51092017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5110
5111 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5112
0dd5cbc5
AH
51132017-06-23 Alan Hayward <alan.hayward@arm.com>
5114
5115 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5116 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5117 (xtensa_register_read_masked): Likewise.
5118
d4c6ce5b
SDJ
51192017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5120
5121 * common/environ.c (gdb_environ::unset): Update comment.
5122
16892a03
AH
51232017-06-22 Alan Hayward <alan.hayward@arm.com>
5124
5125 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5126 registers.
5127
d7dcbefc
AH
51282017-06-22 Alan Hayward <alan.hayward@arm.com>
5129
5130 * record-full.c (record_full_exec_insn): Use byte_vector.
5131
b30ff123
YQ
51322017-06-22 Yao Qi <yao.qi@linaro.org>
5133
5134 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5135 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5136
4fa847d7
AH
51372017-06-22 Alan Hayward <alan.hayward@arm.com>
5138
5139 * remote.c (cached_reg): Move from here...
5140 * regcache.h (cached_reg): ...to here.
5141 * python/py-unwind.c (struct reg_info): Remove.
5142 (cached_frame_info): Use cached_reg_t.
5143 (pyuw_prev_register): Likewise.
5144 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5145 (pyuw_dealloc_cache): Free all registers.
5146
f4906a9a
PA
51472017-06-22 Pedro Alves <palves@redhat.com>
5148 Simon Marchi <simon.marchi@ericsson.com>
5149
5150 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5151 warning.
5152 * common/diagnostics.h: New file.
5153
b45a1208
PA
51542017-06-22 Pedro Alves <palves@redhat.com>
5155
5156 * common/agent.h: Add include guards.
5157
e4da2c61
SM
51582017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5159
5160 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5161 talk about addressable units instead of bytes.
5162
96160d60
SDJ
51632017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5164
5165 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5166 of '::const_iterator'.
5167
9a6c7d9c
SDJ
51682017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5169
5170 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5171 'unittests/environ-selftests.c'.
5172 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5173 * charset.c (find_charset_names): Declare object 'iconv_env'.
5174 Update code to use 'iconv_env' object. Remove call to
5175 'free_environ'.
5176 * common/environ.c: Include <utility>.
5177 (make_environ): Delete function.
5178 (free_environ): Delete function.
5179 (gdb_environ::clear): New function.
5180 (gdb_environ::operator=): New function.
5181 (gdb_environ::get): Likewise.
5182 (environ_vector): Delete function.
5183 (set_in_environ): Delete function.
5184 (gdb_environ::set): New function.
5185 (unset_in_environ): Delete function.
5186 (gdb_environ::unset): New function.
5187 (gdb_environ::envp): Likewise.
5188 * common/environ.h: Include <vector>.
5189 (struct gdb_environ): Delete; transform into...
5190 (class gdb_environ): ... this class.
5191 (free_environ): Delete prototype.
5192 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5193 environ_vector): Likewise.
5194 * infcmd.c (run_command_1): Update code to call
5195 'envp' from 'gdb_environ' class.
5196 (environment_info): Update code to call methods from 'gdb_environ'
5197 class.
5198 (unset_environment_command): Likewise.
5199 (path_info): Likewise.
5200 (path_command): Likewise.
5201 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5202 (inferior::inferior): Initialize 'environment' using the host's
5203 information.
5204 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5205 Include "environ.h".
5206 (class inferior) <environment>: Change type from 'struct
5207 gdb_environ' to 'gdb_environ'.
5208 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5209 methods from 'gdb_environ' class.
5210 * solib.c (solib_find_1): Likewise
5211 * unittests/environ-selftests.c: New file.
5212
75c554cf
YQ
52132017-06-20 Yao Qi <yao.qi@linaro.org>
5214
5215 * features/i386/i386-linux.xml: Exchange the order of including
5216 32bit-linux.xml and 32bit-sse.xml.
5217 * features/i386/i386-linux.c: Regenerated.
5218
72ddacb7
YQ
52192017-06-20 Yao Qi <yao.qi@linaro.org>
5220
5221 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5222 Delete copy ctor and assignment operator.
5223 (tdesc_type): Likewise.
5224 (tdesc_feature): Likewise.
5225 (tdesc_free_reg): Remove.
5226 (tdesc_create_reg): Use new.
5227 (tdesc_free_type): Remove.
5228 (tdesc_create_vector): Use new.
5229 (tdesc_create_union): Likewise.
5230 (tdesc_create_flags): Likewise.
5231 (tdesc_create_enum): Likewise.
5232 (tdesc_free_feature): Delete.
5233 (free_target_description): Use delete.
5234
325c9fd4
JB
52352017-06-19 John Baldwin <jhb@FreeBSD.org>
5236
5237 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5238 registers.
5239
16b7a719
PA
52402017-06-19 Pedro Alves <palves@redhat.com>
5241
5242 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5243 after gdb::unlinker.
5244
1c8e01c9
SDJ
52452017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5246
5247 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5248 gdb_environ to access an environment variable.
5249
ffce45d2
TP
52502017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5251
5252 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5253 gdb_byte*.
5254
1d4fbac9
SM
52552017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5256
5257 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5258
8465943a
SM
52592017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5260
5261 * configure: Re-generate.
5262 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5263
3e019bdc
SM
52642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5265
5266 * configure: Re-generate.
5267 * warning.m4: Pass -Werror to compiler when checking for
5268 supported warning flags.
5269
cf0dd6f0
SM
52702017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5271
5272 * Makefile.in (COMPILE.pre): Add "-x c++".
5273
6f98355c
YQ
52742017-06-16 Alan Hayward <alan.hayward@arm.com>
5275 Pedro Alves <palves@redhat.com>
5276 Yao Qi <yao.qi@linaro.org>
5277
5278 * defs.h (RequireLongest): New.
5279 (extract_integer): Declare function template.
5280 (extract_signed_integer): Remove the declaration, but define it
5281 static inline.
5282 (extract_unsigned_integer): Likewise.
5283 (store_integer): Declare function template.
5284 (store_signed_integer): Remove the declaration, but define it
5285 static inline.
5286 (store_unsigned_integer): Likewise.
5287 * findvar.c (extract_integer): New function template.
5288 (extract_signed_integer): Remove.
5289 (extract_unsigned_integer): Remove.
5290 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5291 instantiations.
5292 (store_integer): New function template.
5293 (store_signed_integer): Remove.
5294 (store_unsigned_integer): Remove.
5295 (store_integer): Explicit instantiations.
5296 * regcache.c (regcache_raw_read_signed): Update.
5297 (regcache::raw_read): New function.
5298 (regcache::raw_read_signed): Remove.
5299 (regcache::raw_read_unsigned): Remove.
5300 (regcache_raw_read_unsigned): Update.
5301 (regcache_raw_write_unsigned): Update.
5302 (regcache::raw_write_signed): Remove.
5303 (regcache::raw_write): New function.
5304 (regcache_cooked_read_signed): Update.
5305 (regcache::raw_write_unsigned): Remove.
5306 (regcache::cooked_read_signed): Remove.
5307 (regcache_cooked_read_unsigned): Update.
5308 (regcache::cooked_read_unsigned): Remove.
5309 (regcache_cooked_write_signed): Update.
5310 (regcache_cooked_write_unsigned): Update.
5311 * regcache.h (regcache) <raw_read_signed>: Remove.
5312 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5313 <raw_read, raw_write>: New.
5314 <cooked_read_signed, cooked_write_signed>: Remove.
5315 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5316 <cooked_read, cooked_write>: New.
5317 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5318 (sh64_pseudo_register_write): Update.
5319
a87dc45a
AK
53202017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5321
5322 * arc-tdep.c (arc_disassembler_options): New variable.
5323 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5324 of default_print_insn.
5325 (arc_delayed_print_insn): Set info->section when needed,
5326 use default_print_insn to retrieve a disassembler.
5327
45159d6a
SDJ
53282017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5329
5330 PR gdb/21574
5331 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5332 to mention $SHELL and startup-with-shell.
5333
b46c4cf0
MF
53342017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5335
5336 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5337
6394c606
YQ
53382017-06-14 Yao Qi <yao.qi@linaro.org>
5339
5340 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5341 default_print_insn instead of print_insn_aarch64.
5342 * arm-tdep.c (gdb_print_insn_arm): Call
5343 default_print_insn instead of print_insn_big_arm
5344 and print_insn_little_arm.
5345 * i386-tdep.c (i386_print_insn): Call default_print_insn
5346 instead of print_insn_i386.
5347 * ia64-tdep.c (ia64_print_insn): Call
5348 default_print_insn instead of print_insn_ia64.
5349 * mips-tdep.c (gdb_print_insn_mips): Call
5350 default_print_insn instead of print_insn_big_mips
5351 and print_insn_little_mips.
5352 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5353 instead of print_insn_spu.
5354
d5722aa2
PA
53552017-06-14 Pedro Alves <palves@redhat.com>
5356
5357 * ada-lang.c: Include "common/byte-vector.h".
5358 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5359 * charset.c (wchar_iterator::iterate): Resize the vector instead
5360 of reserving it.
5361 * common/byte-vector.h: Include "common/def-vector.h".
5362 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5363 * cli/cli-dump.c: Include "common/byte-vector.h".
5364 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5365 * common/byte-vector.h: New file.
5366 * common/def-vector.h: New file.
5367 * common/default-init-alloc.h: New file.
5368 * dwarf2loc.c: Include "common/byte-vector.h".
5369 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5370 instead of reserving it.
5371 * dwarf2read.c: Include "common/byte-vector.h".
5372 (data_buf::m_vec): Now a gdb::byte_vector.
5373 * gdb_regex.c: Include "common/def-vector.h".
5374 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5375 * mi/mi-main.c: Include "common/byte-vector.h".
5376 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5377 * printcmd.c: Include "common/byte-vector.h".
5378 (print_scalar_formatted): Use gdb::byte_vector.
5379 * valprint.c: Include "common/byte-vector.h".
5380 (maybe_negate_by_bytes, print_decimal_chars): Use
5381 gdb::byte_vector.
5382
01ec7a27
SM
53832017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5384
5385 * darwin-nat.c: Include "nat/fork-inferior.h".
5386
848d9074
SM
53872017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5388
5389 * configure.nat: Factor out Darwin bits that are not
5390 architecture-specific. Add fork-inferior.o.
5391
3b912944
SM
53922017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5393
5394 * configure.nat: Factor out AIX bits that are not
5395 architecture-specific. Add fork-inferior.o.
5396
55acdf22
AA
53972017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5398
5399 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5400 (read_pieced_value, write_pieced_value): ...here. Reduce to
5401 wrappers that just call rw_pieced_value.
5402
f65e2044
AA
54032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5404
5405 * dwarf2loc.c (write_pieced_value): When writing the data for a
5406 memory piece, use write_memory_with_notification instead of
5407 write_memory.
5408
23f945bf
AA
54092017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5410
5411 * valops.c (read_value_memory): Change embedded_offset to
5412 represent a bit offset instead of a byte offset.
5413 * value.h (read_value_memory): Adjust comment.
5414
f236533e
AA
54152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5416
5417 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5418 dest_offset_bits and source_offset_bits.
5419 (write_pieced_value): Likewise.
5420
65d84b76
AA
54212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5422
5423 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5424 given by DW_OP_bit_piece.
5425 (write_pieced_value): Likewise.
5426
242d31ab
AA
54272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5428
5429 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5430 some other preparations to the places where sufficient information
5431 is available.
5432 (write_pieced_value): Likewise.
5433
03c8af18
AA
54342017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5435
5436 * dwarf2loc.c (bits_to_bytes): New function.
5437 (read_pieced_value): Fix offset calculations for register pieces
5438 on big-endian targets.
5439 (write_pieced_value): Likewise.
5440
840989c1
AA
54412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5442
5443 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5444 (write_pieced_value): Likewise.
5445
359b19bb
AA
54462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5447
5448 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5449 transfer the source value's least significant bits, instead of its
5450 lowest-addressed ones. Rename type_len to max_offset.
5451 (read_pieced_value): Mirror above changes to write_pieced_value as
5452 applicable.
5453
07c9ca3b
AA
54542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5455
5456 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5457 truncate full bytes from dest_offset_bits before using it as an
5458 offset into the buffer.
5459
f1cc9874
AA
54602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5461
5462 * dwarf2loc.c (write_pieced_value): Include transfer size in
5463 byte-wise check.
5464
cdaac320
AA
54652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5466
5467 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5468 calculation of this_size.
5469
af547a96
AA
54702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5471
5472 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5473 when targeting a bit-field.
5474 (write_pieced_value): Likewise.
5475
ddd7882a
AA
54762017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5477
5478 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5479 (allocate_piece_closure): Drop addr_size parameter.
5480 (dwarf2_evaluate_loc_desc_full): Adjust call to
5481 allocate_piece_closure.
5482
e9352324
AA
54832017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5484
5485 PR gdb/21226
5486 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5487 the LSB end, independent of endianness.
5488
d5d1163e
AA
54892017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5490
5491 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5492 size capping.
5493
032bb6ea
YQ
54942017-06-13 Yao Qi <yao.qi@linaro.org>
5495
5496 * mips-linux-nat.c: Move include features/mips*-linux.c to
5497 mips-linux-tdep.c.
5498 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5499 to mips-linux-tdep.c.
5500 * mips-linux-tdep.c: Include features/mips*-linux.c
5501 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5502 functions.
5503 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5504 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5505 (tdesc_mips64_dsp_linux): Declare.
5506
f12f6bad
TT
55072017-06-12 Tom Tromey <tom@tromey.com>
5508
5509 * valprint.h (val_print_type_code_int): Remove.
5510 * valprint.c (generic_val_print_int): Always call
5511 val_print_scalar_formatted.
5512 (val_print_type_code_int): Remove.
5513 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5514 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5515 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5516 * ada-valprint.c (ada_val_print_num): Use
5517 val_print_scalar_formatted.
5518
d9109c80
TT
55192017-06-12 Tom Tromey <tom@tromey.com>
5520
5521 * printcmd.c (print_scalar_formatted): Unify the two switches.
5522 Don't convert scalars to LONGEST.
5523
4ac0cb1c
TT
55242017-06-12 Tom Tromey <tom@tromey.com>
5525
5526 PR exp/16225:
5527 * valprint.h (print_decimal_chars): Update.
5528 * valprint.c (maybe_negate_by_bytes): New function.
5529 (print_decimal_chars): Add "is_signed" argument.
5530 * printcmd.c (print_scalar_formatted): Update.
5531
30a25466
TT
55322017-06-12 Tom Tromey <tom@tromey.com>
5533
5534 PR exp/16225:
5535 * valprint.h (print_binary_chars, print_hex_chars): Update.
5536 * valprint.c (val_print_type_code_int): Update.
5537 (print_binary_chars): Add "zero_pad" argument.
5538 (emit_octal_digit): New function.
5539 (print_octal_chars): Don't zero-pad.
5540 (print_decimal_chars): Likewise.
5541 (print_hex_chars): Add "zero_pad" argument.
5542 * sh64-tdep.c (sh64_do_fp_register): Update.
5543 * regcache.c (regcache::dump): Update.
5544 * printcmd.c (print_scalar_formatted): Update.
5545 * infcmd.c (default_print_one_register_info): Update.
5546
b3464d03
PA
55472017-06-12 Pedro Alves <palves@redhat.com>
5548 Alan Hayward <alan.hayward@arm.com>
5549
5550 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5551 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5552 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5553 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5554 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5555
4b76cda9
PA
55562017-06-12 Pedro Alves <palves@redhat.com>
5557
5558 * dwarf2read.c (mapped_symtab::data): Now a vector of
5559 symtab_index_entry instead of vector of
5560 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5561 whether an element's name is NULL instead of checking whether the
5562 element itself is NULL.
5563 (find_slot): Change return type. Adjust.
5564 (hash_expand, , add_index_entry, uniquify_cu_indices)
5565 (write_hash_table): Adjust.
5566
e8f8bcb3
PA
55672017-06-12 Pedro Alves <palves@redhat.com>
5568
5569 * dwarf2read.c (recursively_count_psymbols): New function.
5570 (write_psymtabs_to_index): Call it to compute number of psyms and
5571 pass estimate size of psyms_seen to unordered_set's ctor.
5572
70a1152b
PA
55732017-06-12 Pedro Alves <palves@redhat.com>
5574
5575 * dwarf2read.c (write_hash_table): Check if key already exists
5576 before emplacing.
5577
c2f134ac
PA
55782017-06-12 Pedro Alves <palves@redhat.com>
5579
5580 * dwarf2read.c (data_buf::append_space): Rename to...
5581 (data_buf::grow): ... this, and make private. Adjust all callers.
5582 (data_buf::append_uint): New method.
5583 (add_address_entry, write_one_signatured_type)
5584 (write_psymtabs_to_index): Use it.
5585
a81e6d4d
PA
55862017-06-12 Pedro Alves <palves@redhat.com>
5587
5588 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5589 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5590 (data_buf::file_write): Call ::fwrite directly.
5591
6fd931f2
PA
55922017-06-12 Pedro Alves <palves@redhat.com>
5593
5594 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5595 std::vector::erase.
5596
bc8f2430
JK
55972017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5598
5599 Code cleanup: C++ify .gdb_index producer.
5600 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5601 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5602 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5603 (create_strtab, add_string): Remove.
5604 (file_write, data_buf): New.
5605 (struct symtab_index_entry): Use std::vector for cu_indices.
5606 (struct mapped_symtab): Use std::vector for data.
5607 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5608 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5609 Remove.
5610 (find_slot): Change return type. Update it to the new data structures.
5611 (hash_expand, add_index_entry): Update it to the new data structures.
5612 (offset_type_compare): Remove.
5613 (uniquify_cu_indices): Update it to the new data structures.
5614 (c_str_view, c_str_view_hasher, vector_hasher): New.
5615 (add_indices_to_cpool): Remove.
5616 (write_hash_table): Update it to the new data structures.
5617 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5618 (eq_psymtab_cu_index): Remove.
5619 (psym_index_map): New typedef.
5620 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5621 reference and std::unordered_map for cu_index_htab.
5622 (add_address_entry, add_address_entry_worker, write_address_map)
5623 (write_psymbols): Update it to the new data structures.
5624 (write_obstack): Remove.
5625 (struct signatured_type_index_data): Change types_list to a data_buf
5626 reference and psyms_seen to a std::unordered_set reference.
5627 (write_one_signatured_type, recursively_write_psymbols)
5628 (write_psymtabs_to_index): Update it to the new data structures.
5629
c4dcb155
SM
56302017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5631
5632 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5633 separate-debug-file commands.
5634 * symfile.h (separate_debug_file_debug): New global.
5635 * symfile.c (separate_debug_file_debug): New global.
5636 (separate_debug_file_exists, find_separate_debug_file): Add
5637 debug output.
5638 (_initialize_symfile): Add "set debug separate-debug-file"
5639 command.
5640 * build-id.c (build_id_to_debug_bfd,
5641 find_separate_debug_file_by_buildid): Add debug output.
5642
6d45d4b4
SM
56432017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5644
5645 * gdbarch.sh (displaced_step_free_closure): Remove.
5646 * gdbarch.h, gdbarch.c: Re-generate.
5647 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5648 displaced_step_free_closure.
5649 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5650 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5651 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5652 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5653 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5654 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5655 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5656 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5657 * infrun.c (displaced_step_clear): Call xfree instead of
5658 gdbarch_displaced_step_free_closure.
5659
2f91880f
SDJ
56602017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5661
5662 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5663 NULL".
5664
b8b6e72f
AH
56652017-06-08 Alan Hayward <alan.hayward@arm.com>
5666
5667 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5668 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5669 (mn10300_push_dummy_call): Likewise.
5670
5369082e
AH
56712017-06-08 Alan Hayward <alan.hayward@arm.com>
5672
5673 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5674
ff4ca5ac
AH
56752017-06-08 Alan Hayward <alan.hayward@arm.com>
5676
5677 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5678
aefd8b33
SDJ
56792017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5680
5681 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5682 able to start inferiors using a shell.
5683 (New remote packets): Announce new packet "QStartupWithShell".
5684 * remote.c: Add PACKET_QStartupWithShell.
5685 (extended_remote_create_inferior): Handle new
5686 PACKET_QStartupWithShell.
5687 (remote_protocol_features) <QStartupWithShell>: New entry for
5688 PACKET_QStartupWithShell.
5689 (_initialize_remote): Call "add_packet_config_cmd" for
5690 QStartupShell.
5691
2090129c
SDJ
56922017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5693 Pedro Alves <palves@redhat.com>
5694
5695 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5696 and "nat/fork-inferior.h".
5697 * common/common-inferior.h: New file, with contents from
5698 "gdb/inferior.h".
5699 * commom/common-utils.c: Include "common-utils.h".
5700 (stringify_argv): New function.
5701 * common/common-utils.h (stringify_argv): New prototype.
5702 * configure.nat: Add "fork-inferior.o" as a dependency for
5703 "*linux*", "fbsd*" and "nbsd*" hosts.
5704 * corefile.c (get_exec_file): Update comment.
5705 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5706 instead of "startup_inferior".
5707 (darwin_create_inferior): Call "add_thread_silent" after
5708 "fork_inferior".
5709 * fork-child.c: Cleanup unnecessary includes.
5710 (SHELL_FILE): Move to "common/common-fork-child.c".
5711 (environ): Likewise.
5712 (exec_wrapper): Initialize.
5713 (get_exec_wrapper): New function.
5714 (breakup_args): Move to "common/common-fork-child.c"; rename to
5715 "breakup_args_for_exec".
5716 (escape_bang_in_quoted_argument): Move to
5717 "common/common-fork-child.c".
5718 (saved_ui): New variable.
5719 (prefork_hook): New function.
5720 (postfork_hook): Likewise.
5721 (postfork_child_hook): Likewise.
5722 (gdb_startup_inferior): Likewise.
5723 (fork_inferior): Move to "common/common-fork-child.c". Update
5724 function to support gdbserver.
5725 (startup_inferior): Likewise.
5726 * gdbcore.h (get_exec_file): Remove declaration.
5727 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5728 instead of "startup_inferior". Call "add_thread_silent" after
5729 "fork_inferior".
5730 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5731 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5732 instead of "startup_inferior". Call "add_thread_silent" after
5733 "fork_inferior".
5734 * inferior.h: Include "common-inferior.h".
5735 (trace_start_error): Move to "common/common-utils.h".
5736 (trace_start_error_with_name): Likewise.
5737 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5738 (startup_inferior): Likewise.
5739 (gdb_startup_inferior): New prototype.
5740 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5741 * nat/fork-inferior.h: New file.
5742 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5743 instead of "startup_inferior". Call "add_thread_silent" after
5744 "fork_inferior".
5745 * target.h (target_terminal_init): Move prototype to
5746 "target/target.h".
5747 (target_terminal_inferior): Likewise.
5748 (target_terminal_ours): Likewise.
5749 * target/target.h (target_terminal_init): New prototype, moved
5750 from "target.h".
5751 (target_terminal_inferior): Likewise.
5752 (target_terminal_ours): Likewise.
5753 * utils.c (gdb_flush_out_err): New function.
5754
043a4934
SDJ
57552017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5756
5757 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5758 * common/common-gdbthread.h: New file, with parts from
5759 "gdb/gdbthread.h".
5760 * gdbthread.h: Include "common-gdbthread.h".
5761 (switch_to_thread): Moved to "common/common-gdbthread.h".
5762
15652511
SDJ
57632017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5764
5765 * Makefile.in (SFILES): Add "common/job-control.c".
5766 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5767 (COMMON_OBS): Add "job-control.o".
5768 * common/job-control.c: New file, with contents from
5769 "gdb/inflow.c".
5770 * common/job-control.h: New file, with contents from "terminal.h".
5771 * fork-child.c: Include "job-control.h".
5772 * inflow.c: Include "job-control.h".
5773 (gdb_setpgid): Move to "common/common-inflow.c".
5774 (_initialize_inflow): Move setting of "job_control" to
5775 "handle_job_control".
5776 * terminal.h (job_control): Moved to "common/common-terminal.h".
5777 (gdb_setpgid): Likewise.
5778 * top.c: Include "job_control.h".
5779 * utils.c: Likewise.
5780 (job_control): Moved to "job-control.c".
5781
2d7cc5c7
PA
57822017-06-07 Pedro Alves <palves@redhat.com>
5783
5784 * Makefile.in (SFILES): Add gdb_regex.c.
5785 (COMMON_OBS): Add gdb_regex.o.
5786 * ada-lang.c (ada_add_standard_exceptions)
5787 (ada_add_exceptions_from_frame, name_matches_regex)
5788 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5789 parameter type to compiled_regex. Adjust.
5790 (ada_exceptions_list): Use compiled_regex.
5791 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5792 std::unique_ptr<compiled_regex>.
5793 (exception_catchpoint::~exception_catchpoint): Remove regfree
5794 call.
5795 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5796 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5797 * breakpoint.c (solib_catchpoint::compiled): Now a
5798 std::unique_ptr<compiled_regex>.
5799 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5800 (check_status_catch_solib): Adjust to use compiled_regex.
5801 (add_solib_catchpoint): Adjust to use compiled_regex.
5802 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5803 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5804 compiled_regex reference. Adjust to use it.
5805 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5806 declaration. Include "gdb_regex.h".
5807 (apropos_cmd): Change regex parameter to compiled_regex reference.
5808 * gdb_regex.c: New file.
5809 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5810 declarations.
5811 (class compiled_regex): New.
5812 * linux-tdep.c: Include "common/gdb_optional.h".
5813 (struct mapping_regexes): New, factored out from
5814 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5815 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5816 gdb::optional and remove cleanups. Adjust to compiled_regex.
5817 * probe.c: Include "common/gdb_optional.h".
5818 (collect_probes): Use compiled_regex and gdb::optional and remove
5819 cleanups.
5820 * skip.c: Include "common/gdb_optional.h".
5821 (skiplist_entry::compiled_function_regexp): Now a
5822 gdb::optional<compiled_regex>.
5823 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5824 (free_skiplist_entry): Remove regfree call.
5825 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5826 compiled_regex and gdb::optional.
5827 * symtab.c: Include "common/gdb_optional.h".
5828 (search_symbols): Use compiled_regex and gdb::optional.
5829 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5830 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5831 to gdb_regex.c.
5832
50d6adef
AH
58332017-06-07 Alan Hayward <alan.hayward@arm.com>
5834
5835 * regcache.c (regcache::save): Avoid buffer use.
5836 (regcache::dump): Likewise.
5837
4a8a33c8
AH
58382017-06-07 Alan Hayward <alan.hayward@arm.com>
5839
5840 * sh-tdep.c (sh_pseudo_register_read): Remove
5841 MAX_REGISTER_SIZE.
5842 (sh_pseudo_register_write): Likewise.
5843 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5844 (sh64_pseudo_register_write): Likewise
5845
d1be909e
AH
58462017-06-07 Alan Hayward <alan.hayward@arm.com>
5847
5848 * aarch64-tdep.c (aarch64_store_return_value): Use
5849 V_REGISTER_SIZE.
5850 (aarch64_pseudo_read_value): Likewise.
5851 (aarch64_pseudo_write): Likewise.
5852
f4a65042
YQ
58532017-06-06 Yao Qi <yao.qi@linaro.org>
5854
5855 * regformats/regdef.h (set_register_cache): Remove the
5856 declaration.
5857
9f7fb0aa
AH
58582017-06-06 Alan Hayward <alan.hayward@arm.com>
5859
5860 * frame.c (frame_unwind_register_signed): Use
5861 frame_unwind_register_value.
5862
e1e01040
PA
58632017-06-06 Pedro Alves <palves@redhat.com>
5864
5865 PR breakpoints/21553
5866 * breakpoint.c (create_breakpoints_sal_default)
5867 (init_breakpoint_sal, create_breakpoint_sal): Use
5868 gdb::unique_xmalloc_ptr for string parameters.
5869 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5870 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5871 (base_breakpoint_create_breakpoints_sal)
5872 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5873 (strace_marker_create_breakpoints_sal)
5874 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5875 string parameters.
5876 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5877 gdb::unique_xmalloc_ptr for string parameters.
5878 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5879 parameters.
5880
fbe654c8
AH
58812017-06-06 Alan Hayward <alan.hayward@arm.com>
5882
5883 * alpha-tdep.c (alpha_register_to_value): Use
5884 get_frame_register_value.
5885 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5886
ae0d01d6
AH
58872017-06-06 Alan Hayward <alan.hayward@arm.com>
5888
5889 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5890 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5891 (ia64_value_to_register): Likewise.
5892 (ia64_extract_return_value): Likewise.
5893 (ia64_store_return_value): Likewise.
5894 (ia64_push_dummy_call): Likewise.
5895
49cf576c
JB
58962017-06-04 Joel Brobecker <brobecker@adacore.com>
5897
5898 GDB 8.0 released.
5899
26b6a6ab
SM
59002017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5901
5902 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5903
22827c51
SM
59042017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5905
5906 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5907 parameter.
5908 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5909
0e05cf3a
SM
59102017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5911
5912 * event-loop.c (poll_timers): Unallocate timer using delete
5913 instead of xfree.
5914
c1fc2657
SM
59152017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5916
5917 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5918 (struct breakpoint) <~breakpoint>: New.
5919 (struct watchpoint): Inherit from breakpoint.
5920 <~watchpoint>: New.
5921 <base>: Remove.
5922 (struct tracepoint): Inherit from breakpoint.
5923 <base>: Remove.
5924 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5925 (struct longjmp_breakpoint): Inherit from breakpoint.
5926 <~longjmp_breakpoint>: New.
5927 <base>: Remove.
5928 (new_breakpoint_from_type): Remove casts.
5929 (watchpoint_in_thread_scope): Remove reference to base field.
5930 (watchpoint_del_at_next_stop): Likewise.
5931 (update_watchpoint): Likewise.
5932 (watchpoint_check): Likewise.
5933 (bpstat_check_watchpoint): Likewise.
5934 (set_longjmp_breakpoint): Likewise.
5935 (struct fork_catchpoint): Inherit from breakpoint.
5936 <base>: Remove.
5937 (struct solib_catchpoint): Inherit from breakpoint.
5938 <~solib_catchpoint>: New.
5939 <base>: Remove.
5940 (dtor_catch_solib): Change to ...
5941 (solib_catchpoint::~solib_catchpoint): ... this.
5942 (breakpoint_hit_catch_solib): Remove reference to base field.
5943 (add_solib_catchpoint): Likewise.
5944 (create_fork_vfork_event_catchpoint): Likewise.
5945 (struct exec_catchpoint): Inherit from breakpoint.
5946 <~exec_catchpoint>: New.
5947 <base>: Remove.
5948 (dtor_catch_exec): Change to ...
5949 (exec_catchpoint::~exec_catchpoint): ... this.
5950 (dtor_watchpoint): Change to ...
5951 (watchpoint::~watchpoint): ... this.
5952 (watch_command_1): Remove reference to base field.
5953 (catch_exec_command_1): Likewise.
5954 (base_breakpoint_dtor): Change to ...
5955 (breakpoint::~breakpoint): ... this.
5956 (base_breakpoint_ops): Remove dtor field value.
5957 (longjmp_bkpt_dtor): Change to ...
5958 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5959 (strace_marker_create_breakpoints_sal): Remove reference to base
5960 field.
5961 (delete_breakpoint): Don't manually call breakpoint destructor.
5962 (create_tracepoint_from_upload): Remove reference to base field.
5963 (trace_pass_set_count): Likewise.
5964 (initialize_breakpoint_ops): Don't initialize
5965 momentary_breakpoint_ops, don't set dtors.
5966 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5967 <~ada_catchpoint>: New.
5968 <base>: Remove.
5969 (create_excep_cond_exprs): Remove reference to base field.
5970 (dtor_exception): Change to ...
5971 (ada_catchpoint::~ada_catchpoint): ... this.
5972 (dtor_catch_exception): Remove.
5973 (dtor_catch_exception_unhandled): Remove.
5974 (dtor_catch_assert): Remove.
5975 (create_ada_exception_catchpoint): Remove reference to base
5976 field.
5977 (initialize_ada_catchpoint_ops): Don't set dtors.
5978 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5979 breakpoint.
5980 <~signal_catchpoint>: New.
5981 <base>: Remove.
5982 (signal_catchpoint_dtor): Change to ...
5983 (signal_catchpoint::~signal_catchpoint): ... this.
5984 (create_signal_catchpoint): Remove reference to base field.
5985 (initialize_signal_catchpoint_ops): Don't set dtor.
5986 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5987 from breakpoint.
5988 <~syscall_catchpoint>: New.
5989 <base>: Remove.
5990 (dtor_catch_syscall): Change to ...
5991 (syscall_catchpoint::~syscall_catchpoint): ... this.
5992 (create_syscall_event_catchpoint): Remove reference to base
5993 field.
5994 (initialize_syscall_catchpoint_ops): Don't set dtor.
5995 * break-catch-throw.c (struct exception_catchpoint): Inherit
5996 from breakpoint.
5997 <~exception_catchpoint>: New.
5998 <base>: Remove.
5999 (dtor_exception_catchpoint): Change to ...
6000 (exception_catchpoint::~exception_catchpoint): ... this.
6001 (handle_gnu_v3_exceptions): Remove reference to base field.
6002 (initialize_throw_catchpoint_ops): Don't set dtor.
6003 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6004 field.
6005 * remote.c (remote_get_tracepoint_status): Likewise.
6006 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6007 * tracefile.c (tracefile_fetch_registers): Likewise.
6008 * tracepoint.c (actions_command): Likewise.
6009 (validate_actionline): Likewise.
6010 (tfind_1): Likewise.
6011 (get_traceframe_location): Likewise.
6012 (find_matching_tracepoint_location): Likewise.
6013 (parse_tracepoint_status): Likewise.
6014 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6015
3b0871f4
SM
60162017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6017
6018 * breakpoint.c (struct longjmp_breakpoint): New struct.
6019 (is_tracepoint_type): Change return type to bool.
6020 (is_longjmp_type): New function.
6021 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6022 (set_raw_breakpoint_without_location): Use
6023 new_breakpoint_from_type.
6024 (set_raw_breakpoint): Likewise.
6025
a5e364af
SM
60262017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * breakpoint.c (new_breakpoint_from_type): New function.
6029 (create_breakpoint_sal): Use new_breakpoint_from_type and
6030 unique_ptr.
6031 (create_breakpoint): Likewise.
6032
ae3b3f34
SM
60332017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6034
6035 * memattr.c (mem_info_command): Rename to ...
6036 (info_mem_command): ... this.
6037 (mem_enable_command): Rename to ...
6038 (enable_mem_command): ... this.
6039 (mem_disable_command): Rename to ...
6040 (disable_mem_command): ... this.
6041 (mem_delete_command): Rename to ...
6042 (delete_mem_command): ... this.
6043 (_initialize_mem): Adjust function names.
6044
13ace077
MM
60452017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6046
6047 * btrace.c (handle_pt_insn_events): New.
6048 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6049 STATUS. Split into this and ...
6050 (handle_pt_insn_event_flags): ... this.
6051
c56ccc05
MM
60522017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6053
6054 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6055 and struct pt_insn.resynced.
6056 * configure: Regenerated.
6057 * config.in: Regenerated.
6058
08c3f6d2
TW
60592017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6060
6061 * btrace.c (ftrace_find_call_by_number): New function.
6062 (ftrace_new_function): Store objects, not pointers.
6063 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6064 ftrace_new_gap, ftrace_update_function,
6065 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6066 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6067 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6068 btrace_ends_with_single_insn, btrace_call_get): Account for
6069 btrace_thread_info::functions now storing objects.
6070 * btrace.h (struct btrace_thread_info): Add constructor.
6071 (struct btrace_thread_info) <functions>: Make std::vector.
6072 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6073 Initialize with default values.
6074 * record-btrace.c (record_btrace_frame_sniffer): Account for
6075 btrace_thread_info::functions now storing objects.
6076
8ffd39f2
TW
60772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6078
6079 * btrace.c: Remove typedef bfun_s.
6080 (ftrace_new_gap): Directly add gaps to the list of gaps.
6081 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6082 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6083 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6084 instead of gdb VEC.
6085
4aeb0dfc
TW
60862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6087
6088 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6089 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6090 with btrace_thread_info::next_segment and
6091 btrace_thread_info::prev_segment.
6092 * btrace.h: Remove struct btrace_func_link.
6093 (struct btrace_function): Replace pair of function segment pointers
6094 with pair of indices.
6095 * python/py-record-btrace.c (btpy_call_prev_sibling,
6096 btpy_call_next_sibling): Replace references to
6097 btrace_thread_info::segment with btrace_thread_info::next_segment and
6098 btrace_thread_info::prev_segment.
6099 * record-btrace.c (record_btrace_frame_this_id): Use
6100 btrace_find_call_by_number.
6101
eb8f2b9c
TW
61022017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6103
6104 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6105 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6106 btrace_insn_next, btrace_insn_prev): Remove references to
6107 btrace_thread_info::flow.
6108 * btrace.h (struct btrace_function): Remove FLOW.
6109
42bfe59e
TW
61102017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6111
6112 * btrace.c (ftrace_find_call_by_number): New function.
6113 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6114 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6115 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6116 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6117 index.
6118 * btrace.h (struct btrace_function): Turn UP into an index.
6119 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6120 as an index.
6121 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6122 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6123 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6124
b54b03bd
TW
61252017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6126
6127 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6128 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6129 ftrace_update_function, ftrace_compute_global_level_offset,
6130 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6131 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6132 btrace_insn_end, btrace_is_empty): Remove references to
6133 btrace_thread_info::begin and btrace_thread_info::end.
6134 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6135 (struct btrace_thread_info) <functions>: Adjust comment.
6136 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6137 btrace_thread_info::begin.
6138
8286623c
TW
61392017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6140
6141 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6142 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6143 ftrace_update_function): Remove arguments that implicitly were always
6144 BTINFO->END.
6145 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6146 Don't pass BTINFO->END.
6147
a0f1b963
TW
61482017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6149
6150 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6151 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6152 btrace_find_insn_by_number): Replace function segment pointer with
6153 index.
6154 (btrace_insn_cmp): Simplify.
6155 * btrace.h: (struct btrace_insn_iterator) Rename index to
6156 insn_index. Replace function segment pointer with index into function
6157 segment vector.
6158 * record-btrace.c (record_btrace_call_history): Replace function
6159 segment pointer use with index.
6160 (record_btrace_frame_sniffer): Retrieve function call segment through
6161 vector.
6162 (record_btrace_set_replay): Remove defunc't safety check.
6163
f158f208
TW
61642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6165
6166 * btrace.c (btrace_ends_with_single_insn): New function.
6167 (btrace_call_get, btrace_call_number, btrace_call_begin,
6168 btrace_call_end, btrace_call_next, btrace_call_prev,
6169 btrace_find_call_by_number): Use index into call segment vector
6170 instead of pointer.
6171 (btrace_call_cmp): Simplify.
6172 * btrace.h (struct btrace_call_iterator): Replace function call segment
6173 pointer with index into vector.
6174 * record-btrace.c (record_btrace_call_history): Use index instead of
6175 pointer.
6176
521103fd
TW
61772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6178
6179 * btrace.c (btrace_insn_begin, btrace_insn_end,
6180 btrace_find_insn_by_number): Add btinfo to iterator.
6181 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6182
17b89b34
TW
61832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6184
6185 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6186 and save pointers directly.
6187 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6188 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6189 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6190 changed signature of functions.
6191 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6192 (btrace_fetch): Remove code that adds btrace_function pointers to
6193 vector of btrace_functions.
6194 (btrace_clear): Simplify freeing vector of btrace_functions.
6195
2b51eddc
TW
61962017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6197
6198 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6199 Replace VEC_* with std::vector functions.
6200 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6201 (struct btrace_thread_info)<functions>: Change type to std::vector.
6202
db6be0d5
SM
62032017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6204
6205 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6206 "Removed targets and native configurations" up. Merge duplicate
6207 "New commands" sub-sections. Add "New options" sub-sections.
6208
b057297a
AH
62092017-05-26 Alan Hayward <alan.hayward@arm.com>
6210
6211 * defs.h (copy_integer_to_size): New declaration.
6212 * findvar.c (copy_integer_to_size): New function.
6213 (do_cint_test): New selftest function.
6214 (copy_integer_to_size_test): Likewise.
6215 (_initialize_findvar): Likewise.
6216 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6217 (mips_fbsd_collect_reg): Use raw_collect_integer.
6218 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6219 (mips64_fill_gregset): Use raw_collect_integer
6220 (mips64_fill_fpregset): Use raw_supply_integer.
6221 * regcache.c (regcache::raw_supply_integer): New function.
6222 (regcache::raw_collect_integer): Likewise.
6223 * regcache.h: (regcache::raw_supply_integer): New declaration.
6224 (regcache::raw_collect_integer): Likewise.
6225
b77b02a5
YQ
62262017-05-24 Yao Qi <yao.qi@linaro.org>
6227
6228 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6229 (COMMON_OBS): Add gdbarch-selftests.o.
6230 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6231 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6232 * gdbarch-selftests.c: New file.
6233 * regcache.h (regcache) <~regcache>: Mark it virtual if
6234 GDB_SELF_TEST.
6235 <raw_write>: Likewise.
6236
e521e87e
YQ
62372017-05-24 Yao Qi <yao.qi@linaro.org>
6238
6239 * regcache.c (current_regcache): Change it to
6240 regcache::current_regcache.
6241 (regcache_observer_target_changed): Update.
6242 (regcache_thread_ptid_changed): Make it a regcache static
6243 method.
6244 (regcache_thread_ptid_changed): Update.
6245 (class regcache_access): New.
6246 (current_regcache_test): Update.
6247 (_initialize_regcache): Update.
6248 * regcache.h: Include forward_list.
6249 (regcache): Declare regcache_thread_ptid_changed and declare
6250 registers_changed_ptid as friend.
6251
d8e07dda
YQ
62522017-05-24 Yao Qi <yao.qi@linaro.org>
6253
6254 * i387-tdep.c (i387_register_to_value): Use register_size
6255 instead of TYPE_LENGTH.
6256 * m68k-tdep.c (m68k_register_to_value): Likewise.
6257
8c8f9122
YQ
62582017-05-24 Yao Qi <yao.qi@linaro.org>
6259
6260 * i387-tdep.c (i387_convert_register_p): Return false if type
6261 code isn't TYPE_CODE_FLT.
6262
68fce50f
YQ
62632017-05-24 Yao Qi <yao.qi@linaro.org>
6264
6265 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6266 length is 4.
6267 (alpha_register_to_value): Remove type length check.
6268 (alpha_value_to_register): Likewise.
6269
88954b49
YQ
62702017-05-24 Yao Qi <yao.qi@linaro.org>
6271
6272 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6273 TYPE_CODE_FLT.
6274
e3ec9b69
YQ
62752017-05-24 Yao Qi <yao.qi@linaro.org>
6276
6277 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6278 TYPE_CODE_FLT or not.
6279
cdd238da
YQ
62802017-05-24 Yao Qi <yao.qi@linaro.org>
6281
6282 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6283 * avr-tdep.c (avr_gdbarch_init): Likewise.
6284 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6285 * cris-tdep.c (cris_gdbarch_init): Likewise.
6286 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6287 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6288 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6290 * mep-tdep.c (mep_gdbarch_init): Likewise.
6291 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6292 * mips-tdep.c (mips_gdbarch_init): Likewise.
6293 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6294 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6295 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6296 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6297 * v850-tdep.c (v850_gdbarch_init): Likewise.
6298
7a3929c4
YQ
62992017-05-24 Yao Qi <yao.qi@linaro.org>
6300
6301 * selftest-arch.c (tests_with_arch): Call registers_changed
6302 and reinit_frame_cache.
6303 * selftest.c (run_self_tests): Likewise.
6304
f4985dba
YQ
63052017-05-24 Yao Qi <yao.qi@linaro.org>
6306
6307 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6308 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6309
ab20fa4a
YQ
63102017-05-24 Yao Qi <yao.qi@linaro.org>
6311
6312 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6313 set_gdbarch_print_insn.
6314
f532ab94
YQ
63152017-05-24 Yao Qi <yao.qi@linaro.org>
6316
6317 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6318 set_gdbarch_print_insn.
6319
39503f82
YQ
63202017-05-24 Yao Qi <yao.qi@linaro.org>
6321
6322 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6323 set_gdbarch_print_insn.
6324 * arc-tdep.c (arc_gdbarch_init): Likewise.
6325 * arch-utils.c: include dis-asm.h.
6326 (default_print_insn): New function.
6327 * arch-utils.h (default_print_insn): Declare.
6328 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6329 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6330 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6331 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6332 * frv-tdep.c (frv_gdbarch_init): Likewise.
6333 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6334 * gdbarch.sh (print_insn): Use default_print_insn.
6335 * gdbarch.c: Regenerated.
6336 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6337 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6338 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6339 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6340 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6341 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6342 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6343 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6344 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6345 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6346 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6347 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6348 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6349 * mt-tdep.c (mt_gdbarch_init): Likewise.
6350 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6351 * nios2-tdep.c (nios2_print_insn): Remove.
6352 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6353 * rx-tdep.c (rx_gdbarch_init): Likewise.
6354 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6355 * score-tdep.c (score_print_insn): Remove.
6356 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6357 * sh-tdep.c (sh_gdbarch_init): Likewise.
6358 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6359 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6360 * tic6x-tdep.c (tic6x_print_insn): Remove.
6361 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6362 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6363 * v850-tdep.c (v850_gdbarch_init): Likewise.
6364 * vax-tdep.c (vax_gdbarch_init): Likewise.
6365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6366 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6367
f7241d4f
JB
63682017-05-23 John Baldwin <jhb@FreeBSD.org>
6369
6370 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6371 (MIPS_FP0_REGNUM): Remove.
6372 (MIPS_FSR_REGNUM): Remove.
6373 (mips_fbsd_supply_fpregs): Use mips_regnum.
6374 (mips_fbsd_supply_gregs): Likewise.
6375 (mips_fbsd_collect_fpregs): Likewise.
6376 (mips_fbsd_collect_gregs): Likewise.
6377
d489d81d
JB
63782017-05-23 John Baldwin <jhb@FreeBSD.org>
6379
6380 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6381 (getpfpregs_supplies): New function.
6382 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6383 getfpregs_supplies.
6384 (mips_fbsd_store_inferior_registers): Likewise.
6385
e11b3cdc
PA
63862017-05-22 Pedro Alves <palves@redhat.com>
6387
6388 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6389 maintainer.
6390
0f068fb5
AH
63912017-05-22 Alan Hayward <alan.hayward@arm.com>
6392
6393 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6394 (store_register): Likewise.
6395 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6396 (get_decimal_float_return_value): Likewise.
6397 (do_ppc_sysv_return_value): Likewise.
6398 (ppc64_sysv_abi_push_integer): Likewise.
6399 (ppc64_sysv_abi_push_freg): Likewise.
6400 (ppc64_sysv_abi_return_value_base): Likewise.
6401 (ppc64_sysv_abi_return_value): Likewise.
6402 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6403 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6404 * rs6000-nat.c: Likewise.
6405 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6406 (rs6000_value_to_register): Likewise.
6407 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6408
e6cf65f2
TT
64092017-05-21 Tom Tromey <tom@tromey.com>
6410
6411 PR rust/21466:
6412 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6413 arrays as "[T]", not "[T; ]".
6414
43cc5389
TT
64152017-05-19 Tom Tromey <tom@tromey.com>
6416
6417 PR rust/21484:
6418 * rust-lang.c (exp_descriptor_rust): New function.
6419 (rust_language_defn): Use it.
6420 * p-lang.c (pascal_language_defn): Update.
6421 * opencl-lang.c (opencl_language_defn): Update.
6422 * objc-lang.c (objc_language_defn): Update.
6423 * m2-lang.c (m2_language_defn): Update.
6424 * language.h (struct language_defn)
6425 <la_watch_location_expression>: New member.
6426 * language.c (unknown_language_defn, auto_language_defn)
6427 (local_language_defn): Update.
6428 * go-lang.c (go_language_defn): Update.
6429 * f-lang.c (f_language_defn): Update.
6430 * d-lang.c (d_language_defn): Update.
6431 * c-lang.h (c_watch_location_expression): Declare.
6432 * c-lang.c (c_watch_location_expression): New function.
6433 (c_language_defn, cplus_language_defn, asm_language_defn)
6434 (minimal_language_defn): Use it.
6435 * breakpoint.c (watch_command_1): Call
6436 la_watch_location_expression.
6437 * ada-lang.c (ada_language_defn): Update.
6438
7a6e7fcc
RO
64392017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6440
6e7e1744
RO
6441 PR tui/21482
6442 * gdb_curses.h (NOMACROS): Define.
6443 (NCURSES_NOMACROS): Define.
6444
64452017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6446
6447 PR tui/21482
7a6e7fcc
RO
6448 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6449 arg to char *.
6450 * tui/tui-wingeneral.c (box_win): Likewise.
6451 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6452 (tui_show_source_line): Likewise.
6453 (tui_show_exec_info_content): Likewise.
6454
1933fd8e
VM
64552017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6456
6457 * sparc-tdep.c (sparc_structure_return_p)
6458 (sparc_arg_on_registers_p): New functions.
6459 (sparc32_store_arguments): Use them.
6460 * sparc64-tdep.c (sparc64_16_byte_align_p)
6461 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6462 Handle TYPE_CODE_ARRAY.
6463
21873064
YQ
64642017-05-17 Yao Qi <yao.qi@linaro.org>
6465
6466 * cli/cli-decode.c (add_alias_cmd): New function.
6467 * command.h (add_alias_cmd): Declare.
6468 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6469 instead call add_alias_cmd.
6470
2b351b19
PA
64712017-05-17 Pedro Alves <palves@redhat.com>
6472
6473 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6474 (nat_makefile_frag): ... this. All references updated.
6475 * configure.ac: Likewise.
6476 * configure.nat: Likewise. Enhance comments.
6477 * configure: Regenerate.
6478
5f2ad7a3
RO
64792017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6480
6481 * procfs.c (procfs_create_inferior): Change prototype to match
6482 definition.
6483
adf3dde5
EZ
64842017-05-13 Eli Zaretskii <eliz@gnu.org>
6485
6486 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6487 C++ compiler warning.
6488
6830f270
TT
64892017-05-12 Tom Tromey <tom@tromey.com>
6490
6491 PR rust/21483:
6492 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6493 recurse, just call value_struct_elt directly.
6494
68f2f2e3
TT
64952017-05-12 Tom Tromey <tom@tromey.com>
6496
6497 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6498 OP_RUST_ARRAY>: Fix.
6499
256afbc2
TT
65002017-05-12 Tom Tromey <tom@tromey.com>
6501
6502 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6503
94bb8dfe
YQ
65042017-05-09 Yao Qi <yao.qi@linaro.org>
6505
6506 * regcache.c: Include <forward_list>.
6507 (struct regcache_list): Remove.
6508 (current_regcache): Update.
6509 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6510 (regcache_thread_ptid_changed): Likewise.
6511 (registers_changed_ptid): Likewise.
6512 (current_regcache_size): Likewise.
6513
8248946c
YQ
65142017-05-09 Yao Qi <yao.qi@linaro.org>
6515
6516 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6517 (current_regcache_size): New function.
6518 (current_regcache_test): New function.
6519 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6520
313c5961
AH
65212017-05-08 Alan Hayward <alan.hayward@arm.com>
6522
6523 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6524 (print_gp_register_row): Use get_frame_register_value.
6525
27bfc1d1
AH
65262017-05-08 Alan Hayward <alan.hayward@arm.com>
6527
6528 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6529 (mips_supply_fpregset): Likewise.
6530 (mips64_supply_gregset): Likewise.
6531
146e6c5c
AH
65322017-05-08 Alan Hayward <alan.hayward@arm.com>
6533
6534 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6535 regcache->raw_supply_zeroed.
6536
e50f25ec
SDJ
65372017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6538
6539 * configure.nat: Rearrange 'case' statements to match
6540 host before cpu.
6541
21ea5acd
SDJ
65422017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6543
6544 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6545 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6546 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6547 "@nat_extra_makefile_frag@".
6548 (Makefile): Remove dependency on "@frags@".
6549 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6550 (data-directory/Makefile): Likewise.
6551 * config/aarch64/linux.mh: Deleted; moved contents to
6552 "gdb/configure.nat".
6553 * config/alpha/alpha-linux.mh: Likewise.
6554 * config/alpha/nbsd.mh: Likewise.
6555 * config/arm/linux.mh: Likewise.
6556 * config/arm/nbsdelf.mh: Likewise.
6557 * config/i386/cygwin.mh: Likewise.
6558 * config/i386/cygwin64.mh: Likewise.
6559 * config/i386/darwin.mh: Likewise.
6560 * config/i386/fbsd.mh: Likewise.
6561 * config/i386/fbsd64.mh: Likewise.
6562 * config/i386/go32.mh: Likewise.
6563 * config/i386/i386gnu.mh: Likewise.
6564 * config/i386/i386sol2.mh: Likewise.
6565 * config/i386/linux.mh: Likewise.
6566 * config/i386/linux64.mh: Likewise.
6567 * config/i386/mingw.mh: Likewise.
6568 * config/i386/mingw64.mh: Likewise.
6569 * config/i386/nbsd64.mh: Likewise.
6570 * config/i386/nbsdelf.mh: Likewise.
6571 * config/i386/nto.mh: Likewise.
6572 * config/i386/obsd.mh: Likewise.
6573 * config/i386/obsd64.mh: Likewise.
6574 * config/i386/sol2-64.mh: Likewise.
6575 * config/ia64/linux.mh: Likewise.
6576 * config/m32r/linux.mh: Likewise.
6577 * config/m68k/linux.mh: Likewise.
6578 * config/m68k/nbsdelf.mh: Likewise.
6579 * config/m68k/obsd.mh: Likewise.
6580 * config/m88k/obsd.mh: Likewise.
6581 * config/mips/fbsd.mh: Likewise.
6582 * config/mips/linux.mh: Likewise.
6583 * config/mips/nbsd.mh: Likewise.
6584 * config/mips/obsd64.mh: Likewise.
6585 * config/pa/linux.mh: Likewise.
6586 * config/pa/nbsd.mh: Likewise.
6587 * config/pa/obsd.mh: Likewise.
6588 * config/powerpc/aix.mh: Likewise.
6589 * config/powerpc/fbsd.mh: Likewise.
6590 * config/powerpc/linux.mh: Likewise.
6591 * config/powerpc/nbsd.mh: Likewise.
6592 * config/powerpc/obsd.mh: Likewise.
6593 * config/powerpc/ppc64-linux.mh: Likewise.
6594 * config/powerpc/spu-linux.mh: Likewise.
6595 * config/s390/linux.mh: Likewise.
6596 * config/sh/nbsd.mh: Likewise.
6597 * config/sparc/fbsd.mh: Likewise.
6598 * config/sparc/linux.mh: Likewise.
6599 * config/sparc/linux64.mh: Likewise.
6600 * config/sparc/nbsd64.mh: Likewise.
6601 * config/sparc/nbsdelf.mh: Likewise.
6602 * config/sparc/obsd64.mh: Likewise.
6603 * config/sparc/sol2.mh: Likewise.
6604 * config/tilegx/linux.mh: Likewise.
6605 * config/vax/nbsdelf.mh: Likewise.
6606 * config/vax/obsd.mh: Likewise.
6607 * config/xtensa/linux.mh: Likewise.
6608 * config/i386/i386gnu.mn: New file, with excerpts from
6609 "config/i386/i386gnu.mh".
6610 * configure: Regenerate.
6611 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6612 *.mh files under "gdb/config".
6613 * configure.nat: New file, with contents from the
6614 "gdb/config/*/*.mh" files.
6615
7ed1acaf
TW
66162017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6617
6618 * btrace.c (btrace_clear): Free insn vector.
6619
e13cb306
PA
66202017-05-05 Pedro Alves <palves@redhat.com>
6621
6622 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6623 * configure: Regenerate.
6624
5ed8105e
PA
66252017-05-04 Pedro Alves <palves@redhat.com>
6626
6627 * Makefile.in (SFILES): Add progspace-and-thread.c.
6628 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6629 (COMMON_OBS): Add progspace-and-thread.o.
6630 * breakpoint.c: Include "progspace-and-thread.h".
6631 (update_inserted_breakpoint_locations)
6632 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6633 Use scoped_restore_current_pspace_and_thread.
6634 (create_std_terminate_master_breakpoint): Use
6635 scoped_restore_current_program_space.
6636 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6637 (print_breakpoint_location): Use
6638 scoped_restore_current_program_space.
6639 (bp_loc_is_permanent): Use
6640 scoped_restore_current_pspace_and_thread.
6641 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6642 (download_tracepoint_locations): Use
6643 scoped_restore_current_pspace_and_thread.
6644 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6645 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6646 (enum step_over_calls_kind): Moved from inferior.h.
6647 (class scoped_restore_current_thread): New class.
6648 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6649 declaration.
6650 (scoped_restore_current_thread): New class.
6651 * infcmd.c: Include "common/gdb_optional.h".
6652 (continue_1, proceed_after_attach): Use
6653 scoped_restore_current_thread.
6654 (notice_new_inferior): Use scoped_restore_current_thread.
6655 * inferior.c: Include "progspace-and-thread.h".
6656 (restore_inferior, save_current_inferior): Delete.
6657 (add_inferior_command, clone_inferior_command): Use
6658 scoped_restore_current_pspace_and_thread.
6659 * inferior.h (scoped_restore_current_inferior): New class.
6660 * infrun.c: Include "progspace-and-thread.h" and
6661 "common/gdb_optional.h".
6662 (follow_fork_inferior): Use
6663 scoped_restore_current_pspace_and_thread.
6664 (scoped_restore_exited_inferior): New class.
6665 (handle_vfork_child_exec_or_exit): Use
6666 scoped_restore_exited_inferior,
6667 scoped_restore_current_pspace_and_thread,
6668 scoped_restore_current_thread and scoped_restore.
6669 (fetch_inferior_event): Use scoped_restore_current_thread.
6670 * linespec.c (decode_line_full, decode_line_1): Use
6671 scoped_restore_current_program_space.
6672 * mi/mi-main.c: Include "progspace-and-thread.h".
6673 (exec_continue): Use scoped_restore_current_thread.
6674 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6675 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6676 * proc-service.c (ps_pglobal_lookup): Use
6677 scoped_restore_current_program_space.
6678 * progspace-and-thread.c: New file.
6679 * progspace-and-thread.h: New file.
6680 * progspace.c (release_program_space, clone_program_space): Use
6681 scoped_restore_current_program_space.
6682 (restore_program_space, save_current_program_space)
6683 (save_current_space_and_thread): Delete.
6684 (switch_to_program_space_and_thread): Moved to
6685 progspace-and-thread.c.
6686 * progspace.h (save_current_program_space)
6687 (save_current_space_and_thread): Delete declarations.
6688 (scoped_restore_current_program_space): New class.
6689 * remote.c (remote_btrace_maybe_reopen): Use
6690 scoped_restore_current_thread.
6691 * symtab.c: Include "progspace-and-thread.h".
6692 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6693 * thread.c (print_thread_info_1): Use
6694 scoped_restore_current_thread.
6695 (struct current_thread_cleanup): Delete.
6696 (do_restore_current_thread_cleanup)
6697 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6698 (scoped_restore_current_thread::~scoped_restore_current_thread):
6699 ... this new dtor.
6700 (make_cleanup_restore_current_thread): Rename/convert to ...
6701 (scoped_restore_current_thread::scoped_restore_current_thread):
6702 ... this new ctor.
6703 (thread_apply_all_command): Use scoped_restore_current_thread.
6704 (thread_apply_command): Use scoped_restore_current_thread.
6705 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6706 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6707
f6223dbb
PA
67082017-05-04 Pedro Alves <palves@redhat.com>
6709
6710 * thread.c (make_cleanup_restore_current_thread): Move
6711 find_thread_ptid call before the is_stopped call. Assert that the
6712 thread is found. Replace is_stopped call by checking the thread's
6713 state directly. Remove unnecessary NULL-thread check.
6714
3c3ae77e
PA
67152017-05-04 Pedro Alves <palves@redhat.com>
6716
6717 * corelow.c (thread_section_name): New class.
6718 (get_core_register_section, get_core_siginfo): Use it.
6719
45eba0ab
AA
67202017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6721
6722 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6723 (get_core_register_section): Remove xfree of NULL pointer.
6724
f81fdd35
AH
67252017-05-03 Alan Hayward <alan.hayward@arm.com>
6726
6727 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6728 * regcache.c (regcache::raw_supply_zeroed): New function.
6729 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6730
35837774
SM
67312017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6732
6733 * gdbarch.sh: Remove commented out definition of
6734 TARGET_CHAR_BIT.
6735 * gdbarch.h: Re-generate.
6736
c94fee56
SDJ
67372017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6738
6739 * configure: Regenerate.
6740
d17f7b36
SM
67412017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6742
6743 * solib-target.c (solib_target_relocate_section_addresses):
6744 Remove num_section_bases, num_bases, segment_bases variables.
6745
b560ebd6
SM
67462017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6747
6748 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6749
f2f46dfc
SM
67502017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6751
6752 * solib-target.c: Include <vector>
6753 (struct lm_info_target) <~lm_info_target>: Remove.
6754 <segment_bases, section_bases>: Change type to
6755 std::vector<CORE_ADDR>.
6756 (library_list_start_segment, library_list_start_section,
6757 library_list_end_library,
6758 solib_target_relocate_section_addresses): Adjust.
6759
a0ff9e1a
SM
67602017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6761
6762 * gdbarch.sh (software_single_step): Change return type to
6763 std::vector<CORE_ADDR>.
6764 * gdbarch.c, gdbarch.h: Re-generate.
6765 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6766 Adjust.
6767 (arm_deal_with_atomic_sequence_raw): Adjust.
6768 (thumb_get_next_pcs_raw): Adjust.
6769 (arm_get_next_pcs_raw): Adjust.
6770 (arm_get_next_pcs): Adjust.
6771 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6772 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6773 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6774 (alpha_software_single_step): Adjust.
6775 * alpha-tdep.h (alpha_software_single_step): Adjust.
6776 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6777 * arm-tdep.c (arm_software_single_step): Adjust.
6778 (arm_breakpoint_kind_from_current_state): Adjust.
6779 * arm-tdep.h (arm_software_single_step): Adjust.
6780 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6781 * cris-tdep.c (cris_software_single_step): Adjust.
6782 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6783 (micromips_deal_with_atomic_sequence): Adjust.
6784 (deal_with_atomic_sequence): Adjust.
6785 (mips_software_single_step): Adjust.
6786 * mips-tdep.h (mips_software_single_step): Adjust.
6787 * moxie-tdep.c (moxie_software_single_step): Adjust.
6788 * nios2-tdep.c (nios2_software_single_step): Adjust.
6789 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6790 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6791 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6792 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6793 * sparc-tdep.c (sparc_software_single_step): Adjust.
6794 * spu-tdep.c (spu_software_single_step): Adjust.
6795 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6796
ea480a30
SM
67972017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6800 * gdbarch.h: Re-generate.
6801
d050f7d7
TW
68022017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6803
6804 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6805 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6806 * python/py-instruction.c, python/py-instruction.h: New file.
6807 * python/py-record.c: Add py-instruction.h include.
6808 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6809 gdb.RecordInstruction.
6810 * python/python-internal.h: Add gdbpy_initialize_instruction
6811 declaration.
6812 * python/python.c (do_start_initialization): Add
6813 gdbpy_initialize_instruction.
6814
14f819c8
TW
68152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6816
6817 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6818 Remove.
6819 (btrace_func_from_recpy_func): New function.
6820 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6821 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6822 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6823 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6824 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6825 Also, use new helper functions.
6826 (btpy_list_item): Use new helper functions.
6827 (recpy_bt_function_call_history): Use new type name.
6828 (btpy_call_getset): Remove.
6829 (gdbpy_initialize_btrace): Remove code to initialize
6830 gdb.BtraceFunctionCall.
6831 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6832 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6833 recpy_bt_func_prev, recpy_bt_func_next): New export.
6834 * python/py-record.c (recpy_func_type): New static object.
6835 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6836 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6837 recpy_func_next): New function.
6838 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6839 (recpy_func_getset): New static object.
6840 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6841 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6842
0ed5da75
TW
68432017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6844
6845 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6846 (btpy_object, btpy_insn_type, btpy_new): Remove.
6847 (btpy_list_object): Use gdb.RecordInstruction type instead of
6848 gdb.BtraceInstruction type.
6849 (btrace_insn_from_recpy_insn): New function.
6850 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6851 btpy_new.
6852 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6853 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6854 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6855 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6856 instead of btpy_object.
6857 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6858 btpy_insn_data, btpy_insn_decode): Rename to ...
6859 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6860 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6861 recpy_bt_insn_decode): This. Also, use new helper functions.
6862 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6863 recpy_insn_type.
6864 (btpy_insn_getset): Remove.
6865 (gdbpy_initialize_btrace): Remove code to initialize
6866 gdb.BtraceInstruction. Use recpy_element_object.
6867 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6868 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6869 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6870 * python/py-record.c (recpy_insn_type): New static object.
6871 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6872 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6873 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6874 New function.
6875 (recpy_insn_getset): New static object.
6876 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6877 * python/py-record.h (recpy_element_object): New typedef.
6878 (recpy_insn_type, recpy_insn_new): New export.
6879
913aeadd
TW
68802017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6881
6882 * py-record-btrace.c (btpy_insn_new): Removed.
6883 (btpy_insn_or_gap_new): New function.
6884 (btpy_insn_error): Removed.
6885 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6886 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6887 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6888 btpy_insn_or_gap_new instead of btpy_insn_new.
6889 (btpy_insn_getset): Remove btpy_insn_error.
6890 * py-record.c (recpy_gap_type): New static object.
6891 (recpy_gap_object): New typedef.
6892 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6893 recpy_gap_reason_string): New function.
6894 (recpy_gap_getset): New static object.
6895 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6896 * py-record.h (recpy_gap_new): New export.
6897
a3be24ad
TW
68982017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6899
6900 * python/py-record.c (recpy_ptid): Remove.
6901 (recpy_record_getset): Remove recpy_ptid.
6902
ae20e79a
TW
69032017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6904
6905 * btrace.c (btrace_fetch): Set inferior_ptid.
6906 * python/py-record-btrace.c: Add "py-record.h" include.
6907 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6908 recpy_bt_end, recpy_bt_instruction_history,
6909 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6910 in gdb.Record object instead of current ptid.
6911 * python/py-record.c: Include new "py-record.h" file.
6912 (recpy_record_object): Moved to py-record.h.
6913 * python/py-record.h: New file.
6914
8d0050ea
TW
69152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6916
6917 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6918 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6919 indentation.
6920
3f380b50
JB
69212017-05-01 Joel Brobecker <brobecker@adacore.com>
6922
6923 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6924 the past maintainers section.
6925
07495424
YQ
69262017-04-28 Yao Qi <yao.qi@linaro.org>
6927
6928 * infcmd.c (get_return_value): Use regcache ctor, and remove
6929 cleanup.
6930
deb1fa3e
YQ
69312017-04-28 Yao Qi <yao.qi@linaro.org>
6932 Pedro Alves <palves@redhat.com>
6933
6934 * regcache.c (regcache::regcache): New tag dispatch ctor.
6935 (do_cooked_read): Moved above.
6936 (regcache_dup): Use the tag dispatch ctor..
6937 * regcache.h (regcache): Declare ctor, delete copy ctor and
6938 assignment operator, remove friend regcache_dup.
6939
b421c83c
YQ
69402017-04-28 Yao Qi <yao.qi@linaro.org>
6941
6942 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6943 call method save instead of regcache_cpy.
6944 * regcache.h (struct regcache): Make regcache_dup a friend.
6945
ef79d9a3
YQ
69462017-04-28 Yao Qi <yao.qi@linaro.org>
6947
6948 * regcache.c (struct regcache): Move to regcache.h
6949 (regcache::arch): New method.
6950 (regcache_get_ptid): Update.
6951 (get_regcache_arch): Call arch method.
6952 (get_regcache_aspace): Call method aspace.
6953 (register_buffer): Change it to method.
6954 (regcache_save): Change it to regcache::save.
6955 (regcache_restore): Likewise.
6956 (regcache_cpy_no_passthrough): Remove the declaration.
6957 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6958 (regcache_cpy_no_passthrough): Change it to method
6959 cpy_no_passthrough.
6960 (regcache_register_status): Change it to method
6961 get_register_status.
6962 (regcache_invalidate): Change it to method invalidate.
6963 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6964 (regcache_raw_update): Change it to method raw_update.
6965 (regcache_raw_read): Likewise.
6966 (regcache_raw_read_signed): Likewise.
6967 (regcache_raw_read_unsigned): Likewise.
6968 (regcache_raw_write_signed): Likewise.
6969 (regcache_raw_write_unsigned): Likewise.
6970 (regcache_cooked_read): Likewise.
6971 (regcache_cooked_read_value): Likewise.
6972 (regcache_cooked_read_signed): Likewise.
6973 (regcache_cooked_read_unsigned): Likewise.
6974 (regcache_cooked_write_signed): Likewise.
6975 (regcache_cooked_write_unsigned): Likewise.
6976 (regcache_raw_set_cached_value): Likewise.
6977 (regcache_raw_write): Likewise.
6978 (regcache_cooked_write): Likewise.
6979 (regcache_xfer_part): Likewise.
6980 (regcache_raw_read_part): Likewise.
6981 (regcache_raw_write_part): Likewise.
6982 (regcache_cooked_read_part): Likewise.
6983 (regcache_cooked_write_part): Likewise.
6984 (regcache_raw_supply): Likewise.
6985 (regcache_raw_collect): Likewise.
6986 (regcache_transfer_regset): Likewise.
6987 (regcache_supply_regset): Likewise.
6988 (regcache_collect_regset): Likewise.
6989 (regcache_debug_print_register): Likewise.
6990 (enum regcache_dump_what): Move it to regcache.h.
6991 (regcache_dump): Change it to method dump.
6992 * regcache.h (enum regcache_dump_what): New.
6993 (class regcache): New.
6994 * target.c (target_fetch_registers): Call method
6995 debug_print_register.
6996 (target_store_registers): Likewise.
6997
f8fdb78e
SM
69982017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6999
7000 * windows-nat.c (struct lm_info_windows): Initialize field.
7001 (windows_make_so): Allocate lm_info_windows with new.
7002 (windows_free_so): Free lm_info_windows with delete.
7003
9ccbfd7b
SM
70042017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7005
7006 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7007 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7008 cleanup.
7009 (darwin_free_so): Free lm_info_darwin with delete.
7010
76e75227
SM
70112017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7012
7013 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7014 <l_addr_p>: Change type to bool.
7015 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7016 (svr4_free_so): Free lm_info_svr4 with delete.
7017 (svr4_copy_library_list): Replace memcpy with call to copy
7018 constructor.
7019 (library_list_start_library, svr4_default_sos): Allocate
7020 lm_info_svr4 with new.
7021
51046d9e
SM
70222017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7023
7024 * solib-target.c (struct lm_info_target): Add destructor,
7025 initialize fields.
7026 <name>: Change type to std::string.
7027 (library_list_start_library): Allocate lm_info_target with new.
7028 (solib_target_free_library_list): Free lm_info_target with
7029 delete.
7030 (solib_target_current_sos): Adapt to std::string.
7031 (solib_target_free_so): Free lm_info_target with delete.
7032
4023ae76
SM
70332017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7034
7035 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7036 fields.
7037 (frv_current_sos): Allocate lm_info_frv with new.
7038 (frv_relocate_main_executable): Free lm_info_frv with delete,
7039 allocate with new.
7040 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7041
af43057b
SM
70422017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7043
7044 * solib-frv.c (struct lm_info_frv): Fix indentation.
7045
b0911207
SM
70462017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7047
7048 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7049 map field.
7050 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7051 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7052 and allocate with new.
7053 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7054
6c401f72
SM
70552017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7056
7057 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7058 <filename, member_name>: Change type to std::string.
7059 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7060 (library_list_start_library): Allocate lm_info_aix with new.
7061 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7062 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7063 with copy constructor.
7064
d0e449a1
SM
70652017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7066
7067 * solist.h (struct lm_info): Remove.
7068 (struct lm_info_base): New class.
7069 (struct so_list) <lm_info>: Change type to lm_info_base *.
7070 * nto-tdep.c (struct lm_info): Remove.
7071 (lm_addr): Adjust.
7072 * solib-aix.c (struct lm_info): Rename to ...
7073 (struct lm_info_aix): ... this. Extend lm_info_base.
7074 (lm_info_p): Rename to ...
7075 (lm_info_aix_p): ... this, and adjust.
7076 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7077 solib_aix_parse_libraries, library_list_start_library,
7078 solib_aix_free_library_list, solib_aix_parse_libraries,
7079 solib_aix_get_library_list,
7080 solib_aix_relocate_section_addresses, solib_aix_free_so,
7081 solib_aix_get_section_offsets,
7082 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7083 Adjust.
7084 (struct solib_aix_inferior_data) <library_list>: Adjust.
7085 * solib-darwin.c (struct lm_info): Rename to ...
7086 (struct lm_info_darwin): ... this. Extend lm_info_base.
7087 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7088 * solib-dsbt.c (struct lm_info): Rename to ...
7089 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7090 (struct dsbt_info) <main_executable_lm_info): Adjust.
7091 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7092 dsbt_relocate_section_addresses): Adjust.
7093 * solib-frv.c (struct lm_info): Rename to ...
7094 (struct lm_info_frv): ... this. Extend lm_info_base.
7095 (main_executable_lm_info): Adjust.
7096 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7097 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7098 find_canonical_descriptor_in_load_object,
7099 frv_fdpic_find_canonical_descriptor): Adjust.
7100 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7101 to lm_info_svr4.
7102 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7103 svr4_clear_so, svr4_copy_library_list,
7104 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7105 svr4_current_sos, svr4_fetch_objfile_link_map,
7106 solist_update_incremental): Adjust.
7107 * solib-svr4.h (struct lm_info_svr4): Move here from
7108 solib-svr4.c.
7109 * solib-target.c (struct lm_info): Rename to ...
7110 (struct lm_info_target): ... this. Extend lm_info_base.
7111 (lm_info_p): Rename to ...
7112 (lm_info_target_p): ... this.
7113 (solib_target_parse_libraries, library_list_start_segment,
7114 library_list_start_section, library_list_start_library,
7115 library_list_end_library, solib_target_free_library_list,
7116 solib_target_current_sos, solib_target_free_so,
7117 solib_target_relocate_section_addresses): Adjust.
7118 * windows-nat.c (struct lm_info): Rename to ...
7119 (struct lm_info_windows): ... this. Extend lm_info_base.
7120 (windows_make_so, handle_load_dll, handle_unload_dll,
7121 windows_xfer_shared_libraries): Adjust.
7122
434a4023
SM
71232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7124
7125 * solib-darwin.c (struct darwin_so_list): Remove.
7126 (darwin_current_sos): Allocate an so_list object instead of a
7127 darwin_so_list, separately allocate an lm_info object.
7128 (darwin_free_so): Free lm_info.
7129
428544e8
JB
71302017-04-28 John Baldwin <jhb@FreeBSD.org>
7131
7132 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7133 with fprintf_filtered.
7134
4621115f
YQ
71352017-04-28 Yao Qi <yao.qi@linaro.org>
7136
7137 * regcache.c (regcache::regcache): New function.
7138 (regcache::~regcache): New function.
7139 (regcache_xmalloc_1): Remove.
7140 (regcache_xmalloc): Call new regcache.
7141 (regcache_xfree): Call delete regcache.
7142 (get_thread_arch_aspace_regcache): Call new regcache.
7143
339053c2
YQ
71442017-04-28 Yao Qi <yao.qi@linaro.org>
7145
7146 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7147 lwp instead of ptid_get_lwp.
7148
7974a605
YQ
71492017-04-28 Yao Qi <yao.qi@linaro.org>
7150
7151 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7152 lwp_info instead of getting from inferior_ptid.
7153
e15c3eb4
KS
71542017-04-27 Keith Seitz <keiths@redhat.com>
7155
7156 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7157 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7158 (CV_CONVERSION_BADNESS): Define.
7159 (rank_one_type): Remove overly restrictive rvalue reference
7160 rank checks.
7161 Add cv-qualifier checks and subranks for type equality.
7162 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7163 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7164 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7165
72bc1d24
SM
71662017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7167
7168 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7169 count when creating the object.
7170
55bcecda
UW
71712017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7172 Ulrich Weigand <uweigand@de.ibm.com>
7173
7174 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7175 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7176 is used in AIX.
7177 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7178 (process_xcoff_symbol): Likewise.
7179 (scan_xcoff_symtab): Likewise.
7180
5c99fcf8
AH
71812017-04-26 Alan Hayward <alan.hayward@arm.com>
7182
7183 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7184 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7185 (ia64_access_reg): Use get_frame_register_unsigned.
7186 (ia64_access_rse_reg): Likewise.
7187 (ia64_libunwind_frame_prev_register): Likewise.
7188
b41c5a85
JW
71892017-04-26 Jiong Wang <jiong.wang@arm.com>
7190
7191 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7192 * gdbarch.c: Regenerated.
7193 * gdbarch.h: Regenerated.
7194 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7195 visibility external.
7196 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7197 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7198 (enum cfa_how_kind): Move to ...
7199 (struct dwarf2_frame_state_reg_info): Likewise.
7200 (struct dwarf2_frame_state): Likewise.
7201 * dwarf2-frame.h: ... here.
7202 (dwarf2_frame_state_alloc_regs): New declaration.
7203 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7204 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7205
c185f580
AH
72062017-04-26 Alan Hayward <alan.hayward@arm.com>
7207
7208 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7209 regcache_raw_read_unsigned.
7210 (xtensa_pseudo_register_write): Likewise.
7211
19c45594
AH
72122017-04-26 Alan Hayward <alan.hayward@arm.com>
7213
7214 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7215 (nds32_pseudo_register_write): Likewise.
7216
4658f12e
YQ
72172017-04-25 Yao Qi <yao.qi@linaro.org>
7218
7219 * regcache.c (struct regcache) <readonly_p>: Change its type
7220 to bool.
7221 (regcache_xmalloc_1): Update parameter type and callers update.
7222
d581dda8
YQ
72232017-04-25 Yao Qi <yao.qi@linaro.org>
7224
7225 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7226 set_gdbarch_wchar_bit.
7227 * arm-tdep.c (arm_gdbarch_init): Likewise.
7228
debed3db
PA
72292017-04-25 Pedro Alves <palves@redhat.com>
7230
7231 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7232 (BothAreRelocatable, memcopy, memmove): Don't define.
7233 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7234 macros.
7235
b0b92aeb
PA
72362017-04-25 Pedro Alves <palves@redhat.com>
7237
7238 * common/common-defs.h: Include "common/poison.h".
7239 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7240 and adjust.
7241 * common/poison.h: New file.
7242 * common/traits.h: Include <type_traits>.
7243 (Not, Or, Requires): New, moved from common/function-view.h.
7244
16c4d54a
PA
72452017-04-25 Pedro Alves <palves@redhat.com>
7246
7247 * breakpoint.h (struct breakpoint): In-class initialize all
7248 fields. Make boolean fields "bool".
7249 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7250 memset call and initializations no longer necessary.
7251
b5c36682
PA
72522017-04-25 Pedro Alves <palves@redhat.com>
7253
7254 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7255 reference.
7256 (pt_btrace_insn): New function.
7257 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7258
5625a286
PA
72592017-04-25 Pedro Alves <palves@redhat.com>
7260
7261 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7262 "base" field and inherit from "bp_location" instead. Add
7263 non-default ctor.
7264 (allocate_location_exception): Use new non-default ctor.
7265 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7266 (init_bp_location): Convert to ...
7267 (bp_location::bp_location): ... this new ctor, and remove memset
7268 call.
7269 (base_breakpoint_allocate_location): Use the new non-default ctor.
7270 * breakpoint.h (bp_location): Now a class. Declare default and
7271 non-default ctors. In-class initialize all members.
7272 (init_bp_location): Remove declaration.
7273
23bcc18f
PA
72742017-04-25 Pedro Alves <palves@redhat.com>
7275
7276 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7277 assignment operator.
7278
e1ba3053
YQ
72792017-04-24 Yao Qi <yao.qi@linaro.org>
7280
7281 * doublest.c (convert_doublest_to_floatformat): Call
7282 floatformat_totalsize_bytes.
7283
10f489e5
TT
72842017-04-22 Tom Tromey <tom@tromey.com>
7285
7286 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7287 ui_out_emit_list.
7288 * stack.c (print_frame): Use ui_out_emit_list.
7289 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7290 ui_out_emit_list.
7291 * mi/mi-main.c (print_one_inferior)
7292 (mi_cmd_data_list_register_names)
7293 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7294 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7295 ui_out_emit_list.
7296 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7297 (mi_output_solib_attribs): Use ui_out_emit_list,
7298 ui_out_emit_tuple.
7299 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7300 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7301 (mi_cmd_stack_list_args, list_args_or_locals): Use
7302 ui_out_emit_list.
7303 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7304 * breakpoint.c (print_solib_event, output_thread_groups): Use
7305 ui_out_emit_list.
7306
0092b74d
TT
73072017-04-22 Tom Tromey <tom@tromey.com>
7308
7309 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7310 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7311 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7312
a14a62dd
TT
73132017-04-22 Tom Tromey <tom@tromey.com>
7314
7315 * tracepoint.c (tvariables_info_1)
7316 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7317
46b9c129
TT
73182017-04-22 Tom Tromey <tom@tromey.com>
7319
7320 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7321 annotate_arg_emitter.
7322 * breakpoint.c (print_mention_watchpoint)
7323 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7324 * annotate.h (struct annotate_arg_emitter): New.
7325
2e783024
TT
73262017-04-22 Tom Tromey <tom@tromey.com>
7327
7328 * record-btrace.c (record_btrace_insn_history)
7329 (record_btrace_insn_history_range, record_btrace_call_history)
7330 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7331 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7332 ui_out_emit_tuple.
7333 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7334 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7335 * skip.c (skip_info): Use ui_out_emit_tuple.
7336 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7337 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7338 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7339 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7340 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7341 ui_out_emit_tuple.
7342 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7343 (output_register, mi_cmd_data_read_memory)
7344 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7345 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7346 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7347 Use ui_out_emit_tuple.
7348 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7349 ui_out_emit_tuple.
7350 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7351 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7352 * linux-thread-db.c (info_auto_load_libthread_db): Use
7353 ui_out_emit_tuple.
7354 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7355 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7356 * disasm.c (do_mixed_source_and_assembly_deprecated)
7357 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7358 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7359 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7360 * breakpoint.c (print_one_breakpoint_location)
7361 (print_one_breakpoint): Use ui_out_emit_tuple.
7362 * auto-load.c (print_script, info_auto_load_cmd): Use
7363 ui_out_emit_tuple.
7364 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7365
9be21bb4
SM
73662017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7367
7368 * thread.c (print_thread_info_1): Remove dead code.
7369
0d4c07af
JK
73702017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7371
7372 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7373 GDB_SELF_TEST.
7374 * arm-tdep.c (selftests::arm_record_test): Likewise.
7375
4daf993d
YQ
73762017-04-21 Yao Qi <yao.qi@linaro.org>
7377
7378 * regcache.c (regcache_restore): Remove argument 2. Replace
7379 argument 3 with regcache. Get register status from
7380 src->register_status and get register contents from
7381 register_buffer (src, regnum).
7382 (regcache_cpy): Update.
7383
a6c21d4a
PA
73842017-04-19 Pedro Alves <palves@redhat.com>
7385
7386 * gdbthread.h (thread): Add missing closing parenthesis in
7387 comment.
7388
3a3fd0fd
PA
73892017-04-19 Pedro Alves <palves@redhat.com>
7390
7391 * common/refcounted-object.h: New file.
7392 * gdbthread.h: Include "common/refcounted-object.h".
7393 (thread_info): Inherit from refcounted_object and add comments.
7394 (thread_info::incref, thread_info::decref)
7395 (thread_info::m_refcount): Delete.
7396 (thread_info::deletable): Use the refcounted_object::refcount()
7397 method.
7398 * inferior.c (current_inferior_): Add comment.
7399 (set_current_inferior): Increment/decrement refcounts.
7400 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7401 not-deletable instead of comparing with the current inferior.
7402 (initialize_inferiors): Increment the initial inferior's refcount.
7403 * inferior.h (struct inferior): Forward declare.
7404 Include "common/refcounted-object.h".
7405 (current_inferior, set_current_inferior): Move declaration to
7406 before struct inferior's definition, and fix comment.
7407 (inferior): Inherit from refcounted_object. Add comments.
7408 * thread.c (switch_to_thread_no_regs): Reference the thread's
7409 inferior pointer directly instead of doing a ptid lookup.
7410 (switch_to_no_thread): New function.
7411 (switch_to_thread(thread_info *)): New function, factored out
7412 from ...
7413 (switch_to_thread(ptid_t)): ... this.
7414 (restore_current_thread): Delete.
7415 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7416 fields, and add 'inf' field.
7417 (do_restore_current_thread_cleanup): Check whether old->inf is
7418 alive instead of looking up an inferior by ptid. Use
7419 switch_to_thread and switch_to_no_thread.
7420 (restore_current_thread_cleanup_dtor): Use old->inf directly
7421 instead of lookup up an inferior by id. Decref the inferior.
7422 Don't restore 'removable'.
7423 (make_cleanup_restore_current_thread): Same the inferior pointer
7424 in old, instead of the inferior number. Incref the inferior.
7425 Don't save/clear 'removable'.
7426
9bcb1f16
PA
74272017-04-19 Pedro Alves <palves@redhat.com>
7428
7429 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7430 unittests/scoped_restore-selftests.c.
7431 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7432 * common/scoped_restore.h (scoped_restore_base): Make "class".
7433 (scoped_restore_base::release): New public method.
7434 (scoped_restore_base::scoped_restore_base): New protected ctor.
7435 (scoped_restore_base::m_saved_var): New protected field.
7436 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7437 scoped_restore_base base class instead of m_saved_var directly.
7438 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7439 (scoped_restore_tmpl::scoped_restore_tmpl(const
7440 scoped_restore_tmpl<T>&)): Likewise.
7441 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7442 method.
7443 (scoped_restore_tmpl::saved_var): New method.
7444 (scoped_restore_tmpl::m_saved_var): Delete.
7445 * inferior.h (inferior::detaching): Now a bool.
7446 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7447 cleanup.
7448 * unittests/scoped_restore-selftests.c: New file.
7449
26fcd539
PA
74502017-04-19 Pedro Alves <palves@redhat.com>
7451
7452 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7453 Re-sort in alphabetic order.
7454
fdd243b0
PA
74552017-04-18 Pedro Alves <palves@redhat.com>
7456
7457 * xml-support.c (obstack_xml_printf): Delete.
7458 * xml-support.h (obstack_xml_printf): Delete.
7459
4895cde2
PA
74602017-04-18 Pedro Alves <palves@redhat.com>
7461
7462 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7463 vdebug, verror, body_text, start_element, end_element, name,
7464 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7465 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7466 is_xinclude>: Make private and add m_ prefix.
7467 (gdb_xml_parser::body_text): New method, based on ...
7468 (gdb_xml_body_text): ... this. Adjust.
7469 (gdb_xml_parser::vdebug): New method, based on ...
7470 (gdb_xml_debug): ... this. Adjust.
7471 (gdb_xml_parser::verror): New method, based on ...
7472 (gdb_xml_error): ... this. Adjust.
7473 (gdb_xml_parser::start_element): New method, based on ...
7474 (gdb_xml_start_element): ... this. Adjust.
7475 (gdb_xml_start_element_wrapper): Defer to
7476 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7477 (gdb_xml_parser::end_element): New method, based on ...
7478 (gdb_xml_end_element_wrapper): ... this. Adjust.
7479 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7480 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7481 (gdb_xml_parser::use_dtd): New method, based on ...
7482 (gdb_xml_use_dtd): ... this. Adjust.
7483 (gdb_xml_parser::parse): New method, based on ...
7484 (gdb_xml_parse): ... this. Adjust.
7485 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7486 (xinclude_start_include): Adjust to call the parser's name method.
7487 (xml_xinclude_default, xml_xinclude_start_doctype)
7488 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7489 method.
7490 (xml_process_xincludes): Adjust to call parser methods.
7491 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7492 declarations.
7493
bd8a901f
PA
74942017-04-18 Pedro Alves <palves@redhat.com>
7495
7496 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7497 gdb::optional<std::string>.
7498 * xml-support.c: Include <string>.
7499 (scope_level::scope_level(scope_level &&))
7500 (scope_level::~scope_level): Delete.
7501 (scope_level::body): Now a std::string.
7502 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7503 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7504 parameter.
7505 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7506 (xinclude_parsing_data::output): Now a std::string reference.
7507 (xinclude_start_include): Adjust.
7508 (xml_xinclude_default): Adjust.
7509 (xml_process_xincludes): Add 'output' parameter, and return bool.
7510 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7511 and return bool.
7512 * xml-tdesc.c: Include <unordered_map> and <string>.
7513 (tdesc_xml_cache): Delete.
7514 (tdesc_xml_cache_s): Delete.
7515 (xml_cache): Now an std::unordered_map.
7516 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7517 (target_fetch_description_xml): Change return type to
7518 gdb::optional<std::string>, and adjust.
7519 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7520 (target_fetch_description_xml): Change return type to
7521 gdb::optional<std::string>.
7522
d35d1958
PA
75232017-04-18 Pedro Alves <palves@redhat.com>
7524
7525 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7526 unittests/optional-selftests.c.
7527 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7528 * unittests/optional-selftests.c: New file.
7529 * unittests/optional/assignment/1.cc: New file.
7530 * unittests/optional/assignment/2.cc: New file.
7531 * unittests/optional/assignment/3.cc: New file.
7532 * unittests/optional/assignment/4.cc: New file.
7533 * unittests/optional/assignment/5.cc: New file.
7534 * unittests/optional/assignment/6.cc: New file.
7535 * unittests/optional/assignment/7.cc: New file.
7536 * unittests/optional/cons/copy.cc: New file.
7537 * unittests/optional/cons/default.cc: New file.
7538 * unittests/optional/cons/move.cc: New file.
7539 * unittests/optional/cons/value.cc: New file.
7540 * unittests/optional/in_place.cc: New file.
7541 * unittests/optional/observers/1.cc: New file.
7542 * unittests/optional/observers/2.cc: New file.
7543
22796e97
PA
75442017-04-18 Pedro Alves <palves@redhat.com>
7545
7546 * common/gdb_optional.h: Include common/traits.h.
7547 (in_place_t): New type.
7548 (in_place): New constexpr variable.
7549 (optional::optional): Remove member initialization of
7550 m_instantiated.
7551 (optional::optional(in_place_t...)): New constructor.
7552 (optional::~optional): Use reset.
7553 (optional::optional(const optional&)): New.
7554 (optional::optional(const optional&&)): New.
7555 (optional::optional(T &)): New.
7556 (optional::optional(T &&)): New.
7557 (operator::operator=(const optional &)): New.
7558 (operator::operator=(optional &&)): New.
7559 (operator::operator= (const T &))
7560 (operator::operator= (T &&))
7561 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7562 (operator::reset): New.
7563 (operator::m_instantiated):: Add in-class initializer.
7564 * common/traits.h: Include <type_traits>.
7565 (struct And): New types.
7566
a7fc9b61
PA
75672017-04-18 Pedro Alves <palves@redhat.com>
7568
7569 * xml-support.c: Include <vector>.
7570 (scope_level::scope_level(const gdb_xml_element *))
7571 (scope_level::scope_level(scope_level&&)): New.
7572 (scope_level::~scope_level): New.
7573 (scope_level_s): Delete.
7574 (gdb_xml_parser::scopes): Now a std::vector.
7575 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7576 Use std::vector.
7577 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7578 scope cleanup code.
7579 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7580 of the scopes member. Use std::vector::emplace_back.
7581
010151c9
PA
75822017-04-18 Pedro Alves <palves@redhat.com>
7583
7584 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7585 a bool.
7586 (gdb_xml_end_element): Change type of first parameter.
7587 (gdb_xml_cleanup): Rename to ...
7588 (gdb_xml_parser::~gdb_xml_parser): ... this.
7589 (gdb_xml_create_parser_and_cleanup): Delete with ...
7590 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7591 to this new ctor.
7592 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7593 using gdb_xml_create_parser_and_cleanup.
7594 (xinclude_parsing_data): Add ctor/dtor.
7595 (xml_xinclude_cleanup): Delete.
7596 (xml_process_xincludes): Create a local xinclude_parsing_data
7597 instead of heap-allocating one. Create a local gdb_xml_parser
7598 instead of heap-allocating one with
7599 gdb_xml_create_parser_and_cleanup.
7600
d56060f0
JB
76012017-04-18 John Baldwin <jhb@FreeBSD.org>
7602
7603 PR threads/20743
7604 * fbsd-nat.c (resume_one_thread_cb): Remove.
7605 (resume_all_threads_cb): Remove.
7606 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7607 iterate_over_threads.
7608
305d16a9
JB
76092017-04-17 Joel Brobecker <brobecker@adacore.com>
7610
7611 * NEWS: Create a new section for the next release branch.
7612 Rename the section of the current branch, now that it has
7613 been cut.
7614
8bb57231
JB
76152017-04-17 Joel Brobecker <brobecker@adacore.com>
7616
7617 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7618 * version.in: Bump version to 8.0.50.DATE-git.
7619
096c92dd
SDJ
76202017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7621
7622 PR gdb/21385
7623 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7624 independently of the host, and fix build breakage on Cygwin.
7625
0550c955
PA
76262017-04-13 Pedro Alves <palves@redhat.com>
7627
7628 * inferior.c (free_inferior): Convert to ...
7629 (inferior::~inferior): ... this dtor.
7630 (inferior::inferior): New ctor, factored out from ...
7631 (add_inferior_silent): ... here. Allocate the inferior with a new
7632 expression.
7633 (delete_inferior): Call delete instead of free_inferior.
7634 * inferior.h (gdb_environ, continuation): Forward declare.
7635 (inferior): Now a class. Add in-class initialization to all
7636 members. Make boolean fields bool, except 'detaching'.
7637 (inferior::inferior): New explicit ctor.
7638 (inferior::~inferior): New.
7639
e3d60dfc
PA
76402017-04-13 Pedro Alves <palves@redhat.com>
7641
7642 * inferior.c (init_inferior_list): Delete.
7643 * inferior.h (init_inferior_list): Delete.
7644
5fd69d0a
PA
76452017-04-13 Pedro Alves <palves@redhat.com>
7646
7647 PR threads/13217
7648 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7649 (top level): Call it twice, with different thread sets.
7650
c6609450
PA
76512017-04-13 Pedro Alves <palves@redhat.com>
7652
7653 * thread.c: Include <algorithm>.
7654 (thread_array_cleanup): Delete.
7655 (scoped_inc_dec_ref): New class.
7656 (live_threads_count): New function.
7657 (set_thread_refcount): Delete.
7658 (tp_array_compar_ascending): Now a bool.
7659 (tp_array_compar): Convert to a std::sort comparison function.
7660 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7661 and live_threads_count.
7662
2a00d7ce
PA
76632017-04-13 Pedro Alves <palves@redhat.com>
7664
7665 * infrun.c (follow_fork_inferior): Also switch the current
7666 inferior.
7667
441d7c93
PA
76682017-04-13 Pedro Alves <palves@redhat.com>
7669
7670 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7671 before calling create_internal_breakpoint.
7672
808480f6
PA
76732017-04-13 Pedro Alves <palves@redhat.com>
7674
7675 * fork-child.c (execv_argv): New class.
7676 (breakup_args): Refactored as ...
7677 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7678 Copy arguments to storage and replace separators with NULL
7679 terminators in place.
7680 (escape_bang_in_quoted_argument): Adjust to return bool.
7681 (execv_argv::execv_argv): New ctor.
7682 (execv_argv::init_for_shell): New method, factored out from
7683 fork_inferior. Don't strdup strings into the vector.
7684 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7685 Remove free_vector_argv call.
7686
ad3d022a
YQ
76872017-04-13 Yao Qi <yao.qi@linaro.org>
7688
7689 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7690 tdep->rx_psw_type.
7691
e6ddc3bf
YQ
76922017-04-13 Yao Qi <yao.qi@linaro.org>
7693
7694 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7695 * rx-tdep.c (rx_gdbarch_init): Likewise.
7696
bfb8cf90
PA
76972017-04-13 Pedro Alves <palves@redhat.com>
7698
7699 * breakpoint.h (struct breakpoint): Reindent.
7700
f5336ca5
PA
77012017-04-13 Pedro Alves <palves@redhat.com>
7702
7703 * breakpoint.c (bp_location): Rename to ...
7704 (bp_locations): ... this. All references updated.
7705 (bp_location_count): Rename to ...
7706 (bp_locations_count): ... this. All references updated.
7707 (bp_location_placed_address_before_address_max): Rename to ...
7708 (bp_locations_placed_address_before_address_max): ... this. All
7709 references updated.
7710 (bp_location_shadow_len_after_address_max): Rename to ...
7711 (bp_locations_shadow_len_after_address_max): ... this. All
7712 references updated.
7713 (bp_location_compare_addrs): Rename to ...
7714 (bp_locations_compare_addrs): ... this. All references updated.
7715 (bp_location_compare):Rename to ...
7716 (bp_locations_compare): ... this. All references updated.
7717 (bp_location_target_extensions_update): Rename to ...
7718 (bp_locations_target_extensions_update): ... this. All references
7719 updated.
7720
be628ab8
SDJ
77212017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7722
7723 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7724 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7725 'sgtty.h'.
7726 * common/gdb_termios.h: New file, with parts of "terminal.h".
7727 * inflow.c: Include "gdb_termios.h".
7728 * ser-unix.c: Include "gdb_termios.h".
7729 * terminal.h: Move terminal-related defines to
7730 "common/gdb_termios.h".
7731
8e9e35b1
TT
77322017-04-12 Tom Tromey <tom@tromey.com>
7733
7734 * probe.c (parse_probes): Update.
7735 * location.h (delete_event_location): Don't declare.
7736 (event_location_deleter::operator()): Update.
7737 * location.c (event_location_deleter::operator()): Rename from
7738 delete_event_location.
7739 * linespec.h (linespec_result) <location>: Change type to
7740 event_location_up.
7741 * linespec.c (canonicalize_linespec, event_location_to_sals)
7742 (decode_objc): Update.
7743 (linespec_result): Don't call delete_event_location.
7744 * breakpoint.c (create_breakpoints_sal)
7745 (bkpt_probe_create_sals_from_location)
7746 (strace_marker_create_sals_from_location): Update.
7747
16e802b9
TT
77482017-04-12 Tom Tromey <tom@tromey.com>
7749
7750 * linespec.h (struct linespec_result): Add constructor and
7751 destructor.
7752 (init_linespec_result, destroy_linespec_result)
7753 (make_cleanup_destroy_linespec_result): Don't declare.
7754 * linespec.c (init_linespec_result): Remove.
7755 (linespec_result::~linespec_result): Rename from
7756 destroy_linespec_result. Update.
7757 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7758 Remove.
7759 * breakpoint.c (create_breakpoint, break_range_command)
7760 (decode_location_default): Update.
7761 * ax-gdb.c (agent_command_1): Update.
7762
d28cd78a
TT
77632017-04-12 Tom Tromey <tom@tromey.com>
7764
7765 * remote.c (remote_download_tracepoint): Update.
7766 * python/py-breakpoint.c (bppy_get_location): Update.
7767 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7768 (gdbscm_breakpoint_location): Update.
7769 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7770 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7771 Change type to event_location_up.
7772 * breakpoint.c (create_overlay_event_breakpoint)
7773 (create_longjmp_master_breakpoint)
7774 (create_std_terminate_master_breakpoint)
7775 (create_exception_master_breakpoint)
7776 (breakpoint_event_location_empty_p, print_breakpoint_location)
7777 (print_one_breakpoint_location, create_thread_event_breakpoint)
7778 (init_breakpoint_sal, create_breakpoint)
7779 (print_recreate_ranged_breakpoint, break_range_command)
7780 (init_ada_exception_breakpoint, say_where): Update.
7781 (base_breakpoint_dtor): Don't call delete_event_location.
7782 (bkpt_print_recreate, tracepoint_print_recreate)
7783 (dprintf_print_recreate, update_static_tracepoint)
7784 (breakpoint_re_set_default): Update.
7785
711799d5
TT
77862017-04-12 Tom Tromey <tom@tromey.com>
7787
7788 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7789 type of "to_do". Update.
7790 (compute_stack_depth): Use std::vector.
7791
52d214d3
TT
77922017-04-12 Tom Tromey <tom@tromey.com>
7793
7794 * printcmd.c (find_instruction_backward): Use std::vector.
7795
4c404b8b
TT
77962017-04-12 Tom Tromey <tom@tromey.com>
7797
7798 * symfile.c (objfilep): Remove typedef.
7799 (reread_symbols): Use a std::vector.
7800
156d9eab
TT
78012017-04-12 Tom Tromey <tom@tromey.com>
7802
7803 * mi/mi-main.c (exec_direction_forward): Remove.
7804 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7805 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7806 scoped_restore.
7807 * guile/guile.c (guile_repl_command, guile_command)
7808 (gdbscm_execute_gdb_command): Use scoped_restore.
7809 * go-exp.y (go_parse): Use scoped_restore.
7810 * d-exp.y (d_parse): Use scoped_restore.
7811 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7812 * c-exp.y (c_parse): Use scoped_restore.
7813
4d89769a
TT
78142017-04-12 Tom Tromey <tom@tromey.com>
7815
7816 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7817 (mi_parse): Update return type.
7818 (mi_parse_free): Remove.
7819 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7820 (mi_parse::~mi_parse): Rename from mi_parse_free.
7821 (mi_parse_cleanup): Remove.
7822 (mi_parse): Return a unique_ptr. Use new.
7823 * mi/mi-main.c (mi_execute_command): Update.
7824
4b217cc7
TT
78252017-04-12 Tom Tromey <tom@tromey.com>
7826
7827 * location.c (explicit_location_lex_one): Return a
7828 unique_xmalloc_ptr.
7829 (string_to_explicit_location): Update. Remove cleanups.
7830
59d3651b
TT
78312017-04-12 Tom Tromey <tom@tromey.com>
7832
7833 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7834 (compare_value_and_voffset): Change type. Update.
7835 (compute_vtable_size): Change type of "offset_vec".
7836 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7837 (gnuv3_get_typeid): Remove extraneous declaration.
7838
b24b0d6c
TT
78392017-04-12 Tom Tromey <tom@tromey.com>
7840
7841 * charset.h (wchar_iterator): Fix comment.
7842
80a3b8c5
TT
78432017-04-12 Tom Tromey <tom@tromey.com>
7844
7845 * charset.c (iconv_wrapper): New class.
7846 (cleanup_iconv): Remove.
7847 (convert_between_encodings): Use it.
7848
c83dd867
TT
78492017-04-12 Tom Tromey <tom@tromey.com>
7850
7851 * symfile.h (increment_reading_symtab): Update type.
7852 * symfile.c (decrement_reading_symtab): Remove.
7853 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7854 * psymtab.c (psymtab_to_symtab): Update.
7855 * dwarf2read.c (dw2_instantiate_symtab): Update.
7856
0e8621a0
TT
78572017-04-12 Tom Tromey <tom@tromey.com>
7858
7859 * jit.c (struct jit_reader): Declare separately. Add constructor
7860 and destructor. Change type of "handle".
7861 (loaded_jit_reader): Define separately.
7862 (jit_reader_load): Update. New "new".
7863 (jit_reader_unload_command): Use "delete".
7864 * gdb-dlfcn.h (struct dlclose_deleter): New.
7865 (gdb_dlhandle_up): New typedef.
7866 (gdb_dlopen, gdb_dlsym): Update types.
7867 (gdb_dlclose): Remove.
7868 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7869 (gdb_dlsym): Change type of "handle".
7870 (make_cleanup_dlclose): Remove.
7871 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7872 * compile/compile-c-support.c (load_libcc): Update.
7873
67d89901
TT
78742017-04-12 Tom Tromey <tom@tromey.com>
7875
7876 * symtab.h (find_pcs_for_symtab_line): Change return type.
7877 * symtab.c (find_pcs_for_symtab_line): Change return type.
7878 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7879 type of "vec". Update.
7880 (ltpy_get_pcs_for_line): Update.
7881 * linespec.c (decode_digits_ordinary): Update.
7882
93921405
TT
78832017-04-12 Tom Tromey <tom@tromey.com>
7884
7885 * tracepoint.c (actions_command): Update.
7886 * python/python.c (python_command, python_interactive_command):
7887 Update.
7888 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7889 * guile/guile.c (guile_command): Update.
7890 * defs.h (read_command_lines, read_command_lines_1): Return
7891 command_line_up.
7892 (command_lines_deleter): New struct.
7893 (command_line_up): New typedef.
7894 * compile/compile.c (compile_code_command)
7895 (compile_print_command): Update.
7896 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7897 command_line_up.
7898 (make_cleanup_free_command_lines): Remove.
7899 * cli/cli-script.c (get_command_line, read_command_lines_1)
7900 (copy_command_lines): Return command_line_up.
7901 (while_command, if_command, read_command_lines, define_command)
7902 (document_command): Update.
7903 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7904 Remove.
7905 * breakpoint.h (breakpoint_set_commands): Change type of
7906 "commands".
7907 * breakpoint.c (breakpoint_set_commands): Change type of
7908 "commands". Update.
7909 (do_map_commands_command, update_dprintf_command_list)
7910 (create_tracepoint_from_upload): Update.
7911
ffc2605c
TT
79122017-04-12 Tom Tromey <tom@tromey.com>
7913
7914 * tracepoint.c (scope_info): Update.
7915 * spu-tdep.c (spu_catch_start): Update.
7916 * python/python.c (gdbpy_decode_line): Update.
7917 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7918 * python/py-breakpoint.c (bppy_init): Update.
7919 * probe.c (parse_probes): Update.
7920 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7921 * location.h (event_location_deleter): New struct.
7922 (event_location_up): New typedef.
7923 (new_linespec_location, new_address_location, new_probe_location)
7924 (new_explicit_location, copy_event_location)
7925 (string_to_event_location, string_to_event_location_basic)
7926 (string_to_explicit_location): Update return type.
7927 (make_cleanup_delete_event_location): Remove.
7928 * location.c (new_linespec_location, new_address_location)
7929 (new_probe_location, new_explicit_location, copy_event_location):
7930 Return event_location_up.
7931 (delete_event_location_cleanup)
7932 (make_cleanup_delete_event_location): Remove.
7933 (string_to_explicit_location, string_to_event_location_basic)
7934 (string_to_event_location): Return event_location_up.
7935 * linespec.c (canonicalize_linespec, event_location_to_sals)
7936 (decode_line_with_current_source)
7937 (decode_line_with_last_displayed, decode_objc): Update.
7938 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7939 * completer.c (location_completer): Update.
7940 * cli/cli-cmds.c (edit_command, list_command): Update.
7941 * breakpoint.c (create_overlay_event_breakpoint)
7942 (create_longjmp_master_breakpoint)
7943 (create_std_terminate_master_breakpoint)
7944 (create_exception_master_breakpoint)
7945 (create_thread_event_breakpoint): Update.
7946 (init_breakpoint_sal): Update. Remove some dead code.
7947 (create_breakpoint_sal): Change type of "location". Update.
7948 (create_breakpoints_sal, create_breakpoint, break_command_1)
7949 (dprintf_command, break_range_command, until_break_command)
7950 (init_ada_exception_breakpoint)
7951 (strace_marker_create_sals_from_location)
7952 (update_static_tracepoint, trace_command, ftrace_command)
7953 (strace_command, create_tracepoint_from_upload): Update.
7954 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7955 * ax-gdb.c (agent_command_1): Update.
7956
8f10c932
PA
79572017-04-12 Pedro Alves <palves@redhat.com>
7958
7959 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7960 * configure.tgt: Handle i[34567]86-*-go32* and
7961 i[34567]86-*-msdosdjgpp*.
7962 * i386-tdep.c (i386_svr4_reg_to_regnum):
7963 Make extern.
7964 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7965 i386-go32-tdep.c.
7966 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7967 * i386-go32-tdep.c: New file.
7968 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7969 declarations.
7970
0a31ccfb
SM
79712017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7972
7973 * aix-thread.c (pd_status2str): Change return type to const char *.
7974
e9bb3fbb
PA
79752017-04-12 Pedro Alves <palves@redhat.com>
7976
7977 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7978 calls to set_gdbarch_gnu_triplet_regexp.
7979
53375380
PA
79802017-04-12 Pedro Alves <palves@redhat.com>
7981
7982 PR gdb/21323
7983 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7984 New enum value.
7985 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7986 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7987 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7988 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7989 * gdbarch.h, gdbarch.c: Regenerate.
7990 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7991 gdbarch_wchar_bit and gdbarch_wchar_signed.
7992 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7993 * arm-tdep.c (arm_gdbarch_init): Likewise.
7994 * avr-tdep.c (avr_gdbarch_init): Likewise.
7995 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7996 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7997 * i386-tdep.c (i386_go32_init_abi): Likewise.
7998 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7999 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8000 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8001 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8002 * sh-tdep.c (sh_gdbarch_init): Likewise.
8003 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8004 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8005 * windows-tdep.c (windows_init_abi): Likewise.
8006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8007
53e710ac
PA
80082017-04-12 Pedro Alves <palves@redhat.com>
8009
8010 PR c++/21323
8011 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8012 cplus_primitive_type_char32_t>: New enum values.
8013 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8014 and cplus_primitive_type_char32_t.
8015 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8016 32, use the archtecture's built-in type for char16_t and char32_t,
8017 respectively. Otherwise, fallback to init_integer_type as before,
8018 but make the type unsigned, and issue a complaint.
8019 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8020
ab0538b8
AH
80212017-04-12 Alan Hayward <alan.hayward@arm.com>
8022
5e0e0422 8023 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8024 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8025
5430098f
SDJ
80262017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8027
8028 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8029 'const char *'.
8030
7c5ded6a
SDJ
80312017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8032
8033 * common/common-utils.c (free_vector_argv): New function.
8034 * common/common-utils.h: Include <vector>.
8035 (free_vector_argv): New prototype.
8036 * darwin-nat.c (darwin_create_inferior): Rewrite function
8037 prototype in order to constify "exec_file" and accept a
8038 "std::string" for "allargs".
8039 * fork-child.c: Include <vector>.
8040 (breakup_args): Rewrite function, using C++.
8041 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8042 and accept "std::string" for "allargs". Update the code to
8043 calculate "argv" based on "allargs". Update calls to "exec_fun"
8044 and "execvp".
8045 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8046 order to constify "exec_file" and accept a "std::string" for
8047 "allargs".
8048 * go32-nat.c (go32_create_inferior): Likewise.
8049 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8050 * infcmd.c (run_command_1): Constify "exec_file". Use
8051 "std::string" for inferior arguments.
8052 * inferior.h (fork_inferior): Update prototype.
8053 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8054 prototype in order to constify "exec_file" and accept a
8055 "std::string" for "allargs".
8056 * nto-procfs.c (procfs_create_inferior): Likewise.
8057 * procfs.c (procfs_create_inferior): Likewise.
8058 * remote-sim.c (gdbsim_create_inferior): Likewise.
8059 * remote.c (extended_remote_run): Update code to accept
8060 "std::string" as argument.
8061 (extended_remote_create_inferior): Rewrite function prototype in
8062 order to constify "exec_file" and accept a "std::string" for
8063 "allargs".
8064 * rs6000-nat.c (super_create_inferior): Likewise.
8065 (rs6000_create_inferior): Likewise.
8066 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8067 * windows-nat.c (windows_create_inferior): Likewise.
8068
ae0eee42
PA
80692017-04-11 Pedro Alves <palves@redhat.com>
8070
8071 * thread.c: Fix whitespace throughout.
8072
a6acac06
PR
80732017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8074
8075 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8076
64403bd1
AH
80772017-04-11 Alan Hayward <alan.hayward@arm.com>
8078
8079 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8080
a5bef50f
SDJ
80812017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8082
8083 PR gdb/21364
8084 * osdata.c (info_osdata): Check if 'type' is an empty string
8085 instead of NULL.
8086
9295a5a9
PA
80872017-04-10 Pedro Alves <palves@redhat.com>
8088
8089 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8090 (ptid_to_global_thread_id, in_thread_list)
8091 (do_captured_list_thread_ids, set_resumed, set_running)
8092 (set_executing, set_stop_requested, finish_thread_state)
8093 (validate_registers_access, can_access_registers_ptid)
8094 (print_thread_info_1, switch_to_thread)
8095 (do_restore_current_thread_cleanup)
8096 (make_cleanup_restore_current_thread, thread_command)
8097 (thread_name_command): Use operator== instead of ptid_equal.
8098
996812e3
PA
80992017-04-10 Pedro Alves <palves@redhat.com>
8100
8101 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8102 (current_thread_cleanup_chain): Delete.
8103 (restore_current_thread_cleanup_dtor)
8104 (make_cleanup_restore_current_thread): Remove references to
8105 current_thread_cleanup_chain.
8106
845b344f
AH
81072017-04-10 Alan Hayward <alan.hayward@arm.com>
8108
8109 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8110 REG_UNKNOWN.
8111
803bdfe4
YQ
81122017-04-10 Yao Qi <yao.qi@linaro.org>
8113
8114 PR gdb/19942
8115 * gdbthread.h (thread_info::deletable): New method.
8116 (thread_info::incref): New method.
8117 (thread_info::decref): New method.
8118 (thread_info::refcount): Move it to private.
8119 * infrun.c (save_stop_context): Call inc_refcount.
8120 (release_stop_context_cleanup): Likewise.
8121 * thread.c (set_thread_exited): New function.
8122 (init_thread_list): Delete "tp" only it is deletable, otherwise
8123 call set_thread_exited.
8124 (delete_thread_1): Call set_thread_exited.
8125 (current_thread_cleanup) <inferior_pid>: Remove.
8126 <thread>: New field.
8127 (restore_current_thread_ptid_changed): Removed.
8128 (do_restore_current_thread_cleanup): Adjust.
8129 (restore_current_thread_cleanup_dtor): Don't call
8130 find_thread_ptid.
8131 (set_thread_refcount): Use dec_refcount.
8132 (make_cleanup_restore_current_thread): Adjust.
8133 (thread_apply_all_command): Call inc_refcount.
8134 (_initialize_thread): Don't call
8135 observer_attach_thread_ptid_changed.
8136
8c25b497
YQ
81372017-04-10 Yao Qi <yao.qi@linaro.org>
8138
8139 * thread.c (delete_thread_1): Hoist code on marking thread as
8140 exited.
8141
8473b447
SM
81422017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8143
8144 * windows-nat.c (windows_detach): Initialize ptid with
8145 minus_one_ptid.
8146
6670ec13
SM
81472017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8148
8149 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8150
ba2f91bb
AH
81512017-04-07 Alan Hayward <alan.hayward@arm.com>
8152
8153 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8154 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8155 (bfin_pseudo_register_write): Likewise
8156
436252de
SM
81572017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8158
8159 * common/ptid.h (struct ptid): Change to...
8160 (class ptid_t): ... this.
8161 <ptid_t>: New constructors.
8162 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8163 matches>: New methods.
8164 <make_null, make_minus_one>: New static methods.
8165 <pid>: Rename to...
8166 <m_pid>: ...this.
8167 <lwp>: Rename to...
8168 <m_lwp>: ...this.
8169 <tid>: Rename to...
8170 <m_tid>: ...this.
8171 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8172 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8173 as references, move comment to class ptid_t.
8174 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8175 ptid_t static methods.
8176 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8177 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8178 Take ptid arguments as references, implement using ptid_t methods.
8179 * unittests/ptid-selftests.c: New file.
8180 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8181 unittests/ptid-selftests.c.
8182 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8183
0dedf377
TP
81842017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8185
8186 * python/python.c (python_run_simple_file): Cast mode literal to
8187 non-const char pointer as expected by PyFile_FromString.
8188
4e9868d4
SM
81892017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8190
8191 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8192 minus_one_ptid and null_ptid.
8193
9bf2a700
PA
81942017-04-05 Pedro Alves <palves@redhat.com>
8195
8196 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8197 * configure: Regenerate.
8198
a121b7c1
PA
81992017-04-05 Pedro Alves <palves@redhat.com>
8200
8201 * ada-exp.y (yyerror): Constify.
8202 * ada-lang.c (bound_name, get_selections)
8203 (ada_variant_discrim_type)
8204 (ada_variant_discrim_name, ada_value_struct_elt)
8205 (ada_lookup_struct_elt_type, is_unchecked_variant)
8206 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8207 (catch_ada_exception_command_split)
8208 (catch_ada_assert_command_split, catch_assert_command)
8209 (ada_op_name): Constify.
8210 * ada-lang.h (ada_yyerror, get_selections)
8211 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8212 * arc-tdep.c (arc_print_frame_cache): Constify.
8213 * arm-tdep.c (arm_skip_stub): Constify.
8214 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8215 (gen_aggregate_elt_ref): Constify.
8216 * bcache.c (print_bcache_statistics): Constify.
8217 * bcache.h (print_bcache_statistics): Constify.
8218 * break-catch-throw.c (catch_exception_command_1):
8219 * breakpoint.c (struct ep_type_description::description):
8220 Constify.
8221 (add_solib_catchpoint): Constify.
8222 (catch_fork_command_1): Add cast.
8223 (add_catch_command): Constify.
8224 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8225 Constify.
8226 * bsd-uthread.c (bsd_uthread_state): Constify.
8227 * buildsym.c (patch_subfile_names): Constify.
8228 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8229 Constify.
8230 * c-exp.y (yyerror): Constify.
8231 (token::oper): Constify.
8232 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8233 * c-varobj.c (cplus_describe_child): Constify.
8234 * charset.c (find_charset_names): Add cast.
8235 (find_charset_names): Constify array and add const_cast.
8236 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8237 (edit_command): Constify.
8238 * cli/cli-decode.c (lookup_cmd): Constify.
8239 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8240 Constify.
8241 (struct dump_context): Constify.
8242 (add_dump_command, restore_command): Constify.
8243 * cli/cli-script.c (get_command_line): Constify.
8244 * cli/cli-script.h (get_command_line): Constify.
8245 * cli/cli-utils.c (check_for_argument): Constify.
8246 * cli/cli-utils.h (check_for_argument): Constify.
8247 * coff-pe-read.c (struct read_pe_section_data): Constify.
8248 * command.h (lookup_cmd): Constify.
8249 * common/print-utils.c (decimal2str): Constify.
8250 * completer.c (gdb_print_filename): Constify.
8251 * corefile.c (set_gnutarget): Constify.
8252 * cp-name-parser.y (yyerror): Constify.
8253 * cp-valprint.c (cp_print_class_member): Constify.
8254 * cris-tdep.c (cris_register_name, crisv32_register_name):
8255 Constify.
8256 * d-exp.y (yyerror): Constify.
8257 (struct token::oper): Constify.
8258 * d-lang.h (d_yyerror): Constify.
8259 * dbxread.c (struct header_file_location::name): Constify.
8260 (add_old_header_file, add_new_header_file, last_function_name)
8261 (dbx_next_symbol_text, add_bincl_to_list)
8262 (find_corresponding_bincl_psymtab, set_namestring)
8263 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8264 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8265 * defs.h (command_line_input, print_address_symbolic)
8266 (deprecated_readline_begin_hook): Constify.
8267 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8268 Constify.
8269 * event-top.c (handle_line_of_input): Constify and add cast.
8270 * exceptions.c (catch_errors): Constify.
8271 * exceptions.h (catch_errors): Constify.
8272 * expprint.c (print_subexp_standard, op_string, op_name)
8273 (op_name_standard, dump_raw_expression, dump_raw_expression):
8274 * expression.h (op_name, op_string, dump_raw_expression):
8275 Constify.
8276 * f-exp.y (yyerror): Constify.
8277 (struct token::oper): Constify.
8278 (struct f77_boolean_val::name): Constify.
8279 * f-lang.c (f_word_break_characters): Constify.
8280 * f-lang.h (f_yyerror): Constify.
8281 * fork-child.c (fork_inferior): Add cast.
8282 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8283 (new_variant): Constify.
8284 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8285 * gdbarch.c: Regenerate.
8286 * gdbcore.h (set_gnutarget): Constify.
8287 * go-exp.y (yyerror): Constify.
8288 (token::oper): Constify.
8289 * go-lang.h (go_yyerror): Constify.
8290 * go32-nat.c (go32_sysinfo): Constify.
8291 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8292 * guile/scm-cmd.c (cmdscm_function): Constify.
8293 * guile/scm-param.c (pascm_param_value): Constify.
8294 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8295 (h8300sx_register_name): Constify.
8296 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8297 Constify.
8298 * ia64-tdep.c (ia64_register_names): Constify.
8299 * infcmd.c (construct_inferior_arguments): Constify.
8300 (path_command, attach_post_wait): Constify.
8301 * language.c (show_range_command, show_case_command)
8302 (unk_lang_error): Constify.
8303 * language.h (language_defn::la_error)
8304 (language_defn::la_name_of_this): Constify.
8305 * linespec.c (decode_line_2): Constify.
8306 * linux-thread-db.c (thread_db_err_str): Constify.
8307 * lm32-tdep.c (lm32_register_name): Constify.
8308 * m2-exp.y (yyerror): Constify.
8309 * m2-lang.h (m2_yyerror): Constify.
8310 * m32r-tdep.c (m32r_register_names): Constify and make static.
8311 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8312 * m88k-tdep.c (m88k_register_name): Constify.
8313 * macroexp.c (appendmem): Constify.
8314 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8315 (upgrade_type, parse_external, parse_partial_symbols)
8316 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8317 (new_symbol): Constify.
8318 * memattr.c (mem_info_command): Constify.
8319 * mep-tdep.c (register_name_from_keyword): Constify.
8320 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8321 Constify.
8322 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8323 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8324 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8325 cast.
8326 (mi_execute_async_cli_command): Constify.
8327 * mips-tdep.c (mips_register_name): Constify.
8328 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8329 (am33_register_name, am33_2_register_name)
8330 * moxie-tdep.c (moxie_register_names): Constify.
8331 * nat/linux-osdata.c (osdata_type): Constify fields.
8332 * nto-tdep.c (nto_parse_redirection): Constify.
8333 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8334 (lookup_child_selector): Constify.
8335 (objc_methcall::name): Constify.
8336 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8337 (lookup_struct_typedef): Constify.
8338 * objfiles.c (pc_in_section): Constify.
8339 * objfiles.h (pc_in_section): Constify.
8340 * p-exp.y (struct token::oper): Constify.
8341 (yyerror): Constify.
8342 * p-lang.h (pascal_yyerror): Constify.
8343 * parser-defs.h (op_name_standard): Constify.
8344 (op_print::string): Constify.
8345 (exp_descriptor::op_name): Constify.
8346 * printcmd.c (print_address_symbolic): Constify.
8347 * psymtab.c (print_partial_symbols): Constify.
8348 * python/py-breakpoint.c (stop_func): Constify.
8349 (bppy_get_expression): Constify.
8350 * python/py-cmd.c (cmdpy_completer::name): Constify.
8351 (cmdpy_function): Constify.
8352 * python/py-event.c (evpy_add_attribute)
8353 (gdbpy_initialize_event_generic): Constify.
8354 * python/py-event.h (evpy_add_attribute)
8355 (gdbpy_initialize_event_generic): Constify.
8356 * python/py-evts.c (add_new_registry): Constify.
8357 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8358 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8359 * python/py-inferior.c (get_buffer): Add cast.
8360 * python/py-param.c (parm_constant::name): Constify.
8361 * python/py-unwind.c (fprint_frame_id): Constify.
8362 * python/python.c (gdbpy_parameter_value): Constify.
8363 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8364 * remote.c (memory_packet_config::name): Constify.
8365 (show_packet_config_cmd, remote_write_bytes)
8366 (remote_buffer_add_string):
8367 * reverse.c (exec_reverse_once): Constify.
8368 * rs6000-tdep.c (variant::name, variant::description): Constify.
8369 * rust-exp.y (rustyyerror): Constify.
8370 * rust-lang.c (rust_op_name): Constify.
8371 * rust-lang.h (rustyyerror): Constify.
8372 * serial.h (serial_ops::name): Constify.
8373 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8374 (sh_sh3e_register_name, sh_sh2e_register_name)
8375 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8376 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8377 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8378 (sh_sh4al_dsp_register_name): Constify.
8379 * sh64-tdep.c (sh64_register_name): Constify.
8380 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8381 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8382 * stabsread.c (patch_block_stabs, read_type_number)
8383 (ref_map::stabs, ref_add, process_reference)
8384 (symbol_reference_defined, define_symbol, define_symbol)
8385 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8386 (read_one_struct_field, read_struct_fields, read_baseclasses)
8387 (read_tilde_fields, read_struct_type, read_array_type)
8388 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8389 (read_huge_number, read_range_type, read_args, common_block_start)
8390 (find_name_end): Constify.
8391 * stabsread.h (common_block_start, define_symbol)
8392 (process_one_symbol, symbol_reference_defined, ref_add):
8393 * symfile.c (get_section_index, add_symbol_file_command):
8394 * symfile.h (get_section_index): Constify.
8395 * target-descriptions.c (tdesc_type::name): Constify.
8396 (tdesc_free_type): Add cast.
8397 * target.c (find_default_run_target):
8398 (add_deprecated_target_alias, find_default_run_target)
8399 (target_announce_detach): Constify.
8400 (do_option): Constify.
8401 * target.h (add_deprecated_target_alias): Constify.
8402 * thread.c (print_thread_info_1): Constify.
8403 * top.c (deprecated_readline_begin_hook, command_line_input):
8404 Constify.
8405 (init_main): Add casts.
8406 * top.h (handle_line_of_input): Constify.
8407 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8408 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8409 (tfind_command): Rename to ...
8410 (tfind_command_1): ... this and constify.
8411 (tfind_command): New function.
8412 (tfind_end_command, tfind_start_command): Adjust.
8413 (encode_source_string): Constify.
8414 * tracepoint.h (encode_source_string): Constify.
8415 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8416 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8417 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8418 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8419 * tui/tui-win.c (parse_scrolling_args): Constify.
8420 * tui/tui-windata.c (tui_erase_data_content): Constify.
8421 * tui/tui-windata.h (tui_erase_data_content): Constify.
8422 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8423 * tui/tui.c (tui_enable): Add cast.
8424 * utils.c (defaulted_query): Constify.
8425 (init_page_info): Add cast.
8426 (puts_debug, subset_compare): Constify.
8427 * utils.h (subset_compare): Constify.
8428 * varobj.c (varobj_format_string): Constify.
8429 * varobj.h (varobj_format_string): Constify.
8430 * vax-tdep.c (vax_register_name): Constify.
8431 * windows-nat.c (windows_detach): Constify.
8432 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8433 * xml-support.c (gdb_xml_end_element): Constify.
8434 * xml-tdesc.c (tdesc_start_reg): Constify.
8435 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8436 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8437 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8438
995816ba
PA
84392017-04-05 Pedro Alves <palves@redhat.com>
8440
8441 * proc-api.c (struct trans): Constify.
8442 (procfs_note): Constify.
8443 * proc-events.c (struct trans, syscall_table):
8444 * proc-flags.c (struct trans): Constify.
8445 * proc-utils.h (procfs_note): Constify.
8446 * proc-why.c (struct trans): Constify.
8447 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8448 (procfs_detach): Constify.
8449 * sol-thread.c (struct string_map): Constify.
8450 (td_err_string, td_state_string): Constify.
8451
3e83a920
PA
84522017-04-05 Pedro Alves <palves@redhat.com>
8453
8454 * proc-api.c (procfs_filename): Don't initialize
8455 procfs_filename.
8456 (prepare_to_trace): Assume procfs_filename is non-NULL.
8457 (_initialize_proc_api): Give procfs_filename a default value here.
8458
63160a43
PA
84592017-04-05 Pedro Alves <palves@redhat.com>
8460
8461 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8462 'cond_string' parameter.
8463 (extract_exception_regexp): Constify 'string' parameter.
8464 (catch_exception_command_1): Constify.
8465 * breakpoint.c (init_catchpoint)
8466 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8467 parameter.
8468 (ep_parse_optional_if_clause, catch_fork_command_1)
8469 (catch_exec_command_1): Constify.
8470 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8471 parameter.
8472 (ep_parse_optional_if_clause): Constify.
8473 * cli/cli-utils.c (remove_trailing_whitespace)
8474 (check_for_argument): Constify.
8475 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8476 non-const overload.
8477 (check_for_argument): Likewise.
8478
9b2eba3d
PA
84792017-04-05 Pedro Alves <palves@redhat.com>
8480
8481 * event-top.c (command_line_handler): Add cast to execute_command
8482 call.
8483 * record-btrace.c (cmd_record_btrace_bts_start)
8484 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8485 (cmd_record_btrace_start): Add cast to execute_command call.
8486 * record-full.c (record_full_goto_insn):
8487 * record.c (record_start, record_stop): Add cast to
8488 execute_command_to_string calls.
8489 (cmd_record_start): Add cast to execute_command calls.
8490
2adadf51
PA
84912017-04-05 Pedro Alves <palves@redhat.com>
8492
8493 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8494 static inline function.
8495 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8496 array and use gdb_PyArg_ParseTupleAndKeywords.
8497 * python/py-cmd.c (cmdpy_init): Likewise.
8498 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8499 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8500 (infpy_search_memory): Likewise.
8501 * python/py-objfile.c (objfpy_add_separate_debug_file)
8502 (gdbpy_lookup_objfile): Likewise.
8503 * python/py-symbol.c (gdbpy_lookup_symbol)
8504 (gdbpy_lookup_global_symbol): Likewise.
8505 * python/py-type.c (gdbpy_lookup_type): Likewise.
8506 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8507 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8508 Likewise.
8509
0d1f4ceb
PA
85102017-04-05 Pedro Alves <palves@redhat.com>
8511
8512 * python/python-internal.h (gdb_PyGetSetDef): New type.
8513 * python/py-block.c (block_object_getset)
8514 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8515 * python/py-event.c (event_object_getset)
8516 (finish_breakpoint_object_getset): Likewise.
8517 * python/py-inferior.c (inferior_object_getset): Likewise.
8518 * python/py-infthread.c (thread_object_getset): Likewise.
8519 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8520 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8521 * python/py-objfile.c (objfile_getset): Likewise.
8522 * python/py-progspace.c (pspace_getset): Likewise.
8523 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8524 Likewise.
8525 * python/py-record.c (recpy_record_getset): Likewise.
8526 * python/py-symbol.c (symbol_object_getset): Likewise.
8527 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8528 Likewise.
8529 * python/py-type.c (type_object_getset, field_object_getset):
8530 Likewise.
8531 * python/py-value.c (value_object_getset): Likewise.
8532
4d759979
PA
85332017-04-05 Pedro Alves <palves@redhat.com>
8534
8535 * python/python-internal.h (gdb_PyObject_CallMethod)
8536 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8537 New functions.
8538 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8539 (PySys_GetObject, PySys_SetPath): New macros.
8540
fdf9e36f
PA
85412017-04-05 Pedro Alves <palves@redhat.com>
8542
8543 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8544 info_osdata_command.
8545 * osdata.c (info_osdata_command): Rename to ...
8546 (info_osdata): ... this. Constify 'type' parameter, and remove
8547 the 'from_tty' parameter. Accept NULL TYPE.
8548 (info_osdata_command): New function.
8549 * osdata.h (info_osdata_command): Remove declaration.
8550 (info_osdata): New declaration.
8551
9f33b8b7
PA
85522017-04-05 Pedro Alves <palves@redhat.com>
8553
8554 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8555 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8556 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8557 parameter.
8558 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8559 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8560 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8561 parameter.
8562 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8563 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8564 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8565 (mi_cmd_file_list_exec_source_files)
8566 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8567 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8568 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8569 parameter.
8570 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8571 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8572 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8573 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8574 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8575 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8576 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8577 'command' parameter.
8578 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8579 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8580 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8581 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8582 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8583 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8584 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8585 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8586 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8587 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8588 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8589 parameter.
8590 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8591 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8592 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8593 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8594 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8595 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8596 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8597 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8598 (mi_cmd_data_list_changed_registers)
8599 (mi_cmd_data_write_register_values)
8600 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8601 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8602 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8603 (mi_cmd_list_features, mi_cmd_list_target_features)
8604 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8605 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8606 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8607 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8608 (mi_cmd_trace_frame_collected): Constify 'command'
8609 parameter.
8610 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8611 'command' parameter.
8612
67cb5b2d
PA
86132017-04-05 Pedro Alves <palves@redhat.com>
8614
8615 * ada-lang.c (ada_completer_word_break_characters): Now a const
8616 array.
8617 (ada_get_gdb_completer_word_break_characters): Constify.
8618 * completer.c (gdb_completer_command_word_break_characters)
8619 (gdb_completer_file_name_break_characters)
8620 (gdb_completer_quote_characters): Now const arrays.
8621 (get_gdb_completer_quote_characters): Constify.
8622 (set_rl_completer_word_break_characters): New function.
8623 (set_gdb_completion_word_break_characters)
8624 (complete_line_internal): Use it.
8625 * completer.h (get_gdb_completer_quote_characters): Constify.
8626 (set_rl_completer_word_break_characters): Declare.
8627 * f-lang.c (f_word_break_characters): Constify.
8628 * language.c (default_word_break_characters): Constify.
8629 * language.h (language_defn::la_word_break_characters): Constify.
8630 (default_word_break_characters): Constify.
8631 * top.c (init_main): Use set_rl_completer_word_break_characters.
8632
7a114964
PA
86332017-04-05 Pedro Alves <palves@redhat.com>
8634
8635 * aix-thread.c (aix_thread_pid_to_str)
8636 (aix_thread_extra_thread_info): Constify.
8637 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8638 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8639 (bsd_uthread_pid_to_str): Constify.
8640 * corelow.c (core_pid_to_str): Constify.
8641 * darwin-nat.c (darwin_pid_to_str): Constify.
8642 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8643 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8644 Constify.
8645 * gnu-nat.c (gnu_pid_to_str): Constify.
8646 * go32-nat.c (go32_pid_to_str): Constify.
8647 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8648 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8649 * inferior.c (inferior_pid_to_str): Constify.
8650 * linux-nat.c (linux_nat_pid_to_str): Constify.
8651 * linux-tdep.c (linux_core_pid_to_str): Constify.
8652 * linux-thread-db.c (thread_db_pid_to_str)
8653 (thread_db_extra_thread_info): Constify.
8654 * nto-tdep.c (nto_extra_thread_info): Constify.
8655 * nto-tdep.h (nto_extra_thread_info): Constify.
8656 * obsd-nat.c (obsd_pid_to_str): Constify.
8657 * procfs.c (procfs_pid_to_str): Constify.
8658 * ravenscar-thread.c (ravenscar_extra_thread_info)
8659 (ravenscar_pid_to_str): Constify.
8660 * remote-sim.c (gdbsim_pid_to_str): Constify.
8661 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8662 Constify.
8663 * sol-thread.c (solaris_pid_to_str): Constify.
8664 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8665 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8666 * target.c (default_pid_to_str, target_pid_to_str)
8667 (normal_pid_to_str, default_pid_to_str): Constify.
8668 * target.h (target_ops::to_pid_to_str)
8669 (target_ops::to_extra_thread_info): Constify.
8670 (target_pid_to_str, normal_pid_to_str): Constify.
8671 * windows-nat.c (windows_pid_to_str): Constify.
8672 * gdbarch.sh (core_pid_to_str): Constify.
8673 * target-delegates.c: Regenerate.
8674 * gdbarch.h, gdbarch.c: Regenerate.
8675
69bbf465
PA
86762017-04-05 Pedro Alves <palves@redhat.com>
8677
8678 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8679 the memory of the temporary warning_pre_print override.
8680 * utils.c (warning_pre_print): Constify.
8681 * utils.h (warning_pre_print): Constify.
8682
be47f9e8
PA
86832017-04-05 Pedro Alves <palves@redhat.com>
8684
8685 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8686 (shell_command): New function.
8687 (make_command): Use std::string.
8688 (init_cli_cmds): Register shell_command instead of shell_escape.
8689
bde6261a
PA
86902017-04-05 Pedro Alves <palves@redhat.com>
8691
8692 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8693 * tracepoint.c (default_collect): Don't initialize.
8694
b38ef47f
PA
86952017-04-05 Pedro Alves <palves@redhat.com>
8696
8697 * macroexp.c (macro_buffer::shared): Now a bool.
8698 (init_buffer): Update.
8699 (init_shared_buffer): Constify 'addr' parameter.
8700 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8701 casts.
8702
f995bbe8
PA
87032017-04-05 Pedro Alves <palves@redhat.com>
8704
8705 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8706 * disasm.c (set_disassembler_options): Constify local.
8707 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8708
4a596fe2
SDJ
87092017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8710
8711 PR gdb/21352
8712 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8713 option.
8714
2cad08ea
YQ
87152017-04-05 Yao Qi <yao.qi@linaro.org>
8716
8717 * frame.c (frame_unwind_register_unsigned): Call
8718 frame_unwind_register_value.
8719
55a98976
YQ
87202017-04-05 Yao Qi <yao.qi@linaro.org>
8721
8722 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8723 Use gdb_test_multiple, and don't match anchor.
8724
4ac40124
PA
87252017-04-05 Pedro Alves <palves@redhat.com>
8726
8727 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8728 (Write After Approval): Remove Simon Marchi.
8729
c053b654
PA
87302017-04-05 Pedro Alves <palves@redhat.com>
8731
8732 * common/gdb_optional.h (optional::optional): Make constexpr and
8733 initialize m_dummy.
8734
4c7bf4f9
JB
87352017-04-04 John Baldwin <jhb@FreeBSD.org>
8736
8737 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8738 (amd64fbsd_jmp_buf_reg_offset): Remove.
8739 (amd64fbsd_supply_uthread): Remove function.
8740 (amd64fbsd_collect_uthread): Remove function.
8741 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8742 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8743 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8744 (fbsd-nat.c): Update comment.
8745 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8746 (i386fbsd_jmp_buf_reg_offset): Remove.
8747 (i386fbsd_supply_uthread): Remove function.
8748 (i386fbsd_collect_uthread): Remove function.
8749 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8750
1e1a8bef
JB
87512017-04-04 John Baldwin <jhb@FreeBSD.org>
8752
8753 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8754 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8755 * NEWS: Mention that support for FreeBSD/alpha was removed.
8756 * alpha-fbsd-tdep.c: Delete file.
8757 * config/alpha/fbsd.mh: Delete file.
8758 * configure.host: Delete alpha*-*-freebsd* and
8759 alpha*-*-kfreebsd*-gnu.
8760 * configure.tgt: Delete alpha*-*-freebsd* and
8761 alpha*-*-kfreebsd*-gnu.
8762
49907934
JB
87632017-04-04 John Baldwin <jhb@FreeBSD.org>
8764
8765 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8766 amd64bsd_store_inferior_registers): Use ptid from regcache.
8767
6f77053d
PA
87682017-04-04 Pedro Alves <palves@redhat.com>
8769
8770 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8771 data fields, make them private and add "m_" prefixes.
8772 (lnp_state_machine::lnp_state_machine): New ctor.
8773 (record_line, check_line_address, handle_set_discriminator)
8774 (handle_set_address, handle_advance_pc, handle_special_opcode)
8775 (handle_advance_line, handle_set_file, handle_negate_stmt)
8776 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8777 (end_sequence, advance_line): New methods.
8778 (m_gdbarch, m_record_lines_p): New fields.
8779 (lnp_reader_state): Delete.
8780 (dwarf_record_line): Rename to ...
8781 (lnp_state_machine::record_line): ... adjust.
8782 (init_lnp_state_machine): Delete.
8783 (lnp_state_machine::lnp_state_machine): New.
8784 (check_line_address): Rename to ...
8785 (lnp_state_machine::check_line_address): This.
8786 (dwarf_decode_lines_1): Remove reference to "reader_state".
8787 Adjust lnp_state_machine having a non-default ctor. Use bool.
8788 State machine internal state manipulation moved to
8789 lnp_state_machine methods.
8790
9c541725
PA
87912017-04-04 Pedro Alves <palves@redhat.com>
8792
8793 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8794 unittests/offset-type-selftests.c.
8795 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8796 * common/offset-type.h: New file.
8797 * common/preprocessor.h: New file.
8798 * common/traits.h: New file.
8799 * common/valid-expr.h: New file.
8800 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8801 sect_offset and cu_offset strong typedefs throughout.
8802 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8803 typedefs throughout.
8804 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8805 sect_offset and cu_offset strong typedefs throughout.
8806 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8807 typedefs throughout.
8808 * gdbtypes.h: Include "common/offset-type.h".
8809 (cu_offset): Now an offset type (strong typedef) instead of a
8810 struct.
8811 (sect_offset): Likewise.
8812 (union call_site_parameter_u): Rename "param_offset" field to
8813 "param_cu_off".
8814 * unittests/offset-type-selftests.c: New file.
8815
ecfb656c
PA
88162017-04-04 Pedro Alves <palves@redhat.com>
8817
8818 * common/underlying.h: New file.
8819 * dwarf2read.c: Include "common/gdb_optional.h" and
8820 "common/underlying.h".
8821 (dir_index, file_name_index): New types.
8822 (file_entry): Use them.
8823 (file_entry::include): Use to_underlying.
8824 (line_header::add_file_name): Use dir_index.
8825 (read_formatted_entries): Use gdb::optional. Read form before
8826 writting to file_entry.
8827 (dwarf_decode_line_header): Use dir_index.
8828 (lnp_state_machine::current_file): Use to_underlying.
8829 (lnp_state_machine::file): Change type to file_name_index.
8830 (dwarf_record_line): Use to_underlying.
8831 (init_lnp_state_machine): Use file_name_index.
8832 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8833
d194f1fe
PA
88342017-04-04 Pedro Alves <palves@redhat.com>
8835
8836 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8837 operator bool, has_value and get methods.
8838
fff8551c
PA
88392017-04-04 Pedro Alves <palves@redhat.com>
8840
8841 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8842 fields.
8843 (line_header): Initialize all data fields. Change type of
8844 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8845 Change type of include_dirs to std::vector<const char *>. Remove
8846 num_include_dirs, include_dirs_size. Change type of file_names to
8847 std::vector<file_entry>. Remove num_file_names, file_names_size.
8848 (line_header::line_header): New.
8849 (line_header::add_include_dir, line_header::add_file_name): New
8850 methods.
8851 (line_header::include_dir_at): Remove NULL check.
8852 (line_header::file_name_at): Add const overload.
8853 (line_header_up): New unique_ptr typedef.
8854 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8855 std::vector. Remove free_line_header call.
8856 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8857 free_line_header call.
8858 (free_cu_line_header): Delete.
8859 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8860 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8861 Adjust to use std::vector.
8862 (free_line_header): Delete.
8863 (free_line_header_voidp): Use delete.
8864 (add_include_dir): Replace with ...
8865 (line_header::add_include_dir): ... this method. Use std::vector.
8866 (add_file_name): Replace with ...
8867 (line_header::add_file_name): ... this method. Use std::vector.
8868 (add_include_dir_stub): Delete.
8869 (read_formatted_entries): Remove memset.
8870 (dwarf_decode_line_header): Return a line_header_up instead of a
8871 raw pointer. Remove cleanup handling. Pass lambdas to
8872 read_formatted_entries. Adjust to use line_header methods.
8873 (dwarf_decode_lines_1): Adjust to use line_header methods.
8874 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8875 use std::vector.
8876
d62a8ae2
SM
88772017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8878
8879 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8880 instead of struct ptid.
8881
db3a1dc7
AH
88822017-05-04 Alan Hayward <alan.hayward@arm.com>
8883
8884 * frame.c (get_frame_register_bytes): Unwind using value.
8885 (put_frame_register_bytes): Likewise.
8886
b1b45502
IB
88872017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8888
8889 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8890 aggregate-like.
8891
ec13808e
JK
88922017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8893
8894 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8895
12316564
YQ
88962017-03-29 Yao Qi <yao.qi@linaro.org>
8897
8898 * gdbthread.h (struct thread_info): Declare constructor and
8899 destructor. Add some in-class member initializers.
8900 * thread.c (free_thread): Remove.
8901 (init_thread_list): Call delete instead of free_thread.
8902 (new_thread): Call thread_info constructor.
8903 (thread_info::thread_info): New function.
8904 (thread_info::~thread_info): New function.
8905 (delete_thread_1): Call delete instead of free_thread.
8906 (make_cleanup_restore_current_thread): Move tp and frame to
8907 inner block.
8908
fe5f7374
AK
89092017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8910
8911 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8912 (arc_skip_prologue): Likewise.
8913 (arc_make_frame_cache): Likewise.
8914 (arc_pv_get_operand): New function.
8915 (arc_is_in_prologue): Likewise.
8916 (arc_analyze_prologue): Likewise.
8917 (arc_print_frame_cache): Likewise.
8918 (MAX_PROLOGUE_LENGTH): New constant.
8919
eea78757
AK
89202017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8921
8922 * configure.tgt: Add arc-insn.o.
8923 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8924 (dump_arc_instruction_command): New function.
8925 (arc_fprintf_disasm): Likewise.
8926 (arc_disassemble_info): Likewise.
8927 (arc_insn_get_operand_value): Likewise.
8928 (arc_insn_get_operand_value_signed): Likewise.
8929 (arc_insn_get_memory_base_reg): Likewise.
8930 (arc_insn_get_memory_offset): Likewise.
8931 (arc_insn_get_branch_target): Likewise.
8932 (arc_insn_dump): Likewise.
8933 (arc_insn_get_linear_next_pc): Likewise.
8934 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8935 (arc_disassemble_info): Likewise.
8936 (arc_insn_get_branch_target): Likewise.
8937 (arc_insn_get_linear_next_pc): Likewise.
8938 * NEWS: Mention new "maint print arc arc-instruction".
8939
3be78afd
AK
89402017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8941
8942 * arc-tdep (maintenance_print_arc_list): New variable.
8943 (maintenance_print_arc_command): New function.
8944
296ec4fa
AK
89452017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8946
8947 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8948 Add "limm" and "reserved".
8949 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8950 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8951 * arc-tdep.h (arc_regnum): Likewise.
8952
f74f865e
MF
89532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8954
8955 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8956 for THREADPTR register.
8957 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8958 register.
8959 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8960 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8961 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8962
0d0bf81a
MF
89632017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8964
8965 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8966 registers above gdbarch_num_regs (gdbarch) as privileged in
8967 call0 ABI.
8968
0ce4291e
MF
89692017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8970
8971 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8972 for a single specified register or for all registers in
8973 a0_base..a0_base + C0_NREGS range.
8974 (supply_gregset_reg): Call regcache_raw_supply for a single
8975 specified register or for all registers in a0_base..a0_base +
8976 C0_NREGS range.
8977
c56054f9
MF
89782017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8979
8980 * arch/xtensa.h (C0_NREGS): Add definition.
8981 * xtensa-tdep.c (C0_NREGS): Remove definition.
8982
a4398628
MF
89832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8984
8985 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8986 Drop xtensa_default_isa initialization.
8987 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8988
8c43009f
PA
89892017-03-27 Pedro Alves <palves@redhat.com>
8990
8991 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8992 (file_entry::include_dir): New method.
8993 (line_header::include_dir_at, line_header::file_name_at): New
8994 methods.
8995 (setup_type_unit_groups, setup_type_unit_groups)
8996 (psymtab_include_file_name): Simplify using the new methods.
8997 (lnp_state_machine) <the_line_header>: New field.
8998 <file>: Add comment.
8999 (lnp_state_machine::current_file): New method.
9000 (dwarf_record_line): Simplify using the new methods.
9001 (init_lnp_state_machine): Initialize the "the_line_header" field.
9002 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9003 Simplify using the new methods.
9004
a7e80b9e
PA
90052017-03-27 Pedro Alves <palves@redhat.com>
9006
9007 * cp-name-parser.y (make_empty): Delete.
9008 (demangler_special, nested_name, ptr_operator, array_indicator)
9009 (direct_declarator, declarator_1): Use fill_comp instead of
9010 make_empty.
9011
21047726
PA
90122017-03-27 Pedro Alves <palves@redhat.com>
9013
9014 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9015 to ATTRIBUTE_PRINTF.
9016 * solib-target.c (library_list_start_list): Print "string" not
9017 "version".
9018 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9019 gdb_xml_error call.
9020
d721ba37
PA
90212017-03-27 Pedro Alves <palves@redhat.com>
9022
9023 * dwarf2read.c (struct file_and_directory): New.
9024 (dwarf2_get_dwz_file): Adjust to use std::string.
9025 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9026 (find_file_and_directory): Adjust to return a file_and_directory
9027 object.
9028 (read_file_scope): Adjust to use file_and_directory. Remove
9029 make_cleanup/do_cleanups calls.
9030 (open_and_init_dwp_file): Adjust to use std::string. Remove
9031 make_cleanup/do_cleanups calls.
9032 * python/python.c (do_start_initialization): Adjust to ldirname
9033 returning a std::string.
9034 * utils.c (ldirname): Now returns a std::string.
9035 * utils.h (ldirname): Change return type to std::string.
9036 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9037 returning a std::string.
9038 * xml-tdesc.c (file_read_description_xml): Likewise.
9039
ed771251
AH
90402017-03-24 Alan Hayward <alan.hayward@arm.com>
9041
9042 * regcache.c (regcache_debug_print_register): New function.
9043 * regcache.h (regcache_debug_print_register): New declaration.
9044 * target.c (debug_print_register): Remove.
9045 (target_fetch_registers): Call regcache_debug_print_register.
9046 (target_store_registers): Likewise.
9047
568c1b9f
PB
90482017-03-24 Pádraig Brady <pbrady@fb.com>
9049
9050 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9051 reference beyond the 'lh->include_dirs' array before accessing to
9052 it.
9053 (psymtab_include_file_name): Likewise.
9054 (dwarf_decode_lines_1): Likewise.
9055 (dwarf_decode_lines): Likewise.
9056 (file_file_name): Likewise.
9057
3e00d44f
SM
90582017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9059
9060 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9061 inferior_ptid.
9062 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9063 ps_lsetfpregs): Likewise.
9064 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9065 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9066 ps_lsetfpregs): Likewise.
9067 * target.c (target_fetch_registers, target_store_registers):
9068 Remove asserts.
9069
077ae656
AH
90702017-03-23 Alan Hayward <alan.hayward@arm.com>
9071
9072 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9073
1e2b521d
YQ
90742017-03-23 Yao Qi <yao.qi@linaro.org>
9075
9076 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9077 (_initialize_aarch64_tdep): Register it.
9078 (aarch64_record_load_store): Handle PRFM instruction.
9079 (aarch64_process_record_test): New function.
9080
33877125
YQ
90812017-03-23 Yao Qi <yao.qi@linaro.org>
9082
9083 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9084 indentation.
9085
a0eef940
YQ
90862017-03-23 Yao Qi <yao.qi@linaro.org>
9087
9088 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9089
3f2a3564
PR
90902017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9091
9092 python/python.c (do_start_initialization): Fix memory leak.
9093
b67aeab0
SM
90942017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9095
9096 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9097 using get_ptrace_pid.
9098 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9099 inferior_ptid.
9100 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9101 inferior_ptid instead of pid.
9102
ffdbe864
YQ
91032017-03-22 Yao Qi <yao.qi@linaro.org>
9104
9105 * aarch64-tdep.c: Wrap locally used classes in anonymous
9106 namespace.
9107 * arm-tdep.c: Likewise.
9108 * linespec.c: Likewise.
9109 * ui-out.c: Likewise.
9110
9d736fbf
JG
91112017-03-22 Jonah Graham <jonah@kichwacoders.com>
9112
9113 PR gdb/19637
9114 * python/lib/gdb/printer/bound_registers.py: Import sys.
9115
3de88e9a
SM
91162017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9117
9118 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9119 windows_thread_info parameter and use it instead of
9120 current_thread.
9121 (windows_fetch_inferior_registers): Don't set current_thread,
9122 pass the thread to do_windows_fetch_inferior_registers. Use
9123 ptid from regcache instead of inferior_ptid.
9124 (do_windows_store_inferior_registers): Add windows_thread_info
9125 parameter and use it instead of current_thread.
9126 (windows_store_inferior_registers): Don't set current_thread,
9127 pass the thread to do_windows_store_inferior_registers. Use
9128 ptid from regcache instead of inferior_ptid.
9129
0e7b8f61
SM
91302017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9131
9132 * ser-mingw.c (ser_windows_raw): Remove reference to
9133 struct serial::current_timeout.
9134
5badf10a
IR
91352017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9136
9137 PR tdep/20928
9138 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9139 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9140 (sparc64_fsr_type): Fix %fsr decoding.
9141
cee59b3f
TW
91422017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9143
9144 * python/py-record-btrace.c (btpy_insn_data): Change return type
9145 for Python 2.
9146
639a9038
SM
91472017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9148
9149 * spu-linux-nat.c (spu_fetch_inferior_registers,
9150 spu_store_inferior_registers): Use ptid from regcache, set and
9151 restore inferior_ptid.
9152 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9153 Likewise.
9154
bcc0c096
SM
91552017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9156
9157 * i386-linux-nat.c (fetch_register, store_register,
9158 i386_linux_fetch_inferior_registers,
9159 i386_linux_store_inferior_registers): Use ptid from regcache.
9160 * ia64-linux-nat.c (ia64_linux_fetch_register,
9161 ia64_linux_store_register): Likewise.
9162 * inf-ptrace.c (inf_ptrace_fetch_register,
9163 inf_ptrace_store_register): Likewise.
9164 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9165 m32r_linux_store_inferior_registers): Likewise.
9166 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9167 m68kbsd_store_inferior_registers): Likewise.
9168 * m68k-linux-nat.c (fetch_register, store_register,
9169 m68k_linux_fetch_inferior_registers,
9170 m68k_linux_store_inferior_registers): Likewise.
9171 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9172 m88kbsd_store_inferior_registers): Likewise.
9173 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9174 mips_fbsd_store_inferior_registers): Likewise.
9175 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9176 mips64_linux_regsets_store_registers): Likewise.
9177 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9178 mipsnbsd_store_inferior_registers): Likewise.
9179 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9180 mips64obsd_store_inferior_registers): Likewise.
9181 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9182 Likewise.
9183 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9184 ppcfbsd_store_inferior_registers): Likewise.
9185 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9186 ppc_linux_store_inferior_registers): Likewise.
9187 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9188 ppcnbsd_store_inferior_registers): Likewise.
9189 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9190 ppcobsd_store_registers): Likewise.
9191 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9192 Likewise.
9193 * ravenscar-thread.c (ravenscar_fetch_registers,
9194 ravenscar_store_registers, ravenscar_prepare_to_store):
9195 Likewise.
9196 * record-btrace.c (record_btrace_fetch_registers,
9197 record_btrace_store_registers, record_btrace_prepare_to_store):
9198 Likewise.
9199 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9200 Lookup inferior using ptid from regcache, instead of
9201 current_inferior.
9202 * remote.c (remote_fetch_registers, remote_store_registers): Use
9203 ptid from regcache.
9204 * rs6000-nat.c (fetch_register, store_register): Likewise.
9205 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9206 s390_linux_store_inferior_registers): Likewise.
9207 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9208 shnbsd_store_inferior_registers): Likewise.
9209 * sol-thread.c (sol_thread_fetch_registers,
9210 sol_thread_store_registers): Likewise.
9211 * sparc-nat.c (sparc_fetch_inferior_registers,
9212 sparc_store_inferior_registers): Likewise.
9213 * tilegx-linux-nat.c (fetch_inferior_registers,
9214 store_inferior_registers): Likewise.
9215 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9216 vaxbsd_store_inferior_registers): Likewise.
9217 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9218 store_xtregs): Likewise.
9219
c0f55cc6
AV
92202017-03-20 Artemiy Volkov <artemiyv@acm.org>
9221
9222 PR gdb/14441
9223 * NEWS: Mention support for rvalue references in GDB and python.
9224 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9225 supports both lvalue and rvalue references.
9226
15c0a2a9
AV
92272017-03-20 Artemiy Volkov <artemiyv@acm.org>
9228
9229 PR gdb/14441
9230 * gdbtypes.c (rank_one_type): Implement overloading
9231 resolution rules regarding rvalue references.
9232
aa006118
AV
92332017-03-20 Artemiy Volkov <artemiyv@acm.org>
9234
9235 PR gdb/14441
9236 * aarch64-tdep.c (aarch64_type_align)
9237 (aarch64_extract_return_value, aarch64_store_return_value): Change
9238 lvalue reference type checks to general reference type checks.
9239 * amd64-tdep.c (amd64_classify): Likewise.
9240 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9241 Likewise.
9242 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9243 (arm_store_return_value): Likewise.
9244 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9245 * c-typeprint.c (c_print_type): Likewise.
9246 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9247 (cplus_number_of_children, cplus_describe_child): Likewise.
9248 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9249 * completer.c (expression_completer): Likewise.
9250 * cp-support.c (make_symbol_overload_list_adl_namespace):
9251 Likewise.
9252 * darwin-nat-info.c (info_mach_region_command): Likewise.
9253 * dwarf2loc.c (entry_data_value_coerce_ref)
9254 (value_of_dwarf_reg_entry): Likewise.
9255 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9256 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9257 Likewise.
9258 * findvar.c (extract_typed_address, store_typed_address):
9259 Likewise.
9260 * gdbtypes.c (rank_one_type): Likewise.
9261 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9262 * infcall.c (value_arg_coerce): Likewise.
9263 * language.c (pointer_type): Likewise.
9264 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9265 Likewise.
9266 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9267 * mn10300-tdep.c (mn10300_type_align): Likewise.
9268 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9269 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9270 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9271 Likewise.
9272 * printcmd.c (print_formatted, x_command): Likewise.
9273 * python/py-type.c (typy_get_composite, typy_template_argument):
9274 Likewise.
9275 * python/py-value.c (valpy_referenced_value)
9276 (valpy_get_dynamic_type, value_has_field): Likewise.
9277 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9278 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9279 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9280 * spu-tdep.c (spu_scalar_value_p): Likewise.
9281 * symtab.c (lookup_symbol_aux): Likewise.
9282 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9283 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9284 Likewise.
9285 * valops.c (value_cast_pointers, value_cast)
9286 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9287 (value_struct_elt, value_struct_elt_bitpos)
9288 (value_find_oload_method_list, find_overload_match)
9289 (value_rtti_indirect_type): Likewise.
9290 * valprint.c (val_print_scalar_type_p, generic_val_print):
9291 Likewise.
9292 * value.c (value_actual_type, value_as_address, unpack_long)
9293 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9294 (coerce_ref): Likewise.
9295 * varobj.c (varobj_get_value_type): Likewise.
9296
3fcf899d
AV
92972017-03-20 Artemiy Volkov <artemiyv@acm.org>
9298
9299 PR gdb/14441
9300 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9301 table of constants.
9302 * python/lib/gdb/command/explore.py: Support exploring values
9303 of rvalue reference types.
9304 * python/lib/gdb/types.py: Implement get_basic_type() for
9305 rvalue reference types.
9306 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9307 constant.
9308 * python/py-value.c (valpy_getitem): Add an rvalue reference
9309 check.
9310 (valpy_reference_value): Add new parameter "refcode".
9311 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9312 New wrappers for valpy_reference_value().
9313 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9314 (gdbpy_invoke_xmethod): Likewise.
9315
4297a3f0
AV
93162017-03-20 Artemiy Volkov <artemiyv@acm.org>
9317
9318 PR gdb/14441
9319 * dwarf2read.c (process_die, read_type_die_1): Handle the
9320 DW_TAG_rvalue_reference_type DIE.
9321 (read_tag_reference_type): Add new parameter "refcode".
9322
e1cb3213
AV
93232017-03-20 Artemiy Volkov <artemiyv@acm.org>
9324
9325 PR gdb/14441
9326 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9327 (c_type_print_modifier, c_type_print_varspec_suffix)
9328 (c_type_print_base): Support printing rvalue reference types.
9329 * c-valprint.c (c_val_print, c_value_print): Support printing
9330 rvalue reference values.
9331
e4347c89
AV
93322017-03-20 Artemiy Volkov <artemiyv@acm.org>
9333
9334 PR gdb/14441
9335 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9336 typename.
9337 * cp-support.c (replace_typedefs): Handle
9338 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9339 * python/py-type.c (typy_lookup_type): Likewise.
9340
53cc15f5
AV
93412017-03-20 Artemiy Volkov <artemiyv@acm.org>
9342
9343 PR gdb/14441
9344 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9345 * parse.c (insert_type): Change assert statement.
9346 (follow_types): Handle rvalue reference types.
9347 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9348 constant.
9349
a65cfae5
AV
93502017-03-20 Artemiy Volkov <artemiyv@acm.org>
9351
9352 PR gdb/14441
9353 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9354 value_ref() interface.
9355 * c-valprint.c (c_value_print): Likewise.
9356 * infcall.c (value_arg_coerce): Likewise.
9357 * python/py-value.c (valpy_reference_value): Likewise.
9358 * valops.c (value_cast, value_reinterpret_cast)
9359 (value_dynamic_cast, typecmp): Likewise.
9360 (value_ref): Parameterize by kind of return value reference type.
9361 * value.h (value_ref): Add new parameter "refcode".
9362
3b224330
AV
93632017-03-20 Artemiy Volkov <artemiyv@acm.org>
9364
9365 PR gdb/14441
9366 * dwarf2read.c (read_tag_reference_type): Use
9367 lookup_lvalue_reference_type() instead of lookup_reference_type().
9368 * eval.c (evaluate_subexp_standard): Likewise.
9369 * f-exp.y: Likewise.
9370 * gdbtypes.c (make_reference_type, lookup_reference_type):
9371 Generalize with rvalue reference types.
9372 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9373 convenience wrappers for lookup_reference_type().
9374 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9375 reference kind parameter.
9376 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9377 wrappers for lookup_reference_type().
9378 * guile/scm-type.c (gdbscm_type_reference): Use
9379 lookup_lvalue_reference_type() instead of lookup_reference_type().
9380 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9381 * parse.c (follow_types): Likewise.
9382 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9383 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9384 Likewise.
9385 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9386 (gdbpy_invoke_xmethod): Likewise.
9387 * stabsread.c: Provide extra argument to make_reference_type()
9388 call.
9389 * valops.c (value_ref, value_rtti_indirect_type): Use
9390 lookup_lvalue_reference_type() instead of lookup_reference_type().
9391
f9aeb8d4
AV
93922017-03-20 Artemiy Volkov <artemiyv@acm.org>
9393
9394 PR gdb/14441
9395 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9396 (TYPE_IS_REFERENCE): New macro.
9397 (struct type): Add rvalue_reference_type field.
9398 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9399
51457a05
MAL
94002017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9401
9402 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9403 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9404 New function definition.
9405 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9406 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9407 New function declaration.
9408 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9409 * mi/mi-interp.h: New file.
9410 * solib.c (info_sharedlibrary_command): Replace for loop with
9411 ALL_SO_LIBS macro
9412 * solib.h (update_solib_list): New function declaration.
9413 (so_list_head): Move macro.
9414 * solist.h (ALL_SO_LIBS): New macro.
9415
e696b3ad
MAL
94162017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9417
9418 * infcmd.c (post_create_inferior): Remove unused argument in
9419 call to solib_add.
9420 * remote.c (remote_start_remote): Likewise.
9421 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9422 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9423 (enable_break): Likewise.
9424 * solib.c (update_solib_list): Remove unused target argument
9425 and its documentation.
9426 (solib_add): Remove unused target argument. Remove unused
9427 argument in call to update_solib_list.
9428 (info_sharedlibrary_command): Remove unused argument in call
9429 to update_solib_list.
9430 (sharedlibrary_command): Remove unused argument in call to
9431 solib_add.
9432 (handle_solib_event): Likewise.
9433 (reload_shared_libraries): Likewise.
9434 * solib.h (solib_add): Remove unused target argument.
9435
dcb84eda
AA
94362017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9437
9438 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9439 (s390_displaced_step_fixup): Cover relative branches with the
9440 default fixup handling. This fixes lack of support for some
9441 relative branch instructions.
9442
d9cb6cdc
SM
94432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9444
9445 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9446 ptid from regcache.
9447
1afaf9f4
SM
94482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9449
9450 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9451 i386_darwin_store_inferior_registers): Use ptid from regcache.
9452
aac12e24
SM
94532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9454
9455 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9456 i386bsd_store_inferior_registers): Use ptid from regcache.
9457
bbe1eef1
SM
94582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9459
9460 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9461 hppaobsd_store_registers): Use ptid from regcache.
9462
10799020
SM
94632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9464
9465 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9466 hppanbsd_store_registers): Use ptid from regcache.
9467
00204cf7
SM
94682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9469
9470 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9471 from regcache. Use get_ptrace_pid.
9472
11a33714
SM
94732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9474
9475 * corelow.c (get_core_register_section): Use ptid from regcache,
9476 update doc.
9477
317cd492
SM
94782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9479
9480 * bsd-uthread.c (bsd_uthread_fetch_registers,
9481 bsd_uthread_store_registers): Use ptid from regcache, set and
9482 restore inferior_ptid.
9483
9ac8a7c2
SM
94842017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9485
9486 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9487 fetch_fp_regs, store_register, store_regs, store_fp_register,
9488 store_fp_regs): Use ptid from regcache.
9489
4ac4bb6a
SM
94902017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9491
9492 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9493 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9494 store_vfp_regs): Use ptid from regcache.
9495
9bcbdca8
PA
94962017-03-17 Pedro Alves <palves@redhat.com>
9497
9498 PR remote/21188
9499 * ser-base.c (ser_base_wait_for): Add comment.
9500 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9501 version.
9502 * ser-unix.c (hardwire_raw): Remove reference to
9503 scb->current_timeout.
9504 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9505 (hardwire_ops): Install ser_base_readchar instead of
9506 hardwire_readchar.
9507 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9508 Remove fields.
9509
7503099f
JG
95102017-03-17 Jonah Graham <jonah@kichwacoders.com>
9511
9512 PR gdb/19637
9513 * python/lib/gdb/printer/bound_registers.py: Add support for
9514 Python 3.
9515
7942e96e
AA
95162017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9517
9518 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9519 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9520 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9521 byte_offset to subobj_byte_offset. Fix the handling of
9522 DWARF_VALUE_STACK on big-endian targets when coming via an
9523 implicit pointer.
9524 (dwarf2_evaluate_loc_desc): Adjust call to
9525 dwarf2_evaluate_loc_desc_full.
9526 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9527 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9528
ba14f379
YQ
95292017-03-16 Yao Qi <yao.qi@linaro.org>
9530
9531 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9532 and REVSH instructions.
9533
b121eeb9
YQ
95342017-03-16 Yao Qi <yao.qi@linaro.org>
9535
9536 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9537 (arm_record_test): Declare.
9538 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9539 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9540 align with the manual.
9541 (thumb_record_misc): Adjust the code order to align with the
9542 manual.
9543 (thumb2_record_decode_insn_handler): Fix instruction matching.
9544 (instruction_reader_thumb): New class.
9545 (arm_record_test): New function.
9546
728a7913
YQ
95472017-03-16 Yao Qi <yao.qi@linaro.org>
9548
9549 * arm-tdep.c (abstract_memory_reader): New class.
9550 (instruction_reader): New class.
9551 (extract_arm_insn): Add argument 'reader'. Callers updated.
9552 (decode_insn): Likewise.
9553
34b43320
DE
95542017-03-16 Doug Evans <dje@google.com>
9555
a7c0469f
DE
9556 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9557 member. Change type of TYPE member to SCM. All uses updated.
9558 (lsscm_make_lazy_string_smob): Add assert.
9559 (lsscm_make_lazy_string): Flag bad length values.
9560 (lsscm_elt_type): New function.
9561 (gdbscm_lazy_string_to_value): Rewrite to use
9562 lsscm_safe_lazy_string_to_value.
9563 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9564 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9565 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9566 in incoming type.
9567 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9568 * guile/scm-type.c (tyscm_scm_to_type): New function.
9569
95702017-03-15 Doug Evans <dje@google.com>
9571
34b43320
DE
9572 PR python/17728, python/18439, python/18779
9573 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9574 member. Change type of TYPE member to PyObject *. All uses updated.
9575 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9576 (gdbpy_create_lazy_string_object): Flag bad length values.
9577 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9578 Handle typedefs in incoming type.
9579 (stpy_lazy_string_elt_type): New function.
9580 (gdbpy_extract_lazy_string): Call it.
9581 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9582 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9583 typedefs in incoming type.
9584
a3a5fecc
DE
95852017-03-16 Doug Evans <dje@google.com>
9586
9587 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9588 * guile/scm-type.c (tyscm_scm_to_type): New function.
9589
28f1c605
JW
95902017-03-16 Jiong Wang <jiong.wang@arm.com>
9591
9592 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9593 "ULONGEST" for "skip".
9594
87c336f6
AA
95952017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9596
9597 PR gdb/21220
9598 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9599 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9600 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9601 over ptrace peek/poke until end of buffer or error.
9602
cf81cf60
SM
96032017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9604
9605 * parse.c (length_of_subexp): Make static.
9606 * parser-defs.h (length_of_subexp): Remove.
9607
a379284a
AA
96082017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9609
9610 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9611 as well.
9612
8a6200ba
PA
96132017-03-14 Pedro Alves <palves@redhat.com>
9614
9615 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9616 (main): Use std::unique_ptr. Remove calls to
9617 cp_demangled_name_parse_free.
9618
f79ec206
SM
96192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9620
9621 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9622 alphabsd_store_inferior_registers): Use regcache->ptid instead
9623 of inferior_ptid.
9624
edb5fb00
SM
96252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9626
9627 * aix-thread.c (aix_thread_fetch_registers,
9628 aix_thread_store_registers): Use regcache->ptid instead of
9629 inferior_ptid.
9630
55119686
SM
96312017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9632
9633 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9634 store_gregs_to_thread, fetch_fpregs_from_thread,
9635 store_fpregs_to_thread): Use regcache->ptid instead of
9636 inferior_ptid.
9637
6a06fbb7
SM
96382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9639
9640 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9641 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9642 instead of inferior_ptid.
9643
c6386875
SM
96442017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9645
9646 * target.c (target_fetch_registers, target_store_registers): Add
9647 assert.
9648
ddaaf0fb
SM
96492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9650
9651 * regcache.h (regcache_get_ptid): New function.
9652 * regcache.c (regcache_get_ptid): New function.
9653
b9da89d1 96542017-03-13 Mark Wielaard <mark@klomp.org>
9655
9656 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9657
5f4d1085
KS
96582017-03-10 Keith Seitz <keiths@redhat.com>
9659
9660 PR c++/8218
9661 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9662
c65d6b55
PA
96632017-03-08 Pedro Alves <palves@redhat.com>
9664
9665 PR gdb/18360
9666 * infrun.c (start_step_over, do_target_resume, resume)
9667 (restart_threads): Assert we're not resuming a thread that is
9668 meant to be stopped.
9669 (infrun_thread_stop_requested_callback): Delete.
9670 (infrun_thread_stop_requested): If the thread is internally
9671 stopped, queue a pending stop event and clear the thread's
9672 inline-frame state.
9673 (handle_stop_requested): New function.
9674 (handle_syscall_event, handle_inferior_event_1): Use
9675 handle_stop_requested.
9676 (handle_stop_requested): New function.
9677 (handle_signal_stop): Set the thread's stop_signal here instead of
9678 at caller.
9679 (finish_step_over): Clear step over info unconditionally.
9680 (handle_signal_stop): If the user had interrupted the event
9681 thread, consider the stop a random signal.
9682 (handle_signal_stop) <signal arrived while stepping over
9683 breakpoint>: Don't restart threads here.
9684 (stop_waiting): Don't clear step-over info here.
9685
15c22686
PA
96862017-03-08 Pedro Alves <palves@redhat.com>
9687
9688 PR 21206
9689 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9690 goes to argument 2, not 1.
9691
6e5d74e7
PA
96922017-03-08 Pedro Alves <palves@redhat.com>
9693
9694 PR cli/21218
9695 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9696 display_gdb_prompt.
9697 (command_line_input): Add comment.
9698
9753a2f6
PA
96992017-03-08 Pedro Alves <palves@redhat.com>
9700
9701 PR tui/21216
9702 * tui/tui-file.c (tui_file::write): New.
9703 * tui/tui-file.h (tui_file): Override "write".
9704 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9705 factored out from ...
9706 (tui_puts): ... here.
9707 (tui_putc): Use them.
9708 (tui_write): New function.
9709 * tui/tui-io.h (tui_write): Declare.
9710
1672e0d9
SDJ
97112017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9712
9713 * Makefile.in (SFILES): Replace "environ.c" with
9714 "common/environ.c".
9715 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9716 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9717 to...
9718 * common/environ.c: ... here.
9719 * environ.h: Moved to...
9720 * common/environ.h: ... here.
9721
f7bb4e3a
PB
97222017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9723
9724 * gdbarch.sh (pstring_ptr): New static function.
9725 (gdbarch_disassembler_options): Use it.
9726 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9727 not valid_disassembler_option->name.
9728 * gdbarch.c: Regenerate.
9729
e45ced6c
PB
97302017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9731
9732 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9733
5f6fd321
PA
97342017-03-07 Pedro Alves <palves@redhat.com>
9735
9736 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9737
6dbb839a 97382017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
9739
9740 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9741 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9742 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 9743 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 9744
d274ecf4
SM
97452017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9746
9747 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9748
df97be55
SM
97492017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9750
9751 * remote.c (remote_add_target_side_commands): Use range-based
9752 for loop.
9753
7d45f3df
YQ
97542017-03-03 Yao Qi <yao.qi@linaro.org>
9755
9756 PR gdb/21165
9757 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9758 value is lazy.
9759 * valprint.c (common_val_print): Likewise.
9760
65b48a81
PB
97612017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9762
9763 * NEWS: Mention new set/show disassembler-options commands.
9764 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9765 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9766 (prospective_options): New static variable.
9767 (gdb_disassembler::gdb_disassembler): Initialize
9768 m_di.disassembler_options.
9769 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9770 (get_disassembler_options): New function.
9771 (set_disassembler_options): Likewise.
9772 (set_disassembler_options_sfunc): Likewise.
9773 (show_disassembler_options_sfunc): Likewise.
9774 (disassembler_options_completer): Likewise.
9775 (_initialize_disasm): Likewise.
9776 * disasm.h (get_disassembler_options): New prototype.
9777 (set_disassembler_options): Likewise.
9778 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9779 (gdbarch_verify_disassembler_options): Likewise.
9780 * gdbarch.c: Regenerate.
9781 * gdbarch.h: Likewise.
9782 * arm-tdep.c (num_disassembly_options): Delete.
9783 (set_disassembly_style): Likewise.
9784 (arm_disassembler_options): New static variable.
9785 (set_disassembly_style_sfunc): Convert short style name into long
9786 option name. Call set_disassembler_options.
9787 (show_disassembly_style_sfunc): New function.
9788 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9789 set_gdbarch_verify_disassembler_options.
9790 (_initialize_arm_tdep): Delete regnames variable and update callers.
9791 (arm_disassembler_options): Initialize.
9792 (disasm_options): New variable.
9793 (num_disassembly_options): Rename from this...
9794 (num_disassembly_styles): ...to this. Compute by scanning through
9795 disasm_options.
9796 (valid_disassembly_styles): Initialize using disasm_options.
9797 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9798 set_arm_regname_option.
9799 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9800 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9801 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9802 set_gdbarch_verify_disassembler_options.
9803 * s390-tdep.c (s390_disassembler_options): New static variable.
9804 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9805 set_gdbarch_verify_disassembler_options.
9806
d538e36d
SM
98072017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9808
9809 * remote.c (remote_add_target_side_condition): Remove "struct"
9810 keyword from range-based for loop.
9811
83621223
SM
98122017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9813
9814 * remote.c (remote_add_target_side_condition): Use range-based
9815 for loop. Update comment.
9816
2123df0e
YQ
98172017-02-27 Yao Qi <yao.qi@linaro.org>
9818
9819 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9820
8e368124
AH
98212017-02-26 Alan Hayward <alan.hayward@arm.com>
9822
9823 * regcache.c (regcache_raw_update): New function.
9824 (regcache_raw_read): Move code to regcache_raw_update.
9825 * regcache.h (regcache_raw_update): New declaration.
9826 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9827
a49dd8dd
JK
98282017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9829
9830 * dwarf2read.c (create_debug_type_hash_table): Initialize
9831 header.signature and header.type_offset_in_tu.
9832
34e4bae9
PA
98332017-02-24 Pedro Alves <palves@redhat.com>
9834
9835 * symtab.c (make_file_symbol_completion_list_1): Use
9836 add_symtab_completions.
9837
b0e4b369
AH
98382017-02-24 Alan Hayward <alan.hayward@arm.com>
9839
9840 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9841
975c21ab
AH
98422017-02-24 Alan Hayward <alan.hayward@arm.com>
9843
9844 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9845 I386_MAX_REGISTER_SIZE.
9846 (i386_pseudo_register_write): Likewise.
9847 (i386_process_record): Likewise.
9848 * i387-tdep.c (i387_supply_xsave): Likewise.
9849 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9850 (store_register): Likewise.
9851
14bc53a8
PA
98522017-02-23 Pedro Alves <palves@redhat.com>
9853
9854 * ada-lang.c: Include "common/function-view.h".
9855 (ada_iterate_over_symbols): Adjust to use function_view as
9856 callback type.
9857 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9858 (ada_make_symbol_completion_list): Use a lambda.
9859 (ada_exc_search_name_matches): Delete.
9860 (name_matches_regex): New.
9861 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9862 * compile/compile-c-support.c: Include "common/function-view.h".
9863 (print_one_macro): Change prototype to accept a ui_file pointer.
9864 (write_macro_definitions): Use a lambda.
9865 * dwarf2read.c: Include "common/function-view.h".
9866 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9867 (dw2_expand_symtabs_matching): Adjust to use function_view as
9868 callback type.
9869 * language.h: Include "common/function-view.h".
9870 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9871 function_view as callback type.
9872 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9873 * linespec.c: Include "common/function-view.h".
9874 (collect_info::add_symbol): New method.
9875 (struct symbol_and_data_callback, iterate_inline_only, struct
9876 symbol_matcher_data, iterate_name_matcher): Delete.
9877 (iterate_over_all_matching_symtabs): Adjust to use function_view
9878 as callback type and lambdas.
9879 (iterate_over_file_blocks): Adjust to use function_view as
9880 callback type.
9881 (decode_compound_collector): Now a class with private fields.
9882 (decode_compound_collector::release_symbols): New method.
9883 (collect_one_symbol): Rename to...
9884 (decode_compound_collector::operator()): ... this and adjust.
9885 (lookup_prefix_sym): decode_compound_collector construction bits
9886 move to decode_compound_collector ctor. Pass the
9887 decode_compound_collector object directly as callback. Remove
9888 cleanups and use decode_compound_collector::release_symbols
9889 instead.
9890 (symtab_collector): Now a class with private fields.
9891 (symtab_collector::release_symtabs): New method.
9892 (add_symtabs_to_list): Rename to...
9893 (symtab_collector::operator()): ... this and adjust.
9894 (collect_symtabs_from_filename): symtab_collector construction
9895 bits move to symtab_collector ctor. Pass the symtab_collector
9896 object directly as callback. Remove cleanups and use
9897 symtab_collector::release_symtabs instead.
9898 (collect_symbols): Delete.
9899 (add_matching_symbols_to_info): Use lambdas.
9900 * macrocmd.c (print_macro_callback): Delete.
9901 (info_macro_command): Use a lambda.
9902 (info_macros_command): Pass print_macro_definition as callable
9903 directly.
9904 (print_one_macro): Remove 'ignore' parameter.
9905 (macro_list_command): Adjust.
9906 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9907 (macro_for_each_data::user_data): Delete field.
9908 (foreach_macro): Adjust to call the function_view.
9909 (macro_for_each): Adjust to use function_view as callback type.
9910 (foreach_macro_in_scope): Adjust to call the function_view.
9911 (macro_for_each_in_scope): Adjust to use function_view as callback
9912 type.
9913 * macrotab.h: Include "common/function-view.h".
9914 (macro_callback_fn): Declare a prototype instead of a pointer.
9915 Remove "user_data" parameter.
9916 (macro_for_each, macro_for_each_in_scope): Adjust to use
9917 function_view as callback type.
9918 * psymtab.c (partial_map_expand_apply)
9919 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9920 Adjust to use function_view as callback type and to return bool.
9921 (psym_expand_symtabs_matching): Adjust to use function_view as
9922 callback types.
9923 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9924 to use function_view as callback type and to return bool.
9925 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9926 callback types.
9927 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9928 as callback types.
9929 * symfile.h: Include "common/function-view.h".
9930 (expand_symtabs_file_matcher_ftype)
9931 (expand_symtabs_symbol_matcher_ftype)
9932 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9933 return bool.
9934 (quick_symbol_functions::map_symtabs_matching_filename)
9935 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9936 function_view as callback type and return bool.
9937 (expand_symtabs_matching): Adjust to use function_view as callback
9938 type.
9939 (maintenance_expand_name_matcher)
9940 (maintenance_expand_file_matcher): Delete.
9941 (maintenance_expand_symtabs): Use lambdas.
9942 * symtab.c (iterate_over_some_symtabs): Adjust to use
9943 function_view as callback types and return bool.
9944 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9945 of a cleanup.
9946 (lookup_symtab_callback): Delete.
9947 (lookup_symtab): Use a lambda.
9948 (iterate_over_symbols): Adjust to use function_view as callback
9949 type.
9950 (struct search_symbols_data, search_symbols_file_matches)
9951 (search_symbols_name_matches): Delete.
9952 (search_symbols): Use a pair of lambdas.
9953 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9954 (symtab_expansion_callback): Delete.
9955 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9956 * symtab.h: Include "common/function-view.h".
9957 (iterate_over_some_symtabs): Adjust to use function_view as
9958 callback type and return bool.
9959 (iterate_over_symtabs): Adjust to use function_view as callback
9960 type.
9961 (symbol_found_callback_ftype): Remove 'data' parameter and return
9962 bool.
9963 (iterate_over_symbols): Adjust to use function_view as callback
9964 type.
9965
07e253aa
PA
99662017-02-23 Pedro Alves <palves@redhat.com>
9967
9968 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9969 (%.o) <unittests/%.c>: New pattern.
9970 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9971 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9972 * common/function-view.h: New file.
9973 * unittests/function-view-selftests.c: New file.
9974 * configure: Regenerate.
9975
8eaf5320
SM
99762017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9977
9978 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9979 inferior_ptid.
9980 * go32-nat.c (go32_thread_alive): Likewise.
9981
38768751
YQ
99822017-02-23 Yao Qi <yao.qi@linaro.org>
9983
9984 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9985 delete.
9986
0a8beaba
YQ
99872017-02-23 Yao Qi <yao.qi@linaro.org>
9988
9989 * varobj.c (varobj_clear_saved_item): Use delete instead of
9990 xfree.
9991 (update_dynamic_varobj_children): Likewise.
9992
58fdfd2c
JK
99932017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9994
9995 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9996
1b90b139
SM
99972017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9998
9999 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10000 m_enum_value to 0 in default constructor.
10001
2039d74e
EBM
100022017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10003
10004 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10005 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10006 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10007 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10008 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10009 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10010 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10011 IS_STORE_CONDITIONAL_INSN.
10012
7814882a
JK
100132017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10014
10015 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10016
0ae60b63
JK
100172017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10018
10019 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10020
0224619f
JK
100212017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10022
10023 * dwarf2read.c (skip_one_die, read_attribute_value)
10024 (dwarf2_const_value_attr, dump_die_shallow)
10025 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10026 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10027
0af92d60
JK
100282017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10029
10030 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10031 (dwarf_parse_macro_header): Accept DWARF version 5.
10032 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10033
216f72a1
JK
100342017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10035
10036 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10037 DW_AT_GNU_*.
10038 * common/common-exceptions.h (enum errors): Likewise.
10039 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10040 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10041 (dwarf_expr_context::execute_stack_op): Likewise.
10042 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10043 Likewise.
10044 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10045 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10046 (show_entry_values_debug, call_site_to_target_addr)
10047 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10048 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10049 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10050 (value_of_dwarf_block_entry, indirect_pieced_value)
10051 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10052 (disassemble_dwarf_expression): Likewise.
10053 * dwarf2read.c (process_die, inherit_abstract_dies)
10054 (read_call_site_scope): Likewise.
10055 * gdbtypes.h (struct func_type, struct call_site_parameter)
10056 (struct call_site): Likewise.
10057 * stack.c (read_frame_arg): Likewise.
10058 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10059
43988095
JK
100602017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10061
10062 * defs.h (read_unsigned_leb128): New declaration.
10063 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10064 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10065 (dwarf2_find_location_expression): Call also
10066 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10067 * dwarf2loc.h (dwarf2_version): New declaration.
10068 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10069 rnglists.
10070 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10071 .debug_rnglists.
10072 (struct dwop_section_names): Add loclists_dwo.
10073 (dwop_section_names): Add .debug_loclists.dwo.
10074 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10075 (struct dwarf2_per_cu_data): Add dwarf_version.
10076 (struct dwo_sections): Add loclists.
10077 (struct attr_abbrev): Add implicit_const.
10078 (read_indirect_line_string): New declaration.
10079 (read_unsigned_leb128): Delete declaration.
10080 (rcuh_kind): New definition.
10081 (read_and_check_comp_unit_head): Change parameter
10082 is_debug_types_section to section_kind.
10083 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10084 (read_comp_unit_head): Change parameter abfd to section, add parameter
10085 section_kind. Handle DWARF-5.
10086 (error_check_comp_unit_head): Accept also DWARF version 5.
10087 (read_and_check_comp_unit_head): Change parameter
10088 is_debug_types_section to section_kind.
10089 (read_and_check_type_unit_head): Delete function.
10090 (read_abbrev_offset): Handle DWARF-5.
10091 (create_debug_type_hash_table): Add parameter section_kind. Process
10092 only DW_UT_type. Use signature and type_offset_in_tu from struct
10093 comp_unit_head.
10094 (create_debug_types_hash_table): Update create_debug_type_hash_table
10095 caller.
10096 (create_all_type_units): Call create_debug_type_hash_table.
10097 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10098 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10099 caller.
10100 (skip_one_die): Handle DW_FORM_implicit_const.
10101 (dwarf2_rnglists_process): New function.
10102 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10103 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10104 (read_attribute_value): Handle DW_FORM_implicit_const,
10105 DW_FORM_line_strp.
10106 (read_attribute): Handle DW_FORM_implicit_const.
10107 (read_indirect_string_at_offset_from): New function from
10108 read_indirect_string_at_offset.
10109 (read_indirect_string_at_offset): Call
10110 read_indirect_string_at_offset_from.
10111 (read_indirect_line_string_at_offset): New function.
10112 (read_indirect_string): New function comment.
10113 (read_indirect_line_string): New function.
10114 (read_unsigned_leb128): Make it global.
10115 (dwarf2_string_attr): Handle DWARF-5.
10116 (add_include_dir_stub, read_formatted_entries): New functions.
10117 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10118 Handle DWARF-5.
10119 (per_cu_header_read_in): Update read_comp_unit_head caller.
10120 (dwarf2_version): New function.
10121 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10122 rnglists.
10123 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10124 fields.
10125
22d2f3ab
JK
101262017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10127
10128 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10129
5f46c5a5
JK
101302017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10131
10132 * dwarf2read.c (dwarf2_ranges_process): New function from
10133 dwarf2_ranges_read.
10134 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10135 dwarf2_ranges_process.
10136
78d4d2c5
JK
101372017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10138
10139 * dwarf2read.c (create_debug_type_hash_table): New function from
10140 create_debug_types_hash_table.
10141 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10142 (create_all_type_units, open_and_init_dwo_file): Update
10143 create_debug_types_hash_table callers.
10144
1b076f25
SDJ
101452017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10146
10147 PR gdb/16188
10148 * fork-child.c (trace_start_error): Fix thinko. va_end should
10149 refer to 'ap', not 'args'.
10150
0db8980c
SDJ
101512017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10152 Pedro Alves <palves@redhat.com>
10153
10154 PR gdb/16188
10155 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10156 calls succeeded.
10157 * fork-child.c (trace_start_error): New function.
10158 (trace_start_error_with_name): Likewise.
10159 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10160 * inf-ptrace.c (inf_ptrace_me): Likewise.
10161 * inferior.h (trace_start_error): New prototype.
10162 (trace_start_error_with_name): Likewise.
10163
99e8a4f9
SDJ
101642017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10165
10166 PR gdb/21164
10167 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10168 NULL before using it.
10169 * symmisc.c (maintenance_print_symbols): Likewise.
10170 (maintenance_print_msymbols): Likewise.
10171
4e746bb6
TW
101722017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10173
10174 * NEWS: Add record Python bindings entry.
10175
101762017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10177
10178 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10179 py-record-full.o.
10180 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10181 * python/py-record-btrace.c, python/py-record-btrace.h,
10182 python/py-record-full.c, python/py-record-full.h: New file.
10183 * python/py-record.c: Add include for py-record-btrace.h and
10184 py-record-full.h.
10185 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10186 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10187 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10188 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10189 New definition.
10190 (gdbpy_initialize_btrace): New export.
10191 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10192
101932017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10194
10195 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10196 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10197 * python/py-record.c: New file.
10198 * python/python-internal.h (gdbpy_start_recording,
10199 gdbpy_current_recording, gdpy_stop_recording,
10200 gdbpy_initialize_record): New export.
10201 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10202 (python_GdbMethods): Add gdbpy_start_recording,
10203 gdbpy_current_recording and gdbpy_stop_recording.
10204
102052017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10206
10207 * record-btrace.c (record_btrace_record_method): New function.
10208 (init_record_btrace_ops): Initialize to_record_method.
10209 * record-full.c (record_full_record_method): New function.
10210 (init_record_full_ops, init_record_full_core_ops): Add
10211 record_full_record_method.
10212 * record.h (enum record_method): New enum.
10213 * target-debug.h (target_debug_print_enum_record_method: New define.
10214 * target-delegates.c: Regenerate.
10215 * target.c (target_record_method): New function.
10216 * target.h: Include record.h.
10217 (struct target_ops) <to_record_method>: New field.
10218 (target_record_method): New export.
10219
102202017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10221
10222 * record.h (record_start, record_stop): New export.
10223 * record.c (record_start, record_stop): New function.
10224
102252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10226
10227 * btrace.c (btrace_fetch): Copy function call segments pointer
10228 into a vector.
10229 (btrace_clear): Clear the vector.
10230 (btrace_find_insn_by_number): Use binary search to find the correct
10231 function call segment.
10232 * btrace.h (brace_fun_p): New typedef.
10233 (struct btrace_thread_info) <functions>: New field.
10234
102352017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10236
10237 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10238 * btrace.c (btrace_decode_error): ... here. New function.
10239 * btrace.h (btrace_decode_error): New export.
10240
102412017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10242
10243 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10244 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10245 btrace_find_insn_by_number): Remove special case for gaps.
10246 * btrace.h (btrace_insn_get_error): New export.
10247 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10248 * record-btrace.c (btrace_insn_history): Print number for gaps.
10249 (record_btrace_info, record_btrace_goto): Handle gaps.
10250
3f77c769
TT
102512017-02-14 Tom Tromey <tom@tromey.com>
10252
10253 PR python/13598:
10254 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10255 event.
10256 * python/py-evts.c (gdbpy_initialize_py_events): Add
10257 before_prompt registry.
10258 * python/py-events.h (events_object) <before_prompt>: New field.
10259
4c2c7ac6
MM
102602017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10261
10262 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10263
5cf30ebf
LM
102642017-02-13 Luis Machado <lgustavo@codesourcery.com>
10265
10266 * symfile (_initialize_symfile): Add usage text to the load command's
10267 help text.
10268
26a06916
SM
102692017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10270
10271 * utils.c (defaulted_query): Don't query on secondary UIs.
10272
0b145e37
TT
102732017-02-10 Tom Tromey <tom@tromey.com>
10274
10275 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10276
2d8365c4
TT
102772017-02-10 Tom Tromey <tom@tromey.com>
10278
10279 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10280 "cleanup" local.
10281 * python/py-type.c (typy_legacy_template_argument): Remove
10282 unnecessary "cleanup" local.
10283
2bb8f231
TT
102842017-02-10 Tom Tromey <tom@tromey.com>
10285
10286 * python/python.c (do_start_initialization): New function, from
10287 _initialize_python.
10288 (_initialize_python): Call do_start_initialization.
10289 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10290 goto.
10291
1bdfaf42
TT
102922017-02-10 Tom Tromey <tom@tromey.com>
10293
10294 * python/py-prettyprint.c (pretty_print_one_value): Use
10295 gdbpy_ref.
10296
88b6faea
TT
102972017-02-10 Tom Tromey <tom@tromey.com>
10298
10299 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10300 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10301 gdbpy_ref.
10302 * python/py-type.c (field_new): Use gdbpy_ref.
10303 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10304 gdbpy_ref.
10305 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10306 (py_free_pspace): Likewise.
10307 (pspace_to_pspace_object): Likewise.
10308 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10309 (py_free_objfile): Likewise.
10310 (objfile_to_objfile_object): Likewise.
10311 * python/py-inferior.c (delete_thread_object): Use
10312 gdbpy_ref.
10313 (infpy_read_memory): Likewise.
10314 (py_free_inferior): Likewise.
10315 * python/py-evtregistry.c (create_eventregistry_object): Use
10316 gdbpy_ref.
10317 * python/py-event.c (create_event_object): Use gdbpy_ref.
10318
7780f186
TT
103192017-02-10 Tom Tromey <tom@tromey.com>
10320
10321 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10322 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10323 used.
10324 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10325 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10326 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10327 python/py-framefilter.c, python/py-function.c,
10328 python/py-inferior.c, python/py-infevents.c,
10329 python/py-linetable.c, python/py-newobjfileevent.c,
10330 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10331 python/py-signalevent.c, python/py-stopevent.c,
10332 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10333 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10334 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10335 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10336
d4b0bb18
TT
103372017-02-10 Tom Tromey <tom@tromey.com>
10338
10339 * ui-out.h (ui_out_emit_type): New class.
10340 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10341 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10342 and ui_out_emit_tuple.
10343 (enumerate_locals): Likewise.
10344 (py_mi_print_variables, py_print_locals, py_print_args): Use
10345 ui_out_emit_list.
10346 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10347 ui_out_emit_list.
10348 * common/gdb_optional.h: New file.
10349
f67f945c
MG
103502017-02-10 Martin Galvan <martingalvan@sourceware.org>
10351
10352 * MAINTAINERS (Write After Approval): Update my e-mail address.
10353
18da0c51
MG
103542017-02-10 Martin Galvan <martingalvan@sourceware.org>
10355
10356 PR gdb/21122
10357 * breakpoint.c (_initialize_breakpoint): Update the help description
10358 of the 'commands' command to indicate that it takes a list argument.
10359
62c14536
SM
103602017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10361
10362 * interps.c (current_interp_set_logging): Remove "return".
10363
ff6fa247
GB
103642017-02-09 Gary Benson <gbenson@redhat.com>
10365
10366 * symtab.c (add_symtab_completions): Prevent NULL pointer
10367 dereference.
10368
a474bd8e
PA
103692017-02-08 Pedro Alves <palves@redhat.com>
10370
10371 * interps.c (interp::interp): Remove reference to quiet_p.
10372 (interp_set): Make static. Remove dead "Switching to" output
10373 code.
10374 (interp_quiet_p, interp_set_quiet): Delete.
10375 (interpreter_exec_cmd): Don't set the interpreter quiet.
10376 * interps.h (interp_quiet_p): Make static.
10377 (class interp) <quiet_p>: Remove field
10378
3d7b173c
JG
103792017-02-08 Jerome Guitton <guitton@adacore.com>
10380
604c4576
JG
10381 * cli/cli-decode.c (find_command_name_length): Make it extern.
10382 * cli/cli-decode.h (find_command_name_length): Declare.
10383 * cli/cli-script.c (command_name_equals, line_first_arg):
10384 New functions.
10385 (process_next_line): Use cli-decode to parse command names.
10386 (build_command_line): Make args a constant pointer.
10387
103882017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10389
3d7b173c
JG
10390 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10391 Remove case-insensitive search.
10392
1291063d
JM
103932017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10394
10395 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10396 at the end of the line. Avoids an ARI warning.
10397
20b477a7
LM
103982017-02-06 Luis Machado <lgustavo@codesourcery.com>
10399
10400 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10401 rdseed instructions.
10402 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10403
3f7b46f2
IR
104042017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10405
10406 PR tdep/20936
10407 Provide and use sparc32 and sparc64 target description XML files.
10408 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10409 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10410 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10411 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10412 * features/sparc/sparc32-solaris.xml: New file.
10413 * features/sparc/sparc64-solaris.xml: New file.
10414 * features/sparc/sparc32-solaris.c: Generated.
10415 * features/sparc/sparc64-solaris.c: Generated.
10416 * sparc-tdep.h: Account for differences in target descriptions.
10417 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10418 (sparc32_register_type): Use target provided registers.
10419 (validate_tdesc_registers): New function.
10420 (sparc32_gdbarch_init): Use tdesc_has_registers.
10421 Set pseudoregister functions.
10422 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10423 (sparc64_register_type): Use target provided registers.
10424 (sparc64_init_abi): Set pseudoregister functions.
10425
f0fd41c1
TT
104262017-02-03 Tom Tromey <tom@tromey.com>
10427
10428 PR rust/21097:
10429 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10430 with a single member.
10431
d6f9b0fb
PA
104322017-02-03 Pedro Alves <palves@redhat.com>
10433
10434 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10435 (cli_interp_base::~cli_interp_base): New.
10436 (cli_interp): New struct.
10437 (as_cli_interp): Cast the interp itself to cli_interp.
10438 (cli_interpreter_pre_command_loop): Rename to ...
10439 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10440 parameter.
10441 (cli_interpreter_init): Rename to ...
10442 (cli_interp::init): ... this. Remove 'self' parameter. Use
10443 boolean. Make extern.
10444 (cli_interpreter_resume): Rename to ...
10445 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10446 extern.
10447 (cli_interpreter_suspend): Rename to ...
10448 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10449 extern.
10450 (cli_interpreter_exec): Rename to ...
10451 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10452 extern.
10453 (cli_interpreter_supports_command_editing): Rename to ...
10454 (cli_interp_base::supports_command_editing): ... this. Remove
10455 'interp' parameter. Make extern.
10456 (cli_ui_out): Rename to ...
10457 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10458 Make extern.
10459 (cli_set_logging): Rename to ...
10460 (cli_interp_base::set_logging): ... this. Remove 'interp'
10461 parameter. Make extern.
10462 (cli_interp_procs): Delete.
10463 (cli_interp_factory): Adjust to use "new".
10464 * cli/cli-interp.h: Include "interps.h".
10465 (struct cli_interp_base): New struct.
10466 * interps.c (struct interp): Delete. Fields moved to interps.h.
10467 (interp_new): Delete.
10468 (interp::interp, interp::~interp): New.
10469 (interp_set): Use bool, and return void. Assume the interpreter
10470 has suspend, init and resume methods, and that the all return
10471 void.
10472 (set_top_level_interpreter): interp_set returns void.
10473 (interp_ui_out): Adapt.
10474 (current_interp_set_logging): Adapt.
10475 (interp_data): Delete.
10476 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10477 (interp_exec): Adapt.
10478 (top_level_interpreter_data): Delete.
10479 * interps.h (interp_init_ftype, interp_resume_ftype)
10480 (interp_suspend_ftype, interp_exec_ftype)
10481 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10482 (class interp): New.
10483 (interp_new): Delete.
10484 (interp_set): Now returns void. Use bool.
10485 (interp_data, top_level_interpreter_data): Delete.
10486 * mi/mi-common.h: Include interps.h.
10487 (class mi_interp): Inherit from interp. Define a ctor. Declare
10488 init, resume, suspect, exec, interp_ui_out, set_logging and
10489 pre_command_loop methods.
10490 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10491 (mi_interpreter_init): Rename to ...
10492 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10493 bool, return void and make extern. Adjust.
10494 (mi_interpreter_resume): ... Rename to ...
10495 (mi_interp::resume): ... this. Remove the 'data' parameter,
10496 return void and make extern. Adjust.
10497 (mi_interpreter_suspend): ... Rename to ...
10498 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10499 return void and make extern. Adjust.
10500 (mi_interpreter_exec): ... Rename to ...
10501 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10502 extern. Adjust.
10503 (mi_interpreter_pre_command_loop): ... Rename to ...
10504 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10505 parameter and make extern.
10506 (mi_on_normal_stop_1): Adjust.
10507 (mi_ui_out): Rename to ...
10508 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10509 parameter and make extern. Adjust.
10510 (mi_set_logging): Rename to ...
10511 (mi_interp::set_logging): ... this. Remove the 'interp'
10512 parameter and make extern. Adjust.
10513 (mi_interp_procs): Delete.
10514 (mi_interp_factory): Adjust to use 'new'.
10515 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10516 (mi_print_exception, mi_execute_command, mi_load_progress):
10517 Adjust.
10518 * tui/tui-interp.c (tui_interp): New class.
10519 (as_tui_interp): Return a tui_interp pointer.
10520 (tui_on_normal_stop, tui_on_signal_received)
10521 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10522 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10523 to use interp::interp_ui_out.
10524 (tui_init): Rename to ...
10525 (tui_interp::init): ... this. Remove the 'self' parameter, use
10526 bool, return void and make extern. Adjust.
10527 (tui_resume): Rename to ...
10528 (tui_interp::resume): ... this. Remove the 'data' parameter,
10529 return void and make extern. Adjust.
10530 (tui_suspend): Rename to ...
10531 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10532 return void and make extern. Adjust.
10533 (tui_ui_out): Rename to ...
10534 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10535 parameter, and make extern. Adjust.
10536 (tui_exec): Rename to ...
10537 (tui_interp::exec): ... this. Remove the 'data' parameter and
10538 make extern.
10539 (tui_interp_procs): Delete.
10540 (tui_interp_factory): Use "new".
10541
65c40c95
TT
105422017-02-02 Tom Tromey <tom@tromey.com>
10543
10544 * rust-exp.y (ends_raw_string, space_then_number)
10545 (rust_identifier_start_p): Return bool.
10546 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10547 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10548 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10549 (rust_chartype_p): Return bool.
10550 (val_print_struct, rust_print_struct_def, rust_print_type):
10551 Update.
10552 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10553 Return bool.
10554
b50f188d
TT
105552017-02-02 Tom Tromey <tom@tromey.com>
10556
10557 * rust-lang.c: Reindent.
10558
03c85b11
TT
105592017-02-02 Tom Tromey <tom@tromey.com>
10560
10561 * rust-lang.h (rust_crate_for_block): Update.
10562 * rust-lang.c (rust_crate_for_block): Return std::string.
10563 (rust_get_disr_info): Use std:;string, not
10564 gdb::unique_xmalloc_ptr.
10565 * rust-exp.y (crate_name): Update.
10566
9b6da501
PA
105672017-02-02 Pedro Alves <palves@redhat.com>
10568
10569 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10570 field out of gdb_disassembler_test and make it static.
10571
ec4cb20b
PA
105722017-02-02 Pedro Alves <palves@redhat.com>
10573
10574 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10575 mi1_interp and mi_interp fields.
10576
5be5dbf0
PA
105772017-02-02 Pedro Alves <palves@redhat.com>
10578
616268b6
PA
10579 * cli/cli-interp.c (struct saved_output_files, saved_output):
10580 Moved from cli/cli-logging.c.
10581 (cli_set_logging): New function.
10582 (cli_interp_procs): Install cli_set_logging.
10583 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10584 Declare.
10585 * cli/cli-logging.c (struct saved_output_files, saved_output):
10586 Moved to cli/cli-interp.c.
10587 (pop_output_files): Don't save outputs here.
10588 (make_logging_output): New function.
10589 (handle_redirections): Don't build tee nor save previous outputs
10590 here.
10591 * interps.c (current_interp_set_logging): Change prototype.
10592 Assume there's always a set_logging_proc method installed.
10593 * interps.h (interp_set_logging_ftype): Change prototype.
10594 (current_interp_set_logging): Change prototype and adjust comment.
10595 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10596 use make_logging_output.
10597 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
105982017-02-02 Pedro Alves <palves@redhat.com>
10599
5be5dbf0
PA
10600 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10601 from ...
10602 (set_logging_overwrite): ... here.
10603 (logging_no_redirect_file): Delete.
10604 (set_logging_redirect): Don't handle redirection on the fly.
10605 Instead warn that "logging off" / "logging on" is necessary.
10606 (pop_output_files): Delete references to logging_no_redirect_file.
10607 (show_logging_command): Always speak in terms of what will happen
10608 once logging is reenabled.
10609
c99cc448
PA
106102017-02-02 Pedro Alves <palves@redhat.com>
10611
10612 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10613
8b172ce7
PA
106142017-02-02 Pedro Alves <palves@redhat.com>
10615
10616 * disasm.c (gdb_pretty_print_insn): Rename to ...
10617 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10618 Remove gdbarch parameter. Adapt to clear the object's buffers
10619 instead of allocating new buffers, and to print using the object's
10620 gdb_disassembler instead of calling gdb_print_insn.
10621 (dump_insns): Use gdb_pretty_print_disassembler.
10622 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10623 (gdb_pretty_print_disassembler): New class.
10624 * record-btrace.c (btrace_insn_history): Use
10625 gdb_pretty_print_disassembler.
10626
d7e74731
PA
106272017-02-02 Pedro Alves <palves@redhat.com>
10628
10629 * ada-lang.c (type_as_string): Use string_file.
10630 * ada-valprint.c (ada_print_floating): Use string_file.
10631 * ada-varobj.c (ada_varobj_scalar_image)
10632 (ada_varobj_get_value_image): Use string_file.
10633 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10634 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10635 * breakpoint.c (update_inserted_breakpoint_locations)
10636 (insert_breakpoint_locations, reattach_breakpoints)
10637 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10638 (print_it_watchpoint): Use string_file.
10639 (save_breakpoints): Use stdio_file.
10640 * c-exp.y (oper): Use string_file.
10641 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10642 tee_file.
10643 (pop_output_files): Use delete.
10644 (handle_redirections): Use stdio_file and tee_file.
10645 * cli/cli-setshow.c (do_show_command): Use string_file.
10646 * compile/compile-c-support.c (c_compute_program): Use
10647 string_file.
10648 * compile/compile-c-symbols.c (generate_vla_size): Take a
10649 'string_file &' instead of a 'ui_file *'.
10650 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10651 of a 'ui_file *'. Use string_file.
10652 (generate_c_for_variable_locations): Take a 'string_file &'
10653 instead of a 'ui_file *'.
10654 * compile/compile-internal.h (generate_c_for_for_one_variable):
10655 Take a 'string_file &' instead of a 'ui_file *'.
10656 * compile/compile-loc2c.c (push, pushf, unary, binary)
10657 (print_label, pushf_register_address, pushf_register)
10658 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10659 'ui_file *'. Adjust.
10660 * compile/compile.c (compile_to_object): Use string_file.
10661 * compile/compile.h (compile_dwarf_expr_to_c)
10662 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10663 'ui_file *'.
10664 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10665 (replace_typedefs_qualified_name): Use string_file and
10666 obstack_copy0.
10667 * disasm.c (gdb_pretty_print_insn): Use string_file.
10668 (gdb_disassembly): Adjust reference the null_stream global.
10669 (do_ui_file_delete): Delete.
10670 (gdb_insn_length): Use null_stream.
10671 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10672 * dwarf2loc.c (dwarf2_compile_property_to_c)
10673 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10674 'string_file &' instead of a 'ui_file *'.
10675 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10676 * dwarf2read.c (do_ui_file_peek_last): Delete.
10677 (dwarf2_compute_name): Use string_file.
10678 * event-top.c (gdb_setup_readline): Use stdio_file.
10679 * gdbarch.sh (verify_gdbarch): Use string_file.
10680 * gdbtypes.c (safe_parse_type): Use null_stream.
10681 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10682 string_file.
10683 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10684 'string_file *' instead of a 'ui_file *'.
10685 (gdbscm_arch_disassemble): Use string_file.
10686 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10687 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10688 inherits from ui_file.
10689 (ioscm_file_port_delete, ioscm_file_port_rewind)
10690 (ioscm_file_port_put): Delete.
10691 (ioscm_file_port_write): Rename to ...
10692 (ioscm_file_port::write): ... this. Remove file_port_magic
10693 checks.
10694 (ioscm_file_port_new): Delete.
10695 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10696 ui_file_up.
10697 * guile/scm-type.c (tyscm_type_name): Use string_file.
10698 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10699 Use string_file.
10700 * infcmd.c (print_return_value_1): Use string_file.
10701 * infrun.c (print_target_wait_results): Use string_file.
10702 * language.c (add_language): Use string_file.
10703 * location.c (explicit_to_string_internal): Use string_file.
10704 * main.c (captured_main_1): Use null_file.
10705 * maint.c (maintenance_print_architecture): Use stdio_file.
10706 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10707 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10708 event_channel>: Change type to mi_console_file pointer.
10709 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10710 (mi_console_file_delete): Delete.
10711 (struct mi_console_file): Delete.
10712 (mi_console_file_magic): Delete.
10713 (mi_console_file_new): Delete.
10714 (mi_console_file::mi_console_file): New.
10715 (mi_console_file_delete): Delete.
10716 (mi_console_file_fputs): Delete.
10717 (mi_console_file::write): New.
10718 (mi_console_raw_packet): Delete.
10719 (mi_console_file::flush): New.
10720 (mi_console_file_flush): Delete.
10721 (mi_console_set_raw): Rename to ...
10722 (mi_console_file::set_raw): ... this.
10723 * mi/mi-console.h (class mi_console_file): New class.
10724 (mi_console_file_new, mi_console_set_raw): Delete.
10725 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10726 (mi_set_logging): Use delete and tee_file. Adjust.
10727 * mi/mi-main.c (output_register): Use string_file.
10728 (mi_cmd_data_evaluate_expression): Use string_file.
10729 (mi_cmd_data_read_memory): Use string_file.
10730 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10731 * mi/mi-out.c (mi_ui_out::main_stream): New.
10732 (mi_ui_out::rewind): Use main_stream and
10733 string_file.
10734 (mi_ui_out::put): Use main_stream and string_file.
10735 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10736 Allocate a 'string_file' instead.
10737 (mi_out_new): Don't allocate a mem_fileopen stream here.
10738 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10739 (mi_ui_out::main_stream): Declare method.
10740 * printcmd.c (eval_command): Use string_file.
10741 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10742 * python/py-arch.c (archpy_disassemble): Use string_file.
10743 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10744 * python/py-frame.c (frapy_str): Use string_file.
10745 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10746 Use string_file.
10747 * python/py-type.c (typy_str): Use string_file.
10748 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10749 * python/py-value.c (valpy_str): Use string_file.
10750 * record-btrace.c (btrace_insn_history): Use string_file.
10751 * regcache.c (regcache_print): Use stdio_file.
10752 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10753 * remote.c (escape_buffer): Use string_file.
10754 * rust-lang.c (rust_get_disr_info): Use string_file.
10755 * serial.c (serial_open_ops_1): Use stdio_file.
10756 (do_serial_close): Use delete.
10757 * stack.c (print_frame_arg): Use string_file.
10758 (print_frame_args): Remove local mem_fileopen stream, not used.
10759 (print_frame): Use string_file.
10760 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10761 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10762 Take a 'string_file *' instead of a 'ui_file *'.
10763 * top.c (new_ui): Use stdio_file and stderr_file.
10764 (free_ui): Use delete.
10765 (execute_command_to_string): Use string_file.
10766 (quit_confirm): Use string_file.
10767 * tracepoint.c (collection_list::append_exp): Use string_file.
10768 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10769 * tui/tui-file.c: Don't include "ui-file.h".
10770 (enum streamtype, struct tui_stream): Delete.
10771 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10772 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10773 (tui_file::tui_file): New method.
10774 (tui_file_fputs): Delete.
10775 (tui_file_get_strbuf): Delete.
10776 (tui_file::puts): New method.
10777 (tui_file_adjust_strbuf): Delete.
10778 (tui_file_flush): Delete.
10779 (tui_file::flush): New method.
10780 * tui/tui-file.h: Tweak intro comment.
10781 Include ui-file.h.
10782 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10783 (tui_file_adjust_strbuf): Delete declarations.
10784 (class tui_file): New class.
10785 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10786 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10787 (tui_register_format): Use string_stream.
10788 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10789 (tui_get_function_from_frame): Use string_file.
10790 * typeprint.c (type_to_string): Use string_file.
10791 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10792 (null_stream): New global.
10793 (ui_file_delete): Delete.
10794 (ui_file::ui_file): New.
10795 (null_file_isatty): Delete.
10796 (ui_file::~ui_file): New.
10797 (null_file_rewind): Delete.
10798 (ui_file::printf): New.
10799 (null_file_put): Delete.
10800 (null_file_flush): Delete.
10801 (ui_file::putstr): New.
10802 (null_file_write): Delete.
10803 (ui_file::putstrn): New.
10804 (null_file_read): Delete.
10805 (ui_file::putc): New.
10806 (null_file_fputs): Delete.
10807 (null_file_write_async_safe): Delete.
10808 (ui_file::vprintf): New.
10809 (null_file_delete): Delete.
10810 (null_file::write): New.
10811 (null_file_fseek): Delete.
10812 (null_file::puts): New.
10813 (ui_file_data): Delete.
10814 (null_file::write_async_safe): New.
10815 (gdb_flush, ui_file_isatty): Adjust.
10816 (ui_file_put, ui_file_rewind): Delete.
10817 (ui_file_write): Adjust.
10818 (ui_file_write_for_put): Delete.
10819 (ui_file_write_async_safe, ui_file_read): Adjust.
10820 (ui_file_fseek): Delete.
10821 (fputs_unfiltered): Adjust.
10822 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10823 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10824 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10825 (set_ui_file_data): Delete.
10826 (string_file::~string_file, string_file::write)
10827 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10828 (do_ui_file_as_string, ui_file_as_string): Delete.
10829 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10830 (struct mem_file): Delete.
10831 (mem_file_new): Delete.
10832 (stdio_file::stdio_file): New.
10833 (mem_file_delete): Delete.
10834 (stdio_file::stdio_file): New.
10835 (mem_fileopen): Delete.
10836 (stdio_file::~stdio_file): New.
10837 (mem_file_rewind): Delete.
10838 (stdio_file::set_stream): New.
10839 (mem_file_put): Delete.
10840 (stdio_file::open): New.
10841 (mem_file_write): Delete.
10842 (stdio_file_magic, struct stdio_file): Delete.
10843 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10844 (stdio_file::flush): New.
10845 (stdio_file_read): Rename to ...
10846 (stdio_file::read): ... this. Adjust.
10847 (stdio_file_write): Rename to ...
10848 (stdio_file::write): ... this. Adjust.
10849 (stdio_file_write_async_safe): Rename to ...
10850 (stdio_file::write_async_safe) ... this. Adjust.
10851 (stdio_file_fputs): Rename to ...
10852 (stdio_file::puts) ... this. Adjust.
10853 (stdio_file_isatty): Delete.
10854 (stdio_file_fseek): Delete.
10855 (stdio_file::isatty): New.
10856 (stderr_file_write): Rename to ...
10857 (stderr_file::write) ... this. Adjust.
10858 (stderr_file_fputs): Rename to ...
10859 (stderr_file::puts) ... this. Adjust.
10860 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10861 (stderr_file::stderr_file): New.
10862 (tee_file_magic): Delete.
10863 (struct tee_file): Delete.
10864 (tee_file::tee_file): New.
10865 (tee_file_new): Delete.
10866 (tee_file::~tee_file): New.
10867 (tee_file_delete): Delete.
10868 (tee_file_flush): Rename to ...
10869 (tee_file::flush): ... this. Adjust.
10870 (tee_file_write): Rename to ...
10871 (tee_file::write): ... this. Adjust.
10872 (tee_file::write_async_safe): New.
10873 (tee_file_fputs): Rename to ...
10874 (tee_file::puts): ... this. Adjust.
10875 (tee_file_isatty): Rename to ...
10876 (tee_file::isatty): ... this. Adjust.
10877 * ui-file.h (struct obstack, struct ui_file): Don't
10878 forward-declare.
10879 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10880 (ui_file_write_ftype)
10881 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10882 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10883 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10884 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10885 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10886 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10887 (set_ui_file_fseek): Delete.
10888 (ui_file_data, ui_file_delete, ui_file_rewind)
10889 (struct ui_file): New.
10890 (ui_file_up): New.
10891 (class null_file): New.
10892 (null_stream): Declare.
10893 (ui_file_write_for_put, ui_file_put): Delete.
10894 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10895 Delete.
10896 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10897 (gdb_fopen, tee_file_new): Delete.
10898 (struct string_file): New.
10899 (struct stdio_file): New.
10900 (stdio_file_up): New.
10901 (struct stderr_file): New.
10902 (class tee_file): New.
10903 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10904 of a 'ui_file *'. Adjust.
10905 * ui-out.h (class ui_out) <field_stream>: Likewise.
10906 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10907 (null_stream): Delete.
10908 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10909 Adjust.
10910 * utils.h (struct ui_file): Delete forward declaration..
10911 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10912 (error_stream): Take a 'string_file &' instead of a
10913 'ui_file *'.
10914 * varobj.c (varobj_value_get_print_value): Use string_file.
10915 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10916 * gdbarch.c: Regenerate.
10917
187808b0
PA
109182017-02-02 Pedro Alves <palves@redhat.com>
10919
10920 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10921 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10922 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10923 Adjust to call gdb_print_insn instead of
10924 gdb_disassembler::print_insn.
10925 (dump_insns, do_mixed_source_and_assembly_deprecated)
10926 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10927 'gdbarch' parameter. Remove gdb_disassembler parameter.
10928 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10929 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10930 declaration.
10931 (gdb_pretty_print_insn): Re-add declaration.
10932 * record-btrace.c (btrace_insn_history): Don't allocate a
10933 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10934
7a8eb317
SM
109352017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10936
10937 * disasm.h (gdb_disassembly): Remove file_string parameter.
10938 * disasm.c (gdb_disassembly): Likewise.
10939 * cli/cli-cmds.c (print_disassembly): Adapt.
10940 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10941 * stack.c (do_gdb_disassembly): Likewise.
10942
7346ef59
AA
109432017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10944
10945 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10946 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10947 targets. And if the implicit value is longer than needed, extract
10948 the first bytes instead of the "least significant" ones.
10949
cd4007e4
MM
109502017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10951
10952 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10953 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10954 (btrace_fetch): Assert can_access_registers_ptid.
10955 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10956 validate_registers_access.
10957
cf77c34e
MM
109582017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10959
10960 * gdbthread.h (can_access_registers_ptid): New.
10961 * thread.c (can_access_registers_ptid): New.
10962
be85ce7d
PA
109632017-02-01 Pedro Alves <palves@redhat.com>
10964
10965 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10966
29b0b251
PA
109672017-01-31 Pedro Alves <palves@redhat.com>
10968
10969 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10970 Fix typos.
10971
289b5b24
PA
109722017-01-31 Pedro Alves <palves@redhat.com>
10973
10974 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10975 not used.
10976
b47413b4
PA
109772017-01-31 Pedro Alves <palves@redhat.com>
10978
10979 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10980
60adb36c
PA
109812017-01-31 Pedro Alves <palves@redhat.com>
10982
10983 * common/scoped_restore.h
10984 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10985 change the value's parameter type to T2.
10986 (make_scoped_restore): Likewise.
10987
2735833d
WT
109882017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10989 Richard Henderson <rth@redhat.com>
10990
10991 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10992 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10993 GS_BASE for older kernels.
10994 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10995 GS_BASE for older kernels.
10996 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10997 and GS_BASE to the offset table.
10998 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10999 system register group.
11000 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11001 for older kernels.
11002 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11003 amd64 ABI.
11004 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11005 AMD64_GSBASE_REGNUM.
11006 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11007 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11008 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11009 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11010 i386/64bit-segments.xml in those rules.
11011 * features/i386/64bit-segments.xml: New file.
11012 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11013 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11014 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11015 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11016 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11017 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11018 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11019 * features/i386/amd64-avx-linux.c: Regenerated.
11020 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11021 * features/i386/amd64-avx-mpx.c: Regenerated.
11022 * features/i386/amd64-avx512-linux.c: Regenerated.
11023 * features/i386/amd64-linux.c: Regenerated.
11024 * features/i386/amd64-mpx-linux.c: Regenerated.
11025 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11026 * features/i386/i386-avx-mpx.c: Regenerated.
11027 * features/i386/x32-avx-linux.c: Regenerated.
11028 * features/i386/x32-avx512-linux.c: Regenerated.
11029 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11030 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11031 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11032 * regformats/i386/amd64-linux.dat: Regenerated.
11033 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11034 * regformats/i386/x32-avx-linux.dat: Regenerated.
11035 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11036 * regformats/i386/x32-linux.dat: Regenerated.
11037
8884e97e
WT
110382017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11039
11040 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11041 Set to AMD64_NUM_REGS.
11042
7005d26a
WT
110432017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11044
11045 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11046 that checks validity of a register number.
11047
4bd2e1b2
KC
110482017-01-27 Kees Cook <keescook@google.com>
11049
11050 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11051 fetch_fpregs if target has fpa registers.
11052 (arm_linux_store_inferior_registers): Call store_fpregs if target
11053 has fpa registers.
11054
7cf1de6c
AA
110552017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11056
11057 * cris-tdep.c (cris_gdbarch_init): Remove check for
11058 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11059
874a1c8c
AT
110602017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11061
11062 * corelow.c (get_core_register_section): Check for regset
11063 existence before checking for REGSET_VARIABLE_SIZE.
11064
d8b49cf0
YQ
110652017-01-26 Yao Qi <yao.qi@linaro.org>
11066 Pedro Alves <palves@redhat.com>
11067
11068 PR gdb/20939
11069 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11070 call memory_error, save memaddr instead.
11071 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11072 negative, cal memory_error.
11073 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11074
658ca58c
YQ
110752017-01-26 Yao Qi <yao.qi@linaro.org>
11076
11077 * disasm-selftests.c (memory_error_test): New function.
11078 (_initialize_disasm_selftests): Register memory_error_test.
11079
79843d45
YQ
110802017-01-26 Yao Qi <yao.qi@linaro.org>
11081
11082 * Makefile.in (SFILES): Add disasm-selftests.c and
11083 selftest-arch.c.
11084 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11085 * disasm-selftests.c: New file.
11086 * selftest-arch.c: New file.
11087 * selftest-arch.h: New file.
11088
8cafda32
YQ
110892017-01-26 Yao Qi <yao.qi@linaro.org>
11090
11091 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11092 to bfd_arch_mep. Don't return 0 if section is not
11093 found. Call print_insn_mep.
11094
e47ad6c0
YQ
110952017-01-26 Pedro Alves <palves@redhat.com>
11096 Yao Qi <yao.qi@linaro.org>
11097
11098 * arm-tdep.c: Include "disasm.h".
11099 (gdb_print_insn_arm): Update code to get gdbarch.
11100 * disasm.c (dis_asm_read_memory): Change it to
11101 gdb_disassembler::dis_asm_read_memory.
11102 (dis_asm_memory_error): Likewise.
11103 (dis_asm_print_address): Likewise.
11104 (gdb_pretty_print_insn): Change it to
11105 gdb_disassembler::pretty_print_insn.
11106 (dump_insns): Add one argument gdb_disassemlber. All
11107 callers updated.
11108 (do_mixed_source_and_assembly_deprecated): Likewise.
11109 (do_mixed_source_and_assembly): Likewise.
11110 (do_assembly_only): Likewise.
11111 (gdb_disassembler::gdb_disassembler): New.
11112 (gdb_disassembler::print_insn): New.
11113 * disasm.h (class gdb_disassembler): New.
11114 (gdb_pretty_print_insn): Remove declaration.
11115 (gdb_disassemble_info): Likewise.
11116 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11117 (gdbscm_disasm_read_memory_worker): Update.
11118 (gdbscm_disasm_read_memory): Update.
11119 (gdbscm_disasm_memory_error): Remove.
11120 (gdbscm_disasm_print_address): Remove.
11121 (gdbscm_disassembler::gdbscm_disassembler): New.
11122 (gdbscm_print_insn_from_port): Update.
11123 * mips-tdep.c: Include disasm.h.
11124 (gdb_print_insn_mips): Update code to get gdbarch.
11125 * record-btrace.c (btrace_insn_history): Update.
11126 * spu-tdep.c: Include disasm.h.
11127 (struct spu_dis_asm_data): Remove.
11128 (struct spu_dis_asm_info): New.
11129 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11130 SPU id.
11131 (gdb_print_insn_spu): Cast disassemble_info to
11132 spu_dis_asm_info.
11133
80d75874
YQ
111342017-01-26 Yao Qi <yao.qi@linaro.org>
11135
11136 * disasm.c (do_ui_file_delete): Delete.
11137 (gdb_insn_length): Move code creating stream to ...
11138 * utils.c (null_stream): ... here. New function.
11139 * utils.h (null_stream): Declare.
11140
60685cd0
SM
111412017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11142
11143 * python/py-inferior.c (find_thread_object): Return directly
11144 from the loop. Remove "found" variable.
11145
eb1cdb62
JB
111462017-01-21 Joel Brobecker <brobecker@adacore.com>
11147
11148 GDB 7.12.1 released.
11149
b1ce6568
SM
111502017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11151
11152 * python/py-function.c (fnpy_call): Reorder declarations to have
11153 the gdbpy_enter object declared first.
11154 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11155
6f8b0407
SM
111562017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11157
fec93fb1 11158 PR python/21068
6f8b0407
SM
11159 * python/python-internal.h (PyMem_RawMalloc): Define for
11160 Python < 3.4.
11161 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11162 PyMem_RawMalloc instead of PyMem_Malloc.
11163
78cbbba8
LM
111642017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11165 Luis Machado <lgustavo@codesourcery.com>
11166
11167 * NEWS (New commands): Mention flash-erase.
11168 (New MI commands): Mention target-flash-erase.
11169 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11170 command.
11171 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11172 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11173 * target.c (flash_erase_command): New function.
11174 (initialize_targets): Add new flash-erase command.
11175 * target.h (flash_erase_command): New declaration.
11176
2132fe85
JB
111772017-01-20 Joel Brobecker <brobecker@adacore.com>
11178
11179 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11180 HAVE_SYS_PROCFS_H is defined.
11181
d1dff226
AH
111822017-01-18 Alan Hayward <alan.hayward@arm.com>
11183
11184 * remote.c (struct cached_reg): Change data into a pointer.
11185 * (stop_reply_dtr): Free data pointers before deleting vector.
11186 (process_stop_reply): Likewise.
11187 (remote_parse_stop_reply): Allocate space for data
11188
9890e433
AH
111892017-01-18 Alan Hayward <alan.hayward@arm.com>
11190
11191 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11192 MAX_REGISTER_SIZE.
11193 (amd64_pseudo_register_read_value): Likewise.
11194 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11195 (store_register_using_P): Likewise.
11196 * regcache.c (regcache_xfer_part): Likewise.
11197
7a36499a
IR
111982017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11199
11200 Split real and pseudo registers.
11201 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11202 (sparc32_pseudo_regnum): New enum.
11203 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11204 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11205 (SPARC32_CP0_REGISTERS): New macro.
11206 (sparc32_pseudo_register_name): New function.
11207 (sparc32_register_name): Use sparc32_pseudo_register_name.
11208 (sparc32_pseudo_register_type): New function.
11209 (sparc32_register_type): Use sparc32_pseudo_register_type.
11210 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11211 pseudo register numbers.
11212 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11213 (SPARC64_CP0_REGISTERS): New macro.
11214 (sparc64_pseudo_register_name): New function.
11215 (sparc64_register_name): Use sparc64_pseudo_register_name.
11216 (sparc64_pseudo_register_type): New function.
11217 (sparc64_register_type): Use sparc64_pseudo_register_type.
11218 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11219 pseudo register numbers.
11220 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11221 sparc64_store_arguments): Handle pseudo register numbers.
11222
6f8976bf
YQ
112232017-01-13 Yao Qi <yao.qi@linaro.org>
11224
11225 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11226 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11227 output.
11228 (getpkt_or_notif_sane_1): Likewise.
11229
e4241ace
YQ
112302017-01-13 Yao Qi <yao.qi@linaro.org>
11231
11232 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11233 of CC. Pass "-x c++-header" instead of "-x c".
11234
3015c064
SM
112352017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11236
11237 * remote.c (remote_can_async_p): Update comment.
11238
fde1b17d
SM
112392017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11240
11241 * linux-nat.c (linux_nat_can_async_p): Update comment.
11242
ca1ca08b
SM
112432017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11244
11245 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11246
4ad2da73
SM
112472017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11248
11249 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11250
c8b23b3f
TT
112512017-01-10 Tom Tromey <tom@tromey.com>
11252
11253 * python/py-type.c (typy_legacy_template_argument): Update.
11254 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11255 ~demangle_parse_info): Declare new members.
11256 (cp_demangled_name_to_comp): Return unique_ptr.
11257 (cp_demangled_name_parse_free)
11258 (make_cleanup_cp_demangled_name_parse_free)
11259 (cp_new_demangle_parse_info): Remove.
11260 * cp-support.c (do_demangled_name_parse_free_cleanup)
11261 (make_cleanup_cp_demangled_name_parse_free): Remove.
11262 (inspect_type, cp_canonicalize_string_full)
11263 (cp_canonicalize_string): Update.
11264 (mangled_name_to_comp): Change return type.
11265 (cp_class_name_from_physname, method_name_from_physname)
11266 (cp_func_name, cp_remove_params): Update.
11267 * cp-name-parser.y (demangle_parse_info): New constructor, from
11268 cp_new_demangle_parse_info.
11269 (~demangle_parse_info): New destructor, from
11270 cp_demangled_name_parse_free.
11271 (cp_merge_demangle_parse_infos): Update.
11272 (cp_demangled_name_to_comp): Change return type.
11273
1ac32117
TT
112742017-01-10 Tom Tromey <tom@tromey.com>
11275
11276 * top.c (prevent_dont_repeat): Change return type.
11277 * python/python.c (execute_gdb_command): Use std::string.
11278 Update.
11279 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11280 * command.h (prevent_dont_repeat): Change return type.
11281 * breakpoint.c (bpstat_do_actions_1): Update.
11282
0cf08227
TT
112832017-01-10 Tom Tromey <tom@tromey.com>
11284
11285 * value.h (scoped_value_mark::~scoped_value_mark): Call
11286 free_to_mark.
11287 (scoped_value_mark::free_to_mark): New method.
11288 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11289 scoped_value_mark.
11290
eb115069
TT
112912017-01-10 Tom Tromey <tom@tromey.com>
11292
11293 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11294 (valpy_reference_value, valpy_const_value, valpy_get_address)
11295 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11296 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11297 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11298 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11299 scoped_value_mark.
11300 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11301 * value.h (scoped_value_mark): New class.
11302
906768f9
TT
113032017-01-10 Tom Tromey <tom@tromey.com>
11304
11305 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11306 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11307 * psymtab.c (discard_psymtabs_upto): Remove.
11308 (make_cleanup_discard_psymtabs): Remove.
11309 (struct psymtab_state): Remove.
11310
bef155c3
TT
113112017-01-10 Tom Tromey <tom@tromey.com>
11312
11313 * record-full.c (record_full_save_cleanups): Remove.
11314 (record_full_save): Use gdb::unlinker.
11315 * gcore.c (do_bfd_delete_cleanup): Remove.
11316 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11317 cleanups.
11318 * dwarf2read.c (unlink_if_set): Remove.
11319 (write_psymtabs_to_index): Use gdb::unlinker.
11320 * common/gdb_unlinker.h: New file.
11321
192b62ce
TT
113222017-01-10 Tom Tromey <tom@tromey.com>
11323
11324 * windows-tdep.c (windows_xfer_shared_library): Update.
11325 * windows-nat.c (windows_make_so): Update.
11326 * utils.h (make_cleanup_bfd_unref): Remove.
11327 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11328 * symfile.h (symfile_bfd_open)
11329 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11330 * symfile.c (read_symbols, symbol_file_add)
11331 (separate_debug_file_exists): Update.
11332 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11333 (generic_load, reread_symbols): Update.
11334 * symfile-mem.c (symbol_file_add_from_memory): Update.
11335 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11336 (spu_symbol_file_add_from_memory): Update.
11337 * solist.h (struct target_so_ops) <bfd_open>: Return
11338 gdb_bfd_ref_ptr.
11339 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11340 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11341 gdb_bfd_ref_ptr.
11342 (solib_map_sections, reload_shared_libraries_1): Update.
11343 * solib-svr4.c (enable_break): Update.
11344 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11345 * solib-frv.c (enable_break2): Update.
11346 * solib-dsbt.c (enable_break): Update.
11347 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11348 gdb_bfd_ref_ptr.
11349 (darwin_solib_get_all_image_info_addr_at_init): Update.
11350 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11351 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11352 * record-full.c (record_full_save): Update.
11353 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11354 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11355 * minidebug.c (find_separate_debug_file_in_section): Return
11356 gdb_bfd_ref_ptr.
11357 * machoread.c (macho_add_oso_symfile): Change abfd to
11358 gdb_bfd_ref_ptr.
11359 (macho_symfile_read_all_oso): Update.
11360 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11361 (macho_symfile_read): Update.
11362 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11363 (jit_bfd_try_read_symtab): Update.
11364 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11365 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11366 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11367 gdb_bfd_ref_ptr.
11368 (gdb_bfd_ref_policy): New struct.
11369 (gdb_bfd_ref_ptr): New typedef.
11370 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11371 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11372 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11373 gdb_bfd_ref_ptr.
11374 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11375 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11376 (gcore_command): Update.
11377 * exec.c (exec_file_attach): Update.
11378 * elfread.c (elf_symfile_read): Update.
11379 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11380 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11381 (open_and_init_dwo_file): Update.
11382 (open_dwp_file): Return gdb_bfd_ref_ptr.
11383 (open_and_init_dwp_file): Update.
11384 * corelow.c (core_open): Update.
11385 * compile/compile-object-load.c (compile_object_load): Update.
11386 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11387 * coffread.c (coff_symfile_read): Update.
11388 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11389 gdb_bfd_ref_ptr. Rename.
11390 (dump_bfd_file, restore_command): Update.
11391 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11392 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11393 (find_separate_debug_file_by_buildid): Update.
11394
50315b21
TT
113952017-01-10 Tom Tromey <tom@tromey.com>
11396
11397 * common/gdb_ref_ptr.h: New file.
11398 * python/py-ref.h (struct gdbpy_ref_policy): New.
11399 (gdbpy_ref): Now a typedef.
11400
fc4007c9
TT
114012017-01-10 Tom Tromey <tom@tromey.com>
11402
11403 * utils.h (make_cleanup_htab_delete): Don't declare.
11404 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11405 Remove.
11406 * linespec.c (decode_compound_collector): Add constructor,
11407 destructor.
11408 (lookup_prefix_sym): Remove cleanup.
11409 (symtab_collector): Add constructor, destructor.
11410 (collect_symtabs_from_filename): Remove cleanup.
11411 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11412 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11413 Use htab_up.
11414 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11415 * dwarf2read.c (dw2_expand_symtabs_matching)
11416 (dw2_map_symbol_filenames, dwarf_decode_macros)
11417 (write_psymtabs_to_index): Use htab_up.
11418 * dwarf2loc.c (func_verify_no_selftailcall)
11419 (call_site_find_chain_1, func_verify_no_selftailcall)
11420 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11421 std::vector, gdb::unique_xmalloc_ptr.
11422 (call_sitep): Remove typedef.
11423 (dwarf2_locexpr_baton_eval): Remove unused variable.
11424
8dbcee67
TT
114252017-01-10 Tom Tromey <tom@tromey.com>
11426
11427 * python/python-internal.h (make_cleanup_py_decref)
11428 (make_cleanup_py_xdecref): Don't declare.
11429 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11430 (py_xdecref, make_cleanup_py_xdecref): Remove.
11431
13df46cc
TT
114322017-01-10 Tom Tromey <tom@tromey.com>
11433
11434 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11435 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11436
06fc9bf7
TT
114372017-01-10 Tom Tromey <tom@tromey.com>
11438
11439 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11440
830a4934
TT
114412017-01-10 Tom Tromey <tom@tromey.com>
11442
11443 * python/py-utils.c (unicode_to_encoded_string)
11444 (python_string_to_target_string)
11445 (python_string_to_target_python_string)
11446 (python_string_to_host_string, gdbpy_obj_to_string)
11447 (get_addr_from_python): Use gdbpy_ref.
11448
4586d543
TT
114492017-01-10 Tom Tromey <tom@tromey.com>
11450
11451 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11452 gdbpy_ref.
11453
59876f8f
TT
114542017-01-10 Tom Tromey <tom@tromey.com>
11455
11456 * python/python.c (eval_python_command, gdbpy_decode_line)
11457 (gdbpy_run_events, gdbpy_start_type_printers)
11458 (gdbpy_apply_type_printers): Use gdbpy_ref.
11459
97d83487
TT
114602017-01-10 Tom Tromey <tom@tromey.com>
11461
11462 * python/py-param.c (get_doc_string, compute_enum_values): Use
11463 gdbpy_ref.
11464
9205649a
TT
114652017-01-10 Tom Tromey <tom@tromey.com>
11466
11467 * python/py-inferior.c (find_thread_object, build_inferior_list):
11468 Use gdbpy_ref.
11469
74c49d45
TT
114702017-01-10 Tom Tromey <tom@tromey.com>
11471
11472 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11473
16361ffb
TT
114742017-01-10 Tom Tromey <tom@tromey.com>
11475
11476 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11477 gdbpy_ref.
11478
905f2cca
TT
114792017-01-10 Tom Tromey <tom@tromey.com>
11480
11481 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11482 extra incref.
11483 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11484 Use gdbpy_ref.
11485
64081434
TT
114862017-01-10 Tom Tromey <tom@tromey.com>
11487
11488 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11489 gdbpy_ref.
11490
59e9e831
TT
114912017-01-10 Tom Tromey <tom@tromey.com>
11492
11493 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11494 decref results of PyArg_ParseTupleAndKeywords.
11495
9de10f6d
TT
114962017-01-10 Tom Tromey <tom@tromey.com>
11497
11498 * python/python.c (python_run_simple_file): Use
11499 unique_xmalloc_ptr, gdbpy_ref.
11500
2bd5759d
TT
115012017-01-10 Tom Tromey <tom@tromey.com>
11502
11503 * python/py-prettyprint.c (print_stack_unless_memory_error)
11504 (print_string_repr, print_children): Use gdbpy_ref.
11505 (dummy_python_frame): New class.
11506 (dummy_python_frame::dummy_python_frame): Rename from
11507 push_dummy_python_frame.
11508 (py_restore_tstate): Remove.
11509
3b4e0e01
TT
115102017-01-10 Tom Tromey <tom@tromey.com>
11511
11512 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11513
17a22718
TT
115142017-01-10 Tom Tromey <tom@tromey.com>
11515
11516 * python/python.c (ensure_python_env, restore_python_env):
11517 Remove.
11518 * python/python-internal.h (ensure_python_env): Don't declare.
11519 * varobj.h (varobj_ensure_python_env): Don't declare.
11520 * varobj.c (varobj_ensure_python_env): Remove.
11521
68cdc557
TT
115222017-01-10 Tom Tromey <tom@tromey.com>
11523
11524 * varobj.c (varobj_value_get_print_value): Use
11525 gdbpy_enter_varobj.
11526
1eba6383
TT
115272017-01-10 Tom Tromey <tom@tromey.com>
11528
11529 * python/py-prettyprint.c (print_string_repr, print_children):
11530 Update.
11531 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11532 of "encoding".
11533 * varobj.c (varobj_value_get_print_value): Update.
11534 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11535
bde7b3e3
TT
115362017-01-10 Tom Tromey <tom@tromey.com>
11537
11538 * varobj.c (varobj_get_display_hint)
11539 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11540 (varobj_set_visualizer, free_variable): Use
11541 gdbpy_enter_varobj.
11542
a7785f8c
TT
115432017-01-10 Tom Tromey <tom@tromey.com>
11544
11545 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11546 (do_finish_initialization): New function. Use gdbpy_ref.
11547 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11548 do_finish_initialization.
11549
2865bfce
TT
115502017-01-10 Tom Tromey <tom@tromey.com>
11551
11552 * python/py-param.c (get_set_value, get_show_value): Use
11553 gdbpy_enter, gdbpy_ref.
11554
0e9dcc75
TT
115552017-01-10 Tom Tromey <tom@tromey.com>
11556
11557 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11558
12a5cedd
TT
115592017-01-10 Tom Tromey <tom@tromey.com>
11560
11561 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11562
788f2586
TT
115632017-01-10 Tom Tromey <tom@tromey.com>
11564
11565 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11566 Use gdbpy_enter_varobj.
11567
6cd67bea
TT
115682017-01-10 Tom Tromey <tom@tromey.com>
11569
11570 * varobj.c (gdbpy_enter_varobj): New constructor.
11571 * python/python-internal.h (gdbpy_enter_varobj): New class.
11572 * python/py-varobj.c (py_varobj_get_iterator): Use
11573 gdbpy_enter_varobj.
11574
14b122bf
TT
115752017-01-10 Tom Tromey <tom@tromey.com>
11576
11577 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11578 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11579 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11580 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11581 unique_xmalloc_ptr.
11582 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11583
bf1ca3b9
TT
115842017-01-10 Tom Tromey <tom@tromey.com>
11585
11586 * python/py-xmethods.c (invoke_match_method): Use
11587 gdbpy_ref.
11588
572a5524
TT
115892017-01-10 Tom Tromey <tom@tromey.com>
11590
11591 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11592 gdbpy_enter, gdbpy_ref.
11593
396a78b6
TT
115942017-01-10 Tom Tromey <tom@tromey.com>
11595
11596 * python/python.c (python_interactive_command): Use gdbpy_enter.
11597
a88b13c7
TT
115982017-01-10 Tom Tromey <tom@tromey.com>
11599
11600 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11601 gdbpy_ref.
11602
e9f0c363
TT
116032017-01-10 Tom Tromey <tom@tromey.com>
11604
11605 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11606 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11607
6349f452
TT
116082017-01-10 Tom Tromey <tom@tromey.com>
11609
11610 * utils.h (htab_deleter): New struct.
11611 (htab_up): New typedef.
11612 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11613 gdbpy_enter, gdbpy_ref, htab_up.
11614
c0171de6
TT
116152017-01-10 Tom Tromey <tom@tromey.com>
11616
11617 * python/py-unwind.c (pending_frame_invalidate): Remove.
11618 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11619
f18e226f
TT
116202017-01-10 Tom Tromey <tom@tromey.com>
11621
11622 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11623 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11624
c57af3f1
TT
116252017-01-10 Tom Tromey <tom@tromey.com>
11626
11627 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11628
60e600ec
TT
116292017-01-10 Tom Tromey <tom@tromey.com>
11630
11631 * python/python.c (gdbpy_eval_from_control_command)
11632 (gdbpy_source_script, gdbpy_run_events)
11633 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11634 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11635 gdbpy_enter.
11636
bf7da5b0
TT
116372017-01-10 Tom Tromey <tom@tromey.com>
11638
11639 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11640
2d38bced
TT
116412017-01-10 Tom Tromey <tom@tromey.com>
11642
11643 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11644
07bc7329
TT
116452017-01-10 Tom Tromey <tom@tromey.com>
11646
11647 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11648 (python_on_inferior_call_pre, python_on_inferior_call_post)
11649 (python_on_memory_change, python_on_register_change)
11650 (python_inferior_exit, python_new_objfile, add_thread_object)
11651 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11652
6e7c365e
TT
116532017-01-10 Tom Tromey <tom@tromey.com>
11654
11655 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11656 (bpfinishpy_handle_exit): Use gdbpy_enter.
11657
6ba0cd40
TT
116582017-01-10 Tom Tromey <tom@tromey.com>
11659
11660 * python/py-cmd.c (cmdpy_destroyer)
11661 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11662 gdbpy_enter.
11663
de2dc875
TT
116642017-01-10 Tom Tromey <tom@tromey.com>
11665
11666 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11667 gdbpy_enter.
11668 (gdbpy_breakpoint_has_cond): Likewise.
11669
4ecee2c4
TT
116702017-01-10 Tom Tromey <tom@tromey.com>
11671
11672 * python/python.c (gdbpy_enter): New constructor.
11673 (~gdbpy_enter): New destructor.
11674 (restore_python_env, ensure_python_env): Rewrite.
11675 * python/python-internal.h (gdbpy_enter): New class.
11676
37fce74f
TT
116772017-01-10 Tom Tromey <tom@tromey.com>
11678
11679 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11680
53a0cca3
TT
116812017-01-10 Tom Tromey <tom@tromey.com>
11682
11683 * python/py-value.c (value_has_field, get_field_flag)
11684 (get_field_type, valpy_getitem, convert_value_from_python): Use
11685 gdbpy_ref.
11686
ff3724f5
TT
116872017-01-10 Tom Tromey <tom@tromey.com>
11688
11689 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11690 gdbpy_ref.
11691
0700aea5
TT
116922017-01-10 Tom Tromey <tom@tromey.com>
11693
11694 * python/py-prettyprint.c (search_pp_list)
11695 (find_pretty_printer_from_objfiles)
11696 (find_pretty_printer_from_progspace)
11697 (find_pretty_printer_from_gdb, find_pretty_printer)
11698 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11699 gdbpy_ref.
11700
1bb44c9f
TT
117012017-01-10 Tom Tromey <tom@tromey.com>
11702
11703 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11704
87ce03fd
TT
117052017-01-10 Tom Tromey <tom@tromey.com>
11706
11707 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11708 (ltpy_get_all_source_lines): Use gdbpy_ref.
11709
ee0a3fb8
TT
117102017-01-10 Tom Tromey <tom@tromey.com>
11711
11712 * python/py-framefilter.c (extract_sym, extract_value)
11713 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11714 gdbpy_ref.
11715
bf2a52fa
TT
117162017-01-10 Tom Tromey <tom@tromey.com>
11717
11718 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11719
f59fe7f8
TT
117202017-01-10 Tom Tromey <tom@tromey.com>
11721
11722 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11723
80bd970a
TT
117242017-01-10 Tom Tromey <tom@tromey.com>
11725
11726 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11727 gdbpy_ref.
11728
d1b3de2e
TT
117292017-01-10 Tom Tromey <tom@tromey.com>
11730
11731 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11732
3bb43384
TT
117332017-01-10 Tom Tromey <tom@tromey.com>
11734
11735 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11736 (typy_range): Use gdbpy_ref.
11737
abf5651e
TT
117382017-01-10 Tom Tromey <tom@tromey.com>
11739
11740 * python/py-threadevent.c (create_thread_event_object): Use
11741 gdbpy_ref.
11742 * python/py-stopevent.c (create_stop_event_object): Simplify.
11743 (emit_stop_event): Use gdbpy_ref.
11744 * python/py-signalevent.c (create_signal_event_object): Use
11745 gdbpy_ref.
11746 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11747 (emit_new_objfile_event, create_clear_objfiles_event_object)
11748 (emit_clear_objfiles_event): Use gdbpy_ref.
11749 * python/py-infevents.c (create_inferior_call_event_object)
11750 (create_register_changed_event_object)
11751 (create_memory_changed_event_object, emit_inferior_call_event)
11752 (emit_memory_changed_event, emit_register_changed_event): Use
11753 gdbpy_ref.
11754 * python/py-exitedevent.c (create_exited_event_object)
11755 (emit_exited_event): Use gdbpy_ref.
11756 * python/py-event.h (evpy_emit_event): Remove
11757 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11758 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11759 * python/py-continueevent.c (emit_continue_event): Use
11760 gdbpy_ref.
11761 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11762 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11763 gdbpy_ref.
11764 * python/py-bpevent.c (create_breakpoint_event_object): Use
11765 gdbpy_ref.
11766
a68ff33e
TT
117672017-01-10 Tom Tromey <tom@tromey.com>
11768
11769 * python/py-ref.h: New file.
11770
7becfd03
SM
117712017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11772
11773 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11774 void.
11775 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11776 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11777 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11778 * ui-out.c (ui_out::redirect): Likewise.
11779 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11780 * cli/cli-logging.c (set_logging_redirect): Update call site of
11781 ui_out::redirect.
11782 (handle_redirections): Likewise.
11783 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11784 * top.c (execute_command_to_string): Likewise.
11785 * utils.c (do_ui_out_redirect_pop): Likewise.
11786
df294654
SM
117872017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11788
11789 * stack.c (_initialize_stack): Update "frame" command help message.
11790
f5e6296e
IB
117912017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11792
11793 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11794
0e2d6fa6
YQ
117952017-01-06 Yao Qi <yao.qi@linaro.org>
11796
11797 * x86-linux-nat.h: Include gdb_proc_service.h.
11798
44d6d3f9
YQ
117992017-01-06 Yao Qi <yao.qi@linaro.org>
11800
11801 * ser-base.h: Include serial.h.
11802
656731fe
YQ
118032017-01-06 Yao Qi <yao.qi@linaro.org>
11804
11805 * ppc-linux-tdep.h: Include ppc-tdep.h.
11806
1ca8f924
YQ
118072017-01-06 Yao Qi <yao.qi@linaro.org>
11808
11809 * nat/amd64-linux-siginfo.h: Include signal.h.
11810
bc3008c4
YQ
118112017-01-06 Yao Qi <yao.qi@linaro.org>
11812
11813 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11814
66c80d03
YQ
118152017-01-06 Yao Qi <yao.qi@linaro.org>
11816
11817 * mi/mi-parse.h: Include mi-cmds.h.
11818
051d2dda
YQ
118192017-01-06 Yao Qi <yao.qi@linaro.org>
11820
11821 * inf-loop.c: Don't include "target.h".
11822 * inf-loop.h: Include it here.
11823
8018d34f
YQ
118242017-01-06 Yao Qi <yao.qi@linaro.org>
11825
11826 * dfp.h: Include "dboulest.h" and "expression.h".
11827
c0b8369c
YQ
118282017-01-06 Yao Qi <yao.qi@linaro.org>
11829
11830 * ax-gdb.h: Include "ax.h".
11831
ad5cba2a
YQ
118322017-01-06 Yao Qi <yao.qi@linaro.org>
11833
11834 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11835 with nat/gdb_ptrace.h.
11836
1c33cd7f
YQ
118372017-01-05 Yao Qi <yao.qi@linaro.org>
11838
11839 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11840 new line.
11841 (mips64_fbsd_sigframe_init): Likewise.
11842
c988ac1d
JB
118432017-01-04 John Baldwin <jhb@FreeBSD.org>
11844
11845 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11846 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11847
b268007c
JB
118482017-01-04 John Baldwin <jhb@FreeBSD.org>
11849
11850 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11851 * NEWS: Mention new FreeBSD/mips native configuration.
11852 * config/mips/fbsd.mh: New file.
11853 * configure.host: Add mips*-*-freebsd*.
11854 * mips-fbsd-nat.c: New file.
11855
387360da
JB
118562017-01-04 John Baldwin <jhb@FreeBSD.org>
11857
11858 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11859 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11860 * NEWS: Mention new FreeBSD/mips target.
11861 * configure.tgt: Add mips*-*-freebsd*.
11862 * mips-fbsd-tdep.c: New file.
11863 * mips-fbsd-tdep.h: New file.
11864
2aaaf250
YQ
118652017-01-04 Yao Qi <yao.qi@linaro.org>
11866
11867 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11868 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11869
61baf725
JB
118702017-01-01 Joel Brobecker <brobecker@adacore.com>
11871
6dbb839a 11872 Update copyright year range in all GDB files.
61baf725 11873
c113e7ff 118742017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 11875
c113e7ff 11876 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 11877
c113e7ff 11878For older changes see ChangeLog-2016.
c906108c
SS
11879\f
11880Local Variables:
11881mode: change-log
11882left-margin: 8
11883fill-column: 74
11884version-control: never
57da7796 11885coding: utf-8
c906108c 11886End:
This page took 2.493134 seconds and 4 git commands to generate.