]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Make init_type/arch_type take a size in bits
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * gdbtypes.c (init_type): Change incoming argument from
4 length-in-bytes to length-in-bits. Assert length is a
5 multiple of TARGET_CHAR_BITS.
6 (arch_type, arch_flags_type): Likewise.
7 (init_integer_type): Update call to init_type.
8 (init_character_type): Likewise.
9 (init_boolean_type): Likewise.
10 (init_float_type): Likewise.
11 (init_decfloat_type): Likewise.
12 (init_complex_type): Likewise.
13 (init_pointer_type): Likewise.
14 (objfile_type): Likewise.
15 (arch_integer_type): Update call to arch_type.
16 (arch_character_type): Likewise.
17 (arch_boolean_type): Likewise.
18 (arch_float_type): Likewise.
19 (arch_decfloat_type): Likewise.
20 (arch_complex_type): Likewise.
21 (arch_pointer_type): Likewise.
22 (gdbtypes_post_init): Likewise.
23
24 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
25 (read_base_type): Likewise.
26 * mdebugread.c (basic_type): Likewise.
27 * stabsread.c (dbx_init_float_type): Likewise.
28 (rs6000_builtin_type): Likewise.
29 (read_range_type): Likewise. Also, fix call to init_integer_type
30 with erroneous length argument.
31
32 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
33 * d-lang.c (build_d_types): Likewise.
34 * f-lang.c (build_fortran_types): Likewise.
35 * go-lang.c (build_go_types): Likewise.
36 * opencl-lang.c (build_opencl_types): Likewise.
37 * jit.c (finalize_symtab): Likewise.
38 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
39 (build_std_type_info_type): Likewise.
40 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
41 update call to arch_flags_type.
42
43 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
44 arch_type.
45 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
46 * windows-tdep.c (windows_get_tlb_type): Likewise.
47
48 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
49 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
50 * m32c-tdep.c (make_types): Likewise.
51 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
52 (rl78_psw_type): Update call to arch_flags_type.
53 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
54 * rx-tdep.c (rx_psw_type): Likewise.
55 (rx_fpsw_type): Likewise.
56 * sparc-tdep.c (sparc_psr_type): Likewise.
57 (sparc_fsr_type): Likewise.
58 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
59 (sparc64_ccr_type): Likewise.
60 (sparc64_fsr_type): Likewise.
61 (sparc64_fprs_type): Likewise.
62
63 2017-09-27 Tom Tromey <tom@tromey.com>
64
65 * findcmd.c (find_command): Constify.
66
67 2017-09-27 Tom Tromey <tom@tromey.com>
68
69 * ada-tasks.c (task_command_1, task_command): Constify.
70
71 2017-09-27 Tom Tromey <tom@tromey.com>
72
73 * symtab.c (maintenance_print_symbol_cache)
74 (maintenance_flush_symbol_cache)
75 (maintenance_print_symbol_cache_statistics): Constify.
76
77 2017-09-27 Tom Tromey <tom@tromey.com>
78
79 * inferior.c (detach_inferior_command, kill_inferior_command)
80 (inferior_command): Constify.
81
82 2017-09-27 Tom Tromey <tom@tromey.com>
83
84 * regcache.c (regcache_print, maintenance_print_registers)
85 (maintenance_print_raw_registers)
86 (maintenance_print_cooked_registers)
87 (maintenance_print_register_groups)
88 (maintenance_print_remote_registers): Constify.
89
90 2017-09-27 Tom Tromey <tom@tromey.com>
91
92 * printcmd.c (map_display_numbers, undisplay_command)
93 (enable_disable_display_command, enable_display_command)
94 (disable_display_command): Constify.
95
96 2017-09-27 Tom Tromey <tom@tromey.com>
97
98 * breakpoint.h (delete_command): Don't declare.
99 * breakpoint.c (delete_command, enable_once_command)
100 (enable_count_command, enable_delete_command, breakpoint_1)
101 (maintenance_info_breakpoints, stopin_command, stopat_command)
102 (delete_command, delete_trace_command, save_breakpoints)
103 (save_breakpoints_command, save_tracepoints_command): Constify.
104
105 2017-09-27 Tom Tromey <tom@tromey.com>
106
107 * macrocmd.c (macro_expand_command, macro_expand_once_command)
108 (skip_ws, extract_identifier, macro_define_command)
109 (macro_undef_command, macro_list_command): Constify.
110
111 2017-09-27 Tom Tromey <tom@tromey.com>
112
113 * infcmd.c (environment_info, set_environment_command)
114 (unset_environment_command, path_info, info_proc_cmd_1)
115 (info_proc_cmd_mappings, info_proc_cmd_stat)
116 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
117 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
118
119 2017-09-27 Tom Tromey <tom@tromey.com>
120
121 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
122 Constify.
123
124 2017-09-27 Tom Tromey <tom@tromey.com>
125
126 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
127
128 2017-09-27 Tom Tromey <tom@tromey.com>
129
130 * demangle.c (demangle_command): Constify.
131
132 2017-09-27 Tom Tromey <tom@tromey.com>
133
134 * progspace.c (maintenance_info_program_spaces_command):
135 Constify.
136
137 2017-09-27 Tom Tromey <tom@tromey.com>
138
139 * compile/compile.c (check_raw_argument, compile_file_command)
140 (compile_code_command, compile_print_command): Constify.
141
142 2017-09-27 Tom Tromey <tom@tromey.com>
143
144 * reggroups.c (maintenance_print_reggroups): Constify.
145
146 2017-09-27 Tom Tromey <tom@tromey.com>
147
148 * dwarf2read.c (save_gdb_index_command): Constify.
149
150 2017-09-27 Tom Tromey <tom@tromey.com>
151
152 * stap-probe.c (info_probes_stap_command): Constify.
153
154 2017-09-27 Tom Tromey <tom@tromey.com>
155
156 * fork-child.c (unset_exec_wrapper_command): Constify.
157
158 2017-09-27 Tom Tromey <tom@tromey.com>
159
160 * btrace.c (get_uint, get_context_size, no_chunk)
161 (maint_btrace_packet_history_cmd)
162 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
163 (maint_info_btrace_cmd): Constify.
164
165 2017-09-27 Tom Tromey <tom@tromey.com>
166
167 * reverse.c (delete_bookmark_command): Constify.
168
169 2017-09-27 Tom Tromey <tom@tromey.com>
170
171 * remote.c (set_memory_packet_size)
172 (set_memory_write_packet_size, show_memory_write_packet_size)
173 (set_memory_read_packet_size, show_memory_read_packet_size)
174 (compare_sections_command, packet_command, remote_put_command)
175 (remote_get_command, remote_delete_command): Constify.
176
177 2017-09-27 Tom Tromey <tom@tromey.com>
178
179 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
180 (set_mipsfpu_double_command, set_mipsfpu_none_command)
181 (set_mipsfpu_auto_command): Constify.
182
183 2017-09-27 Tom Tromey <tom@tromey.com>
184
185 * cli/cli-cmds.h (cd_command): Constify.
186 * cli/cli-cmds.c (cd_command): Constify.
187
188 2017-09-27 Tom Tromey <tom@tromey.com>
189
190 * thread.c (thread_name_command, thread_find_command): Constify.
191
192 2017-09-27 Tom Tromey <tom@tromey.com>
193
194 * probe.c (enable_probes_command, disable_probes_command):
195 Constify.
196
197 2017-09-27 Tom Tromey <tom@tromey.com>
198
199 * symfile.c (symbol_file_command): Constify.
200 * gdbcore.h (deprecated_file_changed_hook): Constify.
201 * exec.c (deprecated_file_changed_hook, exec_file_command)
202 (file_command): Constify.
203 * defs.h (symbol_file_command): Constify.
204
205 2017-09-27 Tom Tromey <tom@tromey.com>
206
207 * remote-fileio.c (set_system_call_allowed)
208 (show_system_call_allowed): Constify.
209
210 2017-09-27 Tom Tromey <tom@tromey.com>
211
212 * tracepoint.c (delete_trace_variable_command)
213 (tfind_end_command, tfind_start_command, tfind_pc_command)
214 (tfind_tracepoint_command, tfind_line_command)
215 (tfind_range_command, tfind_outside_command): Constify.
216
217 2017-09-27 Tom Tromey <tom@tromey.com>
218
219 * ax-gdb.c (maint_agent_printf_command, agent_command)
220 (agent_eval_command): Constify.
221
222 2017-09-27 Tom Tromey <tom@tromey.com>
223
224 * tracepoint.c (info_scope_command): Constify.
225 * python/python.c (gdbpy_decode_line): Constify.
226 * python/py-breakpoint.c (bppy_init): Constify.
227 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
228 * location.h: (new_linespec_location)
229 (string_to_event_location_basic, string_to_event_location):
230 Constify.
231 * location.c (new_linespec_location)
232 (string_to_event_location_basic, string_to_event_location):
233 Constify.
234 * linespec.h (decode_line_with_current_source)
235 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
236 * linespec.c (linespec_lex_to_end)
237 (decode_line_with_current_source)
238 (decode_line_with_last_displayed): Constify.
239 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
240 Constify.
241 * cli/cli-cmds.c (edit_command, list_command): Constify.
242 * breakpoint.h (until_break_command, watch_command_wrapper)
243 (awatch_command_wrapper, rwatch_command_wrapper)
244 (init_ada_exception_breakpoint): Constify.
245 * breakpoint.c (break_command_1, dprintf_command)
246 (break_range_command, watch_command_wrapper)
247 (rwatch_command_wrapper, awatch_command_wrapper)
248 (until_break_command, init_ada_exception_breakpoint)
249 (strace_marker_create_sals_from_location, trace_command)
250 (ftrace_command, strace_command, struct tracepoint): Constify.
251 * ax-gdb.c (agent_command_1): Constify.
252 * ada-lang.c (ada_exception_sal): Constify.
253
254 2017-09-27 Tom Tromey <tom@tromey.com>
255
256 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
257 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
258 (get_context_size, no_chunk, get_insn_history_modifiers)
259 (cmd_record_insn_history, get_call_history_modifiers)
260 (cmd_record_call_history): Constify.
261
262 2017-09-27 Tom Tromey <tom@tromey.com>
263
264 * source.c (show_substitute_path_command)
265 (unset_substitute_path_command, set_substitute_path_command):
266 Constify.
267
268 2017-09-27 Tom Tromey <tom@tromey.com>
269
270 * typeprint.c (maintenance_print_type): Constify.
271 * maint.c (maintenance_dump_me, maintenance_demangle)
272 (maintenance_time_display, maintenance_info_sections)
273 (maintenance_print_statistics, maintenance_deprecate)
274 (maintenance_undeprecate): Constify.
275 (maintenance_do_deprecate): Constify. Use std::string.
276 (maintenance_selftest): Constify.
277 * gdbtypes.h (maintenance_print_type): Constify.
278
279 2017-09-27 Tom Tromey <tom@tromey.com>
280
281 * hppa-tdep.c (unwind_command): Constify.
282
283 2017-09-27 Tom Tromey <tom@tromey.com>
284
285 * target-descriptions.c (unset_tdesc_filename_cmd)
286 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
287 Constify.
288
289 2017-09-27 Tom Tromey <tom@tromey.com>
290
291 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
292
293 2017-09-27 Tom Tromey <tom@tromey.com>
294
295 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
296
297 2017-09-27 Tom Tromey <tom@tromey.com>
298
299 * tui/tui-regs.c (tui_reg_command): Constify.
300
301 2017-09-27 Tom Tromey <tom@tromey.com>
302
303 * skip.c (skip_file_command, skip_function_command)
304 (skip_enable_command, skip_disable_command, skip_delete_command):
305 Constify.
306
307 2017-09-27 Tom Tromey <tom@tromey.com>
308
309 * record-btrace.c (cmd_record_btrace_bts_start)
310 (cmd_record_btrace_pt_start): Constify.
311
312 2017-09-27 Tom Tromey <tom@tromey.com>
313
314 * symmisc.c (maintenance_print_symbols)
315 (maintenance_print_msymbols, maintenance_print_objfiles)
316 (maintenance_info_symtabs, maintenance_check_symtabs)
317 (maintenance_expand_symtabs, maintenance_info_line_tables):
318 Constify.
319
320 2017-09-27 Tom Tromey <tom@tromey.com>
321
322 * top.c (new_ui_command): Constify.
323
324 2017-09-27 Tom Tromey <tom@tromey.com>
325
326 * symfile.c (add_symbol_file_command)
327 (remove_symbol_file_command, list_overlays_command)
328 (map_overlay_command, unmap_overlay_command)
329 (overlay_auto_command, overlay_manual_command)
330 (overlay_off_command, overlay_load_command): Constify.
331
332 2017-09-27 Tom Tromey <tom@tromey.com>
333
334 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
335 (info_spu_mailbox_command, info_spu_dma_command)
336 (info_spu_proxydma_command): Constify.
337
338 2017-09-27 Tom Tromey <tom@tromey.com>
339
340 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
341
342 2017-09-27 Tom Tromey <tom@tromey.com>
343
344 * cli/cli-script.c (user_defined_command): Constify.
345
346 2017-09-27 Tom Tromey <tom@tromey.com>
347
348 * cli/cli-dump.c (dump_memory_command, dump_value_command)
349 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
350 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
351 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
352 (dump_binary_value, append_binary_memory, append_binary_value):
353 Constify.
354 (struct dump_context) <func>: Constify.
355 (add_dump_command): Update.
356
357 2017-09-27 Tom Tromey <tom@tromey.com>
358
359 * cli/cli-cmds.c (show_version, show_configuration)
360 (source_command, show_user): Constify.
361
362 2017-09-27 Tom Tromey <tom@tromey.com>
363
364 * target.c (maintenance_print_target_stack): Constify.
365
366 2017-09-27 Tom Tromey <tom@tromey.com>
367
368 * interps.c (interpreter_exec_cmd): Constify.
369
370 2017-09-27 Tom Tromey <tom@tromey.com>
371
372 * record-full.c (cmd_record_full_restore): Constify.
373
374 2017-09-27 Tom Tromey <tom@tromey.com>
375
376 * memattr.c (enable_mem_command, disable_mem_command)
377 (delete_mem_command): Constify.
378
379 2017-09-27 Tom Tromey <tom@tromey.com>
380
381 * value.c (show_convenience): Constify.
382
383 2017-09-27 Tom Tromey <tom@tromey.com>
384
385 * gdbcore.h (core_file_command): Update.
386 * corefile.c (core_file_command): Constify.
387
388 2017-09-27 Tom Tromey <tom@tromey.com>
389
390 * user-regs.c (maintenance_print_user_registers): Constify.
391
392 2017-09-27 Tom Tromey <tom@tromey.com>
393
394 * cp-namespace.c (maintenance_cplus_namespace): Constify.
395
396 2017-09-27 Tom Tromey <tom@tromey.com>
397
398 * cp-support.c (first_component_command): Constify.
399
400 2017-09-27 Tom Tromey <tom@tromey.com>
401
402 * psymtab.c (maintenance_print_psymbols)
403 (maintenance_info_psymtabs, maintenance_check_psymtabs):
404 Constify.
405
406 2017-09-27 Tom Tromey <tom@tromey.com>
407
408 * windows-tdep.c (display_tib): Constify.
409
410 2017-09-27 Tom Tromey <tom@tromey.com>
411
412 * linux-fork.c (delete_checkpoint_command)
413 (detach_checkpoint_command): Constify.
414
415 2017-09-27 Tom Tromey <tom@tromey.com>
416
417 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
418
419 2017-09-27 Tom Tromey <tom@tromey.com>
420
421 * arc-tdep.c (dump_arc_instruction_command): Constify.
422
423 2017-09-27 Tom Tromey <tom@tromey.com>
424
425 * valprint.c (set_radix, show_radix): Constify.
426
427 2017-09-27 Tom Tromey <tom@tromey.com>
428
429 * dtrace-probe.c (info_probes_dtrace_command): Constify.
430
431 2017-09-27 Tom Tromey <tom@tromey.com>
432
433 * command.h (not_just_help_class_command): Update.
434 * cli/cli-decode.h (not_just_help_class_command): Update.
435 * cli/cli-decode.c (not_just_help_class_command): Constify.
436
437 2017-09-27 Tom Tromey <tom@tromey.com>
438
439 * gdb_bfd.c (maintenance_info_bfds): Constify.
440
441 2017-09-27 Tom Tromey <tom@tromey.com>
442
443 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
444 overloads.
445 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
446 (do_const_cfunc): New function.
447 (cmd_cfunc_eq): New overload.
448 (cli_user_command_p): Check do_const_cfunc.
449 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
450 const_cfunc.
451 * command.h (add_cmd): Add const overload and no-function
452 overload.
453 (set_cmd_cfunc): Add const overload.
454 (cmd_const_cfunc_ftype): Declare.
455 (cmd_cfunc_eq): Add const overload.
456 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
457 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
458 overload.
459
460 2017-09-27 Tom Tromey <tom@tromey.com>
461
462 * macroexp.c (get_next_token_for_substitution): New function.
463 (substitute_args): Call it. Check for __VA_OPT__.
464
465 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
466 Pedro Alves <palves@redhat.com>
467
468 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
469 producer_is_icc_lt_14.
470 (producer_is_icc_lt_14): New function.
471 (check_producer): Add code for checking version of ICC.
472 (producer_is_icc): Move to producer.c.
473 (read_structure_type): Restrict ICC workaround to ICC<14.
474 * producer.c: Include selftest.h.
475 (producer_is_icc, producer_parsing_tests, _initialize_producer):
476 New functions.
477 * producer.h (producer_is_icc): New declaration.
478
479 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
480
481 * Makefile.in (SFILES): Add producer.c.
482 (COMMON_OBS): Add producer.o
483 * amd64-tdep.c (producer.h): Add new include.
484 * dwarf2read.c (producer.h): Add new include.
485 * producer.c: New file.
486 * producer.h: New file.
487 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
488 producer.c.
489 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
490 producer.h.
491
492 2017-09-26 Matthias Klose <doko@ubuntu.com>
493
494 * configure.ac: Search ncursesw before ncurses.
495 Check ncursesw/ncurses.h before ncurses/ncurses.h.
496 * gdb_curses.h: Include <ncursesw/ncurses.h>
497 * config.in, configure: Regenerate.
498
499 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
500
501 PR gdb/22185
502 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
503 obsolete.
504 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
505 Remove i386sol2 support.
506 * configure.nat <i386sol2>: Remove.
507 <sol2-64>: Fold into ...
508 <sol2>: ... this.
509 Move common settings to default section.
510 Add sol-thread.o.
511 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
512 x86_64-*-solaris2.1[0-9]*>: Rename to ...
513 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
514 <i[34567]86-*-solaris*>: Remove.
515 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
516
517 * configure.ac: Remove wctype in libw check.
518 (_MSE_INT_H): Don't define on Solaris 7-9.
519 <solaris*>: Remove libthread_db.so.1 check.
520 * configure: Regenerate.
521 * config.in: Regenerate.
522
523 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
524 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
525 (gdb_ps_size_t): Remove.
526 Use base types in users.
527 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
528
529 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
530
531 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
532
533 PR build/22206
534 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
535 (adi_is_addr_mapped): Likewise.
536 (PSR_ICC): Don't redefine.
537 (PSR_IMPL): Likewise.
538
539 2017-09-25 Tom Tromey <tom@tromey.com>
540
541 * regcache.c (regcache::dump): Use string_printf.
542
543 2017-09-25 Tom Tromey <tom@tromey.com>
544
545 * regcache.c (class regcache_invalidator): New.
546 (struct register_to_invalidate): Remove.
547 (make_cleanup_regcache_invalidate): Remove.
548 (regcache::raw_write): Use regcache_invalidator.
549
550 2017-09-25 Tom Tromey <tom@tromey.com>
551
552 * spu-tdep.c (spu2ppu_sniffer): Update.
553 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
554 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
555 Remove.
556 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
557 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
558 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
559 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
560 (frame_pop): Update.
561
562 2017-09-25 Tom Tromey <tom@tromey.com>
563
564 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
565 * regcache.h (regcache_xfree): Don't declare.
566 * regcache.c (regcache_xfree): Remove.
567 (do_regcache_xfree): Use delete.
568 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
569 * linux-fork.c (free_fork): Use delete.
570 (fork_save_infrun_state): Likewise.
571 * jit.c (jit_dealloc_cache): Use delete.
572 * infrun.c (discard_infcall_suspend_state): Use delete.
573
574 2017-09-25 Tom Tromey <tom@tromey.com>
575
576 * regcache.h (regcache_xmalloc): Don't declare.
577 (regcache_raw_set_cached_value): Update comment.
578 * regcache.c (regcache_xmalloc): Remove.
579 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
580 * jit.c (jit_frame_sniffer): Use new.
581 * frame.c (frame_save_as_regcache): Use new.
582
583 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
584
585 * NEWS: Advertise support for guarded-storage registers on IBM z.
586
587 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
588
589 * s390-linux-nat.c (have_regset_gs): New static variable.
590 (s390_linux_fetch_inferior_registers): Handle guarded-storage
591 control block and guarded-storage broadcast control regsets.
592 (s390_read_description): Detect whether the target has
593 guarded-storage support, return appropriate tdesc.
594 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
595 (features/s390x-gs-linux64.c): Likewise.
596 (struct gdbarch_tdep) <have_gs>: New field.
597 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
598 (s390_gsbc_regset): New variables.
599 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
600 and s390_gsbc_regset, if applicable.
601 (s390_core_read_description): Check whether core file was from a
602 target with guarded-storage support; include appropriate regsets.
603 (s390_gdbarch_init): Add registers for guarded-storage support.
604 (_initialize_s390_tdep): Initialize new target descriptions that
605 include registers for guarded-storage support.
606 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
607 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
608 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
609 (S390_NUM_REGS): Adjust macro definition.
610 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
611 (tdesc_s390x_gs_linux64): New declarations.
612
613 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
614
615 * features/s390-gs-linux64.xml: New file.
616 * features/s390-gs.xml: New file.
617 * features/s390-gsbc.xml: New file.
618 * features/s390x-gs-linux64.xml: New file.
619 * features/Makefile (WHICH): Add s390-gs-linux64 and
620 s390x-gs-linux64.
621 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
622 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
623 * features/s390-gs-linux64.c: New generated file.
624 * features/s390x-gs-linux64.c: New file.
625 * regformats/s390-gs-linux64.dat: New file.
626 * regformats/s390x-gs-linux64.dat: New file.
627
628 2017-09-23 Tom Tromey <tom@tromey.com>
629
630 * defs.h (make_cleanup_override_quit_handler): Don't declare.
631
632 2017-09-22 Tom Tromey <tom@tromey.com>
633
634 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
635 type to scoped_restore_tmpl.
636 <scoped_input_handler>: Initialize m_quit_handler directly.
637
638 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
639
640 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
641 (cd_command): Likewise. Free "current_directory" before
642 assigning to it.
643 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
644 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
645 * top.c (gdb_dirbuf): Remove global declaration.
646 * top.h (gdb_dirbuf): Likewise.
647
648 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
649
650 * gnulib/aclocal.m4: Regenerate.
651 * gnulib/config.in: Regenerate.
652 * gnulib/configure: Regenerate.
653 * gnulib/import/Makefile.am: Regenerate.
654 * gnulib/import/Makefile.in: Regenerate.
655 * gnulib/import/assure.h: New file.
656 * gnulib/import/at-func.c: Likewise
657 * gnulib/import/chdir-long.c: New file.
658 * gnulib/import/chdir-long.h: New file.
659 * gnulib/import/cloexec.c: New file.
660 * gnulib/import/cloexec.h: New file.
661 * gnulib/import/close.c: New file.
662 * gnulib/import/closedir.c: New file.
663 * gnulib/import/dirent-private.h: New file.
664 * gnulib/import/dup-safer.c: New file.
665 * gnulib/import/dup.c: New file.
666 * gnulib/import/dup2.c: New file.
667 * gnulib/import/error.c: New file.
668 * gnulib/import/error.h: New file.
669 * gnulib/import/exitfail.c: New file.
670 * gnulib/import/exitfail.h: New file.
671 * gnulib/import/fchdir.c: New file.
672 * gnulib/import/fcntl.c: New file.
673 * gnulib/import/fcntl.in.h: New file.
674 * gnulib/import/fd-hook.c: New file.
675 * gnulib/import/fd-hook.h: New file.
676 * gnulib/import/fd-safer.c: New file.
677 * gnulib/import/fdopendir.c: New file.
678 * gnulib/import/filename.h: New file.
679 * gnulib/import/filenamecat-lgpl.c: New file.
680 * gnulib/import/filenamecat.h: New file.
681 * gnulib/import/fstat.c: New file.
682 * gnulib/import/fstatat.c: New file.
683 * gnulib/import/getcwd-lgpl.c: New file.
684 * gnulib/import/getcwd.c: New file.
685 * gnulib/import/getdtablesize.c: New file.
686 * gnulib/import/getlogin_r.c: New file.
687 * gnulib/import/getprogname.c: New file.
688 * gnulib/import/getprogname.h: New file.
689 * gnulib/import/gettext.h: New file.
690 * gnulib/import/glob-libc.h: New file.
691 * gnulib/import/glob.c: New file.
692 * gnulib/import/glob.in.h: New file.
693 * gnulib/import/intprops.h: New file.
694 * gnulib/import/m4/chdir-long.m4: New file.
695 * gnulib/import/m4/close.m4: New file.
696 * gnulib/import/m4/closedir.m4: New file.
697 * gnulib/import/m4/d-ino.m4: New file.
698 * gnulib/import/m4/d-type.m4: New file.
699 * gnulib/import/m4/dup.m4: New file.
700 * gnulib/import/m4/dup2.m4: New file.
701 * gnulib/import/m4/error.m4: New file.
702 * gnulib/import/m4/fchdir.m4: New file.
703 * gnulib/import/m4/fcntl.m4: New file.
704 * gnulib/import/m4/fcntl_h.m4: New file.
705 * gnulib/import/m4/fdopendir.m4: New file.
706 * gnulib/import/m4/filenamecat.m4: New file.
707 * gnulib/import/m4/fstat.m4: New file.
708 * gnulib/import/m4/fstatat.m4: New file.
709 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
710 * gnulib/import/m4/getcwd-path-max.m4: New file.
711 * gnulib/import/m4/getcwd.m4: New file.
712 * gnulib/import/m4/getdtablesize.m4: New file.
713 * gnulib/import/m4/getlogin_r.m4: New file.
714 * gnulib/import/m4/getprogname.m4: New file.
715 * gnulib/import/m4/glob.m4: New file.
716 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
717 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
718 * gnulib/import/m4/mempcpy.m4: New file.
719 * gnulib/import/m4/memrchr.m4: New file.
720 * gnulib/import/m4/mode_t.m4: New file.
721 * gnulib/import/m4/msvc-inval.m4: New file.
722 * gnulib/import/m4/msvc-nothrow.m4: New file.
723 * gnulib/import/m4/open.m4: New file.
724 * gnulib/import/m4/openat.m4: New file.
725 * gnulib/import/m4/opendir.m4: New file.
726 * gnulib/import/m4/readdir.m4: New file.
727 * gnulib/import/m4/realloc.m4: New file.
728 * gnulib/import/m4/rewinddir.m4: New file.
729 * gnulib/import/m4/save-cwd.m4: New file.
730 * gnulib/import/m4/strdup.m4: New file.
731 * gnulib/import/m4/strerror.m4: New file.
732 * gnulib/import/m4/unistd-safer.m4: New file.
733 * gnulib/import/mempcpy.c: New file.
734 * gnulib/import/memrchr.c: New file.
735 * gnulib/import/msvc-inval.c: New file.
736 * gnulib/import/msvc-inval.h: New file.
737 * gnulib/import/msvc-nothrow.c: New file.
738 * gnulib/import/msvc-nothrow.h: New file.
739 * gnulib/import/open.c: New file.
740 * gnulib/import/openat-die.c: New file.
741 * gnulib/import/openat-priv.h: New file.
742 * gnulib/import/openat-proc.c: New file.
743 * gnulib/import/openat.c: New file.
744 * gnulib/import/openat.h: New file.
745 * gnulib/import/opendir.c: New file.
746 * gnulib/import/pipe-safer.c: New file.
747 * gnulib/import/readdir.c: New file.
748 * gnulib/import/realloc.c: New file.
749 * gnulib/import/rewinddir.c: New file.
750 * gnulib/import/save-cwd.c: New file.
751 * gnulib/import/save-cwd.h: New file.
752 * gnulib/import/strdup.c: New file.
753 * gnulib/import/strerror-override.c: New file.
754 * gnulib/import/strerror-override.h: New file.
755 * gnulib/import/strerror.c: New file.
756 * gnulib/import/unistd--.h: New file.
757 * gnulib/import/unistd-safer.h: New file.
758 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
759 "getcwd" and "glob".
760 * ser-tcp.c: Undefine "close" before redefining it.
761
762 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
763
764 * guile/scm-value.c (gdbscm_value_address): Initialize address,
765 get rid of res_val.
766
767 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
768
769 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
770 <sol2,sparc>: Likewise.
771 <sol2-64,i386>: Likewise.
772
773 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
774 -Wdeprecated-declarations on *-*-solaris*.
775 * configure: Regenerate.
776
777 * procfs.c: Include "nat/inferior.h".
778 (procfs_info_proc): Fix typo.
779
780 2017-09-21 Kevin Buettner <kevinb@redhat.com>
781
782 * remote.c (vector): Include.
783 (struct private_thread_info): Add field, thread_handle.
784 (free_private_thread_info): Deallocate storage associated with
785 thread handle.
786 (get_private_info_thread): Initialize `thread_handle' field.
787 (struct thread_item): Add field, thread_handle.
788 (clear_threads_listing_context): Deallocate storage associated
789 with thread handle.
790 (start_thread): Add support for "handle" attribute.
791 (thread_attributes): Add "handle".
792 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
793 field.
794 (remote_update_thread_list): Update thread_handle.
795 (remote_thread_handle_to_thread_info): New function.
796 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
797
798 2017-09-21 Kevin Buettner <kevinb@redhat.com>
799
800 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
801 function.
802 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
803 * python/python-internal.h (thread_object_type): Declare.
804
805 2017-09-21 Kevin Buettner <kevinb@redhat.com>
806
807 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
808 (target_thread_handle_to_thread_info): Declare.
809 * target.c (target_thread_handle_to_thread_info): New function.
810 * target-delegates.c: Regenerate.
811 * gdbthread.h (find_thread_by_handle): Declare.
812 * thread.c (find_thread_by_handle): New function.
813 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
814 function.
815 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
816
817 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
818
819 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
820
821 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
822
823 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
824
825 2017-09-21 Yao Qi <yao.qi@linaro.org>
826
827 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
828 to gdb_target_obs.
829
830 2017-09-20 Tom Tromey <tom@tromey.com>
831
832 * breakpoint.c (struct counted_command_line): Remove.
833 (breakpoint_commands): Update.
834 (alloc_counted_command_line, incref_counted_command_line)
835 (decref_counted_command_line, do_cleanup_counted_command_line)
836 (make_cleanup_decref_counted_command_line): Remove.
837 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
838 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
839 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
840 (save_breakpoints): Update.
841 * breakpoint.h (counted_command_line): Now a typedef to
842 shared_ptr.
843 (struct breakpoint) <commands>: Now a counted_command_line.
844 (struct bpstats) <command>: Likewise.
845
846 2017-09-20 Tom Tromey <tom@tromey.com>
847
848 * breakpoint.c (struct commands_info, do_map_commands_command):
849 Remove.
850 (commands_command_1): Update.
851 (iterate_over_related_breakpoints): Take a function_view.
852 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
853 (delete_command): Update.
854 (map_breakpoint_numbers): Take a function_view.
855 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
856 (disable_command): Update.
857 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
858 (enable_command): Update.
859 (struct disp_data, do_enable_breakpoint_disp)
860 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
861 (do_map_enable_delete_breakpoint): Remove.
862 (enable_once_command, enable_count_command, enable_delete_command)
863 (delete_trace_variable_command): Update.
864
865 2017-09-20 Tom Tromey <tom@tromey.com>
866
867 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
868 (bpstat_clear): Use delete.
869 (bpstats): New constructors.
870 (bpstat_copy, bpstat_stop_status): Use new.
871 (dprintf_after_condition_true): Update.
872 * breakpoint.h (bpstats::bpstats): Add constructors.
873 (bpstats::~bpstats): Add destructor.
874
875 2017-09-20 Pedro Alves <palves@redhat.com>
876
877 * eval.c (make_params): Delete, refactored as ...
878 (class fake_method): ... this new type's ctor.
879 (fake_method::~fake_method): New.
880 (evaluate_subexp_standard): Use 'fake_method'.
881
882 2017-09-20 Tom Tromey <tom@tromey.com>
883
884 * windows-nat.c (get_windows_debug_event, windows_wait)
885 (do_initial_windows_stuff, windows_attach): Update.
886 * utils.c (vwarning, internal_vproblem): Update.
887 (ui_unregister_input_event_handler_cleanup)
888 (prepare_to_handle_input): Remove.
889 (class scoped_input_handler): New.
890 (defaulted_query, prompt_for_continue): Update.
891 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
892 Update.
893 * top.c (undo_terminal_modifications_before_exit): Update.
894 * target/target.h (target_terminal_init, target_terminal_inferior)
895 (target_terminal_ours): Don't declare.
896 (class target_terminal): New.
897 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
898 (target_terminal_ours_for_output)
899 (make_cleanup_restore_target_terminal): Don't declare.
900 (target_terminal_info): Remove.
901 * target.c (enum terminal_state, terminal_state): Remove.
902 (target_terminal::terminal_state): Define.
903 (target_terminal::init): Rename from target_terminal_init.
904 (target_terminal::inferior): Rename from
905 target_terminal_inferior.
906 (target_terminal::ours): Rename from target_terminal_ours.
907 (target_terminal::ours_for_output): Rename from
908 target_terminal_ours_for_output.
909 (target_terminal::info): New method.
910 (cleanup_restore_target_terminal)
911 (make_cleanup_restore_target_terminal): Remove.
912 * solib.c (handle_solib_event): Update.
913 * remote.c (remote_serial_quit_handler): Update.
914 (remote_terminal_inferior, remote_wait_as): Update.
915 * record-full.c (record_full_wait_1): Update.
916 * nto-procfs.c (procfs_create_inferior): Update.
917 * nat/fork-inferior.c (startup_inferior): Update.
918 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
919 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
920 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
921 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
922 (mi_breakpoint_created, mi_breakpoint_deleted)
923 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
924 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
925 (mi_user_selected_context_changed, report_initial_inferior):
926 Update.
927 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
928 (linux_nat_terminal_inferior): Update.
929 * infrun.c (follow_fork_inferior)
930 (handle_vfork_child_exec_or_exit, do_target_resume)
931 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
932 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
933 Update.
934 * inflow.c (child_terminal_init, info_terminal_command): Update.
935 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
936 (attach_command): Update.
937 * infcall.c (call_thread_fsm_should_stop): Update.
938 * gnu-nat.c (gnu_attach): Update.
939 * extension.c (struct active_ext_lang_state)
940 (restore_active_ext_lang): Update.
941 * exceptions.c (print_flush): Update.
942 * event-top.c (async_enable_stdin, default_quit_handler): Update.
943 (struct quit_handler_cleanup_data, restore_quit_handler)
944 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
945 Remove.
946 * cp-support.c (gdb_demangle): Update.
947 * breakpoint.c (update_inserted_breakpoint_locations)
948 (insert_breakpoint_locations, handle_jit_event)
949 (disable_breakpoints_in_unloaded_shlib): Update.
950 * annotate.c (annotate_breakpoints_invalid)
951 (annotate_frames_invalid): Update.
952
953 2017-09-20 Tom Tromey <tom@tromey.com>
954
955 * main.c (catch_command_errors): Rename from
956 catch_command_errors_const.
957 (captured_main_1): Update.
958
959 2017-09-20 Pedro Alves <palves@redhat.com>
960
961 * cli/cli-cmds.c (list_command): Use print_sal_location.
962 (print_sal_location): New function.
963 (ambiguous_line_spec): Use print_sal_location.
964 * linespec.c (symbol_to_sal): Record the symbol in the sal.
965 * symtab.c (find_function_start_sal): Likewise.
966 * symtab.h (symtab_and_line::symbol): New field.
967
968 2017-09-20 Pedro Alves <palves@redhat.com>
969
970 * linespec.c (minsym_found): Handle non-text minsyms.
971 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
972
973 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
974
975 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
976 backslash.
977
978 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
979
980 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
981 vmovups instead vmovaps.
982 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
983
984 2017-09-19 John Baldwin <jhb@FreeBSD.org>
985
986 * NEWS (Changes since GDB 8.0): Add starti.
987 * infcmd.c (enum run_break): New.
988 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
989 case.
990 (run_command): Use enum run_how.
991 (start_command): Likewise.
992 (starti_command): New function.
993 (RUN_ARGS_HELP): New macro.
994 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
995 commands. Add starti command.
996
997 2017-09-19 Yao Qi <yao.qi@linaro.org>
998
999 * Makefile.in (monitor.o): Remove the rule.
1000
1001 2017-09-19 Yao Qi <yao.qi@linaro.org>
1002
1003 * annotate.h (struct annotate_arg_emitter): Use
1004 DISABLE_COPY_AND_ASSIGN.
1005 * common/refcounted-object.h (refcounted_object): Likewise.
1006 * completer.h (struct completion_result): Likewise.
1007 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1008 * filename-seen-cache.h (filename_seen_cache): Likewise.
1009 * gdbcore.h (thread_section_name): Likewise.
1010 * gdb_regex.h (compiled_regex): Likewise.
1011 * gdbthread.h (scoped_restore_current_thread): Likewise.
1012 * inferior.h (scoped_restore_current_inferior): Likewise.
1013 * jit.c (jit_reader): Likewise.
1014 * linespec.h (struct linespec_result): Likewise.
1015 * mi/mi-parse.h (struct mi_parse): Likewise.
1016 * nat/fork-inferior.c (execv_argv): Likewise.
1017 * progspace.h (scoped_restore_current_program_space): Likewise.
1018 * python/python-internal.h (class gdbpy_enter): Likewise.
1019 * regcache.h (regcache): Likewise.
1020 * target-descriptions.c (struct tdesc_reg): Likewise.
1021 (struct tdesc_type): Likewise.
1022 (struct tdesc_feature): Likewise.
1023 * ui-out.h (ui_out_emit_type): Likewise.
1024
1025 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1026
1027 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1028 label abort_expression.
1029
1030 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1031
1032 * common/buffer.c (buffer_xml_printf): Adjust.
1033 * common/xml-utils.c (xml_escape_text): Change return type to
1034 std::string, update code accordingly.
1035 * common/xml-utils.h (xml_escape_text): Change return type to
1036 std::string.
1037 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1038 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1039 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1040 Adjust.
1041
1042 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1043
1044 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1045 (SUBDIR_UNITTESTS_OBS): Add new object file.
1046 * unittests/xml-utils-selftests.c: New file.
1047
1048 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1049
1050 * common/selftest.h (selftest): New struct/interface.
1051 (register_test): Add name parameter, add new overload.
1052 (run_tests): Add filter parameter.
1053 (for_each_selftest_ftype): New typedef.
1054 (for_each_selftest): New declaration.
1055 * common/selftest.c (tests): Change type to
1056 map<string, unique_ptr<selftest>>.
1057 (simple_selftest): New struct.
1058 (register_test): New function.
1059 (register_test): Add name parameter and use it.
1060 (run_tests): Add filter parameter and use it. Add prints.
1061 Adjust to vector -> map change.
1062 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1063 registering selftests.
1064 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1065 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1066 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1067 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1068 * findvar.c (_initialize_findvar): Likewise.
1069 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1070 * maint.c (maintenance_selftest): Update call to run_tests.
1071 (maintenance_info_selftests): New function.
1072 (_initialize_maint_cmds): Register "maintenance info selftests"
1073 command. Update "maintenance selftest" doc.
1074 * regcache.c (_initialize_regcache): Add names when registering
1075 selftests.
1076 * rust-exp.y (_initialize_rust_exp): Likewise.
1077 * selftest-arch.c (gdbarch_selftest): New struct.
1078 (gdbarch_tests): Remove.
1079 (register_test_foreach_arch): Add name parameter. Call
1080 register_test.
1081 (tests_with_arch): Remove, move most content to
1082 gdbarch_selftest::operator().
1083 (_initialize_selftests_foreach_arch): Remove.
1084 * selftest-arch.h (register_test_foreach_arch): Add name
1085 parameter.
1086 (run_tests_with_arch): New declaration.
1087 * utils-selftests.c (_initialize_utils_selftests): Add names
1088 when registering selftests.
1089 * utils.c (_initialize_utils): Likewise.
1090 * unittests/array-view-selftests.c
1091 (_initialize_array_view_selftests): Likewise.
1092 * unittests/environ-selftests.c (_initialize_environ_selftests):
1093 Likewise.
1094 * unittests/function-view-selftests.c
1095 (_initialize_function_view_selftests): Likewise.
1096 * unittests/offset-type-selftests.c
1097 (_initialize_offset_type_selftests): Likewise.
1098 * unittests/optional-selftests.c
1099 (_initialize_optional_selftests): Likewise.
1100 * unittests/scoped_restore-selftests.c
1101 (_initialize_scoped_restore_selftests): Likewise.
1102 * NEWS: Document "maintenance selftest" and "maint info
1103 selftests".
1104
1105 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1106
1107 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1108 scoped_restore.
1109
1110 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1111
1112 * mi/mi-main.c (mi_load_progress): Make uiout variable
1113 a unique_ptr.
1114
1115 2017-09-15 Pedro Alves <palves@redhat.com>
1116
1117 * compile/compile-c-types.c (convert_enum, convert_int)
1118 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1119
1120 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1121
1122 * dwarf2read.c (copy_string): Remove.
1123 (parse_macro_definition): Replace copy_string with savestring.
1124
1125 2017-09-15 Yao Qi <yao.qi@linaro.org>
1126
1127 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1128 gdb_target_obs.
1129 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1130 Likewise.
1131 (i[34567]86-*-linux*): Likewise.
1132
1133 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1134
1135 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1136 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1137 <stack>: Change type to std::vector.
1138 <stack_len, stack_allocated>: Remove.
1139 <grow_stack>: Remove.
1140 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1141 (dwarf_expr_context::~dwarf_expr_context): Remove.
1142 (dwarf_expr_context::grow_stack): Remove.
1143 (dwarf_expr_context::push): Adjust.
1144 (dwarf_expr_context::pop): Adjust.
1145 (dwarf_expr_context::fetch): Adjust.
1146 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1147 (dwarf_expr_context::stack_empty_p): Adjust.
1148 (dwarf_expr_context::execute_stack_op): Adjust.
1149
1150 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1151
1152 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1153 return type to bool.
1154 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1155
1156 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1157
1158 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1159 Change type to bool.
1160 (dwarf_stack_value) <in_stack_memory>: Likewise.
1161 (dwarf_expr_context) <push_address>: Change parameter type to
1162 bool.
1163 <fetch_in_stack_memory>: Change return type to bool.
1164 <push>: Change parameter type to bool.
1165 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1166 to bool.
1167 (dwarf_expr_context::push_address): Likewise.
1168 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1169 to bool.
1170 (dwarf_expr_context::execute_stack_op): Adjust.
1171 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1172
1173 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1174
1175 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1176 (struct dwarf_expr_context) <n_pieces>: Remove.
1177 <pieces>: Change type to std::vector.
1178 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1179 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1180 pieces.
1181 (dwarf_expr_context::add_piece): Adjust.
1182 * dwarf2loc.c (struct piece_closure): Initialize fields.
1183 <n_pieces>: Remove.
1184 <pieces>: Change type to std::vector.
1185 (allocate_piece_closure): Adjust, change parameter to
1186 std::vector rvalue and std::move it to piece_closure.
1187 (rw_pieced_value): Adjust.
1188 (check_pieced_synthetic_pointer): Adjust.
1189 (indirect_synthetic_pointer): Adjust.
1190 (coerce_pieced_ref): Adjust.
1191 (free_pieced_value_closure): Adjust. Use delete to free
1192 piece_closure.
1193 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1194 to allocate_piece_closure.
1195 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1196
1197 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1198
1199 * probe.h (probe_ops_cp): Remove typedef.
1200 (DEF_VEC_P (probe_ops_cp)): Remove.
1201 (all_probe_ops): Change type to std::vector.
1202 * probe.c (info_probes_for_ops): Adjust to vector change.
1203 (probe_linespec_to_ops): Likewise.
1204 (all_probe_ops): Change type to std::vector.
1205 (_initialize_probe): Adjust to vector change.
1206 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1207 * elfread.c (elf_get_probes): Likewise.
1208 * stap-probe.c (_initialize_stap_probe): Likewise.
1209
1210 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1211
1212 * probe.h (struct bound_probe): Define constructors.
1213 * probe.c (bound_probe_s): Remove typedef.
1214 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1215 (collect_probes): Change return type to std::vector, remove
1216 cleanup.
1217 (compare_probes): Return bool, change parameter type. Change
1218 semantic to "less than".
1219 (gen_ui_out_table_header_info): Change parameter to std::vector
1220 and update.
1221 (exists_probe_with_pops): Likewise.
1222 (info_probes_for_ops): Update to std::vector change.
1223 (enable_probes_command): Likewise.
1224 (disable_probes_command): Likewise.
1225
1226 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1227
1228 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1229 vec to std::vector.
1230 * probe.c (parse_probes_in_pspace): Update.
1231 (find_probes_in_objfile): Update.
1232 (find_probe_by_pc): Update.
1233 (collect_probes): Update.
1234 (probe_any_get_probes): Update.
1235 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1236 return type to reference to std::vector.
1237 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1238 std::vector and update.
1239 (dtrace_process_dof): Likewise.
1240 (dtrace_get_probes): Likewise.
1241 * elfread.c (elf_get_probes): Change return type to std::vector,
1242 store an std::vector in bfd_data.
1243 (probe_key_free): Update to std::vector.
1244 * stap-probe.c (handle_stap_probe): Change parameter to
1245 std::vector and update.
1246 (stap_get_probes): Likewise.
1247 * symfile-debug.c (debug_sym_get_probes): Change return type to
1248 std::vector and update.
1249
1250 2017-09-11 Tom Tromey <tom@tromey.com>
1251
1252 * breakpoint.c (program_breakpoint_here_p): Update.
1253 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1254 from make_show_memory_breakpoints_cleanup. Return a
1255 scoped_restore_tmpl<int>.
1256 (restore_show_memory_breakpoints): Remove.
1257 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1258 * mem-break.c (memory_validate_breakpoint): Update.
1259 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1260 (ia64_memory_remove_breakpoint): Update.
1261 (ia64_breakpoint_from_pc): Update.
1262 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1263 from make_show_memory_breakpoints_cleanup.
1264
1265 2017-09-11 Tom Tromey <tom@tromey.com>
1266
1267 * d-namespace.c (d_lookup_symbol): Use std::string.
1268 (find_symbol_in_baseclass): Likewise.
1269
1270 2017-09-11 Tom Tromey <tom@tromey.com>
1271
1272 * ctf.c (ctf_start): Use std::string.
1273
1274 2017-09-11 Tom Tromey <tom@tromey.com>
1275
1276 * ada-lang.c (is_known_support_routine): Update.
1277 (ada_unhandled_exception_name_addr_from_raise): Update.
1278 * guile/scm-frame.c (gdbscm_frame_name): Update.
1279 * python/py-frame.c (frapy_name): Update.
1280 (frapy_function): Update.
1281 * stack.h (find_frame_funname): Update.
1282 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1283 (print_frame): Update.
1284
1285 2017-09-11 Tom Tromey <tom@tromey.com>
1286
1287 * findcmd.c (put_bits): Take a gdb::byte_vector.
1288 (parse_find_args): Return gdb::byte_vector. "args" now const.
1289 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1290 cleanups.
1291 (find_command): Update.
1292
1293 2017-09-11 Tom Tromey <tom@tromey.com>
1294
1295 * cli/cli-script.c (class scoped_restore_hook_in): New.
1296 (clear_hook_in_cleanup): Remove.
1297 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1298 scoped_restore_hook_in.
1299
1300 2017-09-11 Tom Tromey <tom@tromey.com>
1301
1302 * cli/cli-script.c (restore_interp): Remove.
1303 (read_command_lines): Use scoped_restore_interp.
1304 * interps.c (scoped_restore_interp::set_temp): Rename from
1305 interp_set_temp.
1306 * interps.h (class scoped_restore_interp): New.
1307 (interp_set_temp): Remove.
1308
1309 2017-09-11 Tom Tromey <tom@tromey.com>
1310
1311 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1312 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1313 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1314 scoped_restore.
1315 (mi_cmd_break_insert_1): Update.
1316 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1317 scoped_restore.
1318
1319 2017-09-11 Tom Tromey <tom@tromey.com>
1320
1321 * demangle.c (demangle_command): Update.
1322 * breakpoint.c (disable_command): Update.
1323 (enable_command): Update.
1324 (find_location_by_number): Make "number" const. Use
1325 get_number_trailer.
1326 * cli/cli-utils.c (extract_arg): Return std::string.
1327 * probe.c (parse_probe_linespec): Update. Change types.
1328 (collect_probes): Take string arguments.
1329 (parse_probe_linespec): Likewise.
1330 (info_probes_for_ops): Update.
1331 (enable_probes_command): Update.
1332 (disable_probes_command): Update.
1333 * break-catch-sig.c (catch_signal_split_args): Update.
1334 * mi/mi-parse.c (mi_parse): Update.
1335
1336 2017-09-11 Tom Tromey <tom@tromey.com>
1337
1338 * language.h (language_enum): Make argument const.
1339 * language.c (language_enum): Make argument const.
1340
1341 2017-09-11 Tom Tromey <tom@tromey.com>
1342
1343 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1344 as function.
1345 (skip_to_space): Rename from skip_to_space_const.
1346 * common/common-utils.c (skip_to_space): New function.
1347 (skip_to_space): Rename from skip_to_space_const.
1348 * cli/cli-utils.h (get_number): Rename from get_number_const.
1349 (extract_arg): Rename from extract_arg_const.
1350 * cli/cli-utils.c (get_number): Rename from get_number_const.
1351 (extract_arg): Rename from extract_arg_const.
1352 (number_or_range_parser::get_number): Use ::get_number.
1353 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1354 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1355 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1356 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1357 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1358 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1359 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1360 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1361
1362 2017-09-11 Tom Tromey <tom@tromey.com>
1363
1364 * python/python.c (do_start_initialization): Use
1365 py-event-types.def to initialize types.
1366 Define all object type structures.
1367 * python/python-internal.h: Don't declare event initialization
1368 functions.
1369 * python/py-threadevent.c (thread_event_object_type): Don't
1370 define.
1371 * python/py-stopevent.c (stop_event_object_type): Don't define.
1372 * python/py-signalevent.c (signal_event_object_type): Don't
1373 declare or define.
1374 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1375 (clear_objfiles_event_object_type): Don't declare or define.
1376 * python/py-infevents.c (inferior_call_pre_event_object_type)
1377 (inferior_call_post_event_object_type)
1378 (register_changed_event_object_type)
1379 (memory_changed_event_object_type): Don't declare or define.
1380 * python/py-inferior.c (new_thread_event_object_type)
1381 (new_inferior_event_object_type)
1382 (inferior_deleted_event_object_type): Don't declare or define.
1383 * python/py-exitedevent.c (exited_event_object_type): Don't
1384 declare or define.
1385 * python/py-evts.c (gdbpy_initialize_py_events): Use
1386 py-all-events.def.
1387 * python/py-events.h (thread_event_object_type): Don't declare.
1388 (events_object): Use py-all-events.def.
1389 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1390 py-event-types.def.
1391 * python/py-event-types.def: New file.
1392 * python/py-continueevent.c (create_continue_event_object): Don't
1393 declare or define.
1394 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1395 declare or define.
1396 * python/py-all-events.def: New file.
1397
1398 2017-09-11 Tom Tromey <tom@tromey.com>
1399
1400 * python/py-threadevent.c (create_thread_event_object): Return
1401 gdbpy_ref.
1402 * python/py-stopevent.h (create_stop_event_object)
1403 (create_breakpoint_event_object, create_signal_event_object):
1404 Update.
1405 * python/py-stopevent.c (create_stop_event_object): Return
1406 gdbpy_ref.
1407 (emit_stop_event): Update.
1408 * python/py-signalevent.c (create_signal_event_object): Return
1409 gdbpy_ref.
1410 * python/py-infevents.c (create_inferior_call_event_object):
1411 Update.
1412 * python/py-event.h (create_event_object)
1413 (create_thread_event_object): Update.
1414 * python/py-event.c (create_event_object): Return gdbpy_ref.
1415 * python/py-continueevent.c: Return gdbpy_ref.
1416 * python/py-bpevent.c (create_breakpoint_event_object): Return
1417 gdbpy_ref.
1418
1419 2017-09-11 Tom Tromey <tom@tromey.com>
1420
1421 PR python/15622:
1422 * NEWS: Add entry.
1423 * python/python.c (do_start_initialization): Initialize new event
1424 types.
1425 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1426 (gdbpy_initialize_inferior_deleted_event)
1427 (gdbpy_initialize_new_thread_event): Declare.
1428 * python/py-threadevent.c (create_thread_event_object): Add option
1429 "thread" parameter.
1430 * python/py-inferior.c (new_thread_event_object_type)
1431 (new_inferior_event_object_type)
1432 (inferior_deleted_event_object_type): Declare.
1433 (python_new_inferior, python_inferior_deleted): New functions.
1434 (add_thread_object): Emit new_thread event.
1435 (gdbpy_initialize_inferior): Attach new functions to corresponding
1436 observers.
1437 (new_thread, new_inferior, inferior_deleted): Define new event
1438 types.
1439 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1440 registries.
1441 * python/py-events.h (events_object) <new_inferior,
1442 inferior_deleted, new_thread>: New fields.
1443 * python/py-event.h (create_thread_event_breakpoint): Add optional
1444 "thread" parameter.
1445
1446 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1449 check current_ui instead.
1450 (internal_vproblem): Likewise.
1451
1452 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1453
1454 * thread.c (print_thread_info_1): Remove unnecessary calls to
1455 uiout->is_mi_like_p.
1456
1457 2017-09-09 Tom Tromey <tom@tromey.com>
1458
1459 * namespace.h (add_using_directive): Update.
1460 * namespace.c (add_using_directive): Change type of excludes to
1461 std::vector.
1462 * dwarf2read.c (read_import_statement): Use std::vector.
1463 (read_namespace): Update.
1464 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1465
1466 2017-09-09 Tom Tromey <tom@tromey.com>
1467
1468 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1469
1470 2017-09-09 Tom Tromey <tom@tromey.com>
1471
1472 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1473
1474 2017-09-09 Tom Tromey <tom@tromey.com>
1475
1476 * stack.c (func_command): Use gdb::def_vector.
1477
1478 2017-09-09 Tom Tromey <tom@tromey.com>
1479
1480 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1481 ui_out_emit_list, ui_out_emit_tuple.
1482 (mi_cmd_var_update): Likewise.
1483
1484 2017-09-09 Tom Tromey <tom@tromey.com>
1485
1486 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1487 ui_out_redirect_pop.
1488 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1489 ui_out_redirect_pop.
1490 * utils.c (do_ui_out_redirect_pop)
1491 (make_cleanup_ui_out_redirect_pop): Remove.
1492 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1493 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1494 * ui-out.h (ui_out_redirect_pop): New class.
1495
1496 2017-09-09 Tom Tromey <tom@tromey.com>
1497
1498 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1499 (list_available_thread_groups, mi_cmd_list_thread_groups)
1500 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1501 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1502 Likewise.
1503
1504 2017-09-09 Tom Tromey <tom@tromey.com>
1505
1506 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1507 ui_out_emit_tuple.
1508
1509 2017-09-09 Tom Tromey <tom@tromey.com>
1510
1511 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1512 * stack.c (print_frame): Use ui_out_emit_tuple.
1513 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1514 (info_spu_mailbox_command, info_spu_dma_command)
1515 (info_spu_proxydma_command): Likewise.
1516 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1517 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1518 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1519 ui_out_emit_tuple.
1520 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1521
1522 2017-09-09 Tom Tromey <tom@tromey.com>
1523
1524 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1525 (class ui_out_emit_table): Update comment.
1526 * ui-out.c (do_cleanup_table_end)
1527 (make_cleanup_ui_out_table_begin_end): Remove.
1528 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1529 (info_spu_dma_cmdlist): Likewise.
1530 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1531 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1532 ui_out_emit_table.
1533
1534 2017-09-09 Tom Tromey <tom@tromey.com>
1535
1536 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1537 ui_out_emit_list, gdb::optional.
1538
1539 2017-09-09 John Baldwin <jhb@FreeBSD.org>
1540
1541 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1542 prototype.
1543 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1544 prototype.
1545 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1546 prototype.
1547 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1548 * ada-exp.y: Remove _initialize_ada_exp prototype.
1549 * ada-lang.c: Remove _initialize_ada_language prototype.
1550 * ada-tasks.c: Remove _initialize_tasks prototype.
1551 * addrmap.c: Remove _initialize_addrmap prototype.
1552 * agent.c: Remove _initialize_agent prototype.
1553 * aix-thread.c: Remove _initialize_aix_thread prototype.
1554 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1555 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1556 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1557 prototype.
1558 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1559 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1560 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1561 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1562 prototype.
1563 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1564 prototype.
1565 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1566 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1567 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1568 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1569 prototype.
1570 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1571 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1572 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1573 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1574 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1575 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1576 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1577 prototype.
1578 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1579 prototype.
1580 * annotate.c: Remove _initialize_annotate prototype.
1581 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1582 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1583 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1584 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1585 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1586 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1587 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1588 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1589 prototype.
1590 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1591 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1592 * auto-load.c: Remove _initialize_auto_load prototype.
1593 * auxv.c: Remove _initialize_auxv prototype.
1594 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1595 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1596 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1597 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1598 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1599 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1600 prototype.
1601 * break-catch-throw.c: Remove _initialize_break_catch_throw
1602 prototype.
1603 * breakpoint.c: Remove _initialize_breakpoint prototype.
1604 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1605 * btrace.c: Remove _initialize_btrace prototype.
1606 * charset.c: Remove _initialize_charset prototype.
1607 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1608 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1609 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1610 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1611 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1612 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1613 * coffread.c: Remove _initialize_coffread prototype.
1614 * compile/compile.c: Remove _initialize_compile prototype.
1615 * complaints.c: Remove _initialize_complaints prototype.
1616 * completer.c: Remove _initialize_completer prototype.
1617 * copying.awk: Remove _initialize_copying prototype.
1618 * copying.c: Regenerate.
1619 * core-regset.c: Remove _initialize_core_regset prototype.
1620 * corefile.c: Remove _initialize_core prototype.
1621 * corelow.c: Remove _initialize_corelow prototype.
1622 * cp-abi.c: Remove _initialize_cp_abi prototype.
1623 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1624 * cp-support.c: Remove _initialize_cp_support prototype.
1625 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1626 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1627 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1628 * ctf.c: Remove _initialize_ctf prototype.
1629 * d-lang.c: Remove _initialize_d_language prototype.
1630 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1631 prototype.
1632 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1633 * dbxread.c: Remove _initialize_dbxread prototype.
1634 * dcache.c: Remove _initialize_dcache prototype.
1635 * demangle.c: Remove _initialize_demangler prototype.
1636 * disasm-selftests.c: Remove _initialize_disasm_selftests
1637 prototype.
1638 * disasm.c: Remove _initialize_disasm prototype.
1639 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1640 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1641 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1642 prototype.
1643 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1644 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1645 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1646 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1647 * elfread.c: Remove _initialize_elfread prototype.
1648 * exec.c: Remove _initialize_exec prototype.
1649 * extension.c: Remove _initialize_extension prototype.
1650 * f-lang.c: Remove _initialize_f_language prototype.
1651 * f-valprint.c: Remove _initialize_f_valprint prototype.
1652 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1653 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1654 * filesystem.c: Remove _initialize_filesystem prototype.
1655 * findcmd.c: Remove _initialize_mem_search prototype.
1656 * fork-child.c: Remove _initialize_fork_child prototype.
1657 * frame-base.c: Remove _initialize_frame_base prototype.
1658 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1659 * frame.c: Remove _initialize_frame prototype.
1660 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1661 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1662 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1663 * gcore.c: Remove _initialize_gcore prototype.
1664 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1665 * gdbarch.c: Regenerate.
1666 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1667 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1668 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1669 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1670 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1671 * go-lang.c: Remove _initialize_go_language prototype.
1672 * go32-nat.c: Remove _initialize_go32_nat prototype.
1673 * guile/guile.c: Remove _initialize_guile prototype.
1674 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1675 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1676 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1677 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1678 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1679 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1680 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1681 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1682 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1683 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1684 prototype.
1685 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1686 prototype.
1687 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1688 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1689 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1690 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1691 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1692 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1693 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1694 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1695 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1696 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1697 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1698 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1699 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1700 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1701 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1702 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1703 prototype.
1704 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1705 prototype.
1706 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1707 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1708 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1709 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1710 * infcall.c: Remove _initialize_infcall prototype.
1711 * infcmd.c: Remove _initialize_infcmd prototype.
1712 * inferior.c: Remove _initialize_inferiors prototype.
1713 * inflow.c: Remove _initialize_inflow prototype.
1714 * infrun.c: Remove _initialize_infrun prototype.
1715 * interps.c: Remove _initialize_interpreter prototype.
1716 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1717 * jit.c: Remove _initialize_jit prototype.
1718 * language.c: Remove _initialize_language prototype.
1719 * linux-fork.c: Remove _initialize_linux_fork prototype.
1720 * linux-nat.c: Remove _initialize_linux_nat prototype.
1721 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1722 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1723 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1724 * m2-lang.c: Remove _initialize_m2_language prototype.
1725 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1726 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1727 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1728 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1729 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1730 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1731 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1732 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1733 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1734 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1735 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1736 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1737 * machoread.c: Remove _initialize_machoread prototype.
1738 * macrocmd.c: Remove _initialize_macrocmd prototype.
1739 * macroscope.c: Remove _initialize_macroscope prototype.
1740 * maint.c: Remove _initialize_maint_cmds prototype.
1741 * mdebugread.c: Remove _initialize_mdebugread prototype.
1742 * memattr.c: Remove _initialize_mem prototype.
1743 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1744 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1745 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1746 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1747 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1748 * microblaze-linux-tdep.c: Remove
1749 _initialize_microblaze_linux_tdep prototype.
1750 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1751 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1752 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1753 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1754 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1755 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1756 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1757 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1758 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1759 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1760 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1761 prototype.
1762 * mipsread.c: Remove _initialize_mipsread prototype.
1763 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1764 prototype.
1765 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1766 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1767 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1768 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1769 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1770 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1771 prototype.
1772 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1773 * nto-procfs.c: Remove _initialize_procfs prototype.
1774 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1775 * objc-lang.c: Remove _initialize_objc_language prototype.
1776 * objfiles.c: Remove _initialize_objfiles prototype.
1777 * observer.c: Remove observer_test_first_notification_function,
1778 observer_test_second_notification_function,
1779 observer_test_third_notification_function, and
1780 _initialize_observer prototypes.
1781 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1782 * osabi.c: Remove _initialize_gdb_osabi prototype.
1783 * osdata.c: Remove _initialize_osdata prototype.
1784 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1785 * parse.c: Remove _initialize_parse prototype.
1786 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1787 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1788 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1789 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1790 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1791 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1792 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1793 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1794 * printcmd.c: Remove _initialize_printcmd prototype.
1795 * probe.c: Remove _initialize_probe prototype.
1796 * proc-api.c: Remove _initialize_proc_api prototype.
1797 * proc-events.c: Remove _initialize_proc_events prototype.
1798 * proc-service.c: Remove _initialize_proc_service prototype.
1799 * procfs.c: Remove _initialize_procfs prototype.
1800 * psymtab.c: Remove _initialize_psymtab prototype.
1801 * python/python.c: Remove _initialize_python prototype.
1802 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1803 * record-btrace.c: Remove _initialize_record_btrace prototype.
1804 * record-full.c: Remove _initialize_record_full prototype.
1805 * record.c: Remove _initialize_record prototype.
1806 * regcache.c: Remove _initialize_regcache prototype.
1807 * reggroups.c: Remove _initialize_reggroup prototype.
1808 * remote-notif.c: Remove _initialize_notif prototype.
1809 * remote-sim.c: Remove _initialize_remote_sim prototype.
1810 * remote.c: Remove _initialize_remote prototype.
1811 * reverse.c: Remove _initialize_reverse prototype.
1812 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1813 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1814 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1815 prototype.
1816 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1817 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1818 * rust-exp.y: Remove _initialize_rust_exp prototype.
1819 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1820 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1821 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1822 * score-tdep.c: Remove _initialize_score_tdep prototype.
1823 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1824 prototype.
1825 * ser-go32.c: Remove _initialize_ser_dos prototype.
1826 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1827 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1828 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1829 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1830 * serial.c: Remove _initialize_serial prototype.
1831 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1832 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1833 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1834 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1835 * skip.c: Remove _initialize_step_skip prototype.
1836 * sol-thread.c: Remove _initialize_sol_thread prototype.
1837 * solib-aix.c: Remove _initialize_solib_aix prototype.
1838 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1839 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1840 * solib-frv.c: Remove _initialize_frv_solib prototype.
1841 * solib-spu.c: Remove _initialize_spu_solib prototype.
1842 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1843 * solib-target.c: Remove _initialize_solib_target prototype.
1844 * solib.c: Remove _initialize_solib prototype.
1845 * source.c: Remove _initialize_source prototype.
1846 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1847 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1848 prototype.
1849 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1850 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1851 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1852 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1853 prototype.
1854 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1855 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1856 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1857 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1858 prototype.
1859 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1860 prototype.
1861 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1862 prototype.
1863 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1864 prototype.
1865 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1866 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1867 prototype.
1868 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1869 prototype.
1870 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1871 prototype.
1872 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1873 prototype.
1874 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1875 prototype.
1876 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1877 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1878 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1879 * stabsread.c: Remove _initialize_stabsread prototype.
1880 * stack.c: Remove _initialize_stack prototype.
1881 * stap-probe.c: Remove _initialize_stap_probe prototype.
1882 * std-regs.c: Remove _initialize_frame_reg prototype.
1883 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1884 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1885 * symfile.c: Remove _initialize_symfile prototype.
1886 * symmisc.c: Remove _initialize_symmisc prototype.
1887 * symtab.c: Remove _initialize_symtab prototype.
1888 * target-dcache.c: Remove _initialize_target_dcache prototype.
1889 * target-descriptions.c: Remove _initialize_target_descriptions
1890 prototype.
1891 * thread.c: Remove _initialize_thread prototype.
1892 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1893 prototype.
1894 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1895 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1896 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1897 prototype.
1898 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1899 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1900 * tracefile.c: Remove _initialize_tracefile prototype.
1901 * tracepoint.c: Remove _initialize_tracepoint prototype.
1902 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1903 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1904 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1905 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1906 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1907 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1908 * tui/tui.c: Remove _initialize_tui prototype.
1909 * typeprint.c: Remove _initialize_typeprint prototype.
1910 * user-regs.c: Remove _initialize_user_regs prototype.
1911 * utils.c: Remove _initialize_utils prototype.
1912 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1913 * valarith.c: Remove _initialize_valarith prototype.
1914 * valops.c: Remove _initialize_valops prototype.
1915 * valprint.c: Remove _initialize_valprint prototype.
1916 * value.c: Remove _initialize_values prototype.
1917 * varobj.c: Remove _initialize_varobj prototype.
1918 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1919 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1920 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1921 * windows-nat.c: Remove _initialize_windows_nat,
1922 _initialize_check_for_gdb_ini, and _initialize_loadable
1923 prototypes.
1924 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1925 * xcoffread.c: Remove _initialize_xcoffread prototype.
1926 * xml-support.c: Remove _initialize_xml_support prototype.
1927 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1928 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1929 prototype.
1930 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1931 prototype.
1932 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1933
1934 2017-09-08 Keith Seitz <keiths@redhat.com>
1935
1936 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1937 field.
1938
1939 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1940
1941 * f-valprint.c (f_val_print): Remove check for one byte
1942 sized integers. Remove printing of character type.
1943
1944 2017-09-08 Frank Penczek <frank.penczek@intel.com>
1945 Christoph Weinmann <christoph.t.weinmann@intel.com>
1946 Bernhard Heckel <bernhard.heckel@intel.com>
1947
1948 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1949 to maintain proper indentation when printing pointers/refs.
1950
1951 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1952
1953 GDB 8.0.1 released.
1954
1955 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1956
1957 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1958
1959 2017-09-05 Tom Tromey <tom@tromey.com>
1960
1961 * parse.c (funcall_chain): Now a std::vector.
1962 (start_arglist, end_arglist): Simplify.
1963 (free_funcalls): Remove.
1964 (parse_exp_in_context_1): Remove cleanup.
1965
1966 2017-09-05 Tom Tromey <tom@tromey.com>
1967
1968 * go-exp.y (go_parse): Don't create a cleanup.
1969
1970 2017-09-05 Tom Tromey <tom@tromey.com>
1971
1972 * d-exp.y (PrimaryExpression): Use std::string.
1973 (d_parse): Don't create a cleanup.
1974
1975 2017-09-05 Tom Tromey <tom@tromey.com>
1976
1977 * utils.c (do_clear_parser_state): Remove.
1978 (make_cleanup_clear_parser_state): Remove.
1979 * p-exp.y (pascal_parse): Use scoped_restore.
1980 * m2-exp.y (m2_parse): Use scoped_restore.
1981 * f-exp.y (f_parse): Use scoped_restore.
1982 * d-exp.y (d_parse): Use scoped_restore.
1983 * c-exp.y (c_parse): Use scoped_restore.
1984 * ada-exp.y (ada_parse): Use scoped_restore.
1985 * utils.h (make_cleanup_clear_parser_state): Remove.
1986
1987 2017-09-06 Keith Seitz <keiths@redhat.com>
1988
1989 * dwarf2read.c (dw2_linkage_name_attr): New function.
1990 (dw2_linkage_name): New function.
1991 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1992 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1993 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1994
1995 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1996
1997 * config/djgpp/djconfig.sh: Correct shell portability issue.
1998
1999 2017-09-06 Kamil Rytarowski <n54@gmx.com>
2000
2001 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2002
2003 2017-09-06 John Baldwin <jhb@FreeBSD.org>
2004
2005 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2006 * NEWS: Mention new FreeBSD/mips native configuration.
2007 * configure.host: Add aarch64*-*-freebsd*.
2008 * configure.nat: Likewise.
2009 * aarch64-fbsd-nat.c: New file.
2010
2011 2017-09-06 John Baldwin <jhb@FreeBSD.org>
2012
2013 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2014 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2015 * NEWS: Mention new FreeBSD/aarch64 target.
2016 * configure.tgt: Add aarch64*-*-freebsd*.
2017 * aarch64-fbsd-tdep.c: New file.
2018 * aarch64-fbsd-tdep.h: New file.
2019
2020 2017-09-06 Kamil Rytarowski <n54@gmx.com>
2021
2022 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2023
2024 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2025
2026 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2027 of TLS symbols.
2028
2029 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2030
2031 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2032 call.
2033
2034 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2035
2036 * infrun.c (follow_exec): Call add_thread after
2037 target_find_description.
2038
2039 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2040
2041 * infrun.c (handle_inferior_event_1): When exec'ing, read
2042 stop_pc after follow_exec.
2043
2044 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2045
2046 * remote.c (process_g_packet): Update error message.
2047
2048 2017-09-05 Yao Qi <yao.qi@linaro.org>
2049
2050 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2051 targets.
2052
2053 2017-09-05 Pedro Alves <palves@redhat.com>
2054
2055 * eval.c (eval_call, evaluate_funcall): New functions, factored
2056 out from ...
2057 (evaluate_subexp_standard): ... this.
2058
2059 2017-09-05 Yao Qi <yao.qi@linaro.org>
2060
2061 * amd64-tdep.c (amd64_target_description): Create target
2062 descriptions.
2063 (_initialize_amd64_tdep): Don't call functions
2064 initialize_tdesc_amd64_*. Add self tests.
2065 * arch/amd64.c (amd64_create_target_description): Add parameter
2066 is_linux. Call set_tdesc_osabi if is_linux is true.
2067 * arch/amd64.h (amd64_create_target_description): Update the
2068 declaration.
2069 * arch/i386.c (i386_create_target_description): Add parameter
2070 is_linux. Call set_tdesc_osabi if is_linux is true.
2071 * arch/i386.h (i386_create_target_description): Update
2072 declaration.
2073 * configure.tgt: Add i386.o to gdb_target_obs.
2074 * features/Makefile (XMLTOC): Remove i386/*.xml.
2075 * features/i386/amd64-avx-avx512.c: Remove.
2076 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2077 * features/i386/amd64-avx-mpx.c: Remove.
2078 * features/i386/amd64-avx.c: Remove.
2079 * features/i386/amd64-mpx.c: Remove.
2080 * features/i386/amd64.c: Remove.
2081 * features/i386/i386-avx-avx512.c: Remove.
2082 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2083 * features/i386/i386-avx-mpx.c: Remove.
2084 * features/i386/i386-avx.c: Remove.
2085 * features/i386/i386-mmx.c: Remove.
2086 * features/i386/i386-mpx.c: Remove.
2087 * features/i386/i386.c: Remove.
2088 * i386-tdep.c: Don't include features/i386/i386*.c., include
2089 target-descriptions.h and arch/i386.h.
2090 (i386_target_description): Create target descriptions.
2091 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2092 functions. Do self tests.
2093
2094 2017-09-05 Yao Qi <yao.qi@linaro.org>
2095
2096 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2097 * features/i386/amd64-avx-avx512-linux.c: Removed.
2098 * features/i386/amd64-avx-linux.c: Removed.
2099 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2100 * features/i386/amd64-avx-mpx-linux.c: Removed.
2101 * features/i386/amd64-linux.c: Removed.
2102 * features/i386/amd64-mpx-linux.c: Removed.
2103 * features/i386/x32-avx-avx512-linux.c: Removed.
2104 * features/i386/x32-avx-linux.c: Removed.
2105 * features/i386/x32-linux.c: Removed.
2106
2107 2017-09-05 Yao Qi <yao.qi@linaro.org>
2108
2109 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2110 features/i386/*.c.
2111 (amd64_linux_read_description): Call
2112 amd64_create_target_description.
2113 * arch/amd64.c: New file.
2114 * arch/amd64.h: New file.
2115 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2116 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2117
2118 2017-09-05 Yao Qi <yao.qi@linaro.org>
2119
2120 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2121 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2122 (amd64_linux_read_description): Create target descriptions.
2123 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2124 functions. Add unit tests.
2125 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2126 x32-core.xml.
2127 * features/i386/64bit-avx.c: Generated.
2128 * features/i386/64bit-avx512.c: Generated.
2129 * features/i386/64bit-core.c: Generated.
2130 * features/i386/64bit-linux.c: Generated.
2131 * features/i386/64bit-mpx.c: Generated.
2132 * features/i386/64bit-pkeys.c: Generated.
2133 * features/i386/64bit-segments.c: Generated.
2134 * features/i386/64bit-sse.c: Generated.
2135 * features/i386/x32-core.c: Generated.
2136 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2137 c files for amd64-linux and x32-linux.
2138
2139 2017-09-05 Yao Qi <yao.qi@linaro.org>
2140
2141 * amd64-linux-tdep.c (amd64_linux_read_description): New
2142 function.
2143 (amd64_linux_core_read_description): Call
2144 amd64_linux_read_description.
2145 (amd64_linux_init_abi): Likewise.
2146 (amd64_x32_linux_init_abi): Likewise.
2147 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2148 * x86-linux-nat.c (x86_linux_read_description): Call
2149 amd64_linux_read_description.
2150
2151 2017-09-05 Yao Qi <yao.qi@linaro.org>
2152
2153 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2154 comments.
2155
2156 2017-09-05 Yao Qi <yao.qi@linaro.org>
2157
2158 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2159 * features/i386/i386-avx-avx512-linux.c: Remove.
2160 * features/i386/i386-avx-linux.c: Remove.
2161 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2162 * features/i386/i386-avx-mpx-linux.c: Remove.
2163 * features/i386/i386-linux.c: Remove.
2164 * features/i386/i386-mmx-linux.c: Remove.
2165 * features/i386/i386-mpx-linux.c: Remove.
2166
2167 2017-09-05 Yao Qi <yao.qi@linaro.org>
2168
2169 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2170 (SFILES): Add arch/i386.c.
2171 (HFILES_NO_SRCDIR): Add arch/i386.h.
2172 * arch/i386.c: New file.
2173 * arch/i386.h: New file.
2174 * arch/tdesc.h (allocate_target_description): Declare.
2175 (set_tdesc_architecture): Declare.
2176 (set_tdesc_osabi): Declare.
2177 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2178 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2179 include arch/i386.h.
2180 (i386_linux_read_description): Remove code and call
2181 i386_create_target_description.
2182 (set_tdesc_architecture): New function.
2183 (set_tdesc_osabi): New function.
2184 * target-descriptions.h (allocate_target_description): Remove.
2185
2186 2017-09-05 Yao Qi <yao.qi@linaro.org>
2187
2188 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2189 * target-descriptions.c (tdesc_create_feature): Likewise, and
2190 adjust code.
2191 * features/i386/32bit-avx.c: Re-generated.
2192 * features/i386/32bit-avx512.c: Re-generated.
2193 * features/i386/32bit-core.c: Re-generated.
2194 * features/i386/32bit-linux.c: Re-generated.
2195 * features/i386/32bit-mpx.c: Re-generated.
2196 * features/i386/32bit-pkeys.c: Re-generated.
2197 * features/i386/32bit-sse.c: Re-generated.
2198
2199 2017-09-05 Yao Qi <yao.qi@linaro.org>
2200
2201 * regformats/regdef.h (struct reg): Override operator == and !=.
2202
2203 2017-09-05 Yao Qi <yao.qi@linaro.org>
2204
2205 * arch/tdesc.h: New file.
2206 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2207 * target-descriptions.c: Update comments.
2208 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2209 declarations.
2210 * features/i386/32bit-avx.c: Re-generated.
2211 * features/i386/32bit-avx512.c: Re-generated.
2212 * features/i386/32bit-core.c: Re-generated.
2213 * features/i386/32bit-linux.c: Re-generated.
2214 * features/i386/32bit-mpx.c: Re-generated.
2215 * features/i386/32bit-pkeys.c: Re-generated.
2216 * features/i386/32bit-sse.c: Re-generated.
2217
2218 2017-09-05 Yao Qi <yao.qi@linaro.org>
2219
2220 * regformats/regdat.sh: Update generated code.
2221
2222 2017-09-05 Yao Qi <yao.qi@linaro.org>
2223
2224 * regformats/regdat.sh: Adjust code order.
2225
2226 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2227
2228 * expprint.c (dump_subexp_body_standard): Use constant format
2229 string in fprintf_filtered call.
2230
2231 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2232
2233 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2234 NetBSD/i386.
2235 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2236
2237 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2238
2239 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2240
2241 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2242
2243 * bsd-kvm.o: Define _KMEMUSER.
2244 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2245 * configure: Regenerate.
2246
2247 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2248
2249 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2250 * i386-fbsd-nat.c: Likewise.
2251
2252 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2253
2254 * unittests/array-view-selftests.c: Add include of <array>.
2255
2256 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2257
2258 * spu-tdep.c (flush_ea_cache): Add missing argument to
2259 call_function_by_hand.
2260
2261 2017-09-04 Pedro Alves <palves@redhat.com>
2262
2263 * NEWS (Safer support for debugging with no debug info): New.
2264
2265 2017-09-04 Pedro Alves <palves@redhat.com>
2266
2267 * c-exp.y (function_method, function_method_void): Add current
2268 instance flags to TYPE_INSTANCE.
2269 * dwarf2read.c (check_modifier): New.
2270 (compute_delayed_physnames): Assert that only C++ adds delayed
2271 physnames. Mark fn_fields as const/volatile depending on
2272 physname.
2273 * eval.c (make_params): New type_instance_flags parameter. Use
2274 it as the new type's instance flags.
2275 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2276 flags element and pass it to make_params.
2277 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2278 instance flags element.
2279 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2280 * gdbtypes.h: Include "enum-flags.h".
2281 (type_instance_flags): New enum-flags type.
2282 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2283 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2284 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2285 (follow_type_instance_flags): New function.
2286 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2287 * parser-defs.h (follow_type_instance_flags): Declare.
2288 * valops.c (value_struct_elt_for_reference): const/volatile must
2289 match too.
2290
2291 2017-09-04 Pedro Alves <palves@redhat.com>
2292
2293 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2294 function/method scopes; lookup the nested name as a function local
2295 static variable.
2296
2297 2017-09-04 Pedro Alves <palves@redhat.com>
2298
2299 (%type <voidval>): Add function_method.
2300 * c-exp.y (exp): New production for calls with no arguments.
2301 (function_method, function_method_void_or_typelist): New
2302 productions.
2303 (exp): New production for "method()::static_var".
2304 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2305 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2306 Handle OP_FUNC_STATIC_VAR.
2307 * parse.c (operator_length_standard):
2308 Handle OP_FUNC_STATIC_VAR.
2309
2310 2017-09-04 Pedro Alves <palves@redhat.com>
2311
2312 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2313 handling.
2314 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2315 Ditto.
2316 * parse.c (operator_length_standard, operator_check_standard):
2317 Ditto.
2318 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2319
2320 2017-09-04 Pedro Alves <palves@redhat.com>
2321
2322 * ax-gdb.c: Include "typeprint.h".
2323 (gen_expr_for_cast): New function.
2324 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2325 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2326 type is unknown.
2327 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2328 nodebug_data_symbol.
2329 * eval.c: Include "typeprint.h".
2330 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2331 Error out if symbol has unknown type.
2332 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2333 evaluate_subexp_for_cast.
2334 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2335 OP_VAR_MSYM_VALUE.
2336 (evaluate_subexp_for_cast): New function.
2337 * gdbtypes.c (init_nodebug_var_type): New function.
2338 (objfile_type): Use it to initialize types of variables with no
2339 debug info.
2340 * typeprint.c (error_unknown_type): New.
2341 * typeprint.h (error_unknown_type): New declaration.
2342 * compile/compile-c-types.c (convert_type_basic): Handle
2343 TYPE_CODE_ERROR; warn and fallback to int for variables with
2344 unknown type.
2345
2346 2017-09-04 Pedro Alves <palves@redhat.com>
2347
2348 * eval.c (evaluate_var_value): New function, factored out from ...
2349 (evaluate_subexp_standard): ... here.
2350
2351 2017-09-04 Pedro Alves <palves@redhat.com>
2352
2353 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2354 Remove useless assignments to 'op'.
2355
2356 2017-09-04 Pedro Alves <palves@redhat.com>
2357
2358 * eval.c (eval_skip_value): New function.
2359 (evaluate_subexp_standard): Use it.
2360
2361 2017-09-04 Pedro Alves <palves@redhat.com>
2362
2363 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2364 function name from symbol/minsym and pass it to
2365 error_call_unknown_return_type.
2366
2367 2017-09-04 Pedro Alves <palves@redhat.com>
2368
2369 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2370 * ax-gdb.c (gen_msym_var_ref): New function.
2371 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2372 * eval.c (evaluate_var_msym_value): New function.
2373 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2374 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2375 to call_function_by_hand.
2376 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2377 Handle OP_VAR_MSYM_VALUE.
2378 (union exp_element) <msymbol>: New field.
2379 * minsyms.h (struct type): Forward declare.
2380 (find_minsym_type_and_address): Declare.
2381 * parse.c (write_exp_elt_msym): New function.
2382 (write_exp_msymbol): Delete, refactored as ...
2383 (find_minsym_type_and_address): ... this new function.
2384 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2385 (operator_length_standard, operator_check_standard): Handle
2386 OP_VAR_MSYM_VALUE.
2387 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2388
2389 2017-09-04 Pedro Alves <palves@redhat.com>
2390
2391 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2392 TYPE_GNU_IFUNC specially here. Throw error if return type is
2393 unknown.
2394 * ada-typeprint.c (print_func_type): Handle functions with unknown
2395 return type.
2396 * c-typeprint.c (c_type_print_base): Handle functions and methods
2397 with unknown return type.
2398 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2399 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2400 * compile/compile-c-types.c: Include "objfiles.h".
2401 (convert_func): For functions with unknown return type, warn and
2402 default to int.
2403 * compile/compile-object-run.c (compile_object_run): Adjust call
2404 to call_function_by_hand_dummy.
2405 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2406 call_function_by_hand.
2407 * eval.c (evaluate_subexp_standard): Adjust calls to
2408 call_function_by_hand. Handle functions and methods with unknown
2409 return type. Pass expect_type to call_function_by_hand.
2410 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2411 return type.
2412 * gcore.c (call_target_sbrk): Adjust call to
2413 call_function_by_hand.
2414 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2415 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2416 an integer address type instead of nodebug.
2417 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2418 call_function_by_hand.
2419 * infcall.c (error_call_unknown_return_type): New function.
2420 (call_function_by_hand): New "default_return_type" parameter.
2421 Pass it down.
2422 (call_function_by_hand_dummy): New "default_return_type"
2423 parameter. Use it instead of defaulting to int. If there's no
2424 default and the return type is unknown, throw an error. If
2425 there's a default return type, and the called function has no
2426 debug info, then assume the function is prototyped.
2427 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2428 New "default_return_type" parameter.
2429 (error_call_unknown_return_type): New declaration.
2430 * linux-fork.c (call_lseek): Cast return type of lseek.
2431 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2432 call_function_by_hand.
2433 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2434 calls to call_function_by_hand.
2435 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2436 return type.
2437 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2438 (value_nsstring, print_object_command): Adjust calls to
2439 call_function_by_hand.
2440 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2441 functions with unknown return type.
2442 (pascal_type_print_func_varspec_suffix): New function.
2443 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2444 TYPE_CODE_METHOD>: Use it.
2445 * python/py-value.c (valpy_call): Adjust call to
2446 call_function_by_hand.
2447 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2448 call_function_by_hand.
2449 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2450 call_function_by_hand.
2451 * valops.c (value_allocate_space_in_inferior): Adjust call to
2452 call_function_by_hand.
2453 * typeprint.c (type_print_unknown_return_type): New function.
2454 * typeprint.h (type_print_unknown_return_type): New declaration.
2455
2456 2017-09-04 Pedro Alves <palves@redhat.com>
2457
2458 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2459 types with more than one parameter as prototyped.
2460
2461 2017-09-04 Pedro Alves <palves@redhat.com>
2462
2463 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2464 (disassemble_command): Use gdb_disassembly_flags instead of bare
2465 int.
2466 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2467 (dump_insns, do_mixed_source_and_assembly_deprecated)
2468 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2469 Use gdb_disassembly_flags instead of bare int.
2470 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2471 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2472 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2473 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2474 (enum gdb_disassembly_flag): ... values of this new enumeration.
2475 (gdb_disassembly_flags): Define.
2476 (gdb_disassembly)
2477 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2478 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2479 gdb_disassembly_flags instead of bare int.
2480 * record-btrace.c (btrace_insn_history)
2481 (record_btrace_insn_history, record_btrace_insn_history_range)
2482 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2483 instead of bare int.
2484 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2485 Use gdb_disassembly_flags instead of bare int.
2486 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2487 Define.
2488 * target-delegates.c: Regenerate.
2489 * target.c (target_insn_history, target_insn_history_from)
2490 (target_insn_history_range): Use gdb_disassembly_flags instead of
2491 bare int.
2492 * target.h: Include "disasm.h".
2493 (struct target_ops) <to_insn_history, to_insn_history_from,
2494 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2495 int.
2496 (target_insn_history, target_insn_history_from)
2497 (target_insn_history_range): Use gdb_disassembly_flags instead of
2498 bare int.
2499
2500 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2501
2502 * cli/cli-script.c (build_command_line): For if/while commands,
2503 check whether args is empty.
2504
2505 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2506
2507 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2508 (enum command_control_type): Likewise.
2509 (struct command_line): Likewise.
2510 (free_command_lines): Likewise.
2511 (struct command_lines_deleter): Likewise.
2512 (command_line_up): Likewise.
2513 (read_command_lines): Likewise.
2514 (read_command_lines_1): Likewise.
2515 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2516 (enum command_control_type): Likewise.
2517 (struct command_line): Likewise.
2518 (free_command_lines): Likewise.
2519 (struct command_lines_deleter): Likewise.
2520 (command_line_up): Likewise.
2521 (read_command_lines): Likewise.
2522 (read_command_lines_1): Likewise.
2523 * breakpoint.h: Include cli/cli-script.h.
2524 * extension-priv.h: Likewise.
2525 * gdbcmd.h: Likewise.
2526
2527 2017-09-04 Pedro Alves <palves@redhat.com>
2528
2529 * ada-lang.c (is_known_support_routine): Move sal declaration to
2530 where it is initialized.
2531 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2532 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2533 (clear_command, update_static_tracepoint): Remove init_sal
2534 references. Move declarations closer to initializations.
2535 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2536 initializations.
2537 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2538 references. Move sal declarations closer to initializations.
2539 * frame.c (find_frame_sal): Return a symtab_and_line via function
2540 return instead of output parameter. Remove init_sal references.
2541 * frame.h (find_frame_sal): Return a symtab_and_line via function
2542 return instead of output parameter.
2543 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2544 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2545 instead of memset.
2546 (gdbscm_find_pc_line): Remove init_sal reference.
2547 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2548 references. Move declarations closer to initializations.
2549 * infcmd.c (set_step_frame): Update. Move declarations closer to
2550 initializations.
2551 (finish_backward): Remove init_sal references. Move declarations
2552 closer to initializations.
2553 * infrun.c (process_event_stop_test, handle_step_into_function)
2554 (insert_hp_step_resume_breakpoint_at_frame)
2555 (insert_step_resume_breakpoint_at_caller): Likewise.
2556 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2557 (symbol_to_sal): Likewise.
2558 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2559 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2560 to its initialization.
2561 * reverse.c (save_bookmark_command): Use new/delete. Remove
2562 init_sal references. Move declarations closer to initializations.
2563 * source.c (get_current_source_symtab_and_line): Remove brace
2564 initialization.
2565 (set_current_source_symtab_and_line): Now takes the sal by const
2566 reference. Remove brace initialization.
2567 (line_info): Remove init_sal reference.
2568 * source.h (set_current_source_symtab_and_line): Now takes a
2569 symtab_and_line via const reference.
2570 * stack.c (set_current_sal_from_frame): Adjust.
2571 (print_frame_info): Adjust.
2572 (get_last_displayed_sal): Return the sal via function return
2573 instead of via output parameter. Simplify.
2574 (frame_info): Adjust.
2575 * stack.h (get_last_displayed_sal): Return the sal via function
2576 return instead of via output parameter.
2577 * symtab.c (init_sal): Delete.
2578 (find_pc_sect_line): Remove init_sal references. Move
2579 declarations closer to initializations.
2580 (find_function_start_sal): Remove init_sal references. Move
2581 declarations closer to initializations.
2582 * symtab.h (struct symtab_and_line): In-class initialize all
2583 fields.
2584 * tracepoint.c (set_traceframe_context)
2585 (print_one_static_tracepoint_marker): Remove init_sal references.
2586 Move declarations closer to initializations.
2587 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2588 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2589 declarations closer to initializations.
2590 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2591 init_sal references. Adjust.
2592
2593 2017-09-04 Pedro Alves <palves@redhat.com>
2594
2595 * ax-gdb.c (agent_command_1): Use range-for.
2596 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2597 * breakpoint.c: Include "common/array-view.h".
2598 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2599 parameter from struct symtabs_and_lines to
2600 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2601 (breakpoint_sals_to_pc): Change sals parameter from struct
2602 symtabs_and_lines to std::vector reference.
2603 (check_fast_tracepoint_sals): Change sals parameter from struct
2604 symtabs_and_lines to std::array_view. Use range-for.
2605 (decode_static_tracepoint_spec): Return a std::vector instead of
2606 symtabs_and_lines. Update.
2607 (create_breakpoint): Update.
2608 (break_range_command, until_break_command, clear_command): Update.
2609 (base_breakpoint_decode_location, bkpt_decode_location)
2610 (bkpt_probe_create_sals_from_location)
2611 (bkpt_probe_decode_location, tracepoint_decode_location)
2612 (tracepoint_probe_decode_location)
2613 (strace_marker_create_sals_from_location): Return a std::vector
2614 instead of symtabs_and_lines.
2615 (strace_marker_create_breakpoints_sal): Update.
2616 (strace_marker_decode_location): Return a std::vector instead of
2617 symtabs_and_lines. Update.
2618 (update_breakpoint_locations): Change struct symtabs_and_lines
2619 parameters to gdb::array_view. Adjust.
2620 (location_to_sals): Return a std::vector instead of
2621 symtabs_and_lines. Update.
2622 (breakpoint_re_set_default): Use std::vector instead of struct
2623 symtabs_and_lines.
2624 (decode_location_default): Return a std::vector instead of
2625 symtabs_and_lines. Update.
2626 * breakpoint.h: Include "common/array-view.h".
2627 (struct breakpoint_ops) <decode_location>: Now returns a
2628 std::vector instead of returning a symtabs_and_lines via output
2629 parameter.
2630 (update_breakpoint_locations): Change sals parameters to use
2631 gdb::array_view.
2632 * cli/cli-cmds.c (edit_command, list_command): Update to use
2633 std::vector and gdb::array_view.
2634 (ambiguous_line_spec): Adjust to use gdb::array_view and
2635 range-for.
2636 (compare_symtabs): Rename to ...
2637 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2638 const reference and adjust.
2639 (filter_sals): Rewrite using std::vector and standard algorithms.
2640 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2641 (jump_command): Update to use std::vector.
2642 * linespec.c (struct linespec_state) <canonical_names>: Update
2643 comment.
2644 (add_sal_to_sals_basic): Delete.
2645 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2646 (decode_line_2, create_sals_line_offset)
2647 (convert_address_location_to_sals, convert_linespec_to_sals)
2648 (convert_explicit_location_to_sals, parse_linespec)
2649 (event_location_to_sals, decode_line_full, decode_line_1)
2650 (decode_line_with_current_source)
2651 (decode_line_with_last_displayed, decode_objc)
2652 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2653 (linespec_result::~linespec_result): Adjust to use std::vector
2654 instead of symtabs_and_lines.
2655 * linespec.h (linespec_sals::sals): Now a std::vector.
2656 (struct linespec_result): Use std::vector, bool, and in-class
2657 initialization.
2658 (decode_line_1, decode_line_with_current_source)
2659 (decode_line_with_last_displayed): Return std::vector.
2660 * macrocmd.c (info_macros_command): Use std::vector.
2661 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2662 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2663 std::vector.
2664 * probe.h (parse_probes): Return a std::vector.
2665 * python/python.c (gdbpy_decode_line): Use std::vector and
2666 gdb::array_view.
2667 * source.c (select_source_symtab, line_info): Use std::vector.
2668 * stack.c (func_command): Use std::vector.
2669 * symtab.h (struct symtabs_and_lines): Delete.
2670 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2671
2672 2017-09-04 Pedro Alves <palves@redhat.com>
2673
2674 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2675 unittests/array-view-selftests.c.
2676 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2677 * common/array-view.h: New file.
2678 * unittests/array-view-selftests.c: New file.
2679
2680 2017-09-04 Pedro Alves <palves@redhat.com>
2681
2682 * cli/cli-cmds.c (edit_command): Pass message to
2683 ambiguous_line_spec.
2684 (list_command): Pass message to ambiguous_line_spec. Say
2685 "first"/"last" instead of "start" and "end" to be consistent with
2686 the manual.
2687 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2688 them to print formatted message.
2689
2690 2017-09-04 Pedro Alves <palves@redhat.com>
2691
2692 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2693 ftrace_update_insns by reference instead of pointer.
2694
2695 2017-09-04 Yao Qi <yao.qi@linaro.org>
2696
2697 * i386-go32-tdep.c: Include x86-xstate.h.
2698 (i386_go32_init_abi): Call i386_target_description.
2699 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2700 if xcr0 is X86_XSTATE_X87_MASK.
2701 * i386-tdep.h (tdesc_i386): Remove the declaration.
2702 (tdesc_i386_mmx): Likewise.
2703
2704 2017-09-04 Yao Qi <yao.qi@linaro.org>
2705
2706 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2707 X86_XSTATE_SSE_MASK instead of 0.
2708
2709 2017-09-04 Yao Qi <yao.qi@linaro.org>
2710
2711 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2712 i386_target_description.
2713 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2714 i386_target_description.
2715 * i386-tdep.c (i386_gdbarch_init): Likewise.
2716
2717 2017-09-04 Yao Qi <yao.qi@linaro.org>
2718
2719 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2720 (x86_darwin_init_abi_64): Call amd64_target_description.
2721 * amd64-dicos-tdep.c: Likewise.
2722 * amd64-fbsd-nat.c: Likewise.
2723 * amd64-fbsd-tdep.c: Likewise.
2724 * amd64-nbsd-tdep.c: Likewise.
2725 * amd64-obsd-tdep.c: Likewise.
2726 * amd64-sol2-tdep.c: Likewise.
2727 * amd64-windows-tdep.c: Likewise.
2728 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2729
2730 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2731
2732 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2733 (btrace_function) <insn>: Change type to use std::vector.
2734 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2735 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2736 ftrace_update_insns, ftrace_compute_global_level_offset,
2737 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2738 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2739 change to std::vector.
2740 (ftrace_update_insns): Adjust to change to std::vector, change
2741 type of INSN parameter.
2742 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2743 * record-btrace.c (btrace_call_history_insn_range,
2744 btrace_compute_src_line_range,
2745 record_btrace_frame_prev_register): Adjust to change to
2746 std::vector.
2747 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2748 to change to std::vector.
2749
2750 2017-09-03 Tom Tromey <tom@tromey.com>
2751
2752 * corefile.c (reopen_exec_file): Use std::string.
2753
2754 2017-09-03 Tom Tromey <tom@tromey.com>
2755
2756 * compile/compile.c (compile_register_name_mangled): Return
2757 std::string.
2758 * compile/compile-loc2c.c (pushf_register_address): Update.
2759 (pushf_register): Update.
2760 * compile/compile-c-types.c (convert_array): Update.
2761 * compile/compile-c-symbols.c (generate_vla_size): Update.
2762 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2763 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2764 (convert_one_symbol): Update.
2765 (generate_c_for_for_one_variable): Update.
2766 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2767 std::string.
2768 (generate_register_struct): Update.
2769 * compile/compile-internal.h (c_get_range_decl_name): Return a
2770 std::string.
2771 (compile_register_name_mangled): Return std::string.
2772
2773 2017-09-03 Tom Tromey <tom@tromey.com>
2774
2775 * utils.c (perror_string): Return a std::string.
2776 (throw_perror_with_name, perror_warning_with_name): Update.
2777
2778 2017-09-03 Tom Tromey <tom@tromey.com>
2779
2780 * demangle.c (demangle_command): Use std::string,
2781 unique_xmalloc_ptr.
2782
2783 2017-09-03 Tom Tromey <tom@tromey.com>
2784
2785 * cli/cli-setshow.c (do_set_command): Use std::string.
2786
2787 2017-09-03 Tom Tromey <tom@tromey.com>
2788
2789 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2790
2791 2017-09-03 Tom Tromey <tom@tromey.com>
2792
2793 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2794
2795 2017-09-03 Tom Tromey <tom@tromey.com>
2796
2797 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2798 gdb::unique_xmalloc_ptr.
2799
2800 2017-09-03 Tom Tromey <tom@tromey.com>
2801
2802 * thread.c (print_thread_info_1): Use string_printf.
2803 (thread_apply_command, thread_apply_all_command): Use
2804 std::string.
2805
2806 2017-09-03 Tom Tromey <tom@tromey.com>
2807
2808 * valprint.c (val_print_string): Update.
2809 * gdbcore.h (memory_error_message): Return std::string.
2810 * corefile.c (memory_error_message): Return std::string.
2811 (memory_error): Update.
2812 * breakpoint.c (insert_bp_location): Update.
2813
2814 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2815
2816 * target/waitstatus.h (target_waitstatus_to_string): Change
2817 return type to std::string.
2818 * target/waitstatus.c (target_waitstatus_to_string): Return
2819 std::string.
2820 * target.h (target_waitstatus_to_string): Remove declaration.
2821 * infrun.c (resume, clear_proceed_status_thread,
2822 print_target_wait_results, do_target_wait, save_waitstatus,
2823 stop_all_threads): Adjust.
2824 * record-btrace.c (record_btrace_wait): Adjust.
2825 * target-debug.h
2826 (target_debug_print_struct_target_waitstatus_p): Adjust.
2827
2828 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2829
2830 PR gdb/22046
2831 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2832 detection.
2833
2834 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2835
2836 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2837 for setting/unsetting environment variables on the remote target.
2838 (New remote packets): Add entries for QEnvironmentHexEncoded,
2839 QEnvironmentUnset and QEnvironmentReset.
2840 * common/environ.c (gdb_environ::operator=): Extend method to
2841 handle m_user_set_env_list and m_user_unset_env_list.
2842 (gdb_environ::clear): Likewise.
2843 (match_var_in_string): Change type of first parameter from 'char
2844 *' to 'const char *'.
2845 (gdb_environ::set): Extend method to handle
2846 m_user_set_env_list and m_user_unset_env_list.
2847 (gdb_environ::unset): Likewise.
2848 (gdb_environ::clear_user_set_env): New method.
2849 (gdb_environ::user_set_envp): Likewise.
2850 (gdb_environ::user_unset_envp): Likewise.
2851 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2852 m_user_unset_env_list on move constructor/assignment.
2853 (unset): Add new default parameter 'update_unset_list = true'.
2854 (clear_user_set_env): New method.
2855 (user_set_envp): Likewise.
2856 (user_unset_envp): Likewise.
2857 (m_user_set_env_list): New std::set.
2858 (m_user_unset_env_list): Likewise.
2859 * common/rsp-low.c (hex2str): New function.
2860 (bin2hex): New overload for bin2hex function.
2861 * common/rsp-low.c (hex2str): New prototype.
2862 (str2hex): New overload prototype.
2863 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2864 QEnvironmentUnset and QEnvironmentReset.
2865 (remote_protocol_features): Add QEnvironmentHexEncoded,
2866 QEnvironmentUnset and QEnvironmentReset packets.
2867 (send_environment_packet): New function.
2868 (extended_remote_environment_support): Likewise.
2869 (extended_remote_create_inferior): Call
2870 extended_remote_environment_support.
2871 (_initialize_remote): Add QEnvironmentHexEncoded,
2872 QEnvironmentUnset and QEnvironmentReset packet configs.
2873 * unittests/environ-selftests.c (gdb_selftest_env_var):
2874 New variable.
2875 (test_vector_initialization): New function.
2876 (test_init_from_host_environ): Likewise.
2877 (test_reinit_from_host_environ): Likewise.
2878 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2879 Likewise.
2880 (test_unset_set_empty_vector): Likewise.
2881 (test_vector_clear): Likewise.
2882 (test_std_move): Likewise.
2883 (test_move_constructor):
2884 (test_self_move): Likewise.
2885 (test_set_unset_reset): Likewise.
2886 (run_tests): Rewrite in terms of the functions above.
2887
2888 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
2889
2890 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2891 (adi_available): Use a temp variable of type CORE_ADDR as argument
2892 3 when calling target_auxv_search.
2893 (adi_normalize_address): Use masks and xor operators to calculate
2894 normalized address.
2895 (adi_read_versions, adi_write_versions, adi_print_versions)
2896 (do_examine, do_assign): Use paddress.
2897
2898 2017-08-29 John Baldwin <jhb@FreeBSD.org>
2899
2900 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2901 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2902 out of loop and add supply of FIR.
2903 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2904 add collect of FIR.
2905
2906 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2907
2908 PR gdb/21827
2909 * cli/cli-script.c (define_command): Don't convert command name
2910 to lower case.
2911
2912 2017-08-25 Joel Brobecker <brobecker@adacore.com>
2913
2914 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2915 Update all callers accordingly. Remove all code blocks handling
2916 the case where DISPP is not NULL.
2917
2918 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2919
2920 PR symtab/22003
2921 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2922 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2923 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2924
2925 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2926
2927 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2928 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2929 (read_comp_units_from_section): New parameter abbrev_section, use
2930 read_and_check_comp_unit_head, allocate signatured_type if needed.
2931 (create_all_comp_units): Update read_comp_units_from_section caller.
2932
2933 2017-08-23 Pedro Alves <palves@redhat.com>
2934
2935 PR remote/21852
2936 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2937 to null_ptid and switch to thread without reading the registers
2938 after adding the inferior.
2939
2940 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2941
2942 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2943 compile-gcc.
2944 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2945 (compile_to_object): Implement compile_gcc.
2946 (_initialize_compile): Install "set compile-gcc". Initialize
2947 compile_gcc.
2948
2949 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2950
2951 * compile/compile.c (compile_to_object): Conditionally call
2952 set_verbose. Conditionally call compile or compile_v0.
2953
2954 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
2955
2956 * sparc64-tdep.h: (adi_normalize_address): New export.
2957 * sparc-nat.h: (open_adi_tag_fd): New export.
2958 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2959 * sparc64-linux-tdep.c:
2960 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2961 (sparc64_linux_handle_segmentation_fault): New function.
2962 (sparc64_linux_init_abi): Register
2963 sparc64_linux_handle_segmentation_fault
2964 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2965 (sparc64_addr_bits_remove): New function.
2966 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2967 (MAX_PROC_NAME_SIZE): New macro.
2968 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2969 (sparc64adilist): New variable.
2970 (adi_proc_list): New variable.
2971 (find_adi_info): New function.
2972 (add_adi_info): New function.
2973 (get_adi_info_proc): New function.
2974 (get_adi_info): New function.
2975 (info_adi_command): New function.
2976 (read_maps_entry): New function.
2977 (adi_available): New function.
2978 (adi_normalize_address): New function.
2979 (adi_align_address): New function.
2980 (adi_convert_byte_count): New function.
2981 (adi_tag_fd): New function.
2982 (adi_is_addr_mapped): New function.
2983 (adi_read_versions): New function.
2984 (adi_write_versions): New function.
2985 (adi_print_versions): New function.
2986 (do_examine): New function.
2987 (do_assign): New function.
2988 (adi_examine_command): New function.
2989 (adi_assign_command): New function.
2990 (_initialize_sparc64_adi_tdep): New function.
2991
2992 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2993
2994 * breakpoint.c (breakpoints_info): Rename to ...
2995 (info_breakpoints_command): ... this.
2996 (watchpoints_info): Rename to ...
2997 (info_watchpoints_command): ... this.
2998 (tracepoints_info): Rename to ...
2999 (info_tracepoints_command): ... this.
3000 (_initialize_breakpoint): Adjust.
3001 * dcache.c (dcache_info): Rename to ...
3002 (info_display_command): ... this.
3003 (_initialize_dcache): Adjust.
3004 * frame.h (args_info): Rename to ...
3005 (info_args_command): ... this.
3006 (locals_info): Rename to ...
3007 (info_locals_command): ... this.
3008 * infcmd.c (nofp_registers_info): Rename to ...
3009 (info_registers_command): ... this.
3010 (float_info): Rename to ...
3011 (info_float_command): ... this.
3012 (program_info): Rename to ...
3013 (info_program_command): ... this.
3014 (all_registers_info): Rename to ...
3015 (info_all_registers_command): ... this.
3016 (vector_info): Rename to ...
3017 (info_vector_command): ... this.
3018 (float_info): Rename to ...
3019 (info_float_command): ... this.
3020 (_initialize_infcmd): Adjust.
3021 * inferior.h (term_info): Rename to ...
3022 (info_terminal_command): ... this.
3023 * inflow.c (term_info): Rename to ...
3024 (info_terminal_command): ... this.
3025 (_initialize_inflow): Adjust.
3026 * infrun.c (signals_info): Rename to ...
3027 (info_signals_command): ... this.
3028 (_initialize_infrun): Adjust.
3029 * objc-lang.c (classes_info): Rename to ...
3030 (info_classes_command): ... this.
3031 (selectors_info): Rename to ...
3032 (info_selectors_command): ... this.
3033 (_initialize_objc_language): Adjust.
3034 * printcmd.c (sym_info): Rename to ...
3035 (info_symbol_command): ... this.
3036 (address_info): Rename to ...
3037 (info_address_command): ... this.
3038 (display_info): Rename to ...
3039 (info_display_command): ... this.
3040 (_initialize_printcmd): Adjust.
3041 * reverse.c (bookmarks_info): Rename to ...
3042 (info_breakpoints_command): ... this.
3043 (_initialize_reverse): Adjust.
3044 * ser-go32.c (dos_info): Rename to ...
3045 (info_serial_command): ... this.
3046 (_initialize_ser_dos): Adjust.
3047 * skip.c (skip_info): Rename to ...
3048 (info_skip_command): ... this.
3049 (_initialize_step_skip): Adjust.
3050 * source.c (line_info): Rename to ...
3051 (info_line_command): ... this.
3052 (source_info): Rename to ...
3053 (info_source_command)
3054 * stack.c (frame_info): Rename to ...
3055 (info_frame_command): ... this.
3056 (locals_info): Rename to ...
3057 (info_locals_command): ... this.
3058 (args_info): Rename to ...
3059 (info_args_command): ... this.
3060 (_initialize_stack): Adjust.
3061 * symtab.c (sources_info): Rename to ...
3062 (info_sources_command): ... this.
3063 (variables_info): Rename to ...
3064 (info_variables_command): ... this.
3065 (functions_info): Rename to ...
3066 (info_functions_command): ... this.
3067 (types_info): Rename to ...
3068 (info_types_command): ... this.
3069 (_initialize_symtab): Adjust.
3070 * target.c (target_info): Rename to ...
3071 (info_target_command): ... this.
3072 (initialize_targets): Adjust.
3073 * tracepoint.c (tvariables_info): Rename to ...
3074 (info_tvariables_command): ... this.
3075 (scope_info): Rename to ...
3076 (info_scope_command): ... this.
3077 (trace_dump_actions): Adjust.
3078 (_initialize_tracepoint): Adjust.
3079
3080 2017-08-22 Tom Tromey <tom@tromey.com>
3081
3082 * breakpoint.h (install_breakpoint): Update.
3083 * breakpoint.c (add_solib_catchpoint): Update.
3084 (install_breakpoint): Change argument to a std::unique_ptr.
3085 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3086 (create_breakpoint_sal, create_breakpoint): Update.
3087 (watch_command_1, catch_exec_command_1)
3088 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3089 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3090 Return the breakpoint.
3091 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3092 (new_single_step_breakpoint): Update.
3093 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3094 std::unique_ptr.
3095 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3096 std::unique_ptr.
3097 * break-catch-sig.c (create_signal_catchpoint): Use
3098 std::unique_ptr.
3099 * ada-lang.c (create_ada_exception_catchpoint): Use
3100 std::unique_ptr.
3101
3102 2017-08-22 Tom Tromey <tom@tromey.com>
3103
3104 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3105
3106 2017-08-22 Tom Tromey <tom@tromey.com>
3107
3108 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3109 (lookup_partial_symbol): Update.
3110
3111 2017-08-22 Tom Tromey <tom@tromey.com>
3112
3113 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3114 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3115 (find_and_open_source, symtab_to_fullname): Update.
3116 * psymtab.c (psymtab_to_fullname): Update.
3117
3118 2017-08-22 Tom Tromey <tom@tromey.com>
3119
3120 * exec.c (exec_file_attach): Update.
3121 * linux-thread-db.c (try_thread_db_load): Update.
3122 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3123 * utils.c (gdb_realpath): Change return type.
3124 (gdb_realpath_keepfile): Update.
3125 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3126 (_initialize_utils): Register the new self test.
3127 * source.c (openp): Update.
3128 (find_and_open_source): Update.
3129 * nto-tdep.c (nto_find_and_open_solib): Update.
3130 * main.c (set_gdb_data_directory): Update.
3131 (captured_main_1): Update.
3132 * dwarf2read.c (dwarf2_get_dwz_file): Update
3133 (dw2_map_symbol_filenames): Update.
3134 * auto-load.c (auto_load_safe_path_vec_update): Update.
3135 (filename_is_in_auto_load_safe_path_vec): Change type of
3136 "filename_realp".
3137 (auto_load_objfile_script): Update.
3138 (file_is_auto_load_safe): Update. Use std::string.
3139 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3140
3141 2017-08-22 Tom Tromey <tom@tromey.com>
3142
3143 * utils.c (gdb_realpath_keepfile): Return a
3144 gdb::unique_xmalloc_ptr.
3145 * exec.c (exec_file_attach): Update.
3146 * utils.h (gdb_realpath_keepfile): Return a
3147 gdb::unique_xmalloc_ptr.
3148
3149 2017-08-22 Tom Tromey <tom@tromey.com>
3150
3151 * compile/compile.c (compile_file_command): Use
3152 gdb::unique_xmalloc_ptr, std::string.
3153 * utils.c (gdb_abspath): Change return type.
3154 * source.c (openp): Update.
3155 * objfiles.c (allocate_objfile): Update.
3156 * main.c (set_gdb_data_directory): Update.
3157 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3158
3159 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3160
3161 * cli-cmds.c (list_commands): List actual code around more than
3162 one location.
3163
3164 2017-08-21 John Baldwin <jhb@FreeBSD.org>
3165
3166 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3167
3168 2017-08-21 Pedro Alves <palves@redhat.com>
3169
3170 PR gdb/19487
3171 * c-exp.y (variable production): Handle function aliases.
3172 * minsyms.c (msymbol_is_text): New function.
3173 * minsyms.h (msymbol_is_text): Declare.
3174 * symtab.c (find_function_alias_target): New function.
3175 * symtab.h (find_function_alias_target): Declare.
3176
3177 2017-08-21 Pedro Alves <palves@redhat.com>
3178
3179 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3180 typedefs.
3181 * typeprint.c (whatis_exp): If handling "whatis", and expression
3182 is OP_TYPE, strip one typedef level. Otherwise don't strip
3183 typedefs here.
3184 * valops.c (value_cast): Save "to" type before resolving
3185 stubs/typedefs. Use that type as resulting value's type.
3186
3187 2017-08-18 Tom Tromey <tom@tromey.com>
3188 Pedro Alves <palves@redhat.com>
3189
3190 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3191 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3192 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3193 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3194 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3195 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3196 (linux_get_siginfo_data): Add "thread" argument. Use
3197 scoped_restore.
3198 * linux-nat.c (linux_child_follow_fork)
3199 (check_stopped_by_watchpoint): Use scoped_restore.
3200 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3201 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3202 (restore_inferior_ptid, save_inferior_ptid): Remove.
3203 * btrace.c (btrace_fetch): Use scoped_restore.
3204 * bsd-uthread.c (bsd_uthread_fetch_registers)
3205 (bsd_uthread_store_registers): Use scoped_restore.
3206 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3207 scoped_restore.
3208 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3209 (aix_thread_xfer_partial): Use scoped_restore.
3210 * inferior.h (save_inferior_ptid): Remove.
3211
3212 2017-08-18 Yao Qi <yao.qi@linaro.org>
3213
3214 PR tdep/21818
3215 * arm-tdep.c (gdb_print_insn_arm): Mark
3216 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3217
3218 2017-08-18 Yao Qi <yao.qi@linaro.org>
3219
3220 * NEWS: Mention GDBserver's new option "--selftest".
3221 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3222 * selftest.c: Move it to common/selftest.c.
3223 * selftest.h: Move it to common/selftest.h.
3224 * selftest-arch.c (reset): New function.
3225 (tests_with_arch): Call reset.
3226
3227 2017-08-18 Yao Qi <yao.qi@linaro.org>
3228
3229 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3230 instead of exception_fprintf and printf_filtered.
3231
3232 2017-08-18 Yao Qi <yao.qi@linaro.org>
3233
3234 * selftest.c (register_self_test): Rename it to
3235 selftests::register_test.
3236 (run_self_tests): selftest::run_tests.
3237 * selftest.h: Update declarations.
3238 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3239 selftests::register_test_foreach_arch.
3240 * selftest-arch.h: Update declaration.
3241 * aarch64-tdep.c: Update.
3242 * arm-tdep.c: Likewise.
3243 * disasm-selftests.c: Likewise.
3244 * dwarf2loc.c: Likewise.
3245 * dwarf2-frame.c: Likewise.
3246 * findvar.c: Likewise.
3247 * gdbarch-selftests.c: Likewise.
3248 * maint.c (maintenance_selftest): Likewise.
3249 * regcache.c: Likewise.
3250 * rust-exp.y: Likewise.
3251 * selftest-arch.c: Likewise.
3252 * unittests/environ-selftests.c: Likewise.
3253 * unittests/function-view-selftests.c: Likewise.
3254 * unittests/offset-type-selftests.c: Likewise.
3255 * unittests/optional-selftests.c: Likewise.
3256 * unittests/scoped_restore-selftests.c: Likewise.
3257 * utils-selftests.c: Likewise.
3258
3259 2017-08-17 Pedro Alves <palves@redhat.com>
3260
3261 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3262 local.
3263
3264 2017-08-17 Pedro Alves <palves@redhat.com>
3265
3266 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3267 field.
3268 (reset_die_in_process): Delete, replaced by ...
3269 (process_die_scope): ... this new class. Make it responsible for
3270 freeing cu->line_header too.
3271 (process_die): Use process_die_scope.
3272 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3273 cu->line_header_die_owner. Don't release the line header if it's
3274 owned by the CU.
3275 (setup_type_unit_groups): Make the CU/DIE own the line header.
3276 Don't release the line header here.
3277
3278 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3279
3280 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3281
3282 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3283
3284 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3285 Single-Key mode
3286
3287 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3288
3289 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3290 mode command list.
3291
3292 2017-08-15 Stafford Horne <shorne@gmail.com>
3293
3294 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3295
3296 2017-08-15 Stafford Horne <shorne@gmail.com>
3297
3298 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3299
3300 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3301
3302 PR gdb/21954
3303 * infcmd.c (unset_environment_command): Use the 'clear' method on
3304 the environment instead of resetting it.
3305
3306 2017-08-15 John Baldwin <jhb@FreeBSD.org>
3307
3308 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3309 platforms.
3310
3311 2017-08-14 Tom Tromey <tom@tromey.com>
3312
3313 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3314 (print_binary_chars): Likewise.
3315 (BITS_IN_BYTES): Remove.
3316
3317 2017-08-14 Tom Tromey <tom@tromey.com>
3318
3319 PR gdb/21675
3320 * valprint.c (LOW_ZERO): Change value to 034.
3321 (print_octal_chars): Add static_asserts for octal constants.
3322 * printcmd.c (print_scalar_formatted): Add 'd' case.
3323
3324 2017-08-11 Tom Tromey <tom@tromey.com>
3325
3326 * symfile.c (add_symbol_file_command): Use std::vector.
3327
3328 2017-08-14 Tom Tromey <tom@tromey.com>
3329
3330 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3331 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3332 std::move.
3333 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3334
3335 2017-08-11 Pedro Alves <palves@redhat.com>
3336
3337 * infrun.c (process_event_stop_test): Adjust
3338 function_name_is_marked_for_skip call.
3339 * skip.c: Include <list>.
3340 (skiplist_entry): Make it a class with private fields, and
3341 getters/setters.
3342 (skiplist_entry_chain): Delete.
3343 (skiplist_entries): New.
3344 (skiplist_entry_count): Delete.
3345 (highest_skiplist_entry_num): New.
3346 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3347 (add_skiplist_entry): Delete.
3348 (skiplist_entry::skiplist_entry): New.
3349 (skiplist_entry::add_entry): New.
3350 (skip_file_command, skip_function): Adjust.
3351 (compile_skip_regexp): Delete.
3352 (skip_command): Don't compile regexp here. Adjust to use
3353 skiplist_entry::add_entry.
3354 (skip_info): Adjust to use range-for and getters.
3355 (skip_enable_command, skip_disable_command): Adjust to use
3356 range-for and setters.
3357 (skip_delete_command): Adjust to use std::list.
3358 (add_skiplist_entry): Delete.
3359 (skip_file_p): Delete, refactored as ...
3360 (skiplist_entry::do_skip_file_p): ... this new method.
3361 (skip_gfile_p): Delete, refactored as ...
3362 (skiplist_entry::do_gskip_file_p): ... this new method.
3363 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3364 (skiplist_entry::skip_function_p): ... this new method.
3365 (function_name_is_marked_for_skip): Now returns bool, and takes
3366 the function sal by const reference. Adjust to use range-for and
3367 skiplist_entry methods.
3368 (_initialize_step_skip): Remove references to
3369 skiplist_entry_chain, skiplist_entry_count.
3370 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3371 takes the function sal by const reference.
3372
3373 2017-08-11 Yao Qi <yao.qi@linaro.org>
3374
3375 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3376 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3377 (dwarf2_frame_cache):
3378 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3379 RETURN_MASK_ALL and set *this_case to NULL.
3380 * frame-unwind.h: Update comments.
3381
3382 2017-08-11 Yao Qi <yao.qi@linaro.org>
3383
3384 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3385 (dwarf2_frame_state_copy_regs): Remove.
3386 (dwarf2_frame_state_free_regs): Remove.
3387 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3388 (dwarf2_restore_rule): Call method .alloc_regs instead of
3389 dwarf2_frame_state_alloc_regs.
3390 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3391 constructor. Call std::move.
3392 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3393 (dwarf2_frame_cache): Likewise.
3394
3395 [GDB_SELF_TEST]: Include selftest.h and
3396 selftest-arch.h.
3397 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3398 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3399 execute_cfa_program_test.
3400
3401 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3402 copy ctor, assignment operator, move assignment.
3403 <alloc_regs>: New method.
3404 <swap>: New method.
3405 (struct dwarf2_frame_state): Delete dtor.
3406 (dwarf2_frame_state_alloc_regs): Remove declaration.
3407 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3408 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3409
3410 2017-08-11 Yao Qi <yao.qi@linaro.org>
3411
3412 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3413 (dwarf2_frame_state::dwarf2_frame_state): New.
3414 (dwarf2_frame_state::~dwarf2_frame_state): New.
3415 (dwarf2_fetch_cfa_info): Update.
3416 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3417 rather than a pointer. Update code.
3418 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3419 dtor.
3420 <data_align, code_align, retaddr_column>: Change them to const.
3421 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3422 to bool.
3423
3424 2017-08-11 Yao Qi <yao.qi@linaro.org>
3425
3426 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3427 <loc.exp>: New field.
3428 * dwarf2-frame.c (execute_cfa_program): Update.
3429 (dwarf2_frame_prev_register): Update.
3430
3431 2017-08-10 Pedro Alves <palves@redhat.com>
3432
3433 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3434
3435 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3436
3437 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3438 (fbsd_pending_children): Use std::list.
3439 (fbsd_remember_child): Likewise.
3440 (fbsd_is_child_pending): Likewise.
3441 (fbsd_pending_vfork_done): Use std::forward_list.
3442 (fbsd_add_vfork_done): Likewise.
3443 (fbsd_is_vfork_done_pending): Likewise.
3444 (fbsd_next_vfork_done): Likewise.
3445
3446 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3447
3448 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3449 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3450 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3451 for `mapfilename'.
3452 (fbsd_xfer_partial): Use gdb::byte_vector.
3453 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
3454
3455 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3456
3457 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3458 "filestuff.h".
3459 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3460
3461 2017-08-09 Tom Tromey <tom@tromey.com>
3462
3463 * skip.c (skiplist_entry): New constructor.
3464 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3465 (skiplist_entry::file_is_glob): Now bool.
3466 (skiplist_entry::file, skiplist_entry::function): Now
3467 std::string.
3468 (make_skip_entry): Return a unique_ptr. Use new.
3469 (free_skiplist_entry, free_skiplist_entry_cleanup)
3470 (make_free_skiplist_entry_cleanup): Remove.
3471 (skip_command, skip_disable_command, add_skiplist_entry)
3472 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3473 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3474 (function_name_is_marked_for_skip): Update.
3475 (skip_delete_command): Update. Use delete.
3476
3477 2017-08-09 Jiong Wang <jiong.wang@arm.com>
3478
3479 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3480 (aarch64_linux_core_read_description): New function.
3481 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3482
3483 2017-08-09 Pedro Alves <palves@redhat.com>
3484
3485 * cp-name-parser.y (cp_comp_to_string): Return a
3486 gdb::unique_xmalloc_ptr<char>.
3487 * cp-support.c (replace_typedefs_qualified_name)
3488 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3489 (cp_canonicalize_string_full): Use op= instead of explicit
3490 convertion.
3491 (cp_class_name_from_physname, method_name_from_physname)
3492 (cp_func_name, cp_remove_params): Adjust to use
3493 gdb::unique_xmalloc_ptr<char>.
3494 * cp-support.h (cp_comp_to_string): Return a
3495 gdb::unique_xmalloc_ptr<char>.
3496 * python/py-type.c (typy_lookup_type): Adjust to use
3497 gdb::unique_xmalloc_ptr<char>.
3498
3499 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3500
3501 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3502
3503 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3504 Yao Qi <yao.qi@linaro.org>
3505
3506 * cp-support.c (cp_canonicalize_string_full): Use
3507 gdb::unique_xmalloc_ptr<char>.
3508 (cp_canonicalize_string): Likewise.
3509
3510 2017-08-09 Yao Qi <yao.qi@linaro.org>
3511
3512 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3513 * regformats/i386/amd64-avx-avx512.dat: Remove.
3514 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3515 * regformats/i386/amd64-avx-mpx.dat:Remove.
3516 * regformats/i386/amd64-avx.dat: Remove.
3517 * regformats/i386/amd64-mpx.dat: Remove.
3518 * regformats/i386/i386-avx-avx512.dat: Remove.
3519 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3520 * regformats/i386/i386-avx-mpx.dat: Remove.
3521 * regformats/i386/i386-mmx.dat: Remove.
3522 * regformats/i386/i386-mpx.dat: Remove.
3523
3524 2017-08-09 Yao Qi <yao.qi@linaro.org>
3525
3526 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3527 * amd64-tdep.c: Don't include features/i386/x32*.c.
3528 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3529 functions.
3530 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3531 and i386/x32-avx-avx512.
3532 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3533 and i386/x32.xml.
3534 * features/i386/x32-avx-avx512.c: Removed.
3535 * features/i386/x32-avx-avx512.xml: Removed.
3536 * features/i386/x32-avx.c: Removed.
3537 * features/i386/x32-avx.xml: Removed.
3538 * features/i386/x32.c: Removed.
3539 * features/i386/x32.xml: Removed.
3540 * regformats/i386/x32-avx-avx512.dat: Removed.
3541 * regformats/i386/x32-avx.dat: Removed.
3542 * regformats/i386/x32.dat: Removed.
3543
3544 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3545
3546 PR breakpoints/21886
3547 * mem-break.c (default_memory_insert_breakpoint): Use
3548 `->placed_address' rather than `->reqstd_address' for the
3549 breakpoint location.
3550
3551 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3552
3553 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3554 assertions.
3555
3556 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3557
3558 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3559 a union of `tdep_info', `tdesc_data' and `id'.
3560 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3561 rather than `info.tdep_info'.
3562 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3563 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3564 * i386-tdep.c (i386_gdbarch_init): Likewise.
3565 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3566 * mips-tdep.c (mips_gdbarch_init): Likewise.
3567 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3568 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3569 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3570 `info.tdep_info'.
3571 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3572 `info.tdep_info'.
3573 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3574 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3575 `info.tdep_info'.
3576 * spu-tdep.c (spu_gdbarch_init): Likewise.
3577 * gdbarch.h: Regenerate.
3578
3579 2017-08-07 Leszek Swirski <leszeks@google.com>
3580
3581 PR symtab/20899
3582 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3583
3584 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3585
3586 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3587 (gdbsim_open): Rename gdb_argv args object to argv.
3588
3589 2017-08-05 Tom Tromey <tom@tromey.com>
3590
3591 * compile/compile-object-load.c (compile_object_load): Use
3592 gdb::unique_xmalloc_ptr.
3593 * cli/cli-dump.c (scan_filename): Rename from
3594 scan_filename_with_cleanup. Change return type.
3595 (scan_expression): Rename from scan_expression_with_cleanup.
3596 Change return type.
3597 (dump_memory_to_file, dump_value_to_file, restore_command):
3598 Use gdb::unique_xmalloc_ptr. Update.
3599 * cli/cli-cmds.c (find_and_open_script): Use
3600 gdb::unique_xmalloc_ptr.
3601 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3602 * symmisc.c (maintenance_print_symbols)
3603 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3604 * symfile.c (symfile_bfd_open, generic_load)
3605 (add_symbol_file_command, remove_symbol_file_command): Use
3606 gdb::unique_xmalloc_ptr.
3607 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3608 * psymtab.c (maintenance_print_psymbols): Use
3609 gdb::unique_xmalloc_ptr.
3610 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3611 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3612 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3613 (reload_shared_libraries_1): Likewise.
3614
3615 2017-08-05 Tom Tromey <tom@tromey.com>
3616
3617 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3618 (rust_op_vector, rust_set_vector): New typedefs.
3619 (current_parser): New global.
3620 (work_obstack): Change to pointer type. Update all users.
3621 (rust_ast, pstate): Remove globals.
3622 (struct rust_parser): New.
3623 (%union) <params, field_inits>: Change type.
3624 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3625 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3626 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3627 (convert_params_to_types, convert_params_to_expression): Change
3628 type of "params".
3629 (ast_string): Change type of "fields".
3630 (rust_parse): Make a rust_parser. Remove cleanups.
3631 (rust_lex_tests): Make and install an auto_obstack.
3632
3633 2017-08-04 Yao Qi <yao.qi@linaro.org>
3634
3635 * configure.srv (ipa_x32_linux_regobj): New.
3636 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3637 instead of X86_TDESC_AVX512.
3638 (initialize_low_tracepoint): Call
3639 init_registers_x32_avx_avx512_linux.
3640
3641 2017-08-04 Yao Qi <yao.qi@linaro.org>
3642
3643 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3644
3645 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3646
3647 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3648
3649 2017-08-03 Tom Tromey <tom@tromey.com>
3650
3651 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3652 Remove.
3653 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3654
3655 2017-08-03 Tom Tromey <tom@tromey.com>
3656
3657 * python/py-param.c (compute_enum_values): Use gdb_argv.
3658
3659 2017-08-03 Tom Tromey <tom@tromey.com>
3660
3661 * utils.h (struct gdb_argv_deleter): New.
3662 (gdb_argv): New class.
3663 * utils.c (gdb_argv::reset): New method.
3664 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3665 * tracefile.c (tsave_command): Use gdb_argv.
3666 * top.c (new_ui_command): Use gdb_argv.
3667 * symmisc.c (maintenance_print_symbols)
3668 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3669 * symfile.c (symbol_file_command, generic_load)
3670 (remove_symbol_file_command): Use gdb_argv.
3671 * stack.c (backtrace_command): Use gdb_argv.
3672 * source.c (add_path, show_substitute_path_command)
3673 (unset_substitute_path_command, set_substitute_path_command):
3674 Use gdb_argv.
3675 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3676 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3677 * remote.c (extended_remote_run, remote_put_command)
3678 (remote_get_command, remote_delete_command): Use gdb_argv.
3679 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3680 (gdbsim_open): Use gdb_argv.
3681 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3682 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3683 * procfs.c (procfs_info_proc): Use gdb_argv.
3684 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3685 * infrun.c (handle_command): Use gdb_argv.
3686 * inferior.c (add_inferior_command, clone_inferior_command):
3687 Use gdb_argv.
3688 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3689 * exec.c (exec_file_command): Use gdb_argv.
3690 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3691 * compile/compile.c (build_argc_argv): Use gdb_argv.
3692
3693 2017-08-03 Tom Tromey <tom@tromey.com>
3694
3695 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3696
3697 2017-08-03 Tom Tromey <tom@tromey.com>
3698
3699 * python/python.c (compute_python_string): Return std::string.
3700 (gdbpy_eval_from_control_command): Update.
3701 (do_start_initialization): Use std::string.
3702 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3703 xstrprintf.
3704 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3705 xstrprintf.
3706
3707 2017-08-03 Tom Tromey <tom@tromey.com>
3708
3709 * top.h (do_restore_instream_cleanup): Remove.
3710 * top.c (do_restore_instream_cleanup): Remove.
3711 (read_command_file): Use scoped_restore.
3712 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3713
3714 2017-08-03 Tom Tromey <tom@tromey.com>
3715
3716 * cli/cli-script.c (execute_user_command)
3717 (execute_control_command): Use scoped_restore.
3718
3719 2017-08-03 Tom Tromey <tom@tromey.com>
3720
3721 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3722 (execute_user_command): Remove user_call_depth; use
3723 user_args_stack's size instead.
3724
3725 2017-08-03 Tom Tromey <tom@tromey.com>
3726
3727 * top.h (in_user_command): Remove.
3728 * top.c (in_user_command): Remove.
3729 * cli/cli-script.c (do_restore_user_call_depth)
3730 (execute_user_command): Update.
3731
3732 2017-08-03 Tom Tromey <tom@tromey.com>
3733
3734 * valops.c (search_struct_method): Use gdb::byte_vector.
3735 * valarith.c (value_concat): Use std::vector.
3736 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3737 (simple_search_memory): Likewise.
3738 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3739 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3740 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3741 * elfread.c (elf_rel_plt_read): Use std::string.
3742 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3743 * cli/cli-dump.c (restore_section_callback): Use
3744 gdb::byte_vector.
3745
3746 2017-08-03 Tom Tromey <tom@tromey.com>
3747
3748 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3749
3750 2017-08-03 Tom Tromey <tom@tromey.com>
3751
3752 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3753 (tui_register_format): Use scoped_restore.
3754
3755 2017-08-03 Tom Tromey <tom@tromey.com>
3756
3757 * reverse.c (exec_direction_default): Remove.
3758 (exec_reverse_once): Use scoped_restore.
3759 * remote.c (restore_remote_timeout): Remove.
3760 (remote_flash_erase, remote_flash_write, remote_flash_done)
3761 (readchar, remote_serial_write): Use scoped_restore.
3762 * cli/cli-script.c (struct source_cleanup_lines_args)
3763 (source_cleanup_lines): Remove.
3764 (script_from_file): Use scoped_restore.
3765 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3766 (source_command): Use scoped_restore.
3767
3768 2017-08-03 Tom Tromey <tom@tromey.com>
3769
3770 * utils.h (make_cleanup_free_so): Remove.
3771 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3772 * solist.h (struct so_deleter): New.
3773 (so_list_up): New typedef.
3774 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3775
3776 2017-08-03 Tom Tromey <tom@tromey.com>
3777
3778 * utils.h (make_cleanup_restore_current_language): Remove.
3779 * utils.c (do_restore_current_language)
3780 (make_cleanup_restore_current_language): Remove.
3781 * parse.c (parse_exp_in_context_1)
3782 (parse_expression_with_language): Use
3783 scoped_restore_current_language.
3784 * mi/mi-main.c (mi_cmd_execute): Use
3785 scoped_restore_current_language.
3786 * language.h (scoped_restore_current_language): New class.
3787
3788 2017-08-03 Tom Tromey <tom@tromey.com>
3789
3790 * compile/compile.c (cleanup_unlink_file): Remove.
3791 (compile_to_object): Use gdb::unlinker.
3792 (eval_compile_command): Likewise.
3793
3794 2017-08-03 Tom Tromey <tom@tromey.com>
3795
3796 * utils.h (make_cleanup_fclose): Remove.
3797 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3798
3799 2017-08-03 Tom Tromey <tom@tromey.com>
3800
3801 * top.c (open_terminal_stream): Return gdb_file_up.
3802 (new_ui_command): Update.
3803
3804 2017-08-03 Tom Tromey <tom@tromey.com>
3805
3806 * source.c (print_source_lines_base, forward_search_command)
3807 (reverse_search_command): Use gdb_file_up.
3808
3809 2017-08-03 Tom Tromey <tom@tromey.com>
3810
3811 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3812
3813 2017-08-03 Tom Tromey <tom@tromey.com>
3814
3815 * cli/cli-cmds.c (find_and_open_script): Change return type.
3816 Remove "streamp" and "full_path" parameters.
3817 (source_script_with_search): Update.
3818 * auto-load.c (source_script_file): Update.
3819 * cli/cli-cmds.h (find_and_open_script): Change type.
3820 (open_script): New struct.
3821
3822 2017-08-03 Tom Tromey <tom@tromey.com>
3823
3824 * xml-support.c (xml_fetch_content_from_file): Update.
3825 * ui-file.c (stdio_file::open): Update.
3826 * tracefile-tfile.c (tfile_start): Update.
3827 * remote.c (remote_file_put, remote_file_get): Update.
3828 * nat/linux-procfs.c (linux_proc_get_int)
3829 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3830 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3831 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3832 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3833 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3834 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3835 * linux-nat.c (linux_proc_pending_signals): Update.
3836 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3837 (file_closer): Remove.
3838 * compile/compile.c (compile_to_object): Update.
3839 * common/filestuff.h (struct gdb_file_deleter): New.
3840 (gdb_file_up): New typedef.
3841 (gdb_fopen_cloexec): Change return type.
3842 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3843 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3844 (dump_binary_file, restore_binary_file): Update.
3845 * auto-load.c (auto_load_objfile_script_1): Update.
3846
3847 2017-08-03 Tom Tromey <tom@tromey.com>
3848
3849 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3850 (info_static_tracepoint_markers_command): Likewise.
3851 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3852 * skip.c (skip_info): Use ui_out_emit_table.
3853 * progspace.c (print_program_space): Use ui_out_emit_table.
3854 * osdata.c (info_osdata): Use ui_out_emit_table.
3855 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3856 ui_out_emit_table.
3857 * linux-thread-db.c (info_auto_load_libthread_db): Use
3858 ui_out_emit_table.
3859 * inferior.c (print_inferior): Use ui_out_emit_table.
3860 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3861 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3862 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3863 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3864 * ui-out.h (class ui_out_emit_table): New.
3865
3866 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3867
3868 * mips-tdep.c (mips_fpu_type_str): New function.
3869 (mips_dump_tdep): Call it.
3870
3871 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3872
3873 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3874 `->mips_fpu_type'.
3875
3876 2017-07-31 Xavier Roirand <roirand@adacore.com>
3877
3878 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3879
3880 2017-07-27 Xavier Roirand <roirand@adacore.com>
3881
3882 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3883
3884 2017-07-26 Yao Qi <yao.qi@linaro.org>
3885
3886 * cli/cli-cmds.c (maintenancechecklist): New variable.
3887 * gdbcmd.h (maintenancechecklist): Declare it.
3888 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3889 Call i386_linux_read_description with different masks.
3890 * maint.c (maintenance_check_command): New function.
3891 (_initialize_maint_cmds): Call add_prefix_cmd.
3892 * target-descriptions.c (tdesc_reg): override operator != and ==.
3893 (tdesc_type): Likewise.
3894 (tdesc_feature): Likewise.
3895 (target_desc): Likewise.
3896 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3897 (maintenance_check_xml_descriptions): New function.
3898 (_initialize_target_descriptions) Add command "xml-descriptions".
3899 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3900
3901 2017-07-26 Yao Qi <yao.qi@linaro.org>
3902
3903 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3904 Include features/i386/32bit-*.c.
3905 (i386_linux_read_description): Generate target description if it
3906 doesn't exist.
3907 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3908 functions.
3909 * features/i386/32bit-linux.c: Re-generated.
3910 * features/i386/32bit-sse.c: Likewise.
3911 * target-descriptions.c (print_c_feature::visit): Print code to
3912 set register number if needed.
3913 (print_c_feature) <m_next_regnum>: New field.
3914
3915 2017-07-26 Yao Qi <yao.qi@linaro.org>
3916
3917 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3918 (FEATURE_XMLFILES): New.
3919 (FEATURE_CFILES): New.
3920 New rules.
3921 (clean-cfiles): Remove generated c files.
3922 * features/i386/32bit-avx.c: Generated.
3923 * features/i386/32bit-avx512.c: Generated.
3924 * features/i386/32bit-core.c: Generated.
3925 * features/i386/32bit-linux.c: Generated.
3926 * features/i386/32bit-mpx.c: Generated.
3927 * features/i386/32bit-pkeys.c: Generated.
3928 * features/i386/32bit-sse.c: Generated.
3929 * target-descriptions.c: Include algorithm.
3930 (tdesc_element_visitor): Add method visit_end.
3931 (print_c_tdesc): Implement visit_end.
3932 (print_c_tdesc:: m_filename_after_features): Move it to
3933 protected.
3934 (print_c_feature): New class.
3935 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3936 name starts with "i386/32bit-".
3937
3938 2017-07-26 Yao Qi <yao.qi@linaro.org>
3939
3940 * target-descriptions.c (tdesc_element_visitor): New class.
3941 (tdesc_element): New class.
3942 (tdesc_reg): Inherit from tdesc_element.
3943 (tdesc_reg::accept): New function.
3944 (tdesc_type): Inherit from tdesc_element.
3945 (tdesc_type::accept): New function.
3946 (tdesc_feature): Inherit from tdesc_element.
3947 (tdesc_feature::accept): New function.
3948 (target_desc): Inherit from tdesc_element.
3949 (target_desc::target_desc): New.
3950 (target_desc::~target_desc): New.
3951 (target_desc::accept): New.
3952 (allocate_target_description): Use new.
3953 (free_target_description): Use delete.
3954 (print_c_tdesc): New class.
3955 (maint_print_c_tdesc_cmd): Adjust.
3956
3957 * features/aarch64.c: Re-generated.
3958 * features/arc-arcompact.c: Re-generated.
3959 * features/arc-v2.c: Re-generated.
3960 * features/arm/arm-with-iwmmxt.c: Re-generated.
3961 * features/arm/arm-with-m.c: Re-generated.
3962 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3963 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3964 * features/arm/arm-with-neon.c: Re-generated.
3965 * features/arm/arm-with-vfpv2.c: Re-generated.
3966 * features/arm/arm-with-vfpv3.c: Re-generated.
3967 * features/i386/amd64-avx-avx512.c: Re-generated.
3968 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3969 * features/i386/amd64-avx.c: Re-generated.
3970 * features/i386/amd64-avx-linux.c: Re-generated.
3971 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3972 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3973 * features/i386/amd64-avx-mpx.c: Re-generated.
3974 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3975 * features/i386/amd64.c: Re-generated.
3976 * features/i386/amd64-linux.c: Re-generated.
3977 * features/i386/amd64-mpx.c: Re-generated.
3978 * features/i386/amd64-mpx-linux.c: Re-generated.
3979 * features/i386/i386-avx-avx512.c: Re-generated.
3980 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3981 * features/i386/i386-avx.c: Re-generated.
3982 * features/i386/i386-avx-linux.c: Re-generated.
3983 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3984 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3985 * features/i386/i386-avx-mpx.c: Re-generated.
3986 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3987 * features/i386/i386.c: Re-generated.
3988 * features/i386/i386-linux.c: Re-generated.
3989 * features/i386/i386-mmx.c: Re-generated.
3990 * features/i386/i386-mmx-linux.c: Re-generated.
3991 * features/i386/i386-mpx.c: Re-generated.
3992 * features/i386/i386-mpx-linux.c: Re-generated.
3993 * features/i386/x32-avx-avx512.c: Re-generated.
3994 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3995 * features/i386/x32-avx.c: Re-generated.
3996 * features/i386/x32-avx-linux.c: Re-generated.
3997 * features/i386/x32.c: Re-generated.
3998 * features/i386/x32-linux.c: Re-generated.
3999 * features/microblaze.c: Re-generated.
4000 * features/microblaze-with-stack-protect.c: Re-generated.
4001 * features/mips64-dsp-linux.c: Re-generated.
4002 * features/mips64-linux.c: Re-generated.
4003 * features/mips-dsp-linux.c: Re-generated.
4004 * features/mips-linux.c: Re-generated.
4005 * features/nds32.c: Re-generated.
4006 * features/nios2.c: Re-generated.
4007 * features/nios2-linux.c: Re-generated.
4008 * features/rs6000/powerpc-32.c: Re-generated.
4009 * features/rs6000/powerpc-32l.c: Re-generated.
4010 * features/rs6000/powerpc-403.c: Re-generated.
4011 * features/rs6000/powerpc-403gc.c : Re-generated.
4012 * features/rs6000/powerpc-405.c: Re-generated.
4013 * features/rs6000/powerpc-505.c: Re-generated.
4014 * features/rs6000/powerpc-601.c: Re-generated.
4015 * features/rs6000/powerpc-602.c: Re-generated.
4016 * features/rs6000/powerpc-603.c: Re-generated.
4017 * features/rs6000/powerpc-604.c: Re-generated.
4018 * features/rs6000/powerpc-64.c: Re-generated.
4019 * features/rs6000/powerpc-64l.c: Re-generated.
4020 * features/rs6000/powerpc-7400.c: Re-generated.
4021 * features/rs6000/powerpc-750.c: Re-generated.
4022 * features/rs6000/powerpc-860.c: Re-generated.
4023 * features/rs6000/powerpc-altivec32.c: Re-generated.
4024 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4025 * features/rs6000/powerpc-altivec64.c: Re-generated.
4026 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4027 * features/rs6000/powerpc-cell32l.c: Re-generated.
4028 * features/rs6000/powerpc-cell64l.c: Re-generated.
4029 * features/rs6000/powerpc-e500.c: Re-generated.
4030 * features/rs6000/powerpc-e500l.c: Re-generated.
4031 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4032 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4033 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4034 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4035 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4036 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4037 * features/rs6000/powerpc-vsx32.c: Re-generated.
4038 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4039 * features/rs6000/powerpc-vsx64.c: Re-generated.
4040 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4041 * features/rs6000/rs6000.c: Re-generated.
4042 * features/s390-linux32.c: Re-generated.
4043 * features/s390-linux32v1.c: Re-generated.
4044 * features/s390-linux32v2.c: Re-generated.
4045 * features/s390-linux64.c: Re-generated.
4046 * features/s390-linux64v1.c: Re-generated.
4047 * features/s390-linux64v2.c: Re-generated.
4048 * features/s390-te-linux64.c: Re-generated.
4049 * features/s390-tevx-linux64.c: Re-generated.
4050 * features/s390-vx-linux64.c: Re-generated.
4051 * features/s390x-linux64.c: Re-generated.
4052 * features/s390x-linux64v1.c: Re-generated.
4053 * features/s390x-linux64v2.c: Re-generated.
4054 * features/s390x-te-linux64.c: Re-generated.
4055 * features/s390x-tevx-linux64.c: Re-generated.
4056 * features/s390x-vx-linux64.c: Re-generated.
4057 * features/sparc/sparc32-solaris.c: Re-generated.
4058 * features/sparc/sparc64-solaris.c: Re-generated.
4059 * features/tic6x-c62x.c: Re-generated.
4060 * features/tic6x-c62x-linux.c: Re-generated.
4061 * features/tic6x-c64x.c: Re-generated.
4062 * features/tic6x-c64x-linux.c: Re-generated.
4063 * features/tic6x-c64xp.c: Re-generated.
4064 * features/tic6x-c64xp-linux.c: Re-generated.
4065
4066 2017-07-26 Yao Qi <yao.qi@linaro.org>
4067
4068 * i386-linux-tdep.c (i386_linux_read_description): New function.
4069 (i386_linux_core_read_description): Call
4070 i386_linux_read_description.
4071 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4072 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4073 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4074 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4075 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4076 * x86-linux-nat.c (x86_linux_read_description): Call
4077 i386_linux_read_description.
4078
4079 2017-07-26 Yao Qi <yao.qi@linaro.org>
4080
4081 * NEWS: Mention it.
4082 * features/Makefile (%.c: %.xml): Pass the xml file name to
4083 command "maint print c-tdesc".
4084 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4085 name from 'arg'.
4086
4087 2017-07-26 Yao Qi <yao.qi@linaro.org>
4088
4089 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4090 in-class initialization.
4091 (tdesc_create_feature): Call new instead of XCNEW.
4092 (free_target_description): Ue delete.
4093
4094 2017-07-25 John Baldwin <jhb@FreeBSD.org>
4095
4096 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4097
4098 2017-07-25 Yao Qi <yao.qi@linaro.org>
4099
4100 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4101 constant.
4102 (amd64_x32_init_abi): Likewise.
4103 * amd64-tdep.h (amd64_init_abi): Update declaration.
4104 (amd64_x32_init_abi): Likewise.
4105
4106 2017-07-25 Yao Qi <yao.qi@linaro.org>
4107
4108 PR tdep/21717
4109 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4110 condition for FPSCR.
4111 (arm_linux_store_inferior_registers): Likewise.
4112
4113 2017-07-22 Tom Tromey <tom@tromey.com>
4114
4115 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4116 <syscalls_counts>: Now a std::vector.
4117 (get_catch_syscall_inferior_data): Use "new".
4118 (catch_syscall_inferior_data_cleanup): Use "delete".
4119 (insert_catch_syscall, remove_catch_syscall)
4120 (clear_syscall_counts): Update.
4121
4122 2017-07-22 Tom Tromey <tom@tromey.com>
4123
4124 * break-catch-syscall.c (syscall_catchpoint)
4125 <syscalls_to_be_caught>: Now a std::vector<int>
4126 (~syscall_catchpoint): Remove.
4127 (insert_catch_syscall, remove_catch_syscall)
4128 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4129 (print_mention_catch_syscall, print_recreate_catch_syscall):
4130 Update.
4131 (create_syscall_event_catchpoint): Change type of "filter"
4132 parameter.
4133 (catch_syscall_split_args): Return a std::vector.
4134 (catch_syscall_command_1, catching_syscall_number_1): Update.
4135
4136 2017-07-22 Tom Tromey <tom@tromey.com>
4137
4138 * break-catch-throw.c (struct exception_catchpoint)
4139 <exception_rx>: Now a std::string.
4140 (~exception_catchpoint): Remove.
4141 (print_one_detail_exception_catchpoint): Update.
4142 (handle_gnu_v3_exceptions): Change type of except_rx.
4143 (extract_exception_regexp): Return a std::string.
4144 (catch_exception_command_1): Update.
4145
4146 2017-07-22 Tom Tromey <tom@tromey.com>
4147
4148 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4149 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4150 std::vector.
4151 <catch_all>: Now a bool.
4152 (~signal_catchpoint): Remove.
4153 (signal_catchpoint_insert_location)
4154 (signal_catchpoint_remove_location)
4155 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4156 (signal_catchpoint_print_mention)
4157 (signal_catchpoint_print_recreate)
4158 (signal_catchpoint_explains_signal): Update.
4159 (create_signal_catchpoint): Change type of "filter" and
4160 "catch_all".
4161 (catch_signal_split_args): Return a std::vector. Change type of
4162 "catch_all".
4163 (catch_signal_command): Update.
4164
4165 2017-07-20 Pedro Alves <palves@redhat.com>
4166
4167 * ada-lang.c (ada_language_defn): Make extern.
4168 (_initialize_ada_language): Remove add_language call.
4169 * c-lang.c (c_language_defn, cplus_language_defn)
4170 (asm_language_defn, minimal_language_defn): Make extern.
4171 (_initialize_c_language): Delete.
4172 * completer.c (compare_cstrings): Delete, moved to utils.h.
4173 * d-lang.c (d_language_defn): Make extern.
4174 (_initialize_d_language): Remove add_language calls.
4175 * defs.h (enum language): Add comment.
4176 * f-lang.c (f_language_defn): Make extern.
4177 (_initialize_f_language): Remove add_language call.
4178 * go-lang.c (go_language_defn): Make extern.
4179 (_initialize_go_language): Remove add_language call.
4180 * language.c: Include <algorithm>.
4181 (languages): Redefine as const array.
4182 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4183 (set_language_command): Handle "local". Use for-range loop.
4184 (set_language): Remove loop.
4185 (language_enum): Rewrite.
4186 (language_def, language_str): Remove loops.
4187 (add_language): Delete.
4188 (add_set_language_command): New, based on add_languages.
4189 (skip_language_trampoline): Adjust.
4190 (local_language_defn): Delete.
4191 (language_gdbarch_post_init): Adjust.
4192 (_initialize_language): Remove add_language calls. Call
4193 add_set_language_command.
4194 * language.h (add_language): Delete.
4195 (auto_language_defn)
4196 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4197 (asm_language_defn, c_language_defn, cplus_language_defn)
4198 (d_language_defn, f_language_defn, go_language_defn)
4199 (m2_language_defn, objc_language_defn, opencl_language_defn)
4200 (pascal_language_defn, rust_language_defn): Declare.
4201 * m2-lang.c (m2_language_defn): Make extern.
4202 (_initialize_m2_language): Remove add_language call.
4203 * objc-lang.c (objc_language_defn): Make extern.
4204 (_initialize_objc_language): Remove add_language call.
4205 * opencl-lang.c (opencl_language_defn): Make extern.
4206 (_initialize_opencl_language): Remove add_language call.
4207 * p-lang.c (pascal_language_defn): Make extern.
4208 (_initialize_pascal_language): Delete.
4209 * rust-lang.c (rust_language_defn): Make extern.
4210 (_initialize_rust_language): Delete.
4211 * utils.h (compare_cstrings): New static inline function.
4212
4213 2017-07-20 Pedro Alves <palves@redhat.com>
4214
4215 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4216 (get_var_value): Constify parameters.
4217 (get_int_var_value): Change prototype.
4218 (to_fixed_range_type): Adjust.
4219 * ada-lang.h (get_int_var_value): Change prototype.
4220
4221 2017-07-20 Pedro Alves <palves@redhat.com>
4222
4223 * dwarf2read.c (dw2_lookup_symbol): Use
4224 SYMBOL_MATCHES_SEARCH_NAME.
4225 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4226
4227 2017-07-20 Pedro Alves <palves@redhat.com>
4228
4229 * block.c (block_iter_name_step, block_iter_name_first)
4230 (block_iter_name_next): Delete.
4231 (block_lookup_symbol_primary): Adjust to use
4232 dict_iter_match_first/dict_iter_match_next.
4233 * block.h (block_iter_name_first, block_iter_name_next): Delete
4234 declarations.
4235 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4236 dict_iter_match_first/dict_iter_match_next.
4237
4238 2017-07-20 Pedro Alves <palves@redhat.com>
4239
4240 * cp-support.c (cp_find_first_component_aux): Add missing case for
4241 end of string.
4242
4243 2017-07-18 David Blaikie <dblaikie@gmail.com>
4244
4245 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4246 of dwo_cu's dwo_file.
4247
4248 2017-07-18 Yao Qi <yao.qi@linaro.org>
4249
4250 * remote.c (store_registers_using_G): Remove one line comment.
4251
4252 2017-07-18 Yao Qi <yao.qi@linaro.org>
4253
4254 * regcache.c (regcache_cpy): Simplify it.
4255 (regcache::cpy_no_passthrough): Remove it.
4256 * regcache.h (cpy_no_passthrough): Remove it.
4257 (regcache_dup, regcache_cpy): Update comments.
4258
4259 2017-07-18 Pedro Alves <palves@redhat.com>
4260
4261 * remote-sim.c (sim_command_completer): Adjust to work with a
4262 completion_tracker instead of a VEC.
4263
4264 2017-07-17 Pedro Alves <palves@redhat.com>
4265
4266 * completer.c (complete_source_filenames): New function.
4267 (complete_address_and_linespec_locations): New function.
4268 (location_completer): Use complete_address_and_linespec_locations.
4269 (completion_tracker::build_completion_result): Honor the tracker's
4270 request to suppress append.
4271 * completer.h (completion_tracker::suppress_append_ws)
4272 (completion_tracker::set_suppress_append_ws): New methods.
4273 (completion_tracker::m_suppress_append_ws): New field.
4274 (complete_source_filenames): New declaration.
4275 * linespec.c (linespec_complete_what): New.
4276 (struct ls_parser) <complete_what, completion_word,
4277 completion_quote_char, completion_quote_end, completion_tracker>:
4278 New fields.
4279 (string_find_incomplete_keyword_at_end): New.
4280 (linespec_lexer_lex_string): Record quote char. If in completion
4281 mode, don't throw.
4282 (linespec_lexer_consume_token): Advance the completion word point.
4283 (linespec_lexer_peek_token): Save/restore completion info.
4284 (save_stream_and_consume_token): New.
4285 (set_completion_after_number): New.
4286 (linespec_parse_basic): Set what to complete next depending on
4287 token. Handle function and label completions specially.
4288 (parse_linespec): Disable objc shortcut in completion mode. Set
4289 what to complete next depending on token type. Skip keyword if in
4290 completion mode.
4291 (complete_linespec_component, linespec_complete): New.
4292 * linespec.h (linespec_complete): Declare.
4293
4294 2017-07-17 Pedro Alves <palves@redhat.com>
4295
4296 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4297 Handle 'operator<' / 'operator<<'.
4298
4299 2017-07-17 Pedro Alves <palves@redhat.com>
4300
4301 * completer.c (collect_explicit_location_matches): Handle
4302 MATCH_LABEL.
4303 (convert_explicit_location_to_linespec): New, factored out from
4304 ...
4305 (convert_explicit_location_to_sals): ... this.
4306 (complete_label): New.
4307 (linespec_complete_label, find_label_symbols_in_block): New.
4308 (find_label_symbols): Add completion_mode parameter and adjust to
4309 call find_label_symbols_in_block.
4310 * linespec.h (linespec_complete_label): Declare.
4311
4312 2017-07-17 Pedro Alves <palves@redhat.com>
4313
4314 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4315 complete_symbol_mode parameter.
4316 * cli/cli-cmds.c (complete_command): Get the completion result out
4317 of the handle_brkchars tracker if used a custom word point.
4318 * completer.c: Include "linespec.h".
4319 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4320 (advance_to_expression_complete_word_point): New.
4321 (completion_tracker::completes_to_completion_word): New.
4322 (complete_files_symbols): Pass down
4323 complete_symbol_mode::EXPRESSION.
4324 (explicit_options, probe_options): New.
4325 (collect_explicit_location_matches): Complete on the
4326 explictit_loc->foo instead of word. Use
4327 linespec_complete_function. Handle MATCH_LINE. Handle offering
4328 keyword and options completions.
4329 (backup_text_ptr): Delete.
4330 (skip_keyword): New.
4331 (complete_explicit_location): Remove 'word' parameter. Add
4332 language, quoted_arg_start and quoted_arg_end parameters.
4333 Rewrite, parsing left to right.
4334 (location_completer): Rewrite.
4335 (location_completer_handle_brkchars): New function.
4336 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4337 (enum complete_line_internal_reason): Adjust comments.
4338 (completion_tracker::discard_completions): New.
4339 (completer_handle_brkchars_func_for_completer): Handle
4340 location_completer.
4341 (gdb_custom_word_point_brkchars)
4342 (gdb_org_rl_basic_quote_characters): New.
4343 (gdb_completion_word_break_characters_throw)
4344 (completion_find_completion_word): Handle trackers that use a
4345 custom word point.
4346 (completion_tracker::advance_custom_word_point_by): New.
4347 (completion_tracker::build_completion_result): Don't rely on
4348 readline appending the quote char.
4349 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4350 use a custom word point.
4351 (gdb_rl_attempted_completion_function): Restore
4352 rl_basic_quote_characters.
4353 * completer.h (class completion_tracker): Extend intro comment.
4354 (completion_tracker::set_quote_char)
4355 (completion_tracker::quote_char)
4356 (completion_tracker::set_use_custom_word_point)
4357 (completion_tracker::use_custom_word_point)
4358 (completion_tracker::custom_word_point)
4359 (completion_tracker::set_custom_word_point)
4360 (completion_tracker::advance_custom_word_point_by)
4361 (completion_tracker::completes_to_completion_word)
4362 (completion_tracker::discard_completions): New methods.
4363 (completion_tracker::m_quote_char)
4364 (completion_tracker::m_use_custom_word_point)
4365 (completion_tracker::m_custom_word_point): New fields.
4366 (advance_to_expression_complete_word_point): Declare.
4367 * f-lang.c (f_collect_symbol_completion_matches): Add
4368 complete_symbol_mode parameter.
4369 * language.h (struct language_defn)
4370 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4371 parameter.
4372 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4373 (linespec_complete_function): New function.
4374 (linespec_lexer_lex_keyword): Adjust.
4375 * linespec.h (linespec_keywords, linespec_complete_function): New
4376 declarations.
4377 * location.c (find_end_quote): New function.
4378 (explicit_location_lex_one): Add explicit_completion_info
4379 parameter. Save quoting info. Don't throw if being called for
4380 completion. Don't handle Ada operators here.
4381 (is_cp_operator, skip_op_false_positives, first_of)
4382 (explicit_location_lex_one_function): New function.
4383 (string_to_explicit_location): Replace 'dont_throw' parameter with
4384 an explicit_completion_info pointer parameter. Handle it. Don't
4385 use explicit_location_lex_one to lex function names. Use
4386 explicit_location_lex_one_function instead.
4387 * location.h (struct explicit_completion_info): New.
4388 (string_to_explicit_location): Replace 'dont_throw' parameter with
4389 an explicit_completion_info pointer parameter.
4390 * symtab.c (default_collect_symbol_completion_matches_break_on):
4391 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4392 (default_collect_symbol_completion_matches)
4393 (collect_symbol_completion_matches): Add complete_symbol_mode
4394 parameter.
4395 (collect_symbol_completion_matches_type): Pass down
4396 complete_symbol_mode::EXPRESSION.
4397 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4398 parameter. Handle LINESPEC mode.
4399 * symtab.h (complete_symbol_mode): New.
4400 (default_collect_symbol_completion_matches_break_on)
4401 (default_collect_symbol_completion_matches)
4402 (collect_symbol_completion_matches)
4403 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4404 parameter.
4405
4406 2017-07-17 Pedro Alves <palves@redhat.com>
4407
4408 * utils.c (enum class strncmp_iw_mode): New.
4409 (strcmp_iw): Rename to ...
4410 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4411 parameters. Handle them.
4412 (strncmp_iw): New.
4413 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4414 * utils.h (strncmp_iw): Declare.
4415 (strcmp_iw): Move describing comments here.
4416
4417 2017-07-17 Pedro Alves <palves@redhat.com>
4418
4419 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4420 CP_OPERATOR_STR.
4421 * c-typeprint.c (is_type_conversion_operator): Use
4422 CP_OPERATOR_STR.
4423 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4424 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4425 CP_OPERATOR_LEN.
4426 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4427 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4428 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4429 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4430 CP_OPERATOR_STR.
4431 * location.c: Include "cp-support.h".
4432 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4433 CP_OPERATOR_STR.
4434 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4435 CP_OPERATOR_LEN.
4436
4437 2017-07-17 Pedro Alves <palves@redhat.com>
4438
4439 * cli/cli-cmds.c (complete_command): Use a completion tracker
4440 along with completion_find_completion_word for handle_brkchars
4441 phase.
4442 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4443 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4444 (struct gdb_rl_completion_word_info): New.
4445 (gdb_rl_find_completion_word): New.
4446 (completion_find_completion_word): New.
4447 * completer.h (completion_find_completion_word): Declare.
4448
4449 2017-07-17 Pedro Alves <palves@redhat.com>
4450
4451 * ada-lang.c (symbol_completion_match): Adjust comments.
4452 (symbol_completion_add): Replace vector parameter with
4453 completion_tracker parameter. Use it.
4454 (ada_make_symbol_completion_list): Rename to...
4455 (ada_collect_symbol_completion_matches): ... this. Add
4456 completion_tracker parameter and use it.
4457 (ada_language_defn): Adjust.
4458 * break-catch-syscall.c (catch_syscall_completer): Adjust
4459 prototype and work with completion_tracker instead of VEC.
4460 * breakpoint.c (condition_completer): Adjust prototype and work
4461 with completion_tracker instead of VEC.
4462 * c-lang.c (c_language_defn, cplus_language_defn)
4463 (asm_language_defn, minimal_language_defn): Adjust to renames.
4464 * cli/cli-cmds.c (complete_command): Rework using
4465 completion_tracker. Catch exceptions when completing.
4466 * cli/cli-decode.c (integer_unlimited_completer)
4467 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4468 with completion_tracker instead of VEC.
4469 * command.h (struct completion_tracker): Forward declare.
4470 (completer_ftype, completer_handle_brkchars_ftype): Change
4471 types.
4472 (complete_on_cmdlist, complete_on_enum): Adjust.
4473 * completer.c: Include <algorithm>.
4474 (struct gdb_completer_state): New.
4475 (current_completion): New global.
4476 (readline_line_completion_function): Delete.
4477 (noop_completer, filename_completer)
4478 (filename_completer_handle_brkchars, complete_files_symbols)
4479 (linespec_location_completer): Adjust to work with a
4480 completion_tracker instead of a VEC.
4481 (string_or_empty): New.
4482 (collect_explicit_location_matches): Adjust to work with a
4483 completion_tracker instead of a VEC.
4484 (explicit_location_completer): Rename to ...
4485 (complete_explicit_location): ... this and adjust to work with a
4486 completion_tracker instead of a VEC.
4487 (location_completer): Adjust to work with a completion_tracker
4488 instead of a VEC.
4489 (add_struct_fields): Adjust to work with a completion_list instead
4490 of VEC.
4491 (expression_completer): Rename to ...
4492 (complete_expression): ... this and adjust to work with a
4493 completion_tracker instead of a VEC. Use complete_files_symbols.
4494 (expression_completer): Reimplement on top of complete_expression.
4495 (symbol_completer): Adjust to work with a completion_tracker
4496 instead of a VEC.
4497 (enum complete_line_internal_reason): Add describing comments.
4498 (complete_line_internal_normal_command): Adjust to work with a
4499 completion_tracker instead of a VEC.
4500 (complete_line_internal): Rename to ...
4501 (complete_line_internal_1): ... this and adjust to work with a
4502 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4503 handle_brkchars phase.
4504 (new_completion_tracker): Delete.
4505 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4506 complete_line_internal_1.
4507 (free_completion_tracker): Delete.
4508 (INITIAL_COMPLETION_HTAB_SIZE): New.
4509 (completion_tracker::completion_tracker)
4510 (completion_tracker::~completion_tracker): New.
4511 (maybe_add_completion): Delete.
4512 (completion_tracker::maybe_add_completion)
4513 (completion_tracker::add_completion)
4514 (completion_tracker::add_completions): New.
4515 (throw_max_completions_reached_error): Delete.
4516 (complete_line): Adjust to work with a completion_tracker instead
4517 of a VEC. Don't create a completion_tracker_t or check for max
4518 completions here.
4519 (command_completer, command_completer_handle_brkchars)
4520 (signal_completer, reg_or_group_completer_1)
4521 (reg_or_group_completer, default_completer_handle_brkchars):
4522 Adjust to work with a completion_tracker.
4523 (gdb_completion_word_break_characters_throw): New.
4524 (gdb_completion_word_break_characters): Reimplement.
4525 (line_completion_function): Delete.
4526 (completion_tracker::recompute_lowest_common_denominator)
4527 (expand_preserving_ws)
4528 (completion_tracker::build_completion_result)
4529 (completion_result::completion_result)
4530 (completion_result::completion_result)
4531 (completion_result::~completion_result)
4532 (completion_result::completion_result)
4533 (completion_result::release_match_list, compare_cstrings)
4534 (completion_result::sort_match_list)
4535 (completion_result::reset_match_list)
4536 (gdb_rl_attempted_completion_function_throw)
4537 (gdb_rl_attempted_completion_function): New.
4538 * completer.h (completion_list, struct completion_result)
4539 (class completion_tracker): New.
4540 (complete_line): Add completion_tracker parameter.
4541 (readline_line_completion_function): Delete.
4542 (gdb_rl_attempted_completion_function): New.
4543 (noop_completer, filename_completer, expression_completer)
4544 (location_completer, symbol_completer, command_completer)
4545 (signal_completer, reg_or_group_completer): Update prototypes.
4546 (completion_tracker_t, new_completion_tracker)
4547 (make_cleanup_free_completion_tracker): Delete.
4548 (enum maybe_add_completion_enum): Delete.
4549 (maybe_add_completion): Delete.
4550 (throw_max_completions_reached_error): Delete.
4551 * corefile.c (complete_set_gnutarget): Adjust to work with a
4552 completion_tracker instead of a VEC.
4553 * cp-abi.c (cp_abi_completer): Adjust to work with a
4554 completion_tracker instead of a VEC.
4555 * d-lang.c (d_language_defn): Adjust.
4556 * disasm.c (disassembler_options_completer): Adjust to work with a
4557 completion_tracker instead of a VEC.
4558 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4559 (f_collect_symbol_completion_matches): ... this. Adjust to work
4560 with a completion_tracker instead of a VEC.
4561 (f_language_defn): Adjust.
4562 * go-lang.c (go_language_defn): Adjust.
4563 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4564 Adjust to work with a completion_tracker instead of a VEC.
4565 * infrun.c (handle_completer): Likewise.
4566 * interps.c (interpreter_completer): Likewise.
4567 * interps.h (interpreter_completer): Likewise.
4568 * language.c (unknown_language_defn, auto_language_defn)
4569 (local_language_defn): Adjust.
4570 * language.h (language_defn::la_make_symbol_completion_list):
4571 Rename to ...
4572 (language_defn::la_collect_symbol_completion_matches): ... this
4573 and adjust to work with a completion_tracker instead of a VEC.
4574 * m2-lang.c (m2_language_defn): Adjust.
4575 * objc-lang.c (objc_language_defn): Adjust.
4576 * opencl-lang.c (opencl_language_defn): Adjust.
4577 * p-lang.c (pascal_language_defn): Adjust.
4578 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4579 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4580 with a completion_tracker.
4581 * rust-lang.c (rust_language_defn): Adjust.
4582 * symtab.c (free_completion_list, do_free_completion_list)
4583 (return_val, completion_tracker): Delete.
4584 (completion_list_add_name, completion_list_add_symbol)
4585 (completion_list_add_msymbol, completion_list_objc_symbol)
4586 (completion_list_add_fields, add_symtab_completions): Add
4587 completion_tracker parameter and use it.
4588 (default_make_symbol_completion_list_break_on_1): Rename to...
4589 (default_collect_symbol_completion_matches_break_on): ... this.
4590 Add completion_tracker parameter and use it instead of allocating
4591 a completion tracker here.
4592 (default_make_symbol_completion_list_break_on): Delete old
4593 implementation.
4594 (default_make_symbol_completion_list): Delete.
4595 (default_collect_symbol_completion_matches): New.
4596 (make_symbol_completion_list): Delete.
4597 (collect_symbol_completion_matches): New.
4598 (make_symbol_completion_type): Rename to ...
4599 (collect_symbol_completion_matches_type): ... this. Add
4600 completion_tracker parameter and use it instead of VEC.
4601 (make_file_symbol_completion_list_1): Rename to...
4602 (collect_file_symbol_completion_matches): ... this. Add
4603 completion_tracker parameter and use it instead of VEC.
4604 (make_file_symbol_completion_list): Delete.
4605 (add_filename_to_list): Use completion_list instead of a VEC.
4606 (add_partial_filename_data::list): Now a completion_list.
4607 (make_source_files_completion_list): Work with a completion_list
4608 instead of a VEC.
4609 * symtab.h: Include "completer.h".
4610 (default_make_symbol_completion_list_break_on)
4611 (default_make_symbol_completion_list, make_symbol_completion_list)
4612 (make_symbol_completion_type, make_file_symbol_completion_list)
4613 (make_source_files_completion_list): Delete.
4614 (default_collect_symbol_completion_matches_break_on)
4615 (default_collect_symbol_completion_matches)
4616 (collect_symbol_completion_matches)
4617 (collect_symbol_completion_matches_type)
4618 (collect_file_symbol_completion_matches)
4619 (make_source_files_completion_list): New.
4620 * top.c (init_main): Don't install a rl_completion_entry_function
4621 hook. Install a rl_attempted_completion_function hook instead.
4622 * tui/tui-layout.c (layout_completer): Adjust to work with a
4623 completion_tracker.
4624 * tui/tui-regs.c (tui_reggroup_completer):
4625 * tui/tui-win.c (window_name_completer, focus_completer)
4626 (winheight_completer): Adjust to work with a completion_tracker.
4627 * value.c: Include "completer.h".
4628 (complete_internalvar): Adjust to work with a completion_tracker.
4629 * value.h (complete_internalvar): Likewise.
4630
4631 2017-07-17 Pedro Alves <palves@redhat.com>
4632
4633 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4634 renames.
4635 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4636 comments to completer_ftype's declaration.
4637 <completer_handle_brkchars>: Change type to
4638 completer_handle_brkchars_ftype.
4639 * command.h (completer_ftype): Add describing comment and give
4640 names to parameters.
4641 (completer_ftype_void): Rename to ...
4642 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4643 (set_cmd_completer_handle_brkchars): Adjust.
4644 * completer.c (filename_completer_handle_brkchars): New function.
4645 (complete_line_internal_normal_command): New function, factored
4646 out from ...
4647 (complete_line_internal): ... here.
4648 (command_completer_handle_brkchars)
4649 (default_completer_handle_brkchars)
4650 (completer_handle_brkchars_func_for_completer): New functions.
4651 * completer.h (set_gdb_completion_word_break_characters): Delete
4652 declaration.
4653 (completer_handle_brkchars_func_for_completer): New declaration.
4654 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4655 completer_handle_brkchars_func_for_completer.
4656
4657 2017-07-17 Pedro Alves <palves@redhat.com>
4658
4659 * completer.c (symbol_completer): New function, based on
4660 make_symbol_completion_list_fn.
4661 * completer.h (symbol_completer): New declaration.
4662 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4663 * python/py-cmd.c (completers): Adjust.
4664 * symtab.c (make_symbol_completion_list_fn): Delete.
4665 * symtab.h (make_symbol_completion_list_fn): Delete.
4666 * cli/cli-decode.c (add_cmd): Adjust.
4667
4668 2017-07-17 Pedro Alves <palves@redhat.com>
4669
4670 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4671 * dwarf2read.c: Include "filename-seen-cache.h".
4672 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4673 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4674 * filename-seen-cache.c: New file.
4675 * filename-seen-cache.h: New file.
4676 * symtab.c: Include "filename-seen-cache.h".
4677 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4678 (create_filename_seen_cache, clear_filename_seen_cache)
4679 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4680 to filename-seen-cache.h/filename-seen-cache.c.
4681 (output_source_filename, sources_info)
4682 (maybe_add_partial_symtab_filename)
4683 (make_source_files_completion_list): Adjust to use
4684 filename_seen_cache.
4685
4686 2017-07-17 Pedro Alves <palves@redhat.com>
4687
4688 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4689 fields.
4690 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4691 dwarf2_debug_sections*)): New.
4692 (dwarf2_per_objfile::dwarf2_per_objfile(const
4693 dwarf2_per_objfile&)): Declare as deleted.
4694 (dwarf2_per_objfile::operator=): Declare as deleted.
4695 (dwarf2_per_objfile::dwarf2_per_objfile)
4696 (dwarf2_per_objfile::~dwarf2_per_objfile)
4697 (dwarf2_per_objfile::free_cached_comp_units): New.
4698 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4699 ctor. Call dwarf2_per_objfile's ctor manually.
4700 (dwarf2_locate_sections): Deleted/refactored as ...
4701 (dwarf2_per_objfile::locate_sections): ... this new method.
4702 (free_cached_comp_units): Defer to
4703 dwarf2_per_objfile::free_cached_comp_units.
4704 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4705
4706 2017-07-14 Tom Tromey <tom@tromey.com>
4707
4708 PR rust/21764:
4709 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4710 parameter.
4711 <UNOP_SIZEOF>: Split into separate case.
4712 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4713
4714 2017-07-14 Tom Tromey <tom@tromey.com>
4715
4716 PR rust/21763:
4717 * symtab.c (symbol_matches_domain): Add language_rust to special
4718 case.
4719 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4720 treat LOC_TYPEDEF symbols as variables.
4721
4722 2017-07-14 Pedro Alves <palves@redhat.com>
4723
4724 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4725 symtabs matching all symtabs with SRCFILE as file name instead of
4726 only considering the first hit, with lookup_symtab.
4727
4728 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4729
4730 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4731 operator_name parameters.
4732 (gen_expr): Update function call.
4733
4734 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4735
4736 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4737 parameter.
4738 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4739 Likewise.
4740 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4741 parameter, use agent_expr::gdbarch instead, update function
4742 calls.
4743 (locexpr_tracepoint_var_ref): Likewise.
4744 (loclist_tracepoint_var_ref): Likewise.
4745 * ax-gdb.c (gen_trace_static_fields): Likewise.
4746 (gen_traced_pop): Likewise.
4747 (gen_frame_args_address): Likewise.
4748 (gen_frame_locals_address): Likewise.
4749 (gen_var_ref): Likewise.
4750 (gen_struct_ref_recursive): Likewise.
4751 (gen_static_field): Likewise.
4752 (gen_maybe_namespace_elt): Likewise.
4753 (gen_expr): Likewise.
4754 (gen_trace_for_var): Likewise.
4755 (gen_trace_for_expr): Likewise.
4756 (gen_trace_for_return_address): Likewise.
4757
4758 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4759
4760 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4761 parameter.
4762 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4763
4764 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4765
4766 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4767 from ax, update calls.
4768 (gen_usual_arithmetic): Likewise.
4769 (gen_integral_promotions): Likewise.
4770 (gen_bitfield_ref): Likewise.
4771 (gen_primitive_field): Likewise.
4772 (gen_struct_ref_recursive): Likewise.
4773 (gen_struct_ref): Likewise.
4774 (gen_maybe_namespace_elt): Likewise.
4775 (gen_struct_elt_for_reference): Likewise.
4776 (gen_namespace_elt): Likewise.
4777 (gen_aggregate_elt_ref): Likewise.
4778 (gen_expr): Get gdbarch from ax, update calls.
4779 (gen_expr_binop_rest): Likewise.
4780
4781 2017-07-13 Pedro Alves <palves@redhat.com>
4782
4783 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4784 as default tdesc.
4785 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4786 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4787 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4788 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4789 tdep.
4790 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4791 Get final tdesc from the tdep.
4792 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4793 default tdesc.
4794 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4795 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4796 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4797 Use it as default tdesc.
4798 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4799 down to amd_init_abi. No longer handle fallback tdesc here.
4800 * amd64-tdep.h (tdesc_x32): Declare.
4801 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4802 parameter.
4803 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4804 as default tdesc.
4805
4806 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4807
4808 * s390-linux-tdep.c (s390_process_record): Add support for
4809 instructions new in arch12.
4810
4811 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4812
4813 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4814 PT_GETFSBASE and PT_GETGSBASE.
4815 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4816 PT_SETGSBASE.
4817
4818 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4819
4820 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4821 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4822 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4823 those rules.
4824 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4825 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4826 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4827 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4828 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4829 * features/i386/amd64.xml: Add 64bit-segments.xml.
4830 * features/i386/amd64-avx-avx512.c: Regenerated.
4831 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4832 * features/i386/amd64-avx-mpx.c: Regenerated.
4833 * features/i386/amd64-avx.c: Regenerated.
4834 * features/i386/amd64-mpx.c: Regenerated.
4835 * features/i386/amd64.c: Regenerated.
4836 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4837 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4838 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4839 * regformats/i386/amd64-avx.dat: Regenerated.
4840 * regformats/i386/amd64-mpx.dat: Regenerated.
4841 * regformats/i386/amd64.dat: Regenerated.
4842
4843 2017-07-10 Yao Qi <yao.qi@linaro.org>
4844
4845 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4846 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4847
4848 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4849
4850 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4851 unsetenv.
4852 * gnulib/aclocal.m4: Regenerate.
4853 * gnulib/config.in: Regenerate.
4854 * gnulib/configure: Regenerate.
4855 * gnulib/import/Makefile.am: Regenerate.
4856 * gnulib/import/Makefile.in: Regenerate.
4857 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4858 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4859 * gnulib/import/m4/environ.m4: New file.
4860 * gnulib/import/m4/setenv.m4: New file.
4861 * gnulib/import/setenv.c: New file.
4862 * gnulib/import/unsetenv.c: New file.
4863
4864 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4865
4866 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4867 address when op is DW_OP_addr.
4868
4869 2017-07-09 Tom Tromey <tom@tromey.com>
4870
4871 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4872 check and apply to outer type.
4873
4874 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4875
4876 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4877 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4878 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4879 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4880
4881 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4882
4883 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4884
4885 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4886
4887 * corelow.c (get_core_siginfo): Remove.
4888 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4889 instead of get_core_siginfo.
4890 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4891 * gdbarch.h: Re-generate.
4892 * gdbarch.c: Re-generate.
4893 * linux-tdep.c (linux_core_xfer_siginfo): New.
4894 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4895
4896 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4897
4898 * corelow.c (thread_section_name): Move to ...
4899 * gdbcore.h (thread_section_name): ... here.
4900
4901 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4902
4903 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4904 (struct siginfo32): New.
4905 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4906 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4907 via ptrace(PT_LWPINFO).
4908
4909 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4910
4911 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4912 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4913 (fbsd_get_siginfo_type): New.
4914 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4915 (_initialize_fbsd_tdep): New.
4916
4917 2017-07-06 David Blaikie <dblaikie@gmail.com>
4918
4919 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4920 a singular dwo_unit*) to support multiple CUs in the same way that
4921 multiple TUs are supported.
4922 (create_cus_hash_table): Replace create_dwo_cu with a function for
4923 parsing multiple CUs from a DWO file.
4924 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4925 create_dwo_cu.
4926 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4927 htab_find, rather than comparing the signature to a singleton CU in
4928 the dwo_file.
4929
4930 2017-07-06 Pedro Alves <palves@redhat.com>
4931
4932 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4933
4934 2017-07-04 Pedro Alves <palves@redhat.com>
4935
4936 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4937 * gdbtypes.h (TYPE_STATIC): Delete.
4938 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4939 is_synchronized, is_native>: Delete.
4940 <dummy>: Bump.
4941 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4942 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4943 (TYPE_FN_FIELD_ABSTRACT): Delete.
4944
4945 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4946
4947 * buffer.h (buffer_finish): Fix spelling mistakes.
4948
4949 2017-07-01 Eli Zaretskii <eliz@gnu.org>
4950
4951 * .dir-locals.el: Automatically switch to C-style comments in
4952 versions of Emacs that support the feature.
4953
4954 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4955 Pedro Alves <palves@redhat.com>
4956
4957 PR cli/21688
4958 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4959 (process_next_line): New variable 'inline_cmd'.
4960 Adjust 'if' clauses for "python", "compile" and "guile" to use
4961 'command_name_equals' and check for '!inline_cmd'.
4962
4963 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4964
4965 PR cli/21688
4966 * cli/cli-script.c (command_name_equals_not_inline): New function.
4967 (process_next_line): Adjust 'if' clauses for "python", "compile"
4968 and "guile" to use command_name_equals_not_inline.
4969
4970 2017-06-29 Pedro Alves <palves@redhat.com>
4971
4972 * completer.c (expression_completer): Call
4973 linespec_location_completer instead of location_completer.
4974
4975 2017-06-29 Pedro Alves <palves@redhat.com>
4976
4977 * completer.c (expression_completer): Remove code that recomputes
4978 'text' from 'word'.
4979
4980 2017-06-29 Yao Qi <yao.qi@linaro.org>
4981
4982 * regformats/regdat.sh: Generate code with
4983 "ifndef IN_PROCESS_AGENT".
4984
4985 2017-06-28 Pedro Alves <palves@redhat.com>
4986
4987 * command.h: Include "common/scoped_restore.h".
4988
4989 2017-06-28 Yao Qi <yao.qi@linaro.org>
4990
4991 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4992 instead of obstack_grow.
4993
4994 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4995
4996 PR gdb/21337
4997 * symfile.c (reread_symbols): Call objfiles_changed just before
4998 read_symbols.
4999
5000 2017-06-27 Pedro Alves <palves@redhat.com>
5001
5002 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5003 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5004 (completion_list_add_symbol, completion_list_add_msymbol):
5005 ... these new functions.
5006 (add_symtab_completions)
5007 (default_make_symbol_completion_list_break_on_1): Adjust.
5008
5009 2017-06-27 Pedro Alves <palves@redhat.com>
5010
5011 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5012 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5013 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5014 dtor.
5015 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5016 'storage_obstack' field an auto_obstack. In-class initialize all
5017 non-bitfield fields. Make minsyms_read bool.
5018 * symfile.c (read_symbols): Adjust.
5019
5020 2017-06-27 Alan Hayward <alan.hayward@arm.com>
5021
5022 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5023 (gdbsim_store_register): Likewise.
5024
5025 2017-06-27 Pedro Alves <palves@redhat.com>
5026
5027 * c-exp.y (name_obstack): Now an auto_obstack.
5028 (yylex): Use auto_obstack::clear.
5029 (c_parse): Use auto_obstack::clear instead of reinitializing and
5030 freeing the obstack.
5031 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5032 * d-exp.y (name_obstack): Now an auto_obstack.
5033 (yylex): Use auto_obstack::clear.
5034 (d_parse): Use auto_obstack::clear instead of reinitializing and
5035 freeing the obstack.
5036 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5037 auto_obstack.
5038 * dwarf2read.c (create_addrmap_from_index)
5039 (dwarf2_build_psymtabs_hard)
5040 (update_enumeration_type_from_children): Likewise.
5041 * gdb_obstack.h (auto_obstack): New type.
5042 * go-exp.y (name_obstack): Now an auto_obstack.
5043 (build_packaged_name): Use auto_obstack::clear.
5044 (go_parse): Use auto_obstack::clear instead of reinitializing and
5045 freeing the obstack.
5046 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5047 auto_obstack.
5048 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5049 * rust-exp.y (work_obstack): Now an auto_obstack.
5050 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5051 reinitializing and freeing the obstack.
5052 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5053 (host_char_to_target): Use auto_obstack.
5054 * utils.h (make_cleanup_obstack_free): Delete declaration.
5055 * valprint.c (generic_emit_char, generic_printstr): Use
5056 auto_obstack.
5057
5058 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5059
5060 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5061 thread.
5062 (darwin_init_thread_list): Don't update dummy thread.
5063 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5064
5065 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5066
5067 * record-full.c (netorder16): Remove.
5068
5069 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5070
5071 * common/diagnostics.h: Define macros for GCC.
5072 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5073 * common/vec.h: Include diagnostics.h.
5074 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5075 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5076 warning.
5077
5078 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5079
5080 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5081 New macro.
5082 * ada-lex.l: Ignore deprecated register warnings.
5083
5084 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5085
5086 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5087 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5088
5089 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5090
5091 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5092 its own line.
5093
5094 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5095
5096 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5097
5098 2017-06-23 Alan Hayward <alan.hayward@arm.com>
5099
5100 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5101 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5102 (xtensa_register_read_masked): Likewise.
5103
5104 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5105
5106 * common/environ.c (gdb_environ::unset): Update comment.
5107
5108 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5109
5110 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5111 registers.
5112
5113 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5114
5115 * record-full.c (record_full_exec_insn): Use byte_vector.
5116
5117 2017-06-22 Yao Qi <yao.qi@linaro.org>
5118
5119 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5120 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5121
5122 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5123
5124 * remote.c (cached_reg): Move from here...
5125 * regcache.h (cached_reg): ...to here.
5126 * python/py-unwind.c (struct reg_info): Remove.
5127 (cached_frame_info): Use cached_reg_t.
5128 (pyuw_prev_register): Likewise.
5129 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5130 (pyuw_dealloc_cache): Free all registers.
5131
5132 2017-06-22 Pedro Alves <palves@redhat.com>
5133 Simon Marchi <simon.marchi@ericsson.com>
5134
5135 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5136 warning.
5137 * common/diagnostics.h: New file.
5138
5139 2017-06-22 Pedro Alves <palves@redhat.com>
5140
5141 * common/agent.h: Add include guards.
5142
5143 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5144
5145 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5146 talk about addressable units instead of bytes.
5147
5148 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5149
5150 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5151 of '::const_iterator'.
5152
5153 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5154
5155 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5156 'unittests/environ-selftests.c'.
5157 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5158 * charset.c (find_charset_names): Declare object 'iconv_env'.
5159 Update code to use 'iconv_env' object. Remove call to
5160 'free_environ'.
5161 * common/environ.c: Include <utility>.
5162 (make_environ): Delete function.
5163 (free_environ): Delete function.
5164 (gdb_environ::clear): New function.
5165 (gdb_environ::operator=): New function.
5166 (gdb_environ::get): Likewise.
5167 (environ_vector): Delete function.
5168 (set_in_environ): Delete function.
5169 (gdb_environ::set): New function.
5170 (unset_in_environ): Delete function.
5171 (gdb_environ::unset): New function.
5172 (gdb_environ::envp): Likewise.
5173 * common/environ.h: Include <vector>.
5174 (struct gdb_environ): Delete; transform into...
5175 (class gdb_environ): ... this class.
5176 (free_environ): Delete prototype.
5177 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5178 environ_vector): Likewise.
5179 * infcmd.c (run_command_1): Update code to call
5180 'envp' from 'gdb_environ' class.
5181 (environment_info): Update code to call methods from 'gdb_environ'
5182 class.
5183 (unset_environment_command): Likewise.
5184 (path_info): Likewise.
5185 (path_command): Likewise.
5186 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5187 (inferior::inferior): Initialize 'environment' using the host's
5188 information.
5189 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5190 Include "environ.h".
5191 (class inferior) <environment>: Change type from 'struct
5192 gdb_environ' to 'gdb_environ'.
5193 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5194 methods from 'gdb_environ' class.
5195 * solib.c (solib_find_1): Likewise
5196 * unittests/environ-selftests.c: New file.
5197
5198 2017-06-20 Yao Qi <yao.qi@linaro.org>
5199
5200 * features/i386/i386-linux.xml: Exchange the order of including
5201 32bit-linux.xml and 32bit-sse.xml.
5202 * features/i386/i386-linux.c: Regenerated.
5203
5204 2017-06-20 Yao Qi <yao.qi@linaro.org>
5205
5206 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5207 Delete copy ctor and assignment operator.
5208 (tdesc_type): Likewise.
5209 (tdesc_feature): Likewise.
5210 (tdesc_free_reg): Remove.
5211 (tdesc_create_reg): Use new.
5212 (tdesc_free_type): Remove.
5213 (tdesc_create_vector): Use new.
5214 (tdesc_create_union): Likewise.
5215 (tdesc_create_flags): Likewise.
5216 (tdesc_create_enum): Likewise.
5217 (tdesc_free_feature): Delete.
5218 (free_target_description): Use delete.
5219
5220 2017-06-19 John Baldwin <jhb@FreeBSD.org>
5221
5222 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5223 registers.
5224
5225 2017-06-19 Pedro Alves <palves@redhat.com>
5226
5227 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5228 after gdb::unlinker.
5229
5230 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5231
5232 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5233 gdb_environ to access an environment variable.
5234
5235 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5236
5237 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5238 gdb_byte*.
5239
5240 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5241
5242 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5243
5244 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5245
5246 * configure: Re-generate.
5247 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5248
5249 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5250
5251 * configure: Re-generate.
5252 * warning.m4: Pass -Werror to compiler when checking for
5253 supported warning flags.
5254
5255 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5256
5257 * Makefile.in (COMPILE.pre): Add "-x c++".
5258
5259 2017-06-16 Alan Hayward <alan.hayward@arm.com>
5260 Pedro Alves <palves@redhat.com>
5261 Yao Qi <yao.qi@linaro.org>
5262
5263 * defs.h (RequireLongest): New.
5264 (extract_integer): Declare function template.
5265 (extract_signed_integer): Remove the declaration, but define it
5266 static inline.
5267 (extract_unsigned_integer): Likewise.
5268 (store_integer): Declare function template.
5269 (store_signed_integer): Remove the declaration, but define it
5270 static inline.
5271 (store_unsigned_integer): Likewise.
5272 * findvar.c (extract_integer): New function template.
5273 (extract_signed_integer): Remove.
5274 (extract_unsigned_integer): Remove.
5275 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5276 instantiations.
5277 (store_integer): New function template.
5278 (store_signed_integer): Remove.
5279 (store_unsigned_integer): Remove.
5280 (store_integer): Explicit instantiations.
5281 * regcache.c (regcache_raw_read_signed): Update.
5282 (regcache::raw_read): New function.
5283 (regcache::raw_read_signed): Remove.
5284 (regcache::raw_read_unsigned): Remove.
5285 (regcache_raw_read_unsigned): Update.
5286 (regcache_raw_write_unsigned): Update.
5287 (regcache::raw_write_signed): Remove.
5288 (regcache::raw_write): New function.
5289 (regcache_cooked_read_signed): Update.
5290 (regcache::raw_write_unsigned): Remove.
5291 (regcache::cooked_read_signed): Remove.
5292 (regcache_cooked_read_unsigned): Update.
5293 (regcache::cooked_read_unsigned): Remove.
5294 (regcache_cooked_write_signed): Update.
5295 (regcache_cooked_write_unsigned): Update.
5296 * regcache.h (regcache) <raw_read_signed>: Remove.
5297 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5298 <raw_read, raw_write>: New.
5299 <cooked_read_signed, cooked_write_signed>: Remove.
5300 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5301 <cooked_read, cooked_write>: New.
5302 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5303 (sh64_pseudo_register_write): Update.
5304
5305 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5306
5307 * arc-tdep.c (arc_disassembler_options): New variable.
5308 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5309 of default_print_insn.
5310 (arc_delayed_print_insn): Set info->section when needed,
5311 use default_print_insn to retrieve a disassembler.
5312
5313 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5314
5315 PR gdb/21574
5316 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5317 to mention $SHELL and startup-with-shell.
5318
5319 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5320
5321 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5322
5323 2017-06-14 Yao Qi <yao.qi@linaro.org>
5324
5325 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5326 default_print_insn instead of print_insn_aarch64.
5327 * arm-tdep.c (gdb_print_insn_arm): Call
5328 default_print_insn instead of print_insn_big_arm
5329 and print_insn_little_arm.
5330 * i386-tdep.c (i386_print_insn): Call default_print_insn
5331 instead of print_insn_i386.
5332 * ia64-tdep.c (ia64_print_insn): Call
5333 default_print_insn instead of print_insn_ia64.
5334 * mips-tdep.c (gdb_print_insn_mips): Call
5335 default_print_insn instead of print_insn_big_mips
5336 and print_insn_little_mips.
5337 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5338 instead of print_insn_spu.
5339
5340 2017-06-14 Pedro Alves <palves@redhat.com>
5341
5342 * ada-lang.c: Include "common/byte-vector.h".
5343 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5344 * charset.c (wchar_iterator::iterate): Resize the vector instead
5345 of reserving it.
5346 * common/byte-vector.h: Include "common/def-vector.h".
5347 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5348 * cli/cli-dump.c: Include "common/byte-vector.h".
5349 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5350 * common/byte-vector.h: New file.
5351 * common/def-vector.h: New file.
5352 * common/default-init-alloc.h: New file.
5353 * dwarf2loc.c: Include "common/byte-vector.h".
5354 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5355 instead of reserving it.
5356 * dwarf2read.c: Include "common/byte-vector.h".
5357 (data_buf::m_vec): Now a gdb::byte_vector.
5358 * gdb_regex.c: Include "common/def-vector.h".
5359 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5360 * mi/mi-main.c: Include "common/byte-vector.h".
5361 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5362 * printcmd.c: Include "common/byte-vector.h".
5363 (print_scalar_formatted): Use gdb::byte_vector.
5364 * valprint.c: Include "common/byte-vector.h".
5365 (maybe_negate_by_bytes, print_decimal_chars): Use
5366 gdb::byte_vector.
5367
5368 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5369
5370 * darwin-nat.c: Include "nat/fork-inferior.h".
5371
5372 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5373
5374 * configure.nat: Factor out Darwin bits that are not
5375 architecture-specific. Add fork-inferior.o.
5376
5377 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5378
5379 * configure.nat: Factor out AIX bits that are not
5380 architecture-specific. Add fork-inferior.o.
5381
5382 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5383
5384 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5385 (read_pieced_value, write_pieced_value): ...here. Reduce to
5386 wrappers that just call rw_pieced_value.
5387
5388 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5389
5390 * dwarf2loc.c (write_pieced_value): When writing the data for a
5391 memory piece, use write_memory_with_notification instead of
5392 write_memory.
5393
5394 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5395
5396 * valops.c (read_value_memory): Change embedded_offset to
5397 represent a bit offset instead of a byte offset.
5398 * value.h (read_value_memory): Adjust comment.
5399
5400 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5401
5402 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5403 dest_offset_bits and source_offset_bits.
5404 (write_pieced_value): Likewise.
5405
5406 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5407
5408 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5409 given by DW_OP_bit_piece.
5410 (write_pieced_value): Likewise.
5411
5412 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5413
5414 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5415 some other preparations to the places where sufficient information
5416 is available.
5417 (write_pieced_value): Likewise.
5418
5419 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5420
5421 * dwarf2loc.c (bits_to_bytes): New function.
5422 (read_pieced_value): Fix offset calculations for register pieces
5423 on big-endian targets.
5424 (write_pieced_value): Likewise.
5425
5426 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5427
5428 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5429 (write_pieced_value): Likewise.
5430
5431 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5432
5433 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5434 transfer the source value's least significant bits, instead of its
5435 lowest-addressed ones. Rename type_len to max_offset.
5436 (read_pieced_value): Mirror above changes to write_pieced_value as
5437 applicable.
5438
5439 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5440
5441 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5442 truncate full bytes from dest_offset_bits before using it as an
5443 offset into the buffer.
5444
5445 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5446
5447 * dwarf2loc.c (write_pieced_value): Include transfer size in
5448 byte-wise check.
5449
5450 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5451
5452 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5453 calculation of this_size.
5454
5455 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5456
5457 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5458 when targeting a bit-field.
5459 (write_pieced_value): Likewise.
5460
5461 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5462
5463 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5464 (allocate_piece_closure): Drop addr_size parameter.
5465 (dwarf2_evaluate_loc_desc_full): Adjust call to
5466 allocate_piece_closure.
5467
5468 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5469
5470 PR gdb/21226
5471 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5472 the LSB end, independent of endianness.
5473
5474 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5475
5476 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5477 size capping.
5478
5479 2017-06-13 Yao Qi <yao.qi@linaro.org>
5480
5481 * mips-linux-nat.c: Move include features/mips*-linux.c to
5482 mips-linux-tdep.c.
5483 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5484 to mips-linux-tdep.c.
5485 * mips-linux-tdep.c: Include features/mips*-linux.c
5486 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5487 functions.
5488 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5489 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5490 (tdesc_mips64_dsp_linux): Declare.
5491
5492 2017-06-12 Tom Tromey <tom@tromey.com>
5493
5494 * valprint.h (val_print_type_code_int): Remove.
5495 * valprint.c (generic_val_print_int): Always call
5496 val_print_scalar_formatted.
5497 (val_print_type_code_int): Remove.
5498 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5499 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5500 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5501 * ada-valprint.c (ada_val_print_num): Use
5502 val_print_scalar_formatted.
5503
5504 2017-06-12 Tom Tromey <tom@tromey.com>
5505
5506 * printcmd.c (print_scalar_formatted): Unify the two switches.
5507 Don't convert scalars to LONGEST.
5508
5509 2017-06-12 Tom Tromey <tom@tromey.com>
5510
5511 PR exp/16225:
5512 * valprint.h (print_decimal_chars): Update.
5513 * valprint.c (maybe_negate_by_bytes): New function.
5514 (print_decimal_chars): Add "is_signed" argument.
5515 * printcmd.c (print_scalar_formatted): Update.
5516
5517 2017-06-12 Tom Tromey <tom@tromey.com>
5518
5519 PR exp/16225:
5520 * valprint.h (print_binary_chars, print_hex_chars): Update.
5521 * valprint.c (val_print_type_code_int): Update.
5522 (print_binary_chars): Add "zero_pad" argument.
5523 (emit_octal_digit): New function.
5524 (print_octal_chars): Don't zero-pad.
5525 (print_decimal_chars): Likewise.
5526 (print_hex_chars): Add "zero_pad" argument.
5527 * sh64-tdep.c (sh64_do_fp_register): Update.
5528 * regcache.c (regcache::dump): Update.
5529 * printcmd.c (print_scalar_formatted): Update.
5530 * infcmd.c (default_print_one_register_info): Update.
5531
5532 2017-06-12 Pedro Alves <palves@redhat.com>
5533 Alan Hayward <alan.hayward@arm.com>
5534
5535 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5536 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5537 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5538 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5539 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5540
5541 2017-06-12 Pedro Alves <palves@redhat.com>
5542
5543 * dwarf2read.c (mapped_symtab::data): Now a vector of
5544 symtab_index_entry instead of vector of
5545 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5546 whether an element's name is NULL instead of checking whether the
5547 element itself is NULL.
5548 (find_slot): Change return type. Adjust.
5549 (hash_expand, , add_index_entry, uniquify_cu_indices)
5550 (write_hash_table): Adjust.
5551
5552 2017-06-12 Pedro Alves <palves@redhat.com>
5553
5554 * dwarf2read.c (recursively_count_psymbols): New function.
5555 (write_psymtabs_to_index): Call it to compute number of psyms and
5556 pass estimate size of psyms_seen to unordered_set's ctor.
5557
5558 2017-06-12 Pedro Alves <palves@redhat.com>
5559
5560 * dwarf2read.c (write_hash_table): Check if key already exists
5561 before emplacing.
5562
5563 2017-06-12 Pedro Alves <palves@redhat.com>
5564
5565 * dwarf2read.c (data_buf::append_space): Rename to...
5566 (data_buf::grow): ... this, and make private. Adjust all callers.
5567 (data_buf::append_uint): New method.
5568 (add_address_entry, write_one_signatured_type)
5569 (write_psymtabs_to_index): Use it.
5570
5571 2017-06-12 Pedro Alves <palves@redhat.com>
5572
5573 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5574 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5575 (data_buf::file_write): Call ::fwrite directly.
5576
5577 2017-06-12 Pedro Alves <palves@redhat.com>
5578
5579 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5580 std::vector::erase.
5581
5582 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5583
5584 Code cleanup: C++ify .gdb_index producer.
5585 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5586 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5587 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5588 (create_strtab, add_string): Remove.
5589 (file_write, data_buf): New.
5590 (struct symtab_index_entry): Use std::vector for cu_indices.
5591 (struct mapped_symtab): Use std::vector for data.
5592 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5593 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5594 Remove.
5595 (find_slot): Change return type. Update it to the new data structures.
5596 (hash_expand, add_index_entry): Update it to the new data structures.
5597 (offset_type_compare): Remove.
5598 (uniquify_cu_indices): Update it to the new data structures.
5599 (c_str_view, c_str_view_hasher, vector_hasher): New.
5600 (add_indices_to_cpool): Remove.
5601 (write_hash_table): Update it to the new data structures.
5602 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5603 (eq_psymtab_cu_index): Remove.
5604 (psym_index_map): New typedef.
5605 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5606 reference and std::unordered_map for cu_index_htab.
5607 (add_address_entry, add_address_entry_worker, write_address_map)
5608 (write_psymbols): Update it to the new data structures.
5609 (write_obstack): Remove.
5610 (struct signatured_type_index_data): Change types_list to a data_buf
5611 reference and psyms_seen to a std::unordered_set reference.
5612 (write_one_signatured_type, recursively_write_psymbols)
5613 (write_psymtabs_to_index): Update it to the new data structures.
5614
5615 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5616
5617 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5618 separate-debug-file commands.
5619 * symfile.h (separate_debug_file_debug): New global.
5620 * symfile.c (separate_debug_file_debug): New global.
5621 (separate_debug_file_exists, find_separate_debug_file): Add
5622 debug output.
5623 (_initialize_symfile): Add "set debug separate-debug-file"
5624 command.
5625 * build-id.c (build_id_to_debug_bfd,
5626 find_separate_debug_file_by_buildid): Add debug output.
5627
5628 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5629
5630 * gdbarch.sh (displaced_step_free_closure): Remove.
5631 * gdbarch.h, gdbarch.c: Re-generate.
5632 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5633 displaced_step_free_closure.
5634 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5635 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5636 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5637 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5638 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5639 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5640 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5641 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5642 * infrun.c (displaced_step_clear): Call xfree instead of
5643 gdbarch_displaced_step_free_closure.
5644
5645 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5646
5647 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5648 NULL".
5649
5650 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5651
5652 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5653 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5654 (mn10300_push_dummy_call): Likewise.
5655
5656 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5657
5658 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5659
5660 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5661
5662 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5663
5664 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5665
5666 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5667 able to start inferiors using a shell.
5668 (New remote packets): Announce new packet "QStartupWithShell".
5669 * remote.c: Add PACKET_QStartupWithShell.
5670 (extended_remote_create_inferior): Handle new
5671 PACKET_QStartupWithShell.
5672 (remote_protocol_features) <QStartupWithShell>: New entry for
5673 PACKET_QStartupWithShell.
5674 (_initialize_remote): Call "add_packet_config_cmd" for
5675 QStartupShell.
5676
5677 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5678 Pedro Alves <palves@redhat.com>
5679
5680 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5681 and "nat/fork-inferior.h".
5682 * common/common-inferior.h: New file, with contents from
5683 "gdb/inferior.h".
5684 * commom/common-utils.c: Include "common-utils.h".
5685 (stringify_argv): New function.
5686 * common/common-utils.h (stringify_argv): New prototype.
5687 * configure.nat: Add "fork-inferior.o" as a dependency for
5688 "*linux*", "fbsd*" and "nbsd*" hosts.
5689 * corefile.c (get_exec_file): Update comment.
5690 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5691 instead of "startup_inferior".
5692 (darwin_create_inferior): Call "add_thread_silent" after
5693 "fork_inferior".
5694 * fork-child.c: Cleanup unnecessary includes.
5695 (SHELL_FILE): Move to "common/common-fork-child.c".
5696 (environ): Likewise.
5697 (exec_wrapper): Initialize.
5698 (get_exec_wrapper): New function.
5699 (breakup_args): Move to "common/common-fork-child.c"; rename to
5700 "breakup_args_for_exec".
5701 (escape_bang_in_quoted_argument): Move to
5702 "common/common-fork-child.c".
5703 (saved_ui): New variable.
5704 (prefork_hook): New function.
5705 (postfork_hook): Likewise.
5706 (postfork_child_hook): Likewise.
5707 (gdb_startup_inferior): Likewise.
5708 (fork_inferior): Move to "common/common-fork-child.c". Update
5709 function to support gdbserver.
5710 (startup_inferior): Likewise.
5711 * gdbcore.h (get_exec_file): Remove declaration.
5712 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5713 instead of "startup_inferior". Call "add_thread_silent" after
5714 "fork_inferior".
5715 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5716 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5717 instead of "startup_inferior". Call "add_thread_silent" after
5718 "fork_inferior".
5719 * inferior.h: Include "common-inferior.h".
5720 (trace_start_error): Move to "common/common-utils.h".
5721 (trace_start_error_with_name): Likewise.
5722 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5723 (startup_inferior): Likewise.
5724 (gdb_startup_inferior): New prototype.
5725 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5726 * nat/fork-inferior.h: New file.
5727 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5728 instead of "startup_inferior". Call "add_thread_silent" after
5729 "fork_inferior".
5730 * target.h (target_terminal_init): Move prototype to
5731 "target/target.h".
5732 (target_terminal_inferior): Likewise.
5733 (target_terminal_ours): Likewise.
5734 * target/target.h (target_terminal_init): New prototype, moved
5735 from "target.h".
5736 (target_terminal_inferior): Likewise.
5737 (target_terminal_ours): Likewise.
5738 * utils.c (gdb_flush_out_err): New function.
5739
5740 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5741
5742 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5743 * common/common-gdbthread.h: New file, with parts from
5744 "gdb/gdbthread.h".
5745 * gdbthread.h: Include "common-gdbthread.h".
5746 (switch_to_thread): Moved to "common/common-gdbthread.h".
5747
5748 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5749
5750 * Makefile.in (SFILES): Add "common/job-control.c".
5751 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5752 (COMMON_OBS): Add "job-control.o".
5753 * common/job-control.c: New file, with contents from
5754 "gdb/inflow.c".
5755 * common/job-control.h: New file, with contents from "terminal.h".
5756 * fork-child.c: Include "job-control.h".
5757 * inflow.c: Include "job-control.h".
5758 (gdb_setpgid): Move to "common/common-inflow.c".
5759 (_initialize_inflow): Move setting of "job_control" to
5760 "handle_job_control".
5761 * terminal.h (job_control): Moved to "common/common-terminal.h".
5762 (gdb_setpgid): Likewise.
5763 * top.c: Include "job_control.h".
5764 * utils.c: Likewise.
5765 (job_control): Moved to "job-control.c".
5766
5767 2017-06-07 Pedro Alves <palves@redhat.com>
5768
5769 * Makefile.in (SFILES): Add gdb_regex.c.
5770 (COMMON_OBS): Add gdb_regex.o.
5771 * ada-lang.c (ada_add_standard_exceptions)
5772 (ada_add_exceptions_from_frame, name_matches_regex)
5773 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5774 parameter type to compiled_regex. Adjust.
5775 (ada_exceptions_list): Use compiled_regex.
5776 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5777 std::unique_ptr<compiled_regex>.
5778 (exception_catchpoint::~exception_catchpoint): Remove regfree
5779 call.
5780 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5781 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5782 * breakpoint.c (solib_catchpoint::compiled): Now a
5783 std::unique_ptr<compiled_regex>.
5784 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5785 (check_status_catch_solib): Adjust to use compiled_regex.
5786 (add_solib_catchpoint): Adjust to use compiled_regex.
5787 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5788 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5789 compiled_regex reference. Adjust to use it.
5790 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5791 declaration. Include "gdb_regex.h".
5792 (apropos_cmd): Change regex parameter to compiled_regex reference.
5793 * gdb_regex.c: New file.
5794 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5795 declarations.
5796 (class compiled_regex): New.
5797 * linux-tdep.c: Include "common/gdb_optional.h".
5798 (struct mapping_regexes): New, factored out from
5799 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5800 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5801 gdb::optional and remove cleanups. Adjust to compiled_regex.
5802 * probe.c: Include "common/gdb_optional.h".
5803 (collect_probes): Use compiled_regex and gdb::optional and remove
5804 cleanups.
5805 * skip.c: Include "common/gdb_optional.h".
5806 (skiplist_entry::compiled_function_regexp): Now a
5807 gdb::optional<compiled_regex>.
5808 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5809 (free_skiplist_entry): Remove regfree call.
5810 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5811 compiled_regex and gdb::optional.
5812 * symtab.c: Include "common/gdb_optional.h".
5813 (search_symbols): Use compiled_regex and gdb::optional.
5814 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5815 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5816 to gdb_regex.c.
5817
5818 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5819
5820 * regcache.c (regcache::save): Avoid buffer use.
5821 (regcache::dump): Likewise.
5822
5823 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5824
5825 * sh-tdep.c (sh_pseudo_register_read): Remove
5826 MAX_REGISTER_SIZE.
5827 (sh_pseudo_register_write): Likewise.
5828 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5829 (sh64_pseudo_register_write): Likewise
5830
5831 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5832
5833 * aarch64-tdep.c (aarch64_store_return_value): Use
5834 V_REGISTER_SIZE.
5835 (aarch64_pseudo_read_value): Likewise.
5836 (aarch64_pseudo_write): Likewise.
5837
5838 2017-06-06 Yao Qi <yao.qi@linaro.org>
5839
5840 * regformats/regdef.h (set_register_cache): Remove the
5841 declaration.
5842
5843 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5844
5845 * frame.c (frame_unwind_register_signed): Use
5846 frame_unwind_register_value.
5847
5848 2017-06-06 Pedro Alves <palves@redhat.com>
5849
5850 PR breakpoints/21553
5851 * breakpoint.c (create_breakpoints_sal_default)
5852 (init_breakpoint_sal, create_breakpoint_sal): Use
5853 gdb::unique_xmalloc_ptr for string parameters.
5854 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5855 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5856 (base_breakpoint_create_breakpoints_sal)
5857 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5858 (strace_marker_create_breakpoints_sal)
5859 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5860 string parameters.
5861 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5862 gdb::unique_xmalloc_ptr for string parameters.
5863 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5864 parameters.
5865
5866 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5867
5868 * alpha-tdep.c (alpha_register_to_value): Use
5869 get_frame_register_value.
5870 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5871
5872 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5873
5874 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5875 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5876 (ia64_value_to_register): Likewise.
5877 (ia64_extract_return_value): Likewise.
5878 (ia64_store_return_value): Likewise.
5879 (ia64_push_dummy_call): Likewise.
5880
5881 2017-06-04 Joel Brobecker <brobecker@adacore.com>
5882
5883 GDB 8.0 released.
5884
5885 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5886
5887 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5888
5889 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5890
5891 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5892 parameter.
5893 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5894
5895 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5896
5897 * event-loop.c (poll_timers): Unallocate timer using delete
5898 instead of xfree.
5899
5900 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5901
5902 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5903 (struct breakpoint) <~breakpoint>: New.
5904 (struct watchpoint): Inherit from breakpoint.
5905 <~watchpoint>: New.
5906 <base>: Remove.
5907 (struct tracepoint): Inherit from breakpoint.
5908 <base>: Remove.
5909 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5910 (struct longjmp_breakpoint): Inherit from breakpoint.
5911 <~longjmp_breakpoint>: New.
5912 <base>: Remove.
5913 (new_breakpoint_from_type): Remove casts.
5914 (watchpoint_in_thread_scope): Remove reference to base field.
5915 (watchpoint_del_at_next_stop): Likewise.
5916 (update_watchpoint): Likewise.
5917 (watchpoint_check): Likewise.
5918 (bpstat_check_watchpoint): Likewise.
5919 (set_longjmp_breakpoint): Likewise.
5920 (struct fork_catchpoint): Inherit from breakpoint.
5921 <base>: Remove.
5922 (struct solib_catchpoint): Inherit from breakpoint.
5923 <~solib_catchpoint>: New.
5924 <base>: Remove.
5925 (dtor_catch_solib): Change to ...
5926 (solib_catchpoint::~solib_catchpoint): ... this.
5927 (breakpoint_hit_catch_solib): Remove reference to base field.
5928 (add_solib_catchpoint): Likewise.
5929 (create_fork_vfork_event_catchpoint): Likewise.
5930 (struct exec_catchpoint): Inherit from breakpoint.
5931 <~exec_catchpoint>: New.
5932 <base>: Remove.
5933 (dtor_catch_exec): Change to ...
5934 (exec_catchpoint::~exec_catchpoint): ... this.
5935 (dtor_watchpoint): Change to ...
5936 (watchpoint::~watchpoint): ... this.
5937 (watch_command_1): Remove reference to base field.
5938 (catch_exec_command_1): Likewise.
5939 (base_breakpoint_dtor): Change to ...
5940 (breakpoint::~breakpoint): ... this.
5941 (base_breakpoint_ops): Remove dtor field value.
5942 (longjmp_bkpt_dtor): Change to ...
5943 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5944 (strace_marker_create_breakpoints_sal): Remove reference to base
5945 field.
5946 (delete_breakpoint): Don't manually call breakpoint destructor.
5947 (create_tracepoint_from_upload): Remove reference to base field.
5948 (trace_pass_set_count): Likewise.
5949 (initialize_breakpoint_ops): Don't initialize
5950 momentary_breakpoint_ops, don't set dtors.
5951 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5952 <~ada_catchpoint>: New.
5953 <base>: Remove.
5954 (create_excep_cond_exprs): Remove reference to base field.
5955 (dtor_exception): Change to ...
5956 (ada_catchpoint::~ada_catchpoint): ... this.
5957 (dtor_catch_exception): Remove.
5958 (dtor_catch_exception_unhandled): Remove.
5959 (dtor_catch_assert): Remove.
5960 (create_ada_exception_catchpoint): Remove reference to base
5961 field.
5962 (initialize_ada_catchpoint_ops): Don't set dtors.
5963 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5964 breakpoint.
5965 <~signal_catchpoint>: New.
5966 <base>: Remove.
5967 (signal_catchpoint_dtor): Change to ...
5968 (signal_catchpoint::~signal_catchpoint): ... this.
5969 (create_signal_catchpoint): Remove reference to base field.
5970 (initialize_signal_catchpoint_ops): Don't set dtor.
5971 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5972 from breakpoint.
5973 <~syscall_catchpoint>: New.
5974 <base>: Remove.
5975 (dtor_catch_syscall): Change to ...
5976 (syscall_catchpoint::~syscall_catchpoint): ... this.
5977 (create_syscall_event_catchpoint): Remove reference to base
5978 field.
5979 (initialize_syscall_catchpoint_ops): Don't set dtor.
5980 * break-catch-throw.c (struct exception_catchpoint): Inherit
5981 from breakpoint.
5982 <~exception_catchpoint>: New.
5983 <base>: Remove.
5984 (dtor_exception_catchpoint): Change to ...
5985 (exception_catchpoint::~exception_catchpoint): ... this.
5986 (handle_gnu_v3_exceptions): Remove reference to base field.
5987 (initialize_throw_catchpoint_ops): Don't set dtor.
5988 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5989 field.
5990 * remote.c (remote_get_tracepoint_status): Likewise.
5991 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5992 * tracefile.c (tracefile_fetch_registers): Likewise.
5993 * tracepoint.c (actions_command): Likewise.
5994 (validate_actionline): Likewise.
5995 (tfind_1): Likewise.
5996 (get_traceframe_location): Likewise.
5997 (find_matching_tracepoint_location): Likewise.
5998 (parse_tracepoint_status): Likewise.
5999 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6000
6001 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6002
6003 * breakpoint.c (struct longjmp_breakpoint): New struct.
6004 (is_tracepoint_type): Change return type to bool.
6005 (is_longjmp_type): New function.
6006 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6007 (set_raw_breakpoint_without_location): Use
6008 new_breakpoint_from_type.
6009 (set_raw_breakpoint): Likewise.
6010
6011 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6012
6013 * breakpoint.c (new_breakpoint_from_type): New function.
6014 (create_breakpoint_sal): Use new_breakpoint_from_type and
6015 unique_ptr.
6016 (create_breakpoint): Likewise.
6017
6018 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6019
6020 * memattr.c (mem_info_command): Rename to ...
6021 (info_mem_command): ... this.
6022 (mem_enable_command): Rename to ...
6023 (enable_mem_command): ... this.
6024 (mem_disable_command): Rename to ...
6025 (disable_mem_command): ... this.
6026 (mem_delete_command): Rename to ...
6027 (delete_mem_command): ... this.
6028 (_initialize_mem): Adjust function names.
6029
6030 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6031
6032 * btrace.c (handle_pt_insn_events): New.
6033 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6034 STATUS. Split into this and ...
6035 (handle_pt_insn_event_flags): ... this.
6036
6037 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6038
6039 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6040 and struct pt_insn.resynced.
6041 * configure: Regenerated.
6042 * config.in: Regenerated.
6043
6044 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6045
6046 * btrace.c (ftrace_find_call_by_number): New function.
6047 (ftrace_new_function): Store objects, not pointers.
6048 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6049 ftrace_new_gap, ftrace_update_function,
6050 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6051 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6052 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6053 btrace_ends_with_single_insn, btrace_call_get): Account for
6054 btrace_thread_info::functions now storing objects.
6055 * btrace.h (struct btrace_thread_info): Add constructor.
6056 (struct btrace_thread_info) <functions>: Make std::vector.
6057 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6058 Initialize with default values.
6059 * record-btrace.c (record_btrace_frame_sniffer): Account for
6060 btrace_thread_info::functions now storing objects.
6061
6062 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6063
6064 * btrace.c: Remove typedef bfun_s.
6065 (ftrace_new_gap): Directly add gaps to the list of gaps.
6066 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6067 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6068 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6069 instead of gdb VEC.
6070
6071 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6072
6073 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6074 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6075 with btrace_thread_info::next_segment and
6076 btrace_thread_info::prev_segment.
6077 * btrace.h: Remove struct btrace_func_link.
6078 (struct btrace_function): Replace pair of function segment pointers
6079 with pair of indices.
6080 * python/py-record-btrace.c (btpy_call_prev_sibling,
6081 btpy_call_next_sibling): Replace references to
6082 btrace_thread_info::segment with btrace_thread_info::next_segment and
6083 btrace_thread_info::prev_segment.
6084 * record-btrace.c (record_btrace_frame_this_id): Use
6085 btrace_find_call_by_number.
6086
6087 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6088
6089 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6090 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6091 btrace_insn_next, btrace_insn_prev): Remove references to
6092 btrace_thread_info::flow.
6093 * btrace.h (struct btrace_function): Remove FLOW.
6094
6095 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6096
6097 * btrace.c (ftrace_find_call_by_number): New function.
6098 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6099 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6100 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6101 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6102 index.
6103 * btrace.h (struct btrace_function): Turn UP into an index.
6104 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6105 as an index.
6106 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6107 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6108 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6109
6110 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6111
6112 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6113 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6114 ftrace_update_function, ftrace_compute_global_level_offset,
6115 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6116 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6117 btrace_insn_end, btrace_is_empty): Remove references to
6118 btrace_thread_info::begin and btrace_thread_info::end.
6119 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6120 (struct btrace_thread_info) <functions>: Adjust comment.
6121 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6122 btrace_thread_info::begin.
6123
6124 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6125
6126 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6127 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6128 ftrace_update_function): Remove arguments that implicitly were always
6129 BTINFO->END.
6130 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6131 Don't pass BTINFO->END.
6132
6133 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6134
6135 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6136 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6137 btrace_find_insn_by_number): Replace function segment pointer with
6138 index.
6139 (btrace_insn_cmp): Simplify.
6140 * btrace.h: (struct btrace_insn_iterator) Rename index to
6141 insn_index. Replace function segment pointer with index into function
6142 segment vector.
6143 * record-btrace.c (record_btrace_call_history): Replace function
6144 segment pointer use with index.
6145 (record_btrace_frame_sniffer): Retrieve function call segment through
6146 vector.
6147 (record_btrace_set_replay): Remove defunc't safety check.
6148
6149 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6150
6151 * btrace.c (btrace_ends_with_single_insn): New function.
6152 (btrace_call_get, btrace_call_number, btrace_call_begin,
6153 btrace_call_end, btrace_call_next, btrace_call_prev,
6154 btrace_find_call_by_number): Use index into call segment vector
6155 instead of pointer.
6156 (btrace_call_cmp): Simplify.
6157 * btrace.h (struct btrace_call_iterator): Replace function call segment
6158 pointer with index into vector.
6159 * record-btrace.c (record_btrace_call_history): Use index instead of
6160 pointer.
6161
6162 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6163
6164 * btrace.c (btrace_insn_begin, btrace_insn_end,
6165 btrace_find_insn_by_number): Add btinfo to iterator.
6166 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6167
6168 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6169
6170 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6171 and save pointers directly.
6172 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6173 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6174 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6175 changed signature of functions.
6176 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6177 (btrace_fetch): Remove code that adds btrace_function pointers to
6178 vector of btrace_functions.
6179 (btrace_clear): Simplify freeing vector of btrace_functions.
6180
6181 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6182
6183 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6184 Replace VEC_* with std::vector functions.
6185 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6186 (struct btrace_thread_info)<functions>: Change type to std::vector.
6187
6188 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6189
6190 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6191 "Removed targets and native configurations" up. Merge duplicate
6192 "New commands" sub-sections. Add "New options" sub-sections.
6193
6194 2017-05-26 Alan Hayward <alan.hayward@arm.com>
6195
6196 * defs.h (copy_integer_to_size): New declaration.
6197 * findvar.c (copy_integer_to_size): New function.
6198 (do_cint_test): New selftest function.
6199 (copy_integer_to_size_test): Likewise.
6200 (_initialize_findvar): Likewise.
6201 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6202 (mips_fbsd_collect_reg): Use raw_collect_integer.
6203 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6204 (mips64_fill_gregset): Use raw_collect_integer
6205 (mips64_fill_fpregset): Use raw_supply_integer.
6206 * regcache.c (regcache::raw_supply_integer): New function.
6207 (regcache::raw_collect_integer): Likewise.
6208 * regcache.h: (regcache::raw_supply_integer): New declaration.
6209 (regcache::raw_collect_integer): Likewise.
6210
6211 2017-05-24 Yao Qi <yao.qi@linaro.org>
6212
6213 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6214 (COMMON_OBS): Add gdbarch-selftests.o.
6215 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6216 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6217 * gdbarch-selftests.c: New file.
6218 * regcache.h (regcache) <~regcache>: Mark it virtual if
6219 GDB_SELF_TEST.
6220 <raw_write>: Likewise.
6221
6222 2017-05-24 Yao Qi <yao.qi@linaro.org>
6223
6224 * regcache.c (current_regcache): Change it to
6225 regcache::current_regcache.
6226 (regcache_observer_target_changed): Update.
6227 (regcache_thread_ptid_changed): Make it a regcache static
6228 method.
6229 (regcache_thread_ptid_changed): Update.
6230 (class regcache_access): New.
6231 (current_regcache_test): Update.
6232 (_initialize_regcache): Update.
6233 * regcache.h: Include forward_list.
6234 (regcache): Declare regcache_thread_ptid_changed and declare
6235 registers_changed_ptid as friend.
6236
6237 2017-05-24 Yao Qi <yao.qi@linaro.org>
6238
6239 * i387-tdep.c (i387_register_to_value): Use register_size
6240 instead of TYPE_LENGTH.
6241 * m68k-tdep.c (m68k_register_to_value): Likewise.
6242
6243 2017-05-24 Yao Qi <yao.qi@linaro.org>
6244
6245 * i387-tdep.c (i387_convert_register_p): Return false if type
6246 code isn't TYPE_CODE_FLT.
6247
6248 2017-05-24 Yao Qi <yao.qi@linaro.org>
6249
6250 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6251 length is 4.
6252 (alpha_register_to_value): Remove type length check.
6253 (alpha_value_to_register): Likewise.
6254
6255 2017-05-24 Yao Qi <yao.qi@linaro.org>
6256
6257 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6258 TYPE_CODE_FLT.
6259
6260 2017-05-24 Yao Qi <yao.qi@linaro.org>
6261
6262 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6263 TYPE_CODE_FLT or not.
6264
6265 2017-05-24 Yao Qi <yao.qi@linaro.org>
6266
6267 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6268 * avr-tdep.c (avr_gdbarch_init): Likewise.
6269 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6270 * cris-tdep.c (cris_gdbarch_init): Likewise.
6271 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6272 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6273 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6275 * mep-tdep.c (mep_gdbarch_init): Likewise.
6276 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6277 * mips-tdep.c (mips_gdbarch_init): Likewise.
6278 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6279 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6280 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6281 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6282 * v850-tdep.c (v850_gdbarch_init): Likewise.
6283
6284 2017-05-24 Yao Qi <yao.qi@linaro.org>
6285
6286 * selftest-arch.c (tests_with_arch): Call registers_changed
6287 and reinit_frame_cache.
6288 * selftest.c (run_self_tests): Likewise.
6289
6290 2017-05-24 Yao Qi <yao.qi@linaro.org>
6291
6292 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6293 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6294
6295 2017-05-24 Yao Qi <yao.qi@linaro.org>
6296
6297 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6298 set_gdbarch_print_insn.
6299
6300 2017-05-24 Yao Qi <yao.qi@linaro.org>
6301
6302 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6303 set_gdbarch_print_insn.
6304
6305 2017-05-24 Yao Qi <yao.qi@linaro.org>
6306
6307 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6308 set_gdbarch_print_insn.
6309 * arc-tdep.c (arc_gdbarch_init): Likewise.
6310 * arch-utils.c: include dis-asm.h.
6311 (default_print_insn): New function.
6312 * arch-utils.h (default_print_insn): Declare.
6313 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6314 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6315 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6316 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6317 * frv-tdep.c (frv_gdbarch_init): Likewise.
6318 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6319 * gdbarch.sh (print_insn): Use default_print_insn.
6320 * gdbarch.c: Regenerated.
6321 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6322 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6323 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6324 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6325 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6326 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6327 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6328 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6329 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6330 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6331 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6332 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6333 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6334 * mt-tdep.c (mt_gdbarch_init): Likewise.
6335 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6336 * nios2-tdep.c (nios2_print_insn): Remove.
6337 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6338 * rx-tdep.c (rx_gdbarch_init): Likewise.
6339 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6340 * score-tdep.c (score_print_insn): Remove.
6341 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6342 * sh-tdep.c (sh_gdbarch_init): Likewise.
6343 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6344 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6345 * tic6x-tdep.c (tic6x_print_insn): Remove.
6346 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6347 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6348 * v850-tdep.c (v850_gdbarch_init): Likewise.
6349 * vax-tdep.c (vax_gdbarch_init): Likewise.
6350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6351 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6352
6353 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6354
6355 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6356 (MIPS_FP0_REGNUM): Remove.
6357 (MIPS_FSR_REGNUM): Remove.
6358 (mips_fbsd_supply_fpregs): Use mips_regnum.
6359 (mips_fbsd_supply_gregs): Likewise.
6360 (mips_fbsd_collect_fpregs): Likewise.
6361 (mips_fbsd_collect_gregs): Likewise.
6362
6363 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6364
6365 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6366 (getpfpregs_supplies): New function.
6367 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6368 getfpregs_supplies.
6369 (mips_fbsd_store_inferior_registers): Likewise.
6370
6371 2017-05-22 Pedro Alves <palves@redhat.com>
6372
6373 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6374 maintainer.
6375
6376 2017-05-22 Alan Hayward <alan.hayward@arm.com>
6377
6378 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6379 (store_register): Likewise.
6380 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6381 (get_decimal_float_return_value): Likewise.
6382 (do_ppc_sysv_return_value): Likewise.
6383 (ppc64_sysv_abi_push_integer): Likewise.
6384 (ppc64_sysv_abi_push_freg): Likewise.
6385 (ppc64_sysv_abi_return_value_base): Likewise.
6386 (ppc64_sysv_abi_return_value): Likewise.
6387 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6388 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6389 * rs6000-nat.c: Likewise.
6390 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6391 (rs6000_value_to_register): Likewise.
6392 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6393
6394 2017-05-21 Tom Tromey <tom@tromey.com>
6395
6396 PR rust/21466:
6397 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6398 arrays as "[T]", not "[T; ]".
6399
6400 2017-05-19 Tom Tromey <tom@tromey.com>
6401
6402 PR rust/21484:
6403 * rust-lang.c (exp_descriptor_rust): New function.
6404 (rust_language_defn): Use it.
6405 * p-lang.c (pascal_language_defn): Update.
6406 * opencl-lang.c (opencl_language_defn): Update.
6407 * objc-lang.c (objc_language_defn): Update.
6408 * m2-lang.c (m2_language_defn): Update.
6409 * language.h (struct language_defn)
6410 <la_watch_location_expression>: New member.
6411 * language.c (unknown_language_defn, auto_language_defn)
6412 (local_language_defn): Update.
6413 * go-lang.c (go_language_defn): Update.
6414 * f-lang.c (f_language_defn): Update.
6415 * d-lang.c (d_language_defn): Update.
6416 * c-lang.h (c_watch_location_expression): Declare.
6417 * c-lang.c (c_watch_location_expression): New function.
6418 (c_language_defn, cplus_language_defn, asm_language_defn)
6419 (minimal_language_defn): Use it.
6420 * breakpoint.c (watch_command_1): Call
6421 la_watch_location_expression.
6422 * ada-lang.c (ada_language_defn): Update.
6423
6424 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6425
6426 PR tui/21482
6427 * gdb_curses.h (NOMACROS): Define.
6428 (NCURSES_NOMACROS): Define.
6429
6430 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6431
6432 PR tui/21482
6433 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6434 arg to char *.
6435 * tui/tui-wingeneral.c (box_win): Likewise.
6436 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6437 (tui_show_source_line): Likewise.
6438 (tui_show_exec_info_content): Likewise.
6439
6440 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6441
6442 * sparc-tdep.c (sparc_structure_return_p)
6443 (sparc_arg_on_registers_p): New functions.
6444 (sparc32_store_arguments): Use them.
6445 * sparc64-tdep.c (sparc64_16_byte_align_p)
6446 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6447 Handle TYPE_CODE_ARRAY.
6448
6449 2017-05-17 Yao Qi <yao.qi@linaro.org>
6450
6451 * cli/cli-decode.c (add_alias_cmd): New function.
6452 * command.h (add_alias_cmd): Declare.
6453 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6454 instead call add_alias_cmd.
6455
6456 2017-05-17 Pedro Alves <palves@redhat.com>
6457
6458 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6459 (nat_makefile_frag): ... this. All references updated.
6460 * configure.ac: Likewise.
6461 * configure.nat: Likewise. Enhance comments.
6462 * configure: Regenerate.
6463
6464 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6465
6466 * procfs.c (procfs_create_inferior): Change prototype to match
6467 definition.
6468
6469 2017-05-13 Eli Zaretskii <eliz@gnu.org>
6470
6471 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6472 C++ compiler warning.
6473
6474 2017-05-12 Tom Tromey <tom@tromey.com>
6475
6476 PR rust/21483:
6477 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6478 recurse, just call value_struct_elt directly.
6479
6480 2017-05-12 Tom Tromey <tom@tromey.com>
6481
6482 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6483 OP_RUST_ARRAY>: Fix.
6484
6485 2017-05-12 Tom Tromey <tom@tromey.com>
6486
6487 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6488
6489 2017-05-09 Yao Qi <yao.qi@linaro.org>
6490
6491 * regcache.c: Include <forward_list>.
6492 (struct regcache_list): Remove.
6493 (current_regcache): Update.
6494 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6495 (regcache_thread_ptid_changed): Likewise.
6496 (registers_changed_ptid): Likewise.
6497 (current_regcache_size): Likewise.
6498
6499 2017-05-09 Yao Qi <yao.qi@linaro.org>
6500
6501 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6502 (current_regcache_size): New function.
6503 (current_regcache_test): New function.
6504 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6505
6506 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6507
6508 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6509 (print_gp_register_row): Use get_frame_register_value.
6510
6511 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6512
6513 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6514 (mips_supply_fpregset): Likewise.
6515 (mips64_supply_gregset): Likewise.
6516
6517 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6518
6519 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6520 regcache->raw_supply_zeroed.
6521
6522 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6523
6524 * configure.nat: Rearrange 'case' statements to match
6525 host before cpu.
6526
6527 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6528
6529 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6530 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6531 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6532 "@nat_extra_makefile_frag@".
6533 (Makefile): Remove dependency on "@frags@".
6534 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6535 (data-directory/Makefile): Likewise.
6536 * config/aarch64/linux.mh: Deleted; moved contents to
6537 "gdb/configure.nat".
6538 * config/alpha/alpha-linux.mh: Likewise.
6539 * config/alpha/nbsd.mh: Likewise.
6540 * config/arm/linux.mh: Likewise.
6541 * config/arm/nbsdelf.mh: Likewise.
6542 * config/i386/cygwin.mh: Likewise.
6543 * config/i386/cygwin64.mh: Likewise.
6544 * config/i386/darwin.mh: Likewise.
6545 * config/i386/fbsd.mh: Likewise.
6546 * config/i386/fbsd64.mh: Likewise.
6547 * config/i386/go32.mh: Likewise.
6548 * config/i386/i386gnu.mh: Likewise.
6549 * config/i386/i386sol2.mh: Likewise.
6550 * config/i386/linux.mh: Likewise.
6551 * config/i386/linux64.mh: Likewise.
6552 * config/i386/mingw.mh: Likewise.
6553 * config/i386/mingw64.mh: Likewise.
6554 * config/i386/nbsd64.mh: Likewise.
6555 * config/i386/nbsdelf.mh: Likewise.
6556 * config/i386/nto.mh: Likewise.
6557 * config/i386/obsd.mh: Likewise.
6558 * config/i386/obsd64.mh: Likewise.
6559 * config/i386/sol2-64.mh: Likewise.
6560 * config/ia64/linux.mh: Likewise.
6561 * config/m32r/linux.mh: Likewise.
6562 * config/m68k/linux.mh: Likewise.
6563 * config/m68k/nbsdelf.mh: Likewise.
6564 * config/m68k/obsd.mh: Likewise.
6565 * config/m88k/obsd.mh: Likewise.
6566 * config/mips/fbsd.mh: Likewise.
6567 * config/mips/linux.mh: Likewise.
6568 * config/mips/nbsd.mh: Likewise.
6569 * config/mips/obsd64.mh: Likewise.
6570 * config/pa/linux.mh: Likewise.
6571 * config/pa/nbsd.mh: Likewise.
6572 * config/pa/obsd.mh: Likewise.
6573 * config/powerpc/aix.mh: Likewise.
6574 * config/powerpc/fbsd.mh: Likewise.
6575 * config/powerpc/linux.mh: Likewise.
6576 * config/powerpc/nbsd.mh: Likewise.
6577 * config/powerpc/obsd.mh: Likewise.
6578 * config/powerpc/ppc64-linux.mh: Likewise.
6579 * config/powerpc/spu-linux.mh: Likewise.
6580 * config/s390/linux.mh: Likewise.
6581 * config/sh/nbsd.mh: Likewise.
6582 * config/sparc/fbsd.mh: Likewise.
6583 * config/sparc/linux.mh: Likewise.
6584 * config/sparc/linux64.mh: Likewise.
6585 * config/sparc/nbsd64.mh: Likewise.
6586 * config/sparc/nbsdelf.mh: Likewise.
6587 * config/sparc/obsd64.mh: Likewise.
6588 * config/sparc/sol2.mh: Likewise.
6589 * config/tilegx/linux.mh: Likewise.
6590 * config/vax/nbsdelf.mh: Likewise.
6591 * config/vax/obsd.mh: Likewise.
6592 * config/xtensa/linux.mh: Likewise.
6593 * config/i386/i386gnu.mn: New file, with excerpts from
6594 "config/i386/i386gnu.mh".
6595 * configure: Regenerate.
6596 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6597 *.mh files under "gdb/config".
6598 * configure.nat: New file, with contents from the
6599 "gdb/config/*/*.mh" files.
6600
6601 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6602
6603 * btrace.c (btrace_clear): Free insn vector.
6604
6605 2017-05-05 Pedro Alves <palves@redhat.com>
6606
6607 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6608 * configure: Regenerate.
6609
6610 2017-05-04 Pedro Alves <palves@redhat.com>
6611
6612 * Makefile.in (SFILES): Add progspace-and-thread.c.
6613 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6614 (COMMON_OBS): Add progspace-and-thread.o.
6615 * breakpoint.c: Include "progspace-and-thread.h".
6616 (update_inserted_breakpoint_locations)
6617 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6618 Use scoped_restore_current_pspace_and_thread.
6619 (create_std_terminate_master_breakpoint): Use
6620 scoped_restore_current_program_space.
6621 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6622 (print_breakpoint_location): Use
6623 scoped_restore_current_program_space.
6624 (bp_loc_is_permanent): Use
6625 scoped_restore_current_pspace_and_thread.
6626 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6627 (download_tracepoint_locations): Use
6628 scoped_restore_current_pspace_and_thread.
6629 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6630 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6631 (enum step_over_calls_kind): Moved from inferior.h.
6632 (class scoped_restore_current_thread): New class.
6633 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6634 declaration.
6635 (scoped_restore_current_thread): New class.
6636 * infcmd.c: Include "common/gdb_optional.h".
6637 (continue_1, proceed_after_attach): Use
6638 scoped_restore_current_thread.
6639 (notice_new_inferior): Use scoped_restore_current_thread.
6640 * inferior.c: Include "progspace-and-thread.h".
6641 (restore_inferior, save_current_inferior): Delete.
6642 (add_inferior_command, clone_inferior_command): Use
6643 scoped_restore_current_pspace_and_thread.
6644 * inferior.h (scoped_restore_current_inferior): New class.
6645 * infrun.c: Include "progspace-and-thread.h" and
6646 "common/gdb_optional.h".
6647 (follow_fork_inferior): Use
6648 scoped_restore_current_pspace_and_thread.
6649 (scoped_restore_exited_inferior): New class.
6650 (handle_vfork_child_exec_or_exit): Use
6651 scoped_restore_exited_inferior,
6652 scoped_restore_current_pspace_and_thread,
6653 scoped_restore_current_thread and scoped_restore.
6654 (fetch_inferior_event): Use scoped_restore_current_thread.
6655 * linespec.c (decode_line_full, decode_line_1): Use
6656 scoped_restore_current_program_space.
6657 * mi/mi-main.c: Include "progspace-and-thread.h".
6658 (exec_continue): Use scoped_restore_current_thread.
6659 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6660 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6661 * proc-service.c (ps_pglobal_lookup): Use
6662 scoped_restore_current_program_space.
6663 * progspace-and-thread.c: New file.
6664 * progspace-and-thread.h: New file.
6665 * progspace.c (release_program_space, clone_program_space): Use
6666 scoped_restore_current_program_space.
6667 (restore_program_space, save_current_program_space)
6668 (save_current_space_and_thread): Delete.
6669 (switch_to_program_space_and_thread): Moved to
6670 progspace-and-thread.c.
6671 * progspace.h (save_current_program_space)
6672 (save_current_space_and_thread): Delete declarations.
6673 (scoped_restore_current_program_space): New class.
6674 * remote.c (remote_btrace_maybe_reopen): Use
6675 scoped_restore_current_thread.
6676 * symtab.c: Include "progspace-and-thread.h".
6677 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6678 * thread.c (print_thread_info_1): Use
6679 scoped_restore_current_thread.
6680 (struct current_thread_cleanup): Delete.
6681 (do_restore_current_thread_cleanup)
6682 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6683 (scoped_restore_current_thread::~scoped_restore_current_thread):
6684 ... this new dtor.
6685 (make_cleanup_restore_current_thread): Rename/convert to ...
6686 (scoped_restore_current_thread::scoped_restore_current_thread):
6687 ... this new ctor.
6688 (thread_apply_all_command): Use scoped_restore_current_thread.
6689 (thread_apply_command): Use scoped_restore_current_thread.
6690 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6691 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6692
6693 2017-05-04 Pedro Alves <palves@redhat.com>
6694
6695 * thread.c (make_cleanup_restore_current_thread): Move
6696 find_thread_ptid call before the is_stopped call. Assert that the
6697 thread is found. Replace is_stopped call by checking the thread's
6698 state directly. Remove unnecessary NULL-thread check.
6699
6700 2017-05-04 Pedro Alves <palves@redhat.com>
6701
6702 * corelow.c (thread_section_name): New class.
6703 (get_core_register_section, get_core_siginfo): Use it.
6704
6705 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6706
6707 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6708 (get_core_register_section): Remove xfree of NULL pointer.
6709
6710 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6711
6712 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6713 * regcache.c (regcache::raw_supply_zeroed): New function.
6714 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6715
6716 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6717
6718 * gdbarch.sh: Remove commented out definition of
6719 TARGET_CHAR_BIT.
6720 * gdbarch.h: Re-generate.
6721
6722 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6723
6724 * configure: Regenerate.
6725
6726 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6727
6728 * solib-target.c (solib_target_relocate_section_addresses):
6729 Remove num_section_bases, num_bases, segment_bases variables.
6730
6731 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6732
6733 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6734
6735 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6736
6737 * solib-target.c: Include <vector>
6738 (struct lm_info_target) <~lm_info_target>: Remove.
6739 <segment_bases, section_bases>: Change type to
6740 std::vector<CORE_ADDR>.
6741 (library_list_start_segment, library_list_start_section,
6742 library_list_end_library,
6743 solib_target_relocate_section_addresses): Adjust.
6744
6745 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6746
6747 * gdbarch.sh (software_single_step): Change return type to
6748 std::vector<CORE_ADDR>.
6749 * gdbarch.c, gdbarch.h: Re-generate.
6750 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6751 Adjust.
6752 (arm_deal_with_atomic_sequence_raw): Adjust.
6753 (thumb_get_next_pcs_raw): Adjust.
6754 (arm_get_next_pcs_raw): Adjust.
6755 (arm_get_next_pcs): Adjust.
6756 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6757 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6758 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6759 (alpha_software_single_step): Adjust.
6760 * alpha-tdep.h (alpha_software_single_step): Adjust.
6761 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6762 * arm-tdep.c (arm_software_single_step): Adjust.
6763 (arm_breakpoint_kind_from_current_state): Adjust.
6764 * arm-tdep.h (arm_software_single_step): Adjust.
6765 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6766 * cris-tdep.c (cris_software_single_step): Adjust.
6767 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6768 (micromips_deal_with_atomic_sequence): Adjust.
6769 (deal_with_atomic_sequence): Adjust.
6770 (mips_software_single_step): Adjust.
6771 * mips-tdep.h (mips_software_single_step): Adjust.
6772 * moxie-tdep.c (moxie_software_single_step): Adjust.
6773 * nios2-tdep.c (nios2_software_single_step): Adjust.
6774 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6775 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6776 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6777 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6778 * sparc-tdep.c (sparc_software_single_step): Adjust.
6779 * spu-tdep.c (spu_software_single_step): Adjust.
6780 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6781
6782 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6783
6784 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6785 * gdbarch.h: Re-generate.
6786
6787 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6788
6789 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6790 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6791 * python/py-instruction.c, python/py-instruction.h: New file.
6792 * python/py-record.c: Add py-instruction.h include.
6793 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6794 gdb.RecordInstruction.
6795 * python/python-internal.h: Add gdbpy_initialize_instruction
6796 declaration.
6797 * python/python.c (do_start_initialization): Add
6798 gdbpy_initialize_instruction.
6799
6800 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6801
6802 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6803 Remove.
6804 (btrace_func_from_recpy_func): New function.
6805 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6806 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6807 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6808 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6809 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6810 Also, use new helper functions.
6811 (btpy_list_item): Use new helper functions.
6812 (recpy_bt_function_call_history): Use new type name.
6813 (btpy_call_getset): Remove.
6814 (gdbpy_initialize_btrace): Remove code to initialize
6815 gdb.BtraceFunctionCall.
6816 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6817 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6818 recpy_bt_func_prev, recpy_bt_func_next): New export.
6819 * python/py-record.c (recpy_func_type): New static object.
6820 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6821 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6822 recpy_func_next): New function.
6823 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6824 (recpy_func_getset): New static object.
6825 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6826 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6827
6828 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6829
6830 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6831 (btpy_object, btpy_insn_type, btpy_new): Remove.
6832 (btpy_list_object): Use gdb.RecordInstruction type instead of
6833 gdb.BtraceInstruction type.
6834 (btrace_insn_from_recpy_insn): New function.
6835 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6836 btpy_new.
6837 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6838 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6839 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6840 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6841 instead of btpy_object.
6842 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6843 btpy_insn_data, btpy_insn_decode): Rename to ...
6844 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6845 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6846 recpy_bt_insn_decode): This. Also, use new helper functions.
6847 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6848 recpy_insn_type.
6849 (btpy_insn_getset): Remove.
6850 (gdbpy_initialize_btrace): Remove code to initialize
6851 gdb.BtraceInstruction. Use recpy_element_object.
6852 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6853 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6854 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6855 * python/py-record.c (recpy_insn_type): New static object.
6856 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6857 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6858 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6859 New function.
6860 (recpy_insn_getset): New static object.
6861 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6862 * python/py-record.h (recpy_element_object): New typedef.
6863 (recpy_insn_type, recpy_insn_new): New export.
6864
6865 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6866
6867 * py-record-btrace.c (btpy_insn_new): Removed.
6868 (btpy_insn_or_gap_new): New function.
6869 (btpy_insn_error): Removed.
6870 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6871 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6872 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6873 btpy_insn_or_gap_new instead of btpy_insn_new.
6874 (btpy_insn_getset): Remove btpy_insn_error.
6875 * py-record.c (recpy_gap_type): New static object.
6876 (recpy_gap_object): New typedef.
6877 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6878 recpy_gap_reason_string): New function.
6879 (recpy_gap_getset): New static object.
6880 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6881 * py-record.h (recpy_gap_new): New export.
6882
6883 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6884
6885 * python/py-record.c (recpy_ptid): Remove.
6886 (recpy_record_getset): Remove recpy_ptid.
6887
6888 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6889
6890 * btrace.c (btrace_fetch): Set inferior_ptid.
6891 * python/py-record-btrace.c: Add "py-record.h" include.
6892 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6893 recpy_bt_end, recpy_bt_instruction_history,
6894 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6895 in gdb.Record object instead of current ptid.
6896 * python/py-record.c: Include new "py-record.h" file.
6897 (recpy_record_object): Moved to py-record.h.
6898 * python/py-record.h: New file.
6899
6900 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6901
6902 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6903 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6904 indentation.
6905
6906 2017-05-01 Joel Brobecker <brobecker@adacore.com>
6907
6908 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6909 the past maintainers section.
6910
6911 2017-04-28 Yao Qi <yao.qi@linaro.org>
6912
6913 * infcmd.c (get_return_value): Use regcache ctor, and remove
6914 cleanup.
6915
6916 2017-04-28 Yao Qi <yao.qi@linaro.org>
6917 Pedro Alves <palves@redhat.com>
6918
6919 * regcache.c (regcache::regcache): New tag dispatch ctor.
6920 (do_cooked_read): Moved above.
6921 (regcache_dup): Use the tag dispatch ctor..
6922 * regcache.h (regcache): Declare ctor, delete copy ctor and
6923 assignment operator, remove friend regcache_dup.
6924
6925 2017-04-28 Yao Qi <yao.qi@linaro.org>
6926
6927 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6928 call method save instead of regcache_cpy.
6929 * regcache.h (struct regcache): Make regcache_dup a friend.
6930
6931 2017-04-28 Yao Qi <yao.qi@linaro.org>
6932
6933 * regcache.c (struct regcache): Move to regcache.h
6934 (regcache::arch): New method.
6935 (regcache_get_ptid): Update.
6936 (get_regcache_arch): Call arch method.
6937 (get_regcache_aspace): Call method aspace.
6938 (register_buffer): Change it to method.
6939 (regcache_save): Change it to regcache::save.
6940 (regcache_restore): Likewise.
6941 (regcache_cpy_no_passthrough): Remove the declaration.
6942 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6943 (regcache_cpy_no_passthrough): Change it to method
6944 cpy_no_passthrough.
6945 (regcache_register_status): Change it to method
6946 get_register_status.
6947 (regcache_invalidate): Change it to method invalidate.
6948 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6949 (regcache_raw_update): Change it to method raw_update.
6950 (regcache_raw_read): Likewise.
6951 (regcache_raw_read_signed): Likewise.
6952 (regcache_raw_read_unsigned): Likewise.
6953 (regcache_raw_write_signed): Likewise.
6954 (regcache_raw_write_unsigned): Likewise.
6955 (regcache_cooked_read): Likewise.
6956 (regcache_cooked_read_value): Likewise.
6957 (regcache_cooked_read_signed): Likewise.
6958 (regcache_cooked_read_unsigned): Likewise.
6959 (regcache_cooked_write_signed): Likewise.
6960 (regcache_cooked_write_unsigned): Likewise.
6961 (regcache_raw_set_cached_value): Likewise.
6962 (regcache_raw_write): Likewise.
6963 (regcache_cooked_write): Likewise.
6964 (regcache_xfer_part): Likewise.
6965 (regcache_raw_read_part): Likewise.
6966 (regcache_raw_write_part): Likewise.
6967 (regcache_cooked_read_part): Likewise.
6968 (regcache_cooked_write_part): Likewise.
6969 (regcache_raw_supply): Likewise.
6970 (regcache_raw_collect): Likewise.
6971 (regcache_transfer_regset): Likewise.
6972 (regcache_supply_regset): Likewise.
6973 (regcache_collect_regset): Likewise.
6974 (regcache_debug_print_register): Likewise.
6975 (enum regcache_dump_what): Move it to regcache.h.
6976 (regcache_dump): Change it to method dump.
6977 * regcache.h (enum regcache_dump_what): New.
6978 (class regcache): New.
6979 * target.c (target_fetch_registers): Call method
6980 debug_print_register.
6981 (target_store_registers): Likewise.
6982
6983 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6984
6985 * windows-nat.c (struct lm_info_windows): Initialize field.
6986 (windows_make_so): Allocate lm_info_windows with new.
6987 (windows_free_so): Free lm_info_windows with delete.
6988
6989 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6990
6991 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6992 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6993 cleanup.
6994 (darwin_free_so): Free lm_info_darwin with delete.
6995
6996 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6997
6998 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6999 <l_addr_p>: Change type to bool.
7000 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7001 (svr4_free_so): Free lm_info_svr4 with delete.
7002 (svr4_copy_library_list): Replace memcpy with call to copy
7003 constructor.
7004 (library_list_start_library, svr4_default_sos): Allocate
7005 lm_info_svr4 with new.
7006
7007 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 * solib-target.c (struct lm_info_target): Add destructor,
7010 initialize fields.
7011 <name>: Change type to std::string.
7012 (library_list_start_library): Allocate lm_info_target with new.
7013 (solib_target_free_library_list): Free lm_info_target with
7014 delete.
7015 (solib_target_current_sos): Adapt to std::string.
7016 (solib_target_free_so): Free lm_info_target with delete.
7017
7018 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7019
7020 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7021 fields.
7022 (frv_current_sos): Allocate lm_info_frv with new.
7023 (frv_relocate_main_executable): Free lm_info_frv with delete,
7024 allocate with new.
7025 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7026
7027 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7028
7029 * solib-frv.c (struct lm_info_frv): Fix indentation.
7030
7031 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7032
7033 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7034 map field.
7035 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7036 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7037 and allocate with new.
7038 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7039
7040 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7041
7042 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7043 <filename, member_name>: Change type to std::string.
7044 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7045 (library_list_start_library): Allocate lm_info_aix with new.
7046 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7047 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7048 with copy constructor.
7049
7050 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7051
7052 * solist.h (struct lm_info): Remove.
7053 (struct lm_info_base): New class.
7054 (struct so_list) <lm_info>: Change type to lm_info_base *.
7055 * nto-tdep.c (struct lm_info): Remove.
7056 (lm_addr): Adjust.
7057 * solib-aix.c (struct lm_info): Rename to ...
7058 (struct lm_info_aix): ... this. Extend lm_info_base.
7059 (lm_info_p): Rename to ...
7060 (lm_info_aix_p): ... this, and adjust.
7061 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7062 solib_aix_parse_libraries, library_list_start_library,
7063 solib_aix_free_library_list, solib_aix_parse_libraries,
7064 solib_aix_get_library_list,
7065 solib_aix_relocate_section_addresses, solib_aix_free_so,
7066 solib_aix_get_section_offsets,
7067 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7068 Adjust.
7069 (struct solib_aix_inferior_data) <library_list>: Adjust.
7070 * solib-darwin.c (struct lm_info): Rename to ...
7071 (struct lm_info_darwin): ... this. Extend lm_info_base.
7072 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7073 * solib-dsbt.c (struct lm_info): Rename to ...
7074 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7075 (struct dsbt_info) <main_executable_lm_info): Adjust.
7076 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7077 dsbt_relocate_section_addresses): Adjust.
7078 * solib-frv.c (struct lm_info): Rename to ...
7079 (struct lm_info_frv): ... this. Extend lm_info_base.
7080 (main_executable_lm_info): Adjust.
7081 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7082 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7083 find_canonical_descriptor_in_load_object,
7084 frv_fdpic_find_canonical_descriptor): Adjust.
7085 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7086 to lm_info_svr4.
7087 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7088 svr4_clear_so, svr4_copy_library_list,
7089 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7090 svr4_current_sos, svr4_fetch_objfile_link_map,
7091 solist_update_incremental): Adjust.
7092 * solib-svr4.h (struct lm_info_svr4): Move here from
7093 solib-svr4.c.
7094 * solib-target.c (struct lm_info): Rename to ...
7095 (struct lm_info_target): ... this. Extend lm_info_base.
7096 (lm_info_p): Rename to ...
7097 (lm_info_target_p): ... this.
7098 (solib_target_parse_libraries, library_list_start_segment,
7099 library_list_start_section, library_list_start_library,
7100 library_list_end_library, solib_target_free_library_list,
7101 solib_target_current_sos, solib_target_free_so,
7102 solib_target_relocate_section_addresses): Adjust.
7103 * windows-nat.c (struct lm_info): Rename to ...
7104 (struct lm_info_windows): ... this. Extend lm_info_base.
7105 (windows_make_so, handle_load_dll, handle_unload_dll,
7106 windows_xfer_shared_libraries): Adjust.
7107
7108 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7109
7110 * solib-darwin.c (struct darwin_so_list): Remove.
7111 (darwin_current_sos): Allocate an so_list object instead of a
7112 darwin_so_list, separately allocate an lm_info object.
7113 (darwin_free_so): Free lm_info.
7114
7115 2017-04-28 John Baldwin <jhb@FreeBSD.org>
7116
7117 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7118 with fprintf_filtered.
7119
7120 2017-04-28 Yao Qi <yao.qi@linaro.org>
7121
7122 * regcache.c (regcache::regcache): New function.
7123 (regcache::~regcache): New function.
7124 (regcache_xmalloc_1): Remove.
7125 (regcache_xmalloc): Call new regcache.
7126 (regcache_xfree): Call delete regcache.
7127 (get_thread_arch_aspace_regcache): Call new regcache.
7128
7129 2017-04-28 Yao Qi <yao.qi@linaro.org>
7130
7131 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7132 lwp instead of ptid_get_lwp.
7133
7134 2017-04-28 Yao Qi <yao.qi@linaro.org>
7135
7136 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7137 lwp_info instead of getting from inferior_ptid.
7138
7139 2017-04-27 Keith Seitz <keiths@redhat.com>
7140
7141 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7142 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7143 (CV_CONVERSION_BADNESS): Define.
7144 (rank_one_type): Remove overly restrictive rvalue reference
7145 rank checks.
7146 Add cv-qualifier checks and subranks for type equality.
7147 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7148 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7149 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7150
7151 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7152
7153 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7154 count when creating the object.
7155
7156 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7157 Ulrich Weigand <uweigand@de.ibm.com>
7158
7159 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7160 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7161 is used in AIX.
7162 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7163 (process_xcoff_symbol): Likewise.
7164 (scan_xcoff_symtab): Likewise.
7165
7166 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7167
7168 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7169 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7170 (ia64_access_reg): Use get_frame_register_unsigned.
7171 (ia64_access_rse_reg): Likewise.
7172 (ia64_libunwind_frame_prev_register): Likewise.
7173
7174 2017-04-26 Jiong Wang <jiong.wang@arm.com>
7175
7176 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7177 * gdbarch.c: Regenerated.
7178 * gdbarch.h: Regenerated.
7179 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7180 visibility external.
7181 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7182 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7183 (enum cfa_how_kind): Move to ...
7184 (struct dwarf2_frame_state_reg_info): Likewise.
7185 (struct dwarf2_frame_state): Likewise.
7186 * dwarf2-frame.h: ... here.
7187 (dwarf2_frame_state_alloc_regs): New declaration.
7188 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7189 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7190
7191 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7192
7193 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7194 regcache_raw_read_unsigned.
7195 (xtensa_pseudo_register_write): Likewise.
7196
7197 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7198
7199 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7200 (nds32_pseudo_register_write): Likewise.
7201
7202 2017-04-25 Yao Qi <yao.qi@linaro.org>
7203
7204 * regcache.c (struct regcache) <readonly_p>: Change its type
7205 to bool.
7206 (regcache_xmalloc_1): Update parameter type and callers update.
7207
7208 2017-04-25 Yao Qi <yao.qi@linaro.org>
7209
7210 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7211 set_gdbarch_wchar_bit.
7212 * arm-tdep.c (arm_gdbarch_init): Likewise.
7213
7214 2017-04-25 Pedro Alves <palves@redhat.com>
7215
7216 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7217 (BothAreRelocatable, memcopy, memmove): Don't define.
7218 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7219 macros.
7220
7221 2017-04-25 Pedro Alves <palves@redhat.com>
7222
7223 * common/common-defs.h: Include "common/poison.h".
7224 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7225 and adjust.
7226 * common/poison.h: New file.
7227 * common/traits.h: Include <type_traits>.
7228 (Not, Or, Requires): New, moved from common/function-view.h.
7229
7230 2017-04-25 Pedro Alves <palves@redhat.com>
7231
7232 * breakpoint.h (struct breakpoint): In-class initialize all
7233 fields. Make boolean fields "bool".
7234 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7235 memset call and initializations no longer necessary.
7236
7237 2017-04-25 Pedro Alves <palves@redhat.com>
7238
7239 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7240 reference.
7241 (pt_btrace_insn): New function.
7242 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7243
7244 2017-04-25 Pedro Alves <palves@redhat.com>
7245
7246 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7247 "base" field and inherit from "bp_location" instead. Add
7248 non-default ctor.
7249 (allocate_location_exception): Use new non-default ctor.
7250 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7251 (init_bp_location): Convert to ...
7252 (bp_location::bp_location): ... this new ctor, and remove memset
7253 call.
7254 (base_breakpoint_allocate_location): Use the new non-default ctor.
7255 * breakpoint.h (bp_location): Now a class. Declare default and
7256 non-default ctors. In-class initialize all members.
7257 (init_bp_location): Remove declaration.
7258
7259 2017-04-25 Pedro Alves <palves@redhat.com>
7260
7261 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7262 assignment operator.
7263
7264 2017-04-24 Yao Qi <yao.qi@linaro.org>
7265
7266 * doublest.c (convert_doublest_to_floatformat): Call
7267 floatformat_totalsize_bytes.
7268
7269 2017-04-22 Tom Tromey <tom@tromey.com>
7270
7271 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7272 ui_out_emit_list.
7273 * stack.c (print_frame): Use ui_out_emit_list.
7274 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7275 ui_out_emit_list.
7276 * mi/mi-main.c (print_one_inferior)
7277 (mi_cmd_data_list_register_names)
7278 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7279 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7280 ui_out_emit_list.
7281 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7282 (mi_output_solib_attribs): Use ui_out_emit_list,
7283 ui_out_emit_tuple.
7284 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7285 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7286 (mi_cmd_stack_list_args, list_args_or_locals): Use
7287 ui_out_emit_list.
7288 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7289 * breakpoint.c (print_solib_event, output_thread_groups): Use
7290 ui_out_emit_list.
7291
7292 2017-04-22 Tom Tromey <tom@tromey.com>
7293
7294 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7295 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7296 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7297
7298 2017-04-22 Tom Tromey <tom@tromey.com>
7299
7300 * tracepoint.c (tvariables_info_1)
7301 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7302
7303 2017-04-22 Tom Tromey <tom@tromey.com>
7304
7305 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7306 annotate_arg_emitter.
7307 * breakpoint.c (print_mention_watchpoint)
7308 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7309 * annotate.h (struct annotate_arg_emitter): New.
7310
7311 2017-04-22 Tom Tromey <tom@tromey.com>
7312
7313 * record-btrace.c (record_btrace_insn_history)
7314 (record_btrace_insn_history_range, record_btrace_call_history)
7315 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7316 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7317 ui_out_emit_tuple.
7318 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7319 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7320 * skip.c (skip_info): Use ui_out_emit_tuple.
7321 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7322 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7323 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7324 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7325 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7326 ui_out_emit_tuple.
7327 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7328 (output_register, mi_cmd_data_read_memory)
7329 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7330 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7331 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7332 Use ui_out_emit_tuple.
7333 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7334 ui_out_emit_tuple.
7335 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7336 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7337 * linux-thread-db.c (info_auto_load_libthread_db): Use
7338 ui_out_emit_tuple.
7339 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7340 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7341 * disasm.c (do_mixed_source_and_assembly_deprecated)
7342 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7343 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7344 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7345 * breakpoint.c (print_one_breakpoint_location)
7346 (print_one_breakpoint): Use ui_out_emit_tuple.
7347 * auto-load.c (print_script, info_auto_load_cmd): Use
7348 ui_out_emit_tuple.
7349 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7350
7351 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7352
7353 * thread.c (print_thread_info_1): Remove dead code.
7354
7355 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7356
7357 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7358 GDB_SELF_TEST.
7359 * arm-tdep.c (selftests::arm_record_test): Likewise.
7360
7361 2017-04-21 Yao Qi <yao.qi@linaro.org>
7362
7363 * regcache.c (regcache_restore): Remove argument 2. Replace
7364 argument 3 with regcache. Get register status from
7365 src->register_status and get register contents from
7366 register_buffer (src, regnum).
7367 (regcache_cpy): Update.
7368
7369 2017-04-19 Pedro Alves <palves@redhat.com>
7370
7371 * gdbthread.h (thread): Add missing closing parenthesis in
7372 comment.
7373
7374 2017-04-19 Pedro Alves <palves@redhat.com>
7375
7376 * common/refcounted-object.h: New file.
7377 * gdbthread.h: Include "common/refcounted-object.h".
7378 (thread_info): Inherit from refcounted_object and add comments.
7379 (thread_info::incref, thread_info::decref)
7380 (thread_info::m_refcount): Delete.
7381 (thread_info::deletable): Use the refcounted_object::refcount()
7382 method.
7383 * inferior.c (current_inferior_): Add comment.
7384 (set_current_inferior): Increment/decrement refcounts.
7385 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7386 not-deletable instead of comparing with the current inferior.
7387 (initialize_inferiors): Increment the initial inferior's refcount.
7388 * inferior.h (struct inferior): Forward declare.
7389 Include "common/refcounted-object.h".
7390 (current_inferior, set_current_inferior): Move declaration to
7391 before struct inferior's definition, and fix comment.
7392 (inferior): Inherit from refcounted_object. Add comments.
7393 * thread.c (switch_to_thread_no_regs): Reference the thread's
7394 inferior pointer directly instead of doing a ptid lookup.
7395 (switch_to_no_thread): New function.
7396 (switch_to_thread(thread_info *)): New function, factored out
7397 from ...
7398 (switch_to_thread(ptid_t)): ... this.
7399 (restore_current_thread): Delete.
7400 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7401 fields, and add 'inf' field.
7402 (do_restore_current_thread_cleanup): Check whether old->inf is
7403 alive instead of looking up an inferior by ptid. Use
7404 switch_to_thread and switch_to_no_thread.
7405 (restore_current_thread_cleanup_dtor): Use old->inf directly
7406 instead of lookup up an inferior by id. Decref the inferior.
7407 Don't restore 'removable'.
7408 (make_cleanup_restore_current_thread): Same the inferior pointer
7409 in old, instead of the inferior number. Incref the inferior.
7410 Don't save/clear 'removable'.
7411
7412 2017-04-19 Pedro Alves <palves@redhat.com>
7413
7414 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7415 unittests/scoped_restore-selftests.c.
7416 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7417 * common/scoped_restore.h (scoped_restore_base): Make "class".
7418 (scoped_restore_base::release): New public method.
7419 (scoped_restore_base::scoped_restore_base): New protected ctor.
7420 (scoped_restore_base::m_saved_var): New protected field.
7421 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7422 scoped_restore_base base class instead of m_saved_var directly.
7423 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7424 (scoped_restore_tmpl::scoped_restore_tmpl(const
7425 scoped_restore_tmpl<T>&)): Likewise.
7426 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7427 method.
7428 (scoped_restore_tmpl::saved_var): New method.
7429 (scoped_restore_tmpl::m_saved_var): Delete.
7430 * inferior.h (inferior::detaching): Now a bool.
7431 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7432 cleanup.
7433 * unittests/scoped_restore-selftests.c: New file.
7434
7435 2017-04-19 Pedro Alves <palves@redhat.com>
7436
7437 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7438 Re-sort in alphabetic order.
7439
7440 2017-04-18 Pedro Alves <palves@redhat.com>
7441
7442 * xml-support.c (obstack_xml_printf): Delete.
7443 * xml-support.h (obstack_xml_printf): Delete.
7444
7445 2017-04-18 Pedro Alves <palves@redhat.com>
7446
7447 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7448 vdebug, verror, body_text, start_element, end_element, name,
7449 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7450 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7451 is_xinclude>: Make private and add m_ prefix.
7452 (gdb_xml_parser::body_text): New method, based on ...
7453 (gdb_xml_body_text): ... this. Adjust.
7454 (gdb_xml_parser::vdebug): New method, based on ...
7455 (gdb_xml_debug): ... this. Adjust.
7456 (gdb_xml_parser::verror): New method, based on ...
7457 (gdb_xml_error): ... this. Adjust.
7458 (gdb_xml_parser::start_element): New method, based on ...
7459 (gdb_xml_start_element): ... this. Adjust.
7460 (gdb_xml_start_element_wrapper): Defer to
7461 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7462 (gdb_xml_parser::end_element): New method, based on ...
7463 (gdb_xml_end_element_wrapper): ... this. Adjust.
7464 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7465 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7466 (gdb_xml_parser::use_dtd): New method, based on ...
7467 (gdb_xml_use_dtd): ... this. Adjust.
7468 (gdb_xml_parser::parse): New method, based on ...
7469 (gdb_xml_parse): ... this. Adjust.
7470 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7471 (xinclude_start_include): Adjust to call the parser's name method.
7472 (xml_xinclude_default, xml_xinclude_start_doctype)
7473 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7474 method.
7475 (xml_process_xincludes): Adjust to call parser methods.
7476 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7477 declarations.
7478
7479 2017-04-18 Pedro Alves <palves@redhat.com>
7480
7481 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7482 gdb::optional<std::string>.
7483 * xml-support.c: Include <string>.
7484 (scope_level::scope_level(scope_level &&))
7485 (scope_level::~scope_level): Delete.
7486 (scope_level::body): Now a std::string.
7487 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7488 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7489 parameter.
7490 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7491 (xinclude_parsing_data::output): Now a std::string reference.
7492 (xinclude_start_include): Adjust.
7493 (xml_xinclude_default): Adjust.
7494 (xml_process_xincludes): Add 'output' parameter, and return bool.
7495 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7496 and return bool.
7497 * xml-tdesc.c: Include <unordered_map> and <string>.
7498 (tdesc_xml_cache): Delete.
7499 (tdesc_xml_cache_s): Delete.
7500 (xml_cache): Now an std::unordered_map.
7501 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7502 (target_fetch_description_xml): Change return type to
7503 gdb::optional<std::string>, and adjust.
7504 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7505 (target_fetch_description_xml): Change return type to
7506 gdb::optional<std::string>.
7507
7508 2017-04-18 Pedro Alves <palves@redhat.com>
7509
7510 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7511 unittests/optional-selftests.c.
7512 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7513 * unittests/optional-selftests.c: New file.
7514 * unittests/optional/assignment/1.cc: New file.
7515 * unittests/optional/assignment/2.cc: New file.
7516 * unittests/optional/assignment/3.cc: New file.
7517 * unittests/optional/assignment/4.cc: New file.
7518 * unittests/optional/assignment/5.cc: New file.
7519 * unittests/optional/assignment/6.cc: New file.
7520 * unittests/optional/assignment/7.cc: New file.
7521 * unittests/optional/cons/copy.cc: New file.
7522 * unittests/optional/cons/default.cc: New file.
7523 * unittests/optional/cons/move.cc: New file.
7524 * unittests/optional/cons/value.cc: New file.
7525 * unittests/optional/in_place.cc: New file.
7526 * unittests/optional/observers/1.cc: New file.
7527 * unittests/optional/observers/2.cc: New file.
7528
7529 2017-04-18 Pedro Alves <palves@redhat.com>
7530
7531 * common/gdb_optional.h: Include common/traits.h.
7532 (in_place_t): New type.
7533 (in_place): New constexpr variable.
7534 (optional::optional): Remove member initialization of
7535 m_instantiated.
7536 (optional::optional(in_place_t...)): New constructor.
7537 (optional::~optional): Use reset.
7538 (optional::optional(const optional&)): New.
7539 (optional::optional(const optional&&)): New.
7540 (optional::optional(T &)): New.
7541 (optional::optional(T &&)): New.
7542 (operator::operator=(const optional &)): New.
7543 (operator::operator=(optional &&)): New.
7544 (operator::operator= (const T &))
7545 (operator::operator= (T &&))
7546 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7547 (operator::reset): New.
7548 (operator::m_instantiated):: Add in-class initializer.
7549 * common/traits.h: Include <type_traits>.
7550 (struct And): New types.
7551
7552 2017-04-18 Pedro Alves <palves@redhat.com>
7553
7554 * xml-support.c: Include <vector>.
7555 (scope_level::scope_level(const gdb_xml_element *))
7556 (scope_level::scope_level(scope_level&&)): New.
7557 (scope_level::~scope_level): New.
7558 (scope_level_s): Delete.
7559 (gdb_xml_parser::scopes): Now a std::vector.
7560 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7561 Use std::vector.
7562 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7563 scope cleanup code.
7564 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7565 of the scopes member. Use std::vector::emplace_back.
7566
7567 2017-04-18 Pedro Alves <palves@redhat.com>
7568
7569 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7570 a bool.
7571 (gdb_xml_end_element): Change type of first parameter.
7572 (gdb_xml_cleanup): Rename to ...
7573 (gdb_xml_parser::~gdb_xml_parser): ... this.
7574 (gdb_xml_create_parser_and_cleanup): Delete with ...
7575 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7576 to this new ctor.
7577 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7578 using gdb_xml_create_parser_and_cleanup.
7579 (xinclude_parsing_data): Add ctor/dtor.
7580 (xml_xinclude_cleanup): Delete.
7581 (xml_process_xincludes): Create a local xinclude_parsing_data
7582 instead of heap-allocating one. Create a local gdb_xml_parser
7583 instead of heap-allocating one with
7584 gdb_xml_create_parser_and_cleanup.
7585
7586 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7587
7588 PR threads/20743
7589 * fbsd-nat.c (resume_one_thread_cb): Remove.
7590 (resume_all_threads_cb): Remove.
7591 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7592 iterate_over_threads.
7593
7594 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7595
7596 * NEWS: Create a new section for the next release branch.
7597 Rename the section of the current branch, now that it has
7598 been cut.
7599
7600 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7601
7602 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7603 * version.in: Bump version to 8.0.50.DATE-git.
7604
7605 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7606
7607 PR gdb/21385
7608 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7609 independently of the host, and fix build breakage on Cygwin.
7610
7611 2017-04-13 Pedro Alves <palves@redhat.com>
7612
7613 * inferior.c (free_inferior): Convert to ...
7614 (inferior::~inferior): ... this dtor.
7615 (inferior::inferior): New ctor, factored out from ...
7616 (add_inferior_silent): ... here. Allocate the inferior with a new
7617 expression.
7618 (delete_inferior): Call delete instead of free_inferior.
7619 * inferior.h (gdb_environ, continuation): Forward declare.
7620 (inferior): Now a class. Add in-class initialization to all
7621 members. Make boolean fields bool, except 'detaching'.
7622 (inferior::inferior): New explicit ctor.
7623 (inferior::~inferior): New.
7624
7625 2017-04-13 Pedro Alves <palves@redhat.com>
7626
7627 * inferior.c (init_inferior_list): Delete.
7628 * inferior.h (init_inferior_list): Delete.
7629
7630 2017-04-13 Pedro Alves <palves@redhat.com>
7631
7632 PR threads/13217
7633 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7634 (top level): Call it twice, with different thread sets.
7635
7636 2017-04-13 Pedro Alves <palves@redhat.com>
7637
7638 * thread.c: Include <algorithm>.
7639 (thread_array_cleanup): Delete.
7640 (scoped_inc_dec_ref): New class.
7641 (live_threads_count): New function.
7642 (set_thread_refcount): Delete.
7643 (tp_array_compar_ascending): Now a bool.
7644 (tp_array_compar): Convert to a std::sort comparison function.
7645 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7646 and live_threads_count.
7647
7648 2017-04-13 Pedro Alves <palves@redhat.com>
7649
7650 * infrun.c (follow_fork_inferior): Also switch the current
7651 inferior.
7652
7653 2017-04-13 Pedro Alves <palves@redhat.com>
7654
7655 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7656 before calling create_internal_breakpoint.
7657
7658 2017-04-13 Pedro Alves <palves@redhat.com>
7659
7660 * fork-child.c (execv_argv): New class.
7661 (breakup_args): Refactored as ...
7662 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7663 Copy arguments to storage and replace separators with NULL
7664 terminators in place.
7665 (escape_bang_in_quoted_argument): Adjust to return bool.
7666 (execv_argv::execv_argv): New ctor.
7667 (execv_argv::init_for_shell): New method, factored out from
7668 fork_inferior. Don't strdup strings into the vector.
7669 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7670 Remove free_vector_argv call.
7671
7672 2017-04-13 Yao Qi <yao.qi@linaro.org>
7673
7674 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7675 tdep->rx_psw_type.
7676
7677 2017-04-13 Yao Qi <yao.qi@linaro.org>
7678
7679 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7680 * rx-tdep.c (rx_gdbarch_init): Likewise.
7681
7682 2017-04-13 Pedro Alves <palves@redhat.com>
7683
7684 * breakpoint.h (struct breakpoint): Reindent.
7685
7686 2017-04-13 Pedro Alves <palves@redhat.com>
7687
7688 * breakpoint.c (bp_location): Rename to ...
7689 (bp_locations): ... this. All references updated.
7690 (bp_location_count): Rename to ...
7691 (bp_locations_count): ... this. All references updated.
7692 (bp_location_placed_address_before_address_max): Rename to ...
7693 (bp_locations_placed_address_before_address_max): ... this. All
7694 references updated.
7695 (bp_location_shadow_len_after_address_max): Rename to ...
7696 (bp_locations_shadow_len_after_address_max): ... this. All
7697 references updated.
7698 (bp_location_compare_addrs): Rename to ...
7699 (bp_locations_compare_addrs): ... this. All references updated.
7700 (bp_location_compare):Rename to ...
7701 (bp_locations_compare): ... this. All references updated.
7702 (bp_location_target_extensions_update): Rename to ...
7703 (bp_locations_target_extensions_update): ... this. All references
7704 updated.
7705
7706 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7707
7708 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7709 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7710 'sgtty.h'.
7711 * common/gdb_termios.h: New file, with parts of "terminal.h".
7712 * inflow.c: Include "gdb_termios.h".
7713 * ser-unix.c: Include "gdb_termios.h".
7714 * terminal.h: Move terminal-related defines to
7715 "common/gdb_termios.h".
7716
7717 2017-04-12 Tom Tromey <tom@tromey.com>
7718
7719 * probe.c (parse_probes): Update.
7720 * location.h (delete_event_location): Don't declare.
7721 (event_location_deleter::operator()): Update.
7722 * location.c (event_location_deleter::operator()): Rename from
7723 delete_event_location.
7724 * linespec.h (linespec_result) <location>: Change type to
7725 event_location_up.
7726 * linespec.c (canonicalize_linespec, event_location_to_sals)
7727 (decode_objc): Update.
7728 (linespec_result): Don't call delete_event_location.
7729 * breakpoint.c (create_breakpoints_sal)
7730 (bkpt_probe_create_sals_from_location)
7731 (strace_marker_create_sals_from_location): Update.
7732
7733 2017-04-12 Tom Tromey <tom@tromey.com>
7734
7735 * linespec.h (struct linespec_result): Add constructor and
7736 destructor.
7737 (init_linespec_result, destroy_linespec_result)
7738 (make_cleanup_destroy_linespec_result): Don't declare.
7739 * linespec.c (init_linespec_result): Remove.
7740 (linespec_result::~linespec_result): Rename from
7741 destroy_linespec_result. Update.
7742 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7743 Remove.
7744 * breakpoint.c (create_breakpoint, break_range_command)
7745 (decode_location_default): Update.
7746 * ax-gdb.c (agent_command_1): Update.
7747
7748 2017-04-12 Tom Tromey <tom@tromey.com>
7749
7750 * remote.c (remote_download_tracepoint): Update.
7751 * python/py-breakpoint.c (bppy_get_location): Update.
7752 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7753 (gdbscm_breakpoint_location): Update.
7754 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7755 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7756 Change type to event_location_up.
7757 * breakpoint.c (create_overlay_event_breakpoint)
7758 (create_longjmp_master_breakpoint)
7759 (create_std_terminate_master_breakpoint)
7760 (create_exception_master_breakpoint)
7761 (breakpoint_event_location_empty_p, print_breakpoint_location)
7762 (print_one_breakpoint_location, create_thread_event_breakpoint)
7763 (init_breakpoint_sal, create_breakpoint)
7764 (print_recreate_ranged_breakpoint, break_range_command)
7765 (init_ada_exception_breakpoint, say_where): Update.
7766 (base_breakpoint_dtor): Don't call delete_event_location.
7767 (bkpt_print_recreate, tracepoint_print_recreate)
7768 (dprintf_print_recreate, update_static_tracepoint)
7769 (breakpoint_re_set_default): Update.
7770
7771 2017-04-12 Tom Tromey <tom@tromey.com>
7772
7773 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7774 type of "to_do". Update.
7775 (compute_stack_depth): Use std::vector.
7776
7777 2017-04-12 Tom Tromey <tom@tromey.com>
7778
7779 * printcmd.c (find_instruction_backward): Use std::vector.
7780
7781 2017-04-12 Tom Tromey <tom@tromey.com>
7782
7783 * symfile.c (objfilep): Remove typedef.
7784 (reread_symbols): Use a std::vector.
7785
7786 2017-04-12 Tom Tromey <tom@tromey.com>
7787
7788 * mi/mi-main.c (exec_direction_forward): Remove.
7789 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7790 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7791 scoped_restore.
7792 * guile/guile.c (guile_repl_command, guile_command)
7793 (gdbscm_execute_gdb_command): Use scoped_restore.
7794 * go-exp.y (go_parse): Use scoped_restore.
7795 * d-exp.y (d_parse): Use scoped_restore.
7796 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7797 * c-exp.y (c_parse): Use scoped_restore.
7798
7799 2017-04-12 Tom Tromey <tom@tromey.com>
7800
7801 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7802 (mi_parse): Update return type.
7803 (mi_parse_free): Remove.
7804 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7805 (mi_parse::~mi_parse): Rename from mi_parse_free.
7806 (mi_parse_cleanup): Remove.
7807 (mi_parse): Return a unique_ptr. Use new.
7808 * mi/mi-main.c (mi_execute_command): Update.
7809
7810 2017-04-12 Tom Tromey <tom@tromey.com>
7811
7812 * location.c (explicit_location_lex_one): Return a
7813 unique_xmalloc_ptr.
7814 (string_to_explicit_location): Update. Remove cleanups.
7815
7816 2017-04-12 Tom Tromey <tom@tromey.com>
7817
7818 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7819 (compare_value_and_voffset): Change type. Update.
7820 (compute_vtable_size): Change type of "offset_vec".
7821 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7822 (gnuv3_get_typeid): Remove extraneous declaration.
7823
7824 2017-04-12 Tom Tromey <tom@tromey.com>
7825
7826 * charset.h (wchar_iterator): Fix comment.
7827
7828 2017-04-12 Tom Tromey <tom@tromey.com>
7829
7830 * charset.c (iconv_wrapper): New class.
7831 (cleanup_iconv): Remove.
7832 (convert_between_encodings): Use it.
7833
7834 2017-04-12 Tom Tromey <tom@tromey.com>
7835
7836 * symfile.h (increment_reading_symtab): Update type.
7837 * symfile.c (decrement_reading_symtab): Remove.
7838 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7839 * psymtab.c (psymtab_to_symtab): Update.
7840 * dwarf2read.c (dw2_instantiate_symtab): Update.
7841
7842 2017-04-12 Tom Tromey <tom@tromey.com>
7843
7844 * jit.c (struct jit_reader): Declare separately. Add constructor
7845 and destructor. Change type of "handle".
7846 (loaded_jit_reader): Define separately.
7847 (jit_reader_load): Update. New "new".
7848 (jit_reader_unload_command): Use "delete".
7849 * gdb-dlfcn.h (struct dlclose_deleter): New.
7850 (gdb_dlhandle_up): New typedef.
7851 (gdb_dlopen, gdb_dlsym): Update types.
7852 (gdb_dlclose): Remove.
7853 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7854 (gdb_dlsym): Change type of "handle".
7855 (make_cleanup_dlclose): Remove.
7856 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7857 * compile/compile-c-support.c (load_libcc): Update.
7858
7859 2017-04-12 Tom Tromey <tom@tromey.com>
7860
7861 * symtab.h (find_pcs_for_symtab_line): Change return type.
7862 * symtab.c (find_pcs_for_symtab_line): Change return type.
7863 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7864 type of "vec". Update.
7865 (ltpy_get_pcs_for_line): Update.
7866 * linespec.c (decode_digits_ordinary): Update.
7867
7868 2017-04-12 Tom Tromey <tom@tromey.com>
7869
7870 * tracepoint.c (actions_command): Update.
7871 * python/python.c (python_command, python_interactive_command):
7872 Update.
7873 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7874 * guile/guile.c (guile_command): Update.
7875 * defs.h (read_command_lines, read_command_lines_1): Return
7876 command_line_up.
7877 (command_lines_deleter): New struct.
7878 (command_line_up): New typedef.
7879 * compile/compile.c (compile_code_command)
7880 (compile_print_command): Update.
7881 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7882 command_line_up.
7883 (make_cleanup_free_command_lines): Remove.
7884 * cli/cli-script.c (get_command_line, read_command_lines_1)
7885 (copy_command_lines): Return command_line_up.
7886 (while_command, if_command, read_command_lines, define_command)
7887 (document_command): Update.
7888 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7889 Remove.
7890 * breakpoint.h (breakpoint_set_commands): Change type of
7891 "commands".
7892 * breakpoint.c (breakpoint_set_commands): Change type of
7893 "commands". Update.
7894 (do_map_commands_command, update_dprintf_command_list)
7895 (create_tracepoint_from_upload): Update.
7896
7897 2017-04-12 Tom Tromey <tom@tromey.com>
7898
7899 * tracepoint.c (scope_info): Update.
7900 * spu-tdep.c (spu_catch_start): Update.
7901 * python/python.c (gdbpy_decode_line): Update.
7902 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7903 * python/py-breakpoint.c (bppy_init): Update.
7904 * probe.c (parse_probes): Update.
7905 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7906 * location.h (event_location_deleter): New struct.
7907 (event_location_up): New typedef.
7908 (new_linespec_location, new_address_location, new_probe_location)
7909 (new_explicit_location, copy_event_location)
7910 (string_to_event_location, string_to_event_location_basic)
7911 (string_to_explicit_location): Update return type.
7912 (make_cleanup_delete_event_location): Remove.
7913 * location.c (new_linespec_location, new_address_location)
7914 (new_probe_location, new_explicit_location, copy_event_location):
7915 Return event_location_up.
7916 (delete_event_location_cleanup)
7917 (make_cleanup_delete_event_location): Remove.
7918 (string_to_explicit_location, string_to_event_location_basic)
7919 (string_to_event_location): Return event_location_up.
7920 * linespec.c (canonicalize_linespec, event_location_to_sals)
7921 (decode_line_with_current_source)
7922 (decode_line_with_last_displayed, decode_objc): Update.
7923 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7924 * completer.c (location_completer): Update.
7925 * cli/cli-cmds.c (edit_command, list_command): Update.
7926 * breakpoint.c (create_overlay_event_breakpoint)
7927 (create_longjmp_master_breakpoint)
7928 (create_std_terminate_master_breakpoint)
7929 (create_exception_master_breakpoint)
7930 (create_thread_event_breakpoint): Update.
7931 (init_breakpoint_sal): Update. Remove some dead code.
7932 (create_breakpoint_sal): Change type of "location". Update.
7933 (create_breakpoints_sal, create_breakpoint, break_command_1)
7934 (dprintf_command, break_range_command, until_break_command)
7935 (init_ada_exception_breakpoint)
7936 (strace_marker_create_sals_from_location)
7937 (update_static_tracepoint, trace_command, ftrace_command)
7938 (strace_command, create_tracepoint_from_upload): Update.
7939 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7940 * ax-gdb.c (agent_command_1): Update.
7941
7942 2017-04-12 Pedro Alves <palves@redhat.com>
7943
7944 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7945 * configure.tgt: Handle i[34567]86-*-go32* and
7946 i[34567]86-*-msdosdjgpp*.
7947 * i386-tdep.c (i386_svr4_reg_to_regnum):
7948 Make extern.
7949 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7950 i386-go32-tdep.c.
7951 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7952 * i386-go32-tdep.c: New file.
7953 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7954 declarations.
7955
7956 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7957
7958 * aix-thread.c (pd_status2str): Change return type to const char *.
7959
7960 2017-04-12 Pedro Alves <palves@redhat.com>
7961
7962 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7963 calls to set_gdbarch_gnu_triplet_regexp.
7964
7965 2017-04-12 Pedro Alves <palves@redhat.com>
7966
7967 PR gdb/21323
7968 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7969 New enum value.
7970 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7971 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7972 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7973 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7974 * gdbarch.h, gdbarch.c: Regenerate.
7975 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7976 gdbarch_wchar_bit and gdbarch_wchar_signed.
7977 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7978 * arm-tdep.c (arm_gdbarch_init): Likewise.
7979 * avr-tdep.c (avr_gdbarch_init): Likewise.
7980 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7981 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7982 * i386-tdep.c (i386_go32_init_abi): Likewise.
7983 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7984 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7985 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7986 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7987 * sh-tdep.c (sh_gdbarch_init): Likewise.
7988 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7989 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7990 * windows-tdep.c (windows_init_abi): Likewise.
7991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7992
7993 2017-04-12 Pedro Alves <palves@redhat.com>
7994
7995 PR c++/21323
7996 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7997 cplus_primitive_type_char32_t>: New enum values.
7998 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7999 and cplus_primitive_type_char32_t.
8000 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8001 32, use the archtecture's built-in type for char16_t and char32_t,
8002 respectively. Otherwise, fallback to init_integer_type as before,
8003 but make the type unsigned, and issue a complaint.
8004 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8005
8006 2017-04-12 Alan Hayward <alan.hayward@arm.com>
8007
8008 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
8009 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8010
8011 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8012
8013 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8014 'const char *'.
8015
8016 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8017
8018 * common/common-utils.c (free_vector_argv): New function.
8019 * common/common-utils.h: Include <vector>.
8020 (free_vector_argv): New prototype.
8021 * darwin-nat.c (darwin_create_inferior): Rewrite function
8022 prototype in order to constify "exec_file" and accept a
8023 "std::string" for "allargs".
8024 * fork-child.c: Include <vector>.
8025 (breakup_args): Rewrite function, using C++.
8026 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8027 and accept "std::string" for "allargs". Update the code to
8028 calculate "argv" based on "allargs". Update calls to "exec_fun"
8029 and "execvp".
8030 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8031 order to constify "exec_file" and accept a "std::string" for
8032 "allargs".
8033 * go32-nat.c (go32_create_inferior): Likewise.
8034 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8035 * infcmd.c (run_command_1): Constify "exec_file". Use
8036 "std::string" for inferior arguments.
8037 * inferior.h (fork_inferior): Update prototype.
8038 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8039 prototype in order to constify "exec_file" and accept a
8040 "std::string" for "allargs".
8041 * nto-procfs.c (procfs_create_inferior): Likewise.
8042 * procfs.c (procfs_create_inferior): Likewise.
8043 * remote-sim.c (gdbsim_create_inferior): Likewise.
8044 * remote.c (extended_remote_run): Update code to accept
8045 "std::string" as argument.
8046 (extended_remote_create_inferior): Rewrite function prototype in
8047 order to constify "exec_file" and accept a "std::string" for
8048 "allargs".
8049 * rs6000-nat.c (super_create_inferior): Likewise.
8050 (rs6000_create_inferior): Likewise.
8051 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8052 * windows-nat.c (windows_create_inferior): Likewise.
8053
8054 2017-04-11 Pedro Alves <palves@redhat.com>
8055
8056 * thread.c: Fix whitespace throughout.
8057
8058 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8059
8060 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8061
8062 2017-04-11 Alan Hayward <alan.hayward@arm.com>
8063
8064 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8065
8066 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8067
8068 PR gdb/21364
8069 * osdata.c (info_osdata): Check if 'type' is an empty string
8070 instead of NULL.
8071
8072 2017-04-10 Pedro Alves <palves@redhat.com>
8073
8074 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8075 (ptid_to_global_thread_id, in_thread_list)
8076 (do_captured_list_thread_ids, set_resumed, set_running)
8077 (set_executing, set_stop_requested, finish_thread_state)
8078 (validate_registers_access, can_access_registers_ptid)
8079 (print_thread_info_1, switch_to_thread)
8080 (do_restore_current_thread_cleanup)
8081 (make_cleanup_restore_current_thread, thread_command)
8082 (thread_name_command): Use operator== instead of ptid_equal.
8083
8084 2017-04-10 Pedro Alves <palves@redhat.com>
8085
8086 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8087 (current_thread_cleanup_chain): Delete.
8088 (restore_current_thread_cleanup_dtor)
8089 (make_cleanup_restore_current_thread): Remove references to
8090 current_thread_cleanup_chain.
8091
8092 2017-04-10 Alan Hayward <alan.hayward@arm.com>
8093
8094 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8095 REG_UNKNOWN.
8096
8097 2017-04-10 Yao Qi <yao.qi@linaro.org>
8098
8099 PR gdb/19942
8100 * gdbthread.h (thread_info::deletable): New method.
8101 (thread_info::incref): New method.
8102 (thread_info::decref): New method.
8103 (thread_info::refcount): Move it to private.
8104 * infrun.c (save_stop_context): Call inc_refcount.
8105 (release_stop_context_cleanup): Likewise.
8106 * thread.c (set_thread_exited): New function.
8107 (init_thread_list): Delete "tp" only it is deletable, otherwise
8108 call set_thread_exited.
8109 (delete_thread_1): Call set_thread_exited.
8110 (current_thread_cleanup) <inferior_pid>: Remove.
8111 <thread>: New field.
8112 (restore_current_thread_ptid_changed): Removed.
8113 (do_restore_current_thread_cleanup): Adjust.
8114 (restore_current_thread_cleanup_dtor): Don't call
8115 find_thread_ptid.
8116 (set_thread_refcount): Use dec_refcount.
8117 (make_cleanup_restore_current_thread): Adjust.
8118 (thread_apply_all_command): Call inc_refcount.
8119 (_initialize_thread): Don't call
8120 observer_attach_thread_ptid_changed.
8121
8122 2017-04-10 Yao Qi <yao.qi@linaro.org>
8123
8124 * thread.c (delete_thread_1): Hoist code on marking thread as
8125 exited.
8126
8127 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8128
8129 * windows-nat.c (windows_detach): Initialize ptid with
8130 minus_one_ptid.
8131
8132 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8133
8134 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8135
8136 2017-04-07 Alan Hayward <alan.hayward@arm.com>
8137
8138 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8139 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8140 (bfin_pseudo_register_write): Likewise
8141
8142 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8143
8144 * common/ptid.h (struct ptid): Change to...
8145 (class ptid_t): ... this.
8146 <ptid_t>: New constructors.
8147 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8148 matches>: New methods.
8149 <make_null, make_minus_one>: New static methods.
8150 <pid>: Rename to...
8151 <m_pid>: ...this.
8152 <lwp>: Rename to...
8153 <m_lwp>: ...this.
8154 <tid>: Rename to...
8155 <m_tid>: ...this.
8156 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8157 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8158 as references, move comment to class ptid_t.
8159 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8160 ptid_t static methods.
8161 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8162 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8163 Take ptid arguments as references, implement using ptid_t methods.
8164 * unittests/ptid-selftests.c: New file.
8165 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8166 unittests/ptid-selftests.c.
8167 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8168
8169 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8170
8171 * python/python.c (python_run_simple_file): Cast mode literal to
8172 non-const char pointer as expected by PyFile_FromString.
8173
8174 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8175
8176 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8177 minus_one_ptid and null_ptid.
8178
8179 2017-04-05 Pedro Alves <palves@redhat.com>
8180
8181 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8182 * configure: Regenerate.
8183
8184 2017-04-05 Pedro Alves <palves@redhat.com>
8185
8186 * ada-exp.y (yyerror): Constify.
8187 * ada-lang.c (bound_name, get_selections)
8188 (ada_variant_discrim_type)
8189 (ada_variant_discrim_name, ada_value_struct_elt)
8190 (ada_lookup_struct_elt_type, is_unchecked_variant)
8191 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8192 (catch_ada_exception_command_split)
8193 (catch_ada_assert_command_split, catch_assert_command)
8194 (ada_op_name): Constify.
8195 * ada-lang.h (ada_yyerror, get_selections)
8196 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8197 * arc-tdep.c (arc_print_frame_cache): Constify.
8198 * arm-tdep.c (arm_skip_stub): Constify.
8199 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8200 (gen_aggregate_elt_ref): Constify.
8201 * bcache.c (print_bcache_statistics): Constify.
8202 * bcache.h (print_bcache_statistics): Constify.
8203 * break-catch-throw.c (catch_exception_command_1):
8204 * breakpoint.c (struct ep_type_description::description):
8205 Constify.
8206 (add_solib_catchpoint): Constify.
8207 (catch_fork_command_1): Add cast.
8208 (add_catch_command): Constify.
8209 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8210 Constify.
8211 * bsd-uthread.c (bsd_uthread_state): Constify.
8212 * buildsym.c (patch_subfile_names): Constify.
8213 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8214 Constify.
8215 * c-exp.y (yyerror): Constify.
8216 (token::oper): Constify.
8217 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8218 * c-varobj.c (cplus_describe_child): Constify.
8219 * charset.c (find_charset_names): Add cast.
8220 (find_charset_names): Constify array and add const_cast.
8221 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8222 (edit_command): Constify.
8223 * cli/cli-decode.c (lookup_cmd): Constify.
8224 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8225 Constify.
8226 (struct dump_context): Constify.
8227 (add_dump_command, restore_command): Constify.
8228 * cli/cli-script.c (get_command_line): Constify.
8229 * cli/cli-script.h (get_command_line): Constify.
8230 * cli/cli-utils.c (check_for_argument): Constify.
8231 * cli/cli-utils.h (check_for_argument): Constify.
8232 * coff-pe-read.c (struct read_pe_section_data): Constify.
8233 * command.h (lookup_cmd): Constify.
8234 * common/print-utils.c (decimal2str): Constify.
8235 * completer.c (gdb_print_filename): Constify.
8236 * corefile.c (set_gnutarget): Constify.
8237 * cp-name-parser.y (yyerror): Constify.
8238 * cp-valprint.c (cp_print_class_member): Constify.
8239 * cris-tdep.c (cris_register_name, crisv32_register_name):
8240 Constify.
8241 * d-exp.y (yyerror): Constify.
8242 (struct token::oper): Constify.
8243 * d-lang.h (d_yyerror): Constify.
8244 * dbxread.c (struct header_file_location::name): Constify.
8245 (add_old_header_file, add_new_header_file, last_function_name)
8246 (dbx_next_symbol_text, add_bincl_to_list)
8247 (find_corresponding_bincl_psymtab, set_namestring)
8248 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8249 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8250 * defs.h (command_line_input, print_address_symbolic)
8251 (deprecated_readline_begin_hook): Constify.
8252 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8253 Constify.
8254 * event-top.c (handle_line_of_input): Constify and add cast.
8255 * exceptions.c (catch_errors): Constify.
8256 * exceptions.h (catch_errors): Constify.
8257 * expprint.c (print_subexp_standard, op_string, op_name)
8258 (op_name_standard, dump_raw_expression, dump_raw_expression):
8259 * expression.h (op_name, op_string, dump_raw_expression):
8260 Constify.
8261 * f-exp.y (yyerror): Constify.
8262 (struct token::oper): Constify.
8263 (struct f77_boolean_val::name): Constify.
8264 * f-lang.c (f_word_break_characters): Constify.
8265 * f-lang.h (f_yyerror): Constify.
8266 * fork-child.c (fork_inferior): Add cast.
8267 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8268 (new_variant): Constify.
8269 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8270 * gdbarch.c: Regenerate.
8271 * gdbcore.h (set_gnutarget): Constify.
8272 * go-exp.y (yyerror): Constify.
8273 (token::oper): Constify.
8274 * go-lang.h (go_yyerror): Constify.
8275 * go32-nat.c (go32_sysinfo): Constify.
8276 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8277 * guile/scm-cmd.c (cmdscm_function): Constify.
8278 * guile/scm-param.c (pascm_param_value): Constify.
8279 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8280 (h8300sx_register_name): Constify.
8281 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8282 Constify.
8283 * ia64-tdep.c (ia64_register_names): Constify.
8284 * infcmd.c (construct_inferior_arguments): Constify.
8285 (path_command, attach_post_wait): Constify.
8286 * language.c (show_range_command, show_case_command)
8287 (unk_lang_error): Constify.
8288 * language.h (language_defn::la_error)
8289 (language_defn::la_name_of_this): Constify.
8290 * linespec.c (decode_line_2): Constify.
8291 * linux-thread-db.c (thread_db_err_str): Constify.
8292 * lm32-tdep.c (lm32_register_name): Constify.
8293 * m2-exp.y (yyerror): Constify.
8294 * m2-lang.h (m2_yyerror): Constify.
8295 * m32r-tdep.c (m32r_register_names): Constify and make static.
8296 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8297 * m88k-tdep.c (m88k_register_name): Constify.
8298 * macroexp.c (appendmem): Constify.
8299 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8300 (upgrade_type, parse_external, parse_partial_symbols)
8301 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8302 (new_symbol): Constify.
8303 * memattr.c (mem_info_command): Constify.
8304 * mep-tdep.c (register_name_from_keyword): Constify.
8305 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8306 Constify.
8307 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8308 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8309 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8310 cast.
8311 (mi_execute_async_cli_command): Constify.
8312 * mips-tdep.c (mips_register_name): Constify.
8313 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8314 (am33_register_name, am33_2_register_name)
8315 * moxie-tdep.c (moxie_register_names): Constify.
8316 * nat/linux-osdata.c (osdata_type): Constify fields.
8317 * nto-tdep.c (nto_parse_redirection): Constify.
8318 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8319 (lookup_child_selector): Constify.
8320 (objc_methcall::name): Constify.
8321 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8322 (lookup_struct_typedef): Constify.
8323 * objfiles.c (pc_in_section): Constify.
8324 * objfiles.h (pc_in_section): Constify.
8325 * p-exp.y (struct token::oper): Constify.
8326 (yyerror): Constify.
8327 * p-lang.h (pascal_yyerror): Constify.
8328 * parser-defs.h (op_name_standard): Constify.
8329 (op_print::string): Constify.
8330 (exp_descriptor::op_name): Constify.
8331 * printcmd.c (print_address_symbolic): Constify.
8332 * psymtab.c (print_partial_symbols): Constify.
8333 * python/py-breakpoint.c (stop_func): Constify.
8334 (bppy_get_expression): Constify.
8335 * python/py-cmd.c (cmdpy_completer::name): Constify.
8336 (cmdpy_function): Constify.
8337 * python/py-event.c (evpy_add_attribute)
8338 (gdbpy_initialize_event_generic): Constify.
8339 * python/py-event.h (evpy_add_attribute)
8340 (gdbpy_initialize_event_generic): Constify.
8341 * python/py-evts.c (add_new_registry): Constify.
8342 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8343 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8344 * python/py-inferior.c (get_buffer): Add cast.
8345 * python/py-param.c (parm_constant::name): Constify.
8346 * python/py-unwind.c (fprint_frame_id): Constify.
8347 * python/python.c (gdbpy_parameter_value): Constify.
8348 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8349 * remote.c (memory_packet_config::name): Constify.
8350 (show_packet_config_cmd, remote_write_bytes)
8351 (remote_buffer_add_string):
8352 * reverse.c (exec_reverse_once): Constify.
8353 * rs6000-tdep.c (variant::name, variant::description): Constify.
8354 * rust-exp.y (rustyyerror): Constify.
8355 * rust-lang.c (rust_op_name): Constify.
8356 * rust-lang.h (rustyyerror): Constify.
8357 * serial.h (serial_ops::name): Constify.
8358 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8359 (sh_sh3e_register_name, sh_sh2e_register_name)
8360 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8361 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8362 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8363 (sh_sh4al_dsp_register_name): Constify.
8364 * sh64-tdep.c (sh64_register_name): Constify.
8365 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8366 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8367 * stabsread.c (patch_block_stabs, read_type_number)
8368 (ref_map::stabs, ref_add, process_reference)
8369 (symbol_reference_defined, define_symbol, define_symbol)
8370 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8371 (read_one_struct_field, read_struct_fields, read_baseclasses)
8372 (read_tilde_fields, read_struct_type, read_array_type)
8373 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8374 (read_huge_number, read_range_type, read_args, common_block_start)
8375 (find_name_end): Constify.
8376 * stabsread.h (common_block_start, define_symbol)
8377 (process_one_symbol, symbol_reference_defined, ref_add):
8378 * symfile.c (get_section_index, add_symbol_file_command):
8379 * symfile.h (get_section_index): Constify.
8380 * target-descriptions.c (tdesc_type::name): Constify.
8381 (tdesc_free_type): Add cast.
8382 * target.c (find_default_run_target):
8383 (add_deprecated_target_alias, find_default_run_target)
8384 (target_announce_detach): Constify.
8385 (do_option): Constify.
8386 * target.h (add_deprecated_target_alias): Constify.
8387 * thread.c (print_thread_info_1): Constify.
8388 * top.c (deprecated_readline_begin_hook, command_line_input):
8389 Constify.
8390 (init_main): Add casts.
8391 * top.h (handle_line_of_input): Constify.
8392 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8393 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8394 (tfind_command): Rename to ...
8395 (tfind_command_1): ... this and constify.
8396 (tfind_command): New function.
8397 (tfind_end_command, tfind_start_command): Adjust.
8398 (encode_source_string): Constify.
8399 * tracepoint.h (encode_source_string): Constify.
8400 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8401 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8402 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8403 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8404 * tui/tui-win.c (parse_scrolling_args): Constify.
8405 * tui/tui-windata.c (tui_erase_data_content): Constify.
8406 * tui/tui-windata.h (tui_erase_data_content): Constify.
8407 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8408 * tui/tui.c (tui_enable): Add cast.
8409 * utils.c (defaulted_query): Constify.
8410 (init_page_info): Add cast.
8411 (puts_debug, subset_compare): Constify.
8412 * utils.h (subset_compare): Constify.
8413 * varobj.c (varobj_format_string): Constify.
8414 * varobj.h (varobj_format_string): Constify.
8415 * vax-tdep.c (vax_register_name): Constify.
8416 * windows-nat.c (windows_detach): Constify.
8417 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8418 * xml-support.c (gdb_xml_end_element): Constify.
8419 * xml-tdesc.c (tdesc_start_reg): Constify.
8420 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8421 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8422 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8423
8424 2017-04-05 Pedro Alves <palves@redhat.com>
8425
8426 * proc-api.c (struct trans): Constify.
8427 (procfs_note): Constify.
8428 * proc-events.c (struct trans, syscall_table):
8429 * proc-flags.c (struct trans): Constify.
8430 * proc-utils.h (procfs_note): Constify.
8431 * proc-why.c (struct trans): Constify.
8432 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8433 (procfs_detach): Constify.
8434 * sol-thread.c (struct string_map): Constify.
8435 (td_err_string, td_state_string): Constify.
8436
8437 2017-04-05 Pedro Alves <palves@redhat.com>
8438
8439 * proc-api.c (procfs_filename): Don't initialize
8440 procfs_filename.
8441 (prepare_to_trace): Assume procfs_filename is non-NULL.
8442 (_initialize_proc_api): Give procfs_filename a default value here.
8443
8444 2017-04-05 Pedro Alves <palves@redhat.com>
8445
8446 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8447 'cond_string' parameter.
8448 (extract_exception_regexp): Constify 'string' parameter.
8449 (catch_exception_command_1): Constify.
8450 * breakpoint.c (init_catchpoint)
8451 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8452 parameter.
8453 (ep_parse_optional_if_clause, catch_fork_command_1)
8454 (catch_exec_command_1): Constify.
8455 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8456 parameter.
8457 (ep_parse_optional_if_clause): Constify.
8458 * cli/cli-utils.c (remove_trailing_whitespace)
8459 (check_for_argument): Constify.
8460 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8461 non-const overload.
8462 (check_for_argument): Likewise.
8463
8464 2017-04-05 Pedro Alves <palves@redhat.com>
8465
8466 * event-top.c (command_line_handler): Add cast to execute_command
8467 call.
8468 * record-btrace.c (cmd_record_btrace_bts_start)
8469 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8470 (cmd_record_btrace_start): Add cast to execute_command call.
8471 * record-full.c (record_full_goto_insn):
8472 * record.c (record_start, record_stop): Add cast to
8473 execute_command_to_string calls.
8474 (cmd_record_start): Add cast to execute_command calls.
8475
8476 2017-04-05 Pedro Alves <palves@redhat.com>
8477
8478 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8479 static inline function.
8480 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8481 array and use gdb_PyArg_ParseTupleAndKeywords.
8482 * python/py-cmd.c (cmdpy_init): Likewise.
8483 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8484 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8485 (infpy_search_memory): Likewise.
8486 * python/py-objfile.c (objfpy_add_separate_debug_file)
8487 (gdbpy_lookup_objfile): Likewise.
8488 * python/py-symbol.c (gdbpy_lookup_symbol)
8489 (gdbpy_lookup_global_symbol): Likewise.
8490 * python/py-type.c (gdbpy_lookup_type): Likewise.
8491 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8492 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8493 Likewise.
8494
8495 2017-04-05 Pedro Alves <palves@redhat.com>
8496
8497 * python/python-internal.h (gdb_PyGetSetDef): New type.
8498 * python/py-block.c (block_object_getset)
8499 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8500 * python/py-event.c (event_object_getset)
8501 (finish_breakpoint_object_getset): Likewise.
8502 * python/py-inferior.c (inferior_object_getset): Likewise.
8503 * python/py-infthread.c (thread_object_getset): Likewise.
8504 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8505 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8506 * python/py-objfile.c (objfile_getset): Likewise.
8507 * python/py-progspace.c (pspace_getset): Likewise.
8508 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8509 Likewise.
8510 * python/py-record.c (recpy_record_getset): Likewise.
8511 * python/py-symbol.c (symbol_object_getset): Likewise.
8512 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8513 Likewise.
8514 * python/py-type.c (type_object_getset, field_object_getset):
8515 Likewise.
8516 * python/py-value.c (value_object_getset): Likewise.
8517
8518 2017-04-05 Pedro Alves <palves@redhat.com>
8519
8520 * python/python-internal.h (gdb_PyObject_CallMethod)
8521 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8522 New functions.
8523 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8524 (PySys_GetObject, PySys_SetPath): New macros.
8525
8526 2017-04-05 Pedro Alves <palves@redhat.com>
8527
8528 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8529 info_osdata_command.
8530 * osdata.c (info_osdata_command): Rename to ...
8531 (info_osdata): ... this. Constify 'type' parameter, and remove
8532 the 'from_tty' parameter. Accept NULL TYPE.
8533 (info_osdata_command): New function.
8534 * osdata.h (info_osdata_command): Remove declaration.
8535 (info_osdata): New declaration.
8536
8537 2017-04-05 Pedro Alves <palves@redhat.com>
8538
8539 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8540 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8541 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8542 parameter.
8543 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8544 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8545 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8546 parameter.
8547 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8548 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8549 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8550 (mi_cmd_file_list_exec_source_files)
8551 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8552 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8553 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8554 parameter.
8555 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8556 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8557 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8558 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8559 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8560 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8561 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8562 'command' parameter.
8563 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8564 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8565 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8566 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8567 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8568 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8569 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8570 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8571 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8572 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8573 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8574 parameter.
8575 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8576 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8577 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8578 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8579 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8580 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8581 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8582 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8583 (mi_cmd_data_list_changed_registers)
8584 (mi_cmd_data_write_register_values)
8585 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8586 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8587 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8588 (mi_cmd_list_features, mi_cmd_list_target_features)
8589 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8590 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8591 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8592 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8593 (mi_cmd_trace_frame_collected): Constify 'command'
8594 parameter.
8595 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8596 'command' parameter.
8597
8598 2017-04-05 Pedro Alves <palves@redhat.com>
8599
8600 * ada-lang.c (ada_completer_word_break_characters): Now a const
8601 array.
8602 (ada_get_gdb_completer_word_break_characters): Constify.
8603 * completer.c (gdb_completer_command_word_break_characters)
8604 (gdb_completer_file_name_break_characters)
8605 (gdb_completer_quote_characters): Now const arrays.
8606 (get_gdb_completer_quote_characters): Constify.
8607 (set_rl_completer_word_break_characters): New function.
8608 (set_gdb_completion_word_break_characters)
8609 (complete_line_internal): Use it.
8610 * completer.h (get_gdb_completer_quote_characters): Constify.
8611 (set_rl_completer_word_break_characters): Declare.
8612 * f-lang.c (f_word_break_characters): Constify.
8613 * language.c (default_word_break_characters): Constify.
8614 * language.h (language_defn::la_word_break_characters): Constify.
8615 (default_word_break_characters): Constify.
8616 * top.c (init_main): Use set_rl_completer_word_break_characters.
8617
8618 2017-04-05 Pedro Alves <palves@redhat.com>
8619
8620 * aix-thread.c (aix_thread_pid_to_str)
8621 (aix_thread_extra_thread_info): Constify.
8622 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8623 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8624 (bsd_uthread_pid_to_str): Constify.
8625 * corelow.c (core_pid_to_str): Constify.
8626 * darwin-nat.c (darwin_pid_to_str): Constify.
8627 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8628 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8629 Constify.
8630 * gnu-nat.c (gnu_pid_to_str): Constify.
8631 * go32-nat.c (go32_pid_to_str): Constify.
8632 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8633 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8634 * inferior.c (inferior_pid_to_str): Constify.
8635 * linux-nat.c (linux_nat_pid_to_str): Constify.
8636 * linux-tdep.c (linux_core_pid_to_str): Constify.
8637 * linux-thread-db.c (thread_db_pid_to_str)
8638 (thread_db_extra_thread_info): Constify.
8639 * nto-tdep.c (nto_extra_thread_info): Constify.
8640 * nto-tdep.h (nto_extra_thread_info): Constify.
8641 * obsd-nat.c (obsd_pid_to_str): Constify.
8642 * procfs.c (procfs_pid_to_str): Constify.
8643 * ravenscar-thread.c (ravenscar_extra_thread_info)
8644 (ravenscar_pid_to_str): Constify.
8645 * remote-sim.c (gdbsim_pid_to_str): Constify.
8646 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8647 Constify.
8648 * sol-thread.c (solaris_pid_to_str): Constify.
8649 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8650 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8651 * target.c (default_pid_to_str, target_pid_to_str)
8652 (normal_pid_to_str, default_pid_to_str): Constify.
8653 * target.h (target_ops::to_pid_to_str)
8654 (target_ops::to_extra_thread_info): Constify.
8655 (target_pid_to_str, normal_pid_to_str): Constify.
8656 * windows-nat.c (windows_pid_to_str): Constify.
8657 * gdbarch.sh (core_pid_to_str): Constify.
8658 * target-delegates.c: Regenerate.
8659 * gdbarch.h, gdbarch.c: Regenerate.
8660
8661 2017-04-05 Pedro Alves <palves@redhat.com>
8662
8663 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8664 the memory of the temporary warning_pre_print override.
8665 * utils.c (warning_pre_print): Constify.
8666 * utils.h (warning_pre_print): Constify.
8667
8668 2017-04-05 Pedro Alves <palves@redhat.com>
8669
8670 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8671 (shell_command): New function.
8672 (make_command): Use std::string.
8673 (init_cli_cmds): Register shell_command instead of shell_escape.
8674
8675 2017-04-05 Pedro Alves <palves@redhat.com>
8676
8677 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8678 * tracepoint.c (default_collect): Don't initialize.
8679
8680 2017-04-05 Pedro Alves <palves@redhat.com>
8681
8682 * macroexp.c (macro_buffer::shared): Now a bool.
8683 (init_buffer): Update.
8684 (init_shared_buffer): Constify 'addr' parameter.
8685 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8686 casts.
8687
8688 2017-04-05 Pedro Alves <palves@redhat.com>
8689
8690 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8691 * disasm.c (set_disassembler_options): Constify local.
8692 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8693
8694 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8695
8696 PR gdb/21352
8697 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8698 option.
8699
8700 2017-04-05 Yao Qi <yao.qi@linaro.org>
8701
8702 * frame.c (frame_unwind_register_unsigned): Call
8703 frame_unwind_register_value.
8704
8705 2017-04-05 Yao Qi <yao.qi@linaro.org>
8706
8707 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8708 Use gdb_test_multiple, and don't match anchor.
8709
8710 2017-04-05 Pedro Alves <palves@redhat.com>
8711
8712 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8713 (Write After Approval): Remove Simon Marchi.
8714
8715 2017-04-05 Pedro Alves <palves@redhat.com>
8716
8717 * common/gdb_optional.h (optional::optional): Make constexpr and
8718 initialize m_dummy.
8719
8720 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8721
8722 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8723 (amd64fbsd_jmp_buf_reg_offset): Remove.
8724 (amd64fbsd_supply_uthread): Remove function.
8725 (amd64fbsd_collect_uthread): Remove function.
8726 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8727 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8728 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8729 (fbsd-nat.c): Update comment.
8730 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8731 (i386fbsd_jmp_buf_reg_offset): Remove.
8732 (i386fbsd_supply_uthread): Remove function.
8733 (i386fbsd_collect_uthread): Remove function.
8734 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8735
8736 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8737
8738 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8739 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8740 * NEWS: Mention that support for FreeBSD/alpha was removed.
8741 * alpha-fbsd-tdep.c: Delete file.
8742 * config/alpha/fbsd.mh: Delete file.
8743 * configure.host: Delete alpha*-*-freebsd* and
8744 alpha*-*-kfreebsd*-gnu.
8745 * configure.tgt: Delete alpha*-*-freebsd* and
8746 alpha*-*-kfreebsd*-gnu.
8747
8748 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8749
8750 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8751 amd64bsd_store_inferior_registers): Use ptid from regcache.
8752
8753 2017-04-04 Pedro Alves <palves@redhat.com>
8754
8755 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8756 data fields, make them private and add "m_" prefixes.
8757 (lnp_state_machine::lnp_state_machine): New ctor.
8758 (record_line, check_line_address, handle_set_discriminator)
8759 (handle_set_address, handle_advance_pc, handle_special_opcode)
8760 (handle_advance_line, handle_set_file, handle_negate_stmt)
8761 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8762 (end_sequence, advance_line): New methods.
8763 (m_gdbarch, m_record_lines_p): New fields.
8764 (lnp_reader_state): Delete.
8765 (dwarf_record_line): Rename to ...
8766 (lnp_state_machine::record_line): ... adjust.
8767 (init_lnp_state_machine): Delete.
8768 (lnp_state_machine::lnp_state_machine): New.
8769 (check_line_address): Rename to ...
8770 (lnp_state_machine::check_line_address): This.
8771 (dwarf_decode_lines_1): Remove reference to "reader_state".
8772 Adjust lnp_state_machine having a non-default ctor. Use bool.
8773 State machine internal state manipulation moved to
8774 lnp_state_machine methods.
8775
8776 2017-04-04 Pedro Alves <palves@redhat.com>
8777
8778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8779 unittests/offset-type-selftests.c.
8780 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8781 * common/offset-type.h: New file.
8782 * common/preprocessor.h: New file.
8783 * common/traits.h: New file.
8784 * common/valid-expr.h: New file.
8785 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8786 sect_offset and cu_offset strong typedefs throughout.
8787 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8788 typedefs throughout.
8789 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8790 sect_offset and cu_offset strong typedefs throughout.
8791 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8792 typedefs throughout.
8793 * gdbtypes.h: Include "common/offset-type.h".
8794 (cu_offset): Now an offset type (strong typedef) instead of a
8795 struct.
8796 (sect_offset): Likewise.
8797 (union call_site_parameter_u): Rename "param_offset" field to
8798 "param_cu_off".
8799 * unittests/offset-type-selftests.c: New file.
8800
8801 2017-04-04 Pedro Alves <palves@redhat.com>
8802
8803 * common/underlying.h: New file.
8804 * dwarf2read.c: Include "common/gdb_optional.h" and
8805 "common/underlying.h".
8806 (dir_index, file_name_index): New types.
8807 (file_entry): Use them.
8808 (file_entry::include): Use to_underlying.
8809 (line_header::add_file_name): Use dir_index.
8810 (read_formatted_entries): Use gdb::optional. Read form before
8811 writting to file_entry.
8812 (dwarf_decode_line_header): Use dir_index.
8813 (lnp_state_machine::current_file): Use to_underlying.
8814 (lnp_state_machine::file): Change type to file_name_index.
8815 (dwarf_record_line): Use to_underlying.
8816 (init_lnp_state_machine): Use file_name_index.
8817 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8818
8819 2017-04-04 Pedro Alves <palves@redhat.com>
8820
8821 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8822 operator bool, has_value and get methods.
8823
8824 2017-04-04 Pedro Alves <palves@redhat.com>
8825
8826 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8827 fields.
8828 (line_header): Initialize all data fields. Change type of
8829 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8830 Change type of include_dirs to std::vector<const char *>. Remove
8831 num_include_dirs, include_dirs_size. Change type of file_names to
8832 std::vector<file_entry>. Remove num_file_names, file_names_size.
8833 (line_header::line_header): New.
8834 (line_header::add_include_dir, line_header::add_file_name): New
8835 methods.
8836 (line_header::include_dir_at): Remove NULL check.
8837 (line_header::file_name_at): Add const overload.
8838 (line_header_up): New unique_ptr typedef.
8839 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8840 std::vector. Remove free_line_header call.
8841 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8842 free_line_header call.
8843 (free_cu_line_header): Delete.
8844 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8845 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8846 Adjust to use std::vector.
8847 (free_line_header): Delete.
8848 (free_line_header_voidp): Use delete.
8849 (add_include_dir): Replace with ...
8850 (line_header::add_include_dir): ... this method. Use std::vector.
8851 (add_file_name): Replace with ...
8852 (line_header::add_file_name): ... this method. Use std::vector.
8853 (add_include_dir_stub): Delete.
8854 (read_formatted_entries): Remove memset.
8855 (dwarf_decode_line_header): Return a line_header_up instead of a
8856 raw pointer. Remove cleanup handling. Pass lambdas to
8857 read_formatted_entries. Adjust to use line_header methods.
8858 (dwarf_decode_lines_1): Adjust to use line_header methods.
8859 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8860 use std::vector.
8861
8862 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8863
8864 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8865 instead of struct ptid.
8866
8867 2017-05-04 Alan Hayward <alan.hayward@arm.com>
8868
8869 * frame.c (get_frame_register_bytes): Unwind using value.
8870 (put_frame_register_bytes): Likewise.
8871
8872 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8873
8874 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8875 aggregate-like.
8876
8877 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8878
8879 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8880
8881 2017-03-29 Yao Qi <yao.qi@linaro.org>
8882
8883 * gdbthread.h (struct thread_info): Declare constructor and
8884 destructor. Add some in-class member initializers.
8885 * thread.c (free_thread): Remove.
8886 (init_thread_list): Call delete instead of free_thread.
8887 (new_thread): Call thread_info constructor.
8888 (thread_info::thread_info): New function.
8889 (thread_info::~thread_info): New function.
8890 (delete_thread_1): Call delete instead of free_thread.
8891 (make_cleanup_restore_current_thread): Move tp and frame to
8892 inner block.
8893
8894 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8895
8896 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8897 (arc_skip_prologue): Likewise.
8898 (arc_make_frame_cache): Likewise.
8899 (arc_pv_get_operand): New function.
8900 (arc_is_in_prologue): Likewise.
8901 (arc_analyze_prologue): Likewise.
8902 (arc_print_frame_cache): Likewise.
8903 (MAX_PROLOGUE_LENGTH): New constant.
8904
8905 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8906
8907 * configure.tgt: Add arc-insn.o.
8908 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8909 (dump_arc_instruction_command): New function.
8910 (arc_fprintf_disasm): Likewise.
8911 (arc_disassemble_info): Likewise.
8912 (arc_insn_get_operand_value): Likewise.
8913 (arc_insn_get_operand_value_signed): Likewise.
8914 (arc_insn_get_memory_base_reg): Likewise.
8915 (arc_insn_get_memory_offset): Likewise.
8916 (arc_insn_get_branch_target): Likewise.
8917 (arc_insn_dump): Likewise.
8918 (arc_insn_get_linear_next_pc): Likewise.
8919 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8920 (arc_disassemble_info): Likewise.
8921 (arc_insn_get_branch_target): Likewise.
8922 (arc_insn_get_linear_next_pc): Likewise.
8923 * NEWS: Mention new "maint print arc arc-instruction".
8924
8925 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8926
8927 * arc-tdep (maintenance_print_arc_list): New variable.
8928 (maintenance_print_arc_command): New function.
8929
8930 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8931
8932 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8933 Add "limm" and "reserved".
8934 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8935 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8936 * arc-tdep.h (arc_regnum): Likewise.
8937
8938 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8939
8940 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8941 for THREADPTR register.
8942 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8943 register.
8944 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8945 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8946 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8947
8948 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8949
8950 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8951 registers above gdbarch_num_regs (gdbarch) as privileged in
8952 call0 ABI.
8953
8954 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8955
8956 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8957 for a single specified register or for all registers in
8958 a0_base..a0_base + C0_NREGS range.
8959 (supply_gregset_reg): Call regcache_raw_supply for a single
8960 specified register or for all registers in a0_base..a0_base +
8961 C0_NREGS range.
8962
8963 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8964
8965 * arch/xtensa.h (C0_NREGS): Add definition.
8966 * xtensa-tdep.c (C0_NREGS): Remove definition.
8967
8968 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8969
8970 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8971 Drop xtensa_default_isa initialization.
8972 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8973
8974 2017-03-27 Pedro Alves <palves@redhat.com>
8975
8976 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8977 (file_entry::include_dir): New method.
8978 (line_header::include_dir_at, line_header::file_name_at): New
8979 methods.
8980 (setup_type_unit_groups, setup_type_unit_groups)
8981 (psymtab_include_file_name): Simplify using the new methods.
8982 (lnp_state_machine) <the_line_header>: New field.
8983 <file>: Add comment.
8984 (lnp_state_machine::current_file): New method.
8985 (dwarf_record_line): Simplify using the new methods.
8986 (init_lnp_state_machine): Initialize the "the_line_header" field.
8987 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8988 Simplify using the new methods.
8989
8990 2017-03-27 Pedro Alves <palves@redhat.com>
8991
8992 * cp-name-parser.y (make_empty): Delete.
8993 (demangler_special, nested_name, ptr_operator, array_indicator)
8994 (direct_declarator, declarator_1): Use fill_comp instead of
8995 make_empty.
8996
8997 2017-03-27 Pedro Alves <palves@redhat.com>
8998
8999 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9000 to ATTRIBUTE_PRINTF.
9001 * solib-target.c (library_list_start_list): Print "string" not
9002 "version".
9003 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9004 gdb_xml_error call.
9005
9006 2017-03-27 Pedro Alves <palves@redhat.com>
9007
9008 * dwarf2read.c (struct file_and_directory): New.
9009 (dwarf2_get_dwz_file): Adjust to use std::string.
9010 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9011 (find_file_and_directory): Adjust to return a file_and_directory
9012 object.
9013 (read_file_scope): Adjust to use file_and_directory. Remove
9014 make_cleanup/do_cleanups calls.
9015 (open_and_init_dwp_file): Adjust to use std::string. Remove
9016 make_cleanup/do_cleanups calls.
9017 * python/python.c (do_start_initialization): Adjust to ldirname
9018 returning a std::string.
9019 * utils.c (ldirname): Now returns a std::string.
9020 * utils.h (ldirname): Change return type to std::string.
9021 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9022 returning a std::string.
9023 * xml-tdesc.c (file_read_description_xml): Likewise.
9024
9025 2017-03-24 Alan Hayward <alan.hayward@arm.com>
9026
9027 * regcache.c (regcache_debug_print_register): New function.
9028 * regcache.h (regcache_debug_print_register): New declaration.
9029 * target.c (debug_print_register): Remove.
9030 (target_fetch_registers): Call regcache_debug_print_register.
9031 (target_store_registers): Likewise.
9032
9033 2017-03-24 Pádraig Brady <pbrady@fb.com>
9034
9035 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9036 reference beyond the 'lh->include_dirs' array before accessing to
9037 it.
9038 (psymtab_include_file_name): Likewise.
9039 (dwarf_decode_lines_1): Likewise.
9040 (dwarf_decode_lines): Likewise.
9041 (file_file_name): Likewise.
9042
9043 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9044
9045 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9046 inferior_ptid.
9047 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9048 ps_lsetfpregs): Likewise.
9049 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9050 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9051 ps_lsetfpregs): Likewise.
9052 * target.c (target_fetch_registers, target_store_registers):
9053 Remove asserts.
9054
9055 2017-03-23 Alan Hayward <alan.hayward@arm.com>
9056
9057 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9058
9059 2017-03-23 Yao Qi <yao.qi@linaro.org>
9060
9061 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9062 (_initialize_aarch64_tdep): Register it.
9063 (aarch64_record_load_store): Handle PRFM instruction.
9064 (aarch64_process_record_test): New function.
9065
9066 2017-03-23 Yao Qi <yao.qi@linaro.org>
9067
9068 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9069 indentation.
9070
9071 2017-03-23 Yao Qi <yao.qi@linaro.org>
9072
9073 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9074
9075 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9076
9077 python/python.c (do_start_initialization): Fix memory leak.
9078
9079 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9080
9081 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9082 using get_ptrace_pid.
9083 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9084 inferior_ptid.
9085 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9086 inferior_ptid instead of pid.
9087
9088 2017-03-22 Yao Qi <yao.qi@linaro.org>
9089
9090 * aarch64-tdep.c: Wrap locally used classes in anonymous
9091 namespace.
9092 * arm-tdep.c: Likewise.
9093 * linespec.c: Likewise.
9094 * ui-out.c: Likewise.
9095
9096 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
9097
9098 PR gdb/19637
9099 * python/lib/gdb/printer/bound_registers.py: Import sys.
9100
9101 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9102
9103 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9104 windows_thread_info parameter and use it instead of
9105 current_thread.
9106 (windows_fetch_inferior_registers): Don't set current_thread,
9107 pass the thread to do_windows_fetch_inferior_registers. Use
9108 ptid from regcache instead of inferior_ptid.
9109 (do_windows_store_inferior_registers): Add windows_thread_info
9110 parameter and use it instead of current_thread.
9111 (windows_store_inferior_registers): Don't set current_thread,
9112 pass the thread to do_windows_store_inferior_registers. Use
9113 ptid from regcache instead of inferior_ptid.
9114
9115 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9116
9117 * ser-mingw.c (ser_windows_raw): Remove reference to
9118 struct serial::current_timeout.
9119
9120 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9121
9122 PR tdep/20928
9123 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9124 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9125 (sparc64_fsr_type): Fix %fsr decoding.
9126
9127 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9128
9129 * python/py-record-btrace.c (btpy_insn_data): Change return type
9130 for Python 2.
9131
9132 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9133
9134 * spu-linux-nat.c (spu_fetch_inferior_registers,
9135 spu_store_inferior_registers): Use ptid from regcache, set and
9136 restore inferior_ptid.
9137 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9138 Likewise.
9139
9140 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9141
9142 * i386-linux-nat.c (fetch_register, store_register,
9143 i386_linux_fetch_inferior_registers,
9144 i386_linux_store_inferior_registers): Use ptid from regcache.
9145 * ia64-linux-nat.c (ia64_linux_fetch_register,
9146 ia64_linux_store_register): Likewise.
9147 * inf-ptrace.c (inf_ptrace_fetch_register,
9148 inf_ptrace_store_register): Likewise.
9149 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9150 m32r_linux_store_inferior_registers): Likewise.
9151 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9152 m68kbsd_store_inferior_registers): Likewise.
9153 * m68k-linux-nat.c (fetch_register, store_register,
9154 m68k_linux_fetch_inferior_registers,
9155 m68k_linux_store_inferior_registers): Likewise.
9156 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9157 m88kbsd_store_inferior_registers): Likewise.
9158 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9159 mips_fbsd_store_inferior_registers): Likewise.
9160 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9161 mips64_linux_regsets_store_registers): Likewise.
9162 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9163 mipsnbsd_store_inferior_registers): Likewise.
9164 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9165 mips64obsd_store_inferior_registers): Likewise.
9166 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9167 Likewise.
9168 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9169 ppcfbsd_store_inferior_registers): Likewise.
9170 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9171 ppc_linux_store_inferior_registers): Likewise.
9172 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9173 ppcnbsd_store_inferior_registers): Likewise.
9174 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9175 ppcobsd_store_registers): Likewise.
9176 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9177 Likewise.
9178 * ravenscar-thread.c (ravenscar_fetch_registers,
9179 ravenscar_store_registers, ravenscar_prepare_to_store):
9180 Likewise.
9181 * record-btrace.c (record_btrace_fetch_registers,
9182 record_btrace_store_registers, record_btrace_prepare_to_store):
9183 Likewise.
9184 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9185 Lookup inferior using ptid from regcache, instead of
9186 current_inferior.
9187 * remote.c (remote_fetch_registers, remote_store_registers): Use
9188 ptid from regcache.
9189 * rs6000-nat.c (fetch_register, store_register): Likewise.
9190 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9191 s390_linux_store_inferior_registers): Likewise.
9192 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9193 shnbsd_store_inferior_registers): Likewise.
9194 * sol-thread.c (sol_thread_fetch_registers,
9195 sol_thread_store_registers): Likewise.
9196 * sparc-nat.c (sparc_fetch_inferior_registers,
9197 sparc_store_inferior_registers): Likewise.
9198 * tilegx-linux-nat.c (fetch_inferior_registers,
9199 store_inferior_registers): Likewise.
9200 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9201 vaxbsd_store_inferior_registers): Likewise.
9202 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9203 store_xtregs): Likewise.
9204
9205 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9206
9207 PR gdb/14441
9208 * NEWS: Mention support for rvalue references in GDB and python.
9209 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9210 supports both lvalue and rvalue references.
9211
9212 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9213
9214 PR gdb/14441
9215 * gdbtypes.c (rank_one_type): Implement overloading
9216 resolution rules regarding rvalue references.
9217
9218 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9219
9220 PR gdb/14441
9221 * aarch64-tdep.c (aarch64_type_align)
9222 (aarch64_extract_return_value, aarch64_store_return_value): Change
9223 lvalue reference type checks to general reference type checks.
9224 * amd64-tdep.c (amd64_classify): Likewise.
9225 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9226 Likewise.
9227 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9228 (arm_store_return_value): Likewise.
9229 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9230 * c-typeprint.c (c_print_type): Likewise.
9231 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9232 (cplus_number_of_children, cplus_describe_child): Likewise.
9233 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9234 * completer.c (expression_completer): Likewise.
9235 * cp-support.c (make_symbol_overload_list_adl_namespace):
9236 Likewise.
9237 * darwin-nat-info.c (info_mach_region_command): Likewise.
9238 * dwarf2loc.c (entry_data_value_coerce_ref)
9239 (value_of_dwarf_reg_entry): Likewise.
9240 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9241 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9242 Likewise.
9243 * findvar.c (extract_typed_address, store_typed_address):
9244 Likewise.
9245 * gdbtypes.c (rank_one_type): Likewise.
9246 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9247 * infcall.c (value_arg_coerce): Likewise.
9248 * language.c (pointer_type): Likewise.
9249 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9250 Likewise.
9251 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9252 * mn10300-tdep.c (mn10300_type_align): Likewise.
9253 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9254 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9255 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9256 Likewise.
9257 * printcmd.c (print_formatted, x_command): Likewise.
9258 * python/py-type.c (typy_get_composite, typy_template_argument):
9259 Likewise.
9260 * python/py-value.c (valpy_referenced_value)
9261 (valpy_get_dynamic_type, value_has_field): Likewise.
9262 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9263 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9264 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9265 * spu-tdep.c (spu_scalar_value_p): Likewise.
9266 * symtab.c (lookup_symbol_aux): Likewise.
9267 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9268 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9269 Likewise.
9270 * valops.c (value_cast_pointers, value_cast)
9271 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9272 (value_struct_elt, value_struct_elt_bitpos)
9273 (value_find_oload_method_list, find_overload_match)
9274 (value_rtti_indirect_type): Likewise.
9275 * valprint.c (val_print_scalar_type_p, generic_val_print):
9276 Likewise.
9277 * value.c (value_actual_type, value_as_address, unpack_long)
9278 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9279 (coerce_ref): Likewise.
9280 * varobj.c (varobj_get_value_type): Likewise.
9281
9282 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9283
9284 PR gdb/14441
9285 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9286 table of constants.
9287 * python/lib/gdb/command/explore.py: Support exploring values
9288 of rvalue reference types.
9289 * python/lib/gdb/types.py: Implement get_basic_type() for
9290 rvalue reference types.
9291 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9292 constant.
9293 * python/py-value.c (valpy_getitem): Add an rvalue reference
9294 check.
9295 (valpy_reference_value): Add new parameter "refcode".
9296 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9297 New wrappers for valpy_reference_value().
9298 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9299 (gdbpy_invoke_xmethod): Likewise.
9300
9301 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9302
9303 PR gdb/14441
9304 * dwarf2read.c (process_die, read_type_die_1): Handle the
9305 DW_TAG_rvalue_reference_type DIE.
9306 (read_tag_reference_type): Add new parameter "refcode".
9307
9308 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9309
9310 PR gdb/14441
9311 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9312 (c_type_print_modifier, c_type_print_varspec_suffix)
9313 (c_type_print_base): Support printing rvalue reference types.
9314 * c-valprint.c (c_val_print, c_value_print): Support printing
9315 rvalue reference values.
9316
9317 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9318
9319 PR gdb/14441
9320 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9321 typename.
9322 * cp-support.c (replace_typedefs): Handle
9323 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9324 * python/py-type.c (typy_lookup_type): Likewise.
9325
9326 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9327
9328 PR gdb/14441
9329 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9330 * parse.c (insert_type): Change assert statement.
9331 (follow_types): Handle rvalue reference types.
9332 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9333 constant.
9334
9335 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9336
9337 PR gdb/14441
9338 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9339 value_ref() interface.
9340 * c-valprint.c (c_value_print): Likewise.
9341 * infcall.c (value_arg_coerce): Likewise.
9342 * python/py-value.c (valpy_reference_value): Likewise.
9343 * valops.c (value_cast, value_reinterpret_cast)
9344 (value_dynamic_cast, typecmp): Likewise.
9345 (value_ref): Parameterize by kind of return value reference type.
9346 * value.h (value_ref): Add new parameter "refcode".
9347
9348 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9349
9350 PR gdb/14441
9351 * dwarf2read.c (read_tag_reference_type): Use
9352 lookup_lvalue_reference_type() instead of lookup_reference_type().
9353 * eval.c (evaluate_subexp_standard): Likewise.
9354 * f-exp.y: Likewise.
9355 * gdbtypes.c (make_reference_type, lookup_reference_type):
9356 Generalize with rvalue reference types.
9357 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9358 convenience wrappers for lookup_reference_type().
9359 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9360 reference kind parameter.
9361 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9362 wrappers for lookup_reference_type().
9363 * guile/scm-type.c (gdbscm_type_reference): Use
9364 lookup_lvalue_reference_type() instead of lookup_reference_type().
9365 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9366 * parse.c (follow_types): Likewise.
9367 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9368 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9369 Likewise.
9370 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9371 (gdbpy_invoke_xmethod): Likewise.
9372 * stabsread.c: Provide extra argument to make_reference_type()
9373 call.
9374 * valops.c (value_ref, value_rtti_indirect_type): Use
9375 lookup_lvalue_reference_type() instead of lookup_reference_type().
9376
9377 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9378
9379 PR gdb/14441
9380 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9381 (TYPE_IS_REFERENCE): New macro.
9382 (struct type): Add rvalue_reference_type field.
9383 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9384
9385 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9386
9387 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9388 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9389 New function definition.
9390 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9391 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9392 New function declaration.
9393 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9394 * mi/mi-interp.h: New file.
9395 * solib.c (info_sharedlibrary_command): Replace for loop with
9396 ALL_SO_LIBS macro
9397 * solib.h (update_solib_list): New function declaration.
9398 (so_list_head): Move macro.
9399 * solist.h (ALL_SO_LIBS): New macro.
9400
9401 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9402
9403 * infcmd.c (post_create_inferior): Remove unused argument in
9404 call to solib_add.
9405 * remote.c (remote_start_remote): Likewise.
9406 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9407 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9408 (enable_break): Likewise.
9409 * solib.c (update_solib_list): Remove unused target argument
9410 and its documentation.
9411 (solib_add): Remove unused target argument. Remove unused
9412 argument in call to update_solib_list.
9413 (info_sharedlibrary_command): Remove unused argument in call
9414 to update_solib_list.
9415 (sharedlibrary_command): Remove unused argument in call to
9416 solib_add.
9417 (handle_solib_event): Likewise.
9418 (reload_shared_libraries): Likewise.
9419 * solib.h (solib_add): Remove unused target argument.
9420
9421 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9422
9423 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9424 (s390_displaced_step_fixup): Cover relative branches with the
9425 default fixup handling. This fixes lack of support for some
9426 relative branch instructions.
9427
9428 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9429
9430 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9431 ptid from regcache.
9432
9433 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9434
9435 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9436 i386_darwin_store_inferior_registers): Use ptid from regcache.
9437
9438 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9439
9440 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9441 i386bsd_store_inferior_registers): Use ptid from regcache.
9442
9443 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9444
9445 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9446 hppaobsd_store_registers): Use ptid from regcache.
9447
9448 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9449
9450 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9451 hppanbsd_store_registers): Use ptid from regcache.
9452
9453 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9454
9455 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9456 from regcache. Use get_ptrace_pid.
9457
9458 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9459
9460 * corelow.c (get_core_register_section): Use ptid from regcache,
9461 update doc.
9462
9463 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9464
9465 * bsd-uthread.c (bsd_uthread_fetch_registers,
9466 bsd_uthread_store_registers): Use ptid from regcache, set and
9467 restore inferior_ptid.
9468
9469 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9470
9471 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9472 fetch_fp_regs, store_register, store_regs, store_fp_register,
9473 store_fp_regs): Use ptid from regcache.
9474
9475 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9476
9477 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9478 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9479 store_vfp_regs): Use ptid from regcache.
9480
9481 2017-03-17 Pedro Alves <palves@redhat.com>
9482
9483 PR remote/21188
9484 * ser-base.c (ser_base_wait_for): Add comment.
9485 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9486 version.
9487 * ser-unix.c (hardwire_raw): Remove reference to
9488 scb->current_timeout.
9489 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9490 (hardwire_ops): Install ser_base_readchar instead of
9491 hardwire_readchar.
9492 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9493 Remove fields.
9494
9495 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
9496
9497 PR gdb/19637
9498 * python/lib/gdb/printer/bound_registers.py: Add support for
9499 Python 3.
9500
9501 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9502
9503 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9504 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9505 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9506 byte_offset to subobj_byte_offset. Fix the handling of
9507 DWARF_VALUE_STACK on big-endian targets when coming via an
9508 implicit pointer.
9509 (dwarf2_evaluate_loc_desc): Adjust call to
9510 dwarf2_evaluate_loc_desc_full.
9511 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9512 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9513
9514 2017-03-16 Yao Qi <yao.qi@linaro.org>
9515
9516 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9517 and REVSH instructions.
9518
9519 2017-03-16 Yao Qi <yao.qi@linaro.org>
9520
9521 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9522 (arm_record_test): Declare.
9523 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9524 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9525 align with the manual.
9526 (thumb_record_misc): Adjust the code order to align with the
9527 manual.
9528 (thumb2_record_decode_insn_handler): Fix instruction matching.
9529 (instruction_reader_thumb): New class.
9530 (arm_record_test): New function.
9531
9532 2017-03-16 Yao Qi <yao.qi@linaro.org>
9533
9534 * arm-tdep.c (abstract_memory_reader): New class.
9535 (instruction_reader): New class.
9536 (extract_arm_insn): Add argument 'reader'. Callers updated.
9537 (decode_insn): Likewise.
9538
9539 2017-03-16 Doug Evans <dje@google.com>
9540
9541 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9542 member. Change type of TYPE member to SCM. All uses updated.
9543 (lsscm_make_lazy_string_smob): Add assert.
9544 (lsscm_make_lazy_string): Flag bad length values.
9545 (lsscm_elt_type): New function.
9546 (gdbscm_lazy_string_to_value): Rewrite to use
9547 lsscm_safe_lazy_string_to_value.
9548 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9549 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9550 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9551 in incoming type.
9552 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9553 * guile/scm-type.c (tyscm_scm_to_type): New function.
9554
9555 2017-03-15 Doug Evans <dje@google.com>
9556
9557 PR python/17728, python/18439, python/18779
9558 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9559 member. Change type of TYPE member to PyObject *. All uses updated.
9560 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9561 (gdbpy_create_lazy_string_object): Flag bad length values.
9562 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9563 Handle typedefs in incoming type.
9564 (stpy_lazy_string_elt_type): New function.
9565 (gdbpy_extract_lazy_string): Call it.
9566 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9567 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9568 typedefs in incoming type.
9569
9570 2017-03-16 Doug Evans <dje@google.com>
9571
9572 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9573 * guile/scm-type.c (tyscm_scm_to_type): New function.
9574
9575 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9576
9577 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9578 "ULONGEST" for "skip".
9579
9580 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9581
9582 PR gdb/21220
9583 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9584 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9585 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9586 over ptrace peek/poke until end of buffer or error.
9587
9588 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9589
9590 * parse.c (length_of_subexp): Make static.
9591 * parser-defs.h (length_of_subexp): Remove.
9592
9593 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9594
9595 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9596 as well.
9597
9598 2017-03-14 Pedro Alves <palves@redhat.com>
9599
9600 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9601 (main): Use std::unique_ptr. Remove calls to
9602 cp_demangled_name_parse_free.
9603
9604 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9605
9606 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9607 alphabsd_store_inferior_registers): Use regcache->ptid instead
9608 of inferior_ptid.
9609
9610 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9611
9612 * aix-thread.c (aix_thread_fetch_registers,
9613 aix_thread_store_registers): Use regcache->ptid instead of
9614 inferior_ptid.
9615
9616 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9617
9618 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9619 store_gregs_to_thread, fetch_fpregs_from_thread,
9620 store_fpregs_to_thread): Use regcache->ptid instead of
9621 inferior_ptid.
9622
9623 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9624
9625 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9626 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9627 instead of inferior_ptid.
9628
9629 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9630
9631 * target.c (target_fetch_registers, target_store_registers): Add
9632 assert.
9633
9634 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9635
9636 * regcache.h (regcache_get_ptid): New function.
9637 * regcache.c (regcache_get_ptid): New function.
9638
9639 2017-03-13 Mark Wielaard <mark@klomp.org>
9640
9641 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9642
9643 2017-03-10 Keith Seitz <keiths@redhat.com>
9644
9645 PR c++/8218
9646 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9647
9648 2017-03-08 Pedro Alves <palves@redhat.com>
9649
9650 PR gdb/18360
9651 * infrun.c (start_step_over, do_target_resume, resume)
9652 (restart_threads): Assert we're not resuming a thread that is
9653 meant to be stopped.
9654 (infrun_thread_stop_requested_callback): Delete.
9655 (infrun_thread_stop_requested): If the thread is internally
9656 stopped, queue a pending stop event and clear the thread's
9657 inline-frame state.
9658 (handle_stop_requested): New function.
9659 (handle_syscall_event, handle_inferior_event_1): Use
9660 handle_stop_requested.
9661 (handle_stop_requested): New function.
9662 (handle_signal_stop): Set the thread's stop_signal here instead of
9663 at caller.
9664 (finish_step_over): Clear step over info unconditionally.
9665 (handle_signal_stop): If the user had interrupted the event
9666 thread, consider the stop a random signal.
9667 (handle_signal_stop) <signal arrived while stepping over
9668 breakpoint>: Don't restart threads here.
9669 (stop_waiting): Don't clear step-over info here.
9670
9671 2017-03-08 Pedro Alves <palves@redhat.com>
9672
9673 PR 21206
9674 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9675 goes to argument 2, not 1.
9676
9677 2017-03-08 Pedro Alves <palves@redhat.com>
9678
9679 PR cli/21218
9680 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9681 display_gdb_prompt.
9682 (command_line_input): Add comment.
9683
9684 2017-03-08 Pedro Alves <palves@redhat.com>
9685
9686 PR tui/21216
9687 * tui/tui-file.c (tui_file::write): New.
9688 * tui/tui-file.h (tui_file): Override "write".
9689 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9690 factored out from ...
9691 (tui_puts): ... here.
9692 (tui_putc): Use them.
9693 (tui_write): New function.
9694 * tui/tui-io.h (tui_write): Declare.
9695
9696 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9697
9698 * Makefile.in (SFILES): Replace "environ.c" with
9699 "common/environ.c".
9700 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9701 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9702 to...
9703 * common/environ.c: ... here.
9704 * environ.h: Moved to...
9705 * common/environ.h: ... here.
9706
9707 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9708
9709 * gdbarch.sh (pstring_ptr): New static function.
9710 (gdbarch_disassembler_options): Use it.
9711 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9712 not valid_disassembler_option->name.
9713 * gdbarch.c: Regenerate.
9714
9715 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9716
9717 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9718
9719 2017-03-07 Pedro Alves <palves@redhat.com>
9720
9721 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9722
9723 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9724
9725 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9726 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9727 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9728 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9729
9730 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9731
9732 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9733
9734 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9735
9736 * remote.c (remote_add_target_side_commands): Use range-based
9737 for loop.
9738
9739 2017-03-03 Yao Qi <yao.qi@linaro.org>
9740
9741 PR gdb/21165
9742 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9743 value is lazy.
9744 * valprint.c (common_val_print): Likewise.
9745
9746 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9747
9748 * NEWS: Mention new set/show disassembler-options commands.
9749 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9750 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9751 (prospective_options): New static variable.
9752 (gdb_disassembler::gdb_disassembler): Initialize
9753 m_di.disassembler_options.
9754 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9755 (get_disassembler_options): New function.
9756 (set_disassembler_options): Likewise.
9757 (set_disassembler_options_sfunc): Likewise.
9758 (show_disassembler_options_sfunc): Likewise.
9759 (disassembler_options_completer): Likewise.
9760 (_initialize_disasm): Likewise.
9761 * disasm.h (get_disassembler_options): New prototype.
9762 (set_disassembler_options): Likewise.
9763 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9764 (gdbarch_verify_disassembler_options): Likewise.
9765 * gdbarch.c: Regenerate.
9766 * gdbarch.h: Likewise.
9767 * arm-tdep.c (num_disassembly_options): Delete.
9768 (set_disassembly_style): Likewise.
9769 (arm_disassembler_options): New static variable.
9770 (set_disassembly_style_sfunc): Convert short style name into long
9771 option name. Call set_disassembler_options.
9772 (show_disassembly_style_sfunc): New function.
9773 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9774 set_gdbarch_verify_disassembler_options.
9775 (_initialize_arm_tdep): Delete regnames variable and update callers.
9776 (arm_disassembler_options): Initialize.
9777 (disasm_options): New variable.
9778 (num_disassembly_options): Rename from this...
9779 (num_disassembly_styles): ...to this. Compute by scanning through
9780 disasm_options.
9781 (valid_disassembly_styles): Initialize using disasm_options.
9782 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9783 set_arm_regname_option.
9784 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9785 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9786 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9787 set_gdbarch_verify_disassembler_options.
9788 * s390-tdep.c (s390_disassembler_options): New static variable.
9789 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9790 set_gdbarch_verify_disassembler_options.
9791
9792 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9793
9794 * remote.c (remote_add_target_side_condition): Remove "struct"
9795 keyword from range-based for loop.
9796
9797 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9798
9799 * remote.c (remote_add_target_side_condition): Use range-based
9800 for loop. Update comment.
9801
9802 2017-02-27 Yao Qi <yao.qi@linaro.org>
9803
9804 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9805
9806 2017-02-26 Alan Hayward <alan.hayward@arm.com>
9807
9808 * regcache.c (regcache_raw_update): New function.
9809 (regcache_raw_read): Move code to regcache_raw_update.
9810 * regcache.h (regcache_raw_update): New declaration.
9811 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9812
9813 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9814
9815 * dwarf2read.c (create_debug_type_hash_table): Initialize
9816 header.signature and header.type_offset_in_tu.
9817
9818 2017-02-24 Pedro Alves <palves@redhat.com>
9819
9820 * symtab.c (make_file_symbol_completion_list_1): Use
9821 add_symtab_completions.
9822
9823 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9824
9825 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9826
9827 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9828
9829 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9830 I386_MAX_REGISTER_SIZE.
9831 (i386_pseudo_register_write): Likewise.
9832 (i386_process_record): Likewise.
9833 * i387-tdep.c (i387_supply_xsave): Likewise.
9834 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9835 (store_register): Likewise.
9836
9837 2017-02-23 Pedro Alves <palves@redhat.com>
9838
9839 * ada-lang.c: Include "common/function-view.h".
9840 (ada_iterate_over_symbols): Adjust to use function_view as
9841 callback type.
9842 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9843 (ada_make_symbol_completion_list): Use a lambda.
9844 (ada_exc_search_name_matches): Delete.
9845 (name_matches_regex): New.
9846 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9847 * compile/compile-c-support.c: Include "common/function-view.h".
9848 (print_one_macro): Change prototype to accept a ui_file pointer.
9849 (write_macro_definitions): Use a lambda.
9850 * dwarf2read.c: Include "common/function-view.h".
9851 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9852 (dw2_expand_symtabs_matching): Adjust to use function_view as
9853 callback type.
9854 * language.h: Include "common/function-view.h".
9855 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9856 function_view as callback type.
9857 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9858 * linespec.c: Include "common/function-view.h".
9859 (collect_info::add_symbol): New method.
9860 (struct symbol_and_data_callback, iterate_inline_only, struct
9861 symbol_matcher_data, iterate_name_matcher): Delete.
9862 (iterate_over_all_matching_symtabs): Adjust to use function_view
9863 as callback type and lambdas.
9864 (iterate_over_file_blocks): Adjust to use function_view as
9865 callback type.
9866 (decode_compound_collector): Now a class with private fields.
9867 (decode_compound_collector::release_symbols): New method.
9868 (collect_one_symbol): Rename to...
9869 (decode_compound_collector::operator()): ... this and adjust.
9870 (lookup_prefix_sym): decode_compound_collector construction bits
9871 move to decode_compound_collector ctor. Pass the
9872 decode_compound_collector object directly as callback. Remove
9873 cleanups and use decode_compound_collector::release_symbols
9874 instead.
9875 (symtab_collector): Now a class with private fields.
9876 (symtab_collector::release_symtabs): New method.
9877 (add_symtabs_to_list): Rename to...
9878 (symtab_collector::operator()): ... this and adjust.
9879 (collect_symtabs_from_filename): symtab_collector construction
9880 bits move to symtab_collector ctor. Pass the symtab_collector
9881 object directly as callback. Remove cleanups and use
9882 symtab_collector::release_symtabs instead.
9883 (collect_symbols): Delete.
9884 (add_matching_symbols_to_info): Use lambdas.
9885 * macrocmd.c (print_macro_callback): Delete.
9886 (info_macro_command): Use a lambda.
9887 (info_macros_command): Pass print_macro_definition as callable
9888 directly.
9889 (print_one_macro): Remove 'ignore' parameter.
9890 (macro_list_command): Adjust.
9891 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9892 (macro_for_each_data::user_data): Delete field.
9893 (foreach_macro): Adjust to call the function_view.
9894 (macro_for_each): Adjust to use function_view as callback type.
9895 (foreach_macro_in_scope): Adjust to call the function_view.
9896 (macro_for_each_in_scope): Adjust to use function_view as callback
9897 type.
9898 * macrotab.h: Include "common/function-view.h".
9899 (macro_callback_fn): Declare a prototype instead of a pointer.
9900 Remove "user_data" parameter.
9901 (macro_for_each, macro_for_each_in_scope): Adjust to use
9902 function_view as callback type.
9903 * psymtab.c (partial_map_expand_apply)
9904 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9905 Adjust to use function_view as callback type and to return bool.
9906 (psym_expand_symtabs_matching): Adjust to use function_view as
9907 callback types.
9908 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9909 to use function_view as callback type and to return bool.
9910 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9911 callback types.
9912 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9913 as callback types.
9914 * symfile.h: Include "common/function-view.h".
9915 (expand_symtabs_file_matcher_ftype)
9916 (expand_symtabs_symbol_matcher_ftype)
9917 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9918 return bool.
9919 (quick_symbol_functions::map_symtabs_matching_filename)
9920 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9921 function_view as callback type and return bool.
9922 (expand_symtabs_matching): Adjust to use function_view as callback
9923 type.
9924 (maintenance_expand_name_matcher)
9925 (maintenance_expand_file_matcher): Delete.
9926 (maintenance_expand_symtabs): Use lambdas.
9927 * symtab.c (iterate_over_some_symtabs): Adjust to use
9928 function_view as callback types and return bool.
9929 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9930 of a cleanup.
9931 (lookup_symtab_callback): Delete.
9932 (lookup_symtab): Use a lambda.
9933 (iterate_over_symbols): Adjust to use function_view as callback
9934 type.
9935 (struct search_symbols_data, search_symbols_file_matches)
9936 (search_symbols_name_matches): Delete.
9937 (search_symbols): Use a pair of lambdas.
9938 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9939 (symtab_expansion_callback): Delete.
9940 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9941 * symtab.h: Include "common/function-view.h".
9942 (iterate_over_some_symtabs): Adjust to use function_view as
9943 callback type and return bool.
9944 (iterate_over_symtabs): Adjust to use function_view as callback
9945 type.
9946 (symbol_found_callback_ftype): Remove 'data' parameter and return
9947 bool.
9948 (iterate_over_symbols): Adjust to use function_view as callback
9949 type.
9950
9951 2017-02-23 Pedro Alves <palves@redhat.com>
9952
9953 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9954 (%.o) <unittests/%.c>: New pattern.
9955 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9956 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9957 * common/function-view.h: New file.
9958 * unittests/function-view-selftests.c: New file.
9959 * configure: Regenerate.
9960
9961 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9962
9963 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9964 inferior_ptid.
9965 * go32-nat.c (go32_thread_alive): Likewise.
9966
9967 2017-02-23 Yao Qi <yao.qi@linaro.org>
9968
9969 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9970 delete.
9971
9972 2017-02-23 Yao Qi <yao.qi@linaro.org>
9973
9974 * varobj.c (varobj_clear_saved_item): Use delete instead of
9975 xfree.
9976 (update_dynamic_varobj_children): Likewise.
9977
9978 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9979
9980 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9981
9982 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9983
9984 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9985 m_enum_value to 0 in default constructor.
9986
9987 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9988
9989 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9990 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9991 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9992 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9993 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9994 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9995 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9996 IS_STORE_CONDITIONAL_INSN.
9997
9998 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9999
10000 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10001
10002 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10003
10004 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10005
10006 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10007
10008 * dwarf2read.c (skip_one_die, read_attribute_value)
10009 (dwarf2_const_value_attr, dump_die_shallow)
10010 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10011 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10012
10013 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10014
10015 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10016 (dwarf_parse_macro_header): Accept DWARF version 5.
10017 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10018
10019 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10020
10021 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10022 DW_AT_GNU_*.
10023 * common/common-exceptions.h (enum errors): Likewise.
10024 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10025 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10026 (dwarf_expr_context::execute_stack_op): Likewise.
10027 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10028 Likewise.
10029 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10030 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10031 (show_entry_values_debug, call_site_to_target_addr)
10032 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10033 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10034 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10035 (value_of_dwarf_block_entry, indirect_pieced_value)
10036 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10037 (disassemble_dwarf_expression): Likewise.
10038 * dwarf2read.c (process_die, inherit_abstract_dies)
10039 (read_call_site_scope): Likewise.
10040 * gdbtypes.h (struct func_type, struct call_site_parameter)
10041 (struct call_site): Likewise.
10042 * stack.c (read_frame_arg): Likewise.
10043 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10044
10045 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10046
10047 * defs.h (read_unsigned_leb128): New declaration.
10048 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10049 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10050 (dwarf2_find_location_expression): Call also
10051 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10052 * dwarf2loc.h (dwarf2_version): New declaration.
10053 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10054 rnglists.
10055 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10056 .debug_rnglists.
10057 (struct dwop_section_names): Add loclists_dwo.
10058 (dwop_section_names): Add .debug_loclists.dwo.
10059 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10060 (struct dwarf2_per_cu_data): Add dwarf_version.
10061 (struct dwo_sections): Add loclists.
10062 (struct attr_abbrev): Add implicit_const.
10063 (read_indirect_line_string): New declaration.
10064 (read_unsigned_leb128): Delete declaration.
10065 (rcuh_kind): New definition.
10066 (read_and_check_comp_unit_head): Change parameter
10067 is_debug_types_section to section_kind.
10068 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10069 (read_comp_unit_head): Change parameter abfd to section, add parameter
10070 section_kind. Handle DWARF-5.
10071 (error_check_comp_unit_head): Accept also DWARF version 5.
10072 (read_and_check_comp_unit_head): Change parameter
10073 is_debug_types_section to section_kind.
10074 (read_and_check_type_unit_head): Delete function.
10075 (read_abbrev_offset): Handle DWARF-5.
10076 (create_debug_type_hash_table): Add parameter section_kind. Process
10077 only DW_UT_type. Use signature and type_offset_in_tu from struct
10078 comp_unit_head.
10079 (create_debug_types_hash_table): Update create_debug_type_hash_table
10080 caller.
10081 (create_all_type_units): Call create_debug_type_hash_table.
10082 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10083 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10084 caller.
10085 (skip_one_die): Handle DW_FORM_implicit_const.
10086 (dwarf2_rnglists_process): New function.
10087 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10088 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10089 (read_attribute_value): Handle DW_FORM_implicit_const,
10090 DW_FORM_line_strp.
10091 (read_attribute): Handle DW_FORM_implicit_const.
10092 (read_indirect_string_at_offset_from): New function from
10093 read_indirect_string_at_offset.
10094 (read_indirect_string_at_offset): Call
10095 read_indirect_string_at_offset_from.
10096 (read_indirect_line_string_at_offset): New function.
10097 (read_indirect_string): New function comment.
10098 (read_indirect_line_string): New function.
10099 (read_unsigned_leb128): Make it global.
10100 (dwarf2_string_attr): Handle DWARF-5.
10101 (add_include_dir_stub, read_formatted_entries): New functions.
10102 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10103 Handle DWARF-5.
10104 (per_cu_header_read_in): Update read_comp_unit_head caller.
10105 (dwarf2_version): New function.
10106 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10107 rnglists.
10108 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10109 fields.
10110
10111 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10112
10113 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10114
10115 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10116
10117 * dwarf2read.c (dwarf2_ranges_process): New function from
10118 dwarf2_ranges_read.
10119 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10120 dwarf2_ranges_process.
10121
10122 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10123
10124 * dwarf2read.c (create_debug_type_hash_table): New function from
10125 create_debug_types_hash_table.
10126 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10127 (create_all_type_units, open_and_init_dwo_file): Update
10128 create_debug_types_hash_table callers.
10129
10130 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10131
10132 PR gdb/16188
10133 * fork-child.c (trace_start_error): Fix thinko. va_end should
10134 refer to 'ap', not 'args'.
10135
10136 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10137 Pedro Alves <palves@redhat.com>
10138
10139 PR gdb/16188
10140 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10141 calls succeeded.
10142 * fork-child.c (trace_start_error): New function.
10143 (trace_start_error_with_name): Likewise.
10144 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10145 * inf-ptrace.c (inf_ptrace_me): Likewise.
10146 * inferior.h (trace_start_error): New prototype.
10147 (trace_start_error_with_name): Likewise.
10148
10149 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10150
10151 PR gdb/21164
10152 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10153 NULL before using it.
10154 * symmisc.c (maintenance_print_symbols): Likewise.
10155 (maintenance_print_msymbols): Likewise.
10156
10157 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10158
10159 * NEWS: Add record Python bindings entry.
10160
10161 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10162
10163 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10164 py-record-full.o.
10165 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10166 * python/py-record-btrace.c, python/py-record-btrace.h,
10167 python/py-record-full.c, python/py-record-full.h: New file.
10168 * python/py-record.c: Add include for py-record-btrace.h and
10169 py-record-full.h.
10170 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10171 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10172 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10173 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10174 New definition.
10175 (gdbpy_initialize_btrace): New export.
10176 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10177
10178 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10179
10180 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10181 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10182 * python/py-record.c: New file.
10183 * python/python-internal.h (gdbpy_start_recording,
10184 gdbpy_current_recording, gdpy_stop_recording,
10185 gdbpy_initialize_record): New export.
10186 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10187 (python_GdbMethods): Add gdbpy_start_recording,
10188 gdbpy_current_recording and gdbpy_stop_recording.
10189
10190 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10191
10192 * record-btrace.c (record_btrace_record_method): New function.
10193 (init_record_btrace_ops): Initialize to_record_method.
10194 * record-full.c (record_full_record_method): New function.
10195 (init_record_full_ops, init_record_full_core_ops): Add
10196 record_full_record_method.
10197 * record.h (enum record_method): New enum.
10198 * target-debug.h (target_debug_print_enum_record_method: New define.
10199 * target-delegates.c: Regenerate.
10200 * target.c (target_record_method): New function.
10201 * target.h: Include record.h.
10202 (struct target_ops) <to_record_method>: New field.
10203 (target_record_method): New export.
10204
10205 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10206
10207 * record.h (record_start, record_stop): New export.
10208 * record.c (record_start, record_stop): New function.
10209
10210 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10211
10212 * btrace.c (btrace_fetch): Copy function call segments pointer
10213 into a vector.
10214 (btrace_clear): Clear the vector.
10215 (btrace_find_insn_by_number): Use binary search to find the correct
10216 function call segment.
10217 * btrace.h (brace_fun_p): New typedef.
10218 (struct btrace_thread_info) <functions>: New field.
10219
10220 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10221
10222 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10223 * btrace.c (btrace_decode_error): ... here. New function.
10224 * btrace.h (btrace_decode_error): New export.
10225
10226 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10227
10228 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10229 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10230 btrace_find_insn_by_number): Remove special case for gaps.
10231 * btrace.h (btrace_insn_get_error): New export.
10232 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10233 * record-btrace.c (btrace_insn_history): Print number for gaps.
10234 (record_btrace_info, record_btrace_goto): Handle gaps.
10235
10236 2017-02-14 Tom Tromey <tom@tromey.com>
10237
10238 PR python/13598:
10239 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10240 event.
10241 * python/py-evts.c (gdbpy_initialize_py_events): Add
10242 before_prompt registry.
10243 * python/py-events.h (events_object) <before_prompt>: New field.
10244
10245 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10246
10247 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10248
10249 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
10250
10251 * symfile (_initialize_symfile): Add usage text to the load command's
10252 help text.
10253
10254 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10255
10256 * utils.c (defaulted_query): Don't query on secondary UIs.
10257
10258 2017-02-10 Tom Tromey <tom@tromey.com>
10259
10260 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10261
10262 2017-02-10 Tom Tromey <tom@tromey.com>
10263
10264 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10265 "cleanup" local.
10266 * python/py-type.c (typy_legacy_template_argument): Remove
10267 unnecessary "cleanup" local.
10268
10269 2017-02-10 Tom Tromey <tom@tromey.com>
10270
10271 * python/python.c (do_start_initialization): New function, from
10272 _initialize_python.
10273 (_initialize_python): Call do_start_initialization.
10274 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10275 goto.
10276
10277 2017-02-10 Tom Tromey <tom@tromey.com>
10278
10279 * python/py-prettyprint.c (pretty_print_one_value): Use
10280 gdbpy_ref.
10281
10282 2017-02-10 Tom Tromey <tom@tromey.com>
10283
10284 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10285 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10286 gdbpy_ref.
10287 * python/py-type.c (field_new): Use gdbpy_ref.
10288 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10289 gdbpy_ref.
10290 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10291 (py_free_pspace): Likewise.
10292 (pspace_to_pspace_object): Likewise.
10293 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10294 (py_free_objfile): Likewise.
10295 (objfile_to_objfile_object): Likewise.
10296 * python/py-inferior.c (delete_thread_object): Use
10297 gdbpy_ref.
10298 (infpy_read_memory): Likewise.
10299 (py_free_inferior): Likewise.
10300 * python/py-evtregistry.c (create_eventregistry_object): Use
10301 gdbpy_ref.
10302 * python/py-event.c (create_event_object): Use gdbpy_ref.
10303
10304 2017-02-10 Tom Tromey <tom@tromey.com>
10305
10306 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10307 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10308 used.
10309 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10310 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10311 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10312 python/py-framefilter.c, python/py-function.c,
10313 python/py-inferior.c, python/py-infevents.c,
10314 python/py-linetable.c, python/py-newobjfileevent.c,
10315 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10316 python/py-signalevent.c, python/py-stopevent.c,
10317 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10318 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10319 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10320 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10321
10322 2017-02-10 Tom Tromey <tom@tromey.com>
10323
10324 * ui-out.h (ui_out_emit_type): New class.
10325 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10326 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10327 and ui_out_emit_tuple.
10328 (enumerate_locals): Likewise.
10329 (py_mi_print_variables, py_print_locals, py_print_args): Use
10330 ui_out_emit_list.
10331 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10332 ui_out_emit_list.
10333 * common/gdb_optional.h: New file.
10334
10335 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10336
10337 * MAINTAINERS (Write After Approval): Update my e-mail address.
10338
10339 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10340
10341 PR gdb/21122
10342 * breakpoint.c (_initialize_breakpoint): Update the help description
10343 of the 'commands' command to indicate that it takes a list argument.
10344
10345 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10346
10347 * interps.c (current_interp_set_logging): Remove "return".
10348
10349 2017-02-09 Gary Benson <gbenson@redhat.com>
10350
10351 * symtab.c (add_symtab_completions): Prevent NULL pointer
10352 dereference.
10353
10354 2017-02-08 Pedro Alves <palves@redhat.com>
10355
10356 * interps.c (interp::interp): Remove reference to quiet_p.
10357 (interp_set): Make static. Remove dead "Switching to" output
10358 code.
10359 (interp_quiet_p, interp_set_quiet): Delete.
10360 (interpreter_exec_cmd): Don't set the interpreter quiet.
10361 * interps.h (interp_quiet_p): Make static.
10362 (class interp) <quiet_p>: Remove field
10363
10364 2017-02-08 Jerome Guitton <guitton@adacore.com>
10365
10366 * cli/cli-decode.c (find_command_name_length): Make it extern.
10367 * cli/cli-decode.h (find_command_name_length): Declare.
10368 * cli/cli-script.c (command_name_equals, line_first_arg):
10369 New functions.
10370 (process_next_line): Use cli-decode to parse command names.
10371 (build_command_line): Make args a constant pointer.
10372
10373 2017-02-08 Jerome Guitton <guitton@adacore.com>
10374
10375 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10376 Remove case-insensitive search.
10377
10378 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10379
10380 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10381 at the end of the line. Avoids an ARI warning.
10382
10383 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
10384
10385 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10386 rdseed instructions.
10387 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10388
10389 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10390
10391 PR tdep/20936
10392 Provide and use sparc32 and sparc64 target description XML files.
10393 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10394 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10395 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10396 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10397 * features/sparc/sparc32-solaris.xml: New file.
10398 * features/sparc/sparc64-solaris.xml: New file.
10399 * features/sparc/sparc32-solaris.c: Generated.
10400 * features/sparc/sparc64-solaris.c: Generated.
10401 * sparc-tdep.h: Account for differences in target descriptions.
10402 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10403 (sparc32_register_type): Use target provided registers.
10404 (validate_tdesc_registers): New function.
10405 (sparc32_gdbarch_init): Use tdesc_has_registers.
10406 Set pseudoregister functions.
10407 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10408 (sparc64_register_type): Use target provided registers.
10409 (sparc64_init_abi): Set pseudoregister functions.
10410
10411 2017-02-03 Tom Tromey <tom@tromey.com>
10412
10413 PR rust/21097:
10414 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10415 with a single member.
10416
10417 2017-02-03 Pedro Alves <palves@redhat.com>
10418
10419 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10420 (cli_interp_base::~cli_interp_base): New.
10421 (cli_interp): New struct.
10422 (as_cli_interp): Cast the interp itself to cli_interp.
10423 (cli_interpreter_pre_command_loop): Rename to ...
10424 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10425 parameter.
10426 (cli_interpreter_init): Rename to ...
10427 (cli_interp::init): ... this. Remove 'self' parameter. Use
10428 boolean. Make extern.
10429 (cli_interpreter_resume): Rename to ...
10430 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10431 extern.
10432 (cli_interpreter_suspend): Rename to ...
10433 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10434 extern.
10435 (cli_interpreter_exec): Rename to ...
10436 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10437 extern.
10438 (cli_interpreter_supports_command_editing): Rename to ...
10439 (cli_interp_base::supports_command_editing): ... this. Remove
10440 'interp' parameter. Make extern.
10441 (cli_ui_out): Rename to ...
10442 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10443 Make extern.
10444 (cli_set_logging): Rename to ...
10445 (cli_interp_base::set_logging): ... this. Remove 'interp'
10446 parameter. Make extern.
10447 (cli_interp_procs): Delete.
10448 (cli_interp_factory): Adjust to use "new".
10449 * cli/cli-interp.h: Include "interps.h".
10450 (struct cli_interp_base): New struct.
10451 * interps.c (struct interp): Delete. Fields moved to interps.h.
10452 (interp_new): Delete.
10453 (interp::interp, interp::~interp): New.
10454 (interp_set): Use bool, and return void. Assume the interpreter
10455 has suspend, init and resume methods, and that the all return
10456 void.
10457 (set_top_level_interpreter): interp_set returns void.
10458 (interp_ui_out): Adapt.
10459 (current_interp_set_logging): Adapt.
10460 (interp_data): Delete.
10461 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10462 (interp_exec): Adapt.
10463 (top_level_interpreter_data): Delete.
10464 * interps.h (interp_init_ftype, interp_resume_ftype)
10465 (interp_suspend_ftype, interp_exec_ftype)
10466 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10467 (class interp): New.
10468 (interp_new): Delete.
10469 (interp_set): Now returns void. Use bool.
10470 (interp_data, top_level_interpreter_data): Delete.
10471 * mi/mi-common.h: Include interps.h.
10472 (class mi_interp): Inherit from interp. Define a ctor. Declare
10473 init, resume, suspect, exec, interp_ui_out, set_logging and
10474 pre_command_loop methods.
10475 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10476 (mi_interpreter_init): Rename to ...
10477 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10478 bool, return void and make extern. Adjust.
10479 (mi_interpreter_resume): ... Rename to ...
10480 (mi_interp::resume): ... this. Remove the 'data' parameter,
10481 return void and make extern. Adjust.
10482 (mi_interpreter_suspend): ... Rename to ...
10483 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10484 return void and make extern. Adjust.
10485 (mi_interpreter_exec): ... Rename to ...
10486 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10487 extern. Adjust.
10488 (mi_interpreter_pre_command_loop): ... Rename to ...
10489 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10490 parameter and make extern.
10491 (mi_on_normal_stop_1): Adjust.
10492 (mi_ui_out): Rename to ...
10493 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10494 parameter and make extern. Adjust.
10495 (mi_set_logging): Rename to ...
10496 (mi_interp::set_logging): ... this. Remove the 'interp'
10497 parameter and make extern. Adjust.
10498 (mi_interp_procs): Delete.
10499 (mi_interp_factory): Adjust to use 'new'.
10500 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10501 (mi_print_exception, mi_execute_command, mi_load_progress):
10502 Adjust.
10503 * tui/tui-interp.c (tui_interp): New class.
10504 (as_tui_interp): Return a tui_interp pointer.
10505 (tui_on_normal_stop, tui_on_signal_received)
10506 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10507 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10508 to use interp::interp_ui_out.
10509 (tui_init): Rename to ...
10510 (tui_interp::init): ... this. Remove the 'self' parameter, use
10511 bool, return void and make extern. Adjust.
10512 (tui_resume): Rename to ...
10513 (tui_interp::resume): ... this. Remove the 'data' parameter,
10514 return void and make extern. Adjust.
10515 (tui_suspend): Rename to ...
10516 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10517 return void and make extern. Adjust.
10518 (tui_ui_out): Rename to ...
10519 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10520 parameter, and make extern. Adjust.
10521 (tui_exec): Rename to ...
10522 (tui_interp::exec): ... this. Remove the 'data' parameter and
10523 make extern.
10524 (tui_interp_procs): Delete.
10525 (tui_interp_factory): Use "new".
10526
10527 2017-02-02 Tom Tromey <tom@tromey.com>
10528
10529 * rust-exp.y (ends_raw_string, space_then_number)
10530 (rust_identifier_start_p): Return bool.
10531 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10532 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10533 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10534 (rust_chartype_p): Return bool.
10535 (val_print_struct, rust_print_struct_def, rust_print_type):
10536 Update.
10537 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10538 Return bool.
10539
10540 2017-02-02 Tom Tromey <tom@tromey.com>
10541
10542 * rust-lang.c: Reindent.
10543
10544 2017-02-02 Tom Tromey <tom@tromey.com>
10545
10546 * rust-lang.h (rust_crate_for_block): Update.
10547 * rust-lang.c (rust_crate_for_block): Return std::string.
10548 (rust_get_disr_info): Use std:;string, not
10549 gdb::unique_xmalloc_ptr.
10550 * rust-exp.y (crate_name): Update.
10551
10552 2017-02-02 Pedro Alves <palves@redhat.com>
10553
10554 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10555 field out of gdb_disassembler_test and make it static.
10556
10557 2017-02-02 Pedro Alves <palves@redhat.com>
10558
10559 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10560 mi1_interp and mi_interp fields.
10561
10562 2017-02-02 Pedro Alves <palves@redhat.com>
10563
10564 * cli/cli-interp.c (struct saved_output_files, saved_output):
10565 Moved from cli/cli-logging.c.
10566 (cli_set_logging): New function.
10567 (cli_interp_procs): Install cli_set_logging.
10568 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10569 Declare.
10570 * cli/cli-logging.c (struct saved_output_files, saved_output):
10571 Moved to cli/cli-interp.c.
10572 (pop_output_files): Don't save outputs here.
10573 (make_logging_output): New function.
10574 (handle_redirections): Don't build tee nor save previous outputs
10575 here.
10576 * interps.c (current_interp_set_logging): Change prototype.
10577 Assume there's always a set_logging_proc method installed.
10578 * interps.h (interp_set_logging_ftype): Change prototype.
10579 (current_interp_set_logging): Change prototype and adjust comment.
10580 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10581 use make_logging_output.
10582 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10583 2017-02-02 Pedro Alves <palves@redhat.com>
10584
10585 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10586 from ...
10587 (set_logging_overwrite): ... here.
10588 (logging_no_redirect_file): Delete.
10589 (set_logging_redirect): Don't handle redirection on the fly.
10590 Instead warn that "logging off" / "logging on" is necessary.
10591 (pop_output_files): Delete references to logging_no_redirect_file.
10592 (show_logging_command): Always speak in terms of what will happen
10593 once logging is reenabled.
10594
10595 2017-02-02 Pedro Alves <palves@redhat.com>
10596
10597 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10598
10599 2017-02-02 Pedro Alves <palves@redhat.com>
10600
10601 * disasm.c (gdb_pretty_print_insn): Rename to ...
10602 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10603 Remove gdbarch parameter. Adapt to clear the object's buffers
10604 instead of allocating new buffers, and to print using the object's
10605 gdb_disassembler instead of calling gdb_print_insn.
10606 (dump_insns): Use gdb_pretty_print_disassembler.
10607 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10608 (gdb_pretty_print_disassembler): New class.
10609 * record-btrace.c (btrace_insn_history): Use
10610 gdb_pretty_print_disassembler.
10611
10612 2017-02-02 Pedro Alves <palves@redhat.com>
10613
10614 * ada-lang.c (type_as_string): Use string_file.
10615 * ada-valprint.c (ada_print_floating): Use string_file.
10616 * ada-varobj.c (ada_varobj_scalar_image)
10617 (ada_varobj_get_value_image): Use string_file.
10618 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10619 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10620 * breakpoint.c (update_inserted_breakpoint_locations)
10621 (insert_breakpoint_locations, reattach_breakpoints)
10622 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10623 (print_it_watchpoint): Use string_file.
10624 (save_breakpoints): Use stdio_file.
10625 * c-exp.y (oper): Use string_file.
10626 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10627 tee_file.
10628 (pop_output_files): Use delete.
10629 (handle_redirections): Use stdio_file and tee_file.
10630 * cli/cli-setshow.c (do_show_command): Use string_file.
10631 * compile/compile-c-support.c (c_compute_program): Use
10632 string_file.
10633 * compile/compile-c-symbols.c (generate_vla_size): Take a
10634 'string_file &' instead of a 'ui_file *'.
10635 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10636 of a 'ui_file *'. Use string_file.
10637 (generate_c_for_variable_locations): Take a 'string_file &'
10638 instead of a 'ui_file *'.
10639 * compile/compile-internal.h (generate_c_for_for_one_variable):
10640 Take a 'string_file &' instead of a 'ui_file *'.
10641 * compile/compile-loc2c.c (push, pushf, unary, binary)
10642 (print_label, pushf_register_address, pushf_register)
10643 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10644 'ui_file *'. Adjust.
10645 * compile/compile.c (compile_to_object): Use string_file.
10646 * compile/compile.h (compile_dwarf_expr_to_c)
10647 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10648 'ui_file *'.
10649 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10650 (replace_typedefs_qualified_name): Use string_file and
10651 obstack_copy0.
10652 * disasm.c (gdb_pretty_print_insn): Use string_file.
10653 (gdb_disassembly): Adjust reference the null_stream global.
10654 (do_ui_file_delete): Delete.
10655 (gdb_insn_length): Use null_stream.
10656 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10657 * dwarf2loc.c (dwarf2_compile_property_to_c)
10658 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10659 'string_file &' instead of a 'ui_file *'.
10660 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10661 * dwarf2read.c (do_ui_file_peek_last): Delete.
10662 (dwarf2_compute_name): Use string_file.
10663 * event-top.c (gdb_setup_readline): Use stdio_file.
10664 * gdbarch.sh (verify_gdbarch): Use string_file.
10665 * gdbtypes.c (safe_parse_type): Use null_stream.
10666 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10667 string_file.
10668 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10669 'string_file *' instead of a 'ui_file *'.
10670 (gdbscm_arch_disassemble): Use string_file.
10671 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10672 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10673 inherits from ui_file.
10674 (ioscm_file_port_delete, ioscm_file_port_rewind)
10675 (ioscm_file_port_put): Delete.
10676 (ioscm_file_port_write): Rename to ...
10677 (ioscm_file_port::write): ... this. Remove file_port_magic
10678 checks.
10679 (ioscm_file_port_new): Delete.
10680 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10681 ui_file_up.
10682 * guile/scm-type.c (tyscm_type_name): Use string_file.
10683 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10684 Use string_file.
10685 * infcmd.c (print_return_value_1): Use string_file.
10686 * infrun.c (print_target_wait_results): Use string_file.
10687 * language.c (add_language): Use string_file.
10688 * location.c (explicit_to_string_internal): Use string_file.
10689 * main.c (captured_main_1): Use null_file.
10690 * maint.c (maintenance_print_architecture): Use stdio_file.
10691 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10692 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10693 event_channel>: Change type to mi_console_file pointer.
10694 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10695 (mi_console_file_delete): Delete.
10696 (struct mi_console_file): Delete.
10697 (mi_console_file_magic): Delete.
10698 (mi_console_file_new): Delete.
10699 (mi_console_file::mi_console_file): New.
10700 (mi_console_file_delete): Delete.
10701 (mi_console_file_fputs): Delete.
10702 (mi_console_file::write): New.
10703 (mi_console_raw_packet): Delete.
10704 (mi_console_file::flush): New.
10705 (mi_console_file_flush): Delete.
10706 (mi_console_set_raw): Rename to ...
10707 (mi_console_file::set_raw): ... this.
10708 * mi/mi-console.h (class mi_console_file): New class.
10709 (mi_console_file_new, mi_console_set_raw): Delete.
10710 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10711 (mi_set_logging): Use delete and tee_file. Adjust.
10712 * mi/mi-main.c (output_register): Use string_file.
10713 (mi_cmd_data_evaluate_expression): Use string_file.
10714 (mi_cmd_data_read_memory): Use string_file.
10715 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10716 * mi/mi-out.c (mi_ui_out::main_stream): New.
10717 (mi_ui_out::rewind): Use main_stream and
10718 string_file.
10719 (mi_ui_out::put): Use main_stream and string_file.
10720 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10721 Allocate a 'string_file' instead.
10722 (mi_out_new): Don't allocate a mem_fileopen stream here.
10723 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10724 (mi_ui_out::main_stream): Declare method.
10725 * printcmd.c (eval_command): Use string_file.
10726 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10727 * python/py-arch.c (archpy_disassemble): Use string_file.
10728 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10729 * python/py-frame.c (frapy_str): Use string_file.
10730 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10731 Use string_file.
10732 * python/py-type.c (typy_str): Use string_file.
10733 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10734 * python/py-value.c (valpy_str): Use string_file.
10735 * record-btrace.c (btrace_insn_history): Use string_file.
10736 * regcache.c (regcache_print): Use stdio_file.
10737 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10738 * remote.c (escape_buffer): Use string_file.
10739 * rust-lang.c (rust_get_disr_info): Use string_file.
10740 * serial.c (serial_open_ops_1): Use stdio_file.
10741 (do_serial_close): Use delete.
10742 * stack.c (print_frame_arg): Use string_file.
10743 (print_frame_args): Remove local mem_fileopen stream, not used.
10744 (print_frame): Use string_file.
10745 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10746 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10747 Take a 'string_file *' instead of a 'ui_file *'.
10748 * top.c (new_ui): Use stdio_file and stderr_file.
10749 (free_ui): Use delete.
10750 (execute_command_to_string): Use string_file.
10751 (quit_confirm): Use string_file.
10752 * tracepoint.c (collection_list::append_exp): Use string_file.
10753 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10754 * tui/tui-file.c: Don't include "ui-file.h".
10755 (enum streamtype, struct tui_stream): Delete.
10756 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10757 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10758 (tui_file::tui_file): New method.
10759 (tui_file_fputs): Delete.
10760 (tui_file_get_strbuf): Delete.
10761 (tui_file::puts): New method.
10762 (tui_file_adjust_strbuf): Delete.
10763 (tui_file_flush): Delete.
10764 (tui_file::flush): New method.
10765 * tui/tui-file.h: Tweak intro comment.
10766 Include ui-file.h.
10767 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10768 (tui_file_adjust_strbuf): Delete declarations.
10769 (class tui_file): New class.
10770 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10771 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10772 (tui_register_format): Use string_stream.
10773 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10774 (tui_get_function_from_frame): Use string_file.
10775 * typeprint.c (type_to_string): Use string_file.
10776 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10777 (null_stream): New global.
10778 (ui_file_delete): Delete.
10779 (ui_file::ui_file): New.
10780 (null_file_isatty): Delete.
10781 (ui_file::~ui_file): New.
10782 (null_file_rewind): Delete.
10783 (ui_file::printf): New.
10784 (null_file_put): Delete.
10785 (null_file_flush): Delete.
10786 (ui_file::putstr): New.
10787 (null_file_write): Delete.
10788 (ui_file::putstrn): New.
10789 (null_file_read): Delete.
10790 (ui_file::putc): New.
10791 (null_file_fputs): Delete.
10792 (null_file_write_async_safe): Delete.
10793 (ui_file::vprintf): New.
10794 (null_file_delete): Delete.
10795 (null_file::write): New.
10796 (null_file_fseek): Delete.
10797 (null_file::puts): New.
10798 (ui_file_data): Delete.
10799 (null_file::write_async_safe): New.
10800 (gdb_flush, ui_file_isatty): Adjust.
10801 (ui_file_put, ui_file_rewind): Delete.
10802 (ui_file_write): Adjust.
10803 (ui_file_write_for_put): Delete.
10804 (ui_file_write_async_safe, ui_file_read): Adjust.
10805 (ui_file_fseek): Delete.
10806 (fputs_unfiltered): Adjust.
10807 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10808 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10809 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10810 (set_ui_file_data): Delete.
10811 (string_file::~string_file, string_file::write)
10812 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10813 (do_ui_file_as_string, ui_file_as_string): Delete.
10814 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10815 (struct mem_file): Delete.
10816 (mem_file_new): Delete.
10817 (stdio_file::stdio_file): New.
10818 (mem_file_delete): Delete.
10819 (stdio_file::stdio_file): New.
10820 (mem_fileopen): Delete.
10821 (stdio_file::~stdio_file): New.
10822 (mem_file_rewind): Delete.
10823 (stdio_file::set_stream): New.
10824 (mem_file_put): Delete.
10825 (stdio_file::open): New.
10826 (mem_file_write): Delete.
10827 (stdio_file_magic, struct stdio_file): Delete.
10828 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10829 (stdio_file::flush): New.
10830 (stdio_file_read): Rename to ...
10831 (stdio_file::read): ... this. Adjust.
10832 (stdio_file_write): Rename to ...
10833 (stdio_file::write): ... this. Adjust.
10834 (stdio_file_write_async_safe): Rename to ...
10835 (stdio_file::write_async_safe) ... this. Adjust.
10836 (stdio_file_fputs): Rename to ...
10837 (stdio_file::puts) ... this. Adjust.
10838 (stdio_file_isatty): Delete.
10839 (stdio_file_fseek): Delete.
10840 (stdio_file::isatty): New.
10841 (stderr_file_write): Rename to ...
10842 (stderr_file::write) ... this. Adjust.
10843 (stderr_file_fputs): Rename to ...
10844 (stderr_file::puts) ... this. Adjust.
10845 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10846 (stderr_file::stderr_file): New.
10847 (tee_file_magic): Delete.
10848 (struct tee_file): Delete.
10849 (tee_file::tee_file): New.
10850 (tee_file_new): Delete.
10851 (tee_file::~tee_file): New.
10852 (tee_file_delete): Delete.
10853 (tee_file_flush): Rename to ...
10854 (tee_file::flush): ... this. Adjust.
10855 (tee_file_write): Rename to ...
10856 (tee_file::write): ... this. Adjust.
10857 (tee_file::write_async_safe): New.
10858 (tee_file_fputs): Rename to ...
10859 (tee_file::puts): ... this. Adjust.
10860 (tee_file_isatty): Rename to ...
10861 (tee_file::isatty): ... this. Adjust.
10862 * ui-file.h (struct obstack, struct ui_file): Don't
10863 forward-declare.
10864 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10865 (ui_file_write_ftype)
10866 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10867 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10868 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10869 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10870 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10871 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10872 (set_ui_file_fseek): Delete.
10873 (ui_file_data, ui_file_delete, ui_file_rewind)
10874 (struct ui_file): New.
10875 (ui_file_up): New.
10876 (class null_file): New.
10877 (null_stream): Declare.
10878 (ui_file_write_for_put, ui_file_put): Delete.
10879 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10880 Delete.
10881 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10882 (gdb_fopen, tee_file_new): Delete.
10883 (struct string_file): New.
10884 (struct stdio_file): New.
10885 (stdio_file_up): New.
10886 (struct stderr_file): New.
10887 (class tee_file): New.
10888 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10889 of a 'ui_file *'. Adjust.
10890 * ui-out.h (class ui_out) <field_stream>: Likewise.
10891 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10892 (null_stream): Delete.
10893 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10894 Adjust.
10895 * utils.h (struct ui_file): Delete forward declaration..
10896 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10897 (error_stream): Take a 'string_file &' instead of a
10898 'ui_file *'.
10899 * varobj.c (varobj_value_get_print_value): Use string_file.
10900 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10901 * gdbarch.c: Regenerate.
10902
10903 2017-02-02 Pedro Alves <palves@redhat.com>
10904
10905 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10906 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10907 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10908 Adjust to call gdb_print_insn instead of
10909 gdb_disassembler::print_insn.
10910 (dump_insns, do_mixed_source_and_assembly_deprecated)
10911 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10912 'gdbarch' parameter. Remove gdb_disassembler parameter.
10913 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10914 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10915 declaration.
10916 (gdb_pretty_print_insn): Re-add declaration.
10917 * record-btrace.c (btrace_insn_history): Don't allocate a
10918 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10919
10920 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10921
10922 * disasm.h (gdb_disassembly): Remove file_string parameter.
10923 * disasm.c (gdb_disassembly): Likewise.
10924 * cli/cli-cmds.c (print_disassembly): Adapt.
10925 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10926 * stack.c (do_gdb_disassembly): Likewise.
10927
10928 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10929
10930 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10931 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10932 targets. And if the implicit value is longer than needed, extract
10933 the first bytes instead of the "least significant" ones.
10934
10935 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10936
10937 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10938 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10939 (btrace_fetch): Assert can_access_registers_ptid.
10940 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10941 validate_registers_access.
10942
10943 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10944
10945 * gdbthread.h (can_access_registers_ptid): New.
10946 * thread.c (can_access_registers_ptid): New.
10947
10948 2017-02-01 Pedro Alves <palves@redhat.com>
10949
10950 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10951
10952 2017-01-31 Pedro Alves <palves@redhat.com>
10953
10954 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10955 Fix typos.
10956
10957 2017-01-31 Pedro Alves <palves@redhat.com>
10958
10959 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10960 not used.
10961
10962 2017-01-31 Pedro Alves <palves@redhat.com>
10963
10964 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10965
10966 2017-01-31 Pedro Alves <palves@redhat.com>
10967
10968 * common/scoped_restore.h
10969 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10970 change the value's parameter type to T2.
10971 (make_scoped_restore): Likewise.
10972
10973 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10974 Richard Henderson <rth@redhat.com>
10975
10976 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10977 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10978 GS_BASE for older kernels.
10979 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10980 GS_BASE for older kernels.
10981 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10982 and GS_BASE to the offset table.
10983 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10984 system register group.
10985 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10986 for older kernels.
10987 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10988 amd64 ABI.
10989 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10990 AMD64_GSBASE_REGNUM.
10991 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10992 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10993 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10994 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10995 i386/64bit-segments.xml in those rules.
10996 * features/i386/64bit-segments.xml: New file.
10997 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10998 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10999 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11000 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11001 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11002 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11003 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11004 * features/i386/amd64-avx-linux.c: Regenerated.
11005 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11006 * features/i386/amd64-avx-mpx.c: Regenerated.
11007 * features/i386/amd64-avx512-linux.c: Regenerated.
11008 * features/i386/amd64-linux.c: Regenerated.
11009 * features/i386/amd64-mpx-linux.c: Regenerated.
11010 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11011 * features/i386/i386-avx-mpx.c: Regenerated.
11012 * features/i386/x32-avx-linux.c: Regenerated.
11013 * features/i386/x32-avx512-linux.c: Regenerated.
11014 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11015 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11016 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11017 * regformats/i386/amd64-linux.dat: Regenerated.
11018 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11019 * regformats/i386/x32-avx-linux.dat: Regenerated.
11020 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11021 * regformats/i386/x32-linux.dat: Regenerated.
11022
11023 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11024
11025 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11026 Set to AMD64_NUM_REGS.
11027
11028 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11029
11030 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11031 that checks validity of a register number.
11032
11033 2017-01-27 Kees Cook <keescook@google.com>
11034
11035 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11036 fetch_fpregs if target has fpa registers.
11037 (arm_linux_store_inferior_registers): Call store_fpregs if target
11038 has fpa registers.
11039
11040 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11041
11042 * cris-tdep.c (cris_gdbarch_init): Remove check for
11043 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11044
11045 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11046
11047 * corelow.c (get_core_register_section): Check for regset
11048 existence before checking for REGSET_VARIABLE_SIZE.
11049
11050 2017-01-26 Yao Qi <yao.qi@linaro.org>
11051 Pedro Alves <palves@redhat.com>
11052
11053 PR gdb/20939
11054 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11055 call memory_error, save memaddr instead.
11056 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11057 negative, cal memory_error.
11058 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11059
11060 2017-01-26 Yao Qi <yao.qi@linaro.org>
11061
11062 * disasm-selftests.c (memory_error_test): New function.
11063 (_initialize_disasm_selftests): Register memory_error_test.
11064
11065 2017-01-26 Yao Qi <yao.qi@linaro.org>
11066
11067 * Makefile.in (SFILES): Add disasm-selftests.c and
11068 selftest-arch.c.
11069 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11070 * disasm-selftests.c: New file.
11071 * selftest-arch.c: New file.
11072 * selftest-arch.h: New file.
11073
11074 2017-01-26 Yao Qi <yao.qi@linaro.org>
11075
11076 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11077 to bfd_arch_mep. Don't return 0 if section is not
11078 found. Call print_insn_mep.
11079
11080 2017-01-26 Pedro Alves <palves@redhat.com>
11081 Yao Qi <yao.qi@linaro.org>
11082
11083 * arm-tdep.c: Include "disasm.h".
11084 (gdb_print_insn_arm): Update code to get gdbarch.
11085 * disasm.c (dis_asm_read_memory): Change it to
11086 gdb_disassembler::dis_asm_read_memory.
11087 (dis_asm_memory_error): Likewise.
11088 (dis_asm_print_address): Likewise.
11089 (gdb_pretty_print_insn): Change it to
11090 gdb_disassembler::pretty_print_insn.
11091 (dump_insns): Add one argument gdb_disassemlber. All
11092 callers updated.
11093 (do_mixed_source_and_assembly_deprecated): Likewise.
11094 (do_mixed_source_and_assembly): Likewise.
11095 (do_assembly_only): Likewise.
11096 (gdb_disassembler::gdb_disassembler): New.
11097 (gdb_disassembler::print_insn): New.
11098 * disasm.h (class gdb_disassembler): New.
11099 (gdb_pretty_print_insn): Remove declaration.
11100 (gdb_disassemble_info): Likewise.
11101 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11102 (gdbscm_disasm_read_memory_worker): Update.
11103 (gdbscm_disasm_read_memory): Update.
11104 (gdbscm_disasm_memory_error): Remove.
11105 (gdbscm_disasm_print_address): Remove.
11106 (gdbscm_disassembler::gdbscm_disassembler): New.
11107 (gdbscm_print_insn_from_port): Update.
11108 * mips-tdep.c: Include disasm.h.
11109 (gdb_print_insn_mips): Update code to get gdbarch.
11110 * record-btrace.c (btrace_insn_history): Update.
11111 * spu-tdep.c: Include disasm.h.
11112 (struct spu_dis_asm_data): Remove.
11113 (struct spu_dis_asm_info): New.
11114 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11115 SPU id.
11116 (gdb_print_insn_spu): Cast disassemble_info to
11117 spu_dis_asm_info.
11118
11119 2017-01-26 Yao Qi <yao.qi@linaro.org>
11120
11121 * disasm.c (do_ui_file_delete): Delete.
11122 (gdb_insn_length): Move code creating stream to ...
11123 * utils.c (null_stream): ... here. New function.
11124 * utils.h (null_stream): Declare.
11125
11126 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11127
11128 * python/py-inferior.c (find_thread_object): Return directly
11129 from the loop. Remove "found" variable.
11130
11131 2017-01-21 Joel Brobecker <brobecker@adacore.com>
11132
11133 GDB 7.12.1 released.
11134
11135 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11136
11137 * python/py-function.c (fnpy_call): Reorder declarations to have
11138 the gdbpy_enter object declared first.
11139 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11140
11141 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11142
11143 PR python/21068
11144 * python/python-internal.h (PyMem_RawMalloc): Define for
11145 Python < 3.4.
11146 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11147 PyMem_RawMalloc instead of PyMem_Malloc.
11148
11149 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11150 Luis Machado <lgustavo@codesourcery.com>
11151
11152 * NEWS (New commands): Mention flash-erase.
11153 (New MI commands): Mention target-flash-erase.
11154 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11155 command.
11156 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11157 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11158 * target.c (flash_erase_command): New function.
11159 (initialize_targets): Add new flash-erase command.
11160 * target.h (flash_erase_command): New declaration.
11161
11162 2017-01-20 Joel Brobecker <brobecker@adacore.com>
11163
11164 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11165 HAVE_SYS_PROCFS_H is defined.
11166
11167 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11168
11169 * remote.c (struct cached_reg): Change data into a pointer.
11170 * (stop_reply_dtr): Free data pointers before deleting vector.
11171 (process_stop_reply): Likewise.
11172 (remote_parse_stop_reply): Allocate space for data
11173
11174 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11175
11176 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11177 MAX_REGISTER_SIZE.
11178 (amd64_pseudo_register_read_value): Likewise.
11179 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11180 (store_register_using_P): Likewise.
11181 * regcache.c (regcache_xfer_part): Likewise.
11182
11183 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11184
11185 Split real and pseudo registers.
11186 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11187 (sparc32_pseudo_regnum): New enum.
11188 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11189 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11190 (SPARC32_CP0_REGISTERS): New macro.
11191 (sparc32_pseudo_register_name): New function.
11192 (sparc32_register_name): Use sparc32_pseudo_register_name.
11193 (sparc32_pseudo_register_type): New function.
11194 (sparc32_register_type): Use sparc32_pseudo_register_type.
11195 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11196 pseudo register numbers.
11197 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11198 (SPARC64_CP0_REGISTERS): New macro.
11199 (sparc64_pseudo_register_name): New function.
11200 (sparc64_register_name): Use sparc64_pseudo_register_name.
11201 (sparc64_pseudo_register_type): New function.
11202 (sparc64_register_type): Use sparc64_pseudo_register_type.
11203 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11204 pseudo register numbers.
11205 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11206 sparc64_store_arguments): Handle pseudo register numbers.
11207
11208 2017-01-13 Yao Qi <yao.qi@linaro.org>
11209
11210 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11211 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11212 output.
11213 (getpkt_or_notif_sane_1): Likewise.
11214
11215 2017-01-13 Yao Qi <yao.qi@linaro.org>
11216
11217 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11218 of CC. Pass "-x c++-header" instead of "-x c".
11219
11220 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11221
11222 * remote.c (remote_can_async_p): Update comment.
11223
11224 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11225
11226 * linux-nat.c (linux_nat_can_async_p): Update comment.
11227
11228 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11229
11230 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11231
11232 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11233
11234 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11235
11236 2017-01-10 Tom Tromey <tom@tromey.com>
11237
11238 * python/py-type.c (typy_legacy_template_argument): Update.
11239 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11240 ~demangle_parse_info): Declare new members.
11241 (cp_demangled_name_to_comp): Return unique_ptr.
11242 (cp_demangled_name_parse_free)
11243 (make_cleanup_cp_demangled_name_parse_free)
11244 (cp_new_demangle_parse_info): Remove.
11245 * cp-support.c (do_demangled_name_parse_free_cleanup)
11246 (make_cleanup_cp_demangled_name_parse_free): Remove.
11247 (inspect_type, cp_canonicalize_string_full)
11248 (cp_canonicalize_string): Update.
11249 (mangled_name_to_comp): Change return type.
11250 (cp_class_name_from_physname, method_name_from_physname)
11251 (cp_func_name, cp_remove_params): Update.
11252 * cp-name-parser.y (demangle_parse_info): New constructor, from
11253 cp_new_demangle_parse_info.
11254 (~demangle_parse_info): New destructor, from
11255 cp_demangled_name_parse_free.
11256 (cp_merge_demangle_parse_infos): Update.
11257 (cp_demangled_name_to_comp): Change return type.
11258
11259 2017-01-10 Tom Tromey <tom@tromey.com>
11260
11261 * top.c (prevent_dont_repeat): Change return type.
11262 * python/python.c (execute_gdb_command): Use std::string.
11263 Update.
11264 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11265 * command.h (prevent_dont_repeat): Change return type.
11266 * breakpoint.c (bpstat_do_actions_1): Update.
11267
11268 2017-01-10 Tom Tromey <tom@tromey.com>
11269
11270 * value.h (scoped_value_mark::~scoped_value_mark): Call
11271 free_to_mark.
11272 (scoped_value_mark::free_to_mark): New method.
11273 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11274 scoped_value_mark.
11275
11276 2017-01-10 Tom Tromey <tom@tromey.com>
11277
11278 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11279 (valpy_reference_value, valpy_const_value, valpy_get_address)
11280 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11281 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11282 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11283 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11284 scoped_value_mark.
11285 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11286 * value.h (scoped_value_mark): New class.
11287
11288 2017-01-10 Tom Tromey <tom@tromey.com>
11289
11290 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11291 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11292 * psymtab.c (discard_psymtabs_upto): Remove.
11293 (make_cleanup_discard_psymtabs): Remove.
11294 (struct psymtab_state): Remove.
11295
11296 2017-01-10 Tom Tromey <tom@tromey.com>
11297
11298 * record-full.c (record_full_save_cleanups): Remove.
11299 (record_full_save): Use gdb::unlinker.
11300 * gcore.c (do_bfd_delete_cleanup): Remove.
11301 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11302 cleanups.
11303 * dwarf2read.c (unlink_if_set): Remove.
11304 (write_psymtabs_to_index): Use gdb::unlinker.
11305 * common/gdb_unlinker.h: New file.
11306
11307 2017-01-10 Tom Tromey <tom@tromey.com>
11308
11309 * windows-tdep.c (windows_xfer_shared_library): Update.
11310 * windows-nat.c (windows_make_so): Update.
11311 * utils.h (make_cleanup_bfd_unref): Remove.
11312 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11313 * symfile.h (symfile_bfd_open)
11314 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11315 * symfile.c (read_symbols, symbol_file_add)
11316 (separate_debug_file_exists): Update.
11317 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11318 (generic_load, reread_symbols): Update.
11319 * symfile-mem.c (symbol_file_add_from_memory): Update.
11320 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11321 (spu_symbol_file_add_from_memory): Update.
11322 * solist.h (struct target_so_ops) <bfd_open>: Return
11323 gdb_bfd_ref_ptr.
11324 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11325 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11326 gdb_bfd_ref_ptr.
11327 (solib_map_sections, reload_shared_libraries_1): Update.
11328 * solib-svr4.c (enable_break): Update.
11329 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11330 * solib-frv.c (enable_break2): Update.
11331 * solib-dsbt.c (enable_break): Update.
11332 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11333 gdb_bfd_ref_ptr.
11334 (darwin_solib_get_all_image_info_addr_at_init): Update.
11335 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11336 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11337 * record-full.c (record_full_save): Update.
11338 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11339 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11340 * minidebug.c (find_separate_debug_file_in_section): Return
11341 gdb_bfd_ref_ptr.
11342 * machoread.c (macho_add_oso_symfile): Change abfd to
11343 gdb_bfd_ref_ptr.
11344 (macho_symfile_read_all_oso): Update.
11345 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11346 (macho_symfile_read): Update.
11347 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11348 (jit_bfd_try_read_symtab): Update.
11349 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11350 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11351 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11352 gdb_bfd_ref_ptr.
11353 (gdb_bfd_ref_policy): New struct.
11354 (gdb_bfd_ref_ptr): New typedef.
11355 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11356 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11357 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11358 gdb_bfd_ref_ptr.
11359 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11360 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11361 (gcore_command): Update.
11362 * exec.c (exec_file_attach): Update.
11363 * elfread.c (elf_symfile_read): Update.
11364 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11365 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11366 (open_and_init_dwo_file): Update.
11367 (open_dwp_file): Return gdb_bfd_ref_ptr.
11368 (open_and_init_dwp_file): Update.
11369 * corelow.c (core_open): Update.
11370 * compile/compile-object-load.c (compile_object_load): Update.
11371 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11372 * coffread.c (coff_symfile_read): Update.
11373 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11374 gdb_bfd_ref_ptr. Rename.
11375 (dump_bfd_file, restore_command): Update.
11376 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11377 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11378 (find_separate_debug_file_by_buildid): Update.
11379
11380 2017-01-10 Tom Tromey <tom@tromey.com>
11381
11382 * common/gdb_ref_ptr.h: New file.
11383 * python/py-ref.h (struct gdbpy_ref_policy): New.
11384 (gdbpy_ref): Now a typedef.
11385
11386 2017-01-10 Tom Tromey <tom@tromey.com>
11387
11388 * utils.h (make_cleanup_htab_delete): Don't declare.
11389 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11390 Remove.
11391 * linespec.c (decode_compound_collector): Add constructor,
11392 destructor.
11393 (lookup_prefix_sym): Remove cleanup.
11394 (symtab_collector): Add constructor, destructor.
11395 (collect_symtabs_from_filename): Remove cleanup.
11396 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11397 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11398 Use htab_up.
11399 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11400 * dwarf2read.c (dw2_expand_symtabs_matching)
11401 (dw2_map_symbol_filenames, dwarf_decode_macros)
11402 (write_psymtabs_to_index): Use htab_up.
11403 * dwarf2loc.c (func_verify_no_selftailcall)
11404 (call_site_find_chain_1, func_verify_no_selftailcall)
11405 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11406 std::vector, gdb::unique_xmalloc_ptr.
11407 (call_sitep): Remove typedef.
11408 (dwarf2_locexpr_baton_eval): Remove unused variable.
11409
11410 2017-01-10 Tom Tromey <tom@tromey.com>
11411
11412 * python/python-internal.h (make_cleanup_py_decref)
11413 (make_cleanup_py_xdecref): Don't declare.
11414 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11415 (py_xdecref, make_cleanup_py_xdecref): Remove.
11416
11417 2017-01-10 Tom Tromey <tom@tromey.com>
11418
11419 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11420 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11421
11422 2017-01-10 Tom Tromey <tom@tromey.com>
11423
11424 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11425
11426 2017-01-10 Tom Tromey <tom@tromey.com>
11427
11428 * python/py-utils.c (unicode_to_encoded_string)
11429 (python_string_to_target_string)
11430 (python_string_to_target_python_string)
11431 (python_string_to_host_string, gdbpy_obj_to_string)
11432 (get_addr_from_python): Use gdbpy_ref.
11433
11434 2017-01-10 Tom Tromey <tom@tromey.com>
11435
11436 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11437 gdbpy_ref.
11438
11439 2017-01-10 Tom Tromey <tom@tromey.com>
11440
11441 * python/python.c (eval_python_command, gdbpy_decode_line)
11442 (gdbpy_run_events, gdbpy_start_type_printers)
11443 (gdbpy_apply_type_printers): Use gdbpy_ref.
11444
11445 2017-01-10 Tom Tromey <tom@tromey.com>
11446
11447 * python/py-param.c (get_doc_string, compute_enum_values): Use
11448 gdbpy_ref.
11449
11450 2017-01-10 Tom Tromey <tom@tromey.com>
11451
11452 * python/py-inferior.c (find_thread_object, build_inferior_list):
11453 Use gdbpy_ref.
11454
11455 2017-01-10 Tom Tromey <tom@tromey.com>
11456
11457 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11458
11459 2017-01-10 Tom Tromey <tom@tromey.com>
11460
11461 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11462 gdbpy_ref.
11463
11464 2017-01-10 Tom Tromey <tom@tromey.com>
11465
11466 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11467 extra incref.
11468 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11469 Use gdbpy_ref.
11470
11471 2017-01-10 Tom Tromey <tom@tromey.com>
11472
11473 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11474 gdbpy_ref.
11475
11476 2017-01-10 Tom Tromey <tom@tromey.com>
11477
11478 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11479 decref results of PyArg_ParseTupleAndKeywords.
11480
11481 2017-01-10 Tom Tromey <tom@tromey.com>
11482
11483 * python/python.c (python_run_simple_file): Use
11484 unique_xmalloc_ptr, gdbpy_ref.
11485
11486 2017-01-10 Tom Tromey <tom@tromey.com>
11487
11488 * python/py-prettyprint.c (print_stack_unless_memory_error)
11489 (print_string_repr, print_children): Use gdbpy_ref.
11490 (dummy_python_frame): New class.
11491 (dummy_python_frame::dummy_python_frame): Rename from
11492 push_dummy_python_frame.
11493 (py_restore_tstate): Remove.
11494
11495 2017-01-10 Tom Tromey <tom@tromey.com>
11496
11497 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11498
11499 2017-01-10 Tom Tromey <tom@tromey.com>
11500
11501 * python/python.c (ensure_python_env, restore_python_env):
11502 Remove.
11503 * python/python-internal.h (ensure_python_env): Don't declare.
11504 * varobj.h (varobj_ensure_python_env): Don't declare.
11505 * varobj.c (varobj_ensure_python_env): Remove.
11506
11507 2017-01-10 Tom Tromey <tom@tromey.com>
11508
11509 * varobj.c (varobj_value_get_print_value): Use
11510 gdbpy_enter_varobj.
11511
11512 2017-01-10 Tom Tromey <tom@tromey.com>
11513
11514 * python/py-prettyprint.c (print_string_repr, print_children):
11515 Update.
11516 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11517 of "encoding".
11518 * varobj.c (varobj_value_get_print_value): Update.
11519 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11520
11521 2017-01-10 Tom Tromey <tom@tromey.com>
11522
11523 * varobj.c (varobj_get_display_hint)
11524 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11525 (varobj_set_visualizer, free_variable): Use
11526 gdbpy_enter_varobj.
11527
11528 2017-01-10 Tom Tromey <tom@tromey.com>
11529
11530 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11531 (do_finish_initialization): New function. Use gdbpy_ref.
11532 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11533 do_finish_initialization.
11534
11535 2017-01-10 Tom Tromey <tom@tromey.com>
11536
11537 * python/py-param.c (get_set_value, get_show_value): Use
11538 gdbpy_enter, gdbpy_ref.
11539
11540 2017-01-10 Tom Tromey <tom@tromey.com>
11541
11542 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11543
11544 2017-01-10 Tom Tromey <tom@tromey.com>
11545
11546 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11547
11548 2017-01-10 Tom Tromey <tom@tromey.com>
11549
11550 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11551 Use gdbpy_enter_varobj.
11552
11553 2017-01-10 Tom Tromey <tom@tromey.com>
11554
11555 * varobj.c (gdbpy_enter_varobj): New constructor.
11556 * python/python-internal.h (gdbpy_enter_varobj): New class.
11557 * python/py-varobj.c (py_varobj_get_iterator): Use
11558 gdbpy_enter_varobj.
11559
11560 2017-01-10 Tom Tromey <tom@tromey.com>
11561
11562 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11563 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11564 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11565 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11566 unique_xmalloc_ptr.
11567 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11568
11569 2017-01-10 Tom Tromey <tom@tromey.com>
11570
11571 * python/py-xmethods.c (invoke_match_method): Use
11572 gdbpy_ref.
11573
11574 2017-01-10 Tom Tromey <tom@tromey.com>
11575
11576 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11577 gdbpy_enter, gdbpy_ref.
11578
11579 2017-01-10 Tom Tromey <tom@tromey.com>
11580
11581 * python/python.c (python_interactive_command): Use gdbpy_enter.
11582
11583 2017-01-10 Tom Tromey <tom@tromey.com>
11584
11585 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11586 gdbpy_ref.
11587
11588 2017-01-10 Tom Tromey <tom@tromey.com>
11589
11590 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11591 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11592
11593 2017-01-10 Tom Tromey <tom@tromey.com>
11594
11595 * utils.h (htab_deleter): New struct.
11596 (htab_up): New typedef.
11597 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11598 gdbpy_enter, gdbpy_ref, htab_up.
11599
11600 2017-01-10 Tom Tromey <tom@tromey.com>
11601
11602 * python/py-unwind.c (pending_frame_invalidate): Remove.
11603 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11604
11605 2017-01-10 Tom Tromey <tom@tromey.com>
11606
11607 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11608 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11609
11610 2017-01-10 Tom Tromey <tom@tromey.com>
11611
11612 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11613
11614 2017-01-10 Tom Tromey <tom@tromey.com>
11615
11616 * python/python.c (gdbpy_eval_from_control_command)
11617 (gdbpy_source_script, gdbpy_run_events)
11618 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11619 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11620 gdbpy_enter.
11621
11622 2017-01-10 Tom Tromey <tom@tromey.com>
11623
11624 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11625
11626 2017-01-10 Tom Tromey <tom@tromey.com>
11627
11628 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11629
11630 2017-01-10 Tom Tromey <tom@tromey.com>
11631
11632 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11633 (python_on_inferior_call_pre, python_on_inferior_call_post)
11634 (python_on_memory_change, python_on_register_change)
11635 (python_inferior_exit, python_new_objfile, add_thread_object)
11636 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11637
11638 2017-01-10 Tom Tromey <tom@tromey.com>
11639
11640 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11641 (bpfinishpy_handle_exit): Use gdbpy_enter.
11642
11643 2017-01-10 Tom Tromey <tom@tromey.com>
11644
11645 * python/py-cmd.c (cmdpy_destroyer)
11646 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11647 gdbpy_enter.
11648
11649 2017-01-10 Tom Tromey <tom@tromey.com>
11650
11651 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11652 gdbpy_enter.
11653 (gdbpy_breakpoint_has_cond): Likewise.
11654
11655 2017-01-10 Tom Tromey <tom@tromey.com>
11656
11657 * python/python.c (gdbpy_enter): New constructor.
11658 (~gdbpy_enter): New destructor.
11659 (restore_python_env, ensure_python_env): Rewrite.
11660 * python/python-internal.h (gdbpy_enter): New class.
11661
11662 2017-01-10 Tom Tromey <tom@tromey.com>
11663
11664 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11665
11666 2017-01-10 Tom Tromey <tom@tromey.com>
11667
11668 * python/py-value.c (value_has_field, get_field_flag)
11669 (get_field_type, valpy_getitem, convert_value_from_python): Use
11670 gdbpy_ref.
11671
11672 2017-01-10 Tom Tromey <tom@tromey.com>
11673
11674 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11675 gdbpy_ref.
11676
11677 2017-01-10 Tom Tromey <tom@tromey.com>
11678
11679 * python/py-prettyprint.c (search_pp_list)
11680 (find_pretty_printer_from_objfiles)
11681 (find_pretty_printer_from_progspace)
11682 (find_pretty_printer_from_gdb, find_pretty_printer)
11683 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11684 gdbpy_ref.
11685
11686 2017-01-10 Tom Tromey <tom@tromey.com>
11687
11688 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11689
11690 2017-01-10 Tom Tromey <tom@tromey.com>
11691
11692 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11693 (ltpy_get_all_source_lines): Use gdbpy_ref.
11694
11695 2017-01-10 Tom Tromey <tom@tromey.com>
11696
11697 * python/py-framefilter.c (extract_sym, extract_value)
11698 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11699 gdbpy_ref.
11700
11701 2017-01-10 Tom Tromey <tom@tromey.com>
11702
11703 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11704
11705 2017-01-10 Tom Tromey <tom@tromey.com>
11706
11707 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11708
11709 2017-01-10 Tom Tromey <tom@tromey.com>
11710
11711 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11712 gdbpy_ref.
11713
11714 2017-01-10 Tom Tromey <tom@tromey.com>
11715
11716 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11717
11718 2017-01-10 Tom Tromey <tom@tromey.com>
11719
11720 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11721 (typy_range): Use gdbpy_ref.
11722
11723 2017-01-10 Tom Tromey <tom@tromey.com>
11724
11725 * python/py-threadevent.c (create_thread_event_object): Use
11726 gdbpy_ref.
11727 * python/py-stopevent.c (create_stop_event_object): Simplify.
11728 (emit_stop_event): Use gdbpy_ref.
11729 * python/py-signalevent.c (create_signal_event_object): Use
11730 gdbpy_ref.
11731 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11732 (emit_new_objfile_event, create_clear_objfiles_event_object)
11733 (emit_clear_objfiles_event): Use gdbpy_ref.
11734 * python/py-infevents.c (create_inferior_call_event_object)
11735 (create_register_changed_event_object)
11736 (create_memory_changed_event_object, emit_inferior_call_event)
11737 (emit_memory_changed_event, emit_register_changed_event): Use
11738 gdbpy_ref.
11739 * python/py-exitedevent.c (create_exited_event_object)
11740 (emit_exited_event): Use gdbpy_ref.
11741 * python/py-event.h (evpy_emit_event): Remove
11742 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11743 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11744 * python/py-continueevent.c (emit_continue_event): Use
11745 gdbpy_ref.
11746 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11747 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11748 gdbpy_ref.
11749 * python/py-bpevent.c (create_breakpoint_event_object): Use
11750 gdbpy_ref.
11751
11752 2017-01-10 Tom Tromey <tom@tromey.com>
11753
11754 * python/py-ref.h: New file.
11755
11756 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11757
11758 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11759 void.
11760 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11761 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11762 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11763 * ui-out.c (ui_out::redirect): Likewise.
11764 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11765 * cli/cli-logging.c (set_logging_redirect): Update call site of
11766 ui_out::redirect.
11767 (handle_redirections): Likewise.
11768 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11769 * top.c (execute_command_to_string): Likewise.
11770 * utils.c (do_ui_out_redirect_pop): Likewise.
11771
11772 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11773
11774 * stack.c (_initialize_stack): Update "frame" command help message.
11775
11776 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11777
11778 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11779
11780 2017-01-06 Yao Qi <yao.qi@linaro.org>
11781
11782 * x86-linux-nat.h: Include gdb_proc_service.h.
11783
11784 2017-01-06 Yao Qi <yao.qi@linaro.org>
11785
11786 * ser-base.h: Include serial.h.
11787
11788 2017-01-06 Yao Qi <yao.qi@linaro.org>
11789
11790 * ppc-linux-tdep.h: Include ppc-tdep.h.
11791
11792 2017-01-06 Yao Qi <yao.qi@linaro.org>
11793
11794 * nat/amd64-linux-siginfo.h: Include signal.h.
11795
11796 2017-01-06 Yao Qi <yao.qi@linaro.org>
11797
11798 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11799
11800 2017-01-06 Yao Qi <yao.qi@linaro.org>
11801
11802 * mi/mi-parse.h: Include mi-cmds.h.
11803
11804 2017-01-06 Yao Qi <yao.qi@linaro.org>
11805
11806 * inf-loop.c: Don't include "target.h".
11807 * inf-loop.h: Include it here.
11808
11809 2017-01-06 Yao Qi <yao.qi@linaro.org>
11810
11811 * dfp.h: Include "dboulest.h" and "expression.h".
11812
11813 2017-01-06 Yao Qi <yao.qi@linaro.org>
11814
11815 * ax-gdb.h: Include "ax.h".
11816
11817 2017-01-06 Yao Qi <yao.qi@linaro.org>
11818
11819 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11820 with nat/gdb_ptrace.h.
11821
11822 2017-01-05 Yao Qi <yao.qi@linaro.org>
11823
11824 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11825 new line.
11826 (mips64_fbsd_sigframe_init): Likewise.
11827
11828 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11829
11830 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11831 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11832
11833 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11834
11835 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11836 * NEWS: Mention new FreeBSD/mips native configuration.
11837 * config/mips/fbsd.mh: New file.
11838 * configure.host: Add mips*-*-freebsd*.
11839 * mips-fbsd-nat.c: New file.
11840
11841 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11842
11843 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11844 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11845 * NEWS: Mention new FreeBSD/mips target.
11846 * configure.tgt: Add mips*-*-freebsd*.
11847 * mips-fbsd-tdep.c: New file.
11848 * mips-fbsd-tdep.h: New file.
11849
11850 2017-01-04 Yao Qi <yao.qi@linaro.org>
11851
11852 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11853 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11854
11855 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11856
11857 Update copyright year range in all GDB files.
11858
11859 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11860
11861 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
11862
11863 For older changes see ChangeLog-2016.
11864 \f
11865 Local Variables:
11866 mode: change-log
11867 left-margin: 8
11868 fill-column: 74
11869 version-control: never
11870 coding: utf-8
11871 End: